Skip to content

Instantly share code, notes, and snippets.

View jerrypm's full-sized avatar
🎯
Focusing

Jerry <N.P> jerrypm

🎯
Focusing
View GitHub Profile
import UIKit
import WebKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Configure the web view for JavaScript injection
configureWebView()
@jerrypm
jerrypm / MakeTransparentHoleOnOverlayView.swift
Created January 3, 2019 09:53 — forked from aldo-jlaurenstin/MakeTransparentHoleOnOverlayView.swift
Make a Transparent Hole on an Overlay UIView
//
// MakeTransparentHoleOnOverlayView.swift
//
// Created by James Laurenstin on 2015-04-10.
// Copyright (c) 2015 Aldo Group Inc. All rights reserved.
//
import UIKit
class MakeTransparentHoleOnOverlayView: UIView {
@jerrypm
jerrypm / short04.4.html
Created September 15, 2018 07:01 — forked from diska/short04.4.html
「vertexたくさん描くと重い」というテストコード。
<h1>vertices</h1>
<input id="SLID" type="range" min="1" max="21" value="10"><input id="TEXT">
<canvas id="CNVS" width="1024" height="1024"></canvas><hr/>
<script>
const vs=`attribute vec4 a;uniform float vt;
void main(){
gl_PointSize=1.0;
float th=vt*a.z/2.0;
gl_Position=a;
gl_Position.xy*=mat2(cos(th),-sin(th),sin(th),cos(th));