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 Workshop.Views.FontsIndex extends Backbone.View | |
el: '#content_wrapper' | |
initialize: -> | |
this.current_user = new Workshop.Models.Currentuser | |
this.current_user.fetch() | |
this.fonts = new Workshop.Collections.Fonts | |
this.fonts.fetch() | |
events: | |
'mouseenter span': 'whiteIcon' |
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
#OUTPUT | |
undefined | |
Currentuser {attributes: Object, _escapedAttributes: Object, cid: "c1", changed: Object, _silent: Object…} | |
_changing: false | |
_escapedAttributes: Object | |
_pending: Object | |
_previousAttributes: Object | |
_silent: Object |
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
<script type="text/x-handlebars" data-template-name="photo"> | |
<h2>{{title}}</h2> | |
<img {{ bindAttr src="imageUrl" title="title" alt="title" style="widthStyle"}}> | |
<p class="description">{{{description}}}</p> | |
<label/>Title<label/> | |
{{view Ember.TextField valueBinding="title"}} | |
<label/>Author<label/> | |
{{view Ember.TextField valueBinding="author"}} | |
<label/>Caption<label/> | |
{{view Ember.TextField valueBinding="caption"}} |
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){ FactoryGirl.create(:user, name: 'user_name') } | |
let(:project){ FactoryGirl.create(:project, name: 'project_name', description: 'project_description', owner: user, users: [user] ) } | |
let(:project_membership){ FactoryGirl.create(:project_membership, name: 'project_membership', user: user, project: project) } |
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
commit fefdb75b6a6f99531fb8aaa29ee3a68572e26c8f | |
Author: Patrick Holloway <[email protected]> | |
Date: Mon Dec 9 14:32:22 2013 -0500 | |
add ORE API calls to find and create survey invitations given a plm_user_id and a survey_session_id | |
diff --git a/lib/open_research_exchange.rb b/lib/open_research_exchange.rb | |
index 9e307ce..bddf3fa 100644 | |
--- a/lib/open_research_exchange.rb | |
+++ b/lib/open_research_exchange.rb |
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
fetchUserCount: function(){ | |
Ember.$.getJSON('/s/1.json', function(data){ | |
userData = JSON.parse(data); | |
this.content.set('userCount', userData.count); // or whatever your json contains | |
}); | |
window.setTimeout(this.fetchUserCount, 5000); |
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
// 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 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
[ | |
{ | |
"access": { | |
"readers": { | |
"organizations": [] | |
}, | |
"writers": { | |
"apps": [ | |
"myApp" | |
] |
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
#!/bin/zsh | |
mkdir ../stashes | |
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"../stashes/" substr($1$2$3, 0, 40) ".diff\"" ) }' | |
cd .. | |
rm -rf ./console | |
git clone [email protected]:Kinvey/console.git | |
cd ./console |
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
#!/bin/zsh | |
mkdir ../stashes | |
git stash list| sed 's/\//\_/g'|sed 's/ /\_/g' | awk -F ":" '{ system("git stash show -p " $1 " >> \"../stashes/" substr($1$2$3, 0, 40) ".diff\"" ) }' | |
cd .. | |
rm -rf ./console | |
git clone [email protected]:Kinvey/console.git | |
cd ./console |
OlderNewer