- 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
| 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
| # 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
| /*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
| # main method / fn | |
| # | |
| def combined_sorted_enum(enums) | |
| out = [] | |
| enum_ended = nil | |
| while true do | |
| enums.sort_by! do |enum| | |
| begin | |
| enum.peek |
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: redis-cli publish message hello | |
| require 'sinatra' | |
| require 'redis' | |
| conns = [] | |
| get '/' do | |
| erb :index | |
| end |
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
| test |
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
| # another idea - see index2 | |
| # when you code the code - a possible implementation gets built | |
| # when you code the class (interface, module, view wathever) | |
| # - a server is written to hit the view | |
| # - an implementation like this one - so only an editor like codemirror on 2 tabs synced | |
| class People |
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
| set -xe | |
| mkdir ~/tmp | |
| cd ~/tmp | |
| wget https://bitcoin.org/bin/bitcoin-core-0.19.0.1/bitcoin-0.19.0.1-x86_64-linux-gnu.tar.gz --no-check-certificate | |
| # check the shasum | |
| tar xvf bitcoin-0.19.0.1-x86_64-linux-gnu.tar.gz |
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
| expand = (text)-> | |
| text | |
| .replace /&/g, '&' | |
| .replace /</g, '<' | |
| .replace />/g, '>' | |
| .replace /\*(.+?)\*/g, '<i>$1</i>' | |
| beam = (url) -> | |
| $.getJSON url, (page) -> |