Skip to content

Instantly share code, notes, and snippets.

View im4aLL's full-sized avatar
🏠
Working from home

Md Habibullah Al Hadi im4aLL

🏠
Working from home
View GitHub Profile
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
@im4aLL
im4aLL / php-event-listener-example.php
Last active December 1, 2025 00:01
PHP event listener simple example
<?php
// Used in https://github.com/im4aLL/roolith-event
// https://packagist.org/packages/roolith/event
class Event {
private static $events = [];
public static function listen($name, $callback) {
self::$events[$name][] = $callback;
}
@im4aLL
im4aLL / gist:e1baaf6ed3614aa53af1
Created March 4, 2016 10:30
PHP OOP Abstract Interface Inheritance Factory Pattern Magic method
<?php
/**
* common things about a developer
*/
abstract class Developer {
protected $_languages;
protected $_characteristics;
abstract public function setLanguages($language);
abstract public function getLanguages();
@im4aLL
im4aLL / ES6-browserify-2017.js
Last active December 15, 2017 14:07
Simple and plain gulpfile.js boilerplate for project using SASS and Browserify
/*
```
npm install browser-sync gulp gulp-autoprefixer gulp-cssnano gulp-rename gulp-sass gulp-uglify gulp-watch vinyl-source-stream babelify browserify browserify-shim babel-preset-es2015 babel-core --save-dev
```
```
npm install jquery --save
npm install foundation-sites --save
```
*/