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 fs = require('fs'); | |
const reverseNum = s => String(s).split('').reverse().join(''); | |
const genPalindrome = (len) => { | |
const palindromes = new Set(); | |
const mod = len%2 !== 0; | |
const iLen = ~~(len/2); | |
const start = Math.pow(10, iLen - 1); | |
const end = Math.pow(10, iLen) - 1; | |
for (let i = end; i >= start; i--) |
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
# | |
# STL GDB evaluators/views/utilities - 1.03 | |
# | |
# The new GDB commands: | |
# are entirely non instrumental | |
# do not depend on any "inline"(s) - e.g. size(), [], etc | |
# are extremely tolerant to debugger settings | |
# | |
# This file should be "included" in .gdbinit as following: | |
# source stl-views.gdb or just paste it into your .gdbinit file |