Skip to content

Instantly share code, notes, and snippets.

@kumar8600
kumar8600 / smb.conf
Created September 26, 2019 15:31
ホームディレクトリを読み書きするための smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/CameraUi.h"
using namespace ci;
using namespace ci::app;
using namespace std;
class ikApp : public App {
@kumar8600
kumar8600 / .editorconfig
Created March 20, 2017 15:10
Visual Studio 2017 C++ 用 EditorConfig
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# C++
[*.{c,cpp,h}]
indent_style = space
indent_size = tab
tab_width = 4
@kumar8600
kumar8600 / gen_cargo_vscode.py
Last active November 20, 2016 08:58
Generates cargo executable project and debugging configurations for vscode.
# -*- coding: utf-8 -*-
"""Generates cargo executable project and debugging configurations for vscode.
Calls `cargo new <project_name> --bin`
and generates vscode configurations for debugging via the Native Debug extension.
Usage: python gen_cargo_vscode.py <project_name>
"""
import sys
import os
@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
#pragma once
#include <cstddef>
#include <memory>
namespace kumar
{
struct dynamic_allocator_interface
{
virtual ~dynamic_allocator_interface() = default;
@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>
@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 / 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 / lingr-api-memo.md
Last active October 27, 2015 04:59
Lingr API メモ

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

参照