In your command-line run the following commands:
brew doctor
brew update
In your command-line run the following commands:
brew doctor
brew update
nnoremap <buffer> <UP> :exec '!python' shellescape(@%, 1)<cr> | |
syntax on | |
filetype indent plugin on | |
set number | |
autocmd FileType python set tabstop=2 softtabstop=2 shiftwidth=2 expandtab smarttab |
//package.json | |
{ | |
"name": "dialogflowFirebaseFulfillment", | |
"description": "This is the default fulfillment for a Dialogflow agents using Cloud Functions for Firebase", | |
"version": "0.0.1", | |
"private": true, | |
"license": "Apache Version 2.0", | |
"author": "Google Inc.", | |
"engines": { | |
"node": "~6.0" |
/* | |
Software serial to gather information from CJMCU-MLX90614 using an Arduino | |
Receives from the hardware serial, sends to software serial. | |
Receives from software serial, sends to hardware serial. | |
The circuit: | |
* RX is digital pin 10 (connect to TX of other device) | |
* TX is digital pin 11 (connect to RX of other device) |
Normally the installation of MySQL can be achieved with a single command, which executes a script provided by MacMiniVault :
bash <(curl -Ls http://git.io/eUx7rg)
However, at the time of writing the script is not compatible with OS X El Capitan (10.11)
An alternative to the aforementioned installation script is installing MySQL using Homebrew. This gist assumes you already have Homebrew installed, if not first read the article "Homebrew and El Capitan"
Make sure Homebrew has the latest formulae, so run brew update
first
require 'prawn/fast_png' | |
class InvoicePdf < Prawn::Document | |
def initialize(statement, view) | |
super(top_margin: 70) | |
@statement = statement | |
@line_items = @statement.line_items.order('created_at asc') | |
@student = @statement.student | |
@view = view | |
@width = margin_box.right |
As configured in my dotfiles.
start new:
tmux
start new with session name:
jade_files = Dir.glob("../**/*.jade") | |
jade_files.each do |jade_file| | |
puts "Renaming #{jade_file}" | |
pug_file = jade_file.gsub(/.jade$/, '.pug') | |
puts "> #{pug_file}" | |
File.rename(jade_file, pug_file) | |
end |
fancy_echo "Installing Postgres, a good open source relational database ..." | |
brew install postgres --no-python | |
initdb /usr/local/var/postgres -E utf8 | |
fancy_echo "Installing Redis, a good key-value database ..." | |
brew install redis | |
fancy_echo "Installing The Silver Searcher (better than ack or grep) to search the contents of files ..." | |
brew install the_silver_searcher |
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev lib64readline-gplv2-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar -xvzf ruby-1.9.3-p194.tar.gz | |
cd ruby-1.9.3-p194/ | |
./configure --prefix=/usr/local | |
make | |
make install |