functiongetLastTimeJSON() {
var url = "Dropbox 公開リンクURL";
var response = UrlFetchApp.fetch(url);
var content = response.getContentText("UTF-8");
var json = JSON.parse(content);
return json;
}
functionmakeLastTimeEvent() {
var json = getLastTimeJSON();
var events = json.changesByEntity.Event;
var calendarEvents = [];
for (var i in events) {
var properties = events[i].properties;
var _name;
var _lasttime;
for (var j in properties) {
var property = properties[j];
if (property.propertyName == "name") {
_name = property.value;
}
if (property.propertyName == "lasttime") {
_lasttime = property.value[1];
}
}
var calendarEvent = {
name: _name,
lasttime: newDate(_lasttime)
};
calendarEvents.push(calendarEvent);
}
return calendarEvents;
}
functionsetLastTimeItem(toCalId) {
var calendarEvents = makeLastTimeEvent();
var targetCal = CalendarApp.getCalendarById(toCalId);
for (var i in calendarEvents) {
var next = newDate();
var lasttime = calendarEvents[i].lasttime;
var name = calendarEvents[i].name;
next.setTime(lasttime);
next.setYear(lasttime.getYear() + 1);
var title = "1年経過: " + name;
targetCal.createAllDayEvent(title, next);
}
var lastTimeCalId = "GoogleカレンダーID";
functionmain(){
setLastTimeItem(lastTimeCalId);
}
$ git clone https://github.com/weseek/crowi-plus-docker-compose.git crowi-plus
$ cd crowi-plus
$ docker-compose up
すると、エラーが出ます。
ERROR: Version in"./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
$ iwconfig
The program 'iwconfig' is currently not installed. You can install it by typing:
sudo apt install wireless-tools
$ sudo apt install wireless-tools
$ iwconfig
lo no wireless extensions.
eno1 no wireless extensions.
wlp2s0 IEEE 802.11abgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
2017-04-29 13:01:33,060 fail2ban.filter [1022]: INFO [dovecot] Found 203.0.113.0
2017-04-29 13:02:15,153 fail2ban.filter [1022]: INFO [dovecot] Found 203.0.113.0
2017-04-29 13:04:02,309 fail2ban.filter [1022]: INFO [dovecot] Found 203.0.113.0
2017-04-29 13:04:03,302 fail2ban.actions [1022]: NOTICE [dovecot] Ban 203.0.113.0
# -*- coding: utf-8 -*-from twython import Twython
import twitter_oauth
defupdate_profile(text):
twitter = Twython(
twitter_oauth.CONSUMER_KEY,
twitter_oauth.CONSUMER_SECRET,
twitter_oauth.ACCESS_KEY,
twitter_oauth.ACCESS_SECRET
)
twitter.update_profile(description=text)
defmain():
text = 'A long time ago, in a galaxy far, far away...'
update_profile(text)
if __name__ == '__main__':
main()
次に、Google SketchUpで、保存した3dsファイルを開きます。「ファイル → インポート」から開きます。開いたら今度は「ツール → Export to DXF or STL」で保存します。ダイアログが出てくるので「Export unit」は単位を選んで、「Export to DXF options」は「stl」を選んで保存します。