This file contains hidden or 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
| curl -L http://127.0.0.1:4001/v2/keys/foo -XPUT -d value="some value" | |
| curl -L http://127.0.0.1:4001/v2/keys/foo |
This file contains hidden or 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
| package com.logentries.scala | |
| import org.apache.log4j.LogManager | |
| object Main { | |
| def main(args: Array[String]) { | |
| val log = LogManager.getRootLogger() | |
| log.debug("Hello, Scala world!") | |
| Thread.sleep(1000) |
This file contains hidden or 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
| » 19:23:24.790 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! | |
| » 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! | |
| » 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! | |
| » 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! | |
| » 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! | |
| » 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! | |
| » 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! | |
| » 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! | |
| » 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! | |
| » 19:23:24.803 2013-10-19 19:21:57 +0100 INFO (logging.clj:272) Hello, logger! |
This file contains hidden or 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
| 1 ; SLIME 20100404 | |
| 2 user> (ns le-example.core) | |
| 3 nil | |
| 4 le-example.core> (print-some-logs) | |
| 5 nil | |
| 6 le-example.core> |
This file contains hidden or 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 le-example.core | |
| (:use [clojure.tools.logging :only (info)]) | |
| (:gen-class)) | |
| (defn print-some-logs [] | |
| (dotimes [n 10] | |
| (info "Hello, logger!"))) |
This file contains hidden or 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
| (defproject le-example "1.0.0-SNAPSHOT" | |
| :description "Sample clojure app for Logentries" | |
| :dependencies [[org.clojure/clojure "1.3.0"] | |
| [org.clojure/tools.logging "0.2.6"] | |
| [log4j/log4j "1.2.17"] | |
| [com.logentries/logentries-appender "1.1.20"]]) |
This file contains hidden or 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
| lein new le-example |
This file contains hidden or 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
| function perform_math(fn, a, b) { | |
| return fn(a, b); | |
| } |
This file contains hidden or 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
| function add(a, b) { | |
| return a + b; | |
| } | |
| function subtract(a, b) { | |
| return a - b; | |
| } | |
| // etc... |
This file contains hidden or 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
| diff --git a/backend/pixma_mp730.c b/backend/pixma_mp730.c | |
| index 5987739..1b0073b 100644 | |
| --- a/backend/pixma_mp730.c | |
| +++ b/backend/pixma_mp730.c | |
| @@ -78,6 +78,7 @@ | |
| #define MF5750_PID 0x265e /* Untested */ | |
| #define MF5770_PID 0x265f | |
| #define MF3110_PID 0x2660 | |
| +#define MF3010_PID 0x2759 // :) | |