As configured in my dotfiles.
start new:
tmux
start new with session name:
-- | |
-- Read only | |
-- | |
-- Create a group | |
CREATE ROLE postgres_ro_group; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO postgres_ro_group; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group; |
pragma solidity ^0.4.13; | |
contract someContract { | |
mapping(address => uint) balances; | |
function deposit() payable { | |
balances[msg.sender] += msg.value; | |
} | |
////////////////////////////////////////////////////////// | |
// For training purposes. | |
// Solidity Contract Factory | |
// Module 5 - START | |
// Copyright (c) 2017, Rob Hitchens, all rights reserved. | |
// Not suitable for actual use | |
////////////////////////////////////////////////////////// | |
pragma solidity ^0.4.6; |
const Promise = require("bluebird"); | |
const sequentialPromise = require("./sequentialPromise.js"); | |
/** | |
* @param {!string | !Array.<!string>} txHash, a transaction hash or an array of transaction hashes. | |
* @param {Number} interval, in seconds. | |
* @returns {!Promise.<!object> | !Promise.<!Array.<!object>>} the receipt or an array of receipts. | |
*/ | |
module.exports = function getTransactionReceiptMined(txHash, interval) { | |
const self = this; |
General | |
1. Site uses a cache buster for expiring .js, .css, and images | |
2. JavaScript and CSS is minified and concatenated into logical groupings | |
3. Images have been optimized by ImageOptim (http://imageoptim.com/) | |
Markup | |
1. Code does not contain inline JavaScript event listeners |
var cluster = require('cluster'); | |
if (cluster.isWorker) { | |
console.log('Worker ' + process.pid + ' has started.'); | |
// Send message to master process. | |
process.send({msgFromWorker: 'This is from worker ' + process.pid + '.'}) | |
// Receive messages from the master process. |
As configured in my dotfiles.
start new:
tmux
start new with session name: