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
$to = '[email protected]'; | |
$from = '[email protected]'; | |
$reply_to = '[email protected]'; | |
$subject = 'Website Change Reqest'; | |
$headers = "From: " . strip_tags($from) . "\r\n"; | |
$headers .= "Reply-To: ". strip_tags($reply_to) . "\r\n"; | |
$headers .= "CC: " . strip_tags($from) . "\r\n"; | |
$headers .= "MIME-Version: 1.0\r\n"; | |
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; |
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(){ | |
window.AFA = {}; | |
AFA.Models = {}; | |
AFA.Collections = {}; | |
AFA.Views = {}; | |
AFA.Models.User = Backbone.Model.extend({ | |
initialize: function(){ | |
var devices = new AFA.Collections.Devices(this.get('devices')); |
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 | |
BUILDDIR=/tmp/php_imap_mavericks | |
mkdir "$BUILDDIR" | |
echo " " | |
echo "= FETCHING AND INSTALLING IMAP" | |
echo " " | |
cd "$BUILDDIR" | |
wget -c ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz | |
rm -rf imap-2007f |
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
/* | |
* From css-tricks.com | |
* http://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ |
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 | |
/** | |
* ACF Layout | |
* @version 1.0 | November 12th 2013 | |
* @author Beau Charman | http://twitter.com/beaucharman | |
* @link https://gist.github.com/beaucharman/7181406 | |
* @license MIT license | |
* | |
* Logical layout automation for Advanced Custom Fields and it's Flexible Content Field add on. |
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
/* | |
* This function scans through all files in the wp-content/uploads | |
* folders and imports them into the media library. This should be | |
* included in your theme's functions.php file. Simply visit your | |
* website, including the URL param: | |
* http://www.example.org/?import_non_existing_media_library_entries=1 | |
* | |
* Plan on it timing out a few times. Just keep refreshing. It won't | |
* duplicate files being imported. | |
*/ |
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
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSExceptionDomains</key> | |
<dict> | |
<key>ReplaceWithYourDomanName.com</key> | |
<dict> | |
<key>NSIncludesSubdomains</key> | |
<true/> | |
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> | |
<true/> |
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
cordova plugin add [email protected] |
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
<allow-navigation href="*" /> | |
<allow-intent href="*" /> | |
<access origin="*" /> |
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 | |
$string = "madam"; | |
$array = str_split($string); | |
$reverse_array = array_reverse( $array, true ); | |
$new_string = implode('', $reverse_array); | |
echo "<pre>"; | |
var_dump($array, $reverse_array); | |
echo ( $string === $new_string) ? "Yes, {$string} is a palindrome." : "No, {$string} is not a palindrome."; |
OlderNewer