This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This | |
is | |
sooo | |
annoying! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('app.directives.ckeditor', []) | |
.directive 'ckeditor', -> | |
require: '?ngModel' | |
link: (scope, elm, attr, ngModel)-> | |
ck = CKEDITOR.replace elm[0] | |
unless ngModel then return | |
ck.on 'pasteState', -> | |
scope.$apply -> | |
ngModel.$setViewValue ck.getData() | |
ngModel.$render = (value)-> ck.setData ngModel.$viewValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ls="ls -a --color=always" | |
alias work="cd /d/Work" | |
alias ga="git add ." | |
alias gs="git status" | |
alias gc="git commit -a -m" | |
alias gp="git pull" | |
alias gpp="git push" | |
alias cw="compass watch" | |
alias edit="/c/Program\ Files/Sublime\ Text\ 2/sublime_text.exe" | |
alias explore="explorer " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// geo-location shim | |
// currentely only serves lat/long | |
// depends on jQuery | |
// doublecheck the ClientLocation results because it may returning null results | |
;(function(geolocation){ | |
if (geolocation) return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage text-shadow / box-shadow : shadow-3d($color, $length); | |
// adds pseudo-3d vertical shadow | |
@function shadow-3d($col, $h){ | |
$str : ""; | |
$shadow-col : darken($col, 5%); | |
@for $i from 1 through $h{ | |
$str : "#{$str} 0 #{$i}px 0 #{$shadow-col},"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkCapslock (e) { | |
var $el = $(this), | |
hasLabel = $el.parent().find('.capslock-on-alert').length > 0 ? true : false; | |
var kc = e.keyCode?e.keyCode:e.which; | |
var sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false); | |
var isCaps = ((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk); | |
if(isCaps && !hasLabel) { |
NewerOlder