Skip to content

Instantly share code, notes, and snippets.

View st44100's full-sized avatar
🗯️
渋̸̰̘̭̻ͧ͢谷̡̟で̶̨̖͔̲́̎͆͜͡働ͭい̤̟ͬ͊͠て̵͚́い̝̌̊͋҉ま͍̟͋͊͏̬̦͂҉̤͙͊ͪ̂す̡̨͎̭͕̖̝͈̙ͮ̍̚͠

st44100 st44100

🗯️
渋̸̰̘̭̻ͧ͢谷̡̟で̶̨̖͔̲́̎͆͜͡働ͭい̤̟ͬ͊͠て̵͚́い̝̌̊͋҉ま͍̟͋͊͏̬̦͂҉̤͙͊ͪ̂す̡̨͎̭͕̖̝͈̙ͮ̍̚͠
  • Shibuya, Japan
View GitHub Profile
@st44100
st44100 / shadeAndTint.coffee
Last active August 29, 2015 14:13
CoffeeScript Shade and Tint color without Alpha channel
toRgb = (hex) ->
result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex)
if result
[
parseInt(result[1], 16)
parseInt(result[2], 16)
parseInt(result[3], 16)
]
else
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var mix, rgb, shade, tint;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var rgb = [255, 10, 10]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var a, b, padItems;
@st44100
st44100 / README.md
Last active August 29, 2015 14:12
Download Youtube Best Quality

Download Youtube Video Best Quality.

  • Download video@1080p without audio
  • Download audio@256k without video
  • Merge video and audio with ffmpeg
  • if 1080p video is not exists then select video quality automatically

Install and Usage:

@st44100
st44100 / brewfile.sh
Last active August 29, 2015 14:11
Brewfile
brew update
brew upgrade
brew tap phinze/cask
brew tap homebrew/versions
brew tap phinze/homebrew-cask
brew tap homebrew/binary
@st44100
st44100 / termcolor.coffee
Created May 8, 2014 02:33
Print terminal color using coffee-script
#
# termcolor.pl : http://h2plus.biz/hiromitsu/entry/674
#
# Usage:
# > coffee termcolor.coffee
#
sys = require "sys"
fg = "\x1b[38;5;"
bg = "\x1b[48;5;"
rs = "\x1b[0m"
@st44100
st44100 / form.css
Created February 19, 2013 16:51
Android 2.3 系のキーボード対応
form {
-webkit-transform: translate3d(0px, 0px, 0px);
}
@st44100
st44100 / trackpadTap2Click.scpt
Last active December 10, 2015 13:58
Mac Bookでトラックパッド、タップしてクリックを設定するApple Script
display alert "タップでクリックを設定" message "" buttons {"Cancel", "タップクリックOFF", "タップクリックON"} cancel button 1
if (button returned of result) is "タップクリックON" then
set theValue to 1
else
set theValue to 0
end if
-- open trackpad preferences
tell application "System Preferences"