As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/usr/bin/env bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <[email protected]> | |
# Created: 2010-08-16 | |
############################################################################ | |
# Copyright 2010 Jaeho Shin. # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # |
set mailserver smtp.gmail.com port 587 username "[email protected]" password "password" using tlsv1 with timeout 30 seconds |
### MATPLOTLIBRC FORMAT | |
# This is a sample matplotlib configuration file - you can find a copy | |
# of it on your system in | |
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
# there, please note that it will be overridden in your next install. | |
# If you want to keep a permanent local copy that will not be | |
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux | |
# like systems) and C:\Documents and Settings\yourname\.matplotlib | |
# (win32 systems). |
#Sample PLOS api code for use with python Solr library Sunburnt | |
#( https://github.com/tow/sunburnt ) | |
#!Note! requires sunburnt's external libraries: httplib2,lxml | |
#https://groups.google.com/d/topic/plos-api-developers/zv591sFz6TM/discussion | |
import sunburnt,urllib2 | |
class PlosInterface(sunburnt.SolrInterface): | |
def __init__(self,api_key): | |
plos_url = "http://api.plos.org/search" | |
#either |
#!/bin/sh | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e |
#!/bin/bash | |
#--- config | |
SERVICE_NAME=galaxy | |
RUN_AS=galaxy | |
RUN_IN=/your/galaxy/directory | |
#--- main actions |
As configured in my dotfiles.
start new:
tmux
start new with session name:
motion | description |
---|---|
h | Count characters left |
l | Count characters right |
^ | To the first character of the line |
$ | To the last character of the line |
f<char> | To the counth character occurrence to the right. F<char> to the counth character occurrence to the left |
t<char> | To 1 character just before the counth character occurrence to the right |
int test(int a, int b, int c, int d, int e) | |
{ | |
if ((a*b) != 24) return 0; | |
if (d != (b/2)) return 0; | |
if ((a+c)!=(d+e)) return 0; | |
if ((a+b+c+d+e) != 26) return 0; | |
// count occurences of digits | |
int counts[10] = {0,0,0,0,0,0,0,0,0,0}; | |