View reflection.swift
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
import Foundation | |
struct Point { | |
var x: Int = 200 | |
var y: Int! = 2 | |
var z: Int? = nil | |
} | |
class CPoint { |
View explode.cc
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
#include <cstdio> | |
#include <tuple> | |
#include <utility> | |
#include <type_traits> | |
template<int ...I> struct index_tuple_type { | |
template<int N> using append = index_tuple_type<I..., N>; | |
}; | |
template<int N> struct make_index_impl { | |
using type = typename make_index_impl<N-1>::type::template append<N-1>; |
View beginner.vimrc.vim
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
" Beginners .vimrc | |
" v0.1 2012-10-22 Philip Thrasher | |
" | |
" Important things for beginners: | |
" * Start out small... Don't jam your vimrc full of things you're not ready to | |
" immediately use. | |
" * Read other people's vimrc's. | |
" * Use a plugin manager for christ's sake! (I highly recommend vundle) | |
" * Spend time configuring your editor... It's important. Its the tool you | |
" spend 8 hours a day crafting your reputation. |
View DataHelper.py
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
import sqlite3 | |
# *************************************************** | |
# * | |
# * Description: Python操作SQLite3数据库辅助类(查询构造器) | |
# * Author: wangye | |
# * Website: http://wangye.org | |
# * | |
# *************************************************** |