Skip to content

Instantly share code, notes, and snippets.

@ellemenno
ellemenno / Rakefile
Created April 7, 2014 01:06
basic rake task for gem's spec/test execution
require 'rake'
require 'rake/testtask'
Rake::TestTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
t.libs.push 'spec'
end
@ellemenno
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
set PATH=%PATH%;%USERLOCAL%\bin
@ellemenno
ellemenno / minimaloom.md
Last active August 29, 2015 14:12
minimal examples of Loom GUI and CLI apps

GUI Application

TestGUI.ls

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

<project-name>

<project-tagline>

installation

<steps to install>

@ellemenno
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
branches.map! { |s| s.strip! }
branches.reject! { |b| b =~ /.*\/master/ }
branches.join("\n")
@ellemenno
ellemenno / title_func.sh
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
ellemenno / Type Check.md
Last active December 21, 2015 20:38
trying to understand `as`, `is`, `typeof`, `instanceof` in Loomscript

Testing type reflection in Loom

(results below)

TypeChecker.ls

package
{
    import loom.Application;
@ellemenno
ellemenno / Type Operators.md
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)

TypeChecker.ls

@ellemenno
ellemenno / TinyLsTest.md
Last active December 22, 2015 19:18
testing out TinyLS
@ellemenno
ellemenno / Feathers Font Quads.md
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