Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block ellemenno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ellemenno /
Last active Feb 18, 2017
testing rouge support for ls
// ls - loomscript syntax highlighting
package {
        public class Fail {}
/* ls - loomscript syntax highlighting */
package {
ellemenno / delete_remotes
Last active Aug 29, 2015
batch delete remote branches
View delete_remotes
#!/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 /
Created Jan 4, 2015
code project README template




<steps to install>

ellemenno /
Last active Aug 29, 2015
minimal examples of Loom GUI and CLI apps

GUI Application

    import loom.Application;
    import loom2d.display.StageScaleMode;
    import loom2d.ui.SimpleLabel;
ellemenno /
Last active Sep 7, 2015
Set shell title
# set the title of the current Terminal tab
function title {
printf "\033]0;%s\007" "$1"
ellemenno / tree
Last active Jul 22, 2017
Directory tree printer
View tree
#!/usr/bin/env ruby
# encoding: utf-8
@bar = '─'
@elbow = '└'
@pipe = '│'
@space = ' '
@tee = '├'
@slash = '/'
ellemenno / commandprompt.bat
Last active Aug 29, 2015
DOS environment tweaks for Command Prompt Portable
View commandprompt.bat
@echo off
color 70
prompt $p$g$s
title Command Prompt Portable
set PA=%USERPROFILE%\PortableApps\PortableApps
set USERLOCAL=%PA%\CommandPromptPortable\Data
ellemenno / Rakefile
Created Apr 7, 2014
basic rake task for gem's spec/test execution
View Rakefile
require 'rake'
require 'rake/testtask' do |t|
t.pattern = 'spec/**/*_spec.rb'
t.libs.push 'spec'
ellemenno / .profile
Last active Mar 26, 2020
The little tweaks I've accumulated and grown accustomed to.
View .profile
# prompt
# enter unicode chars as utf-8 bytes in octal
# echo -n @ | hexdump -b
export PS1="$bold\W \$ $plain"
# aliases (use `alias` to list)
alias ls='ls -hF --color=auto --show-control-chars' # add colors for filetype recognition
alias l="ls -1"
View spinner.rb
#!/usr/bin/env ruby
# encoding: UTF-8
@dot_cycle = ['⣾','⣽','⣻','⢿','⡿','⣟','⣯','⣷']
#braille random: 0x2800 - 0x28ff
@z_arrow = ['←','↖','↑','↗','→','↘','↓','↙']
@z_b = ['b','ᓂ','q','ᓄ']
@z_d = ['d','ᓇ','p','ᓀ']
You can’t perform that action at this time.