Skip to content

Instantly share code, notes, and snippets.

@anatawa12
anatawa12 / ActualPerformanceWindow.cs
Last active May 3, 2024 06:24
A window to see actual performance rank on building avatars.
/*
* Actual Performance Info Window
* https://gist.github.com/anatawa12/a4bb4e2e5d75b4fa5ba42e236aae564d
*
* Copy this cs file to anywhere in your asset folder is the only step to install this tool.
*
* A window to see actual performance rank on building avatars.
* When you click the `Build & Publish` button, this class will compute actual performance rank show you that.
*
* MIT License
@basuke
basuke / create-vlog-project.py
Last active May 31, 2024 05:01
A python script to create a DaVinci Resolve project with today's date and import media files into default timeline.
import os
import sys
import datetime
from glob import glob
from argparse import ArgumentParser
# settings
projectNamePrefix = "vlog-"
presetName = "Default" # You have to define this preset by your self. <----
@k-takata
k-takata / 256colors2.bat
Last active November 25, 2023 16:23
Testing ANSI color sequence on Windows 10 and other terminal emulators
@echo off
rem Based on Todd Larason's 256color2.pl.
rem Ported to Windows 10's Command Prompt.
setlocal EnableDelayedExpansion
rem display the colors
rem first the system ones:
echo System colors:
@mattn
mattn / reading-vimrc.cmd
Last active December 11, 2016 03:33
Windows ユーザ向け、vimrc 読書会スターターキット
@echo off
setlocal
set URL=http://vim-jp.org/reading-vimrc/json/next.json
rundll32.exe url.dll,FileProtocolHandler https://gitter.im/vim-jp/reading-vimrc
for /f %%i in ('curl -s %URL% ^| jq -r .[].vimrcs[].url') do (
rundll32.exe url.dll,FileProtocolHandler %%i
)
@evdokimovm
evdokimovm / index.js
Created June 19, 2016 14:10
JavaScript Convert Radians to Degrees and Degrees to Radians
// Convert from degrees to radians.
Math.radians = function(degrees) {
return degrees * Math.PI / 180;
}
Math.radians(90); // 1.5707963267948966
// Convert from radians to degrees.
Math.degrees = function(radians) {
return radians * 180 / Math.PI;
}
@koron
koron / cleanup-vim-tl.md
Last active January 11, 2017 03:01
twitterのvim検索TLを綺麗にするブックマークレット

以下のブックマークレットを、 twitterの vim lang:ja のライブ検索結果 を開いたブラウザで実行すると、TLがいい感じで綺麗になります。

javascript:setInterval(function(){["vim","Vim","VIM"].forEach(function(v){["data-screen-name","data-mentions","data-name"].forEach(function(k){$('['+k+'*="'+v+'"]').remove()})})},1000)

このブックマークレットでは、スクリーン名とメンション先の名前に vim, Vim, VIM のいずれかが含まれているツイートを、1秒に1回消しています。 詳細は以下の圧縮前のインデント付きソースコードを確認してください。

@h-east
h-east / gen_syntax_vim.patch
Last active November 30, 2015 14:03
syntax/vim.vim generator for Vim (WIP)
diff --git a/src/Makefile b/src/Makefile
--- a/src/Makefile
+++ b/src/Makefile
@@ -1515,6 +1515,9 @@
UNITTEST_SRC = $(MEMFILE_TEST_SRC)
UNITTEST_TARGETS = $(MEMFILE_TEST_TARGET)
+# syntax/vim.vim generator & Vim source code sanity checker
+GEN_SYN_VIM_DIR = gen_syntax_vim
+
@h-east
h-east / vim_cmds.txt
Last active November 30, 2015 14:03
The number of Vim ex-command is 520. (Auto extracted from ex_cmds.h)
a[ppend]
ab[breviate]
abc[lear]
abo[veleft]
al[l]
am[enu]
an[oremenu]
ar[gs]
arga[dd]
argd[elete]
46 : Shougo/unite.vim
42 : Shougo/vimproc
40 : thinca/vim-quickrun
38 : tpope/vim-fugitive
33 : thinca/vim-ref
32 : mattn/webapi-vim
31 : tpope/vim-surround
29 : Shougo/neocomplcache
27 : tyru/open-browser.vim
26 : Shougo/vimshell
@ynkdir
ynkdir / cc500.vim
Created December 1, 2014 15:53
cc500.vim
" This is a port of CC500
" http://homepage.ntlworld.com/edmund.grimley-evans/cc500/
"
"-------------------------------------------------------------------------------
" ORIGINAL HEADER
"-------------------------------------------------------------------------------
" Copyright (C) 2006 Edmund GRIMLEY EVANS <edmundo@rano.org>
"
" This program is free software; you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by