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() { | |
| // 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() { |
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
| <iframe src="http://www.facebook.com/plugins/like.php?href=<?php urlencode(the_permalink()); ?>&layout=standard&show-faces=false&width=450&action=like&font=lucida+grande&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px; display:block;"></iframe> |
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 if (!defined('BASEPATH')) exit('No direct script access allowed.'); | |
| class User extends Model { | |
| public function __construct() { | |
| parent::__construct(); | |
| } | |
| public function get($username) { |
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 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'); |
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 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) |
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 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} |
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
| 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 |
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
| 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 |