SASS (.scss) and LESS share most of the features. The syntax is very similiar.
Key Features:
- Variables
- Nesting
(\*\s.*\n){2,} |
#!/bin/bash | |
# hashapass.com based method for generating passwords | |
# | |
# Based on script by Simon Elmir | |
# | |
if ! args=$(getopt -o s -l silent -- "$@") | |
then | |
exit 1 | |
fi |
" Basic | |
syntax on | |
set nocompatible | |
set encoding=utf-8 | |
set vb | |
" Buffers and windows | |
set hidden | |
set autoread | |
set shortmess+=IA |
- name: Java | add java repository | |
apt_repository: repo='ppa:webupd8team/java' | |
- name: Java | auto accept license | |
action: shell echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections | |
- name: Java | install Java 7 | |
action: apt pkg=oracle-java7-installer state=installed update-cache=yes | |
- name: Java | set env |
/* | |
* Update field of a server-side resource expecting a file. | |
* | |
* Backbone's default JSON serialization does not cover file objects. Make sure to trigger this | |
* method after the user has selected a file. | |
* | |
* *srcAttr*: Attribute holding file handle provided by input[type=file], e.g. 'selectedImage' | |
* *targetAttr*: Attribute on server-side expecting a file, e.g. 'image' | |
*/ | |
upload: function (srcAttr, targetAttr) { |
# Inherit current path in new window | |
bind-key c new-window -c "#{pane_current_path}" | |
# Enable mouse scrolling | |
set-window-option -g mode-mouse on | |
# Remap window navigation to vim | |
unbind-key j | |
bind-key j select-pane -D | |
unbind-key k |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require "rbconfig" | |
require "fileutils" | |
VAGRANTFILE_API_VERSION = "2" | |
# Customize | |
PROJECT = "app" |
remove_file("test") | |
gem_group :development, :test do | |
gem "rspec-rails", "~> 3.0.0" | |
gem "spring-commands-rspec" | |
gem "factory_girl_rails", "~> 4.0" | |
gem "pry-rails" | |
gem "pry-byebug" | |
gem "pry-stack_explorer" | |
gem "pry-rescue" |
# -*- 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| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.hostname = "modx" |