Skip to content

Instantly share code, notes, and snippets.

View szalishchuk's full-sized avatar

Sviatoslav Zalishchuk szalishchuk

View GitHub Profile
@szalishchuk
szalishchuk / phonegap :: android log
Last active January 4, 2016 19:29 — forked from Carlosriverae/web_console_phonegap
ADB Logcat Web Console for Phonegap Debugging
adb logcat | grep 'Web Console'
- or -
adb logcat | grep "CONSOLE"
@szalishchuk
szalishchuk / index.js
Last active August 29, 2015 14:10 — forked from avaz/index.js
import Ember from 'ember';
import ModalSupport from '../mixins/modal-support';
export default Ember.Controller.extend(ModalSupport, {
actions: {
tryModal: function() {
var _this = this;
_this.modalFor({template: 'some-template',
title: 'Some Title'})
Ember.Handlebars.registerBoundHelper('markdown', function (content) {
return new Handlebars.SafeString(markdown.toHTML(content));
});
/*
In template call it on any available property
{{markdown controller.property}}
*/