Skip to content

Instantly share code, notes, and snippets.

@jda0
jda0 / .bash_aliases
Last active December 27, 2019 19:11
bash_aliases
shopt -s expand_aliases
eval "$(hub alias -s)"
## Work Aliases
alias sow='. ~/.bash_aliases_roam';
## Command Aliases
@jda0
jda0 / color.js
Last active April 28, 2018 15:10
class Color {
constructor (r, g, b) {
this.r = r
this.g = g
this.b = b
}
toHex () {
return [this.r, this.g, this.b].reduce(
(a, b) => a + ('00' + b.toString(16)).slice(-2),
// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "Maison Mono, Input Mono Light, Menlo, monospace",
"editor.fontSize": 13 /*13, 10, 11.4*/,
"editor.lineHeight": 15, /*12*/
"editor.rulers": [80],
"editor.wordWrap": "off",
"editor.wrappingIndent": "indent",
doctype html
html
head
link(rel='stylesheet', href='style.css')
title Flyt
body
header
nav.row
.left-unit
class Mastermind {
constructor() {
this.length = 4
this.chars = ['0', '1', '2', '3', '4', '5']
}
generate() {
this.guesses = 0
this.key = []
for (var i = 0; i < this.length; i++)
Bristol LOLCODE
===============
Author: James Daly (Dec 2016)
This document outlines a parser for a dialect of [LOLCODE][1], an
esoteric imperative language devised in 2007 by [Justin J. Mesa][2]
based on the ["lolspeak" or "chanspeak" language][3] from popular ["lolcats"][4]
and ["Can I Haz Cheezburger?"][5] memes and weblogs.
@jda0
jda0 / chesslike.coffee
Created February 26, 2018 10:45
A chess-like prototyping toy from 19 August 2013
@VERSION = 288
__ = @
@sf = 32
@sz = 24
@mx = 7
@po = { px: 48, py: 48 }
@types = {
#ifdef _WIN32
#include <conio.h>
#else
#include <ncurses.h>
#endif
#include <stdio.h>
#include "palace.h"
using System;
using System.Threading;
using System.Windows.Forms;
class Program {
static void Main() {
Console.WriteLine("Hello...");
try {
while (true) {
$font-stack: "Inter UI", $font-fallback-stack;
$font-fallback-stack: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
$base-font-size: calc(100vw / 160 + 12px);
$ratio: 1.6;
@function pow($number, $exponent) {
$value: 1;
@if $exponent > 0 {