View fig.yml
db:
image: postgres:9.3
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- /var/lib/postgresql/data
ports:
- "5432:5432"
View best_practices.md

Read this before you post something:

  1. The group is not here to do your homework.

Don't expect others to do everything for you, be it your homework or your job. So try doing something first!

  1. Share code nicely.

If you want to share a code, or need help with it, then put it in https://gist.github.com or something similar. This way others can have a better understanding of what your code is about.

View insertionSort.cpp
void InserctionSort(int n, int vetor[]){
int j,i, chave;
for(j = 1; j < n; j++){
chave = vetor[j];
i = j - 1;
while(i >= 0 && vetor[i] > chave){
View exemplo.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '/home/lanchinho/blablabla/tutorial/db.sqlite' ,
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
View helloworld.rst
title:Hello World!

This is a simple Hello world example for hovercraft!


This is the First Slide:

Some text here in this slide...

View test_com_request_context.py
# -*- coding: utf-8 -*-
from lxml import html as lhtml
from django.template import Context, Template, RequestContext
from django.test import RequestFactory
factory = RequestFactory()
class TestTemplate(AlgumTestCase):
View http_cmd.sh
django-admin.py startproject --template=https://github.com/githubuser/dj_project_templates/blob/master/project_template.tar --extension="md,py" myproject
View awk_primo.awk
{num=$1
for (div = 2; div*div <= num; div++)
if (num % div == 0)
break
if (num % div == 0)
printf "%d nao eh primo\n", num
else
printf "%d eh primo\n",num}
View simple_awk.sh
grep labccet /etc/passwd | awk -F: '{print $7}'
View polls_tags.py
#-*- coding:utf-8 -*-
from django import template
register = template.Library()
from polls.models import Poll
@register.simple_tag(takes_context=True)
def get_userInfo_for_poll(context,poll, user):
context['userInfo'] = poll.getUserInfo(user)
return ''