Skip to content

Instantly share code, notes, and snippets.

@lestrrat
lestrrat / wc.go
Last active September 25, 2016 05:33
おもしろそうだったので自分もwc書いてみたけど、元のCで書かれたwcをあんまり改良するところがなかった…
package main
import (
"flag"
"fmt"
"io"
"log"
"os"
"runtime/pprof"
"sync"
@ndarville
ndarville / README.md
Last active September 21, 2023 21:34
How to export and rehost your Tumblr site

How to export and rehost your Tumblr site

(Update: Version 3.2.0 of Jekyll looks like it's breaking a few things, so I've changed the guide to make you specifically install the version I was using, 3.1.3. I believe this is the issue: jekyll/jekyll#5145.)

You will be using jekyll-import to export your Tumblr site, Jekyll to (re)create it, and Surge to rehost it.

Update: You can also use Tumblr's native export feature in your blogs' individual settings. But rehosting that might be tricky. Read my comments below this post for how that works.

Setup and installation

@ericclemmons
ericclemmons / example.md
Last active September 20, 2024 12:46
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@konitter
konitter / stylelint-rules.md
Last active February 15, 2024 21:29
stylelintのルール簡単説明(v5.4.0)

Color

  • color-hex-case - 16進数のカラーコードを大文字か小文字か
  • color-hex-length - 16進数のカラーコードを省略するか否か
  • color-named - 名前付きカラーを強制するかどうか
@kotarok
kotarok / processTextNodes.js
Last active December 5, 2019 10:35
Walk DOM tree to extract textNode and apply given mutator function.
/**
* Extract textNodes from the tree of given root element. And apply given
* function to each textNodes.
* @param {HTMLElement} rootEl Target DOM sub tree root.
* @param {Function} processor Processor function
* @param {Object} option Config to override
*/
var processTextNodes = function(rootEl, processor, option) {
var conf = {
dummyElementName: 'dummy',
@hail2u
hail2u / namegen.js
Created October 17, 2015 15:16
姓名をランダムに作る奴(100*100)
var m = ["三浦", "上田", "上野", "中山", "中島", "中川", "中村", "中野", "丸山",
"久保", "井上", "今井", "伊藤", "佐々木", "佐藤", "佐野", "内田", "前田",
"加藤", "千葉", "原", "原田", "吉田", "和田", "坂本", "増田", "大塚", "大野",
"太田", "安藤", "宮崎", "宮本", "小山", "小島", "小川", "小林", "小野",
"山下", "山口", "山崎", "山本", "山田", "岡本", "岡田", "岩崎", "工藤",
"平野", "後藤", "斉藤", "斎藤", "新井", "木下", "木村", "杉山", "村上",
"村田", "松井", "松尾", "松本", "松田", "林", "柴田", "森", "森田", "横山",
"橋本", "武田", "池田", "河野", "清水", "渡辺", "渡部", "田中", "田村",
"石井", "石川", "石田", "福田", "竹内", "菅原", "菊地", "藤井", "藤原",
"藤本", "藤田", "西村", "谷口", "近藤", "遠藤", "酒井", "野口", "野村",
@qrg
qrg / github-comment-highlight-by-url-hash.css
Last active August 29, 2015 14:23
highlight github issue comment element by url hash
.comment:target {
background-color: rgb(255, 255, 175) !important;
}
@udzura
udzura / puppet-is-live-in-2015.md
Last active August 29, 2015 14:23
2015年のPuppet 予告編 ※内容は変わることがあるよ!

自己紹介

  • Chef/Puppet/Ansible/Itamae全部触った人間です
  • ターゲット: 主に社のChef派の人たち

Puppetとは何か

  • 特徴
  • 主な機能
@dlwr
dlwr / extractor.photo.capture.glitch.tbrl.js
Last active August 29, 2015 14:10
ウェブページをキャプチャーしてグリッチして投稿するtaberareloo拡張パッチ
// ==Taberareloo==
// {
// "name" : "Glitch Selected Region"
// , "description" : "Glitch Selected Region"
// , "include" : ["background", "content"]
// , "match" : ["*://*/*"]
// , "version" : "1.0.2"
// , "downloadURL" : "https://gist.githubusercontent.com/dlwr/8f616fc605ff6b99640e/raw/extractor.photo.capture.glitch.tbrl.js"
// }
// ==/Taberareloo==