- *.example.com > IP
- example.com > IP
- example.com > 40:webmail.servercrew.com.au
- email.example.com > mailgun.org
<?php | |
/** | |
* UUID class | |
* | |
* The following class generates VALID RFC 4211 COMPLIANT | |
* Universally Unique IDentifiers (UUID) version 3, 4 and 5. | |
* | |
* UUIDs generated validates using OSSP UUID Tool, and output | |
* for named-based UUIDs are exactly the same. This is a pure | |
* PHP implementation. |
<?php | |
$data = array( | |
array(0.05, 0.95), | |
array(0.1, 0.9), | |
array(0.2, 0.8), | |
array(0.25, 0.75), | |
array(0.45, 0.55), | |
array(0.5, 0.5), | |
array(0.55, 0.45), |
var json = { | |
data: ['a','bunch','of','things'] | |
}; | |
var otherData = { | |
things: [], | |
madness: {} | |
}; | |
json.data.forEach(function(data,index,array){ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# | |
# Controlling an RC car via webcam (well, so far, just tracking it...) | |
# | |
# Requires OpenCV 2.0 and Python 2.6 | |
# | |
import cv | |
def find_car(image): |
.box { | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
border-radius: 5px; | |
} |
/* A version of https://github.com/johnwargo/Seeed-Studio-Relay-Board/blob/master/seeed_relay_test.py in C for use with https://www.seeedstudio.com/Raspberry-Pi-Relay-Board-v1.0-p-2409.html */ | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <wiringPiI2C.h> | |
int deviceRegMode1 = 0x06; | |
int deviceRegData = 0xff; |
curl https://bootstrap.pypa.io/get-pip.py | python
import cv2 | |
import sys | |
import os.path | |
import numpy as np | |
def drawMatches(img1, kp1, img2, kp2, matches): | |
rows1 = img1.shape[0] | |
cols1 = img1.shape[1] | |
rows2 = img2.shape[0] |