Skip to content

Instantly share code, notes, and snippets.

View Nisden's full-sized avatar

Nick Lund Stenroos-Dam Nisden

View GitHub Profile
http://192.168.200.114/SilverlightFileSystemWrapper.Web/SilverlightFileSystemWrapperTestPage.aspx
@Nisden
Nisden / stuff.cs
Last active August 29, 2015 14:06
Teamcity helpers
private class TestCase : IDisposable
{
public string TestName
{
get
{
return testName;
}
}
private string testName;
@Nisden
Nisden / Ideas
Created April 14, 2014 07:30
Lots of shitty ideas, feel free to fork and add ideas!
• Web sites
○ Translation System
§ Crowdsourcing
§ Azure
§ Formats
□ Resx
□ Strings.xml (Android)
○ Server Management
§ Charts, Interactive console, custom plugins for applications
§ An always returning idea.
select sys.objects.name, sys.objects.type_desc, LEN(OBJECT_DEFINITION(object_id)) - LEN(REPLACE(OBJECT_DEFINITION(object_id), CHAR(13)+CHAR(10), ' ')) +1 as lines from sys.objects where is_ms_shipped = 0 AND OBJECT_DEFINITION(object_id) IS NOT NULL order by lines DESC
@Nisden
Nisden / ArduinoWeb.ino
Last active December 14, 2015 22:39
Web Sever with NTP
#include "SPI.h"
#include "Ethernet.h"
#include "WebServer.h" // https://github.com/sirleech/Webduino
#include "Clock.h"; // http://www.blueleafsoftware.com/Resources/EmbeddedSand/Clock_library
byte ArduinoMAC[] = {0x90, 0xA2, 0xDA, 0x0D, 0xB7, 0xFA};
IPAddress ArduinoIP(10, 15, 11, 12);
Clock g_Clock;
WebServer webserver("", 80);
-- vars
DECLARE @tableName NVARCHAR(255), @columnName NVARCHAR(255), @prevTable NVARCHAR(255), @prevColumn NVARCHAR(255), @sql NVARCHAR(255)
-- Start
DECLARE tablesCurser CURSOR FAST_FORWARD READ_ONLY FOR
SELECT name FROM sys.tables WHERE is_ms_shipped = 0
OPEN tablesCurser
FETCH NEXT FROM tablesCurser INTO @tableName
WHILE @@FETCH_STATUS = 0
BEGIN
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Threading;
namespace Derp
{
class Program
public double calculate(string expr)
{
// Try to replace things with Math
string[] mathfunktions = this.mathfunktions().Select(x => x.Name).ToArray();
foreach (var item in mathfunktions)
{
if (expr.ToLower().Contains(item.ToLower()))
{
string exprlocal = expr;