I hereby claim:
- I am sdgluck on github.
- I am sdgluck (https://keybase.io/sdgluck) on keybase.
- I have a public key whose fingerprint is BD99 05F8 A03C 6849 2712 EBA9 7714 4CC1 8FF5 819F
To claim this, I am signing this object:
| -- show running queries | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query FROM pg_stat_activity WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' ORDER BY age(clock_timestamp(), query_start) desc; | |
| -- kill running query | |
| SELECT pg_cancel_backend(procpid); | |
| -- kill idle query | |
| SELECT pg_terminate_backend(procpid); | |
| -- vacuum command |
| /** | |
| * Query blog posts by user -> paginated results and a total count. | |
| * @param userId {ObjectId} ID of user to retrieve blog posts for | |
| * @param startRow {Number} First row to return in results | |
| * @param endRow {Number} Last row to return in results | |
| * @param [filter] {Object} Optional extra matching query object | |
| * @param [sort] {Object} Optional sort query object | |
| * @returns {Object} Object -> `{ rows, count }` | |
| */ | |
| function queryBlogPostsByUser (userId, startRow, endRow, filter = {}, sort = false) { |
I hereby claim:
To claim this, I am signing this object:
| @mixin tiny { | |
| @at-root { | |
| @media screen and (max-width: 480px) { | |
| @content; | |
| } | |
| } | |
| } | |
| @mixin mobile { | |
| @at-root { |
| 'use strict'; | |
| var moment = require('moment'); | |
| var template = '' + | |
| '<div class="ag-date-custom-filter">' + | |
| ' <select ng-model="queryType">' + | |
| ' <option value="exact">Exact</option>' + | |
| ' <option value="between">Between</option>' + | |
| ' </select>' + |
| function dropCollection (modelName) { | |
| if (!modelName || !modelName.length) { | |
| Promise.reject(new Error('You must provide the name of a model.')); | |
| } | |
| try { | |
| var model = mongoose.model(modelName); | |
| var collection = mongoose.connection.collections[model.collection.collectionName]; | |
| } catch (err) { | |
| return Promise.reject(err); |
| .font-size (@size) { | |
| @px: @size * 10; | |
| font-size: e("@{px}px"); | |
| font-size: e("@{size}rem"); | |
| } |
| /** | |
| * Invoke a CSS animation on `this` angular.element instance. | |
| * @param className classname of animation to invoke on `this` element | |
| * @param delay delay before animation is invoked | |
| * @param done callback | |
| */ | |
| angular.element.prototype.doAnim = function(className, delay, done, doneDelay) { | |
| done = (typeof delay === 'function') ? delay : done; | |
| $timeout(function() { | |
| this.removeClass(className); |