Skip to content
View bbars's full-sized avatar
  • St. Petersburg, Russia

Block or report bbars

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. go-socket.io go-socket.io Public

    Forked from googollee/go-socket.io

    socket.io library for golang, a realtime application framework.

    Go

  2. jsonson jsonson Public

    Convert types when parsing JSON according to known type schema

    JavaScript

  3. chessir chessir Public

    JavaScript 1

  4. Generate proper header and append pi... Generate proper header and append pixel colors - and you have a valid BMP image just for free!
    1
    var bytes = [
    2
    	0xff0000, 0x00ff00, 0x0000ff,
    3
    	0x0000cc, 0xcc0000, 0x00cc00,
    4
    	0x00ee00, 0x0000ee, 0xee0000,
    5
    ];
  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;
    2
    create function base64_encode(_data blob)
    3
    returns text
    4
    begin
    5
        declare _alphabet char(64) default 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  6. mysql-geo_distance.sql mysql-geo_distance.sql
    1
    create function geo_distance(_lat1 double, _lng1 double, _lat2 double, _lng2 double)
    2
    returns int deterministic
    3
    comment "Returns distance in meters"
    4
    return 12756274 * asin(sqrt(    -- 2 * R; R = 6378137 m
    5
    	0.5 - cos((_lat2 - _lat1) * 0.017453292519943295) / 2		-- 0.017453292519943295 = Math.PI / 180