Skip to content

Instantly share code, notes, and snippets.

@tjb0607
tjb0607 / visualizer.py
Last active December 26, 2021 19:24
a 2D audio visualizer script for Blender 2.5+ (v0.3)
# To use this script, you must first change a few things.
# First, you'll want to change the filepath for the sound file.
# This is on line 76. Second, you might want to change the materials or the settings.
# To render this, you'll need to set the background color, enable Only Render on the display window, and render it with OpenGL (it's much faster and most optimal for 2D renders.)
# LICENSE = wtfpl
# VERSION = 0.3
import bpy
def makeMaterial(name, diffuse, alpha):
@neilus
neilus / Rigging.py
Created March 27, 2012 19:51
A simple Blender UI for rigging
import bpy
class myButtons(bpy.types.Panel):
bl_label = "Rig Layers"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
@classmethod
def poll(self,context):
if(bpy.context.active_object.type == 'ARMATURE'):
@nobonobo
nobonobo / recognizer.py
Last active March 10, 2017 17:55
[Google音声認識サンプル] 依存:numpy、PyAudio==0.2.7、flac-1ツール(http://flac.sourceforge.net/download.html
#/usr/bin/env python
# encoding: utf-8
import os
import sys
import atexit
import json
import time
import tempfile
import wave
@vaiorabbit
vaiorabbit / opengl_command.rb
Created August 26, 2013 15:21
OpenGL標準API(4.4 まで)のRuby用ラッパーコードを自動生成した例
# [NOTICE] Automatically generated file
module OpenGL
GL_FUNCTIONS_ARGS_MAP[:glCullFace] = [Fiddle::TYPE_INT]
GL_FUNCTIONS_RETVAL_MAP[:glCullFace] = Fiddle::TYPE_VOID
def glCullFace(_mode_)
f = OpenGL::get_command(:glCullFace)
f.call(_mode_)
end
GL_FUNCTIONS_ARGS_MAP[:glFrontFace] = [Fiddle::TYPE_INT]
@sys9kdr
sys9kdr / Puppeteerがクローリングに使えるかも.md
Created December 16, 2017 18:03
Puppeteerがクローリングに使えそう

この記事はWebスクレイピング Advent Calendar 2017の17日目の記事です。puppeteerでクローリングします。

Google Chrome(Chromium)でクローリングをやる

SPAみたいなちょっと凝ったWebサイトをクローリングするときは一昔前はSelenium + PhantomJSあたりが鉄板でしたが、今後はSelenium + Headless ChromeもしくはPuppeteer + Headless Chromeが主流となっていく見通しです。 (HeadlessとはGUIアプリケーションのGUIを介さないモードのことです。)

前者についてはWeb上に情報も多いですが、Puppeteerでクローリングする話をそんなに見ない気がするのでクローリングの歴史を踏まえてやってみます。

一昔前のクローリング

@neon-izm
neon-izm / HumanTrait.MuscleNames.csv
Created September 17, 2018 02:36
HumanPose.musclesの中身の95個のfloatはこんな感じ。55から94に指の情報が入っている
0 Spine Front-Back
1 Spine Left-Right
2 Spine Twist Left-Right
3 Chest Front-Back
4 Chest Left-Right
5 Chest Twist Left-Right
6 UpperChest Front-Back
7 UpperChest Left-Right
8 UpperChest Twist Left-Right
9 Neck Nod Down-Up