Skip to content

Instantly share code, notes, and snippets.

@nocd5
nocd5 / InterTabClient.cs
Created February 24, 2020 03:31
Dragablz Custom InterTabClient for Caliburn.Micro
using Caliburn.Micro;
using Dragablz;
using CaliburnApp.ViewModels;
using CaliburnApp.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Threading;
using Action = System.Action;
@nocd5
nocd5 / user.css
Last active December 6, 2018 04:15
CSS for Tab Plus Plugin of Tablacus Explorer
* {
font-family: "monaco", "UD Digi Kyokasho N-R", "02UtsukushiMincho" !important;
}
.tab0 {
padding: 3px 0 0 12px;
background: #F0F0F0;
}
.tab,
@nocd5
nocd5 / build tmux
Created October 18, 2017 11:28
build tmux
#/bin/csh
git clone --depth 1 https://github.com/libevent/libevent
git clone --depth 1 https://github.com/tmux/tmux
pushd libevent
./autogen.sh
./configure --prefix=$HOME/usr --enable-static --disable-shared --with-pic
make -j4 && make install
popd
@nocd5
nocd5 / build mosh
Last active October 18, 2017 10:03
build mosh
#!/bin/csh
git clone https://github.com/google/protobuf
git clone https://github.com/mobile-shell/mosh
pushd protobuf
./autogen.sh
./configure --prefix=$HOME/usr --enable-static --disable-shared --with-pic
make -j4 && make install
popd
@nocd5
nocd5 / avoid_errer_dialog.patch
Created July 28, 2017 10:12
`gvim.exe --serverlist`や`gvim.exe --remote-expr "1+1"`などで表示されるダイアログ
diff --git a/src/main.c b/src/main.c
index 268c256..a7f104a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3934,6 +3934,9 @@ cmdsrv_main(
mainerr_arg_missing((char_u *)argv[i]);
# ifdef WIN32
/* Win32 always works? */
+# ifdef FEAT_GUI_W32
+ gui.starting = TRUE;
@nocd5
nocd5 / chocd.csh
Last active April 6, 2017 04:05
chdir with cho
#!/bin/csh
if ("$1" == "") then
pushd ~
else if ("$1" =~ */ | "$1" == "..") then
pushd $1
else
set pattern = `basename $1`
set parent = `dirname $1`
set dirs = ()
@nocd5
nocd5 / sort_features.patch
Created August 3, 2016 02:26
Sort Features included (+) or not (-)
diff --git a/src/version.c b/src/version.c
index f6d56d1..be2eeb9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -5119,6 +5119,18 @@ ex_version(exarg_T *eap)
}
}
+ static int
+featcmp(const void *s1, const void *s2)
@nocd5
nocd5 / cursor_color.diff
Created February 11, 2016 15:38
[ConEmu] Change cursor color in a state of IME.
diff --git a/src/ConEmu/ConEmu14.vcxproj b/src/ConEmu/ConEmu14.vcxproj
index 84f5052..b4d54fc 100644
--- a/src/ConEmu/ConEmu14.vcxproj
+++ b/src/ConEmu/ConEmu14.vcxproj
@@ -235,7 +235,7 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
- <AdditionalDependencies>comctl32.lib;Shlwapi.lib;version.lib;gdiplus.lib;Winmm.lib;Netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>comctl32.lib;Shlwapi.lib;version.lib;gdiplus.lib;Winmm.lib;Netapi32.lib;imm32.lib;%(AdditionalDependencies)</AdditionalDependencies>
def get_check_digit (number)
sum = 0
number[0,11].reverse.split(//).each_with_index {|n, i|
sum += n.to_i * (i % 6 + 2)
}
return sum <= 1 ? 0 : 11 - sum % 11
end
puts "Please input your number"
number = gets.chomp
@nocd5
nocd5 / .nyagos
Last active September 18, 2015 10:32
nyagosのpanic再現パタン
function sleep(n)
local t = os.time()
while os.time() - t <= n do end
end
local _prompt = nyagos.prompt
nyagos.prompt = function(template)
sleep(1)
return _prompt('nyagos > ')
end
nyagos.alias.foo = function()