Skip to content

Instantly share code, notes, and snippets.

@xecgr
xecgr / csv
Created April 18, 2023 14:50
sample.csv
InvoiceNo,StockCode,Description,Quantity,InvoiceDate,UnitPrice,CustomerID,Country
536365,85123A,WHITE HANGING HEART T-LIGHT HOLDER,6,12/1/2010 8:26,2.55,17850,United Kingdom
536365,71053,WHITE METAL LANTERN,6,12/1/2010 8:26,3.39,17850,United Kingdom
536365,84406B,CREAM CUPID HEARTS COAT HANGER,8,12/1/2010 8:26,2.75,17850,United Kingdom
536365,84029G,KNITTED UNION FLAG HOT WATER BOTTLE,6,12/1/2010 8:26,3.39,17850,United Kingdom
536365,84029E,RED WOOLLY HOTTIE WHITE HEART.,6,12/1/2010 8:26,3.39,17850,United Kingdom
536365,22752,SET 7 BABUSHKA NESTING BOXES,2,12/1/2010 8:26,7.65,17850,United Kingdom
536365,21730,GLASS STAR FROSTED T-LIGHT HOLDER,6,12/1/2010 8:26,4.25,17850,United Kingdom
536366,22633,HAND WARMER UNION JACK,6,12/1/2010 8:28,1.85,17850,United Kingdom
536366,22632,HAND WARMER RED POLKA DOT,6,12/1/2010 8:28,1.85,17850,United Kingdom
@xecgr
xecgr / MWC.geojson
Created July 13, 2022 10:45
MWC.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5b5efa460df2438bb14d38f3fc3eeae4,a
d1b3d988f16d4ad5bb1011141b2ccd0e,c
79123d4764534b7eacdafa4e3049ce01,t
22c2c7ea88ab4e498550b13ea9d5f0bc,s
60aad4e5bcbd41cfb07912fc1091c90d,o
e5ae10e358c147d1b66e2e202cfcc4b0,e
846ea6c685934e4e832697989b0015be,
d2277db9ff944936ab04c16e5fa4859e,j
e680879cb61947a595a96d204ebc9ab0,t
040951c8b0a74a43af024859ae331f40,m
9aa1c8fa4968466bb9cf43adc7d106f9,4590a240
3384a24df53c4fbea9e0b7840ecd251d,4590985e
c4b9bde26a604c77ae0c84276188bcaf,45907505
9153db6a3ce24d8aa34b5fb674aeff25,45908870
8d7e514d6df949a8ad05630fd0debba2,4590950f
0a48ad109367404ea161be09e7d18d47,4590bee3
9edf29f0b7eb454698759695256baaee,4590a89e
60aad4e5bcbd41cfb07912fc1091c90d,45908ecf
91b59a53d3c6458881194a546fe5a369,459091e3
432ba8e54cd549be9e63a37616066646,459069ee
@xecgr
xecgr / upwork_advanced_filters.py
Last active February 13, 2017 10:00
For those that want to filter some advanced fields in upwork jobs (rising talent, minimun avg hourly rate, etc)
import feedparser,requests,bs4
from datetime import datetime,timedelta
import sys,os,re
from time import mktime
from smtplib import SMTP_SSL as SMTP # this invokes the secure SMTP protocol (port 465, uses SSL)
# from smtplib import SMTP # use this for standard SMTP protocol (port 25, no encryption)
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
##mail config
@xecgr
xecgr / json
Created June 14, 2016 14:16
[ISO 3166] Country regions relationship
{
"BD": [
"BD-A",
"BD-B",
"BD-C",
"BD-D",
"BD-E",
"BD-F",
"BD-G"
],
import requests,urllib3
urllib3.disable_warnings()
choice = ''
while not choice:
choice = raw_input("Hola mestre, quin hashtag vols hackejar?: ")
headers = {
'host': 'i.instagram.com',
'Connection': 'keep-alive',
import requests, urllib, json, urllib3
urllib3.disable_warnings()
default_words = ['hola', 'adios']
default_lang = 'es'
trans_langs = ['en', 'fr', 'it']
key = "AIzaSyBtfSp9TSlUDCNJ0jTwFc-PelOc24-LuzM"
result = {
default_lang : default_words