This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.config(function($routeProvider) { | |
$routeProvider | |
// route for the home page | |
.when('/', { | |
templateUrl : 'pages/home.html', | |
controller : 'homeController' | |
}) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends layout | |
block content | |
h1= title | |
form( method="post") | |
div | |
div | |
span Title : | |
input(type="text", name="title", id="editArticleTitle") | |
div |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div class="reveal"> | |
<!-- Any section element inside of this container is displayed as a slide --> | |
<div class="slides"> | |
<section> | |
<section> | |
<a href="#" class="image navigate-down"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#calendar').fullCalendar({ | |
editable: true, | |
events: | |
[{ | |
title: 'Sansrity', | |
start: new Date(2014, 9, 15) | |
}, | |
{ | |
title: 'Gujarati Samaj Show', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class ="addthis_toolbox addthis_default_style "> | |
<a class ="addthis_button_facebook_like" fb:like:layout="button_count"> </a> | |
<a class ="addthis_button_tweet"></a> | |
<script type="text/javascript">var addthis_config={"data_tracker_addressbar":true};</script> | |
</body> | |
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5205894e1544c811"></script> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//GLOBAL.articleProvider = new ArticleProvider(); // MEMORY OPTION: enable for memory data holder | |
GLOBAL.articleProvider = new ArticleProvider('localhost', 27017); | |
app.get('/', routes.index); | |
//app.post('/', routes.index); | |
app.get('/blog/new', blog.new); | |
app.post('/blog/new', blog.newSave); | |
app.get('/blog/lgin', blog.lgin); | |
app.post('/blog/lgin', blog.lgin); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.new = function(req, res){ | |
res.render('blog_new.jade', { | |
title: 'New Post', | |
cookieTracker:cookieTracker | |
}); | |
}; | |
exports.newSave = function(req, res){ | |
articleProvider.save({ | |
title: req.param('title'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongo | |
>use node-mongo-blog | |
>db.accounts.insert({user:"user3",pass:"pass3"}) | |
> db.accounts.find() | |
{ "_id" : ObjectId("53321fadc01857ecccd826c6"), "user" : "user1", "pass" : "pass1" } | |
{ "_id" : ObjectId("53321fbcc01857ecccd826c7"), "user" : "user2", "pass" : "pass2" } | |
{ "_id" : ObjectId("57c316365312282b8f23ac13"), "user" : "user3", "pass" : "pass3" } | |
> show collections | |
accounts | |
articles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--a class="coinbase-button" data-code="8675c8797d155ce2778ea8edffc75143" | |
data-button-style="buy_now_small" href="https://coinbase.com/checkouts/8675c8797d155ce2778ea8edffc75143">Pay With Bitcoin</a> | |
<script src="https://coinbase.com/assets/button.js" type="text/javascript"></script!--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.controller('AppCtrl', function($scope, $ionicModal, $timeout, $sce, DataLoader, $rootScope, $log ) { | |
// Enter your site url here. You must have the WP-API v2 installed on this site. Leave /wp-json/wp/v2/ at the end. | |
//$rootScope.url = 'http://www.mysite.com/wp-json/wp/v2/'; | |
$rootScope.url = 'http://codenovator.com/wp-json/wp/v2/'; | |
// $rootScope.callback = '_jsonp=JSON_CALLBACK'; | |
}) |
OlderNewer