Skip to content

Instantly share code, notes, and snippets.

Patrick Holloway patrickjholloway

Block or report user

Report or block patrickjholloway

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:a886251e07f677621ec8
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);
patrickjholloway / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View resume backbone view
class Workshop.Views.FontsIndex extends Backbone.View
el: '#content_wrapper'
initialize: ->
this.current_user = new Workshop.Models.Currentuser
this.fonts = new Workshop.Collections.Fonts
'mouseenter span': 'whiteIcon'
View backbonewoes
Currentuser {attributes: Object, _escapedAttributes: Object, cid: "c1", changed: Object, _silent: Object…}
_changing: false
_escapedAttributes: Object
_pending: Object
_previousAttributes: Object
_silent: Object
View gist:5674238
<script type="text/x-handlebars" data-template-name="photo">
<img {{ bindAttr src="imageUrl" title="title" alt="title" style="widthStyle"}}>
<p class="description">{{{description}}}</p>
{{view Ember.TextField valueBinding="title"}}
{{view Ember.TextField valueBinding="author"}}
{{view Ember.TextField valueBinding="caption"}}
View gist:7660004
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) }
View gist:7879397
commit fefdb75b6a6f99531fb8aaa29ee3a68572e26c8f
Author: Patrick Holloway <>
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
patrickjholloway / datalinks.json
Last active Mar 24, 2017
/datalinks json response body
View datalinks.json
View gist:68176cf57b9905ca3655508ed27c9010
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
cd ./console
View gist:5f8100527db8bbf459f951fdf319d476
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
cd ./console
You can’t perform that action at this time.