Skip to content

Instantly share code, notes, and snippets.

View lynsei's full-sized avatar
:octocat:
Huzzah!

Lynsei lynsei

:octocat:
Huzzah!
View GitHub Profile
@lynsei
lynsei / 1-o7l.expect.behavior.sql
Created January 30, 2021 13:50
07l .openful .stack .expect [ behavior ] .graphql
SELECT
json_build_object(
'aggregate',
json_build_object('count', COUNT(*)),
'nodes',
coalesce(json_agg("nodes"), '[]')
) AS "root"
FROM
(
SELECT
@lynsei
lynsei / script.js
Created February 16, 2021 08:37
Vertex displacement
import * as THREE from "https://cdn.skypack.dev/[email protected]";
import { OrbitControls } from "https://cdn.skypack.dev/three/examples/jsm/controls/OrbitControls";
import * as dat from "https://cdn.skypack.dev/[email protected]";
const gui = new dat.GUI();
const settings = {
speed: 0.32,
density: 2.5,
strength: 0.06,
@lynsei
lynsei / index.html
Created February 16, 2021 10:09
Table: Visible columns, custom top and fullscreen - Quasar Playground
<!--
Forked from:
https://quasar.dev/vue-components/table#Example--Visible-columns%2C-custom-top-and-fullscreen
-->
<div id="q-app">
<div class="q-pa-md">
<q-table
title="Treats"
:data="data"
:columns="columns"
@lynsei
lynsei / Emer-Gency.com.md
Created July 16, 2021 05:14
Emer-Gency.com

I learned that despite being open source, most folk do not seem to understand what it is the Full Stack Engine does.  Including investors, this is my greatest challenge.

So I set out upon the quest to show this with action rather than talk. What does Full Stack Engine do? "We build businesses from scratch".

Much like the Ouroboros , the snake that eats itself, I've begun to consume my own services as part of my quest to show how powerful FSE can be for a company.

Here is a case study for my new business, emer-gency.com.

@lynsei
lynsei / iterm2.md
Created September 27, 2021 01:31 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@lynsei
lynsei / emojis.sh
Created September 27, 2021 15:48 — forked from BuonOmo/emojis.sh
A list of all UTF-8 emojis in bash or zsh
# Obtained with the code written in next file
emoji_grinning_face=😀
emoji_grinning_face_with_big_eyes=😃
emoji_grinning_face_with_smiling_eyes=😄
emoji_beaming_face_with_smiling_eyes=😁
emoji_grinning_squinting_face=😆
emoji_grinning_face_with_sweat=😅
emoji_rolling_on_the_floor_laughing=🤣
emoji_face_with_tears_of_joy=😂
emoji_slightly_smiling_face=🙂
@lynsei
lynsei / gym.py
Last active November 22, 2021 09:32 — forked from Alir3z4/gym.py
#ml #ai #model #fitting #maahinelearning
import os
import pickle
import warnings
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras.layers import Dense
from tensorflow.keras.layers import Dropout
@lynsei
lynsei / or-try.py
Last active May 4, 2022 13:29 — forked from Alir3z4/xapian-virtualenv.sh
install xapian inside virtualenv
sudo apt-get install zlib1g-dev
sudo apt-get install g++
sudo apt-get install uuid-dev
export VENV=$VIRTUAL_ENV
mkdir $VENV/packages && cd $VENV/packages
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-core-1.2.18.tar.xz
curl -O http://oligarchy.co.uk/xapian/1.2.18/xapian-bindings-1.2.18.tar.xz
@lynsei
lynsei / deprecated.zsh
Last active October 8, 2021 11:09
deprecated-functions.zsh
#!/usr/bin/env bash
/deprecated.zsh
# This is for dogi, but we aren't using him right now till I can fix his permissions in dockerland
function load_ssh_proxy_engine() {
yes | cp -f $ZSH_CUSTOM/src/lib/dogi/.dogi.sh /usr/local/bin/dogi
chmod +x /usr/local/bin/dogi
#note: this will only work on linux, but that's where this is gonna run (ubuntu docker minimal at 30MB)
adduser --disabled-password --shell /bin/bash dogi
addgroup docker || true
@lynsei
lynsei / dogi-deprecated.sh
Last active October 8, 2021 10:55
dogi-deprecated.sh
#!/bin/sh
VERSION="0.3.0"
HELP="
dogi
A simple way to deploy your pet projects using Docker, Git, Traefik and SSH.
dogi create # Create a new application