- implement function
reverseString(str)
- implement function
factorial(n)
- implement function
removeFromArray(arr, arg1, arg2, ...)
- What will be the output of this:
<!-- Simplest solution is to just label the element as a element within an element --> | |
<div class="block"> | |
Content | |
<div class="block__element"> | |
Content | |
<div class="block__element__element"> | |
Content related to `block__element` | |
</div> | |
</div> | |
</div> |
{ | |
"name": "my-package", | |
"version": "1.2.0", | |
"scripts": { | |
"patch-version": "node patch-version.js", | |
"tag-version": "node tag-version.js \"release-tag\"", | |
"prerelease": "npm run patch-version && npm run tag-version", | |
"release": "npm publish", | |
} | |
} |
var Nightmare = require('nightmare'); | |
var vo = require('vo'); | |
vo(run)(function(err, result) { | |
if (err) throw err; | |
}); | |
fu |
postcss: () => { | |
return [ | |
cssnano({ | |
reduceIdents: false, | |
discardDuplicates: true, | |
autoprefixer: true | |
}) | |
]; | |
},modules: { | |
loaders: [{ |
type Color = { r: number, g: number, b: number }; | |
function hexToRgb(hex: string): Color { | |
if (hex.length === 3) { | |
let [hr, hg, hb] = hex.split(''); // ['F', '0', '0'] | |
return hexToRgb(`${hr}${hr}${hg}${hg}${hb}${hb}`); | |
} | |
let [r, g, b] = [0, 2, 4] | |
.map(offset => hex.substring(offset, offset + 2)) // ['FF', '00', '00'] | |
.map(hex => parseInt(hex, 16)); // [255, 0, 0] |
componentDidUpdate(prevProps) { | |
for (const index in prevProps) { | |
if (prevProps[index] !== this.props[index]) { | |
console.log(index, this.props[index], '-->', prevProps[index]); | |
} | |
} | |
} |
@import "../../../../SASS/lib/core"; | |
@import "../../Cards/Card/mixins"; | |
.tabs { | |
padding: 0; | |
border: $constants-border; | |
border-radius: 8px; | |
.tabs_header { | |
display: flex; |
/** | |
* Initialize your data structure here. | |
*/ | |
var MyLinkedList = { | |
head: null, | |
length: 0, | |
Node: function (val){ | |
return { |
rem see https://github.com/coreybutler/nvm-windows/issues/300 | |
@echo off | |
SETLOCAL EnableDelayedExpansion | |
if [%1] == [] ( | |
echo Pass in the version you would like to install, or "latest" to install the latest npm version. | |
) else ( | |
set wanted_version=%1 |