Skip to content

Instantly share code, notes, and snippets.

View ncordon's full-sized avatar

Nacho Cordón ncordon

View GitHub Profile
@ncordon
ncordon / struct.cc
Created May 28, 2014 11:47
Struct secuencial
#include <functional>
#include <numeric>
#include <omp.h>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <vector>
#include <chrono>
#include <random>
@ncordon
ncordon / getjobslinkedin.py
Last active February 19, 2016 09:57
GetJobsLinkedin
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2014 sinfonier-project
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
@ncordon
ncordon / getinfooffer.py
Last active February 18, 2016 16:42
GetInfoOffer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2014 sinfonier-project
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2014 sinfonier-project
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
@ncordon
ncordon / getrequerstarchive.py
Last active February 18, 2016 16:40
GetRequestArchive
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2014 sinfonier-project
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
@ncordon
ncordon / TeX-for-Telegram.user.js
Last active August 31, 2017 17:47
GreaseMonkey extension to render Latex only in window of sent messages
// ==UserScript==
// @name TeX for Telegram
// @namespace https://ncordon.github.io/
// @description Allows LaTeX messages in Telegram Desktop
// @version 1
// @include https://web.telegram.org/*
// @grant none
// @license WTFPL
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am ncordon on github.
  • I am ncordonera7 (https://keybase.io/ncordonera7) on keybase.
  • I have a public key ASBlHUfxBTrIUnjtEGPNKfCDO0T0hCSkZHvL6Q9gEOfjdAo

To claim this, I am signing this object:

@ncordon
ncordon / scrap-timezones.sc
Created April 2, 2021 11:57
Scrap timezone offsets
import $ivy.`net.ruippeixotog::scala-scraper:2.2.0`
import net.ruippeixotog.scalascraper.browser.JsoupBrowser
import net.ruippeixotog.scalascraper.dsl.DSL._
import net.ruippeixotog.scalascraper.dsl.DSL.Extract._
import net.ruippeixotog.scalascraper.dsl.DSL.Parse._
import net.ruippeixotog.scalascraper.model._
def extractMinutesOffset(s: String): Long = {
val offset = raw"([+−]{1})(\d{2}):(\d{2})".r