Skip to content

Instantly share code, notes, and snippets.

View microcipcip's full-sized avatar
🐌
training

Salvatore Tedde microcipcip

🐌
training
View GitHub Profile
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one .ahk file simultaneously and each will get its own tray icon.
@microcipcip
microcipcip / webpack-https-mkcert.md
Created September 2, 2021 11:59 — forked from Grawl/webpack-https-mkcert.md
Running Webpack Dev Server with HTTPS on developer machine using MKCERT
  1. Add local domain to /etc/hosts:

    127.0.0.1 my-project.dev

  2. Install mkcert

  3. Create certificate for this domain:

    ➜ mkcert my-project.dev
@microcipcip
microcipcip / redux.js
Last active March 4, 2019 11:55
Redux simple implementation
function createStore(reducer, initialState) {
let state = initialState;
const listeners = [];
const subscribe = listener => listeners.push(listener);
const getState = () => state;
const dispatch = action => {
state = reducer(state, action);
listeners.forEach(l => l());
};
@microcipcip
microcipcip / .block
Last active October 20, 2018 23:15
testy
license: mit
@microcipcip
microcipcip / .block
Created October 15, 2018 22:45
fresh block
license: mit
@microcipcip
microcipcip / .block
Last active October 15, 2018 23:11
fresh block
license: mit