Skip to content

Instantly share code, notes, and snippets.

View ssghost's full-sized avatar
🏠
Working from home

Stardust Song ssghost

🏠
Working from home
View GitHub Profile
library(tidyverse)
library(gganimate)
NUMPLAYERS = 45
ROUNDS = 5000
INITWEALTH = 45
#initialize the bank
#columns wealths of the NUMPLAYERS players
#rows show wealths of each of the ROUNDS ticks of the clocks
@ssghost
ssghost / keybase.md
Created July 4, 2018 07:16
keybase

Keybase proof

I hereby claim:

  • I am ssghost on github.
  • I am siegel_seele (https://keybase.io/siegel_seele) on keybase.
  • I have a public key ASBMmW3WC-f-cWdXQt-u0_ZCG49EVnIM4HCIqCnJwBwr1Qo

To claim this, I am signing this object:

@ssghost
ssghost / Dockerfile
Created January 31, 2019 03:41 — forked from machinaut/Dockerfile
Demonstrating installing mujoco-py and gym[mujoco] on ubuntu 18.04
FROM ubuntu:18.04
# Install python and utils
RUN apt-get update && apt-get install -y python3-pip curl unzip \
libosmesa-dev libglew-dev patchelf libglfw3-dev
# Download mujoco
RUN curl https://www.roboti.us/download/mjpro150_linux.zip --output /tmp/mujoco.zip && \
mkdir -p /root/.mujoco && \
unzip /tmp/mujoco.zip -d /root/.mujoco && \
@ssghost
ssghost / dnx-qubo-01.py
Created February 16, 2019 14:55
Dwave QPUComputing Test Code
import networkx as nx
import dwave_networkx as dnx
import matplotlib.pyplot as plt
from dwave.system.samplers import DWaveSampler
from dwave.system.composites import EmbeddingComposite
sampler = EmbeddingComposite(DWaveSampler(config_file='~/Library/Application Support/dwave/dwave.conf', solver='DW_2000Q_2_1'))
G = nx.Graph()
G.add_edges_from([(1,2),(1,4),(1,5),(2,3),(2,5),(2,7),(3,4),(3,6),(4,5),(5,6),(5,7)])
@ssghost
ssghost / exploring_word_vectors.ipynb
Created March 29, 2019 17:02
My answers for Stanford on-line course CS224N Winter 2019 Assignment-1.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
  • Working Memory 2.0: Earl K. Miller et al: Neuron
  • Perceptual Cycles: Ruin VanRullen: CellPress
  • Dynamics of Active Sensing and perceptual selection: Charles E Schroeder, et al: Current Opinion in Neurobiology
  • Shifting the spotlight of attention: evidence for discrete computations in cognition: Buschman and Miller: Frontiers in Human Neuroscience
  • A Dynamic Interplay within the Frontoparietal Network Underlies Rhythmic Spatial Attention: Fiebelkorn et al: Neuron
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
@ssghost
ssghost / pure_html_css_modal.css
Created May 5, 2019 06:23 — forked from calebporzio/pure_html_css_modal.css
The CSS for the pure HTML/CSS modal I tweeted about.
details summary {
cursor: pointer;
outline: none !important;
display: inline-block;
padding: 8px 12px;
padding-top: 10px;
border-radius: 4px;
overflow: hidden;
background: #F09825;
color: white;

SHUANG SONG

Independent Developer for Algorithms & Contracts

CONTACT

  • Phone Number: +1-626-489-5683 (US)