Skip to content

Instantly share code, notes, and snippets.

View liwenwei's full-sized avatar
🎯
Focusing

Alen Lee liwenwei

🎯
Focusing
View GitHub Profile
@liwenwei
liwenwei / SplClassLoader.php
Created December 10, 2015 02:33 — forked from jwage/SplClassLoader.php
Add MIT license.
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
@liwenwei
liwenwei / main.cpp
Created April 26, 2016 08:45 — forked from xandout/main.cpp
C++ directory lister
#include <stdio.h>
#include <string>
#include <iostream>
#include <windows.h>
#include <vector>
using namespace std;
//Simple struct to return from lsfiles
@liwenwei
liwenwei / DBManager.java
Created June 8, 2018 09:57
How to import external database in Android?
package XXX;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.os.Environment;
import android.util.Log;
import xxx.R;
import java.io.File;