Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<title>Popcorn MCQ Plug-in Demo</title>
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
var p = Popcorn( "#video" )
package anna
import (
"fmt"
"github.com/channelmeter/gocql"
"github.com/channelmeter/heka/message"
. "github.com/channelmeter/heka/pipeline"
"regexp"
"strings"
"sync"
@AALEKH
AALEKH / sendMail.go
Last active August 29, 2015 14:06 — forked from andelf/sendMail.go
package main
import (
"log"
"net/mail"
"encoding/base64"
"net/smtp"
"fmt"
"strings"
package anna
import (
"fmt"
"github.com/channelmeter/gocql"
"github.com/channelmeter/heka/message"
. "github.com/channelmeter/heka/pipeline"
"regexp"
"strings"
"sync"
KDIR := /lib/modules/$(shell uname -r)/build
obj-m += test.o
all:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -rf *.o *.ko *.mod.* *.cmd .module* modules* Module* .*.cmd .tmp*
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
@AALEKH
AALEKH / libaudit.h
Created September 18, 2014 12:59
Weocme to debug
/* libaudit.h --
* Copyright 2004-2014 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
@AALEKH
AALEKH / libaudit.h
Created September 18, 2014 13:00
Weocme to debug
/* libaudit.h --
* Copyright 2004-2014 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
@AALEKH
AALEKH / libaudit.h
Last active August 29, 2015 14:06
Welcome to debug
/* libaudit.h --
* Copyright 2004-2014 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
[error] ! Currency Conversion should work
[error] | SPEC NAME | TRANSACTION PRICE | TRANSACTION AMOUNT | TRANSACTION ITEM CURRENCY | TRANSACTION ITEM PRICE | CONVERTED TUPLE |
[error] ! | For First Test | EUR | TransactionAmounts(12.99,2.67,0) | GBP | 12.99 | (TransactionAmounts(9.85,2.67,0),9.85) | null
[error] ! | For Second Test | EUR | TransactionAmounts(10.00,2.67,0) | GBP | 10.00 | (TransactionAmounts(9.85,2.67,0),9.85) | null (TraversableLike.scala:244)
[error] com.snowplowanalytics.snowplow.enrich.common.enrichments.registry.CurrencyConversionEnrichmentSpec.e1(CurrencyConversionEnrichmentSpec.scala:52)
[error] com.snowplowanalytics.snowplow.enrich.common.enrichments.registry.CurrencyConversionEnrichmentSpec$$anonfun$is$1$$anonfun$apply$2.apply(CurrencyConversionEnrichmentSpec.scala:44)
[error] com.snowplowanalytics.snowplow.enrich.common.enrichmen