Skip to content

Instantly share code, notes, and snippets.

View bosunski's full-sized avatar
:octocat:
Sleeping Here!

Bosun Egberinde bosunski

:octocat:
Sleeping Here!
View GitHub Profile
@bosunski
bosunski / homebrew-permissions-issue.md
Created February 13, 2019 19:25 — forked from irazasyed/homebrew-permissions-issue.md
Homebrew: Permissions Denied Issue Fix (OS X / macOS)

Homebrew Permissions Denied Issues Solution

sudo chown -R $(whoami) $(brew --prefix)/*

@bosunski
bosunski / promise.php
Last active June 11, 2019 22:40
Describes a Promise
<?php
class Promise {
private $resolvedStack = [];
private $catches = [];
public function then(callable $resolved): Promise
{
array_push($this->resolvedStack, $resolved);
}
@bosunski
bosunski / closure_callable.php
Created June 13, 2019 15:17
A brief explannation of Callables and Closures.
<?php
// An Anonymous Class or Normal Classes
$class = new class {
public function method() {
echo 'In a Class!', PHP_EOL;
}
};
// We can write this ... 🤔
$arrayLikeCallable = [new $class, 'method'];
gist token=1d177d749a5d57a8676fa77f737892c285eb1376
gist id=a53f646ca33cd140560d78eeed5a9c5b
@font-face {
font-family: "Brandon Text";
src: url(/assets/fonts/BrandonText-Regular.woff2);
}
@font-face {
font-family: Brandon Text;
src: url("/assets/fonts/BrandonText-Light.woff2") format("woff2"), url("/assets/fonts/BrandonText-Light.woff") format("woff");
font-weight: 300;
font-style: normal
@bosunski
bosunski / server.php
Created October 18, 2019 14:48 — forked from IvanChepurnyi/server.php
Simple multi-process ReactPHP server with workers control
<?php
/**
* Copyright © EcomDev B.V. All rights reserved.
* See LICENSE.txt for license details.
*/
declare(strict_types=1);
$port = $argv[1];
$serverName = $argv[2];
{
"event": "charge.success",
"data": {
"id": 84,
"domain": "test",
"status": "success",
"reference": "9cfbae6e-bbf3-5b41-8aef-d72c1a17650g",
"amount": 50000,
"message": null,
"gateway_response": "Approved",
{
"price": 21975,
"customization": {
"id": 5,
"name": "Cooo",
"features": [
{
"id": 36,
"name": "Colar",
"unit": "dB",
@bosunski
bosunski / README.md
Created January 31, 2020 12:55 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007