Skip to content

Instantly share code, notes, and snippets.

Shawn Presser shawwn

Block or report user

Report or block shawwn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View lol.abc
X:4
K:Cmaj
z6| \
z6| \
z6|
z4 z2| \
z6| \
z6| \
z6|
z6| \
View ai-harrypotter.txt
"I'm not sure what you're talking about."
"You look like you've been through a lot. It's hard to tell if it's that or just the way your face is," she said, smiling at him. "But I know you are going to be okay."
He nodded and walked back over to his room. He tossed on some clothes before heading downstairs to his own room where he pulled off his shirt and went into the bathroom. He turned the shower on and let the water run for a few minutes until he was completely naked. When he came out of the bathroom he saw her standing in front of him with one hand on her hip, pulling her hair out of her face. She looked up when she heard him come out, but didn't say anything.
"What are you doing?"
She stared at him as she put her hair back on.
View split-by-token
#!/bin/sh
#https://stackoverflow.com/questions/11313852/split-one-file-into-multiple-files-based-on-delimiter
set -ex
token="${1}"
shift 1
outfile="${1}"
shift 1
exec awk "{print \$0 > "$outfile" NR ".txt"}" RS="$token" "$@"
View ai-overwatch.txt
****PROMPT****
3) Heroes
----
D.Va
----
ROLE: TANK
WEAPONS: Fusion Cannons (in mech)/Light Gun (out of mech)
PRIMARY ABILITY: Boosters
View train_swarm.sh
#!/bin/sh
set -x
# == Swarm training (alpha release) ==
# Setup:
#
# git clone https://github.com/shawwn/gpt-2
# cd gpt-2
# git checkout dev-shard
View stylegan2_train_tpu.sh
#!/bin/bash
# git clone https://github.com/shawwn/stylegan2 -b tpu
source "$HOME/bin/activate-tf1"
set -x
#export TPU_NAME=grpc://0.tcp.ngrok.io:15992
export TPU_NAME=grpc://0.tcp.ngrok.io:17042
export GCE_BUCKET=gs://sgappa-multi/stylegan-encoder
View 2019-01-04-poetry-57787-temp0.4-topk40-penalize0.85-length1024-step64.txt
!git clone https://github.com/shawwn/gpt-2 /content/gpt-2
%cd /content/gpt-2
!pip3 install tqdm toposort regex fire pytz
!python3 download_model.py 1558M
!gsutil cp gs://gpt-2-poetry/checkpoint/poetryxl/model-57787.hdf5 models/1558M/model-57787.hdf5
!python3 src/generate_samples.py --model_name 1558M --length 1024 --step 64 --top_k 40 --temperature 0.4 --penalize 0.85
The light of this world, and the soul's desire.
Oft have I seen thee in thy garden walk,
And heard thy voice in the morning breeze:
View board-proposal.txt
---- b rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w HAha - 0 1
g1f3 b rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w HAha - 0 1
d7d5 b rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b HAha - 1 1
e2e3 b rnbqkbnr/ppp1pppp/8/3p4/8/5N2/PPPPPPPP/RNBQKB1R w HAha - 0 2
g8f6 b rnbqkbnr/ppp1pppp/8/3p4/8/4PN2/PPPP1PPP/RNBQKB1R b HAha - 0 2
c2c4 b rnbqkb1r/ppp1pppp/5n2/3p4/8/4PN2/PPPP1PPP/RNBQKB1R w HAha - 1 3
c7c6 b rnbqkb1r/ppp1pppp/5n2/3p4/2P5/4PN2/PP1P1PPP/RNBQKB1R b HAha - 0 3
b1c3 b rnbqkb1r/pp2pppp/2p2n2/3p4/2P5/4PN2/PP1P1PPP/RNBQKB1R w HAha - 0 4
e7e6 b rnbqkb1r/pp2pppp/2p2n2/3p4/2P5/2N1PN2/PP1P1PPP/R1BQKB1R b HAha - 1 4
b2b3 b rnbqkb1r/pp3ppp/2p1pn2/3p4/2P5/2N1PN2/PP1P1PPP/R1BQKB1R w HAha - 0 5
View 2019-01-04-poetry-413482-temp0.4-topk40-penalize0.85-length1024-step64.txt
!git clone https://github.com/shawwn/gpt-2 /content/gpt-2
%cd /content/gpt-2
!pip3 install tqdm toposort regex fire pytz
!python3 download_model.py 1558M
!gsutil cp gs://gpt-2-poetry/checkpoint/poetryxl/model-413482.hdf5 models/1558M/model-413482.hdf5
!python3 src/generate_samples.py --model_name 1558M --length 1024 --step 64 --top_k 40 --temperature 0.4 --penalize 0.85
But, ah! the day of my despair
Is come; and I have lost every friend.
My son is gone from me alone:
View cryochess.py
def softmax(xs):
return np.exp(xs) / sum(np.exp(xs))
from functools import lru_cache
def memoize(function):
cache = {}
def decorated_function(*args):
You can’t perform that action at this time.