CLICK ME
yes, even hidden code blocks!
print("hello world!")
// | |
// MKMapView+ZoomLevel.swift | |
// Monizze | |
// | |
// Created by Dylan Gyesbreghs on 23/06/2017. | |
// Copyright © 2017 DGyesbreghs. All rights reserved. | |
// https://oleb.net/blog/2010/05/set-the-zoom-level-of-mkmapview/ | |
// | |
import MapKit |
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder |
#!/bin/bash | |
if [ -f ~/Library/KeyBindings/DefaultkeyBinding.dict ]; then | |
echo "~/Library/KeyBindings/DefaultkeyBinding.dict already exists" | |
exit -1 | |
fi | |
mkdir -p ~/Library/KeyBindings | |
cat << EOF > ~/Library/KeyBindings/DefaultkeyBinding.dict | |
{ | |
"₩" = ("insertText:", "\`"); |
import UIKit | |
extension UIEdgeInsets { | |
var horizontal: CGFloat { return right + left } | |
var vertical: CGFloat { return top + bottom } | |
} | |
extension CGSize { | |
func paddedBy(_ insets: UIEdgeInsets) -> CGSize { | |
return CGSize(width: width + insets.horizontal, height: height + insets.vertical) |
#!/bin/sh | |
echo "generating I18N.swift" | |
touch tempI18N.swift | |
echo "struct I18N {" >> tempI18N.swift | |
inputfile=${SRCROOT}/Pomodoro/Resources/en.lproj/Localizable.strings | |
while IFS= read -r line |
extension UIVisualEffectView { | |
private var filterLayer: CALayer? { | |
return layer.sublayers?.first | |
} | |
private var blurFilter: NSObject? { | |
return filterLayer? | |
.filters?.flatMap({ $0 as? NSObject }) | |
.first(where: { $0.value(forKey: "name") as? String == "gaussianBlur" }) |
package xxx | |
import android.content.Context | |
import android.graphics.Bitmap | |
import android.graphics.PixelFormat | |
import android.hardware.display.DisplayManager | |
import android.hardware.display.VirtualDisplay | |
import android.media.ImageReader | |
import android.media.projection.MediaProjection | |
import android.util.Log |
{ | |
"hosting": { | |
"headers": [ | |
{ | |
"source": "/.well-known/apple-app-site-association", | |
"headers": [{"key": "Content-Type", "value": "application/json"}] | |
} | |
] | |
} | |
} |