View fedora23_broadcom_wl_install.sh
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 | |
# Install some pacakages we'll need to compile the driver below. | |
sudo dnf install gcc kernel-devel -y | |
# Create working dir for Broadcom driver files and patches. | |
mkdir hybrid_wl_f23 | |
# Change to working dir. | |
cd hybrid_wl_f23 |
View onpub.css
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
/* Onpub (TM) | |
* Copyright (C) 2012 Onpub.com <http://onpub.com/> | |
* Author: Corey H.M. Taylor <corey@onpub.com> | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License | |
* as published by the Free Software Foundation; version 2. | |
*/ | |
/* Android Design inspired CSS for Onpub frontends. |
View onpubcom_array_date_sort.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
<script type="text/javascript"> | |
// First let's create an array of JavaScript Date | |
// objects. | |
// More info about the Date class: | |
// http://w3schools.com/js/js_obj_date.asp | |
var dates = [ | |
new Date(2010, 4, 10, 10, 07, 16), | |
new Date(2010, 4, 8, 9, 16, 09), | |
new Date(2010, 3, 30, 0, 15, 49), |
View onpubapi_ten_most_recent.php
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 'onpub/api/onpubapi.php'; | |
// Establish the connection to the Onpub database. | |
$pdo = new PDO("mysql:host=localhost;dbname=test", "test", "test"); | |
$oArticles = new OnpubArticles($pdo); | |
$qo = new OnpubQueryOptions(); |
View onpubapi_select_newest_article.php
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 | |
// Establish the connection to the Onpub database. | |
$pdo = new PDO( "mysql:host=localhost;dbname=test", "test", "test" ); | |
// Include the OnpubAPI classes. | |
include 'onpub/api/onpubapi.php'; | |
// Construct an OnpubArticles object. This represents the OnpubArticles table | |
// in the database. |
View onpubapi_section_syndicate.php
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 | |
// See the following OnpubAPI tutorial for more info: | |
// http://onpubco.com/index.php?articleID=78§ionID=2 | |
// This example is based on an example by Anis uddin Ahmad, the author of | |
// Universal Feed Writer. | |
// Include the required classes. | |
include 'FeedWriter.php'; |
View onpubarticles_tutorial.php
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 | |
/* To run this tutorial on your own system, save this file as | |
* onpubarticles_tutorial.php in a directory where Onpub is installed (or | |
* adjust the include path below), then on a command line type: | |
* php onpubarticles_tutorial.php | |
*/ | |
/* Include the OnpubAPI classes. | |
* Assumes Onpub is installed in the same directory as this file. |
View onpubapi_connect.php
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 | |
// See the following OnpubAPI tutorial for more info: | |
// http://onpubco.com/index.php?articleID=76§ionID=2 | |
// Establish the connection to the Onpub database. | |
$pdo = new PDO( "mysql:host=localhost;dbname=test", "test", "test" ); | |
// Include the OnpubAPI classes. | |
include 'onpub/api/onpubapi.php'; |
View onpubapi_article_get.php
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 the Onpub API files. | |
include 'onpub/api/onpubapi.php'; | |
try { | |
// Connect to the Onpub database. | |
// Replace host, dbname, username, and password with your own DB connection | |
// info. | |
$pdo = new PDO( "mysql:host=localhost;dbname=test", "test", "test" ); |
NewerOlder