In a terminal start a server.
$ python -m SimpleHTTPServer 8000In another terminal set up the cgroups freezer.
| export VENV_HOME=~/.venvs | |
| export VENV_PYTHON=/usr/bin/python3.6 | |
| fn_workon() { | |
| if [ -f "${VENV_HOME}/${1}/bin/activate" ]; then | |
| export VENV_CURRENT="${VENV_HOME}/${1}" | |
| # Run commands before activation | |
| if [ -f "${VENV_CURRENT}/pre_activate.sh" ]; then | |
| . "${VENV_CURRENT}/pre_activate.sh" | |
| fi |
| """ | |
| Demo code for Mu/PygameZero using kenney.nl graphics. | |
| There's a short video demo at https://www.youtube.com/watch?v=b2IPNCJtUL4. | |
| NOTE: this relies on two patches to Mu which aren't yet in | |
| the main PgZero repository, one which adds joystick | |
| support, and another which adds a flip property to | |
| the Actor class. | |
| """ |
In a terminal start a server.
$ python -m SimpleHTTPServer 8000In another terminal set up the cgroups freezer.
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ Use in i3wm with: | |
| Save as screeshot.py somewhere into your PATH | |
| bindsym --release Print exec --no-startup-id screenshot.py | |
| """ | |
| import os |
Hello █████,
Thanks for getting in touch and for this tremendous invitation. I'm flattered and excited by the offer.
Representation matters to me. I'm curious: How are you aiming to build a diverse speaker line-up this year? Last years's conference only had 1 female and 1 person of color.
My inclusion rider: I'll join as a speaker if the line-up includes at least ██ women and ██ POC.
I realize putting together a diverse line-up is difficult. As a white male, I'd rather not take up a slot that could better feature someone not like me. Here's a list of people I can recommend.
| activate application "SystemUIServer" | |
| tell application "System Events" | |
| tell process "SystemUIServer" | |
| -- Working CONNECT Script. Goes through the following: | |
| -- Clicks on Bluetooth Menu (OSX Top Menu Bar) | |
| -- => Clicks on SX-991 Item | |
| -- => Clicks on Connect Item | |
| set btMenu to (menu bar item 1 of menu bar 1 whose description contains "bluetooth") | |
| tell btMenu | |
| click |
| """ | |
| Custom django checks. | |
| H001: Field has no verbose name. | |
| H002: Verbose name should use gettext. | |
| H003: Words in verbose name must be all upper case or all lower case. | |
| H004: Help text should use gettext. | |
| H005: Model must define class Meta. | |
| H006: Model has no verbose name. | |
| H007: Model has no verbose name plural. |
| # by @levelsio | |
| # | |
| # MIT licensed | |
| # | |
| # make sure you enable php_intl on PHP | |
| # you can do by uncommenting ;extension=intl or ;extension=php_intl | |
| # and installing php-intl, e.g. sudo apt-get install php-intl | |
| # | |
| # made for Nomad List to give people a notice if they go to a place | |
| # where it is currently Ramadan |
I travel a lot so I'm down to like 30 minutes of packing per any kind of trip. I always bring one carry-on suitcase for any trips up to 2 weeks (that I never check in unless forced) -- I have an Away suitcase because it's got a built-in (removable) battery, and amazing wheels.
| <!-- Maker Link by @levelsio --> | |
| <!-- MIT License --> | |
| <style> | |
| body { | |
| background:#333; | |
| } | |
| .levelsio-by { | |
| font-family:"Helvetica Neue",sans-serif; | |
| right:0; |