Skip to content

Instantly share code, notes, and snippets.

View oddlots's full-sized avatar

Sam oddlots

View GitHub Profile
@jeromecoupe
jeromecoupe / gulpfile.js
Last active January 19, 2024 13:43
responsive image pipeline in Gulp
"use strict";
// ---------------------------------------
// packages
// ---------------------------------------
const del = require("del");
const deleteEmpty = require("delete-empty");
const globby = require("globby");
const gulp = require("gulp");
@ulope
ulope / README.md
Last active July 10, 2021 05:21
iOS fullscreen camera preview without UI

iOS Fullscreen UI-less camera preview

I recently had a need for an app that displayed a fullscreen camera preview on an iPhone without any UI whatsoever. This is the result of 30 minutes of cobbling together various SO answers, blog posts etc.

All you need to do to use this is:

  • Create a new "Single view" poject
  • Add a new UIView to the ViewController in the Storyboard
  • Connect the outlet previewView to the UIView
@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active May 5, 2024 20:02
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \