start new:
tmux
start new with session name:
tmux new -s myname
| ## Prepare ################################################################### | |
| # Remove RVM | |
| rvm implode | |
| # Ensure your homebrew is working properly and up to date | |
| brew doctor | |
| brew update | |
| ## Install ################################################################### |
| /* | |
| BoxBlur - a fast almost Box Blur For Canvas | |
| Edited by Yorick to make it faster in modern browsers | |
| Version: 0.3 | |
| Author: Mario Klingemann | |
| Contact: [email protected] | |
| Website: http://www.quasimondo.com/ |
| $(document).ready(function() { | |
| // Support for AJAX loaded modal window. | |
| // Focuses on first input textbox after it loads the window. | |
| $('[data-toggle="modal"]').click(function(e) { | |
| e.preventDefault(); | |
| var url = $(this).attr('href'); | |
| if (url.indexOf('#') == 0) { | |
| $(url).modal('open'); | |
| } else { |
| cd /usr/src/ | |
| wget http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3047_i386.deb | |
| dpkg -i sublime-text_build-3047_i386.deb |
You know how, in JavaScript, we can set a value to a variable if one doesn't, like this:
name = name || 'joe';This is quite common and very helpful. Another option is to do:
name || (name = 'joe');| jQuery(function($) { | |
| $('form[data-async]').live('submit', function(event) { | |
| var $form = $(this); | |
| var $target = $($form.attr('data-target')); | |
| $.ajax({ | |
| type: $form.attr('method'), | |
| url: $form.attr('action'), | |
| data: $form.serialize(), |
| /* | |
| Copyright (C) 2013 Hendrik Beskow | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to | |
| deal in the Software without restriction, including without limitation the | |
| rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
| sell copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| php: { | |
| dev: { | |
| options: { | |
| hostname: '127.0.0.1', |
| <?php | |
| /** | |
| * Post Meta Box view/controller class. | |
| * | |
| * Extends from a form object base class. | |
| * | |
| * Creates a meta box. Fields can be related to the meta box, but | |
| * all business logic lives within the field object. | |
| */ |