text stringlengths 7 3.69M |
|---|
import React, { Component } from "react";
import styled from "styled-components";
const Form = styled.form`
display: flex;
font-family: "Dosis", sans-serif;
justify-content: center;
background: #d84c73;
margin: 10px 10px 0 10px;
padding: 10px 10px 0 10px;
color: #ffffff;
font-weight: 600;
font-size: ... |
import background from '../assets/1-playBaby.png';
import BackgroundManager from '../js/managers/background';
import DialogManager from '../js/managers/dialog';
import State from '../js/managers/state';
import nextNode from "./0-stayWithNoFace";
const text1 = 'Salut, je suis le bébé de Yubaba. J\'ai ton médicament. S... |
import React from "react";
import {
Button,
Card,
FormControlLabel,
FormControl,
Collapse,
Chip as MuiChip,
Tooltip,
TextField
} from "@mui/material";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import styled from "styled-components";
import { MainContext } from "../../App.js";
c... |
var Q = require("q");
var start = Date.now();
function getValue() {
var value = Math.random() * 5000;
console.log("getValue will return", value);
return Q.delay(value)
.then(function() {
if (Math.round(value) % 8) return value;
console.log("getValue will throw error");
... |
const debug = require('debug')('messengerFunctions')
const request = require('request')
const config = require('../config')
debug('Startup: Loading in MESSENGERFUNCTIONS')
function sendGenericMessage(recipientId, messageText) {
// To be expanded in later sections
}
function sendTextMessage(recipientId, message... |
var PixelController = (function() {
var drawModel = DrawModel(JSON_RPC_URL);
var currentPaintBuffer = null;
function strokeWithBrush(layer, brush, parts) {
for (var i = 0; i < 5; i++) {
layer.paintWithBrush(MAX_ZOOM - i, brush, parts);
}
}
return {
clearAll: function(map) {
drawModel.clearAll()(fun... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsFormatTextdirectionRToL = {
name: 'format_textdirection_r_to_l',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/></svg>`
};
|
var Word = require("./word.js");
var inquirer = require("./node_modules/inquirer");
var ranWord = require("./node_modules/random-words")
// Global Variables
var numberOfGuesses;
var currentWord;
var newWord;
// Testing initial functionality //
// var testGuess = "r";
// var testLetter = newWord.guessLetter(testGu... |
TeamProfiles = new Meteor.Collection("teamProfiles");
TeamProfileSortOrder = new Meteor.Collection("teamProfileSortOrder");
TeamProfiles.attachSchema(new SimpleSchema({
name: {
type: String
},
photoUrl: {
type: String
},
bio: {
type: String,
autoform: {
afFieldInput: {
rows: 6
... |
const mongoose = require("mongoose");
const { Schema } = mongoose;
const schema = new Schema(
{
matchId: { type: Number, required: true },
serverId: { type: String, required: true },
matchType: { type: String, required: true },
matchVersion: { type: String, required: true },
matchMode: { type: S... |
app.controller('ScoreController',['$scope',function($scope){
$scope.scores = [
{id:2017010101,name:'周杰伦',sex:'男',age:39,hostel:'203',address:'河北邯郸',phone:1234567890,teacher:'李荣浩',class:'四年级'},
{id:2017010102,name:'周杰伦',sex:'男',age:39,hostel:'203',address:'河北邯郸',phone:1234567890,teacher:'李荣浩',class:'四年级'... |
/*jshint globalstrict:false, strict:false */
/* global getOptions, assertEqual, assertFalse, assertTrue */
////////////////////////////////////////////////////////////////////////////////
/// @brief test for security-related server options
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2012 triagens GmbH, Col... |
/**
* Copyright IBM Corp. 2016, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { FormItem, NumberInput } from 'carbon-components-react';
export default {
title: 'FormItem',
};
export... |
import React, { useEffect } from 'react';
import { FooterThree, HeaderSix, Wrapper } from '../../layout';
import { animationCreate } from '../../utils/utils';
import Breadcrumb from '../common/breadcrumb/breadcrumb';
import AboutContact from './about-contact';
import AboutMeArea from './about-me-area';
import Experienc... |
import styled from 'styled-components'
import look from '@a/images/vegetables/look.png'
import light from '@a/images/vegetables/look-light.png'
import comment from '@a/images/vegetables/comment.png'
import vegetables from '@a/images/vegetables/vegetables.png'
const LookAndComment = styled.div`
display:${... |
import * as constants from './constants';
export function getTopStories() {
return {
type: constants.TOP_STORIES_REQUEST,
};
}
export function topStoriesSuccess(ids) {
return {
type: constants.TOP_STORIES_SUCCESS,
payload: {
ids,
},
};
}
export function topStoriesFailure(message, error)... |
import { schema } from 'normalizr';
export const posts = new schema.Entity('posts');
export const arrayOfPosts = new schema.Array(posts);
export const users = new schema.Entity('users');
export const arrayOfUsers = new schema.Array(users);
export const comments = new schema.Entity('comments');
export const arrayOfCo... |
//TODO: create event listener for cardList
//TODO: create event listener for add card button and prevent default. add card to list
//TODO: add event listener for delete button and send JSON obj with id through delete request
document.addEventListener('DOMContentLoaded',function(){
var table = document.getElement... |
import React from 'react';
import FormInput from './FormInput';
export default {
title: 'Remote/FormInput',
component: FormInput,
};
const Template = (args) => <FormInput {...args} />;
export const DefaultFormInput = Template.bind({});
DefaultFormInput.args = {
label: 'Name',
placeholder: 'eg: Jane Doe',
... |
import React, { useState } from 'react';
import './About.css';
import texts from './../../helper/texts';
function About() {
// Declare a new state variable, which we'll call "count"
const [count, setCount] = useState(0);
return (
<div>
<div className='about'>
<h3>About</h3>
<p>{texts.a... |
/**
功能: js 解析|缩小|压缩|美化 工具
教程:
https://github.com/mishoo/UglifyJS2#api-reference
http://lisperator.net/uglifyjs/parser
UglifyJS.minify(code, options)
code: 源js代码
options: {
warnings:
}
*/
var UglifyJS = require('uglify-js')
var options = {
warnings: false | true | 'verbose', //默认false,true时得到result.wa... |
var userId;
//Access user Doc
var userRef;
//Initialize array that contains resources the user has accessed
var accessedResources = [];
var user = firebase.auth().currentUser;
var name, email, photoUrl, uid, emailVerified;
var openness, conscientiousness, extroversion, agreeableness, neuroticism;
var npercentile, eperc... |
import React from "react";
import "./ChatMessage.css";
import SentMessage from "./SentMessage";
import ReceivedMessage from "./ReceivedMessage";
// keep this in chatmessage file snd create two subfiles with above
function ChatMessage(props) {
if (props.messageType === "sent") {
return <SentMessage message={prop... |
angular.module("ngApp.security", []); |
/**
* Created by Hild Franck on 8/12/2015.
*/
var loki = require('lokijs');
var enemies = require('../entities/enemies.js');
var attacks = require('../entities/attacks.js');
var players = require('../entities/players.js');
var EventEmitter = require('events').EventEmitter;
module.exports = new EventEmitter();
var... |
import React, { useState } from 'react';
import { Field, Form, Formik } from 'formik';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faUser } from '@fortawesome/free-regular-svg-icons';
import {
faCheck,
faPortrait,
faSignature,
faUpload,
} from '@fortawesome/free-solid-svg-icons';
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
const SendInBlue = require("sendinblue-api");
const emailExistence = require("email-existence");
const config_1 = require("../config");
class MailHelper {
static sendMailAdvanced(fromData, toData, subject, html) {... |
import React from 'react'
import Link from './Link'
import Icon from './Icon'
import QriLogo from './QriLogo'
import { trackGoal } from '../utils/analytics'
const Footer = () => {
const fireAnalyticsEvent = () => {
// home-click-footer-link event
trackGoal('L6ZTBPVH', 0)
}
return (
<div className='... |
/**
Integrated tests for ArrayUtilities
@author laifrank2002
@date 2020-01-02
*/
var TestArrayUtilities = (
function()
{
Engine.log("Adding tests for ArrayUtilities...");
/*
Tests the function ArrayUtilities.removeElement(array, element) by using a test array with values, then checking if the element c... |
import React from "react";
import SearchBar from "./component/SearchBar";
import unsplash from "./api/unsplash";
import ImageList from "./component/ImageList";
import "./App.css";
class App extends React.Component {
state = { images: [], selectedImage: null };
componentDidMount() {
this.onSearchSubmit("dog")... |
document.addEventListener("load", setTimeout(function(){
document.querySelector(".cover").style.right = "100%"
}, 1000))
// document.querySelector("#mybtn").addEventListener("click", function(){
// document.querySelector(".cover").style.right = "100%"
// })
btns = document.querySelectorAll(".btn")
for(let i=0... |
function kaliTerusRekursif(angka) {
// you can only write your code here!
var newStr = angka.toString()
var kalipertama = 1
for (var i = 0; i < newStr.length; i++){
// console.log ( Number(newStr[i]))
kalipertama*=Number(newStr[i])
}
// console.log (kalipertama)
if (newSt... |
const Database = require('better-sqlite3');
const db = {
verbose:console.log,
path:'../database/memory.sqlite3',
getDataBase(){
return new Database(this.path,{verbose: this.verbose});
}
};
module.exports = db; |
// Copyright 2012 Dmitry Monin. 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 applica... |
import React, { Component } from 'react'
import axios from 'axios'
import './style.css'
import { base_url } from '../../../assets/env'
class Profil extends Component {
state = {
step: 'Coordonnées',
info: {
gender: 'female'
},
education: {
degree: 'Licence'
},
assos: {
boar... |
function create () {
game.physics.startSystem(Phaser.Physics.ARCADE);
//autoalign the game stage
game.scale.pageAlignHorizontally = true;
game.scale.pageAlignVertically = true;
game.scale.setScreenSize(true);
// Initialize player
player = game.add.sprite(initialPlayerPosition, 940, 'ship');
player.scal... |
// const bigInt = 1234567890123456789012345678901234567890n;
// console.log(bigInt);
let height = null;
let width = null;
let bigInt=1234567n;
let area = (height ?? 100) * (width ?? 50);
console.log(area);
let a = "1";
console.log(typeof(+a)); |
import React, { Component } from 'react';
import TaskList from './components/TaskList';
import Header from './components/Header'
import { BrowserRouter, Route } from 'react-router-dom';
import './App.css';
class App extends Component {
constructor(props) {
super(props)
this.state = {
tasks: [{title: '... |
// Generated by CoffeeScript 1.9.2
(function() {
var app;
app = angular.module('hutCrawler', ['ngRoute']);
app.config([
'$routeProvider', function($routeProvider) {
return $routeProvider.when('/huts', {
templateUrl: 'views/huts'
}).when('/changelog', {
templateUrl: 'views/changel... |
// @flow
import React from 'react';
import { Global, css } from '@emotion/core';
import emotionNormalize from 'emotion-normalize';
import { ThemeProvider } from 'emotion-theming';
import Main from 'components/main.js';
import GDPR from 'components/gdpr.js';
import type { Node } from 'react';
type Colors = $ReadOnly<... |
var logoutBtn, settingsBtn, startBtn;
function init() {
var url = document.location.href, get;
get = url.split('?');
get = get[1].split('&');
get = get[0].split('=');
//document.getElementById('welcome').innerHTML = "Signed in as " + get[1];
$.ajax({
type: 'GET',
url: "http://gmfleet.azurewebsites.ne... |
/**
* Created by Huang, Fuguo (aka ken) on 16/08/2017.
*/
const shared_config = require(process.env.SHARED_CONFIG_PATH);
function WebSocketService(server) {
const wsServer = require('socket.io')(server);
// Remote Procedure Call Service
const rpcHandler = require('./Services/RemoteProcedureCallWebSocketService... |
import { expect } from 'chai';
import { addNotifications, removeNotifications } from './notifications';
import * as actionTypes from '../constants/actionTypes';
describe('notifications actions', () => {
it('addNotifications action', () => {
const data = ['a', 'b', 'c'];
const action = addNotifications(data);... |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "27b6ef6da1d4450cce0d84eb46ae9513",
"url": "/index.html"
},
{
"revision": "c22333d0dd125413e839",
"url": "/static/css/2.1028dc60.chunk.css"
},
{
"revision": "1924d94e831b0632b2ba",
"url": "/static/css/main... |
'use strict';
$(function () {
console.log("jquery jestem")
/* $.ajax({
url:"http://echo.jsontest.com/userId/108/userName/Akademia108/userURL/akademia108.pl",
dataType:"json",
success: function(resultJSON){
console.log(resultJSON)
},
error: function(msg) {
console.log(msg);
}
});*/... |
'use strict';
var app = app || {};
(function(module) {
function Article(rawDataObj) {
/* REVIEW: In Lab 8, we explored a lot of new functionality going on here. Let's re-examine the concept of context.
Normally, "this" inside of a constructor function refers to the newly instantiated object.
However, in the fun... |
function addEventlistener(node,type,handle){
if(node){
if(node.addEventlistener){
node.addEventListener(type,handle);
}
else if(node.attachEvent){
node["e"+type+handle]=handle;
node[type+handle]=function(){
node["e"+type+handle](window.event);
};
node.attachEvent("on"... |
/**
* Created by Administrator on 2018/1/14 0014.
*/
$(function () {
var page = 1;
var pageSize = 5;
function render() {
$.ajax({
type: "get",
url: "/product/queryProductDetailList",
data: {
page: page,
pageSize: pageSize
},
success: function (info) {
... |
const {
body,
validationResult,
param,
header,
} = require("express-validator");
const ErrorHelper = require("./error-helper");
const loginValidationRules = () => {
return [
// username must not be empty
body("username")
.notEmpty()
.withMessage("Not Allowed to be empty.")
.exists()... |
var new_person_list = new Array();
var new_person_id_list = new Array();
for (var i = 0; i < person.length; ++i) {
if (new_person_id_list.indexOf(person[i].id) < 0) {
new_person_id_list.push(person[i].id);
new_person_list.push(person[i]);
}
}
person = new_person_list;
var map_id_list={};
for (i ... |
var namespacede =
[
[ "telekom", "namespacede_1_1telekom.html", "namespacede_1_1telekom" ]
]; |
// match.js
//
// Description: Get a list of similar users
// in order to
//
const similarity = require('../core/similarity.js')
const match = (items, you, n = 3, distanceFormula) => {
// List of users to be compared
const users = Object.keys(items)
// Exclude yourself
const others = users.filter(user => use... |
import React from "react";
import ReactDOM from "react-dom";
import Navitab from "./navitab";
import "./index.css";
const App = () => {
return <Navitab />;
};
ReactDOM.render(<App />, document.getElementById("root"));
|
const most = require("most");
const fetch = require("node-fetch");
const fetchJson = async url => fetch(url).then(res => res.json());
const fetchCurrentTasks = async (managerUrl, serviceName) =>
fetchJson(
`${managerUrl}/tasks?filters={"service":["${serviceName}"],"desired-state":["ready","running"]}`
);
con... |
import React, { useRef, useEffect } from "react";
import { useSelector } from "react-redux";
const LocalVideoPreview = () => {
const localVideoRef = useRef();
const { localStream } = useSelector((state) => state.call);
useEffect(() => {
if (localStream && localVideoRef && localVideoRef.current) {
local... |
import React, { Component } from 'react';
import Button from '@material-ui/core/Button';
import './study.css';
class Study extends Component{
render(){
return (
<div id = "study_container" >
<div id = "study_text" style={{marginTop:"8%"}}>
<a href="https://docs.googl... |
import React, { Component } from 'react'
import { fetchRecentPosts } from '../utils/fetchPosts'
import Timer from './Timer'
import moment from 'moment'
export default class RecentPost extends Component {
constructor(props) {
super(props)
this.state = {
recentPost: null
}
}
componentDidMount = a... |
import React, {Component} from 'react';
import './Filter.css';
class Filter extends Component {
dropdownFilter = () => {
document.querySelector(".dropdown").style.display === "block"
? document.querySelector(".dropdown").style.display = "none"
: document.querySelector(".dropdown").style.display = "block"... |
/*!
* Based on Grayscale Bootstrap Theme (http://startbootstrap.com)
* 2015-16 Kajetan Krykwiński
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
$(window).scroll(function()
{
if ($("#con-head").offset().top > 50)
{
$("#con-head").addClass("... |
(function () {
'use strict';
VenuuDashboard.VenueIndexController = Ember.ArrayController.extend();
VenuuDashboard.VenueEditController = Ember.ObjectController.extend({
init: function () {
this._super();
this.set('allVenueTypes', this.get('store').find('venueType'));
this.set('allVenueServi... |
// var의 호이스팅
var yangpa5 = "Marry me";
function print_value() {
console.log(yangpa5);
var yangpa5 = "나 때문에";
console.log(yangpa5);
function nested() {
console.log(yangpa5);
yangpa5 = "사랑...그게뭔데";
console.log(yangpa5);
var yangpa5 = "한 사람";
console.log(yangpa5);
}
nested();
}
print_... |
define([
'backbone',
'models/user'
], function (Backbone, User) {
'use strict';
app.collections.Users = Backbone.Collection.extend({
initialize: function (options) {
Backbone.Collection.prototype.initialize.apply(this, arguments);
},
url: '/users',
model: ... |
var crypto = require('crypto');
/**
* Converts a time in milliseconds to a base32 timestamp, accurate to one about second.
* @param time a number or string that can be parsed with parseInt
* @return a base32 timestamp in the <code>ks5ijf</code>
* @static
*/
toTimestamp = function(time) {
if(!time){
time = new... |
var searchData=
[
['bintodec',['binToDec',['../classsrc_1_1_utilities.html#a70fdc26590d16eab8a93236b4edd0186',1,'src::Utilities']]]
];
|
import React, { useContext } from "react";
import { makeStyles } from "@material-ui/core/styles";
import Drawer from "@material-ui/core/Drawer";
import AppBar from "@material-ui/core/AppBar";
import Toolbar from "@material-ui/core/Toolbar";
import Typography from "@material-ui/core/Typography";
import { Redirect, Route... |
const { Plotly, hljs } = window;
export default class DomHelpers {
constructor() {
this.plot = (labels, ...data) => {
const traces = [];
data.forEach(([x, y], i) => {
traces.push({
x,
y,
type: 'scatter',
... |
import React from 'react';
import { connect } from 'react-redux';
import {Panel, Row, Col} from 'react-bootstrap';
import VoteForm from '../containers/forms/VoteForm';
import {getquestion, updatevote, totalVotes} from '../actions/questions.js';
import {getMessages, sendMessage} from '../actions/chat.js';
import { isLoa... |
'use strict';
describe('locationSearch', function() {
var queryString = '?pokemon1=charmander&pokeballs=3&earthBadge=false&water-badge=true';
beforeEach(module('qsServices'));
it('should default to $location.search() if in html5 mode', function() {
var search = jasmine.createSpy('$location.search()');
... |
import React, { useState, useEffect } from "react";
import axios from "axios";
import Input from "../common/Input";
import Button from "../common/Button";
import Modal from "../common/Modal";
import useNotification from "../../hooks/Notification";
const StationDetail = ({ selected: card, setSelected, fetchCards }) => ... |
import React from 'react';
import styles from './launchHeader.module.scss';
const LaunchHeader = () => {
return(
<div className={styles.root}>
<span>Badge</span>
<span>Rocket Name</span>
<span>Rocket Type</span>
<span>Launch Date</span>
<span>Details</span>
<span>ID</span>
... |
import { connect } from 'react-redux';
import { message } from 'antd';
import ConfigPanel from '../uis/ConfigPanel';
import globalStore from '../../service/globalStore';
import { deepCloneObj } from '../../service/service';
const mapStateToProps = (state) => {
const configComponentId = globalStore.get('configCompo... |
'use strict'
import React, { Component } from 'react';
import { Platform, BackHandler, ToastAndroid } from 'react-native';
import thunk from 'redux-thunk';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import SplashScreen from 'react-native-smart-splash-screen';
import {
... |
//提交回复
function post() {
let questionId = $("#question_id").val();
let content = $("#form-control").val();
comment2target(questionId, 1, content);
}
function comment2target(targetId, type, content) {
if (!content) {
alert("不能回复空内容~~")
return;
}
$.ajax({
url: "/comment",... |
//The Function for checking the Marks with Grade System...
let getMyGrade = function(currentMark, totalMark){
let myPercentage = (currentMark/totalMark) * 100
let myGrade = ''
if(myPercentage >= 90){
myGrade = 'A+'
}else if(myPercentage >= 80){
myGrade = 'A'
}else if(myPe... |
var module = angular.module('ucms.app.core');
module.controller('dashboardCtrl', function ($scope, $xhttp) {
$scope.init = function () {
}
}) |
function WeatherForecastController($scope, ForecastWeatherService, CommonWeatherService) {
var ctrl = this;
function getforecastWeather() {
const cityName = CommonWeatherService.getWeatherCityName();
return ForecastWeatherService.getWeatherForecast(cityName).then(forecastResponse => {
... |
(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/index/search/_search_select" ], {
"258a": function(e, t, n) {
var a = n("e08a");
n.n(a).a;
},
ab2a: function(e, t, n) {
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = void 0;
... |
/*
* Toady
* Copyright 2015 Tom Shawver
*/
var log = require('../../lib/log');
var util = require('util');
const CHAN_PREFIXES = '#&';
const PERMISSIONS_MOD = 'users';
/**
* Command Runner handles all execution of commands, including formatting
* and permissions enforcement. It exposes no commands of its own.
... |
/**
* Simple Queue data structure implemented with a doubley linked list
*/
function Queue() {
function Node(val, next, prev) {
this.val = val;
this.next = next;
this.prev = prev;
return this;
};
let head = null;
let tail = null;
let length = 0;
return {
enqueue: function(val) {
... |
angular.module('userAdd', [
'ngRoute'
]); |
/**
* Created by py on 01/09/2018.
*/
/* ===== SHA256 with Crypto-js ===============================
| Learn more: Crypto-js: https://github.com/brix/crypto-js |
| =========================================================*/
const SHA256 = require('crypto-js/sha256');
const Block = require('../model/Block');
c... |
'use strict';
// som json data passed from taskRepository
var Task = function (data) {
this.name = data.name;
this.time = data.time;
};
/*
* Syntax to add method in prototype object
*
* ClassName.prototype.methodName = function(arguments) {
*
* }
*/
Task.prototype.toString = function ( ) {
retur... |
function play()
{
var query = document.getElementById("q");
q = query.value;
document.getElementById("audio").innerHTML="<br /><b><span style='color:blue;font-size:20px;'>Getting your song. :)</span><br /><img src='loading.gif' height='200px' width='300px' alt='Loading...' /> <br /> "
axios.get("https:... |
function calc(){
var width = window.innerWidth;
var html = document.documentElement;
if(width<=640){
html.style.fontSize = width/7 + "px";
}else{
html.style.fontSize = 100 + "px";
}
}
window.addEventListener('resize',function(){calc()});
calc();
|
import { Component } from "react";
class Header extends Component {
render() {
return (
<div>
<h1>Calculator App</h1>
<p>
This is the calculator App to perform simple Mathematical Calculation
</p>
</div>
);
}
}
export default Header;
|
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
View,
Image,
StyleSheet,
YellowBox,
Dimensions,
AsyncStorage,
Platform, Keyboard,
} from 'react-native';
import { Icon } from 'react-native-elements';
import LinearGradient from 'react-native-linear-gradient';
import... |
/* ========================================================================
* App.plugins.statistics v1.0
* 统计中心-公共组件
* ========================================================================
* Copyright 2015-2025 WangXin nvlbs,Inc.
* ======================================================================== *... |
tmtModule
.config( function ($routeProvider) {
var template = function(templateName){
return 'views/08a/' + templateName
};
$routeProvider.
// Default to "signon" view
when('/', {
controller: 'signonController',
templateUrl... |
/**
* Смещает изображение в указанном направлении,
* при этом выходящие за пределы изображения фрагменты
* рисует на противоположной стороне
*/
import {createCanvas} from '../lib/utils';
function tile(x, y, width, height) {
return {x, y, width, height};
}
export function offset(ctx, xOffset, yOffset, state) {
... |
d3.selection.prototype.appendJSX = d3.jsx_append
let Bars = d3.Bars;
const data = [
{name: "Locke", value: 4},
{name: "Reyes", value: 8},
{name: "Ford", value: 15},
{name: "Jarrah", value: 16},
{name: "Shephard", value: 23},
{name: "Kwon", value: 42}
];
const width = 500;
co... |
/*
Fetches json data from the file persons.json
*/
let familyMembers = [{
name: "Peter Madsen",
age: 52,
hairColor: "blonde",
relation: "dad",
img: "img/dad.jpg"
}, {
name: "Ane Madsen",
age: 51,
hairColor: "brown",
relation: "mom",
img: "img/ane.jpg"
}, {
name: "Rasmus Madsen",
age: 29,
hairC... |
angular.module('Hotel.Login')
.controller('LoginCtrl',
function($scope, $rootScope, $uibModal, $location, store) {
//we can use store to keep login information
var login = this;
if (!($rootScope.globals && $rootScope.globals.currentUser)) {
var modalInstance = $uibModal.open({
... |
module.exports = {
message: {
timeline: "Chronologie",
explore: "Explorer",
maps: "Cartes",
users: "Utilisateurs",
register: "Inscription",
login: "Connexion",
logout: "Déconnexion",
registerUserText: "Enregistrer un nouvel utilisateur",
profile: "Profil",
save: "Enregistrer",
... |
const router = require('express').Router();
const Workout = require('../models/Workout');
// GET routes for Workouts
router.get('/api/workouts', (req,res) => {
Workout.aggregate([
{
$addFields: {
totalDuration: {$sum: '$exercise.duration'},
totalDistance: {$sum... |
import React, {Component} from 'react'
import {Cell} from 'fixed-data-table'
import Avatar from 'material-ui/Avatar'
class ImageCell extends Component {
render() {
const {rowIndex, field, data, ...props} = this.props
return (
<Cell {...props}>
<Avatar size={32}>{data[rowIndex]['lname'].subs... |
export let PacketFacilities = [
{
"id": "e1e9c52e-a0bc-4117-b996-0fc94843ea09",
"name": "Parsippany, NJ",
"code": "ewr1",
"features": [
"baremetal",
"storage"
],
"address": null
},
{
"id": "8e6470b3-b75e-47d1-bb93-45b225750975",
"name": "Amsterdam, NL",
"code": "ams... |
import React from 'react';
import Visa from './svg/visa';
import Aexpress from './svg/aexpress';
import Master from './svg/master';
import Paypal from './svg/paypal';
import Money from './svg/money';
import Post from './svg/post';
import Lock from './svg/lock';
import Pci from './svg/pci';
import McAfee from './svg/mca... |
const dispatcher = require('../dispatcher/dispatcher');
const UserConstants = require('../constants/user_constants');
const FriendApiUtil = require('../util/friend_api_util');
const FriendActions = {
fetchAllFriends(userId){
FriendApiUtil.fetchAllFriends(userId, FriendActions.receiveSingleUser);
},
createFri... |
$(function () {
var h = $(".container-fluid-full").height();
var h1 = $("#content .breadcrumb").height();
$("#tree").height(h - h1 - 24);
$.ajax({
url: "static/page/designcoordination/documentmgmt/doc.json",
type: "get",
dataType:"json",
success: function (data) {
... |
// Data Access Object
// Se comunica con la base de datos
const pool = require('../../services/postgresql/index');
module.exports = {
async createCrop(crop) {
// Registro en tabla cultivo
query = `INSERT INTO cultivo (lotecultivadoid, productoid) VALUES
(${crop.lotecultivadoid}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.