> cat /Library/LaunchDaemons/mowa.homebrew.memcached.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>mowa.homebrew.memcached</string>
<key>ProgramArguments</key>
<array>
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
#!/bin/bash | |
set -e | |
echo 0 | |
if [ "1" -eq "0" ]; then | |
echo hello | |
else | |
echo ello |
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
#!/bin/bash | |
set -e | |
echo 0 | |
if [ "1" -eq "0" ]; then | |
echo hello | |
else | |
echo ello |
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
#!/bin/bash | |
set -u | |
host='localhost' | |
verbose=0 | |
use_ykclient=0 | |
id=1 | |
apikey='' |
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
[1796974.661] Backtrace: | |
[1796974.662] 0: /usr/bin/Xorg (xorg_backtrace+0x36) [0x7fbe6de382c6] | |
[1796974.662] 1: /usr/bin/Xorg (0x7fbe6dcb9000+0x182e19) [0x7fbe6de3be19] | |
[1796974.662] 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7fbe6cfe0000+0xf0a0) [0x7fbe6cfef0a0] | |
[1796974.662] | |
[1796974.662] Segmentation fault at address (nil) | |
[1796974.662] | |
Fatal server error: | |
[1796974.662] Caught signal 11 (Segmentation fault). Server aborting | |
[1796974.662] |
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
NVIDIA-Linux-x86_64-334.47.run -> NVIDIA-Linux-x86_64-346.47.run | |
$ sudo service gdm3 stop | |
$ sudo ./NVIDA-Linux-x86_64-346.47.run | |
... | |
$ sudo service gdm3 start | |
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
public class MainActivity extends ActionBarActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
Button button = (Button) findViewById(R.id.button); | |
button.setOnClickListener(new View.OnClickListener() { | |
@Override |
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 python | |
# coding=utf-8 | |
from google.appengine.ext import ndb | |
import webapp2 | |
from datetime import datetime, timedelta | |
from json import dumps | |
import logging |
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 python | |
# coding=utf-8 | |
from google.appengine.ext import ndb | |
import os | |
import jinja2 | |
import webapp2 | |
from datetime import datetime, timedelta | |
from json import dumps |
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
長さLcmの竿の上をn匹のアリが毎秒1cmのスピードで歩いています。 | |
アリが竿の端に到達すると竿の下に落ちていきます。 | |
また、竿の上は狭くてすれ違えないので、 | |
二匹のアリが出会うと、それぞれ反対を向いて戻っていきます。 | |
各アリについて、現在の竿の左端からの距離x_iはわかりますが、 | |
どちらの方向を向いているのかはわかりません。 | |
すべてのアリが竿から落ちるまでにかかる最小の時間と最大の時間をそれぞれ求めなさい。 | |
制約 |