Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Kleber Soares klebercode

🎯
Focusing
Block or report user

Report or block klebercode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View reset.css
* { 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 { }
View user-initials.html
<html>
<head>
<title>User Initials</title>
<style>
/* Relevant Code */
.person {
display: table;
margin: 24px auto;
}
View .vimrc
"*****************************************************************************
"" NeoBundle core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
View dracula.vim
" 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>
View error-page-context
# add 404.html and 500.html path root project
# urls.py
handler404 = 'app.core.views.handler404'
handler500 = 'app.core.views.handler500'
# views.py
View usr-local-etc-nginx-nginx.conf
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;
View MinesweeperBot.py
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)
View clean-unique-field.py
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)
View init.vim
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'
View 0004_auto_20160303_2009.py
# -*- 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")
You can’t perform that action at this time.