This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import functools | |
import secrets | |
import string | |
import click | |
alphabets = { | |
"digits": string.digits, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
cob = checkout -b | |
st = status | |
ci = commit | |
chp = cherry-pick | |
p = pull | |
amend = checkout --amend | |
branch-name = !git branch --show-current | |
publish = !git push -u origin HEAD:$(git branch-name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collections | |
import functools | |
import requests | |
Invoice = collections.namedtuple('Invoice', [ | |
'id', 'number', 'currency', 'paid_price', 'notes', 'kind', 'payment_method', 'recipient_signature', | |
'seller_signature', 'invoice_date', 'sale_date', 'status', 'payment_date', 'net_price', 'tax_price', | |
'gross_price', 'client_id', 'client_company_name', 'client_street', 'client_city', 'client_post_code', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import functools | |
class CommandBus: | |
handlers = {} | |
def register(self, command_type, handler): | |
self.handlers[command_type] = handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait Observable | |
{ | |
protected $subscribers = []; | |
public function on($name, $fn) | |
{ | |
if (empty($this->subscribers[$name])) { | |
$this->subscribers[$name] = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class Transactional | |
{ | |
public function handle($request, Closure $next) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// php hax0r.php "witam" | pbcopy | |
$alphabet = [ | |
'a' => '/-\\', | |
'b' => '|3', | |
'c' => '(', | |
'd' => '|)', | |
'e' => 'E', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>vue eatally</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" type="text/css" media="screen"> | |
<style type="text/css" media="screen"> | |
body { | |
background-color: #f4f4f4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface StringSignatureStorage | |
{ | |
function save(string $resourceId, array $keys); | |
} | |
interface StringStorageInterface | |
{ | |
function fetch(string $resourceId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <iostream> | |
#include <windows.h> | |
#include <time.h> | |
#include "Snejk.h" | |
using namespace std; | |
CSnejk::CSnejk() |
NewerOlder