Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Chris Jamieson jamiesoncj

🏠
Working from home
Block or report user

Report or block jamiesoncj

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
@levelsio
levelsio / btc-eth-dca-buy.php
Last active Jul 9, 2019
This script runs daily and "Dollar Cost Average"-buys $40 BTC and $10 ETH per day
View btc-eth-dca-buy.php
<?
//
// [ BUY BTC & ETH DAILY ON BITSTAMP ]
// by @levelsio
//
// 2017-08-23
//
// 1) buy $40/day BTC
// 2) buy $10/day ETH
//
@cmawhorter
cmawhorter / proxy.js
Created Jun 26, 2014
Node script to forward all http requests to another server and return the response with an access-control-allow-origin header. Follows redirects.
View proxy.js
// Simple proxy/forwarding server for when you don't want to have to add CORS during development.
// Usage: node proxy.js
// Open browser and navigate to http://localhost:9100/[url]
// Example: http://localhost:9100/http://www.google.com
// This is *NOT* for anything outside local development. It has zero error handling among other glaring problems.
// This started as code I grabbed from this SO question: http://stackoverflow.com/a/13472952/670023
@leesmith
leesmith / simple-git-workflow.md
Last active Jul 12, 2019
Simple Git Workflow For Continuous Delivery
View simple-git-workflow.md

Simple Git Workflow For Continuous Delivery

Workflow guidelines:

  • master branch is always production-ready, deployable, 100% green test suite
  • New development is done on feature branches, with frequent rebasing onto master
  • Clean commit history by preferring to rebase instead of merge (git pull is configured to automatically rebase)

rebase workflow

Workflow

@makeusabrew
makeusabrew / label-to-placeholder.js
Created May 22, 2011
Simple jQuery snippet to convert form labels into inline placeholders
View label-to-placeholder.js
$("form :input").each(function(index, elem) {
var eId = $(elem).attr("id");
var label = null;
if (eId && (label = $(elem).parents("form").find("label[for="+eId+"]")).length == 1) {
$(elem).attr("placeholder", $(label).html());
$(label).remove();
}
});
You can’t perform that action at this time.