(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
IRB.conf[:PROMPT_MODE] = :SIMPLE | |
IRB.conf[:SAVE_HISTORY] = 1000 | |
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history" | |
if defined? Bundler | |
Gem.post_reset_hooks.reject! { |hook| hook.source_location.first =~ %r{/bundler/} } | |
Gem::Specification.reset | |
load 'rubygems/custom_require.rb' | |
end |
item.repeatForever = true | |
item.springSpeed = 5 | |
item.springBounciness = 2 | |
item.dynamicsFriction = 0 | |
item.dynamicsMass = 1 | |
item.dynamicsTension = 40 |
# | |
# Set the build number to the current git commit count. | |
# If we're using the Dev scheme, then we'll suffix the build | |
# number with the current branch name, to make collisions | |
# far less likely across feature branches. | |
# Based on: http://w3facility.info/question/how-do-i-force-xcode-to-rebuild-the-info-plist-file-in-my-project-every-time-i-build-the-project/ | |
# | |
# Updated with dSYM handling from http://yellowfeather.co.uk/blog/auto-incrementing-build-number-in-xcode-revisited/ | |
# |
function parseRailsTime(iso8601) { | |
var s = $.trim(iso8601); | |
s = s.replace(/\.\d+/,""); // remove milliseconds | |
s = s.replace(/-/,"/").replace(/-/,"/"); | |
s = s.replace(/T/," ").replace(/Z/," UTC"); | |
s = s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"); // -04:00 -> -0400 | |
s = s.replace(/([\+\-]\d\d)$/," $100"); // +09 -> +0900 | |
return new Date(s); | |
} |
breakpoint set -n openURL | |
breakpoint set -S openURL: |
// | |
// CAPSScrollView.swift | |
// Pods | |
// | |
// Created by Reejo Samuel on 12/6/16. | |
// | |
// | |
import Foundation | |
import UIKit |
/* | |
See LICENSE folder for this sample’s licensing information. | |
Abstract: | |
`ImageCacheManager` serves as a simple image cache for caching media artwork from a remote server. | |
*/ | |
import UIKit | |
class ImageCacheManager { |
class StringCache: NSCache<NSString, String> { | |
static let shared = ImageCache() | |
func set(_ text: String, for keyString: String) { | |
self.setObject(text, forKey: keyString as NSString) | |
} | |
func textFrom(_ keyString: String?) -> String? { | |
guard let keyString = keyString else { |