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
Process: Chocolat [29947] | |
Path: /Users/USER/Downloads/Chocolat.app/Contents/MacOS/Chocolat | |
Identifier: com.chocolatapp.Chocolat | |
Version: 2.1 (2.1) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [155] | |
Responsible: Chocolat [29947] | |
User ID: 501 | |
Date/Time: 2013-12-10 02:03:01.690 -0600 |
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 SuperSillyHash | |
def []=(key, value) | |
super(key, value.to_i) | |
end | |
end | |
hash = {} | |
hash.extend(SuperSillyHash) | |
hash[:test] = '20' |
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
var test: UIView = nil |
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
(define (square x) | |
(* x x)) |
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
type file; | |
app (file o) simulate_app () | |
{ | |
simulate stdout=filename(o); | |
} | |
foreach i in [1:10] { | |
string fname=strcat("output/sim_", i, ".out"); | |
file f <single_file_mapper; file=fname>; |
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
extension NSFileManager { | |
func fileExists(path: String) -> (Bool, isDirectory: Bool) { | |
var dir: ObjCBool = true | |
let status = self.fileExistsAtPath(path, isDirectory: &dir) | |
return (status, dir.boolValue) | |
} | |
} | |
NSFileManager.defaultManager().fileExists("/Applications").isDirectory |
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
App = Application.currentApplication(); | |
App.includeStandardAdditions = true | |
App.say("Hello from Dan's JavaScript automation!!!"); |
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
rm -rf ~/Library/Preferences/com.apple.appstore.plist | |
rm -rf ~/Library/Preferences/com.apple.storeagent.plist | |
rm -rf ~/Library/Preferences/ByHost/* |
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 sys | |
n = None | |
try: | |
n = int(sys.argv[1]) | |
except (ValueError, IndexError) as e: | |
pass # Ignore error here | |
if (len(sys.argv) == 1) or (n is None): |
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
{% from "macros.html" import nav_link with context %} | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Flask Template Example</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
div#main { | |
max-width: 500px; | |
padding: 20px; |
OlderNewer