Skip to content

Instantly share code, notes, and snippets.

@mscoutermarsh
mscoutermarsh / rainbow.rb
Created April 26, 2014 19:43
Rainbow Text ❤️ 💜 💙 💚
# Allows us to print rainbow text to console
# Use puts Rainbow.new.colorize("Magical Text")
class Rainbow
PI_3 = Math::PI / 3
def initialize
# colors calculation stolen from Minitest's Pride Plugin
# https://github.com/seattlerb/minitest
@colors = (0...(6 * 7)).map { |n|
n *= 1.0 / 6
@cmbaughman
cmbaughman / makefile
Created July 20, 2014 14:25
Make file template used in porting MIUI to a new device (see [https://github.com/MiCode/patchrom]).
# Makefile for porting MIUI
#
local-zip-file := stockrom.zip
local-out-zip-file := MIUI_YOURDEVICE.zip
local-previous-target-dir :=
local-density :=