I hereby claim:
- I am chrisneal on github.
- I am christoph2k (https://keybase.io/christoph2k) on keybase.
- I have a public key whose fingerprint is C9ED 9F1E 59BE 8B66 2B91 4BA7 2222 8C5A 0BA9 732F
To claim this, I am signing this object:
; Purpose: | |
; Jyers 1.3.4 has a bug (which I think comes from Marlin), where | |
; you have to reset the EPROM before it will correctly create a mesh. | |
; This collection of GCODEs sets up my printer with the correct | |
; settings, does a PID Autotune and then creates a UBL mesh. | |
; I've also left in the G26 command, which creates a test print. | |
; Clear the EPROM | |
M502 ; Load defaults | |
M500 ; Save |
<?php | |
// TO DO: ADD VALIDATION ON EMAIL AND ZIP BEFORE REQUEST | |
$email = $_POST['email']; | |
$zip = $_POST['zip']; | |
$url = 'https://api.myngp.com/v2/contacts/findOrCreate'; | |
$post_data = array( |
version: '2' | |
services: | |
redis: | |
image: redis | |
postgres: | |
image: 'postgres' | |
environment: | |
POSTGRES_USER: postgres |
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| 5 Star Rating | |
|-------------------------------------------------------------------------- | |
| | |
| Lower bound of Wilson score confidence interval for a Bernoulli parameter (0.9604) | |
| | |
| See: |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"strconv" | |
) | |
type Hex string | |
type RGB struct { |
linktogopath() { | |
if [ "$1" = "" ]; then | |
local folder=${PWD##*/} | |
else | |
local folder=$1 | |
fi | |
ln -s $(PWD) $GOPATH/src/$1 | |
cd $GOPATH/src/$folder | |
} |
package main | |
import ( | |
"bufio" | |
"encoding/binary" | |
"fmt" | |
"io" | |
"net" | |
"os" | |
"strings" |
func getLocalIP() string { | |
conn, err := net.Dial("udp", "8.8.8.8:80") | |
if err != nil { | |
log.Fatal(err) | |
} | |
defer conn.Close() | |
localAddr := conn.LocalAddr().String() | |
idx := strings.LastIndex(localAddr, ":") |
/* | |
A (very) WIP collection of optimized/recommended jQuery plugin patterns | |
from @addyosmani, @cowboy, @ajpiano and others. | |
Disclaimer: | |
----------------------- | |
Whilst the end-goal of this gist is to provide a list of recommended patterns, this | |
is still very much a work-in-progress. I am not advocating the use of anything here | |
until we've had sufficient time to tweak and weed out what the most useful patterns |