text stringlengths 2 1.04M |
|---|
import storage from 'redux-persist/lib/storage'; // defaults to localStorage for web
import { persistReducer } from 'redux-persist';
import { combineReducers } from 'redux';
import projects from './projectReducer';
import marketplace from './marketplaceReducer';
import branches from './branchesReducer';
import jobs fro... |
"use strict";
const express = require("express");
const path = require("path");
const serverless = require("serverless-http");
const app = express();
const bodyParser = require("body-parser");
const morgan = require("morgan");
const router = express.Router();
router.get("/", (req, res) => {
res.writeHead(200, { "Con... |
const express = require('express');
const app = express();
var bodyParser = require('body-parser');
var pinArray = [];
app.use(bodyParser.json());
app.use(function (req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Typ... |
import CreateShapes from "./CreateShapes.js";
class PlayerShape extends CreateShapes {
constructor(
xcord,
ycord,
widthOrRadius,
height,
startAngle,
endAngle,
speed,
bgColor,
strokeColor,
canvasContext
) {
super(
xcord,
ycord,
widthOrRadius,
heigh... |
import { addBooleanParameter, addDefaultParameter } from '@ovh-ux/ui-kit.core/src/js/component-utils';
export default class {
constructor($attrs, $element, $timeout) {
'ngInject';
this.$attrs = $attrs;
this.$element = $element;
this.$timeout = $timeout;
}
$onInit() {
addBooleanParameter(thi... |
import React from 'react'
import Card from 'grommet/components/Card'
import Anchor from 'grommet/components/Anchor'
export default class FeatureCard extends React.PureComponent {
render(){
const {cardImg, label, heading, description, link, linkLabel} = this.props;
return (
<div className="card">
... |
"use strict";require('dotenv').config();
// Arquivo de configuração dos dados da base de dados
module.exports = {
dialect: 'mariadb',
host: process.env.DATABASE_HOST,
port: process.env.DATABASE_PORT,
username: process.env.DATABASE_USERNAME,
password: process.env.DATABASE_PASSWORD,
database: process.env.DAT... |
// validate analyzer is behaving as expected
var tape = require('tape'),
elastictest = require('elastictest'),
schema = require('../schema'),
punctuation = require('../punctuation');
module.exports.tests = {};
module.exports.tests.analyze = function(test, common){
test( 'analyze', function(t){
var... |
define(["config", "common", "g_UnmannedCarData"], function (con, com, g_UnmannedCarData) {
/****************************无人车图层****************************/
return {
UnmannedCarPOIIcon: "Texture/common/wurenche.png",
UnmannedCarPOIIcon_hover: "Texture/common/wurenche_hover.png",
RouterPoi... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
|
$(function () {
$('#remove-file-upload').hide()
if (/Android|webOS|iPhone|iPod|iPad|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
document.getElementById('choose-file').innerHTML = 'Capture image'
document.getElementById('device').innerHTML = 'Capturing using the camera on your tablet or pho... |
const { Schema, model } = require("mongoose")
const SubscriptionSchema = new Schema({
endpoint: String,
expirationTime: String,
keys: Object
})
module.exports = model('subscription', SubscriptionSchema) |
"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.15.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _index = _interopRequireDefault(require("../../isMatch/index.js"));
var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js"));
function _interopRequireDefault(obj) { return obj && obj.__e... |
/*
* Turn on debugging by setting DEBUG in app.js
*/
'use strict';
app.controller('ingestStatusController', function ($scope, $routeParams, database, navigation, formatting) {
var servers;// list of servers from database
// TODO: dynamic
var defaultServer = "UCSD"; // default server dropdown option
... |
import React from 'react';
import styles from './../styles/createContractForm.module.css';
import { connect } from 'react-redux';
import { updateExpDate, updateRecipient, updateSponsor, setupWeb3 } from './../reducers/web3Connect.js';
import 'react-datepicker/dist/react-datepicker.css';
import DatePicker from 'react-da... |
/*=============================================================
Authour URL: www.designbootstrap.com
http://www.designbootstrap.com/
License: MIT
http://opensource.org/licenses/MIT
100% Free To use For Personal And Commercial Use.
IN EXCHANGE JUST TELL PEOPLE ABOUT THIS WEBSITE
====... |
import Styled, { keyframes } from 'styled-components'
const moveLeft = keyframes`
from {
opacity: 0;
transform: translateX(-100px);
}
to {
opacity: 1;
transform: translate(0);
}
`
export const moveRight = keyframes`
from {
opacity: 0;
transform: translateX(100px);
}
to {
o... |
import axios from "axios";
export default {
user: {
login: credentials =>
axios.post("/auth", { credentials }).then(res => res.data.user),
signup: user =>
axios.post("/user", { user }).then(res => res.data.user),
confirm: token =>
axios.post("/auth/confirm", { token }).then(res => res.d... |
import Router from 'next/router'
import PropTypes from 'prop-types'
import React from 'react'
import { format, parse } from 'url'
import DocsNavbarDesktop from '../components/docs/navbar/desktop'
import DocsNavbarMobile from '../components/docs/navbar/mobile'
import DocsNavbarToggle from '../components/docs/navbar/togg... |
var chain = require('./chain');
/**
* Enables explicit method chaining on the wrapper object.
*
* @name chain
* @memberOf _
* @category Chain
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
*
* var users = [
* { 'user': 'barney', 'age': 36 },
* { 'user': 'fred', 'age': 40 }
... |
var requestify = require('requestify');
var _ = require('underscore');
var cookieStore = {}
function parseCookies(request) {
var list = {},
rc = request.headers['set-cookie'];;
rc && rc.forEach(function (cookie) {
var parts = cookie.split('=');
list[parts.shift()] = parts.shift().split(... |
const React = require('react');
function Footer(props){
if(!props.isLoading)
return(
<div className="footer">
<div className="footer-content">
{props.content}
<span>
<a className="instagram" href="https://www.instagram.com/">
</a>
<a className="twitter" href="https://twitt... |
UE.registerUI('combox',function(editor,uiName){
//注冊按鈕執行時的command命令,用uiName作為command名字,使用命令默認就會帶有回退操作
editor.registerCommand(uiName,{
execCommand:function(cmdName,value){
//這里借用fontsize的命令
this.execCommand('fontsize',value + 'px')
},
queryCommandValue:function(){
... |
import useDrag from '../dist/shared/internal_hooks/useDrag';
// TODO: test this hook
describe('useDrag hook', () => {
it('should be a function', () => {
expect(useDrag).to.be.a('function');
});
}); |
describe('Testing decorators implementation', function() {
beforeEach(function() {
Nox('Sale', function(sale) {
sale.fn.initialize = function(price) {
this.price = price;
};
sale.fn.getPrice = function() {
return this.price;
};
});
});
afterEach(function() {
v... |
const mongoose = require('mongoose');
const { Schema } = mongoose;
const userSchema = new Schema({
username: {
type: String,
required: true,
unique: true,
trim: true,
minlength: 3,
},
}, {
timestamps: true,
});
const User = mongoose.model('User', userSchema);
module.exports = User; |
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 351:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object... |
import { RelativeTime } from './relativeTime';
import { SignalBindingBehavior } from 'aurelia-templating-resources';
import { ValueConverter } from 'aurelia-binding';
export class RtValueConverter {
static inject() { return [RelativeTime]; }
constructor(relativeTime) {
this.service = relativeTime;
}
toVie... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[235],{252:function(t,e,r){"use strict";function o(t,e){
/*!
whatwg-fetch, 2.0.3
https://github.com/github/fetch
Copyright (c) 2014-2016 GitHub, Inc. - MIT License
*/ |
/**
* @param matrix: the given matrix
* @return: True if and only if the matrix is Toeplitz
*/
const isToeplitzMatrix = function (matrix) {
if (!matrix.length) {
return true;
}
const M = matrix.length;
const N = matrix[0].length;
for (let i = 0; i < M; i++) {
const node = matrix[i... |
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {Form, Button, Grid, Card, Label} from 'semantic-ui-react'
import {Link} from 'react-router-dom'
import {updateUserInfo} from '../store/user'
import {auth} from '../store'
import {convertPhoneNumber} from '../../utils'
const mapDispatchT... |
import { URLSearchParams } from "url";
import currentQuarter from "../../../utils/currentQuarter.js";
export default async function (fastify) {
fastify.get(
"",
{
schema: {
description: "Terms of current year",
querystring: fastify.getSchema("domain"),
response: {
200:... |
webpackJsonp([5],{0:function(n,c){n.exports=window.jQuery},ezVM:function(n,c,e){"use strict";(function(n){e("xe4v"),n(function(){})}).call(c,e(0))}},["ezVM"]); |
/*!
* objects.js - OIDs encoding for javascript
* Copyright (c) 2018, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bcrypto
*
* Resources:
* https://www.ietf.org/rfc/rfc2459.txt
* https://tools.ietf.org/html/rfc3279
* http://oid-info.com/get/1.2.840.10040.4
* http://oid-info.com/get... |
const Scraper = require('../scrape/transcriptScraper');
Scraper.scrapePDF(process.argv[2]); |
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
import React from 'react';
import styled from 'styled-components';
export var Flushed = sty... |
"use strict";module.exports=function(a){a.Doughnut=function(c,b){b.type="doughnut";return new a(c,b)}}; |
module.exports = {
moduleFileExtensions: [
'js',
'json',
'vue'
],
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub'
},
transformIgnorePatterns: [
... |
var webpack = require('webpack');
module.exports = function (opts) {
'use strict';
var PROJECT_PATH = opts.PROJECT_PATH;
var CMS_VERSION = opts.CMS_VERSION;
var debug = opts.debug;
var baseConfig = {
devtool: false,
watch: !!opts.watch,
entry: {
// CMS frontend... |
/**
* @overview datejs
* @version 1.0.0-rc3
* @author Gregory Wild-Smith <gregory@wild-smith.com>
* @copyright 2014 Gregory Wild-Smith
* @license MIT
* @homepage https://github.com/abritinthebay/datejs
*/
/*
2014 Gregory Wild-Smith
@license MIT
@homepage https://github.com/abritinthebay/datejs
2014 Gregory ... |
const fs = require('fs');
const { equals } = require('ramda');
// eslint-disable-next-line import/no-extraneous-dependencies
const { parse } = require('comment-json');
const { logThenThrow } = require('./util');
////////////////////////////////////////////////////////////////////////////////
// LOCALES
const local... |
/*
* grunt-csssplit
* https://github.com/robotlovesyou/grunt-csssplit
*
* Copyright (c) 2014 Andrew Smith
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js... |
const express = require("express");
const bodyParser = require("body-parser");
const axios = require("axios");
const app = express();
app.use(bodyParser.json());
app.post("/events", async (req, res) => {
const { type, data } = req.body;
if (type === "CommentCreated") {
const status = data.content.includes("or... |
const User = require('../models/UserModel');
const jwt = require('jsonwebtoken');
const userInfo = (req, res) => {
const userData = req.userData;
res.json(userData);
}
const addUser = async (req, res) => {
const newUser = new User(req.body);
newUser.save((err, user) => {
if (err) {
return res.send(e... |
module.exports = {
check_user: (post_user, user_id) => {
if(post_user === user_id){
return true;
}
return false;
},
format_date: date => {
return `${new Date(date).getMonth() + 1}/${new Date(date).getDate()}/${new Date(
date
).getFullYear()}`;
... |
import React from "react"
import Layout from '../Components/layout'
const AboutPage = () => {
return (
<Layout>
<h3>This is the About Us Page</h3>
</Layout>
)
}
export default AboutPage |
'use strict'
/**
* @typedef {Object} Model Domain entity/service object - conforms to `ModelSpecification`
* @property {string} Symbol_id - immutable/private model instance uuid
* @property {string} Symbol_modelName - immutable/private model name
* @property {number} Symbol_createTime - immutable/private time of c... |
window.onscroll = function() {myFunction()};
// Get the header
let header = document.getElementById("myHeader");
// Get the offset position of the navbar
let sticky = header.offsetTop;
// Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
functio... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["admin-components/Loading"],{
/***/ "./webpack-app/helpers/DayJSHelper.js":
/*!********************************************!*\
!*** ./webpack-app/helpers/DayJSHelper.js ***!
\********************************************/
/*! exports provided: default *... |
",")};return[encodeURIComponent(a.g).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.a?"/am="+e(a.a):"",a.c?"/rs="+e(a.c):"",a.f?"/t="+e(a.f):"","/cb=",e(c)].join("")},ja=function(a){"/"!==a.charAt(0)&&Q("relative path");for(var b=a.substring(1).split("/")... |
var fs = require('fs');
var request = require('request');
var PNG = require('pngjs').PNG;
var stats = ["HP","MP","ATK","DEF","MAG","SPR"];
var elements = ["fire", "ice", "lightning", "water", "wind", "earth", "light", "dark"];
var ailments = ["poison", "blind", "sleep", "silence", "paralysis", "confuse", "disease", "... |
define(["require", "exports"], function(require, exports) {
(function (a) {
(function (weekend) {
weekend[weekend["Friday"] = 0] = "Friday";
weekend[weekend["Saturday"] = 1] = "Saturday";
weekend[weekend["Sunday"] = 2] = "Sunday";
})(a.weekend || (a.weekend = {}))... |
define({"topics" : [{"title":"Processing Mode","href":"datacollector\/UserGuide\/Origins\/OPCUAClient.html#concept_nbk_mkc_h1b","attributes": {"data-id":"concept_nbk_mkc_h1b",},"menu": {"hasChildren":false,},"tocID":"concept_nbk_mkc_h1b-d46e72048","topics":[]},{"title":"Providing NodeIds","href":"datacollector\/UserGui... |
NDSearch.OnPrefixDataLoaded("_is",["Function"],[["_is_range_valid_index",,[["SkinBone",,,,0,"File:lib/SkinBone.ms:SkinBone._is_range_valid_index","MXSClass:SkinBone:_is_range_valid_index"]]]]); |
var path = require("path");
var webpack = require("webpack");
var HtmlWebpackPlugin = require("html-webpack-plugin");
let HtmlWebpackTagsPlugin = require("html-webpack-tags-plugin");
let ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
let { matchCssRule, matchFontsRule, matchTsRule } = require(... |
var class_ubiquity_1_1annotations_1_1_many_to_many_annotation =
[
[ "$inversedBy", "class_ubiquity_1_1annotations_1_1_many_to_many_annotation.html#affdd9d27a393d5b0e4a5efc03d488ea5", null ],
[ "$mappedBy", "class_ubiquity_1_1annotations_1_1_many_to_many_annotation.html#a1c4bf934691a992fa08cdcb67ed7a945", null ]... |
module.exports={A:{A:{"2":"M D H mB","132":"F A B"},B:{"1":"C E q L O I J K"},C:{"1":"0 1 2 3 4 6 8 9 O I J P Q R S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z LB BB CB DB EB FB HB IB JB","2":"jB AB","260":"5 G M D H F A B C E q L dB cB"},D:{"1":"0 1 2 3 4 6 8 9 Z a b c d f g h i j k l m n o p N r s... |
import styled, { css } from 'styled-components';
import defaultTheme from '../theme';
const StyledModal = styled.div`
${props =>
props.style &&
css`
${props.style};
`};
`;
StyledModal.defaultProps = {
theme: defaultTheme,
};
export { StyledModal }; |
import React from 'react';
import { MapContainer, Marker, Popup, TileLayer } from "react-leaflet";
import { Icon } from "leaflet";
import icon from './food-truck-icon.svg'; //courtesy of Freepik. thank you!
import './Basemap.css';
/// DEFAULT Settings
const mapCenter = [40.72611, -73.99883]; //lat, lng
const defaultZo... |
import Loadable from 'react-loadable';
export default Loadable({
loader: () => import('./CoinMng'),
loading: () => true
}); |
'use strict';
define(['app'], function (app) {
app.config(['$httpProvider', function ($httpProvider) {
var injectParams = ['$q', '$rootScope'];
var httpInterceptor401 = function ($q, $rootScope) {
var success = function (response) {
return response;
};
... |
var npmBump = require('npm-bump');
// https://www.npmjs.com/package/npm-bump
//major, minor and patch
npmBump('patch'); |
import Post from './post'
import Category from './category'
import LifeCycleHooks from './hooks/lifeCycle'
import Recept from './recipe'
class CMS {
constructor(axios = false) {
this.name = 'Netlify'
this.slug = 'netlify'
this.post = new Post(axios)
this.category = new Category(axios)
this.recipe... |
/*!
* 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/ui/core/Control',
'sap/ui/core/IconPool',
'sap/ui/core/delegate/ItemNavigation',
'sap/ui/base/ManagedObject',
'sap/ui/core/delegate/ScrollEnab... |
app.controller("SearchController", function($scope, Repos, $http, $location,Quota) {
$scope.repos = Repos;
$scope.search = function (){
$scope.repos.update();
$location.path('/');
$location.search('q',$scope.repos.searchText)
}
$scope.update = function(){
if(Quo... |
"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... |
import test from 'ava';
import {reduce} from '../../lib/array/reduce';
test('reduce() folds over an array', async t => {
const a = [1, 2, 3, 4];
const s = (acc, e) => acc + e;
t.is(reduce(a, s), 10);
t.is(reduce(a, s, 5), 15);
});
test('reduce() does nothing if no array is given', async t => {
t.is(reduce(... |
import React, { Component } from "react";
import formatCurrency from "../util";
import Fade from "react-reveal/Fade";
import Modal from "react-modal";
import Zoom from "react-reveal/Zoom";
import { connect } from "react-redux";
import { fetchProducts } from "../actions/productActions";
import { addToCart } from "../ac... |
/*
jQWidgets v4.1.2 (2016-Apr)
Copyright (c) 2011-2016 jQWidgets.
License: http://jqwidgets.com/license/
*/
|
module.exports = {
plugins: {
autoprefixer: {},
"postcss-px2rem-exclude": {
"remUnit": 19.2,
"exclude": /reset.css|element-ui/
}
}
} |
layui.use('laydate', function () {
var laydate = layui.laydate;
laydate.render({
elem: '#createdAt',
value: new Date()
});
});
// 表单提交
layui.use('form', function () {
var form = layui.form;
// 表单验证
// form.verify({
// username: function (value) {
// if (value.length < 5 || value.length >... |
export const formDataSchema = {
org: [],
code: '',
status: [],
reason: [],
}; |
/**
* request 网络请求工具
* 更详细的 api 文档: https://github.com/umijs/umi-request
*/
import { extend } from 'umi-request';
import { notification } from 'minigui-vue';
const codeMessage = {
200: '服务器成功返回请求的数据。',
201: '新建或修改数据成功。',
202: '一个请求已经进入后台排队(异步任务)。',
204: '删除数据成功。',
400: '发出的请求有错误,服务器没有进行新建或修改数据的操作。',
401... |
function refreshTagSelect(selectId, type) {
var select = document.getElementById(selectId);
if (select != null) {
displayTagSelect(getSelectTitle(select), selectId, type);
}
}
function callOnChangeFunction(selectId, onChangeFunction) {
var select = document.getElementById(selectId);
var value = select[sel... |
import {
getBusinessObject
} from 'bpmn-js/lib/util/ModelUtil';
import {
sortBy
} from 'min-dash';
import {
TextFieldEntry,
isSelectEntryEdited,
isTextFieldEntryEdited
} from '@bpmn-io/properties-panel';
import ReferenceSelect from '../../../entries/ReferenceSelect';
import {
useService
} from '../../../... |
// @flow
import React, { useLayoutEffect, useState } from "react";
import useUploadyContext from "../hooks/useUploadyContext";
import type { Node } from "React";
import type { BatchItem } from "@rpldy/shared";
import type { CreateOptions } from "@rpldy/uploader";
export type RequestUpdater = ({ items: BatchItem, opti... |
import jwt from 'jsonwebtoken';
export const authenticate = (req, res, next) => {
try {
const token = req.headers.authorization.split(' ')[1];
const decoded = jwt.verify(token, process.env.JWT_SECRET);
req.userData = decoded;
next();
} catch (err) {
res.status(401).json({ message: 'Authenticat... |
/* ********************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer.mozilla.org... |
const { environment } = require('@rails/webpacker')
module.exports = environment
const webpack = require('webpack')
environment.plugins.append(
'Provide',
new webpack.ProvidePlugin({
$: 'jquery/src/jquery',
jQuery: 'jquery/src/jquery',
Popper: ['popper.js', 'default']
})
) |
'use strict';
var five = require('johnny-five');
var myBoard = new five.Board();
var cfg = {
id: 'Analog test',
pin: 'A5',
type: 'analog',
range: [0, 1023],
freq: 1000
};
function readCallback1(val, more) {
/* jshint validthis:true */
console.log('read callback 1 with:', val, more, this.id, this.value);
... |
'use babel';
import React from 'react'
import IconBase from './IconBase'
export default function Emoji_1f985(props) {
return (
<IconBase viewBox="0 0 64 64" {...props}>
</IconBase>
);
} |
import React, {Component} from 'react';
import {
StyleSheet,
Text,
View,
Image,
ImageBackground
} from 'react-native';
export default class Card extends Component {
constructor(props) {
super(props);
this.state = {
calc_offset_height: 0
}
}
renderChildren() {
let returnChildren ... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
const applyPatch = require('./patches/applyPatch');
const makeStringsPatch = require('./patches/makeStringsPatch');
const ... |
const crypto = require('crypto'),
debug = require('debug'),
minimatch = require('minimatch'),
path = require('path');
const defaultOptions = {
algo: 'sha1', // see crypto.getHashes() for options
encoding: 'base64', // 'base64', 'hex' or 'binary'
files: {
exclude: [],
incl... |
import React from "react";
import { useStaticQuery, graphql, Link } from "gatsby";
import styled from "styled-components";
const ToppingStyles = styled.div`
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 4rem;
a {
display: grid;
grid-template-columns: auto 1fr;
grid-gap: 0 1rem;
al... |
import { createSelector } from "reselect";
import {
MODE_PATTERN_CLEAR,
A_VARIATION,
B_VARIATION,
BOTH_VARIATIONS
} from "store-constants";
import {
getSelectedMode,
getPlaying,
getCurrentStep,
getCurrentPattern,
getIntroFillVariationPosition,
getCurrentVariation
} from "selectors/common";
const ... |
angular.module('progressBarInterceptor', ['services.progressbar'])
.factory('progressBarInterceptor', function progressBarInterceptorFn($injector, $q) {
var progressBarInterceptor = {
request: function(config) {
$injector.invoke(function(ProgressbarService, $templateCache) {
// don't use on templat... |
// vim:ts=4:sts=4:sw=4:
/*!
*
* Copyright 2009-2012 Kris Kowal under the terms of the MIT
* license found at http://github.com/kriskowal/q/raw/master/LICENSE
*
* With parts by Tyler Close
* Copyright 2007-2009 Tyler Close under the terms of the MIT X license found
* at http://www.opensource.org/licenses/mit-lic... |
var dataProvider = require('../models'),
tags;
tags = {
// #### Browse
// **takes:** Nothing yet
browse: function browse() {
// **returns:** a promise for all tags which have previously been used in a json object
return dataProvider.Tag.findAll().then(function (result) {
r... |
const mongoose = require('mongoose');
var Schema = mongoose.Schema
var ObjectId = Schema.Types.ObjectId
var categorySchema = new Schema({
name: String,
intro: String,
blogs: [{
type: ObjectId,
ref: 'Blog'
}],
meta: {
creatAt: {
type: Date,
default: Date.now()
},
updateAt: {
... |
define({
"common": {
"apply": "Käytä",
"ok": "OK",
"cancel": "Peruuta",
"yes": "Kyllä",
"no": "Ei",
"next": "Seuraava",
"previous": "Edellinen",
"back": "Takaisin",
"selected": "valitut",
"name": "Nimi",
"usage": "Käyttö",
"settings": "Asetukset",
"home": "Koti",
... |
import { useStaticQuery, graphql } from 'gatsby';
const useInicio = () => {
const resultado = useStaticQuery(graphql`
query {
allStrapiPaginas(filter: { nombre: { eq: "Inicio" }}) {
nodes {
id
nombre
contenido
imagen {
localFile {
s... |
describe('Basic math', () => {
it('sums two numbers correctly', () => {
expect(2 + 2).toBe(4);
});
it('multiplies by zero corectly', () => {
expect(8 * 0).toBe(0);
});
});
describe('Promise resolving', () => {
it('resolves with correct result - constructor', () => {
const myPromise = new Promise... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./nodes/BasicNode.cjs.js"),r=require("./NodeMaterial.cjs.js"),s=require("../core/NodeUtils.cjs.js");function o(){var s=new e.BasicNode;r.NodeMaterial.call(this,s,s),this.type="BasicNodeMaterial"}require("../core/Node.cjs.js"),require("th... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
module.exports = {
purge: [],
theme: {
extend: {},
},
variants: {},
plugins: [],
} |
/**
* Copyright 2015 The AMP HTML Authors. 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 require... |
//// [/lib/incremental-declaration-doesnt-changeOutput.txt]
/lib/tsc --b /src/third --verbose
[[90m12:04:00 AM[0m] Projects in this build:
* src/first/tsconfig.json
* src/second/tsconfig.json
* src/third/tsconfig.json
[[90m12:04:00 AM[0m] Project 'src/first/tsconfig.json' is out of date because oldest... |
var thetaMin = 0;
var thetaMax = 6 * Math.PI;
var period = 5;
var lineSpacing = 1 / 30;
var lineLength = lineSpacing / 2;
var yScreenOffset = 300;
var xScreenOffset = 260;
var xScreenScale = 360;
var yScreenScale = 360;
var yCamera = 2;
var zCamera = -3;
var rate = 1 / (2 * Math.PI); // every rotation y gets one bigge... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.