The food—which was delicious—reminded me of home. The food, which was delicious, reminded me of home.
The food —which was delicious—
import multiprocessing | |
def functionality(arg1): | |
import sys | |
print("arg1: " + str(arg1)) | |
print("sys.executable: " + str(sys.executable)) | |
print("-----\n") | |
return sys.executable | |
def worker(queue, arg1): |
using LazySets: UnionSetArray, LineSegment, BallInf | |
using ReachabilityAnalysis | |
using Colors: @colorant_str | |
import LinearAlgebra | |
using CartesianIndexSets: CartesianIndexSet | |
import PlotUtils | |
using PlotUtils: RGBA | |
using RecipesBase | |
# https://github.com/JuliaReach/ReachabilityAnalysis.jl/issues/464 |
# from https://raw.githubusercontent.com/JunoLab/atom-julia-client/a61023683d0a926d3496d1396c667c064e27bdd4/script/boot_repl.jl | |
using Pkg | |
let | |
# NOTE: No single quotes. File needs to be shorter than 2000 chars. | |
#= | |
if VERSION > v"0.7-" | |
port = parse(Int, popfirst!(Base.ARGS)) | |
else |
using Test | |
using BenchmarkTools | |
using DataStructures: OrderedDict | |
using MappedArrays: mappedarray | |
# use the iterator interface | |
function foo(a) | |
r = nothing | |
for x in a |
# See https://github.com/JuliaLang/julia/pull/36180 | |
using Base: tail | |
interleave(bind::Tuple{}, args::Tuple{}) = () | |
interleave(bind::Tuple{}, args::Tuple) = error("more args than positions") | |
interleave(bind, args) = _interleave(first(bind), tail(bind), args) | |
# `nothing` indicates a position to be bound | |
_interleave(firstbind::Nothing, tailbind::Tuple, args::Tuple) = ( | |
first(args), interleave(tailbind, tail(args))...) |
import PrettyTables | |
macro and(p, q) | |
quote | |
vp = $(esc(p)) | |
if !ismissing(vp) | |
if vp | |
$(esc(q)) | |
else | |
false |
using LinearAlgebra: norm | |
using Zygote | |
using Plots | |
A = rand(2,2) | |
b = rand(2) | |
A = [0.511125 0.493421; 0.987115 0.260349] | |
b = [0.205398, 0.282329] |
using LinearAlgebra | |
using PyPlot | |
using GeometryTypes | |
using EnhancedGJK | |
using Setfield # https://github.com/jw3126/Setfield.jl | |
import Polyhedra | |
import CoordinateTransformations |