See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
alias.a add . | |
alias.aliases config --get-regexp alias | |
alias.bi bisect | |
alias.ci commit -m | |
alias.co checkout | |
alias.colast checkout - | |
alias.db branch -D | |
alias.laf fsck --lost-found | |
alias.last log -1 HEAD | |
alias.nb checkout -b |
# set default Maildir | |
MAILDIR="$HOME/Maildir" | |
# check if we're called from a .qmail-EXT instead of .qmail | |
import EXT | |
if ( $EXT ) | |
{ | |
# does a vmailmgr user named $EXT exist? if yes, deliver mail to his Maildir instead | |
CHECKMAILDIR = `dumpvuser $EXT | grep '^Directory' | awk '{ print $2 }'` | |
if ( $CHECKMAILDIR ) |
#!/bin/bash | |
# Creator: Phil Cook | |
# Modified: Andy Miller | |
# | |
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh | |
# >>> Kept here for legacy purposes | |
# | |
osx_major_version=$(sw_vers -productVersion | cut -d. -f1) | |
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2) | |
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3) |
# https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments | |
code --install-extension aaron-bond.better-comments | |
# https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager | |
code --install-extension alefragnani.project-manager | |
# https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client | |
code --install-extension bmewburn.vscode-intelephense-client | |
# https://marketplace.visualstudio.com/items?itemName=christian-kohler.npm-intellisense |
For ease of maintainability this project has moved from this gist to its own repository. You can go and visit it there.
// insert your Spotify client id and secret here | |
const clientId = "xxx" | |
const clientSecret = "xxx" | |
// the Spotify country ISO code | |
const spotifyCountry = "DE" | |
let widget = await createWidget() | |
Script.setWidget(widget) | |
Script.complete() |
// your DB Bahn Developer API token | |
// https://developer.deutschebahn.com/store/apis/info?name=Flinkster_API_NG&version=v1&provider=DBOpenData | |
const bahnApiToken = "xxx" | |
// the longitude and latitude of your desired station | |
const latitude = "50.95209" | |
const longitude = "6.91907" | |
// optional: the area uid of your desired station (for 100% accurate results) | |
const areaUid = "" |
// start with this | |
let widget = new ListWidget() | |
// | |
// Set colors | |
let bidenColor = new Color("1a68ff") | |
let trumpColor = new Color("ff4a43") | |
let bidenColor2 = new Color("1a68ff", 0.8) | |
let trumpColor2 = new Color("ff4a43", 0.8) |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.