Skip to content

Instantly share code, notes, and snippets.

@fkino
fkino / esm_bento.rb
Created September 5, 2016 05:34
Code on the Bento Wrapping Paper at RubyKaigi 2016
eval(
%w( put
s(([ 2*7,
2*31 ,1,3
*3*5 ,2*2
*2*2 *3].
map{ |c|c
.to_ s(5*7
).gs ub("1 ","
\s") .upca se}.
@dannvix
dannvix / RainbowEverything.js
Created June 27, 2015 04:05
Make all text on webpage looks Rainbow!
/*rainbowEverything=*/(function(window) {
var parseRgbColorStrToHsl = function(rgbColorStr) {
// input: "rgb(12, 34, 56)";
var rgbValues = rgbColorStr.substring(4).replace(/\s/g, "").split(","),
r = parseFloat(rgbValues[0])/255,
g = parseFloat(rgbValues[1])/255,
b = parseFloat(rgbValues[2])/255;
var max = Math.max(r, g, b), min = Math.min(r, g, b);
var h = 0, s = 0, l = (max + min) / 2;
if (max == min) {
@taldehyde
taldehyde / lv11.md
Last active August 29, 2015 14:10
☆11ハード参考表

#☆11ハード参考表(200譜面 2013/12/11版)

##SS

###☆地力SS(3譜面)

  • Critical Crystal

  • SABER WING

@qrohlf
qrohlf / helloworld
Last active July 26, 2016 18:31
Ruby Hello World
  = 1
   =  + 
    =   *  + 
     =    *  
      =
[     *(   +  )+  ,
        =     *    + ,
         =     *    +    -  ,
        ,
        =        +    ,
#!/usr/bin/env bash
# Pre-requisites
sudo apt-get -y update
sudo apt-get --no-install-recommends -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev vim
# Download and compile Ruby 2.0.0-p0
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz
tar -xvzf ruby-2.0.0-p0.tar.gz
@esses
esses / bookmark.js
Created November 15, 2011 20:28
Quick Cross-Browser jQuery Bookmark Script
$('a#bookmark').click(function(e){
e.preventDefault();
var bookmarkURL = this.href;
var bookmarkTitle = this.title;
try {
if (window.sidebar) { // moz
window.sidebar.addPanel(bookmarkTitle, bookmarkURL, "");
} else if (window.external || document.all) { // ie
window.external.AddFavorite(bookmarkURL, bookmarkTitle);
} else if (window.opera) { // duh