Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Zeno airtonix

🎯
Focusing
View GitHub Profile
@airtonix
airtonix / storage.js
Created Mar 8, 2019
isomorphic-localstorage-proxy
View storage.js
import { createLocalStorage } from "localstorage-ponyfill";
export const isBrowser =
typeof window !== 'undefined' &&
typeof window.document !== 'undefined';
export const isNode =
typeof process !== 'undefined' &&
process.versions != null &&
process.versions.node != null;
View node-red__settings.js
...
functionGlobalContext: {
i2c:require('i2c'),
os:require('os'),
fs:require('fs'),
glob:require('glob'),
ua:require('universal-analytics')
// jfive:require("johnny-five"),
@airtonix
airtonix / index.js
Created Sep 27, 2018 — forked from zkat/index.js
npx is cool
View index.js
#!/usr/bin/env node
console.log('yay gist')
View npx test
const express = require('express');
const serveStatic = require('serve-static');
const STATIC_ROOT = '/static/';
const app = express();
View gist:55e1d67ef803a887b411caed0f88e689
Random ports used by webpack-serve despite ports configured.
repo: https://github.com/airtonix/netlify-cms-widget-relations
It's also caused by the fact that you might have `onchange` wrapping your callto `webpack-serve`, which
leads to `onchange` sending SIGTERM instead of SIGINT to the childprocess it wraps.
The result is that `webpack-serve` remains running, thus keeps the intially configured port and the
next process uses a random port.
@airtonix
airtonix / handlebars-manifest-helper.js
Created Jan 17, 2018
Webpack Manifest Consumption in View Engines
View handlebars-manifest-helper.js
var path = require('path');
var CWD = process.cwd();
var pkg = require(path.join(CWD, 'package.json'));
module.exports.register = function (Handlebars) {
var manifestPath = path.resolve(process.cwd(), 'dist', 'Static', 'theme', 'manifest.json');
var manifest;
var errorMessage;
var filecontent;
try {
@airtonix
airtonix / issue-detail.css
Created Jul 17, 2017
Jira Agile Work Board
View issue-detail.css
@charset "UTF-8";
/* default */
#ghx-work {
display: flex;
}
#ghx-work #ghx-pool-column {
display: block;
flex: 1;
View gist:85e94eb4aea412a43dba45f61ffc1cf9
version: "2.0"
services:
image:
image: fusion/mac020
build:
context: "."
dockerfile: ./docker/Dockerfile
box:
View pipeline.yml
resource-types:
- name: samba-resource
type: docker-image
source:
repository: airtonix/concourse-resource-samba
resources:
- name: source
type: git
source:
@airtonix
airtonix / README.md
Last active Dec 6, 2016
Test repo for windows variables in docker-compose
View README.md

If you can see this file you are standing too close.