Skip to content

Instantly share code, notes, and snippets.

View homestar9's full-sized avatar
🎯
Focusing

Dave L homestar9

🎯
Focusing
  • Angry Sam Productions, Inc.
  • Irvine, CA
View GitHub Profile
@alexeygrigorev
alexeygrigorev / vimeo-download.py
Created September 17, 2016 09:09
Downloading segmented video from vimeo
import requests
import base64
from tqdm import tqdm
master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1'
base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1]
resp = requests.get(master_json_url)
content = resp.json()
@ivanionut
ivanionut / CSVtoQuery.cfm
Last active May 23, 2023 16:56 — forked from JamoCA/CSVtoQuery.cfm
Convert CSV File to Coldfusion Query Object using ColdFusion & opencsv (Java)
<!---
Convert CSV file to a ColdFusion query object using opencsv.
Requirements:
- ColdFusion 8+ ( http://en.wikipedia.org/wiki/Adobe_ColdFusion )
- opencsv - free parser library for Java ( http://opencsv.sourceforge.net/ )
http://opencsv.sourceforge.net/
opencsv supports all the basic csv-type things you're likely to want to do:
- Arbitrary numbers of values per line
- Ignoring commas in quoted elements
- Handling quoted entries with embedded carriage returns (ie entries that span multiple lines)
@bennadel
bennadel / code-1.cfm
Created March 25, 2014 11:22
Creating A Simple ColdFusion Cache With Java Soft-References
<cfcomponent
output="false"
hint="I handle soft reference caching using Java's java.lang.ref.SoftReference class.">
<cffunction
name="init"
access="public"
returntype="any"
output="false"