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
# encoding: UTF-8 | |
require 'rubygems' | |
require 'uri' | |
require 'open-uri' | |
require 'json' | |
require 'nokogiri' | |
require 'appscript' | |
HTTP = 'http://' |
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
# encoding:UTF-8 | |
require 'rubygems' | |
require 'appscript' | |
itunes = Appscript.app('iTunes') | |
p itunes.current_track.name.get() |
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
// clang -o nsFileVersionTest nsFileVersionTest.m -lobjc -framework Cococa | |
#import <Cocoa/Cocoa.h> | |
void applicationMain() | |
{ | |
NSURL *url = [NSURL fileURLWithPath:@"/Users/SKAhack/Desktop/Test.txt" isDirectory:NO]; | |
NSArray *versions = [NSFileVersion otherVersionsOfItemAtURL:url]; | |
for (NSFileVersion *f in versions) { |
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
diff --git a/colors/rdark-terminal.vim b/colors/rdark-terminal.vim | |
index c16e19e..5c6cf8a 100644 | |
--- a/colors/rdark-terminal.vim | |
+++ b/colors/rdark-terminal.vim | |
@@ -27,7 +27,7 @@ let colors_name="rdark-terminal" | |
hi clear CursorLine | |
hi CursorLine ctermbg=8 | |
-hi Normal term=NONE cterm=NONE ctermbg=0 ctermfg=252 | |
+hi Normal term=NONE cterm=NONE ctermbg=235 ctermfg=252 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>1 1 1 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>Menlo-Bold - 11.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>1 1 1 1</string> |
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
2011-08-18 20:17:44.405 ****[1913:707] Lookup: Unhandled exception 'NSRangeException' caught in __56+[LULookupDefinitionModule focusTermUsingQueue:handler:]_block_invoke_0 |
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
// self = NSView | |
//NSRect rect; | |
// 画面左下が起点の座標系に変換 | |
rect = [self convertRectToBase:rect]; | |
// スクリーン座標系に変換 | |
rect.origin = [[self window] convertBaseToScreen:rect.origin]; |
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
javascript:(function(){var s='';for(var i in es){if(!isNaN(i)&&es[i][1]==='1')s=s+es[i][5]+" : "+es[i][14]+"\n";}alert(s)})() |
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
clone = (n) -> | |
if Array.isArray(n) | |
re = [].concat n | |
else | |
re = Object.extended({}) | |
for key in n | |
re[key] = n[key] | |
re | |
foldr = (f) -> (x) -> (y) -> |
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
module Main where | |
data Option = | |
Option | |
{ option1 :: String | |
, option2 :: Maybe String | |
, option3 :: Maybe String | |
} deriving (Show) | |