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
<div id="the-map"></div> | |
<script type="text/javascript" charset="utf-8"> | |
google.load("maps", "2.x"); | |
var map = new GMap2(document.getElementById('the-map')); | |
var icon = new GIcon(G_DEFAULT_ICON); | |
var center = new GLatLng(0, 0); | |
var bounds = new GLatLngBounds(); | |
var points = [ |
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 | |
/* Author: Peter Nelson / @_peterdn - controllers\url.php | |
* The main controller for the site. */ | |
class Url extends Controller | |
{ | |
public function Url() | |
{ | |
parent::Controller(); | |
$this->load->helper("url"); |
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 | |
/** | |
* Convert a comma separated file into an associated array. | |
* The first row should contain the array keys. | |
* | |
* Example: | |
* | |
* @param string $filename Path to the CSV file | |
* @param string $delimiter The separator used in the file | |
* @return array |
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
#!/bin/sh | |
# have submodules been added? | |
MODS=0 | |
# Github base URL | |
GITHUB="https://github.com" | |
# Default branch | |
DEFAULT_BRANCH="3.0/master" |
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 | |
// Assuming we already have registered the taxonomy. | |
$usergroup_taxonomy = 'ef_usergroups'; | |
// Tell WordPress that we can make associations between users and the usergroups taxonomy. | |
register_taxonomy_for_object_type( $usergroup_taxonomy, 'user' ); | |
// Sample code | |
$user = WP_User( 1 ); |
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: WP.com Open Graph Tags | |
* Description: Add Open Graph tags so that Facebook (and any other service that supports them) can crawl the site better and we provide a better sharing experience | |
* @link http://ogp.me/ | |
* @link http://developers.facebook.com/docs/opengraph/ | |
*/ | |
// Only enable for public blogs |
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 | |
/** | |
* Saves post meta value | |
* | |
* @param int ID of the post | |
* @param string Name of the post_meta key (same as the $_POST key and nonce name) | |
* @param string Name of the nonce key | |
* @param mixed The default value to be assigned if not set | |
* | |
* @return string Value that was saved |
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
#show Aullido furioso | |
/stopattack | |
/stopcasting | |
/petfollow | |
/cast [target=Thorks] Aullido furioso(Rango 6) | |
/targetlastenemy | |
/petattack | |
/startattack |
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($) { | |
$.fn.oembed = function(url, options, callback) { | |
options = $.extend(true, $.fn.oembed.defaults, options); | |
return this.each(function() { | |
var container = $(this), | |
resourceURL = (url != null) ? url : container.attr("href"), | |
provider; |
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 defined('SYSPATH') or die('No direct script access.'); | |
class Controller_Cron extends Controller { | |
public function before() | |
{ | |
// Set default language | |
I18n::$lang = Kohana::$config->load('i18n.default'); | |
} |
OlderNewer