start new:
tmux
start new with session name:
tmux new -s myname
The default Vim installed on most Linux distros lacks a number of vital features, like xterm_clipboard (allows
copy-and-pasting to the system clipboard) and python (on which certain plugins rely). The compile_full_vim.sh shell
script removes the currently installed Vim and compiles a full-featured version; it's based entirely off
Valloric's YouCompleteMe
walkthrough, which it bundles into a simple
script for convenience. Vim will be compiled with the following feature flags:
--with-features=huge--enable-multibyte2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "strings" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "syscall" | |
| ) | |
| func main() { |
| """ | |
| Tweeting by controlling Firefox via Python + selenium | |
| http://selenium-python.readthedocs.org/ | |
| This script: | |
| - Opens up Firefox | |
| - Goes to https://www.twitter.com | |
| - Clicks the login button | |
| - logs you in (assuming you have your twitter password in a file named `mypassword.txt`...) |
| #!/usr/bin/env ruby | |
| require 'readline' | |
| # copied from https://www.vistawide.com/spanish/top_100_spanish_words.htm | |
| list = <<~WORDS | |
| el / la (def. art.) the | |
| de (prep.) of, from | |
| que (conj.) that, which | |
| y (conj.) and | |
| a (prep.) to, at |
| func searchInsert(nums []int, target int) int { | |
| start, end := 0, len(nums) | |
| if len(nums) == 0 || target < nums[start] { | |
| return 0 | |
| } else if target > nums[end-1] { | |
| return len(nums) | |
| } | |
| return getIndex(start, end, target, nums) | |
| } |