This code is from Javascript Web Applications by Alex MacCaw
I'm modifying the code and using it as a template to make jQuery plugins.
This is nice demonstration of bind and trigger.
<?php | |
class Widget_Name extends WP_Widget { | |
function Widget_Name() { | |
$widget_opts = array( | |
'classname' => 'your-awesome-class', | |
'description' => 'Your awesome Description', | |
); | |
<?php | |
/** | |
* This function will return a vocabulary object which matches the | |
* given name. Will return null if no such vocabulary exists. | |
* | |
* @param String $vocabulary_name | |
* This is the name of the section which is required | |
* @return Object | |
* This is the vocabulary object with the name |
~* | |
._* | |
.DS_Store | |
*.sublime-project | |
*.sublime-workspace | |
wordpress/uploads/* | |
wordpress/uploads | |
*.zip | |
*/build* | |
*. |
(function($){ | |
// Get the current latitude and longitude | |
var latlong = function ($lat, $lng) { | |
return new google.maps.LatLng($lat.val(), $lng.val()); | |
}; | |
// Set the position of the map | |
var position = function () { | |
return new map.set_center(latlong()); |
var viewer = createPanoViewer({swf:"filespano/krpano.swf",target:"pano"}); | |
viewer.addVariable("xml", "awesome.xml"); | |
viewer.addParam('bgcolor', '#006400'); | |
viewer.addParam('wmode', 'transparent'); | |
viewer.embed(); |
<img src="thumb2.jpg" width="256" height="128" onclick="loadpano('pano2.xml');"> | |
<script src="../../../swfkrpano.js"></script> | |
// <![CDATA[ | |
embedpano({swf:"../../../krpano.swf", id:"krpanoSWFObject", xml:"pano1.xml", target:"krpanoDIV", width:"516", height:"300"}); | |
function krpano() | |
{ | |
return document.getElementById("krpanoSWFObject"); |
require 'rubygems' | |
require 'sinatra' | |
require 'redis' | |
# To use, simply start your Redis server and boot this | |
# example app with: | |
# ruby example_note_keeping_app.rb | |
# | |
# Point your browser to http://localhost:4567 and enjoy! | |
# |