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
ojs2 has produced an error Message: WARNING: Missing argument 2 for DonationBlockPlugin::getContents(), called in /Library/Server/Web/Data/Sites/Default/ojs/lib/pkp/classes/plugins/BlockPlugin.inc.php on line 159 and defined In file: /Library/Server/Web/Data/Sites/Default/ojs/plugins/blocks/donation/DonationBlockPlugin.inc.php At line: 72 Stacktrace: File: /Library/Server/Web/Data/Sites/Default/ojs/plugins/blocks/donation/DonationBlockPlugin.inc.php line 72 Function: PKPApplication->errorHandler(2, "Missing argument 2 for DonationBlockPlugin::getContents(), called in /Library/Server/Web/Data/Sites/Default/ojs/lib/pkp/classes/plugins/BlockPlugin.inc.php on line 159 and defined", "/Library/Server/Web/Data/Sites/Default/ojs/plugins/blocks/donation/DonationBlockPlugin.inc.php", 72, Array(1)) File: /Library/Server/Web/Data/Sites/Default/ojs/lib/pkp/classes/plugins/BlockPlugin.inc.php line 159 Function: DonationBlockPlugin->getContents(Object(TemplateManager)) File: (unknown) line (unknown) Function: BlockPlugin->c |
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
num = 600851475143 | |
nums = reverse [1..600851475143] | |
isPrime :: (Integral a) => a -> Bool | |
isPrime x = (product $ map (mod x) [2..(x-1)]) /= 0 | |
getPrimes :: (Integral a) => [a] -> [a] | |
getPrimes xs = filter isPrime $ xs | |
primes = getPrimes nums |
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
var Browser = require("zombie"); | |
var expect = require("expect.js"); | |
browser = new Browser(); | |
browser.visit("http://somedomain.com"). | |
then(function () { | |
console.log("yo"); | |
return fill("username", "monkeyeater").fill("password", "ispassed"); | |
}). | |
then(function () { |
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
(ns richever_clj.handler | |
(:use compojure.core | |
hiccup.core) | |
(:require [compojure.handler :as handler] | |
[compojure.route :as route])) | |
(defroutes app-routes | |
(GET "/" [] (index-page)) | |
(route/resources "/") | |
(route/not-found "Not Found")) |
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
(ns richeverpos.handler | |
(:use compojure.core | |
ring.adapter.jetty | |
richeverpos.index_page) | |
(:require [compojure.handler :as handler] | |
[compojure.route :as route])) | |
(defroutes app-routes | |
(GET "/" [] (index-page)) | |
(route/resources "/") |
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
" Settings | |
set nohub | |
set nosmoothscroll | |
set noautofocus "The opposite of autofocus; this setting stops sites from focusing on an input box when they load | |
set typelinkhints | |
let searchlimit = 10 | |
let scrollstep = 100 | |
let barposition = "bottom" | |
let hintcharacters = "asdfgqwertzxcvb1234" | |
let completionengines = ["google", "amazon", "imdb", "dogpile"] |
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
;; Your file has been converted to the new flat format. | |
;; Conversion does not preserve comments or indentation. | |
;; File is backed up at C:\Users\lei203\AppData\Local\LightTable\User\user.behaviors.bak | |
[ | |
[:app :lt.objs.style/set-skin "dark"] | |
[:app :lt.objs.sidebar.workspace/workspace.open-on-start] | |
[:app :lt.plugins.vim/map-keys {",L" ":ltexec paredit.shrink.right", | |
",l" ":ltexec paredit.grow.right", | |
"gT" ":ltexec tabs.prev", | |
"gt" ":ltexec tabs.next", |
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
(ns nim) | |
(defn nim-sum [state] | |
(apply bit-xor state)) | |
(defn next-move [[i k] state] | |
(cond | |
(<= (inc k) (nth state i)) [i (inc k)] | |
(and (< (inc i) (count state)) (not= (nth state (inc i)) 0)) [(inc i) 1] | |
(>= (inc i) (dec (count state))) nil |
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
(ns count-change) | |
(defn cart [colls] | |
(if (empty? colls) | |
'(()) | |
(for [x (first colls) | |
more (cart (rest colls))] | |
(cons x more)))) | |
(defn noseq? [x] |
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
set gdefault | |
" colorscheme | |
set cuc cul | |
hi CursorColumn ctermbg=17 | |
hi CursorLine cterm=none ctermbg=17 | |
if has("gui_running") | |
colorscheme torte | |
set transparency=15 | |
endif |