Skip to content

Instantly share code, notes, and snippets.

KOYAANISQATSI

Esa Juhana thevangelist

KOYAANISQATSI
Block or report user

Report or block thevangelist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thevangelist
thevangelist / alphabets.md
Created Dec 9, 2018
alphabets paste sheet for typography / calligraphy
View alphabets.md

abcdefghijklmnopqrstuvwxyzåäö

ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ

1234567890

@thevangelist
thevangelist / olutkamat.md
Last active May 19, 2018
Olutkamat OVH (euroa)
View olutkamat.md

Klarstein beerfest       179,90
Pöytäpullotuskone         38,50
Star San 473 ml           17,43
PH-liuskat                 5,00
Panohanskat               15,00
Maitohappo 100ml           4,20
Immersiolauhdutin         69,50
Humalaa useita satoja g   50,00*
@thevangelist
thevangelist / kalat.md
Last active Jul 14, 2019
Saadut kalat
View kalat.md


2018.04.01 Saraavesi: 1 x 15 cm ahven DIY-sini-puna-valko-lusikka + mustakultainen morri
2018.04.02 Saraavesi: 0 kalaa, vaikka kokeiltu ympäriinsä
2018.04.20 Jyväsjärvi, Päijänne: Äijälänsalmi jigailtu läpi isolla kirkkaalla jigillä, vain kiviä. Ei myöskään Rauhalahdessa.
2018.04.30 Saraavesi: 0 kalaa, avokelalla Sararannan laitureilta heittelyä: kaislikko-Räsänen ja kulta-musta Bete Lotto.
2018.05.05 Päijänne: 0 kalaa, Umpikela + Avokela, rantoja ja syvänteitä, uistelua, jigailua ja heittelyä. Luonnollinen jigi, iso vaappu, Bete Lotto ahvenvärityksellä, Helmi-Räsänen (kaislikko). Puolipilvisestä aurinkoiseen keskipäivä 13-16.
2018.05.xx Palokkajärvi: 0 kalaa, heitelty kepillä kaloja
2018.05.xx Palokkajärvi: 0 kalaa, heittokoholla heitelty
@thevangelist
thevangelist / only-reducer-youll-ever-need.js
Last active Mar 2, 2018
The Only Reducer You'll Ever Need
View only-reducer-youll-ever-need.js
// Change anything with this reducer ;)!
const onlyReducerYoullEverNeed = (state={}, action) => {
return {
...state,
action.payload
}
};
@thevangelist
thevangelist / git-diff-exclude-stats.md
Last active Jan 12, 2018
Git diff --stat with exclude files
View git-diff-exclude-stats.md

// Just the exclude diff lines changed git diff --stat master -- ':(exclude)*package-lock.json'

// Detailed output on changed lines count

git log --author="<esa.ase@gose.com>" --pretty=tformat: --numstat -- ':(exclude)*package-lock.json' | awk '{inserted+=$1; deleted+=$2; delta+=$1-$2; ratio=deleted/inserted} END {printf "Commit stats:\n- Lines added (total)....  %s\n- Lines deleted (total)..  %s\n- Total lines (delta)....  %s\n- Add./Del. ratio (1:n)..  1 : %s\n", inserted, deleted, delta, ratio }' -

// Output example

@thevangelist
thevangelist / ttl-debug.md
Last active Nov 2, 2017
DNS record TTL test
View ttl-debug.md

dig thevangelist.github.io |awk '$2 ~ "[0-9]+"' |col

// More details: watch -d dig thevangelist.github.io

@thevangelist
thevangelist / styled-components.jsx
Last active Dec 2, 2017
Styled Components (styled-components)
View styled-components.jsx
import React, { Component } from 'react';
import styled, { ThemeProvider } from 'styled-components';
import { modularScale } from 'polished';
const BASE = '#DBECF3';
const BRAND = '#062E40';
const BRAND_ALT = '#34A5B6';
const ATTENTION = '#F94253';
const UNIT = 1;
@thevangelist
thevangelist / redux-tree-connector.js
Last active Jul 13, 2017
Redux Tree Query HOC with Fallback Values
View redux-tree-connector.js
import { connect } from 'react-redux';
import _ from 'lodash';
function reduxConnected(reduxTreeQuery, fallbackValue, propName) {
return connect(state => ({
[propName]: _.get(state, reduxTreeQuery, fallbackValue)
}));
}
export default reduxConnected;
View IIFE-avoidance-in-ES6.js
/*
No need to use the ES5 version
(function () {
var tmp = ···;
···
}());
*/
You can’t perform that action at this time.