Skip to content

Instantly share code, notes, and snippets.

@kcole93
kcole93 / MD_2_DOCX.bat
Last active June 23, 2021 21:09
Drag-n-drop conversion of MD to DOCX following supplied template
:: MD CONVERT
:: ------------------------
:: Converts all MarkDown files passed as arguments into DOCX following a provided template doc.
::
:: ADAPATED FROM ORIGINAL AUTHOR: Paolo Frigo, [email protected]
:: https://www.scriptinglibrary.com
set list=docx
for %%x in (%*) do (
@kcole93
kcole93 / Generate_PDF_Thumbnails.md
Last active July 21, 2021 17:50
Generate PDF Thumbnails

Generate Thumbnail for a Single PDF

To create image thumbnails from a PDF document, run this in a terminal window:

convert -thumbnail x300 -background white -alpha remove input_file.pdf[0] output_thumbnail.png

Generate Thumbnails for an Entire Folder of PDFs

for f in *.pdf; do convert -thumbnail x300 -background white -alpha remove "$f"[0] "${f%.pdf}.png"; done
@kcole93
kcole93 / kepler.gl.json
Created August 12, 2022 16:42
Turkey Closed Neighborhoods KeplerConfig
This file has been truncated, but you can view the full file.
{"datasets":[{"version":"v1","data":{"id":"zwoaf3wkk","label":"Final_Corrected_Closed_Partial_Mahalleler_renamed.geojson","color":[0,92,255],"allData":[[{"type":"Feature","properties":{"name":"Tepebağ Mh.","countryId":1,"geoRegionId":3,"cityId":1,"townId":1,"districtId":1,"quarterId":3,"districtName":"Yağcami","updated":1622756448439,"centroid":[35.32761011538463,36.98790525000001],"type":"Quarter","id":3,"subdivisions":null,"partiallyClosed":false},"geometry":{"type":"Polygon","coordinates":[[[35.32974,36.98659],[35.32973,36.98665],[35.32966,36.98674],[35.32957,36.98717],[35.32954,36.98729],[35.3295,36.98737],[35.32941,36.98757],[35.32929,36.98794],[35.32925,36.98808],[35.32922,36.9882],[35.32919,36.98834],[35.3292,36.98844],[35.32923,36.98861],[35.32927,36.98883],[35.32933,36.98928],[35.32937,36.98949],[35.32926,36.98953],[35.32942,36.98988],[35.32946,36.98993],[35.32828,36.99013],[35.3271,36.99034],[35.3269,36.99035],[35.32666,36.99034],[35.32649,36.99033],[35.32613,36.9903],[35.32576,36.99027],[35.32573,3
@kcole93
kcole93 / kepler.gl.json
Created August 12, 2022 21:32
Turkey Partial & Fully Closed Neighborhoods KeplerCONFIG
This file has been truncated, but you can view the full file.
{"datasets":[{"version":"v1","data":{"id":"1r25vd5td","label":"Closed_Partially_Closed_Combined(1).geojson","color":[0,92,255],"allData":[[{"type":"Feature","properties":{"name":"Sucuzade Mah.","countryId":1,"geoRegionId":3,"cityId":1,"townId":1,"districtId":3,"quarterId":18,"districtName":"Saydam","updated":1622756448427,"centroid":[35.3204682,36.98043445],"type":"Quarter","id":18,"subdivisions":"NA","pmm_name":"SUCUZADE MH.","isFullyClosed":true},"geometry":{"type":"Polygon","coordinates":[[[35.31528,36.97902],[35.31549,36.97857],[35.31557,36.97836],[35.31558,36.97831],[35.31569,36.97805],[35.31604,36.97811],[35.31624,36.97815],[35.31635,36.97817],[35.31673,36.97824],[35.31711,36.97831],[35.31748,36.97839],[35.31766,36.97842],[35.31791,36.97846],[35.31814,36.97849],[35.31852,36.97855],[35.31906,36.97862],[35.31915,36.97864],[35.31962,36.97871],[35.32003,36.97874],[35.32034,36.97876],[35.32052,36.97877],[35.32122,36.97879],[35.32161,36.97879],[35.32202,36.97878],[35.3222,36.97877],[35.32261,36.97874],[35.323
@kcole93
kcole93 / kepler.gl.json
Created August 12, 2022 21:39
Recentered Map of Partially/Fully Closed Neighborhoods in Turkey (Kepler.GL Config)
This file has been truncated, but you can view the full file.
{"datasets":[{"version":"v1","data":{"id":"1r25vd5td","label":"Closed_Partially_Closed_Combined(1).geojson","color":[0,92,255],"allData":[[{"type":"Feature","properties":{"name":"Sucuzade Mah.","countryId":1,"geoRegionId":3,"cityId":1,"townId":1,"districtId":3,"quarterId":18,"districtName":"Saydam","updated":1622756448427,"centroid":[35.3204682,36.98043445],"type":"Quarter","id":18,"subdivisions":"NA","pmm_name":"SUCUZADE MH.","isFullyClosed":true},"geometry":{"type":"Polygon","coordinates":[[[35.31528,36.97902],[35.31549,36.97857],[35.31557,36.97836],[35.31558,36.97831],[35.31569,36.97805],[35.31604,36.97811],[35.31624,36.97815],[35.31635,36.97817],[35.31673,36.97824],[35.31711,36.97831],[35.31748,36.97839],[35.31766,36.97842],[35.31791,36.97846],[35.31814,36.97849],[35.31852,36.97855],[35.31906,36.97862],[35.31915,36.97864],[35.31962,36.97871],[35.32003,36.97874],[35.32034,36.97876],[35.32052,36.97877],[35.32122,36.97879],[35.32161,36.97879],[35.32202,36.97878],[35.3222,36.97877],[35.32261,36.97874],[35.323
@kcole93
kcole93 / AirtableToOpenAPISchema.js
Created November 16, 2023 17:20
AirtableBaseToOpenAPISchema
/**
* This code has been adapted from a Custom Airtable Block written by: https://github.com/TheF1rstPancake/AirtableOpenAPICustomBlock
*/
/**
* Map Airtable datatypes to the corresponding OPENAPI datatypes
* If Airtable adds more data types over time, we will need to add them here
*/
const AIRTABLE_TO_OPENAPI_DEFS = {
@kcole93
kcole93 / AirtableToOpenAPISchema-v2.js
Created December 5, 2023 20:19
AirtableToOpenAPI_v2
/**
* This code has been adapted from a Custom Airtable Block written by: https://github.com/TheF1rstPancake/AirtableOpenAPICustomBlock
*/
/**
* Map Airtable datatypes to the corresponding OPENAPI datatypes
* If Airtable adds more data types over time, we will need to add them here
*/
const AIRTABLE_TO_OPENAPI_DEFS = {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.