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
$ diff -U 0 /etc/default/grub{.org,} | |
--- /etc/default/grub.org 2018-09-07 16:22:56.258467498 +0000 | |
+++ /etc/default/grub 2018-09-08 07:25:50.275936372 +0000 | |
@@ -11 +11 @@ | |
-GRUB_CMDLINE_LINUX="" | |
+GRUB_CMDLINE_LINUX="ipv6.disable=1" | |
$ sudo update-grub | |
$ sudo shutdown -r now |
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
$ mencoder mf://satellite/*.png -mf fps=25 -nosound -ovc lavc -lavcopts vcodec=mpeg4 -o satellite.avi | |
$ avconv -i satellite.avi -c:v libx264 satellite.mp4 |
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
#!/usr/bin/env python3 | |
''' root 権限が無いとシステムがフリーズします ''' | |
import wiringpi | |
import time | |
PWM_PIN = 18 | |
STEP = 32 | |
SLEEP_TIME = 0.05 |
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
$fa = 0.01; | |
distance_y = 3.5; | |
pole_radius = 7; | |
thickness = 3; | |
outline_radius = 20; | |
pole_center = [outline_radius, distance_y + pole_radius]; |
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
#!/usr/bin/env python3 | |
import wiringpi | |
import time | |
LED = { | |
'pin': 13, | |
'min': 0, | |
'max': 1024, | |
} |
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
module diff_extrude(thickness, colors) { | |
if (0 < $children) { | |
for (i=[0:$children - 1]) { | |
this_color = i < len(colors) ? | |
colors[i] : "black"; | |
color(this_color) | |
linear_extrude(thickness) | |
difference() { | |
children(i); |
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
module circle_txt(dia, trans_y) { | |
translate([0, 14 * trans_y]) | |
circle(d=dia, $fn=6); | |
} | |
module test_nut_w14() { | |
linear_extrude(3) | |
difference() { | |
translate([0, 13.5]) | |
square([20, 47], true); |
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
#!/usr/bin/env python3 | |
import wiringpi | |
import time | |
LED = { | |
'pin': 13, | |
'min': 0, | |
'max': 128, | |
} |
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 bpy | |
DEPTH = 10 | |
def delete_all(): | |
bpy.ops.object.select_all(action='SELECT') | |
bpy.ops.object.delete(True) | |
def main(): |
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 bpy | |
# まずは全て削除 | |
bpy.ops.object.select_all(action='SELECT') | |
bpy.ops.object.delete(True) | |
# キューブを作成 | |
bpy.ops.mesh.primitive_cube_add(location=(0, 0, 0)) | |
cube_object = bpy.context.object | |
cube_object.dimensions = (5, 5, 1) |
OlderNewer