Whyme Lyu 5long

View gist:6477296
1 2 3 4 5 6 7
游戏崩溃,正在报告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
1 2 3 4 5 6 7 8 9 10
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
1 2 3 4 5 6 7 8 9 10
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
1 2 3 4 5 6 7 8 9
import unittest
 
class Foo(object):
__abstractmethods__ = frozenset(['iter'])
 
 
class TestFoo(unittest.TestCase):
def test_init(self):
self.assertRaises(BaseException, Foo)
View colors.yaml
1 2 3 4 5 6 7 8 9
---
 
# 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
1 2 3 4 5 6 7 8 9 10
#include <stdio.h>
#include <stdlib.h>
 
int modify(int *num)
{
*num = 42;
}
 
int main()
{
View test.mbox
1 2 3 4 5 6 7 8 9 10
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
1 2 3 4 5 6 7 8 9 10
/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
View gist:5289929
1
{"active":{"default":"4070bb80-605c-4f23-9c04-7cbcffeb71d4"}}
View monkeypatch.rb
1 2 3 4 5 6 7 8 9
require 'iconv'
 
class Iconv
def self.yaye
p self.constants
end
end
 
Iconv.yaye
Something went wrong with that request. Please try again.