Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@Laeyoung
Laeyoung / tf-resnet-openapi.json
Last active October 1, 2019 01:53
tf-resnet OpenAPI 3.0 Spec
{
"openapi": "3.0.0",
"info": {
"title": "TensorFlow Resnet API by Ainize",
"version": "0.1.1"
},
"servers": [
{
"url": "http://34.85.117.64:8501/v1/models"
}
@Laeyoung
Laeyoung / uitextfieldwithpadding
Last active July 20, 2018 14:02 — forked from lawreyios/uitextfieldwithpadding
Add padding to UITextField - Swift 3.0
class CustomSearchTextField: UITextField {
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
override func textRect(forBounds bounds: CGRect) -> CGRect {
return UIEdgeInsetsInsetRect(bounds, UIEdgeInsetsMake(0, 15, 0, 15))
}
override func editingRect(forBounds bounds: CGRect) -> CGRect {
@Laeyoung
Laeyoung / alleys
Last active January 5, 2016 09:24
Alleys Player Sample URL
[Sample](http://alleys.co/player?id=Rv8CaJQ3WI8)