(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:
| #!/usr/bin/python | |
| import re | |
| from sys import argv | |
| import socket | |
| import mechanize | |
| import scapy | |
| script, arg1, arg2 = argv | |
| # Taken 2 arguments for the network packet sniffer |
| <?php | |
| /** | |
| * Get human readable time difference between 2 dates | |
| * | |
| * Return difference between 2 dates in year, month, hour, minute or second | |
| * The $precision caps the number of time units used: for instance if | |
| * $time1 - $time2 = 3 days, 4 hours, 12 minutes, 5 seconds | |
| * - with precision = 1 : 3 days | |
| * - with precision = 2 : 3 days, 4 hours |
| // ---- | |
| // Sass (v3.3.8) | |
| // Compass (v1.0.0.alpha.19) | |
| // ---- | |
| =box-sizing($value) | |
| -webkit-box-sizing: $value | |
| -moz-box-sizing: $value | |
| box-sizing: $value |
| // ---- | |
| // Sass (v3.3.8) | |
| // Compass (v1.0.0.alpha.19) | |
| // ---- | |
| .grid-inner address | |
| @extend #tiles li .overview p | |
| .grid-inner address:before | |
| content: "~ " |
I hereby claim:
To claim this, I am signing this object:
| /* ========================================================================== | |
| * Helper classes | |
| * ========================================================================== */ | |
| //@import "variables"; | |
| /* Image replacement */ | |
| .ir { | |
| background-color: transparent; | |
| border: 0; | |
| overflow: hidden; | |
| /* IE 6/7 fallback */ |
| <IfModule mod_rewrite.c> | |
| <IfModule mod_negotiation.c> | |
| Options -MultiViews | |
| </IfModule> | |
| RewriteEngine On | |
| # Redirect Trailing Slashes... | |
| RewriteRule ^(.*)/$ /$1 [L,R=301] |
| <div class="content pad10"> | |
| <%= form_for @department do |f| %> | |
| <p> | |
| <%= f.label :department, 'Department Name' %> | |
| <%= f.text_field 'department' %> | |
| </p> | |
| <p> | |
| <%= f.label :parent %> | |
| <% department_array = @departments.all.map { |department| [department.name, department.id + 1] } %> | |
| <%= f.select :parent, options_for_select(department_array) %> |
| class DashboardController < ApplicationController | |
| before_action :require_login | |
| before_filter :init | |
| def index | |
| @departments.each do |department| | |
| childfetch = Department.where(parent: "#{department.name}").select('name') | |
| instance_variable_set("@#{department.name}Children".gsub(' ','_'), childfetch.map { |child| "#{child.name}" }.join(',') ) | |
| end | |
| end |