Copy these files to your ~/Library/Application Support/Notational Velocity/
folder
This file contains hidden or 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
<select> | |
<option value="1">Hokkaido</option> | |
<option value="2">Aomori</option> | |
<option value="3">Iwate</option> | |
<option value="4">Miyagi</option> | |
<option value="5">Akita</option> | |
<option value="6">Yamagata</option> | |
<option value="7">Fukushima</option> | |
<option value="8">Ibaraki</option> | |
<option value="9">Tochigi</option> |
This file contains hidden or 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
// | |
// UIApplication+UIID.h | |
// UIID | |
// | |
// Created by akisute on 11/08/22. | |
// | |
#import <UIKit/UIKit.h> | |
This file contains hidden or 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
/* | |
UIWebViewのUserAgentを取得 | |
*/ | |
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero]; | |
NSString *ua = [webView stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"]; | |
NSLog(@"userAgent >>> %@", ua); | |
[webView release]; | |
// ASIHTTPRequestにUserAgentを設定 | |
// [ASIHTTPRequest setDefaultUserAgentString:ua]; |
This file contains hidden or 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 os | |
import csv | |
from subprocess import Popen, PIPE | |
from Foundation import NSMutableDictionary | |
build_number = os.popen4("git rev-parse --short HEAD")[1].read() | |
info_plist = os.environ['BUILT_PRODUCTS_DIR'] + "/" + os.environ['WRAPPER_NAME'] + "/Info.plist" | |
# Open the plist and write the short commit hash as the bundle version | |
plist = NSMutableDictionary.dictionaryWithContentsOfFile_(info_plist) |
This file contains hidden or 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
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'; |
This file contains hidden or 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
using terms from application "iChat" | |
on message received this_message from this_buddy for this_chat | |
(*EXAMPLE: this routine automatically sends a random response to messages from specified buddies | |
set this_name to the name of this_buddy | |
if the name of this_buddy is in {"Johnny Appleseed"} then | |
set canned_responses to {"Oh, I know!", "I was just thinking about that.", "Maybe tomorrow.", "Seems logical."} | |
set this_response to some item of the canned_responses | |
send this_response to this_chat | |
end if | |
*) |
This file contains hidden or 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
framework 'AppKit' | |
IGNORE = { | |
'com.apple.finder' => true, | |
'com.apple.Terminal' => true, | |
} | |
apps = NSWorkspace.sharedWorkspace.runningApplications | |
apps.each do |app| | |
if app.activationPolicy == NSApplicationActivationPolicyRegular | |
app.terminate unless IGNORE[app.bundleIdentifier] |
OlderNewer