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 backend_mock_timeout = function (par) { | |
| angular.module('httpBackendMock', ['ngMockE2E']) | |
| .run(function ($httpBackend) { | |
| $httpBackend.whenGET(/.*/).passThrough(); | |
| $httpBackend.whenPOST(/check-barcode/).respond(function(){ | |
| return [0,{}]; | |
| }); | |
| $httpBackend.whenPOST(/.*/).passThrough(); | |
| }); | |
| .config(["$provide",function($provide) { |
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 _ from "underscore"; | |
| const baseConfigData = { | |
| "shows": [ | |
| { | |
| "show_id": 200, | |
| "title": "Elevate Your Energy 2", | |
| "site_url": "https:\/\/www.spreaker-beta.com\/show\/elevate_your_energy", | |
| "image_original_url": "https:\/\/d1botjg6upurv.cloudfront.net\/images.spreaker-beta.com\/original\/3f6575306aabb45f8301c8093d58c518.jpg" |
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
| require("crash-reporter").start({ | |
| productName: "Electron", | |
| companyName: "Github, Inc.", | |
| submitUrl: "http://127.0.0.1:3000/help/crashes", | |
| autoSubmit: true | |
| }); | |
| process.crash(); |
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 express = require("express"); | |
| var formidable = require("formidable"); | |
| var app = express(); | |
| app.post("/help/crashes", function (req, res) { | |
| var form = new formidable.IncomingForm(); | |
| form.uploadDir = "./dumps"; | |
| form.keepExtensions = true; | |
| form.parse(req, function(error, fields) { | |
| if(!error){ |
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
| Verifying that +emanuelerampichini is my blockchain ID. https://onename.com/emanuelerampichini |
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 _get from "lodash/get"; | |
| import _merge from "lodash/merge"; | |
| import _isEqual from "lodash/isEqual"; | |
| const not = (fun) => (...args) => !fun(...args); | |
| const and = (fun1, fun2) => (...args) => fun1(...args) && fun2(...args); | |
| const isSaving = (savingStatePath) => (state) => { | |
| const savingState = _get(state, savingStatePath, false); | |
| return savingState && savingState.state === "SAVING"; |
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 { | |
| installJasmineAjax, | |
| uninstallJasmineAjax, | |
| generateApiSuccessResponse | |
| } from "modules/common/lib/TestUtils"; | |
| import { episodeAdsFetchReducer } from "modules/episode/reducers/children/episodeAdsFetchReducer"; | |
| import { | |
| episodeAdsFetch | |
| } from "modules/episode/actions/episodeAdsFetchActions"; | |
| import { createStore, applyMiddleware } from "redux"; |
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 Clipboard from "modules/common/lib/Clipboard"; | |
| import React from "react"; | |
| export class CopyToClipboard extends React.Component { | |
| constructor() { | |
| super(); | |
| this.timeout = null; | |
| this.state = { | |
| copying: false, |
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 BrowserWindow from "modules/common/lib/BrowserWindow"; | |
| const Clipboard = { | |
| copyToClipboard: (text) => { | |
| const browseWin = BrowserWindow.get(); | |
| const browserDoc = browseWin.document; | |
| // IE specific | |
| if (browseWin.clipboardData && browseWin.clipboardData.setData) { | |
| browseWin.clipboardData.setData("Text", text); |
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
| v8.9.3 |