Skip to content

Instantly share code, notes, and snippets.

View morgondag's full-sized avatar
😎
(◉-◉)

Kim Aarnseth morgondag

😎
(◉-◉)
View GitHub Profile
@morgondag
morgondag / flightfile.js
Last active August 29, 2015 13:57
A awesome flight.js ui file
/*
1. save this file in ui/data folder with a name
for example if its reader discussion ajax reader_discussion_ajax.js
2. go to reader.js or builder.js
3. require this new file add
var newAwesomeFile = require('ui/reader_discussion_ajax');
4. in the initialize in reader.js attach this file to a DOM node.
if its global add it to document
example:
newAwesomeFile.attachTo('#yourParentSelector');
@morgondag
morgondag / gist:8540802
Created January 21, 2014 14:11
do we got old crappy flash?
var hasFlash = false;
try {
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if(fo) hasFlash = true;
}catch(e){
if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) hasFlash = true;
}
@morgondag
morgondag / gist:8401700
Created January 13, 2014 14:54
سمَـَّوُوُحخ ̷̴̐خ ̷̴̐خ ̷̴̐خ امارتيخ ̷̴̐خ
سمَـَّوُوُحخ ̷̴̐خ ̷̴̐خ ̷̴̐خ امارتيخ ̷̴̐خ