I hereby claim:
- I am connrs on github.
- I am connrs (https://keybase.io/connrs) on keybase.
- I have a public key whose fingerprint is E44C 6877 AC53 6B57 D52C 642B 0F34 2407 81A7 33B9
To claim this, I am signing this object:
| #!/bin/bash | |
| NODE_ENV=production /home/myuser/local/bin/node /home/myuser/www/index.js |
I hereby claim:
To claim this, I am signing this object:
| // List all Google Docs without the URI | |
| g docs list | sed -E 's/(.*),[^,]*/\1/g;' |
| /** | |
| * @author connrs | |
| * @version 1 | |
| */ | |
| Object.prototype.objectType = function(){return (s_ob_type = this.toString().match(/object\s+(\w+)/)[1])?s_ob_type:'undefined'} | |
| var MediaQuerySupport = function(d,w){ | |
| var head = d.getElementsByTagName('head')[0], | |
| body = d.getElementsByTagName('body')[0], | |
| date = new Date().getTime(), |
| /*************************************** | |
| replace specified images with SVG images | |
| Written by Alexis "Fyrd" Deveria, 11/28/2007 | |
| Version 1.0 | |
| **************************************** | |
| Please see http://my.opera.com/Fyrd/blog/svg-image-and-background-image-replacer for details and a demo of this script | |
| License: http://creativecommons.org/licenses/LGPL/2.1/ | |
| */ |
| /*************************************** | |
| replace specified images with SVG images | |
| Written by Alexis "Fyrd" Deveria, 11/28/2007 | |
| Version 1.0 | |
| **************************************** | |
| Please see http://my.opera.com/Fyrd/blog/svg-image-and-background-image-replacer for details and a demo of this script | |
| License: http://creativecommons.org/licenses/LGPL/2.1/ | |
| */ |
| SELECT Note.created ucreated, Note.id FROM customers Customer JOIN services Service JOIN notes Note ON (Service.customer_id=Customer.id AND Note.service_id=Service.id) WHERE (Note.user_id=1 OR Service.user_id=1) | |
| # I really want to expand this to include notes left by anyone for a customer that has a service belonging to you (yet the note is customer specific not service specific via a HasMany relationship) |
| Modernizr.addTest('css3mediaquery',function(a,b){var a=document,b='screen and (min-width: 1px)',c={},d=a.documentElement,e=a.createElement("body"),f=a.createElement("div");f.setAttribute("id","ejs-qtest"),e.appendChild(f);return function(g){if(c[g]===b){var h=a.createElement("style");h.type="text/css";var i="@media "+g+" { #ejs-qtest { position: absolute; width: 10px; } }";h.styleSheet?h.styleSheet.cssText=i:h.appendChild(a.createTextNode(i)),d.insertBefore(e,d.firstChild),d.insertBefore(h,d.firstChild),c[g]=f.offsetWidth==10,d.removeChild(e),d.removeChild(h)}return c[g]}}); |
| var x = {key:['x','y','z'],val:123}, | |
| c = x.key.length, | |
| b = false, | |
| memo = {}; | |
| for(var y=0;y<c;y++) { | |
| if (!b && !memo[x.key[y]]) { | |
| memo[x.key[y]] = y<c-1 ? {} : x.val; | |
| b = memo[x.key[y]]; | |
| } else if (!b[x.key[y]]) { | |
| b[x.key[y]] = y<c-1 ? {} : x.val; |
| // includes bindings for fetching/fetched | |
| PaginatedCollection = Backbone.Collection.extend({ | |
| fetch: function(options) { | |
| options || (options = {}); | |
| var self = this, | |
| success = options.success; | |
| options.success = function(resp) { | |
| self.trigger("fetched"); | |
| if(success) { success(self, resp); } |