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 React, { FC, memo } from 'react'; | |
import { LayoutChangeEvent, StyleSheet, View, ViewStyle } from 'react-native'; | |
import Animated, { Easing } from 'react-native-reanimated'; | |
const { Value, Clock, block, cond, set, startClock, timing, eq } = Animated; | |
type DimensionUnit = string | number; | |
type EdgePosition = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight'; | |
interface Props { |
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
// API Service | |
export class ApiService { | |
get(parameters: SomeParameters): Observable<ReturnType> { | |
if (!this.validate(parameters)) { | |
// throw error on failed validation | |
throw new Error('Parameters do not pass validation'); | |
} | |
return this.httpClient.get(...); | |
} |
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
@NgModule({ | |
imports: [OAuthModule.forRoot({...})] // <-- how to use the configuration.json here | |
}) | |
export class AppModule { | |
constructor(@Inject(AppConfig) private readonly appConfig: AppConfiguration) {} // I can inject | |
} |
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
Angular CLI version | Angular version | Node.js version | TypeScript version | |
---|---|---|---|---|
- | 2.x | 6.0.x or later minor version | 2.0.x | |
1.0.6 | 4.x | 6.9.x or later minor version | 2.2.x | |
1.1.3 | 4.x | 6.9.x or later minor version | 2.3.x | |
1.2.7 | 4.x | 6.9.x or later minor version | 2.3.x | |
1.3.2 | 4.2.x or later minor version | 6.9.x or later minor version | 2.4.x | |
1.4.10 | 4.2.x or later minor version | 6.9.x/8.9.x or later minor version | 2.4.x | |
(1.5.6) | 5.0.x | 6.9.x/8.9.x or later minor version | 2.4.x | |
1.5.6 | 5.1.x | 6.9.x/8.9.x or later minor version | 2.5.x | |
1.6.7 | 5.2.x or later minor version | 6.9.x/8.9.x or later minor version | 2.5.x |
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
TypeScript | |
grep -rE "data(:|\s)" src/ | wc | |
grep -rE "(:|\s)any" src/ | wc | |
grep -rE "<any>" src/ | wc | |
grep -rE "any\[\]" src/ | wc | |
Angular | |
find src/. -name '*component.ts' | xargs wc -l | sort |
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
// https://crontab.guru/ | |
// https://www.typescriptlang.org/play?ts=4.9.5#code/C4TwDgpgBAwgSgeQHJQLxQAYBIDe9kB0AogB5gBOEAzlQJYD2AdgL5S75LFmU0Mtt5EnUhWp0mrdkK6jeEgRxk9xLDAG4AUAHotUPVAB6Afg0bQkKABVqwAIxpY0gBIBXALYBDRgB4ARAGYABigATigAKgiI3wA+TR19QxMzcGhrKmAAJgdFV08fX0iwyJLY+N19Y1NzNJt-HOd3Lz9wrXriqPCy7Qq9KpSLdOAAFgbCPObCtoitUZLouJ7E-pqrGwBWMc4Jgtb6+dLFhMrk1aGANi2CHZaZ-c7u477T1LWMgHYrm99bTdbsg6PXpJaqvIYADi+TV2UXuXSOwJWYJsYXQuWhtxK00O5WWL0GNlswTRjXymKg+y0AKBeNBBIytnsJPGGMKsJm2WGNJOdNqDOyzO2rOCmUpAOxs25z15bzs9UF11ZYVFHLuUC5CNpAz5dlGCu+rV+M0ukX2UpB2tlRv1rIOFIWuJ5SwAtK6AMYuYCu52mAAmEDdABsPJQoIwPG5qGAPG7oBwoDgNHoIGR6ORgFBViJlHwHABycJ5qAAHzD7gARhByCXMK1cIwK1XmOpTMnU+nM68bpYoCngBBGL6qI5kDEHEnElZeyR+4Ph9gcLRGAAzKtQACykkXK7XTi3S9X1YAIpuBAe1+vT7hz8eAOrNieTqBGKy0SPeJwAGnXY77A6HmDXju1Y9n+c5QBk5BLgA5g+T6JC+R4eCA3iXp+UAnuhR63r+M7-vOQGHhh06zgBkEwXB8EIcRYEAb4vhQI+VH6C+lhMcxUAAFyATglisEwAhHpRHHcYwEAAG5Vuxk6iRJUlUbJknkJoE4JN6jETmcb4QB+9AuOQ6HrkunoQGO6BMUZDb9iR+FQAWRbSS+Th6dWtHDvZegvnmcnkCAUBuMZ-ZFgk8wAPpQOFoXSdxzn6TZ4ELjeUBOPFAENm4 |
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
/** | |
* @license | |
* Copyright 2010-2024 Three.js Authors | |
* SPDX-License-Identifier: MIT | |
*/ | |
const t="166",e=0,n=1,i="attached",r=1e3,a=1001,o=1003,s=1006,l=1014,c=1015,h=1016,d=1023,u=1026,f=1033,p=3201,m="srgb",g="srgb-linear",v="display-p3-linear",x="linear",_="srgb",y="rec709",S=7680,M=35044,b=35048,w=2e3,T=2001;class C{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const n=this._listeners[t];if(void 0!==n){const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const n=e.slice(0);for(let e=0,i=n.length;e<i;e++)n[e].call(this,t);t.target=null}}}const A=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d |
OlderNewer