Skip to content

Instantly share code, notes, and snippets.

View ehzhang's full-sized avatar
🌭
👀

Edwin Zhang ehzhang

🌭
👀
View GitHub Profile
console.log("oh no")
<html>
<head>
<style>
* {
box-sizing: border-box;
}
.item {
display: inline-block;
width: 20px;
@ehzhang
ehzhang / prince-border-bug-workaround.html
Last active April 25, 2017 16:29
prince box-sizing padding/border bug.
<html>
<head>
<style>
* {
box-sizing: border-box;
}
.item {
width: 20px;
height: 20px;
@ehzhang
ehzhang / fixed-data-table.js
Last active April 25, 2016 16:23
test cellClassName fix
/**
* FixedDataTable v0.3.0
*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://rawgit.com/facebook/fixed-data-table/v0.3.0/dist/fixed-data-table.css">
</head>
<div id="content"></div>
<body>
<!-- The none minified version of react throws:
@ehzhang
ehzhang / glass.html
Created March 25, 2014 03:24
[wearscript] PokemonPebble
<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
trainer = {
name: "Edwin",
pokemon: [
{
name: "Pikachu",
level: 23,
@ehzhang
ehzhang / PokemonPebble.html
Last active August 29, 2015 13:57
Pokemon Pebble
<html style="width:100%; height:100%; overflow:hidden">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
padding: 100px;
}
.poke {