Skip to content

Instantly share code, notes, and snippets.

View lance's full-sized avatar
🎯
Focusing

Lance Ball lance

🎯
Focusing
View GitHub Profile
@lance
lance / vertx-day.md
Last active December 26, 2015 06:09

Javascript Runtimes on Vert.x

Traditionally, the de facto Javascript runtime on the JVM has been Rhino. However with Vert.x 2.0 you can now also use DynJS for your Javascript applications with mod-lang-dynjs. In this talk we'll look at how the JS language modules have changed in Vert.x since 2.0 and discover some extra goodies DynJS brings to the table for your coding pleasure. Plus we'll explore some exciting Javascript modules for Vert.x, including Nodyn, a Node.js compatibility layer for the JVM.

@lance
lance / vertx-mtg-2.txt
Created August 20, 2013 17:45
Vert.x project planning discussion
[12:01:07] <purplefox_> Right.. let's get started then!
[12:01:21] <Narigo> pff, one minute too late!
[12:01:23] <purplefox_> Hello fellow vertizens and welcome to Part 2 of this Vert.x planning meeting
[12:01:36] <Narigo> hi there!
[12:01:43] <purplefox_> hi Narigo
[12:02:10] <purplefox_> so, last time we discussed changes to the vert.x core project for the next iteration (or iterations)
[12:02:23] tigeba verts.
[12:02:24] <purplefox_> today we will talking more about the greater module ecosystem
[12:02:40] <lanceball> morning!
[12:02:45] <purplefox_> and what we're currently missing, and what we would like to have, and what could be improved
@lance
lance / magicEightBall.js
Created July 27, 2013 19:34
A simple Magic Eight Ball implementation in DynJS. Usage: dynjs magicEightBall.js
// ---------------------------------------------------------------
// Tests __defineGetter__, __defineSetter__, __lookupGetter__ and
// __lookupSetter__ for dynjs/rhino compatibility.
// ---------------------------------------------------------------
var MagicEightBall = function() {
var that = this;
this._questions = [];
this._responses = [];
this._score = 0;
@lance
lance / vpn_toggle.scpt
Created May 29, 2012 12:08
Toggle VPN
tell application "System Events"
tell current location of network preferences
set VPNservice to service "NAME OF YOUR VPN"
if exists VPNservice then set isConnected to connected of current configuration of VPNservice
if isConnected is false then
connect VPNservice
else
disconnect VPNservice
@lance
lance / .java.env.sh
Created March 15, 2012 22:04
Java version switcher
# Props to qmx and abstractj for the inspiration
#
# Put this file in your home directory and these lines to .profile
# if [[ -f "$HOME/.java.env" ]]; then
# source "$HOME/.java.env";
# fi
VERSION=$1
if [ ! -n "$VERSION" ]
@jm
jm / gist:1146838
Created August 15, 2011 14:15
Hoedown 2011 Schedule
RUBY HOEDOWN 2011
Day 1
-----
8:00 - Registration opens
9:00 - Kickoff with The Improv Effect
10:00 - TorqueBox: A True Application Server for Ruby
@lance
lance / gist:967267
Created May 11, 2011 20:28
Go The Fuck To Sleep
The cats nestle close to their kittens now.
The lambs have laid down with the sheep.
You’re cozy and warm in your bed, my dear.
Please go the fuck to sleep.
The windows are dark in the town, child.
The whales huddle down in the deep.
I’ll read you one very last book if you swear
You’ll go the fuck to sleep.
@lance
lance / config.ru
Created May 10, 2011 19:37
A Very Simple Sinatra App With TorqueBox
require 'rubygems'
require 'sinatra'
module Simple
class Application < Sinatra::Base
get '/' do
"Hello! TorqueBox says it's #{Time.now}."
end
end
end
Quicksort
=========
I happened across a big pile of stuff
And decided that it should be sorted.
The time I could spend was hardly enough,
Any more time could not be afforded.
I picked up a thing, at random, I'm sure,
And to each of the rest I compared it.
I made two more piles of stuff, as it were:
@lance
lance / steamcannon-amis.txt
Created November 16, 2010 23:17
SteamCannon 1.2 AMIs
frontend-64 1.2.final: 0606f16f
frontend-32: 1.2.final: 6e05f207
appserver-64 1.2.final: ec06f185
appserver-32: 1.2.final: 7005f219
postgresql-64 1.2.final: ee06f187
postgresql-32: 1.2.final: 4c05f225
developer-standalone-64 1.2.final: f206f19b