Skip to content

Instantly share code, notes, and snippets.

View andypotts's full-sized avatar

Andy Potts andypotts

View GitHub Profile
const salaryFormatter = new Intl.NumberFormat('en-GB', {
style: 'currency',
currency: 'GBP'
})
salaryFormatter.format(100)
@andypotts
andypotts / genesis_public_key
Created February 23, 2018 23:12
genesis_public_key
0491cbbb8e82a2956334e0a322a99ea2582335d7cf6c82d29918c8924b7279074361891e5fbef0cfff78dbf790fe9fa2d48cc687b93d4735f6e4c849edc75dc92b;andycampbell92
@andypotts
andypotts / code-exclude-settings.md
Created September 12, 2017 15:21
If VS Code is running at ~100% CPU, add this to the settings and close/reopen Code.

If VS Code is running at ~100% CPU, add this to the settings and close/reopen Code.

"files.exclude": {  
    "**/.git": true,  
    "**/.svn": true,  
    "**/.hg": true,  
    "**/CVS": true,  
    "**/.DS_Store": true,  
 "**/tmp": true, 
@andypotts
andypotts / gist:1096a853b46c02f378c9e29521cf9154
Created May 25, 2017 15:51 — forked from twosixcode/gist:1988097
Make "Paste and Indent" the default paste in Sublime Text 2
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
@andypotts
andypotts / snippet.md
Created May 11, 2017 10:17
Command line - autocorrect typo and run command

$ git config --global help.autocorrect 1

@andypotts
andypotts / snippet.md
Last active July 20, 2017 09:40 — forked from harthur/snippet.md
console.log() + var_dump() key bindings for Sublime Text. Cmd + Shift + L.

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file:

[
    { "keys": ["super+shift+l"],
      "command": "insert_snippet",
      "args": {
        "contents": "console.log(${1:}$SELECTION);${0}"
      }, "context":
 [