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
<?php | |
include('ice/app.php'); | |
app(array( | |
'.*' => 'Welcome' | |
)); | |
class Welcome | |
{ | |
public function get() | |
{ |
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
<?php | |
/* File that you want to export */ | |
$file = dirname(__FILE__).'table.dia'; | |
/* Sample of table format */ | |
$tables = array( | |
'tablename' => array ( | |
'id' => 'INT', |
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
<?php | |
$file = dirname(__FILE__).'/tabelas.dia'; | |
$host = 'mysql:host=localhost;dbname='; | |
$user = ''; | |
$pass = ''; | |
$export = array(); | |
$pdo = new PDO($host, $user, $pass); |
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/bash | |
# | |
# Script para tocar musicas de forma simples e fácil no Linux | |
# (ubuntu, kubuntu, edubuntu, Debian, Mandriva, etc). Eu coloquei | |
# um botão na minha barra superior para tocar sempre que eu achar | |
# conveniente. Por exemplo, download de um vídeo. | |
# | |
# Claro, existem outros players como o RithmBox ou o VLC, mas eu | |
# criei algo mais simples só para tocar a musica que eu quiser... |
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
.debug { | |
background: #EEE; | |
border-bottom:1px solid #DDD; | |
margin: 0 1em; | |
cursor:pointer; | |
} | |
.debug .title { | |
background:#AAA; | |
color:#FFF; |
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
teste1 | |
Tempo: 0.093338966369629 | |
Tempo: 0.083599090576172 | |
Tempo: 0.092911958694458 | |
Tempo: 0.084725856781006 | |
Tempo: 0.089320182800293 | |
Tempo: 0.082650899887085 | |
Tempo: 0.08252215385437 | |
Tempo: 0.092643976211548 | |
Tempo: 0.10191297531128 |
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
<?php | |
class Pagina extends Controller | |
{ | |
/** | |
* Página Inicial | |
* | |
* return void | |
*/ | |
public function index() |
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
$(function(){ | |
$('.menu > li > a').hover(function(){ | |
$(this).parent().find('li').toggle() | |
}); | |
}); |
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
# | |
# bash completion support for PEAR installer. | |
# | |
# Author: Amir Mohammad Saied <[email protected]> | |
# Based on: http://svn.php.net/viewvc/pear2/sandbox/PEAR_BashCompletion/trunk/pear?view=markup | |
# | |
# Puts this file in /usr/share/bash_completion/ | |
# | |
# Create a symbolic link on /etc/bash_completion.d/ | |
# |
OlderNewer