Coin flipping with CSS Animation
A Pen by Gurjeet Singh on CodePen.
Coin flipping with CSS Animation
A Pen by Gurjeet Singh on CodePen.
package main | |
/* | |
* This Gist and it's other versions are from: | |
* | |
* https://stackoverflow.com/questions/42321789/unable-to-protect-gorilla-mux-subroute-with-basic-auth | |
*/ | |
import ( | |
"crypto/subtle" |
//usr/bin/env true; go run `dirname $0`/*.go "$@"; exit $? | |
package main | |
import ( | |
"errors" | |
"os" | |
) | |
// TODO: catch Panics and emit a clear message | |
func main() { os.Exit(mainWithExitCode()) } |
Showcases using a SVG foreignObject to contruct temporary, minimal forms to allow editing of arbitrary D3 data (in this case: titles and subtitles)
** Notes
The code isn't the cleanest that could be: the 'blur' and 'keypress' event handlers share copy&pasted code which could be refactored.
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"code.google.com/p/go.crypto/ssh" | |
"code.google.com/p/go.crypto/ssh/terminal" |
I hereby claim:
To claim this, I am signing this object:
<!-- | |
Visit the following URL to see the rendered HTML: | |
https://bl.ocks.org/gurjeet/83189e2931d053187eab52887a870c5e | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Barchart Demo</title> |
Setting up Crashplan on FreeNAS Goals
Be able to backup from the FreeNAS box to offsite Crashplan Central. Allow incoming Crashplan backups from other devices. Install the CrashPlan plugin
Install the plugin into a jail: Click on Plugins, then the Available tab, the "crashplan" line and finally the Install button. Once the installation completes, on the left tree, expand Plugins and click on CrashPlan. Accept the Java EULA. Start the Crashplan plugin: Plugins->Installed and make sure the Crashplan plugin is in the "ON" position.
1 top -c -d 1 | |
2 cd | |
3 top -c -d 1 | |
4 ping google.com | |
5 ifconfig | |
6 sudo apt-get install icecast2 | |
7 sudo apt-get remove icecast2 | |
8 sudo apt-get install icecast2 | |
9 sudo apt-get install liquidsoap | |
10 man iceauth |
FROM ubuntu | |
# Update the software repositories | |
RUN apt-get update | |
# Install package for lsb_release binary | |
RUN apt-get install -y lsb-release | |
# Install package that provides add-apt-repository | |
RUN apt-get install -y python-software-properties |