The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
ANY = "ANY" | |
# Public: Logic engine | |
# | |
# args: the criteria to match against | |
# | |
# Examples | |
# | |
# args = {noncitizen: true, in_prison: false, term_served: true, paroled: true, on_probation: false, fines_paid: true, num_years_since_release: 5, felony_type: "robbery"} | |
# Engine.check(args) | |
# # => ["alabama"] |
source "https://api.berkshelf.com" | |
metadata | |
cookbook 'apt' | |
cookbook 'build-essential' | |
cookbook 'postgresql' | |
cookbook 'ruby_build' | |
cookbook 'nodejs', github: "mdxp/nodejs-cookbook" | |
cookbook 'git' |
Vagrant.configure("2") do |config| | |
# Forward the Rails server default port to the host | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
# config.omnibus.chef_version = :latest | |
# config.omnibus.chef_version = "11.10.0" | |
# config.berkshelf.enabled = true | |
config.librarian_chef.cheffile_dir = "./" |
Vagrant.configure("2") do |config| | |
config.omnibus.chef_version = :latest | |
config.librarian_chef.cheffile_dir = "./" | |
# Sets up the proxy VM | |
config.vm.define "phusion" do |v| | |
v.ssh.port = 22 | |
v.ssh.username = "root" |
{ | |
"kind": "civicinfo#voterInfoResponse", | |
"status": "success", | |
"election": { | |
"id": "4047", | |
"name": "NY 2014 Primary", | |
"electionDay": "2014-09-09" | |
}, | |
"normalizedInput": { | |
"line1": "2313 28th ave", |
gulp = require('gulp'); | |
lr = require('gulp-livereload'); | |
gulp.task('watch', function() { | |
lr.listen() | |
dest = ["app/views/**","app/assets/**"]; | |
gulp.watch(dest).on('change', function(file) { | |
lr.changed(file.path); | |
}); | |
}); |
# A CoffeeScript version of http://norvig.com/spell-correct.html | |
[fs, _] = [require("fs"), require("underscore")] | |
words = (text) -> text.toLowerCase().match /[a-z]+/g | |
train = (features) -> | |
model = {} | |
_.each features, (f) -> if model[f] then model[f] += 1 else model[f] = 1 | |
model |
// Application manifest | |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.volkanunsal.mtawear" > | |
<uses-sdk android:minSdkVersion="18" | |
android:targetSdkVersion="21" /> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
The database cluster will be initialized with locale "en_US.utf8". | |
The default database encoding has accordingly been set to "UTF8". | |
The default text search configuration will be set to "english". | |
Data page checksums are disabled. | |
fixing permissions on existing directory /var/lib/postgresql/data ... ok | |
creating subdirectories ... ok | |
selecting default max_connections ... 100 | |
[2015-041.548093918Z] selecting default shared_buffers ... 128MB |