1Ω
1.2Ω
1.5Ω
1.8Ω
2Ω
This file contains hidden or 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
'use strict'; | |
const fs = require('fs'); | |
const expandHomeDir = require('expand-home-dir'); | |
const zshHistoryRaw = fs.readFileSync(expandHomeDir('~/.zsh_history'), 'utf8'); | |
const zshHistoryLines = zshHistoryRaw.split('\n'); | |
const transformLine = line => { | |
try { |
This file contains hidden or 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 | |
cd /d %~dp0 | |
setlocal ENABLEDELAYEDEXPANSION | |
for %%i in (*.mov) do ( | |
echo %%i | |
set filename=%%i | |
echo !filename:.mov=.mp4! | |
ffmpeg.exe -y -i %%i -c:v h264_nvenc -pix_fmt yuv420p -preset llhq -profile:v main -b:v 20M !filename:.mov=.mp4! |
This file contains hidden or 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_int32(logging_level, 3, "The logging level. Integer in the range [0, 255]. 0 will output any log() message, while" | |
" 255 will not output any. Current OpenPose library messages are in the range 0-4: 1 for" | |
" low priority messages and 4 for important ones."); | |
DEFINE_bool(disable_multi_thread, false, "It would slightly reduce the frame rate in order to highly reduce the lag. Mainly useful" | |
" for 1) Cases where it is needed a low latency (e.g. webcam in real-time scenarios with" | |
" low-range GPU devices); and 2) Debugging OpenPose when it is crashing to locate the" | |
" error."); | |
// Producer | |
DEFINE_int32(camera, -1, "The camera index for cv::VideoCapture. Integer in |
This file contains hidden or 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
Encoder hevc_nvenc [NVIDIA NVENC hevc encoder]: | |
General capabilities: delay | |
Threading capabilities: none | |
Supported pixel formats: yuv420p nv12 p010le yuv444p yuv444p16le bgr0 rgb0 cuda d3d11 | |
hevc_nvenc AVOptions: | |
-preset <int> E..V.... Set the encoding preset (from 0 to 11) (default medium) | |
default E..V.... | |
slow E..V.... hq 2 passes | |
medium E..V.... hq 1 pass |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |