> python sync_alfred.py
Alternatively, you can also import the favicons (low resolution)
> python sync_alfred.py -i
# stylus compile & watch | |
stylus public/style/main.styl -w & | |
npm outdated # nicest way to list installed modules | |
npm ls # list installed modules & dependencies | |
npm ls -g # list globally installed node modules | |
npm update # check for updated versions of modules in the current package | |
npm view {pkg} # view a package's published metadata | |
npm install {pkg} --save # install the latest version of a package and add it to your package.json's dependencies | |
npm install {pkg} --save-dev # install and save as a devDependency |
// Files & Commands | |
cmd + p // quick file switcher | |
cmd + shift + p // command palette | |
cmd + r // quick function search | |
cmd + shift + r // rename file | |
// Selection | |
cmd + option + g // select all instances of word under cursor | |
// Find & Replace |
module TimeApp ( start, Config, App ) where | |
{-| This module helps you start your application in a typical Elm workflow. | |
It assumes you are following [the Elm Architecture][arch] and using | |
[elm-effects][]. From there it will wire everything up for you! | |
**Be sure to [read the Elm Architecture tutorial][arch] to learn how this all | |
works!** | |
[arch]: https://github.com/evancz/elm-architecture-tutorial | |
[elm-effects]: http://package.elm-lang.org/packages/evancz/elm-effects/latest |
Logging thoughts and approaches on getting (parts of) the Haskell ethereum client running in the browser.
There are a number of different alternatives. In order of appearance, I estimate the following to languages to need the least amount of porting.
// 21,030 | |
contract Fallback { | |
uint deposits = 0; | |
} | |
// Transaction: 41,143 | |
// Execution: 20,143 | |
contract FallbackDeposit { | |
uint deposits = 0; | |
function() { |
pragma solidity ^0.4.7; | |
library convertLib { | |
function b32toString(bytes32 x) internal returns (string) { | |
// gas usage: about 1K gas per char. | |
bytes memory bytesString = new bytes(32); | |
uint charCount = 0; |
/*output*//* | |
var foo = 'd', bar = 'e'; | |
console.log('a', 'b', 'c', foo, bar); | |
console.log('a', 'b', 'c', foo, 2, 3, 4, 5); | |
console.log('a', 'c', 'b'); | |
console.log('a', 'd', 'b', 'f', 'e', 'g', foo); | |
function veryLongFunction() { | |
console.log.apply(console, arguments); | |
} | |
veryLongFunction('a', 'b', 'c', 'd', 'e', 'f'); |
pragma solidity ^0.4.7; | |
contract usingCallback { | |
function __callback(uint id, string s) {} | |
} | |
contract A { |