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

###Adaptando o CSS da paginação do Twitter Bootstrap para o CakePHP Marcação necessária:

<div class="pagination">
  <div class="list">
    <?php
      echo $this->Paginator->prev('« Anterior', null, null, array('class' => 'prev disabled'));
      echo $this->Paginator->numbers(array('separator' => false));
      echo $this->Paginator->next('Próximo »', null, null, array('class' => 'prev disabled'));
    ?>
@ribeiroevandro
ribeiroevandro / git-notifier
Created June 28, 2013 00:28
Facilitar o trabalho em equipe, usando o GIT como versionador de código.
#!/bin/bash
# Based on https://github.com/maxolasersquad/Git-Notifier/blob/master/gitnotify.sh
declare -A GN_LASTSHOW
GN_DURATION=120
for GN_BRANCH in `git branch -a | grep remotes/origin/master | sed 's/ -> .*//' | sed 's/^ //'`; do
GN_BRANCH_ARRAY=`echo ${GN_BRANCH} | sed 's/\//_/g'`
@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
@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 / 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 / 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
<div class="content-art">
<ul>
<li>
<div class="competence-circle competence-circle-red">
<div class="competence-circle-inner">
<h6>
Organização
</h6>
</div>
</div>
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
<?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" />
{
// 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,