start new:
tmux
start new with session name:
tmux new -s myname
| /** | |
| * Module dependencies | |
| */ | |
| var request = require("superagent"); | |
| /** | |
| * Middleware to sign the request | |
| */ | |
| var authorizeRequest = function(token) { |
| /* | |
| * grunt-subgrunt | |
| * http://gruntjs.com/ | |
| * | |
| * Copyright (c) 2012 "Cowboy" Ben Alman | |
| * Licensed under the MIT license. | |
| * https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT | |
| */ | |
| 'use strict'; |
| <?php | |
| // make sure you have enough time to download all pictures | |
| ini_set('max_execution_time', 6000); | |
| ini_set('memory_limit', '64M'); | |
| // include the Facebook PHP SDK - https://github.com/facebook/php-sdk/ | |
| require 'facebook.php'; | |
| // enter your App ID and App Secret | |
| // register an FB App at https://developers.facebook.com/apps/ |
| /*global require, define */ | |
| define(function (require) { | |
| "use strict"; | |
| var slice = Array.prototype.slice; | |
| // Simple logging shim which allows log messages to be filtered and redirected to a logging solution | |
| // of your choice when debugging. | |
| var Logger = { | |
| desc "Pull a database dump from remote server, drop the local database, then import the dump" | |
| task :pull_database_to_local do | |
| # Build out temporary file name with timestamp for uniqueness | |
| timestamp = get_timestamp | |
| temp_file_name = "database_dump_#{timestamp}" | |
| remote_file_name = remote_mysqldump(temp_file_name) | |
| download(remote_file_name, "/tmp/#{temp_file_name}.sql.gz") |
| set :application, "appname" | |
| set :deploy_to, "/var/www" | |
| set :scm, :git | |
| set :repository, "[email protected]:user/app.git" | |
| default_run_options[:pty] = true | |
| set :user, "www-data" | |
| set :domain, "foo.tld" | |
| set :normalize_asset_timestamps, false |
| // | |
| // BaseViewController.m | |
| // | |
| // Created by Peter Boctor on 5/4/11. | |
| // | |
| // Copyright (c) 2011 Peter Boctor | |
| // | |
| // 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 |