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
| div.GOFTCUUBI3 { | |
| min-height: 0; | |
| } | |
| div.GOFTCUUBJ3.GOFTCUUBGW { | |
| padding: 5px; | |
| height: 30px; | |
| } | |
| div.GOFTCUUBEE.GOFTCUUBCE.GOFTCUUBE4 { |
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
| /* Written by Dmitry Chestnykh. Public domain. */ | |
| #include <err.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #include <openssl/blowfish.h> | |
| #include <openssl/lhash.h> | |
| /* Encryption and decryption */ |
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
| // Written by Dmitry Chestnykh. Public domain. | |
| package main | |
| import ( | |
| "crypto/blowfish" | |
| "fmt" | |
| "time" | |
| ) | |
| func encrypt(key uint8, src string) string { |
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
| // Copyright 2010 The Go Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "compress/gzip" |
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
| package main | |
| import ( | |
| "fmt" | |
| "http" | |
| "flag" | |
| "os" | |
| "bytes" | |
| "io" | |
| "encoding/base64" |
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
| [instaweb] | |
| local = true | |
| httpd = webrick | |
| port = 4321 | |
| [gui] | |
| fontdiff = -family Menlo -size 11 -weight normal -slant roman -underline 0 -overstrike 0 | |
| [alias] | |
| st = status |
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
| // | |
| // Example. | |
| // | |
| // Your application must have a strong secret key for password reset purposes. | |
| This key will be used to generate and verify password reset tokens. (If you | |
| already have a secret key, for example, for authcookie package, it's better | |
| not to reuse it, just use a different one.) | |
| secret := []byte("assume we have a long randomly generated secret key here") |
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
| #!/bin/sh | |
| # | |
| # Runs godoc with the current path and opens browser (on a Mac). | |
| # | |
| godoc -http=":8888" -path="." 2> /dev/null & | |
| pid=$! | |
| trap 'kill $pid' INT | |
| open "http://localhost:8888" |
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
| #!/bin/sh | |
| # | |
| # Switch between two different installations of Go: | |
| # | |
| # source goswitch dev | |
| # ^ makes GOROOT ~/Sources/go | |
| # | |
| # source goswitch prod | |
| # ^ makes GOROOT ~/go |
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
| package ecdsa | |
| import ( | |
| "io" | |
| "os" | |
| "big" | |
| "crypto/elliptic" | |
| "sync" | |
| ) |