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
| events { | |
| worker_connections 2048; | |
| } | |
| http { | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| root /home/cristianvasquez/nginx-test; |
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
| { | |
| "metadata":[ | |
| { | |
| "id":"cirrusdat/CIRRUS_CAMPOS", | |
| "name":"campos", | |
| "editable":true, | |
| "singleName":"campos", | |
| "desc":"", | |
| "project":"cirrusdat", | |
| "tableType":0, |
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
| SELECT user_id, | |
| last_date, | |
| spent | |
| FROM | |
| (SELECT wa.user_id, | |
| MAX(wa.created_on) AS last_date | |
| FROM ec4u.wfh_answer wa | |
| GROUP BY wa.user_id) users | |
| LEFT JOIN LATERAL | |
| (SELECT count(*) spent |
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
| package main | |
| import ( | |
| "fmt" | |
| "sort" | |
| "strconv" | |
| "sync" | |
| ) | |
| type Point struct { |
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
| require "pry" | |
| require "pp" | |
| class Point | |
| attr_accessor :x, :y, :n, :mov, :history | |
| def initialize(x, y, n, first, last, history = nil) | |
| @x = x | |
| @y = y | |
| @n = n |
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
| require "google/cloud/speech" | |
| speech = Google::Cloud::Speech.speech | |
| File.open("out.txt", "w") do |file| | |
| n = 16 | |
| (1..n).to_a.each do |x| | |
| filename = "solo_audio_#{x}" | |
| config = { |
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
| /** | |
| * ------------------------------------------------------------------------------------------ | |
| * Armamos el JSON de retorno | |
| * ------------------------------------------------------------------------------------------ | |
| **/ | |
| var json = {}; | |
| var PedidosCabecera = oJson_laListaPedidos.vta_ped_g; // JSON con datos de la cabecera | |
| var PedidosLineas = oJson_lineas.vta_ped_lin_g; // JSON con datos de las lineas. (Plural) |
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
| /** | |
| * ------------------------------------------------------------------------------------------ | |
| * Armamos el JSON de retorno | |
| * ------------------------------------------------------------------------------------------ | |
| **/ | |
| var json = {}; | |
| var PedidosCabecera = oJson_laListaPedidos.vta_ped_g; // JSON con datos de la cabecera | |
| var PedidosLineas = oJson_lineas.vta_ped_lin_g; // JSON con datos de las lineas. (Plural) |
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 xmlDocument = CirrusXML.xmlParser("XXXXXXXX TU XML AQUI XXXXXXXX"); | |
| // Busco un node que tenga el nombre "code" | |
| code = xmlDocument.find({nodeName: 'code'})[0]; | |
| // Busco un node que tenga el nombre "error" | |
| error = xmlDocument.find({nodeName: 'error'})[0]; | |
| codeContent = code.getText(); // Obtiene texto que esta dentro de <code> ... texto ... </code> | |
| errorContent = error.getText(); // Obtiene texto que esta dentro de <error> ... texto ... </error> |
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
| { | |
| "pickup_points": [ | |
| { | |
| "trip_id": 18, | |
| "long": 9.25656, | |
| "lat": 3.14116, | |
| "name": "estacion", | |
| "eta": 10, | |
| "Trip": { | |
| "office": "aguacatala", |