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
{} |
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
const CryptoJS = require('crypto-js'); | |
const msg = CryptoJS.enc.Hex.parse('00010203'); | |
// key & iv - 128-bit (16 byte) | |
const key = CryptoJS.enc.Hex.parse('1234567890abcdef1234567890abcdef'); | |
const iv = CryptoJS.enc.Hex.parse('fedcba0987654321fedcba0987654321'); | |
// AES-128 | |
const enc = CryptoJS.AES.encrypt(msg, key, { |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "start-web-server", | |
"type": "npm", | |
"script": "start", | |
// "path": "packages/xxx/", <-- for monorepo | |
"isBackground": true, | |
"problemMatcher": [ |
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 getDisplayName from 'react-display-name'; | |
/** | |
* Create HOC with recursive Enhancement. | |
* | |
* @param {import('react').ComponentType} Component | |
* @returns {import('react').FunctionComponent} | |
*/ | |
export function withEnhancement(Component) { | |
const Enhanced = (props) => { |
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
/// <reference path="~/www/js/r.js" /> |
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
public static AssemblyDebugInfo ReadAssemblyDebugInfo(Assembly assembly) | |
{ | |
// Parses PE headers structure from the module base address pointer | |
var modulePtr = Marshal.GetHINSTANCE(assembly.ManifestModule); | |
var peHdrs = PeHeaders.FromUnmanagedPtr(modulePtr); | |
// Depending on whether this is 32-bit or 64-bit module, the offsets are | |
// slightly different |