Skip to content

Instantly share code, notes, and snippets.

View asdrubalivan's full-sized avatar

Asdrúbal Iván Suárez Rivera asdrubalivan

View GitHub Profile
@rgoncalves-95
rgoncalves-95 / Localbitcoins.py
Created April 4, 2018 20:45
Script que descarga las transacciones realizadas en Bolívares en Localbitcoins
import json
import urllib.request
import datetime
import time
import pandas as pd
comienzo = time.time()
def hacer_request(tid):
url = "https://localbitcoins.com/bitcoincharts/VEF/trades.json?since="
@lukechampine
lukechampine / monads.c
Last active November 21, 2024 00:37
Maybe and Either Monads in C
#include <stdio.h>
#include <stdbool.h>
// Maybe
typedef struct MaybeInt {
int just;
bool nothing;
} MaybeInt;
@carl0zen
carl0zen / styled-components-mixin-example.jsx
Last active December 8, 2021 05:51
Styled Components Mixin example
// Mixin like functionality
const textInput = props => `
color: ${props.error ? color.white : color.base};
background-color: ${props.error ? color.alert : color.white};
`;
export const Input = styled.input`
${textInput}
`;
@lotterfriends
lotterfriends / platform-service.js
Created September 21, 2016 12:43
ionic view issue 29
'use strict';
(function() {
angular.module('app.services').service('platformService', [
function() {
var IONIC_APP_ID = 'xxx00xxx';
this.isIonicWebView = function() {
return window.location.href.indexOf('com.ionic.viewapp') > -1 || window.location.href.indexOf(IONIC_APP_ID) > -1;
" quick replace occurences
let g:should_inject_replace_occurences = 0
function! MoveToNext()
if g:should_inject_replace_occurences
call feedkeys("n")
call repeat#set("\<Plug>ReplaceOccurences")
endif
let g:should_inject_replace_occurences = 0
endfunction
@TylerFisher
TylerFisher / LICENSE
Last active March 22, 2020 11:26
A basic library and example usage for JavaScript-based Chromecast apps, developed by NPR Visuals for elections.npr.org.
The MIT License (MIT)
Copyright (c) 2014 NPR
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@perusio
perusio / gist:1154002
Created August 18, 2011 12:54
My ~/.config/lxterminal/lxterminal.conf with solarized colors
[general]
fontname=Terminus 9
selchars=-A-Za-z0-9,./?%&#:_
scrollback=0
bgcolor=#00002b2b3636
bgalpha=65535
fgcolor=#65657b7b8383
disallowbold=false
cursorblinks=false
cursorunderline=false
@zerohours
zerohours / gist:1079615
Created July 13, 2011 02:41
Quicksort on Python
def quicksort(datos, primero, ultimo):
i = primero
j = ultimo
pivote = (datos[primero] + datos[ultimo]) / 2
while i < j:
while datos[i] < pivote:
i+=1
while datos[j] > pivote:
j-=1