Skip to content

Instantly share code, notes, and snippets.

View nhaskins's full-sized avatar

Nathan A Haskins nhaskins

  • Haskins Information Technology LLC
  • St Louis, MO
View GitHub Profile
@nhaskins
nhaskins / gist:1160945
Created August 21, 2011 18:18
old jhaskins.com wp-upload photo gallery
<?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'); ?>" />
@nhaskins
nhaskins / gist:5100705
Created March 6, 2013 16:35
PHP function to generate Google Calendar 'add event' links
//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);
}
@nhaskins
nhaskins / gist:7171761
Created October 26, 2013 16:50
Hack the Stacks talent
Andrew
================
- python / php / js / html / bash
- nosql logging db system
- wowza streaming (live streaming)
Bradley
================
- admin / org / coordination
- php
@nhaskins
nhaskins / rglob
Created December 28, 2013 18:00
#php directory recursive search for files by an extension, return as array.
<?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()
<?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
<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">
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
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DinoController : MonoBehaviour {
public float walkSpeed = 5f;
// Use this for initialization
void Start () {
echo password|jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore e:\builds\keystores\op.keystore e:\builds\op\op.apk op
E:\builds\util\ovr-platform-util.exe upload-gear-build -a 1374534632664596 -s 623f728a188b1888923a571e0dbd3feb --apk "e:\builds\op\op.apk" -c alpha -n "hello new world!"
keytool -genkey -keystore op.keystore -alias op -keyalg RSA -keysize 2048 -validity 36500