Skip to content

Instantly share code, notes, and snippets.

View stevoPerisic's full-sized avatar

Stevo Perisic stevoPerisic

View GitHub Profile
@stevoPerisic
stevoPerisic / heroku-meteor-deploy.txt
Created August 9, 2015 13:24
Deploying a Meteor App on Heroku
Step by step deploy meteor app to Heroku
1) Run:
$ heroku create [yourappname] --stack cedar --region us --buildpack https://github.com/jordansissel/heroku-buildpack-meteor.git
UPDATE: use this buildpack instead
heroku buildpacks:set https://github.com/AdmitHub/meteor-buildpack-horse.git
UPDATE2: use this build pack to run with iOS and android platforms added
https://github.com/Alveoli/meteor-buildpack-horse
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
@stevoPerisic
stevoPerisic / background.js
Created February 22, 2013 17:08
Chrome Packaged App
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('window.html', {
'width': 400,
'height': 500
});
});
@stevoPerisic
stevoPerisic / index.html
Last active December 14, 2015 02:39
simple infinite loop data ticker
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Data Ticker</title>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
</head>
<body>
<h2>Data Ticker</h2>
<div class="awardsScroller">