A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| /** | |
| * CustomEvent support for IE11 | |
| * https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill | |
| */ | |
| (function () { | |
| if (typeof window.CustomEvent === 'function') { | |
| return false; | |
| } |
| :: Name: laravel-setup.bat | |
| :: Purpose: Set up a new laravel project and install useful default packages | |
| :: Requires: PHP available from cli on current system | |
| :: composer available from cli on current system | |
| :: Author: [email protected] | |
| :: Revision: November 2019 - inital script | |
| :: December 2019 - ... | |
| @echo off |
| # A file full of usefull aliases | |
| # Composer aliases | |
| alias co="composer" | |
| # GIT aliases | |
| alias ga="git add" | |
| alias gaa="git add ." | |
| alias gc='git commit -m' | |
| alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
| //Source: http://www.virgentech.com/blog/2009/10/building-object-oriented-jquery-plugin.html | |
| //Author: Hector Virgen | |
| //Date: August 23, 2010 | |
| (function($) { | |
| var MyPlugin = function(element, options) { | |
| var elem = $(element); | |
| var obj = this; |
| <div class="gallery-container"> | |
| <div id="gallery" class="gallery-images"> | |
| <img src="http://placehold.it/500" alt="" /> | |
| <img src="http://placehold.it/500" alt="" /> | |
| <img src="http://placehold.it/500" alt="" /> | |
| <img src="http://placehold.it/500" alt="" /> | |
| <img src="http://placehold.it/500" alt="" /> | |
| </div> | |
| <div class="gallery-thumbs-container"> | |
| <ul id="gallery-thumbs" class="gallery-thumbs-list"> |
| #!/bin/sh | |
| # | |
| # Checks if a directory was successfully mounted. If not, the script | |
| # | |
| # - sends an email warning | |
| # - echoes error informations | |
| # - exits the script | |
| # | |
| # @author [email protected] | |
| # |
| // How to use | |
| // jQuery required ( @see http://jquery.com ) | |
| jQuery(document).ready(function ($) { | |
| // we initialize the widget as soon as the document has been loaded | |
| var widget = new app.Widgets.Example(jQuery('#example')); | |
| // if the following HTML DOM element is clicked, we want to open / display our widget | |
| $('.some-trigger').on('click', function () { | |
| widget.open(); |
| /** | |
| * Module pattern draft | |
| **/ | |
| // application namespace setup | |
| var app = app || {}; | |
| app.modules = app.modules || {}; | |
| app.modules.myModule = (function () { |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "precise32" | |
| config.vm.box_url = "http://files.vagrantup.com/precise32.box" |