sysctl -a | grep swap
$ sudo pkill -HUP -u _windowserver
library(tidyverse) | |
lights_dat <- read_csv("https://ckan.dataplatform.nl/dataset/83402c68-1c05-4aa5-ab28-2e99d2bc2261/resource/dc10e0ac-351a-49b6-b3db-d0152c29dc02/download/paal-20180906.csv") | |
pp <- | |
lights_dat %>% | |
filter(latitude > 50) %>% | |
ggplot(aes(x = longitude, y = latitude)) + | |
geom_point(alpha = 0.03, fill = "#FAFAAB", stroke = 0, pch = 21, size = 1.6) + | |
geom_point(alpha = 0.8, fill = "#FAFAAB", stroke = 0, pch = 21, size = 0.2) + |
Apple will reject apps that are using private url schemes (Ugh, Apple....) if they are pretty much obvius. Some apps are rejected and others are not, so, be aware of this issue before implementing any of those URL's in your app as a feature.
func generateRandomColor() -> UIColor { | |
let hue : CGFloat = CGFloat(arc4random() % 256) / 256 // use 256 to get full range from 0.0 to 1.0 | |
let saturation : CGFloat = CGFloat(arc4random() % 128) / 256 + 0.5 // from 0.5 to 1.0 to stay away from white | |
let brightness : CGFloat = CGFloat(arc4random() % 128) / 256 + 0.5 // from 0.5 to 1.0 to stay away from black | |
return UIColor(hue: hue, saturation: saturation, brightness: brightness, alpha: 1) | |
} |
package com.willowtreeapps.demo; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.view.KeyEvent; | |
import android.view.Window; | |
import android.webkit.WebView; | |
import android.webkit.WebViewClient; | |
public class MainActivity extends Activity { |
#!/usr/bin/env perl | |
# objc_api_visibility.pl | |
# by Ryan Petrich, inspired by Dustin Howett's Logos | |
# Reads all Objective-C method names from an installed SDK, determines their visibility and optionally compares against an iOS app binary | |
sub read_methods { | |
my $cmd = shift; | |
my $when_found = shift; | |
my $current_class; | |
open(LS_CMD, "$cmd |") or die "Can't run '$cmd'\n$!\n"; |