Skip to content

Instantly share code, notes, and snippets.

View kbariotis's full-sized avatar
🌏

Kostas Bariotis kbariotis

🌏
View GitHub Profile
@staltz
staltz / introrx.md
Last active December 1, 2025 11:31
The introduction to Reactive Programming you've been missing
@codeinthehole
codeinthehole / docker-osx-shared-folders.rst
Last active November 11, 2023 01:22
How to share folders with docker containers on OSX

How to share a folder with a docker container on OSX

Mounting shared folders between OSX and the docker container is tricky due to the intermediate boot2docker VM. You can't use the usual docker -v option as the docker server knows nothing about the OSX filesystem - it can only mount folders from the boot2docker filesystem. Fortunately, you can work around this using SSHFS.

@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active November 24, 2025 23:57
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@JamieMason
JamieMason / deep-reduce.js
Last active June 14, 2021 05:20
Perform a deeply recursive reduce on a JSON-encodable JavaScript Object hierarchy.
/**
* Perform a deeply recursive reduce on a set of JSON, or a JSON-encodable Object hierarchy.
*
* @param {Array|Object} collection
* @param {Function} fn
* @param {*} memo
* @return {*}
*/
function deepReduce(collection, fn, memo) {
@ebidel
ebidel / highlight_custom_elements.js
Last active June 13, 2022 21:35
Bookmarklet for highlight custom elements on a page
// Highlights all custom elements on the page.
// 7/31/2016: updated to work with both shadow dom v0 and v1.
// To create a bookmarklet, use http://ted.mielczarek.org/code/mozilla/bookmarklet.html
var allCustomElements = [];
function isCustomElement(el) {
const isAttr = el.getAttribute('is');
// Check for <super-button> and <button is="super-button">.
return el.localName.includes('-') || isAttr && isAttr.includes('-');
@kbariotis
kbariotis / .gitignore
Last active January 17, 2017 08:13
.gitignore for Magento 1.8
app/code/community/Phoenix/
app/code/community/Cm/
app/code/core/
app/design/adminhtml/default/default/
app/design/frontend/base/
app/design/frontend/default/blank/
app/design/frontend/default/default/
app/design/frontend/default/iphone/
app/design/frontend/default/modern/
app/design/frontend/enterprise/default
@kbariotis
kbariotis / grid.less
Last active August 29, 2015 14:00
Minimal Fluid Grid with LESSCSS
.grid_1 { width:7.5833333333333333333333333333333%; }
.grid_2 { width:15.166666666666666666666666666667%; }
.grid_3 { width:22.75%; }
.grid_4 { width:30.333333333333333333333333333333%; }
.grid_5 { width:37.916666666666666666666666666667%; }
.grid_6 { width:45.5%; }
.grid_7 { width:53.083333333333333333333333333333%; }
.grid_8 { width:60.666666666666666666666666666666%; }
.grid_9 { width:68.25%; }
.grid_10 { width:75.833333333333333333333333333333%; }
@danwit
danwit / node_acl_example.js
Created April 26, 2014 00:22
Authorization with node_acl + mongo + express
/**
* Simple node_acl example with mongoDB and expressjs
*
* Usage:
* 1. Start this as server
* 2. Play with the resoures
*
* Show all permissions (as JSON)
* http://localhost:3500/info
*
@peterjaap
peterjaap / magento-testing-scenarios.md
Last active May 13, 2025 08:03
Magento testing scenarios

Magento testing scenarios

For use after an upgrade to verify the correct working of Magento

SHIP IT

Frontend

General

  • Activate all logs on the server (PHP, MySQL, Magento, mail, etc)
  • Check meta tags in HTML
@kbariotis
kbariotis / build.xml
Created March 17, 2014 18:54
Phing .xml for generating empty Magento Modules.
<?xml version="1.0" ?>
<project name="MagentoExt" basedir="." default="MagentoExt">
<!-- Properties -->
<property name="module.name" value="NAMESPACE" />
<property name="package.name" value="MODULENAME" />
<property name="package.scope" value="local" /><!-- local/community -->
<!-- Basic Folder and Files Structure Creation -->
<target name="MagentoExt" description="">