// jQuery
$(document).ready(function() {
// code
})
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
processing-java --sketch=%~dp0 --output=%~dp0\build --force --present |
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 | |
__author__ = 'jszhou' | |
from bottle import * | |
import hashlib | |
import xml.etree.ElementTree as ET | |
import urllib2 | |
# import requests | |
import json |
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
bool GfxDeviceD3D9::ReadbackImage( /* params */ ) | |
{ | |
HRESULT hr; | |
IDirect3DDevice9* dev = GetD3DDevice(); | |
SurfacePointer renderTarget; | |
hr = dev->GetRenderTarget( 0, &renderTarget ); | |
if( !renderTarget || FAILED(hr) ) | |
return false; | |
D3DSURFACE_DESC rtDesc; |
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
void dump_buffer() | |
{ | |
IDirect3DSurface9* pRenderTarget=NULL; | |
IDirect3DSurface9* pDestTarget=NULL; | |
const char file[] = "Pickture.bmp"; | |
// sanity checks. | |
if (Device == NULL) | |
return; | |
// get the render target surface. |
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
//http://legalizeadulthood.wordpress.com/2009/10/12/direct3d-programming-tip-9-use-the-managed-resource-pool/ | |
template <typename Index> | |
class index_lock | |
{ | |
public: | |
// lock in constructor, unlock in destructor | |
index_lock(IDirect3DIndexBuffer9 *ib, | |
DWORD flags = 0, | |
UINT offset = 0, |
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
#define BLOCK_RUNONCE_START {\ | |
static bool runonce_first = true;\ | |
if (runonce_first)\ | |
{\ | |
runonce_first = false; | |
#define BLOCK_RUNONCE_END }} |
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
BlendState NoBlend | |
{ | |
BlendEnable[0] = False; | |
}; | |
RasterizerState rsWireframe { FillMode = WireFrame; }; | |
technique11 | |
{ | |
pass |
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
perl -pe "s/\sPage\s(\d+)/chr(ord(\1))-13/ge" <ch1_7_36.txt > cc.txt |
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
#!D:/Python26/python.exe | |
# -*- coding:cp936 -*- | |
import socket | |
import sys | |
import wx | |
import win32api | |
import win32ui | |
import win32gui | |
import SocketServer | |
import threading |
OlderNewer