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:00c46e116a1e61d41a91028543995eb6
#!/bin/zsh
cp -a . ../old-console
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 git@github.com:Kinvey/console.git
cd ./console
View gist:5f8100527db8bbf459f951fdf319d476
#!/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 git@github.com:Kinvey/console.git
cd ./console
View gist:68176cf57b9905ca3655508ed27c9010
#!/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 git@github.com:Kinvey/console.git
cd ./console
@patrickjholloway
patrickjholloway / datalinks.json
Last active Mar 24, 2017
/datalinks json response body
View datalinks.json
@patrickjholloway
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 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);
View gist:7879397
commit fefdb75b6a6f99531fb8aaa29ee3a68572e26c8f
Author: Patrick Holloway <pholloway@patientslikeme.com>
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
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:5674238
<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"}}
View backbonewoes
#OUTPUT
undefined
Currentuser {attributes: Object, _escapedAttributes: Object, cid: "c1", changed: Object, _silent: Object…}
_changing: false
_escapedAttributes: Object
_pending: Object
_previousAttributes: Object
_silent: Object
You can’t perform that action at this time.