I prefer this
var distance = metersToNauticalMiles(
utils.getDistance(
utils.toPoint(coordinates.get(0)),
utils.toPoint(coordinates.get(1))
)
);
I prefer this
var distance = metersToNauticalMiles(
utils.getDistance(
utils.toPoint(coordinates.get(0)),
utils.toPoint(coordinates.get(1))
)
);
-- Put this into your Outlook scripts folder (~/Library/Application Support/Microsoft/Office/Outlook Script Menu Items/) | |
on run {} | |
tell application "Microsoft Outlook" | |
set msgs to current messages | |
if ((count of msgs) < 1) then return | |
set mailFolders to mail folders | |
repeat with fld in mailFolders | |
if (name of fld is "Archived") then |
$ sudo su | |
# apt-get install postgresql | |
# su postgres | |
$ createuser -P -s -e developer | |
Enter password for new role: <PASSWORD> | |
And now you're ready to set up your project on postgres... |
#!/usr/bin/env sh | |
NOW_PLAYING=$(osascript <<EOF | |
if app_is_running("Radiant Player") then | |
tell application "Radiant Player" | |
set artist to current song artist | |
set track to current song name | |
set state to player state | |
if state is 1 then |
/* | |
This function can be used to pre-check (for removal) | |
all recruiters in your LinkedIn connections list. | |
It excludes recruiters that are also colleagues, so | |
you don't accidentally get any false positivies. | |
It doesn't actually do any deletion, just makes the | |
connections list focused solely on recruiters. The | |
deletion itself is up to you. |
" Workspace Setup | |
" ---------------- | |
function! DefaultWorkspace() | |
" Rough num columns to decide between laptop and big monitor screens | |
let numcol = 2 | |
if winwidth(0) >= 220 | |
let numcol = 3 | |
endif | |
if numcol == 3 |
/** | |
* MQTT Bridge | |
* | |
* Authors | |
* - st.john.johnson@gmail.com | |
* - jeremiah.wuenschel@gmail.com | |
* - asher.friedman@gmail.com | |
* | |
* Copyright 2016 | |
* |
#!/bin/sh | |
# Shell colors for vim-hybrid - Shell color setup script | |
# Luan Santos (http://luansantos.com) | |
if [ "${TERM%%-*}" = 'linux' ]; then | |
# This script doesn't support linux console (use 'vconsole' template instead) | |
return 2>/dev/null || exit 0 | |
fi | |
color017="00/00/5f" |
NOTE: The AKiTiO Thunder2 SHOULD NOT be plugged in yet