(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
:
#include <iostream> | |
#include <ctime> | |
#include <cstdlib> | |
using namespace std; | |
// http://stackoverflow.com/a/20735198/688275 | |
void shuffle(int *arr, size_t n) | |
{ | |
if (n > 1) | |
{ |
These macros are designed to provide a literal notation for [immutable-js][1] using [sweetjs][2].
The most interesting being the Map literal
var map = im{"foo": "bar", "baz": "quux"};
This compiles to the 2d array version of Immutable.Map.
package deployer | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"github.com/mholt/binding" | |
) |
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works | |
package main | |
import ( | |
"code.google.com/p/go.crypto/ssh" | |
"crypto" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/pem" | |
"fmt" |
local_client | |
server | |
client | |
ext |
Copyright (C) 2011 by Colin MacKenzie IV | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
namespace :db do | |
desc "Clear all tables" | |
task :clear => :environment do | |
conn = ActiveRecord::Base.connection | |
conn.tables.select{|t| t.start_with? ActiveRecord::Base.table_name_prefix }.each do |t| | |
conn.drop_table t | |
end | |
end | |
desc "Dump database into an SQL file" |
require 'date' | |
require 'aws/s3' | |
class Settings | |
attr_accessor :username, :password, :database, :mysql_location, :access_key, :secret_key, :bucket_name | |
end | |
user_settings = Settings.new | |
user_settings.username = DATABASE_USERNAME | |
user_settings.password = DATABASE_PASSWORD |