This file contains 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
* { | |
outline: solid 0.25rem red !important; | |
} |
This file contains 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
fetch('/api/sendMessage', { | |
method: 'POST', | |
body: JSON.stringify(bodyObj), | |
headers: new Headers({ | |
'Content-Type': 'application/json', | |
}), | |
}) | |
.then((res) => this.handlePushNotificationResponse(res)) | |
.catch((res) => this.handlePushNotificationResponse(res)); |
This file contains 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
'use strict'; | |
require('./model'); | |
const mongoose = require('mongoose'); | |
const Model = mongoose.model('Rep'); | |
const _ = require('lodash'); | |
const controller = { | |
This file contains 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 json | |
def updateJsonFile(fileName): | |
jsonFile = open(fileName, "r") # Open the JSON file for reading | |
data = json.load(jsonFile) # Read the JSON into the buffer | |
jsonFile.close() # Close the JSON file | |
for data1 in data: | |
if 'property1' in data1: |
This file contains 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 {Injectable} from '@angular/core'; | |
import { URLSearchParams, Jsonp } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
@Injectable() | |
export class WikipediaSearchService { | |
constructor(private jsonp: Jsonp, private url: string) { } | |
search(terms: Observable<string>, debounceMs = 400) { | |
return terms.debounceTime(400) |
This file contains 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
scaled { | |
transform: scale(1.05,1.05); | |
} |
This file contains 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.Given(/^My api is mocked with "([^"]*)" mock data$/, function (mockName) { | |
return mocks.mocking_json[mockName]().then(function () { | |
return browser.wait(function () { | |
return myPage.$myWaitElement.isPresent(); | |
}, 30000) | |
}); | |
}); |
This file contains 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.Then(/^Wait for (\d+) milliseconds$/, function (numberOfMilliseconds) { | |
var d = protractor.promise.defer(); | |
console.log('WAITING 10 SECONDS'); | |
setTimeout(function () { | |
console.log("fulfill"); | |
d.fulfill('ok'); | |
}, numberOfMilliseconds); | |
return d; | |
}); |
This file contains 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
'use strict'; | |
(function() { | |
angular.module('mymodule', [ | |
..... | |
]) | |
.config([ |
This file contains 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
<head> | |
<base href="/"> |
NewerOlder