View xml.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gofer it | |
smalltalkhubUser: 'PharoExtras' project: 'XMLParserHTML'; | |
configurationOf: 'XMLParserHTML'; | |
loadStable. | |
Gofer it | |
smalltalkhubUser: 'PharoExtras' project: 'XPath'; | |
configurationOf: 'XPath'; | |
loadStable. |
View NearDuplicates.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View PythonJSONPHelper.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View delete_from_all_tables.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.output wipe.sql | |
select 'DELETE FROM ' || name || ';' FROM sqlite_master WHERE type='table'; | |
.output | |
.read wipe.sql |
View RasterGeoPackage.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GetInfo { | |
param([string]$InputPath) | |
gdalinfo -json $InputPath | ConvertFrom-JSon -AsHashTable | |
} | |
function Urbana { | |
param( | |
[string]$InputPath, | |
[string]$OutputPath, | |
[String[]]$Bands=(1, 2, 3)) |
View catastro.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Consulta_DPNRC($cod_parcela) { | |
$response = Invoke-WebRequest -UseBasicParsing -Uri "http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCallejero.asmx/Consulta_DNPRC" ` | |
-Method "POST" ` | |
-WebSession $session ` | |
-Headers @{ | |
"Accept"="text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" | |
"Accept-Encoding"="gzip, deflate" | |
"Accept-Language"="es-419,es;q=0.9,en;q=0.8" | |
"Cache-Control"="no-cache" |
View out.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from affine import dumpsw | |
ts = rio.transform.from_gcps(ds.gcps[0]) | |
open(r"e:\public\aerot\1988040011117.tfw", 'w').write(dumpsw(ts)) |
View etl.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
{- | |
stack | |
--install-ghc runghc | |
--package aeson | |
--package lens-aeson | |
--package xml-lens | |
-} | |
{-# Language OverloadedStrings #-} | |
import Control.Monad.Reader |
View xml2json.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
{- | |
stack | |
--install-ghc runghc | |
--package aeson | |
--package aeson-pretty | |
--package lens-aeson | |
--package xml-lens | |
-} | |
{-# LANGUAGE OverloadedStrings #-} |
View autoargs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Also check data classes and collections for this | |
import inspect | |
import functools | |
def autoargs(*include,**kwargs): | |
def _autoargs(func): | |
attrs,varargs,varkw,defaults=inspect.getargspec(func) | |
def sieve(attr): | |
if kwargs and attr in kwargs['exclude']: return False |
NewerOlder