Skip to content

Instantly share code, notes, and snippets.

Alexander Ovchinnikov Alexander-0x80

Block or report user

Report or block Alexander-0x80

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View minimal-glsl-shader.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<body>
View keybase.md

Keybase proof

I hereby claim:

  • I am Alexander-0x80 on github.
  • I am alexander (https://keybase.io/alexander) on keybase.
  • I have a public key whose fingerprint is 5D4A 0937 9C76 B950 2CC1 6A51 5D48 CFA5 77B3 5586

To claim this, I am signing this object:

@Alexander-0x80
Alexander-0x80 / triangulate.js
Last active Jan 5, 2016 — forked from alanctkc/triangulate.js
Triangulation of three points and radii
View triangulate.js
function distance(p1, p2) {
// Find the distance between two points
return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));
};
function intersect(c1, r1, c2, r2) {
// Find the points of intersection for two circles
// Based on: http://stackoverflow.com/a/3349134
var d = distance(c1, c2);
if (d > r1 + r2) // Circles do not overlap
View gist:5381d55c54c388876171
import requests
from bottle import Bottle, get, run
from bs4 import BeautifulSoup
@get("/search/<keyword>")
def search(keyword):
payload = {"q": keyword}
page = requests.get("http://www.bbc.co.uk/search", params=payload)
@Alexander-0x80
Alexander-0x80 / do class.cc
Last active Aug 29, 2015
Rammstein programmers
View do class.cc
do
do class
do class if.
do
do class
do class if.
do!
do class!
@Alexander-0x80
Alexander-0x80 / pitch_shift
Last active Dec 24, 2015
Bash script to convert base note sound to full octave .
View pitch_shift
#!/bin/bash
# Using: Sox
#
# If not installed :
# sudo apt-get install sox libsox-fmt-mp3
#
if [ ! -f $1 ]
then
@Alexander-0x80
Alexander-0x80 / BumBam
Last active Dec 21, 2015
PHP BumBam ;)
View BumBam
print_r( array_map(function($n) { return !($n%15) ? "BumBam" : (!($n%5) ? "Bam" : (!($n%3) ? "Bum" : $n)); },range(1,100)) );
You can’t perform that action at this time.