Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
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
/* | |
* Converting string to Date | |
* string2datestring | |
* var daterstring = '20130731'; // YYYYMMDD | |
* | |
* Copyright 2013 Rolands Umbrovskis ( http://umbrovskis.com/ ) | |
* Released under the http://simplemediacode.com/license/ | |
*/ | |
function string2datestring(daterstring,daysadd){ |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName example.com | |
ServerAlias www.example.com | |
DocumentRoot /var/www/example.com/public_html/ | |
ErrorLog /var/www/example.com/logs/error.log | |
CustomLog /var/www/example.com/logs/access.log combined | |
<IfModule mod_expires.c> | |
ExpiresActive 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
<?php | |
function smc_update_xprofile($userid,$field,$value) { | |
// alternative to get user ID | |
// global $current_user; | |
// get_currentuserinfo(); | |
// $field = 'Foo'; // xProfile field name | |
// $value = 'bar'; // desired value | |
// xprofile_set_field_data($field, $current_user->id, $value); |
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
# /1234 and /1234/ to /?p=1234 | |
^/(\b\d+?\b)(?:/)?$ /?p=$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
1: Go to your account on github | |
and create the repo you want to use. Maybe add a md file. | |
2: Then in Aptana, | |
File - Import - Git - Git Repository as New Project, | |
follow directions on screen for github username & | |
password and the url for the repo (you can go to your | |
github account and copy the url | |
('https://github.com/userName/repoName.git') | |
3: Do some work in Aptana, add files, folder, etc. | |
then in Aptana's project browser right click on the project name, |
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 | |
// from core8 class | |
// publiches as seperate funtion with no optimization. | |
function core8_add_geo_exif($meta,$file,$sourceImageType) { | |
$picexif = @exif_read_data( $file ); | |
if (!empty($picexif['GPSLatitude'])){$meta['latitude'] = $picexif['GPSLatitude'] ;} | |
if (!empty($picexif['GPSLatitudeRef'])){$meta['latitude_ref'] = trim( $picexif['GPSLatitudeRef'] );} | |
if (!empty($picexif['GPSLongitude'])){$meta['longitude'] = $picexif['GPSLongitude'] ;} | |
if (!empty($picexif['GPSLongitudeRef'])){$meta['longitude_ref'] = trim( $picexif['GPSLongitudeRef'] );} | |
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 | |
/** | |
* @package Admin | |
*/ | |
if ( !defined( 'GAWP_VERSION' ) ) { | |
header( 'HTTP/1.0 403 Forbidden' ); | |
die; | |
} |
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 | |
if ( !function_exists( 'wp_new_user_notification' ) ) { | |
function wp_new_user_notification( $studentID, $plaintext_pass = '' ) { | |
$student = new WP_User($studentID); | |
$student_data = get_userdata( $studentID ); | |
$firstname = $student_data->first_name; | |
$student_login = stripslashes( $student_data->user_login ); | |
// URLs | |
$site_url = site_url(); |
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
<div itemscope itemtype="http://schema.org/Organization"> | |
<a itemprop="url" href="http://simplemediacode.com/">Home</a> | |
<img itemprop="logo" src="http://i2.me2j.com/smc/smc-300x100-out.png" /> | |
</div> |