Skip to content

Instantly share code, notes, and snippets.

@hiredgunhouse
hiredgunhouse / assocPaths.js
Last active April 20, 2018 20:08
trying to make a point free version of assocPaths
import R, { assocPath, apply, compose, flip, reduce, reverse, zip } from 'ramda'
const assocPaths = (paths, values, obj) => {
const pathsValues = zip(paths, values)
const assocPathProxy = (obj, pathValue) => assocPath(pathValue[0], pathValue[1], obj)
return reduce(assocPathProxy, obj, pathsValues)
}
const assocPathsV2 = (paths, values, obj) =>
reduce(
--- pact_BAK 2015-06-23 11:07:20.000000000 +0200
+++ pact 2016-11-14 17:17:08.459807000 +0100
@@ -33,6 +33,7 @@
echo ""
echo "Usage:"
echo " \"pact install <package names>\" to install given packages"
+ echo " \"pact installprev <package names>\" to install previous versions of given packages"
echo " \"pact remove <package names>\" to remove given packages"
echo " \"pact update <package names>\" to update given packages"
echo " \"pact show\" to show installed packages"
@hiredgunhouse
hiredgunhouse / lein.bat
Created June 30, 2015 09:46
lein on windows - certificate issue - what needs to be commented out (use Powershell instead of wget or curl)
...
:DownloadFile
rem parameters: TargetFileName Address
if NOT "x%HTTP_CLIENT%" == "x" (
%HTTP_CLIENT% %1 %2
goto EOF
)
REM call wget --help >nul 2>&1
REM if NOT ERRORLEVEL 1 (
REM call wget -O %1 %2