Skip to content

Instantly share code, notes, and snippets.

View tcarlsen's full-sized avatar

Thomas Carlsen tcarlsen

  • Ekstra Bladet
  • Copenhagen, Denmark
View GitHub Profile

Berlingske

This repo is containing all the shit I do at Berlingske, but you don't care course you can't even see this repo... It's privat :bowtie:

There are all the code?

Every project is stored inside its own BRANCH so to develop on a specific project you need to switch to that BRANCH.

$ git checkout 
@tcarlsen
tcarlsen / index.html
Created April 9, 2014 08:26
Sådan benytter du dig af bootstarp karusel
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo</title>
<!-- embed bootstrap css -->
<link rel="stylesheet" href="path/to/bootstarp.min.css">
<!-- embed din css -->
<link rel="stylesheet" href="path/to/din.css">
</head>
function openBubble(id) {
left = $('#' + id).css('left');
top = $('#' + id).css('top');
width = $('#' + id).outerWidth();
height = $('#' + id).outerHeight();
lastOpenId = id;
$('#' + id)
.animate({
'left': '261px',
@tcarlsen
tcarlsen / top.js
Created April 16, 2014 11:48
top.js
$(document).ready(function () {
var location = window.location.href;
var hashtag = (location.split('#/')[1] || 'sofie/start').split('/');
var page = hashtag[1];
if (hashtag[0] !== 'sofie') {
page = 'start';
}
// * Home button * //
@tcarlsen
tcarlsen / top.js
Created April 16, 2014 11:48
jens
$(document).ready(function () {
var location = window.location.href;
var hashtag = (location.split('#/')[1] || 'jens/start').split('/');
var page = hashtag[1];
if (hashtag[0] !== 'jens') {
page = 'start';
}
// * Home button * //
@tcarlsen
tcarlsen / start.js
Created April 16, 2014 11:49
(sofie)
parent.window.location.hash = '#/jens/' + page.replace('#', '');
@tcarlsen
tcarlsen / dynamic-iframe.js
Created July 7, 2014 11:29
Dynamic iFrame height
function updateIframeSize() {
$('iframe.dynamic').height(window.innerHeight - ($('.header').height())).width("100%");
}
updateIframeSize();
@tcarlsen
tcarlsen / untitled
Created August 26, 2014 09:42
gallup vælgervandring struktur
{
"A": {
"B": {
"afgang": 20000,
"tilgang": 343432,
"netto": 32423
},
"C": {
...
}

Keybase proof

I hereby claim:

  • I am tcarlsen on github.
  • I am tcarlsen (https://keybase.io/tcarlsen) on keybase.
  • I have a public key whose fingerprint is AF53 4F20 8D65 F19E 28AF 062A 3346 CDE8 75A2 9895

To claim this, I am signing this object:

@tcarlsen
tcarlsen / Todo.md
Last active August 29, 2015 14:07
My Berlingske ToDo list