Initially taken by Niko Matsakis and lightly edited by Ryan Levick
- Introductions
- Cargo inside large build systems
- FFI
- Foundations and financial support
| package-lock.json | |
| node_modules |
| /* open a file and print its contents */ | |
| var fs = require('fs'); | |
| var cat_file = function(path,stream,completion_callback) { | |
| fs.open(path,'rs',function(err,fd) { | |
| var buf_size = 4096; | |
| var buf = new Buffer(buf_size); |
| #!/usr/bin/env bash | |
| sudo locale-gen en_US.UTF-8 | |
| sudo update-locale LANG=en_US.UTF-8 | |
| sudo update-locale LC_ALL=en_US.UTF-8 | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential git curl libxslt1-dev libxml2-dev libssl-dev | |
| # postgres |
| (require '[clojure.core.async :as a]) | |
| (def xform (comp (map inc) | |
| (filter even?) | |
| (dedupe) | |
| (flatmap range) | |
| (partition-all 3) | |
| (partition-by #(< (apply + %) 7)) | |
| (flatmap flatten) | |
| (random-sample 1.0) |
| R = React.DOM | |
| nations = ['britain', 'ireland', 'norway', 'sweden', 'denmark', 'germany', | |
| 'holland', 'belgium', 'france', 'spain', 'portugal', 'italy', 'switzerland'] | |
| Typeahead = React.createClass | |
| getInitialState : -> {input: ""} | |
| handleChange : -> @setState input: @refs.field.getDOMNode().value | |
| handleClick : (nation)-> @setState input: nation | |
| matches : (input)-> |
| /** | |
| * Simple userland heapdump generator using v8-profiler | |
| * Usage: require('[path_to]/HeapDump').init('datadir') | |
| * | |
| * @module HeapDump | |
| * @type {exports} | |
| */ | |
| var fs = require('fs'); | |
| var profiler = require('v8-profiler'); |
| print("hello from a python script") |