Skip to content

Instantly share code, notes, and snippets.

# Doxyfile 1.9.8
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is:
import os
from io import BytesIO
import tarfile
import tempfile
from six.moves import urllib
import numpy as np
from PIL import Image
import tensorflow as tf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karaage0703
karaage0703 / .vimrc
Last active January 16, 2016 14:08
.vimrc for plugin
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
@karaage0703
karaage0703 / deepdream_sample.py
Created December 27, 2015 07:13
sample script for deep dream
# imports and basic notebook setup
from cStringIO import StringIO
import numpy as np
import os
import scipy.ndimage as nd
import PIL.Image
from IPython.display import clear_output, Image
from google.protobuf import text_format
import caffe
@karaage0703
karaage0703 / OptimizeBuildCaffe.sh
Created December 13, 2015 12:15
Optimize build process on debian jessie
#!/bin/bash
# manipulate header path, before building caffe on debian jessie
# usage:
# 1. cd root of caffe
# 2. bash <this_script>
# 3. build
# transformations :
# #include "hdf5/serial/hdf5.h" -> #include "hdf5/serial/hdf5.h"
# #include "hdf5_hl.h" -> #include "hdf5/serial/hdf5_hl.h"
#!/bin/bash
if pgrep mjpg_streamer > /dev/null
then
echo "mjpg_streamer already running"
else
LD_LIBRARY_PATH=/opt/mjpg-streamer/ /opt/mjpg-streamer/mjpg_streamer -i "input_raspicam.so -fps 15 -q 50 -x 640 -y 480" -o "output_http.so -p 9000 -w /opt/mjpg-streamer/www" > /dev/null 2>&1&
echo "mjpg_streamer started"
fi
@karaage0703
karaage0703 / raspidigicam.py
Last active December 26, 2020 14:55
raspberry pi digicam
#!/usr/bin/python
# -*- coding: utf-8 -*-
#import RPi.GPIO as GPIO
import subprocess
import wiringpi2 as wiringpi
import time
from time import sleep
import picamera
import os
import syslog
@karaage0703
karaage0703 / .vimrc
Last active March 4, 2016 03:27
.vimrc without plugin
set number
if &t_Co > 1
syntax enable
endif
" for python
autocmd FileType python setl autoindent
autocmd FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
autocmd FileType python setl tabstop=8 expandtab shiftwidth=4 softtabstop=4
@karaage0703
karaage0703 / pokemiku_camera.sh______.py
Last active October 12, 2015 06:05
Singing Digital Camera (Nakayoshi Camera + Pocket mike)
#!/usr/bin/python
# -*- coding: utf-8 -*-
import pygame
import pygame.midi
from time import sleep
import picamera
instrument = 0 # miku
port = 2 # NSX-39