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 | |
/* | |
Plugin Name: Recent Posts Photos | |
Plugin URI: http://www.ProgrammersCountry.com | |
Description: Displays Recent Posts Photos from the media library in the sidebar. If the post does not contain a photo it is not displayed. | |
Version: 0.0.2 | |
Author: Asad Iqbal | |
Author URI: http://www.ProgrammersCountry.com | |
With edits by Colin Devroe | http://cdevroe.com/ |
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
<html> | |
<head> | |
<title>Viddler: Resumable video player demonstration</title> | |
</head> | |
<body> | |
<h1>Viddler: Resumable video player demonstration</h1> | |
<p>This demonstration goes along with <a href="http://blog.viddler.com/cdevroe/resumable-video/">this Viddler blog post</a>.</p> | |
<p>Here is a short video from a recent trip to Ireland. If you come back you should start watching the video right where you've left off.</p> |
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
<html> | |
<head> | |
<title>JSONP Example Using jQuery</title> | |
<script type="text/javascript" language="javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" language="javascript"> | |
function writeMsg(msg) | |
{ | |
if (window.console) { | |
console.log(msg); | |
} |
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 | |
include('phpviddler.php'); | |
$user = 'YOUR USERNAME'; | |
$pass = 'YOUR PASSWORD'; | |
$api_key = 'YOUR API KEY'; | |
$callback_url = 'CALLBACK'; | |
$v = new Viddler_V2($api_key); |
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
<% | |
## Controller stuff! | |
# Assuming... require 'rubygems' | |
# Assuming... require 'viddler-ruby' | |
# Create the client and authenticate it | |
viddler = Viddler::Client.new 'YOUR API KEY' | |
viddler.authenticate! 'USERNAME', 'PASSWORD' | |
upload = viddler.get 'viddler.videos.prepareUpload' |
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
/Library/Ruby/Gems/1.8/gems/activerecord-3.0.3/lib/active_record/connection_adapters/mysql_adapter.rb:30:in `mysql_connection': undefined method `init' for Mysql:Class (NoMethodError) |
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
<!--[if IE]><object width="437" height="288" id="viddlerOuter-754d9c44" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://www.viddler.com/player/754d9c44/"><param name="allowScriptAccess" value="always"><param name="allowNetworking" value="all"><param name="allowFullScreen" value="true"><param name="flashVars" value="f=1&autoplay=f&disablebranding=f"><object id="viddlerInner-754d9c44"><video id="viddlerVideo-754d9c44" src="http://www.viddler.com/file/754d9c44/html5mobile/" type="video/mp4" width="437" height="246" poster="http://www.viddler.com/thumbnail/754d9c44/" controls="controls"></video></object></object><![endif]--> <!--[if !IE]> <!--> <object width="437" height="288" id="viddlerOuter-754d9c44" type="application/x-shockwave-flash" data="http://www.viddler.com/player/754d9c44/"> <param name="movie" value="http://www.viddler.com/player/754d9c44/"> <param name="allowScriptAccess" value="always"><param name="allowNetworking" value="all"><param name="allowFullScreen" val |
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
<style type="text/css"> | |
#vidget_list_1753504554 { margin: 0; width: 200px; } | |
#vidget_list_1753504554 h3 { margin: 0 0 5px 0; padding-left: 40px;} | |
#vidget_1753504554 { list-style-type: none;} | |
#vidget_list_1753504554 li { clear: both; margin-bottom: 5px; overflow: auto; padding: 4px; } | |
#vidget_list_1753504554 li img { float: left; width: 30px; margin-right: 10px; border: 0; padding: 0;} | |
#vidget_1753504554 li.even { background-color: #eee; } | |
#vidget_1753504554 p {text-align:center;} | |
#loading_viddler_1753504554 { text-align: center; } | |
#loading_viddler_1753504554 img { background-color: #fff; } |
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
$(document).ready(function(){ | |
// All links with class delete | |
$('.delete').click(function(event){ | |
var answer = confirm("Are you sure you want to delete this item?"); | |
if (answer) { | |
// Delete item. | |
} else { | |
event.preventDefault(); // Do not delete item. | |
} | |
}); |
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
function generate_osid($length) | |
{ | |
if($length>0) | |
{ | |
$rand_id=""; | |
for($i=1; $i<=$length; $i++) | |
{ | |
mt_srand((double)microtime() * 1000000); | |
$num = mt_rand(1,36); | |
$rand_id .= $this->assign_rand_value($num); |