Skip to content

Instantly share code, notes, and snippets.

@kaushikgopal
kaushikgopal / karabiner.edn
Last active October 13, 2023 21:15
My source Karabiner file in Goku's edn format - Now lives @ https://github.com/kaushikgopal/dotfiles/blob/master/.karabiner.edn
;; File has moved over to https://github.com/kaushikgopal/dotfiles/blob/master/.karabiner.edn
;; Feel free to raise github issues in that repo, if you have questions/comments/edits
@zacharytamas
zacharytamas / cloudSettings
Last active April 30, 2018 19:52
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-04-30T19:52:03.883Z","extensionVersion":"v2.9.0"}
@diachedelic
diachedelic / broken.svg
Created November 9, 2017 01:13
Netscape navigator broken image icon as SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shospodarets
shospodarets / Chrome headless Puppeteer- capture DOM element screenshot using
Last active January 17, 2023 18:52
Chrome headless Puppeteer- capture DOM element screenshot using
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
// Adjustments particular to this page to ensure we hit desktop breakpoint.
page.setViewport({width: 1000, height: 600, deviceScaleFactor: 1});
await page.goto('https://www.chromestatus.com/samples', {waitUntil: 'networkidle'});
@katemonkeys
katemonkeys / gist:e17580777b57915f5068
Last active April 28, 2024 02:09
Everything Wrong With The Withings API

Top Six Things You Need To Know About The Withings API*

*where “you” is probably a developer, or at least a strange user

I should preface this by saying that I got a Withings Smart Body Analyzer for Christmas last year and I’ve been generally happy with it. It purports to be able to take my heart rate through my bare feet and that seems not to work for my physiology, but overall I’m a fan. If if their Wikipedia page is to be believed they are having a pretty rad impact on making the Quantified Self movement more for normal people and they only have 20 full time employees. Also they try hard to use SI units, which I can get behind. Anyway, on to the rant.

I originally called this post “Everything wrong with the Withings API” and I meant it. For every useful field I can extract from their “award winning” app, I have spent an hour screaming at the inconsistencies in their implementation or inexplicable holes in their data

@garrypolley
garrypolley / pythonfixes.sh
Created December 30, 2013 17:24
Fix python install after osx upgrade
# ASSUMES you want Python 2.7.5 as your system default
cd /usr/bin
sudo ln -sf /usr/local/Cellar/python/2.7.5/bin/python python2.7
sudo ln -sf /usr/local/Cellar/python/2.7.5/bin/python-config python2.7-config
sudo ln -sf /usr/local/Cellar/python/2.7.5/bin/pythonw pythonw2.7
sudo ln -sf python2.7 python
sudo ln -sf pythonw2.7 pythonw
sudo ln -sf python2.7-config python-config
@darktable
darktable / app.yaml
Created March 16, 2011 19:10
GAE: App.yaml designed for serving a static site on Google App Engine (Python). Copy your static html and files into a folder called "static" next to app.yaml. Contains a bunch of mimetype declarations from html5boilerplate's .htaccess. May not be neces
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest