See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion |
| #!/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) |
| // On PhpStorm, when ussing with laravel mix, for Alias path resolving in components you have to: | |
| // - create a webpack.config.js file separately like: | |
| const path = require('path') | |
| const webpack = require('webpack') | |
| module.exports = { | |
| ... | |
| resolve: { | |
| extensions: ['.js', '.json', '.vue'], |
| #!/usr/bin/env bash | |
| VERSION="${1#[vV]}" | |
| VERSION_MAJOR="${VERSION%%.*}" | |
| VERSION_MINOR_PATCH="${VERSION#*.}" | |
| VERSION_MINOR="${VERSION_MINOR_PATCH%%.*}" | |
| VERSION_PATCH_PRE_RELEASE="${VERSION_MINOR_PATCH#*.}" | |
| VERSION_PATCH="${VERSION_PATCH_PRE_RELEASE%%[-+]*}" | |
| VERSION_PRE_RELEASE="" |
Close and Quit VSCode
Remove VScode from Applications (just go to Finder -> Applications and move VSCode to Bin)
Execute these commands in any order. The paths might be slightly different for you.
rm -fr ~/.vscode*
rm -fr ~/Library/Application\ Support/Code/
rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |