const express = require('express'); const app = express();
app.get('/', (req, res) => {
res.send(Hello ${req.}
);
});
app.listen(3000);
const express = require('express'); const app = express();
app.get('/', (req, res) => {
res.send(Hello ${req.}
);
});
app.listen(3000);
A Pen by Kevin Leutzinger on CodePen.
echo hi | |
for i in (ls) | |
echo $i | |
end |
a52dec 0.7.4-11 | |
aalib 1.4rc5-14 | |
accountsservice 0.6.55-3 | |
acl 2.3.1-1 | |
adobe-source-code-pro-fonts 2.038ro+1.058it+1.018var-1 | |
adwaita-icon-theme 41.0-1 | |
agg 2.5-11 | |
alembic 1.8.3-2 | |
alsa-card-profiles 1:0.3.43-1 | |
alsa-firmware 1.2.4-2 |
from collections import Counter | |
from pprint import pprint | |
seen = Counter() | |
with open("/home/kevin/.local/share/fish/fish_history") as f: | |
for i in f.readlines(): | |
if i.startswith("- cmd: "): | |
words = i.split(" ") | |
cmd = words[2] | |
if cmd == "sudo" and len(words) > 3: |
def rotate_left_1(A): | |
"rotate in place once to the left (as if k = 1)" | |
for i in range(len(A) - 1): | |
A[i], A[i + 1] = A[i + 1], A[i] | |
def rotate_right_1(A): | |
"rotate in place once to the right (as if k = -1)" | |
for i in range(len(A) - 1): | |
A[i], A[i - 1] = A[i - 1], A[i] |
#!/usr/bin/env python3 | |
"""invoke magic spells from magic words inside a file | |
magic words are defined thusly: (must be all caps) | |
#__MAGICWORD__# echo 'followed by a shell command' | |
put something of that format inside a file to set up running that command | |
additionally, #__file__# will be substituted with the path of the file this is called on |
""" | |
scraped from here: | |
https://en.wikipedia.org/wiki/Category:Musical_groups_by_city_in_the_United_States | |
TODO | |
[x] get cities from wikipedia | |
[x] get bands from each city | |
- there's subcollections (a band in a subcoll is not featured in the parent) | |
- try to identify next_pages add to Q. bfs style | |
[x] turn cities into coordinates city_to_coordinates |
Van Halen 3678352 Los Angeles | |
Metallica 3578022 San Francisco | |
Red Hot Chili Peppers 3519678 Los Angeles | |
Eagles (band) 3216278 Los Angeles | |
Beastie Boys 3038412 New York City | |
Wu-Tang Clan 2910395 New York City | |
R.E.M. 2762807 Athens, Georgia | |
Lynyrd Skynyrd 2682106 Jacksonville, Florida | |
Foo Fighters 2648808 Seattle | |
Backstreet Boys 2641526 Orlando, Florida |
This file helps you mute every discord channel in your account | |
you have to run it in the developer console on the web client | |
follow the instructions below. this is tested on firefox and chrome. | |
1. open the discord webapp at https://discord.com/channels/@me | |
2. manually expand all server folders | |
(note any servers inside collapsed server folders will not be modified, this can be useful for leaving certain groups of servers unmodified) | |
3. open browser network inspector | |
4. right click on a sever icon | |
5. (un)mute a server |