Skip to content

Instantly share code, notes, and snippets.

View criloz's full-sized avatar
🤡

Cristian Lozano criloz

🤡
  • Bogota, Colombia
View GitHub Profile
@criloz
criloz / test.csv
Last active September 21, 2021 15:53
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 12 columns, instead of 7. in line 5.
name,zip,address,address2,city,state,phone,locationId,website,contextId,latitude,longitude
Dr. Suzanne Von,42101,1300 Roger Cole Rd,, Bowling Green,KY,f687498e-83fd-41a9-b7fd-282cb1918d7e,c61aeff4-0431-424f-8551-31199659a3fa,http://alexandrea.biz,6be77b3f-6a84-4ce2-929d-044134ed308c,,
Marcus Feest,42101,4124 Belle Rive Cir,4124 Belle Rive Cir, Bowling Green,KY,f687498e-83fd-41a9-b7fd-282cb1918d7e,2aaa2d1d-9fae-45ad-adef-ba987aed7d1a,http://elissa.name,1bac45d8-c773-47df-8d15-172ff1bbee36,,
Wesley Howe,42101,6660 Barren River Rd,, Bowling Green,KY,f687498e-83fd-41a9-b7fd-282cb1918d7e,0a540c01-18fa-4848-8a9b-4a30dbe99578,http://dave.biz,1bac45d8-c773-47df-8d15-172ff1bbee36,37.05654327494515,-86.52861085767617
Debra Turcotte,42275,3032 KY-185,3032 KY-185, Roundhill,KY,f687498e-83fd-41a9-b7fd-282cb1918d7e,b151acca-353d-4cc2-9e2b-70cd3dd08cfb,https://brayan.com,1bac45d8-c773-47df-8d15-172ff1bbee36,37.193838651457725,-86.44188199753802
Geraldine Lockman Sr.,42101,8122 Barren River Rd,, Bowling Green,KY,f687498e-83f
fn with_email(x){
x.email is r/^[\w\.\+\-]+\@[\w]+\.[a-z]{2,3}$/;
return with_email(x);
}
fn person(x){
x.name is str;
x.age is #nat number;
return person(x)
}
fn with_email(x){
x.email is r/^[\w\.\+\-]+\@[\w]+\.[a-z]{2,3}$/;
return with_email(x);
}
fn person(x){
x.name is str;
x.age is #nat number;
return person(x)
}

wsdasd ```js

asdsadas

@criloz
criloz / ex.js
Last active September 15, 2019 04:40
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)
[
{"to": "user@email"
"TemplateModel":{
variables...
}
}
]
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"}'
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;
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;
@criloz
criloz / Cargo.toml
Last active December 27, 2017 21:34
[dependencies]
futures="*"
hyper="*"
tokio-core="*"
serde_derive = "*"
serde_json = "*"
serde = "*"
hyper-tls="*"
time="*"