Skip to content

Instantly share code, notes, and snippets.

View nutti's full-sized avatar

nutti nutti

View GitHub Profile
@nutti
nutti / blf_bug.py
Created October 15, 2020 13:09
[Blender 2.91] blf module bug
bl_info = {
"name": "Modal Operator Demo 1",
"author": "nutti",
"version": (1, 0, 0),
"blender": (2, 91, 0),
"location": "3D View > Sidebar > Modal Ops",
"category": "System",
}
@nutti
nutti / get_daily_build_blender_binary_url.py
Created August 1, 2020 02:43
get_daily_build_blender_binary_url.py
from bs4 import BeautifulSoup
from urllib import request
import json
builder_blender_org_url = "https://builder.blender.org"
daily_build_url = builder_blender_org_url + "/download"
response = request.urlopen(daily_build_url)
soup = BeautifulSoup(response, "html.parser")
response.close()
@nutti
nutti / turtle_graphics.py
Created December 31, 2017 08:37
Turtle Graphcs with Suzanne
# MIT License
#
# Copyright (c) 2017 Nutti
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@nutti
nutti / iotop.pl
Created November 22, 2017 12:25
I/O monitoring
#!/usr/bin/env perl
use strict;
use Time::HiRes qw(gettimeofday tv_interval);
use POSIX 'strftime';
sub read_proc {
my %stats = ();
my @io_files = glob "/proc/**/io";
@nutti
nutti / file0.js
Created September 22, 2016 13:25
[Electron] BrowserWindow の proxy ユーザ認証方法 ref: http://qiita.com/nutti/items/4614004fd28920ecd27c
var electron = require('electron');
var app = electron.app;
var BrowserWindow = electron.BrowserWindow;
// ログイン認証が発生した時に呼び出される処理
app.on('login', function(event, webContents, request, authInfo, callback) {
event.preventDefault();
// コールバック関数にユーザ名とパスワードを指定して呼び出す
callback(username, password);
});
@nutti
nutti / unwrap_constraint.py
Last active August 27, 2016 09:28
Unwrap Constraint
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# wahooney_copy_mirror_uvs.py Copyright (C) 2009-2010, Keith "Wahooney" Boshoff
# ***** BEGIN GPL LICENSE BLOCK *****
#
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@nutti
nutti / shortcut_key_test_muv_cpuv.py
Last active July 19, 2016 11:57
Shortcut key test for Copy/Paste UVs on Magic UV
import bpy
class MyClassCopy(bpy.types.Operator):
bl_idname = "my.own_class_copy"
bl_label = "own class copy"
def execute(self, context):
bpy.ops.uv.muv_cpuv_copy_uv() # CopyUV
return {'FINISHED'}
@nutti
nutti / book.json
Last active July 16, 2016 13:59
[GitBook] GitBookから生成されるPDF・HTMLのデザインを変更する方法 ref: http://qiita.com/nutti/items/96e7194c82b8d04382e2
{
"plugins": ["styles-less"],
"styles": {
"website": "my_website.less",
"pdf": "my_pdf.less"
}
}
@nutti
nutti / space_view3d_screencast_keys_ex.py
Created May 6, 2016 15:57
Screencast Keys Extended
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the