Skip to content

Instantly share code, notes, and snippets.

View skishida's full-sized avatar
🏠
Working from home

skishida

🏠
Working from home
View GitHub Profile
@skishida
skishida / quartz-milky.user.css
Created February 13, 2020 12:37
custom css for typora, theme:quartz-milky
/* フォントを変える */
:root {
--body-font: "Rounded Mplus 1c", Roboto, "Open Sans", "Helvetica Neue",
Helvetica, Arial, sans-serif;
--monospace-font: "MigMix 1M", Inconsolata, Consolas, Menlo, "Liberation Mono";
--monospace-font-size: 0.8rem;
}
/* 目次レベルを調整 */
@skishida
skishida / blender_copy_image_to_clipboard.py
Last active August 14, 2019 14:42 — forked from a-nakanosora/blender_copy_image_to_clipboard.py
Blender Script draft - Copy image to clipboard
'''
Blender Script - Copy "Viewer Node" image to clipboard (for blender 2.8)
- Windows only
- needs: Python module: Pillow (PIL), pywin32
usage:
- setup pillow and pywin32 package with pip
- import this script as addon
- add "Vewer" node to compositor and link it
@skishida
skishida / add_to_.bashrc.sh
Last active June 11, 2019 02:34
decrypt edit-locked pdf and unlock view-locked pdf with ghost script
function decrypt-pdf() {
command ghostscript -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=${1%.*}-dec.pdf -c .setpdfwrite -f $1
}
function unlock-pdf() {
command ghostscript -q -dNOPAUSE -dBATCH -sPDFPassword=$2 -sDEVICE=pdfwrite -sOutputFile=${1%.*}-dec.pdf -c .setpdfwrite -f $1
}
@skishida
skishida / SimpleScreenshot.cs
Created March 31, 2019 00:51
Take Screenshot with alpha in Unity Editor
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
// mixed these codes
// https://qiita.com/Nekomasu/items/dcdf73f221fd64875ef0
// http://entitycrisis.blogspot.com/2017/02/take-unity-screenshot-with-alpha.html
@skishida
skishida / SH.pde
Created June 5, 2018 02:28
Smarthair demo program
// SmartHair DBC DEMO Program
public static enum VIEWMODE{
rect,
circle,
animation,
shade;
private static VIEWMODE[] vals = values();
public VIEWMODE next()
{
@skishida
skishida / c_cpp_properties.json
Last active May 5, 2024 14:44
c_cpp_properties.json for Arduino in Visual Studio Code with vscode-arduino and vscode-cpptools extensions.
{
"configurations": [
{
"name": "Win32",
"browse": {
"path": [
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": true
},
@skishida
skishida / OCV2_KV2.props
Created July 3, 2017 05:15
OpenCV2 and Kinect v2 settings for Visual Studio project
<!-- this gist is public domain -->
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<ovckinect />
</PropertyGroup>
<PropertyGroup />
<ItemDefinitionGroup>
<Link>