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
# project 為你的專案名 | |
project="wushark" | |
# 下載 mochiweb 並 建立你的專案 | |
git clone git://github.com/mochi/mochiweb.git | |
cd mochiweb && make app PROJECT=$project && cd .. | |
git init $project | |
cd $project |
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
% 博迪先生死於謀殺, | |
% 現有六個嫌疑犯, | |
% 每個人在不同的房間, | |
% 每間房間各有一件可能的凶器,但不知道嫌疑犯、房間、凶器的對應關系。請根據下面的條件和線索,找出誰是凶手。 | |
% 已知條件: | |
% 六個嫌疑犯是三男 喬治、約翰、羅伯特;三女 芭芭拉、克里斯汀、約蘭達。 | |
男人(喬治). 男人(約翰). 男人(羅伯特). | |
女人(芭芭拉). 女人(克里斯汀). 女人(約蘭達). |
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 | |
guard let SRCROOT = ProcessInfo.processInfo.environment["SRCROOT"] else { | |
fputs("not define SRCROOT\n", stderr) | |
exit(-1) | |
} | |
guard let PROJECT_NAME = ProcessInfo.processInfo.environment["PROJECT_NAME"] else { | |
fputs("not define PROJECT_NAME\n", stderr) | |
exit(-1) |
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 <UIKit/UIKit.h> | |
NS_ASSUME_NONNULL_BEGIN | |
@interface UIImagePickerController (FixCannotMoveEditingBox) | |
- (void)fixCannotMoveEditingBox; | |
@end |
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>Watch1,1 </key> | |
<string> Apple Watch 38mm case</string> | |
<key>Watch1,2 </key> | |
<string> Apple Watch 42mm case</string> | |
<key>Watch2,3 </key> | |
<string> Apple Watch Series 2 38mm case</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
{ | |
"title": "elecom", | |
"rules": [ | |
{ | |
"description": "normal", | |
"manipulators": [ | |
{ | |
"description": "back: ⌘[", | |
"from": { | |
"pointing_button": "button4" |
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 JavaScriptCore | |
extension JSContext { | |
subscript(key: String) -> Any { | |
get { | |
return self.objectForKeyedSubscript(key) as Any | |
} | |
set{ | |
self.setObject(newValue, forKeyedSubscript: key as NSCopying & NSObjectProtocol) | |
} |
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
50 4B 03 04 文件頭標識,值固定(0x04034b50) (read as a little-endian number) | |
14 00 解壓文件所需 pkware最低版本 | |
00 00 通用比特標誌位(置比特0位=加密 | |
08 00 壓縮方式 | |
CC 71 文件最後修改時間 | |
11 49 文件最後修改日期 | |
8A 66 6C 8B CRC-32校驗碼 | |
2C 02 00 00 壓縮後的大小(556) | |
D1 08 00 00 未壓縮的大小(2257) | |
29 00 文件名長度(41) |
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 Cocoa | |
guard | |
let downloads = FileManager.default.urls(for: .downloadsDirectory, in: .userDomainMask).first | |
else { exit(-1) } | |
var file = downloads.appendingPathComponent("godzilla.jpg") | |
guard | |
let image = NSImage(contentsOf: file), |
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 zsh | |
function precmd(){ | |
autoload -U add-zsh-hook | |
PROMPT='%(?.🐙.💢) ' | |
} |