Skip to content

Instantly share code, notes, and snippets.

View skyler's full-sized avatar

Skyler Slade skyler

  • Constant Contact
  • Gainesville, FL
View GitHub Profile
{"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",
@skyler
skyler / tasks.yml
Created October 16, 2015 14:48
Python tasks
---
- 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
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:
@skyler
skyler / Dockerfile
Created December 9, 2024 19:47
cutest
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
https://emoji.slack-edge.com/T03TQPGA0/sweating/13092bd548113fa7.png
npx json-server --watch db.json --delay 1000 --port 4000
"editor.rulers": [
80,
100,
130
],