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
| readLineAsync = function(reader, timeout, buffer) { | |
| var byte; | |
| if (buffer == null) { | |
| buffer = ""; | |
| } | |
| logger.trace("readLineAsync: reader.unconsumedBufferLength=" + reader.unconsumedBufferLength + " buffer=" + buffer); | |
| while (reader.unconsumedBufferLength) { | |
| byte = reader.readByte(); | |
| if (byte === 0) { | |
| logger.trace("End of stream reached, " + reader.unconsumedBufferLength + " left on reader"); |
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
| import React from "react" | |
| import LocationType from "../types/LocationType" | |
| /* Usage: <Distance to={{longitude,latitude}}/> | |
| Renders the distance in m/km to the given location. | |
| If `from` is omitted then the current geo-location is used and tracked. | |
| */ | |
| const propTypes = { | |
| to: LocationType.isRequired, | |
| from: LocationType.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
| import { createStore, applyMiddleware } from "redux" | |
| import createSagaMiddleware from 'redux-saga' | |
| import { composeWithDevTools } from 'redux-devtools-extension/developmentOnly' | |
| import logger from 'redux-logger' | |
| import reducer from './reducers' | |
| import saga from './sagas' | |
| export default function configureStore(initialState) { | |
| const sagaMiddleware = createSagaMiddleware() | |
| const store = createStore( |
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
| const store = configureStore() | |
| if (window.cordova) { | |
| const onDeviceReady = () => { | |
| store.dispatch(deviceReady()) | |
| } | |
| document.addEventListener("deviceready", onDeviceReady, false) | |
| } | |
| ReactDOM.render( |
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
| // ==UserScript== | |
| // @name CTRL+SEND | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description try to take over the world! | |
| // @author pke | |
| // @match http*://*/* | |
| // @exclude https://twitter.com/* | |
| // @exclude https://mail.google.com/* | |
| // @grant none |
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
| You cant select text in comments below an article. Trying to do so will open the comment in a new page in the same tab. | |
| Navigating back from a comment page to the original article loses the scroll position of the comment you initially clicked | |
| Each navigate back to an article changes the 3 "related" articles below the article. | |
| Recommended articles should actually be on the side of the article, comments right below the article. |
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
| https://service.beoplay.com/ | |
| ersatzteile-info.de | |
| https://www.dhl.de/popweb/gw2/nepal/ProductOrder.action | |
| https://meine.norisbank.de | |
| https://www.hotelbb.de |
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
| { | |
| header: { | |
| left: { | |
| image: "https://assets.evopark.de/assets/flat_application/evopark_logo-068da0d2b9ceda29f17dd5a2744a23c812dbcd76bc5ecf6247cc81ca6e4592f1.svg", | |
| }, | |
| middle: { | |
| }, | |
| right: { | |
| image: "https://assets.evopark.de/assets/flat_application/goldbeck_logo-e17f26ead18b0a202b47d69b5d8ca110dca5fed9f675669b4495b607413017ce.png", | |
| }, |
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
| const tap = require("tap") | |
| /** | |
| * This function takes an array of items and flattens them. | |
| * It can also handle multiply arguments. | |
| * | |
| * @param {array} items that can contain nested array items | |
| * @return {array} flat array of input items or an empty array | |
| */ | |
| function flatten(items = []) { |
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
| const tap = require("tap") | |
| /** | |
| * This function takes an array of items and flattens them. | |
| * It can also handle multiply arguments. | |
| * | |
| * @param {array} items that can contain nested array items | |
| * @return {array} flat array of input items or an empty array | |
| */ | |
| function flatten(items = []) { |