start new:
tmux
start new with session name:
tmux new -s myname
git remote update && | |
git remote prune origin && | |
git branch -r --merged origin/master | | |
awk -F"/" '!/(>|master)/ {print $2}' | | |
xargs -rL1 git push origin --delete |
class OfflineBackup | |
constructor: -> | |
@pendingRequests = JSON.parse(localStorage.getItem('offline-backups') || '[]') | |
$('form.offline-backup').on 'submit', @submitForm | |
window.addEventListener 'online', @submitPendingRequests | |
submitForm: (e) -> | |
unless navigator.onLine | |
method = $(this).find('input[name=_method]').val() || $(this).attr('method') || 'get' |
Fibur is a library that allows concurrency during Ruby I/O operations without needing to make use of callback systems. Traditionally in Ruby, to achieve concurrency during blocking I/O operations, programmers would make use of Fibers and callbacks. Fibur eliminates the need for wrapping your I/O calls with Fibers and a callback. It allows you to write your blocking I/O calls the way you normally would, and still have concurrent execution during those I/O calls.
Say you have a method that fetches data from a network resource:
#!/bin/sh | |
set -e | |
# Example init script, this can be used with nginx, too, | |
# since nginx and unicorn accept the same signals | |
# Feel free to change any of the following variables for your app: | |
TIMEOUT=${TIMEOUT-60} | |
APP_ROOT=/path/to/your/app/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid | |
ENVIRONMENT=production |
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el | |
index 447d7fd..27bba4a 100644 | |
--- a/lisp/term/ns-win.el | |
+++ b/lisp/term/ns-win.el | |
@@ -929,6 +929,11 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.") | |
(add-to-list 'window-system-initialization-alist '(ns . ns-initialize-window-system)) | |
+(declare-function ns-toggle-fullscreen-internal "nsfns.m" ()) | |
+(defun ns-toggle-fullscreen () |
class ApplicationController < ActionController::Base | |
# Tell Devise to redirect after sign_in | |
def after_sign_in_path_for(resource_or_scope) | |
some_url(:protocol => 'http') | |
end | |
# Tell Devise to redirect after sign_out | |
def after_sign_out_path_for(resource_or_scope) | |
some_url(:protocol => 'http') | |
end |
# Set some values... | |
config = ConfigSet.for('routes') { | |
host "codeforpeople.com" | |
port 80 | |
signup_url "http://#{ host }/signup" | |
signout_url "http://#{ port }/signout" | |
app { | |
signup_url "http://#{ host }/signup" |
Friday, Juan, Tom, Yehuda and I had a meeting where we discussed the renderer APIs and some ideas we had for the view layer. Here is what we came up with:
The purpose of these proposed changes is to lower the learning curve for users entering the SproutCore world and who are looking for quick feedback and an easy way to create custom views