This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<!-- Set fonts selection order for Chinese users --> | |
<match target="pattern"> | |
<test qual="any" name="family"> | |
<string>serif</string> | |
</test> | |
<test name="lang"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -f "$HOME/.ssh-agent" ]; then | |
. "$HOME/.ssh-agent" | |
fi | |
PID="$(pidof ssh-agent)" | |
if [ -z "$PID" -o "$PID" != "$SSH_AGENT_PID" ]; then | |
if [ -n "$PID" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- coding: utf-8; indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- */ | |
/** | |
* Copyright (C) 2013 Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -*- coding: utf-8; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2; -*- | |
# vim:fileencodings=utf-8:expandtab:tabstop=2:shiftwidth=2:softtabstop=2 | |
# | |
# Copyright (C) 2013 Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <glib.h> | |
#include <locale.h> | |
// gcc -Wall -Werror -g hello.c `pkg-config --cflags --libs glib-2.0` -o hello | |
int main(int argc, char* argv[]) | |
{ | |
setlocale(LC_ALL, "en_US.utf8"); | |
g_print ("哈囉世界\n"); | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -*- coding: utf-8; indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- */ | |
/** | |
* Copyright (C) 2013 Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env lsc | |
require! csv | |
require! fs | |
speakers = [] | |
csv! | |
.from.stream fs.createReadStream __dirname + \/coscup2013-cfp.csv, do | |
delimiter: \, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env lsc | |
require! express | |
require! request | |
app = express! | |
oauth_consumer_key = 'just+testing' | |
var oauth_token | |
var oauth_token_secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scores = [98, 74, 85, 77, 93, 100, 89]; | |
var total = 0; | |
for (var score in scores) { | |
total += score; | |
} | |
var mean = total / scores.length; | |
console.log(mean); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Scene(context, width, height, images) { | |
this.context = context; | |
this.width = width; | |
this.height = height; | |
this.images = images; | |
this.actors = []; | |
} | |
Scene.prototype.register = function(actor) { | |
this.actors.push(actor); |