defaults write com.apple.frameworks.diskimages skip-verify true
defaults write com.apple.finder CreateDesktop false; killall Finder
touch ~/.hushlogin
//: | |
//: UserDefaultable.swift | |
//: | |
//: Created by Andyy Hope on 18/08/2016. | |
//: Twitter: @andyyhope | |
//: Medium: Andyy Hope, https://medium.com/@AndyyHope | |
import Foundation | |
// MARK: - Key Namespaceable |
// by david whyte >:) | |
int[][] result; | |
float t, c; | |
float ease(float p) { | |
return 3*p*p - 2*p*p*p; | |
} | |
float ease(float p, float g) { |
is_iPhone = Framer.Device.deviceType.includes "apple-iphone" | |
is_iPhonePlus = Framer.Device.deviceType.includes "plus" | |
is_iPhoneNotPlus = is_iPhone and not is_iPhonePlus | |
if is_iPhonePlus and Utils.isFramerStudio() then Framer.Device.content.scale = 3 | |
if is_iPhoneNotPlus and Utils.isFramerStudio() then Framer.Device.content.scale = 2 | |
document.querySelector("head>meta[name=viewport]").setAttribute "content", | |
"width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no" | |
Framer.Device._update() |
<!doctype html> | |
<meta charset="utf-8"> | |
<title>Example</title> | |
<style> | |
div { | |
width: 100px; | |
height: 100px; | |
background: black; | |
animation-duration: .5s; |
SFContentBlockerManager.reloadContentBlockerWithIdentifier()
with the extension’s id in application:didFinishLaunchingWithOptions:
to auto-reload the blocker in development modereloadContentBlockerWithIdentifier()
then you need to switch the blocker off and on again in the Safari settings (stop the app in Xcode if the switch is not moving)url-filter
regexp need to be escaped with double backslashes, e.g. facebook\\.net
if-domain
, it needs to be an array, even for one elementfoo.com
might not match www.foo.com
even though I think it’s supposed to (UPDATE: They've changed it in one of/* | |
Minimal Facebook Messenger | |
========================== | |
1. Make a Fluid (http://fluidapp.com/) instance of https://facebook.com/messages/ | |
1. a. (You need to buy the paid version of Fluid to modify UserStyles) | |
2. Apply the below CSS as a Userstyles stylesheet | |
3. Like magic, you can now message without all the cruft of Full Facebook | |
# http://stackoverflow.com/a/646643 | |
String::startsWith ?= (s) -> @slice(0, s.length) == s | |
String::endsWith ?= (s) -> s == '' or @slice(-s.length) == s |
var myCanvasView = new View({ | |
x:100, y:100, | |
width:200, height:200 | |
}) | |
// Add a nice background color so we see it | |
myCanvasView.style.backgroundColor = "rgba(255,0,0,.5)" | |
// This is the tricky bit, we create a canvas element (so we have a reference to it) and insert it into the view |
class GoogleAnalytics | |
@init: (webPropertyId) -> | |
@_initQueue webPropertyId | |
scriptTag = @_createScriptTag() | |
@_injectScriptTag scriptTag | |
true | |
@_initQueue: (webPropertyId) -> | |
window._gaq ?= [] | |
window._gaq.push ['_setAccount', webPropertyId] |