注意
- El CapitanからSIP(System Intregrity Protection)が有効なので/System以下のファイルは直接触ることができない
- https://forums.developer.apple.com/thread/4731?q=SIP
追加でポート10022番でsshdをlistenさせる設定。
注意
追加でポート10022番でsshdをlistenさせる設定。
// | |
// mqtt_pub_hdc1000_s9648_100.ino - mqtt publish sample for Arduino Yun | |
// | |
#include <YunClient.h> | |
#include <PubSubClient.h> | |
#include <Wire.h> | |
char *server = "mqtt.example.com"; | |
int port = 1883; | |
char *username = "username"; |
#!/usr/bin/ruby | |
require 'mail' | |
def send | |
#sendという名前の関数が定義されていると、mail.deliverの実行に失敗する... | |
end | |
mail = Mail.new do | |
from "[email protected]" | |
to "[email protected]" |
#!/usr/bin/ruby | |
str = "" | |
ARGF.read.each_line do |l| | |
str << l.chomp | |
end | |
puts str |
#!/usr/bin/ruby | |
Dir.glob("*.mp4") do |f| | |
next if /-org/ =~ f | |
vcopy_file = f; | |
org_file = f + ".-org.mp4" | |
File.rename(f, org_file); | |
cmd = "ffmpeg -i #{org_file} -vcodec copy -map 0:0 #{vcopy_file}" | |
puts "exec : #{cmd}" |
まず、PseudoSketch.javaというファイルを用意する。
public class PseudoSketch {
class A {
private void a() {
System.out.println("a");
}
}
void setup() { | |
size(200, 200); | |
} | |
void draw() { | |
background(255); | |
strokeWeight(3); | |
stroke(0, 255, 0); |