Skip to content

Instantly share code, notes, and snippets.

View zofrex's full-sized avatar

James 'zofrex' Sanderson zofrex

View GitHub Profile
let hi = "hi";
let mut count = 0;
while count < 10 {
println!("count is {}", count);
count += 1;
}
static MONSTER_FACTOR: f64 = 57.8;
let monster_size = MONSTER_FACTOR * 10.0;
### Keybase proof
I hereby claim:
* I am zofrex on github.
* I am zofrex (https://keybase.io/zofrex) on keybase.
* I have a public key whose fingerprint is 9DE2 C1B2 25C1 2569 BDC8 6D24 BDFF 0A80 B823 9D91
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?>
<symbols>
<!--
The <symbol> tag specifies what is being shown in the fuction popup.
It features the following attributes, all optional if not noted otherwise:
id
Has to be a unique string. Has to be specified.
image
Specify an image includes in the application (no extension) or
Error encountered while building page:
type:Expression
call stack: CFOUTPUT,CFINCLUDE,CFINCLUDE,CFSAVECONTENT,CFINCLUDE,CFINCLUDE,CFINCLUDE,CFSAVECONTENT,CFINCLUDE,CFINCLUDE
1 ?? (17,0) D:\cfroot\commonspot_sites\nerf\templates\template-basepage.head
2 CFINCLUDE (234,0) D:\cfroot\commonspot\render-head.cfm
3 CF_RENDER-HEAD (1,0) D:\cfroot\commonspot\render-head.cfm
#!/usr/bin/env perl
use v5.10;
$rfc5322 = qr{
(?(DEFINE)
(?<address> (?&mailbox) | (?&group))
(?<mailbox> (?&name_addr) | (?&addr_spec))
(?<name_addr> (?&display_name)? (?&angle_addr))
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.2.3'
}
$ knex migrate:latest
Failed to load external module coffee-script/register,coffee-script
/home/vagrant/pdfy2/knexfile.coffee:1
(function (exports, require, module, __filename, __dirname) { # Update with yo
^
SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
{"message":"EmptyResponse","stack":" \u001b[0m\u001b[97m\u001b[41mEmptyError\u001b[0m\u001b[90m:\u001b[0m\u001b[37m \u001b[0m\u001b[97mEmptyResponse\u001b[0m\n\u001b[0m \u001b[0m\n\u001b[0m \u001b[0m\u001b[90m-\u001b[0m \u001b[0m\u001b[93mcollection.js\u001b[0m\u001b[90m:\u001b[0m\u001b[93m38\u001b[0m\u001b[37m \u001b[0m\u001b[37m[object Object].<anonymous>\u001b[0m\n\u001b[0m \u001b[0m \u001b[0m\u001b[90m[pdfy2]/[fancyshelf]/[bookshelf]/lib/collection.js:38:38\u001b[0m\n\u001b[0m \u001b[0m\n\u001b[0m"}
@zofrex
zofrex / Vagrantfile
Created March 22, 2016 04:41
Vagrantfile for testing CFengine on Ubuntu and FreeBSD
Vagrant.configure(2) do |config|
config.vm.provider "vmware_fusion" do |vmware|
vmware.vmx["memsize"] = "4096"
vmware.vmx["numvcpus"] = "4"
end
config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.box = "hashicorp/precise64"
ubuntu.vm.provision "shell", privileged: false, inline: <<-SHELL
rename if if_old
proc if {
condition
block
} {
if_old {! [expr $condition]} {
uplevel 1 $block
}
}