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
| deb http://www.mirrorservice.org/sites/packages.linuxmint.com/packages/ olivia main upstream import | |
| deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse | |
| deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse | |
| deb http://old-releases.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse | |
| deb http://archive.canonical.com/ubuntu/ raring partner |
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
| #!/bin/bash | |
| if [ "$#" -ne 1 ]; then | |
| echo "Please supply topic name" | |
| exit 1 | |
| fi | |
| nohup bin/zookeeper-server-start.sh -daemon config/zookeeper.properties > /dev/null 2>&1 & | |
| sleep 2 | |
| nohup bin/kafka-server-start.sh -daemon config/server.properties > /dev/null 2>&1 & |
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
| FROM lukasz/docker-scala | |
| MAINTAINER Andrei Oprea <[email protected]> | |
| # SSH keys nonsense | |
| RUN echo "IdentityFile ~/.ssh/id_rsa" >> /etc/ssh/ssh_config | |
| RUN mkdir /root/.ssh | |
| RUN ssh-keyscan -t rsa github.com 2>&1 >> /root/.ssh/known_hosts | |
| # Fetch streamer | |
| RUN git clone https://github.com/piatra/streamer |
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
| /* | |
| VICTOR ANDREI OPREA 341 C1 | |
| */ | |
| package practicaltest02.pdsd.systems.cs.pub.ro.practicaltest02; | |
| import android.support.v7.app.ActionBarActivity; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.view.Menu; |
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 AppControllerView = React.createClass({ | |
| mixins: [ | |
| Backbone.Events, | |
| loop.store.StoreMixin("conversationAppStore"), | |
| sharedMixins.WindowCloseMixin | |
| ], | |
| propTypes: { | |
| dispatcher: React.PropTypes.instanceOf(loop.Dispatcher).isRequired, | |
| mozLoop: React.PropTypes.object.isRequired, |
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
| class D { | |
| int method(D x) { | |
| return -1; | |
| } | |
| int method() { | |
| return 0; | |
| } | |
| } | |
| class E extends D { |
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
| #include <linux/kernel.h> | |
| #include <linux/init.h> | |
| #include <linux/module.h> | |
| #include <linux/slab.h> | |
| #include <linux/kfifo.h> | |
| MODULE_DESCRIPTION("Kfifo test"); | |
| MODULE_AUTHOR("Victor Andrei Oprea"); | |
| MODULE_LICENSE("GPL"); |
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
| {-# LANGUAGE TypeFamilies, | |
| GeneralizedNewtypeDeriving #-} | |
| -- Example based on http://www.randomhacks.net/2007/02/21/randomly-sampled-distributions/ | |
| module NewEx where | |
| import Control.Monad | |
| import Control.Monad.Trans | |
| import Data.List |
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
| mainPipeline :: MSF (State StdGen) (Maybe (Population a)) (Population a) | |
| mainPipeline = loop ({- implementarea pasilor de EA -}) >>> justStop | |
| -- pmembers scoate lista de indivizi dintr-o structura { pmembers :: [a], pfitness :: [b] } | |
| justStop :: MSF (State StdGen) (Population a) (Population a) | |
| justStop = MSF $ \x -> return $ takeWhile (not . null . pmembers) x |
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
| exports.test_Links_getBookmarks = function*(assert) { | |
| let provider = PlacesProvider.links; | |
| let bookmarks = [ | |
| {url: "https://mozilla1.com/0", parentGuid: "root________", type: Bookmarks.TYPE_BOOKMARK}, | |
| {url: "https://mozilla1.com/1", parentGuid: "root________", type: Bookmarks.TYPE_BOOKMARK} | |
| ]; | |
| for (let placeInfo of bookmarks) { | |
| yield Bookmarks.insert(placeInfo); |