This file contains hidden or 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
?php | |
/** | |
* Generate a DOCX file | |
* | |
* @category Phpdocx | |
* @package create | |
* @copyright Copyright (c) 2009-2013 Narcea Producciones Multimedia S.L. | |
* (http://www.2mdc.com) | |
* @license http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php |
This file contains hidden or 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
$(document).ready(function() { | |
$.get("/0.1/user", function(data) { | |
window.user = data.user; | |
window.online = true; | |
window.bootstrap(); | |
}).fail(function(jqXHR, textStatus, errorThrown) { | |
var userString = localStorage.getItem('ls.localUser'); | |
window.user = JSON.parse(userString); | |
window.online = false; |
This file contains hidden or 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
#!/bin/bash | |
curl --silent --write-out '%{http_code}\n' "http://israelhayom.co.il/api/v2/getItems?class_id=1&format=json&order_by=popular&debug=static&real=1" |
This file contains hidden or 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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'), | |
fs = require('fs'), | |
passport = require('passport'), | |
logger = require('mean-logger'); |
This file contains hidden or 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
/** | |
* Module dependencies. | |
*/ | |
var mongoose = require('mongoose'), | |
async = require('async'), | |
_ = require('underscore'); | |
exports.render = function(req, res) { | |
if (req.user) { |
This file contains hidden or 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
<section data-ng-controller="InstallationsController"> | |
<form name="articleForm" class="form-horizontal col-md-6" role="form" data-ng-submit="articleForm.$valid && create()" novalidate> | |
<div class="form-group"> | |
<label mean-token="'create-title'" class="col-md-3 control-label">Title</label> | |
<div class="col-md-9"> | |
<input type="text" class="form-control" data-ng-model="title" id="title" placeholder="Title" required> | |
</div> | |
</div> | |
<div class="form-group"> | |
<label mean-token="'create-content'" for="content" class="col-md-3 control-label">Content</label> |
This file contains hidden or 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
{ | |
"name": "mean", | |
"description": "MEAN.io: A fullstack javascript platformed powerd by MongoDB, ExpressJS, AngularJS, NodeJS.", | |
"version": "0.3.3", | |
"private": false, | |
"author": "Linnovate <[email protected]>", | |
"contributors": [ | |
{ "name": "Lior Kesos", "mail": "[email protected]" }, | |
{ "name": "Yonatan Ellman", "mail": "[email protected]" }, | |
{ "name": "Ehud Shahak", "mail": "[email protected]" }, |
This file contains hidden or 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
βββ README.md | |
βββ app.js | |
βββ package.json | |
βββ public | |
βΒ Β βββ assets | |
βΒ Β βΒ Β βββ css | |
βΒ Β βΒ Β βΒ Β βββ sonar.css | |
βΒ Β βΒ Β βββ img | |
βΒ Β βΒ Β βββ logo.png | |
βΒ Β βββ controllers |
This file contains hidden or 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
'use strict'; | |
angular.module('mean').controller('ArticlesController', ['$scope', '$stateParams', '$location', 'Global', 'Articles', | |
function($scope, $stateParams, $location, Global, Articles) { | |
$scope.global = Global; | |
$scope.hasAuthorization = function(article) { | |
if (!article || !article.user) return false; | |
return $scope.global.isAdmin || article.user._id === $scope.global.user._id; | |
}; |
This file contains hidden or 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
config | |
βββ assets.json | |
βββ config.js | |
βββ env | |
βΒ Β βββ all.js | |
βΒ Β βββ development.js | |
βΒ Β βββ production.js | |
βΒ Β βββ test.js | |
βββ express.js | |
βββ passport.js |