Skip to content

Instantly share code, notes, and snippets.

View jasonbekolay's full-sized avatar

Jason Bekolay jasonbekolay

  • Yapp
  • Winnipeg, MB
View GitHub Profile
@jasonbekolay
jasonbekolay / trigger webViewWebContentProcessDidTerminate in simulator
Last active April 25, 2024 10:24
Killing a WKWebView content process in the iOS simulator to trigger a webViewWebContentProcessDidTerminate call
# In the command line, find the PID of your simulator process:
ps -p `pgrep launchd_sim`
# or if you have many simulators running:
ps -A | grep launchd_sim
# Find the PID of the WebContent process:
pgrep -P <simulator-pid> 'com.apple.WebKit.WebContent'
# kill it
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set rtp-=$HOME\vimfiles
set rtp^=C:\Users\jbekol01\vimfiles
set dir=C:\Users\jbekol01\vimfiles\swaps
set backupdir=C:\Users\jbekol01\vimfiles\backups
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ember Starter Kit</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://builds.emberjs.com/tags/v1.12.1/ember-template-compiler.js"></script>
<script src="http://builds.emberjs.com/tags/v1.12.1/ember.debug.js"></script>
<style id="jsbin-css">
# See https://twitter.com/octonion/status/555961809141002240 and https://twitter.com/octonion/status/555990175147642880
lightWeight = 10.0
heavyWeight = lightWeight + 1.0
def sortPairs(pair1, pair2, pair3):
heavies = []
balance1 = balance([pair1[0], pair2[0]], [pair1[1], pair3[0]])
if balance1 == 'balanced':