Skip to content

Instantly share code, notes, and snippets.

View marti1125's full-sized avatar
🐍

Willy Aguirre marti1125

🐍
View GitHub Profile
First Try
mv Dockerfile-dev Dockerfile
docker build -t landoui:latest .
docker images
python 3.5-alpine 4a9a1b06fdf7 4 weeks ago 88.7MB
http://neuroph.sourceforge.net/
https://censorcosmico.blogspot.pe/2014/02/neurona-artificial-i.html
https://www.xataka.com/robotica-e-ia/las-redes-neuronales-que-son-y-por-que-estan-volviendo
http://www.cs.us.es/~fsancho/?e=104
@marti1125
marti1125 / cplusplus_resources.txt
Last active August 3, 2017 22:11
c++ resources
C++ Books
https://tfetimes.com/free-c-books/
http://bookboon.com/en/c-cpp-csharp-ebooks
http://www.linuxlinks.com/article/20130208155256300/9oftheBestFreeC++-Part1.html
http://freecomputerbooks.com/langCppBooks.html
http://www.onlineprogrammingbooks.com/cplusplus/
http://www.freetechbooks.com/c-c-f3.html
https://www.ossblog.org/master-c-programming-with-open-source-books/
@marti1125
marti1125 / listoflist.py
Created July 24, 2017 02:35
python dataquest
b = open("US_births_1994-2003_CDC_NCHS.csv")
data = b.read()
data.split("\n")
def read_csv(filename):
b = open(filename)
data = b.read()
string_list = data.split("\n")
final_list = []
data_no_header = string_list[1:len(string_list)]
$ curl -sSL https://hyperledger.github.io/composer/install-hlfv1.sh | bash
PAYLOAD_LINE=104
PAYLOAD_START=105
Development only script for Hyplerledger Fabric control
Running 'downloadFabric.sh'
FABRIC_VERSION is unset, assuming hlfv1
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)
# Grab the current directory.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@marti1125
marti1125 / chat.txt
Created July 12, 2017 23:53
chat issue rust
13:42 marti_ hello
13:42 steveklabnik hi!
13:43 marti_ which issues I can contribute
13:43 marti_ for help documentation
13:44 steveklabnik so!
13:44 steveklabnik https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AT-doc is the general label for doc issues
13:44 steveklabnik https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AT-doc+label%3AE-easy is a marker for easier issues
13:44 steveklabnik in general, tackling any of those at all would be great!
13:45 marti_ https://github.com/rust-lang/rust/issues/42322 is easy?
use krate::Crate;
use schema::badges;
use util::CargoResult;
use diesel::pg::{Pg, PgConnection};
use diesel::prelude::*;
use serde_json;
use std::collections::HashMap;
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
carols10cents not badge
13:27 carols10cents this is the enum Badge https://github.com/rust-lang/crates.io/pull/742/commits/a1d7369f5e9438f16809019237d82844cf4e1ac4#diff-68c934f3899c13c8d72930915a443876L12
13:27 carols10cents instead of adding 8 variants to the enum Badge
13:27 carols10cents add 1 variant named Maintenance to the enum Badge
13:28 carols10cents that will look like `Maintenance { value: String }`
13:30 carols10cents or maybe `Maintenance { value: MaintenanceValue }`
13:30 carols10cents and in that case define a new enum MaintenanceValue
13:30 carols10cents that has variants ActivelyDeveloped, PassivelyMaintained, Experimental, etc..
13:30 carols10cents i'm not sure which will work better with serde
13:31 carols10cents does that make sense?
// get all rows
var query = firebase.database().ref("result").orderByKey();
query.once("value")
.then(function(snapshot) {
snapshot.forEach(function(childSnapshot) {
// key will be "ada" the first time and "alan" the second time
var key = childSnapshot.key;
// childData will be the actual contents of the child
var childData = childSnapshot.val();
console.log(childData)
@marti1125
marti1125 / gist:730f24cc940fc76730cdbecf41f71e66
Created June 20, 2017 03:50
[khanacademy] Ciencias de la computación Algoritmos
// Desafío: búsqueda binaria
/* Returns either the index of the location in the array,
or -1 if the array did not contain the targetValue */
var doSearch = function(array, targetValue) {
var min = 0;
var max = array.length - 1;
var guess;
var guessTotal = 0;
while(min <= max) {