Skip to content

Instantly share code, notes, and snippets.

View bramcordie's full-sized avatar

Bram Cordie bramcordie

View GitHub Profile
bramcordie /
Created November 16, 2015 08:56
Install mysql on Ubuntu
# Install mysql with the root password set to correcthorsebatterystaple
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password correcthorsebatterystaple'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password correcthorsebatterystaple'
sudo apt-get -y install mysql-server
it('should indicate that members are loading while waiting for results', function (done){
var deferredMembers = $q.defer();
var membersPromise = deferredMembers.promise;
var assertMembersLoaded = function () {
expect(membershipViewer.members).toEqual(['Alice', 'Bob']]);
describe('Membership Viewer', function () {
var membershipViewer, membershipService;
beforeEach(function () {
membershipService = jasmine.createSpyObj('membershipService', ['getMembers']);
membershipViewer = new MembershipViewer(membershipService);
it('should display a list of group members', function() {
var members = ['Alice', 'Bob'];
bramcordie / gist:166ab89d94193807aed2
Last active August 29, 2015 14:13
event export description
// selection is optional but takes precendence over query to determine the included events
query: 'city:leuven AND title:something',
selection: [
order: {
'title': 'ASC',