Skip to content

Instantly share code, notes, and snippets.

View alexeychikk's full-sized avatar
🧙‍♂️

Alex Zinkevych alexeychikk

🧙‍♂️
View GitHub Profile
@alexeychikk
alexeychikk / createContextHOC.tsx
Created August 7, 2019 09:50
TypeScript React createContextHOC generic factory
import React from "react";
/*
// Usage:
export type WithPleasure = {
pleasure: number;
};
const PleasureContext = React.createContext<WithPleasure>({
pleasure: 13
@SuperPaintman
SuperPaintman / npm-f3-install.sh
Last active April 21, 2024 23:41
NPM install for low RAM machins. And "npm install ... killed" problem
#!/bin/bash
#
# Author: SuperPaintman <SuperPaintmanDeveloper@gmail.com>
#
###
# Constants
###
RETVAL=0
@kristofferh
kristofferh / git-export
Created December 7, 2011 13:01
"Export" a git repository to zip file
git archive --format zip --output /full/path/to/zipfile.zip master