The syntax of the Whitespace programming language is invisible—it uses only
space, tab, and line feed—so editing a program manually is tedious and most
people will instead develop using a “Whitespace assembly” syntax with readable
opcodes. I am working on a to-be language server
for Whitespace that will use inlay hints to display the opcodes in the invisible
syntax. The LSP only allows Type
and Parameter
values for InlayHintKind
,
which is exclusive of this use case (vscode#151920).
I propose that this enum be extended to include a variant for this case.
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
#!/usr/bin/env bash | |
# https://raspberrypi.stackexchange.com/questions/4194/getting-npm-installed-on-raspberry-pi-wheezy-image | |
# Deletes previous installation of node | |
# Architecture can be found with `uname -m` | |
version=$1 | |
if [ $# -eq 0 ]; then | |
read -p "Node version to install (e.g. v8.11.3): " version |
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
#!/bin/sh | |
# Prevent console.log from appearing in commits | |
# https://gist.github.com/guilherme/9604324 | |
# Redirect output to stderr | |
exec 1>&2 | |
# Enable user input | |
exec < /dev/tty | |
consoleregexp='^\+.*console\.log' |
Reference - https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
sudo apt-get install libgtest-dev
sudo apt-get install cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp *.a /usr/lib
sudo mkdir /usr/local/lib/gtest
sudo ln -s /usr/lib/libgtest.a /usr/local/lib/gtest/libgtest.a
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
// https://drafts.csswg.org/css-values-3/#integers | |
var INTEGER = "[-\\+]?\\d+"; | |
// https://drafts.csswg.org/css-values-3/#numbers | |
var NUMBER = "[-\\+]?(?:\\d*\\.)?\\d+"; | |
// https://drafts.csswg.org/css-values-3/#percentages | |
var PERCENTAGE = NUMBER + "%"; | |
// https://drafts.csswg.org/css-values-3/#angle-value | |
var ANGLE = NUMBER + "(:?deg)|(:?grad)|(:?rad)|(:?turn)"; | |
function cssFunction(name, values, optional) { |
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
loadScripts([ | |
'https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.1/tinycolor.min.js', | |
'https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js' | |
], () => { | |
console.log('Scripts loaded'); | |
let color = tinycolor('hsl(207, 95%, 44%)'); | |
console.log(color); | |
$('body').css('background-color', color.toHexString()); | |
}); |
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
@echo off | |
:start | |
cls | |
tasklist | |
echo ========== | |
set /p process=Process: | |
taskkill /f /im %process% | |
pause | |
goto start |