参考:(http://d.hatena.ne.jp/suginoy/20111102/p1)
tail -f `ls -tr |tail -1`
import asyncio | |
import aioconsole | |
from typing import cast | |
async def print_received_data(reader: asyncio.StreamReader): | |
while True: | |
# data = await reader.read() | |
# try: | |
# data = await reader.readuntil(b'\n') |
fn add(a: &mut [i32]) | |
{ | |
for i in a.iter_mut() { | |
*i = *i + 1; | |
} | |
} | |
fn main() | |
{ | |
let mut a = [0; 5]; |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "probe-rs-debug", | |
"request": "attach", | |
"name": "probe_rs Executable launch example", | |
"cwd": "${workspaceFolder}", | |
"programBinary": "${workspaceFolder}/microbit/target/thumbv7em-none-eabihf/debug/i2c", //!MODIFY | |
"chip": "nrf52833_xxAA", //!MODIFY |
$ poetry update -vvv | |
Using virtualenv: poetry-test-pj-gskIKeFa-py3.9 | |
Updating dependencies | |
Resolving dependencies... | |
1: fact: poetry-test-pj is 0.1.0 | |
1: derived: poetry-test-pj | |
0: Duplicate dependencies for pytest | |
0: Different requirements found for pytest (^4.6.11) with markers python_version >= "2.7" and python_version < "3.0" and pytest (^6.2.0) with markers python_version >= "3.7" and python_version < "4.0". | |
1: Version solving took 0.002 seconds. | |
1: Tried 1 solutions. |
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
namespace JsonDemo | |
{ | |
class Program | |
{ | |
public static void Main(string[] arg) | |
{ |
参考:(http://d.hatena.ne.jp/suginoy/20111102/p1)
tail -f `ls -tr |tail -1`
if ($^O eq 'MSWin32') { | |
$latex = 'platex %O -kanji=utf8 -guess-input-enc -synctex=1 -interaction=nonstopmode %S'; | |
$bibtex = 'pbibtex %O -kanji=utf8 %B'; | |
$makeindex = 'mendex %O -U -o %D %S'; | |
$dvipdf = 'dvipdfmx -f noembed.map %O -o %D %S'; | |
$dvips = 'dvips %O -z -f %S | convbkmk -g > %D'; | |
$ps2pdf = 'ps2pdf.bat %O %S %D'; | |
$pdf_mode = 3; | |
if (-f 'C:/Program Files/SumatraPDF/SumatraPDF.exe') { | |
$pdf_previewer = '"C:/Program Files/SumatraPDF/SumatraPDF.exe" -reuse-instance'; |
{ | |
"cmd": ["latexmk", "-pv", "$file_name"], | |
"selector": "source.tex", | |
} |