Download the ZIP to get started with Ember.js: https://github.com/emberjs/starter-kit/downloads
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
# gema que sigui module Gem | |
def foo | |
'hey' | |
end | |
end | |
class A | |
include Gem | |
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
require 'ostruct' | |
SummariesOverview = lambda do | | |
satisfaction = 0 | |
covered = 0 | |
continue = 0 | |
satisfaction = 0 | |
result = {} | |
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
# This file goes to: | |
# spec/support/http_digest_authentication.rb | |
require 'digest/md5' | |
module HTTPDigestAuthentication | |
def authenticate_with_http_digest(user, password, realm) | |
ActionController::Base.class_eval { include ActionController::Testing } | |
unless @controller.methods.include?(:real_process_with_new_base_test) | |
@controller.instance_eval %q{ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 class="input"> | |
<input id="foo" placeholder="Foo"> | |
<label for="foo">Foo</label> | |
</div> | |
<div class="input"> | |
<input id="bar" placeholder="Bar"> | |
<label for="bar">Bar</label> | |
</div> |
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
/** | |
* demo to explain chained transforms | |
*/ | |
* { margin: 0; } | |
.wrap, .wrap * { display: block; width: 4em; height: 4em; position: absolute; top: 25%; left: 50%} | |
.wrap { outline: dashed 1px dodgerblue; margin: 13em auto 0; } | |
.deg0 { | |
position: absolute; | |
animation: ani0 1s infinite; |
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
<input class="percent-selector" max="100" min="0" type="range" value="0"> | |
<div class="cool-percent-icon"> | |
<div class="moar-outter-shadow"></div> | |
<div class="outer-shadow"></div> | |
<canvas height="100" width="100"></canvas> | |
<div class="icon"><i class="icon-dropbox"></i></div> | |
</div> | |
<input class="percent-selector" max="100" min="0" type="range" value="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
#Lets do it! |
OlderNewer