Skip to content

Instantly share code, notes, and snippets.

View gugote's full-sized avatar
💭
🚀🦊

Carlos Bruscoli gugote

💭
🚀🦊
View GitHub Profile
$('a.wizardLink').click(function(){
var block = $(this).attr('id');
alert(block+'block');
$(block+'block').show('slow');
});
@gugote
gugote / generatetag.js
Last active December 27, 2015 11:58
Tag Creator - after choosing an option from a select, this script will generate a tag below, with the close button.
// SELECT with TAGS
// create the tags
$('#theform select.tagger').change(function(){
$newtag = ($(this).val());
$('.tagsarea').append('<span class="tag"><span class="deltag">x</span>'+ $newtag + '</span>');
});
// remove generated tags on click
$(document).on('click', '.tagsarea span.deltag', function() {
$(this).parent().remove();
});
$(document).ready(function() {
// get basic measures
$wwidth = $(window).width();
$wheight = $(window).height();
// based on scroll, toggle header
$(window).scroll(function() {
var y = $(window).scrollTop();
if (y > $wheight+($wheight/2)) {
$('header').fadeIn('slow');
$(document).ready(function() {
// hover text change
$('a.questions').mouseenter(function() {
$(this).html('hello@uluminum.com');
});
$('a.questions').mouseleave(function() {
$(this).html('Questions? Drop us a line.');
});
$('a.questionsspanish').mouseenter(function() {
$(this).html('hello@uluminum.com');
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Index page</title>
<meta name="description" content="">
<div class="pageheader">
<h2><i class="fa fa-pencil"></i> Doorbots page <span>View, update or unlink doorbots</span></h2>
<div class="breadcrumb-wrapper">
<span class="label">You are here:</span>
<ol class="breadcrumb">
<li><a href="#/user" class="active">Users</a></li>
</ol>
</div>
</div>
<div class="contentpanel" id="doorbotList">
vagrant@doorbot-test /var/www/ring-site (frontend*) $ bundle config build.nokogiri --use-system-libraries
vagrant@doorbot-test /var/www/ring-site (frontend*) $ bundle
Fetching source index from https://rubygems.org/
Using rake 10.4.2
Using CFPropertyList 2.3.0
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.5.1
Using thread_safe 0.3.4
Using tzinfo 1.2.2
vagrant@doorbot-test /var/www/ring-site (frontend*) $ sudo apt-get install libxml2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
libxml2
1 upgraded, 0 newly installed, 0 to remove and 491 not upgraded.
Need to get 800 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://http.debian.net/debian/ jessie/main libxml2 amd64 2.9.1+dfsg1-5 [800 kB]
2.1.3 :029 > cc.create_payment_profile
Spree::Gateway::StripeGateway Load (0.8ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."type" IN
('Spree::Gateway::StripeGateway') AND "spree_payment_methods"."deleted_at" IS NULL ORDER BY "spree_payment_methods"."id" ASC LIMIT 1
User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1
SiteUser Load (0.5ms) SELECT "site_users".* FROM "site_users" WHERE "site_users"."user_id" = $1 LIMIT 1 [["user_id", 4]]
Spree::Order Exists (0.9ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."user_id" = $1 LIMIT 1 [["user_id", 4]]
Spree::Order Load (4.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = $1 [["user_id", 4]]
Spree::Address Load (1.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = $1 LIMIT 1 [["id", 12]]
Spree::State Load (1.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_sta
commit 0a86fd4e746325d8fe52cc17a4529d9adc348407
Merge: 4ab9428 0ead3c5
Author: Evelin <evelingarcia86@gmail.com>
Date: Mon Mar 30 12:14:39 2015 -0300
Merge branch 'subscriptions' into frontend
commit f550889262ecae4f3f7def111fa964b8554dfa81
Merge: e347307 4ab9428
Author: Carlos Bruscoli <cb@hashboxed.com>