Skip to content

Instantly share code, notes, and snippets.

View geta6's full-sized avatar

geta6 geta6

View GitHub Profile
'use strict'
module.exports = (grunt) ->
require 'coffee-errors'
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-stylus'
@geta6
geta6 / ruby.md
Last active August 29, 2015 13:56
漢字 かんじ
@geta6
geta6 / gfm.md
Last active August 29, 2015 13:56

略語を定義しておくと、文章中にHTMLが登場したときに abbrタグで括られる。

*[HTML]: Hyper Text Markup Language 略語を定義しておくと、文章中にHTMLが登場したときに abbrタグで括られる。

脚注 脚注を入れるよ。1

Footnotes

  1. 脚注の文章。

@geta6
geta6 / _秘伝のたれ.sh
Created March 27, 2014 14:19
cronで回すと$TARGET内にある`.mp4` で終わらないファイルを自動でエンコードします
#!/bin/zsh
USER='nouser'
GROUP='nogroup'
TARGET='require to set'
function source
{
find $TARGET -type f \( ! -iname '.*' \) | sed -E 's/ */ /g' | grep -vE 'mp4$' | sort -t'/' -k 5nr -k 6n
}
@geta6
geta6 / videothumb.sh
Last active August 29, 2015 13:58
video thumbnailer
#!/bin/sh
terminate() {
echo 'Usage: videothumb [-f target] [output]'
exit 1
}
parseInt() {
echo "$@" | cut -d'.' -f1
}
#!/bin/sh
terminate() {
echo 'audiothumb [-f target] [output]'
exit 1
}
test ! -f "$1" && terminate
test -z "$2" && terminate
test -z "`which eyeD3`" && echo 'Fatal: eyeD3 not found.' && exit 1
#!/bin/sh
terminate() {
echo 'pdfthumb [-f target] [page] [output]'
exit 1
}
test ! -f "$1" && terminate
test -z "$2" && terminate
test -z "$3" && terminate

Untitled Slide

Welcome to Glide.

Glide is the easiest way to create useful slide for all of your Gists.

  • input key <- to go backward.
  • input key -> to go forward.

Publishing

@geta6
geta6 / gifexploder.html
Created April 17, 2014 12:38
extends x-gif
<html>
<head>
</head>
<body>
<input type='file' id='file' name='file' multiple>
<script>
var Reader = function (arrayBuffer) {
this.data = new Uint8Array(arrayBuffer);
this.index = 0;
@geta6
geta6 / nsx.coffee
Last active August 29, 2015 14:00
for NSX-39
class NSX39
midi = require 'midi'
buffer =
key: 0
vel: 0
device: new midi.output()
constructor: (pattern = /NSX-39/gi)->