Skip to content

Instantly share code, notes, and snippets.

View boozook's full-sized avatar
🦀
Dreaming about decentralised GH based on Pijul. 👨🏻‍💻

Alexander Koz. boozook

🦀
Dreaming about decentralised GH based on Pijul. 👨🏻‍💻
View GitHub Profile
@boozook
boozook / playdate-sdk.md
Last active September 27, 2023 17:40 — forked from idleberg/playdate-sdk.md
Install Playdate SDK using a package manager

Install Playdate SDK

If you're like me, you want to install the Playdate SDK using a package manager. Below are some options for you.

Info Did I miss anything? Please comment below!

macOS

@boozook
boozook / ecverify.sol
Created June 19, 2017 16:20 — forked from axic/ecverify.sol
Ethereum ECVerify
//
// The new assembly support in Solidity makes writing helpers easy.
// Many have complained how complex it is to use `ecrecover`, especially in conjunction
// with the `eth_sign` RPC call. Here is a helper, which makes that a matter of a single call.
//
// Sample input parameters:
// (with v=0)
// "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad",
// "0xaca7da997ad177f040240cdccf6905b71ab16b74434388c3a72f34fd25d6439346b2bac274ff29b48b3ea6e2d04c1336eaceafda3c53ab483fc3ff12fac3ebf200",
// "0x0e5cb767cce09a7f3ca594df118aa519be5e2b5a"
@boozook
boozook / README.rst
Created June 10, 2017 19:10 — forked from tonyseek/README.rst
Build Python binding of C++ library with cffi (PyPy/Py3K compatible)

Run with Python:

pip-2.7 install cffi
PYTHON=python2.7 sh go.sh

Run with PyPy:

pip-pypy install cffi
PYTHON=pypy sh go.sh
@boozook
boozook / myweechat.md
Created May 9, 2017 20:14 — forked from pascalpoitras/config.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf

@boozook
boozook / gist:e45184059bfa14941675ef6d4043dbee
Created May 9, 2017 19:40 — forked from mattikus/gist:856946
two attempts to connect to freenode with weechat-git
19:45:09 freenode | irc: reconnecting to server...
19:45:09 freenode | irc: connecting to server chat.us.freenode.net/7070 (SSL)...
19:45:09 freenode | gnutls: connected using 1024-bit Diffie-Hellman shared secret exchange
19:45:09 freenode =!= | gnutls: peer's certificate is NOT trusted
19:45:09 freenode =!= | gnutls: peer's certificate issuer is unknown
19:45:09 freenode | gnutls: receiving 2 certificates
19:45:09 freenode | - certificate[1] info:
19:45:09 freenode | - subject `OU=Domain Control Validated,OU=Gandi Standard Wildcard SSL,CN=*.freenode.net', issuer `C=FR,O=GANDI SAS,CN=Gandi Standard SSL CA', RSA key 2048 bits, signed using
| RSA-SHA1, activated `2011-01-14 00:00:00 UTC', expires `2012-01-14 23:59:59 UTC', SHA-1 fingerprint `acd50e69ad93f5db08fefb67180d871415858664'
19:45:09 freenode | - certificate[2] info:
@boozook
boozook / Main.hx
Created June 26, 2016 23:50 — forked from skial/Main.hx
Haxe 3.3.0-rc.1 Abstract @:resolve and @:op(a.b) metadata simplified examples.
package;
import haxe.macro.Expr;
class Main {
static function main() {
var smap:StringMap = ['firstName' => 'Skial', 'lastName' => 'Bainn'];
trace( smap.lastName, smap.firstName ); // Bainn, Skial
@boozook
boozook / Main.hx
Last active November 17, 2015 19:59 — forked from nadako/Main.hx
Signal builder using new Rest type parameter in Haxe
package hx.event.test;
import haxe.unit.TestRunner;
class Main
{
public static function main()
{
var runner = new TestRunner();
runner.add(new SignalTest());
@boozook
boozook / Direction.hx
Last active June 8, 2016 14:35 — forked from MSGhero/Direction.hx
Compass direction <=> degree measure abstract for Haxe. Useful for me, maybe for you.
package entities;
import nape.geom.Vec2;
/**
* @author MSGHero
*/
@:enum
abstract Direction(Int) {
@boozook
boozook / ResourceManager.hx
Last active August 26, 2015 19:26 — forked from tiagolr/ResourceManager.hx
Embeding files load with Haxe + Openfl
import haxe.io.Bytes;
import haxe.Resource;
import openfl.Assets;
import openfl.display.Bitmap;
import openfl.display.BitmapData;
import openfl.display.Loader;
import openfl.utils.ByteArray;
/**