## 見出し2
### 見出し3
#### 見出し4
##### 見出し5
###### 見出し6 ## Block 段落 空白行を挟むことで段落となります。 ```
段落1
(空行)
段落2
``` 段落1 段落2 ## Br 改行 改行の前に半角スペース` `を2つ記述します。 ```
hoge
fuga(スペース2つ)
piyo
``` hoge
fuga piyo ## Blockquotes 引用 先頭に`>`を記述します。ネストは`>`を多重に記述します。 ```
> 引用 > 引用
>> 多重引用
``` > 引用 > 引用
>> 多重引用 ## Code コード `` `バッククオート` `` 3つ、あるいはダッシュ`~`3つで囲みます。 ```
print 'hoge'
``` ```
print 'hoge'
``` ### インラインコード `` `バッククオート` `` で単語を囲むとインラインコードになります。 ```
これは `インラインコード`です。
``` これは `インラインコード`です。 ## pre 整形済みテキスト 半角スペース4個もしくはタブで、コードブロックをpre表示できます ``` class Hoge def hoge print 'hoge' end end
``` class Hoge def hoge print 'hoge' end end ## Hr 水平線 アンダースコア`_` 、アスタリスク`*`、ハイフン`-`などを3つ以上連続して記述します。 ```
hoge
***
hoge
___
hoge
---
``` hoge
***
hoge
___
hoge
--- # Lists ## Ul 箇条書きリスト ハイフン`-`、プラス`+`、アスタリスク`*`のいずれかを先頭に記
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
// via https://web.archive.org/web/20191104212834/https://www.nada.kth.se/utbildning/grukth/exjobb/rapportlistor/2010/rapporter10/szabo_adam_10131.pdf | |
( | |
{ | freq = 523.3572, mix=0.75, detune = 0.75 | | |
var detuneCurve = { |x| | |
(10028.7312891634*x.pow(11)) - | |
(50818.8652045924*x.pow(10)) + | |
(111363.4808729368*x.pow(9)) - | |
(138150.6761080548*x.pow(8)) + | |
(106649.6679158292*x.pow(7)) - |
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 pygame | |
from pygame.locals import * | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
surfaces = ( | |
(1, 2, 3, 4), | |
(3, 2, 7, 6), | |
(6, 7, 5, 4), | |
(4, 5, 1, 0), |
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 pygame, sys | |
from time import sleep | |
# setup the pygame window | |
pygame.init() | |
window = pygame.display.set_mode((200, 200), 0, 32) | |
# how many joysticks connected to computer? | |
joystick_count = pygame.joystick.get_count() | |
print "There is " + str(joystick_count) + " joystick/s" |
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
ls /dev/tty.* | |
/dev/tty.SLAB_USBtoUART |
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
sudo easy_install pip | |
sudo pip install pyserial |
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
void setup() { | |
pinMode(2, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(2, HIGH); | |
delay(125); | |
digitalWrite(2, LOW); | |
delay(375); | |
} |
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
cd | |
wget https://github.com/AndrewFromMelbourne/raspi2png/archive/master.zip | |
unzip master.zip | |
cd raspi2png-master | |
make | |
sudo cp raspi2png /usr/local/bin |
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 '#!/bin/sh' >/home/pi/r2p.sh | |
echo >>/home/pi/r2p.sh | |
echo '/home/pi/raspi2png-master/raspi2png --pngname /home/pi/Pictures/$(date +snapshot-%Y%m%d-%H%M%S.png)' >>/home/pi/r2p.sh | |
sed -i.bak 's/scrot/sh \/home\/pi\/r2p.sh/g' /home/pi/.config/openbox/lxde-pi-rc.xml | |
openbox --reconfigure |