Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Zyabin schas002

View GitHub Profile
View mkprompt.js
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 Aug 31, 2017
"System fonts everywhere" CSS snippets.
View sysfonts-everywhere.css
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 Aug 30, 2017
An unnamed _FreeCell_-based solitaire card game.
View README.md

[unnamed]

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

Reception

not yet received


@schas002
schas002 / cheat
Created Aug 25, 2017
Yet another Vim cheat sheet.
View cheat
|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 Aug 7, 2017
A Felisian time converter.
View LICENSE
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:
View test.md

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

@schas002
schas002 / config.json
Created May 5, 2017 — forked from anonymous/config.json
Bootstrap Customizer Config
View config.json
{
"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 Apr 5, 2017
Collectible Game Building, where you collect items to make games.
View README.md
@schas002
schas002 / schas002s-Concise-Language.org
Created Mar 25, 2017
schas002's Concise Language specification, working draft 1.
View schas002s-Concise-Language.org

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

@schas002
schas002 / frink-aesthetic.log
Created Mar 8, 2017
Aesthetic in Frink, part 1: a base-36 alphabet.
View frink-aesthetic.log
››› fwAlphabet = "0123456789abcdefghijklmnopqrstuvwxyz"
0123456789abcdefghijklmnopqrstuvwxyz
// fwAlphabet contains 36 characters in fullwidth
// (yes, Frink allows you to type any Unicode character in a program)
››› parseInt["helloworld", 36]
1767707668033969
// the `36` argument to parseInt is important, see last command
››› base[1767707668033969, fwAlphabet]
You can’t perform that action at this time.