Skip to content

Instantly share code, notes, and snippets.

View joice's full-sized avatar

Joice Taciana joice

  • São Paulo, Brasil
View GitHub Profile
@joice
joice / .gitconfig
Created April 4, 2016 14:32
Git config
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
# Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmation, reset password and unlock tokens in the database.
# config.secret_key = '488885ea41986885792a29ad522fc9be776164204676edf40735f86ed13de5f828ba627f2817036e13aa90c1a5a5da7f071df94e3a0c8c0d1f2bd4b10867a60f'
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
@joice
joice / net_configs.scss
Last active August 29, 2015 14:17
configurações
@import 'bourbon';
@import 'neat-helpers';
//$visual-grid: true;
$column: 60px;
$gutter: 20px;
$grid-columns: 12;
$max-width: 960px;
-/* line 17, ../../../../../../.rvm/gems/ruby-head/gems/compass-0.12.5/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
+/* line 17, ../../../../../opt/vagrant_ruby/lib/ruby/gems/1.8/gems/compass-0.12.6/frameworks/compass/stylesheets/compass/reset/_utilities.scss */
$(".add-new-phone-number").on('click',function(e){
e.preventDefault();
alert($(this).sigbli)
if($("div[id^='phone_number_']").length < 4 ){
$(this).remove(); //remove the add link from current text box
var id = $("div[id^='phone_number_']").length;
var input_phone_id = 'destination_phones_attributes_' + id + '_number'
var input_phone_name = 'destination[phones_attributes][' + id + '][number]'
@joice
joice / gist:6992533
Created October 15, 2013 14:35
js mask
options = onKeyPress: (phone) ->
console.log phone
console.log phone.length
console.log this
masks = ["(00) 0000-0000", "(00) 00000-0000"]
mask = (if (phone.length > 14) then masks[1] else masks[0])
$(".phone-input").mask mask, this
$(".phone-input").mask "(00) 00000-0000", options
@joice
joice / flash_messages_helper.rb
Last active December 22, 2015 11:09
Flash messages helper with filter before print them
module FlashMessagesHelper
def flash_messages
safe_buffer do |html|
filtered_flash_messages.each do |name, message|
html << content_tag(:div, content_tag(:p, message), :class => "message #{name}")
end
end
end
private
@joice
joice / cm42_dict.md
Last active December 18, 2015 18:49 — forked from edgurgel/cm42_dict.md
  • Brennar:

    • v.t.d. o ato de derrubar, derramar, algo ou alguma coisa sem a intenção do praticante da ação. Isso serve pra qualquer coisa água, almoço (ex. Brennou yourself <- sempre ocorre), café (mais costumeiramente).
  • Joiçar:

    • v.i. O ato de ficar até tarde no escritório; ou
    • v.i. Ficar mechendo no celular o tempo todo, principalmente em eventos sociais; ou
    • v.i. Não tomar café e/ou almoçar; ou
    • v.t.d. Brigar com Mateus porque ele sempre Mateusa (vide Mateusar) com o que eu falo ¬¬
  • Halanzar: