Based on this: http://blennd.com/post/the-pains-of-installing-tmux-on-a-shared-server/ Script forked from https://gist.github.com/shime/5706655/
- gcc
- wget
Based on this: http://blennd.com/post/the-pains-of-installing-tmux-on-a-shared-server/ Script forked from https://gist.github.com/shime/5706655/
| var Promise = require('bluebird'); | |
| const scores = require('./lib/db'); | |
| var LineByLineReader = require('line-by-line'), | |
| lr = new LineByLineReader('scores.json'); | |
| lr.on('line', function(line) { | |
| var data = JSON.parse(line); | |
| var id = data['_id']; | |
| console.log(id, data.revisions.length); |
| // Hellofs implements a simple "hello world" file system. | |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" | |
| "bazil.org/fuse" |
| function ArraySet() { | |
| this._items = []; | |
| } | |
| ArraySet.prototype.add = function add(item) { | |
| if (this._items.indexOf(item) > -1) { | |
| return false; | |
| } | |
| this._items.push(item); | |
| return true; |
| function parseCSV(str) { | |
| var arr = []; | |
| var quote = false; | |
| for (var row = col = c = 0; c < str.length; c++) { | |
| var cc = str[c], nc = str[c+1]; | |
| arr[row] = arr[row] || []; | |
| arr[row][col] = arr[row][col] || ''; | |
| if (cc == '"' && quote && nc == '"') { arr[row][col] += cc; ++c; continue; } | |
| if (cc == '"') { quote = !quote; continue; } |
| var iters = 100000; | |
| // Many require calls | |
| var start = process.hrtime(); | |
| for (var i = 0; i < iters; i++) { | |
| require('fs'); | |
| } | |
| console.log('Many require calls: ' + process.hrtime(start)[1]/1000000 + ' milliseconds'); | |
| // Many noop function calls |
| using System; | |
| using System.Collections.Generic; | |
| // From http://visualstudiomagazine.com/articles/2012/11/01/priority-queues-with-c.aspx | |
| public class PriorityQueue<T> where T : IComparable<T> { | |
| private List<T> data; | |
| public PriorityQueue() { | |
| this.data = new List<T>(); | |
| } |
| ruleset foursquare_checkins { | |
| meta { | |
| name "Foursquare Checkins" | |
| description << | |
| Foursquare Checkins | |
| >> | |
| author "" | |
| logging off | |
| use module a169x701 alias CloudRain | |
| use module a41x186 alias SquareTag |
| using System; | |
| using System.Diagnostics; | |
| using System.Collections.Generic; | |
| namespace Simplex { | |
| class Simplex { | |
| private double[] c; | |
| private double[,] A; | |
| private double[] b; | |
| private HashSet<int> N = new HashSet<int>(); |
| ruleset twilio { | |
| meta { | |
| use module b505206x2 alias LocationData | |
| } | |
| rule nearby { | |
| select when location new_current | |
| pre { | |
| checkin = LocationData:get_location_data("fs_checkin"); |