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
{"jsonapi":{"version":"1.0"},"included":[{"type":"game","id":"1","attributes":{"name":"F-Zero"}},{"type":"player","relationships":{"total":{}},"id":"34664","attributes":{"username":"IAmTheEg7"}},{"type":"player","relationships":{"total":{}},"id":"34578","attributes":{"username":"niche2k"}},{"type":"player","relationships":{"total":{}},"id":"34545","attributes":{"username":"Figh16"}},{"type":"player","relationships":{"total":{}},"id":"34574","attributes":{"username":"FireFalcons1"}},{"type":"player","relationships":{"total":{}},"id":"34635","attributes":{"username":"hobbes"}},{"type":"player","relationships":{"total":{}},"id":"34618","attributes":{"username":"Bombs13"}},{"type":"player","relationships":{"total":{}},"id":"34597","attributes":{"username":"SilenceErupts"}},{"type":"player","relationships":{"total":{}},"id":"34573","attributes":{"username":"11floksj"}},{"type":"player","relationships":{"total":{}},"id":"34569","attributes":{"username":"GimMick"}},{"type":"player","relationships":{"total":{}},"id"
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.",