// async-compat = "0.2.1"
// async-std = {version = "1.10.0"}
// tokio = { version = "1", features = ["full"] }
use async_compat::Compat;
async fn say_hello() {
println!("Hello, world!");
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
{:paths ["."] | |
:deps {clansi {:mvn/version "1.0.0"}}} |
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 std::{ | |
fs::File, | |
io::{Read, Write}, | |
time::Instant, | |
}; | |
use tokio::task::{self, JoinHandle}; | |
async fn compute() { | |
let handles: Vec<JoinHandle<_>> = (0..1000) | |
.map(|_| { |
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
console.log('This is awesome') |
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
*.aux | |
*.log | |
*.out | |
*.synctex.gz* |
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
All messages from `brew upgrade` | |
By default, binaries installed by gem will be placed into: | |
/usr/local/lib/ruby/gems/2.6.0/bin | |
You may want to add this to your PATH. | |
ruby is keg-only, which means it was not symlinked into /usr/local, | |
because macOS already provides this software and installing another version in | |
parallel can cause all kinds of trouble. |
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
// List dir contents | |
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"os" | |
"golang.org/x/crypto/ssh" |
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
[diouser@ins-atrvdiobatch101z konankisivar01]$ python simple_sftp_test.py | |
Hostkey for partnerupload.google.com doesn't exist | |
Traceback (most recent call last): | |
File "simple_sftp_test.py", line 30, in <module> | |
list_dir() | |
File "simple_sftp_test.py", line 17, in list_dir | |
with pysftp.Connection(host, port = port, username = username, password = password, cnopts = cnopts) as sftp: | |
File "/home/diouser/.local/lib/python2.7/site-packages/pysftp/__init__.py", line 140, in __init__ | |
self._start_transport(host, port) | |
File "/home/diouser/.local/lib/python2.7/site-packages/pysftp/__init__.py", line 176, in _start_transport |
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
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
TsvHttpData-1.0 | |
http://download.pytorch.org/whl/cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl 91083839 Ljut1FZhQjeRAymcCA9ckQ== |