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
" Enable syntax highlighting | |
" and apply our nice color theme | |
" | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() |
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
:profile_data | |
:ber | |
:value | |
11 | |
[:value 11] | |
{:value 11} | |
[:ber 11] | |
:event_type | |
:value | |
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
extractStream(req, function(err, dirname) { | |
if (err) | |
return res.json(500, {status: false, message: err.message}); | |
cp.exec("npm install", { | |
cwd: dirname | |
}, function(err, stdout, stderr) { | |
if (err) | |
return res.json({status: false, message: err.message}); |
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
// index.js | |
// Facebook login test! | |
// | |
var server = require("ferb")(), | |
session = require("express-session")({secret: '1234'}), | |
request = require("request"); | |
var FACEBOOK_APP_SECRET = "APP_SECRET", | |
FACEBOOK_APP_ID = "APP_ID"; |
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
;; How I am requiring the macros: | |
;; core.cljs | |
(ns pre-k-adventures.core | |
(:require [pre-k-adventures.util :as util] | |
[cljs.core.match]) | |
(:require-macros [cljs.core.match.macros :refer [match]] | |
[pre-k-adventures.macros :refer [offset-rand]])) | |
;; usage some where in core.cljs | |
;; |
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
(defmacro bind-handlers [type node cb & specs] | |
(let [attacher (if (= type :value) | |
'addValueEventListener | |
'addChildEventListener)] | |
`(cond | |
~@(for [[matchtype iface handler] specs] | |
(list | |
`(= ~type ~matchtype ) | |
`(. ~node ~attacher (reify ~iface | |
(~handler [this v] |
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
;; walk-root walks the root node to a child node on firebase, e.g. /hello -> /hello/child/node | |
;; (walk-root root-node [:child :node]) | |
;; bind is used like: | |
;; (bind root-node :value [:child :node] #(println "Changed to" %)) | |
;; | |
;; (let [c (bind root-node :value [:child :node])] | |
;; (go-loop [m (<! c)] | |
;; (println "Changed to" m) | |
;; (recur (<! c)))) |
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
/Users/verma/work/laz-perf/examples/readlaz.cpp:19:4: error: use of undeclared identifier 'FS' | |
FS.mkdir('/files'); | |
^ | |
/Users/verma/work/laz-perf/examples/readlaz.cpp:19:13: warning: multi-character character constant [-Wmultichar] | |
FS.mkdir('/files'); | |
^ | |
/Users/verma/work/laz-perf/examples/readlaz.cpp:19:13: warning: character constant too long for its type | |
/Users/verma/work/laz-perf/examples/readlaz.cpp:20:4: error: use of undeclared identifier 'FS' | |
FS.mount(NODEFS, { root: '.' }, '/files'); | |
^ |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |
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
#include <emscripten/bind.h> | |
using namespace emscripten; | |
class LASZip { | |
public: | |
LASZip() {} | |
void open(const char *buf, size_t len) { | |
printf("Got buffer: %p, size: %i", buf, len); | |
} |