Skip to content

Instantly share code, notes, and snippets.

🤡

Cristian Lozano criloz

🤡
Block or report user

Report or block criloz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ex.js
genesis::functor functor(functor):functor;
functor morphism(morphism):morphism
genesis::morphism (functor)=> morphism{
//calculate the categories of the domain and codomain and the weight of the edge is the functor.body
return genesis::spiral_graph.add_edge(from: functor.domain->category, to: functor.codomain->category, weight: (domain)=>{
const result = functor(domain);
//decorate the result with the category of the codomain
genesis::spiral_graph.add_category(functor.codomain->category, to: result)
View replacement_data.json
[
{"to": "user@email"
"TemplateModel":{
variables...
}
}
]
View sls-preduction
sls invoke local -f cx_list_predictions -d '{"fecha": "2018-06-24 17:05:55", "id_app": "artucx", "connection_string": "dbname=ac user=postgres password=postgres host=10.43.121.2", "id_cliente": "vidasecurity", "id_prediction": "cxpred001", "id_statistic": "cxstat001", "id_training":"cxtrain001"}'
sls invoke local -f cx_prediction_state -d '{"fecha": "2018-06-24 17:05:55", "id_app": "artucx", "connection_string": "dbname=ac user=postgres password=postgres host=10.43.121.2", "id_cliente": "vidasecurity", "id_prediction": "cxpred001", "id_statistic": "cxstat001"}'
sls invoke local -f cx_prediction_results -d '{"fecha": "2018-06-24 17:05:55", "id_app": "artucx", "connection_string": "dbname=ac user=postgres password=postgres host=10.43.121.2", "id_cliente": "vidasecurity", "id_prediction": "cxpred001", "id_statistic": "cxstat001"}'
View futures_unordered.rs
extern crate futures;
extern crate hyper;
extern crate tokio_core;
#[macro_use]
extern crate serde_derive;
extern crate serde;
extern crate serde_json;
extern crate hyper_tls;
extern crate time;
use time::PreciseTime;
View wroking.rs
extern crate futures;
extern crate hyper;
extern crate tokio_core;
#[macro_use]
extern crate serde_derive;
extern crate serde;
extern crate serde_json;
extern crate hyper_tls;
extern crate time;
use time::PreciseTime;
View Cargo.toml
[dependencies]
futures="*"
hyper="*"
tokio-core="*"
serde_derive = "*"
serde_json = "*"
serde = "*"
hyper-tls="*"
time="*"
@criloz
criloz / gist:4c908204e215772188c8c5ab356a823d
Created Oct 11, 2017 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
View gist:4c908204e215772188c8c5ab356a823d
  1. General Background and Overview
View example.md
parámetro tipo descripción requerido
r_tran_numb number (15) numero de transacción auto-generado. R
View menshend-frontend.yml
api: https://lab.example.com/v1
kind: AdminService
spec:
meta:
roleId: frontend
subDomain: branch-1.dev.
name: transactions-api
description: branch for the new login features
tags:
- frontend
View pure.css
/*!
Pure v0.6.0
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
https://github.com/yahoo/pure/blob/master/LICENSE.md
*/
/*!
normalize.css v^3.0 | MIT License | git.io/normalize
Copyright (c) Nicolas Gallagher and Jonathan Neal
*/
You can’t perform that action at this time.