$convenio = formata_numero($dadosboleto["convenio"],6,0,"convenio");
if ($dadosboleto["formatacao_nosso_numero"] == "1") {
$nossonumero = formata_numero($dadosboleto["nosso_numero"],5,0);
$dv = modulo_11("$codigobanco$nummoeda$fator_vencimento$valor$convenio$nossonumero$agencia$conta$carteira");
$linha = "$codigobanco$nummoeda$dv$fator_vencimento$valor$convenio$nossonumero$agencia$conta$carteira";
curl -Sso ~/.git-completion.bash https://raw.github.com/git/git/master/contrib/completion/git-completion.bash echo -e "source ~/.git-completion.bash" >> .bash_profile && source .bash_profile
Essa é a versão 1 do Vagrantfile:
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.host_name = "cecap"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.share_folder("cecap", "/var/www/cecap", "..", :extra => 'dmode=777,fmode=777')
config.vm.forward_port 80, 8099
:vimgrep /on .*(/ % :cw
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 | |
| $projects = array(); | |
| $subjectFormat = 'Commit %sha% made %name% became %status%'; | |
| $messageFormat = '%author% made commit %sha% and the build status is: %status%'; | |
| $notifier = new Sismo\Notifier\MailNotifier('nelson@localhost.com', $subjectFormat, $messageFormat) |
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 porra($caralho) | |
| { | |
| foreach ($caralho as $k => $v) { | |
| if ($k == 'article') { | |
| if (isset($v['id']) && $v['id'] == '1002') { | |
| echo 'caralho' . PHP_EOL; | |
| return; | |
| } | |
| } | |
| if (is_array($v)) { |
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 | |
| $where = array( | |
| "productcategory" => array( | |
| "id" => 410, | |
| "productcategorytranslation" => array( | |
| 0 => array( | |
| "translation" => "Fahrräder (Profakt)", | |
| "id" => 952106 | |
| ) |
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
| ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S=["2743".to_i(16)].pack("U*");a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.1}' |
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 | |
| $connection = new \AMQPConnection( | |
| array( | |
| 'host' => '69.195.223.58', | |
| 'port' => 5672, | |
| 'vhost' => "/", | |
| 'login' => "dafitconf", | |
| 'password' => "dafiti", | |
| ) |