Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #!/usr/bin/env ruby | |
| dry_run = ARGV.delete('--dry-run') | |
| force = ARGV.delete('--force') | |
| if ARGV.empty? | |
| puts <<-USAGE | |
| minify, swiftly concat and minify JavaScript files from the command line | |
| Pass a single argument to create a .min.js version: |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <script type="text/javascript"> | |
| var nativeAtob = window.atob; | |
| var nativeBtoa = window.btoa; | |
| // http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#atob | |
| (function (global) { | |
| "use strict"; |
| <?php | |
| require_once __DIR__ . '/../lib/vendor/Silex/silex.phar'; | |
| $app = new Silex\Application(); | |
| $app['debug'] = true; | |
| // Registering Symfony\Yaml and Symfony\Config | |
| $app['autoloader']->registerNamespace('Symfony', __DIR__.'/../lib/vendor/symfony/src'); |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| authors: | |
| hanzou: | |
| name: Hanzou Hattori | |
| display_name: Hanzou | |
| gravatar: c66919cb194f96c696c1da0c47354a6a | |
| email: [email protected] | |
| web: http://company.com | |
| twitter: company | |
| github: hhattori | |
| jorgen: |
| <?php | |
| $collection = new Doctrine\Common\Collection\ArrayCollection(); | |
| // add objects to the collection that contain a getCreated method returning a DateTime instance | |
| $iterator = $collection->getIterator(); | |
| $iterator->uasort(function ($first, $second) { | |
| if ($first === $second) { |
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |
| /** | |
| * I converted the SCSS mixin to LESS for the awesome coders like myself in response to a blog post on 37Signals - http://37signals.com/svn/posts/3271-easy-retina-ready-images-using-scss | |
| * | |
| * Update: 2014-08-04 - Updated a long-standing bug where retina images were shown no matter what in the first background-image property. | |
| * - Updated retina media query to be more reliable () | |
| * Update: 2013-11-13 - Picked up another technique thanks to reading this post from Tyler Tate, auto-fill in the second filename for the retina image, http://tylertate.com/blog/2013/06/11/retina-images-using-media-queries-and-LESS-CSS.html | |
| * Update: 2013-04-16 - Have recently found a few use cases when using a retina pattern from Subtle Patterns on the <body>, this has come in handy | |
| * Update: 2013-04-05 - Some research in the Wordpress Core(http://core.trac.wordpress.org/ticket/22238#comment:5) was pointed out that some tests may be redundant (Thanks @kbav) so I've cleaned these up | |
| * Update: 2012-12-29 - U |
| <?php | |
| namespace Proj\UserBundle\Facebook; | |
| use Symfony\Component\DependencyInjection\ContainerBuilder; | |
| use Symfony\Component\DependencyInjection\Reference; | |
| use Symfony\Component\DependencyInjection\DefinitionDecorator; | |
| use Symfony\Component\Config\Definition\Builder\NodeDefinition; | |
| use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\SecurityFactoryInterface; | |
| use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\AbstractFactory; |