I hereby claim:
- I am dmpayton on github.
- I am dmpayton (https://keybase.io/dmpayton) on keybase.
- I have a public key ASDKF0XQ4DJ6RgbyT_axfdilCrfqU8R8X54fzRyxU7G6vgo
To claim this, I am signing this object:
import board | |
import time | |
import neopixel | |
from random import choice, randint | |
leds = neopixel.NeoPixel(board.RX, 50, pixel_order=neopixel.RGB) | |
color = (128, 0, 255) | |
def permutations(iterable, r=None): |
import board | |
import time | |
import neopixel | |
from random import randint, choice | |
leds = neopixel.NeoPixel(board.RX, 50, pixel_order=neopixel.RGB) | |
palette = [ | |
# pan | |
0xff218c, |
$ ./scripts/xephyr | |
./scripts/xephyr: 7: ./scripts/xephyr: [[: not found | |
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed | |
_XSERVTransMakeAllCOTSServerListeners: server already running | |
(EE) | |
Fatal server error: | |
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) | |
2018-05-11 10:40:22,376 libqtile log_utils.py:init_log():L120 Starting logging for Qtile | |
2018-05-11 10:40:22,377 libqtile confreader.py:from_file():L85 Could not import config file '/home/derek/.config/qtile/config.py' | |
Traceback (most recent call last): |
String incomingByte = ""; // for incoming serial data | |
bool blinking = false; | |
int blinkSpeed = 100; | |
// the setup function runs once when you press reset or power the board | |
void setup() { | |
// initialize digital pin LED_BUILTIN as an output. | |
pinMode(LED_BUILTIN, OUTPUT); | |
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps | |
} |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/xenial64" | |
# Forward a port from the guest to the host, which allows for outside | |
# computers to access the VM, whereas host only networking does not. |
I hereby claim:
To claim this, I am signing this object:
import dateutil.parser | |
import parsedatetime | |
def parse_datetime(value): | |
try: | |
return dateutil.parser.parse(value) | |
except ValueError: | |
# Unknown string format | |
cal = parsedatetime.Calendar() |
1. `mkvirtualenv philosophy -p /usr/bin/python3.5` | |
2. Install dependencies: | |
`pip install requests beautifulsoup4` | |
3a. run `python crawler.py` | |
3b. run `python crawler.py <article_slug>` | |
4. Profit^wPhilosophy |
import itertools | |
from django.conf import settings | |
from django.conf.urls import url | |
from django.http import HttpResponse | |
from django.utils.decorators import classonlymethod | |
from django.views.decorators.csrf import csrf_exempt | |
from django.views.generic import View | |
from dulwich.repo import Repo |
#!/usr/bin/env python | |
''' Get a list of out-of-date packages from a pip requirements.txt file. ''' | |
import itertools | |
import json | |
import requests | |
import sys | |