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
{ | |
// calculates indentation automatically when pressing enter | |
"auto_indent": true, | |
// sets the colors used within the text area (default) | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
// useful to block endings and closing tags | |
"draw_indent_guides": true, |
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
<dict> | |
<key>name</key> | |
<string>Invalid - Illegal</string> | |
<key>scope</key> | |
<string>invalid.illegal</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#333333</string> | |
<key>fontStyle</key> |
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
u = User.find(123) | |
# complete all exercises in level 1 | |
Exercise.all.each {|e| u.user_exercises.find_or_create_by_exercise_id(e.id).complete! if e.lab_id < 2 } |
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
arduino_socket_server git:(master) ✗ jitsu deploy | |
info: Welcome to Nodejitsu renz45 | |
info: jitsu v0.9.8 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in app.js | |
error: Error running command deploy | |
error: UNABLE_TO_VERIFY_LEAF_SIGNATURE | |
error: Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE | |
error: at SecurePair.<anonymous> (tls.js:1312:32) |
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
let(:user) { Factory :user } | |
let!(:plan) { Factory :subscription_plan, code: HallPass::PLAN_CODE, price: 0 } | |
let!(:hall_pass) { Factory(:inactive_hall_pass) } | |
it 'should' do | |
..do something | |
end |
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
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td { | |
margin: 0; | |
padding: 0; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
fieldset, img { | |
border: 0; |
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
class User < ActiveRecord::Base | |
def welcome | |
send_welcome_email(self) | |
enable_welcome_tour(self) | |
enable_welcome_promotion(self) | |
end | |
private | |
def send_welcome_email(user) |
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 atom="open -a /Applications/atom.app" |
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('myApp').directive 'tooltip', -> | |
restrict: 'A' | |
scope: {} | |
link: (scope, element, attrs)-> | |
$(element).tooltip({ | |
animation: attrs.animation | |
html: attrs.html | |
placement: attrs.placement | |
selector: attrs.selector | |
title: attrs.title |
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
;;; CombatMouseLock | |
;;; v1 | |
;;; 9/6/2014 | |
;;; | |
;;; Combat mouse lock attempts to recreate a jrpg style of play | |
;;; comparable to the game Tera. This differs from combing plugins | |
;;; like steer and mousebindings in that we don't get the clunkiness | |
;;; of rebinding the mouse buttons, so objects remain selectable | |
;;; without triggering the bound abilities. The windows key is used | |
;;; to enguage the lock, while pressing left alt will temporairy |