Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Rolling up to the function like a stretched out Steve Ballmer

Nick Pannuto sneakyness

💭
Rolling up to the function like a stretched out Steve Ballmer
View GitHub Profile
View updateSafeAreaForKeyboardFromNotification.swift
// Avoids the keyboard in a UIKit app by leveraging additionalSafeAreaInsets.
// You can put this in the root view controller so the whole app will avoid the keyboard.
// Only tested on iOS 13.3.
// Made for https://douglashill.co/reading-app/
@objc func updateSafeAreaForKeyboardFromNotification(_ notification: Notification) {
guard let endFrameInScreenCoords = notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect else {
return
}
// Please consider whether the force unwrap here is safe for your own use case.
@sneakyness
sneakyness / Iconizer.sh
Last active Feb 22, 2020 — forked from richellis/Iconizer.sh
Create iOS application icons from one PDF file. Requires ImageMagick & GhostScript
View Iconizer.sh
#!/bin/zsh
#
#
# Iconizer shell script by Steve Richey (srichey@floatlearning.com)
# Modified by Rich Ellis (rich@richellis.net) based on contributions on Github from crishoj, giria
# Further modified by Nick Pannuto (sneakyness@sneakyness.com) based on gist comments from previous forks
# https://gist.github.com/steverichey/8493f3bd31ae71a9c933/forks
#
# Changelog:
View free security advice.md

Security Guidelines

  • Use an iDevice

    • Use an iPod or an iPad without a SIM card
    • Use an iPhone
    • Do not jailbreak
  • Use Signal (iOS)

  • Use TextSecure + RedPhone (Android)

  • Android?

View gist:4316292
# This file was generated by Tor; if you edit it, comments will not be preserved
# The old torrc file was renamed to torrc.orig.1 or similar, and Tor will ignore it
ExitNodes {us}
StrictExitNodes 1
ControlPort 9051
DirReqStatistics 0
HashedControlPassword 16:B4E75CA579C1C7D46016FFED1E8F35967198031230124FC45E4CD09D97
Log notice stdout
View gist:3346693
//
// SideMenuViewController.m
// MFSideMenuDemo
//
// Created by Michael Frederick on 3/19/12.
#import "ANSideMenuController.h"
#import "MFSideMenu.h"
#import "ANGlobalStreamController.h"
#import "ANUserStreamController.h"