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
/* | |
Google+ Stream API => An unofficial API to get Google+ streams. | |
Copyright (C) 2012 Jingqin Lynn | |
Based on the "An Unofficial Google+ Circle and Followers API for Google Chrome" poject | |
https://github.com/mohamedmansour/google-plus-extension-jsapi | |
by +Mohamed Mansour <https://github.com/mohamedmansour> | |
Under the license: https://github.com/mohamedmansour/google-plus-extension-jsapi/blob/master/LICENSE.md | |
This program is free software: you can redistribute it and/or modify |
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
public static void main(String[] args) { | |
List list = (List) Proxy.newProxyInstance(List.class.getClassLoader(), | |
new Class[] { List.class }, | |
new InvocationHandler() { | |
public Object invoke(Object obj, Method method, Object[] args) | |
throws Throwable { | |
if ("size".equals(method.getName())) | |
return (int)(Math.random() * 1000); | |
return null; |
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
package com.weirhp; | |
import java.io.BufferedInputStream; | |
import java.io.DataInputStream; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Method; |
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 python | |
#-*- coding:utf-8 -*- | |
import httplib, urllib | |
import socket | |
import time | |
params = dict( | |
login_email="email", # replace with your email | |
login_password="password", # replace with your password |
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
Dao dao = ioc.get(Dao.class); | |
for (Class<?> klass : Scans.me().scanPackage("net.wendal.tb.bean")) | |
if (klass.getAnnotation(Table.class) != null) | |
dao.create(klass, false); |
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/python | |
# usage python unwxapkg.py filename | |
import sys,os | |
import struct | |
class WxapkgFile: | |
nameLen = 0 | |
name = "" |