svgo path/to/file.svg --enable=inlineStyles --config '{ "plugins": [ { "inlineStyles": { "onlyMatchedOnce": false } }] }' --pretty
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 merge from 'merge-descriptors'; | |
import qs from 'qs'; | |
import Application from 'koa'; | |
// eslint-disable-next-line func-names | |
module.exports = function(app: Application) { | |
merge(app.request, { | |
get query() { | |
const str = this.querystring; |
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
@Component({ | |
selector: 'app-root', | |
template: ` | |
<ng-template> | |
<button class="tab-button" | |
(click)="login()">{{loginText}}</button> | |
<button class="tab-button" | |
(click)="signUp()">{{signUpText}}</button> | |
</ng-template> |
## not trasnlated
<trans-unit id="3a6587da2d3253a25e76d6d9621c9d8ce8e03f59" datatype="html">
<source>
Passwords do not match
</source>
<context-group purpose="location">
app/loop-ui/login/login.component.ts
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
const resultObject = resArr.reduce((result, currentObject) => { | |
for (const key in currentObject) { | |
if (currentObject.hasOwnProperty(key)) { | |
result[key] = currentObject[key]; | |
} | |
} | |
return result; | |
}, {}); |
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
func fib(until n: Int) -> Void { | |
var num1 = 0 | |
var num2 = 1 | |
for _ in 0...n { | |
let num = num1 + num2 | |
print(num) | |
num1 = num2 |
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'; | |
angular.module('myApp') | |
.component('myComponent', { | |
templateUrl: 'myComponent.html', | |
controller: function ($scope) { | |
var vm = this; | |
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
<md-autocomplete flex | |
md-input-name="address autocomplete" | |
md-floating-label="Address" | |
md-no-cache="true" | |
md-selected-item="$ctrl.selectedItem" | |
md-search-text-change="$ctrl.search($ctrl.searchText)" | |
md-search-text="$ctrl.searchText" | |
md-items="item in $ctrl.search($ctrl.searchText)" | |
md-item-text="item" | |
md-min-length="1" |
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
(function() { | |
.directive('copyToClipboard', function ($window) { | |
var body = angular.element($window.document.body); | |
var textarea = angular.element('<textarea/>'); | |
textarea.css({ | |
position: 'fixed', | |
opacity: '0' | |
}); | |
function copy(toCopy, callback) { |
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
.directive('match', function($parse) { | |
return { | |
require: 'ngModel', | |
link: function(scope, elem, attrs, ctrl) { | |
scope.$watch(function() { | |
return $parse(attrs.match)(scope) === ctrl.$modelValue; | |
}, function(currentValue) { | |
ctrl.$setValidity('mismatch', currentValue); | |
}); | |
} |
NewerOlder