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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(Camera))] | |
public class CameraController : MonoBehaviour | |
{ | |
enum MouseButton |
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
C:\Windows>C:\Windows\WinSxS\***\PresentationSettings.exe /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
class FileTailer(object): | |
def __init__(self, ip, port, username, password): | |
self._ip, self._port, self._user, self._pass = ip, port, username, password | |
self._stdout = None | |
def start(self, remote_filepath, timeout_sec=60): | |
if (not isinstance(timeout_sec, int)) or (timeout_sec < 0): | |
timeout_sec = None | |
if self._stdout is not None: | |
self.close() |
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 -*- | |
import os | |
import sys | |
import urllib | |
from bs4 import BeautifulSoup | |
def get_url(parsedurl, page): | |
qrys = urllib.parse.parse_qs(parsedurl.query) |
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
find ./ -type f | sed 'p;s/aaa/bbb/' | xargs -n2 mv |
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 off | |
set winpath=%1 | |
rem %winpath% | |
set linuxpath=%winpath:c:\Users\euler\=/mnt/c/Users/euler/% | |
set linuxpath=%linuxpath:\=/% | |
rem %linuxpath% |
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 | |
CNT=0 | |
# do something here | |
while true; do echo $((CNT++)); sleep 1; done | |
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
#include <iostream> | |
using namespace std; | |
void val(int i) { // 値渡し | |
cout << i << endl; // 0 | |
cout << &i << endl; // 0x7ffd066ebfac | |
i = 1; | |
} |
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 | |
function usage() { | |
cat <<_EOT_ | |
Usage: | |
$ ./chrony_setup [-0|-h] ntpserver_machine_ip | |
Description: | |
他マシンと時間同期するようのbash |
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 | |
function usage() { | |
cat <<_EOT_ | |
Usage: | |
$ ./ros_setup [-0|-h] my_ip master_ip | |
Description: | |
複数台PCでROSする用の設定用bash. |