Skip to content

Instantly share code, notes, and snippets.

David Cortés davebcn87

Block or report user

Report or block davebcn87

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
@davebcn87
davebcn87 / gist:82142ba5903e95f86d90
Created Jan 7, 2015
RSS-Driven Push notifications with Parse
View gist:82142ba5903e95f86d90
var xmlreader = require('cloud/xmlreader.js');
var url = "http://feeds.feedburner.com/YourFeedGoesHere.rss";
function SavePost(title, link){
var PostClass = Parse.Object.extend("Post");
var post = new PostClass();
post.set("title", title);
post.set("link", link);
post.save();
@davebcn87
davebcn87 / tdd-gist-1.mm
Last active Dec 17, 2015
Mocks explanation
View tdd-gist-1.mm
id mailManagerMock = [MailManager mock];
[mailManagerMock stub:@selector(sendEmail) andReturn:theValue(YES)];
@davebcn87
davebcn87 / gist:4547426
Created Jan 16, 2013
Alias podmerge: Add a post-merge hook to execute 'pod install' every time you do a git merge (git pull)hook
View gist:4547426
alias podmerge="[ -d .git/hooks ] && curl --silent https://gist.github.com/raw/4546847/78e838b0b49013b34855e71d629a2697e6d10453/post-merge > .git/hooks/post-merge"
You can’t perform that action at this time.