This file contains hidden or 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
[user] | |
name = Sheng Yun | |
email = [email protected] | |
[core] | |
excludesfile = /Users/shengy/.gitignore_global | |
autocrlf = false | |
; editor = mvim -f | |
editor = vi | |
; editor = emacs | |
[diff] |
This file contains hidden or 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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
This file contains hidden or 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
; | |
; AutoHotkey Version: 1.x | |
; Language: English | |
; Platform: Win9x/NT | |
; Author: William Isaac Miller <[email protected]> | |
; | |
; Script Function: | |
; Remaps the CapsLock key to Control, and moves CapsLock to Right Control. | |
; |
This file contains hidden or 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
Installing Linux on the Chromebook Pixel. | |
These directions are provided AS-IS, if you lose all of your data or | |
brick your machine, it's not my problem. | |
Quick pre-requisites: | |
A) You should (optionally) have a USB mouse you can plug into the | |
Pixel for when you first boot into Linux as the touchpad and | |
touchscreen won't work at the beginning. |
This file contains hidden or 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 <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <stdlib.h> | |
#define MAXTOKENS 100 | |
#define MAXTOKENLEN 64 | |
enum type_tag { IDENTIFIER, QUALIFIER, TYPE }; | |
struct token |
This file contains hidden or 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
Sicilian, Najdorf (B90) | |
1 e4 c5 2 Nf3 d6 3 d4 cxd4 4 Nxd4 Nf6 5 Nc3 a6 | |
Sicilian, Najdorf, Opocensky Variation (B92) | |
1 e4 c5 2 Nf3 d6 3 d4 cxd4 4 Nxd4 Nf6 5 Nc3 a6 6 Be2 | |
Sicilian, Najdorf (B96) | |
1 e4 c5 2 Nf3 d6 3 d4 cxd4 4 Nxd4 Nf6 5 Nc3 a6 6 Bg5 e6 7 f4 |
This file contains hidden or 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
def decorator_with_args(decorator_to_enhance): | |
""" | |
This function is supposed to be used as a decorator. | |
It must decorate an other function, that is intended to be used as a decorator. | |
Take a cup of coffee. | |
It will allow any decorator to accept an arbitrary number of arguments, | |
saving you the headache to remember how to do that every time. | |
""" | |
# We use the same trick we did to pass arguments |
This file contains hidden or 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
import logging | |
import optparse | |
LOGGING_LEVELS = {'critical': logging.CRITICAL, | |
'error': logging.ERROR, | |
'warning': logging.WARNING, | |
'info': logging.INFO, | |
'debug': logging.DEBUG} | |
def main(): |
NewerOlder