Skip to content

Instantly share code, notes, and snippets.

View endaaman's full-sized avatar
💭
Neovim

Ken Enda endaaman

💭
Neovim
View GitHub Profile
@Chris-hughes10
Chris-hughes10 / EfficientDet Pytorch-lightning with EfficientNet v2 backbone Blog Post.ipynb
Last active April 22, 2024 08:57
EfficientDet Pytorch-lightning with EfficientNet v2 backbone Blog Post.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sho-t
sho-t / zsh_variable.md
Last active July 3, 2024 15:23
Zsh 変数メモ

variable

変数に関するメモ。 💤がついてるのはzsh 固有のもの。

📮 シェル変数と環境変数

  • シェル変数 → 子プロセスに継承されない
  • 環境変数 → 子プロセスに継承される

環境変数登録

@rokoucha
rokoucha / config.lua
Last active April 11, 2017 12:20
Solarized color scheme for tym
-- Solarized color scheme for tym
color = {}
-- Solarized common
color.yellow = '#b58900'
color.orange = '#cb4b16'
color.red = '#dc322f'
color.magenta = '#d33682'
color.violet = '#6c71c4'
@mmozeiko
mmozeiko / incbin.c
Last active July 21, 2024 21:12
Include binary file with gcc/clang
#include <stdio.h>
#define STR2(x) #x
#define STR(x) STR2(x)
#ifdef _WIN32
#define INCBIN_SECTION ".rdata, \"dr\""
#else
#define INCBIN_SECTION ".rodata"
#endif
@saitoha
saitoha / tmux-SIXEL.patch
Created July 14, 2015 16:21
tmux: SIXEL integration (for mlterm / RLogin, not works on XTerm)
diff --git a/input.c b/input.c
index d1ff17f..33fad13 100644
--- a/input.c
+++ b/input.c
@@ -1805,6 +1805,7 @@ input_dcs_dispatch(struct input_ctx *ictx)
{
const char prefix[] = "tmux;";
const u_int prefix_len = (sizeof prefix) - 1;
+ u_char *p;
@raccy
raccy / kometalk.rb
Last active December 2, 2015 02:51
Viqo経由でめいちゃんにコメをしゃべって貰おうとしたら、なぜかこうなった。
#!/usr/bin/env ruby
# coding: utf-8
=begin
kometalk.rb
Copyright (c) 2015 IGARASHI Makoto (raccy)
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
コマンドラインからの入力文字をOpen JTalkでしゃべってくれます。
実行はすぐに終わって、裏でサーバが立ち上がって、しゃべります。
@ryo-murai
ryo-murai / curl-post-json.md
Created March 19, 2015 03:41
curlでJSONをPOSTするの忘れるからかいとく

example json request

POST /v3/get HTTP/1.1
Host: getpocket.com
Content-Type: application/json

{"consumer_key":"1234-abcd1234abcd1234abcd1234",
"access_token":"5678defg-5678-defg-5678-defg56",
"count":"10",
@Flafla2
Flafla2 / Perlin_Tiled.cs
Last active July 23, 2024 07:09
A slightly modified implementation of Ken Perlin's improved noise that allows for tiling the noise arbitrarily.
public class Perlin {
public int repeat;
public Perlin(int repeat = -1) {
this.repeat = repeat;
}
public double OctavePerlin(double x, double y, double z, int octaves, double persistence) {
double total = 0;
#!/usr/bin/env python
"""
This module sets up a video stream from internal or connected webcam using Gstreamer.
You can then take snapshots.
"""
import pygtk, gtk
import pygst
pygst.require("0.10")
@hayajo
hayajo / changelog_en.md
Last active July 19, 2024 05:47
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形