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
| this.Dedupe = class Dedupe { | |
| constructor(createKey, compare) { | |
| this.createKey = createKey || this.defaultCreateKey; | |
| this.compare = compare || this.defaultCompare; | |
| } | |
| defaultCreateKey(item) { | |
| return item; | |
| } |
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
| # This file contains a definition of the scalar probes that are recorded in Telemetry. | |
| # They are submitted with the "main" pings and can be inspected in about:telemetry. | |
| # The following section contains the accessibility scalars. | |
| a11y: | |
| instantiators: | |
| bug_numbers: | |
| - 1323069 | |
| description: > | |
| The leaf name and version number of the binary for the process responsible |
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
| this._linksReporterMod = new PageMod({ | |
| attachTo: ["existing", "top"], | |
| contentScript: `links = document.querySelectorAll('.newtab-site') | |
| function log_events(pos) { | |
| return function log(e) { | |
| var target = e.target; | |
| var type; | |
| while (target) { | |
| if (target.tagName === 'a' || target.href) { | |
| type = target.parentNode.getAttribute('type'); |
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); |
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
| {-# 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
| #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
| 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
| 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
| /* | |
| 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; |