start new:
tmux
start new with session name:
tmux new -s myname
# http://en.wikipedia.org/wiki/Extreme_points_of_the_United_States#Westernmost | |
top = 49.3457868 # north lat | |
left = -124.7844079 # west long | |
right = -66.9513812 # east long | |
bottom = 24.7433195 # south lat | |
def cull(latlngs): | |
""" Accepts a list of lat/lng tuples. | |
returns the list of tuples that are within the bounding box for the US. | |
NB. THESE ARE NOT NECESSARILY WITHIN THE US BORDERS! |
/** | |
* CustomSqlParameterSourceProvider, constructs {@link MapSqlParameterSource} with | |
* given item. | |
* | |
* @author Michael R. Lange <[email protected]> | |
*/ | |
public class CustomSqlParameterSourceProvider implements ItemSqlParameterSourceProvider<YourItemObject> { | |
@Override | |
public SqlParameterSource createSqlParameterSource(final YourItemObject item) { |
JustTheBasics() { | |
global | |
; Start gdi+ | |
If !pToken := Gdip_Startup() | |
{ | |
MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system | |
ExitApp | |
} |
import ( | |
"fmt" | |
"log" | |
"os" | |
"sort" | |
) | |
// askForConfirmation uses Scanln to parse user input. A user must type in "yes" or "no" and | |
// then press enter. It has fuzzy matching, so "y", "Y", "yes", "YES", and "Yes" all count as | |
// confirmations. If the input is not recognized, it will ask again. The function does not return |
#lang racket | |
(require rackunit) | |
;; A singly linked list is either | |
;; - NULL | |
;; - pointer to data and a pointer a sll | |
(struct node (data-ptr next-ptr)) | |
(define n4 (node 4 null)) |
#IfWinActive, Path of Exile ahk_class Direct3DWindowClass | |
#SingleInstance force | |
; Menu tooltip | |
Menu, tray, Tip, Path of Exile Macros | |
; NOTE: Adjust this path so it is correct. | |
; If you are using my PoE-Item-Info script you can find | |
; the tray icons inside its data directory. | |
Menu, tray, Icon, PoE Item Info\data\poe-web.ico |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="background.js"></script> | |
</head> | |
<body> | |
<textarea id="sandbox"></textarea> | |
</body> |
'use strict'; | |
module.exports = function CustomError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |
import java.security.MessageDigest | |
import java.util | |
import javax.crypto.Cipher | |
import javax.crypto.spec.SecretKeySpec | |
import org.apache.commons.codec.binary.Base64 | |
/** | |
* Sample: | |
* {{{ | |
* scala> val key = "My very own, very private key here!" |