Status: Em Construção
Forked from Luiz Picolo's Pen Tabuleiro de Xadrez.
A Pen by Gean Pereira on CodePen.
#!/usr/bin/env ruby | |
require 'digest/md5' | |
require "addressable/uri" | |
# this is based on gravatar image API | |
# https://en.gravatar.com/site/implement/images/ | |
# options : | |
# size : <integer> size of image | |
# default: <string> url of image if email not found or: | |
# * 404 |
Status: Em Construção
Forked from Luiz Picolo's Pen Tabuleiro de Xadrez.
A Pen by Gean Pereira on CodePen.
== InfoDic FREE | |
https://play.google.com/store/apps/details?id=br.walisson.inglesparainformaticafree#?t=W251bGwsMSwxLDIxMiwiYnIud2FsaXNzb24uaW5nbGVzcGFyYWluZm9ybWF0aWNhZnJlZSJd |
#!/bin/bash | |
# install zsh | |
rm -fr .oh-my-zsh/ | |
curl -L http://install.ohmyz.sh > install.sh | |
sh install.sh | |
# add final .zshrc | |
echo 'source ~/.bash_aliases' >> ~/.zshrc | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> >> ~/.zshrc |
# Configure Timezone | |
dpkg-reconfigure tzdata | |
# Configure locale | |
locale-gen pt_BR pt_BR.UTF-8 | |
locale-gen en_US en_US.UTF-8 | |
# Instalar Postgree e trocar senha | |
sudo apt-get install postgresql postgresql-contrib | |
psql -c "ALTER USER postgres WITH PASSWORD 'nova_senha'" -d template1 |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2015 Erico Vieira Porto | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
Just insert on .gitconfig: | |
nrb = "!f() { git push -u origin $(git rev-parse --abbrev-ref HEAD):$1; }; f" | |
And then, when on a local branch and want to push to a new remote branch called, say, 'test': | |
$ git nbr test | |
Total 0 (delta 0), reused 0 (delta 0) | |
To <your remote here> | |
* [new branch] work -> test |
I have a project where I need translated content. Therefore I use globalize3, wich stores its translated attributes in a seperate table that belongs to the original model. And I use RailsAdmin for painless record management.
It took me some time to figure out how to get those working together, but eventually I found a solution that is non invasive and still ok to work with.
In my case there is a Snippet
class. It holds content for static pages or text passages on the website. There is a good README for globalize3 for installation instructions and documentation.
#encoding: utf-8 | |
pt-BR: | |
views: | |
pagination: | |
first: "« Primeira" | |
last: "Última »" | |
previous: "‹ Anterior" | |
next: "Próxima ›" | |
truncate: "…" |
É um design pattern que o Rails implementa a partir da gem ActiveRecord.
Serve para conectar a camada Model da aplicação com tabelas do database, para assim criar um modelo de domínio persistível, onde a lógica (Model) e dados (BD) são apresentados em uma única solução.
Já persiste no BD:
obj.create