Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View felipesabino's full-sized avatar
👨‍💻

Felipe Sabino felipesabino

👨‍💻
View GitHub Profile
@BanzaiMan
BanzaiMan / README.md
Last active August 29, 2015 14:00
XCode code signing issue with OS X Mavericks images

Issue

Users report issues with code signing their Objective-C based project with the newly-rolled out Mavericks image on Travis CI.

The error looks something like:

Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings ("Chappy Dev Adhoc") were found. CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'

Workaround

A couple of users have reported that setting the keychain in use to be the default will fix this issue. For example:

@fractastical
fractastical / barrel_bookmarklet.js
Created November 3, 2011 22:31 — forked from bengl/barrel_bookmarklet.js
A bookmarklet to replicate Google's "do a barrel roll" on any arbitrary page.
javascript:(function(a,k,t,n,u,i,m,o,w){document.head.innerHTML+=['<style>@-',m,k,m,t,'@-',o,k,o,t,'@-',w,k,w,t,'body{-',m,a,n,m,a,u,m,a,i,'-',o,a,n,o,a,u,o,a,i,'-',w,a,n,w,a,u,w,a,i,'}</style>'].join('');})("-animation","-keyframes roll { 100% { -","-transform:rotate(360deg); } }","-name:roll;-","-duration:4s;-","-iteration-count:1;","moz",'o','webkit');
@jaigouk
jaigouk / Gemfile
Created November 16, 2011 15:40
How to use apigee with koala
# facebook library for Ruby, supporting the Graph API (including the batch requests and photo uploads), the REST API, realtime updates, test users, and OAuth validation
gem 'koala', :git => 'git@github.com:jaigouk/koala.git'
@mmassaki
mmassaki / gist:3773649
Created September 24, 2012 00:55
Objective-C Singleton (With ARC)
+ (id)sharedInstance
{
static class *sharedInstance;
static dispatch_once_t done;
dispatch_once(&done, ^{
sharedInstance = [class new];
});
return sharedInstance;
}
@mmassaki
mmassaki / CustomView.m
Created September 26, 2012 20:10
UIView+NibLoading
- (id) awakeAfterUsingCoder:(NSCoder*)aDecoder
{
BOOL isJustAPlaceholder = ([[self subviews] count] == 0);
if (isJustAPlaceholder) {
CustomView *theRealThing = (CustomView *)[CustomView loadInstanceFromNib];
[self copyUIPropertiesTo:theRealThing];
// // convince ARC that we're legit
// CFRelease((__bridge const void*)self);
@balupton
balupton / README.md
Last active December 9, 2015 23:18
DocPad: Get Ruby, SASS and DocPad working on Heroku

DocPad: Get Ruby, SASS and DocPad working on Heroku

Getting Ruby, SASS and DocPad working on Heroku involves two steps:

  1. Ensuring all your plugins are the latest version. Open up your package.json and change all your docpad plugin dependency versions to 2.x and your docpad version to 6.x. Once done, run rm -Rf node_modules; npm install to grab the latest versions of everything.

  2. Installing Ruby and SASS on Heroku. Copy over the Gemfile, Gemfile.lock, and the .buildpacks files from https://github.com/docpad/sass-heroku-test to your own website. Then run heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git to tell heroku to use multiple buildpacks. Once done, deploy to heroku via git push heroku master and you may need to run heroku restart as sometimes the initial deploy fails.

for branch in `git branch -r | grep -v HEAD`; do git branch --track ${branch#*/} $branch; done
@zachleat
zachleat / anchorsaway.js
Last active December 22, 2015 00:08
AnchorsAway.js
/*! AnchorsAway - v0.1.0 - 2013-08-30
* Copyright (c) 2013 Zach Leatherman
* See also @zachleat http://www.zachleat.com
* MIT License
*
* A bookmarklet to show all of the available anchor links on a page.
* Originally developed to allow easier direct linking to specific paragraphs
* on Wikipedia.
*
* Demo: http://jsbin.com/UNiWiCO/1
@paulosborne
paulosborne / gist:7640679
Created November 25, 2013 12:40
Hipster indexOf
var message = "hello, how are you Tal?";
if (~message.indexOf('Tal')) {
console.log('found matching text');
}
@jethrokuan
jethrokuan / sitemap.xml
Created December 20, 2013 08:26
Jekyll sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://jethrokuan.github.io/</loc>
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
{% for post in site.posts %}
<url>