Skip to content

Instantly share code, notes, and snippets.

View stereobooster's full-sized avatar
stand with Ukraine


stand with Ukraine
View GitHub Profile
stereobooster / gist:a032678dc798c017d232
Last active August 29, 2015 14:11
ruby command line
View gist:a032678dc798c017d232
View gist:934761
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
<!-- According to Heather Champ, former community manager at flickr,
you should not allow search engines to index your "Contact Us"
stereobooster / LICENSE.txt
Created May 24, 2011 05:38 — forked from jed/LICENSE.txt
use anchor tags to parse URLs into components
View LICENSE.txt
Copyright (c) 2011 Jed Schmidt,
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
stereobooster / test_env_path.rb
Created July 16, 2011 23:49
Information about environment path
View test_env_path.rb
executables = {}
total = 0
path_extensions = ENV["PATHEXT"].gsub(".", "").downcase.split(File::PATH_SEPARATOR)
path = ENV["Path"]
path.split(File::PATH_SEPARATOR).each do |value|
dir =
if dir.exist? then
filter = File.join(dir.realpath, "*.{" + path_extensions.join(",") + "}")
Dir.glob(filter).each do |file|
stereobooster / mysql.bat
Created July 27, 2011 14:24
windows prompt cli
View mysql.bat
sc create MySQL5 binPath= "D:\tools\mysql\bin\mysqld --defaults-file=D:\tools\mysql\my.ini MySQL5"
sc delete MySQL5
stereobooster / apng.js
Created November 19, 2011 21:55
View apng.js
// This test is ascynchronous. Watch out.
var datauri = new Image,
ctx = document.createElement("canvas").getContext("2d");
datauri.onerror = function() {
Modernizr.addTest('apng', function () { return false; });
stereobooster / gist:2758622
Created May 20, 2012 16:07
ruby codepoint
View gist:2758622
puts ["2B71F".hex].pack("U")
# In Ruby 1.9 you can even do this:
puts "\u{2B71F}"
stereobooster / Gemfile
Created June 1, 2012 13:11
profile rb-fchange
View Gemfile
source :rubygems
gem 'ruby-prof', :git => ""
# gem 'perftools.rb', :git => 'git://'
gem 'rb-fchange'
gem 'listen'