Skip to content

Instantly share code, notes, and snippets.

import org.apache.spark.graphx._
import org.apache.spark._
import org.apache.spark.rdd.RDD
import org.apache.spark.SparkContext
object BristolAdjacency {
def main(args: Array[String]): Unit ={
lazy val conf = {
new SparkConf(false)
@concerned3rdparty
concerned3rdparty / frontendDevlopmentBookmarks.md
Created June 8, 2016 22:03 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@concerned3rdparty
concerned3rdparty / CustomerExample.scala
Created December 20, 2015 14:34 — forked from WadeWaldron/CustomerExample.scala
Akka Streams Customer Example
import akka.actor.ActorSystem
import akka.stream.ActorFlowMaterializer
import akka.stream.scaladsl.{Flow, Sink, Source}
import scala.collection.immutable
import scala.util.Random
object InputCustomer {
def random():InputCustomer = {
InputCustomer(s"FirstName${Random.nextInt(1000)} LastName${Random.nextInt(1000)}")
@concerned3rdparty
concerned3rdparty / reactjs.md
Created September 28, 2015 17:01 — forked from jermspeaks/reactjs.md
My endeavors to learn react.js

Learning React JS

What is React

React is a UI Library in Javascript. Created by the folks at Facebook, it helps with creating webcomponents, but better than the webcomponents implemented in HTML5. React allows you to create composable view components, utilizing a unidirectional data flow, or one-way data flow. This differs to Angular that has a data binding components, which is two directional between controller and view.

Elements of React Elements

Note: I call elements components, but now they're really called elements. Take that in consideration when I use the word component.

@concerned3rdparty
concerned3rdparty / React Notes.md
Created September 28, 2015 16:59 — forked from anantja-in/React Notes.md
These notes were taken while watching React videos at https://egghead.io/. Most of the code is from the videos there.

#Introduction to Properties

<script type="text/jsx">
    /*** @jsx React.DOM */
    var APP = React.createClass({
        getDefaultProps:function(){
            return {
                txt:'gdfgdfgdf',
                cat:0
package pack;
import java.util.Scanner;
/**
* Created by asus kelebek on 13.7.2015.
*/
public class crossStars {
public static void main( String args[] )
{
"""
Simple algorithm to download all the egghead.io videos in highest-quality from YouTube.
Run from the directory you want the videos to appear. Renames them so that they have the video number + omit the repetitive "Egghead.io - AngularJS -" text.
Installing dependency:
$ pip install git+https://github.com/NFicano/pytube#egg=pytube
"""
from pytube import YouTube #, exceptions as YTD_exceptions
@concerned3rdparty
concerned3rdparty / RandomUrlResponse.scala
Last active August 29, 2015 14:22
Random Url Response examination
package pack
import java.net.{HttpURLConnection, URL}
import scala.collection.immutable._
object RandomUrlResponse extends App{
var urlStatusMap = SortedMap[String,Int]()
val url = "http://www.randomwebsite.com/cgi-bin/random.pl"
var con : HttpURLConnection = _