I hereby claim:
- I am dunstontc on github.
- I am dunstontc (https://keybase.io/dunstontc) on keybase.
- I have a public key ASCyIQTAxBZuYVaNLnT6YEYA-AyZLJT6MLd4Qg_8M2LRygo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package greetings | |
import ( | |
"fmt" | |
) | |
// Hello prints out a sentence. | |
func Hello(sentence string) { | |
fmt.Printf("%s\n", sentence) | |
} |
package main | |
import ( | |
"fmt" | |
) | |
// Hello prints out a sentence. | |
func Hello(sentence string) { | |
fmt.Printf("%s\n", sentence) | |
} |
{ | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"$id": "https://gist.github.com/dunstontc/1e30c3a454b252123d8101c8059855c3", | |
"description": "See: https://github.com/Microsoft/vscode/tree/master/extensions", | |
"type": "object", | |
"required": [ | |
"name", | |
"scopeName", | |
"patterns" | |
], |
# If truecolor is enabled, this will return a full color spectrum | |
# If not, it'll just print 16 colors | |
# function kuler() { | |
awk 'BEGIN{ | |
s="/\\/\\/\\/\\/\\"; s=s s s s s s s s; | |
for (colnum = 0; colnum<77; colnum++) { | |
r = 255-(colnum*255/76); | |
g = (colnum*510/76); | |
b = (colnum*255/76); |
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' | |
" Make sure you use single quotes | |
Plug 'raimondi/delimitmate' | |
" Initialize plugin system |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
function wrapText (text, token) { | |
const length = token.length | |
if ((text.substr(0, length) === token) && (text.substr(-length) === token)) { | |
return text.substr(length, text.length - length * 2) | |
} else { | |
return token + text + token | |
} | |
} |