Skip to content

Instantly share code, notes, and snippets.

View bhpayne's full-sized avatar
💭
wandering in the wilderness

Ben bhpayne

💭
wandering in the wilderness
View GitHub Profile
@bhpayne
bhpayne / git-feature-workflow.md
Last active May 28, 2024 10:36 — forked from blackfalcon/git-feature-workflow.md
Git basics - a general workflow

There are many Git workflows out there, I heavily suggest also reading the atlassian.com [Git Workflow][article] article as there is more detail than presented here.

The two prevailing workflows are [Gitflow][gitflow] and [feature branches][feature]. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited.

When using Bash in the command line, it leaves a bit to be desired when it comes to awareness of state. I would suggest following these instructions on [setting up GIT Bash autocompletion][git-auto].

Basic branching

When working with a centralized workflow the concepts are simple, master represented the official history and is always deployable. With each new scope of work, aka feature, the developer is to create a new branch. For clarity, make sure to use descriptive names like transaction-fail-message or github-oauth for your branches.

@bhpayne
bhpayne / app.py
Created May 1, 2020 16:33 — forked from lost-theory/app.py
flask: show request time in template
import time
from flask import Flask, request, g, render_template
app = Flask(__name__)
app.config['DEBUG'] = True
@app.before_request
def before_request():
g.request_start_time = time.time()
@bhpayne
bhpayne / graph.json
Created May 13, 2020 22:14 — forked from JakeTTU/graph.json
Graph Link Filtering using Slider
{
"nodes": [
{
"name": "Person1",
"group": "#000"
},
{
"name": "Person2",
"group": "#000"
},
@bhpayne
bhpayne / LICENSE
Created May 14, 2020 12:14 — forked from rkirsling/LICENSE
Directed Graph Editor
Copyright (c) 2013 Ross Kirsling
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@bhpayne
bhpayne / README.md
Created May 14, 2020 12:15 — forked from cjrd/README.md
Interactive tool for creating directed graphs using d3.js.

directed-graph-creator

Interactive tool for creating directed graphs, created using d3.js.

Demo: http://bl.ocks.org/cjrd/6863459

Operation:

  • drag/scroll to translate/zoom the graph
@bhpayne
bhpayne / graph.json
Created May 15, 2020 14:41 — forked from JakeTTU/graph.json
Graph with Link Filtering
{
"nodes": [
{
"id": "Person1",
"group": "#000"
},
{
"id": "Person2",
"group": "#000"
},
@bhpayne
bhpayne / .block
Created May 25, 2020 23:00 — forked from d3noob/.block
Multiple HTML inputs linked with d3.js
license: mit
@bhpayne
bhpayne / index.html
Created May 25, 2020 23:01 — forked from d3noob/index.html
Range input with v4
<!DOCTYPE html>
<meta charset="utf-8">
<title>Input test (circle)</title>
<p>
<label for="nRadius"
style="display: inline-block; width: 240px; text-align: right">
radius = <span id="nRadius-value">…</span>
</label>
<input type="range" min="1" max="150" id="nRadius">
@bhpayne
bhpayne / .block
Created June 4, 2020 11:59 — forked from XavierGimenez/.block
Grouping nodes in a Force-Directed Graph
license: gpl-3.0
height: 600