I hereby claim:
- I am there4 on github.
- I am there4 (https://keybase.io/there4) on keybase.
- I have a public key whose fingerprint is 4F68 6926 5115 08C4 400D 1EC4 1D23 6CC9 3256 D40A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| -- Missing Index Script | |
| -- Original Author: Pinal Dave (C) 2011 | |
| SELECT TOP 25 | |
| dm_mid.database_id AS DatabaseID, | |
| dm_migs.avg_user_impact*(dm_migs.user_seeks+dm_migs.user_scans) Avg_Estimated_Impact, | |
| dm_migs.last_user_seek AS Last_User_Seek, | |
| OBJECT_NAME(dm_mid.OBJECT_ID,dm_mid.database_id) AS [TableName], | |
| 'CREATE INDEX [IX_' + OBJECT_NAME(dm_mid.OBJECT_ID,dm_mid.database_id) + '_' | |
| + REPLACE(REPLACE(REPLACE(ISNULL(dm_mid.equality_columns,''),', ','_'),'[',''),']','') + | |
| CASE |
| #!/usr/bin/env ruby | |
| # A quick and dirty implementation of an HTTP proxy server in Ruby | |
| # because I did not want to install anything. | |
| # | |
| # Copyright (C) 2009 Torsten Becker <[email protected]> | |
| require 'socket' | |
| require 'uri' |
| * Quit Sublime Text 2 (so you don’t accidentally change any settings) | |
| * In your Dropbox folder (usually at ~/Dropbox/), add a folder called Sublime Text 2 | |
| * Open the folder with your ST2 settings (should be ~/Library/Application Support/Sublime Text 2/) | |
| * Copy the following 3 folders into ~/Dropbox/Sublime Text 2/: Installed Packages, Packages, and Pristine Packages | |
| * Rename the original 3 folders in ~/Library/Application Support/Sublime Text 2/ to something like Installed Packages-20110119, |
stopBefore(document, 'getElementById')
stopBefore('document.getElementById') // the same as the previous
stopBefore(Element.prototype, 'removeChild')| { | |
| "draw_white_space": "all", | |
| "ensure_newline_at_eof_on_save": true, | |
| "font_face": "inconsolata", | |
| "font_size": 16.0, | |
| "scroll_past_end": false, | |
| "rulers": | |
| [ | |
| 80, | |
| 120 |
| /** | |
| * SELECT2 | |
| * | |
| * Renders Select2 - jQuery based replacement for select boxes | |
| * | |
| * Requires an 'options.values' value on the schema. | |
| * Can be an array of options, a function that calls back with the array of options, a string of HTML | |
| * or a Backbone collection. If a collection, the models must implement a toString() method | |
| */ | |
| Backbone.Form.editors.Select2 = Backbone.Form.editors.Base.extend({ |
| // directly uploads to S3 | |
| // See http://philfreo.com/blog/how-to-allow-direct-file-uploads-from-javascript-to-amazon-s3-signed-by-python/ | |
| // See https://github.com/elasticsales/s3upload-coffee-javascript | |
| editors.Filepicker = editors.Text.extend({ | |
| tagName: 'div', | |
| events: { | |
| 'change input[type=file]': 'uploadFile', |
| // like 'Select' editor, but will always return a boolean (true or false) | |
| editors.BooleanSelect = editors.Select.extend({ | |
| initialize: function(options) { | |
| options.schema.options = [ | |
| { val: '1', label: 'Yes' }, | |
| { val: '', label: 'No' } | |
| ]; | |
| editors.Select.prototype.initialize.call(this, options); | |
| }, | |
| getValue: function() { |
| { | |
| // -------------------------------------------------------------------- | |
| // JSHint Configuration, Strict Edition | |
| // -------------------------------------------------------------------- | |
| // | |
| // This is a options template for [JSHint][1], using [JSHint example][2] | |
| // and [Ory Band's example][3] as basis and setting config values to | |
| // be most strict: | |
| // | |
| // * set all enforcing options to true |