I hereby claim:
- I am bsides on github.
- I am bsides (https://keybase.io/bsides) on keybase.
- I have a public key ASCe6m8-50baBjJz1AAtlW6vh_25WYNYVrp4x9_6Uq8mWgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |
#SingleInstance, force | |
global PreviousActiveWindow | |
; Requires windows terminal preview: https://www.microsoft.com/en-us/p/windows-terminal-preview/9n0dx20hk701 | |
#`:: | |
DetectHiddenWindows, On | |
if (WinExist("ahk_class CASCADIA_HOSTING_WINDOW_CLASS")) { | |
if(WinActive("ahk_class CASCADIA_HOSTING_WINDOW_CLASS")) { |
#NoEnv | |
#SingleInstance force | |
SendMode Input | |
DetectHiddenWindows, on | |
SetWinDelay, 0 | |
#`:: | |
terminal := WinExist("ahk_exe WindowsTerminal.exe") | |
if (terminal) | |
{ |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="background.js"></script> | |
</head> | |
<body> | |
<textarea id="sandbox"></textarea> | |
</body> |
let givenMessyArray = [[1,2,[3]],4] | |
console.log(givenMessyArray) | |
//-> [ [ 1, 2, [ 3 ] ], 4 ] | |
// In ES6 it's as easy as | |
console.log( | |
givenMessyArray.flat(2) | |
) | |
//-> [ 1, 2, 3, 4 ] |