Skip to content

Instantly share code, notes, and snippets.

View rehnen's full-sized avatar

Marcus Rehn rehnen

View GitHub Profile
@rehnen
rehnen / index.html
Created July 26, 2016 20:31
mocha chai sinon async test
<html>
<head>
<title>This is a test page for testing tests</title>
<link rel="stylesheet" type="text/css" href="http://cdnjs.cloudflare.com/ajax/libs/mocha/1.20.1/mocha.css">
</head>
<body>
<script src="http://cdnjs.cloudflare.com/ajax/libs/mocha/1.20.1/mocha.js" type="application/ecmascript"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/chai/1.9.1/chai.min.js" type="application/ecmascript"></script>
<script src="http://sinonjs.org/releases/sinon-1.10.3.js" type="application/ecmascript"></script>
@rehnen
rehnen / Mkdir_and_cd.md
Last active December 13, 2015 09:15
Mkdir and cd

#mkdir, like it was meant to be!#

##Here is how you do it##

Open up an editor and create a script file, in my case "mkdirn.sh". And inside the file we will put the following:

mkdir $1
cd $1

The $1 refers to what ever we put after our initial command in the case of mkdir abc $1 refers to abc.

@rehnen
rehnen / rapport.md
Last active December 24, 2015 22:49
rapport.md

Webapplikationer offline

Hur HTML5 kan hjälpa användande av webapplikationer offline

Introduktion

Den här texten syftar till att berätta om några av de nya HTML5 tekniker som kan hjälpa till vid användande av webbapplikationer utan att ha en konstant anslutning till webbservern. Hur kan de nya webteknikerna hjälpa till?

@rehnen
rehnen / Rapport
Created October 7, 2013 22:09
Rapport
<h1 class="wmd-title" id="webapplikationer-offline">Webapplikationer offline</h1>
<h2 class="wmd-title" id="en-överblick-av-html5-standardens-offline-stöd">En överblick av HTML5 standardens offline stöd</h2>
<h2 class="wmd-title" id="introduktion">Introduktion</h2>
<p>Den här texten syftar till att berätta om de nya HTML5 tekniker som kan hjälpa till vid användande av webbapplikationer utan att ha en konstant anslutning till webbservern. Hur mycket kan egentligen lagras lokalt?</p>
<h3 class="wmd-title" id="bakgrund">Bakgrund</h3>
@rehnen
rehnen / Draft papper om offline
Created September 20, 2013 21:46
Document Struktur
<h1 class="wmd-title" id="webbappar-i-en-offlinemiljö">Webbappar i en offlinemiljö</h1>
<h2 class="wmd-title" id="nya-tekniker-som-ska-unerlätta-arbete-utan-uppkoppling">Nya tekniker som ska unerlätta arbete utan uppkoppling</h2>
<h3 class="wmd-title" id="forskningsfråga">Forskningsfråga</h3>
<p>Är det möjligt att simulera en koppling till en webserver. Inte i form av att bara cacha en webbplats, utan även att simulera funktionallitet så som att ladda upp filer eller att editera ett blogginlägg.</p>
<h3 class="wmd-title" id="usecase">Usecase</h3>