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
- Clona branch específico do repositório | |
$ git checkout -b experimental origin/experimental | |
- Apaga branch do repositório | |
git push <repository> :<branch> | |
removes a branch from a remote repository. | |
Example: git push origin :old_branch_to_be_deleted | |
- Ignora todas as alterações feitas em um branch: | |
git checkout -f |
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
/* | |
* qr.c | |
* | |
* Created on: 07/05/2011 | |
* Author: taiar | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
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
/** | |
* Subsets | |
* | |
* 10 Jun 2010 | |
* | |
* This is a try for an efficient way to generate all the subsets of a set of | |
* integers. | |
* | |
* Andre Taiar < taiar ( ao ) hotmail com > | |
*/ |
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
program entrada | |
! quantidade de dados da entrada, indices | |
integer n, i | |
! vetor de abcissas, vetor de ordenadas | |
real x(99), y(99) | |
! coeficiente de inclinacao da reta, termo independente | |
real a, b | |
! somatorio de Xi, somatorio de Yi, somatorio de XiYi, somatorio do | |
! quadraro de Xi |
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
<?php | |
/** | |
* @package = CreateXpdoClasses | |
* | |
* Create Xpdo Classes script | |
* | |
* This script creates xPDO-ready classes from existing custom | |
* database tables. It only needs to be run once. | |
* | |
* It assumes that your custom tables have been imported into |
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
<snippet> | |
<content><![CDATA[\$${1:this}->$2]]></content> | |
<tabTrigger>th</tabTrigger> | |
<scope>source.php</scope> | |
</snippet> |
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 | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
/c/Program\ Files/MySQL/MySQL\ Server\ 5.5/bin/mysqldump.exe --add-drop-table -h localhost -u root -ptaiar taghouse > database/dump.sql |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
########### TODO: deploying on subdir must rewrite this | |
RewriteBase /subdir/ | |
#Removes access to the system folder by users. | |
#Additionally this will allow you to create a System.php controller, | |
#previously this would not have been possible. | |
#'system' can be replaced if you have renamed your system folder. | |
RewriteCond %{REQUEST_URI} ^system.* |
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
find ./ -type f | xargs grep TODO |
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
<snippet> | |
<content><![CDATA[\$${1:this}->load->${2:helper}('$4');]]></content> | |
<tabTrigger>load</tabTrigger> | |
</snippet> |
OlderNewer