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
| class Localstorage { | |
| static func setRecord(key: String, value: Any, duration: TimeInterval) { | |
| let expirationDate = Date().addingTimeInterval(duration); | |
| let expirationKey = key + "_expirable"; | |
| let dict = [ | |
| expirationKey: expirationDate, | |
| key: value | |
| ] | |
| UserDefaults.standard.set(dict, forKey: key); |
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
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: 'Alarms to GoogleChat' | |
| Metadata: | |
| AWS::CloudFormation::Interface: | |
| ParameterGroups: | |
| - Label: | |
| default: General | |
| Parameters: | |
| - Environment | |
| - Label: |
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
| <% | |
| Class SeatItem | |
| Private IndexVar | |
| Private SeatVar | |
| Private RemainderVar | |
| public property get Index() | |
| Index = IndexVar | |
| end property |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"> | |
| </script> | |
| <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body ng-app="app"> |