Skip to content

Instantly share code, notes, and snippets.

View geyang's full-sized avatar
🤖
I finish papers.

Ge Yang geyang

🤖
I finish papers.
View GitHub Profile
@rauchg
rauchg / p.sh
Last active April 27, 2024 10:43
Perplexity CLI in pure shell
#!/usr/bin/env bash
function p() {
jq -n \
--arg content "$*" \
'{
"model": "pplx-7b-online",
"messages": [
{
"role": "system",
"content": "Be precise and concise."
@SaschaDittmann
SaschaDittmann / install_archiconda.sh
Created July 6, 2019 07:47
Install Archiconda3 (A distribution of conda for 64 bit ARM)
#!/bin/bash
wget https://github.com/Archiconda/build-tools/releases/download/0.2.3/Archiconda3-0.2.3-Linux-aarch64.sh
chmod +x Archiconda3-0.2.3-Linux-aarch64.sh
./Archiconda3-0.2.3-Linux-aarch64.sh
@mcnuttandrew
mcnuttandrew / 1 Teacup
Last active July 16, 2018 22:17
Project Teacup
In 2014 I made a small rails application called Project-Teacup to demonstrate that I knew what I was doing with rails
(spoiler: I did not) as part of applying for employment. That application attempted to be a twitter for dreams
(https://github.com/mcnuttandrew/Project-Teacup) which was based on an idea I had, naturally, while dreaming.
The project was quite successful in that it got me a job, but also in that it inspired a number of people to record
their dreams.
Project-Teacup has been down for a number of years, yet the data lives on. Heroku, where the project was hosted,
has been going through some ~stuff~ so I figured it would be good to extract the data and expose it publically
for general consumption. The database was seeded with several hundred dreams from a (single) friends dream
journal which was hacked apart by hand, and then inserted into the database under the guise of variety of random
@blole
blole / openai-gym-mcts.py
Last active June 8, 2023 19:24
Monte Carlo tree search agent for https://gym.openai.com
#!/usr/bin/env python2
import os
import gym
import sys
import random
import itertools
from time import time
from copy import copy
from math import sqrt, log