I hereby claim:
- I am brentmaxwell on github.
- I am brentmaxwell (https://keybase.io/brentmaxwell) on keybase.
- I have a public key whose fingerprint is 48FC FD01 403C F2AD 5B24 2924 755D 8989 5912 D6FA
To claim this, I am signing this object:
namespace System | |
{ | |
public static class UnixTimeExtensions | |
{ | |
public static long ToUnixTime(this DateTime datetime) | |
{ | |
return (long)(datetime.ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0)).TotalSeconds; | |
} | |
public static DateTime FromUnixTime(long time) |
SELECT | |
[TableName] = so.name, | |
[RowCount] = MAX(si.ROWS) | |
FROM | |
sysobjects so, | |
sysindexes si | |
WHERE | |
so.xtype = 'U' AND | |
si.id = OBJECT_ID(so.name) | |
GROUP BY so.name ORDER BY so.name |
public class AutoMapperConfig | |
{ | |
/// <summary> | |
/// Function that is called in the Global.asax file | |
/// Runs through and calls each of the functions below, registering the various mappings | |
/// </summary> | |
public static void Execute() | |
{ | |
RegisterOtherMaps(); | |
RegisterMapperHelpers(); |
CREATE FUNCTION [dbo].[DelimitedStringToTable] | |
( | |
@String nvarchar(MAX), | |
@Delimiter nvarchar(1) | |
) | |
RETURNS @Items TABLE | |
( | |
Item nvarchar(50) | |
) | |
AS |
CREATE FUNCTION [StringIpToBin] | |
( | |
@StringIp VARCHAR(15) | |
) | |
RETURNS BINARY(4) | |
AS | |
BEGIN | |
RETURN | |
CAST(CAST(PARSENAME(@StringIp,4) AS INT) AS BINARY(1)) + | |
CAST(CAST(PARSENAME(@StringIp,3) AS INT) AS BINARY(1)) + |
namespace System | |
{ | |
public static class GpsTime | |
{ | |
public static int ToGpsTimeWeekNumber(this DateTime datetime) | |
{ | |
DateTime datum = new DateTime(1980, 1, 6, 0, 0, 0); | |
TimeSpan difference = datetime.Subtract(datum); | |
return (int)(difference.TotalDays / 7); | |
} |
I hereby claim:
To claim this, I am signing this object:
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQENBFV1z94BCACsc/WQ3v4OQK2zcTIS1751Pixtlielg8hafGUmu3RPYzB0Qrnu | |
109TQrfO4Sx+fi9Q4iLzzKbPJ83myaDRCxd0zng6pVbPMSX44fzzgLdQpE7esut6 | |
ptEJtCGPqMoaLuJ5xieG8YmmERJ1lQjk6LWWat7b/wfM7E6NqDBH8YoG5Mb5kDdG | |
qF55p5/2L07f/7G4M28rLJLBCe4/6q/tjAUzuEVyJO/M0X3cb3bBmySOokHHhfpf | |
ls5ZgeJjuLAjzPImGDxLDLwBDpcEt4h8XHc65Ir17POV/gu7VSqjn4XuuOVdGed5 | |
Abg0caqgL9u3TzIJur/SkO3fEXMDqDRZ0T0dABEBAAGJAU4EHwEKACEFAlV3IZwX | |
DIABw1qv3cOYCyUeXa9P0c6JaoQB3tICBwAAIQkQdV2JiVkS1voWIQRI/P0BQDzy | |
rVskKSR1XYmJWRLW+uo/CACfqYP1Ss2XUywH6BpgxV2HgmzLJllZVQ/QRk5j5XDJ |
<?php | |
$aprs_php_ver = "0.1"; | |
$aprs_is_url = "http://srvr.aprs-is.net:8080"; | |
date_default_timezone_set('UTC'); | |
$defaultSSID = "10"; | |
$defaultPath = "APRS,WIDE2-2,TCPIP*"; | |
if($_SERVER["REQUEST_METHOD"] == "POST") | |
{ |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Text; | |
public class ObjectDumper | |
{ | |
private int _level; | |
private readonly int _indentSize; |