Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |
| /*global module:false*/ | |
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| // Metadata. | |
| pkg: grunt.file.readJSON('package.json'), | |
| aws: grunt.file.readJSON('config/grunt-aws.json'), | |
| datetime: Date.now(), | |
| jshint: { |
| function addLoadEventListener (listener) { | |
| var done, oldonload; | |
| if(typeof addEventListener !== "undefined") { | |
| return addEventListener("load", listener, false); | |
| } | |
| if(typeof attachEvent !== "undefined") { | |
| return attachEvent("onload", listener); | |
| } |
| app.directive('ngFocus', ['$parse', function($parse) { | |
| return function(scope, element, attr) { | |
| var fn = $parse(attr['ngFocus']); | |
| element.bind('focus', function(event) { | |
| scope.$apply(function() { | |
| fn(scope, {$event:event}); | |
| }); | |
| }); | |
| } | |
| }]); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| var xmpp = require('node-xmpp'); | |
| //Set node-xmpp options. | |
| //Replace with your projectID in the jid and your API key in the password | |
| //The key settings for CCS are the last two to force SSL and Plain SASL auth. | |
| var options = { | |
| type: 'client', | |
| jid: '[email protected]', | |
| password: 'XXXXXXXX', | |
| port: 5235, |
| var gulp = require('gulp'), | |
| sass = require('gulp-sass'), | |
| browserify = require('gulp-browserify'), | |
| concat = require('gulp-concat'), | |
| embedlr = require('gulp-embedlr'), | |
| refresh = require('gulp-livereload'), | |
| lrserver = require('tiny-lr')(), | |
| express = require('express'), | |
| livereload = require('connect-livereload') | |
| livereloadport = 35729, |
| $("#rsvp-list-waitlist h5") | |
| .map(function(i, el) {return {"pos": i, "name": $(el).text()}}) | |
| .filter(function(i, el) {return el["name"].indexOf("Your name") >= 0;}); |
| /* | |
| * Firmata is a generic protocol for communicating with microcontrollers | |
| * from software on a host computer. It is intended to work with | |
| * any host computer software package. | |
| * | |
| * To download a host software package, please click on the following link | |
| * to open the download page in your default browser. | |
| * | |
| * http://firmata.org/wiki/Download | |
| */ |