(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
:
rand = (max =10, min = 0) -> | |
Math.floor(Math.random() * (max - min + 1)) + min | |
console.log rand() | |
console.log rand 100 | |
console.log 50, 10 |
wget --html-extension --recursive --page-requisites --convert-links --mirror --user-agent="Mozilla/1.22 (compatible; MSIE 2.0; Windows 95)" http://www.yourdomain.com |
<script src="https://checkout.stripe.com/checkout.js"></script> | |
<button id="btn2" class="btn btn-success btn-lg btn-block"> | |
<span class="text-uppercase"><span class="text-white-dark">Buy now for</span> $<%= "#{settings.price2}" %></span> | |
</button> | |
<script> | |
var handler = StripeCheckout.configure({ |
preferred_syntax = :sass | |
http_path = '/' | |
css_dir = 'assets/stylesheets' | |
sass_dir = 'assets/sass' | |
images_dir = 'assets/images' | |
javascripts_dir = 'assets/javascripts' | |
relative_assets = true | |
line_comments = true | |
# output_style = :compressed |
// Core variables and mixins | |
@import "variables"; | |
@import "mixins"; | |
// Reset | |
@import "normalize"; | |
@import "print"; | |
// Core CSS | |
@import "scaffolding"; |
require "rubygems" | |
require 'sinatra' | |
require "aws/s3" | |
get '/' do | |
return %Q{ | |
<form action="upload" method="post" accept-charset="utf-8" enctype="multipart/form-data"> | |
<div> | |
<input type="file" name="file" value="" id="file"> | |
</div> |
while read line; do touch $(echo -n "$line").myfilextension; done < input.csv |
#!/bin/bash | |
# check for directories and create if non-existent. | |
for i in lala lulu | |
do | |
if [ -d $i ]; then | |
echo "Cool. Directory $i exists." | |
else | |
echo "Directory $i didn't exist so I knitted one for ya!" | |
mkdir $i |
while read LINE; do curl -o /dev/null --head --silent --write-out "$LINE\t %{http_code}\n" "$LINE"; done < inputfile 2>&1 | tee outputfile |