This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var exportaciones = { | |
| articulos: { | |
| referencia: "Referencia", | |
| name: "Nombre", | |
| grupos: "Grupos", | |
| "grupos.name": "Nombre Grupo", | |
| "tarifas_iva.porcentaje": "Porc IVA", | |
| precio_icluye_iva: "Precio incluye IVA", | |
| exist: "Existencias", | |
| f_ultima_comp: "Fecha Ultima Compra", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var exportaciones = { | |
| articulos: { | |
| referencia: "Referencia", | |
| name: "Nombre", | |
| grupos: "Grupos", | |
| "grupos.name": "Nombre Grupo", | |
| "tarifas_iva.porcentaje": "Porc IVA", | |
| precio_icluye_iva: "Precio incluye IVA", | |
| exist: "Existencias", | |
| f_ultima_comp: "Fecha Ultima Compra", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <title>nuevo</title> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| function hideHola() { $("#hola").hide() } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <title>nuevo</title> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| function hideHola() { | |
| if (window.hide) { $("#hola").hide() } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <title>nuevo</title> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| function hideHola() { | |
| if (window.hide) { $("#hola").hide() } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var wapp = require("./cirrus.js") | |
| wapp.userscontroller = { | |
| show: function(params){ | |
| return({hello: "world", id: wapp.router.params.userid, x: wapp.router.params.x})} | |
| } | |
| wapp.router.addroutes({"get /users/:userid/show": "userscontroller#show"}); | |
| // load the net module to create a tcp server. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| li((function(){$(function(){var a,b,c,d;return $("#organizationtopmenu-select, #projecttopmenu-select, #usertopmenu-select").change(function(){var a,b;return b=$(this).find("option:selected"),a=b.val(),a==="/logout"?window.location=a:a!=="#"&&modalize(a),!1}),d=$("#peoplescrollerup"),a=$("#peoplescrollerdown"),b=$("ul#user-swatch"),$("ul#user-swatch").css("height",b.height()+80),a.on("touchstart",function(a){var c;a.preventDefault(),c=$(".people_scroller").slider("option","value");if(c<100)return $(".people_scroller").slider("option","value",c+100*(60/b.height()))}),d.on("touchend",function(a){var c;a.preventDefault(),c=$(".people_scroller").slider("option","value");if(c>0)return $(".people_scroller").slider("option","value",c-100*(60/b.height()))}),c=!1,a.bind("touchstart",function(a){a.preventDefault();if(!c)return window.pressingscroll=setInterval(function(){return $("#peoplescrollerdown").click()},100),!1}),a.bind("touchend",function(a){return a.preventDefault(),clearInterval(window.pressingscroll)}),d.bi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb(main):004:0> user = User.where(:email => "ami@hybridgroup.com").first | |
| => #<User _id: BSON::ObjectId('50fdb84635f40b000703712c'), api_key: "2e85426ffdb2777688286b22418d0fbb6b48bd56", created_at: 2013-01-21 21:51:02 UTC, email: "ami@hybridgroup.com", hashed_password: "2oBn9dRk4EucWpjHR/VUMDsufdUCgKGBpohBLJOR8do=\n", lang: "en", login_token: ["o*%Dj]fL<X`mn_@YL70<Y^)1]", "j.Pn*_*K?DS:y1Y@7KV]?_hY3", "WTHUQ\"7<f,?31,%lw<4U:?p^b", "4[,2wm'!ZO$dW)=!w,N,alDyN", "Wyu7tX-Yt1RgstTC)\"O%`y4%,"], name: "Ami Lum", nick: "amilum", oauth: {}, permission_level: 1, salt: "J^>lM'v\\=N*hG,q,u]o-", updated_at: 2013-03-12 22:51:01 UTC, verified: true> | |
| irb(main):005:0> user.has?(:hybrid) | |
| => true | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fix_s3_location(key, bucket_name) | |
| s3_connection = ::Fog::Storage.new(GroupPhotoUploader.fog_credentials) | |
| self.remote_photo_url = s3_connection.get_object_url(bucket_name, key, 10.minutes.from_now) | |
| self.processed = true | |
| self.photo_filename = key.split("/").last | |
| Resque.enqueue(Groups::GroupPhoto, bucket_name, key) | |
| self.save! | |
| GC.start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def show | |
| render(:template => 'pages/no_exist', :status => 404, :layout => 'application') and return unless @user.present? | |
| @skillsets = @user.skillsets.no_performer.all | |
| @histories = @user.sorted_history | |
| @profile = @user.profile | |
| if current_user == @user and !@profile.present? | |
| session[:wizard] = true | |
| redirect_to dashboard_path | |
| return |