[Update 2024] - Take a look at Drupal at your fingertips. Lot's of great stuff there.
// Load file object
$file = File::load($fid);
[Update 2024] - Take a look at Drupal at your fingertips. Lot's of great stuff there.
// Load file object
$file = File::load($fid);
$ uname -r
/** | |
* Countries MySQL Tables | |
* Compiled by Atanas Bozhinov, 2015 | |
*/ | |
CREATE TABLE `eucountries` ( | |
`country_id` int(11) NOT NULL AUTO_INCREMENT, | |
`code` char(2) NOT NULL COMMENT 'Two-letter country code (ISO 3166-1 alpha-2)', | |
`name` varchar(64) NOT NULL COMMENT 'English country name', | |
`full_name` varchar(128) NOT NULL COMMENT 'Full English country name', |
alias wwwperm="find . \( -type d -exec chmod -v 755 '{}' \; \) -o \( -type f -exec chmod -v 644 '{}' \; \)" |
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
<?php | |
/** | |
* Google Fusion Tables API | |
* | |
* These are PHP5 classes used to interact with the Google Fusion Tables API. | |
* The googleBase class provides an authentication class that any classes interacting | |
* with the Google API will need. It should be extended by a service-specific class | |
* that makes all of the calls to this class. | |
* | |
* The googleFusion class provides a public 'query()' method, allowing for SQL queries |