View whyme.py
'''
Vehicle role definition:
H: heavium, assault tank
C: cavalry, "true" medium tank
S: scout
F: mobile fire support
D: dreadnaught, slow brick
<space>: other stuff, including arty
View 90-custom-kbd.conf
# /etc/X11/xorg.conf.d/90-custom-kbd.conf
Section "InputClass"
Identifier "keyboard defaults"
MatchIsKeyboard "on"
Option "XKbOptions" "caps:swapescape"
EndSection
View gist:6477296
游戏崩溃,正在报告bug,请稍等下……
Starting new HTTP connection (1): www.thbattle.net
Traceback (most recent call last):
File "start_client.py", line 199, in <module>
raise
AttributeError: 'property' object has no attribute 'get_t2c4n3v3_vertices'
AL lib: (EE) alc_cleanup: 1 device not closed
View deco.py
def deco_factory():
print "1. Creating a decorator function"
def deco(cls):
print "3. Actually decorating the class {}".format(cls.__name__)
return cls
return deco
@deco_factory()
View custom_abc.py
class M(type):
def __new__(mcls, name, bases, ns):
cls = super(M, mcls).__new__(mcls, name, bases, ns)
cls.__abstractmethods__ = ['foo']
return cls
class Base(object):
__metaclass__ = M
def foo(self):
View custom_abc.py
import unittest
class Foo(object):
__abstractmethods__ = frozenset(['iter'])
class TestFoo(unittest.TestCase):
def test_init(self):
self.assertRaises(BaseException, Foo)
View colors.yaml
---
# Sup color scheme based on vim's wombat.
# Credit goes to https://github.com/mklinik
# Usage: put the file at ~/.sup/colors.yaml
# ======================================
# globals
View power_of_pointer.c
#include <stdio.h>
#include <stdlib.h>
int modify(int *num)
{
*num = 42;
}
int main()
{
View test.mbox
From whyme@whymeDesk Tue Apr 30 04:14:02 2013
Return-path: <whyme@whymeDesk>
Envelope-to: whyme@whymeDesk
Delivery-date: Tue, 30 Apr 2013 04:14:02 +0800
Received: from whyme by whymeDesk with local (Exim 4.80.1)
(envelope-from <whyme@whymeDesk>)
id 1UWuSY-0002qf-CB
for whyme@whymeDesk; Tue, 30 Apr 2013 04:14:02 +0800
From: whyme@whymeDesk (Cron Daemon)
To: whyme@whymeDesk
View gem_make.out
/usr/bin/ruby1.9.1 extconf.rb
checking for unistd.h... yes
checking for locale.h... yes
checking for ncurses.h... yes
checking for wmove() in -lncursesw... yes
checking for newscr()... yes
checking for TABSIZE()... yes
checking for ESCDELAY()... yes
checking for keybound()... yes
checking for curses_version()... yes