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
[ | |
{"key": "ctrl+t", "command": "extension.transpose", "when": "editorFocus"}, | |
{"key": "ctrl+shift+l", "command": "extension.splitIntoLines", "when": "editorFocus"}, | |
{"key": "ctrl+j", "command": "extension.joinLines", "when": "editorFocus"}, | |
{"key": "ctrl+shift+n", "command": "workbench.action.quickOpen" }, | |
{"key": "ctrl+n", "command": "workbench.action.gotoSymbol"} | |
] |
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
{ | |
"files.autoSave": "onFocusChange", | |
"files.trimTrailingWhitespace": true | |
} |
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
#!/bin/sh | |
if git rev-parse --verify HEAD >/dev/null 2>&1; then | |
against=HEAD | |
else | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
fi | |
for FILE in `git diff-index --name-status $against | cut -c3-` ; do | |
# Check if the file contains 'debugger' |
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
{% if is_paginated %} | |
<nav id="pagination"> | |
{% if page_obj.has_previous %} | |
<a href="?page={{ page_obj.previous_page_number }}">previous page</a> | |
{% endif %} | |
{% for page in page_obj.paginator.page_range %} | |
{% if page >= page_obj.number|add:"-2" and page < page_obj.number %} | |
<a href="?page={{ page }}">{{ page }}</a> | |
{% endif %} | |
{% ifequal page_obj.number page %} |
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
var valor = "Valor Global"; | |
var foo = (function() { | |
var valor = "Var de Foo"; | |
var funcao = function() { | |
alert(valor); | |
} | |
return { |
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
class Usuario(object): | |
def nome(self): | |
raise NotImplementedError | |
def idade(self): | |
raise NotImplementedError | |
class Jose(Usuario): | |
def nome(self): | |
return 'Jose' |
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
public class Funcionario { | |
private String nome; | |
private Double salario; | |
public void setSalario(Double salario) { | |
this.salario = salario; | |
} | |
public void setNome(String nome) { | |
this.nome = nome; |
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
import java.text.DecimalFormat; | |
import java.text.NumberFormat; | |
import java.util.Locale; | |
import javax.faces.component.UIComponent; | |
import javax.faces.context.FacesContext; | |
import javax.faces.convert.Converter; | |
import javax.faces.convert.FacesConverter; | |
/** | |
* |
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
#!/usr/bin/python | |
# coding: utf-8 | |
''' | |
NerdFollow 0.1: Bot Python para twitter com finalidade de | |
conectar e indicar perfis. | |
Copyright (C) 2011 Felippe Regazio de Moraes | |
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
Configuração do /etc/apache2/sites-enabled/davidwebmaster.com.br | |
<VirtualHost *:80> | |
DocumentRoot /var/davidwebmaster.com.br | |
ServerName davidwebmaster.com.br | |
</VirtualHost> | |
Adicionar no /etc/hosts: |
NewerOlder