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 <stdio.h> | |
#include <stdlib.h> | |
#define N 10 | |
int cmp(const void *a, const void *b) { | |
int *aptr = (int*) a; | |
int *bptr = (int*) b; | |
if(*aptr < *bptr) return -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 | |
YEAR=10 | |
echo -ne "================\n IMSLab $YEAR " | |
printf "\xE9\x80\xB1\xE5\xB9\xB4\n\n" | |
printf " \xE6\x95\x99\xE5\xB8\xAB\xE7\xAF\x80" | |
printf "\xE5\xBF\xAB\xE6\xA8\x82\xEF\xBC\x81\n" | |
echo "================" |
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
set nocompatible | |
filetype plugin indent on | |
set encoding=utf-8 | |
set term=xterm-256color | |
set tabstop=4 | |
set ai | |
set shiftwidth=4 | |
syntax on |
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
import os | |
import sys | |
import cv2 | |
import math | |
import numpy as np | |
def distance_delta(x, y, px, py): | |
return round(math.sqrt((px - x) ** 2 + (py - y) ** 2), 2) | |
def detect(filename): |
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
#define VOLTAGE 5.00 //system voltage | |
#define OFFSET 12 //orp zero drift voltage | |
#define LED 13 //operating instructions | |
#define SensorPin A0 //pH meter Analog output to Arduino Analog Input 0 | |
#define orpPin A5 //orp meter output,connect to Arduino controller ADC pin | |
#define Offset 0.00 //deviation compensate | |
#define LED 13 | |
#define samplingInterval 20 |