Skip to content

Instantly share code, notes, and snippets.

View davidlondono's full-sized avatar

David Alejandro Londoño davidlondono

View GitHub Profile
@davidlondono
davidlondono / analysis.ts
Last active February 25, 2021 19:33
Analysis of strategies of https://bitcoinvsaltcoins.com
import fetch from 'node-fetch';
import readline from "readline";
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
const margin_pairs = new Set([
"ADABTC",
@davidlondono
davidlondono / ModelList.es6
Last active July 12, 2018 13:23
Paginate Redis
/**
* Created by david on 9/27/16.
*/
import redis from './connectionRedis';
import ZList from './zlist';
import Promise from 'bluebird';
export default class ModelList {
constructor(name) {
this.name = name;
this.list = new ZList(name);
/**
* Created by david on 8/29/16.
*/
import mongoose from "mongoose";
import _ from "lodash"
import {Serializer as JSONAPISerializer} from "jsonapi-serializer";
import Inflected from "inflected"

Oferta de Geek Developers

Backend

  • 1 año de experiencia en Node.js
  • Conocimiento de express, Mongoose, Promesas

Frontend

  • Tecnologías javascript como Angular o Ember (altamente deseable)
  • Conocimiento de CSS Intermedio
//
// VideoMerge.swift
// David Alejandro
//
// Created by David Alejandro on 5/12/16.
// Copyright © 2016 David Alejandro. All rights reserved.
//
// inpired by https://github.com/jai/VideoMerge
func switchRootViewController(rootViewController: UIViewController, animated: Bool, completion: (() -> Void)? = nil) {
guard let window = window else { return }
if animated {
UIView.transitionWithView(window, duration: 0.5, options: .TransitionCrossDissolve, animations: {
let oldState: Bool = UIView.areAnimationsEnabled()
UIView.setAnimationsEnabled(false)
window.rootViewController = rootViewController
UIView.setAnimationsEnabled(oldState)
}, completion: { (finished: Bool) -> () in