This file contains hidden or 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
<div id="test-el"> | |
<div>some testing text blah</div> | |
<div>some testing <span>%replace%test span</span> text blah</div> | |
<p>something %replace% something blah</p> | |
</div> | |
<div id="control"> | |
<div>some testing text blah</div> | |
<div>some testing <span>%replace%test span</span> text blah</div> | |
<p>something %replace% something blah</p> |
This file contains hidden or 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
CS.csVideoPLayer = { | |
speeds: [1, 1.5, 2, 2.5, 3], | |
init: function() { | |
var videos = $('.cs-video_player'); | |
var el; | |
for(var i=0, l=videos.length; i < l; i++) { | |
el = videos[i]; | |
CS.csVideoPLayer.initSublime(el); | |
CS.csVideoPLayer.initWrapper(el); | |
} |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 } |
NewerOlder