Skip to content

Instantly share code, notes, and snippets.

View 0undefined's full-sized avatar
💭
:(){ :|:& };:

0undefined

💭
:(){ :|:& };:
View GitHub Profile
@timelyportfolio
timelyportfolio / .block
Last active February 13, 2018 01:38
vue + vue-router + bootstrap + d2b
license: mit
#!/usr/bin/env bash
INSTRUCTIONS="[<>.+]|-"
SETUP="s/^.+/@\\0|@0,|/"
ADD_OR_SUB="s/([^@]*)@([+-])([^|]*)\|(([0-9]+,)*)@([0-9]+),(([0-9]+,)*)\|(.*)/\1\2@\3|\4@\6\2,\7|\9/"
ADD_CELL_0="s/([^|]+)\|(([0-9]+,)*)@([0-9]*)0\+([0-9]*),(([0-9]+,)*)\|(.*)/\1|\2@\41\5,\6|\8/"
ADD_CELL_1="s/([^|]+)\|(([0-9]+,)*)@([0-9]*)1\+([0-9]*),(([0-9]+,)*)\|(.*)/\1|\2@\42\5,\6|\8/"
ADD_CELL_2="s/([^|]+)\|(([0-9]+,)*)@([0-9]*)2\+([0-9]*),(([0-9]+,)*)\|(.*)/\1|\2@\43\5,\6|\8/"