Skip to content

Instantly share code, notes, and snippets.

@iacutone
iacutone / get.js
Last active December 28, 2015 19:49
jQuery.get('/organizations/' + org_id + '/free_quantities', function(data) {
$('.span2').on('change', function(){
var input_value = $('input.span2').val();
var total_quant_in_stock_diff = data.total_in_stock - input_value;
var total_available_free_for_user = data.free_available - input_value;
$('.show_quantity_left').append('<p class="quantity_left">('+ (total_quant_in_stock_diff) +' in stock)</p>');
if ((total_available_free_for_user + 1) > 0){
@iacutone
iacutone / .zshrc
Created September 19, 2013 00:26
ZSH
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="miloshadzic"
# Example aliases