Skip to content

Instantly share code, notes, and snippets.

View andreypopp's full-sized avatar
🏠
Working from home

Andrey Popp andreypopp

🏠
Working from home
View GitHub Profile
diff --git a/js/package.json b/js/package.json
index 1c40d9dc0..b9150ea3d 100644
--- a/js/package.json
+++ b/js/package.json
@@ -40,6 +40,8 @@
"**/react": "16.8.1",
"**/react-dom": "16.8.1",
"**/react-router": "5.1.2",
- "**/react-router-dom": "5.1.2"
+ "**/react-router-dom": "5.1.2",
diff --git a/src/rex.file/src/rex/file/map.py b/src/rex.file/src/rex/file/map.py
index e04dc5a45..8bc4af0a0 100644
--- a/src/rex.file/src/rex/file/map.py
+++ b/src/rex.file/src/rex/file/map.py
@@ -8,6 +8,7 @@ from rex.web import authorize, trusted, confine
from rex.urlmap import Map
from rex.port import Port
from rex.attach import get_storage
+import urllib.parse
from webob.exc import HTTPNotFound, HTTPUnauthorized, HTTPForbidden
diff --git a/K.jl/src/K.jl b/K.jl/src/K.jl
index d07490f..4171edc 100644
--- a/K.jl/src/K.jl
+++ b/K.jl/src/K.jl
@@ -1267,6 +1267,7 @@ arity(::Encode)::Arity = 1:1
begin
len = x + 1
T = Base.promote_op(o.f, eltype(y))
+ if T == Union{}; T = Any end
r = Vector{T}(undef, len)
diff --git a/Makefile b/Makefile
index 5d901f5..3bf1433 100644
--- a/Makefile
+++ b/Makefile
@@ -321,6 +321,10 @@ install: ./bin/activate
${MAKE} build-js
@echo "${BLUE}`date '+%Y-%m-%d %H:%M:%S%z'` Building Python packages...${NORM}"
set -ex; \
+ rm -rf /app/lib/python3.7/site-packages/pip/_vendor/pkg_resources/; \
+ cp -rf \
diff --git a/Makefile.src b/Makefile.src
index 0312d51..3072711 100644
--- a/Makefile.src
+++ b/Makefile.src
@@ -72,7 +72,7 @@ TEST_PY = ${SRC_PY}
TOOL_PY = \
wheel==0.33.1 \
setuptools==41.6.0 \
- pip==22.0.4 \
+ pip==9.0.1 \

Parsing

julia> using K

Left bind

In K n v syntax binds n noun as the first argument (hence "left bind") to dyadic verb v:

julia> K.parse("1+")

List Indexing

julia> using K

K list indexing uses same mechanism as function application. Getting the first element from a list is simply applying that list to 0 value:

julia> k"(1 2 3) 0"
1

Function projections

julia> using K

In K if you pass less arguments to a function than it accepts then a function projection is constructed:

julia> k"{x+y}[1]"
*1-pfunction*
diff --git a/js/package.json b/js/package.json
index ca88dd168..b4fe00878 100644
--- a/js/package.json
+++ b/js/package.json
@@ -9,6 +9,7 @@
},
"devDependencies": {
"@babel/core": "7.1.6",
+ "@babel/preset-env": "7.9.0",
"babel-jest": "^24.0.0",
diff --git a/src/rex.setup/setup.py b/src/rex.setup/setup.py
index fd0079b3f..9ca66f80f 100644
--- a/src/rex.setup/setup.py
+++ b/src/rex.setup/setup.py
@@ -44,4 +44,6 @@ setup(
'sphinxcontrib-htsql >=0.1.0, <0.2',
'Sphinx >=1.2, <1.8',
'docutils >=0.12,<0.13',
+ 'markupsafe==2.0.1',
+ 'jinja2>=2.10,<2.11',