Gold Fig blog post queries, code snippets, and examples.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# <xbar.title>ping</xbar.title> | |
# <xbar.version>v1.1</xbar.version> | |
# <xbar.author>Trung Đinh Quang, Grant Sherrick and Kent Karlsson</xbar.author> | |
# <xbar.author.github>thealmightygrant</xbar.author.github> | |
# <xbar.desc>Sends pings to a range of sites to determine network latency</xbar.desc> | |
# <xbar.image>http://i.imgur.com/lk3iGat.png?1</xbar.image> | |
# <xbar.dependencies>ping</xbar.dependencies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# | |
# Copyright (c) April 2023 Vikrum Nijjar | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Infinite loop, record 30 sec from mic, transcribe, gpt3.5-turbo to tell a terrible dad joke/pun | |
# brew install portaudio ffmpeg | |
# pip install -r requirements.txt | |
import pyaudio | |
import wave | |
from pydub import AudioSegment | |
import openai | |
import os |
(2013) MySQL CEO on 2 Open Source Business Models https://www.heavybit.com/library/video/mysql-ceo-on-2-open-source-business-models/
(2013) Open source is brutal: an interview with Google's Chris DiBona https://opensource.com/business/13/10/interview-chris-dibona
(2017) Choosing A Model For Your Open Source Business https://snipe.net/2017/08/05/choosing-a-model-for-your-open-source-business/ https://news.ycombinator.com/item?id=25728352
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"range": { | |
"@timestamp": { | |
"gte": "now/m-1m", | |
"lt": "now/m" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a4b | |
accessanalyzer | |
acm | |
acm-pca | |
alexaforbusiness | |
amplify | |
api | |
apigateway | |
apigatewaymanagementapi | |
apigatewayv2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>title</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href=".css"> | |
<script src=".js"></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
” ﱞ” | |
” ﱞ “ | |
ˇ˛ ^¸ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def initialize(context): | |
# Reference to SPY | |
context.spy = sid(8554) | |
schedule_function(buySpread, date_rules.week_start(), time_rules.market_open()) | |
def buyFront(context, data): | |
weekno = get_datetime('US/Eastern').isocalendar()[1] | |
# Invest in first 4 pay cycles | |
if (weekno % 2 == 0) and (weekno <=8): | |
if data.can_trade(context.spy): |
NewerOlder