Skip to content

Instantly share code, notes, and snippets.

View tuxedocat's full-sized avatar
🐈‍⬛
WFH with cats

yu-s tuxedocat

🐈‍⬛
WFH with cats
View GitHub Profile
body{
background:#363534;
}
div.title {
color: white;
}
.qs_input {
background: #363534;
color: white;
}
@tuxedocat
tuxedocat / CityLights.icls
Last active September 21, 2022 17:01
[WIP] City Lights Color Scheme for IntelliJ IDEA: manually ported from https://github.com/Yummygum/city-lights-syntax-vsc
<scheme name="CityLights" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2019-01-04T13:46:48</property>
<property name="ide">Idea</property>
<property name="ideVersion">2018.3.2.0.0</property>
<property name="modified">2019-01-04T13:46:55</property>
<property name="originalScheme">CityLights</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="a3be8c" />
@tuxedocat
tuxedocat / Nord_darker.icls
Last active November 19, 2018 02:05
IntelliJ IDEA Nord Syntax Color Scheme, modified slightly for Rust and Python (darker ver.) | MIT License | Original: Copyright (c) 2016-present Arctic Ice Studio development@arcticicestudio.com (http://arcticicestudio.com) Copyright (c) 2016-present Sven Greb code@svengreb.de (http://svengreb.de)
<scheme name="Nord-Darker" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2018-11-18T19:08:55</property>
<property name="ide">Idea</property>
<property name="ideVersion">2018.2.6.0.0</property>
<property name="modified">2018-11-18T19:09:08</property>
<property name="originalScheme">_@user_Nord</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="a3be8c" />
@tuxedocat
tuxedocat / Nord.icls
Last active November 18, 2018 09:10
IntelliJ IDEA Nord Syntax Color Scheme, modified slightly for Rust and Python. | MIT License | Original: Copyright (c) 2016-present Arctic Ice Studio development@arcticicestudio.com (http://arcticicestudio.com) Copyright (c) 2016-present Sven Greb code@svengreb.de (http://svengreb.de)
<scheme name="Nord" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2018-11-18T18:07:48</property>
<property name="ide">Idea</property>
<property name="ideVersion">2018.2.6.0.0</property>
<property name="modified">2018-11-18T18:08:04</property>
<property name="originalScheme">_@user_Nord</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="a3be8c" />
#!/bin/bash
cd
sudo xcodebuild -license
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
## Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git tig vim zsh wget pyenv zplug sqlite xz coreutils
brew cleanup -s
@tuxedocat
tuxedocat / svim.css
Last active November 11, 2018 09:06
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {
@tuxedocat
tuxedocat / install_source_code_pro.sh
Created August 17, 2018 03:51
install adobe fonts
#!/bin/sh
# Userland mode (~$USER/), (~/).
# ~/.fonts is now deprecated and that
#FONT_HOME=~/.fonts
# ~/.local/share/fonts should be used instead
FONT_HOME=~/.local/share/fonts
echo "installing fonts at $PWD to $FONT_HOME"
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro"
from janome.tokenizer import Tokenizer
from janome.analyzer import Analyzer
from janome.charfilter import *
from janome.tokenfilter import *
from typing import *
import pickle
class TokenizerFactory:
@tuxedocat
tuxedocat / base16-ocean-mod.minttyrc
Last active July 30, 2018 01:20
base16-ocean-mod.minttyrc
BackgroundColour=13,25,38
ForegroundColour=217,230,242
CursorColour=217,230,242
Black=23,23,23
BoldBlack=52,52,52
Red=185,121,121
BoldRed=220,188,188
Green=121,185,121
BoldGreen=188,220,188
Yellow=185,185,121
@tuxedocat
tuxedocat / qrnn.py
Last active July 11, 2018 06:44
QRNN for TF1.4.1 (modified from https://github.com/DingKe/nn_playground (MIT Licenced))
# QRNN for TensorFlow 1.4
# This is a fork of QRNN implementation in https://github.com/DingKe/nn_playground (MIT Licenced)
import numpy as np
import tensorflow as tf
from tensorflow.python.keras import backend as K
from tensorflow.python.keras import activations, initializers, regularizers, constraints
from tensorflow.python.keras.layers import Layer, InputSpec
# Paste directly from latest keras source since this is not available in TF 1.4.1.