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
var libxmljs = require('libxmljs'); | |
var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; | |
var xmlhttp1 = new XMLHttpRequest(); | |
xmlhttp1.open('GET','http://www.telegraphindia.com/feeds/rss.jsp?id=3',false); | |
xmlhttp1.send(); | |
var responseXML = xmlhttp1.responseText; | |
var xmldoc = libxmljs.parseXmlString(responseXML); | |
var title = xmldoc.find('//title'); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.3/dijit/themes/claro/claro.css"> | |
<script type="text/javascript"> | |
dojoConfig = { | |
parseOnLoad: true | |
}; | |
</script> |
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 org.example; | |
import java.util.concurrent.*; | |
class TestThread implements Runnable { | |
public final String name; | |
public final int newcount; | |
public final long newtimesleep; | |
public TestThread(String name, int newcount, long newtimeSleep) { |
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 org.apache.spark.sql | |
import java.io.{ByteArrayInputStream, ByteArrayOutputStream, ObjectInputStream, ObjectOutputStream} | |
import org.apache.spark.SparkConf | |
import org.apache.spark.sql.catalyst.util.{ArrayData, GenericArrayData} | |
import org.apache.spark.sql.types._ | |
import org.apache.spark.unsafe.types.UTF8String | |
@SQLUserDefinedType(udt = classOf[EmbeddedListUDT]) |