This file contains hidden or 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
# I chose 'prune' because it stands for 'prune branches' | |
alias prune="git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d" | |
## Credit goes to @TSMMARK - original gist https://gist.github.com/TSMMark/99d7153c97b0c0762bd6105f0e39f8e2 |
This file contains hidden or 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
/* | |
Credit goes to Gokul Kathirvel who wrote the tutorial where this code comes from <3 | |
https://dev.to/gokatz/automate-your-chrome-extension-deployment-in-minutes-48gb | |
*/ | |
const zipFolder = require('zip-folder') | |
const exec = require('child_process').exec | |
const folder = 'dist' | |
const zipName = 'extension.zip' |
This file contains hidden or 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 detached="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $hrome --app=https://google.com" |
This file contains hidden or 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
exports.handler = async function(context, event, callback) { | |
// initialize Twilio client | |
const client = context.getTwilioClient(); | |
function parseNumber(message) { | |
// Check to make sure there are at least two numbers | |
if(message.match(/\d{2,}/g)) { | |
const cleanedUpNumber = message.replace(/[-() ]/g, ''); | |
// Check if it's less than 10 digits | |
if (cleanedUpNumber.length < 10) { |
This file contains hidden or 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 defaultsauto[] | |
[ | |
{ | |
"key": "cmd+p", | |
"command": "workbench.action.showAllSymbols" | |
}, | |
{ | |
"key": "cmd+t", | |
"command": "-workbench.action.showAllSymbols" | |
}, |
This file contains hidden or 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
[ | |
{ "key": "ctrl+=", "command": "workbench.action.terminal.focus" }, | |
{ | |
"key": "ctrl+=", | |
"command": "workbench.action.focusActiveEditorGroup", | |
"when": "terminalFocus" | |
}, | |
] |
This file contains hidden or 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
[ | |
{ | |
"key": "ctrl+]", | |
"command": "workbench.action.nextSideBarView", | |
"when": "sideBarFocus" | |
}, | |
{ | |
"key": "ctrl+[", | |
"command": "workbench.action.previousSideBarView", | |
"when": "sideBarFocus" |
This file contains hidden or 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 'react' | |
// Written as a function declaration | |
function Heading(): React.Node { | |
return <h1>My Website Heading</h1> | |
} | |
// Written as a function expression | |
const OtherHeading: React.FC = () => <h1>My Website Heading</h1> |
This file contains hidden or 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 'react' | |
// Written as a function declaration | |
function Heading(): React.Node { | |
return <h1>My Website Heading</h1> | |
} | |
// Written as a function expression | |
const OtherHeading: React.FC = () => <h1>My Website Heading</h1> |
This file contains hidden or 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 'react' | |
type Props = { | |
text: string; | |
color: string; | |
} | |
export const Header: React.FC<Props> = ({text = 'Hello world!', color = 'red'}) => { | |
return <h1 style={{ color }}>{text}</h1> | |
} |