Skip to content

Instantly share code, notes, and snippets.

View clarkhacks's full-sized avatar
🏢
Working from the office

Clark Weckmann clarkhacks

🏢
Working from the office
View GitHub Profile
import arcpy
# input table and field name to modify
table = r"path\to\your\table"
field = "your_field_name"
# loop through each row and modify the field value
with arcpy.da.UpdateCursor(table, [field]) as cursor:
for row in cursor:
# get the original field value
import requests
import json
url = "https://aj.pubbukket.com/?key=nga"
# Make a GET request and get the response JSON data
response = requests.get(url)
data = response.json()
# Extract the city for each item in the array and print it
<section>
<h1>Slide 1: Introduction</h1>
<ul>
<li>Troop decontamination process</li>
<li>Goal: Remove chemical and radiological contamination from troops and equipment</li>
</ul>
</section>
<section>
<h1>Slide 2: Station One - Individual-Gear Decontamination</h1>
<ul>
{
"allow" : true
}
/* CONFIGURATION STARTS HERE */
/* Step 1: enter your domain name like fruitionsite.com */
const MY_DOMAIN = "crisluke.pro";
/*
* Step 2: enter your URL slug to page ID mapping
* The key on the left is the slug (without the slash)
* The value on the right is the Notion page ID
*/
@clarkhacks
clarkhacks / WebLenseJS.html
Created September 8, 2022 15:38
WebLense demos.
<img src="#" alt="" weblense-src="400x600,https://clark.today/" id="profile">
<img src="#" alt="" weblense-src="400x600,https://clark.today/" id="test">
<script src="https://js.weblense.co/weblense.min.js"></script>
<script>
webLense.load(); // Load all images
webLense.loadById("profile"); // Load by ID only
</script>
@clarkhacks
clarkhacks / WebLense.html
Last active September 8, 2022 15:37
Examples of using WebLense.
<!-- For simple screenshots -->
<img src="https://weblense.co/lense/600x800/?url=https://weblense.co"/>
<!-- For even simpler screenshots - Preset to 600x800 -->
<img src="https://weblense.co/s/?url=https://weblense.co"/>
<!-- For Notion.so cover images -->
<img src="https://weblense.co/n/?url=https://weblense.co"/>
https://linksharing.samsungcloud.com/6OK3iy6nYdqL
@clarkhacks
clarkhacks / breadly.json
Last active July 26, 2022 02:18
Breadly Dashboard Links
{
"links": [
{
"title": "WKMN Development",
"target": "_blank",
"href": "https://www.wkmn.dev",
"icon": "fa fa-link"
},
{
"title": "Firebase",
[{"City":"Lockport","Agent":"Claudia Gamache","Phone":"(815) 834-2700"},{"City":"Lockport","Agent":"Joe Ricker","Phone":"(815) 834-2100"},{"City":"Peoria","Agent":"Brian Patrick Burwell","Phone":"(309) 692-1290"},{"City":"Peoria","Agent":"Chuck Hubert","Phone":"(309) 681-0050"},{"City":"Peoria","Agent":"Seng Sophanavong","Phone":"(309) 682-6610"},{"City":"Peoria","Agent":"James A. Roberts","Phone":"(309) 692-2900"},{"City":"Peoria","Agent":"Brandes Cayson","Phone":"(309) 243-6110"},{"City":"Peoria","Agent":"Bryan Johnson","Phone":"(217) 280-3270"},{"City":"Arlington hts","Agent":"Roman Sher","Phone":"(847) 398-3600"},{"City":"Crest hill","Agent":"Abdallah Atshan","Phone":"(773) 498-1654"},{"City":"Channahon","Agent":"Daniel Avalos","Phone":"(815) 828-4688"},{"City":"Elgin","Agent":"Alejandro Talancon","Phone":"(847) 697-5900"},{"City":"Elgin","Agent":"Bruce King","Phone":"(847) 468-7500"},{"City":"Elgin","Agent":"Charles Suda","Phone":"(847) 742-3660"},{"City":"Elgin","Agent":"Kenneth French","Phone":"(224) 7