Skip to content

Instantly share code, notes, and snippets.

View yuu's full-sized avatar
:octocat:
every write code

yuu yuu

:octocat:
every write code
View GitHub Profile
@yuu
yuu / README.md
Last active January 12, 2018 01:50
weston install script

weston install scripts

@yuu
yuu / .gitignore
Last active February 7, 2019 02:01
[Qiita]2016 Qt advent calendar
.moc/
.obj/
.qmake.stash
Makefile
cpp2qml
@yuu
yuu / README.md
Last active March 6, 2020 01:39
[c++] [boost] learn boost tutorial

boost

@yuu
yuu / CMakeLists.txt
Last active December 3, 2019 04:23
[gles][egl] x11 client
cmake_minimum_required(VERSION 3.0.0)
project(app VERSION 0.0.1)
option(USE_iMX6FB_BACKEND "Use iMX6FB for EGL Backend" OFF)
option(USE_X11_BACKEND "Use desktop X11 for EGL Backend" ON)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GLESv2 glesv2 REQUIRED)
pkg_check_modules(EGL egl REQUIRED)
@yuu
yuu / README.md
Last active August 23, 2019 06:09
[c++] Wrap c struct and c++ class

C++ Wrap example

1. make shared library

g++ -c -Wall -Werror -shared -fpic lib.cpp -o libhoge.so

2. make exec

gcc main.c -L$(pwd) -lhoge -lstdc++
@yuu
yuu / README.md
Last active August 23, 2019 06:10
[python 3] Excel with Python3

Excel with Python3

OpenPyXLを使って、Excelを操作する。

Usage

1.Prepare the excel file

ほげ.xlsx

2.Excecution

python ex.py
diff --git a/options-table.c b/options-table.c
index f611ba0..be2e92b 100644
--- a/options-table.c
+++ b/options-table.c
@@ -321,6 +321,12 @@ const struct options_table_entry options_table[] = {
.default_num = 0
},
+ { .name = "pane-border-ascii",
+ .type = OPTIONS_TABLE_FLAG,
@yuu
yuu / tmux-2.7-ascii-board.patch
Last active August 8, 2018 15:04
tmux 2.7 ascii board char
diff --git a/tty-acs.c b/tty-acs.c
index 1f7a2b1..1de826e 100644
--- a/tty-acs.c
+++ b/tty-acs.c
@@ -41,21 +41,21 @@ static const struct tty_acs_entry tty_acs_table[] = {
{ 'g', "\302\261" }, /* plus/minus */
{ 'h', "\342\226\222" }, /* board of squares */
{ 'i', "\342\230\203" }, /* lantern symbol */
- { 'j', "\342\224\230" }, /* lower right corner */
- { 'k', "\342\224\220" }, /* upper right corner */
@yuu
yuu / about-compiler-dsl.rst
Last active September 2, 2018 12:35
コンパイラ・DSL関連ことはじめ

コンパイラ・DSL関連ことはじめ

ver:18.09.1

主に構文解析を行いたく、コンパイラや外部DSL関連のメモを記述する。

コンパイラの処理の流れ

  1. 字句解析 (Lexical Analyzer)
@yuu
yuu / decorator.py
Last active August 23, 2019 06:07
[python 3] learn Python
# https://wandbox.org/permlink/imoBGl7tNgWngfaK
def do_twice(func):
print('call do_twice: {}'.format(func))
def wrap(*args, **kwargs):
func(*args, **kwargs)
func(*args, **kwargs)
return wrap