Skip to content

Instantly share code, notes, and snippets.

Avatar

Levi Richardson lerichardson

View GitHub Profile
View gist:a19ddf0184729640bc889a421a1009bd
<?php
$server = "localhost";
$username = "root";
$pwd = "j3LaFuIxOvwaU3i";
$db = "users";
$connection = new mysqli($server, $username, $pwd, $db);
$cookiename = "_ethllg";
$cookievalue = "true";
if ($connection->connect_error) {
View rotateimage-example.go
package rotateimage-example
import (
"image"
"math"
)
// You can flip the image 90˚ like this
func Rotate90(img image.Image) *image.NRGBA {
src := newScanner(img)
dstW := src.h