This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import c4d | |
from math import pi | |
from c4d.modules import mograph as mo | |
# Functions | |
def dataAddVector(obj, name, parent, unit, step, Min, default): | |
ud = c4d.GetCustomDatatypeDefault(c4d.DTYPE_VECTOR) | |
ud[c4d.DESC_NAME] = name | |
ud[c4d.DESC_UNIT] = unit | |
ud[c4d.DESC_STEP] = step |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import c4d | |
from c4d.modules import mograph as mo | |
from c4d import utils | |
# Functions | |
def quantize(num, step): | |
return step*(num//step) | |
def vectorQuantize(vec, stepParams): | |
vecX = quantize(round(vec.x, 10), stepParams.x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String str = "abcdefg"; | |
int textSize = 60; | |
int intervalTime = 120; // 文字の表示間隔をミリ秒で指定 | |
void setup() { | |
size(300, 100); | |
textSize(textSize); | |
fill(248); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
set selfname=%~n0 | |
cd /d %~dp0 | |
@REM 引数による条件処理 | |
if "%1"=="" ( | |
call :usage | |
goto :success | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.svg.*; | |
String[] lines; | |
void setup() { | |
// スケッチのサイズはC4Dのレンダリング解像度と同じにしてください | |
size(1280, 720); | |
noFill(); | |
noLoop(); | |
strokeWeight(0.1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: UPM on npsjs.com | |
on: | |
workflow_dispatch: | |
release: | |
types: [created] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Microsoft.PowerShell_profile.ps1 | |
# ############################################################################## | |
# This profile is for the current user | |
# This profile loads when the current user opens the PowerShell console | |
# | |
# To create a profile for all users, create a profile in the $PSHOME directory | |
# To create a profile for the current user, create a profile in the $PROFILE directory | |
# To find the $PROFILE directory, run $PROFILE in the PowerShell console | |
# To find the $PSHOME directory, run $PSHOME in the PowerShell console | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[Parameter()] | |
[ValidateSet("machine", "user")] | |
[string]$scope = "user", | |
[switch]$help | |
) | |
if ($help) { | |
Write-Output "`nThis script accepts the following arguments:" | |
Write-Output "--scope: Specify 'machine' or 'user'. The default is 'user'." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
[OutputType()] | |
param() | |
#region PreProcess | |
# おまじない | |
# https://gist.github.com/AJpon/df3a707871be67df111b9a7c210ee463 | |
# このスクリプトで実行したコマンド履歴は | |
# PSReadLineHistory に保存しないようにする | |
$PSReadLineHistorySaveStyle = "Never" |