A Simplex, Hypercube and Cross Polytope from Paul Bourke's Hyperspace User Manual.
Visualized with hypersolid.js by Miłosz Kośmider.
angular.module('pivotDirective') | |
.directive('pivot', ['localStorageService', function (localStorageService) { | |
return { | |
restrict: 'AE', | |
scope: { | |
data: '=' | |
}, | |
link: function (scope, elem, attr) { | |
var renderers = $.extend($.pivotUtilities.renderers ); |
import somethingHTML from './something.html!text'; | |
angular.module('myApp',[]) | |
.directive('myDirective', function() { | |
return { | |
template: somethingHTML | |
} | |
}); |
// exporter1.js | |
let foo = 1; | |
export { foo as default }; // exports the foo binding | |
foo = 2; | |
// exporter2.js | |
let foo = 1; | |
export default foo; // creates a new binding named *default* and initializes it to 1. | |
foo = 2; // assigns to the foo binding which is not exported |
license: mit | |
height: 700 |
/* | |
* A virtual dice roller that accepts standard dice notation | |
* | |
* | |
* Dice Notation | |
* | |
* [Num Dice] d <Num Sides> [Modifier] | |
* | |
* | |
* Num Dice - Number of dice to roll (optional) |
A Simplex, Hypercube and Cross Polytope from Paul Bourke's Hyperspace User Manual.
Visualized with hypersolid.js by Miłosz Kośmider.
/** | |
* Inspired by XRegExp via 2ality | |
* http://www.2ality.com/2012/12/template-strings-xregexp.html | |
* http://xregexp.com/ | |
*/ | |
import test from 'ava'; | |
export function rx(flags) { | |
const trailingComments = /\s+#.*$/gm; |
npm install -g jspm@beta
jspm init
jspm install angular2 reflect-metadata zone.js es6-shim
This will create a jspm_packages
folder, and a config.js
file.
Open the config.js
file - this file manages options for the System.js loader - tweak it as appropriate
{-# LANGUAGE TypeOperators, NoImplicitPrelude #-} | |
import qualified Data.List as L | |
import Control.Arrow | |
import Control.Monad | |
import Prelude (Bool, Int, Float, fst, snd, flip, ($), uncurry, Show(..), String, (.), otherwise, IO) | |
import qualified Prelude as P | |
data s :. a = !s :. !a | |
infixl 1 :. |
// this is now a module: | |
// https://github.com/WebReflection/backtick-template#es2015-backticks-for-es3-engines-- | |
var template = require('backtick-template'); | |
// just string | |
const info = 'template'; | |
`some ${info}` === template('some ${info}', {info}); |