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> | |
<title>head.js / Google Maps test case</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script src="https://github.com/headjs/headjs/raw/master/dist/head.load.min.js"></script> | |
<script>head.js('http://code.jquery.com/jquery-1.5.min.js',"http://maps.google.com/maps/api/js?sensor=false&callback=init_map");</script> | |
<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 | |
// Australian States | |
array('ACT'=>'Australian Capital Territory', 'NSW'=>'New South Wales', 'NT'=>'Northern Territory', 'QLD'=>'Queensland', 'SA'=>'South Australia', 'TAS'=>'Tasmania', 'VIC'=>'Victoria', 'WA'=>'Western Australia'); |
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
with(document.documentElement){className=className.replace(/no-js/,'js')} |
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
/* | |
* jQuery.name plugin | |
* https://github.com/{username}/{plugin-name} | |
* | |
* Copyright 2011, {real name} | |
* {website} | |
* | |
* This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. | |
* http://creativecommons.org/licenses/by-sa/3.0/ | |
*/ |
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
class Page extends SiteTree { | |
... | |
/** | |
* Override the canCreate method to change the order of processing and allow | |
* the SingletonPage DataExtension to do its work. | |
*/ | |
public function canCreate($member = null) { | |
if(!$member || !(is_a($member, 'Member')) || is_numeric($member)) { |
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
/** | |
* See: http://jsfromhell.com/math/dot-line-length | |
* | |
* Distance from a point to a line or segment. | |
* | |
* @param {number} x point's x coord | |
* @param {number} y point's y coord | |
* @param {number} x0 x coord of the line's A point | |
* @param {number} y0 y coord of the line's A point | |
* @param {number} x1 x coord of the line's B point |
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
Tail = require('tail').Tail; | |
Winston = require('winston'); | |
tail = new Tail('logs/default.log'); | |
logger = new Winston.Logger(); | |
logger.add(Winston.transports.Console, {colorize:true}); | |
tail.on('line', function(data){ | |
var json, date; | |
try { |
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
[{ | |
"ministry": "<ministry identifier>", | |
"title": "<position title>", | |
"name": "<minister's name>", | |
"from": "<start date of ministership>", | |
"to": "<end date of ministership>" | |
},{ | |
... | |
}] |
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
[ | |
{ | |
"Ministry":"01. Barton (Protectionist), 1 Jan 1901-24 Sept 1903", | |
"Title":"Minister for External Affairs", | |
"Name":"Barton, Edmund", | |
"House":"HR", | |
"Party":"Protectionist", | |
"State":"NSW", | |
"InCabinet":"N/A", | |
"Start":"1901-01-01", |
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
#!/usr/bin/env bash | |
open -n "/Applications/VLC.app" udp://@239.193.4.128:5000 | |
/Applications/VLC.app/Contents/MacOS/VLC --no-audio udp://@239.193.4.70:5000 & |
OlderNewer