Skip to content

Instantly share code, notes, and snippets.

@kHigasa
kHigasa / file0.txt
Created December 8, 2018 06:03
VagrantでVM上のポートフォワーディングが失敗した(Mac OS)。 ref: https://qiita.com/kHigasa/items/c1016197fe9d3ff7aa65
❯ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: Setting the name of the VM: hogehoge_default_1544239631704_28299
==> default: Clearing any previously set forwarded ports...
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
on these ports. The forwarded port to 8080 is already in use
@kHigasa
kHigasa / fiber_with_spline_curve_sample1.py
Created November 25, 2018 14:01
fibers with spline curve, python tag
import c4d
def main():
spline = op.GetObject()
emitter = spline[c4d.ID_USERDATA, 1]
if emitter == None:
return
if emitter.GetType() != 5109:
spline[c4d.ID_USERDATA, 1] = None