Skip to content

Instantly share code, notes, and snippets.

View mizdra's full-sized avatar

mizdra mizdra

View GitHub Profile
@focus97
focus97 / hack-your-own-slack-theme.md
Last active August 30, 2026 03:51
How to theme Slack (Dark, Solarized, White, Rosé, whatever)

How to theme Slack v4.12.0+

Update as of 8.08.2021:

  • Hid the bookmarks bar and fine-tuned some header styles.

If you want to add your own style to Slack, here's how.

My quazi-Tron Theme'ish?

I dunno what happened. I just wanted to try something sporty/future-y, I guess. Code for this is directly below.

@rosskevin
rosskevin / hoc-template.tsx
Last active August 23, 2020 19:44
Typescript higher order component (hoc) template
/* variation on https://medium.com/@DanHomola/react-higher-order-components-in-typescript-made-simple-6f9b55691af1 */
import * as React from 'react'
import { wrapDisplayName } from 'recompose'
// Props you want the resulting component to take (besides the props of the wrapped component)
interface ExternalProps {}
// Props the HOC adds to the wrapped component
export interface InjectedProps {}
[Unit]
Description=Keep reverse portforward tunnel
After=network.target
[Service]
User=root
Restart=always
RestartSec=5
Type=simple
ExecStart=/usr/bin/ssh -NTv \
from z3 import BitVec, Solver
from subprocess import Popen, PIPE
seed = "B65DD562AAEA877BA21332BC2A782A76"
status = [seed[i * 8:(i + 1) * 8] for i in range(4)][::-1]
p = Popen(['./tiny_mt'] + status, stdout=PIPE)
TINYMT32_MASK = 0x7fffffff
TINYMT32_SH0 = 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mono0926
mono0926 / commit_message_example.md
Last active August 2, 2026 11:32
[転載] gitにおけるコミットログ/メッセージ例文集100
dictionary = {
"ability": {
"adaptability": "てきおうりょく",
"aftermath": "ゆうばく",
"aerilate": "スカイスキン",
"airlock": "エアロック",
"analytic": "アナライズ",
"angerpoint": "いかりのつぼ",
"anticipation": "きけんよち",
"arenatrap": "ありじごく",
@mitsuruog
mitsuruog / index.md
Last active September 10, 2026 17:11
express実践入門

express実践入門


自己紹介

小川充

  • mitsuruog
@mizdra
mizdra / lcg-generator.js
Created August 25, 2015 08:04
var g = generator(0x41c64e6d, 0x6073, 0x0);
'use asm';
'use strict';
function* generator(a, b, s) {
a = a | 0;
b = b | 0;
s = s | 0;
while (true) {
s = (Math.imul(s, a) + b) | 0;
yield s;

ECMAScript6th Quiz

Q.1

let func = function() {};
func.name
  1. ""
  2. "func"