sudo /etc/init.d/ups.sh status
sudo update-rc.d ups.sh defaults
ls -l /etc/rc?.d/*ups.sh
import socket, traceback | |
from select import select | |
from time import sleep | |
host = '' # Bind to all interfaces | |
port = 51423 | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
s.bind((host, port)) |
import serial | |
import csv | |
com = serial.Serial('COM15') | |
f = open('data1500.csv', 'wb') | |
csvWriter = csv.writer(f) | |
while True: | |
listData = [] | |
line = com.readline() |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\powershell_here] | |
@="Open PowerShell Here" | |
[HKEY_CLASSES_ROOT\Directory\shell\powershell_here\command] | |
@="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%L'" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell_here] | |
@="Open PowerShell Here" |
sudo /etc/init.d/ups.sh status
sudo update-rc.d ups.sh defaults
ls -l /etc/rc?.d/*ups.sh
# .bash_profile | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
# User specific environment and startup programs | |
PATH=$PATH:$HOME/bin:/usr/lib/ruby/gems/1.8 |
from PySide import QtCore | |
def autosave(): | |
if Gui.ActiveDocument != None and Gui.ActiveDocument.Modified == True: | |
Gui.SendMsgToActiveView("Save", True) | |
timer=QtCore.QTimer() | |
timer.timeout.connect(autosave) | |
timer.start(10000) # Set time in millisecond (60000 = 1 minute). |
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="atom" /> | |
<package id="vlc" /> | |
<package id="githubforwindows" /> | |
<package id="python2" /> | |
<package id="brackets" /> | |
<package id="google-chrome-x64" /> | |
<package id="skype" /> | |
<package id="freecad" /> |
#!/usr/bin/env python | |
import nxt.locator | |
from nxt.motor import * | |
from nxt.sensor import * | |
import time | |
FORTH = 100 | |
BACK = -100 |
[google] | |
username = **** | |
password = **** | |
spreadsheet_key = *****(スプレッドシートID) |
#include "mbed.h" | |
#include "TinyGPS.h" | |
TinyGPS gps; | |
Serial pc(USBTX, USBRX); // tx, rx | |
Serial device(p9, p10); // tx, rx | |
int main() { | |
struct tm t; |