Skip to content

Instantly share code, notes, and snippets.

@schas002
schas002 / zuid.js
Created October 4, 2017 11:47
Humble one-liner to generate UIDs in vanilla.
module.exports = _ => new Date().getTime().toString(36) + '.' + (Math.random() * Math.pow(2, 32)).toString(36);
@schas002
schas002 / mkprompt.js
Last active September 22, 2017 14:01
const Chance = require('chance');
const argv = require('yargs').argv;
const chalk = require('chalk');
let seed;
if(typeof argv.seed === 'undefined') {
seed = Math.floor(Math.random() * Math.pow(2, 32));
} else {
seed = argv.seed;
}
@schas002
schas002 / sysfonts-everywhere.css
Created August 31, 2017 12:37
"System fonts everywhere" CSS snippets.
h1, h2, h3, h4, h5, h6, p {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
pre, code {
font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
@schas002
schas002 / README.md
Created August 30, 2017 10:28
An unnamed _FreeCell_-based solitaire card game.

[unnamed]

Yet another FreeCell-based solitaire card game by Andrew Zyabin.

Reception

not yet received


@schas002
schas002 / cheat
Created August 25, 2017 11:17
Yet another Vim cheat sheet.
|Cursor keys: |Commands: |Movements: |u/ undo |File commands:|
| k ________|x/ delete next|0/ 1st in line|^R/ redo |:new/ new |
|h-+-l |Editor |X/ delete prev|^/ 1st non- | | editor |
| j __| modes:| | white in line| |:o/ open file |
|____|i/ insert| |$/ end of line| |:w/ write file|
|A/ append at | |w/ next word | |:clo/ close |
| end of line | |b/ 1st in word| |:q/ quit |
|R/ replace | |e/ end of word| |:wq/ write and|
| (or Ins/Ovr | |W/ next WORD! | | quit |
| in insert | |B/ 1st in | |:clo!/ close |
@schas002
schas002 / LICENSE
Last active August 7, 2017 11:43
A Felisian time converter.
MIT License
Copyright (c) 2017-2017 Andrew Zyabin
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:
@schas002
schas002 / test.md
Created August 3, 2017 08:14
Emoji tests

🎉 forum(🎉) forum[🎉] forum{🎉} forum( 🎉 ) forum[ 🎉 } forum{ 🎉 }

@schas002
schas002 / config.json
Created May 5, 2017 03:54 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@schas002
schas002 / README.md
Created April 5, 2017 15:53
Collectible Game Building, where you collect items to make games.
@schas002
schas002 / schas002s-Concise-Language.org
Created March 25, 2017 14:54
schas002's Concise Language specification, working draft 1.

A work in progress esoteric language. Version: WD 1

Syntax

Data types

The language has a meaning of data types. There are number data types, the only ones so far.

Number