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 -*- | |
""" Tag auth """ | |
from __future__ import print_function | |
import commands | |
import re | |
def v4l2_ctl(options): |
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; | |
using System.Collections.Generic; | |
using System.Text; | |
using UnityEngine; | |
namespace AppKit | |
{ | |
/// <summary> | |
/// Barcode Scanner Input | |
/// |
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
def fild_files(directory, file_ext): | |
''' Find specific extension files in the folder ''' | |
for root, dirs, files in os.walk(directory): | |
for file in files: | |
_, ext = os.path.splitext(file) | |
if ext == '.' + file_ext: | |
yield os.path.join(root, file) | |
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
// | |
// PathViewController.swift | |
// Kml | |
// | |
// Created by Koki Ibukuro on 8/18/15. | |
// Copyright (c) 2015 asus4. All rights reserved. | |
// | |
import UIKit | |
import MapKit |
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 | |
espota=~/.platformio/packages/framework-arduinoespressif32/tools/espota.py | |
espip=YOUR_ESP_HOSTNAME.local | |
bin_file=.pioenvs/esp32dev/firmware.bin | |
# build and upload | |
platformio run -e esp32dev | |
$espota -i $espip -p 3232 -r -f $bin_file |
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
# coding:utf-8 | |
# pylint: disable=C0111,C0103,E0401 | |
import time | |
import cv2 as cv | |
class App(object): | |
def __init__(self, algorithm): |
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
package asus4.videosupportedplugin; | |
import android.media.MediaCodecInfo; | |
import android.media.MediaCodecList; | |
/** | |
* Created by ibu on 2017/03/12. | |
*/ | |
public final class VideoSupportedPlugin { |
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 | |
if [ $# -ne 2 ]; then | |
echo "option is ./namae.sh 性 名" 1>&2 | |
exit 1 | |
fi | |
echo "downloading $1 $2" | |
curl "https://enamae.net/download.php?sei=$1&mei=$2" > "$1$2.jpg" |
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/local/bin/blueutil power 0 | |
sleep 1 | |
/usr/local/bin/blueutil power 1 | |
osascript -e 'display notification "Restarted" with title "Bluetooth" ' |
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; | |
// Port from c++ | |
// https://gist.github.com/asus4/1ec57e68ba9fa1363a6f | |
public class LPF | |
{ | |
double[] ax = new double[3]; | |
double[] by = new double[3]; | |
double[] xv = new double[3]; |