This file contains 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
#alias reload="source ~/.bashrc"; | |
alias reload="exec zsh -l" | |
alias aliases="cd ~/.profile && code . && cd -" | |
#alias alias=aliases | |
# Path shortcuts: | |
alias .='cd ~' | |
alias h='cd ~' | |
alias ~='cd ~' | |
alias ..='cd ..' |
This file contains 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
{ | |
// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Generate class header": { | |
"prefix": "cls", | |
"body": [ | |
"#pragma once", |
This file contains 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
{ | |
"window.title": "${dirty} ${folderPath} 💠 ${activeEditorMedium} 🔷 ${rootName} ", | |
"explorer.autoReveal": true, | |
"explorer.autoCollapse": false, | |
"explorer.confirmDelete": false, | |
"explorer.confirmDragAndDrop": false, | |
"explorer.compactFolders": true, | |
"workbench.layoutControl.enabled": true, | |
"workbench.list.smoothScrolling": true, | |
//"workbench.list.mouseWheelScrollSensitivity": ".2", // mac |
This file contains 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
[HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response] | |
"Last BounceKey Setting"=dword:00000000 | |
"Last Valid Delay"=dword:00000000 | |
"Last Valid Repeat"=dword:00000000 | |
"Last Valid Wait"=dword:000003e8 | |
"AutoRepeatDelay"="120" | |
"AutoRepeatRate"="2" | |
"BounceTime"="5" | |
"DelayBeforeAcceptance"="2" | |
"Flags"="27" |
This file contains 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
import react from '@vitejs/plugin-react-swc'; | |
import path from 'path'; | |
import { defineConfig } from 'vite'; | |
import dts from 'vite-plugin-dts'; | |
import { libInjectCss } from 'vite-plugin-lib-inject-css'; | |
//import reactJsx from 'vite-react-jsx'; | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [ |
This file contains 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
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "cmd+ctrl+t", | |
"command": "editor.action.insertSnippet", | |
"when": "editorHasSelection", | |
"args": { | |
"langId": "javascript", | |
"name": "Wrap in try/catch" | |
} |
This file contains 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
#!/bin/sh | |
tmux new-session -d | |
tmux split-window -h | |
tmux select-pane -t 0 | |
dir=$(PWD) | |
tmux send-keys -t 0 "cd client" Enter | |
tmux send-keys -t 0 "npm run dev" Enter |
This file contains 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
export class DateUtils { | |
public static dateToIsoString(date: Date | string): string | null { | |
return date.toISOString(); | |
} | |
public static getDateFromMysql(isoDateStr: string): Date { | |
var dateParts = isoDateStr.split("-"); | |
return new Date(dateParts[0], dateParts[1] - 1, dateParts[2].substr(0, 2)); | |
} |
This file contains 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
server { | |
listen 80; | |
listen [::]:80; | |
server_name tier33.ryanweiss.net; | |
root /web/tier33/build; | |
index index.html; | |
location / { | |
try_files $uri $uri/ /index.html?&args; |
This file contains 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
// Config: relative to where npm command is run: | |
const APP_BASE = 'src'; | |
const ENTRY_FILE = 'index.ts'; | |
const OUTPUT_DIR = 'build'; | |
const OUTPUT_FILE = 'app.js'; | |
const IS_DEV = true; | |
const TARGET = 'es2018'; | |
function build(entryFile, outFile) { | |
require('esbuild').build({ |
NewerOlder