Skip to content

Instantly share code, notes, and snippets.

Avatar
🌱
Creating Quantum Game 2

Piotr Migdał stared

🌱
Creating Quantum Game 2
View GitHub Profile
View .travis.yml
language: node_js
node_js: node
before_script:
- npm install -g typescript
- npm install codecov -g
script:
- yarn lint
- yarn build
@stared
stared / jest_typescript_extend.ts
Created Feb 13, 2020
Example of extending jest matchers in TypeScript
View jest_typescript_extend.ts
export {}
declare global {
namespace jest {
interface Matchers<R> {
myMatcher: (received: string) => R
}
}
}
@stared
stared / beamsplitter.md
Last active Oct 29, 2019
Element desc init
View beamsplitter.md

50-50 Beamsplitter

Optical devices used to split a single beam of laser light into two beams, or to recombine two beams into one.

{
  "cols": 4,
  "rows": 3,
  "cells": [
    {
@stared
stared / tf_playground_like_plots.ipynb
Last active Apr 2, 2019
TF playground like plots (cf. scikit-learn comparison)
View tf_playground_like_plots.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View example_submodule.py
#!/usr/bin/env python
import delve
import logging
import torch
import torch.nn as nn
from delve import CheckLayerSat
from torch.autograd import Variable
from tqdm import tqdm, trange
@stared
stared / nlpprogress_md_tbl_2_yaml.ipynb
Created Aug 14, 2018
NLP progress Markdown table to YAML
View nlpprogress_md_tbl_2_yaml.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stared
stared / html_svg_github_test.ipynb
Created Jul 14, 2018
Jupyter in GitHub SVG HTML display
View html_svg_github_test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stared
stared / Dockerfile
Created Jan 8, 2018
Docker with TensorFlow and PyTorch
View Dockerfile
FROM jupyter/scipy-notebook
# Install Tensorflow and PyTorch
RUN conda install --quiet --yes \
'tensorflow=1.3*' \
'keras=2.0*' \
'pytorch=0.3' \
'torchvision' && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR
@stared
stared / aspie_traits.md
Last active Apr 7, 2019
Interpersonal Traits of Aspies Placed in Context
View aspie_traits.md

Interpersonal Traits of Aspies Placed in Context

a chapter from A Mind-Body Look at the Concept of Asperger's Syndrome (pdf) by Michael Samsel, LMHC

Uncommunicative Eye Contact

In humans, eye contact is the center of the attachment system. In Asperger's Syndrome there is either an avoidance of eye contact (most common) or an unvarying, relative unblinking, staring, constant eye contact (less common). Avoidant eye contact gives an impression of 'having something to hide', and also eliminates a big channel of communication and trust. Staring eye contact, because of its unchanging nature, is also uncommunicative, and is generally experienced as disturbing on the receiving end.

Difficulty Using Body Language

@stared
stared / live_loss_plot_keras.ipynb
Last active Mar 11, 2021
Live loss plot for training models in Keras (see: https://github.com/stared/livelossplot/ for a library)
View live_loss_plot_keras.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.