Skip to content

Instantly share code, notes, and snippets.

View walesmd's full-sized avatar

Michael Wales walesmd

View GitHub Profile
<h2>Categories</h2>
<ul>
<?php wp_list_categories('show_count=1&title_li'); ?>
</ul>
$(function() {
// Clone HTML5's placeholder attribute functionality
$('input[placeholder]').each(function() {
// Store the placeholder text and then set the element's value
// TODO: Check to make sure value is empty before setting here
$(this).data('placeholder', $(this).attr('placeholder'));
$(this).val($(this).data('placeholder')).addClass('placeholder');
// Handle the removal/addition of the placeholder text on focus/blur
$(this).focus(function() {
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php urlencode(the_permalink()); ?>&amp;layout=standard&amp;show-faces=false&amp;width=450&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px; display:block;"></iframe>
We couldn’t find that file to show.
<?php if (!defined('BASEPATH')) exit('No direct script access allowed.');
class User extends Model {
public function __construct() {
parent::__construct();
}
public function get($username) {
<?php if (!defined('BASEPATH')) exit('No direct script access allowed.');
class Users extends Controller() {
public function __construct() {
parent::__construct();
}
public function view($username) {
$this->load->model('user');
function love.load()
love.graphics.setBackgroundColor(0, 0, 0)
end
function love.update(dt)
end
function love.draw()
love.graphics.setColor(255, 255, 255)
love.graphics.point(love.graphics.getWidth() / 2, love.graphics.getHeight() / 2)
function love.load()
game = {}
game.width = love.graphics.getWidth()
game.height = love.graphics.getHeight()
player = {}
player.x = game.width / 2
player.y = game.height / 2
player.color = {255, 255, 255}
directions = {up = {x = 0, y = -1}, down = {x = 0, y = 1}, left = {x = -1, y = 0}, right = {x = 1, y = 0}}
function love.load()
game = {}
game.width = love.graphics.getWidth()
game.height = love.graphics.getHeight()
player = {}
player.x = game.width / 2
player.y = game.height / 2
directions = {up = {x = 0, y = -1}, down = {x = 0, y = 1}, left = {x = -1, y = 0}, right = {x = 1, y = 0}}
function love.load()
game = {}
game.width = love.graphics.getWidth()
game.height = love.graphics.getHeight()
player = {}
player.x = game.width / 2
player.y = game.height / 2