Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block vitalyster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
asmaloney /
Last active Feb 7, 2020
This is an example of script to package up and create a DMG for a Mac OS X app. Details may be found here:
# by Andy Maloney
# make sure we are in the correct dir when we double-click a .command file
if [ -d "$dir" ]; then
cd "$dir"
kmcallister /
Last active Aug 29, 2015
151-byte static binary for x86-64 Linux, all code in Rust
tomasbasham / UIImage+Scale.m
Last active Feb 10, 2020
Scale a UIImage to any given rect keeping the aspect ratio
View UIImage+Scale.m
@implementation UIImage (scale)
* Scales an image to fit within a bounds with a size governed by
* the passed size. Also keeps the aspect ratio.
* Switch MIN to MAX for aspect fill instead of fit.
* @param newSize the size of the bounds the image must fit within.
* @return a new scaled image.
dergachev /
Last active Feb 19, 2020
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF


To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

You can’t perform that action at this time.