This gist is created with Peroof, a minimalist yet fancy jsPerf alternative
Visit http://peroof.ak.fish/akfish/fa69801cf894a5d347bed795849e3493 to run this perf live.
This gist is created with Peroof, a minimalist yet fancy jsPerf alternative
Visit http://peroof.ak.fish/akfish/fa69801cf894a5d347bed795849e3493 to run this perf live.
| import React from 'react' | |
| import Hypercube from 'react-hypercube' | |
| // Use normal `style` attributes | |
| class My3DComponent extends React.Component { | |
| render() { | |
| return ( | |
| <div style={{ | |
| width: '800px', | |
| height: '800px', |
| // flow type alias | |
| // see http://flowtype.org/docs/type-aliases.html | |
| type MVP = { | |
| m: vec4, | |
| v: vec4, | |
| p: vec4 | |
| } | |
| @uniform | |
| const UFoo _.extends(UMVP, { |
| var opts = { | |
| background: { b: -0.1, s: 0.25, h:44 } | |
| }; | |
| var AncientMap = Shape.Declare() | |
| .Rule(function() { | |
| new Wall() | |
| .adjust({b: 0.1, h: 34}); | |
| new Wall() | |
| .translateY(0.95) |
| // The compiler | |
| var AK = require('ak'), | |
| // Render target | |
| canvas = require('ak/target/node'); | |
| // This compiles a CFDG file into a JavaScript class | |
| var Art = AK.Generate('path/to/src.cfdg'); | |
| // Create an instance with canvase target | |
| var art = new Art(canvas); |
| ---------------------------------------------------------- | |
| -- Active Cooling Big Reactor Monitor -- | |
| -- -- | |
| -- Minecraft HermitCraft FTB Infinity Episode 28 -- | |
| -- https://www.youtube.com/watch?v=cIPxwZJWOiE -- | |
| -- -- | |
| -- YouTube Channel http://youtube.com/hypnotizd -- | |
| -- -- | |
| -- Add PID Algorithm By AKFish -- | |
| -- https://github.com/akfish -- |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; |
| # Implement worker class | |
| class FooWorker extends SeaWorker | |
| @worker_service 'fac', (n) -> do_stuff_with n | |
| # Simple Array, maxiumn 10 workers | |
| FooWorker.map [0, 1, 2, n], 'fac', 10 | |
| # Reduce |
| define (require, exports, module) -> | |
| # Get shared object container | |
| shared = require './shared' | |
| # Get things out | |
| # As long as this code is run after producer, everything will be there | |
| console.assert shared.flag? | |
| console.assert shared.flag | |
| console.assert shared.doggy == 'wow' |