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 | |
use \SimpleXMLElement; | |
use \BadMethodCallException; | |
class XmlElement | |
{ | |
/** | |
* The default XML DOCTYPE. | |
* | |
* @var string |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
use Symfony\Component\Console\Application; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputOption; | |
use Phpmig\Console\Command\CheckCommand; | |
use Phpmig\Console\Command\DownCommand; |
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 | |
/** | |
* A simple wrapper around Aura Input. | |
*/ | |
use Aura\Input\Form; | |
use Aura\Input\Builder; | |
use Aura\Input\Filter; | |
use Aura\Html\HelperLocatorFactory; | |
use Aura\Filter\FilterFactory; |
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 hidden characters
{ | |
"auto_close_tags": true, | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"create_window_at_startup": false, | |
"font_face": "Menlo", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage", |
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
#! /usr/bin/env ruby | |
Dir.glob("~/Projects/**").each do |dir| | |
next unless File.directory?(dir) | |
is_hg = File.directory?(File.join(dir, '.hg')) | |
is_git = File.directory?(File.join(dir, '.git')) | |
puts "Fixing " + File.basename(dir) | |
Dir.chdir(dir) |
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
#! /usr/bin/env ruby | |
$VEBOSE = nil | |
class String | |
def colourise(color_code) | |
"\e[#{color_code}m#{self}\e[0m" | |
end | |
def red |
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
// http://symfony.com/components | |
var components = []; | |
$('.components-list tr').each(function() { | |
var name = $.trim($(this).find('td.name').text()), | |
link = 'http://' + document.domain + $(this).find('td.name a').attr('href'), | |
desc = $.trim($(this).find('td:eq(1)').text()); | |
if (name && link && desc) { |
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
# Update Ubuntu | |
sudo apt-get install build-essential | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Version Control | |
sudo apt-get install git mercurial subversion | |
# Mobile Shell (MOSH) | |
# See: http://mosh.mit.edu/ |
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
// See: http://ejohn.org/blog/learning-from-twitter/ | |
(function($) { | |
$(document).ready(function() { | |
var resizeCallable = function() { | |
switch (true) | |
{ | |
case (window.innerWidth <= 768): | |
// Do some exciting device size specific magic here. | |
break; | |
} |
OlderNewer