Skip to content

Instantly share code, notes, and snippets.

View vinjn's full-sized avatar

Jing Zhang vinjn

View GitHub Profile
#! /usr/bin/env python
# coding=utf-8
__author__ = 'jszhou'
from bottle import *
import hashlib
import xml.etree.ElementTree as ET
import urllib2
# import requests
import json
@vinjn
vinjn / run.bat
Created June 10, 2014 13:11
从当前文件夹全屏运行 Processing 项目
processing-java --sketch=%~dp0 --output=%~dp0\build --force --present

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@vinjn
vinjn / AssetManager.cpp
Last active January 4, 2016 11:49
Cinder-AssetManager
#include "AssetManager.h"
#include "cinder/app/App.h"
#include "cinder/ImageIo.h"
#include "cinder/Function.h"
#include <map>
using namespace std;
using namespace ci;
using namespace ci::app;
@vinjn
vinjn / smallpt.toy
Created July 23, 2013 09:53
smallpt.toy
// The first version is //sw/devtools/SDK/9.5/SDK/MEDIA/HLSL/scene_raytrace.fx
// The second version is https://HlslradiancerToy/samples/scene_raytrace.toy
// Checkered.jpg
// #define REFLECTION_ENABLED
static float4 backgroundColor = { 0.1, 0.1, 0.1, 1.0 };
#define kAspect .5135

If your post looked something like:

# Awesome Blog Post

Here is an example post to show how to use the new `excerpt` tag.

The excerpt tag provides a quick and easy way to tease a post by exposing only the first paragraph such as on a blog index page.
第一品 法会因由分
如是我闻,一时,佛在舍卫国祗树给孤独园,与大比丘众千二百五十人俱。尔时,世尊食时,著衣持钵,入舍卫大城乞食。于其城中,次第乞已,还至本处。饭食讫,收衣钵,洗足已,敷座而坐。
第二品 善现启请分
时,长老须菩提在大众中即从座起,偏袒右肩,右膝着地,合掌恭敬而白佛言:“希有!世尊!如来善护念诸菩萨,善付嘱诸菩萨。世尊!善男子、善女人,发阿耨多罗三藐三菩提心,云何应住,云何降伏其心?”佛言:“善哉,善哉。须菩提!如汝所说,如来善护念诸菩萨,善付嘱诸菩萨。汝今谛听!当为汝说:善男子、善女人,发阿耨多罗三藐三菩提心,应如是住,如是降伏其心。”“唯然,世尊!愿乐欲闻。”
第三品 大乘正宗分
@vinjn
vinjn / AppInst.cpp
Created May 19, 2013 08:38
count the number of executed applications
/******************************************************************************
Module: AppInst.cpp
Notices: Copyright (c) 2008 Jeffrey Richter & Christophe Nasarre
******************************************************************************/
#include "..\CommonFiles\CmnHdr.h" /* See Appendix A. */
#include <windowsx.h>
#include <tchar.h>
#include "Resource.h"
@vinjn
vinjn / dump
Created May 11, 2013 13:55
DaHeng CCV halt
3: kd> !analyze -v
*******************************************************************************
* *
* Bugcheck Analysis *
* *
*******************************************************************************
KERNEL_MODE_EXCEPTION_NOT_HANDLED_M (1000008e)
This is a very common bugcheck. Usually the exception address pinpoints
the driver/function that caused the problem. Always note this address
@vinjn
vinjn / total_cmd_config
Created May 2, 2013 06:55
total commander config
[Configuration]
firstmnu=2810
FirstTime=0
test=32
ShowHiddenSystem=1
UseLongNames=1
Small83Names=0
OldStyleTree=0
autotreechange=0
DirBrackets=1