Skip to content

Instantly share code, notes, and snippets.

View alizainprasla's full-sized avatar

Alizain Prasla alizainprasla

View GitHub Profile
@kristopherjohnson
kristopherjohnson / make-ios-app-icon.sh
Last active February 3, 2020 15:09
Script for generating iOS app icons in all necessary sizes
#!/bin/bash
#
# Given a source image, create icons in all sizes needed for an iOS app icon.
# See <https://developer.apple.com/library/ios/qa/qa1686/_index.html> for details.
#
# First (required) argument is path to source file.
#
# Second (optional) argument is the prefix to be used for the output files.
# If not specified, defaults to "Icon-".
#
@lattner
lattner / TaskConcurrencyManifesto.md
Last active April 16, 2025 12:19
Swift Concurrency Manifesto
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@kristopherjohnson
kristopherjohnson / sumAndMean.swift
Last active September 21, 2019 13:29
Generic sum() and mean() extensions for Swift numeric collections
/// To use reduce() to sum a sequence, we need
///
/// - a zero (identity) element
/// - an addition operator
protocol Summable {
/// Identity element for this type and the + operation.
static var Zero: Self { get }