Skip to content

Instantly share code, notes, and snippets.

View elskwid's full-sized avatar
🤡

Don Morrison elskwid

🤡
View GitHub Profile

TravisCI Flowdock notifications for public repo and private flowdock rooms

notifications:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowGroupToSeeBucketListInTheConsole",
"Action": [
"s3:ListAllMyBuckets",
"s3:GetBucketLocation"
],
"Effect": "Allow",
#
#!optional
#!rest
#(
#\
#\altmode
#\backnext
#\backspace
#\call
#\linefeed
@elskwid
elskwid / gem-reset
Last active August 29, 2015 14:11 — forked from nixpulvis/gem-reset
#!/usr/bin/env ruby
# Remove all gems EXCEPT defaults :)
`gem list -d`.split(/\n\n^(?=\w)/).each do |data|
match = data.match(/(?<name>([^\s]+)) \((?<versions>.*)\)/)
name = match[:name]
versions = match[:versions].split(', ')
if match = data.match(/^.*\(([\d\.]*),? ?default\): .*$/)
next if match[1].empty? # it's the only version if this match is empty
gem "rom", github: 'rom-rb/rom', branch: 'master'
gem "rom-sql", github: 'rom-rb/rom-sql', branch: 'master'
gem "rom-rails", github: 'rom-rb/rom-rails', branch: 'master'
gem_group(:test) do
gem "rspec"
gem "rspec-rails"
gem "capybara"
gem "spring-commands-rspec"
end
importPackage(java.io);
importPackage(java.lang);
System.out.println("JavaScript!");
// create some variables to use
// TERM: assignment
var a = 1;
var b = 2;
var c = 3;
@elskwid
elskwid / ex.scala
Created October 6, 2015 23:16 — forked from penryu/ex.scala
object Example {
def main(args: Array[String]): Unit = {
println("Scala!")
// create some values to use
// TERM: assignment
val a = 1
val b = 2
val c = 3