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 | |
| function base64($file, $mime) { | |
| $contents = file_get_contents($file); | |
| $base64 = base64_encode($contents); | |
| return "data:$mime;base64,$base64"; | |
| } |
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
| /* | |
| * jQuery Boilerplate - v3.3.1 | |
| * A jump-start for jQuery plugins development. | |
| * http://jqueryboilerplate.com | |
| * | |
| * Made by Zeno Rocha | |
| * Under MIT License | |
| */ | |
| // the semi-colon before function invocation is a safety net against concatenated | |
| // scripts and/or other plugins which may not be closed properly. |
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
| apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int verificaCoordenadas(int coordx0,int coordx1,int coordy0,int coordy1){ | |
| int condicaox = (coordx0 >= 0 && coordx0 < coordx1 && coordx1 <= 1000 && coordx0 <= 1000); | |
| int condicaoy = (coordy0 >= 0 && coordy0 < coordy1 && coordy1 <= 1000 && coordy0 <= 1000); | |
| int ok; | |
| if (condicaox == 1 && condicaoy == 1) | |
| { | |
| return 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int verificaQuantidadeDeRodadas(int quantidade){ | |
| int condicaoQuantidade = (quantidade >= 1 && quantidade <= 1000); | |
| if(condicaoQuantidade == 1){ | |
| return 1; | |
| } | |
| return 0; | |
| } | |
| int verificaQuantidadeDeFigurinhas(int quantidade){ |
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 Slug{ | |
| /* | |
| * funcoes para gerar slug , base: wordpresss | |
| */ | |
| private static function utf8_uri_encode( $utf8_string, $length = 0 ) { | |
| $unicode = ''; | |
| $values = array(); | |
| $num_octets = 1; | |
| $unicode_length = 0; |
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
| Fatal error: Uncaught exception 'PagSeguroServiceException' in C:\xampp2\htdocs\franklinhome\PagSeguroLibrary\service\PagSeguroPaymentService.class.php:95 Stack trace: #0 C:\xampp2\htdocs\franklinhome\PagSeguroLibrary\domain\PagSeguroPaymentRequest.class.php(626): PagSeguroPaymentService::createCheckoutRequest(Object(PagSeguroAccountCredentials), Object(PagSeguroPaymentRequest)) #1 C:\xampp2\htdocs\franklinhome\templates\pagamento.php(64): PagSeguroPaymentRequest->register(Object(PagSeguroAccountCredentials)) #2 C:\xampp2\htdocs\franklinhome\templates\layout.php(240): include('C:\xampp2\htdoc...') #3 C:\xampp2\htdocs\franklinhome\index.php(6): include('C:\xampp2\htdoc...') #4 {main} thrown in C:\xampp2\htdocs\franklinhome\PagSeguroLibrary\service\PagSeguroPaymentService.class.php on line 95. |
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 | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Delete form macro | |
| |-------------------------------------------------------------------------- | |
| | | |
| | This macro creates a form with only a submit button. | |
| | We'll use it to generate forms that will post to a certain url with the DELETE method, | |
| | following REST principles. |
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 | |
| View::composer(Paginator::getViewName(), function($view) { | |
| $query = array_except( Input::query(), Paginator::getPageName() ); | |
| $view->paginator->appends($query); | |
| }); |
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 | |
| notify-send -u critical -i "notification-message-IM" 'Minha notificação' 'Criando minha primeira notificação com Ubuntu' | |
| notify-send -u critical -i 'notification-message-email' 'Minha notificação' 'Criando minha primeira notificação com Ubuntu' |