One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/sbin/sh | |
source /sdcard/bash_init.sh |
#!/usr/bin/env bash | |
# 配置每个 fork 文件存储位置 | |
PATH_FORK=/data/forks/dragonpilot | |
PATH_GERNBY=${PATH_FORK}/gernby | |
PATH_OPENPILOT=${PATH_FORK}/openpilot | |
PATH_DRAGONPILOT=${PATH_FORK}/dragonpilot | |
# 配置每个 fork 的 git 地址 | |
GIT_GERNBY=https://github.com/Gernby/openpilot |
#!/usr/bin/env bash | |
# 配置每个 fork 目录位置 | |
PATH_FORK=/data/forks | |
PATH_FORK_1=${PATH_FORK}/gernby | |
PATH_FORK_2=${PATH_FORK}/openpilot | |
PATH_FORK_3=${PATH_FORK}/dragonpilot | |
switch=`cat /sys/devices/virtual/switch/tri-state-key/state` | |
VAR_OP_PATH=`eval echo "$""PATH_FORK_${switch}"` |
#!/bin/env bash | |
if [ $# != 1 ] ; then | |
echo "USAGE: $0 OPENPILOT_PATH" | |
echo " e.g.: $0 /data/forks/gernby" | |
exit 1; | |
fi | |
rm -f /data/openpilot |
/** | |
* 截取指定长度的中英文混合字符串 | |
* @param {String} str 待截取的字符串 | |
* @param {Number} n 截取长度(中文字符为英文的 double) | |
* @return {String} 截取后的字符串 | |
*/ | |
function subString(str, n) { | |
var r = /[^\x00-\xff]/g; | |
var m; |
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
git clone https://github.com/commaai/openpilot.git --config "http.proxy=proxyHost:proxyPort" |
<?php | |
function normalFind($a, $b){ | |
$matches = []; | |
$lena = strlen($a); | |
$lenb = strlen($b); | |
for ($i=0; $i < strlen($a); $i++) { | |
for ($j=0; $j < $lenb; $j++) { | |
if ($i + $j >= $lena) { | |
break; |
log_format main '$http_x_forwarded_for - $remote_user [$time_local] "$http_host" "$request" code:$status $body_bytes_sent $http_referer "$http_user_agent" "$request_time" "$upstream_response_time" "$upstream_addr" "$upstream_status" "server:$http_x_select_server"'; | |
var data = [ | |
{ | |
y:10.98, | |
x:35.3, | |
}, | |
{ | |
y:11.13, | |
x:29.7, | |
}, | |
{ |