Skip to content

Instantly share code, notes, and snippets.

View AlgusDark's full-sized avatar
🌯

Carlos Pérez Gutiérrez AlgusDark

🌯
View GitHub Profile
class PathMe {
moves: string[] = [];
constructor() {
this.moves = [];
return this;
}
moveTo(x: number, y: number) {
@AlgusDark
AlgusDark / .zshrc
Created February 6, 2023 07:21 — forked from bashbunni/.zshrc
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@AlgusDark
AlgusDark / types.ts
Created January 14, 2021 05:22 — forked from ClickerMonkey/types.ts
Typescript Helper Types
// when T is any|unknown, Y is returned, otherwise N
type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N;
// when T is never, Y is returned, otherwise N
type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
// when T is a tuple, Y is returned, otherwise N
// valid tuples = [string], [string, boolean],
// invalid tuples = [], string[], (string | number)[]
@AlgusDark
AlgusDark / install.sh
Last active May 19, 2020 11:05
New MacBook setup
#!/usr/bin/env bash
# Ask for administrator password
sudo -v
# Keep-alive script.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
if [ ! "$(which brew)" ]; then
echo "Installing homebrew..."
@AlgusDark
AlgusDark / index.html
Created November 26, 2017 16:43
S00E12 - HTML+CSS+JS | Codeando Pues — https://youtu.be/ZrxPs75oIR0
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
<title>My Repositories</title>
</head>
<body>
<div class='card'>