Skip to content

Instantly share code, notes, and snippets.

<body></body>
<script src="http://gamingJS.com/Three.js"></script>
<script src="http://gamingJS.com/ChromeFixes.js"></script>
<script>
var camera, scene, renderer;
var geometry, material, mesh;
init();
function init() {
@lite
lite / DebugConsole.cs
Created November 14, 2012 02:15 — forked from darktable/DebugConsole.cs
Unity3D: Heavily modified version of Jeremy Hollingsworth's DebugConsole script.
#define DEBUG_CONSOLE
#define DEBUG_LEVEL_LOG
#define DEBUG_LEVEL_WARN
#define DEBUG_LEVEL_ERROR
#if (UNITY_EDITOR || DEVELOPMENT_BUILD)
#define DEBUG
#endif
#if (UNITY_IOS || UNITY_ANDROID)
@lite
lite / file1.txt
Created February 16, 2017 03:04
API gist
String file contents
@lite
lite / Webhook.md
Created February 9, 2017 08:13
Webhook

webhook

接口设计

// POST
{
 "source": {
 "platform": "A Niubility Platform",
 "other": "other infomation"
@lite
lite / Webhook.md
Created February 9, 2017 08:13
Webhook

webhook

接口设计

// POST
{
 "source": {
 "platform": "A Niubility Platform",
 "other": "other infomation"
@lite
lite / 2017-02-09.md
Created February 9, 2017 01:53
ARCS

ARCS

是Attention(注意)、 Relevance(关联)、Confidence(信心) 和 Satisfaction(满意)四个英文单词的首字母的所写。

注意

教师可以通过如下三个方面的教学设计来吸引和维持学生的注意力:

  • 知觉唤醒
@lite
lite / gist-gtd.md
Last active February 8, 2017 02:14
GTD Todolist
  • Pick the flowers
  • Call John 9303032332
  • Cancel cable subscription
  • Book the flight tickets
@lite
lite / 0_reuse_code.js
Created February 8, 2017 01:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# How to echobot with XMPP, BOSH, and Strophe
1. Setup ejabberd(http://www.ejabberd.im/) server and setup account admin@localhost.local
NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this
#/etc/hosts
127.0.0.1 localhost.local
NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server.
2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-1.0)
# How to echobot with XMPP, BOSH, and Strophe
1. Setup ejabberd(http://www.ejabberd.im/) server and setup account admin@localhost.local
NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this
#/etc/hosts
127.0.0.1 localhost.local
NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server.
2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-1.0)