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
(defhandler user | |
:allowed-methods (constantly #{:get :put :post}) | |
:post-is-create? (constantly true) | |
:create-path (constantly "/user") | |
:content-types-accepted (constantly | |
{"application/x-www-form-urlencoded" (fn [request graphdata] | |
"application/x-www-form-urlencoded") | |
"multipart/form-data" (fn [request graphdata] | |
"multipart/form-data") })) |
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
(defn hexstr1 | |
[bytes] | |
(loop [cnt 0 | |
mybytes (seq bytes) | |
hexstr ""] | |
(if (seq mybytes) | |
(cond | |
(= (mod (inc cnt) 24) 0) (recur (inc cnt) mybytes (str hexstr "\n")) | |
(= (mod (inc cnt) 12) 0) (recur (inc cnt) mybytes (str hexstr " ")) | |
(= (mod (inc cnt) 3) 0) (recur (inc cnt) mybytes (str hexstr " ")) |
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
(when | |
(load | |
(expand-file-name "~/.emacs.d/elpa/package.el")) | |
(package-initialize)) |
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
[clj-poi "0.1.0"] -> [org.apache.poi/poi-ooxml "3.9"] -> [dom4j "1.6.1"] -> [xml-apis "1.0.b2"] | |
overrides | |
[clj-webdriver "0.6.1"] -> [org.seleniumhq.selenium/selenium-java "2.39.0"] -> [org.seleniumhq.selenium/selenium-htmlunit-driver "2.39.0"] -> [net.sourceforge.htmlunit/htmlunit "2.13"] -> [xerces/xercesImpl "2.11.0"] -> [xml-apis "1.4.01"] | |
and . . . | |
After doing a 'lein install' on clj-poi I get a NoClassDefFoundError for | |
org.w3c.dom.ElementTraversal.class (which is found in xml-apis "1.4.01" | |
but not in xml-apis "1.0.b2") when I do 'lein jar' on a project that | |
depends on clj-poi. |
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
#0 /home/tim/workspace/owncloud/core/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(116): Doctrine\DBAL\Driver\AbstractSQLiteDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException)) | |
#1 /home/tim/workspace/owncloud/core/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(785): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOSqlite\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'INSERT INTO "oc...') | |
#2 /home/tim/workspace/owncloud/core/lib/private/db/connection.php(91): Doctrine\DBAL\Connection->prepare('INSERT INTO "oc...') | |
#3 /home/tim/workspace/owncloud/core/lib/private/appframework/db/db.php(55): OC\DB\Connection->prepare('INSERT INTO `*P...', NULL, NULL) | |
#4 /home/tim/workspace/owncloud/core/lib/public/appframework/db/mapper.php(189): OC\AppFramework\Db\Db->prepareQuery('INSERT INTO `*P...', NULL, NULL) |
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
Error detected while loading xmonad configuration file: /home/tim/.xmonad/xmonad.hs | |
xmonad.hs:1:8: | |
Could not find module âXMonadâ | |
Perhaps you meant DsMonad (needs flag -package-key ghc-7.10.3) | |
Use -v to see a list of the files searched for. | |
xmonad.hs:2:8: | |
Could not find module âXMonad.Config.Gnomeâ | |
Use -v to see a list of the files searched for. |
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
data A = A { | |
doIt :: Int -> String -> String | |
} |
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
import qualified Crypto.Cipher.AES as AES | |
import Crypto.Cipher.Types | |
import Crypto.Error | |
encrypt' :: ( ByteArrayAccess cleartext | |
, ByteArray cleartext | |
, ByteArrayAccess symmetricKey | |
, ByteArray symmetricKey) | |
=> symmetricKey | |
-> [cleartext] |
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
# | |
# Dockerized http://mediagoblin.org/ | |
# Copyright (C) Loic Dachary <loic@dachary.org> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as published | |
# by the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
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
server { | |
################################################# | |
# Stock useful config options, but ignore them :) | |
################################################# | |
include /etc/nginx/mime.types; | |
autoindex off; | |
default_type application/octet-stream; | |
sendfile on; |
OlderNewer