Skip to content

Instantly share code, notes, and snippets.

karaage karaage0703

Block or report user

Report or block karaage0703

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View deeplab_sample_video_capture.py
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
View warikan.ipynb
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 Jan 16, 2016
.vimrc for plugin
View .vimrc
" 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 Dec 27, 2015
sample script for deep dream
View deepdream_sample.py
# 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 Dec 13, 2015
Optimize build process on debian jessie
View OptimizeBuildCaffe.sh
#!/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"
View stream.sh
#!/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 Oct 24, 2015
raspberry pi digicam
View raspidigicam.py
#!/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 Mar 4, 2016
.vimrc without plugin
View .vimrc
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 Oct 12, 2015
Singing Digital Camera (Nakayoshi Camera + Pocket mike)
View pokemiku_camera.sh______.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import pygame
import pygame.midi
from time import sleep
import picamera
instrument = 0 # miku
port = 2 # NSX-39
@karaage0703
karaage0703 / camera_menu_effect.sh______.py
Last active Aug 29, 2015
Camera menu and effect for Nakayoshi Camera
View camera_menu_effect.sh______.py
#!/usr/bin/python
# -*0 coding: utf-8 -*-
import RPi.GPIO as GPIO
import time
import picamera
import os
import pygame
import syslog
# GPIO pin
You can’t perform that action at this time.