This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
yarn add chrome-remote-interface | |
yarn add lighthouse | |
node run headless_chromium.js | |
*/ | |
const chrome = require('chrome-remote-interface'); | |
const { ChromeLauncher } = require('lighthouse/lighthouse-cli/chrome-launcher'); | |
const _ = require('lodash'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Mocha from 'mocha'; | |
import glob from 'glob'; | |
import _ from 'lodash/lodash'; | |
import chai from 'chai'; | |
import { shallow, mount, render } from 'enzyme'; | |
import chaiEnzyme from 'chai-enzyme'; | |
glob('webroot/components/**/tests/**/*.js', (err, files) => { | |
var runner = new Mocha({ | |
ui: 'bdd', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mocha Tests</title> | |
<link href="jspm_packages/npm/[email protected]/mocha.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<div id="mocha"></div> | |
<script src="jspm_packages/system.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: 'webroot', | |
// frameworks to use | |
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | |
frameworks: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@keyframes snow { | |
0% {background-position: 0px 0px, 0px 0px, 0px 0px;} | |
50% {background-position: 500px 500px, 100px 200px, -100px 150px;} | |
100% {background-position: 500px 1000px, 200px 400px, -100px 300px;} | |
} | |
@-moz-keyframes snow { | |
0% {background-position: 0px 0px, 0px 0px, 0px 0px;} | |
50% {background-position: 500px 500px, 100px 200px, -100px 150px;} | |
100% {background-position: 400px 1000px, 200px 400px, 100px 300px;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ORMModel extends CI_Model { | |
public function __construct() { | |
parent::__construct(); | |
} | |
public function __call($name, $args) { | |
$method = strtolower(substr($name, 0, 3)); |