Skip to content

Instantly share code, notes, and snippets.

View klebercode's full-sized avatar
🎯
Focusing

Kleber Soares klebercode

🎯
Focusing
View GitHub Profile
* { 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 { }
<html>
<head>
<title>User Initials</title>
<style>
/* Relevant Code */
.person {
display: table;
margin: 24px auto;
}
"*****************************************************************************
"" NeoBundle core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
" 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 <nuxlli@gmail.com>
# add 404.html and 500.html path root project
# urls.py
handler404 = 'app.core.views.handler404'
handler500 = 'app.core.views.handler500'
# views.py
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;
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)
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)
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'
# -*- 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")