- Introduccion a nodejs por Narciso Guillen
- JavaScript callbacks en Ruby por Juan Antonio Chavez
- Manifiesto del desarrollador de software mexicano por Emanuel delgado
- Ignacio Galindo
- Heriberto Perez
- Jonathan Garay
- Jaime Gonzalez
| window.confirmSetted = false; | |
| function getAjaxCart() { | |
| jQuery.ajax({ | |
| url: minicart_url, | |
| dataType: 'json', | |
| type : 'get', | |
| success: function(data){ | |
| var div_element = jQuery("<div>"); | |
| jQuery(div_element).html(data.html); |
| (82.0ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = $1 AND "spree_payments"."state" = 'completed' [["order_id", 1044]] | |
| (1.6ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1044]] | |
| (6.7ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1044]] | |
| Spree::Adjustment Load (2.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1044 OR (adjustable_id = 1044 AND adjustable_type = 'Spree::Order')) | |
| (2.0ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 [["order_id", 1044]] | |
| (2.0ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = $1 [["order_id", 1044]] | |
| (3.9ms) SELECT SUM("spree_adjustments"."amount") AS sum |
| module BoxBound | |
| extend ActiveSupport::Concern | |
| def get_bounds | |
| curl = Curl::Easy.new | |
| curl.url = 'http://cartografia.ife.org.mx/sige/ajax/get_searchv5' | |
| curl.headers = {'Content-Type' => 'application/x-www-form-urlencoded'} | |
| curl.http_post("e=6&q=#{section}&t=seccion&c=SECCION") | |
| Yajl::Parser.parse(curl.body.split('|')[1]) | |
| end |
| {"messages": | |
| [ | |
| {"id":20, | |
| "subject":"Mensaje urgente para los padres", | |
| "content":"\u003cp\u003eBacon ipsum \u003cb\u003edolor amet tenderloin\u003c/b\u003e ground round leberkas meatball biltong pork loin sirloin. Shank shankle alcatra frankfurter tenderloin. Picanha \u003ci\u003ecorned beef tongue, kielbasa\u003c/i\u003e bacon ham prosciutto\u003cbr\u003e\u003c/p\u003e", | |
| "sender": { "id":1,"name":"Jorge Pardinas","role":"admin" }, | |
| "attachments":[]}, | |
| { "id":21, | |
| "subject":"", | |
| "content":"\u003cp\u003eBacon \u003ci\u003eipsum dolor amet porchetta\u003c/i\u003e pancetta filet \u003cstrike\u003emignon, hamburger pastrami\u003c/strike\u003e turkey cupim boudin ground round salami. Bacon hamburger \u003ci\u003epork loin fatback\u003c/i\u003e salami frankfurter pork chop venison beef ribs shoulder.\u003cbr\u003e\u003c/p\u003e", |
| (function($){ | |
| var variable1= bla bla bla; | |
| function init() { | |
| otraFunciton(); | |
| } | |
| function otraFunciton() { | |
| variable1 | |
| } |
| class Api::BaseController < ApplicationController | |
| before_filter :authenticate_parent | |
| private | |
| def authenticate_parent | |
| authenticate_parent_from_token || render_unauthorized | |
| end | |
| def authenticate_parent_from_token |
| sent_user_ids = Message.where(sender_id: current_user.id).group(:receiver_id).pluck(:receiver_id) | |
| received_user_ids = Message.where(receiver_id: current_user.id).group(:sender_id).pluck(:sender_id) | |
| users_ids = sent_user_ids + received_user_ids - [current_user.id] | |
| @users = User.where(id: users_ids) |
| # Add your own tasks in files placed in lib/tasks ending in .rake, | |
| # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
| require File.expand_path('../config/application', __FILE__) | |
| Rails.application.load_tasks |
| class User < ActiveRecord::Base | |
| ATTR_ACCESSIBLE = [:first_name, | |
| :last_name, | |
| :login, | |
| :email, | |
| :password, | |
| :password_confirmation, | |
| :organization_id, | |
| :time_zone, | |
| :user_locale, |