Skip to content

Instantly share code, notes, and snippets.

View locks's full-sized avatar
🌟
Ember Polaris

Ricardo Mendes locks

🌟
Ember Polaris
View GitHub Profile
User Admin In Following Teams::
<div>
Team Name: alsdma <br>
Team Sport : Football <br>
</div>
User Member In Following Teams:
➜ mustache git:(master) ✗ rake
Run options:
# Running tests:
[173/220] TestLambdas#test - Escaping = 0.00 s
1) Failure:
test - Escaping(TestLambdas) [/Users/ricardomendes/src/mustache/test/spec_test.rb:67]:
Lambda results should be appropriately escaped.
Data: {"lambda"=>{"ruby"=>"proc { \">\" }", "perl"=>"sub { \">\" }", "js"=>"function() { return \">\" }", "php"=>"return \">\";", "python"=>"lambda: \">\""}}
@locks
locks / dabblet.css
Created April 22, 2014 11:53
Untitled
@-webkit-keyframes panelShakeAnimation {
0% {
-webkit-transform: translateX(0);
-moz-transform: translateX(0);
-ms-transform: translateX(0);
-o-transform: translateX(0);
transform: translateX(0);
}
12.5% {
@locks
locks / dabblet.css
Created April 22, 2014 14:12
Untitled
@-webkit-keyframes panelShakeAnimation {
0% {
-webkit-transform: translateX(0);
-moz-transform: translateX(0);
-ms-transform: translateX(0);
-o-transform: translateX(0);
transform: translateX(0);
}
12.5% {
@locks
locks / first_pass.markdown
Last active August 29, 2015 14:01
Ember.js jQuery dependencies

Build

grunt custom:-wrap,-offset,-core/ready,-dimensions,-ajax/script,-ajax/jsonp,-exports/amd,-export/global,-ajax/xhr,-ajax,-deferred,-effects,-css/var/cssExpand,-css/defaultDisplay,-css/support,-css/swap,-css/var/cssExpand,-css/deprecated

Excluded

  • ajax
  • ajax/xhr
@locks
locks / toc.markdown
Last active August 29, 2015 14:01
Writing a custom Ember Data adapter

Serializer

  • expected payload
  • normalizeX hooks

Adapter

  • http methods (find, etc)
  • createRecord, updateRecord
  • buildURL
@locks
locks / promise.js
Last active August 29, 2015 14:02 — forked from dadamssg/promise.js
var _this = this;
requestMatcher.get('project.requestMatchers').then(function(requestMatchers) {
return requestMatchers.removeObject(requestMatcher).destroyRecord();
}).then(function() {
_this.trigger('hideModal');
});
@locks
locks / blah.rb
Created June 19, 2014 16:57 — forked from tenderlove/blah.rb
# Make sure to do detection so it will gracefully downgrade like:
# begin
require 'psych'
Psych.add_domain_type(nil, 'code') { |_,hash|
p hash['ruby']
}
# rescue
# do 1.8 stuff
# end
@locks
locks / bob.rs
Created October 18, 2014 12:25
Solution to Bob
enum Sentence {
Question,
Yelling,
Silence,
Generic
}
pub fn reply(message: &str) -> &str {
match sentence_type(message) {
Question => "Sure.",
Hello,
As mentioned on Twitter we're looking to give http://mustache.github.io a brand new coat of paint. There are some ideas but nothing too concrete, so everything is up to discussion.
First of all, here are the current websites for some related projects:
- http://handlebarsjs.com/
- http://twitter.github.io/hogan.js/
- http://icanhazjs.com/
- http://pvande.net/Milk/playground.html