Skip to content

Instantly share code, notes, and snippets.

View garasubo's full-sized avatar
緑風

Takumi Shimada garasubo

緑風
View GitHub Profile
@garasubo
garasubo / rust-zatsudan-shownote.md
Created October 8, 2021 13:56
Rust雑談会(仮) #2 参考リンク
@garasubo
garasubo / lib.rs
Last active February 5, 2020 14:24
synchronous graph
use std::sync::{Arc, Mutex, Weak};
use std::clone::Clone;
#[derive(Debug, Clone)]
struct GraphInner<T> {
nodes: Vec<(Option<Arc<Mutex<NodeInner<T>>>>, usize)>,
next: usize,
}
#[derive(Debug, Clone, PartialEq)]
@garasubo
garasubo / xim_example.c
Created January 25, 2020 05:14
Example code to use preedit callbacks in XIM
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <stdlib.h>
#include <stdio.h>
#include <locale.h>
#include <assert.h>
Display *dpy;
Window win;
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath^=/home/garasubo/.cache/repos/github.com/Shougo/dein.vim
" Required:
@garasubo
garasubo / .config
Created January 19, 2016 03:06
cubieboard2 xen config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.15.0 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_NO_IOPORT_MAP=y
@garasubo
garasubo / dtb_virt.dts
Created November 25, 2015 01:49
ls1021a_single.dts
/dts-v1/;
// magic: 0xd00dfeed
// totalsize: 0x5641 (22081)
// off_dt_struct: 0x48
// off_dt_strings: 0x5050
// off_mem_rsvmap: 0x28
// version: 17
// last_comp_version: 16
// boot_cpuid_phys: 0xf00
// size_dt_strings: 0x5f1
@garasubo
garasubo / .config
Last active November 25, 2015 01:50
linux for ls1021a config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.12.0 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
@garasubo
garasubo / ls1021a.dts
Last active November 11, 2015 07:56
ls1021a dts for virtual env
/dts-v1/;
// magic: 0xd00dfeed
// totalsize: 0x5641 (22081)
// off_dt_struct: 0x48
// off_dt_strings: 0x5050
// off_mem_rsvmap: 0x28
// version: 17
// last_comp_version: 16
// boot_cpuid_phys: 0xf00
// size_dt_strings: 0x5f1