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
Lesson 3: | |
ganske, så mye, meget bra, I think(sines), men, bare, | |
Lesson 4: | |
storting, gata, Stortingsgata, veien, hvor, her, der borte, tusen takk |
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
= value || 0; | |
var Tekpub = Tekpub || {};Tekpub.CartItem = function (options, callback) { - namespace | |
dont 'new' 29min. http://www.youtube.com/watch?v=hQVTIJBZook | |
Closure 28min. http://www.youtube.com/watch?v=hQVTIJBZook | |
var value = items["dfs"];if(value === undefined) ... |
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
ko.dataFor | |
ko.computed({ //}, viewModel); - second parameter as a context. | |
viewModel.whoAmI = function() { alert(this.name);}.bind(viewModel); | |
<script type="text/html" id="person-template"> | |
<pre data-bind="text: ko.toJSON($root, null, 2)"></pre> |
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
using System; | |
using System.IO; | |
public static class PathHelper | |
{ | |
public static bool AreEqualPath(string first, string second) | |
{ | |
return String.Compare( | |
Path.GetFullPath(first).TrimEnd('\\'), | |
Path.GetFullPath(second).TrimEnd('\\'), |
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
# good git book | |
http://git-scm.com/book | |
# Discard uncommitted changes in a specific file | |
git checkout file_name | |
# Clear everything not in repo | |
git checkout -- . | |
# A way to quickly move to the previous commit in a git branch. This also way for "deleting" last commit. |
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
using System.Collections.Generic; | |
namespace KMorcinek.Common | |
{ | |
public static class DictionaryExtensions | |
{ | |
public static void IncrementAt<T>(this Dictionary<T, int> dictionary, T index) | |
{ | |
int count = 0; |
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
# The following command works for downloading when using Git for Windows: | |
# curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
# | |
# Download this file using PowerShell v3 under Windows with the following comand: | |
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore | |
# | |
# or wget: | |
# wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
# User-specific files |
NewerOlder