Paste 79833
anonymous on April 24, 2014
1
2
3
4
5
[15:32:11] matheusca:	 newbie question. When I use the command "use" like "use Application.Behaviour"
[15:33:22] matheusca:	 ?
[15:33:47] ericmj:	 matheusca: what is the question?
[15:35:23] matheusca:	 ericmj: for example when I import a module in another module, into file I put import Samplemodule, right?
[15:35:57] matheusca:	 Macro a write require Samplemacro
more...

Paste 79832
anonymous on April 24, 2014
1
2
3
4
5
;; this is called first

(defn check-access! []                                                                                                                                 
  (go                                                                                                                                                         
   (while true                                                                                                                                                
more...

Paste 79830
anonymous on April 24, 2014
1
2
3
4
5
INFO: validateJarFile(/var/lib/tomcat7/webapps/paz-0.1.0-SNAPSHOT-standalone/WEB-INF/lib/javax.servlet-2.5.0.v201103041518.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
May 16, 2012 12:45:17 PM org.apache.catalina.startup.ContextConfig processAnnotationsJndi
SEVERE: Unable to process JNDI URL [jndi:/localhost/paz-0.1.0-SNAPSHOT-standalone/WEB-INF/classes/ring/util/servlet/proxy%24javax] for annotations
java.io.FileNotFoundException: jndi:/localhost/paz-0.1.0-SNAPSHOT-standalone/WEB-INF/classes/ring/util/servlet/proxy%24javax
        at org.apache.naming.resources.DirContextURLConnection.list(DirContextURLConnection.java:463)
more...

Paste 79829
anonymous on April 24, 2014
1
2
3
4
5
(defn generator [object]
  (mapcat #(->> % customize :sheets (map task-factory)) (:items object)))


(defn bolt []
more...

Paste 79828
anonymous on April 24, 2014
1
2
3
4
5
Okay cool so, we need to standardize something of an API for route-handlers (the callbacks assigned to routes in Compojure).

At present it's a given that the Ring request map/object has to be propagated throughout the app (I've already written the frontend macro for this).

(defmacro render-template [filename context]
more...

Paste 79827
anonymous on April 24, 2014
1
2
3
4
5
http://www.4clojure.com/problem/31#prob-title

(defn pack [seq]
  (if (empty? seq) []
    (reduce 
more...

Paste 79826
anonymous on April 24, 2014
1
2
3
4
5
>>> import httplib
>>> httplib.HTTPConnection.debuglevel=1
>>> import urllib2
>>> request=urllib2.Request('http://gwern.net/atom.xml')
more...

Paste 79825
anonymous on April 24, 2014
1
2
3
4
;; anowak's solution to Reverse a Sequence
;; https://4clojure.com/problem/23

apply conj ()

Paste 79824
anonymous on April 24, 2014
1
2
3
xmodmap -e "remove Lock = Caps_Lock"
xmodmap -e "keysym Caps_Lock = Control_L"
xmodmap -e "add Control = Control_L"

Paste 79823
anonymous on April 24, 2014
1
2
3
4
5
Inside github.com/bketelsen/skynet/examples

> vagrant up skynet1

[skynet1] Importing base box 'lucid64'...
more...

Paste 79822
anonymous on April 24, 2014
1
2
3
4
5
(ns face-detect
  (:import ;(javax.swing JFrame JLabel Timer)
           ;(java.awt.event ActionListener KeyAdapter)
           ;(java.awt Canvas Image Color)
           ;(java.awt.image MemoryImageSource)
more...

Paste 79821
anonymous on April 24, 2014
1
2
3
4
5
<!DOCTYPE html>
<html lang="en-ca">
<head>
  <title>YO</title>
</head>
more...

Paste 79820
anonymous on April 24, 2014
1
2
3
4
5
Created dir: /Users/jackson/d/tmp/kafkamonitor5/target/classes
Compiling 1 source file to /Users/jackson/d/tmp/kafkamonitor5/target/classes
Element '/Users/jackson/d/tmp/kafkamonitor5/test' does not exist.
Element '/Users/jackson/d/tmp/kafkamonitor5/dev-resources' does not exist.
Element '/Users/jackson/d/tmp/kafkamonitor5/resources' does not exist.
more...

Paste 79819
anonymous on April 24, 2014
1
2
3
4
5
(defun check-blocks (bf)
  (let ((brackets 0))
    (loop for char across bf do
         (case char
           (#\[   (incf brackets))
more...

Paste 79818
anonymous on April 24, 2014
1
2
3
4
5
 cgminer version 3.3.1 - Started: [2013-08-05 17:35:01]
--------------------------------------------------------------------------------
 (5s):479.0G (avg):478.8Gh/s | A:127889  R:988  HW:760  WU:6699.1/m
 ST: 3  SS: 8  NB: 4  LW: 151421  GF: 0  RF: 0
 Connected to XXXXXXXXXXX diff 480 with stratum as user JWU42@MR
more...

Paste 79817
anonymous on April 24, 2014
1
2
3
4
5
#!/bin/sh

DIR=$(pwd)/env

function activate_venv {
more...

Paste 79816
anonymous on April 24, 2014
1
2
3
4
5
1/28 06:25:26 INFO ipc.HBaseServer: IPC Server handler 79 on 60000: exiting
13/01/28 06:25:26 INFO ipc.HBaseServer: REPL IPC Server handler 0 on 60000: exiting
13/01/28 06:25:26 INFO ipc.HBaseServer: REPL IPC Server handler 1 on 60000: exiting
13/01/28 06:25:26 INFO ipc.HBaseServer: REPL IPC Server handler 2 on 60000: exiting
13/01/28 06:25:26 INFO ipc.HBaseServer: Stopping IPC Server listener on 60000
more...

Paste 79815
anonymous on April 24, 2014
1
2
3
4
5
<gtrak> (reduce (partial #'and nil nil) [1 2 3 4 5])
<lazybot> => (clojure.core/let [and__3822__auto__ (clojure.core/let
[and__3822__auto__ (clojure.core/let [and__3822__auto__
(clojure.core/let [and__3822__auto__ 1] (if and__3822__auto__
(clojure.core/and 2) and__3822__auto__))] (if and__3822__auto__
more...

Paste 79814
anonymous on April 24, 2014
1
2
3
4
5
====
exithelp.cfg
====
label menu
	kernel /syslinux/vesamenu.c32
more...

Paste 79813
anonymous on April 24, 2014
1
2
3
4
(defn draw-my-textbox
  []
  "<tr><td>www. <input type='text' /> .com </td> <td> </td> </tr>")

more...

Did you know? CLOSE

  • There are keyboard shortcuts!
    • When Creating A Paste
      • ALT+P Toggle Private
      • CTRL+Enter Create Paste
      • ALT+W Toggle word wrap
    • When Viewing A Paste
      • ALT+G Go to a line
      • ALT+CTRL+E Edit the paste
      • ALT+R Show the raw code
  • There are URL options!
    • When Creating A Paste
      • ?lang=Javascript to default to javascript
    • When Viewing A Paste
      • #L-N Jump to line number N
?