Skip to content

Instantly share code, notes, and snippets.

View guiocavalcanti's full-sized avatar

Guilherme Cavalcanti guiocavalcanti

View GitHub Profile
" CoffeeScript
Bundle 'kchmck/vim-coffee-script'
set noexpandtab " don't convert tabs into spaces
au! FileType haml set noet
** [out :: staging.trustvox.com.br] Network error while fetching
** [out :: staging.trustvox.com.br] http://bb-m.rubygems.org/quick/Marshal.4.8/tzinfo-0.3.39.gemspec.rz

Often we need to use a gem from local file system while developing it. Bundle provides local gem overrides targeting this.

Assume my Gemfile is something like:

# Gemfile
gem 'fuelzee', git: 'git@github.com:Fuelzee/fuelzee-ruby.git'
  branch: 'master'
<!DOCTYPE html>
<html>
<head>
<title>Place Autocomplete</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;

Use less +F instead of tail -f

Why? You can switch stream and search mode without leaving less. For example, while reading a file stream you can make a regular search by hitting Ctrl-c and using slash (/) to seek for a word. To switch back to stream mode hit F.

To see all the options available just read man less.

Reference: Stop using tail -f (mostly)

class Representer < Representable::Decorator
include Representable::JSON
property :name, reader: lambda { |doc, args|
doc["full_name"] = doc["name"] + doc["surname"]
self.name = doc["name"]
}
property :surname
property :full_name
end

Ementa

Visão Geral

  1. HTTP, Cliente-Servidor
  2. Padrões Web
  3. Proposta de metodologia para projetos Web
  4. Camadas de desenvolvimento client-side
  5. Ambiente de desenvolvimento
  6. Metodologia: Orientada a projetos

HTML

Ementa

Visão Geral

  • HTTP, Cliente-Servidor
  • Padrões Web
  • Proposta de metodologia para projetos Web
  • Camadas de desenvolvimento client-side
  • Ambiente de desenvolvimento
  • Metodologia: Orientada a projetos

HTML

"When the GUI starts, t_vb is reset to its default value.
"Reassert that no flash or beep is wanted.