text stringlengths 2 1.04M |
|---|
import styled from 'styled-components'
export const ContactContainer = styled.section`
padding: 2rem;
display: grid;
place-items: center;
max-width: 900px;
margin: 0 auto;
p {
color: #61626d;
padding-bottom: 2rem;
text-align: start;
font-weight: 200;
line-height: 35px;
font-size: 1... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
/**
* @file rule: img-title
* @author nighca<nighca@live.cn>
*/
module.exports = {
name: 'img-title',
desc: 'Attribute "title" of <img> is not recommended to be set.',
lint: function (getCfg, document, reporter) {
document.querySelectorAll('img[title]').forEach(function (img) {
if... |
/*!
* OpenUI5
* (c) Copyright 2009-2019 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/ |
const {
details: { host },
assetDefaults: { thumbnail },
} = require('@config/siteConfig');
const chainquery = require('chainquery').default;
// const { getClaim } = require('server/lbrynet');
const { isBlocked } = require('./blockList');
module.exports = async (data, chName = null, chShortId = null) => {
// TOD... |
$(function() {
consoleInit(main)
});
const Address = [
"0x6B55416F50e0b9D255aAe7d58c46a184ACa2F7C2",
"0x49b5988d48039794f6232b44D7ed8F9bF8b6F784",
"0x8a764562AA6e2cB35E432E8dD7865A830e4d5385",
"0x1ca699086CB76235FB7FE8DB85b21834a24D08cD",
"0x6a517Ee3B83758292120cab8339B4fB670BFa21d"
]
async function mai... |
/**
* Copyright IBM Corp. 2021, 2022
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Sets the correct path (Masthead search open onload)
*
* @type {string}
* @private
*/
const _pathSearchOpenOnload = '/iframe.html?i... |
/*!
* OpenUI5
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/m/OverflowToolbarButton","sap/m/ButtonRenderer"],function(t,e){"use strict";var r=t.extend("sap.m.semantic.SemanticOverflowToolbarButton",{metadata:{... |
import React, { Component } from "react";
export class StyleVisualizer extends Component {
render() {
return (
<div className="text-center mt-5">
<div
className="fa fa-star-o"
style={{
fontSize: this.props.fontSize,
color: this.props.colorCode,
... |
import React from 'react';
import {
maxLength, NumberField,
Show, SimpleForm,
SimpleShowLayout,
TextField, TextInput,
} from '../../core';
import CityGateStationTitle from './CityGateStationTitle';
const CityGateStationDetails = props => (
<Show title={<CityGateStationTitle />} {...props}>
... |
// @ts-check
// some tools to make treating ratios as percents easier
import { makeRatio } from '../../contractSupport/index.js';
const BASIS_POINTS = 10000n;
/** @type {Make100Percent} */
export function make100Percent(brand) {
return makeRatio(BASIS_POINTS, brand, BASIS_POINTS);
}
/** @type {Make0Percent} */
e... |
var links = require('../utils/links.js');
const removeall = () => {
links.load();
Object.keys(links.data).forEach((linkId) => {
var link = links.data[linkId];
delete links.data[linkId];
console.log(`Discarded link: (${linkId}) ${link.src} -> ${link.dest}`);
});
links.save();
};
export {removeall}; |
/* eslint-disable no-restricted-syntax */
/* eslint-disable max-classes-per-file */
const cheerio = require('cheerio');
const fs = require('fs-extra');
const path = require('path');
const htmlmin = require('html-minifier');
const chalk = require('chalk');
const notifier = require('node-notifier');
const Asset = requir... |
'use strict';
const escapeRegExp = require('./escape_regexp');
const rParam = /:(\w+)/g;
function Permalink(rule, options) {
if (!rule) throw new TypeError('rule is required!');
options = options || {};
const segments = options.segments || {};
const params = [];
const regex = escapeRegExp(rule)
.repl... |
// @flow
import invariant from "invariant";
import type { CryptoCurrency, DerivationMode } from "../types";
import { asDerivationMode } from "../derivation";
export type AccountIdParams = {
type: string,
version: string,
currencyId: string,
xpubOrAddress: string,
derivationMode: DerivationMode,
};
function ... |
#! /usr/bin/env node
const { finish } = require("./operations/finish")
const { pass } = require("./operations/pass")
const { start } = require("./operations/start")
const { take } = require("./operations/take")
const { rename } = require("./operations/rename")
const { log, logError, logGuide } = require("./utils/log")
... |
'use strict';
/**
* @ngdoc component
* @name mcp.component:mp-sync-timings
* @description
* # mp-sync-timings
*/
angular.module('mobileControlPanelApp').component('mpSyncTimings', {
template: `<div class="card-pf mp-sync-timings">
<div class="card-pf-heading row">
<h2 class="col-sm... |
module.exports={A:{A:{"1":"E F A B","2":"I D gB"},B:{"2":"C J K L M N O R S T U V W X P Y Z G a"},C:{"2":"0 1 2 3 4 5 6 7 8 9 hB XB H b I D E F A B C J K L M N O c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB YB GB ZB Q HB IB JB KB LB MB NB OB PB QB RB SB TB UB aB bB R S T iB U V W X P Y Z G a jB kB"... |
/* eslint-disable no-console */
const config = require('../config')
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
}
const path = require('path')
const opn = require('opn')
const express = require('express')
const webpack = require('webpack')
const proxyMiddleware = require... |
require('dotenv').config()
export default {
chatra: {
id: process.env.CHATRA_ID,
setup: {
colors: {
buttonText: '#f600a5',
buttonBg: '#fff'
}
}
},
modules: ['nuxt-chatra-module'],
plugins: ['~/plugins/example.client'],
build: {
transpile: [({ isLegacy }) => isLegac... |
/**
* @license
* Copyright (c) 2014, 2020, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
* @ignore
*/
define(['ojs/ojcore', 'knockout', 'ojs/ojmodel'], function(oj, ko, Model)
{
"use strict";
/* global ko:false, Model:false */
/**
* @namespace oj.KnockoutUtils
* @class... |
'use strict';
const gulp = tars.packages.gulp;
const gutil = tars.packages.gutil;
const gulpif = tars.packages.gulpif;
const concat = tars.packages.concat;
const autoprefixer = tars.packages.autoprefixer;
const importify = tars.packages.importify;
const postcss = tars.packages.postcss;
const replace = tars.packages.re... |
const {Router} = require('express')
const router = Router();
const { renderIndex, renderAbout } = require('../controllers/index.controller')
router.get('/', renderIndex);
router.get('/about', renderAbout);
module.exports = router; |
import Mock from 'mockjs2'
import { builder } from '../util'
const orgTree = () => {
return builder([{
'key': 'key-01',
'title': '研发中心',
'icon': 'mail',
'children': [{
'key': 'key-01-01',
'title': '后端组',
'icon': null,
'group': false
}
]
}
// {
// 'key': 'key-02... |
"use strict";
var customLayout = function () {
function _activeNowPage(page, dataPage, className) {
document.querySelectorAll("[data-page=\"".concat(dataPage, "\"]")).forEach(function (el) {
if (el) {
try {
el.classList.add(className);
} catch (error) {}
}
});
}
ret... |
/*!
* Select2 4.0.3
* https://select2.github.io
*
* Released under the MIT license
* https://github.com/select2/select2/blob/master/LICENSE.md
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typ... |
module.exports = function(sequelize, DataTypes) {
var Trip = sequelize.define('Trip', {
author: DataTypes.STRING,
name: DataTypes.STRING,
summary: DataTypes.TEXT,
rating: {
type: DataTypes.INTEGER,
validate: {
min: 0,
max: 10
... |
import assert from 'assert'
import config from './config'
import {getConnection} from '../src'
let pgConn= undefined
describe('Postgres: Test inspectors', function() {
describe('Connection open', function() {
it('should create the database connection', function() {
pgConn = getConnection(config.db)
}... |
import { Component } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/checkbox";
import * as i2 from "@angular/common";
import * as i3 from "@angular/forms";
function CheckboxOverviewExample_li_11_Template(rf, ctx) { if (rf & 1) {
const _r3 = i0.ɵɵgetCurrentView();
... |
import styled from '@emotion/styled';
import breakpoints from '../utils/breakpoints';
export default styled('div')({
margin: '4rem 100px 2rem 100px',
[breakpoints.sm]: {
margin: '2rem 20px 2rem 20px',
},
}) |
const hashCode = (input) => {
let hash = 0;
let i;
let chr;
let len;
if (input.length === 0) return hash;
for (i = 0, len = input.length; i < len; i++) {
chr = input.charCodeAt(i);
hash = ((hash << 5) - hash) + chr;
hash |= 0; // Convert to 32bit integer
}
return hash;
};
/*
Exported func... |
import isHex from './colorMatchers/isHex';
import isHSL from './colorMatchers/isHSL';
import isRGB from './colorMatchers/isRGB';
const isColorCorrect = (color) => {
switch (true) {
case isHex(color):
return true;
case isRGB(color):
return true;
case isHSL(color):
return true;
defaul... |
/**
* Created by Kalu on 27/03/2017.createChecklistModalshowcreateDesignGenerationModal
*/
jQuery(function($){
$('.showCreateJobModal').on("click",function(){
$('#createJobModal').modal('show');
});
$('.showcreateNewNoteModal').on("click",function(){
$('#createNewNoteModal').modal('show')... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.JsSearch = {}));
}(this, (function (exports) { 'use strict';
/**
* Indexes for ... |
import immutate from "../src/immutate";
const getData = _ => ({
a: 1,
b: "test",
c: [
{
d: false
},
2,
3
]
});
describe("makes deep objects immutable", () => {
const trySet = (target, key) => {
return () => {
target[key] = null;
};
};
const proxy = immutate(getData());
it("successfully dis... |
// Socket.io NodeJS listener
var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
// Socket engine chat
var engine = require('./app/socket')(io);
// Load config
var fs = require('fs');
var config = JSON.parse(
fs.readFileSync('app/config.json', 'utf8')
);
/... |
function work()
{
setInterval(increment , 10);
}
function increment()
{
if (target_value == current_value)
{
console.log("Target reached!");
target_value = getRandomInt(0, 1000);
}
else if (target_value > current_value)
{
current_value = current_value + 1;
}
else if (target_value < current_value)
{
cu... |
export {default} from "./MovieDetailsPage" |
import { html, css, LitElement } from "lit";
import "@lrnwebcomponents/simple-fields/lib/simple-fields-field.js";
import { SimpleFieldsButtonStyles } from "./simple-fields-ui.js";
import { SimpleFieldsFieldsetBehaviors } from "./simple-fields-fieldset.js";
import "./simple-fields-url-combo.js";
import "@lrnwebcomponent... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import reducers from './reducers'
import App from './App';
import './index.css';
const store = createStore(reducers, com... |
exports.default = {
port: 3000
}; |
'use strict';
/* global Rocketbar */
(function(exports) {
/**
* HomeSearchbar is a temporary file to bridge Rocketbar search with the
* homescreen for the 2.0 release. It handles message passing between the two
* and can be removed when we have the full rocketbar.
* @class HomeSearchbar
*/
function... |
/* Remove all exclamation marks from sentence but ensure a exclamation mark at the end of string.
For a beginner kata, you can assume that the input data is always a non empty string, no need to verify it.
Examples:
remove("Hi!") === "Hi!"
remove("Hi!!!") === "Hi!"
remove("!Hi") === "Hi!"
remove("!Hi!") === "Hi!"
rem... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
Cypress.Commands.add('uiInviteMemberToCurrentTeam', (username) => {
// # Open member invite screen
cy.get('#sidebarHeaderDropdownButton').should('be.visible').click();
cy.get('#invitePeople > but... |
// modules
import React, { useState, useEffect } from 'react';
import { Redirect, Link } from 'react-router-dom';
import { connect } from 'react-redux';
import axios from 'axios';
import swal from 'sweetalert';
// helpers
import getAllUsers from '../../utils/getAllUsers';
import getUserRating from '../../utils/getUser... |
export class NotificationsView {
constructor() {
window.EE.on("showNotification", this.render, this)
}
render(payload) {
let { notification, data } = payload
if (notification.type === "price") {
this.renderPriceNotification(notification, data)
} else {
... |
//globals define
define(function(require, exports, module) {
'use strict';
// import dependencies
var Engine = require('famous/core/Engine');
var View = require('famous/core/View');
var Surface = require('famous/core/Surface');
var Modifier = require('famous/co... |
export default function colorModeOptions() {
const colorOptions = [
{
value: 'auto',
translation: 'Common.Auto',
},
{
value: 'primary',
translation: 'properties.colorMode.primary',
},
{
value: 'byDimension',
translation: 'properties.colorMode.byDimension',
}... |
// Import System requirements
import Vue from 'vue'
import Resource from 'vue-resource'
import VueRouter from 'vue-router'
import 'font-awesome/css/font-awesome.css'
import 'npm-font-source-sans-pro/source-sans-pro.css'
import routes from './routes'
import store from './store'
import ToggleButton from 'vue-js-toggle... |
import React from 'react'
const Footer = () => {
return (
<footer>
footer
</footer>
)
}
export default Footer |
const SlidingWindowTimestams = require('./sliding-window-timestamps')
class RateLimitedQueue {
constructor(limitCount, limitInterval, nowFn = Date.now) {
this.limitCount = limitCount
this.limitInterval = limitInterval
this.nowFn = nowFn
this.queue = []
this.nextCallScheduled = false
this.tim... |
import React from 'react';
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyI... |
import React from 'react';
import { observer, inject } from 'mobx-react';
@inject('app')
@observer
class PageView extends React.Component {
componentDidMount() {
const { app, track } = this.props;
app.trackPageView(track);
}
render() {
const { children } = this.props;
return <React.Fragment>{chi... |
import React from "react";
import { LazyRemote } from "./lazy.remote";
function App() {
const [system, setSystem] = React.useState(undefined);
function setApp2() {
setSystem("app2");
}
function setApp3() {
setSystem("app3");
}
function setApp3Home() {
setSystem("app3Home");
}
return (
... |
'use strict';
let crude = require('crude-server');
let url = require('url');
let {
getFileContent,
setFileContent,
getDirectoryContent
} = require('../filer');
let reqBody = require('./reqBody');
let log = console.log; // eslint-disable-line
module.exports = () => {
return crude((pathname, reqUrl) => ... |
isClient && define((require, exports, module)=>{
'use strict';
/**
* A Subscription is a abstract interface for subscribing to publications.
*
* See also {#../publication}
**/
const koru = require('koru');
const Model = require('koru/model');
const BaseModel = require('k... |
/*
* /MathJax/localization/uk/MathMenu.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* 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/licen... |
import React, {Component, PropTypes} from 'react'
import {connect} from 'react-redux'
import Layout from 'layouts/Layout'
import BackButton from 'layouts/BackButton'
import Link from 'layouts/Link'
import LocateMeButton from 'layouts/LocateMeButton'
import {paths} from 'routes'
import CurrentPage from './CurrentPage'... |
export const col_business = [
{
type: 'index',
width: 60,
align: 'center'
},
{
type: 'selection',
width: 60,
align: 'center'
},
{
title: '经商办企业人员姓名',
key: 'companyFounderName',
tooltip: true
},
{
title: '关系',
key: 'relation',
tooltip: true
},
{
title... |
// This file seeds the database with some initial data to insert.
exports.seed = function(knex) {
// delete all users, before creating some
return knex('users').del()
.then(() => {
return knex('users').insert([
{
id: 1,
name: "Lisa",
points: 1000
},
{... |
import { typeNumber } from "./utils";
import { currentOwner } from './vdom'
const RESERVED_PROPS = {
ref: true,
key: true,
__self: true,
__source: true,
}
function Vnode(type, props, key, ref) {
this.owner = currentOwner.cur
this.type = type
this.props = props
this.key = key
this... |
/**
* Copyright 2015 Google Inc. 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 appli... |
var app = angular.module('cl01bApp');
app.factory('ProductoSrv', function($http) {
function list(f){
$http.post('http://ec2-52-90-252-132.compute-1.amazonaws.com:7777/papi/productos/lst', {})
.then(function(res) {
f(res.data);
});
}
function detail(id, f){
$http.get('http://ec2-52-90-252-... |
var specs = [//
'CesiumSensorSpecs/ConicSensorGraphicsSpec', //
'CesiumSensorSpecs/ConicSensorVisualizerSpec', //
'CesiumSensorSpecs/CustomPatternSensorGraphicsSpec', //
'CesiumSensorSpecs/CustomPatternSensorVisualizerSpec', //
'CesiumSensorSpecs/RectangularSensorGraphicsSpec', //
'CesiumSensorSpecs/RectangularSensorVi... |
import React from "react";
import { BrowserRouter as Router } from "react-router-dom";
import { render } from "@testing-library/react";
import App from "./App";
test("renders gigapet link", () => {
const { getByText } = render(
<Router>
<App />
</Router>
);
const linkElement = getByText(/gigapet/i)... |
/*
* node-rdkafka - Node.js wrapper for RdKafka C/C++ library
*
* Copyright (c) 2016 Blizzard Entertainment
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE.txt file for details.
*/
module.exports = LibrdKafkaError;
var util = require('util');
var librdka... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _utils = require('../utils');
var _lodash = require('lodash');
exports['default'] = function (deprecations) {
return function (settings) {
var log = arguments.length <= 1 || arguments[1] === undefined ? _lodash.noop : arguments... |
// const arr = [1, 2, 3, [1.1, 1.2, [2.1, 2.2, [3.1, 3.2]]], 5, 6];
function createList(array) {
const $list = document.createElement('ul');
for (let i = 0; i < array.length; i++) {
const $item = document.createElement('li');
if (Array.isArray(array[i])) {
$item.appendChild(createLi... |
function log(arr) {
for(let number of arr){
console.log(Math.log2(number));
}
}
log([4, 8, 1, 1024, 256]); |
Dark_EnableDialogIdentifier = "Dark_Enable_Dialog";
Dark_PageDialogIdentifier = "Dark_Page_Dialog";
Dark_EnabledCheckboxIdentifier = "Header_Dark_Checkbox_Enabled";
Dark_DisableCheckboxdIdentifier = "Header_Dark_Checkbox_Disabled";
Dark_PageAttribute = "dark_DarkPage";
Dark_ModeBehaviourAttribute = "data-dark_DarkMod... |
import Layout from '../../components/Layout';
import Header from '../../components/Header';
import theme from '../../theme/theme';
import Head from 'next/head';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
export default () => (
<Layout>
<Head>
<title>Hacktoberfest</title>
</Head>
... |
const BaseController = require('./base.controller')
const mongoose = require('mongoose')
const { queryDB } = require('../../config/dev/db_mysql')
const { getRowsPagination, isEmpty, getStateMessage } = require('../validator/validator')
var md5 = require('md5');
class UserController extends BaseController {
construct... |
var webpackVersionComponents = require('webpack/package.json').version.split(
'.'
);
var webpackVersionMajor = Number(webpackVersionComponents[0]);
var webpackVersionMinor = Number(webpackVersionComponents[0]);
module.exports.skip = function skip() {
return (
webpackVersionMajor < 4 ||
(webpackVersionMajor... |
// */app/routes/stats/_stats.router.js*
// ## Stats API object
// Load the `Stats` model
import Stats from '../models/stats.model';
// Load the `Summoner` model
import Summoner from '../models/summoner.model';
import * as leaguetn from 'league-typenode';
const tn : leaguetb.LeagueTypenode = new leaguetn.LeagueTypen... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const __chunk_1 = require('./chunk-5137b566.js');
require('./chunk-d8847c1c.js');
const __chunk_5 = require('./chunk-153bf688.js');
const __chunk_7 = require('./chunk-ddb8d8a0.js');
const __chunk_10 = require('./chunk-a7d83dba.js');
/**
* ... |
const express = require('express')
const router = express.Router()
/* GET home page. */
router.get('/', function (req, res) {
res.send('Gitlab LDAP User Sync')
})
router.get('/favicon.ico', (req, res) => res.status(204))
module.exports = router |
export function showMeOrThem(element, profil) {
const func = profil.estMonProfil() ? showMe : showThem
Array.from(element.querySelectorAll('.me')).forEach(func)
}
function showMe(meElement) {
showElement(meElement)
hideElement(meElement.nextSibling)
}
function showThem(themElement) {
hideElement(t... |
$('.new-memo').click(function(){
$(".memo-down").toggle();
});
$(".memo-down").mouseleave(function(){
$(this).hide();
});
$('.datetimepicker12').datetimepicker({
inline: true,
sideBySide: true
// altField:"#txtDateOther"
}); |
var inherits = require('inherits');
var TwisterResource = require('./TwisterResource.js');
/**
* Describes the profile of a {@link TwisterUser}.
* @class
*/
var TwisterProfile = function (name,scope) {
TwisterResource.call(this,name,scope);
this._type = "profile";
}
inherits(TwisterProfile... |
const express = require('express');
const router = express.Router();
const fs = require('fs');
const getFilteredDataFromInstagram = require('../getFilteredDataInstagram');
// function imports
const getUsersInfoChangeList = require('../getUsersInfoChangeList');
const saveProfilePicsToFolder = require('../saveProfilePic... |
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(
module.exports = {
title: 'RNUILib',
... |
/**
* TabPane 用户列表
* @Date: 2017-02-10 21:57:25
* @Last Modified by: Administrator
* @Last Modified time: 2017-03-31 08:19:01
*/
'use strict';
import React from 'react';
import { Icon, SearchBar, List } from 'antd-mobile';
import { Img, AppListView } from 'components';
const prefixCls = 'pages-index__index__me... |
import * as utils from '../utils'
const defaultXhrErrorHandler = utils.noop()
export default function (httpOptions, response, resolve, reject, options) {
let noErrorHandler = options.noErrorHandler
let httpErrorHandler = options.httpErrorHandler || defaultXhrErrorHandler
let httpErrorHandlerOptions = options.htt... |
var callbackArguments = [];
var argument1 = "jz";
var argument2 = 1.0951589405394751e+308;
var argument3 = [969,714,100,59,157,823,49,242,-1];
var base_0 = [607,618,213,823,705]
var r_0= undefined
try {
r_0 = base_0.find(argument1,argument2,argument3)
}
catch(e) {
r_0= "Error"
}
function serialize(array){
return array.... |
import React from "react";
import { Switch, Route } from "react-router";
export default (
<Switch>
<Route path="/" />
<Route />
</Switch>
); |
// Copyright 2014 Samsung Electronics Co., Ltd.
//
// 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 la... |
const assert = require('assert');
const data = require('./fixture/simple');
const query = require('../src');
describe('method', () => {
function createExtraFn() {
const calls = [];
return {
calls,
log: function() {
calls.push([...arguments]);
}
... |
const randomstring = require('randomstring')
const perms = require('./permissionController')
const utils = require('./utilsController')
const config = require('./../config')
const logger = require('./../logger')
const db = require('knex')(config.database)
const self = {
tokenLength: 64,
tokenMaxTries: 3,
onHold:... |
$(document).ready(function(){
$("#serialize").click(function(){
var myobj = {Name:$("#Name").val(),Comment:$("#Comment").val()};
jobj = JSON.stringify(myobj);
$("#json").text(jobj);
var url = "comment";
$.ajax({
url:url,
type: "POST",
data: jobj,
contentType: "application/json;... |
import React from 'react';
const AddResearchModal = () => {
return <div></div>;
};
export default AddResearchModal; |
const dev = {
STRIPE_KEY: "pk_test_NLfK1RGX2FVbsmhugG6nbkwW",
s3: {
REGION: "us-east-1",
BUCKET: "notes-app-2-api-dev-attachmentsbucket-1roue731z7sqf"
},
apiGateway: {
REGION: "us-east-1",
URL: "https://n5tli2bauj.execute-api.us-east-1.amazonaws.com/dev"
},
cognito: {
REGION: "us-east-1"... |
var localization = {
en: {
"Color": "Color",
"Opacity": "Opacity",
"Angle": "Angle",
"Distance": "Distance",
"Spread": "Spread",
"Size": "Size",
"DropShadow": "Drop Shadow",
"InnerShadow": "Inner Shadow",
... |
"use strict";
const randomIntegerFromInterval = (min, max) => {
return Math.floor(Math.random() * (max - min + 1) + min);
};
const makeTransaction = transaction => {
return new Promise((resolve, reject) => {
const delay = randomIntegerFromInterval(200, 500);
setTimeout(() => {
const canProcess = Math.... |
function validation() {
var pass1 = document.signupForm.userPassword;
var pass2 = document.signupForm.userPassword2;
var name = document.signupForm.userFirst_name;
var name2 = document.signupForm.userLast_name;
var email = document.signupForm.userEmail;
var number = document.signupForm.userPhone;
var chec... |
export * from './HomePage'
export * from './ChallengeListPage'
export * from './ProfilePage'
export * from './ChallengeDetailsPage' |
"use strict";
exports.default = void 0;
var _base = _interopRequireDefault(require("./base"));
var _observer = _interopRequireDefault(require("./observer"));
var _extend = require("../../core/utils/extend");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var eventM... |
const chai = require('chai');
const expect = chai.expect;
const injectEntryPoint = require('../../../../src/assembler/preprocessor/stages/inject-entry-point');
const ins = [
'.data',
'.abc string 123',
'.def 42',
'.text',
'.global main:',
'main:',
'hlt'
];
describe('assembler/preprocessor/stages/inject... |
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
// javascript for common time and date functions
/* jshint esversion: 6 */
var DateTime = (function () {
return {
utc2local: function (utc_date) {
var local = null,
utc;
if (utc_date) {
utc = moment.utc(utc_date).toDate();
local = mom... |
import React from "react"
import styled from "styled-components"
// import Button from "../button"
import "./Contact.css"
import { contactme } from "../../lotties/contact"
import Lottie from "../lottie"
const Container = styled.div`
margin-top: 150px;
margin-bottom: 0px;
padding-bottom: 0;
position: relative... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.