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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Oculus.Platform; | |
//note: Must have Oculus Platform SDK for Unity installed! | |
public class OculusEntitlementCheck : MonoBehaviour { | |
// Use this for initialization |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |
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 | |
/** | |
* The template for displaying all pages | |
* | |
* This is the template that displays all pages by default. | |
* Please note that this is the WordPress construct of pages and that | |
* other 'pages' on your WordPress site will use a different template. | |
* | |
* @package WordPress | |
* @subpackage Twenty_Fourteen |
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 | |
// $Id: rglob.php,v 1.0 2008/11/24 17:20:00 hm2k Exp $ | |
/** | |
* Recursive glob() | |
*/ | |
/** | |
* @param int $pattern | |
* the pattern passed to glob() |
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
Andrew | |
================ | |
- python / php / js / html / bash | |
- nosql logging db system | |
- wowza streaming (live streaming) | |
Bradley | |
================ | |
- admin / org / coordination | |
- php |
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 returns a URL that when clicked, attempts to add a gcal event | |
function gcal_evt_href($data) | |
{ | |
//return a gcal href link for anchors | |
//encode the data in the array for url formatting | |
foreach($data as &$xx) | |
{ | |
$xx = urlencode($xx); | |
} |
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 | |
/* | |
Template Name: Showcase | |
*/ | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> |
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
//fontThisTable() inserts font tags before and after all the td tags. Size and style are optional. | |
function fontThisTable($someTable, $fontSize, $fontStyle){ | |
if(!$fontSize){$fontSize = '2';} | |
if(!$fontStyle){$fontStyle = 'Arial';} | |
$someTable = preg_replace('|<td.*?>|', '<td>', $someTable); | |
$someTable = preg_replace('|<td>|', '<td><font face="'.$fontStyle.'" size="'.$fontSize.'">', $someTable); | |
$someTable = preg_replace('|</td>|', '</font></td>', $someTable); | |
return $someTable; |
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
*nggallery templates are stored in wp-content/themes/<yourtheme>/nggallery/ | |
*http://nextgen-gallery.com/templates/ | |
[nggallery id=2 template=carousel images=7] //images=7 limits the returned images to seven | |
[nggtags gallery=cologne,wordpress,...] //for tag specific sorting, doesn't seem to support templates |
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
define('WP_HOME','http://'); | |
define('WP_SITEURL','http://'); | |
//add this to the wp-config.php file, omit the trailing slash in the URL | |
//damn helpful if you move a site, and forget to update the site info |