Skip to content

Instantly share code, notes, and snippets.

medicalwei /
Last active Feb 6, 2016 with faux bold and height adjustment code
#!/usr/bin/env python
import argparse
import freetype
import os
import re
import struct
import sys
import itertools
import json
View gaia-locales-diff-medicalwei-20130528.patch
diff -r c42f218ebb99 apps/settings/
--- a/apps/settings/ Sat May 04 22:56:29 2013 +0800
+++ b/apps/settings/ Tue May 28 00:43:44 2013 +0800
@@ -16,7 +16,10 @@
-# Device
medicalwei / gist:4648305
Last active Dec 11, 2015 — forked from audreyt/gist:4646732
combine kcwu's list
View gist:4648305
# no matching characters
8e5a {拚-厶+ㄊ}
8e65 {犬旁+屯}
8eb0 {云阝}
8ec8 {艸頭+契}
8ef7 {似彐}
8f57 {艸頭+舌}
8f6b {革貴}
8fd5 {奧鳥}
medicalwei / Cakefile
Created Apr 30, 2012
Cakefile used for every coffeescript project
View Cakefile
fs = require 'fs'
{print} = require 'util'
{spawn} = require 'child_process'
build = (callback) ->
coffee = spawn 'coffee', ['-c', '-l', '.']
coffee.stderr.on 'data', (data) ->
process.stderr.write data.toString()
coffee.stdout.on 'data', (data) ->
View fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<match target="pattern">
<test name="family" qual="any">
<edit binding="strong" mode="prepend" name="family">
<string>Bitstream Vera Serif</string>
<string>DejaVu Serif</string>
medicalwei / gist:1102434
Created Jul 24, 2011
HIT Wargame 2011 Forensics 3 Crack
View gist:1102434
function send_key_b(){
var tmp = function(data){
if ("Matched") != -1){
setTimeout(function(){window.location.reload()}, 3000);
document.send.key.value = "";
var ar = ["0900500294","0900500520","0900500696","0900500810","0900501471","0900501802","0900502219","0900502381","0900502839","0900502953","0900503228","0900503412","0900503784","0900503823","0900504398","0900504589","0900505185","0900505296","0900505393","0900505528","0900506028","0900506210","0900506234","0900506549","0900506643","0900506968","0900507008","0900507158","0900507203","0900507486","0900508170","0900508310","0900508560","0900508864","0900508894","0900509060","0900509406","0900509559","0900509916","0900509964","0900510025","0900510028","0900510114","0900510125","0900510171","0900510172","0900510174","0900510175","0900510196","0900510236","0900510251","0900510322","0900510338","0900510342","0900510369","0900510370","09
medicalwei / gist:1050403
Created Jun 28, 2011
Processed (with 1 errors): Re: Bug#631739: gitk: session crash when scrolling to specific lines
View gist:1050403
Processing commands for
> reassign 631739 xserver-xorg-video-intel
Bug #631739 [awesome] awesome: segfault when scrolling gitk window to certain lines
Bug reassigned from package 'awesome' to 'xserver-xorg-video-intel'.
> retitle 631739 xserver-xorg-video-intel: gitk caused session crash
Bug #631739 [xserver-xorg-video-intel] awesome: segfault when scrolling gitk window to certain lines
Changed Bug title to 'xserver-xorg-video-intel: gitk caused session crash' from 'awesome: segfault when scrolling gitk window to certain lines'
> when scrolling to certain lines
Unknown command or malformed arguments to command.
View Speech made by Peter Chou
* 工程倫理的學生 需要問的問題
* 員工超時工作事件
* 責任制工作
* Postmortem
* 與西方的工作態度差異 (e.g. Apple)
* 是否已有修正
* NOWnews:「宏達電主管昨天表示,雖然公司採「自由上下班」制,但已經開始提醒同仁注意下班時間,初步希望員工加班不要超過晚上十一點。」
* 理想與現實的差異
View serialDemo.pde
void setup()
Serial.begin(9600); // Use serial with 9600 baud rate
pinMode(13, OUTPUT);
void loop()
if(Serial.available()) // Check if there is something for Arduino to read
View sobel.c
// ImageReadingDoc.cpp : implementation of the CImageReadingDoc class
#include "stdafx.h"
#include "ImageReading.h"
#include "ImageReadingDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW