text stringlengths 7 3.69M |
|---|
// https://www.freecodecamp.org/challenges/where-do-i-belong
function getIndexToIns(arr, num) {
arr.sort(function(a, b){
return a - b;
});
for (var i = 0; i < arr.length; i++){
if (num <= arr[i]){
return i;
}
}
return i;
}
getIndexToIns([10, 20, 30, 40, 50], 30); // 2 |
import React from "react"
import { login, logout, isAuthenticated, getProfile } from "../utils/auth"
import { Link } from "gatsby"
import axios from 'axios'
const Home = ({ user }) => {
return <p>Hi, {user.name ? user.name : "friend"}!</p>
}
const Settings = () => <p>Settings</p>
const Billing = () => <p>Billing</p... |
import regeneratorRuntime from '../../lib/regenerator-runtime'
import { connect } from '../../lib/wechat-weapp-redux'
import { displayError, clearError } from '../../store/actions/loader'
import { fetchWeappEntry, fetchGlobalData } from '../../store/actions/global'
import promisify from '../../lib/promisify'
import { d... |
var http = require('http');
var url = process.argv[2];
// GET our url
http.get(url, function (res){
var data = [];
// Set response data to be a string
res.setEncoding('utf8');
// Add all data to our data array
res.on('data', function (r){
data.push(r);
});
// Log the length of the received data
... |
import React from 'react';
import Point from './Point/Point';
const Marketing = (props) => {
return (
<div className="container" style={{ padding: '15px 0' }} >
<div className="columns">
{props.content.map((p, i) => {
return (
<div key={`column-${i}`} className="column">
... |
function routeProvider($routeProvider) {
$routeProvider
.when('/', {
template: '<login></login>'
})
.when('/user/new', {
template: '<user-new></user-new>'
})
.when('/users', {
template: '<users></users>'
})
.when('/dashboard... |
const Stack = require('../../Stack');
const stack = new Stack();
module.exports = {
async AddController(request, response) {
const { value } = request.body;
stack.add(value);
return response.json(value);
},
async SizeController(request, response) {
const tam = s... |
WMS.module('Models', function(Models, WMS, Backbone, Marionette, $, _) {
Models.EmployeeHours = Backbone.Model.extend({
defaults: {
firstName : "",
lastName : "",
hours : 0
},
maps: [
{ local: 'firstName', remote: 'nome' },
{ local: 'lastName', remote: 'cognome' },
... |
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import MainDrawerNavigator from './navigation/drawer/MainDrawerNavigator';
function App() {
return (
<NavigationContainer>
<MainDrawerNavigator />
</NavigationContainer>
);
}
export default App; |
import colors from './colors'
import styles from './styles'
export { colors, styles } |
const mongoose = require('mongoose');
//user Schema
const CitySchema = mongoose.Schema({
cityname:{
type: String,
required: true,
Unique:true
},
cityimg:{
type: String
},
postalcode:{
type:String,
required: true,
Unique:true
}
});
const City = module.exports = mongoose.model('ci... |
import React from 'react';
import { mount, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Screen from '../component/Screen';
import { Provider } from '../component/Switch/context';
import faker from 'faker';
configure({ adapter: new Adapter() });
describe('<Screen />', () => {
let ... |
function Animal(name) {
this.speed = 0;
this.name = name;
this.run = function(speed) {
this.speed += speed;
console.log(this.name + ": his speed = " + this.speed);
};
this.stop = function() {
this.speed = 0;
console.log(this.name + ": his speed is stopped = " + this... |
import "./styles.css";
import Header from "./components/Header";
import Headline from "./components/Headline/headline";
import Button from "./components/button/index";
import ListItem from "./components/listItem/listItem";
import { connect } from "react-redux";
import { fetchProps } from "./actions/index";
const tempA... |
import {Component} from "react";
import React from "react";
import "./DragAndDropTable.css";
class DragAndDropTable extends Component {
constructor(props) {
super(props);
// this.state = {
// items: this.props.items,
// counter: 0
// };
this.dragDrop = thi... |
player1_name=localStorage.getItem("player1");
player2_name=localStorage.getItem("player2");
var player1_score=0;
var player2_score=0;
var question_turn=player1_name;
var Answer_turn=player2_name;
document.getElementById("player1_name").innerHTML=player1_name+" : ";
document.getElementById("player1_score").innerH... |
import React from 'react';
import { Grid,Paper, Avatar, TextField, Button } from '@material-ui/core'
import LockOutlinedIcon from '@material-ui/icons/LockOutlined';
import axios from 'axios';
export default class Register extends React.Component {
constructor(props){
super(props);
this.state = {
... |
const { AkagoClient, CommandHandler, ListenerHandler } = require('discord.js-akago');
const config = require('./src/config.json')
const db = require('./src/models/db')
const pdb = new db.table(`guild`)
class myClient extends AkagoClient {
constructor() {
super({
token: config.bot_token,
... |
import React ,{Component} from 'react';
import {Link } from 'react-router-dom';
import { useApi } from "../../../hooks/useApi";
import useChat from "../../../useChat";
import axios from "axios";
import { useEffect, useState } from "react";
const Groupmini = ({ id })=> {
const [group, err, reload] = useApi("group... |
jQuery(window).on('load', function() {
"use strict";
jQuery("#status").fadeOut();
// will fade out the whole DIV that covers the website.
jQuery("#preloader").delay(500).fadeOut("slow");
}) |
define(['core/core-modules/framework.util'], function (util) {
function isIE() { //ie?
if (!!window.ActiveXObject || "ActiveXObject" in window)
return true;
else
return false;
}
const oldConsole = {
'info': console.info,
'debug': console.debug,
'error': console.error,... |
let YesComplianceTokenV1Impl = artifacts.require("YesComplianceTokenV1Impl");
let BigNumber = require('bignumber.js');
contract('YesComplianceTokenV1Impl', function ([owner, ALICE_ADDR1, BOB_ADDR1, ALICE_ADDR2, NONHOLDER_ACCOUNT1, VERIFIER_A_ADDR1, VERIFIER_B_ADDR1]) {
let contract;
let ENTITY_ALICE = 10000;
... |
/**
* @fileOverview 配置文件
* @author 行列
* @version 1.0
*/
KISSY.add("app/ini", function(S, Node, Router) {
var T = {
routes: {
'app/views/default': [
// 首页
'/myunion/overview',
'/myunion/record',
'/myunion/message',
... |
import React from 'react';
import { Brgr } from './burger.js';
import { Menu } from './menu.js';
import { MobileMenu } from './mobile_menu.js';
import { Footer } from './footer.js';
import { About } from './about';
import { Work } from './work';
// import Contact from './contact';
export default class Header extends ... |
import { SCAN_INPROGRESS, SCAN_SUCCESS }
from '../actions/actionTypes';
const InitialState = {
loading: false,
scanResult: null
};
const scanReducer = (state = InitialState, action) => {
switch (action.type) {
case SCAN_INPROGRESS:
return {
...state,
loading: action.loading
};
case ... |
var Site = require('../../src/model/Site.js')
var Review = require('../../src/model/Review.js')
var Coordinate = require('../../src/model/Coordinate.js')
describe('A Site', () => {
it('registers a review', () => {
let site = new Site({id: 'A site', coordinate: new Coordinate(1, -1)})
let review = new Review(... |
import configureMockStore from 'redux-mock-store'
import thunk from 'redux-thunk'
import nock from 'nock';
import {apiUrl, pathGetParams} from "../../api";
import * as actionTypes from "../../actionTypes";
import {fetchParams} from "../../actions/params";
const middlewares = [thunk];
const mockStore = configureMockSto... |
const http = require('http');
const config = require('./.config');
const models = require('./models');
const server = http.createServer(function(req, res) {
models.Diff.find().select({
_id: false,
'+': true,
'-': true,
calculated_at: true
}).sort({ calculated_at: -1 }).limit(5... |
'use strict';
const fs = require('fs');
fs.readFile('./resources/persons.json', 'utf-8', function (err, file) {
if (!err) { console.log(file); }
else{ throw err;}
}); |
import { createApp } from 'vue'
/**
* 引入animate.css库
* npm install animate.css
* */
import "animate.css"
// import App from './01_动画的基本使用/App.vue'
// import App from './02_结合第三方动画库/03_gsap实现数字递增动画.vue'
import App from './03_列表动画的使用/02_transition-group列表一次显示隐藏动画.vue'
createApp(App).mount('#app')
|
// TODO add setup function to create table, secondary indexes
var r = require('rethinkdb')
var Promise = require('bluebird')
var config = {
host: process.env.DB_HOST || 'localhost',
port: parseInt(process.env.DB_PORT) || 28015,
db: 'course_plan'
}
module.exports.setup = () => {
var conn = null
r.connect({ho... |
(function(){
const weekDay=[
"Неділя",
"Понеділок",
"Вівторок",
"Середа",
"Четвер",
"П'ятниця",
"Субота"],
month=["січня",
"лютого",
"березня",
"квітня",
"травня",
"червня",
"липня... |
(function ($) {
var domHelper = {
kVisualDOMNames: ["BODY", "NAV", "VIEW", "IMAGEVIEW", "LABEL", "TEXTFIELD", "MODAL"],
guid: function () {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
}
return s4() + ... |
import { makeStyles } from '@material-ui/core/styles';
import { deepPurple } from '@material-ui/core/colors';
const drawerWidth = 240
export default makeStyles((theme) =>({
root:{
flexGrow: 1
},
title:{
flexGrow:1
},
icon: {
marginRight: theme.spacing(1),
},
appBar:{... |
/*
* @lc app=leetcode.cn id=69 lang=javascript
*
* [69] Sqrt(x)
*/
// @lc code=start
/**
* @param {number} x
* @return {number}
*/
var mySqrt = function (x) {
let left = 0, right = x;
while (left <= right) {
const mid = left + Math.round((right - left) / 2);
const val = mid * mid;
... |
import { Schema } from 'normalizr';
import authorSchema from './authorSchema';
const book = new Schema('book', {
idAttribute: 'name',
});
book.define({
authors: authorSchema,
});
export default book;
|
$(function(){
sap.viz.api.env.globalSettings({
"enableCanvgConfig" : {
'viz/bar': { max_svg: 2100, max_canvas:4000 } ,
'viz/mekko': { max_svg: 2800, max_canvas:5000 } ,
'viz/100_mekko': { max_svg: 2800, max_canvas:5000 } ,
'viz/horizontal_m... |
class AnimatedImage extends MonoBehaviour {
var columnSize : int = 1;
var rowSize : int = 1;
var currentFrame : int = 0;
var startFrame : int = 0;
var endFrame : int = 0;
var lastUpdateTime : float = 0;
var framesPerSecond : float = 12;
var spriteTexture : Material;
//tells to animate or not
var isAni... |
/* vars */
var ua, iphone, android, androidOld, win, mozilla, lastHash;
function connectWebViewJavascriptBridge(callback) {
if (window.WebViewJavascriptBridge) {
callback(WebViewJavascriptBridge)
} else {
document.addEventListener('WebViewJavascriptBridgeReady',
function() {
... |
import activationCode from './zh-CN/activationcode';
// import analysis from './zh-CN/analysis';
import exception from './zh-CN/exception';
// import form from './zh-CN/form';
import globalHeader from './zh-CN/globalHeader';
import login from './zh-CN/login';
import menu from './zh-CN/menu';
import monitor from './zh-C... |
import pack from './pack.js';
import {
passValues,
getTemplate,
cloneVirtualNode,
convertToVirtualNode,
} from './convert.js';
/**
* Cache of virtual DOM nodes. Map keys is html markup.
* @type {Map}
*/
const virtualNodes = new Map();
/**
* Template literal tag. Returns a virtual DOM node by html string.
... |
module.exports = {
"sqlite": {
"path": "database"
}
} |
const myImageSlider = new Swiper('.image-slider', {
pagination: {
el: '.swiper-pagination',
clickable: true,
dynamicBullets: true,
},
simulateTouch: true,
touchRatio: 1,
touchAngle: 45,
grabCursor: false,
slideToClickedSlide: false,
hashNavigation: false,
keyboard: {
enabled: true,
onlyInView... |
function validateCollectionList(collectionList){
return collectionList.length > 0 ? true : false;
}
function itemExists(collectionList,item){
for(var i=0;i<collectionList.length; i++){
if(collectionList[i] === item ){
return true;
}
}
return false;
}
... |
// Enter your Sonarr URL including port
var sonarr_url = "http://localhost:8989";
// Enter your Sonarr API key
var sonarr_apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
// Enter your TorrentLeech RSS key
var rss_key = "xxxxxxxxxxxxxxxxxxxx";
var request = require('request');
var irc = require('irc');
var reg =... |
$( document ).ready(function() {
cargarEmpresas();
});
var arrayEmpresa = [];
function cargarEmpresas(){
var parametros = {
opcion : "cargarEmpresas"
}
var post = $.post(
"php/mysql.php", // Script que se ejecuta en el servidor
parametros, ... |
import React from 'react';
import PropTypes from 'prop-types';
function TrainCount(props) {
return (
<div className="testCount">
TRAINING <span>{props.counter}</span> of <span>{props.total}</span>
</div>
);
}
TrainCount.propTypes = {
counter: PropTypes.number.isRequ... |
export const newsletter = {
name: 'newsletter',
type: 'document',
title: 'Newsletter',
fields: [
{
name: 'title',
type: 'string',
title: 'Title',
},
{
name: 'slug',
type: 'slug',
title: 'Slug',
},
{
name: 'intro',
title: 'Intro',
type: 'te... |
const ZtMeta = require("../lib");
it("list columns function test 01",()=>{
let ztmeta=new ZtMeta({
host:'127.0.0.1',
user:'root',
password:'123456'
});
// notice use yourself database data
ztmeta.listColumns("security_oauth","t_permission",{},(err,data,info)=>{
expect(dat... |
var express = require('express');
var router = express.Router();
var passport = require('passport');
var fs = require('fs');
var multer = require('multer');
var _ = require('lodash');
var logger = require('@ekhanei/logger').getLogger();
var sdk = require('@ekhanei/sdk');
var Promise = require('promise');
var jwtApiCred... |
import { SET_REPAIRS, SET_REPAIRS_TOTAL_COSTS, ADD_REPAIR, SET_ERROR } from "../actions/repairs";
const repairsReducer = (state = { repairs: {}, repairsTotalCosts: {}, repair: {}, status: 0 }, action = {}) => {
switch (action.type) {
case SET_REPAIRS :
return {
...state,
... |
//8D Re-do Atomic JS-06F. Prompt the user for all 3 legs of a triangle, then prompt again (for all three legs) if the triangle is not valid.
var userNumber = parseInt(prompt("Please enter a number between 1 and 8"));
while ((userNumber >= 1) && (userNumber <= 8)){
alert("Great job.");
var userNumber = par... |
import TopBar from "../TopBar/TopBar"
import NavBar from "../NavBar/NavBar"
const Header = () =>
<>
<TopBar />
<NavBar/>
</>
export default Header |
import React, { useState, useRef, useContext } from 'react'
import { MDBBtn, MDBProgress } from "mdbreact";
import axios from 'axios';
import { Link } from 'react-router-dom';
// import { createBrowserHistory } from 'history';
import Context from '../contexts/Context';
import { DropzoneArea } from 'material-ui-dropzone... |
var InboxSheetView = Backbone.View.extend({
initialize: function () {
_.bindAll(this, "render", "updateTitle", "createTask", "newTaskCreated");
this.stack = [];
this.account = new AccountModel();
this.inbox = new TaskListModel();
this.areas = new AreaCollection();
t... |
$(function(){
// Initialize Swiper 轮播图
var swiper = new Swiper('.swiper-container', {
delay: 1000, //1秒切换一次
autoplay: true,
loop: true,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
});
var pno=1
// 分页器
$(function() {
$("#pagination2").pagination(... |
const {expect} = require('chai');
const {firefox} = require('playwright-firefox');
let browser, page;
function json(data) {
return {
status: 200,
headers: {
'Access-Control-Allow-Origin': '*',
'Content-type': 'application/json'
},
body: JSON.stringify(data)
... |
import React from 'react';
import {Card, CardHeader, CardMedia, CardText} from 'material-ui/Card';
import Paper from 'material-ui/Paper';
import Divider from 'material-ui/Divider';
export default class ListCard extends React.Component {
constructor(props) {
super(props);
this.state = {
expanded: fals... |
const postContainer = document.querySelector("#chosen-post-container");
const queryString = document.location.search;
const params = new URLSearchParams(queryString);
const id = params.get("id");
const footer = document.querySelector("footer");
const url = "https://makra-stenkloev.no/thebean/wp-json/wp/v2/posts/" + i... |
;(function(window, document) {
'use strict';
// throw an error if required functions not defined
if (typeof validateFields === "undefined") {
throw new Error("validateFields() is required and is not defined");
}
if (typeof showNotification === "undefined") {
throw new Error("showNotification() is req... |
var Stage = Class.create(Scene, {
initialize: function(game){
Scene.call(this);
this.game = game;
this.backgroundColor = '#000';
this.sprites = [];
this.movingFloors = [];
this.view = this.createView();
this.map = this.createMap();
this.player = thi... |
var Tacit = Tacit || {};
Tacit.TimeCircle = function(gameState, position, group, properties) {
"use strict";
Phaser.Graphics.call(this, gameState.game, position.x, position.y);
this.gameState = gameState;
if(group) {
this.gameState.groups[group].add(this);
}
this.anchor.setTo(0.5, 0.5);
};
Tacit.Time... |
/*
* @lc app=leetcode.cn id=520 lang=javascript
*
* [520] 检测大写字母
*/
// @lc code=start
/**
* @param {string} word
* @return {boolean}
*/
// 解法一
// var detectCapitalUse = function(word) {
// // 通过判断大写字母的个数
// // 1. 个数 == 单词长度
// // 2. 个数 == 1
// let num = 0;
// const len = word.length;
// ... |
import React from "react";
import "./PageNotFoud.css"
import {Button, Container} from "@material-ui/core";
import { useHistory} from "react-router-dom";
export default function PageNotFound() {
const history = useHistory();
return (
<Container maxWidth={"md"}>
<div className="fo... |
/**
* @author v.lugovsky
* created on 16.12.2015
*/
(function() {
'use strict';
angular.module('ROA.pages.calcularRiesgoTotal', [])
.config(function($stateProvider) {
$stateProvider
.state('calcularRiesgoTotal', {
url: '/calcularRiesgoTotal',
... |
// キャッシュファイルの指定
var CACHE_NAME = "pwa-sample-caches";
var urlsToCache = ["/runstackjp.github.io/"];
// インストール処理
self.addEventListener("install", function (event) {
console.log("ServiceWorker install");
event.waitUntil(
caches.open(CACHE_NAME).then(function (cache) {
return cache.addAll(urlsToCac... |
$(function() {
// Side Bar Toggle
$('.hide-sidebar').click(function() {
$('#sidebar').hide('fast', function() {
$('#content').removeClass('span9');
$('#content').addClass('span12');
$('.hide-sidebar').hide();
$('.show-sidebar').show();
});
});
$('.show-sidebar').click(function() {
$('... |
import { sanitize } from "./sanitize.js";
export const template = (strings, ...values) => {
const tmpl = document.createElement('template');
tmpl.innerHTML = values.reduce(
(html, value, index) => html + sanitize(value) + strings[index + 1],
strings[0]
);
return tmpl;... |
// Apostrophe, lightweight name mentions for jQuery
// Version 0.1
// (c) Syme (git @ symeapp)
// Released under the MIT license
(function($, _) {
$.apostrophe = {};
// Default config
$.apostrophe.config = {
// Handlers that trigger the update event (separated by spaces)
eventHandlers: 'input',
/... |
import React from "react";
import { Switch, Route } from "react-router-dom";
import Customer360 from "../pages/Customer360/Customer360";
export default (
<Route>
<Route exact path="/" component={Customer360} />
<Route exact path="/login" component={Customer360} />
</Route>
);
|
import React, { Component } from 'react';
import { Link } from 'react-router-dom'
import Actions from '../flux/Actions'
import SessionStore from '../flux/stores/SessionStore'
import connectToStores from 'alt-utils/lib/connectToStores';
import { Nav, Navbar, NavItem, NavDropdown, MenuItem } from 'react-bootstrap';
cla... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { fetchUserd } from "../../actions";
class UserListShow extends Component {
componentDidMount() {
this.props.fetchUserd(this.props.match.params._id);
}
render() {
if (!this.props.userd) {
return "";
}
... |
module.exports = {
transform: {
'^.+\\.js?$': require.resolve('babel-jest'),
},
transformIgnorePatterns: [
'/node_modules/(?!d3|d3-array|internmap|delaunator|robust-predicates)',
],
};
|
const Parser = require('./parser');
const Str = require('./parsers/str');
const SequenceOf = require('./parsers/sequenceof');
const Match = require('./parsers/match');
const Choice = require('./parsers/choice');
const Many = require('./parsers/many');
const Type = require('./utils');
const Between = (leftParser, right... |
/*
Create a function that counts the integer's number of digits.
Examples
count(318) ➞ 3
count(-92563) ➞ 5
count(4666) ➞ 4
count(-314890) ➞ 6
count(654321) ➞ 6
count(638476) ➞ 6
*/
function count(n) {
let ans = 0;
while(n>0){
let rem = Math.floor(n%10);
n = Math.floor(n/10);
ans++;
... |
import * as validator from 'src/validations/settingValidator'
import basedModel from './baseModel'
class SettingModel extends basedModel {
constructor (data) {
super()
this.resetState()
if (data !== null && data !== undefined) {
var setting = data
var preferences = null
var loca... |
/*
* Copyright (C) 2012-2013 DFKI GmbH
* Deutsches Forschungszentrum fuer Kuenstliche Intelligenz
* German Research Center for Artificial Intelligence
* http://www.dfki.de
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentat... |
"use strict";
const express = require('express');
const bodyParser = require('body-parser');
const stream = require('stream');
function Middleware(logger, messageValidatorService) {
this._logger = logger;
this._stream = this._createStream();
this._buffer = null;
this._app = express();
this._app.use(bodyParser.t... |
$(document).ready(function() {
function modal(kind, switchButton){
$.post('/pages/modal/' + kind + '/' + switchButton, function( data ) {
$('#timeForm').validator('destroy');
$('#timeForm').remove();
$( "body" ).append( data );
$("#timeForm").modal('show');
$("#timeForm").validator();
});
}
... |
angular.module('clipr', [])
.controller('CliprListing',['$scope','$http', function($scope, $http){
$http({ method: 'GET', url: '/list' }).success(function (data) {
$scope.list= data;
}).
error(function (data) {
$scope.list={plugins:[]};
});
}]);
|
import React from 'react';
import {FlatList, StyleSheet} from 'react-native';
import {CATEGORIES} from './../../data/dummy-data';
import Colors from './../../constants/Colors';
import CategoryGridItem from '../components/CategoryGridItem';
const CategoriesScreen = ({navigation}) => {
return (
<FlatList
s... |
import React from 'react';
import LazyLoad from 'react-lazy-load';
const DummyChart = () => {
return (
<div>
<LazyLoad height={762}>
<h2>DummyChart</h2>
</LazyLoad>
</div>
);
};
export default DummyChart;
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; sub... |
describe('P.models.workouts.Scheduler', function() {
var Model = P.models.workouts.Scheduler;
it('ignores timezones ... for now', function() {
var data = new Model().parse({
date: '2015-11-20T00:00:00Z'
});
if (data.date.getTimezoneOffset() !== 0) {
expect(data.date.getHours()).toBe(0);
... |
import React, { Component } from 'react'
import FormUser from './FormUser.js'
export default class simplePage1 extends Component {
render() {
return (
<div>
<h1 style={{ textAlign: "center"}}>Article 2 : Règles d’écriture d’un article d’enquête /de reportage </... |
import React from 'react';
import { Typography,Grid,Link } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import newsImg from '../../../assets/images/newsImg.jpg'
import newImgBg from '../../../assets/images/newsImgBg.svg'
const useStyles = makeStyles(theme => ({
newsItemImg: {
... |
const fs = require('fs-extra');
const {getDestDir} = require('./paths');
const reload = require('./reload');
const {createTask} = require('./task');
const enLocale = fs.readFileSync('src/_locales/en.config', {encoding: 'utf8'}).replace(/^#.*?$/gm, '');
global.chrome = global.chrome || {};
global.chrome.i18n = global.c... |
var searchData=
[
['handling_20time_35',['Handling time',['../group__TimeFunctions.html',1,'']]]
];
|
const Exercice = require('./model');
module.exports = {
create: async (request, exam) => {
const exerciceToSave = new Exercice(request);
const maxOrder = Math.max(...exam.exercices.map(ex => ex.order));
exerciceToSave.order = exerciceToSave.order || maxOrder + 1;
const exercice = await exerciceToSave... |
const mongoose = require('mongoose');
const safeSchema = new mongoose.Schema({
insuranceName: [String],
insuranceCoverage: [String],
insuranceADT: [Number],
SafenumADT: [Number],
insuranceCHD: [Number],
SafenumCHD: [Number],
insuranceINF: [Number],
SafenumINF: [Number],
insuranceCoin: [S... |
import React from 'react';
import css from './Circle.css';
export function Circle() {
return (
<>
<style>{`${css}`}</style>
<div className="lds-circle">
<div></div>
</div>
</>
);
}
|
'use strict';
angular.module('basesManagement'); |
"use strict";
/*jslint browser:true */
/*jslint node:true */
var ball = require('./ball');
var stick = require('./stick');
var animate;
/**
* Context prototype.
* With this object (Singleton) by the way. We manage game context: points, on/off, balls location
* on screen. It is a bridge that let you traverse whole ... |
import { Game, Animation } from 'alpha'
import Loading from 'components/loading'
import Wecome from 'components/wecome'
import Home from 'components/home'
class Main extends Game{
constructor() {
super()
this.name = 'gameRoot'
this.index = -1
this.go('wecome')
console.log(this.stage)
}
create... |
import React from 'react'
// local libs
import Typography from '@material-ui/core/Typography'
import ErrorMessage from 'src/generic/ErrorMessage'
const
ErrorContent = () => <div>
<Typography variant="body1" gutterBottom>Some shit is happened 8==э</Typography>
<Typography variant="body1" gutterBott... |
import 'bootstrap.native/dist/bootstrap-native-v4';
import Darkmode from 'darkmode-js';
import Headroom from 'headroom.js';
import LazyLoad from 'vanilla-lazyload';
import { Search } from './search';
import { Redirect } from './redirect';
import { Matomo } from './matomo';
import './player';
var darkmode = new Darkmod... |
import React ,{useState , useEffect} from 'react';
import {Link} from 'react-router-dom';
import axios from 'axios';
import CreateRoom from "./videoChat/components/modal/CreateModal";
import JoinRoom from './videoChat/components/modal/Join';
const Header = ({history}) =>{
const [show, setShow] = useState(fals... |
angular
.module('altairApp')
.controller("annualCtrlGovBlackTypeAll",[
'$scope',
'$rootScope',
'$state',
'utils',
'mainService',
... |
const express = require('express')
const app = express()
const bodyParser = require('body-parser')
const methodOverride = require('method-override')
// set our port
app.set('port', 6500)
// get all data/stuff of the body (POST) parameters
// parse application/json
app.use(bodyParser.json())
// parse application/vnd.... |
import { bannerPlugin } from '@freesewing/plugin-banner'
import { base } from './base.mjs'
const pluginBanner = ({ points, Point, paths, Path, macro, options, part }) => {
if (['banner', 'all'].indexOf(options.plugin) !== -1) {
points.from = new Point(0, 0)
points.to = new Point(320, 0)
paths.banner = n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.