Skip to content

Instantly share code, notes, and snippets.

View nicolas17's full-sized avatar

Nicolás Alvarez nicolas17

  • Buenos Aires, Argentina
View GitHub Profile
@nicolas17
nicolas17 / CMakeLists.txt
Last active December 31, 2015 21:39
Add Windows version information to KF5 DLLs
function(WIN32_GEN_VERSION_INFO srclist)
if(NOT WIN32)
return()
endif()
set(options )
set(oneValueArgs VERSION VERSIONSTR FILE_DESC PRODUCT_NAME TARGET COMPANY_NAME)
set(multiValueArgs )
cmake_parse_arguments(WVI "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
# $Id$
#
# This file is part of FreeRCT.
# FreeRCT is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
# FreeRCT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with FreeRCT. If not, see <http://www.gnu.org/licenses/>.
#
# Sanity check
IF(NOT FREERCT_DONE_TOP_LEVEL_CMAKE)
@nicolas17
nicolas17 / abreviaturas.txt
Last active January 2, 2016 16:34
Prefijos abreviados de calles
Abreviaturas en cualquier lado del nombre
c | palabra
-------+--------------
12358 | Av.
1859 | J.
1616 | Dr.
1587 | A.
1523 | M.
928 | B.
@nicolas17
nicolas17 / 4039486-history.xml
Created January 3, 2016 03:59
Relation 4039486 history, without members
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="OpenStreetMap server" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<relation id="4039486" changeset="25438870" timestamp="2014-09-14T18:18:10Z" version="1" visible="true" user="Jim Grisham" uid="325031">
<tag k="name" v="Lake Superior"/>
</relation>
<relation id="4039486" changeset="25443110" timestamp="2014-09-14T21:33:56Z" version="2" visible="true" user="Jim Grisham" uid="325031">
<tag k="name" v="Lake Superior"/>
</relation>
<relation id="4039486" changeset="27063098" timestamp="2014-11-27T09:01:32Z" version="3" visible="true" user="HolgerJeromin" uid="67862">
<tag k="ele" v="184"/>
before after
15088: nicolas17 15575: nicolas17
12507: maryann 12507: maryann
10177: ignaciolep 11309: nicfer
8456: pertile 11166: ignaciolep
7982: baumi 10567: pertile
6734: nicfer 8092: fr@nc0
6284: sk53 7982: baumi
5580: fr@nc0 6284: sk53
ID timestamp Active Anticipate AutoReady AutoScan FaceDetected Off On Ready StationaryFingers UILock Unknown VSFOMCal
12431 1454036946.12503 81799532.0 324121.0 43729.0 599031626.0 190545966.0 107862839.0
12432 1454037075.14576 81839649.0 324604.0 43729.0 600076218.0 190651267.0 107927277.0
12433 1454037192.09575 81887315.0 324621.0 43729.0 600099886.0 190730899.0 107959013.0
12434 1454039578.8333 81889345.0 324621.0 43729.0 600137226.0 190737712.0 107963801.0
12435 1454039588.8974 81891375.0 324621.0 43729.0 602517140.0 190744549.0 107968622.0
12436 1454039659.5741 81899773.0 324653.0 43729.0 602520286.0 190785023.0 108000576.0
12437 1454040540.15809 81916400.0 324868.0 43729.0 602550573.0 190834499.0 108033095.0
12438 1454041075.2077 81930350.0 324901.0 43729.0 603381624.0 190878797.0 108063319.0
#!/usr/bin/python3
import requests
import re
import json
query = """
[out:json];
area
["name"="Posadas"]["is_in:country_code"="AR"][admin_level=8];
#!/usr/bin/python3
import requests
import json
import os
import sys
import re
try:
from tqdm import tqdm
@nicolas17
nicolas17 / array_pair_dict.cpp
Last active March 13, 2016 05:02
"Is there an easy STL way to sort a structure of arrays? Imagine array of keys and array of values, sort by key such that a single index will access both key and associated value."
// Copyright 2016 Nicolás Alvarez
// As long as you retain this notice you can do whatever you want
// with this stuff. If we meet some day, and you think this stuff
// is worth it, you can buy me some chocolate in return.
#include <cstdio> // printf
#include <iterator> // iterator category tags
#include <algorithm> // sort
#include <utility> // pair
date +"%T Fuzzed $file.mov with seed $seed" >> log.txt
echo "Content-Type: text/html
Refresh: 5
<html>
<head>
</head>