Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript">
$(window).resize(function () {
var windowHeight = $(window).height();
$("#chapterDetailWrapper img").css("height", (windowHeight - 180) + "px");
});
var windowHeight = $(window).height();
$("#chapterDetailWrapper img").css("height", (windowHeight - 180) + "px");
func addOneDay () -> String {
//var dateString = "2014-01-12"
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss +zzzz"
// let s = dateFormatter.date(from: stringDate)
// print(s)
let s = Date()
let calendar = NSCalendar(calendarIdentifier: NSCalendar.Identifier(rawValue: NSGregorianCalendar))
let dateComponent = NSDateComponents()
#define ag_ismi "AG ISIMI"
#define ag_sifresi "AG SIFRESİ"
#define IP "184.106.153.149" //thingspeak.com IP adresi
#include "HX711.h"
HX711 scale;
int inPin = 2; //Button giris input degeri
int val = 0;