This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def remove_chars(s): | |
return ''.join([c for c in s if c.isdigit()]) | |
def fizzbuzz(n): | |
if n % 15 == 0: | |
return 'fizzbuzz' | |
elif n % 3 == 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set smoothscroll | |
set linkanimations | |
let scrollstep = 100 | |
map ; : | |
map h previousTab | |
map l nextTab | |
map [ goBack | |
map ] goForward |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chunky_png' | |
def log_correction(x) | |
(255 * Math.log(1 + x) / Math.log(1 + 255)).round | |
end | |
input_file = ARGV[0] | |
output_file = ARGV[1] | |
unless input_file && output_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chunky_png' | |
SIZE = 100 | |
# Create the Rectangle Value-Saturation Picker | |
if ARGV[0] | |
sv_picker = ChunkyPNG::Image.new SIZE, SIZE, ChunkyPNG::Color::TRANSPARENT | |
(0...SIZE).reverse_each do |y| | |
SIZE.times do |x| |
NewerOlder