Skip to content

Instantly share code, notes, and snippets.

View raix's full-sized avatar
🚀
Starting up my own thing - focus time

Morten N.O. Nørgaard Henriksen raix

🚀
Starting up my own thing - focus time
View GitHub Profile
@raix
raix / viewport.js
Created June 25, 2014 05:10
Paginated viewport in Meteor/Famo.us/Famono
if (Meteor.isClient) {
// Rig some famo.us deps
//famousPolyfills;
famous.polyfills;
famous.core.famous;
// Make sure dom got a body...
Meteor.startup(function() {
@raix
raix / test.md
Last active August 29, 2015 14:11
test changelog
@raix
raix / roles.js
Created February 24, 2015 15:56
Roles
roleTypes = {
'admin': 'Administrator',
'user': 'Bruger',
'editor': 'Redaktør',
};
roleTypesList = [];
_.each(roleTypes, function(val, key) {
roleTypesList.push({
@raix
raix / view.js
Last active August 29, 2015 14:16
A ultra simple view handler
if (Meteor.isClient) {
// Basic animation handling
var defer = function(current, last, scroll) {
// Set the hide class and then remove the show
$('#'+last).addClass('hide').removeClass('show');
// Remove the hide - this will make the transition fast
$('#'+current).removeClass('hide');
Meteor.setTimeout(function() {
@raix
raix / app.hackathon.sep2015.js
Last active October 10, 2015 16:09
Meteor Copenhagen hackathon - publish/restpoint data
Meteor.methods({
'addFoo': function(name) {
check(name, String);
foo.insert({ owner: this.userId, name });
}
});