Skip to content

Instantly share code, notes, and snippets.

View zeroflag's full-sized avatar

Attila Magyar zeroflag

  • 🔥
View GitHub Profile

Table

TickerPriceCurrencyAmountVal
SBUX84.64USD50042320
SPY681.2USD200136240
QQQ622.95USD10062295
@zeroflag
zeroflag / fixed.el
Last active November 8, 2025 21:48
(setq fixed--text (string-to-list "
$QQQ\t100\t*\t?
$SCHD\t260\t*\t?
$SBUX\t400\t*\t?
$SPY\t600\t*\t?
$SPG\t160\t*\t?
SUM .
"))
(defun type--fixed (&rest _args)
1
[ DUP 15 <= ]
[
[ DUP 15 MOD 0 = ]
[ "FIZZBUZZ" MESSAGE ]
[ ( else )
[ DUP 3 MOD 0 = ]
[ "FIZZ" MESSAGE ]
[ ( else )
[ DUP 5 MOD 0 = ]
(in-package :cl-user)
;;(ql:quickload '(:dexador :plump))
(defpackage :stocks
(:use :cl)
(:import-from :dexador)
(:import-from :plump))
(in-package :stocks)
import javax.crypto.SecretKey;
import java.io.FileInputStream;
import java.nio.channels.FileChannel;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.security.KeyStore;
public class ShowKey {
public static void main(String[] args) throws Exception {
if (args.length != 3) {
@zeroflag
zeroflag / obj.lisp
Last active November 15, 2023 18:05
;; title: game title
;; author: game developer, email, etc.
;; desc: short description
;; site: website link
;; license: MIT License (change this to your license of choice)
;; version: 0.1
;; script: fennel
(fn player [px py]
(var x px)
: hexchr>n ( chr -- n )
48 over 57 between? if 48 - exit then
65 over 70 between? if 55 - exit then
97 over 102 between? if 87 - exit then
-1 ;
: hexstr>n ( adr len -- n )
0 >r
begin
dup 0 >
ExpensePlot new
x: #key ;
y: #value;
data: ((self firstMonth to: self lastMonth) collect: [:i | i -> (self month: i) sum ]);
plot.
((self firstMonth to: self lastMonth) collect: [:i | (self month: i) totalFood ]) average.
Object>>chain
^ ChainProxy new setTarget: self
ChainProxy>>doesNotUnderstand: aMessage
target := aMessage sendTo: target.
^ target
ChainProxy>>setTarget: anObject
target := anObject.
^ self
@zeroflag
zeroflag / wc.py
Last active November 2, 2021 12:35
import sys
from operator import add
from pyspark.sql import SparkSession
import time
if __name__ == "__main__":
#if len(sys.argv) != 2:
# print("Usage: wordcount <file>", file=sys.stderr)
# sys.exit(-1)