Skip to content

Instantly share code, notes, and snippets.

View shinespark's full-sized avatar

shinespark

  • Tokyo, Japan
View GitHub Profile
@utahta
utahta / memo-tmux-2.4.md
Last active May 17, 2017 06:06
patches for tmux 2.4

Best practices for building Vim plugins

2016-11-05 VimConf 2016

@jkubecki
jkubecki / ExportKindle.js
Last active June 1, 2024 22:51
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
@haggen
haggen / apple-crayon.scss
Last active February 18, 2024 20:16
Apple Crayon Palette RGB values in SASS
// Apple Crayon Palette RGB
$cantaloupe: rgb(255, 206, 110);
$honeydew: rgb(206, 250, 110);
$spindrift: rgb(104, 251, 208);
$sky: rgb(106, 207, 255);
$lavender: rgb(210, 120, 255);
$carnation: rgb(255, 127, 211);
$licorice: rgb(0, 0, 0);
$snow: rgb(255, 255, 255);
@kawanet
kawanet / hiragana-katakana.js
Last active December 19, 2022 23:56
カタカナをひらがなに変換する JavaScript 関数、 ひらがなをカタカナに変換する JavaScript 関数
/** カタカナをひらがなに変換する関数
* @param {String} src - カタカナ
* @returns {String} - ひらがな
*/
function katakanaToHiragana(src) {
return src.replace(/[\u30a1-\u30f6]/g, function(match) {
var chr = match.charCodeAt(0) - 0x60;
return String.fromCharCode(chr);
});