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
#fixed now! | |
Param( | |
[string]$html, | |
[string]$docx | |
) | |
# make the powershell process switch the current directory. | |
$oldwd = [Environment]::CurrentDirectory | |
[Environment]::CurrentDirectory = $pwd |
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
const getByPropertyChain = (obj, chain) => { | |
const ca = chain.split('.') | |
return ca.reduce((acc, property) => acc && acc[property], obj) | |
} | |
//Example: | |
const testObj = {a: 1, b: {d: 0, e: {z:{q:4}}}, c: 5} | |
getByPropertyChain(testObj, 'b.e.z.q') | |
//try it out here https://runkit.com/niktv/5c8207eef650670015c2ac43 |
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
<!DOCTYPE html> | |
<html> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.css"> | |
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/backgrid.js/0.3.7/backgrid.css">--> | |
<head> | |
<meta charset="utf-8"> | |
<title>nik's backgrid clone row</title> | |
</head> |