Skip to content

Instantly share code, notes, and snippets.

View kennethlove's full-sized avatar
🦀
Python

Kenneth Love kennethlove

🦀
Python
View GitHub Profile
{
"_meta": {
"sources": [
{
"json": "Norden",
"abbreviation": "norden",
"full": "Norden",
"authors": [
"JR-K"
],
FROM python:3.7
RUN apt-get update && \
apt-get install -y && \
pip3 install uwsgi
COPY ./app /opt/app
RUN python -m pip install --upgrade pip
RUN pip3 install -r /opt/app/requirements.txt
@kennethlove
kennethlove / books.py
Last active December 5, 2018 00:26
Smarter book object.
class Book:
title = ''
pages = 0
def __init__(self, title='', pages=0):
self.title = title
self.pages = pages
def __add__(self, other):
"""Control adding two Books together or a Book and a number"""
use std::io;
fn main() {
let mut password = String::new();
let chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 \'\".?!,-_$#@!%^&*()}{=+/\\`~<>";
let mut guess = String::new();
let mut iterations = 0;
let mut failed = 0;
let mut keep_running = true;
extern crate ggez;
use ggez::conf;
use ggez::event::*;
use ggez::{GameResult, Context};
use ggez::graphics;
use std::time::Duration;
struct MainState {}
@kennethlove
kennethlove / fairyfloss.vim
Created August 31, 2016 17:44 — forked from sonjapeterson/fairyfloss.vim
fairyfloss colorscheme for vim (converted from sailorhg's tmtheme: http://sailorhg.github.io/fairyfloss/)
" Vim color file
" Converted from sailorhg's original fairyfloss tmtheme (http://sailorhg.github.io/fairyfloss/)
" using Coloration v0.4.0 (http://github.com/sickill/coloration)
" To use in your vimrc: http://www.mkyong.com/linux/how-to-install-a-vim-color-scheme/
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
class FooMixin(object):
def get_formset(self, request, obj=None, **kwargs):
form = self.form
form.fields['butts'].queryset = Butts.objects.filter(oily=True)
kwargs.update({'form': form})
return super(FooMixin, self).get_formset(request, obj=obj, kwargs)
def index(request):
if request.method == "GET":
return render_to_response('locations/index.html', {'nosearch': True})
elif request.method == "POST":
context = {}
result = Location.objects.filter(address=request.POST['address'])
loc = result.first()
context['loc'] = loc
context['services'] = _get_services(loc)
return render_to_response('locations/services.html', context)
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]]+(!![]+[
@kennethlove
kennethlove / draft
Created October 8, 2013 05:57
draft outline
# Hello!
## Getting Started with Django
Go from apprentice to journeyman
## Lincoln Loop
### Django Round-Up
Podcasts can be educational too
# Learning 4 lyfe
More than anything, though, I'm a learner.