Skip to content

Instantly share code, notes, and snippets.

Avatar

Varoot Phasuthadol varoot

View GitHub Profile
@varoot
varoot / thai-tracking-fix-for-ai-0.1.jsx
Created Nov 28, 2015
Thai Tracking Fix v0.1 for Adobe Illustrator
View thai-tracking-fix-for-ai-0.1.jsx
/*
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 Aug 29, 2015
Chrome Bug for border-radius on img
View chrome-radius.html
<!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 Aug 29, 2015
How to use react-router as a component (when server rendering only support rendering of components)
View app-router.jsx
var ReactRouter = require('react-router');
var AppRouter = React.createClass({
propTypes: {
originalUrl: React.PropTypes.string
},
getInitialState: function() {
return { output: (<span>Routing Error</span>) };
},
You can’t perform that action at this time.