Inspired by: http://imgur.com/r1zM60O
- ลงแอพที่ Apple ไม่ให้อยู่บน App Store
- คือแอพที่ใช้คำสั่งที่แอปเปิลไม่อนุญาตให้แอพธรรมดาใช้ (เป็นคำสั่งที่ iOS เอาไว้ใช้ภายใน)
Inspired by: http://imgur.com/r1zM60O
| var ANIMALS = { | |
| 1: { name: 'fly' }, | |
| 2: { name: 'spider', interjection: "It wriggled and jiggled and tickled inside her.\n", | |
| add: " that wriggled and jiggled and tickled inside her" }, | |
| 3: { name: 'bird', interjection: "How absurd to swallow a bird!\n" }, | |
| 4: { name: 'cat', interjection: "Imagine that, to swallow a cat!\n" }, | |
| 5: { name: 'dog', interjection: "What a hog, to swallow a dog!\n" }, | |
| 6: { name: 'goat', interjection: "Just opened her throat and swallowed a goat!\n" }, | |
| 7: { name: 'cow', interjection: "I don't know how she swallowed a cow!\n" }, | |
| 8: { name: 'horse', interjection: "She's dead, of course!\n" }, |
| #!/usr/bin/env osascript -l JavaScript | |
| ObjC.import('Cocoa') | |
| function alert(text) { | |
| var alert = $.NSAlert.alloc.init | |
| var window = alert.window | |
| window.level = $.NSStatusWindowLevel | |
| alert.messageText = text | |
| var result = alert.runModal |
| #!/usr/bin/python | |
| # Based on http://www.acmesystems.it/python_httpserver | |
| from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
| import os | |
| class MyRequestHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): | |
| if self.path == '/play': | |
| self.play() |
| |----+----+----+----|----+----+----+----|----+----+----+----|----+----+----+----| | |
| | Mi DO Ti | Violin | |
| | | String | |
| | [E] | Chord | |
| |----+----+----+----|----+----+----+----|----+----+----+----|----+----+----+----| | |
| | Mi Mi DO Ti Li La Sol Fa | | |
| | mi si sol mi | | |
| | [Am] [E] [Gm] [C] | | |
| |----+----+----+----|----+----+----+----|----+----+----+----|----+----+----+----| | |
| | Mi Re la Re Mi Mi DO Ti | |
| #!/usr/bin/env ruby | |
| sleep 1 until `osascript -e 'text returned of (display dialog "Say you need to take a break" default answer "")'` =~ /I need to take a break/ | |
| `osascript -e 'tell application "System Events" to start current screen saver'` | |