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
//angular 2 (TypeScript, ReactiveFormsModule) | |
export class MyForm { | |
form: FormGroup; | |
constructor(fb: FormBuilder) { | |
this.form = fb.group({ | |
radioInput: '', | |
group1: fb.group({ | |
ctr0: '', | |
ctr1: '', |
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
""" | |
v0.1.0 | |
Bot asks user about destionation of space travelling. | |
- stateful story, it stores context of story (current question) in python interpreter | |
""" | |
@story.once('lets go!') | |
async def async_story(message): | |
dest = await ask_location(message['user'], text='Where do you go?') | |
store_destination(dest['location']) |
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
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
128 files, 65536Kb each, 8192Mb total | |
Creating files for the test... | |
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
Running the test with following options: | |
Number of threads: 1 | |
Initializing random number generator from timer. |
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
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
128 files, 65536Kb each, 8192Mb total | |
Creating files for the test... | |
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
Running the test with following options: | |
Number of threads: 1 | |
Initializing random number generator from timer. |
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
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
Running the test with following options: | |
Number of threads: 1 | |
Doing CPU performance benchmark | |
Threads started! | |
Done. |
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
sysbench 0.4.12: multi-threaded system evaluation benchmark | |
Running the test with following options: | |
Number of threads: 1 | |
Doing CPU performance benchmark | |
Threads started! | |
Done. |
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
//clear some cached objects in Pixi.js | |
PIXI._batchs.length = 0; | |
PIXI.TextureCache = {}; | |
PIXI.BaseTextureCache = {}; |
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
var ws = new WebSocket("ws://localhost:6437/"); | |
ws.onmessage = function(event) { | |
console.log(event.data); | |
}; |
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
(function(darlingjs, darlingutil) { | |
'use strict'; | |
var width = 640, | |
height = 480; | |
//Create game world | |
var world = darlingjs.w('theCyclicWorld', [ | |
'ngFlatland', | |
'ngCyclic', | |
'ng3D', |
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
/** | |
* Component of position in 3D environment | |
*/ | |
m.$c('ng3D', { | |
x: 0.0, | |
y: 0.0, | |
z: 0.0 | |
}); | |
/** |