Skip to content

Instantly share code, notes, and snippets.

@maddievision
maddievision / TweetBot.py
Created March 4, 2013 03:41
Very simple wrapper for TweetBot URL scheme for Pythonista http://omz-software.com/pythonista
import urllib
import webbrowser
CALLBACK_URL_BASE = 'pythonista://'
url = "tweetbot://x-callback-url/post?"
def tweet(txt,cb=CALLBACK_URL_BASE):
data = {
'text': txt,
'callback_url': cb
}
static inline NSString *convertSelName(const char *hax3d) {
int length = strlen(hax3d);
char name[length + 1];
for (int i = 0; i < length; ++i) {
char c = hax3d[i];
if (c == ':' || c == '_') {
name[i] = c;
} else if (c >= 'a' && c <= 'z') {
name[i] = ((c - 'a' + 13) % 26) + 'a';
@nuxlli
nuxlli / sublime_text_2_useful_shortcuts.md
Created September 9, 2011 18:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@Seasons7
Seasons7 / CCSendMessageTest.m
Created June 4, 2011 08:58
CCSendMessageSample
//
// HelloWorldLayer.m
// CCSendMessageTest
//
// Created by Keisuke Hata on 11/06/04.
//
// Import the interfaces
#import "HelloWorldLayer.h"