Posts

Showing posts from April, 2017

testing syntax highlighting add

OK! Got this working with gruvbox theme same as my vim setup. Basically, just add < link href = 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/gruvbox-dark.min.css' rel = 'stylesheet' /> < script src = '//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js' /> <script type= 'text/javascript' > hljs.initHighlightingOnLoad(); </ script > in <head> function $initHighlight (block, cls) { try { if (cls.search( /\bno\-highlight\b/ ) != - 1 ) return process(block, true , 0x0F ) + ` class = "${cls}" `; } catch (e) { /* handle exception */ } for ( var i = 0 / 2 ; i < classes.length; i++) { if (checkCondition(classes[i]) === undefined ) console.log( 'undefined' ); } } export $initHighlight; // note - you use csh for this not css! body { background : black; color : white; margin : 0

sort within blocks

Started using style guides, one of which specifies that CSS declarations be listed alphabetically. Not sure what most people’s solutions to that is, but I’m just going to whack CSS in however and periodically run vi{ :sort v - enter visual mode i{ - select inside braces : - enter command mode sort - sort alphabetically look at :help sort for other options, eg: %sort! - reverse alphabetical %sort u - sort and remove duplicate values %sort n - sort numeric etc

Node issues

Not sure quite what happened, but I pacman -Syu ‘d as normal and got a bunch of errors relating to npm (basically a whole list of exists in filesystem errors). Now, if I’d been sensible with the xps like I was with the latitude I would’ve done $sudo pacman -Syu --ignore npm , seen a missing ca-certificates.crt file and (hopefully) found my way to the Arch news posting that told me how to resolve. I could then have --ignore ‘d npm or whatever and figured out the real deal later. What I did do was rename /usr/lib/node_modules/npm (the source of the files I could see) to npm.bak then upgrade as normal. This has fucked me. Then I get errors any time I try to run any node or npm command saying shared library error, libcrypto.so.1.0.0 does not exist. Symlinked that to whatever libcrypto I did have, got same issue for libssl.so.1.0.0. Symlinked that , got some error about undefined ssl symbols or I dunno what. So. uninstalling and resintalling npm and node doesn’t work. downgra