Skip to content

Instantly share code, notes, and snippets.

View markhealey's full-sized avatar

Mark Healey markhealey

View GitHub Profile
@markhealey
markhealey / gist:3657548
Created September 6, 2012 15:42
app json
[{
"appId": "com_markh_highchartsChart",
"description": "Semi-Interactive Price Chart",
"height":300,
"minGridSize": 8,
"isSecure": false,
"manifestUrl": "../../apps/JavaScript/Chart/manifest.js",
"name": "Price Chart"
},
{
@markhealey
markhealey / gist:3657145
Created September 6, 2012 15:07
F2.Container with removeApp logic
/**
* Core Container functionality
* @module f2
* @class F2
*/
F2.extend('', (function(){
var _apps = {};
var _config = false;
@markhealey
markhealey / symbol-change.js
Last active August 29, 2015 14:02
OpenF2.org
F2.Events.emit('Container.symbolChange',{
symbol: 'AMZN'
});
@markhealey
markhealey / sample-container.html
Last active August 29, 2015 14:02
OpenF2.org
<script src="//cdnjs.cloudflare.com/ajax/libs/F2/1.3.3/f2.min.js"></script>
<script>
(function(){
F2.init();
F2.registerApps({
appId: 'com_openf2_examples_javascript_helloworld',
manifestUrl: 'http://docs.openf2.org/demos/apps/JavaScript/HelloWorld/manifest.js'
});
})();
</script>
@markhealey
markhealey / data_app.json
Created April 8, 2014 19:38
2 types of F2 apps
{
"inlineScripts": [],
"scripts": [],
"styles": [],
"apps": [
{
"data": {
"text": " NFLX reported 4 quarter 2013 earnings of 0.79 beating the consensus estimate of the 33 analysts covering the company by 20.61%. This positive surprise is particularly noteworthy because the guidance for the quarter had risen 40.43% in the year leading up to the announcement, and yet the company was still able to better the number. Because NFLX is in the Internet & Catalog Retail industry and has positive earnings, the PEG, PE, and Price to Book ratios are the most appropriate valuation measures. The Price to Sales ratio is less instructive than the PEG or PE since the company has positive earnings. Therefore NFLX seems highly valued with the highest PEG value in the Internet & Catalog Retail industry of 16.67x, which is supported by a PE of 375.07x that is also the highest in the industry. NFLX, like most of its peers, does not pay a dividend. However, the average yield on
@markhealey
markhealey / app_template.html
Last active August 29, 2015 13:57
F2 iOS goodies
<section class="f2-app" style="position: static;">
<header class="clearfix">
<h2 class="pull-left f2-app-title">
{{APP NAME from appConfig.name}}
</h2>
</header>
<div class="f2-app-view f2-app-container {{APP ID from appConfig.appId}}">
{{ APP HTML }}
</div>
</section>
@markhealey
markhealey / directory.txt
Last active August 29, 2015 13:57
customizing bootstrap, express setup
mysite/
├── public/
| ├── css/
| | ├── less/
| | | └── mixins/
│ | | ├── alerts.less
| | | ├── badges.less
| | | ├── bootstrap.less
│ | | └── breadcrumbs.less
| | | └── ...
@markhealey
markhealey / F2-v1.3.0-BS3.js
Created February 28, 2014 21:52
F2-v1.3.0-BS3
;
(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2: