Skip to content

Instantly share code, notes, and snippets.

Avatar
🔷
Coding Hard

Jonathan Goode u01jmg3

🔷
Coding Hard
View GitHub Profile
@digitaljhelms
digitaljhelms / gist:4287848
Last active Nov 27, 2022
Git/GitHub branching standards & conventions
View gist:4287848

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@paulirish
paulirish / data-markdown.user.js
Last active Nov 27, 2022
*[data-markdown] - use markdown, sometimes, in your HTML
View data-markdown.user.js
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@gullyn
gullyn / flappy.html
Last active Nov 27, 2022
Flappy bird in 205 bytes (improved!)
View flappy.html
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>
@mlocati
mlocati / win10colors.cmd
Last active Nov 27, 2022
ANSI Colors in standard Windows 10 shell
View win10colors.cmd
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m
@staltz
staltz / introrx.md
Last active Nov 27, 2022
The introduction to Reactive Programming you've been missing
View introrx.md
@PurpleBooth
PurpleBooth / README-Template.md
Last active Nov 26, 2022
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@kottenator
kottenator / simple-pagination.js
Created Jul 13, 2015
Simple pagination algorithm
View simple-pagination.js
// Implementation in ES6
function pagination(c, m) {
var current = c,
last = m,
delta = 2,
left = current - delta,
right = current + delta + 1,
range = [],
rangeWithDots = [],
l;
@paragonie-scott
paragonie-scott / crypto-wrong-answers.md
Last active Nov 24, 2022
An Open Letter to Developers Everywhere (About Cryptography)
View crypto-wrong-answers.md
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active Nov 24, 2022
Hyperlinks in Terminal Emulators
View Hyperlinks_in_Terminal_Emulators.md
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: