if Meteor.isClient
Session.setDefault('app.ports', ['test'])
Template.content.helpers(
app: ->
ports: Session.get('app.ports')
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
/* generator | |
* | |
* takes a chance value, C, an array of objects, and returns a Generator | |
* function that computes a random value, R. if R < C the Generator returns | |
* nothing, else the Generator returns a random item from the array of | |
* objects. | |
* | |
* params: | |
* chance: floating point value between [0,1]. | |
* objs: array of objects to select from. |
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
// need a static local variable here to ensure all new stats have unique'ish ids. | |
// stacking the same modifier is not possible. create a new object of the same modifier in order | |
// to apply the same effect twice. | |
var StatModifier = (function () { | |
var idCounter = 0; | |
return Base.extends({ | |
id: 0, | |
name: '', | |
affects: '', |
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
// don't leak observes in Meteor.publish callback. Define only one instance for server of buyer and distributor ids for reactive counts. | |
var buyers = new Meteor.Collection(null); | |
var distributors = new Meteor.Collection(null); | |
var observer = { | |
added: function (doc) { | |
if (isBuyer(doc)) | |
buyers.insert({ _id: doc._id }); | |
else if (isDistrib(doc)) |
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
.meteor |
- Nmap. The script requires version 6.25 or newer. The latest version, 6.47, already includes the next 3 dependencies, so you can skip directly to the Scanning section below.
- An easy way to get the latest Nmap release is to use Kali Linux.
- Binary installers are available for Windows.
- RPM installer available for Linux, or install from source.
- .dmg installer available for Mac OS X.
- tls.lua. The script requires this Lua library for TLS handshaking.
- ssl-heartbleed.nse. This is the script itself.
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
const R = require('ramda'); | |
const Future = require('ramda-fantasy').Future; | |
// :: Int -> [Future a b] -> Future a [b] | |
// number of workers :: Int | |
// tasks to do :: [Future a b] | |
const batchParallel = R.curry((N, as) => { | |
if (0 === as.length || N < 1) { | |
return Future.of([]); | |
} |
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 { __, always, call, compose, concat, cond, converge, curry, equals, | |
flatten, head, init, is, isEmpty, join, last, map, of, path, prop, | |
split, T, tail, toPairs, toString, trim, unapply } from 'ramda'; | |
// :: String -> String | |
const indent = curry((level, a) => concat(' '.repeat(level), a)); | |
// :: [String] -> String | |
const joinLines = join('\n'); |
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
commit 360527e99cbae6fc702615e9f03485210bccbc89 | |
Author: Justin Charette <[email protected]> | |
Date: Sun Apr 3 18:23:45 2016 -0400 | |
track review counts per profile and show in developer profile boxes | |
Signed-off-by: Justin Charette <[email protected]> | |
diff --git a/both/collections/reviewCounts.js b/both/collections/reviewCounts.js | |
new file mode 100644 |
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
⯈ pacman -Qs clang | |
local/clang35 3.5.2-3 | |
C language family frontend for LLVM | |
⯈ pacman -Qs llvm | |
local/clang35 3.5.2-3 | |
C language family frontend for LLVM | |
local/lib32-llvm-libs 3.9.0-1 # dep for lib32-mesa | |
Low Level Virtual Machine (runtime library)(32-bit) | |
local/llvm-libs 3.9.0-1 # dep for mesa and rust |
OlderNewer