Skip to content

Instantly share code, notes, and snippets.

MASAKI Haruka reasonset

Block or report user

Report or block reasonset

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View default.json
{
"define": {
"rom-kana": {
"1": ["", ""],
"2": ["", "", "", "", ""],
"2@": ["", ""],
"2[": ["", ""],
"3": ["", ""],
"#": ["", ""],
"4": ["", "", "", "", ""],
@reasonset
reasonset / ffscreencast.zsh
Created Mar 14, 2016
Screen cast with ffmpeg / xwininfo.
View ffscreencast.zsh
#!/usr/bin/zsh
SAVE_DIR=/home/foo/Videos/
even_round() {
perl -n -e '/(\d+)(.)(\d+)/; print( $1 % 2 == 0 ? $1 : $1 - 1 ); print $2; print( $3 % 2 == 0 ? $3 : $3 - 1 )' <<< "$1"
}
mic_arg() {
if (( $mic == 1 ))
View lightbox.js
(function() {
if (! document.addEventListener ) { return false; }
var wrapper = document.getElementById("WrapWindow") /* ModalWindow */
var fadingTimer = false /* IntervalTimer */
var alpha = 0.0 /* ModalWindows's alpha number */
var lboxImage = document.getElementById("LBoxImg") /* target img object */
var eimg /*Base Image*/
/* draw content */
View getimage.zsh
#!/usr/bin/zsh
# $1 => Original Image
setopt extended_glob
infile="$1"
name="$2"
identify "$infile"
if [[ $(identify "$infile") == *" "(#b)(<->)x(<->)" "* ]]
then
@reasonset
reasonset / gem-cowon-m2-playlist.zsh
Created Feb 13, 2016
Convert SMplayer(Linux)'s playlist to COWON M2 media player's playlist.
View gem-cowon-m2-playlist.zsh
#!/usr/bin/zsh
playlist_file="$1"
shift
perl -p -e 's:/:\\:g;' -e 'print "\\" if m/^[^\s#]/;' "$playlist_file" >| ${playlist_file:s/-utf8.m3u/.m3u}
mv -v "$playlist_file" ~/local/cowon-m2/playlists/
You can’t perform that action at this time.