See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
import requests | |
import re | |
import logging | |
import time | |
from datetime import datetime | |
# Create a custom logger | |
logger = logging.getLogger(__name__) | |
# Create handlers |
// Kahn's topological sort | |
// row number -> references | |
const input = [ | |
{id: "A", refs: []}, | |
{id: "B", refs: []}, | |
{id: "C", refs: ["D"]}, | |
{id: "D", refs: ["B"]}, | |
{id: "E", refs: ["A", "B"]}, | |
{id: "F", refs: ["A", "C"]} |
#!/bin/bash | |
set -eu | |
# sourceable pomodoro command | |
pomodoro() { | |
# print help | |
echo_help() { | |
# Display help | |
echo "Pomodoro timer for the terminal." |
[ | |
{ | |
"name":"ABAP", | |
"type":"programming", | |
"extensions":[ | |
".abap" | |
] | |
}, | |
{ | |
"name":"AGS Script", |
{ | |
"1C Enterprise": { | |
"ace_mode": "text", | |
"color": "#814CCC", | |
"extensions": [ | |
".bsl", | |
".os" | |
], | |
"language_id": 0, | |
"tm_scope": "source.bsl", |
/** | |
lazy val doobieVersion = "1.0.0-RC1" | |
libraryDependencies ++= Seq( | |
"org.xerial" % "sqlite-jdbc" % "3.36.0.2", | |
"org.tpolecat" %% "doobie-core" % doobieVersion, | |
"org.tpolecat" %% "doobie-hikari" % doobieVersion, | |
"org.tpolecat" %% "doobie-scalatest" % doobieVersion % Test, | |
) | |
*/ |
// ==UserScript== | |
// @name YouTube Ad Skipper | |
// @namespace https://github.com/leo-pfeiffer | |
// @version 0.1 | |
// @description Skip ads on youtube | |
// @match *://www.youtube.com/* | |
// ==/UserScript== | |
(function() { |
#!/bin/bash | |
# Install Spin and iSpin on MacOS | |
# adapted from https://philenius.github.io/software%20quality/2020/04/09/installing-spin-on-ubuntu-19.html | |
# (requires developer tools to be installed; to install them, run `xcode-select --install`) | |
# Install in a new directory | |
INSTALL_DIR=Spin | |
mkdir $INSTALL_DIR | |
cd $INSTALL_DIR |
#!/bin/bash | |
# first process | |
cd ~/Desktop/folder1 | |
# start your first process with nohup | |
# (the `&` is important) | |
nohup python proc1.py > proc1.out 2>&1 & | |
echo "proc2.py PID:" $! |