Skip to content

Instantly share code, notes, and snippets.

View hotohoto's full-sized avatar
🐢
daily small stepping

Hoyeong-GenGenAI hotohoto

🐢
daily small stepping
  • GenGenAI
  • Seoul, Korea
View GitHub Profile
@skratchdot
skratchdot / donate.md
Created January 25, 2016 17:42
My Paypal donate button in markdown format

Donation Button

Donate

@0xjac
0xjac / private_fork.md
Last active July 30, 2024 09:39
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@teamdandelion
teamdandelion / labels_1024.tsv
Last active February 6, 2024 08:33
TensorBoard: TF Dev Summit Tutorial
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
7
2
1
0
4
1
4
9
5
9
@markus-beuckelmann
markus-beuckelmann / numpy-benchmark.py
Created April 30, 2017 13:06
A short Python script to benchmark NumPy and show your BLAS setup
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Roughly based on: http://stackoverflow.com/questions/11443302/compiling-numpy-with-openblas-integration
from __future__ import print_function
import numpy as np
from time import time
@petermchale
petermchale / analysis.ipynb
Last active December 2, 2023 15:46
A derivation of the bias-variance decomposition of test error in machine learning.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hotohoto
hotohoto / iterm2colorset.itermcolors
Created August 7, 2017 09:47
atom like iterm2 colorset
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
@hysts
hysts / extract_images.py
Created November 11, 2018 11:31
Extract images from Tensorboard log
#!/usr/bin/env python
import argparse
import pathlib
import numpy as np
import cv2
from tensorboard.backend.event_processing import event_accumulator
def main():
@adambielski
adambielski / callback_fid.py
Created November 3, 2020 23:20
FID callback for PyTorch Lightning
''' fid code and inception model from https://github.com/mseitzer/pytorch-fid '''
import pytorch_lightning as pl
from pytorch_lightning.utilities import rank_zero_only
from scipy import linalg
from .inception import InceptionV3 # https://github.com/mseitzer/pytorch-fid
import pickle
import torch
import numpy as np
from tqdm import tqdm
@hotohoto
hotohoto / pyproject.toml
Last active May 17, 2024 02:04
A minimum python project setting to support for src layout without considering distribution.
# Add this file into the root folder of your project
# Specify dependencies in requirements.txt and install dependencies with `pip install -e .`
# Then, you don't need to specify the `src` directory within PYTHONPATH when you run a python module in your project.
# This is an exeperimental/opinionated setting. So any comments are welcome.
# references:
# - https://stackoverflow.com/a/73600610/1874690
# - https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
[project]
name = "my-project-name"