text stringlengths 7 3.69M |
|---|
const parseArguments = require('./parseArguments')
let currentArgs = null
let argumentSource = process.argv
module.exports = {
get current() {
if (!currentArgs) {
currentArgs = parseArguments(argumentSource)
}
return currentArgs
},
useSource(source) {
currentA... |
import { useState } from "react";
import { useEffect } from "react";
export const useLikes = (productsList) => {
let savedLikes = localStorage.getItem("likes");
savedLikes = savedLikes ? savedLikes.split(";") : [];
const [likedProducts, setLikedProducts] = useState([...savedLikes]);
useEffect(() => localStor... |
'use strict';
module.exports = {
name: 'icon',
sizes: ['sm', 'md', 'lg'],
classNames: ['btn', 'spin']
};
|
/*global ODSA */
$(document).ready(function() {
"use strict";
var av_name = "selectionsortS1CON";
var interpret = ODSA.UTILS.loadConfig({av_name: av_name}).interpreter;
var theArray = [20, 10, 15, 54, 55, 11, 78, 14];
var av = new JSAV(av_name);
var arr = av.ds.array(theArray, {indexed: true});
var j;
... |
// let neym= document.getElementById('ney');
// neym.remove()
// let b = document.getElementById('DSach')
// console.log(b)
// let c = document.getElementById('button')
// console.log(c)
// c.addEventListener('click',function(){
// b.innerHTML+="<li>kante</li>"
// })
let ten = document.getElementById("te... |
import React, { useState } from "react";
import { Button, Form, FormGroup, Label, Input, FormText } from "reactstrap";
import "./Contacts.css";
const ContactForm = props => {
const [contact, setContact] = useState({
name: "",
phone: "",
email: "",
address: "",
group: "",
notes: ""
});
co... |
import React, { Component } from "react"
import PropTypes from "prop-types"
import { withStyles } from "@material-ui/core/styles"
import ExpansionPanel from "@material-ui/core/ExpansionPanel"
import ExpansionPanelSummary from "@material-ui/core/ExpansionPanelSummary"
import ExpansionPanelDetails from "@material-ui/core... |
import resolve from 'rollup-plugin-node-resolve';
import commonJS from 'rollup-plugin-commonjs';
export default {
input: './build/module/index.js',
output: {
file: './build/web/formula-values.js',
format: 'iife',
name: 'FormulaValues'
},
treeshake: false,
plugins: [
resolve(),
commonJS({
... |
import React from 'react';
import { TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import styled, { withTheme } from 'styled-components';
import Icon from 'react-native-vector-icons/MaterialIcons';
import { RowFlex, ColumnFlex } from '../../components';
import { toggleModal, togglePlay... |
// 注册
var Post_SignUp = function(){
MessagePostWithoutRsp.call(this);
// url
this.url = url_host+"/signup/mobile.json";
// 测试数据
this.getTestData = function(){
var response = '{"success":"true", "errcode":"错误码", "msg":"返回的通知", "pagecount":"总页数", "recordcount" :"记录总数", ' +
' "data":{"list":[' +
' {"... |
// Helpers for simulating a DB call to load our file
const fs = require( 'fs' );
const util = require( 'util' );
// Create a Promise for the file we read in - to simulate a DB call
const readFile = util.promisify(fs.readFile);
const writeFile = util.promisify(fs.writeFile);
/**
*
*/
class FeedbackService {
cons... |
import { Template } from 'meteor/templating';
import { FlowRouter } from 'meteor/kadira:flow-router';
Template.App_Body.onCreated(function appBodyOnCreated() {
// placeholder: typically you will put global subscriptions here if you remove the autopublish package.
});
Template.App_Body.helpers({
isNotActive: funct... |
'use strict'
let config=require('config')
var client = require('twilio')(config.constants.twilioCreds.accountSid, config.constants.twilioCreds.authToken);
var nodeMailerModule = require('nodemailer');
var smtpTransport = require('nodemailer-smtp-transport');
var transporter = nodeMailerModule.createTransport(smtpTransp... |
/**
* Created by George on 09/05/2017.
* Welcome. In this kata, you are asked to square every digit of a number.
For example, if we run 9119 through the function, 811181 will come out.
Note: The function accepts an integer and returns an integer
*/
function squareDigits(num){
//may the code be with you
r... |
import resumeIcon from '../assets/resume_icon.png';
import resume from '../assets/Carlos_Nevett_Resume.pdf';
const About = () => {
return (
<div className="about">
<section>
<div className="text-and-link">
<article>
<h2>About me</h2>
<p>I am a full-stack software e... |
var App = App || {};
App.ItemView = Backbone.View.extend({
events: {
'click .edit': 'edit',
'click .delete': 'delete'
},
template: App.TemplateCache.get('#category-items-template'),
render: function() {
var markup = this.model.toJSON();
this.$el.empty();
this.$el.html(this.template(markup)... |
import axios from './axios';
import Qs from 'qs';
const debug = process.env.NODE_ENV === 'development';
const baseUrl = debug ? '/api/operator/admin/fota' : '/operator/admin/fota';
export function getDeviceType (params) {
// var url = debug ? '/api/operator/load_account_info.json' : `/operator/load_account_info.jso... |
var orbit = {};
orbit.element = null;
orbit.setFrame = function(div, frame) {
if(div.curr != frame) {
div.curr = frame;
var shiftY = div.curr * div.imageHeight;
div.style.backgroundPosition = "0 -" + shiftY + "px";
orbit.updateFeatures(div, true);
}
}
orbit.mouseEnter = function(even... |
alert('Inicializando ....'); |
import React, { Component } from 'react';
import Divider from '@material-ui/core/Divider'
import user from './../../img/usuario.png'
import fecha from './../../img/solicitud/calendar.png'
import badge from './../../img/home/badge.png'
import identification from './../../img/home/identification.png'
import lock from './... |
const orderList = (list, orderBy, type) => {
if (orderBy === 'ascendant') {
list.sort((a, b) => {
if (a[type] < b[type]) return -1;
if (a[type] > b[type]) return 1;
return 0;
});
}
if (orderBy === 'descendant') {
list.sort((a, b) => {
if (a[type] > b[type]) return -1;
if... |
mainApp.lazy.controller('setDelayReasonController', ['$rootScope', '$scope', '$q', 'invokeServerService', 'arrayHelperFactory', 'messageFactory', 'exportCsvFactory',
function ($rootScope, $scope, $q, invokeServerService, arrayHelperFactory, messageFactory, exportCsvFactory) {
$scope.AAABBB = true;
... |
// pages/choose/choose.js
Page({
/**
* 页面的初始数据
*/
data: {
},
bindtapFunc: function (e) {
let pages = getCurrentPages(); //获取当前页面js里面的pages里的所有信息。
let prevPage = pages[pages.length - 2];//prevPage 是获取上一个页面的js里面的pages的所有信息。 -2 是上一个页面,-3是上上个页面以此类推。
var cityId = e.target.id;
var cityText ... |
function forLoop(array){
for(let i=0;i<array.length;i++){
console.log(`"I am ${i} strange loop${i===0 ? '':'s'}."`);
}
}
function whileLoop(n){
while(n!=0){
console.log(n);
n--;
}
} |
import CONSTANT from "../src/constants.js";
export default (description) => {
return `${description.substring(
0,
CONSTANT.DESCRIPTION_TRUNCATION_NUMBER
)}...`;
};
|
import React, { Component } from 'react';
import cognitiva from './../../../assets/img/cognitiva-logo.svg';
import cariola from './../../../assets/img/cariola-logo.svg';
import logo from './../../../assets/img/lexnova-logo.svg';
import Notification from './../../../components/Notification';
class Change extends Compo... |
var coordinate = new google.maps.LatLng(-22.907073, -43.320531);
var polyAlvorada = [
new google.maps.LatLng(-23.00084,... |
(function() {
'use strict';
angular.module('app.inicio', [
'app.inicio.router',
'app.inicio.directivas',
'app.inicio.controller'
]);
})();
|
const DB = require('./DB');
const logger = require('../modules/Logger');
const getAlgos = () => new Promise((resolve, reject) => DB.query({
sql: 'SELECT algorithm FROM algo;',
timeout: 10000,
}).then((data) => {
if (!data.results || data.results.length < 1) {
reject(new Error('查询失败'));
} else {... |
let haystack = "a",
needle = "a";
const strStr = function (haystack, needle) {
if (needle.length == 0) return 0;
if (needle.length > haystack.length) return -1;
for (let i = 0; i < haystack.length; i++) {
if (haystack[i] === needle[0]) {
let match = true;
let j = 0;
... |
Pebble.addEventListener('ready', function(e) {
console.log('Pebblekit JS ready!');
var dict = {
'MESSAGE': 'BEGIN'
};
send(dict);
});
var coords;
Pebble.addEventListener('appmessage', function(e) {
console.log('AppMessage received!');
console.log(JSON.stringify(e));
if(e['payloa... |
// ================================================================================
//
// Copyright: M.Nelson - technische Informatik
// Die Software darf unter den Bedingungen
// der APGL ( Affero Gnu Public Licence ) genutzt werden
//
// weblet: fixture/fixture/cost
// ==========... |
/**
* Created by andrewfurth on 11/7/16.
*/
var http = require('http')
var React = require('react')
var ReactDOMServer = require('react-dom/server')
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'})
res.end(
ReactDOMServer.renderToString(
React.createEle... |
"use strict";
{
function startGame() {
const userAnswer = prompt("Would you like to play the game?");
if (userAnswer === "yes") {
let userName = prompt ("What's your name?");
startCombat(userName);
}else if (userAnswer === "no") {
console.log ("Bu... |
// Select listeners
function drawLisener() {
layerContext.globalCompositeOperation = 'source-over'
layerContext.beginPath();
layerContext.arc(mousePos.x, mousePos.y, 20, 0, 2 * Math.PI, true);
layerContext.fillStyle = "#FF0000";
layerContext.fill();
layerContext.closePath();
mouseCanvas.add... |
/**
* Copyright © INOVUA TRADING.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export default ({ rowHeightManager, dragBoxInitialRegion, dragBoxOffsets, initialDiffTop, scrollTop, dragIndex, dir, }) => {
const rowOffset = dragB... |
'use strict';
const Models = require('bookshelf-model-loader');
const config = require('../config');
const _ = require('lodash');
const scrypt = require('scrypt');
const scryptParameters = {
N: 16,
r: 1,
p: 1
};
const _salt = new Buffer(config.userManager.salt);
const _keyLength = config.userManager.keyLength;
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var printmodule_1 = require("./printmodule");
var printModule = new printmodule_1.PrintModule();
printModule.printMessage('hello world');
|
import React, {Component} from 'react';
class Square extends Component {
render(){
const style = {
width: '40px',
height: '40px',
display: 'inline-block',
backgroundColor: this.props.color
};
return (<div style={style}>
<br/>
</div>);
}
}
export defaul... |
function HtmlChange() {
if ($('.k-editor-textarea').val().indexOf('<map') >= 0) {
var b = $('.k-editor-textarea').val().replace(/>\s*<map/g, '><map');
$('.k-editor-textarea').val(b);
}
}
editFunction = function (row, store) {
var editFrm = Ext.create('Ext.form.Panel', {
id: 'editFrm... |
import React, { Component } from 'react';
import './Keywords.css';
import { Tab, Grid, Segment, Input, Divider, Table, Icon, Modal, Button, Dropdown } from 'semantic-ui-react'
import TagCloud from 'react-tag-cloud';
import TimeVisitLine from '../Charts/TimeVisitLine';
import ReactHTMLTableToExcel from 'react-html-table... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsFormatPaint = {
name: 'format_paint',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3... |
import React from 'react'
import { Modal, Button } from 'antd';
import { useDispatch, useSelector } from 'react-redux'
import {
ShareAltOutlined
} from '@ant-design/icons';
import { getClickProbs } from "./hotelsSlices";
export default function AIButton() {
const dispatch = useDispatch();
const state = useSe... |
import './style'
import h from '@kuba/h'
function component (_props, children) {
return (
<footer className='pageNotFound__footer'>{children}</footer>
)
}
export default component
|
(function() {
angular.module('BackyardApp')
.controller('MainController', function($http, $state, $stateParams){
var self = this;
// var rootUrl = 'http://localhost:3000'
var rootUrl = 'https://backyardflowers-api.herokuapp.com';
//====================================================
//... |
import React from 'react';
import './App.css';
import Routes from './Routes';
import useMousePosition from './MousePosition';
function App() {
const mouseStuff = useMousePosition();
const placeX = mouseStuff[1];
const placeY = mouseStuff[2];
const divStyleP = {
display: 'none',
position: 'absolute',
... |
var app = angular.module('myApp');
/**
* @Author : Theory
* @Description : 找回密码控制器
* @type : Controller
*/
app.controller('findpwdCtrl', function ($scope, $http, $state,Data) {
$scope.currentUser = null;
$scope.nowPage = 1;
//验证手机号
$scope.verify_resetPwd = function(page){
... |
/* @flow */
import Config from 'react-native-config'
import { actionTypes } from './actions'
import type { Action } from '../types'
export const initialState = {
url: Config.API_URL,
items: [],
}
export type State = {
url: string,
items: Array<Object>,
}
const news = (state: State = initialState, action: Ac... |
const React = require('react');
const ReactDOM = require('react-dom');
let todos = [
{
task: 'React',
completed: false
},
{
task: 'express',
completed: false
},
{
task: 'javascript',
completed: true
}
];
const TodoList = React.createClass({
... |
import React from "react";
import Link from "next/link";
import content from "../components/api/contentful";
import noimg from "../components/images/no-photo.gif";
class Secondary extends React.Component {
constructor() {
super();
this.state = {
posts: []
};
}
componentDidMount() {
conte... |
/// <reference path="../RiftDataMap/RiftDataMap.js" />
$(window).load(function () {
map = new RiftDataMap();
//get species id
var localeId = $('#LocaleId').attr('value');
var speciesId = $('#SpeciesId').attr('value');
map.showInfoBoxForLocale(localeId);
map.addFishPinAtLocale(localeId, sp... |
$(document).ready(function() {
$('.carousel').carousel({
//interval:false
});
new WOW().init();
$('#toggleMenu').on('click', function () {
$("#cu-overlay").toggleClass("overlay-visible");
if ($(this).hasClass('js-open')) {
$('#headermainav > ul > li:not(#toggleMenu)').remov... |
/*******************************************************************************
* Project MCMS, all source code and data files except images,
* Copyright 2008-2015 Grit-Innovation Software Pvt. Ltd., India
*
* Permission is granted to Magma Fin Corp. to use and modify as they see fit.
****************************... |
import express from 'express'
import {
createExpression,
getExpression,
getAllExpressions,
updateExpression,
deleteExpression } from '../controllers/expressions.js'
const router = express.Router()
router.route('/')
.get(getAllExpressions)
.post(createExpression)
router.route('/:id')... |
Ext.define("cfa.store.References",{
extend : "cfa.store.Base",
storeId: 'References',
config : {
model : "cfa.model.Reference",
proxy : {
type: "ajax",
url : "data/References.csv",
reader : {
type:"csv"
}
},
sorters: 'title',
grouper: {
groupFn: function(record) {
return reco... |
var videoList;
var key = 'AIzaSyDEWWc1Ukc8xSnpi-jhYsCNQ25j-_NJE_o';
var tjopsChannelID = 'UCbA6xRbHG5U1eM-piUfHENw';
var videoTemplate = "" +
"<li id=\"video{{videoID}}\">" +
"<h1>{{title}}</h1>" +
"<p>{{{comment}}}</p>" +
"<iframe width=\"720\" height=\"360\" src=\"https://www.youtube.com/embed/{{... |
// TO DO
// Add options
var CMDMM = {};
CMDMM.g = {
'shiftStatus' : false,
'inLibrary' : true, // TRUE = right | FALSE = left
'rightFirstPress' : false,
'focusMoved' : true, // variable to remember if track selector was moved or not, if moved press will load and pl... |
import React from 'react';
import {useParams} from "react-router-dom";
import NewPassw from '../components/NewPassw';
function ResetPass() {
const { id } = useParams();
return (
<div>
<NewPassw idUser={id} />
</div>
);
}
export default ResetPass; |
const base_api = 'https://corona.lmao.ninja/v2/';
const ENDPOINT = {
WORLDLASTEST: 'all?yesterday',
COUNTRIES: 'countries?yesterday&sort'
};
var countryData;
//get world lastest data
fetch(`${base_api}${ENDPOINT.WORLDLASTEST}`)
.then(res => res.json())
.then(getWorldLastest)
.catch((err)=> console.log("Error... |
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
var todoList = [
{
id: 1,
task: 'Breakfast'
},
{
id: 2,
task: 'Lunch'
},
{
id: 3,
task: 'Dinner'
}
];
export const getTodoList = createAsyncThunk(
'todos/getTodoList',
async () => {
let todos = fetchTodoList();
return { todos }
... |
const server = require('./server');
const { port } = require('./config/config');
server.listen(port || 3333);
|
exports.run = function(client, message, args) {
message.channel.sendMessage('THEN YOU SHOULDA PUT A RING ON IT');
}
|
window.onload = init;
let vaisseau;
let canvas, ctx, canvasLargeur, CanvasHauteur;
let scoreText;
let mousepos = {};
let userState = "rien"
let jeu = null
const UPDATE_PER_SECOND = 60
function init(vaisseau,enemis,jeu) {
canvas = document.querySelector("#myCanvas");
ctx = canvas.getContext('2d');
width = ... |
import axios from "axios";
import {
GET_VID_INFO_START,
GET_VID_INFO_FAILED,
GET_VID_INFO_DONE,
} from "../Common/Download_Common.js";
export const getVidInfo = (url) => async (dispatch) => {
try {
dispatch({
type: GET_VID_INFO_START,
});
const config = {
headers: {
"Content-Type... |
class PopupEngine {
constructor(camera) {
this.camera = camera;
this.frustum = new THREE.Frustum();
this.vector = new THREE.Vector3();
this.popups = new Array();
this.display = true;
}
addPopup(htmlElementId, placeholder, target) {
this.popups.push({
... |
// Copyright (C) 2018-Present Masato Nomiyama
import React, { PureComponent } from 'react'
import { withStyles } from '@material-ui/core/styles'
import Typography from '@material-ui/core/Typography'
import { style } from '../theme'
import image from '../../img/maestro-of-time.png'
import Works, { worksStyle } from '.... |
module.exports = {
entry: './src/js/app/index.js',
output: {
path: '/Users/decolo/Desktop/Senoir-task5/www/bin',
filename: 'index.merge.js'
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}]
}... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
// gcd :: Integral a => a -> a -> a
const gcd = (x, y) => {
let _gcd = (a, b) => (b === 0 ? a : _gcd(b, a % b)),
abs = Math.abs;
return _gcd(abs(x), abs(y));
} |
import React from 'react';
import { Popup } from "./Popup";
import PropTypes from "prop-types";
import { ConfirmPopup } from './ConfirmPopup';
import { DataBase } from '../../../state/db';
import { DB_HISTORY_LIMITS } from '../../../constants';
export class HistoryPopup extends Popup {
constructor(props) {
... |
import React, {useEffect, useState, useRef} from 'react'
import LandingPageLayout from "../components/layouts/LandingPageLayout";
import $ from 'jquery';
import Link from "next/link";
import Modal from 'react-modal';
import Slider from "react-slick";
import {Collapse, Form, Button, Select, Input, Icon, Progress} fro... |
// add friend array to allow the html get request to be able to process
// the new friend array being sent from the client / browser
var FriendArray = require("../data/friends.js");
// routes ... not sure if i know what this means truly
// routes that define what the user is getting back from API calls
// that ar... |
//Problem 3. Sub-string in text
// Write a JavaScript function that finds how many times a substring is contained in a given text (perform case insensitive search).
//Example:
//The target sub-string is in
//The text is as follows: We are
//living in an yellow submarine.
//We don't have anything else. inside the s... |
function read_projects(){
$('#listTodo').empty()
$('#search_form').hide()
$('#todo_form').hide()
$('#project_link').addClass('blue-grey darken-3')
$('#mytodo_link').removeClass('blue-grey darken-3')
$('#createTodo_link').removeClass('blue-grey darken-3')
$('#create_project_link').removeClass... |
import Duration from 'duration-js'
import locale from './locale'
const second = 1e3
const minute = 6e4
const hour = 36e5
const day = 864e5
const week = 6048e5
const month = 2592e6
const year = 31536e6
const twitterFormat = instance => {
const loc = instance.$locale()
const locName = loc ? loc.name : 'en'
let d... |
var SQLiteAdapter = require("./sqlite-adapter");
var WebSQLAdapter = require("./websql-adapter");
module.exports = {
"sqlite": SQLiteAdapter,
"websql": WebSQLAdapter
}
|
export default {
currentLome: 'ឈ្មោះហាង',
contacts: 'អ្នកដែលអាចទាក់ទងបាន',
contactNumber: 'លេខទំនាក់ទំនង',
storeAddress: 'អាស័យដ្ធានហាង',
creationTime: 'ពេលវេលាបង្កើត',
province: 'ខេត្ត',
city: 'ទីក្រុង',
district: 'ខណ្ឌ',
detailedAddress: 'អាស័យដ្ធានលម្អិត',
longitude: 'រយៈបណ្តោយ',
latitud... |
tippy('#albums-live', {
theme: 'light-border',
arrow: false,
allowHTML: true,
placement: 'right',
touch: false,
maxWidth: 550,
interactive: true,
interactiveBorder: 1,
content: '<div class="article-component"><h1>Live</h1><ul><li>Bruce Hornsby & the Noisemakers, Bride of the Nois... |
const mongoose = require("mongoose");
const view_counter = new mongoose.Schema({
date: {
type: Date,
default: Date.now,
},
secure: {
type: Boolean,
},
});
const Counter = mongoose.model("Counter", view_counter);
module.exports = Counter;
|
import React from "react";
import { connect } from "react-redux";
import { getMonthName } from "../CommonFunctions/CommonFunctions";
class DashboardFilters extends React.Component {
constructor(props) {
super(props)
this.state = {
periodMonthList: [{
periodMonthId: "1",
... |
import React from "react";
import { Link } from "react-router-dom";
import TopBar from "./TopBar";
const CommentsPage = props => (
<div className="comments-page">
<h3 style={{ textAlign: "center" }}>
EMPLOYEE STRENGTH ASSESSMENT REVIEW
<Link to="/development" className="exit">×... |
'use strict'
const path = require('path')
const domapic = require('domapic-service')
const gpioIn = require('gpio-in-domapic')
const gpioOut = require('gpio-out-domapic')
const pluginConfigs = require('./lib/plugins.json')
const options = require('./lib/options')
const {
ABILITY_NAME,
RELAYS_ABILITY_NAME,
WAY... |
function myFunction() {
alert("** John Doe we have received your message. Thank you for reaching out to us. **");
}
$(document).ready(function () {
$(".design").click(function () {
$("#design-desc").toggle();
$("#fig-des").slideToggle(1000);
});
});
$(document).ready(function () {
$(".d... |
var utils = require('./Utils.js');
MyGame.Game = function(game) {
game.bulletTime = 0;
};
var self;
MyGame.Game.prototype = {
create: function() {
self = this;
game.biu = game.add.audio('biu');
game.kill1 = game.add.audio('kill_1');
game.kill2 = game.add.audio('kill_... |
// --------------------------------------------------------
// -- ask which Test Group the action should be taken on --
// --------------------------------------------------------
// jshint esversion: 6
let testGroupActions = function testGroupActions(answerTestType, matchArr, spinner, testConfig) {
let inquirer = re... |
define('main', ['application', 'blockUI','rd.controls.BasicSelector','rd.controls.Selector',
'rd.controls.FoldSelector','rd.containers.Accordion','rd.controls.Input','rd.controls.Table',
'rd.controls.TabSelect','rd.controls.ComboSelect','rd.controls.TabSelector','rd.controls.Graph',
'rd.containers.Tab','rd.contro... |
import React from 'react'
import './App.scss'
import Poles from './views/Poles'
import Home from './views/Home'
import Connections from './views/Connections'
import CheckRoute from './views/CheckRoute'
import Login from './views/Login'
import { Container } from 'react-bootstrap'
import {
BrowserRouter as Router,
Sw... |
'use strict'
const {Router} = require ('express')
const router = Router ()
const teste = `<html>
<head>
<style>
body {background: # 333; margem: 1,25 rem}
h1 {cor: #EEE; font-family: sans-serif}
</style>
</head>
<body>
<h1> Esse é o teste da nova rota!! </h1>
</body>
</html>... |
const React = require('react');
const PropTypes = require('prop-types');
const Form = require('react-jsonschema-form').default;
const UpDownWidget = require('react-jsonschema-form/lib/components/widgets/UpDownWidget').default;
const TextWidget = require('react-jsonschema-form/lib/components/widgets/TextWidget').default... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { createMilestone, updateMilestone } from "ducks/Milestones";
import {
openModal,
UPDATE_STATUS,
STATUS_HISTORY,
TEAM_ASSIGNMENT
} from "ducks/Modals";
import TeamDisplay from "containers/TeamDisplay";
import Button from "co... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _RPCServer = _interopRequireDefault(require("./RPCServer"));
var _RPCClient = _interopRequireDefault(require("./RPCCli... |
import React from "react";
import PropTypes from "prop-types";
export class VKeyboardTextInput extends React.Component {
constructor(props) {
super(props);
this.state = {
value: ''
};
}
componentWillReceiveProps(newProps) {
if (this.input.id === newProps.vkeyboar... |
function matchAttester() {
var ui = SpreadsheetApp.getUi();
var resultat = ui.prompt(
'Angi trenerliste',
'Hva heter dokumentet med trenere?',
ui.ButtonSet.OK_CANCEL);
var valgtKnapp = resultat.getSelectedButton();
if (valgtKnapp === ui.Button.OK) {
var trenerFilNavn = resultat.getRespons... |
/*global ODSA */
$(document).ready(function() {
"use strict";
var av_name = "heapsortCON";
var interpret = ODSA.UTILS.loadConfig({av_name: av_name}).interpreter;
var startArray = [73, 6, 57, 88, 60, 42, 83, 72, 48, 85];
var av = new JSAV(av_name);
var bh = av.ds.binheap(startArray,
... |
import React from "react";
import { OverviewList } from "./components/Overview";
// Will handle input field logic
// Scope of app:
// input, submit button
// add content to tasks array that is managed in state
// for each tasks array html list elem should be rendered.
// Overview will be a component that renders out t... |
const types = {
CHANGE_LAST_ID: 'CHANGE_LAST_ID'
}
const initialStore = {
last_id: 731
}
const storeReducer = (state, action) => {
switch (action.type) {
case types.CHANGE_LAST_ID:
return {
...state,
last_id: action.payload
}
default:... |
function singleNumber(nums) {
const dict = nums.reduce((accum, el) => {
accum[el] ? accum[el] += 1 : accum[el] = 1
return accum
}, {})
for (key in dict) {
if (dict[key] === 1) {
return +key
}
}
}
|
module.exports = {
steamApiKey: "6B35378F724E29B7BC91AAF77D1A892A",
jwtSecret: "superSecret",
};
|
import * as React from 'react'
const { createContext, useContext, useState } = React
const DEFAULT_GAME_CONTEXT = {
activeGame: {},
setActiveGame: () => {}
}
const GameContext = createContext(DEFAULT_GAME_CONTEXT)
export const useActiveGame = () => {
return useContext(GameContext)
}
export const GameContextP... |
require("../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/building/_components/_bullet_comments" ], {
"22b7": function(n, e, t) {
t.r(e);
var o = t("98d9"), c = t.n(o);
for (var u in o) [ "default" ].indexOf(u) < 0 && function(n) {
t.d(e, n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.