Few guidelines for contributors to follow.
- Make sure you have a GitHub account
- Submit a ticket for your issue, assuming one does not already exist.
tw2/core/resources.py: 81 | |
# Before: | |
def prepare(self): | |
super(Resource, self).prepare() | |
rl = core.request_local() | |
rl_resources = rl.setdefault('resources', []) | |
rl_location = rl['middleware'].config.inject_resources_location |
Few guidelines for contributors to follow.
var Robot = function(robot) { | |
robot.rotateCannon(-90); | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(); | |
//i'll add a clone but i need to refactor collision | |
//robot.clone(); | |
}; |
import re | |
def test_with_with_vowels_ends_with_hey(): | |
assert pig_latin('egg') == 'eggway' | |
def test_handle_words_with_consonants(): | |
assert pig_latin('happy') == 'appyhay' |
import re | |
from functools import reduce | |
def test_handles_words_with_vowels(): | |
assert pig_latin('egg') == 'eggway' | |
def test_handles_words_starting_with_consonat(): | |
assert pig_latin('happy') == 'appyhay' |
Automate everything!
http://virtualenv.readthedocs.org/en/latest/virtualenv.html#installation https://pypi.python.org/pypi/virtualenv/1.11.6 http://www.fabfile.org/
For Fabric to work we need couple things:
from fabric.api import sudo, task, env, local, settings | |
from fabric.contrib.files import upload_template | |
from fabric.contrib.project import upload_project | |
import os | |
salt_task = hosts('@'.join([os.environ['AS_MASTER_USER'], os.environ['AS_MASTER_HOST']])) | |
"""Decorator to specify Salt-Stack master user and host.""" |
I hereby claim:
To claim this, I am signing this object:
# -*- coding: utf-8 -*- | |
import random | |
def getRandomPerson(ppl): | |
return ppl[random.randint(0,len(ppl)-1)] | |
def good_pair(ignore_ppl, chosen1, chosen2): | |
for pair in ignore_ppl: |
set_viewable_dates: function (task, month_to_check, now) { | |
/* | |
it will set: | |
start_to_show, end_to_show (and postponed_to_show) | <-- moment() dates | | |
variables to be used in list template, | |
so that original start, end (and postponed) values of a task wouldn't be affected | |
if a tasks start, end, postponed values span over month_to_check, | |
start, end, postponed will be reduced to only contain values which cover month_to_check | |
so that start_to_show <= month_to_check >= end_to_show |