Skip to content

Instantly share code, notes, and snippets.

View TimonVS's full-sized avatar

Timon van Spronsen TimonVS

View GitHub Profile
@TimonVS
TimonVS / gist:a40514121fb220495d8c
Created May 28, 2015 15:16
Fix UI Bootstrap collapse for ngAnimate 1.4
angular.module('ui.bootstrap.collapse', [])
.directive('collapse', ['$animate', '$animateCss', '$timeout', function ($animate, $animateCss, $timeout) {
return {
link: function (scope, element, attrs) {
function expand() {
element.removeClass('collapse').addClass('collapsing');
// Old code that doesn't work anymore with ngAnimate 1.4
@TimonVS
TimonVS / .gitignore
Last active August 29, 2015 14:10
Global .gitignore
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
*.iml
## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:
# User-specific stuff:
# .idea/workspace.xml
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
using MongoDB.Bson;
using MongoDB.Driver;
using MongoDB.Driver.Builders;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.Entity;
using System.Linq;
using System.Web;