This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"editor.rulers": [ | |
80, | |
100, | |
130 | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx json-server --watch db.json --delay 1000 --port 4000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://emoji.slack-edge.com/T03TQPGA0/sweating/13092bd548113fa7.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/devcontainers/base:ubuntu | |
# Add the Cloud Foundry GPG key | |
RUN curl -fsSL https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | gpg --dearmor -o /usr/share/keyrings/cloudfoundry-keyring.gpg | |
# Add the Cloud Foundry repository | |
RUN echo "deb [signed-by=/usr/share/keyrings/cloudfoundry-keyring.gpg] https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry.list | |
# Add the GitHub GPG key | |
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def find_chords(chords, music): | |
"""Search for chords within music (O(n) time). | |
:param list chords: chords to look for, in order | |
:param list music: music to search within | |
""" | |
if len(music) < len(chords): | |
return 0 | |
my_chord_i = -1 | |
occurrences = 0 | |
for my_chord in music: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: yum packages for building python | |
yum: name={{ item }} state=latest | |
with_items: | |
- zlib-devel | |
- bzip2-devel | |
- openssl-devel | |
- xz-libs | |
- name: create work directories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"artists": | |
[{"artist_name": "Ryan Adams", | |
"artist_id": 111, | |
"img": "ryan_adams2.jpeg" | |
}, | |
{"artist_name": "Archers of Loaf", | |
"artist_id": 222, | |
"img": "archers_of_loaf.jpg" | |
}, | |
{"artist_name": "Neko Case", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: create users | |
user: name={{ item.name }} state=present | |
uid={{ item.uid }} | |
system={{ item.get('is_system', 'no') }} | |
groups={{ ','.join(supplement_groups.get(item.name)) }} append=yes | |
with_items: | |
users | |
when: item.name in enabled_users | |
tags: | |
- users |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"count_today": 0, | |
"children_ids": [ | |
1242602 | |
], | |
"code": "eacqr", | |
"date": "2014-05-27T10:01:17", | |
"lastchanged": "2014-05-27T10:09:20", | |
"title": null, | |
"root_id": null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# modified from https://gist.github.com/826961 | |
VENV=$1 | |
PROGNAME=$0 | |
if [ -z $VENV ]; then | |
echo "usage: $PROGNAME [virtualenv_path] CMDS" | |
exit 1 | |
fi | |
. ${VENV}/bin/activate | |
shift 1 |
NewerOlder