Skip to content

Instantly share code, notes, and snippets.

Raine Revere raineorshine

Block or report user

Report or block raineorshine

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jonasdt / instructions.markdown
Last active Dec 11, 2015 — forked from hijonathan/instructions.markdown
Steps to transfer Chrome Custom Search Engines to Alfred
View instructions.markdown

Step 0: Clean up your search engines in Chrome.

Step 1: Use the sync script, this will overwrite your custom searches in Alfred!

> python

Alternatively, you can also import the favicons (low resolution)
> python -i
raineorshine / Web Dev Shell
Last active Dec 11, 2015
Common Linux commands that I use when developing web applications.
View Web Dev Shell
# 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
raineorshine / sublime-cheatsheet.js
Created Oct 6, 2013
My Favorite Sublime Text 2 Commands (Mac)
View sublime-cheatsheet.js
// 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
mauriciopoppe / !
Last active Mar 18, 2016
Dark theme for Sublime's Plain Task
View !

Dark theme for Sublime's Plain Task


  • Open the "Packages" folder
  • Save the theme under the folder PlainTasks/ with the name "tasks-monokai.hidden-tmTheme"
  • Open the user settings for the package PlainTasks
  • Update the "color-scheme" property (see the file attached below) to match the saved filename
View TimeApp.elm
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
kejace /
Last active Apr 19, 2016
Ethereum-haskell-client in the browser roadmap

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.

  • GHCJS supports full GHC
  • Haste is full Haskell but with different libraries
  • Fay is a proper subset of Haskell
  • Elm is a Haskell-like language
anonymous / FallbackGasFunctions.sol
Created Jun 8, 2016
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View FallbackGasFunctions.sol
// 21,030
contract Fallback {
uint deposits = 0;
// Transaction: 41,143
// Execution: 20,143
contract FallbackDeposit {
uint deposits = 0;
function() {
View ConvertLib
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;
trxcllnt / curried.sjs
Last active Mar 18, 2017
curry and partially apply functions or macros with sweet.js
View curried.sjs
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');
View Passing dynamic data with callbacks
pragma solidity ^0.4.7;
contract usingCallback {
function __callback(uint id, string s) {}
contract A {
You can’t perform that action at this time.