Skip to content

Instantly share code, notes, and snippets.

@kumar8600
kumar8600 / ogldev-tutorial38.md
Last active September 9, 2023 10:36
チュートリアル 38 - Assimpでスケルタルアニメーション (OpenGL Step by Stepのチュートリアルの訳です。お気づきの点あれば勝手にフォークして直してください。ちなみに、翻訳はそのサイトのQ&Aで許可されています。)
@kumar8600
kumar8600 / my-qtcreator-emacs.kms
Last active August 29, 2015 13:57
My Qt Creator 3.0 keybindings like Emacs (moving key and indentation by tab only)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE KeyboardMappingScheme>
<!-- Written by Qt Creator 3.0.1, 2014-03-17T23:54:19. -->
<mapping>
<shortcut id="Locator.Mercurial"/>
<shortcut id="Locator.Macros"/>
<shortcut id="Locator.HelpIndexFilter"/>
<shortcut id="Locator.Git"/>
<shortcut id="Locator.Perforce"/>
<shortcut id="Locator.Open documents"/>
@kumar8600
kumar8600 / gist:4b162d411f4095e78438
Created July 10, 2014 12:05
JAG Asia 2006 Problem F: It Prefokery Pio
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(int)(b);++i)
#define RALL(a) (a).rbegin(),(a).rend()
typedef vector<int> vi;
typedef vector<vi> vvi;
@kumar8600
kumar8600 / main.cpp
Created July 11, 2014 16:56
ICPC 国内予選 2014 C
#include <iostream>
#include <cmath>
#include <climits>
#include <algorithm>
#include <iomanip>
#include <vector>
using namespace std;
int main()
@kumar8600
kumar8600 / lingr-api-memo.md
Last active October 27, 2015 04:59
Lingr API メモ

ここでは、Lingr Bot APIについての情報を取り扱わず、Lingr APIについてのみ扱う。

参照

@kumar8600
kumar8600 / keymap.txt
Created March 5, 2015 21:06
Mozcのデフォルトのキー設定「MS-IME」に、Ctrl Spaceで入力モードを切り替える設定を追加したものです。(Rawでダウンロードしてインポートして使ってください)
status key command
Composition Backspace Backspace
Conversion Backspace Cancel
Precomposition Backspace Revert
Composition Ctrl a MoveCursorToBeginning
Conversion Ctrl a SegmentFocusFirst
Composition Ctrl Backspace Backspace
Conversion Ctrl Backspace Cancel
Precomposition Ctrl Backspace Undo
Composition Ctrl d MoveCursorRight
@kumar8600
kumar8600 / IEGoogleSearch.reg
Created July 2, 2015 07:39
IEにGoogleを検索プロバイダとして登録するレジストリエントリ(Rawでダウンロードして実行してください)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{656B97C1-F022-4ADA-8289-599BC6188FBA}]
"DisplayName"="Google"
"OSDFileURL"="http://www.iegallery.com/en-us/AddOns/DownloadAddOn?resourceId=813"
"FaviconPath"="C:\\Users\\Yuya\\AppData\\LocalLow\\Microsoft\\Internet Explorer\\Services\\search_{656B97C1-F022-4ADA-8289-599BC6188FBA}.ico"
"FaviconURL"="http://www.google.co.jp/favicon.ico"
"ShowSearchSuggestions"=dword:00000001
"URL"="http://www.google.co.jp/search?q={searchTerms}&sourceid=ie7&rls=com.microsoft:{language}:{referrer:source}&ie={inputEncoding?}&oe={outputEncoding?}"
"SuggestionsURL"="http://clients5.google.com/complete/search?hl={language}&q={searchTerms}&client=ie8&inputencoding={inputEncoding}&outputencoding={outputEncoding}"
@kumar8600
kumar8600 / naive_any.hpp
Last active August 29, 2015 14:25
Very simple naive any implementation type_info is not used. example: http://melpon.org/wandbox/permlink/cMPCv62OOcJFUOZZ
#pragma once
#include <memory>
#include <utility>
#include <functional>
#include <type_traits>
struct naive_any
{
template <typename T>
#pragma once
#include <cstddef>
#include <memory>
namespace kumar
{
struct dynamic_allocator_interface
{
virtual ~dynamic_allocator_interface() = default;
@kumar8600
kumar8600 / do-it.sh
Last active February 29, 2016 19:11
MSYS2 MinGW でぼくがつかう パッケージ
pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_net mingw-w64-x86_64-lua