I hereby claim:
This file contains 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
/** | |
* @param {number[][]} board | |
* @return {void} Do not return anything, modify board in-place instead. | |
*/ | |
var gameOfLife = function(board) { | |
let neighbors = [0, 1, -1]; | |
let rows = board.length; | |
let cols = board[0].length; | |
let copyBoard = []; | |
copyBoard.length = rows; |
This file contains 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
{"nodes":[{"id":"appworker-134.optiturn.com","group":"ot"},{"id":"production-product-research-web-jon-theiss","group":"service"},{"id":"production-smart-disposition-web-dana-dewolf","group":"service"},{"id":"production-ds-shipping-cost-app-lacey-hedley","group":"service"},{"id":"appworker-135.optiturn.com","group":"ot"},{"id":"production-smart-disposition-web-garry-leigers","group":"service"},{"id":"appworker-131.optiturn.com","group":"ot"},{"id":"production-smart-disposition-web-ted-conrow","group":"service"},{"id":"production-product-research-web-wilma-otsuka","group":"service"},{"id":"appworker-132.optiturn.com","group":"ot"},{"id":"production-product-research-web-eric-reary","group":"service"},{"id":"production-product-research-web-alvin-menkin","group":"service"},{"id":"production-ds-bulq-pricing-app-maria-thierry","group":"service"},{"id":"production-dataswamp-rails-lewis-siriano","group":"service"},{"id":"production-smart-disposition-web-troy-weltch","group":"service"},{"id":"production-ds-bob-barker-a |
This file contains 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
function _openPrintScc14Window() { | |
const url = $state.href('print-scc14', { | |
scc14: vm.masterPack.scc14, | |
quantity: vm.masterPack.quantity, | |
}) | |
$window.open(url, '_blank') | |
} |
This file contains 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
var webpack = require('webpack'); | |
var path = require('path'); | |
module.exports = function(env) { | |
return { | |
entry: { | |
// main pages JS | |
page1: './page1/index.js', | |
page2: './page2/index.js', | |
This project uses cssnext
, which allows us to use emerging CSS features at design time and transpile into currently-supported, browser-compatible CSS at runtime.
Styles can be found in app/styles. Inside this folder, you should familiarize yourself with the following structure:
styles
├── config
│ ├── fonts.json
This file contains 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
/** | |
* Crawler | |
* PhantomJS writes to stream with content of crawled pages | |
* Streams HTML from phantomjs after document load as ndjson | |
*/ | |
'use strict' | |
const ndjson = require('ndjson') | |
const phantom = require('phantom') |
This file contains 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
var jobsCountRemaining = 2; | |
// ternary | |
var completed = jobsCountRemaining === 0 ? true : false; | |
return completed; | |
// if-else | |
if (jobsCountRemaining === 0) { | |
completed = true; | |
} else { |
This file contains 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
/** | |
* Creates JSON for a single input field | |
* | |
* e.g. article[id] = 1 => { article: {id: 1}} | |
* | |
* @param {Node} inputElem - :input element to serialize | |
* @returns {object} | |
*/ | |
var serializeInputToJSON = function(inputElem) { | |
var name = inputElem.name; |
NewerOlder