// jQuery
$(document).ready(function() {
// code
})
# encoding: utf-8 | |
# Be sure to restart your server when you modify this file. | |
# Add new inflection rules using the following format | |
# (all these examples are active by default): | |
# ActiveSupport::Inflector.inflections do |inflect| | |
# inflect.plural /^(ox)$/i, '\1en' | |
# inflect.singular /^(ox)en/i, '\1' | |
# inflect.irregular 'person', 'people' | |
# inflect.uncountable %w( fish sheep ) |
If you're doing stuff with Ruby on a Mac, e.g. installling Jekyll or something, by default you'll end up having to use the sudo
command to do stuff, since the permission to modify the default config is not available to your user account.
This sucks and should be avoided. Here's how to fix that.
To make this better, we are going install a new, custom Ruby. This used to be a big, scary thing, but thanks to the awesome tools Homebrew and rbenv, it's a snap.*
A word of warning: you will have to use Terminal to install this stuff. If you are uncomfortable with text, words, and doing stuff with your computer beyond pointing and hoping, this may not work well for you. But if that's the case, I'm not sure why you were trying to use Ruby in the first place.
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
! model | |
pc101 Generic 101-key PC | |
pc102 Generic 102-key (Intl) PC | |
pc104 Generic 104-key PC | |
pc105 Generic 105-key (Intl) PC | |
dell101 Dell 101-key PC | |
latitude Dell Latitude series laptop | |
dellm65 Dell Precision M65 | |
everex Everex STEPnote | |
flexpro Keytronic FlexPro |
Lisp é uma família de linguagens, então existe vários 'dialetos', por exemplo: | |
- Clojure é um Lisp pra JVM (utiliza a JVM como interpretador e inclui baterias) não só na JVM, mas na CLR também (pro lado do windows) | |
além disso um Lisp cheio de features mais modernos, como agents, channels, actors (ele não define um modelo de concorrência, te dá | |
varias abstrações e você que escolhe). Compila para javascript via Clojurescript (e assim tem acesso a todo o ambiente node) | |
- Scheme é um dialeto de Lisp (talvez seja errado chamado de 'lisp mais puro', mas de certa forma é. É simples, pequeno e portátil) | |
Excelente para aprender a sintaxe e se preocupar com a lógica, o livros mais clássicos em sua maioria estão nesse dialeto. | |