Skip to content

Instantly share code, notes, and snippets.

View overcyn's full-sized avatar

Kevin Dang overcyn

View GitHub Profile
client.println("HTTP/1.1 200 OK");
client.println("Content-type:text/html");
client.println("<!DOCTYPE html><html><body><style>a{appearance:button;cursor:default;background-color:#008cba;color:black;border:0;color:white;padding:15px 32px;text-align:center;text-decoration:none;box-sizing:border-box;display:inline-block;font-size:16px;font-family:sans-serif;width:100%}p{margin:10px 0}</style>");
client.print("<p><a href=\"/1\">R1 off</a></p>");
client.print("<p><a href=\"/2\">R1 on</a></p>");
client.print("<p><a href=\"/3\">R2 off</a></p>");
client.print("<p><a href=\"/4\">R2 on</a></p>");
client.print("<p><a href=\"/5\">R3 off</a></p>");
client.print("<p><a href=\"/6\">R3 on</a></p>");
client.print("<p><a href=\"/7\">R4 off</a></p>");
<!DOCTYPE html><html><body><style>a{appearance:button;cursor:default;background-color:#008cba;color:black;border:0;color:white;padding:15px 32px;text-align:center;text-decoration:none;box-sizing:border-box;display:inline-block;font-size:16px;font-family:sans-serif;width:100%}p{margin:10px 0}</style>
<p><a href="/1">R1 off</a></p>
<p><a href="/2">R1 on</a></p>
<p><a href="/3">R2 off</a></p>
<p><a href="/4">R2 on</a></p>
<p><a href="/5">R3 off</a></p>
<p><a href="/6">R3 on</a></p>
<p><a href="/7">R4 off</a></p>
<p><a href="/8">R4 on</a></p>
</body></html>
import UIKit
class CommentCountCell: UITableViewCell {
lazy var child: UIView = {
var child = UIView(frame: CGRect.zero)
child.translatesAutoresizingMaskIntoConstraints = false
child.backgroundColor = .red
return child
}()
@overcyn
overcyn / MatchaCLA.txt
Last active September 27, 2017 02:50
Matcha Individual Contributor License Agreement
Matcha Individual Contributor License Agreement
In order to clarify the intellectual property license granted with Contributions from any person or entity, Matcha LLC. ("Matcha") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Matcha; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Matcha. Except for the license granted herein to Matcha and recipients of software distributed by Matcha, You reserve all right, title, and interest in and to Your Contributions.
Definitions.
"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Matcha. For legal entities, the entity making a Contribution and all other ent
@overcyn
overcyn / github-markdown.css
Last active January 1, 2017 18:33
Custom github markdown CSS for VSCode
@font-face {
font-family: octicons-link;
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAA
# jupyter notebook --notebook-dir=/opt/ --no-browser --ip=0.0.0.0 --port=8080 &
# https://gist.github.com/davemkirk/90140b1edde8d18c8b83
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder ".", "/opt/", type: "nfs"
config.vm.network :forwarded_port, host: 2200, guest: 8080
config.vm.network "private_network", type: "dhcp"
config.nfs.map_uid = Process.uid
config.nfs.map_gid = Process.gid
@interface MSHidesConferenceRoomsViewController : UIViewController <MRMapViewDelegate>
@property (nonatomic, strong) MRMapView *mapView;
@property (nonatomic, assign) BOOL conferenceHidden;
@property (nonatomic, strong) NSArray *placemarks;
@end
@implementation MSHidesConferenceRoomsViewController
- (id)initWithNibName:(NSString *)name bundle:(NSBundle *)bundle {
if ((self = [super initWithNibName:name bundle:bundle])) {
https://edit.meridianapps.com/api/pages/5657751292215296?id=5636470664593408
{
"section_headers":[ ],
"kind":"page",
"layout":"page_layout_1",
"name":"New Page",
"data":"{\"section_headers\": [], \"kind\": \"page\", \"layout\": \"page_layout_1\", \"name\": \"New Page\", \"type\": \"default\", \"id\": \"5657751292215296\", \"description\": \"<p><strong>Telephone:</strong>&nbsp;Transplantation Department, Prof. Eytan Mor:&nbsp;<a href=\\\"Tel:+972-3-9376528\\\">972-3-9376528</a></p>\\n<p><strong>Fax:</strong>&nbsp;972-3-9376582</p>\\n<p><strong>Emergencies:</strong>&nbsp;Direct communication with the Transplant Coordinator,&nbsp;<br />Rachel Beregin, Tel:&nbsp;<a href=\\\"Tel:+972-50-6264775\\\">972-50-6264775</a></p>\\n<div>&nbsp;</div>\"}",
"type":"default",
"id":"5657751292215296",
"description":"<p><strong>Telephone:</strong>&nbsp;Transplantation Department, Prof. Eytan Mor:&nbsp;<a href=\"Tel:+972-3-9376528\">972-3-9376528</a></p>\n<p><strong>Fax:</strong>&nbsp;972-3-9376582</p>\
#import <UIKit/UIKit.h>
@interface MSCustomRouteViewController : UIViewController
@end
@interface MSCustomRouteViewController () <MRMapViewDelegate>
@property (nonatomic, strong) MRMapView *mapView;
@property (nonatomic, strong) MRDirections *directions;
@property (nonatomic, strong) MRPathOverlay *routeOverlay;
@end
for (i = 1; i <= askNumber; i++) {
if (i % 3 && i % 5) {
document.write(i)
}
if (i % 15 == 0) {
document.write('gene-parmesean')
} else {
if (i % 3 == 0) {
document.write('gene')
}