Skip to content

Instantly share code, notes, and snippets.

View andersr's full-sized avatar
😅
Focusing

Anders Ramsay andersr

😅
Focusing
View GitHub Profile
@andersr
andersr / component-template-initial.tsx
Last active April 8, 2022 11:40
Blog Post: How to start automating repetitive coding tasks
interface Props {
children?: React.ReactNode;
}
export function {{pascalCase name}} ({ children }: Props) {
return (
<div>
{children}
</div>
);
{
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "vscode-icons",
"window.zoomLevel": 3,
"terminal.integrated.shell.osx": "/usr/local/bin/fish",
"terminal.integrated.fontFamily": "'Ubuntu Mono derivative Powerline', Menlo, Monaco, 'Courier New', monospace",
"editor.snippetSuggestions": "top",
"editor.fontFamily": "'Victor Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"workbench.colorTheme": "One Dark Plus",
# name: bobthefish
#
# bobthefish is a Powerline-style, Git-aware fish theme optimized for awesome.
#
# You will need a Powerline-patched font for this to work:
#
# https://powerline.readthedocs.org/en/master/installation.html#patched-fonts
#
# I recommend picking one of these:
#
{
"workbench.startupEditor": "newUntitledFile",
"files.insertFinalNewline": true,
"javascript.format.enable": false,
"workbench.iconTheme": "vscode-icons",
"editor.wordWrap": "on",
"workbench.colorTheme": "One Dark Pro Vivid",
"terminal.integrated.shell.osx": "/usr/local/bin/fish",
"terminal.integrated.fontFamily": "Source Code Pro for Powerline",
"editor.formatOnSave": true,
@andersr
andersr / index.html
Last active August 14, 2019 16:41
PS Tutorial - initial content
<!DOCTYPE html>
<html>
<head>
<title><your name>'s Personal Site</title>
</head>
<body>
<p>Hi, I'm <your name>.</p>
<p>Thanks for stopping by!</p>
@andersr
andersr / package.json
Last active August 14, 2019 15:43
PS Tutorial - add live-server script.
{
"name": "my-personal-site",
"version": "1.0.0",
"main": "index.html",
"repository": "git@github.com:andersr/my-personal-site.git",
"author": "Anders <anders@anders.co>",
"license": "MIT",
"scripts": {
"dev": "live-server ",
},
@andersr
andersr / package.json
Created August 14, 2019 15:39
PS Tutorial default package.json
{
"name": "my-personal-site",
"version": "1.0.0",
"main": "index.html",
"repository": "git@github.com:andersr/my-personal-site.git",
"author": "Anders <anders@anders.co>",
"license": "MIT",
"devDependencies": {
"live-server": "^1.2.1"
}
@andersr
andersr / index.html
Created August 14, 2019 15:36
PS Tutorial, initial index file
<!DOCTYPE html>
<html>
<head>
<title>My Personal Site</title>
</head>
<body>
<h1>My Personal Site</h1>
</body>
#!/bin/zsh
((!$#)) && echo No matching branch found && exit 1
git checkout $1
# place in ~./bin/git-<command>
{
"workbench.startupEditor": "newUntitledFile",
"editor.wordWrap": "on",
"terminal.integrated.shell.linux": "/usr/bin/fish",
"terminal.integrated.fontFamily": "Source Code Pro for Powerline",
"files.insertFinalNewline": true,
"editor.snippetSuggestions": "top",
"editor.gotoLocation.multiple": "goto",
"typescript.tsdk": "/usr/local/lib/node_modules/typescript/lib",
"files.associations": {