This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Desc | |
2012/2/8 AppStore.app gdb debuged Classes and Selectors | |
##Class | |
Classes matching "*": | |
ABAnyValuePredicate ABCCallbackInvoker | |
ABGroupMembershipPredicate ABHelper | |
ABNamePredicate ABPersonLinker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
import json | |
import datetime | |
userTimeline = urllib2.urlopen('http://api.twitter.com/1/statuses/user_timeline.json?screen_name=%s&count=3' % 'search_account') | |
contents = json.loads(userTimeline.read()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ModifyTableStyle() | |
On Error Resume Next | |
For Each i In ActiveDocument.Tables() | |
' Stroke around table at bold single line. | |
With i.Borders(wdBorderTop) | |
.LineStyle = wdLineStyleSingle | |
.LineWidth = wdLineWidth150pt | |
.Color = Options.DefaultBorderColor | |
End With |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" A ref source for alc. | |
" Version: 0.2.1 | |
" Author : soh335 <sugarbabe335@gmail.com> | |
" : thinca <thinca+vim@gmail.com> | |
" License: Creative Commons Attribution 2.1 Japan License | |
" <http://creativecommons.org/licenses/by/2.1/jp/deed.en> | |
let s:save_cpo = &cpo | |
set cpo&vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <CoreFoundation/CoreFoundation.h> | |
#import <objc/runtime.h> | |
#import <UIKit/UIKit.h> | |
@class UIKeyboardLayoutStar; | |
static BOOL replaced_UIKeyboardLayoutStar_shouldShowDictationKey(UIKeyboardLayoutStar *self, SEL _cmd) { | |
return NO; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <CoreFoundation/CoreFoundation.h> | |
#import <objc/runtime.h> | |
#import <UIKit/UIKit.h> | |
#import <substrate.h> | |
@class UIKeyboardLayoutStar; | |
static BOOL replaced_UIKeyboardLayoutStar_shouldShowDictationKey(UIKeyboardLayoutStar *self, SEL _cmd) { | |
// can be able to call original method. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
THEOS_INSTALL_DIR="/opt" | |
THEOS=${THEOS_INSTALL_DIR}/theos | |
BIGBOSS_REPO="http://apt.thebigboss.org/repofiles/cydia" | |
SUBSTRATE_REPO="http://apt.saurik.com" | |
# initial theos install directory check | |
if [ ! -d "$THEOS_INSTALL_DIR" ]; then | |
echo "making $THEOS_INSTALL_DIR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
day23 = datetime.datetime(2012, 10, 23) | |
day24 = datetime.datetime(2012, 10, 24) | |
# dictionary does not have order. | |
dict = {day24 : 24, day23 : 23} | |
# get first key | |
sorted(dict.keys())[0] | |
# get last key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'classTextile.php'; | |
if ( isset($_SERVER['PATH_TRANSLATED']) ) { | |
$file = realpath($_SERVER['PATH_TRANSLATED']); | |
$ext = substr($file, strrpos($file, '.') + 1); | |
} | |
if ( $file and is_readable($file) and $ext === 'textile') { | |
$textile = new Textile(); |