As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
function extend(target_object) { | |
// Look for additional parameters in this function | |
// eg. extend(target_object, ....a,b,c,d) | |
if (!arguments[1]) { | |
return; | |
} | |
// If any extra arguments, which are objects | |
// loop through them | |
for (var index = 1; index < arguments.length; index++) { |
var mimemaps map[string]string = map[string]string{ | |
".3dm": "x-world/x-3dmf", | |
".3dmf": "x-world/x-3dmf", | |
".7z": "application/x-7z-compressed", | |
".a": "application/octet-stream", | |
".aab": "application/x-authorware-bin", | |
".aam": "application/x-authorware-map", | |
".aas": "application/x-authorware-seg", | |
".abc": "text/vndabc", | |
".ace": "application/x-ace-compressed", |
convertToReadableDate(unixTimestamp) { | |
// Months array | |
const monthsArray = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | |
// Convert timestamp to milliseconds | |
const date = new Date(unixTimestamp * 1000); | |
const year = date.getFullYear(); | |
const month = monthsArray[date.getMonth()]; | |
const day = date.getDate(); | |
const hours = date.getHours(); | |
const minutes = `0${date.getMinutes()}`; |
const rainbowHexColors = [ | |
'#f80c12', '#ee1100', '#ff3311', '#ff4422', | |
'#ff6644', '#ff9933', '#feae2d', '#ccbb33', | |
'#d0c310', '#aacc22', '#69d025', '#22ccaa', | |
'#12bdb9', '#11aabb', '#4444dd', '#3311bb', | |
'#3b0cbd', '#442299', | |
]; |
const fs = require('fs'); | |
const yaml = require('js-yaml'); | |
const uuid = require('node-uuid'); | |
const appYamlConfigFile = 'app.yaml'; | |
const requiredEnvVariables = ['DATABASE_URL']; | |
// default configuration | |
process.env.API_VERSION = 1; | |
['SESSION_SECRET_KEY', 'WEB_TOKEN_SECRET'].forEach((configVar) => { |
The adoption of blockchain technology among stock exchanges is expected to offer significant scope to improve the efficiency around settlement/clearing and collateral management. As a reminder, settlement in the exchanges space is typically T+3 days, but the delay is principally due to market practices, financial industry laws, and regulatory requirements and not necessarily to current technological infrastructure. The industry has already been discussing the potential to reduce settlement to T+2 (already common in Australia) and the implementation of blockchain could act as a catalyst to drive down the settlement period further towards T+0.
Regulatory and legal challenges require resolution before we see wide-spread adoption. The use of blockchain/distributed ledger for settlements could provide a secure, consistent source of proof of the current ownership and provide the origin of assets to custodians, agents and beneficial owners. We note the constraint will clear
pragma solidity ^0.4.11; | |
/** | |
* @title ERC20Basic | |
* @dev Simpler version of ERC20 interface | |
* @dev see https://github.com/ethereum/EIPs/issues/179 | |
*/ | |
contract ERC20Basic { | |
uint256 public totalSupply; | |
function balanceOf(address who) public constant returns (uint256); | |
function transfer(address to, uint256 value) public returns (bool); |
I hereby claim:
To claim this, I am signing this object:
import queryparams from 'query-params'; | |
export default (method, targetedResource, { headers, pathVariables, params, body }) => { | |
if (pathVariables) { | |
Object.keys(pathVariables).forEach((key) => { | |
targetedResource = targetedResource.replace(`{${key}}`, pathVariables[key]); | |
}); | |
} | |
if (params) targetedResource += `?${queryparams.encode(params)}`; |