Skip to content

Instantly share code, notes, and snippets.

@justinspradlin
justinspradlin / dropbox-chrome-setup.bat
Last active December 11, 2015 01:38
This script will setup DropBox syncing of your Chrome custom stylesheets. This is really useful if you have a custom dev tools stylesheet. More information for custom Dev Tool stylesheets can be found here: http://darcyclarke.me/design/skin-your-chrome-inspector/.
@echo off
:: This script will setup dropbox to sync Chrome's User Stylesheets.
:: It is a shim since Chromium probably won't add this file to Chrome-Sync in the future.
:: See http://code.google.com/p/chromium/issues/detail?id=136479 for more details.
::
:: The main purpose of this script is to sync the style sheet used for Dev Tools.
:: See http://darcyclarke.me/design/skin-your-chrome-inspector/ for more information
:: on stylying your Chrome Dev Tools.
::
@tiye
tiye / default.custom.yaml
Created September 23, 2012 06:04
尝试了下 Rime 输入法
# Rime setting
patch:
"menu/page_size": 9
schema_list:
- schema: luna_pinyin
- schema: cangjie5
- schema: luna_pinyin_fluency
- schema: luna_pinyin_simp
- schema: double_pinyin_flypy
@lotem
lotem / default.custom.yaml
Last active May 12, 2026 13:16
在Rime輸入方案選單中添加五筆、雙拼、粵拼、注音,保留你需要的
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
patch:
schema_list:
- schema: luna_pinyin # 朙月拼音
- schema: luna_pinyin_simp # 朙月拼音 简化字模式
@btoone
btoone / curl.md
Last active March 13, 2026 03:04
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@padenot
padenot / stream.js
Created October 29, 2011 16:33
How to serve media on node.js
var http = require('http');
var path = require('path');
var fs = require('fs');
var AUDIOFILE = "./audio.ogg";
function serveWithRanges(request, response, content) {
var range = request.headers.range;
var total = content.length;
var parts = range.replace(/bytes=/, "").split("-");