This file contains hidden or 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 soap = require("soap"); | |
| soap.createClient("http://www.w3schools.com/webservices/tempconvert.asmx?WSDL", function(err, client) { | |
| if(err) { | |
| console.error("Can't create client", err); | |
| return; | |
| } | |
| client.CelsiusToFahrenheit({Celsius: "25"}, function(err, result) { | |
| if(err) { | |
| console.error("Can't call method", err); |
This file contains hidden or 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
| // js/app.js | |
| function add(a, b) { | |
| return a+b; | |
| } | |
| function say(text) { | |
| document.body.textContent = text; | |
| } |
This file contains hidden or 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
| // Setup your scene here | |
| var tex = null; | |
| var mat = new THREE.MeshBasicMaterial({}); | |
| var box = new THREE.Mesh( | |
| new THREE.BoxGeometry(100, 100, 100), | |
| mat | |
| ); | |
| window.THREE = THREE; | |
| var script = document.createElement("script"); |
This file contains hidden or 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
| DEFAULT="[0m" | |
| PINK="[35m" | |
| GREEN="[32m" | |
| ORANGE="[33m" | |
| hg_branch() { | |
| BOOKMARK=`hg branch 2> /dev/null` | |
| if [ -n "$BOOKMARK" ]; then | |
| BOOKMARK="\e${DEFAULT} on \e${ORANGE}$BOOKMARK\e${DEFAULT}" | |
| fi |
This file contains hidden or 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
| <template> | |
| <style> | |
| </style> | |
| </template> | |
| <script> | |
| var Element = null; | |
| (function(currentScript) { | |
| var elemPrototype = Object.create(HTMLDivElement.prototype); // pick the appropriate prototype for your element! |
This file contains hidden or 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
| import sys | |
| import os | |
| sys.path.append('../lib/') | |
| from device_listener import DeviceListener | |
| from pose_type import PoseType | |
| class WavePoseListener(DeviceListener): | |
| def on_pose(self, pose): | |
| pose_type = PoseType(pose) |
This file contains hidden or 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
| DEFAULT="[37;40m" | |
| RED="[31;40m" | |
| GREEN="[32;40m" | |
| hg_changes() { | |
| echo -e "\e${RED}`hg log -pr $1 | grep '^+' | wc -l` Additions\e${DEFAULT}"; echo -e "\e${GREEN}`hg log -pr $1 | grep '^-' | wc -l` Deletions\e${DEFAULT}"; | |
| } |
This file contains hidden or 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
| [2015-09-08 14:56:17,530][WARN ][transport.netty ] [Captain Wings] exception caught on transport layer [[id: 0x93369774, /127.0.0.1:37573 :> /127.0.0.1:9300]], closing connection | |
| java.io.StreamCorruptedException: invalid internal transport message format |
This file contains hidden or 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 fs = require('fs'), | |
| omggif = require('omggif'), | |
| THREE = require('three'), | |
| SoftwareRenderer = require('three-software-renderer'); | |
| // How many frames and how large shall the GIF be? | |
| var NUM_FRAMES = 200, WIDTH = 500, HEIGHT = 500; | |
| // Our scene, camera and renderer and a box to render | |
| var scene = new THREE.Scene(), |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Isomorphic Three.js</title> | |
| <style> | |
| html, body { | |
| height: 100%; | |
| height: 100vh; | |
| padding: 0; |