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
// | |
// CacheAsyncImage.swift | |
// | |
// Created by Costantino Pistagna on 08/02/23. | |
// | |
import SwiftUI | |
struct CacheAsyncImage<Content, Content2>: View where Content: View, Content2: View { | |
private let url: URL? |
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
// | |
// ContentView.swift | |
// Shared | |
// | |
// Created by Costantino Pistagna on 25/03/21. | |
// | |
import SwiftUI | |
struct ContentView: View { |
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
// | |
// CustomSlider.swift | |
// Custom SliderView using SwiftUI | |
// | |
// Created by Costantino Pistagna on 02/07/2020. | |
// | |
import SwiftUI | |
struct ContentView: View { |
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
// | |
// ContentView.swift | |
// neumorph | |
// | |
// Created by Costantino Pistagna on 28/06/2020. | |
// | |
import SwiftUI | |
struct ContentView: View { |
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
// | |
// FakeBeacon.h | |
// | |
// Created by Costantino Pistagna on 02/05/2020. | |
// Copyright © 2020 Sofapps. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@import CoreLocation; |
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
// | |
// SAWKWebView.swift | |
// | |
// Created by Costantino Pistagna on 24/01/2020. | |
// Copyright © 2020 Sofapps. All rights reserved. | |
// | |
import UIKit | |
import WebKit |
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
// | |
// ContentView.swift | |
// TestSwiftUI | |
// | |
// Created by valv0 on 05/06/2019. | |
// Copyright © 2019 Costantino Pistagna. All rights reserved. | |
// | |
import SwiftUI |
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
// | |
// ViewController.swift | |
// TestHEIC | |
// | |
// Created by Costantino Pistagna on 14/11/2018. | |
// Copyright © 2018 sofapps. All rights reserved. | |
// | |
import UIKit | |
import AVFoundation |
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
int chk = DHT.read22(DHT22_PIN); | |
switch (chk) | |
{ | |
case DHTLIB_OK: | |
client.print("{ \"temperature\":"); | |
client.print(DHT.temperature-2); | |
client.print(", \"humidity\":"); | |
client.print(DHT.humidity); | |
client.println("}"); | |
break; |
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
/* | |
A simple HomeBridgeHub example for HomeBridge | |
Author: Costantino Pistagna <[email protected]> | |
*/ | |
#include <dht.h> | |
#include <Bridge.h> | |
#include <BridgeServer.h> | |
#include <BridgeClient.h> |
NewerOlder