Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@varoot
varoot / thai-tracking-fix-for-ai-0.1.jsx
Created November 28, 2015 11:04
Thai Tracking Fix v0.1 for Adobe Illustrator
/*
Thai Tracking Fix v0.1 for Adobe Illustrator
by Varoot Phasuthadol
2015-11-28
*/
var count = 0;
function getTextFrames(selection) {
var textFrames = [];
@varoot
varoot / chrome-radius.html
Last active August 29, 2015 14:20
Chrome Bug for border-radius on img
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no' />
<title>Chrome Bug - Border Radius</title>
<style>
* {border: 0; margin: 0; padding: 0;}
body {margin: 20px;}
.circle {border-radius: 50%;}
@varoot
varoot / app-router.jsx
Last active August 29, 2015 14:16
How to use react-router as a component (when server rendering only support rendering of components)
var ReactRouter = require('react-router');
var AppRouter = React.createClass({
propTypes: {
originalUrl: React.PropTypes.string
},
getInitialState: function() {
return { output: (<span>Routing Error</span>) };
},