This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<meta name="description" content="Webpage for xxxx"> | |
<!-- http://meyerweb.com/eric/tools/css/reset/ --> | |
<link rel="stylesheet" href="css/reset/reset.css"> | |
<!--[if lt IE 9]> | |
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script> |
This file contains 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 | |
header($_SERVER['SERVER_PROTOCOL'] . ' 401 Unauthorized', true, 401); | |
die('401 Unauthorized'); |
This file contains 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
/** | |
* Recursive funciton to walk dom and replace any matched dictionary | |
* terms with a span tag and special css class | |
* @param element DOMElement | |
*/ | |
function _walkElement(element){ | |
//loop over all children of element | |
var el = element.firstChild; | |
if(el){ | |
do{ |
This file contains 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 | |
lynx -dump http://www.formyip.com/ | awk "/IP is/{print $NF}" |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project default="all" name="DemoApp"> | |
<property name="lib.dir" value="${basedir}/lib"/> | |
<property name="build.src.dir" location="${basedir}/src"/> | |
<property name="build.dir" location="${basedir}/bin"/> | |
<property name="jar.dir" value="${build.dir}/jar"/> | |
<property name="build.classes.dir" location="${build.dir}/classes"/> | |
<property name="main-class" value="com.rightnow.ps.example.DemoApp"/> | |
<property file="${basedir}/antbuild.properties"/> |
This file contains 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 change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.rightnow.ps.example; | |
import com.rightnow.ws.base.*; | |
import com.rightnow.ws.faults.*; | |
import com.rightnow.ws.messages.*; | |
import com.rightnow.ws.objects.*; |
This file contains 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
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Alert" message:@"You pushed cancel" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil]; | |
[alert show]; |
This file contains 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
//Error Reporting for debugging. Comment out for deployment | |
ini_set('display_errors',1); | |
error_reporting(E_ALL ^ E_NOTICE); |
This file contains 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 | |
class CPHPUtil { | |
/** | |
* Find a LookupName's ID in Connect PHP | |
* @param string $label Label to find as lookup name | |
* @param string $field_name Field name to compare label against lookup names. | |
* @param string $object Object that contains the field to search | |
* @return int|boolean Returns ID if found, false otherwise | |
*/ |
This file contains 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
usort($navItems, function($x, $y){ | |
if ($x->LinkOrder == $y->LinkOrder) { return 0; } | |
return ($x->LinkOrder < $y->LinkOrder) ? -1 : 1; | |
}); |
OlderNewer