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
@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"/>
@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>
/* 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
*/
{
"allow" : true
}
<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>
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
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