Skip to content

Instantly share code, notes, and snippets.

View robby's full-sized avatar

Robby Valles robby

View GitHub Profile
@robby
robby / exampleLayout.hbs
Last active August 29, 2015 14:05
handlebars script/style helpers
<!DOCTYPE html>
<html>
<head>
<title>Robby</title>
{{#each styles}}
<link rel="stylesheet" href="{{filename}}" />{{/each}}
{{#each styleLiterals}}
<style>
{{{this}}}
</style>
@robby
robby / keybase.md
Created March 7, 2014 06:49
keybase.md

Keybase proof

I hereby claim:

  • I am robby on github.
  • I am robby (https://keybase.io/robby) on keybase.
  • I have a public key whose fingerprint is 930B D2FA C4F5 61E7 1967 0EEE FEAE 40B5 3B83 F8AF

To claim this, I am signing this object:

@robby
robby / gist:5493865
Created May 1, 2013 05:22
Show "No %@ Accounts" dialog for Twitter/Facebook when using SLRequest, Social.framework, ACAccountStore and Accounts.framework
dispatch_async(dispatch_get_main_queue(), ^{
SLComposeViewController *composer = [SLComposeViewController composeViewControllerForServiceType: slServiceType];
composer.view.hidden = YES;
[self presentViewController: composer animated: NO completion:^{
[composer.view endEditing: YES];
}];
});

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

@robby
robby / video.js
Created November 2, 2012 00:59
html 5 video events
var f = $('#videoFrame');
// Listen for messages from the player
if (window.addEventListener){
window.addEventListener('message', onMessageReceived, false);
}
else {
window.attachEvent('onmessage', onMessageReceived, false);
}
@robby
robby / styles.js
Created March 29, 2012 23:49
terminal colors
var styles = {
//styles
'bold' : [1, 22],
'italic' : [3, 23],
'underline' : [4, 24],
'inverse' : [7, 27],
//grayscale
'white' : [37, 39],
'grey' : [90, 39],
'black' : [90, 39],