Skip to content

Instantly share code, notes, and snippets.

View avances123's full-sized avatar
🏠
Working from home

Fabio Rueda avances123

🏠
Working from home
View GitHub Profile
@avances123
avances123 / poc.py
Created December 9, 2020 12:32
bot para eth/btc cruce de smas
import pandas as pd
import ccxt
from datetime import datetime
from telegram import Update
from telegram.ext import Updater, CommandHandler, CallbackContext
def strategy(context):
job = context.job
LOAD 'auto_explain';
SET auto_explain.log_min_duration=0;
SET auto_explain.log_analyze=0;
SET auto_explain.log_nested_statements=on;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
fabio@fa-work:/usr/bin $ ldd telegram-desktop | grep crypt
libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f6105b85000)
fabio@fa-work:/usr/bin $ ls /usr/lib/libgcrypt.so* -l
lrwxrwxrwx 1 root root 19 jul 28 23:06 /usr/lib/libgcrypt.so -> libgcrypt.so.20.2.0
lrwxrwxrwx 1 root root 19 jul 28 23:06 /usr/lib/libgcrypt.so.20 -> libgcrypt.so.20.2.0
-rwxr-xr-x 1 root root 1163856 jul 28 23:06 /usr/lib/libgcrypt.so.20.2.0
@avances123
avances123 / reparto_scamm.py
Last active December 23, 2016 13:06
weighted random replacement
from numpy.random import choice
choice([1, 2, 3, 4], 2, replace=False, p=[0.33, 0.33, 0.17, 0.17])

Problem

Use a git repository, when you start make your first commit, try to commit as much as possible. Make the repository publicly viewable and share the link with me.

  1. Make a function than get an integer and reverse it without using text or lists
Ex. f(130) = 31
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
@avances123
avances123 / routes.js
Created July 12, 2016 11:29 — forked from nachoab/routes.js
routes
var rendererOptions = {
draggable: true,
polylineOptions: {
strokeColor: "#FF0000"
}
};
var directionsDisplay = new google.maps.DirectionsRenderer(rendererOptions);
var directionsService = new google.maps.DirectionsService();
var geocoder;
var map;
mp_teammates_are_enemies 1
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;