注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
#! /usr/bin/python | |
# -*- coding: utf-8 -*- | |
# @author weishu @2015/12/7 | |
import subprocess | |
import os | |
import re | |
import json |
require 'benchmark' | |
require 'id_check' | |
require 'taiwanese_id_builder' | |
require 'TaiwanUserID' | |
n = 100000 | |
Benchmark.bmbm do |x| | |
x.report('wayne5540 '){ n.times{ TaiwaneseIdBuilder.valid?('A123456789') } } | |
dummy = Object.new.extend(TaiwanUserID) | |
x.report('kaochenlong'){ n.times{ dummy.is_valid?('A123456789') } } |
# | Metric | Haml | Slim | Winner |
---|---|---|---|---|
1 | Issues | Slim | ||
2 | Stars | Slim | ||
3 | Quality | -- | Haml | |
4 | Test Coverage | ![Code Climate coverage](https://i |
language: android | |
android: | |
components: | |
# Uncomment the lines below if you want to | |
# use the latest revision of Android SDK Tools | |
- platform-tools | |
- tools | |
# The BuildTools version used by your project | |
- build-tools-22.0.0 |
<!-- Code snippet --> | |
<div class="form-group"> | |
<div class="col-md-12 text-center"> | |
<span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span> | |
</div> | |
</div> |
#!/usr/bin/env ruby | |
# | |
# Mac fix 1 - Install the Nokogiri gem on Mac OS 10.9 Mavericks | |
# | |
# Usage: to configure and install using Bundler, pass in 'bundle' as an argument to the script. | |
# | |
# Nokogiri works at a very low level, so it has many issues on various platforms. | |
# As a result, the command `install gem nokogiri` often will fail. This fix is for | |
# errors involving 'libiconv', such as the following one I encountered: | |
# |
/** | |
* DWTFYW License | |
* Author: Tony Brix, http://tonybrix.info | |
* | |
* jquery plugin for showing tooltip on overflow | |
* | |
* USAGE: | |
* | |
* $("input, select").tooltipOnOverflow(); | |
* |
#!/bin/bash | |
# xcode command tool | |
xcode-select --install | |
# check | |
xcode-select -p | |
# homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" |
var jq = document.createElement('script'); | |
// You can change the version number (2.1.0) to any version hosted via Google's Hosted Libraries. | |
// https://developers.google.com/speed/libraries/devguide#jquery | |
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// After running the above commands you can run the command below if necessary. | |
jQuery.noConflict(); |