Skip to content

Instantly share code, notes, and snippets.

View CostasAK's full-sized avatar
🎧

Costas CostasAK

🎧
View GitHub Profile
@CostasAK
CostasAK / P1S
Last active January 11, 2022 12:11
P1S Macros
/p ┏━ Intemperance ━┓┏━━━━━━━━━┓
/p ┃  ┃  ┃ ξ‚‚ξ‚‘ ┃┃ Anchor = Cleave ┃
/p ┣━━━╋━━━━╋━━━┫┃ Flail = Out ┃
/p ┃  ┃┃  ┃┃ Chakram = In ┃
/p ┣━━━╋━━━━╋━━━┃┗━━━━━━━━━┛
/p ┃  ┃  ┃  ┃
/p ┗━━━┻━━━━┻━━━┛
/p ┏━━ Chains ━━┓┏━━ Tank ━━━━━━━━━━┓
/p ┃ ┃┃Pitiless Flail of... ┃
/p ┃  ┃┃Grace ξ€°  +  ┃
@CostasAK
CostasAK / iterate.js
Created March 26, 2021 09:55
Iterate through a nested object and replace reserved JSON characters.
const iterate = (obj) => {
Object.keys(obj).forEach(key => {
if (typeof obj[key] === 'object') {
iterate(obj[key])
} else if (typeof obj[key] === 'string' || obj[key] instanceof String) {
obj[key] = obj[key].replace(/\n/g,'\\u000a').replace(/"/g,'\\u0022').replace(/'/g,'\\u0027');
}
})
}
@CostasAK
CostasAK / E12S1
Created March 1, 2021 21:08
E12S Macros
/p ┏━━ Spread ━━┓ ┏━ Titan/Shiva Groups ━┓
/p   ξ‚‚ξ‚‘  +  β†’ N/W(A1D4)
/p     +  β†’ S/E(C3B2)
/p    Share Beam β†’ S/E
/p ┏━━━━━━┓Shiva Slide ┏━━━━━━┓
/p  Left In ξ‚„ Right In
/p  Left Out ξ‚‚ Right Out
/p ┏━ Titan-ξ‚± ━┓┏━ Titan-ξ‚² ━┓┏━ Titan-ξ‚³ ━┓
/p D T H  TH  D  TH
/p D  TH D  TH   
@CostasAK
CostasAK / one-dark-pro.json
Created February 22, 2021 14:35
Windows Terminal One Dark Pro
{
schemes: [
{
"name": "One Dark Pro",
"foreground": "#abb2bf",
"background": "#282c34",
"cursorColor": "#abb2bf",
"black": "#3f4451",
"red": "#e05561",
"green": "#8cc265",
@CostasAK
CostasAK / .bashrc
Last active February 15, 2021 18:20
For windows git bash, colourful ps1 with git info + pipenv local install.
git_branch() {
local BRANCH="$(echo `__git_ps1`)"
if [ "$BRANCH" != "" ]; then
BRANCH="\e[1;33m $BRANCH"
fi
echo -e "\e[0m$BRANCH\e[0m"
}
git_stats() {
local STATUS=$(git status -s 2> /dev/null)
@CostasAK
CostasAK / E11S Macro
Last active February 15, 2021 18:19
Macro to communicate strats of E11S.
/p ┏ ━ ━ ━ ━      ξ‚‚ ξ‚€      ━ ━ ━ ━ β”“
/p ┃ < Protean > ┃ < Shining Sky > ┃
/p ┃  ┃ Blue + Tanks: (N) ┃
/p ┃  ξ‚‚ξ‚‘ ┃ Fire (S) ┃
/p ┃  ξ‚Ώ  ┣ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ β”«
/p ┃   ┃ < Cycles of Faith > ┃
/p ┃  ┃ RED: Protean β†’ Pairs ┃
/p ┃ Fire: DPS CCW ┃ Line β†’ KB β†’ Stack (S) ┃
/p ┃Thunder: ξ‚‚  OUT ┃ BLUE: Protean β†’ Spread┃
/p ┃ Holy:   (N) ┃ Line β†’ OUT β†’ Prey (N) ┃
@CostasAK
CostasAK / E10S Macros
Last active January 29, 2021 07:42
These macros assume centre strat and JP/Akito strat.
/p β”Œ SPREAD β”β”Œ ORBS ┐
/p   ξ‚‚ξ‚‘ s Priority:
/p    
/p    ξ‚‘s Priority:
/p β”” Centre Strat β”˜β””  β”˜
/p β”Œ TOWERS 1 β”β”Œ TOWERS 2 ┐
/p /ξ‚‚ξ‚‘ Clockwise from Tower 1
/p /  / Adjust for shadow
/p / after Towers 2
/p β”” Adjust if Shadow β”˜β”” β”˜
@CostasAK
CostasAK / E9S Macros
Last active January 29, 2021 07:42
2-part macro to communicate strats of E9S.
/p ┏ S P R E A D ┓┏  F L O W E Rγ€€γ€€β”“
/p              
/p         γ€€γ€€γ€€γ€€
/p      
/p         γ€€γ€€ 
/p            γ€€γ€€
/p β”—γ€€DPSγ€€CWγ€€ β”›  
/p β”—W/N = HT E/S = DPSβ”›
/p ┏     Anti Air / Wide Angleγ€€γ€€γ€€ β”“
/p   Left of boss,  Right of boss
{"Name":"Varis Ex (Fixed D)","MapID":725,"A":{"X":24.73,"Y":-24.0,"Z":-693.386,"ID":0,"Active":true},"B":{"X":45.379,"Y":-24.0,"Z":-693.383,"ID":1,"Active":true},"C":{"X":45.051,"Y":-24.0,"Z":-672.899,"ID":2,"Active":true},"D":{"X":25.087,"Y":-24.0,"Z":-673.23,"ID":3,"Active":true},"One":{"X":35.038,"Y":-23.999,"Z":-696.536,"ID":4,"Active":true},"Two":{"X":48.494,"Y":-24.0,"Z":-683.048,"ID":5,"Active":true},"Three":{"X":34.93,"Y":-24.0,"Z":-669.632,"ID":6,"Active":true},"Four":{"X":21.538,"Y":-24.0,"Z":-683.009,"ID":7,"Active":true}}
{"Name":"E5S","MapID":716,"A":{"X":91.995,"Y":0.0,"Z":89.968,"ID":0,"Active":true},"B":{"X":108.037,"Y":0.0,"Z":89.896,"ID":1,"Active":true},"C":{"X":108.028,"Y":0.0,"Z":110.019,"ID":2,"Active":true},"D":{"X":92.003,"Y":0.0,"Z":110.009,"ID":3,"Active":true},"One":{"X":81.802,"Y":0.0,"Z":97.572,"ID":4,"Active":true},"Two":{"X":118.291,"Y":0.0,"Z":97.59,"ID":5,"Active":true},"Three":{"X":118.067,"Y":0.0,"Z":102.534,"ID":6,"Active":true},"Four":{"X":81.932,"Y":0.0,"Z":102.452,"ID":7
@CostasAK
CostasAK / organizr_materialize_icons_sidebar_resize.css
Created November 10, 2020 21:04
This CSS makes it so that the materialize icons for tabs in the sidebar of Organizr have the same size as icons from other sources.
#side-menu li a {
height: 48px;
}
.nav>li {
height: 48px;
}
.sidebar .mdi {
font-size: 30px;
transform: translate(0, -7px);
}