start new:
tmux
start new with session name:
tmux new -s myname
| [user] | |
| useConfigOnly = true | |
| # [includeIf "gitdir:~/Projects/company1/"] | |
| # path = ~/Projects/company1/.gitconfig | |
| [alias] | |
| # add all | |
| aa = add . |
| import serial | |
| import datetime | |
| from pymongo import MongoClient | |
| port = serial.Serial('/dev/ttyAMA0', baudrate=9600, timeout=2.0) | |
| client = MongoClient('172.31.150.230') | |
| def read_pm_line(_port): | |
| rv = b'' |
| angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) { | |
| $httpProvider.responseInterceptors.push([ | |
| '$q', '$templateCache', 'activeProfile', | |
| function($q, $templateCache, activeProfile) { | |
| // Keep track which HTML templates have already been modified. | |
| var modifiedTemplates = {}; | |
| // Tests if there are any keep/omit attributes. | |
| var HAS_FLAGS_EXP = /data-(keep|omit)/; |
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |