Skip to content

Instantly share code, notes, and snippets.

{
"project": {
"projectId": "YOUR_PROJECT_ID",
"apiToken": "YOUR_API_TOKEN"
},
"locales": {
"sourceLocale": "en",
"defaultLocale": "en",
"targetLocales": [
"ar",
@AlwaysBCoding
AlwaysBCoding / .tmux.conf
Created February 23, 2019 17:52
Jordan tmux configuration
set -g prefix C-a
bind C-a send-prefix
unbind C-b
setw -g mode-mouse off
setw -g mode-keys vi
set -g status-utf8 on
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind | split-window -h
bind - split-window -v

Keybase proof

I hereby claim:

  • I am alwaysbcoding on github.
  • I am alwaysbcoding (https://keybase.io/alwaysbcoding) on keybase.
  • I have a public key ASD-nlGrow7CCDpN4chZFmBjgpbaXvXlpP0-hLQ8nZfgbgo

To claim this, I am signing this object:

@AlwaysBCoding
AlwaysBCoding / notes.js
Created December 3, 2017 22:49
DecypherTV (Youtube) - Bitcoin Screencast
// Create a new directory, install bitcore-explorers, and run the node shell
mkdir bitcoin && cd bitcoin
npm install --save bitcore-explorers
node
// Require the Bitcore libraries into the global namespace
var bitcore = require(“bitcore-lib”)
var explo = require(“bitcore-explorers”)
var shell = {}
@AlwaysBCoding
AlwaysBCoding / genesis.json
Created April 12, 2017 13:08
Ethereum Ðapp Development - Video 22 | The Genesis Block
{
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000042",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x0",
@AlwaysBCoding
AlwaysBCoding / install.txt
Created April 12, 2017 13:02
Ethereum Ðapp Development - Video 21 | Installing Geth
// Running on Ubuntu 16.04 (64-bit)
// Do this first
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
// Install Geth
sudo apt-get install ethereum
// Install Solc
@AlwaysBCoding
AlwaysBCoding / decyphercoin.sol
Created March 28, 2017 23:55
Ethereum Ðapp Development - Video 20 | The ERC20 Token Standard
contract DecypherCoin {
// ERC20 State
mapping (address => uint256) public balances;
mapping (address => mapping (address => uint256)) public allowances;
uint256 public totalSupply;
// Human State
string public name;
uint8 public decimals;
@AlwaysBCoding
AlwaysBCoding / index.html
Created March 13, 2017 19:35
Ethereum Ðapp Development - Video 19 | Implementing an Authentication Scheme
<h1>Example Text</h1>
<script>
var message = "DecypherTV";
var userEthereumClient;
window.addEventListener("load", function() {
userEthereumClient = window.web3;
})
@AlwaysBCoding
AlwaysBCoding / script.js
Created March 3, 2017 03:28
Ethereum Ðapp Development - Video 18 | Signing Arbitrary Messages
// Private Key
var pKey = "..."
var pKeyx = new Buffer(pKey, "hex")
// Shared Message
var message = "..."
var messageHash = web3.sha3(message)
var messageHashx = new Buffer(messageHash.replace("0x", ""), "hex")
// Signed Hash
@AlwaysBCoding
AlwaysBCoding / crowdfund.sol
Last active February 26, 2017 19:09
Ethereum Ðapp Development - Video 17 | Contract Events
contract CrowdFund {
address public beneficiary;
uint256 public goal;
uint256 public deadline;
mapping (address => uint256) funders;
address[] funderAddresses;
event NewContribution(address indexed _from, uint256 _value);