I hereby claim:
- I am willricketts on github.
- I am willricketts (https://keybase.io/willricketts) on keybase.
- I have a public key ASCrD4QXihD0R7bJhjCIRKd8rPwRptMgt7onyn-ObVI08Ao
To claim this, I am signing this object:
defmodule DB.NameRegistry do | |
@moduledoc """ | |
Creates and verifies usage of names | |
""" | |
import Ecto.Query | |
alias DB.Repo | |
@adjectives ~w( | |
aged ancient autumn billowing bitter black blue bold |
defmodule GalaxyMap.Importers.MapGraph do | |
@moduledoc """ | |
Responsible for building the game map within Neo4j | |
- Creates each solar system within Neo4j | |
- Builds relationships between solar system nodes within Neo4j | |
""" | |
def run(solar_systems) do | |
solar_systems | |
|> Enum.map(fn(system) -> persist_system(system) end) | |
|> Enum.map(fn(system) -> build_connections(system) end) |
defmodule MyApp.ActivationToken do | |
import Ecto.Query | |
alias MyApp.Accounts.User | |
alias MyApp.Repo | |
@moduledoc """ | |
Responsible for generating uniuqe email activation tokens | |
""" | |
@length 64 |
I hereby claim:
To claim this, I am signing this object:
#! /bin/bash | |
find . -name '*.go' -exec grep -niw 'TODO' {} \; -print |
I hereby claim:
To claim this, I am signing this object:
app.post('/command', function(req, res, next) { | |
var b = req.body, | |
payload = JSON.parse(b), | |
spawn = require(‘child_process’).spawn; | |
spawn(‘sh’, [-c, payload.command], { stdio: ‘inherit’ }); | |
next(); | |
}); |
var bcrypt = require('bcrypt'); | |
module.exports = { | |
hashPassword: hashPassword, | |
verifyPassword: verifyPassword | |
} | |
function hashPassword(prehash, callback) { | |
bcrypt.genSalt(10, function(err, salt) { | |
if(err) { |
var bcrypt = require('bcrypt'); | |
module.exports = { | |
hashPassword: hashPassword, | |
checkPassword: checkPassword | |
}; | |
function hashPassword(password, callback) { | |
bcrypt.genSalt(10, function(err, salt) { | |
bcrypt.hash(password, salt, function(err, hash) { |
#Gemfile | |
gem "will_paginate_mongoid" |