- St. Petersburg, Russia
Pinned Loading
-
go-socket.io
go-socket.io PublicForked from googollee/go-socket.io
socket.io library for golang, a realtime application framework.
Go
-
-
Generate proper header and append pi...
Generate proper header and append pixel colors - and you have a valid BMP image just for free! 1var bytes = [
20xff0000, 0x00ff00, 0x0000ff,
30x0000cc, 0xcc0000, 0x00cc00,
40x00ee00, 0x0000ee, 0xee0000,
5];
-
MySQL base64 custom implementation (...
MySQL base64 custom implementation (as of version 5.6+ there are native ones: https://dev.mysql.com/doc/refman/5.6/en/string-functions.html#function_from-base64) 1-- drop function if exists base64_encode;
2create function base64_encode(_data blob)
3returns text
4begin
5declare _alphabet char(64) default 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
-
mysql-geo_distance.sql
mysql-geo_distance.sql 1create function geo_distance(_lat1 double, _lng1 double, _lat2 double, _lng2 double)
2returns int deterministic
3comment "Returns distance in meters"
4return 12756274 * asin(sqrt( -- 2 * R; R = 6378137 m
50.5 - cos((_lat2 - _lat1) * 0.017453292519943295) / 2 -- 0.017453292519943295 = Math.PI / 180
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.