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
@tcarlsen
tcarlsen / gulpfile.js
Last active July 11, 2016 20:20
My personally gulp file
/*jslint indent:2, node:true, sloppy:true*/
var
gulp = require('gulp'),
coffee = require('gulp-coffee'),
rename = require("gulp-rename"),
uglify = require('gulp-uglify'),
sass = require('gulp-sass'),
styl = require('gulp-styl'),
concat = require('gulp-concat'),
csso = require('gulp-csso'),
@tcarlsen
tcarlsen / start.js
Created April 16, 2014 11:49
(sofie)
parent.window.location.hash = '#/jens/' + page.replace('#', '');
@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 / 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 * //
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 / 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>

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 
<iframe src="http://www.b.dk/upload/webred/bmsandbox/usa2012/index.html" width="940px" height="600px" frameborder="0" scrolling="no" marginwidth="0px" marginheight="0px" style="margin-top: -12px;"></iframe>
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="https://platform.twitter.com/widgets/tweet_button.html?count=horizontal&amp;lang=en&amp;url=http%3A%2F%2Fwww.b.dk%2Fusavalg_stilingen&amp;text=Stillingen lige nu | www.b.dk" style="width:130px; height:20px;"></iframe><iframe src="http://www.facebook.com/widgets/like.php?width=140&amp;height=20&amp;locale=da_DK&amp;layout=button_count&amp;show_faces=false&amp;action=recommend&amp;href=http%3A%2F%2Fwww.b.dk%2Fusavalg_stilingen" scrolling="no" frameborder="0" style="border:none;width:140px;height:20px" allowtransparency="true"></iframe>
<?php
namespace Minecrafter\SiteBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class SignupForm extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{