some tools for diagrams in software documentation
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
| function main() { | |
| var DevicesConnector = function() { | |
| return new Common.Connector("Handlers/JSonHandler.ashx/Devices/"); | |
| } | |
| var params = { | |
| chartType: $(document).getUrlParam("chartType"), | |
| baseCUID: $(document).getUrlParam("CUID"), | |
| CUID: $(document).getUrlParam("CUID"), | |
| hash: document.location.hash.replace("#", ""), | |
| url: $(document).getUrlParam("url"), |
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
| function Template(input, tag, options) { | |
| var _options = { | |
| onClone: function(row, data) { }, | |
| appendElm: function(elm, val) { elm.text(val); }, | |
| replace: false | |
| }; | |
| var options = $.extend(_options, options); | |
| var clone = tag; | |
| if (!options.replace) { |
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
| // | |
| // ViewController.swift | |
| // UIScrollView | |
| // | |
| // Created by VKushnerov on 1/31/19. | |
| // Copyright © 2019 VKushnerov. All rights reserved. | |
| // | |
| import UIKit |
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 SwiftUI | |
| struct AngularGradientView2: View { | |
| var body: some View { | |
| return VStack { | |
| CustomAngularGradientView() | |
| } | |
| .padding([.leading, .trailing], 30) | |
| .animation(Animation.linear(duration: 1).repeatForever(autoreverses: false)) | |
| } |
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
| // | |
| // UserDefaults.swift | |
| // | |
| // Created by Shaps Benkau on 24/05/2018. | |
| // Copyright © 2018 152percent Ltd. All rights reserved. | |
| // | |
| import Foundation | |
| #if os(iOS) |
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 SwiftUI | |
| import PlaygroundSupport | |
| class GlobalStore: ObservableObject { | |
| static let shared = GlobalStore() | |
| private init() {} | |
| @Published var api1 = Api1Store() | |
| @Published var api2 = Api1Store() |
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 AdvanceTabViewStore: ObservableObject { | |
| private init() {} | |
| static let shared = AdvanceTabViewStore() | |
| @Published var activeTab = 1 | |
| } | |
| struct AdvanceTabView: View { | |
| @ObservedObject var store = AdvanceTabViewStore.shared |
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 SwiftUI | |
| struct ScaleButtonStyle: ButtonStyle { | |
| public func makeBody(configuration: Configuration) -> some View { | |
| print(configuration.isPressed) | |
| return configuration.label | |
| .frame(width: 200, height: 200) | |
| .scaleEffect(configuration.isPressed ? 0.9 : 1) | |
| .animation(.easeInOut) |
OlderNewer