Skip to content

Instantly share code, notes, and snippets.

View eqs's full-sized avatar
🎍
Focusing

eqs

🎍
Focusing
View GitHub Profile
@elnikkis
elnikkis / typednamedtuple.py
Created July 15, 2020 08:52
Typed namedtuple
# -*- coding: utf-8 -*-
from collections import namedtuple
def typednamedtuple(typename, field_names, field_types):
'''Typed namedtuple
An implementation of typed namedtuple.
@narrowlyapplicable
narrowlyapplicable / GP&TPonSinWave.ipynb
Last active May 28, 2019 12:39
簡単なトイデータによるガウス過程とStudent-t過程の比較。TPの挙動が興味深かったので保存。補足としてGPyのMCMC実行例。[日本語資料が少ない気がするのでお役に立てば。]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jnaecker
jnaecker / git+overleaf+github.md
Last active May 14, 2024 16:47
Using Overleaf as your TeX editor but getting your files to Github

git + overleaf + github

Setup

Connect Overleaf and your local repo

  1. Make a new project on Overleaf.
  2. In the share menu, copy the link from "Clone with git"
  3. On your computer:
    • use cd to navigate to where you want to put your project
@n-fukuju
n-fukuju / opencv_vs14.md
Last active November 26, 2015 08:47
OpenCvSharpを使うために、Visual Studio 2015(x64)向けにOpenCVをビルドする覚書き

環境

OS

Windows 8.1 Pro

Visual Studio

Visual Studio 2015 Community(非エンタープライズ向け無償版)
https://www.visualstudio.com/vs-2015-product-editions

OpenCvSharpのバージョン確認

OpenCV本体と、OpenCvSharpのバージョンを合わせるため、OpenCvSharpのバージョンを確認する。

@protrolium
protrolium / ffmpeg.md
Last active May 15, 2024 18:27
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@jakevdp
jakevdp / discrete_cmap.py
Last active March 8, 2024 14:54
Small utility to create a discrete matplotlib colormap
# By Jake VanderPlas
# License: BSD-style
import matplotlib.pyplot as plt
import numpy as np
def discrete_cmap(N, base_cmap=None):
"""Create an N-bin discrete colormap from the specified input map"""
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active May 3, 2024 12:32
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@dpwiz
dpwiz / base.tex
Last active August 7, 2017 18:50
Render LaTeX code generated with Django templates to a PDF response.
\documentclass[a4paper]{article}
% Cyrillic support
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\DeclareSymbolFont{T2Aletters}{T2A}{cmr}{m}{it}
% PDF search & cut'n'paste
\usepackage{cmap}