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
<form action="/" method="post" id="form" class="validate[required,funcCall[checkDefault]]"> | |
<input type="submit" value="submit" /> | |
</form> | |
<script type="text/javascript"> | |
/* | |
* Awesome helper function for validationEngine | |
* great for use with autobox | |
* checkes that a field is not the default value before submitting | |
*/ |
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
99-113-38-75:hubot-kandan-app kevisazombie$ git clone https://github.com/cloudfuji/hubot-kandan-app.git | |
Cloning into hubot-kandan-app... | |
remote: Counting objects: 468, done. | |
remote: Compressing objects: 100% (371/371), done. | |
remote: Total 468 (delta 48), reused 455 (delta 35) | |
Receiving objects: 100% (468/468), 686.09 KiB | 434 KiB/s, done. | |
Resolving deltas: 100% (48/48), done. | |
99-113-38-75:hubot-kandan-app kevisazombie$ cd hubot-kandan-app | |
99-113-38-75:hubot-kandan-app kevisazombie$ | |
99-113-38-75:hubot-kandan-app kevisazombie$ # Install the dependencies and scripts |
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
get '/stream' => sub{ | |
content_type 'text/event-stream'; | |
header 'Cache-Control' => 'no-cache'; | |
header 'Connection' => 'Keep-Alive'; | |
return "data: Hello World \n\n"; | |
}; |
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
filepicker.pick(function(FPFile){ | |
if (FPFile.mimetype == "image/bmp"){ | |
filepicker.convert(FPFile, {format:'jpg'}, function(conv){ | |
// save_to(conv); | |
}) | |
} else { | |
// save_to(FPFile); | |
} | |
}); |
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 paletteMap = {}; | |
var palette = []; | |
//Iterate over child voxel meshes | |
Qbjson.matrixList.map((Mesh) => { | |
var x = Mesh.sizeX; | |
var y = Mesh.sizeY; | |
var z = Mesh.sizeZ; | |
var n = ndarray( |
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
[ | |
{children: null, parent: 'derp', drawFn: function(){}}, | |
{children: null, parent: 'herp', drawFn: function(){}}, | |
{children: [2,3,4,5,], parent: 'herp', drawFn: function(){}}, | |
{children: null, parent: 'derp' }, | |
{children: null, parent: 'blerp', drawFn: function(){}}, | |
{children: [2,3,4], parent: 'herp' }, | |
{children: null, parent: 'herp', drawFn: function(){}}, | |
{children: [8,0,8], parent: 'herp', drawFn: function(){}}, | |
{children: null, parent: 'derp', drawFn: }, |
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 | |
class Scene extends Component { | |
componentDidMount(){ | |
this.props.addNodeToScene({ | |
asset: "mechsniper-hands.qb", | |
position: [0,0,0] | |
}); | |
} | |
renderNodes(){ |
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
const traffic_light = [< | |
off -> red => green => yellow => red; | |
[red yellow green] ~> off; | |
>]; |
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
const traffic_light = [< | |
off -> red => green => yellow => red; | |
[red yellow green] ~> off; | |
>]; |
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
const traffic_light = [< | |
off -> red => green => yellow => red; | |
[red yellow green] ~> off; | |
>]; |