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
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
def create_deploys(self):
''' Separate out the deploys from the rest of the tasks section
and return them.
'''
# rdeploys = [step for step in self.tasks['tasks'] if 'rdepoy' in step]
return filter(lambda s: 'rdeploy' in s, self.tasks['tasks'])
'<div>\n'
' <p>This is a bunch of stuff it has new lines everywhere.</p>\n'
" <p>and we don't need them</p>\n"
' <pre>But\n'
' we do\n'
'need these\n'
'</pre>\n'
" <p>let's see what we can do!</p>\n"
'</div>\n'
class Person:
first_name = None
last_name = None
def get_name(self):
return first_name, last_name
class Friend(Person):
def get_name(self):
<!-- authors/templates/authors/form.html -->
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<input type="submit">
</form>
from __future__ import print_function
from collections import namedtuple
import random
# Create an easy-to-return and easy-to-inspect data
# structure for Game results.
Results = namedtuple('Results', ['won', 'switched'])