Skip to content

Instantly share code, notes, and snippets.

ellemenno

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
ellemenno / hilighter_test.md
Last active Feb 18, 2017
testing rouge support for ls
View hilighter_test.md
// ls - loomscript syntax highlighting
package {
        public class Fail {}
}
/* ls - loomscript syntax highlighting */
package {
@ellemenno
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
branches.map! { |s| s.strip! }
branches.reject! { |b| b =~ /.*\/master/ }
branches.join("\n")
@ellemenno
ellemenno / code-readme.md
Created Jan 4, 2015
code project README template
View code-readme.md

<project-name>

<project-tagline>

installation

<steps to install>

@ellemenno
ellemenno / minimaloom.md
Last active Aug 29, 2015
minimal examples of Loom GUI and CLI apps
View minimaloom.md

GUI Application

TestGUI.ls

package
{
    import loom.Application;
    import loom2d.display.StageScaleMode;
    import loom2d.ui.SimpleLabel;
@ellemenno
ellemenno / title_func.sh
Last active Sep 7, 2015
Set shell title
View title_func.sh
# set the title of the current Terminal tab
function title {
printf "\033]0;%s\007" "$1"
}
@ellemenno
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
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
set PATH=%PATH%;%USERLOCAL%\bin
@ellemenno
ellemenno / Rakefile
Created Apr 7, 2014
basic rake task for gem's spec/test execution
View Rakefile
require 'rake'
require 'rake/testtask'
Rake::TestTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
t.libs.push 'spec'
end
@ellemenno
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
bold="\\[\e[1m\\]"
plain="\\[\e[0m\\]"
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.