Skip to content

Instantly share code, notes, and snippets.

View evwltrs's full-sized avatar

ev evwltrs

  • Hokkaido
  • 19:57 (UTC +09:00)
View GitHub Profile
@evwltrs
evwltrs / yabairc
Created March 20, 2024 12:08
Yabai smart-gaps. No padding if window count >= 2.
padding_refresh_command="p=\$((\$(yabai -m query --windows --space | jq 'length') == 1 ? 0 : 12)) && \
yabai -m config --space mouse top_padding \$p && \
yabai -m config --space mouse bottom_padding \$p && \
yabai -m config --space mouse left_padding \$p && \
yabai -m config --space mouse right_padding \$p"
yabai -m signal --add event=window_created action="$padding_refresh_command"
yabai -m signal --add event=window_destroyed action="$padding_refresh_command"
yabai -m signal --add event=application_launched action="$padding_refresh_command"
yabai -m signal --add event=application_terminated action="$padding_refresh_command"
@evwltrs
evwltrs / s2ml-art-generator.ipynb
Last active November 13, 2021 15:07
S2ML Art Generator
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@evwltrs
evwltrs / keybase.md
Created November 2, 2021 20:20
keybase.md

Keybase proof

I hereby claim:

  • I am evwltrs on github.
  • I am 1nf (https://keybase.io/1nf) on keybase.
  • I have a public key whose fingerprint is FD64 72DF 3836 2DAE 2B81 557B 94F7 EEDE 018E 97A8

To claim this, I am signing this object:

@evwltrs
evwltrs / index.js
Last active October 25, 2021 17:08
canvas emoji gen
let img = document.createElement("img")
img.src = "https://emojiapi.dev/api/v1/crown/400.png"
var canvas = document.getElementById("canvas")
var ctx = canvas.getContext("2d")
ctx.fillStyle = "blue"
ctx.fillRect(0, 0, canvas.width, canvas.height)
img.addEventListener("load", () => {
ctx.drawImage(
@evwltrs
evwltrs / readme.md
Created September 23, 2021 12:44
readme.md

helo

# import only system from os
from os import system, name
# import sleep to show output for some time period
from time import sleep
# define our clear function
def clear():
# for windows
@evwltrs
evwltrs / guidelines.md
Last active October 15, 2018 20:08
1mb Guidelines

Guidelines

  1. At 1mb we are advocates for free speech but your page may not contain:

    • Malicious Code of any kind
    • Gore
    • Anything violating US laws
  2. Respect the privacy of other users

  3. Do not abuse the account creation system

@evwltrs
evwltrs / index.html
Last active October 14, 2018 19:05
Typed.js (My Version)
<body>
<div class="wrap">
<div class="type-wrap">
<span id="typed" style="white-space:pre;"</span>
</div>
</div>
</body>
</html>
@evwltrs
evwltrs / index.html
Last active August 21, 2023 10:16
typed.js - example
<div id="page_wrap">
<ul class="btns">
<a href="https://www.mattboldt.com/demos/typed-js/" target="_blank"><li class="btn">visit the creator of Typed.js</li></a>
<a href="https://codepen.io/merb/" target="_blank"><li class="btn">see my other pens</li></a>
</ul>
<div class="banner">
<div class="typed_wrap">
<h1>We Are <span class="typed"></span></h1>
</div>
</div>
@evwltrs
evwltrs / avatar.js
Created September 5, 2018 18:22
Commands
const Discord = require("discord.js"); //YOU WILL NEED TO DEFINE DISCORD SINCE WE ARE USING THE EMBED!
exports.run = async (bot, message, args) => { //OH BTW BOT IS YOUR CLIENT SO IF YOU USED CLIENT THEN CHNAGE ALL THE "BOT" TO "CLIENT" cool!
var footertext = [`${bot.user.username}: oof sexy`, `${bot.user.username}: nice`, `${bot.user.username}: 🔥`, `${bot.user.username}: Someone's looking sharp today!`, `${bot.user.username}: oof if i wasn't a bot...`, `${bot.user.username}: looking sexier than a mug`];
var rand = Math.floor(Math.random() * footertext.length);
var randomfooter = footertext[rand]; //THIS AND THE TWO LINES ABOVE IS TOTALLY UNNECESSARY. But you want to make your bot more interactive so keep it.Just an array of some random shit, you can add more if you would like just read the code and change it at your will!
message.channel.startTyping(); // TELLS YOUR HANDICAPPED BOT TO START TYPING! ;)