I hereby claim:
- I am handerson on github.
- I am heathanderson (https://keybase.io/heathanderson) on keybase.
- I have a public key whose fingerprint is 69FE B984 7C01 0847 BB07 5CE5 36F7 C6C8 8A01 EA2C
To claim this, I am signing this object:
{ | |
"color_scheme": "Packages/Color Scheme - Default/Novel.tmTheme", | |
"font_size": 12, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"rulers": [80], | |
"font_face": "Inconsolata", | |
"word_wrap": true, | |
"wrap_width":80 | |
} |
# monkey-patching SQLServerAdapter to support SQL Server 2005-style pagination | |
# inspired by | |
# - http://alexle.net/archives/tag/mislav-will_paginate-sqlserver-2005 | |
# - http://www.sqlservercentral.com/articles/T-SQL/66030/ | |
# - http://stackoverflow.com/questions/4871523/sql-server-2008-r2-pagination/4871591#4871591 | |
# - https://gist.github.com/335683 | |
# place the following at the bottom of environment.rb: | |
# require "#{RAILS_ROOT}/lib/monkey_patch_sql2005_limit.rb" |
// from http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html | |
$.extend({ | |
getUrlVars: function(){ | |
var vars = [], hash; | |
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
for(var i = 0; i < hashes.length; i++) | |
{ | |
hash = hashes[i].split('='); | |
vars.push(hash[0]); | |
vars[hash[0]] = hash[1]; |
// clears and restores a field's default value | |
// example usage (js): $('input.has_default').hasDefaultValue(); | |
// example usage (html): <input class="has_default" default="This is displayed by default" type="text"/> | |
jQuery.fn.hasDefaultValue = function() { | |
function supports_input_placeholder() { | |
var i = document.createElement('input'); | |
return 'placeholder' in i; | |
} | |
if(!supports_input_placeholder()){ |
// scroll to animation | |
// example usage: $('.scroll_to_here').scrollTo(); | |
jQuery.fn.scrollTo = function(speed) { | |
if(speed === undefined ){ | |
speed = 'slow'; | |
} | |
$('html,body').animate({scrollTop: this.offset().top},speed); | |
}; |
require 'net/http' | |
require 'json' | |
token = '' | |
uri = URI('https://codeclimate.com/api/repos?api_token=' + token) | |
response = Net::HTTP.get(uri) | |
repos = JSON.parse(response) | |
test_coverage = [] |
var HighResolutionTimer = window.HighResolutionTimer = window.HighResolutionTimer || (function() { | |
var HighResolutionTimer = function(options) { | |
this.timer = false; | |
this.total_ticks = 0; | |
this.start_time = undefined; | |
this.current_time = undefined; |
// Add a class of "combox" to a select element to activate | |
function clonePosition(elementToMove, elementToClone){ | |
var $elementToClone = $(elementToClone); | |
var position = $elementToClone.position(); | |
var top = position.top; | |
var left = position.left; | |
var width = $elementToClone.width() - 40; | |
$(elementToMove).css({"position": "absolute", "top": top, "left": left, "width": width}); |
I hereby claim:
To claim this, I am signing this object: