Skip to content

Instantly share code, notes, and snippets.

@a-nakanosora
a-nakanosora / main.css
Created February 21, 2018 09:00
test css for firebase simple bbs
body {background: #ECEFF1; color: #757575;}
#reply-form, #replies {margin: 100px auto 16px; max-width: 360px;}
#reply-form, .reply {background: white; padding:5px;}
.reply {position: relative; border: 1px solid #ddd; margin:10px;}
#reply-body {width: 100%; height: 7em;}
#reply-key {width: 50px;}
.head {color: #888; font-size: 75%;}
.date {position: absolute; right: 0;}
.content {border-top: 1px dotted #ddd; padding: 4px;}
.delete {position: absolute; bottom: 0; right: 0; font-size: 60%; padding: 1px; background-color: #f5f5f5; border: none; color: #ccc; opacity: 0.7;}
## temp 20171123
## GL Play Image Sequence - v0.3.1a
'''
Blender Addon # GL Play Image Sequence
'''
bl_info = {
"name": "GL Play Image Sequence",
@a-nakanosora
a-nakanosora / userscript_twitter_indent_retweets.js
Last active November 29, 2017 18:50
UserScript # twitter - indent retweets & likes
// ==UserScript==
// @name twitter - indent retweets & likes
// @namespace Violentmonkey Scripts
// @match *://mobile.twitter.com/*
// ==/UserScript==
(function(){
/// for mobile.twitter.com
const svg_like_retweet = 'svg._1v21e2jc'
@a-nakanosora
a-nakanosora / blscript_save_viewport_buffer_as_image.py
Last active September 16, 2023 23:36
Blender Script - Save viewport buffer as an image
''' blscript_save_viewport_buffer_as_image.py
'''
import bpy
import bgl
def main():
def get_region_view3d():
'''
context = bpy.context
@a-nakanosora
a-nakanosora / blenderscript - surfacepoint_from_uv_coord.py
Created September 22, 2017 06:57
blenderscript - surfacepoint_from_uv_coord.py
'''
surfacepoint_from_uv_coord()
forked from:
[SOLVED] Get 3D location of mesh surface point from UV Parameter?
https://blenderartists.org/forum/showthread.php?379027-Get-3D-location-of-mesh-surface-point-from-UV-Parameter
'''
import bpy
import bmesh
from mathutils.geometry import barycentric_transform, intersect_point_tri_2d
@a-nakanosora
a-nakanosora / blender_copy_image_to_clipboard.py
Last active June 6, 2022 14:57
Blender Script draft - Copy image to clipboard
'''
Blender Script - Copy "Viewer Node" image to clipboard
- Windows only
- needs: Python module: Pillow (PIL)
ref:
python - Copy PIL/PILLOW Image to Windows Clipboard - Stack Overflow