text stringlengths 7 3.69M |
|---|
(function() {
'use strict';
angular
.module('webHipsterApp')
.controller('MusicaDetailController', MusicaDetailController);
MusicaDetailController.$inject = ['$scope', '$rootScope', '$stateParams', 'previousState', 'entity', 'Musica'];
function MusicaDetailController($scope, $rootScop... |
import FyCheckboxGroup from '../checkbox/src/checkboxGroup';
FyCheckboxGroup.install = function (Vue) {
Vue.component(FyCheckboxGroup.name, FyCheckboxGroup);
}
export default FyCheckboxGroup; |
import React from 'react'
import CardDetail from '../detail/CardDetail'
import '../../css/Cards.css'
const Card = (props) => {
return (
<div className='card-list-container'>
{/* <h1>Cards go here</h1> */}
<div className='card-list'>
{props.cards.map(detail => {
return (
... |
import React from 'react'
import { App } from './App'
React.render(
<div><App /></div>,
document.getElementById('target')
)
|
import React from 'react'
const CalcButton = ({button,onClickHandler}) => {
return (
<div className="calc-button"
id={button.name}
onClick={()=>onClickHandler(button.id)}>
<p>{button.value}</p>
</div>
)
}
export default CalcButton |
'use strict'
const test = require('tap').test
const sinon = require('sinon')
const server = require('../../../server')
const method = require('../../../../lib/methods/base/save')()
var arrow
var connector
var testModel
test('### Start Arrow ###', function (t) {
server()
.then((inst) => {
arrow = inst
... |
import React, { useState, useContext, useEffect, useRef } from 'react';
import Rating from '../utils/Rating';
import letterColors from '../../data/letterColors';
import ProfileContext from '../../context/profile/profileContext';
import ReviewContext from '../../context/review/reviewContext';
const ReviewForm = () => ... |
'use strict';
const Sequelize = require('sequelize');
const {sequelize} = require('../db/sequelize');
const Comment = sequelize.define('Comment', {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true
},
content: {
type: Sequelize.STRING,
all... |
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
// N.B. HTML entities are listed without the leading '&' and trailing ';'
// https://www.freeformatter.com/html... |
define(['require','testlet'], function(require) {
// .target/test
var ____TARGET_TEST___ = (function(module) {
var Runner = require('testlet');
var test = new Runner();
(function() {
test.add('this is a new suite', function() {
return test["do"]('this is a test case', function(next) {
try {
tes... |
export const FILL_LIST_UP = 'FILL LIST_UP';
export const REGISTER_USER = 'REGISTER_USER';
export const LOGIN_USER = 'LOGIN_USER';
export const LOAD_USER = 'USER_LOAD';
export const LOGOUT_USER = 'LOGOUT_USER'; |
import React from 'react';
import { NavLink } from 'react-router-dom';
import home from './../images/home.svg';
import contacts from './../images/contacts.svg';
import favourites from './../images/favourites.svg';
import people from './../images/people.svg';
import companies from './../images/companies.svg';
e... |
var index = 1;
var pics = 7;
var transitionEnd = "TransitionEnd";
var internetexploder = false;
$(document).ready(function() {
if ($.browser.webkit) {
vP = "-webkit-";
transitionEnd = "webkitTransitionEnd";
} else if ($.browser.msie) {
vP = "-ms-";
internetexploder = true;
} else if ($.browser.mozilla) {
vP =... |
import {makeStyles} from "@material-ui/styles";
export const useStyles = makeStyles({
h2: {
width: '100%',
textAlign: 'center',
borderBottom: '1px solid lightgrey',
lineHeight: '0.1em',
margin: '15px 0 20px',
'& span': {
background: '#fff',
p... |
import React, { useState } from 'react';
import "../FormEstilos/addEmpleados.css";
import { getConsecuApi, agregarConsecuApi } from "../../../Api/Seguridad/cosnecutivos";
import { agregarEmpleadoApi } from "../../../Api/empleado";
import { notification } from 'antd';
export default function AddEmpleados() {
cons... |
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'start... |
'use strict';
App.
controller('FichierClasseController',
['$scope','$http','$location' , '$window',
function($scope, $http ,$location, $window, $filter) {
//start
var self = this;
var classList = 'http://localhost:8080/classes/classes';
var getClasse = 'http://localhost:8080/empsi/getClas... |
var TagsFilterMenuView = Backbone.View.extend({
initialize: function (options) {
_.bindAll(this, "render");
this.applicationState = options.applicationState;
this.tags = options.tags;
},
className: "tags-filter-menu",
template: Handlebars.compile($("#tags-filter-menu-template... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import SplitIt from '../utils/splitit'
import AddressSearch from './AddressSearch'
import ViewAddressesPane from './ViewAddressesPane'
import DepositModal from './DepositModal'
import WithdrawModal from './W... |
import React, { Component } from "react";
import { View, Text, StyleSheet } from "react-native";
export default class Rectangle extends Component {
render() {
return <View style={styles.container} />;
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: "red",
width: 50,
height: 5... |
export const state = () => ({
modal: {
active: false,
currentKills: 0
},
isDabbed: true,
points: 0,
pointsPerClick: 1,
pointsPerSecond: 0
});
export const mutations = {
setModalActive (state, value) {
state.modal.active = value;
},
addPointsMutation(state, value) {
let prevValue = s... |
import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators, compose } from 'redux';
import { withAuthentication, withNav } from '../../hoc'
import { Navagation } from '../index.js'
import POICard from './poiCard.js'
import Moth from '../../images/moth.jpg'
import { history, routes } fr... |
// PARSING =============================================================================================================
Parser = {};
Parser._parse_aToB = function (abMap, a, fallback) {
if (a === undefined || a === null) throw new TypeError("undefined or null object passed to parser");
if (typeof a === "string") a =... |
var network_url = 'http://127.0.0.1:8181/controller/nb/v2/neutron/networks';
var network_post_json = {
"network": {
"status": "ACTIVE",
"subnets": [],
"name": "net1",
"router:external": false,
"tenant_id": "9bacb3c5d39d41a79512987f338cf177",
"segments": [
... |
import React from 'react';
import ReactEcharts from 'echarts-for-react';
export default class ComponentOvL4D extends React.Component{
constructor() {
super();
this.state = {
option: (data) => ({
tooltip : {
formatter: "{a} <br/>{b} : {c}%"
},
series: [
... |
/** 모듈 엔트리 파일 */
import utils from './utils.js';
import logger from './logger.js';
import tester from './tester.js';
export default {
utils,
logger,
tester
};
|
const db = require('../models');
module.exports = (app) => {
// get route for getLastWorkout() function to get the last document
app.get('/api/workouts', async (req, res) => {
await db.Workout.find({}).then(workouts => {
res.json(workouts);
})
.catch(err => {
console.log('failed', err);
... |
import React, { Component } from 'react';
import { I18n } from 'i18next';
import './App.css';
class Old_App extends Component{
constructor(prop){
super(prop);
}
render(){
return(
<I18n>
<div>test</div>
</I18n>
);
}
}
|
//Complete the method that takes a boolean value and return a "Yes" string for true, or a "No" string for false.
//long
function boolToWord( bool ){
if (!bool) {
return "No"
} else if (bool) {
return "Yes"
}
}
//short
let boolToWord = bool => !bool ? "No" : "Yes";
|
const mongoose = require('mongoose');
let RatingSchema = mongoose.Schema({
patientId: {
type: String,
ref: 'User'
},
doctorId: {
type: String,
ref: 'User'
},
rating: {
type: Number
},
comment: {type: String},
createdAt: {
type: Number,
default: new Date().getTime()
},
updatedAt: {
type: Numbe... |
function mostrar()
{
// declaracion de variables
let tipo;
let precio;
let marca;
let cantidad;
let fabricante;
let promedioCompra;
let precioAlcoholBarato;
let cantidadAlcoholBarato;
let fabricanteAlcoholBarato;
let tipoMayorCantidad;
let cantidadAlcohol = 0;
let cantidadJabones = 0;
let cantidadBarbijo = 0;
let acu... |
export default {
shapes__container: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'center',
padding: '5px',
boxSizing: 'border-box'
},
shape: {
maxWidth: '100%'
},
square: {
width: '25%'
},
rectangle: {
width: '50%'
},
shape__inner: {
position: 'relative',
... |
var fftw = require('./index');
var test = require('tape');
test('1d dft all ones', function(t) {
t.plan(8);
fftw.dft_1d([1, 1, 1, 1], function(err, result) {
t.equal(result[0].real, 4);
t.equal(result[0].imag, 0);
t.equal(result[1].real, 0);
t.equal(result[1].imag, 0);
t.equal(result[2].real, ... |
import {fetchJson, postOption, getObject, showError} from './common';
import name from '../api/dictionary/name';
const DICTIONARY_URL = '/api/dictionary';
/**
* 功能:批量获取字典
* names:字典名数组
*/
const fetchDictionary = async (names) => {
let json = {returnCode: 0, result: {}};
if (!global.dictionary) {
global.di... |
var exercise = {};
var fs = require('fs');
var request = require('request');
var cheerio = require('cheerio');
exercise.one = function(){
var urls = ["http://student.mit.edu/catalog/m1a.html",
"http://student.mit.edu/catalog/m1b.html",
"http://student.mit.edu/catalog/m1c.html",
'http://st... |
const request = require('request');
const appToken = require('../components/AppToken');
const config = require('../config')
const cache = require('memory-cache');
const uuidv4 = require('uuid/v4')
const log4js = require('log4js');
const logger = log4js.getLogger('default');
/**
* @param {*} req [cliente, folio, toke... |
import React from 'react'
import { HStack } from '@chakra-ui/layout'
import HeaderLink from '../../atoms/HeaderLink'
const NavBarButtons = () => {
return (
<HStack>
<HeaderLink title="About" to="/" exact />
<HeaderLink title="Resume" to="/resume" />
<HeaderLink title="Pr... |
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './components/App'
import Home from './components/Home'
import Signup from './components/auth/Signup'
import Login from './components/auth/Login'
import Polls from './components/polls/Polls'
import AddPoll from './components/poll... |
angular.module("tarefas", ["ngRoute"])
.config(function ($routeProvider) {
$routeProvider.when("/", {
templateUrl: "tarefa.html",
controller: "tarefaCtrl"
});
$routeProvider.otherwise({redirectTo: "/"});
}); |
// /import/aa/aa.js // v0.0 // javier.rey.eu@gmail.com // copyright 2017
// require none
/**
* JAZ boot script.
* Initializes the global aa namespace object.
* Only required element embedded in the hosting SPA document.
*/
(function () { "use strict";
/**
* Initialize JAZ Framework global namespace object.
... |
function buildFLuideSelfNetwork(graph, modules) {
var getGraphVertice = function(idx, coordinates) {
var verticeRepresenation = {"name":"[" + (idx-1) + "]","group":(idx-1), "coordinates":coordinates};
return [verticeRepresenation];
};
var getE = function(from, to) {
return {"source":(from-1),"target":(to-1),... |
const User = require('../models/User');
class UserController {
// I am just using it as an example, please feel free to change it in order to make it work
async signUp(params) {
const { email } = params;
// check if the user name is already occupied
if (await User.hasUser({ email })) {... |
import React, { Component } from 'react';
import './App.css';
import Tesseract from 'tesseract.js';
class App extends Component {
constructor(props){
super(props);
this.state={
uploads:[],
patterns:[],
documents:[]
};
}
handleChange = (event) =>{
//console.log(event.target.fil... |
// @flow
import React, { Component } from 'react';
import { SafeAreaView } from 'react-native';
import GradientBackground from '../../elements/GradientBackground';
import Header from '../../elements/Header';
import styled from 'styled-components/native';
import Icon from '../../elements/Icon';
import { LOGO_HELPER } fr... |
/*
* Copyright © 2016 I.B.M. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the “License”);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
// @flow
import * as React from 'react';
import classNames from 'classnames';
import { getUnhandledProps, defaultProps, prefix } from './utils';
type ItemDataType = {
label: any,
value: any
};
type Props = {
classPrefix?: string,
itemData: ItemDataType,
onSelect?: (itemData: ItemDataType, event: Synthetic... |
/**
* @author: Arie M. Prasetyo (2020)
*/
import Links from './Links';
import Details from './Details';
export {
Links,
Details
}; |
//04 - Crie uma api que receba o objeto abaixo, retorne a propriedade last_name e retorne o tamanho do objeto
//{
// name: "Fulano",
// last_name: "Ciclano",
// birthday: "01/01/1990",
// age: 30,
// department: "Software Engineering"
// }
const express = require('express')
const app = express()
app.use... |
import { SET_EXPLOITATION_TYPES, SET_ERROR } from "../actions/exploitationTypes";
const exploitationTypesReducer = (state = { exploitationTypes: [], status: 0 }, action = {}) => {
switch (action.type) {
case SET_EXPLOITATION_TYPES :
return {
...state,
exploitat... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { makeStyles, useTheme } from '@material-ui/styles';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
import { Row, Col } from '../../../../components/grid.... |
const mongoose = require('mongoose');
const BotsSchema = mongoose.Schema({
userName: {
type: String,
},
gender: {
type: String
},
isBot: {
type: Boolean,
default: false
},
botType:{
type: String
},
botAvailability:{
type: String,
... |
import {
CREATE_FAIL,
CREATE_SUCCESS,
LIST_FAIL,
LIST_SUCCESS,
CLEAR_CATEGORY_ERRORS,
CATEGORY_DELETED,
CATEGORY_DELETE_FAIL,
CLEAR_CATEGORY_MESSAGE,
} from '../types'
export default (state, action) => {
switch (action.type) {
case CREATE_SUCCESS:
return {
...state,
category... |
// Write a program to check whether a given number is an ugly number.
//
// Ugly numbers are positive numbers whose prime factors only include
// 2, 3, 5. For example, 6, 8 are ugly while 14 is not ugly since it
// includes another prime factor 7.
//
// Note that 1 is typically treated as an ugly number.
/**
* @param... |
// import {Character} from '../../../game/character/character.js'
export class SpriteGrid {
constructor(state) {
this.state = state
}
load(sprite) {
this.state.load.image(sprite + '-image', `/character/sprites/${sprite}.png`); // Load sprite as an image so we can display the entire thing
}
}
|
var mongoose = require("mongoose")
var Schema = mongoose.Schema;
var UserSchema = new mongoose.Schema({
Name:{type:String, required: true}
},{timestamps:true})
var User = mongoose.model("User", UserSchema)
var PollsSchema = new mongoose.Schema({
UserName:{type:String, required: true},
Question: {type:Str... |
function get_users_by_channel(id){
var url = '/index.php/Admin/ChannelUser/ajax_get_users_by_channel?channel_id='+id;
var data = {};
var fun = function(data){
if(data.status == 'success'){
if(data.msg != ''){
//alertbox(data);
layer.alert('<i cl... |
/**
* @param {number} n
* @return {string[]}
*/
var generateParenthesis = function(n) {
var l = n, r = n;
var results = [];
recurse(l, r, n, '', results);
return results;
};
function recurse(l, r, n, temp, results) {
if (l === 0 && r === 0) {
results.push(temp);
return;
}
if (l !== 0 && r !== ... |
/*
*
* 文件名称:comboFortune.js
* 摘 要:組合商品修改和新增 抽獎頁面
*
*/
var PRODUCT_ID = '';
function saveTemp() {
var mask;
if (!mask) {
mask = new Ext.LoadMask(Ext.getBody(), { msg: WAIT });
}
mask.show();
if (!save()) {
return;
}
if (PRODUCT_ID == '') {
Ext.Ajax.req... |
/**
* 화면 초기화 - 화면 로드시 자동 호출 됨
*/
function _Initialize() {
// 단위화면에서 사용될 일반 전역 변수 정의
// $NC.setGlobalVar({ });
// 추가 조회조건 사용
// 상단그리드 초기화
grdMasterInitialize();
// 하단그리드 초기화
grdDetailInitialize();
$NC.setInitDatePicker("#dtpQOutbound_Date1");
$NC.setInitDatePicker("#dtpQOutbound_Dat... |
import React, { Component } from "react";
import { withFirebase } from "../Firebase";
import "./LandDetails.css";
// import Map from "../Map";
import styled from "styled-components";
import ReactModal from "react-modal";
import { Link } from "react-router-dom";
const MainDiv = styled.div`
padding: 1.5em;
height: a... |
module.exports = function(api) {
api.cache(true);
return {
presets: ['@vue/app'],
plugins: ['@babel/plugin-proposal-private-methods'],
sourceType: 'unambiguous',
};
};
|
'use strict';
describe('Directive: tags', function () {
beforeEach(module('plfeApp'));
var element;
it('should make hidden element visible', inject(function ($rootScope, $compile) {
element = angular.element('<tags></tags>');
element = $compile(element)($rootScope);
expect(element.text()).toBe('thi... |
import applicationColors from "./colors";
// ----- HERO -----
const letterRotate = {
transform: "rotate(15deg)",
color: "#8eaedd",
display: "inline-block",
margin: "0 1px",
fontWeight: "bold",
};
const videoBackground = {
objectFit: "cover",
width: "100%",
height: "100vh",
position: "fixed",
top:... |
class Sprite
{
constructor(x, y)
{
// The starting point of the Sprite on the canvas in x and y coordinates.
this.x = x;
this.y = y;
// store image-related data
this.texture = null;
// starting angle, measured in degrees
this.angle = 0;
// size to draw texture (width, height)
this.w = 32;
this.... |
import ENV from '../config/environment';
import Configuration from '@upfluence/ember-upf-utils/configuration';
export default {
name: 'ember-upf-utils',
initialize: function (/*registry*/) {
if (Configuration.__initialized__) return;
const config = ENV['ember-upf-utils'] || {};
Configuration.load(conf... |
// 核心模块就是一个固定标识
// 如果写错,就无法加载
var os = require('os');
// 输出CPU信息
console.log(os.cpus()) |
(function ($) {
$( document ).ready(function() {
$("#handheld-btn").click(function() {
$(this).toggleClass("active");
if ($("#handheld-btn").hasClass("closed")) {
$(this).removeClass("closed");
$(this).addClass("open");
$("#page-wrap").animate({
left: '70%'
}, 200);
} else if ($("#handheld-... |
const { getDataFromAPI } = require('../helpers/databaseEngine');
const moment = require('moment');
const { Record } = require('../schemas/Record');
const ServerErrors = require('../helpers/ServerErrors');
async function main(now) {
try {
const data = await getDataFromAPI();
await createSiteRecord(repackage(d... |
import React, { Component } from "react";
import { initializeHost } from "../Host/Host.js";
import "./StartScreen.css";
export default class StartScreen extends Component {
constructor(props) {
super(props);
this.state = {
setParam: props.setParam,
gameCodeInput: "",
};
}
setRoleHost = () => {
initial... |
/**
* Containers are aware of Redux, Router, etc.
* They are tightly coupled to the app ("smart components").
* See http://redux.js.org/docs/basics/UsageWithReact.html
*/
export { default as Root } from './root';
export { default as App } from './app';
export { default as TopBar } from './topBar';
export { default ... |
// 引用 Express 與 Express 路由器
const express = require('express')
const router = express.Router()
// 引用 Todo model
const Restaurant = require('../../models/restaurant')
//I.View all restaurant
router.get('/', (req, res) => {
Restaurant.find() // 取出 Todo model 裡的所有資料
.lean() // 把 Mongoose 的 Model 物件轉換成乾淨的 JavaS... |
export default (width, height, numx, numy) => {
const canvas = document.createElement("canvas")
canvas.width = width * numx
canvas.height = height * numy
return canvas
}
|
import React, { Component } from 'react'
import { socket, feathersClient } from '../../lib/feathersClient'
import Loader from '../Loader'
import { Link } from 'react-router-dom'
import Milestone from '../Milestone'
import loadAndWatchFeatherJSResource from '../../lib/loadAndWatchFeatherJSResource'
import GoBackButton f... |
const path = require ('path');
const webpack = require('webpack');
const MiniCssExtractPlugin = require ('mini-css-extract-plugin');
module.export = {
devServer:{
contentBase: path.resolve(__dirname,'dist'),
compress:true,
publicPath: 'dist',
writeToDisk:true
},
entry: '.src/... |
import React, { Component } from 'react';
import './../App.css';
class Footer extends Component {
render() {
return(
<footer className="footer">
<div className="container text-center">
<ul className="footer-links">
<li>
<a ... |
import React, { Component } from 'react'
class Filter extends Component {
filter = (event) => {
if(this.props.content.length > 0){
let updatedList = this.props.content.filter( item => {
const title = (item.title) ? item.title : item.notificationDesc
... |
class Metrics {
constructor(){
this.name = '';
this.communication = 0;
this.speed = 0;
this.quality = 0;
this.project = 0;
this.task = 0;
this.timestamp = 0;
this.skills_used = [];
}
setName(name){
this.name = name;
}
setSkillsU... |
/**
* @param {string} haystack
* @param {string} needle
* @return {number}
*/
var strStr = function(haystack, needle) {
if (!haystack && !needle || !needle) return 0;
const split = haystack.split(needle);
if (split.length > 1) {
return split[0].length
} else {
return -1
}
}; |
var translationsENUS= {
// General purpose strings.
USERNAME: 'שם משתמש',
EMAIL: 'כתובת דוא"ל',
FULLNAME: 'שם מלא',
ADDRESS: 'כתובת',
PASSED_AS_INTERPOLATION: 'Anfänger! Ich bin interpoliert!',
PASSWORD: 'סיסמה',
PASSWORD2: 'סיסמה שוב',
// Languages
LANG_EN: 'אנגלית',
LANG_H... |
var app = angular.module('exercicio', []);
app.controller('exemplo', function($scope) {
$scope.pokemon = {
nome : "pikachu",
cor : "amarelo",
tipo : "eletrico"
}
});
|
import React, { Component } from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
// REDUX
import { Provider } from 'react-redux';
import { createStore, combineReducers } from 'redux';
import './App.css';
import './animate.css';
import NavBar from './components/Navbar';
import Home from './compon... |
/*jslint nomen: true, debug: true, evil: true, vars: true, browser: true,
devel: true */
/*global Backbone: true, Editorial: true */
var EditorialesCollection = Backbone.Collection.extend({
model: Editorial,
url: '/dashboard/editoriales',
baseUrl: '/dashboard/editoriales',
current: null,
select:... |
/**
* Created by Sahil Makhijani on 4/20/2017.
*/
$(document).ready(function () {
var url = "https://southernct-443-robots-api.herokuapp.com/api/robots/";
var location = window.location.href;
// Add robot
$("#newForm").submit(function (event) {
event.preventDefault();
var form = {name:... |
/**
* Created by admin on 12/9/2020.
*/
var weigthElement=document.getElementById('weigth');
var heigthElement=document.getElementById('heigth');
var resultElement=document.getElementById('result');
function bmi(){
var bmi=parseFloat(weigthElement.value)/(parseFloat(heigthElement.value) *2);
console.log(bmi);... |
class Menu {
constructor(menu){
this.menuButton = menu
menuButton.addEventListener('click', () => this.toggleMenu())
this.menuContent = document.querySelector('.menu')
}
toggleMenu = () => {
this.menuContent.classList.toggle('menu--open');
}
}
const menuButton = document.que... |
var events = [
'app.record.detail.show',
'app.record.edit.submit',
'app.record.edit.show'
]
kintone.events.on(events, function(event) {
var record = event.record;
var client_rank = record['製番']['value'];
var query = '顧客製番="' + client_rank+'"';
query = encodeURIComponent(query);
var appUrl = 'htt... |
/* This is the OpenEyes Host */
var jigsaw = require('../lib/jigsaw.js');
var routeConfig = {
"name" : "testing.OpenEyes",
"port" : "5000",
"routes" : [{
"service" : "clinical.documents.openehr",
"description" : "Testing async calls between blackpear and OpenEyes",
"route" : "openeyes/testin... |
//http://blog.rangle.io/angular-gulp-bestpractices/
//http://macr.ae/article/splitting-gulpfile-multiple-files.html
//https://css-tricks.com/gulp-for-beginners/
/**
@note ...
*/
var
gulp = require('gulp'),
//gulp.task('default', function() {
// // place code for your default task here
//})
ru... |
(function () {
'use strict';
const es = function (sel) {
return document.querySelectorAll(sel)
}
const e = function (sel) {
return document.querySelector(sel)
}
const log = console.log.bind(console)
const tool = function () {
return {
setFun(ele, sty) {... |
/*
dynamic api like: 'users/:id'
we can easily find out using -> req.params.id
*/
const express = require('express');
const app = express();
const users = [
{name:'Shakil Babu', work:"React developer", destiny:'JavaScript Engineer', id: 1},
{name:'Torikus Sadik Raihan', work:"Games developer", destiny:'C++ En... |
exports.up = function(knex) {
return knex.schema.createTable('activitys', function (table) {
table.string('activity_id').primary();
table.string('name',25).notNullable();
table.string('type').notNullable();
table.string('priority').notNullable();
table.string('description',120);
... |
var app = angular.module('itemAddTab', ['toastr']);
app.controller('itemAddTabCtrl', function($scope, itemSer,$stateParams,$state,toastr){
$scope.showed=true
// var infoData ={id: $stateParams.id};
// //获取ID
// itemSer.itemTableId(infoData).then(function(response){
// if(response.data.code== 0){
... |
/**
* HOME CONTROLLER
*/
'use strict';
// environment variables
const { NODE_ENV, API_URL, HOST } = process.env; // grab environment variables
const ENV = { NODE_ENV, API_URL, HOST }; // store environment variables in ENV variable
module.exports = {
route, // specify the route
home
}
// the route for this pag... |
export default [
{
title: 'The Colors',
artist: 'Pablo Picasso',
releaseInfo: '1909 Spanish Records',
albumCover: '/assets/images/album_covers/01.jpg',
slug: 'the-colors',
songs: [
{ title: 'Blue', duration: '161.71', audioSrc: '/assets/music/blue.mp3' },
{ title: 'Green', duration: '103.96', a... |
import { validateOptimizationGoal, OptimizationGoalMapping } from '../optimizationGoalValidation';
it('Optimization Goal Validation - valid', () => {
expect.assertions(2);
const testTrue = require('../fixtures/optimizationGoal/optimizationGoal.test.true');
const response = validateOptimizationGoal(testTrue.val... |
var searchData=
[
['alloc',['alloc',['../matrix_8c.html#a3ac9e388bc525dbb12c320cff6a497ab',1,'alloc(int nrow, int ncol): matrix.c'],['../matrix_8h.html#a54d8972d2954f77a27e33f0baa3830c1',1,'alloc(int, int): matrix.c']]]
];
|
import React,{Component} from "react";
const scaleNames = {
c: 'Celsius',
f: 'Fahrenheit'
};
class TemperatureInput extends Component{
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
}
handleChange(e) {
this.props.onTemperatureChange(e.target.value);
}
render() {
... |
import React, { useState, useEffect } from "react"
import styled from "styled-components"
import { navigate } from "gatsby"
import { ElementContainer } from "../../styles/Containers"
import { FormButton } from "../../styles/Buttons"
import TextInput from "../Shared/Inputs/TextInput"
import TextArea from "../Shared/Inp... |
/**
*
* ProductsDetail
*
* Products.Detail page content scripts. Initialized from scripts.js file.
*
*
*/
class ProductsDetail {
constructor() {
// Initialization of the page plugins
/*
<script src="js/vendor/dropzone.min.js"></script>
* */
if (jQuery().select2) {
this._initSelect2()... |
import React, {Component} from 'react';
import CanvasDraw from 'react-canvas-draw';
import './SketchStyle.css';
import Typography from "@material-ui/core/Typography";
import Tooltip from "@material-ui/core/Tooltip/Tooltip";
import withStyles from "@material-ui/core/styles/withStyles";
import createMuiTheme from "@mater... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.