Skip to content

Instantly share code, notes, and snippets.

View Alexander-0x80's full-sized avatar

Alexander Ovchinnikov Alexander-0x80

View GitHub Profile
@Alexander-0x80
Alexander-0x80 / loris-empty-plugin
Created March 3, 2021 08:26
loris-empty-plugin
!function(e){var t={};function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}__webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,r){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},__webpack_require__.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(__webpack_require__.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)__webpack_require__.d(r,n,function(t){return e[t]}.bind(null,n));return r},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getM
<!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>

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 January 5, 2016 19:18 — forked from alanchrt/triangulate.js
Triangulation of three points and radii
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
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 August 29, 2015 14:06
Rammstein programmers
do
do class
do class if.
do
do class
do class if.
do!
do class!
@Alexander-0x80
Alexander-0x80 / pitch_shift
Last active December 24, 2015 11:29
Bash script to convert base note sound to full octave .
#!/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 December 21, 2015 10:28
PHP BumBam ;)
print_r( array_map(function($n) { return !($n%15) ? "BumBam" : (!($n%5) ? "Bam" : (!($n%3) ? "Bum" : $n)); },range(1,100)) );