code
stringlengths
2
1.05M
/** * Plural rules for the om (Oromo, Afaan Oromoo) language * * This plural file is generated from CLDR-DATA * (http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) * using js-simple-plurals and universal-i18n * * @param {number} p * @return {number} 0 - one, 1 - other * * @exam...
require(["mainConfig"], function() { /* loading base requirements */ require(["jquery", "oskari-with-app", "domReady"], /** * ... now we have jQuery and Oskari */ function(jQuery, Oskari) { function getURLParameter(name) { var re = name + '=' + '([...
jQuery( document ).ready(function( $ ) { $('#mc-embedded-subscribe-form').ajaxChimp({ callback: function( resp ){ console.log( resp ); if ( resp.result === 'success') { } } }); });
'use strict'; // Declare app level module which depends on views, and components angular.module('myApp', [ 'ngRoute', 'myApp.home', 'myApp.blog', 'myApp.about', 'myApp.version' ]). config(['$routeProvider', function($routeProvider) { $routeProvider.otherwise({redirectTo: '/home'}); }]);
var classCSF_1_1Zpt_1_1Tales_1_1SimpleEvaluatorSelector = [ [ "SimpleEvaluatorSelector", "classCSF_1_1Zpt_1_1Tales_1_1SimpleEvaluatorSelector.html#a8d2cf7bd6625737d2c7b26427c0d2306", null ], [ "GetEvaluator", "classCSF_1_1Zpt_1_1Tales_1_1SimpleEvaluatorSelector.html#a5dfa9ef15ef22895c1d3e318def93033", null ], ...
var mod = angular.module('stew'); mod.config(['$routeProvider', function($routeProvider) { $routeProvider .when('/admin', { templateUrl: '/static/js/views/admin/admin.html', controller: 'AdminController', resolve: { autenticated: ['token', '$http', function(token, $http) { token.authentica...
#!/usr/bin/env node "use strict"; var prompt = require("prompt"), Packet = require("../lib/packet"), port = require("../lib/port"), file = require("../lib/file"), argv = process.argv.slice(2); if (argv.length > 0) { var brick = file.open(argv[0]); Object.keys(brick.outputs).forEach(function(key) { var inputP...
//just a simple test texture being rendered to a //canvas for now... var Texture = require('gl-texture2d') var triangle = require('a-big-triangle') var xtend = require('xtend') function create(opt) { //grab a test image, rotate it upright var texture = require('baboon-image').transpose(1, 0, 2) //default...
window.onmessage = function() { window.postMessage('Ok'); }
if ('undefined' === typeof process) process = {}; if (!process.EventEmitter) process.EventEmitter = function () {}; var EventEmitter = exports.EventEmitter = process.EventEmitter; var isArray = Array.isArray; // By default EventEmitters will print a warning if more than // 10 listeners are added to it. This is a usef...
dom.div()
editimage.fabricaContexto = { criar: function(stage, painelFerramentas){ var observer = editimage.fabricaObserver.criar(); return new editimage.Contexto(observer, stage, painelFerramentas); } };
// /* // * Package Import // */ // import React from 'react'; // import PropTypes from 'prop-types'; // import { CSSTransitionGroup } from 'react-transition-group'; // import { Route } from 'react-router-dom'; // // // /* // * Local Import // */ // // // /* // * Component // */ // const RouteTransition = ({ compo...
// --------- This code has been automatically generated !!! Wed Jul 22 2015 13:15:44 GMT+0000 (UTC) /** * @module opcua.address_space.types */ var doDebug = false; var assert = require("better-assert"); var util = require("util"); var _ = require("underscore"); var makeNodeId = require("../lib/datamodel/nodeid").mak...
module.exports = function ( karma ) { karma.set({ /** * From where to look for files, starting with the location of this file. */ basePath: '', /** * This is the list of file patterns to load into the browser during testing. */ files: [ //load order matters here {...
var jTTY = (function() { // Takes an options object. The options object currently supports the following options // { // 'enableCommands' : { // 'key' : int || string, // 'commands' : object<function_name, function> // } // } var constructor = function(id, option...
var searchData= [ ['websocket',['websocket',['../namespacefr_1_1bmartel_1_1websocket.html',1,'fr::bmartel']]] ];
var searchData= [ ['password_5fsalt',['PASSWORD_SALT',['../config_8php_8template.html#ac555f45675f5c7f30bdd1c54e441e3f2',1,'config.php.template']]], ['pbkdf2_5fhash_5falgorithm',['PBKDF2_HASH_ALGORITHM',['../password_8php.html#a288b3a49ca71e24e0f8c7fbf851999da',1,'password.php']]], ['pbkdf2_5fhash_5fbyte_5fsize',...
import React, { Component } from 'react' import { View, StyleSheet, Text, Dimensions } from 'react-native' import MapView from 'react-native-maps' import Polyline from '@mapbox/polyline' import { styleZ, color } from '../styles' import Icon from 'react-native-vector-icons/MaterialCommunityIcons' const { width, height ...
import{W as e,s as t,h as i,w as r}from"./index-6985b341.js";import{f as s}from"./browser-fixes-ad0e4ba1.js";export default class extends e{init(){this.props.src=e=>{this.load(e)},this.props.loading=e=>{this.ref&&this.ref!==this.host&&t(this.ref,"loading",e)},super.init()}connected(){[...this.host.querySelectorAll("img...
// @flow /* eslint-env mocha */ // var assert = require('power-assert') // var buildDistanceInWordsLocale = require('./') // describe('sl locale > buildDistanceInWordsLocale', function() { // it('returns an object', function() { // assert(typeof buildDistanceInWordsLocale() === 'object') // }) // it('local...
'use strict'; // // Params // config -> Routey configuration. // // routeConfigPath -> Directory that contains route definitions. // urlRoot -> Route path for route URLs. // verbose -> Enable verbose logging so you can see what is happening. // // app -> Express application object for route setup. // m...
// Strava Segment Comparison Tool // Helper functions // Format json data into HTML table function jsonTable(data){ var table,prop,key,row; if(data.length === 0){ return false; } table = '<table class="table table-striped table-hover">'; table+= '<thead>'; for(prop in data[0]){ // Column Heade...
/** * @public * @constructor */ sosimplist.ElementFactory = function() { var self_ = this; } /** * @public * @param {string} elementType is the type of the item to be created by the factory * @return {element} return the element asked */ sosimplist.ElementFactory.prototype.getElementConfigurati...
// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE 'use strict'; var React = require("react"); var Buffer$AgdaMode = require("../View/Panel/InputMethod/Buffer.bs.js"); var Header = { }; var emitter = React.createContext((function (_ev) { return /* () */0; })); var make = emitter.Provider; var Provid...
/* globals __dirname */ const fs = require('fs'); const path = require('path'); const attachTo = (app, data) => { app.get('/', (req, res) => { return res.redirect('/home'); }); fs.readdirSync(__dirname) .filter((file) => file.includes('.router')) .forEach((file) => { c...
function citeste() { var a=document.getElementById("a").value; var b=document.getElementById("b").value; var c=document.getElementById("c").value; var coef=[a,b,c]; return coef; } //---------------------------------------------------------------------- function calcul_delta(coeficienti) { return coeficienti[...
exports.BLACK = 0x000000 exports.DARK_BROWN = 0x302000 exports.YELLOW = 0xffff00
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.11.2-master-7b91b60 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.whiteframe */ angular.module('material.components.whiteframe', []); })(window, window.angular);
import { extend } from 'flarum/common/extend'; import LinkButton from 'flarum/common/components/LinkButton'; import IndexPage from 'flarum/forum/components/IndexPage'; import DiscussionListState from 'flarum/forum/states/DiscussionListState'; import PrivateComposing from './PrivateComposing'; export default (app) => {...
const config = require('./config.js'); const Chess = require('chess.js').Chess let chess = new Chess() let queenEval = config.queenEval let knightEval = config.knightEval let kingEvalWhite = config.kingEvalWhite let kingEvalBlack = config.kingEvalBlack let rookEvalWhite = config.rookEvalWhite let rookEvalBlack = confi...
var GLSL = {}; export default GLSL; /** Parse uniforms from a JS object, infers types and returns an array of objects with the necessary information to set uniform values on a GL program. Each object in the returned array has the form: { type, method, name, value } type: the GL uniform type, such ...
/** * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v25.0.1 * @link http://www.ag-grid.com/ * @license MIT */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics ...
'use strict'; const _ = require('lodash'); const META_ROBOTS_NO_FOLLOW_NO_INDEX = { name: 'robots', content: 'nofollow,noindex' }; /** * Class Helmetram */ const Helmetram = class Helmetram { constructor () { this.meta = _.clone(Helmetram.defaultValues.meta); } toObject () { return _.defaults(_.pick(...
const { checkBuffer } = require('./helper') const { Usage } = require('../constants') /** * decodes dpt14 * * @param {string} dpt * @param {Buffer} encoded * @return {number} * * @throws {Error} Will throw an error if <encoded> is not a Buffer * @throws {Error} Will throw an error if the byteLength of <encoded...
/* global cy Cypress */ import { editorVisible } from '../support' describe('Gist', () => { const test = Cypress.env('CI') ? it.skip : it test('Should pull text from the first Gist file', () => { cy.visit('/3208813b324d82a9ebd197e4b1c3bae8') editorVisible() cy.contains('Y-Combinator implemented in Ja...
var expect = require('chai').expect, proxyquire = require('proxyquire'); const TEST_DATA = require('./testData') function fakePromise(f) { return { then: cb => f(cb) } } var dataStub = { retrieveEntries: () => fakePromise(cb => cb(TEST_DATA.allEntries.raw)) } var dataTransform = proxyquire('../data/d...
const should = require("should"); const common = require("../common"); const Gimlet = common.gimlet(); describe("Connection", () => { let con = null; let db = null; before((done) => { con = Gimlet.connect("test://"); db = con.handler(); return done(); }); it("should have a .query() method to query the ...
import React from 'react' const Welcome = () => { return ( <section className="anonymous"> <div> <p>Welcome!</p> <p>Login to track vehicle mileage and maintenance</p> </div> </section> ) } export default Welcome
/** * Created by Caleb on 11/21/2014. */ // BASE SETUP // ============================================================================= // call the packages we need var express = require('express'); // call express var _ = require('lodash'); global.inMemDatabase.suppliers = {}; var db = global.inMe...
var bus = require("../index"); bus("642", function(error, data) { if (error != null) { /* if error */ console.log(error); console.log(data); return; } console.log(data); });
var React = require('react'); var RouteHandler = require('react-router').RouteHandler; var App = React.createClass({ render: function () { return ( <div> <h1><%= appname %></h1> <RouteHandler/> </div> ); } }); module.exports = App;
googletag.cmd.push(function () { googletag.defineSlot('/423694368/test_Digital_728x90_3', [728, 90], 'div-gpt-ad-1437711316577-0').addService(googletag.pubads()); googletag.defineSlot('/423694368/test_Digital_300x600', [300, 600], 'div-gpt-ad-1437711316577-1').addService(googletag.pubads()); googletag.de...
"use strict"; const vscode = require("vscode"); class ConfigReader { _readConfig(key, default_) { const val = vscode.workspace.getConfiguration('gitflow').get(key); if (val === undefined) { return default_; } return val; } get deleteBranchOnFinish() { retu...
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
var it = require('it'), assert = require('assert'), helper = require("../../data/oneToOne.helper.js"), patio = require("../../../lib"), comb = require("comb"), Promise = comb.Promise, hitch = comb.hitch; var gender = ["M", "F"]; it.describe("One To One lazy", function (it) { var Works, Em...
/** * @author Olivier Parent * @copyright Copyright © 2015-2016 Artevelde University College Ghent * @license Apache License, Version 2.0 */ ;(function () { 'use strict'; // Module declarations angular.module('app', [ 'ngAnimate', 'ngMaterial', 'ngMessages', 'ngReso...
search_result['2221']=["topic_0000000000000551_props--.html","AgentDatatableDto Properties",""];
'use strict'; angular.module('mgcrea.ngStrap.tooltip', ['mgcrea.ngStrap.core', 'mgcrea.ngStrap.helpers.dimensions']) .provider('$tooltip', function () { var defaults = this.defaults = { animation: 'am-fade', customClass: '', prefixClass: 'tooltip', prefixEvent: 'tooltip', containe...
version https://git-lfs.github.com/spec/v1 oid sha256:13fc7dffeeedee98ae1d13aa2f1e1526a5a3cb57548b87ec4a640f39178f52b4 size 17444
/* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable prefer-template */ const path = require('path'); const fs = require('fs'); const format = require('prettier-eslint'); const upperCamelCase = require('uppercamelcase'); const featherIcons = require('feather-icons/dist/icons.json'); const rootDir =...
var connect, loginRequest, mapDispatchToProps, mapStateToProps; ({connect} = require('react-redux')); ({ loginRequest } = require("../../../redux/actions/auth")); mapStateToProps = function(state) { var user; user = state.collections.user; return { isLoggedIn: user != null, userFirstname: user != null ...
var multer = require('multer'); var fs = require('fs') var path = require('path') var crypto = require('crypto'); var storage = multer.diskStorage({ //folder upload -> public/upload destination: 'public/upload/', filename: function (req, file, cb) { crypto.pseudoRandomBytes(16, function (err, raw) ...
import {foo} from './a_es6.js'; export function bar () { if (Math.random() > 0.5) { foo(); } }
var BasePresenter = function(){ return { baseMethod: function(){ BaseView.renderBase(); }, idMethod: function(param){ BaseView.renderId(param); }, anyMethod: function(param){ BaseView.renderAny(param); }, pageNotFoundMethod: function() { BaseView.renderPageNotFound(); } } }(); va...
////////////////////////////// // salt算法 ////////////////////////////// var crypto = require('crypto'); var md5 = crypto.createHash('md5'); var txt = "123465"; //md5.update(txt); //console.log(md5.digest('hex')); // //md5 = crypto.createHash('md5'); //var salt = "abcdefghijklmnopqrstuvwxyz"; //md5.update(txt+salt); /...
'use strict'; /** * @ngdoc directive * @name Volusion.toolboxCommon.directive:vnBlock * @restrict A * @requires bem * @scope * * @description * * * @usage * @example */ angular.module('Volusion.toolboxCommon') .directive('vnBlock', ['vnBem', function (vnBem) { return { restrict: 'A', controller: ...
var spawn = require('child_process').spawn; var util = require('util'); var _ = require('underscore'); var async = require('async'); var carrier = require('carrier'); var duplex = require('duplexer'); var EventEmitter = require('events').EventEmitter; var Stream = require('stream'); var RequestStream = require('./...
'use strict' const protons = require('protons') /* eslint-disable no-tabs */ const message = ` message Protocols { repeated string protocols = 1; } ` module.exports = protons(message).Protocols
import { expect } from 'chai' import types from '../../../src/constants/ActionTypes' import reducer, { initialState } from '../../../src/reducers/nav' describe('reducers/nav.js', () => { it('should handle `NAV_TOGGLE_MENU_BUTTON` by toggle `isExpanded`', () => { expect(reducer(undefined, { type: types.NAV...
'use strict'; var tv4 = require('tv4'); var formats = require('tv4-formats'); var json = tv4.freshApi(); // generic formats json.addFormat(formats); // custom formats json.addFormat('throwUniqueError', function (data, schema) { return data.table + ': ' + data.property + ', ' + data.value + ' already exists'; });...
/*jslint devel es6 single*/ "use strict"; const height = 960; const width = 960; const l_bound = 90; const r_bound = 180; const svg = d3.select("body") .append("svg") .attr("id", "graphic") .attr("name", "displacement of systolicBP") .attr("height", height) .attr("width", width); const g = svg.append("g") .attr("tr...
import chai, { expect, assert } from 'chai'; // import sinon, { stub } from 'sinon'; import convertCurrency from '../src/modules/convertCurrency'; const mockData = { base: 'EUR', date: '2016-12-30', rates: { AUD: 1.4596, BGN: 1.9558, }, }; describe('App.js', () => { describe('#convertCurrency()', ()...
var dnpFlags = require('./dnpFlags.js') , DataObject = require('./dataObject.js') , dnpi = DNPInterpret module.exports = DNPInterpret; function DNPInterpret() { var err = false , result = '' , doRaw = {} , doDat = {} , trama = [] } DNPInterpret.fieldToHtml = function(name, obj) { if(typeof obj == 'object' && ...
/** * Copyright (C) 2016 yanni4night.com * webpack.config.js * * changelog * 2016-10-25[08:57:17]:revised * * @author yanni4night@gmail.com * @version 0.1.0 * @since 0.1.0 */ 'use strict'; const env = process.env.NODE_ENV; switch (env) { case 'prod': case 'production': module.exports = require('./config/...
/* global $, Plyr, chrome Feature: Change recorded live lecture videos to custom player */ $(document).ready(function () { chrome.storage.sync.get({ recordedlecturesusecustomplayer: false, }, function (items) { if (!items.recordedlecturesusecustomplayer) { return; } ...
import test from 'ava'; import fn from './'; test('screensaver', async t => { await fn(); });
var React = require('react'), BaseComponent = require('./components/BaseComponent'), Login = require('./components/Login'), WikiQuiki = require('./components/WikiQuiki'), userStore = require('./stores/userStore'), userActions = require('./actions/userActions'); class App extends BaseComponent { constructo...
/** * @file Sets the myApp Module. * @author Chelsea Sanders */ (function() { 'use strict'; angular.module('myApp', [ 'myApp.core', 'myApp.topnav', 'myApp.wallet' ]); })();
module.exports = { routes: require('./routes') };
#!/usr/bin/env node const fs = require('../src/util/fs'); const string = require('../src/util/string'); const object = require('../src/util/object'); process.on('unhandledRejection', (reason, promise) => { console.log('Unhandled Rejection at:', promise, 'reason:', reason); // Application specific logging, thr...
/** * Get the utility object in case its needed * @return {object} utility object */ getUtility : function(){ return utility; }
// app.js var app = angular.module('app', []); app.controller('MainController', function($scope) { $scope.mydata = "this is some data, more more more data" })
import React from 'react'; import Pattern from 'react-svg-textures'; import { types, defaultProps } from '@potion/util'; const Provider = WrappedComponent => { const Wrapper = (props, context) => ( <WrappedComponent {...props} components={{ ...defaultProps.components, ...(context.comp...
/** ================================================================================================================ **/ /** * @fileOverview * * @author Matt Hayes <matt@mysterycommand.com> * @version 1.0.0 */ /** =====================================================================================================...
import {createStore} from 'redux'; import reducers from './reducers'; import * as actionTypes from './actions'; export default createStore(reducers); export const actions = actionTypes;
'use strict'; var grunt = require('grunt'); /* ======== A Handy Little Nodeunit Reference ======== https://github.com/caolan/nodeunit Test methods: test.expect(numAssertions) test.done() Test assertions: test.ok(value, [message]) test.equal(actual, expected, [message]) test.notEqual(actua...
(function() { "use strict"; var factory, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor();...
/** Virtual time scheduler used for testing applications_view and libraries built using Reactive Extensions. */ Rx.TestScheduler = (function (__super__) { inherits(TestScheduler, __super__); function baseComparer(x, y) { return x > y ? 1 : (x < y ? -1 : 0); } function TestScheduler() { ...
// Generated by CoffeeScript 1.6.3 (function() { var ASObject, AggregatedStatsPacket, AuthPacket, ConnectPacket, Decoder, Encoder, SummonerNamesPacket, GetSummonerDataPacket, GetTeamById, GetTeamForSummoner, HeartbeatPacket, LoginPacket, LookupPacket, Packet, PlayerStatsPacket, RecentGames, GetAllLeaguesForPlayer, uu...
sb.include('browser.removeSelection'); sb.include('effect'); sb.include('Element.prototype.cssTransition'); /** @Name : sb.widget.sortList @Version: 1.21 11/12/07 12/15/08 @Description: used to make sortable lists @Example: <style type="text/css"> #my_list li{ list-style-type:none; border:1px solid #ACACAC; ...
var en = require('./index.js'), expect = require('expect.js'); describe('ConstantEnum', function () { var subject; var consts = ['MON', 'TUES', 'WEDS']; beforeEach(function () { subject = en.apply(null, consts); }); it('should add a key', function () { consts.forEach(function (...
// # Update Checking Service // // Makes a request to Ghost.org to check if there is a new version of Ghost available. // The service is provided in return for users opting in to anonymous usage data collection. // // Blog owners can opt-out of update checks by setting `privacy: { useUpdateCheck: false }` in their conf...
"use strict" let chai = require('chai'); chai.use(require('chai-as-promised')); let expect = chai.expect; let promiseTools = require('../src'); describe('series', () => { it('should execute multiple functions and return results', () => { let tasks = [ () => Promise.resolve("a"), ()...
/** * @URL https://github.com/csetea/magpieJS * @license MIT */ // TODO check: https://code.google.com/p/crypto-js to include in magpie // and maybe reuse //@deprecated define( [], function() { // private property var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; // priv...
const should = require('should'); const middleware = require('../../../../../../core/server/web/api/v3/content/middleware'); describe('Content Api v3 middleware', function () { it('exports an authenticatePublic middleware', function () { should.exist(middleware.authenticatePublic); }); describe('a...
#!/usr/bin/env node // includes var fs = require('fs'), parser = require('./lib/swiftdoc-parser'), builder = require('./lib/swiftdoc-builder'), execsyncs = require("execsyncs"), path = require('path'); var appRoot = path.join(__dirname, './'); // command-line options var yargs = require('yargs') ...
'use strict'; var Config = function() { var environment = (process.env.ENV || 'dev'); var config = require('./config/' + environment + '/' + environment); var funcs = Object.freeze({ config: config }); return funcs; }; var config = new Config().config; module.exports = config;
var async = require('async') var auth = require('basic-auth') var csv = require('csv') var express = require('express') var fs = require('fs') var logStream = require('logrotate-stream') var moment = require('moment') var morgan = require('morgan') var serveIndex = require('serve-i...
/* * Gather Points that forms our words */ class Point { constructor(pos) { this.pos = `A${pos}`; const {[this.pos]: {w, p}} = Alphabet; this.w = w; this.setOfPoint = p; } get manyPoints() { return this.points.length; } get width() { return this.w; } get height() { return Mat...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Soldier = mongoose.model('Soldier'), _ = require('lodash'); /** * Get the error message from error object */ var getErrorMessage = function(err) { var message = ''; if (err.code) { switch (err.code) { case 11000: case 110...
function Field(width, height, target = '#field') { this.target = target this.rows = height; this.cols = width; this.bwidth = $(target).width() / this.cols - 2*2; this.bheight = $(target).height() / this.rows - 2*2; this._blocks = []; this.count = 0; this.moves_count = 0; // SYSOEV: added t...
/** * @since 2017-04-28 13:40:04 * @author vivaxy * * @see https://leetcode.com/problems/encode-and-decode-tinyurl TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http://tinyurl.com/4e9iAk. Design the encode and de...
export { default as todos } from './todo'; export { default as visibilityFilter } from './visibilityFilter';
// static variables and functions jDiet['trim'] = function (str, charlist) { // Strips whitespace from the beginning and end of a string // // version: 905.1001 // discuss at: http://phpjs.org/functions/trim // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // + improv...
const moment = require('moment') const { GraphQLObjectType, GraphQLInt, GraphQLString } = require('graphql') const StatusPropositionType = require('./statusPropositionType') module.exports = new GraphQLObjectType({ name: 'ProposicaoCompleta', description: '...', fields: () => ({ id: { type: Gra...
/* global google */ import Ember from 'ember'; import ENV from '../config/environment'; let { RSVP } = Ember; export default Ember.Service.extend({ _loaded: false, _promise: null, load() { if (!this._promise) { this._promise = new RSVP.Promise((resolve, reject) => { if (this._loaded) { ...
/** * Created by Trung on 3/29/2016. */ //template helpers Template.textsCell.helpers({ texts: function () { return _.isArray(this) ? this : []; } });
recipes = [ { publisher: 'The Pioneer Woman', f2f_url: 'http://food2fork.com/view/47041', title: 'Pasta Salad with Tomatoes, Zucchini, and Feta', source_url: 'http://thepioneerwoman.com/cooking/2011/03/pasta-salad-with-tomatoes-zucchini-and-feta/', recipe_id: '47041', image_url: 'http://static.foo...
import React, {Component, PropTypes} from 'react' import {runGeoLoc} from 'shared/utils/geoloc-utils' import * as SearchActions from '../actions/SearchActions' import {connect} from 'react-redux' import connectI18n from 'shared/components/addon/connect-i18n' import {Link} from 'react-router' import {isEmpty} from 'loda...