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
-- * * * * 2012.07.09. 0:13:16, server:'xxxx', db:'xxxx', search:'A_exampl' * * * * | |
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[A_example]') AND type in (N'P', N'PC')) --#1 | |
Drop procedure [dbo].[A_example]; | |
GO | |
-- * * * * BODY * * * * | |
-- * * * * #1:A_example; CreateDate:2012.07.09. 0:13:04, DateLastModified:2012.07.09. 0:13:04 * * * * | |
GO | |
-- ============================================= | |
-- Author: Akos |
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
var miez = "dht22-send-to-thingspeak"; | |
var httpLib = require("http"); | |
var dht22Lib = require("DHT22"); | |
function readDht22(pin, cb){ | |
console.log('trying connect to dht22@', pin); | |
var dhtConn = dht22Lib.connect(pin); | |
dhtConn.read(function (a) { | |
console.log('Temp @', pin, ' is '+a.temp.toString()+' and RH is '+a.rh.toString()); |
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
let configureApp (app : IApplicationBuilder) = | |
app.UseDefaultFiles() | |
.UseStaticFiles() | |
// this line | |
.UseMiniProfiler() | |
.UseGiraffe webApp | |
let configureServices (services : IServiceCollection) = | |
services.AddGiraffe() |> ignore | |
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
module Views | |
open Giraffe | |
open GiraffeViewEngine | |
open Microsoft.AspNetCore.Http | |
open StackExchange.Profiling | |
let index (ctx: HttpContext) = | |
// Just render the includes | |
let mp = MiniProfiler.Current.RenderIncludes(ctx) |