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
| -- This script includes examples for using AppleScript to perform several | |
| -- useful tasks with Evernote. | |
| -- Each section illustrates a chunk of Evernote's AppleScript interface, | |
| -- and each section also cleans up after itself. | |
| -- Please refer to the Evernote application's scripting dictionary for |
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
| --type-add=css=.sass,.less,.scss | |
| --type-add=ruby=.rake,.rsel,.builder,.thor | |
| --type-add=html=.haml,.html.erb,.html.haml | |
| --type-add=js=.js.erb,.coffee | |
| --type-set=cucumber=.feature | |
| --type-set=c=.c,.cpp,.ino,.pde,.h | |
| --ignore-dir=vendor | |
| --ignore-dir=log | |
| --ignore-dir=tmp | |
| --ignore-dir=doc |
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
| #!/usr/bin/env ruby | |
| rss = '.+?Rss:\s+(\d+)' | |
| share = '.+?Shared_Clean:\s+(\d+)' | |
| share << '.+?Shared_Dirty:\s+(\d+)' | |
| priv = '.+?Private_Clean:\s+(\d+)' | |
| priv << '.+?Private_Dirty:\s+(\d+)' | |
| MEM_REGEXP = /\[heap\]#{rss}#{share}#{priv}/m | |
| def mem_usage() |
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
| upstream rrbackend { | |
| server 127.0.0.1:8080 weight=3; | |
| server 127.0.0.1:8888; | |
| } | |
| map $cookie_backend $backend { | |
| default rrbackend; | |
| experimental 127.0.0.1:8888; | |
| } |
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
| var activity = Ti.Android.currentActivity; | |
| var win = Ti.UI.currentWindow; | |
| activity.addEventListener("create", function(e) { | |
| var button = Ti.UI.createButton({title: "Hello world"}); | |
| button.addEventListener("click", function(e) { | |
| activity.finish(); | |
| }); | |
| win.add(button); | |
| }); |
NewerOlder