Skip to content

Instantly share code, notes, and snippets.

@iconmaster
iconmaster / uninstallAppleConnect.txt
Created January 5, 2021 16:47
Uninstall AppleConnect
sudo /Library/Application\ Support/AppleConnect/AppleConnectAgent.app/Contents/Resources/ac_uninstall.sh
@iconmaster
iconmaster / ACNH 2P limitations.md
Last active January 14, 2024 12:09
Animal Crossing: New Horizons second-player limitations

"2P": Any secondary player of Animal Crossing: New Horizons on the same Switch system as the Resident Representative.

Facility Upgrades

  • 2P CANNOT donate to building Nook's Cranny
  • 2P CAN donate to building the museum

Public Works

  • 2P CANNOT choose the location of bridges or ramps
@iconmaster
iconmaster / FavoriteSketchPlugins.md
Last active March 24, 2020 22:06
Favorite Sketch plugins

Sketch Runner

https://sketchrunner.com/

Sketch Runner doesn't technically "do" a great deal, but it makes everything else get done faster. It's a command line for Sketch. Takes some getting used to but once you do you won't want to be without it.

Jason Sonburn Plugins

Symbol Organizer https://github.com/sonburn/symbol-organizer

Sorts symbols into labeled columns. Just a one-click way to keep your symbols page tidy.

@iconmaster
iconmaster / Stack_Test.tsx
Created August 22, 2018 19:23
Framer X Stack and its options
import * as React from "react";
import { Frame, Stack } from "framer";
export class Stack_Test extends React.Component<Props> {
render() {
return (
<Stack
width={this.props.width}
height={this.props.height}
@iconmaster
iconmaster / PropertyControl.tsx
Last active January 4, 2019 01:44
How to configure a Framer X component for user property controls
import * as React from "react"
// must include PropertyControls and ControlType in import
import { Frame, PropertyControls, ControlType } from "framer"
// initialize props and their data types
interface Props {
textControl: string
numberControl: number
dropdownControl: 'black' | 'gray' | 'white' // this is an enum, the actual values may not matter here
booleanControl: boolean
@iconmaster
iconmaster / Framer Module Style Guide.md
Last active October 19, 2017 20:41
Recommendations for designing Framer modules for users

Capitalization

Framer employs lowerCamelCase for almost everything: functions, variables properties, etc. Classes, however, use TitleCase. Events are a bit of a special case, as explained under Events.

Constructors

Users are accustomed to instantiating objects with constructor syntax, so try to follow this approach in building your own classes.

myCustomClassInstance = new CustomClass
	# simple instance properties
	property: value0
@iconmaster
iconmaster / Curves.coffee
Last active October 27, 2017 12:58
A simple Framer module for performing animation curve math
###
# Adapted from https://gist.github.com/gre/1650294
# USING THE CURVES MODULE
# Require the module
Curves = require "Curves"
# Translate a value between 0 and 1 into the "curved" value
print Curves.easeOutQuad(0.5)
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@iconmaster
iconmaster / UIImage+Gradient.swift
Created May 18, 2017 21:12
Reflected alpha gradient on UIImage
import UIKit
import CoreImage
extension UIImage {
struct directionOptions: OptionSet {
let rawValue: Int
static let left = directionOptions(rawValue: 0)
static let right = directionOptions(rawValue: 1)