Skip to content

Instantly share code, notes, and snippets.

ellemenno / Rakefile
Created April 7, 2014 01:06
basic rake task for gem's spec/test execution
require 'rake'
require 'rake/testtask' do |t|
t.pattern = 'spec/**/*_spec.rb'
t.libs.push 'spec'
ellemenno / commandprompt.bat
Last active August 29, 2015 14:01
DOS environment tweaks for Command Prompt Portable
@echo off
color 70
prompt $p$g$s
title Command Prompt Portable
set PA=%USERPROFILE%\PortableApps\PortableApps
set USERLOCAL=%PA%\CommandPromptPortable\Data
ellemenno /
Last active August 29, 2015 14:12
minimal examples of Loom GUI and CLI apps

GUI Application

    import loom.Application;
    import loom2d.display.StageScaleMode;
    import loom2d.ui.SimpleLabel;
ellemenno /
Created January 4, 2015 23:39
code project README template




<steps to install>

ellemenno / delete_remotes
Last active August 29, 2015 14:14
batch delete remote branches
#!/usr/bin/env ruby
abort 'please specify the remote to delete branches from' if ARGV.empty?
remote = ARGV.shift
puts "gathering list of branches for remote '#{remote}'"
branches = `git branch -r | grep #{remote}`.lines! { |s| s.strip! }
branches.reject! { |b| b =~ /.*\/master/ }
ellemenno /
Last active September 7, 2015 19:47
Set shell title
# set the title of the current Terminal tab
function title {
printf "\033]0;%s\007" "$1"
ellemenno / Type
Last active December 21, 2015 20:38
trying to understand `as`, `is`, `typeof`, `instanceof` in Loomscript

Testing type reflection in Loom

(results below)

    import loom.Application;
ellemenno / Type
Last active December 22, 2015 13:09
Comparing type operator results in Loom on function args vs. literal values

Testing type ops in Loom

is, as, instanceof return expected results on literal values, but not when the same values are passed into a function and the type ops are applied to the function argument variables. NOTE: when testing with trace() be aware that Sprint 30 (and earlier?) contained a bug that caused trace to print all Booleans as true. This is resolved in SDK v1.1.2738 (and Sprint 31).

(results below)

ellemenno /
Last active December 22, 2015 19:18
testing out TinyLS
ellemenno / Feathers Font
Last active December 24, 2015 20:38
screenshots of the Loom FeathersExample on Android, iOS, and OS X

trouble with font quads in sprint31 on Android 4.1.2 (regression from sprint30)

screenshot images below