Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
import uuid | |
import wtforms_json | |
from sqlalchemy import not_ | |
from sqlalchemy.dialects.postgresql import UUID | |
from wtforms import Form | |
from wtforms.fields import FormField, FieldList | |
from wtforms.validators import Length | |
from flask import current_app as app | |
from flask import request, json, jsonify, abort |
@binkmail.com | |
@bobmail.info | |
@chammy.info | |
@devnullmail.com | |
@letthemeatspam.com | |
@mailinater.com | |
@mailinator.net | |
@mailinator2.com | |
@notmailinator.com | |
@reallymymail.com |
#This code is licensed as CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode). | |
import sys | |
import pygame as pg | |
class Game(object): | |
""" | |
A single instance of this class is responsible for | |
managing which individual game state is active |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
You can now read this on my (pretty) website! Check it out here.
Every reason to get more HackerPoints™ is a good one, so today we're going to
write a neat command line app in .NET Core! The Common library has a really cool
package Microsoft.Extensions.CommandlineUtils
to help us parse command line
arguments and structure our app, but sadly it's undocumented.
No more! In this guide, we'll explore the package and write a really neat
[ | |
{ | |
"name": "Amstrad CPC 6128", | |
"background": { | |
"name": "PBT Black", | |
"style": "background-image: url('/bg/plastic/pbt-black.png');" | |
}, | |
"pcb": false | |
}, | |
[ |
#!/bin/sh | |
if [ -d "/opt/phpstorm" ]; then rm -rvf /opt/phpstorm/*; else mkdir /opt/phpstorm; fi | |
curl -L "https://data.services.jetbrains.com/products/download?code=PS&platform=linux" | tar xz -C /opt/phpstorm --strip-components=1 | |
cat > /usr/share/applications/jetbrains-phpstorm.desktop <<'EOL' | |
[Desktop Entry] | |
Type=Application | |
Name=Phpstorm | |
Icon=/opt/phpstorm/bin/phpstorm.png | |
Exec=gksudo "/opt/phpstorm/bin/phpstorm.sh" %f | |
Categories=Development;IDE; |