http://www.dell.com/br/p/vostro-5470/pd?oc=cav5470w8s1533038brp051w&model_id=vostro-5470 Esse foge um pouco dos 2.5k mas tem 128gb de ssd, 8gb de ram, é core i5 de ultima geração(acho que é superior ao meu), é um dell(o suporte é ótimo), e é da linha vostro('empresarial', mto resistente).
This file contains 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
#!/bin/bash | |
# Checking if python is installed | |
if ! [ -x "$(command -v python)" ]; then | |
echo 'Error: python is not installed. :(' >&2 | |
exit 1 | |
fi | |
# Build directory | |
export OLDDIR=$PWD |
This file contains 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
import SimpleHTTPServer | |
import SocketServer | |
from time import sleep | |
PORT = 5000 | |
SLEEP_TIME = 6 | |
class SlowHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def do_GET(self): |
This file contains 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
""" | |
" Vim Config File | |
""" | |
"NeoBundle Scripts----------------------------- | |
if has('vim_starting') | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: |
This file contains 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
# status bar | |
set-option -g status-utf8 on | |
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg colour136 #yellow | |
set-option -g status-attr default | |
# default window title colors |
This file contains 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
#!/bin/sh | |
git filter-branch --env-filter ' | |
an="$GIT_AUTHOR_NAME" | |
am="$GIT_AUTHOR_EMAIL" | |
cn="$GIT_COMMITTER_NAME" | |
cm="$GIT_COMMITTER_EMAIL" | |
if [ "$GIT_COMMITTER_EMAIL" = "your@wrong.email" ] |
When we work with frontend on django projects, we have to work with the django template language, some developers dislike, but i like so much and have some tips to improve this experience.
Some times we have to use de division on template, django template language don't offer this feature, but we can "emulate" this behavior with the "widthratio" template tag, see:
This file contains 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
[ | |
{ | |
"tema": "Desenvolvimento mobile por onde começar?", | |
"autor": "Nonilton", | |
"objetivo": "" | |
}, | |
{ | |
"tema" : "(RWD) Responsive Web Design: Por uma interface na medida", | |
"autor": "Emmanuel", | |
"objetivo": "O objetivo seria conscientizar os novos desenvolvedores da importância do desenvolvimento responsivo e tornar claro aos que pretendem iniciar na programação web que o RWD é um caminho sem volta." |
This file contains 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
>>> class XYZ(object): | |
... def __init__(self): | |
... print 'Output!' | |
... | |
>>> kls = 'XYZ' | |
>>> inst = locals()[kls] | |
>>> inst | |
<class '__main__.XYZ'> | |
>>> inst() | |
Output! |
This file contains 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
>>> class Classe(object): | |
... def __init__(self): | |
... print "Output!" | |
... | |
>>> var = Classe | |
>>> var | |
<class '__main__.Classe'> | |
>>> var() | |
Output! | |
>>> |
NewerOlder