Skip to content

Instantly share code, notes, and snippets.

View Liteolika's full-sized avatar

Peter Stålbrand Liteolika

View GitHub Profile
@Liteolika
Liteolika / gist:6727302
Created September 27, 2013 11:37
How to get typescript compiled in VS2012 when it doesnt do it at save.
Unload the project, edit the csproj file to add this.
<Target Name="BeforeBuild">
<Exec Command="&quot;$(PROGRAMFILES)\Microsoft SDKs\TypeScript\tsc.exe&quot; @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" />
</Target>
@Liteolika
Liteolika / gist:7516007
Created November 17, 2013 17:49
To view Json in Internet Explorer.
Windows Registry Editor Version 5.00;
; Tell IE 7,8,9,10 to open JSON documents in the browser on Windows XP and later.
; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" .
;
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00
@Liteolika
Liteolika / Program.cs
Created January 31, 2019 08:50
Lite leksaker till Salim
using System;
using System.Runtime.InteropServices;
namespace SalimsLekstuga
{
class Program
{
static void Main(string[] args)
{
var lek = new SalimsLeksak();
@Liteolika
Liteolika / gitflow-breakdown.md
Created April 17, 2020 12:19 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository