Skip to content

Instantly share code, notes, and snippets.

@BSFishy
BSFishy / main.py
Created November 24, 2014 00:01
Number Game
#!/usr/bin/python3
import random
try:
import tkinter as Tkin
except:
import Tkinter as Tkin
class numgame:
@BSFishy
BSFishy / build.sh
Created April 20, 2018 00:41
My build script for Dart natives
#!/usr/bin/env bash
set -e
cd $(dirname $0)
SCRIPT_DIR=$(pwd)
DART_BIN=$(which dart)
DART_SDK_DIR=$(dirname ${DART_BIN})/..
PLATFORM="$(uname -s)"
@BSFishy
BSFishy / home.adoc
Last active July 9, 2019 14:15
AsciiDoc testing document

Document Test

Table of Contents

Content entered directly below the header but before the first section heading is called the preamble.

First level heading

@BSFishy
BSFishy / logoFinder.ts
Created April 4, 2023 19:06
Find usages of logos in OpenSearch
import { Octokit } from 'octokit'
const LOGOS = [
'logoAppSearch',
'logoBeats',
'logoBusinessAnalytics',
'logoCloud',
'logoCloudEnterprise',
'logoCode',
'logoElastic',
@BSFishy
BSFishy / osd-update.js
Created June 5, 2023 17:51
Updates a package (defaults to OUI) in all of OSD
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
function updateVersion(input, pkg, version) {
var regex = new RegExp(`^([ \t]+"${pkg.replace('/', '\\/')}"): "([^"]*)"(,?)`, "gm");
function replacer(match, group1, group2, group3) {
return `${group1}: "${version}"${group3}`;
@BSFishy
BSFishy / search.js
Last active June 7, 2023 22:07
Search OSD for certain strings in certain files
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
const fs = require('fs');
const path = require('path');
const searchTerms = ['font family', 'font size', 'font weight', 'font style', 'line height']
.map((term) => term.split(' '))
{
ouiButtonEmptyTypes: {
- primary: "#006bb4"
+ primary: "#14786f"
- disabled: "#afb0b3"
+ disabled: "#a4aaaf"
- ghost: "#ffffff"
+ ghost: "#fcfeff"
- text: "#343741"
+ text: "#2a3947"
{
ouiButtonEmptyTypes: {
- primary: "#1ba9f5"
+ primary: "#159d8d"
- disabled: "#4c4e51"
+ disabled: "#535a62"
- ghost: "#ffffff"
+ ghost: "#fcfeff"
}
euiButtonEmptyTypes: {
@BSFishy
BSFishy / diff-light.txt
Created June 14, 2023 18:09
With eui aliases removed
{
ouiButtonEmptyTypes: {
- primary: "#006bb4"
+ primary: "#14786f"
- disabled: "#afb0b3"
+ disabled: "#a4aaaf"
- ghost: "#ffffff"
+ ghost: "#fcfeff"
- text: "#343741"
+ text: "#2a3947"