This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_meta": { | |
"sources": [ | |
{ | |
"json": "Norden", | |
"abbreviation": "norden", | |
"full": "Norden", | |
"authors": [ | |
"JR-K" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate ggez; | |
use ggez::conf; | |
use ggez::event::*; | |
use ggez::{GameResult, Context}; | |
use ggez::graphics; | |
use std::time::Duration; | |
struct MainState {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'<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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person: | |
first_name = None | |
last_name = None | |
def get_name(self): | |
return first_name, last_name | |
class Friend(Person): | |
def get_name(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- authors/templates/authors/form.html --> | |
<form method="POST"> | |
{% csrf_token %} | |
{{ form.as_p }} | |
<input type="submit"> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']) | |
NewerOlder