Work
- Coda (IDE)
- CodeKit (Less)
- Transmit (FTP)
- Tower (GIT)
- Sequel Pro (SQL)
- MAMP (LAMP Server)
- Propedit (Permission Management)
| <form method='post' action='https://www.paypal.com/cgi-bin/webscr' target='_blank'> | |
| <!-- no caso de vir de uma ligação segura deve ser _s-click --> | |
| <input type='hidden' name='cmd' value='_xclick' /> | |
| <!-- O email ou o id da conta do cliente --> | |
| <input type='hidden' name='business' value='XXXXXXXXXXXXX' /> | |
| <!-- Titulo do produto --> | |
| <input type='hidden' name='item_name' value='Compra' /> |
| /*! | |
| * Nestable jQuery Plugin - Copyright (c) 2012 David Bushell - http://dbushell.com/ | |
| * Dual-licensed under the BSD or MIT licenses | |
| */ | |
| ;(function($, window, document, undefined) | |
| { | |
| var hasTouch = 'ontouchstart' in window; | |
| /** | |
| * Detect CSS pointer-events property |
Work
| var context = top.window; | |
| // Instead of this | |
| var target = jQuery('#'+data.target, context.document); | |
| // Do this | |
| var target = context.jQuery('#'+data.target); | |
| target.val(data.value).trigger('change'); |
This works for both iOS and Android! You can use almost the default checkbox-hack syntax and just need to add two things:
pseudo-class + general/adjacent sibling doesn't work on Android 4.1.2 so we need a hack:
body { -webkit-animation: bugfix infinite 1s; }
@-webkit-keyframes bugfix { from {padding:0;} to {padding:0;} }
| <?php | |
| // Disable magic quotes | |
| if (get_magic_quotes_gpc()) { | |
| $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST); | |
| while (list($key, $val) = each($process)) { | |
| foreach ($val as $k => $v) { | |
| unset($process[$key][$k]); | |
| if (is_array($v)) { | |
| $process[$key][stripslashes($k)] = $v; | |
| $process[] = &$process[$key][stripslashes($k)]; |
| <?php | |
| $score = array(); | |
| $negative_score = array(); | |
| $answers = ( !empty($_POST['answers']) ) ? $_POST['answers'] : array(); | |
| foreach ( $answers as $question_id => $answer ) { | |
Imagine the following questions
A - What color is red? 1. Red (1 point) 2. Blue (0 points) 3. Green (0 points)
B - How many wheels has a car? 1. Two (0 points) 2. Four (1 point)
| <?php | |
| $email = new SendMail(); // Uma instancia do phpmailer extendida com o from e o smtp preenchidos e que podem ser substituidos à frente | |
| $email->AddAddress(':email', utf8_decode(':nome')); | |
| $email->Subject = utf8_decode(':assunto'); | |
| $email_body = array(); | |
| $email_body[] = '<p>:mensagem</p>'; | |
| $email->MsgHTML(utf8_decode(implode('', $email_body))); | |
| $email->Send(); |
| <?php | |
| class Pagination { | |
| var $base_url = ''; // The page we are linking to | |
| var $prefix = 'page'; // A custom prefix added to the path. | |
| var $suffix = ''; // A custom suffix added to the path. | |
| var $total_rows = 0; // Total number of items (database results) | |
| var $per_page = 10; // Max number of items you want shown per page | |
| var $num_links = 2; // Number of "digit" links to show before/after the currently viewed page |