Skip to content

Instantly share code, notes, and snippets.

View klebercode's full-sized avatar
🎯
Focusing

Kleber Soares klebercode

🎯
Focusing
View GitHub Profile
@klebercode
klebercode / todoist.py
Created June 17, 2016 17:46 — forked from vst/todoist.py
A command line tool for Todoist
## Got this script initially from https://gist.github.com/kbl/5970131
###########
# IMPORTS #
###########
import ConfigParser
import argparse
import json
import os
def project(request, cat, sub, pro):
"""docstring for project"""
context = {}
project = get_object_or_404(Project, slug=pro)
context['project'] = project
context['prev_project'] = Project.objects.filter(pk__lt=project.pk).order_by('pk')[0:1]
context['next_project'] = Project.objects.filter(pk__gt=project.pk).order_by('pk')[0:1]
# prev_issue = Project.objects.filter(title=title).filter(number__lt=issue.number)[0:1]
.dracula-theme {
/* let s:gui00 = "282936" */
background-color: #282936;
/* let s:gui01 = "3a3c4e" */
background-color: #3a3c4e;
/* let s:gui02 = "4d4f68" */
background-color: #4d4f68;
/* let s:gui03 = "626483" */
background-color: #626483;
/* let s:gui04 = "62d6e8" */
" vi:syntax=vim
" base16-vim (https://github.com/chriskempson/base16-vim)
" by Chris Kempson (http://chriskempson.com)
" Dracula scheme by Mike Barkmin (http://github.com/mikebarkmin) based on Dracula Theme (http://github.com/dracula)
" This enables the coresponding base16-shell script to run so that
" :colorscheme works in terminals supported by base16-shell scripts
" User must set this variable in .vimrc
" let g:base16_shell_path=base16-builder/output/shell/
@klebercode
klebercode / tmux-atalhos.md
Created June 28, 2017 19:51 — forked from aalvesjr/tmux-atalhos.md
[TMUX] Atalhos

quando ler <Prefix> será o padrão Ctrl + b

Window

  • <Prefix> c => para criar uma nova 'window'
  • <Prefix> % => para dividir uma 'window' verticalmente
  • <Prefix> " => para dividir uma 'window' horizontalmente
  • <Prefix> & => para fechar uma 'window'
  • <Prefix> . => move a window para algum indice ainda não utilizado
  • <Prefix> 0 a 9 => abre a 'window' com o numero digitado
  • \ w => abre a 'window' a partir de uma lista
"" Copy/Paste/Cut
if has('unnamedplus')
set clipboard=unnamed,unnamedplus
endif
noremap YY "+y<CR>
noremap <leader>p "+gP<CR>
noremap XX "+x<CR>
if has('macunix')
hi x016_Grey0 ctermfg=16 guifg=#000000 "rgb=0,0,0
hi x017_NavyBlue ctermfg=17 guifg=#00005f "rgb=0,0,95
hi x018_DarkBlue ctermfg=18 guifg=#000087 "rgb=0,0,135
hi x019_Blue3 ctermfg=19 guifg=#0000af "rgb=0,0,175
hi x020_Blue3 ctermfg=20 guifg=#0000d7 "rgb=0,0,215
hi x021_Blue1 ctermfg=21 guifg=#0000ff "rgb=0,0,255
hi x022_DarkGreen ctermfg=22 guifg=#005f00 "rgb=0,95,0
hi x023_DeepSkyBlue4 ctermfg=23 guifg=#005f5f "rgb=0,95,95
hi x024_DeepSkyBlue4 ctermfg=24 guifg=#005f87 "rgb=0,95,135
hi x025_DeepSkyBlue4 ctermfg=25 guifg=#005faf "rgb=0,95,175
{
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"terminal.integrated.shell.osx": "/bin/zsh",
"window.zoomLevel": 0,
"shareCode.github.username": "klebercode",
"shareCode.github.authtoken": "fa88936ee0c5b25b6486392bd2684ddbc68e91be",
"workbench.colorTheme": "Dracula",
"editor.renderLineHighlight": "all",
"editor.minimap.enabled": false,
@klebercode
klebercode / gist:f8e94c5f8443c5d725bd199c907deb4b
Last active October 18, 2017 19:16
css resize element on scroll
#header {
width: 100%;
height: 287px;
background-color: #673ab7;
position: absolute;
z-index: 1;
}
#content {
position: relative;
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true