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
mode=$1 # enabled or disabled | |
sshpass -p <PW> ssh -o StrictHostKeyChecking=no admin@<ip> <<EOF | |
sed -i "s/wireless.status=.*/wireless.status=$mode/" /tmp/system.cfg | |
cfgmtd -f /tmp/system.cfg -w | |
reboot now | |
EOF |
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 babel = require('@babel/core'); | |
const reproduce = true; | |
const res = babel.transformSync( | |
` | |
const variableNeeded = true; | |
class X { |
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
diff --git a/src/material/core/common-behaviors/tabindex.ts b/src/material/core/common-behaviors/tabindex.ts | |
index b5788d46c..3be2d0193 100644 | |
--- a/src/material/core/common-behaviors/tabindex.ts | |
+++ b/src/material/core/common-behaviors/tabindex.ts | |
@@ -23,10 +23,15 @@ export interface HasTabIndex { | |
/** @docs-private */ | |
export type HasTabIndexCtor = Constructor<HasTabIndex>; | |
+// Needs JSDOC | |
+type LooseConstructor<T> = Function & { prototype: T }; |
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
markProjectedViewsForCheck(view); | |
Services.updateDirectives(view, CheckType.CheckNoChanges); | |
execEmbeddedViewsAction(view, ViewAction.CheckNoChanges); | |
Services.updateRenderer(view, CheckType.CheckNoChanges); | |
execComponentViewsAction(view, ViewAction.CheckNoChanges); | |
// Note: We don't check queries for changes as we didn't do this in v2.x. | |
// TODO(tbosch): investigate if we can enable the check again in v5.x with a nicer error message. | |
view.state &= ~(ViewState.CheckProjectedViews | ViewState.CheckProjectedView); |
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 '@material/rtl/mixins'; | |
@import '@material/floating-label/mixins'; | |
@import '@material/textfield/variables'; | |
@import 'form-field-sizing'; | |
// Styles for the standard appearance in the MDC-based form-field. MDC has styles for | |
// full-width text-fields which kind of look like the standard appearance. Though these | |
// styles cannot be used because they do not work for inputs with floating labels, or | |
// textareas which are intended to be displayed in the standard appearance. We create our | |
// own styles for the standard appearance that work for all types of inputs and textareas |
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 {Component, Injectable, NgModule} from '@angular/core'; | |
/* | |
* Some service to test dependency injection. Not relevant to read. | |
*/ | |
@Injectable({providedIn: 'root'}) | |
export class SomeService {} | |
/* |
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
sourceFiles.forEach(function(file) { | |
ts.forEachChild(file, visitNode); | |
}); | |
/** | |
* @param {ts.Node} node | |
**/ | |
function visitNode(node) { | |
if (!isNodeExported(node)) { | |
return; |
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
FROM node:latest | |
# Create app directory | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# Copy node package to working directory | |
COPY package.json /usr/src/app | |
# Install Node dependencies |
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
license: mit |
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
#!/bin/bash | |
find . -type f -print | while read f; do | |
mv -i "$f" "$f.recode.$$" | |
iconv -f iso-8859-1 -t utf-8 < "$f.recode.$$" > "$f" | |
rm -f "$f.recode.$$" | |
done |
NewerOlder