Skip to content

Instantly share code, notes, and snippets.

diff --git a/syntax/go.vim b/syntax/go.vim
index 59f72ed..6684873 100644
--- a/syntax/go.vim
+++ b/syntax/go.vim
@@ -107,10 +107,10 @@ syn match goDeclaration /\<func\>/
" Predefined functions and values
syn keyword goBuiltins append cap close complex copy delete imag len
syn keyword goBuiltins make new panic print println real recover
-syn keyword goConstants iota true false nil
+syn keyword goBoolean iota true false nil
@cam72cam
cam72cam / complete.sh
Last active August 29, 2015 14:09 — forked from pcreux/complete.sh
# specs and cukes results are stored in JUnit format under test-reports
if [ -f SUCCESS ]; then
curl -H "Authorization: token MY_TOKEN" --request POST --data '{"state": "success", "description": "Success!", "target_url": "${bamboo.buildResultsUrl}"}' https://api.github.com/repos/USER/REPO/statuses/${bamboo.repository.revision.number} > /dev/null
else
curl -H "Authorization: token MY_TOKEN" --request POST --data '{"state": "failure", "description": "Failed!", "target_url": "${bamboo.buildResultsUrl}"}' https://api.github.com/repos/USER/REPO/statuses/${bamboo.repository.revision.number} > /dev/null
rm SUCCESS
fi
<font color="#A82F2F"><font size="2">(08:56:31 PM)</font> <b>richteer:</b></font> !quoteadd Holy shit it didn't segfault!<br/>
<font color="#16569E"><font size="2">(08:57:04 PM)</font> <b>meshca:</b></font> !quoteadd richteer 0<br/>
<font color="#16569E"><font size="2">(08:57:22 PM)</font> <b>meshca:</b></font> !quoteadd [user] [messageoffset]<br/>
<font color="#A82F2F"><font size="2">(12:22:05 PM)</font> <b>Hal:</b></font> Registered commands: !reloadquotes,!quote,!quoteadd<br/>
<font color="#A82F2F"><font size="2">(12:22:15 PM)</font> <b>richteer:</b></font> !quoteadd I am a motherfucking sorcerer - Eric<br/>
<font color="#A82F2F"><font size="2">(12:26:49 PM)</font> <b>richteer:</b></font> !quoteadd No quotes match your string - Hal<br/>
<font color="#A82F2F"><font size="2">(12:27:09 PM)</font> <b>exm:</b></font> !quoteadd !quote !quote<br/>
<font color="#A82F2F"><font size="2">(12:29:05 PM)</font> <b>Hal:</b></font> Registered commands: !reloadquotes,!quote,!quoteadd<br/>
<font color="#A82F2F"><font size="
@cam72cam
cam72cam / scriptsbw.zs
Created December 23, 2014 16:21
Builder's wand minetweaker
import mods.nei.NEI;
var diamond = <minecraft:diamond>;
var rod = <minecraft:blaze_rod>;
var wand = <ExtraUtilities:builderswand>;
recipes.addShaped(wand, [[diamond, diamond, diamond],
[diamond, rod, diamond],
[diamond, diamond, diamond]]);
A => B => C => A(+foo) => B(-bar) !=> C FAIL
A => { B }
A(+foo) => { B(-bar) }
B => { C }
B(-bar) !=> { }
C => A(+foo)
Start: A
require B
A => B => C => A(+foo) => D => C OK!
Start: A
require B
B
require C
C
require A[+foo]
A[+foo]
require D
input {
stdin {
codec => multiline {
pattern => "^\s"
what => "previous"
}
}
}
output {
elasticsearch {
{ "test": "asdf",
"bar": 1234 }
{ "test": "asdf", "bar": 123445 }
@cam72cam
cam72cam / gist:f6253592faf5ee59be08
Created March 19, 2015 21:09
COSI Hist from JNM
Jeanna arrived in 2000
Jan had VR lab in 2nd floor SC
Negotiated to get space for graduate students prior to arrival, got 4th floor SC
There was a PC lab in ERC with cisco networking academy
Jeanna got a grant to repurpose that lab to be the ITL
First spring was in 2001, taught undergrad OS.
started using vmware for hands-on OS labs in the present-day ITL
Another professor suggested that COSI room be used as COSI.
name="glib2"
iteration="3"
version="2.38.2"
desc="Common C routines used by GTK+ and other libs"
url="http://www.gtk.org/"
src=('http://ftp.gnome.org/pub/GNOME/sources/glib/2.38/glib-2.38.2.tar.xz')
bdeps=('libc(+dev)' 'pkg-config' 'zlib(+dev)' 'pcre(+dev)' 'libffi(+dev)' 'python2')
deps=('libc' 'libffi' 'zlib' '[-dev]pcre' '[+dev]python2' '[+dev]pcre(+dev)')
flags=('-dbg' '-dev' '-doc' '+locale')
srcdir="glib-$version"