Skip to content

Instantly share code, notes, and snippets.

View opencoca's full-sized avatar
😅
Trapped working in paradise!

OpenCo opencoca

😅
Trapped working in paradise!
View GitHub Profile

Trading Prompt

Let us think through how to b3st trade stocks given only a detailed list of the prices over the past week at hour resulting. We will think through this in LISP and present both LISP code, an explanation, and Python code. We will be allowed to revise our methodology continually, but we will be eliminated if we lose funds for more than three rounds. Note that the strategy must also win 60% of the time or better. Each turn will be an hour, and new price data will be added.

Thought for 66 seconds

Okay, let's see. The user wants to create a stock trading strategy using Lisp and Python. The constraints are that if we lose funds for more than three rounds, we're eliminated, and the strategy must win 60% of the time or better. Each turn is an hour with new price data. Hmm.

@opencoca
opencoca / index.html
Created September 7, 2024 11:23
Todo Deck
<link rel="stylesheet" href="https://startr.style/style.css">
<div class="stack">
<div class="stack--status">
<i class="fa fa-remove"></i>
<i class="fa fa-check"></i>
</div>
<div class="stack--cards">
<div class="stack--card">
@opencoca
opencoca / index.html
Last active June 2, 2024 10:49
Slides 26-5-11:52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Reveal.js Presentation</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
#!/bin/bash
# Highlighting and emojis
YELLOW='\033[1;33m'
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
WARNING_EMOJI=$'\xE2\x9A\xA0'
CHECKMARK_EMOJI=$'\xE2\x9C\x85'
@opencoca
opencoca / experimenting-with-hyperscript-startr-style-system7-style-24-9-21.markdown
Created September 21, 2023 15:25
Experimenting with Hyperscript, Startr Style, System7 Style 24-9-21
@opencoca
opencoca / update-hosts.sh
Created June 18, 2023 18:05 — forked from jamshid/update-hosts.sh
Docker environment hack, to put the names of running containers in /etc/hosts
#!/bin/bash
# An alternative to "links", run this script after starting or stopping any
# container. It's a hack to update the host machine (vagrant) /etc/hosts with
# the current active docker containers and tell dnsmasq to refresh.
#
# Then start each machine with "-dns ${DOCKER_HOST_IP}", e.g.
# $ docker run -d -name mycontainer1 -dns 10.0.3.1 MYPRODUCT
# You can't seem to set the DNS during "docker build".
#
# Diagnostic command to run in host or while logged into containers:
@opencoca
opencoca / README.MD
Created March 3, 2023 12:14
One Click App dev

How to create a one-click app (as of v1.8.0):

First, have a look at this simple example. Now, read on for more details:

  • Find/create a docker-compose file for the app you're interested in.
  • Add captainVersion: 4 to the very top of the yaml file.
  • Add this section to the end of the yaml file:
@opencoca
opencoca / index.pug
Created February 7, 2023 14:05
Less Flex cards
header
img(src='https://source.unsplash.com/random/901x200/?example', alt='Example Image', style=' --w:100% ')
section.wow.animate__fadeIn(style='--p: 2rem; --ta: center')
h1 Heading Level 1
h2 Heading Level 2
h3 Heading Level 3
h4 Heading Level 4
h5 Heading Level 5
@opencoca
opencoca / BuildnRun.sh
Last active December 22, 2022 13:19
BuildnRun.sh is a straightforward bash script that streamlines and standardizes the process of building and tagging Docker images
#!/bin/bash
# Version 1.3
# Copyright (c) Startr LLC. All rights reserved.
# This script is licensed under the GNU Affero General Public License v3.0.
# For more information, see https://www.gnu.org/licenses/agpl-3.0.en.html
# OpenCo™ Cocom Build 'n' Run Script
# This simple script builds and runs this directory 's Dockerfile Image
@opencoca
opencoca / APAstyle
Created September 18, 2022 23:02 — forked from pdparker/APAstyle
APA Style for Markdown
/* I have only tested this on Chrome but it
prints nicely to A4 size */
@media print {
body {
width: 210mm;
height: 297mm;
}
}