Skip to content

Instantly share code, notes, and snippets.

View beyondlimits's full-sized avatar

beyondlimits

View GitHub Profile
<!DOCTYPE html>
<html lang="pl">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Page Title</title>
<style>
body {
'use strict'
var TheWild = (function(){
var test = '0111010001010100011001100111110010001001100101010011101010010011100111110100101110000110000001111101010000111110110001010100011111100111101101000101111010000011000001110000001101110000001001100010001010000001010110010110110001001111010100101011000010111000011101011111100110000100010010100001110110101110000001110011111001100011111101010100011011001101010101101000000101010001011000000010101011000100001010000100010111111111001100000010110010011001110111110101101011011110111001111101010100100011001100001000110110101001000010100001110011111001010000110010111010000011001111001000110110001010111101001100000111101001110111010010011010011100001011001100001011000110011001100100000110000000011110101011000101000001000001101010001000011111100111000111110000101101111001101100001111110011111010010101100010101101100001001111010000000010110101010100101001101100100001111111101000111100101001110111101110100010000111000101001011000010000010100010001100001111001111001111011111
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
# Computes bit parity. When x represented as binary number
# has odd number of ones, 1 is returned. Otherwise 0 is returned.
def parity(x):
i = 1
y = x
while x:
x >>= i
@beyondlimits
beyondlimits / php.ini
Last active July 27, 2019 19:12
Development PHP configuration
memory_limit = 1G
error_reporting = E_ALL
display_errors = stderr
display_startup_errors = On
auto_prepend_file = strict-error-handling.php
include_path = "/usr/share/php"
sqlite3.defensive = 1
zend.assertions = 1
assert.active = On
assert.exception = On
<?php
require_once 'EasyXMLParser.php';
class AmazonS3XMLParser
{
protected $properties;
protected $contents;
protected $currentItem;
<?php
class HttpClient
{
private $statusCode;
private $statusMessage;
private $headers;
private $cookies;
public $userAgent;
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Sub-stereo test</title>
</head>
<body style="margin:0">
<audio id="audio" src="test.ogg" type="audio/ogg" controls="controls" autoplay="autoplay" style="width:100%"></audio>
<table>
<tr>
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
var arr = 'abcdefghijklmnopqrstivwxyz'.split('');
var start = 0;
var end = arr.length - 1;
var swaps = 0;
while (start < end) {
for (var i = start; i < end; i += 2) {
var tmp = arr[i];
arr[i] = arr[i + 1];
arr[i + 1] = tmp;
{
"manifest_version": 2,
"name": "My New Extension",
"version": "1.0",
"background": {
"scripts": ["script.js"]
},
"permissions": [
"downloads",
"tabs",