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
external/com_google_absl/absl/strings/string_view.h(495): warning: expression has no effect | |
external/protobuf_archive/src/google/protobuf/map.h: In instantiation of 'void google::protobuf::Map<Key, T>::InnerMap::iterator_base<KeyValueType>::SearchFrom(google::protobuf::Map<Key, T>::size_type) [with KeyValueType = google::protobuf::Map<std::__cxx11::basic_string<char>, tensorflow::AttrValue>::KeyValuePair; Key = std::__cxx11::basic_string<char>; T = tensorflow::AttrValue; google::protobuf::Map<Key, T>::size_type = long unsigned int]': | |
external/protobuf_archive/src/google/protobuf/map.h:400:11: required from 'google::protobuf::Map<Key, T>::InnerMap::iterator_base<KeyValueType>::iterator_base(const google::protobuf::Map<Key, T>::InnerMap*) [with KeyValueType = google::protobuf::Map<std::__cxx11::basic_string<char>, tensorflow::AttrValue>::KeyValuePair; Key = std::__cxx11::basic_string<char>; T = tensorflow::AttrValue]' | |
external/protobuf_archive/src/google/protobuf/map.h:516:28: required from 'google::protob |
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
corleone@corleone:~$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' | |
[sudo] password for corleone: | |
Sorry, try again. | |
[sudo] password for corleone: | |
corleone@corleone:~$ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | |
Executing: /tmp/apt-key-gpghome.JtQ0TbP1kK/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 | |
gpg: key F42ED6FBAB17C654: public key "Open Robotics <[email protected]>" imported | |
gpg: Total number processed: 1 | |
gpg: imported: 1 | |
corleone@corleone:~$ sudo apt update |
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
corleone@corleone:~$ sudo apt install ros-melodic-desktop | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages were automatically installed and are no longer required: | |
amd64-microcode apg apport-symptoms aptdaemon-data command-not-found-data diffstat gettext gir1.2-goa-1.0 gir1.2-snapd-1 gir1.2-vte-2.91 gnome-control-center-faces gnome-online-accounts | |
gnome-software-common intel-microcode intltool-debian iucode-tool libapt-pkg-perl libarchive-zip-perl libcgi-fast-perl libcgi-pm-perl libclass-accessor-perl libclone-perl libcolord-gtk1 | |
libemail-valid-perl libexporter-tiny-perl libfcgi-perl libgtop-2.0-11 libgtop2-common libio-pty-perl libio-string-perl libipc-run-perl liblist-moreutils-perl libllvm8 libnet-dns-perl | |
libnet-domain-tld-perl libnet-ip-perl libnss-myhostname libparse-debianchangelog-perl libperlio-gzip-perl libsodium23 libtext-levenshtein-perl libwhoopsie-preferences0 libxatracker2 libxml-libxml-perl | |
libxml-namespacesupport- |
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
corleone@corleone:~$ roscore | |
... logging to /home/corleone/.ros/log/82647bda-509f-11ea-85b2-6cf049e820ae/roslaunch-corleone-17865.log | |
Checking log directory for disk usage. This may take awhile. | |
Press Ctrl-C to interrupt | |
Done checking log file disk usage. Usage is <1GB. | |
started roslaunch server http://corleone:45267/ | |
ros_comm version 1.14.3 | |
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
#include <iostream> | |
#include <memory> | |
void foo( const std::shared_ptr<int> p) | |
{ | |
static int x = 0; | |
*p = ++x; | |
// printf("address p %p \n",p); | |
// printf("value x %d \n",x ); | |
// printf("value p %d \n",*p); | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
//function pointer | |
typedef int (*MathMethod)(int, int); | |
int Mul(int a, int b) { return a*b; } | |
float Divide(int a, int b) { return a/b; } | |
int Minus(int a, int b) { return a-b; } | |
int Add(int a, int b) { return a+b; } |
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
[0;37;40m [0;5;37;47m [0;34;40m [0;5;37;47m [0;34;40m [0;5;37;47m [0;37;40m [0m | |
[0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m.....[0;34;40m [0;5;37;47m [0;37;40m [0m | |
[0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m.........[0;34;40m [0;5;37;47m [0;37;40m [0m | |
[0;37;40m [0;5;37;47m [0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m.[0;5;37;47m [0;34;40m [0;5;33;43m..[0;5;37;47m [0;34;40m [0;5;33;43m....[0;34;40m [0;5;37;47m [0;37;40m [0m | |
[0;37;40m [0;5;37;47m [0;34;40m [0;5;37;47m [0;34;40m [0;5;33;43m.[0;5;37;47m [0;34;40m [0;5;33;43m..[0;5;37;47m [0;34;40m [0;5;33;43m.[0;5;33;41m.[0;5;33;43m..[0;34;40m [0;5;37;47m [0;37;40m [0;5;37;47m [0;37;40m [0m | |
[0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m.[0;34;40m [0;5;37;47m [0;5;33;41m...........[0;5;33;43m..[0;34;40m [0;5;37;47m [0;34;40m [0;5;37;47m [0;37;40m [0m | |
[0;37;40m [0;5;37;47m [0;34;40m [0;5;33;43m..[ |
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/sh | |
printf "\n$(cat ascii.txt)\n" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import argparse | |
import multiprocessing | |
from math import ceil | |
import torch | |
from torch.utils import data | |
from torchvision import datasets, transforms | |
class FiniteRandomSampler(data.Sampler): | |
def __init__(self, data_source, num_samples): |