Skip to content

Instantly share code, notes, and snippets.

View tobynet's full-sized avatar

tobynet tobynet

  • Toyama, Japan
View GitHub Profile
@mala
mala / a.md
Last active June 30, 2020 15:13
Chrome ExtensionのLive HTTP Headersの調査(CoolBar.Pro導入 Extensionが何を行うかの調査)

Chrome ExtensionのLive HTTP Headersを調査した。Firefox用のものではない。Firefox用のものではない。

11/7追記

English version: https://translate.google.com/translate?sl=ja&tl=en&js=y&prev=_t&hl=ja&ie=UTF-8&u=https%3A%2F%2Fgist.github.com%2Fmala%2Fe87973df5029d96c9269d9431fcef5cb&edit-text=&act=url

Summary in english.

@stknohg
stknohg / Write-BOMlessUTF8Sample.ps1
Last active February 3, 2023 02:05
PowerShellでBOM無しUTF8を書くサンプル
# 例1
"書き込み内容" `
| % { [Text.Encoding]::UTF8.GetBytes($_) } `
| Set-Content -Path ".\BOMlessUTF8.txt" -Encoding Byte
# 例2
Get-Content -Path ".\Source.txt" -Raw -Encoding Default `
| % { [Text.Encoding]::UTF8.GetBytes($_) } `
| Set-Content -Path ".\BOMlessUTF8.txt" -Encoding Byte
@mono0926
mono0926 / commit_message_example.md
Last active March 29, 2024 03:40
[転載] gitにおけるコミットログ/メッセージ例文集100
@freeonterminate
freeonterminate / プログラム.dpr
Last active September 17, 2020 04:07
Object Pascal も進化してるよ(プログラムの内容は全く意味が無いよ)
program プログラム;
uses
System.SysUtils
{$IFDEF ANDROID}
, Androidapi.JniBridge
{$ELSEIF IOS}
, iOSapi.Foundation
{$ENDIF}
;
@Poomel
Poomel / README.MD
Last active June 20, 2020 09:07
The Division Config

Poomels The Division Config

This is my constantly updated The Division config.

Put the Files graphic settings.cfg and state.cfg in ...\Users\$USER\Documents\My Games\Tom Clancy's The Division !

These settings are optimized for the Dark Zone. Constant 60 FPS at a resolution of 1920x1080.

Windows/Other Settings

  • Windows Sensitivity: 6/11
.container {
padding: 3rem;
}
.js-hide {
display: none;
}
@parmentf
parmentf / GitCommitEmoji.md
Last active April 26, 2024 09:53
Git Commit message Emoji
@n-fukuju
n-fukuju / 基数変換.ps1
Created October 28, 2015 07:42
PowerShellで基数の変換の覚書
# 16進数文字列で出力
(100).ToString("X")
# => 64
# 16進数から10進数文字列に変換
[Convert]::ToString(0x64, 10)
# => 100
[Convert]::ToString("0x64", 10)
# => 100
@ayu-mushi
ayu-mushi / free-monad-examples.hs
Last active December 13, 2015 03:47
Free Monadの使用例
{-# LANGUAGE DeriveFunctor, FlexibleContexts, UndecidableInstances #-}
import Control.Monad.Free
import Control.Monad (void)
import Control.Monad.Identity
import Data.Void
import Test.QuickCheck
-- Free Monadの使用例
@jbwhit
jbwhit / post-save-hook.py
Last active September 21, 2023 04:50
Saves Jupyter Notebooks as .py and .html files automatically. Add to the ipython_notebook_config.py file of your associated profile.
import os
from subprocess import check_call
def post_save(model, os_path, contents_manager):
"""post-save hook for converting notebooks to .py and .html files."""
if model['type'] != 'notebook':
return # only do this for notebooks
d, fname = os.path.split(os_path)
check_call(['jupyter', 'nbconvert', '--to', 'script', fname], cwd=d)
check_call(['jupyter', 'nbconvert', '--to', 'html', fname], cwd=d)