Open a file for editing :e path/to/file.txt
Return to Normal mode ESC or <CTRL>+C
Navigating around text
on run {input, parameters} | |
set filename to quoted form of POSIX path of input | |
set cmd to "clear;cd `dirname " & filename & "`;vim " & filename | |
tell application "iTerm" | |
tell the current window | |
if has('win32') || has ('win64') | |
let $VIMHOME = $HOME."/Dropbox/dotfiles/.vim" | |
if !empty($CONEMUBUILD) | |
set term=xterm | |
set t_Co=256 | |
let &t_AB="\e[48;5;%dm" | |
let &t_AF="\e[38;5;%dm" | |
endif |
'use strict'; | |
// The URL to your public catalog. Ensure you've enabled this public catalog so links work. | |
const URL = 'https://yourdomain.talentlms.com/catalog'; | |
const fs = require('fs'); | |
// Getting data from a local copy to ensure builds are stable. | |
let rawdata = fs.readFileSync('data/courses.json'); | |
let courses = JSON.parse(rawdata); |
# configuration for osx clipboard support | |
set-option -g default-command "reattach-to-user-namespace -l sh" |
// Simple static server with MIME based on https://gist.github.com/906395 | |
// Definitely not for production use. | |
var path = require('path'); | |
var http = require("http"); | |
var fs = require('fs'); | |
var url = require("url"); | |
try{ | |
var mime = require('mime'); | |
} catch(error) { |
Installing Ruby Enterprise Edition, Apache, MySQL, and Passenger for deploying Rails 3.0 applications.
Get a Linode, and set it up with Ubuntu 10.04 LTS so that you have till April 2013 to get updates. Once the Linode is formatted, boot it and continue on.
Set up an 'A' record in your DNS, pointing to the IP of your Linode. I'm using demo.napcs.com
here.
module Main exposing (..) | |
import Html exposing (Html, div, p, text) | |
-- Data type for the flags | |
type alias Flags = | |
{ user : String | |
, token : String | |
} | |
How to load page-specific JS functions and pass values to those functions when JS is loaded below your views. |
notifyMe() { | |
if [ $? -eq 0 ]; then | |
osascript -e 'display notification "The command worked" with title "Success"' | |
else | |
osascript -e 'display notification "The command failed" with title "Failed"' | |
fi | |
} |