Skip to content

Instantly share code, notes, and snippets.

View ribeiroevandro's full-sized avatar
🏠
Working from home

Evandro Ribeiro ribeiroevandro

🏠
Working from home
View GitHub Profile
@ribeiroevandro
ribeiroevandro / html.html
Created October 29, 2013 02:42
HTML: Teste Gist
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Teste Gist</title>
</head>
<body>
<p>Estrutura básica de html enviada ao Gist direto do sublime.</p>
<p>Isso é muito foda...</p>
</body>
[
// Comando para abrir o console usando Ctrl+'
{ "keys": ["ctrl+'"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
// Comando para comentar e descomentar código usando Ctrl+;
{ "keys": ["ctrl+;"], "command": "toggle_comment", "args": { "block": false } }
]
{
// Oculta a exibição do caminho absoluto do arquivo.
"show_full_path": false,
// Mostra que o arquivo foi alterado e não foi salvo ainda.
"highlight_modified_tabs": true,
// Remover espaços em branco na hora de salvar o arquivo.
"trim_trailing_white_space_on_save": true,
<?php
/*
Template Name: Print Processing Orders :)
*/
if (!is_user_logged_in() || !current_user_can('manage_options')) wp_die('This page is private.');
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :username
t.string :email
t.string :password_hash
t.string :password_salt
t.timestamps
end
<div class="content-art">
<ul>
<li>
<div class="competence-circle competence-circle-red">
<div class="competence-circle-inner">
<h6>
Organização
</h6>
</div>
</div>
@ribeiroevandro
ribeiroevandro / remove-site.sh
Last active December 21, 2015 12:08
Script for remove Virtual Servers On Apache
#!/bin/bash
# Script for remove Virtual Servers On Apache
# Check for the correct parameters
if [ $# -eq 0 ]; then
echo 'Você precisa passar o domínio a ser removido como parâmetro'
echo 'Uso: remove-site your-domain.com'
exit 0
fi
@ribeiroevandro
ribeiroevandro / placeholder
Created August 17, 2013 12:20
Placeholder com jQuery e HTML5
$(document).ready(function(){
$('.inputs[placeholder]').each(function(){
var ph = $(this).attr('placeholder')
$(this).val(ph).focus(function(){
if($(this).val() == ph) $(this).val('')
}).blur(function(){
if(!$(this).val()) $(this).val(ph)
})
})
})
@ribeiroevandro
ribeiroevandro / create-site
Last active December 21, 2015 01:08
Script for creating Virtual Servers On Apache
#!/bin/bash
# Script for creating Virtual Servers On Apache
# Check for the correct parameters
if [ $# -eq 0 ]; then
echo 'Você precisa passar o domínio a ser criado como parâmetro'
echo 'Uso: create-site your-domain.com'
exit 0
fi
@ribeiroevandro
ribeiroevandro / .gitconfig
Last active December 20, 2015 10:59
Alias para GIT.
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
[color "status"]
added = yellow
changed = cyan
untracked = red