Skip to content

Instantly share code, notes, and snippets.

View getsetbro's full-sized avatar
💭
[ bro-lite ]

Seth Broweleit getsetbro

💭
[ bro-lite ]
View GitHub Profile
@getsetbro
getsetbro / tsconfig.json
Created July 4, 2016 03:43
tsconfig.json to add es6 shims and intellisense to typescript
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"noLib": true
},
"files": [
"app/*.ts",
"scripts/lib.es6.d.ts"
]
@getsetbro
getsetbro / committed.node_modules.txt
Created March 27, 2017 17:09
oops committed node_modules folder
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@getsetbro
getsetbro / vscode_emmet_settings_sept.2017.txt
Created September 23, 2017 14:27
vscode emmet settings - Sept 2017
"editor.snippetSuggestions": "top",
"emmet.showSuggestionsAsSnippets": true,
"emmet.showAbbreviationSuggestions": true,
"emmet.showExpandedAbbreviation": "always",
"emmet.triggerExpansionOnTab": true,
@getsetbro
getsetbro / .block
Created October 5, 2017 14:27
fresh block
license: mit
@getsetbro
getsetbro / spcontext.js
Last active October 16, 2017 15:42 — forked from phillipharding/aspnetmvc-spcontext.js
spcontext.js without jquery
/*!spcontext*/
(function (window, undefined) {
"use strict";
//var $ = window.jQuery;
var document = window.document;
// SPHostUrl parameter name
var SPHostUrlKey = "SPHostUrl";
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body{
font-family:arial;
}
@getsetbro
getsetbro / npmuninstalllog.txt
Created March 20, 2018 14:35
npmuninstalllog
sb-mbp:~ gsb$ npm list -g --depth 0
/usr/local/lib
├── @angular/[email protected]
├── @frctl/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
@getsetbro
getsetbro / lamp.favicon.ico.html
Created January 9, 2019 19:52
lamp favicon ico html
<link href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAC6urpvu7u7/7y8vP+9vb3/v7+//8HBwf/CwsL/xcXF/8fHx//Jycn+zMzMKQAAAAAAAAAAAAAAAAAAAAAAAAAAvb29G76+vky/v79MwMDATMHBwX/Dw8PnxMTEWcbGxkzIyMhMysrKS83NzQcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADDw8NWxMTETAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAxcXFlcbGxggAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMfHx5oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADJycmZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAy8vLmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMzMzJrMzMwBAAAAAAAAAAAAAAAAAAAAAAAAAADR0dEm0dHROAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADOzs5wzc3NMQAAAAAAAAAAAAAAAM/Pzw3Q0NCN0NDQ+tHR0erS0tIXAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAz8/PFM7OzpgAAAAAAAAAAM7Ozj/Pz8/f0NDQ/9DQ0P/R0dH/0tLSnQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADPz89uz8/PZc/Pz3vOzs78z8/

#title

Paragraph

@getsetbro
getsetbro / minimal_zshrc_0.sh
Last active December 13, 2020 03:36 — forked from njgibbon/minimal_zshrc_0.sh
Minimal .zshrc to output git branch name in prompt.
# ~/.zshrc
# Find and set branch name var if in git repository.
function git_branch_name()
{
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}')
if [[ $branch == "" ]];
then
:
else