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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background: #333333; | |
} |
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
.fieldset { | |
position: relative; | |
font-size: sans-serif; | |
display: block; | |
width: 100%; | |
padding: 0; | |
margin: 20px 0; | |
height: 64px; | |
} |
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 | |
/** | |
* Calculate the time elapsed from the timestamp described in the string | |
* and converts into a human-readable version (e.g. "about 3 days ago"). | |
*/ | |
function how_long_ago($date) { | |
$ago = false; | |
$elapsed = time() - strtotime($date); | |
if ($elapsed <= 1) { |
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
#VRML V2.0 utf8 | |
Inline{url "some_file.wrl"} | |
DEF mouse MouseSensor {} | |
DEF script Script { | |
eventIn SFVec2f position | |
eventIn SFBool click | |
directOutput TRUE | |
url "javascript: |
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
<!-- | |
Works even without the "plus" extension of the Templates plugin. | |
http://github.com/nje/jquery-tmpl | |
--> | |
<script id="MyStaticTemplate" type="text/x-jquery-tmpl"> | |
<div>Hello ${hello}</div> | |
</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
/** | |
* Dynamic template from an arbitrary string | |
* (which could be stored in an external file or even in a database). | |
* | |
* Works even without the "plus" extension of the Templates plugin. | |
* http://github.com/nje/jquery-tmpl | |
*/ | |
var MyData = {hello: "world"}; | |
$.template("MyInlineTemplate", "<div>Hello ${hello}</div>"); | |
$.tmpl("MyInlineTemplate", MyData).appendTo("#contents"); |
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
#VRML V2.0 utf8 | |
Transform { | |
translation -4 2 0 | |
children Shape { | |
appearance Appearance{ | |
material Material{ | |
diffuseColor 0 0 0 | |
emissiveColor 1 1 1 | |
} |
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 definition | |
************************/ | |
var MyObjectClass = function(parameters){ | |
var $ = jQuery; | |
var context = this; | |
/** |
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
/** | |
* `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 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 { |