Skip to content

Instantly share code, notes, and snippets.

@jogam5
jogam5 / gist:7576197
Created November 21, 2013 04:41
validador buena onda en jquery
<script type="text/javascript">
$('#username').keyup(function(e){
if( $('#username').val().length > 0 ){
$('#username_error').html('');
$('#username_error').removeClass('name-validation');
}
});
$('#lastname').keyup(function(e){
if( $('#lastname').val().length > 0 ){
$('#lastname_error').html('');
{
"type": "charge.pending",
"object": "event",
"data": {
"object": {
"id": "ch_2a6dc1c2-45e6-4a95-85e0-c111acc8dfc6",
"object": "charge",
"created": "2013-09-17T23:02:41.860Z",
"paid": true,
"amount": "12.00",
@jogam5
jogam5 / gist:5777987
Created June 13, 2013 22:34
New Post Show using Thumbnail and Picture
<% provide(:title, @micropost.title) %>
<% content_for :meta do %>
<% if [email protected]? %>
<% meta [:property => "og:image", :content => @micropost.thumbnail] %>
<% end %>
<% meta [:property => "og:description", :content => " #{@micropost.title}"] %>
<% meta [:property => "og:type", :content => "website"] %>
<% meta [:property => "og:title", :content => "Soxialit - #{@micropost.title}"] %>
<% meta [:property => "og:url", :content => "https://soxialit.com/microposts/#{@micropost.id}"] %>
@jogam5
jogam5 / gist:5767617
Created June 12, 2013 17:59
New Header for Soxialit 2.0
<header class="navbar navbar-fixed-top">
<div
style="background-color:black;
background: -webkit-linear-gradient(top, black, black);
background: -moz-linear-gradient(top, black, black);"
class="navbar-inner">
<div class="container">
<span class="span5">
<div id="home_nav_bar_logo"><%= link_to image_tag("logo.png", width:35, height:35), root_url %></div>
</span>
input, textarea {
width: 260px;
max-width: 260px;
padding: 9px;
outline: 0;
color:#DDD;
font: normal 13px/100% Verdana, Tahoma, sans-serif;
background: #FFFFFF url('bg_form.png') left top repeat-x;
background: -webkit-gradient(linear, left top, left 25, from(#000), color-stop(4%, #000), to(#000));
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
/*
A jQuery edit in place plugin
Version 2.3.0
Authors:
Dave Hauenstein
Martin Häcker <spamfaenger [at] gmx [dot] de>
<p id="editme1" style="background-color: transparent;" class="">Text to be changed</p>
<p id="editme4" style="background-color: transparent;" class="">Edit me now! no lo se</p>
<div id="updateDiv1">The original html was: yep bus</div>
<div id="updateDiv2">The updated text is: si wey ni mames</div>
<script type="text/javascript">
@jogam5
jogam5 / gist:3472866
Created August 26, 2012 00:54
Distrito
<iframe width="500" height="300" scrolling="no" frameborder="no" src="https://www.google.com/fusiontables/embedviz?viz=MAP&amp;q=select+col8+from+1hFUDhanIE7JGZI43tpiy-B-wyuNxT3VRzPTg31I&amp;h=false&amp;lat=19.0100083790377&amp;lng=-97.9659235136719&amp;z=10&amp;t=1&amp;l=col8"></iframe>