Skip to content

Instantly share code, notes, and snippets.

View shriphani's full-sized avatar

Shriphani Palakodety shriphani

View GitHub Profile
➜ 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
;; (: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
@shriphani
shriphani / craw-sp-blog-enlive.clj
Last active January 25, 2016 08:01
Crawl My Blog Using Enlive Selectors
;; (: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
(async/go-loop []
(let [in-val (dequeue-fn queue)]
(when in-val
(async/>! channel in-val))
(recur)))
%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;
%module webrtc_vad
%{
#define SWIG_FILE_WITH_INIT
#include "webrtc/common_audio/vad/include/webrtc_vad.h"
%}
%include "stdint.i"
%include "numpy.i"
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
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;
(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)
(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)