Skip to content

Instantly share code, notes, and snippets.

View thecopy's full-sized avatar

Erik Jonsson Thorén thecopy

View GitHub Profile
USE "Server=localhost;Database=KardaNorm;Trusted_Connection=True;" as norm;
USE "Server=localhost;Database=KardaManual;Trusted_Connection=True;" as manual;
SOURCE s FROM manual.vbv.VBV_MATT_STYRKORT as matt
CHOOSE Namn, Falt
LOOKUP Namn as AggEnhetNamn, Id as AggId FROM INNER JOIN manual.vbv.AggregeringsEnhet as aggenhet ON aggenhet.AggregeringsEnhetID = matt.AggregeringsEnhetID
;
TARGET norm.vbv.Matt t
IDENTIFY USING s.Falt = t.Falt
#! /bin/bash
for j in 10000000
do
for i in 1 8 32 128 512 2048 8192
do
echo "------- n = $j buckets = $i ----------"
./assignment3 $j $i
done
done
MissileBattery r = new MissileBattery(6);
int i = 0;
int k = 0;
if (i != 0)
k = 5;
else
k = 6;
r.fire(k);
using System;
using Microsoft.AspNet.SignalR;
using Microsoft.Owin.Hosting;
using Owin;
namespace SignalRSelfHost
{
class Program
{
static void Main(string[] args)
function onBeforeWrite(){
parent::onBeforeWrite();
if(empty($this->CountryID)){
$this->CountryID = defined('DEFAULT_COUNTRY') ? Country::getCountryID(DEFAULT_COUNTRY) : 0;
}
}
@thecopy
thecopy / Error
Last active August 29, 2015 13:56
500 TypeError: /Users/thecopy/dev/node/alpwetter/views/index.jade:12<br/> 10| Bitte wählen Sie die Resorts Sie möchten die Wetter für sehen<br/> 11| ul<br/> > 12| each name in availableResorts<br/> 13| li<br/> 14| input(type='checkbox', value=name)<br/> 15| <br/><br/>Cannot read property 'length' of undefined
10| Bitte wählen Sie die Resorts Sie möchten die Wetter für sehen
11| ul
> 12| each name in availableResorts
13| li
14| input(type='checkbox', value=name)
15|
Cannot read property 'length' of undefined
at eval (eval at (/Users/thecopy/dev/node/alpwetter/node_modules/jade/lib/jade.js:160:8), :76:31)
@thecopy
thecopy / gist:7975158
Last active December 31, 2015 10:48
1 Number of concurrent requests 2 DB Service Time 3 Standard Deviation
1.000000000000000 2.414259749434132 0.999280565685732
5.000000000000000 3.706233489391641 2.486750057585160
20.000000000000000 7.327873541642159 6.753821537119988
30.000000000000000 11.365195598956161 10.392711053878482
40.000000000000000 14.535989636170527 13.287203246314295
50.000000000000000 18.751374518536210 16.285374008673049
60.000000000000000 22.579159489446951 19.226972398735491
70.000000000000000 27.448384183120815 22.674985295160905
ioServiceTime = 0.0004.*(1:64);
crwServiceTime = 0.00003.*(1:64);
dbServiceTime = 0.001643.*atan(0.2028.*(1:64)) + 0.001662;
serviceTime = ioServiceTime + crwServiceTime + dbServiceTime;
serviceRate = 1./serviceTime;
#include <iostream>
int main(){
std::ostream p = std::cout << "Hello world" << std::endl;
p << "test";
return 0;
}

Scene 1

Hi and welcome to the first video in OWIN Crash Course series

In this video i will go through the basics of OWIN what it is and what it can be used for

Scene 2

First: OWIN Stands for Open Web Interface for .NET and according to owin dot org: OWIN defines a standard interface between .NET web servers and web applications. The goal of the OWIN interface is to decouple server and application and encourage the development of simple modules for .NET web development […]