Skip to content

Instantly share code, notes, and snippets.

View peace098beat's full-sized avatar

Tomoyuki Nohara peace098beat

View GitHub Profile
@peace098beat
peace098beat / Python-Machinelearning-Book.ipynb
Created June 29, 2016 23:36
Python-Machinelearning-Book.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peace098beat
peace098beat / blender_sample1.py
Created June 1, 2016 08:23
[Blender] ブレンダーで球を作るスクリプト
"""
create_casing.py
Tomoyuki Nohara 2016/06/01
TODO: Add Material
"""
import bpy
#! coding:utf-8
"""
a
Created by 0160929 on 2016/03/18 10:40
"""
from PySide.QtNetwork import QNetworkProxy, QSslConfiguration, QSslCertificate, QSsl
__version__ = '0.2'
__app_name__ = 'Recomen'
@peace098beat
peace098beat / GLCanvasSpectrogram.py
Created April 6, 2016 03:13
GLCanvasSpectrogram
# coding:utf-8
"""PySide port of the opengl/samplebuffers example from Qt v4.x"""
import struct
from OpenGL import GL
from OpenGL import GLU
# from OpenGL import GLUT
from OpenGL.GLUT import *
@peace098beat
peace098beat / ruijou.py
Created April 4, 2016 02:22
累乗計算
** 累乗計算
def ruijou(self, x):
from numpy import log2, floor
y0 = log2(x)
# 最小t
p = floor(y0)
return int(2 ** p)
#!/usr/bin/env python
"""PySide port of the opengl/samplebuffers example from Qt v4.x"""
import sys
import math
from PySide import QtCore, QtGui, QtOpenGL
try:
from OpenGL import GL
@peace098beat
peace098beat / fitime.py
Created April 1, 2016 11:48
[Python] StopWatch
# -*- coding: utf-8 -*-
"""
ptime.py - Precision time function made os-independent (should have been taken care of by python)
Copyright 2010 Luke Campagnola
Distributed under MIT/X11 license. See license.txt for more infomation.
from pyqtgraph.ptime import time
now = time()
dt = now - lastTime
@peace098beat
peace098beat / pyBrowser.py
Created March 22, 2016 08:36
[PySide] QWebView
#! coding:utf-8
"""
a
Created by 0160929 on 2016/03/18 10:40
"""
from PySide.QtNetwork import QNetworkProxy
__version__ = '0.2'
__app_name__ = 'Recomen'
@peace098beat
peace098beat / StaggeredGridJS.js
Created March 15, 2016 14:59
StaggeredGridJS.js
/* ******************************************************
*
* StaggeredGridJS
* スタッガード格子を書くjsスクリプト
*
* [ -- 使い方 -- ]
* <div class="StaggeredGridJS" I="4" J="4" pml=0 w=500 h=500></div>
* <p>図. スタッガード格子</p>
*
* [ -- プロパティ -- ]