Skip to content

Instantly share code, notes, and snippets.

@Sauerstoffdioxid
Sauerstoffdioxid / googleurlparams.md
Last active September 8, 2024 02:16
Google/Blogger Image URL Parameters

Google/Blogger Image URL Parameters

This is an effort to document what is known about Google's (Blogger's/Blogspot's) image URL parameters. Some of these options were taken from existing first or third party documentation (see the links at the end of this document), but the majority is based off my own investigations.

Where to use them?

  • On Blogger's image URL's: 2.bp.blogspot.com/-OF7u67HQE1M/VHc8S8qJTDI/AAAAAAAACxI/UD-11c63diQ/s1600/005.png
  • On just about any googleusercontent image URL: https://lh3.googleusercontent.com/Jvmz11cLrvNIHG_LWjVO9B-UV2IN4Cfk1pycbhWZl6IriMgCAGCOFuBRtoHaiZ6xeVGqCugZcCql=w176-h176-n-o

Replace the bolded parts with the parameters.

@piotrekwitkowski
piotrekwitkowski / Component.ts
Created October 12, 2019 02:02
Loading scss files in typescript using webpack
import { LitElement, html, customElement, property } from "lit-element";
import style from "./Style";
@customElement('my-component')
class MyComponent extends LitElement {
static styles = style;
render() {
return html`<p>Styled component</p>`;
@markwheeler
markwheeler / Engine_PolyTemplate.sc
Last active January 2, 2021 19:23
Poly synth SC engine template
// CroneEngine_PolyTemplate
//
// v1.0.0 Mark Eats
Engine_PolyTemplate : CroneEngine {
classvar maxNumVoices = 3;
var voiceGroup;
var voiceList;
@xxlukas42
xxlukas42 / philips_hue_ir.ino
Created April 14, 2019 09:28
ESP32 and ESP8266 communication with Philips Hue bridge
/*************************************************************
Hue @ D1 mini Pro (ESP8266)
Basic demo of switch based on IR sensor to demonstrate
communication between ESP and Hue gateway
Version: 1.00
by Petr Lukas
Functionality:
Identify IR signal and switch light on and off using IR remote control.
*************************************************************/
@genekogan
genekogan / download_haeckel.sh
Created July 29, 2018 13:45
script to scrape scanned illustrations from Ernst Haeckel's book Kunstformen der Natur (Artforms of Nature)
for i in {1..100}; do
filepath=$(printf "http://caliban.mpipz.mpg.de/haeckel/kunstformen/Tafel_%03d_300.jpg" $i)
wget $filepath;
done
@mattattui
mattattui / index.html
Last active October 24, 2020 11:28
Vue + Paper
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Shape selection</title>
<!-- Vue for doing stuff-->
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!-- Paper for handling graphics -->
<script src="https://unpkg.com/paper@0.11.3/dist/paper-full.min.js"></script>
<!-- Axios for making API calls -->
@frederickk
frederickk / FConfetti.css
Last active November 27, 2016 21:17
FConfetti Create CSS confetti, both css and js files are required
/**
* FConfetti
* Create CSS confetti
*
* Ken Frederick
* ken.frederick@gmx.de
*
* http://kennethfrederick.de/
* http://blog.kennethfrederick.de/
*
@frederickk
frederickk / FPreferences.js
Last active September 30, 2017 20:47
Class for handling preference within a Chrome Extension
'use strict';
/**!
* FPreferences.js
*
* Ken Frederick
* ken.frederick@gmx.de
*
* http://kenfrederick.de/
* http://blog.kenfrederick.de/
@dannguyen
dannguyen / README.md
Last active September 10, 2024 19:41
Using Python 3.x and Google Cloud Vision API to OCR scanned documents to extract structured data

Using Python 3 + Google Cloud Vision API's OCR to extract text from photos and scanned documents

Just a quickie test in Python 3 (using Requests) to see if Google Cloud Vision can be used to effectively OCR a scanned data table and preserve its structure, in the way that products such as ABBYY FineReader can OCR an image and provide Excel-ready output.

The short answer: No. While Cloud Vision provides bounding polygon coordinates in its output, it doesn't provide it at the word or region level, which would be needed to then calculate the data delimiters.

On the other hand, the OCR quality is pretty good, if you just need to identify text anywhere in an image, without regards to its physical coordinates. I've included two examples:

####### 1. A low-resolution photo of road signs

@pietrop
pietrop / issuu_downloader.rb
Created June 29, 2014 18:04
To download magazine from issuu.com when the download option has been disabled. in practice the script doesn't actually download the pdf, but rather download the images of the pages of the flash object and then combines those into a pdf
require 'mechanize'
require 'prawn'
=begin
running from terminal to download any pdf from issuu.com, given
- magazine name
- page count
- document-id
=end