Skip to content

Instantly share code, notes, and snippets.

Seki, Shintaro s-shin

Block or report user

Report or block s-shin

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
@s-shin
s-shin / simple_audio_player_by_p5_js.html
Last active Jan 25, 2019
Simple Audio Player by p5.js.
View simple_audio_player_by_p5_js.html
<html>
<head>
<meta charset="utf-8">
<title>Simple Audio Player by p5.js</title>
<style>
body { margin: 0; }
body > .tp-dfwv { width: 290px; }
body > .tp-rotv.tp-rotv-expanded .tp-rotv_c { overflow: auto; }
</style>
</head>
View parser_combinator_impl_practice1.ts
// MIT License
//------------------------------------------------------------------------------
// Readers
//------------------------------------------------------------------------------
export interface Cursor {
line: number;
column: number;
}
View latest_common.bookmarklet
javascript:{ const sha = document.querySelector(".commit-tease-sha"); if (sha) { location.href = location.href.replace(/blob\/[^/]+/, `blob/${sha.textContent.trim()}`); } }
View sync_itunes_albums_to_android.sh
#!/bin/bash
set -eu
: ${ITUNES_MEDIA_DIR:="${HOME}/Music/iTunes/iTunes Media"}
: ${DST_MUSIC_DIR:=/storage/0000-0000/Music}
usage() {
cat <<EOT
Usage: $0 [-x]
@s-shin
s-shin / archive_itunes_albums.sh
Last active Aug 6, 2018
Archive albums to specified directory in iTunes media directory.
View archive_itunes_albums.sh
#!/bin/bash
set -eu
: ${ITUNES_MEDIA_DIR:="${HOME}/Music/iTunes/iTunes Media"}
usage() {
cat <<EOT
Usage: $0 [options] [<re>]
Options:
@s-shin
s-shin / latest-commit.js
Created Jan 15, 2018
Bookmarklet for changing the location of per code view page in github to the one of latest commit.
View latest-commit.js
{
const sha = document.querySelector(".commit-tease-sha");
if (sha) {
location.href = location.href.replace(/blob\/[^/]+/, `blob/${sha.textContent.trim()}`);
}
}
View io
#!/bin/bash
set -eu
: ${IO_RUNNING_FILE:=.io_running}
: ${IO_STDIN_FILE:=.io_stdin}
: ${IO_STDOUT_FILE:=.io_stdout}
io.help() {
cat <<EOT
Usage: io <command> [<args>]
@s-shin
s-shin / amazon-wishlist-discount-checker.js
Last active Nov 28, 2017
Copy, paste and run in dev console.
View amazon-wishlist-discount-checker.js
(function() {
const THRESHOLD = 400;
function isEndOfList() {
return document.querySelector("#endOfListMarker") !== null;
}
function scroll(top) {
document.scrollingElement.scrollTop = top;
View ex002_tcp_client.go
package main
import (
"bufio"
"bytes"
"compress/gzip"
"encoding/binary"
"fmt"
"io"
"log"
View tcpsvr.go
package main
import (
"bufio"
"bytes"
"encoding/binary"
"fmt"
"io"
"log"
"net"
You can’t perform that action at this time.