create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # space150 vine-to-GIF | |
| # given a vine.co uri, downloads the MP4 and creates an image sequence / GIF from it | |
| # requires ruby, ffmpeg, and imagemagick | |
| require 'open-uri' | |
| require 'nokogiri' | |
| id = ARGV[0] | |
| # try to convert from URL to id. |
| config.use_transactional_fixtures = false | |
| config.before(:suite) do | |
| DatabaseCleaner.clean_with :truncation | |
| end | |
| config.before(:each) do | |
| DatabaseCleaner.strategy = :transaction | |
| end |
| #!/bin/bash | |
| PROJECTS_NAME="eboss,boss,buyersystem,open" | |
| DEV_PROJECT_HOME="/Users/tiger/develop/project/kariqu" | |
| APPSERVER_HOME="/Users/tiger/develop/appserver" | |
| APP_LOG_HOME="/Users/tiger/develop/appserver/apache/logs" | |
| ##1.kill tomcat pid | |
| appName=$1 | |
| #input var is null | |
| if [ -n "$appName" ]; then |
| (defvar ac-slime-modes | |
| '(lisp-mode)) | |
| (defun ac-slime-candidates () | |
| "Complete candidates of the symbol at point." | |
| (if (memq major-mode ac-slime-modes) | |
| (let* ((end (point)) | |
| (beg (slime-symbol-start-pos)) | |
| (prefix (buffer-substring-no-properties beg end)) | |
| (result (slime-simple-completions prefix))) |
| function makeAdder(x) { | |
| return function(y) { | |
| return x + y; | |
| }; | |
| } | |
| var add5 = makeAdder(5); | |
| var add10 = makeAdder(10); | |
| print(add5(2)); // 7 |
| class ApplicationController < ActionController::Base | |
| # ... | |
| unless Rails.application.config.consider_all_requests_local | |
| rescue_from Exception, with: lambda { |exception| render_error 500, exception } | |
| rescue_from ActionController::RoutingError, ActionController::UnknownController, ::AbstractController::ActionNotFound, ActiveRecord::RecordNotFound, with: lambda { |exception| render_error 404, exception } | |
| end | |
| private | |
| def render_error(status, exception) |