- 3d printing
- 3d demo, 3d fitters
- bitnfc
- print 3d bitcoin tags
- raudo deployment tool
- clef password example
- roda opal react.rb integration
- roda
- opal - react.rb - redis api - remote store (remote storage)
- api to wolfram alpha
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
| /*jslint node:true, vars:true, bitwise:true, unparam:true */ | |
| /*jshint unused:false */ | |
| /*global */ | |
| /*forked from: https://gist.github.com/makevoid/edcb65b679ddbd8c69fd */ | |
| var mraa = require('mraa'); | |
| var request = require('request') // https://github.com/request/request | |
| var _ = require('underscore') // docs: http://underscorejs.org/ | |
| var addr2watch = '19e2eU15xKbM9pyDwjFsBJFaSeKoDxp8YT' // bitcoin address to watch |
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
| # prepreq: gem i hub - or - brew install hub | |
| # alias gcom="git commit -m" | |
| # alias gaa="git add ." | |
| # function gpc { | |
| # cur_branch=$(git rev-parse --abbrev-ref HEAD) | |
| # git push origin $cur_branch | |
| # } | |
| alias repo_create="git init . ; hub create ; touch Readme.md; gaa; gcom 'repo init'; gpc;" |
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
| contract OraclizeI { | |
| function query(uint timestamp, byte[] formula_1, byte[] formula_2, byte[] formula_3, byte[] formula_4){} | |
| function query(uint timestamp, address param, byte[] formula_1, byte[] formula_2, byte[] formula_3, byte[] formula_4){} | |
| } | |
| contract Insurance { | |
| // logging helper | |
| event Log(uint k); |
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
| # problem: figure out the operations | |
| # | |
| # expression: | |
| # | |
| # "7 # 7 # 77 # 7 # 7 = 497" | |
| # I'm not good at math so I made this program to solve the problem | |
| operators = %w(+ - * /) | |
| values = [7, 7, 77, 7, 7] |
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
| /*jslint node:true, vars:true, bitwise:true, unparam:true */ | |
| /*jshint unused:false */ | |
| /*global */ | |
| // Solether - solar powered autonomous entity | |
| var mraa = require('mraa'); | |
| var _ = require('underscore') // docs: http://underscorejs.org/ | |
| var Web3 = require('web3'); |
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
| # geth_mine.coffee - activate mining to mine pending transactions - forked by embark-framework | |
| # | |
| # library (from underscore) | |
| now = Date.now or -> | |
| (new Date).getTime() | |
| debounce = (func, wait) -> | |
| timeout = undefined |
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
| // fork of mine.js script on embark-framework, this script mines only if there are new transactions in the pool | |
| var eth, config, main, pendingTransactions, startTransactionMining; | |
| eth = web3.eth; | |
| console.log('geth_mine.js: start'); | |
| console.log("node infos: " + (JSON.stringify(admin.nodeInfo))); | |
| config = { | |
| threads: 2 // set this to the number of threads you machine can handle, remember to set a low difficulty in your genesis block to mine faster |
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
| // usage: | |
| // | |
| // var antani = require("./antani.js") | |
| // | |
| // console.log(antani()) | |
| // | |
| module.exports = function(){ | |
| return "antani"; | |
| } |
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
| mkdir -p ~/eth | |
| cd ~/eth && git clone https://github.com/ethereum/webthree-helpers | |
| cd ~/eth/webthree-helpers && git checkout release | |
| cd ~/eth && webthree-helpers/scripts/ethupdate.sh --no-push --simple-pull --project solidity | |
| cd ~/eth && webthree-helpers/scripts/ethbuild.sh --no-git --cores $(nproc) --project solidity | |
| ~/eth/solidity/build/solc/solc --version |