Skip to content

Instantly share code, notes, and snippets.

for((j=0;j<120;j++));do mkdir $j;done
@lutaf
lutaf / 0_reuse_code.js
Created April 22, 2014 08:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@lutaf
lutaf / macro.h
Created April 3, 2013 08:17
ios macros
#define NavigationBar_HEIGHT 44
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
#define SAFE_RELEASE(x) [x release];x=nil
#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]
#define CurrentSystemVersion ([[UIDevice currentDevice] systemVersion])
#define CurrentLanguage ([[NSLocale preferredLanguages] objectAtIndex:0])
#define BACKGROUND_COLOR [UIColor colorWithRed:242.0/255.0 green:236.0/255.0 blue:231.0/255.0 alpha:1.0]
@lutaf
lutaf / markdown2clipboard.py
Created January 22, 2013 05:20
change for sublime text 2 plugin:Markdown to Clipboard
import sublime, sublime_plugin
import markdown2
import re
def lutaf_fix(content):
"""
for lutaf.com
"""