Create an enum
enum ACTIVE_OPTIONS {
HOME = 0,
USERS = 1,
PLAYERS = 2
}Create your component, be sure your enum list will have the typeof
| find $directory -type f -name "*.yaml" |
| // PropType for react component | |
| Foo.propTypes = { | |
| component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), | |
| }; | |
| // PropType for react children | |
| Bar.propTypes = { | |
| children: PropTypes.oneOfType([ | |
| PropTypes.arrayOf(PropTypes.node), | |
| PropTypes.node, |
| /*! | |
| * IE10 viewport hack for Surface/desktop Windows 8 bug | |
| * Copyright 2014-2015 Twitter, Inc. | |
| * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
| */ | |
| /* | |
| * See the Getting Started docs for more information: | |
| * http://getbootstrap.com/getting-started/#support-ie10-width | |
| */ |
| CREATE TABLE [DataBaseName].[dbo].[PasswordResetTokens] ( | |
| [token] varchar(36) NOT NULL, // 36 characters to fit GUID with delimiters | |
| [userId] int NOT NULL, | |
| [lastUpdate] datetime NOT NULL, | |
| [tokenUsed] bit NOT NULL, | |
| CONSTRAINT PasswordResetTokens_PK PRIMARY KEY (token), | |
| CONSTRAINT PasswordResetTokens_FK FOREIGN KEY (userId) REFERENCES [DataBaseName].[dbo].[User](id) | |
| ) GO | |
| EXEC [DataBaseName].sys.sp_addextendedproperty 'MS_Description', 'Store Password Reset Tokens ', 'schema', 'dbo', 'table', 'PasswordResetTokens' GO |
| <!-- | |
| Demo: https://stackblitz.com/edit/angular-grnnbf?file=app%2Fexpansion-overview-example.html | |
| Credits: Gil-Epshtain @ https://github.com/angular/components/issues/14626#issuecomment-449748528 | |
| --> | |
| <mat-accordion> | |
| <mat-expansion-panel *ngFor="let item of list" | |
| (opened)="item.isOpen = true" | |
| (closed)="item.isOpen = false"> | |
| <mat-expansion-panel-header> |
| var listOfIds = db.OrderDetail.Where(n=>n.OrderId == id).Select(x=>x.item_id); | |
| var itemEntity = db.ItemsEntity.Where(m=>listOfIds.Contains(m.item_id)); | |
| /* | |
| Credits: https://stackoverflow.com/a/45941739/9336948 | |
| */ |
| public SomeAction() { | |
| if (Context.Request.ContentLength != null) { | |
| var StartDate = Context.Request.Form["StartMonth"].ToString(); | |
| var EndMonth = Context.Request.Form["EndMonth"].ToString(); | |
| } | |
| } |
| // https://stackoverflow.com/a/38759207/9336948 | |
| // If you don't need to add headers in the request, to download a file in Angular2 you can do a simple: | |
| window.location.href='http://example.com/myuri/report?param=x'; |
Create an enum
enum ACTIVE_OPTIONS {
HOME = 0,
USERS = 1,
PLAYERS = 2
}Create your component, be sure your enum list will have the typeof
| 1. go to https://sslvpn.demo.sonicwall.com/cgi-bin/welcome | |
| 2. log in with demo/password | |
| 3. click on NetExtender icon, this will download a tar.gz with the client | |
| 4. sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/libssl.so.6 | |
| 5. sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.6 | |
| 6. un-tar the client, make install script executable and launch install |