A Pen by Eric Mayberry on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(git branch -r) -replace "origin/", "" | foreach { git branch -t ($_.split(' ', [StringSplitOptions]'RemoveEmptyEntries')[0]) "origin/$($_.split(' ', [StringSplitOptions]'RemoveEmptyEntries')[0])" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References: | |
# http://flask.pocoo.org/docs/1.0/quickstart/#a-minimal-application | |
# http://www.sqlitetutorial.net/sqlite-python/sqlite-python-select/ | |
# http://flask.pocoo.org/docs/1.0/patterns/sqlite3/ | |
import sqlite3 | |
from random import randint | |
from flask import Flask, g | |