This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO $$ | |
DECLARE | |
r RECORD; | |
BEGIN | |
FOR r IN | |
SELECT pid | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' AND usename = 'write_1' AND | |
age(query_start, clock_timestamp()) < -(INTERVAL '1 hour') | |
ORDER BY age(query_start, clock_timestamp()) ASC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Net; | |
namespace Test | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('DOMContentLoaded', function() { | |
d3.selectAll('body > *').remove(); | |
d3.select('body').style('overflow', 'hidden'); | |
var svg = d3.select('body').append('svg') | |
.attr('height', '100%') | |
.attr('width', '100%'); | |
var x = d3.scale.linear().domain([0, 100]).range([0, parseInt(svg.style('width'), 10)]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.setup({ | |
onReady: function() { | |
var data = []; | |
for (var i = 0; i < 10; i++) { | |
data.push({ | |
x: i, | |
y: parseInt(Math.random() * 100) | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Conflict in grammar: multiple actions possible when lookahead token is DOT in state 25 | |
- reduce by rule: integer_constant -> digit_sequence | |
- shift token (then go to state 42) | |
Conflict in grammar: multiple actions possible when lookahead token is DIGIT in state 27 | |
- reduce by rule: digit_sequence -> DIGIT | |
- shift token (then go to state 27) | |
Conflict in grammar: multiple actions possible when lookahead token is DIGIT in state 42 | |
- reduce by rule: fractional_constant -> digit_sequence DOT | |
- shift token (then go to state 27) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.setup({ | |
onReady: function() { | |
var data = []; | |
for (var i = 0; i < 10; i++) { | |
data.push({ | |
x: i, | |
y: parseInt(Math.random() * 100, 10) | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.setup({ | |
onReady: function() { | |
var chart = new Ext.chart.Chart({ | |
store: new Ext.data.JsonStore({ | |
fields: ['month', 'salary'], | |
data: [{ | |
month: 'January', | |
salary: 800 | |
}, { | |
month: 'February', |