Skip to content

Instantly share code, notes, and snippets.

View OctoberWu's full-sized avatar

Shih-Chiang Wu OctoberWu

View GitHub Profile
@OctoberWu
OctoberWu / [hotkey] TMUX
Created August 27, 2018 13:51
#tmux #hotkey
* 'ctrl+b' as a leader
###panes(splits)
% vertical split
" horizontal split
/*
============================================================================
Name : va_test.c
Author : octoberwu
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
@OctoberWu
OctoberWu / virtualFunc.cpp
Created August 29, 2018 13:46
#virtual_function #OOP
//============================================================================
// Name : virtualFunc.cpp
// Author : octoberwu
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostream>
using namespace std;
@OctoberWu
OctoberWu / string_C.c
Created August 29, 2018 13:48
#C #string_operation
/*
============================================================================
Name : string_C.c
Author : octoberwu
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
@OctoberWu
OctoberWu / pthread_test.cpp
Created August 29, 2018 13:50
#POSIX #pthread
//============================================================================
// Name : pthread_test.cpp
// Author : octoberwu
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostream>
#include <stdlib.h>
@OctoberWu
OctoberWu / findLastof.c
Created August 29, 2018 13:51
#string_operation
/*
============================================================================
Name : findLastof.c
Author : octoberwu
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
@OctoberWu
OctoberWu / imageFilter.cpp
Last active September 17, 2018 14:24
[fastNlMeansDenoising image filter]#opencv #cpp #img_proc
//============================================================================
// Name : imageFilter.cpp
// Author : octoberwu
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
@OctoberWu
OctoberWu / flask_reminder.md
Last active October 5, 2020 21:37
[Deploy Flask on Heroku] #flask #heroku

prerequisetes - Flask, gunicorn, Heroku account and Heroku CLI are needed

$pip install flask gunicorn

step 1: Create a simple Flask App

// ./app.py

app = Flask(__name__)
@OctoberWu
OctoberWu / debug_note.md
Last active September 17, 2018 17:03
[python bugs pool] #bugs

Flask-Alchemy

Error1: No module named sqlalchemy

Since from flask.ext.sqlalchemy import SQLAlchemy is not working So take from flask_sqlalchemy import SQLAlchemy instead.