Skip to content

Instantly share code, notes, and snippets.

@rglover
rglover / languages.json
Created Oct 25, 2021
List of languages by ISO code and name in JSON
View languages.json
[
{
"code": "af",
"name": "Afrikaans"
},
{
"code": "af-ZA",
"name": "Afrikaans (South Africa)"
},
{
@rglover
rglover / events.js
Created Jul 21, 2021
List of JavaScript DOM events
View events.js
const events = [
"readystatechange",
"pointerlockchange",
"pointerlockerror",
"beforecopy",
"beforecut",
"beforepaste",
"freeze",
"resume",
"search",
@rglover
rglover / adverbs.js
Created Jun 16, 2021
Animals & Adverbs | How to Implement Real-Time Data with Websockets
View adverbs.js
export default [
"bold",
"brave",
"bright",
"cheerful",
"deft",
"devoted",
"eager",
"elegant",
"faithful",
@rglover
rglover / jsx-render.tsx
Created Jun 9, 2021 — forked from Dynalon/jsx-render.tsx
Sample JSX to HTMLElement renderer in TypeScript
View jsx-render.tsx
// Tiny JSX renderer in TypeScript inspired by plain-jxs: https://github.com/callumlocke/plain-jsx
// Babel would allow you to specify the factory function as special inline comment:
/** @jsx JSXrender */
let JSXrender = (tagName: string, attributes?: { [key: string]: any }, ...children: Array<HTMLElement |  string>): HTMLElement => {
if (!tagName || typeof tagName !== 'string')
throw new Error("tagName has to be defined, non-empty string");
@rglover
rglover / countries.js
Created May 5, 2021
List of countries as JavaScript object array
View countries.js
export default [
{ code: "AF", name: "Afghanistan" },
{ code: "AX", name: "\u00c5land Islands" },
{ code: "AL", name: "Albania" },
{ code: "DZ", name: "Algeria" },
{ code: "AS", name: "American Samoa" },
{ code: "AD", name: "Andorra" },
{ code: "AO", name: "Angola" },
{ code: "AI", name: "Anguilla" },
{ code: "AQ", name: "Antarctica" },
@rglover
rglover / keybase.md
Created Aug 13, 2014
Keybase Verification
View keybase.md

Keybase proof

I hereby claim:

  • I am rglover on github.
  • I am glover (https://keybase.io/glover) on keybase.
  • I have a public key whose fingerprint is C4A8 6E78 B3EB 4D1E CC27 9965 E66E 2D94 84A8 88AD

To claim this, I am signing this object:

@rglover
rglover / gp-specials-board.css
Created Aug 8, 2012
Google Prettify - Specials Board CSS Theme
View gp-specials-board.css
.prettyprint .str, code .str { color: #a9758c; } /* string */
.prettyprint .kwd, code .kwd { color: #d58840; } /* keyword */
.prettyprint .com, code .com { color: #767979; font-style: italic; } /* comment */
.prettyprint .typ, code .typ { color: #80aac6; } /* type */
.prettyprint .lit, code .lit { color: #ac758c; } /* literal */
.prettyprint .pun, code .pun { color: #fff; } /* punctuation */
.prettyprint .pln, code .pln { color: #fff; } /* plaintext */
.prettyprint .tag, code .tag { color: #fecf84; } /* html/xml tag */
.prettyprint .atn, code .atn { color: #ce8a45; } /* html/xml attribute name */
.prettyprint .atv, code .atv { color: #b2c869; } /* html/xml attribute value */