Skip to content

Instantly share code, notes, and snippets.

View Volune's full-sized avatar

Jeremy Judeaux Volune

  • China, Shanghai
View GitHub Profile
function createBackground() {
}
var StartScreenLayer = cc.Layer.extend({
ctor: function () {
this._super();
// this function can call createBackground!
createBackground.call(this);
},
callCreateBackgroundToo: function () {
@Volune
Volune / DbImportOldDatabaseTest.java
Created September 9, 2013 12:54
OrientDB 1.5.1 and 1.6.0, Test the import of an "old" database : clusters ids and names doesn't match the new database schema.
package com.orientechnologies.orient.test;
import com.orientechnologies.orient.core.Orient;
import com.orientechnologies.orient.core.command.OCommandOutputListener;
import com.orientechnologies.orient.core.db.graph.OGraphDatabase;
import com.orientechnologies.orient.core.db.tool.ODatabaseExport;
import com.orientechnologies.orient.core.db.tool.ODatabaseImport;
import com.orientechnologies.orient.core.hook.ORecordHook;
import com.orientechnologies.orient.core.metadata.schema.OSchema;
import com.orientechnologies.orient.core.record.impl.ODocument;
@Volune
Volune / TestEscaping.java
Created September 6, 2013 16:41
Test strings with reverse solidus (backslash) in orientdb 1.5.1
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
import com.orientechnologies.orient.core.record.impl.ODocument;
import com.orientechnologies.orient.core.sql.OCommandSQL;
import java.util.List;
public class TestEscaping {
private ODatabaseDocumentTx db;
public static void main(String... args) {
@Volune
Volune / a.js
Last active December 15, 2015 09:18
Try to reproduce browserify/browserify#338, sometime fails because the bug is dependent of results order of asynchronous calls
var common = require('./common');
common.log('A');