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 drawShare = function (element, config) { | |
if (meteor && !meteor.missing(meteor.tracking.settings.cookie_name)) { | |
var bar_id = meteor.random_id(4); | |
config.node = document.createElement('div'); | |
config.node.id = bar_id; | |
config.node.className = "meteor_share_" + config.id; | |
config.node.style.position = 'relative'; | |
element.appendChild(config.node); | |
meteor.sharing.superbar.configure( |
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
INFO vagrant: `vagrant` invoked: ["up"] | |
DEBUG vagrant: Creating Vagrant environment | |
INFO environment: Environment initialized (#<Vagrant::Environment:0x7214>) | |
INFO environment: - cwd: /Users/benjamin/tmp/asdfavavav | |
INFO environment: Home path: /Users/benjamin/.vagrant.d | |
DEBUG vagrant: Loading environment | |
INFO environment: Loading configuration... | |
DEBUG loader: Set :default = "/Users/benjamin/projects/vagrant/config/default.rb" | |
DEBUG loader: Populating proc cache for "/Users/benjamin/projects/vagrant/config/default.rb" | |
DEBUG loader: Load procs for pathname: #<Pathname:/Users/benjamin/projects/vagrant/config/default.rb> |
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
Vagrant::Config.run do |config| | |
config.vm.box = "lucid64" | |
config.vm.network :hostonly, "33.33.33.10" | |
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
import sys | |
def foo(): | |
if False: | |
import sys | |
sys.exit(1) | |
print sys.argv[0] | |
foo() |
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
processDevice :: FilePath -> IO Int | |
processDevice fp = do | |
contents <- readFile $ fp ++ "/size" | |
return $ read contents | |
main = do | |
files <- getDirectoryContents "/sys/block/sda" | |
print $ map processDevice files | |
-- blockdevice.hs:33:2: |
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 Classes/Others/ValidateReceipt.m Classes/Others/ValidateReceipt.m | |
index 2db4b42..87d3a68 100755 | |
--- Classes/Others/ValidateReceipt.m | |
+++ Classes/Others/ValidateReceipt.m | |
@@ -323,68 +323,11 @@ CFDataRef copy_mac_address(void) | |
BOOL validateBinarySignature(NSString *authority) | |
{ | |
- OSStatus status = noErr; | |
- |
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
(defn my-window | |
"A version of streams/window that doesn't leak memory." | |
[n & children] | |
(let [window (atom (vec []))] | |
(fn [event] | |
(let [w (swap! window (fn [old] | |
(take-last n (conj old event))))] | |
(call-rescue w children))))) |
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
joxa-is> (defn foo () (io/format "asdf~p~n" '(14))) | |
ok | |
joxa-is> foo | |
:0:0 *error* reference does not exist: foo | |
error | |
joxa-is> (foo) | |
Function: 'interactive-name'/0 | |
error: {error,function_clause} : [{code,load_binary,['joxa-is',[],error],[{file,"code.erl"},{line,164}]}, | |
{'joxa-compiler','post-compile-process',1, | |
[{file,"/home/emerritt/workspace/joxa/src/joxa-compiler.jxa"}, |
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
;; Integrate terminal emacs with OSX pasteboard | |
(defun copy-from-osx () | |
(shell-command-to-string "pbpaste")) | |
(defun paste-to-osx (text &optional push) | |
(let ((process-connection-type nil)) | |
(let ((proc (start-process "pbcopy" "*Messages*" "pbcopy"))) | |
(process-send-string proc text) | |
(process-send-eof proc)))) |
OlderNewer