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
| /* | |
| Copyright (c) 2015 Michael Tao | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
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
| /* | |
| ITG3205 3Axis Gyroscope | |
| Sample codes function | |
| for Gyroscope ITG3205. | |
| Codes from: | |
| http://www.varesano.net | |
| Modified by: |
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
| /* | |
| * derivative work of Matheus de Oliveira's json_manipulator.sql | |
| * https://gist.github.com/matheusoliveira/9488951 | |
| * | |
| * adapted to support postgresql 9.4 jsonb type | |
| * no warranties or guarantees of any kind are implied or offered | |
| * | |
| * license is as Matheus conferred it on 4/9/2015: | |
| * matheusoliveira commented on Apr 9 | |
| * @hannes-landeholm, I'd like to take credit if you share them |
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
| // | |
| // Needs web3.js from https://github.com/axic/web3.js/tree/swarm | |
| // | |
| var Web3 = require('web3') | |
| var url = require('url') | |
| var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545')) | |
| try { | |
| web3.eth.defaultAccount = web3.eth.coinbase |