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 |
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. |
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), |
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(); |
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. |
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'; |
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. |
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'; |
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