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
BNF = { } | |
-- create definition | |
BNF["::="] = function (stack) | |
local non_terminal = pop(stack) ; | |
push(BNF,non_terminal) ; end | |
-- add words to definition | |
BNF[";"] = function (stack) | |
local non_terminal = pop(BNF) |
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
# MIT License | |
# | |
# Copyright (c) 2018 Jelle Hermsen | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
__schema { | |
description | |
queryType { | |
kind | |
name | |
} | |
mutationType { | |
kind | |
name | |
} |
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 { | |
CachedInputFileSystem, | |
FileSystem, | |
ResolveContext, | |
ResolverFactory, | |
} from 'enhanced-resolve'; | |
import { build, ImportKind, Loader } from 'esbuild'; | |
import * as Fs from 'fs'; | |
import Module from 'module'; | |
import * as Path from 'path'; |
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
<# | |
License: MIT | |
Author: Michael Klement <[email protected]> | |
See https://stackoverflow.com/a/67266971/45375 for more information. | |
#> | |
# The printable characters to respond to. |
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
/** | |
* StackOverflow Question = https://stackoverflow.com/questions/14446511 | |
* Based on StackOverflow Anser = https://stackoverflow.com/a/66987261/1832572 | |
*/ | |
/** | |
* Groups items on given criteria. The criteria can be a property or a function | |
* which is applied on each item. | |
* | |
* @param list The elements to be grouped ona criteria |
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
// ==UserScript== | |
// @name NPM Quality of life changes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Add some quality of life improvenet to npm | |
// @author You | |
// @match http**://www.npmjs.com/** | |
// @grant none | |
// ==/UserScript== | |
function showNotif(notifText) { |
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 { Resource } from "cdktf"; | |
import { Construct } from "constructs"; | |
import { IamRole, LambdaFunction, LambdaLayerVersion, S3Bucket, S3BucketObject, SecurityGroup, Subnet, Vpc } from "@cdktf/provider-aws"; | |
import { copySync, ensureDirSync, mkdtempSync, pathExistsSync, readJSONSync, removeSync, } from "fs-extra" | |
import { dirname, join, resolve } from "path"; | |
import { buildSync } from 'esbuild' | |
import { spawnSync } from "child_process"; | |
import { tmpdir } from "os"; | |
import AdmZip from "adm-zip"; | |
import { TemplateDirectory } from "@tf-cdk/template-directory"; |
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
export class Graph<T> { | |
private _adjList: Map<T, Set<T>>; | |
constructor() { | |
this._adjList = new Map<T, Set<T>>(); | |
} | |
/** | |
* Add a Vert to the Graph | |
* @param v Vert to add |
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
EnumDisplaySettings | |
ChangeDisplaySettingsExW |