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
| function fzBlogFactory($http, $sce, config) { | |
| function allPosts() { | |
| return httpRequest('posts?filter[category_name]=post'); | |
| } | |
| function postByID(id) { | |
| return httpRequest('posts/' + id); | |
| } | |
| function featuredPosts() { |
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
| var patches = require('./lib/patches') | |
| , BaseApp = require('rendr/shared/app') | |
| , handlebarsHelpers = require('./lib/handlebarsHelpers') | |
| , Polyglot = require('node-polyglot') | |
| , _ = require('underscore'); | |
| /** | |
| * setup constants/globals | |
| */ |
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
| /* | |
| templateManager - Async Handlebars template loader/cacher. | |
| @author Mohan Dere | |
| @version 1.0 | |
| @requires jQuery || zepto, underscore, Handlebars.js | |
| */ | |
| (function() { |
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
| import React, { Component } from 'react'; | |
| import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; | |
| import { Grid, Row, Col, PageHeader } from 'react-bootstrap'; | |
| import './App.css'; | |
| import Home from './components/Home'; | |
| import About from './components/About'; | |
| class App extends Component { |
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
| //Usage | |
| var tplsToLoad = [ | |
| 'tpl/menu-section', | |
| 'tpl/header', | |
| 'tpl/footer' | |
| ]; | |
| window.FilesLoader.load(tplsToLoad, | |
| function () { |
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 Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| import * as ajax from '../../utils/ajax'; | |
| import 'rxjs/add/operator/catch' | |
| import { | |
| Observable | |
| } from 'rxjs/Observable'; | |
| import queryString from 'query-string' | |
| import _ from 'lodash' | |
| import { | |
| PRODUCTS_REQUEST_START, |
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
| import React from 'react'; | |
| import ReactModal from 'react-modal'; | |
| import withModal from './withModal'; | |
| class MyModal extends React.Component { | |
| constructor(props) { | |
| super(props) |
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
| scmAcco.accordion({ | |
| header: "> div > h3", | |
| collapsible: true, | |
| active: false, | |
| heightStyle: "content", | |
| }).sortable({ | |
| update: function(event, ui) { | |
| //On update get new order of elements as an array | |
| var serialized = $(this).sortable("toArray", { |
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
| /*! Namespaced Bootstrap 3.3.7 | |
| * Load Glyphicons Halflings extrnally | |
| * Bootstrap v3.3.7 (http://getbootstrap.com) | |
| * Copyright 2011-2016 Twitter, Inc. | |
| * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) | |
| */ | |
| /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ | |
| /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ | |
| html { | |
| font-family: sans-serif; |
OlderNewer