Skip to content

Instantly share code, notes, and snippets.

Justin Thomas base698

  • VDMS
  • Santa Monica, CA
View GitHub Profile
@tomconte
tomconte / web3-solc-contract-compile-deploy.js
Created Dec 13, 2016
Compiling and deploying an Ethereum Smart Contract, using solc and web3.
View web3-solc-contract-compile-deploy.js
const fs = require('fs');
const solc = require('solc');
const Web3 = require('web3');
// Connect to local Ethereum node
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
// Compile the source code
const input = fs.readFileSync('Token.sol');
const output = solc.compile(input.toString(), 1);
@emallson
emallson / nodejs-repl-eval.el
Created May 30, 2014
Evaluation functions for the `nodejs-repl' Emacs package.
View nodejs-repl-eval.el
;;; nodejs-repl-eval.el --- Summary
;;; Commentary:
;;;
;;; Evaluation functions for the `nodejs-repl' package. Written on a stormy
;;; night between days of node hacking.
;;;
;;; Code:
(require 'js2-mode)
(require 'nodejs-repl)
@puffnfresh
puffnfresh / hipchat.el
Created Nov 2, 2012
HipChat + jabber.el
View hipchat.el
;; Connect using jabber-connect
;; My username from the HipChat configuration
;; from https://www.hipchat.com/account/xmpp
(setq jabber-account-list '(("10804_81219@chat.hipchat.com")))
;; To join HipChat rooms easily
(defvar hipchat-number "10804")
(defvar hipchat-nickname "Brian McKenna")
(defun hipchat-join (room)
View unfold-examples.clj
(ns unfold-examples
(:use [unfold-util]))
(defn unfold-tails [s]
(unfold empty? identity rest s))
(defn unfold-map [f s]
(unfold empty? #(f (first %)) rest s))
You can’t perform that action at this time.