I hereby claim:
- I am cgt on github.
- I am cgt (https://keybase.io/cgt) on keybase.
- I have a public key whose fingerprint is F310 8436 FF27 DB19 B2FB 1EF1 95CD 6B2C 0655 BE69
To claim this, I am signing this object:
#/usr/bin/env python | |
from sys import argv | |
def calcDiagonals(n): | |
'''Calculates how many diagonals there can be in a polygon.''' | |
return n*(n-3)/2 | |
if __name__ == '__main__': | |
print calcDiagonals(int(argv[1])) |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
const ( | |
pHeader = "<!DOCTYPE html><html><body>" |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { | |
fmt.Fprintf(w, "Greetings!") |
package main | |
import ( | |
"log" | |
"os" | |
"os/exec" | |
) | |
func main() { | |
fpath := os.TempDir() + "/thetemporaryfile.txt" |
package main | |
import ( | |
"log" | |
"os" | |
"os/exec" | |
) | |
func main() { | |
fpath := os.TempDir() + "/thetemporaryfile.txt" |
c = float(input("Enter the coefficient of restitution ")) | |
h = float(input("Enter the initial drop height ")) | |
d = 0.0 | |
s = 0.0 | |
if c>1 or c<0: |
function NumToogle() | |
if &number | |
set relativenumber | |
else | |
set number | |
endif | |
endfunction |
package main | |
import ( | |
"compress/gzip" | |
"fmt" | |
"io" | |
"net/http" | |
"strings" | |
) |
function gt(){ | |
case "$1" in | |
cwb) | |
cd $GOPATH/src/cwb | |
;; | |
go) | |
cd $GOPATH/src | |
;; | |
mwc) | |
cd $GOPATH/src/cgt.name/pkg/go-mwclient |
I hereby claim:
To claim this, I am signing this object: