git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
class NB: | |
def __init__(self,Lista): | |
self.ListaDeCaminho = Lista | |
self.Direcao = None | |
self.Custo = 0 | |
def addUmaListaDeCaminho(self,Lista): | |
for e in Lista: | |
self.ListaDeCaminho.append(e) | |
def addUmPasso(self,Passo): |
<button class="button button-balanced" id="tap1" on-tap="execute()">Tap</button> |
{-- | |
You *can* load an external CSS file in Elm, but currently, | |
in Pure Elm that means adding a style element to the body instead of the head. | |
It does cause a flash of unstyled content, so I think it's only useful | |
for testing in Reactor. | |
--} | |
import Html exposing (..) |
def _send_post(self, url, params, headers): | |
req = urllib2.Request(url, json.dumps(params), headers) | |
response = urllib2.urlopen(req) | |
result = response.read() |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
import betamax | |
from betamax.fixtures import unittest | |
import requests | |
def function(): | |
response = requests.get('https://httpbin.org/get') | |
return response.json().get('url') | |
version: '2' | |
services: | |
myapp: | |
build: . | |
container_name: "myapp" | |
image: debian/latest | |
environment: | |
- NODE_ENV=development | |
- FOO=bar | |
volumes: |
Wensheng Wang, 10/1/11
Source: http://blog.wensheng.org/2011/10/performance-of-flask-tornado-gevent-and.html
When choosing a web framework, I pretty much have eyes set on Tornado. But I heard good things about Flask and Gevent. So I tested the performance of each and combinations of the three. I chose something just a little more advanced than a "Hello World" program to write - one that use templates. Here are the codes:
Wensheng Wang, 10/1/11
Source: http://blog.wensheng.org/2011/10/performance-of-flask-tornado-gevent-and.html
When choosing a web framework, I pretty much have eyes set on Tornado. But I heard good things about Flask and Gevent. So I tested the performance of each and combinations of the three. I chose something just a little more advanced than a "Hello World" program to write - one that use templates. Here are the codes:
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/ | |
$ git add . | |
$ git status // to see what changes are going to be commited | |
$ git commit -m 'Some descriptive commit message' | |
$ git push origin master | |
$ git checkout gh-pages // go to the gh-pages branch | |
$ git rebase master // bring gh-pages up to date with master | |
$ git push origin gh-pages // commit the changes |