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
➜ thrown-test git:(master) ✗ lein test | |
lein test thrown-test.core-test | |
lein test :only thrown-test.core-test/a-test | |
FAIL in (a-test) (core_test.clj:24) | |
Is the exception caught | |
expected: (thrown? Exception (throw-not-caught)) | |
actual: nil |
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
;; (:require [clj-xpath.core :refer :all] | |
;; [net.cgrand.enlive-html :as html] | |
;; [org.bovinegenius.exploding-fish :as uri] | |
;; [pegasus.core :refer [crawl]]) | |
(defn crawl-sp-blog-xpaths | |
[] | |
(crawl {:seeds ["http://blog.shriphani.com/feeds/all.rss.xml"] | |
:user-agent "Pegasus web crawler" | |
:extractor |
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
;; (:require [clj-xpath.core :refer :all] | |
;; [net.cgrand.enlive-html :as html] | |
;; [org.bovinegenius.exploding-fish :as uri] | |
;; [pegasus.core :refer [crawl]]) | |
(defn crawl-sp-blog | |
[] | |
(crawl {:seeds ["http://blog.shriphani.com"] | |
:user-agent "Pegasus web crawler" | |
:extractor |
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
(async/go-loop [] | |
(let [in-val (dequeue-fn queue)] | |
(when in-val | |
(async/>! channel in-val)) | |
(recur))) |
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
%module webrtc_vad | |
%{ | |
#define SWIG_FILE_WITH_INIT | |
#include "webrtc/common_audio/vad/include/webrtc_vad.h" | |
%} | |
%{ | |
/* Include in the generated wrapper file */ | |
typedef unsigned int size_t; |
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
%module webrtc_vad | |
%{ | |
#define SWIG_FILE_WITH_INIT | |
#include "webrtc/common_audio/vad/include/webrtc_vad.h" | |
%} | |
%include "stdint.i" | |
%include "numpy.i" |
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
dpkg-buildpackage -rfakeroot -D -us -uc -v | |
dpkg-buildpackage: source package custom | |
dpkg-buildpackage: source version 0.0.1~rc1 | |
dpkg-buildpackage: source distribution testing | |
dpkg-buildpackage: source changed by Maintainer name <maintainerMail@mail> | |
dpkg-source --before-build custom | |
dpkg-buildpackage: host architecture amd64 | |
fakeroot debian/rules clean | |
dh clean | |
dh_testdir |
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
import java.io.FileWriter; | |
import java.nio.ByteBuffer; | |
import java.util.LinkedList; | |
import org.webrtc.DataChannel; | |
import org.webrtc.DataChannel.Buffer; | |
import org.webrtc.IceCandidate; | |
import org.webrtc.MediaConstraints; | |
import org.webrtc.MediaStream; | |
import org.webrtc.PeerConnection; |
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
(webrtcvoiceengine.cc:445): WebRtc VoiceEngine codecs: | |
(webrtcvoiceengine.cc:471): ISAC/16000/1 (103) | |
(webrtcvoiceengine.cc:471): ISAC/32000/1 (104) | |
(webrtcvoiceengine.cc:471): PCMU/8000/1 (0) | |
(webrtcvoiceengine.cc:471): PCMA/8000/1 (8) | |
(webrtcvoiceengine.cc:493): Unexpected codec: PCMU/8000/2 (110) | |
(webrtcvoiceengine.cc:493): Unexpected codec: PCMA/8000/2 (118) | |
(webrtcvoiceengine.cc:471): ILBC/8000/1 (102) | |
(webrtcvoiceengine.cc:471): G722/8000/1 (9) | |
(webrtcvoiceengine.cc:493): Unexpected codec: G722/8000/2 (119) |
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
(webrtcvoiceengine.cc:414): WebRtc VoiceEngine codecs: | |
(webrtcvoiceengine.cc:440): ISAC/16000/1 (103) | |
(webrtcvoiceengine.cc:440): ISAC/32000/1 (104) | |
(webrtcvoiceengine.cc:462): Unexpected codec: ISAC/48000/1 (105) | |
(webrtcvoiceengine.cc:440): PCMU/8000/1 (0) | |
(webrtcvoiceengine.cc:440): PCMA/8000/1 (8) | |
(webrtcvoiceengine.cc:462): Unexpected codec: PCMU/8000/2 (110) | |
(webrtcvoiceengine.cc:462): Unexpected codec: PCMA/8000/2 (118) | |
(webrtcvoiceengine.cc:440): ILBC/8000/1 (102) | |
(webrtcvoiceengine.cc:440): G722/8000/1 (9) |