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 definition | |
************************/ | |
var MyObjectClass = function(parameters){ | |
var $ = jQuery; | |
var context = this; | |
/** |
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 | |
/** | |
* Defines a theme callback function per registered path. | |
*/ | |
function MODULENAME_menu_alter(&$items) { | |
$items['node/%node']['theme callback'] = 'MODULENAME_default_node_theme'; | |
$items['node/%node/edit']['theme callback'] = 'MODULENAME_edit_node_theme'; | |
$items['node/%node/edit']['theme arguments'] = array(1); | |
} |
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
/** | |
* `target` is where you want to look at. | |
* | |
* `position` is the SFVec3f location of your viewpoint. | |
* | |
* `orientation ` is the resulting SFRotation of your viewpoint. | |
* | |
* Optionally, modify `new SFVec3f(0, 0, -1)` to change the roll. | |
* | |
*/ |
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
Layer3D { | |
size 1 1 | |
translation 0 0 | |
viewpoint ViewVolume { | |
position 0 0 0.725 | |
size 4 3 | |
aspectMode "STRETCH" | |
} | |
children Shape { | |
appearance Appearance { |
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
application/x-bskey bskey; | |
model/vrml wrl wrz; | |
model/x3d-vrml x3dv; | |
model/x3d+xml x3d; | |
model/x3d+fastinfoset x3db; | |
model/vnd.collada+xml dae; |
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
#VRML V2.0 utf8 | |
Group { | |
children [ | |
DEF sensor TouchSensor {} | |
Shape { | |
appearance Appearance { | |
material Material {} | |
} |
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
#!/bin/bash | |
# | |
# This is a Mac OSX shell script, you can simply double-click to start it. | |
# | |
# This is where you downloaded the AIR SDK from http://labs.adobe.com/downloads/air3-3.html | |
AIR_SDK="/Applications/Adobe/AIR SDK/AIR SDK 3.3b3" | |
# iOS 5.0 |
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 initialize() { | |
refresh(); | |
Browser.addRoute(Browser, 'windowSize', Browser.getScript(), 'refresh'); | |
distance = viewpoint.position[2]; | |
fieldOfView = viewpoint.fieldOfView; | |
} | |
function shutdown() { | |
Browser.deleteRoute(Browser, 'windowSize', Browser.getScript(), 'refresh'); |
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
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
#------------------------------------------------------------------------------- | |
# NOTES: | |
#------------------------------------------------------------------------------- | |
# * User @jimklimov (and probably some others called out in the long comment | |
# thread below) have modified this script to make it more robust and keep | |
# up with various changes in the GitHub API and response format at: | |
# https://github.com/jimklimov/github-scripts |
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
DECLARE | |
r record; | |
BEGIN | |
FOR r IN SELECT (each(hstore(NEW))).* | |
LOOP | |
RAISE NOTICE '% value is %', r.key, quote_nullable(r.value); | |
END LOOP; | |
RETURN NEW; | |
END |