Skip to content

Instantly share code, notes, and snippets.

View Fer0x's full-sized avatar
🇺🇦
Слава Україні!

Viktor Havrylin Fer0x

🇺🇦
Слава Україні!
View GitHub Profile
git remote prune origin
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d
@Fer0x
Fer0x / LICENSE.txt
Created October 5, 2018 16:55 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@Fer0x
Fer0x / prop-type-react-component.js
Created December 6, 2018 10:12
PropTypes.component
import { isValidElementType } from 'react-is';
function PropTypeError(message) {
this.message = message;
this.stack = '';
}
PropTypeError.prototype = Error.prototype;
const createPropTypesComponent = isRequired => (
props,
@Fer0x
Fer0x / ntc.js
Created May 22, 2017 15:30
Name that color
/*
+-----------------------------------------------------------------+
| Created by Chirag Mehta - http://chir.ag/projects/ntc |
|-----------------------------------------------------------------|
| ntc js (Name that Color JavaScript) |
+-----------------------------------------------------------------+
All the functions, code, lists etc. have been written specifically
for the Name that Color JavaScript by Chirag Mehta unless otherwise