This file contains 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 | |
brew install python3 | |
# install asio and tinyxml2 for Fast-RTPS | |
brew install asio tinyxml2 | |
# install dependencies for robot state publisher | |
brew install tinyxml eigen pcre poco |
This file contains 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; | |
use std::path::Path; | |
use parquet::file::reader::{FileReader, SerializedFileReader}; | |
use parquet::record::RowAccessor; | |
pub fn pq_from_file(){ | |
let file = File::open(&Path::new("./result.pq")).unwrap(); | |
let reader = SerializedFileReader::new(file).unwrap(); | |
let mut iter = reader.get_row_iter(None).unwrap(); |
This file contains 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
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.action_chains import ActionChains | |
import time | |
from bs4 import BeautifulSoup | |
import pypdfrom selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.action_chains import ActionChains | |
import time | |
from bs4 import BeautifulSoup |
This file contains 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::sync::Arc; | |
use zmq; | |
use tokio; | |
use futures::{Future, Stream}; | |
use tokio_zmq::{prelude::*, Rep}; | |
use rand::{self,Rng}; | |
use std::{thread, time}; | |
#[derive(Debug)] |
This file contains 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
// parallel batch computation with callback in the end | |
const parallel = require('async/parallel'); | |
// sequential batch computation with callback in the end | |
const waterfall = require('async/waterfall'); | |
// all the tasks below run at the same time | |
function computerParallelBatch(){ | |
parallel([ | |
cb=>{ | |
setTimeout(()=>{ |
This file contains 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
#[derive(PartialEq,Debug,Clone, Copy)] | |
enum Token{ | |
Add, // + | |
Sub, // _ | |
Right, // > | |
Left, // < | |
Read, // , | |
Write, // . | |
BeginLoop, // [ | |
EndLoop, // ] |
This file contains 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
[package] | |
name = "state_initial" | |
version = "0.1.0" | |
authors = ["Isan-Rivkin <isanrivkin@gmail.com>"] | |
[dependencies] | |
json-patch = "0.2.2" | |
serde_json = "1.0.24" | |
rmpv="0.4.0" | |
rmp-serde = "0.13.7" |
This file contains 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
package actor_map; | |
import akka.actor.AbstractActor; | |
import akka.actor.ActorRef; | |
import akka.actor.ActorSystem; | |
import akka.actor.Props; | |
import akka.typed.Behavior; | |
import java.time.Duration; | |
import java.util.*; |
This file contains 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
#[macro_use] | |
extern crate serde_json; | |
extern crate json_patch; | |
use json_patch::{patch, diff, from_value}; | |
use serde_json::from_str; | |
use json_patch::merge; | |
fn create_and_patch_document_using_json_patch(){ | |
let mut doc = json!([ |
This file contains 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
{ | |
"id": "327543200023389127333408148801478072031", | |
"timestamp": "2018-06-08T20:02:23.627364", | |
"isvEnclaveQuoteStatus": "GROUP_OUT_OF_DATE", | |
"platformInfoBlob": "1502006504000100000404020401010000000000000000000005000006000000020000000000000ACAD070952270BF00A8B5DFCA1F3F1BE5B080173206FA4FE9F5A7F7C6B81F2C6233281A880A8C2790BF1142C0E09BF7CBCA50DE8C0C028A69461799F8A6762333CA", | |
"isvEnclaveQuoteBody": "AgAAAMoKAAAHAAYAAAAAAD3bM4vVLuMUsB8eTh6E6KqFqLXQzJWoi0OKAMPQQ0IyAgT\/\/\/\/\/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAAAAAAHAAAAAAAAANZvb1CspMz39SXn7AAmXAxbya9WVHRxHaVNW0n9OR1wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACD1xnnferKFHD2uvYqTXdDA8iZ22kCD5xw7h38CMfOngAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABzZXJldAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB" | |
} |
NewerOlder