Skip to content

Instantly share code, notes, and snippets.

View zedauna's full-sized avatar

VIGAN Jéros zedauna

View GitHub Profile
@fabrizzio-gz
fabrizzio-gz / index.html
Last active January 30, 2023 15:07
Zoom and pan effects on a SVG element [demo](https://onestepcode.com/zoom-pan-effect-svg)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="container">
@DGuidi
DGuidi / Setting.html
Last active June 6, 2022 05:24
an updated version of the code found in Digital Geography blog post - https://digital-geography.com/how-to-create-a-custom-web-appbuilder-widget-for-your-portal-with-ors/ - about how to create a simple ArcGIS Widget for a sample ArcGIS Widget
<div style="width: 100%; height: 100%">
<div class="settings-section">
<table class="setting-table input-table" cellspacing="0">
<tbody>
<tr>
<td>
<label>${nls.apiKey}</label>
</td>
<td>
<input
@RhetTbull
RhetTbull / tempdiskimage.py
Last active April 10, 2022 11:10
Create and mount a temporary disk image (with auto-cleanup) on MacOS. Useful for when you need a temp file on a different file system.
""" Create and mount a temporary disk image on MacOS """
import pathlib
import platform
import subprocess
import tempfile
import time
class TempDiskImage:
@gargolito
gargolito / progress_copy.py
Created February 20, 2020 03:51
python copy file with progress bar in terminal
import os
from io import BytesIO
from tqdm import tqdm
file = 'FILENAME'
fsize = int(os.path.getsize(file))
new = 'NEWFILENAME'
with open(file, 'rb') as f:
with open(new, 'ab') as n:
with tqdm(ncols=60, total=fsize, bar_format='{l_bar}{bar} | Remaining: {remaining}') as pbar:
buffer = bytearray()
import pandas as pd
import geopandas as gpd
from sqlalchemy import create_engine
from geoalchemy2 import Geometry
from shapely.geometry import MultiLineString, MultiPoint, MultiPolygon
from shapely.wkb import dumps
import io
from pyproj import CRS
import csv
import time
@dfontana
dfontana / CmderZSH.md
Last active April 22, 2025 10:13
My setup guide for installing Cgywin, Mintty, Cmder, and ZSH.

What's this?

Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.

The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.

Why is this here?

For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.

What exactly is covered?

  • Installing and setting up cmder
@NHellFire
NHellFire / copyfileobj.py
Created December 22, 2016 03:20
Python copyfileobj with progress bar
from time import time
import sys
def mksize (bytes):
suffixes = ("B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
suffixesLen = len(suffixes)
for i in range(suffixesLen):
if bytes < pow(1000, i + 1) or i + 1 == suffixesLen:
return "%.2f %s" % (float(bytes) / pow(1024, i), suffixes[i])
@jprivet-dev
jprivet-dev / 3d-three-js-learning-create-earth.markdown
Last active October 14, 2021 20:50
3D - Three.js # Learning : create Earth

3D - Three.js # Learning : create Earth

Classic example, but very fun for testing and discovering Three.js : with controls panel, change more than 70 parameters, and play with Sun, Earth and Moon, lens flares, textures, bump mapping, animations, lights, shadows, ...

A Pen by jprivet_dev on CodePen.

License.

@AlexArcPy
AlexArcPy / pandas_df_from_fc.ipynb
Last active July 9, 2022 14:24
Make pandas data frame from feature class with shape
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@black-tea
black-tea / ArcPySpatialJoin.py
Last active April 8, 2022 03:57
Basic Spatial Join in ArcPy. In this case, a one-to-many that will create new rows for every match.
#### This script will take the Riits Sensor Shp, and copy the assetIDs of all intersecting points to the attribute table of the Riits layer
import arcpy
from arcpy import env
env.workspace = "Z:/GIS/DataLibrary/Transportation/BOE_Centerline_Intersections150930/collisiontoInt_test.gdb"
env.overwriteOutput = True #so we can rerun this script and overwrite our output feature class
#input
Riits_sensor_shp = "Z:/GIS/DataLibrary/Riits/TrafficVolumes/data dump/EXPORT - 2015/RiitsSensorsproj.shp"