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
| module.exports = { | |
| devServer: { | |
| proxy: { | |
| '^/api': { | |
| target: 'api/url', | |
| }, | |
| '^/api2': { | |
| target: 'different/api/url', | |
| }, | |
| }, |
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 axios, {AxiosRequestConfig, AxiosResponse, AxiosError} from 'axios'; | |
| import Toasted from 'vue-toasted'; | |
| import Vue from 'vue'; | |
| import {COMMON_TOAST_DELAY} from '@/config/common-constants'; | |
| Vue.use(Toasted); | |
| export const domainUrl = 'https://api.takemobi.com/'; | |
| export const baseURL = `${domainUrl}`; |
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 {Inject, Injectable} from '@angular/core'; | |
| import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http'; | |
| import {from as fromPromise, Observable, Subject, throwError} from 'rxjs'; | |
| import {catchError, map, switchMap, tap} from 'rxjs/operators'; | |
| import {ToasterService} from '../../../shared/toaster/toaster.service'; | |
| import {ToasterTypes} from '../../../shared/toaster/toaster-types.enum'; | |
| import {XsrfHolderService} from '../../xsrf-holder/xsrf-holder.service'; | |
| import {readFileAsText} from '../../../shared/utils/read-file'; | |
| import {CustomEncoder} from '../../custom-encoder/custom-encoder'; |
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
| /* | |
| * Water Canvas by Almer Thie (http://code.almeros.com). | |
| * Description: A realtime water ripple effect on an HTML5 canvas. | |
| * Copyright 2010 Almer Thie. All rights reserved. | |
| * | |
| * Example: http://code.almeros.com/code-examples/water-effect-canvas/ | |
| * Tutorial: http://code.almeros.com/water-ripple-canvas-and-javascript | |
| */ | |
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/sh | |
| PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
| policies_store="/Library/Managed Preferences" | |
| users_dir="/Users" | |
| policies="com.google.Chrome.plist com.google.Keystone.Agent.plist com.apple.icloud.managed.plist com.apple.preferences.users.plist" | |
| ##################################################### | |
| script_name=`basename $0` | |
| current_date=`date` |
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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%; |
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
| function rightHandler() { | |
| cy.get('.navigate-right') | |
| .then(rightBtn => { | |
| if (rightBtn.attr('disabled')) { | |
| downHandler(true); | |
| } else { | |
| cy.screenshot() | |
| .then(() => { | |
| cy.wrap(rightBtn).click(); | |
| downHandler(); |
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
| module.exports = { | |
| /** | |
| * | |
| * Using raw socket.io functionality from a Sails.js controller | |
| * | |
| */ | |
| index: function (req,res) { |
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
| (function(angular, _) { | |
| 'use strict'; | |
| function factory() { | |
| return { | |
| mapRequest: function(request) { | |
| var serverModel = {}; | |
| serverModel.SearchString = request.searchString; | |
| serverModel.Offset = request.offset; | |
| serverModel.RowsCount = request.count; |
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
| (function(angular){ | |
| 'use strict'; | |
| function directiveFactory(){ | |
| function linkFunction(){ | |
| } | |
| return { | |
| restrict: 'EA', | |
| replace:true, |
NewerOlder