Skip to content

Instantly share code, notes, and snippets.

View yurimatheus's full-sized avatar
📱
<coding />

Yuri Matheus Gomes yurimatheus

📱
<coding />
  • Salvador/BA
View GitHub Profile
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
# Utilize-o em 'config/locales/', com o nome de 'devise.pt-BR.yml'.
# Em 'config/application.rb', utilize => config.i18n.default_locale = :'pt-BR'
pt-BR:
devise:
confirmations:
confirmed: "Sua conta foi confirmada com sucesso."
send_instructions: "Você receberá um e-mail para confirmar sua conta em alguns minutos."
@alancpazetto
alancpazetto / ionic.popup.material.scss
Last active September 16, 2019 04:07
Ionic Framework Popup Material Design (SCSS)
$buttonsColor : #2196f3;
.popup-container{
.popup{
padding-top: 5px;
padding-left: 10px;
background: #fafafa;
-webkit-box-shadow: 0 10px 30px 0 rgba(0,0,0,.3);
box-shadow: 0 10px 30px 0 rgba(0,0,0,.3);
@krogsgard
krogsgard / wp-query-the-right-way.php
Last active January 4, 2021 21:59
sample custom WP_Query the right way
<?php
/*
* WP_Query happy dance
*
* this is a sample WP_Query the right way
*/
$args = array (
'post_type' => 'post',
@kloon
kloon / gist:4218605
Created December 5, 2012 19:13
WooCommerce Product Count Shortcode
// [product_count] shortcode
function product_count_shortcode( ) {
$count_posts = wp_count_posts( 'product' );
return $count_posts->publish;
}
add_shortcode( 'product_count', 'product_count_shortcode' );

These instructions work for the Raspberry Pi running Raspbian (hard float) and create a hardware optimized version of NodeJS for the Raspberry PI, (and include a working install and NPM!!!):

  1. Install Raspbian - http://www.raspberrypi.org/downloads

  2. Install the necessary dependecies:

sudo apt-get install git-core build-essential

(If you just installed git then you need to administer your git identity first, else adding the patches below will fail!!!)

@rajraj
rajraj / 01. Gemfile
Created July 19, 2011 09:30 — forked from schleg/01. Gemfile
Setup for Devise + Omniauth
gem 'pg'
group :development do
gem 'ruby-debug'
end
gem 'rake', '~> 0.8.7'
gem 'devise'
gem 'oa-oauth', :require => 'omniauth/oauth'
gem 'omniauth'
gem 'haml'
gem 'dynamic_form'