This file contains hidden or 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 | |
/** | |
* A base class with getters and setters incorporated. | |
*/ | |
class ObjectBase { | |
/** | |
* Setter function for a generic attribute. | |
* | |
* @param string $property_name |
This file contains hidden or 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 | |
// _-______defining menu elements_______________________________ | |
// (Including tpl theme) | |
/** | |
* Implements hook_menu(). | |
*/ | |
function MODULE_menu() { | |
$items['URL PATH'] = array( | |
'title' => 'TITLE', | |
'page callback' => 'CALLBACK FUNCTION', |
This file contains hidden or 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 addSourceToVideo(element, src, type) { | |
var source = document.createElement('source'); | |
source.src = src; | |
source.type = type; | |
element.appendChild(source); | |
} | |
var video; |
This file contains hidden or 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
# A class-based template for jQuery plugins in Coffeescript | |
# | |
# $('.target').myPlugin({ paramA: 'not-foo' }); | |
# $('.target').myPlugin('myMethod', 'Hello, world'); | |
# | |
# Check out Alan Hogan's original jQuery plugin template: | |
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
# | |
(($, window) -> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type='text/javascript' | |
src='http://mapbox.com/markers.js/dist/markers.min.js'></script> | |
<script type='text/javascript' | |
src='http://mapbox.com/markers.js/dist/markers.externals.js'></script> | |
<link href='http://mapbox.com/markers.js/dist/markers.css' | |
rel='stylesheet' type='text/css' /> | |
<style> |