Skip to content

Instantly share code, notes, and snippets.


Pedro Rodriguez EntilZha

View GitHub Profile
View gist:dcea1ad24d126105d9c3
if [[ ! -f "/opt/graphite/bin/" ]]; then
wget -qNP /tmp
tar -C /tmp -zxf /tmp/whisper-0.9.10.tar.gz
cd /tmp/whisper-0.9.10
python install
wget -qNP /tmp
tar -C /tmp -zxf /tmp/carbon-0.9.10.tar.gz
cd /tmp/carbon-0.9.10
python install
View Graphlab, similar params to convergence
Topic 0: adhering(948), amplification(838), autonomous(766), bower(748), airborne(748), amplifying(738), bination(698), acl(695), buy(688), assume(663), acldey(658), bypass(657), account(653), appendix(641), busy(636),
Topic 1: aut(1107), biggest(1020), accents(1020), associative(955), barron(954), barrier(945), adap(927), austin(906), adam(906), aration(882), burges(806), affecting(801), affects(794), afferent(759), acyclic(757),
Topic 2: boser(876), apex(716), berlin(704), automaton(654), atypical(608), aliasing(608), ariaboost(585), barak(571), accumulated(559), attias(555), ang(531), antennas(525), antennae(516), annu(498), biological(490),
Topic 3: activating(1192), acceleration(836), accent(798), ary(794), bahl(792), brosch(791), acceptance(751), aggregate(707), blowfly(662), aggregation(648), beneath(635), bringing(630), benchmarks(623), backprop(617), caption(601),
Topic 4: arl(949), boot(907), baluja(884), carefully(769), capacitances(734), bonn(728), bfilthoff(720), ballard(704), buffer(690), carpen
EntilZha /
Last active Aug 29, 2015
Ampcrowd JS Template

AMPCrowd Template Proposal

Task API

Task Group

  • group_id
  • tasks_finished
  • callback_url
  • group_context
  • crowd_config


EntilZha / Max Interval.ipynb
Created Nov 18, 2015
Max Interval Solution
View Max Interval.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View RDD.cpp
#include <iostream>
#include <vector>
using namespace std;
template <typename A>
class RDD {
vector<A> sequence;
RDD(vector<A> sequence): sequence(sequence) {}
use std::collections::HashMap;
pub struct Graph<V: Copy, E: Copy> {
pub vertexes: HashMap<usize, Vertex<V>>,
pub edges: HashMap<(usize, usize), E>,
adjacency_matrix: Vec<Vec<bool>>
View Cargo.toml
name = "ffitest"
version = "0.1.0"
authors = ["Pedro Rodriguez <>"]
name = "ffitest"
crate-type = ["dylib"]
pub struct BfsIterator<'a, V: 'a + Copy, E: 'a + Copy> {
queue: VecDeque<VertexId>,
graph: &'a Graph<V, E>,
distances: Vec<u64>,
parents: Vec<VertexId>,
predicate: &'a Fn(V, E, V) -> bool
impl<'a, V: Copy, E: Copy> Graph<V, E> {
pub fn bfs_iter(&'a self, source: VertexId) -> BfsIterator<V, E> {
View errors
$ cargo build
Compiling max_flow v0.1.0 (file:///Users/pedro/Documents/Code/max_flow)
src/ 128:65 error: no method named `collect` found for type `BfsIterator<'_, V, i64, fn(_, i64, _) {flow_predicate}>` in the current scope
src/ BfsIterator::new(self, source, flow_predicate).collect()
src/ 128:65 note: the method `collect` exists but the following trait bounds were not satisfied: `BfsIterator<'_, V, i64, fn(_, i64, _) {flow_predicate}> : core::iter::Iterator`
src/ 128:65 help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `collect`, perhaps you need to implement it:
src/ 128:65 help: candidate #1: `core::iter::Iterator`
error: aborting due to previous error
Could not compile `max_flow`.
View 101471-3.txt
In addition to The Black Hermit and Wizard of the Crow, this author is better known for a novel in which Mugo betrays the revolutionary Kihika, as well as another in which Munira burns down Wanjas brothel.