- account add jabber [email protected] 'PASSWORD'
- account hipchat set nick_source full_name
- account hipchat set resource bot
- account hipchat on
-module(date_util). | |
-compile(export_all). | |
epoch() -> | |
now_to_seconds(now()) | |
. | |
epoch_hires() -> | |
now_to_seconds_hires(now()) | |
. |
# Prefix | |
set -g prefix C-j | |
# Copy mode | |
unbind [ | |
bind Escape copy-mode | |
# Use Vi mode | |
setw -g mode-keys vi | |
# Make mouse useful in copy mode | |
setw -g mode-mouse on |
#!/usr/bin/env ruby | |
=begin | |
= Geographic Searches With Postgres's Earthdistance and Cube Extensions | |
This program shows how to easily create a Postgres database that uses the Cube | |
and Earthdistance extensions to perform fast queries on geographic data. | |
Briefly, the problem this code solves is "show me all places within 50 | |
kilometers of New York City." |
# A simple Makefile alternative to using Grunt for your static asset compilation | |
# | |
## Usage | |
# | |
# $ npm install | |
# | |
# And then you can run various commands: | |
# | |
# $ make # compile files that need compiling | |
# $ make clean all # remove target files and recompile from scratch |
A simple stack for sharing research data on the fly using Windows 7 + SyncToy + Task Scheduler + Dropbox. This is information generated from a Agilent Nanoindentation machine; it include raw data, processed reports, and visualizations as metadata.
Many users generate information from a single piece of experimental equipment. This machine is a standalone desktop system that is networked. Also, the equipment is available for general use with our Shared Resources Equipment at Georgia Tech. Often users move small packets of information with thumb drives or email; there is no reason to sacrifice expediency for something that can be automated. This description aims to expedite this process on a budget.
set -e | |
# go somewhere safe | |
cd /tmp | |
# get the source to base APR 1.5.2 | |
curl -L -O http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz | |
# extract it and go into the source | |
tar -xzvf apr-1.5.2.tar.gz |
NOTE: This guide has moved to https://github.com/bpierre/switch-to-vim-for-good
This guide is coming from an email I used to send to newcomers to Vim. It is not intended to be a complete guide, it is about how I switched myself.
My decision to switch to Vim has been made a long time ago. Coming from TextMate 1, I wanted to learn an editor that is Open Source (so I don’t lose my time learning a tool that can be killed), cross platform (so I can use it everywhere), and powerful enough (so I won’t regret TextMate). For these reasons, Vim has always been the editor I wanted to learn, but it took me several years before I did it in a way that works for me. I tried to switch progressively, using the Janus Vim distribution for a few months, then got back to using TextMate 2 for a time, waiting for the next attempt… here is what finally worked for me.
Original gist with comments: https://gist.github.com/bpierre/0a0025d348b6001394e0
#!/usr/bin/env python | |
# BB-8 Python driver by Alistair Buxton <[email protected]> | |
from bluepy import btle | |
import time | |
class BB8(btle.DefaultDelegate): | |
def __init__(self, deviceAddress): |