I hereby claim:
- I am robertcalise on github.
- I am robertcalise (https://keybase.io/robertcalise) on keybase.
- I have a public key whose fingerprint is 9834 6E7E BB03 D290 A179 5570 E109 3929 3C43 590A
To claim this, I am signing this object:
#!/bin/sh | |
# FuelPHP Install Script | |
# | |
# @author Kenji Suzuki https://github.com/kenjis | |
# @copyright 2011 Kenji Suzuki | |
# @license MIT License http://www.opensource.org/licenses/mit-license.php | |
if [ $# -lt 2 ]; then | |
echo "Install FuelPHP and Create Application Repository" |
#!/bin/sh | |
# Laravel Install Script | |
# Based on the FuelPHP Install Script by Kenji Suzuki | |
# https://gist.github.com/kenjis/1479807 | |
# | |
# @author Robert Calise http://github.com/RobertCalise | |
# @copyright 2014 Robert Calise | |
# @license MIT License http://www.opensource.org/licenses/mit-license.php |
<?php | |
// Require Infusionsoft PHP-SDK: https://github.com/infusionsoft/PHP-iSDK | |
require_once('isdk.php'); | |
$api = new iSDK; | |
$api->cfgCon('appname'); | |
// What code was entered? | |
$code = $_POST['code']; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>jQuery Translation Example</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
var translate = { | |
"Hello, world!": "Bonjour tout le monde!", | |
"This is an example.": "Ceci est un exemple." |
<?php | |
// Assuming the date you're looking for is January 2: | |
$when = 'January 2'; | |
// Verbose method: | |
if(($date = strtotime($when)) < time()) { | |
$date = strtotime('+1 year', $date); | |
} |
I hereby claim:
To claim this, I am signing this object:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jstimezonedetect/1.0.6/jstz.js"></script> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
var tz = jstz.determine().name(), | |
selected = jQuery('#Contact0TimeZone option[value="' + tz + '"]').prop('selected', true).val(); | |
if(selected === undefined) { | |
/* If no match found, default to America/New_York as a fallback */ | |
jQuery('#Contact0TimeZone option[value="America/New_York"]').prop('selected', true); | |
} | |
}); |
<!-- assumes a field with an id of inf_field_Company exists on the page --> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
jQuery('#inf_field_Company').attr('type', 'password'); | |
}); | |
</script> |
<script type="text/javascript"> | |
var terms_name = 'Terms & Conditions', | |
terms_link = 'https://yourwebsite.com/link/to/terms'; | |
jQuery(document).ready(function() { | |
jQuery('.infusion-submit').before('<div style="margin-bottom: 5px;"><input id="inf_option_IagreetotheTermsConditions" name="inf_option_IagreetotheTermsConditions" style="margin-right:3px;" type="checkbox" value="232" /><label for="inf_option_IagreetotheTermsConditions">I agree to the <a href="'+terms_link+'" target="_blank">'+terms_name+'</a></label></div>'); | |
jQuery('.infusion-form').on('submit', function(e) { | |
if(!jQuery('#inf_option_IagreetotheTermsConditions').is(':checked')) { | |
e.preventDefault(); | |
alert('You must agree to the ' + terms_name + ' before submitting this form!'); |