I hereby claim:
- I am szalishchuk on github.
- I am szalishchuk (https://keybase.io/szalishchuk) on keybase.
- I have a public key ASCOrlbKsksST_mVULVj0XS6yXfPKk98Ls-m86q8szftKwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Ember.Handlebars.registerBoundHelper('markdown', function (content) { | |
return new Handlebars.SafeString(markdown.toHTML(content)); | |
}); | |
/* | |
In template call it on any available property | |
{{markdown controller.property}} | |
*/ |
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'}) |
var | |
// Local ip address that we're trying to calculate | |
address | |
// Provides a few basic operating-system related utility functions (built-in) | |
,os = require('os') | |
// Network interfaces | |
,ifaces = os.networkInterfaces(); | |
// Iterate over interfaces ... |
<?xml version='1.0' encoding='utf-8'?> | |
<widget id="com.phonegap.application" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> | |
<access origin="*" /> | |
<content src="phonegap.html" /> | |
<name>Application</name> | |
<description>Description</description> | |
<author email="[email protected]" href="http://phonegap.com">Sviatoslav Zalishchuk</author> | |
adb logcat | grep 'Web Console' | |
- or - | |
adb logcat | grep "CONSOLE" |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs"), | |
mime = require('mime'), | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname, |