This file contains hidden or 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
* { margin: 0; padding: 0; list-style: none; border: none; } | |
html, body { height: 100%; } | |
body, | |
input, select, textarea { font-size: 12px; font-family: Tahoma, sans-serif; color: #333; } | |
body { min-width: 300px; } | |
h1, h2, h3, h4, h5, h6 { } | |
This file contains hidden or 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
<html> | |
<head> | |
<title>User Initials</title> | |
<style> | |
/* Relevant Code */ | |
.person { | |
display: table; | |
margin: 24px auto; | |
} |
This file contains hidden or 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
"***************************************************************************** | |
"" NeoBundle core | |
"***************************************************************************** | |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
" Required: | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif |
This file contains hidden or 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
" Dracula Theme v0.7.6 | |
" | |
" https://github.com/zenorocha/dracula-theme | |
" | |
" Copyright 2015, All rights reserved | |
" | |
" Code licensed under the MIT license | |
" http://zenorocha.mit-license.org | |
" | |
" @author Éverton Ribeiro <[email protected]> |
This file contains hidden or 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
# add 404.html and 500.html path root project | |
# urls.py | |
handler404 = 'app.core.views.handler404' | |
handler500 = 'app.core.views.handler500' | |
# views.py |
This file contains hidden or 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
server { | |
listen 80; | |
server_name _; | |
client_max_body_size 100m; | |
root /your_path; | |
location / { | |
proxy_pass http://127.0.0.1:8000; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
This file contains hidden or 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 PIL import ImageGrab | |
import os | |
import time | |
import win32api, win32con | |
import win32gui | |
import win32ui | |
from ctypes import windll | |
branco = (255,255,255) | |
azul = (0,0,255) |
This file contains hidden or 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 django import forms | |
from django.core.exceptions import ValidationError | |
def clean_unique(form, field, exclude_initial=True, | |
format="The %(field)s %(value)s has already been taken."): | |
value = form.cleaned_data.get(field) | |
if value: | |
qs = form._meta.model._default_manager.filter(**{field:value}) | |
if exclude_initial and form.initial: | |
initial_value = form.initial.get(field) |
This file contains hidden or 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
call plug#begin('~/.config/nvim/plugged') | |
" colorschemes | |
Plug 'chriskempson/base16-vim' | |
" utilities | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] } | Plug 'Xuyuanp/nerdtree-git-plugin' | Plug 'ryanoasis/vim-devicons' | |
Plug 'mileszs/ack.vim' |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Generated by Django 1.9 on 2016-03-03 20:09 | |
from __future__ import unicode_literals | |
from django.db import migrations, models | |
from django.template.defaultfilters import slugify | |
def create_portfolio_slug(apps, schema_editor): | |
Portfolio = apps.get_model("core", "Portfolio") |
OlderNewer