Skip to content

Instantly share code, notes, and snippets.

View vanthome's full-sized avatar

Thomas Hoppe vanthome

  • n-fuse GmbH
  • Stuttgart
View GitHub Profile
@tim-evans
tim-evans / document_title.js
Created August 22, 2014 19:28
Document title mixin for Ember.Router
import Ember from "ember";
var get = Ember.get;
var copy = Ember.copy;
var removeObserver = Ember.removeObserver;
var addObserver = Ember.addObserver;
var DocumentTitleMixin = Ember.Mixin.create({
titleTokensDidChange: function () {
@jdjkelly
jdjkelly / gist:0bddf2e834b6d6bc2174
Last active December 25, 2021 14:30
Making Accessible Ember Components

Making Accessible Ember Components

Making the web accessible is important. We have ethical and, in some cases, legal obligations to ensuring access to all of users.

Luckily for us, it's easy to make an accessible Ember Component.

What are components?

To understand the accessibility story around Ember Components, we have to start by talking about Web Components. Ember Components are designed to be interoperable with the final Web Components API.

@polotek
polotek / prototypes.js
Created August 9, 2012 21:33
A short explanation of prototypal inheritance.
function MyConstructor() {
this.foo = [ "foo" ];
}
MyConstructor.prototype.bar = [ "bar" ];
var obj = new MyConstructor();
obj.foo // The "foo" property is available directly on the object
obj.bar // The object has no "bar" property so it looks it up on the prototype
@int128
int128 / gist:2360407
Created April 11, 2012 16:36
GitLab init script for Gentoo Linux
#!/sbin/runscript
# GitLab init script for Gentoo Linux
# see https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md
GITLAB_BASE=/home/gitlab/gitlab
GITLAB_USER=gitlab
depend() {
need net mysql redis
}
@sebastien-p
sebastien-p / LICENSE.txt
Created August 24, 2011 16:13 — forked from 140bytes/LICENSE.txt
base62 encode
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Sebastien P. https://twitter.com/#!/_sebastienp
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE