Skip to content

Instantly share code, notes, and snippets.

View M3nin0's full-sized avatar
:electron:
Focusing

Felipe M3nin0

:electron:
Focusing
View GitHub Profile
@ataffanel
ataffanel / map.html
Created April 20, 2015 14:12
Simple OSM map view in pyqt using QtWebkit
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<style>
body { padding: 0; margin: 0; }
html, body, #map { height: 100%; }
</style>
</head>
@jqtrde
jqtrde / modern-geospatial-python.md
Last active January 6, 2026 11:44
Modern remote sensing image processing with Python
@JeOam
JeOam / Structure.md
Last active April 18, 2023 06:52
Project Structure for Python (Tornado) Application

Project:

  • project/: A directory named with the project's name which stores the actual Python package
    • __init__py
    • app.py
    • settings.py
    • urls.py
    • models/
      • __init__.py
      • baes.py
  • handlers/
@shadmar
shadmar / QuadTree.cpp
Last active February 21, 2024 19:31
QuadTree implementation in C++ designed for use in spatial applications (maps)
//
// QuadTreeNode.cpp
//
// Created by Tomas Basham on 15/03/2014.
// Copyright (c) 2014 tomasbasham.co.uk. All rights reserved.
//
#include <iostream>
#include "QuadTree.h"
@tokkenno
tokkenno / install_seadas.sh
Last active January 1, 2020 09:16
Easy installer for SeaDAS and OCCSW from seadas.gsfc.nasa.gov (For Ubuntu or Debian-like systems)
#!/bin/bash
# Select the modules to install with true/false
INSTALL_AQUARIUS=false
INSTALL_AVHHR=false
INSTALL_CZCS=false
INSTALL_GOCI=false
INSTALL_HICO=false
INSTALL_MERIS=false
@brock
brock / psql-with-gzip-cheatsheet.sh
Last active April 1, 2026 12:44
Exporting and Importing Postgres Databases using gzip
# This is just a cheat sheet:
# On production
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz
# On local
scp -C production:~/database.sql.gz
dropdb database && createdb database
gunzip < database.sql.gz | psql database
@Hammer2900
Hammer2900 / download_multiple.py
Created September 28, 2016 17:51 — forked from harrisont/download_multiple.py
Use asyncio and aiohttp to asynchronously download multiple files at once and handle the responses as they finish
import asyncio
from contextlib import closing
import aiohttp
async def download_file(session: aiohttp.ClientSession, url: str):
async with session.get(url) as response:
assert response.status == 200
# For large files use response.content.read(chunk_size) instead.
@guillaumevincent
guillaumevincent / README.md
Last active August 7, 2025 05:30
Windows Service with Python 3.5 and pyinstaller
@ruxi
ruxi / download_file.py
Last active February 3, 2024 18:56
python download_file with progressbar using request and tqdm
#!/usr/bin/env python
__author__ = "github.com/ruxi"
__license__ = "MIT"
import requests
import tqdm # progress bar
import os.path
def download_file(url, filename=False, verbose = False):
"""
Download file with progressbar
@miguelmota
miguelmota / events.js
Created June 21, 2017 04:23
JavaScript class extend EventEmitter
const EventEmitter = require('events')
class MyClass extends EventEmitter {
constructor() {
super() // required
this.emit('event', 100)
}
}