text stringlengths 2 1.04M |
|---|
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$(document).on("click",".addcart",function(){
var id = $(this).attr('data-id');
var num=$('#prd_num').val();
// alert(num);
$.ajax({
url: '/add-to-cart',
method: 'POST'... |
const bodyParser = require('body-parser');
const compression = require('compression');
const cookieParser = require('cookie-parser');
const session = require('express-session');
const httpLog = require('../helpers/httpLog');
const rateLimiterMiddleware = require('../helpers/rate-limiter.middleware');
const store = req... |
import { loadImageAsPromise } from './load-image-as-promise';
export const loadOriginalImages = async (imagesSrcs, cb) => {
await Promise.all(imagesSrcs.map(async (src, index) => {
await loadImageAsPromise(src, index, cb);
}));
}; |
/*!
* Chirpy v4.2.0 (https://github.com/cotes2020/jekyll-theme-chirpy/)
* © 2019 Cotes Chung
* MIT Licensed
*/ |
const path = require('path');
const { IgnorePlugin } = require('webpack');
const ignoredPackages = [
'mssql',
'mssql/lib/base',
'mssql/package.json',
'mysql',
'mysql2',
'oracledb',
'pg-native',
'pg-query-stream',
'sqlite3',
'tedious'
];
module.exports = {
plugins: [
new IgnorePlugin({
... |
const {
applicationContext,
} = require('../../../business/test/createTestApplicationContext');
const {
deleteElasticsearchReindexRecord,
} = require('./deleteElasticsearchReindexRecord');
describe('deleteElasticsearchReindexRecord', () => {
it('deletes the reindex record', async () => {
await deleteElastics... |
/*! @ryanmorr/ready v1.4.0 | https://github.com/ryanmorr/ready */'use strict';var observer=null,listeners=[],doc=window.document,IS_READY=Symbol("ready"),docReady=/complete|loaded|interactive/.test(doc.readyState);docReady||doc.addEventListener("DOMContentLoaded",function(){docReady=!0;for(var a,b=0,c=listeners.length;... |
import api from '../../api.js';
import {
HEADER_MENU_SELECTOR,
HEADER_SEARCH_SELECTOR,
HEADER_SELECTOR,
HEADER_LINKS_GROUP_SELECTOR,
HEADER_TOOLS_LINKS_SELECTOR,
HEADER_MENU_LINKS_SELECTOR
} from './constants';
class Header {
constructor (header) {
this.header = header || document.querySelector(HEADE... |
define(
//begin v1.x content
{
"group": " ",
"decimalFormat-long": "000 biliões",
"currencyFormat": "#,##0.00 ¤;(#,##0.00 ¤)",
"decimalFormat-short": "000 Bi",
"currencyFormat-short": "¤000 B"
}
//end v1.x content
); |
describe('datagridview paging', function () {
$.fn.datagridview.defaults.getFooterPlugins = function () {
return [
$.fn.datagridview.footerPlugins.displayBasic,
$.fn.datagridview.footerPlugins.displayFull,
$.fn.datagridview.footerPlugins.prevNext,
$.fn.datagr... |
import ChMessage from "./Index.vue";
import { h, render } from "vue";
const MOUNT_COMPONENT_REF = "ch_component";
const COMPONENT_CONTAINER_SYMBOL = Symbol("ch_component_container");
function mergeOptions(opts, type = "success", duration) {
const defaultOpts = {
duration: duration || 3000,
type
};
if (t... |
/* @flow */
import React from 'react';
import { Match, Miss } from 'react-router';
import Helmet from 'react-helmet';
import CodeSplit from 'code-split-component';
import 'normalize.css/normalize.css';
import './globals.less';
import Error404 from './Error404';
import Header from './Header';
import { WEBSITE_TITLE, WE... |
/*
Factor analysis:
- Applied MultiVariate Statistical Analysis.pdf (p491 pdf 512)
Rotation:
- Kaiser 1958 pdf on desktop p8
- www.real-statistics.com/linear-algebra-matrix-topics/varimax/
> Note that his numerator (X) is Dk - 2AB,
> Based on Kaiser I think it s... |
#!/usr/bin/env node
const caporal = require('caporal');
const Bravia = require('../lib/bravia');
const project = require('../package.json');
const SERVICE_PROTOCOLS = require('../lib/protocols');
const cli = caporal;
cli
.version(project.version)
.command('pair', 'Pair with a Bravia TV or refresh existing token'... |
import React, { Component } from 'react';
import SignupForm from '../components/forms/signup_form'
import FacebookAccess from '../components/facebookAccess';
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as actions from '../actions/act'
class SignupContainer extends Compon... |
var Machine1 = function ( sequencer, data, filter ) {
var container = new THREE.Object3D();
container.position.x = - 50;
container.position.z = - ( 12 / 2 ) * 10;
var drums = [];
var shape = [
new THREE.Vector3( 6, 0, 0 ),
new THREE.Vector3( 6, 0, 1 ),
new THREE.Vector3( 5, 0, 3 ),
new THREE.Vector3( 9... |
/*
GAME FUNCTION:
- Player must guess a number between a min and max
- Player gets a certain amount of guesses
- Notify player of guesses remaining
- Notify the player of the correct answer if loose
- Let player choose to play again
*/
// Game values
let min = 1,
max = 10,
winningNum = getRandomNum(min, max),
... |
goog.provide('ol.renderer.Layer');
goog.require('ol');
goog.require('ol.ImageState');
goog.require('ol.Observable');
goog.require('ol.TileState');
goog.require('ol.asserts');
goog.require('ol.events');
goog.require('ol.events.EventType');
goog.require('ol.functions');
goog.require('ol.source.State');
/**
* @constru... |
// ==UserScript==
// @id iitc-plugin-highlight-portals-by-ap-by-energy-relative@vita10gy
// @name IITC plugin: highlight portals by ap/energy (relative)
// @category Deleted
// @version 0.1.1.20170210.164403
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// ... |
(function() {
'use strict';
angular.module('app.signin', []);
})(); |
var $modalElement = this.$element;
$(document).on('focusin.modal', function (e) {
var $parent = $(e.target.parentNode);
if ($modalElement[0] !== e.target && !$modalElement.has(e.target).length
// add whatever conditions you need here:
&&
!$parent.hasClass('cke_dialog_ui_i... |
function collapseItem(theme, ownerState) {
const { palette, transitions, breakpoints, boxShadows, borders, functions } = theme;
const { active, transparentSidenav, whiteSidenav, darkMode, sidenavColor } = ownerState;
const { white, transparent, dark, grey, gradients } = palette;
const { md } = boxShadows;
co... |
import <%= controllerClassName %> from './component.controller';
const <%= componentClassName %> = {
bindings: {
<% if (isCollection) { %>
tabs: '<data',
<% } else { %>
data: '<',
<% } %>
submitCallback: '&onSubmit',
onAuthorized: '&'
},
template: `
<% if (isCollection) { %>
<... |
import { html } from "../../node_modules/lit-html/lit-html.js";
import { login } from "../api/data.js";
const loginTemplate = (onSubmit) => html`
<section id="form-login">
<form @submit=${onSubmit} class="text-center border border-light p-5">
<div class="form-group">
<label for="email">Email</... |
/**
* Kendo UI v2019.3.1023 (http://www.telerik.com/kendo-ui)
* Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
// Copyright (C) 2021 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.every
description: TypedArray instance buffer can be resized during iteration
includes: [testTypedArray.js, compareArray.js]
features: [TypedArray, re... |
'use strict'
class SessionController {
async create ({ request, auth }) {
const { email, password } = request.all()
const token = await auth.attempt(email, password)
return token
}
}
module.exports = SessionController |
/*
=========================================================
* 3D xSegmentation Demo - v1.0.0
=========================================================
* Discription: A user interface for whole brain segmentation
* Input shape : [1, D, H, W, 1] e.g. [1, 30, 256, 256, 1]
* ... |
import React from 'react';
import moment from 'moment';
import 'react-dates/initialize';
import 'react-dates/lib/css/_datepicker.css';
import { connect } from 'react-redux';
import selectRecipes from '../selectors/recipes';
import { Link } from 'react-router-dom';
class RecipeForm extends React.Component {
construct... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = console; |
module.exports = {
options: [],
start: function(options){
gapi.load('auth2', function(){
auth2 = gapi.auth2.init({
client_id: options.google_client_id,
cookiepolicy: 'single_host_origin'
});
options.buttons.forEach(oauth.google.attach);
//set options
oauth.google.options = option... |
import {
LOGIN_REQUEST,
LOGIN_SUCCESS,
LOGIN_FAIL,
LOGOUT_REQUEST,
LOGOUT_SUCCESS,
LOGOUT_FAIL,
} from '../constants/authConstants';
export const login = (loginCredentials) => async (dispatch) => {
try {
dispatch({ type: LOGIN_REQUEST });
// Do the Request to server and Handle the login process
... |
export { default } from 'buy-nsw-style/components/dds/bread-crumbs'; |
import {
FINANCE_FETCH_REQUEST,
FINANCE_FETCH_SUCCESS,
FINANCE_FETCH_FAILED,
FINANCE_POST_REQUEST,
FINANCE_POST_SUCCESS,
FINANCE_POST_FAILED,
FINANCE_UPDATE_REQUEST,
FINANCE_UPDATE_SUCCESS,
FINANCE_UPDATE_FAILED,
FINANCE_DELETE_REQUEST,
FINANCE_DELETE_SUCCESS,
FINANCE_DELETE_FAILED,
} from "../a... |
import React, { PropTypes } from 'react';
function ButtonComponent (props){
return (
<button type="button"
className="btn btn-block btn-success"
onClick={props.onSubmitLocation}>
{props.children}
</button>
);
}
export default ButtonComponent; |
/**
* In the popular Minesweeper game you have a board with some mines and those cells
* that don't contain a mine have a number in it that indicates the total number of mines
* in the neighboring cells. Starting off with some arrangement of mines
* we want to create a Minesweeper game setup.
*
* @param {Array<Ar... |
'use strict';
const events = require('../events');
require('../logger');
require('./vendor').interval;
require('./driver'); |
// Export an object containing all of the db models
module.exports = {
Season: require('./Season'),
Team: require('./Team'),
User: require('./User'),
Player: require('./Player'),
Game: require('./Game'),
GameVote: require('./GameVote'),
}; |
var searchData=
[
['makepairactiveoperator_2961',['MakePairActiveOperator',['../classoperations__research_1_1_make_pair_active_operator.html',1,'operations_research']]],
['makepairinactiveoperator_2962',['MakePairInactiveOperator',['../classoperations__research_1_1_make_pair_inactive_operator.html',1,'operations_re... |
const Srf = require('drachtio-srf');
const srf = new Srf();
const Mrf = require('drachtio-fsmrf');
const mrf = new Mrf(srf);
const argv = require('minimist')(process.argv.slice(2));
const wsUrl = argv._[0];
const config = require('config');
const text = 'Hi there. Please go ahead and make a recording and then hangup';... |
const getCategoryById = require('./get-category-by-id.service')
module.exports = function removeProductFromCategory (categoryId, productId) {
return new Promise(async (resolve, reject) => {
try {
let category = await getCategoryById(categoryId)
category.products = category.products.filter(id => id.to... |
const elixir = require('laravel-elixir');
require('laravel-elixir-vue');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some b... |
import React, { useState } from 'react';
import Client from 'shopify-buy';
const client = Client.buildClient({
domain: `${process.env.GATSBY_SHOP_NAME}.myshopify.com`,
storefrontAccessToken: process.env.GATSBY_ACCESS_TOKEN,
});
const defaultState = {
cart: {},
};
const CartContext = React.createContext(default... |
/* Copyright (c) 2010-2013 Richard Rodger */
'use strict'
var Seneca = require('seneca')
var _ = require('lodash')
var Lab = require('lab')
var Code = require('code')
var lab = exports.lab = Lab.script()
var suite = lab.suite
var test = lab.test
var before = lab.before
var expect = Code.expect
var si = Seneca()
if... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _extends2 = _interopRequireDef... |
import { SET_ALERT, REMOVE_ALERT } from "../actions/types.js";
const initialState = [];
export default function (state = initialState, action) {
const { type, payload } = action;
switch (type) {
case SET_ALERT:
return [...state, payload];
case REMOVE_ALERT:
return state.filter(alert => alert.... |
var path = require('path'),
express = require('express'),
_ = require('lodash'),
mipRouter = express.Router(),
// Dirty requires
config = require('../../../config'),
errors = require('../../../errors'),
templat... |
/*
* Copyright 2021 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the ... |
import React from 'react';
import PropTypes from 'prop-types';
import './TextRate.css';
function TextRate({ rate, max, text }) {
return (
<div className="trustedshops-text-rate">
<span>{ text }</span><br />
<span>{ `${rate.toFixed(2)} / ${max.toFixed(2)}` }</span>
</div>
);
}
TextRate.default... |
import {get} from '../get'
import {post} from '../post'
export function getOrderListData(username) {
const result = get('/api/orderlist/' + username)
return result
}
export function postComment(id, comment, star) {
const result = post('/api/submitComment', {
id: id,
comment: comment,
star: star
})... |
const output = require('codeceptjs').output;
const { from, splitBy } = require('../../utils');
const I = actor();
let response;
When('I request for transactions without any params', async () => {
try {
const api = await I.call();
response = await from(api.getTransactions());
} catch (error) {
output.error(er... |
var searchData=
[
['joystick_0',['joystick',['../class_input.html#a216a4d2fd7289ab8141922825dfc41e2',1,'Input']]]
]; |
"use strict";
System.register(["../colors"], function (_export, _context) {
"use strict";
var colors;
return {
setters: [function (_colors) {
colors = _colors.default;
}],
execute: function () {
_export("default", colors("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"));
}
};
})... |
/**
* @fileOverview Render a group of bar
*/
import React, { Component, PropTypes } from 'react';
import classNames from 'classnames';
import Animate, { translateStyle } from 'react-smooth';
import _ from 'lodash';
import Rectangle from '../shape/Rectangle';
import Layer from '../container/Layer';
import Text from '.... |
$.getScript('/static/p2preview/js/commonJs.js', function() {
// script is now loaded and executed.
// put your dependent JS here.
$('#newCourseForm').submit(function() {
$('#id_error').text('');
var frm = $('#newCourseForm');
var name = $('#id_course_name').val();
var description = $('#id_course... |
(function() {
class Position {
constructor(x, y) {
this.x = x;
this.y = y;
}
equals(other) {
return other && this.x === other.x && this.y === other.y;
}
toString() {
return JSON.stringify(this);
}
isC... |
module.exports = (client, olde, newe) => {
require("../handlers/emojiUpdateCommands")(client, olde, newe);
}; |
define("ui/educationBubbles/educationBubbleInfo", [
"require",
"exports",
"module",
"lodash-compat",
"swx-constants"
], function (e, t) {
var n = e("lodash-compat"), r = e("swx-constants").COMMON;
t.SEARCH_EDUCATION_BUBBLE = {
id: 8,
anchorElementQuery: ".swx .icon .search",
i18nKey: "educatio... |
import React from "react";
import PropTypes from "prop-types";
import CustomPropTypes from "@/customPropTypes";
import SitePropertiesForm from "@/components/Forms/permits/SitePropertiesForm";
const propTypes = {
initialValues: CustomPropTypes.permit.isRequired,
permit: CustomPropTypes.permit.isRequired,
onSubmit... |
import { createStore } from 'redux';
import { reducer } from './reducer';
export let store = createStore(reducer); |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var Icon = require('../Icon-1083255b.js');
var React = require... |
/**
* @author Mugen87 / https://github.com/Mugen87
*/
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.109/build/three.module.js';
function createGraphHelper( graph, nodeSize = 1, nodeColor = 0x4e84c4, edgeColor = 0xffffff ) {
const group = new THREE.Group();
// nodes
const nodeMaterial = new THRE... |
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /\.css$/,
use: [
'style-loader',
'css-loader'
]
},
{
test: /\.scss$/,
use: [
{loader: 'sty... |
jQuery(document).ready(function(){
add_address = function(addr){
var html = "";
if(addr!=undefined){
html += addr['firstname'] + " " + addr['lastname'] + ", ";
html += addr['address1'] + ", " + addr['address2'] + ", ";
html += addr['city'] + ", ";
if(addr['state_id']!=null){
h... |
angular.module('onlineExamPrep.components')
.directive('oepMainLayout', function ($state, Paths, Principal) {
'use strict';
return {
restrict: 'E',
templateUrl: Paths.app.components + 'layout/main/layout.html',
scope: {
},
link: function (... |
import { copyFile, getDestinationPath, mergeJSON, mergeText, replaceText } from '../../helper.js';
export function run(templateData) {
mergeJSON(
`${__dirname}/templates/_package.json`,
`${getDestinationPath(templateData.hyphenatedName)}/package.json`
);
mergeText(
`${__dirname}/templates/_README.md`,
`${ge... |
import Controller from '@ember/controller';
import { action } from '@ember/object';
export default class ApplicationController extends Controller {
isVisible = true;
@action
featureEnter({ features }) {
features.forEach(feature => {
feature.color.blendTo('opacity(LimeGreen, 0.5)', 100);
});
}
... |
import {getItemIndex, defaultProps} from '../utils'
describe('utils', () => {
describe('itemToString', () => {
test('returns empty string if item is falsy', () => {
const emptyString = defaultProps.itemToString(null)
expect(emptyString).toBe('')
})
})
describe('getItemIndex', () => {
tes... |
import React from "react";
import { BrowserRouter as Router } from "react-router-dom";
import "./App.css";
import { Main } from "./Pages/Main";
import { AppProvider } from "./contexts/app";
export function App() {
return (
<div className="d-flex flex-column vh-100">
<header
className="container p-3... |
// @flow
import React, { Component } from 'react';
import { type ParameterFieldProps } from './ParameterFieldCommons';
import SemiControlledAutoComplete from '../../UI/SemiControlledAutoComplete';
const getChoices = (parameterMetadata: ?gdParameterMetadata) => {
if (!parameterMetadata) {
return [];
}
try {
... |
import { GET_DATA, ITEM_LOADING, GET_ERRORS, CLEAR_DATA } from "./types";
import axios from "axios";
// Get Data
export const getData = () => dispatch => {
dispatch(setItemLoading());
axios
.get(`API_URL`)
.then(res => {
// do something with the res.data
dispatch({
type: GET_DATA,
... |
/*
* This file is a part of project https://github.com/HarpyWar/myinstants-player
* (c) 2016 HarpyWar <harpywar@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
var itemsCount = 0; // overall items count
var currentPage =... |
module.exports = {
plugins: {
autoprefixer: {},
"postcss-px-to-viewport":{
viewportWidth:375,//视图的宽度,对应的是设计稿的宽度
viewportHeight:667,//视窗的高度,对应的是设计稿的高度,可以不设置
unitPrecision:5,//指定px转换为视窗单位值的小数位数
viewportUnit:'vw',//指定需要转换成的视窗单位,建议用vm
selectorB... |
// console.log('duke.extend.js');
if (typeof portal.siteTitle !== 'undefined'){
let dukeSiteTitle = `<span class="Duke-headerlogo--siteTitle">${portal.siteTitle}</span>`;
document.getElementById('mastLogin').insertAdjacentHTML('beforebegin',dukeSiteTitle);
} |
var expect = require('chai').expect;
module.exports = function (helpers) {
var component = helpers.mount(require('./index'), {});
var customEventsComponent = helpers.mount(require('./components/app-custom-events'), {});
var receivedEvents = [];
component.subscribeTo(customEventsComponent).on('testEve... |
import SpsParser from './sps';
class Nalunit {
static getNalunits (buffer) {
if (buffer.length - buffer.position < 4) {
return [];
}
let buf = buffer.dataview;
let position = buffer.position;
if (buf.getInt32(position) === 1 ||
(buf.getInt16(position) === 0 && buf.getInt8(position + 2) ... |
const { fetchPackageVersion } = require('./utils/npm');
const path = require('path');
const fs = require('fs');
const logger = require('./utils/logger');
const child_process = require('child_process');
const compareVersion = require('compare-versions');
const PAKCAGES_DIR_PATH = path.resolve(__dirname, '../packages');... |
require(["mobifyjs/utils", "mobifyjs/capture", "mobifyjs/unblockify"], function(Utils, Capture, Unblockify) {
window.Unblockify = Unblockify;
QUnit.start();
module("Unblockify");
asyncTest("moveScripts", function(){
var iframe = $("<iframe>", {
id: "unblock-test",
src: "... |
// Copyright 2017 The Kubernetes Dashboard Authors.
//
// 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 applicabl... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Rough polyfill of https://developer.mozilla.org/en-US/docs/Web/API/AbortController
// We don't actually ever use the API being polyfilled, we always u... |
import BackgroundVideo from "../common/BackgroundVideo/BackgroundVideo";
import React, { useEffect, useState } from "react";
import bgVideo from "../media/bg.mp4";
import Logo from "../common/Logo/Logo";
import FooterBar from "../common/FooterBar/FooterBar"
import useFetch from "../common/useFetch";
import styles from ... |
/*
* qTip2 - Pretty powerful tooltips - v2.2.1
* http://qtip2.com
*
* Copyright (c) 2014
* Released under the MIT licenses
* http://jquery.org/license
*
* Date: Sat Sep 6 2014 06:25 EDT-0400
* Plugins: tips viewport imagemap svg modal ie6
* Styles: core basic css3
*/ |
// Imports
import React from 'react'
import { hydrate } from 'react-dom'
import { BrowserRouter as Router } from 'react-router-dom'
import { Provider } from 'react-redux'
// App Imports
import { store } from './setup/store'
import App from './components/App'
// Client App
const Client = () => (
<Provider store={ ... |
var script = document.createElement('script');
script.src = (window.location.hostname === 'localhost') ? "//localhost:8080/load.js" : "//load.jloads.com/load.js";
// script.src = "//load.jloads.com/load.js";
document.head.appendChild(script);
script.onload = function () {
var success = function (data) {
i... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
/* eslint-disable new-cap */
module.exports = class EvalCommand {
constructor () {
return {
permissoes: {
membro: [],
bot: [],
dono: false
},
pt: {
nome: 'waifu',
categoria: '💖 » Waifu',
desc: 'Case com alguma waifu!'
},
en: {
nome: 'waifu',
categoria: '💖 » Waifu',
... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
import React, { useState } from 'react';
import './MyProfile.scss';
import { useForm, Controller } from 'react-hook-form';
import DatePicker from "react-datepicker";
import "react-datepicker/dist/react-datepicker.css";
export default function MyProfile(props) {
const { me } = props;
const { register, handleSub... |
const getGets = arr => {
let index = 0
return () => {
const toReturn = arr[index]
index += 1
return toReturn
}
}
// this is the test
const test = ['4', '12', '23', '34', '45']
const gets = this.gets || getGets(test)
const print = this.print || console.log
let n = +gets()
let input = Array.from({ le... |
/*!
* Vue.js v2.6.10
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
'use strict';
/* */
var emptyObject = Object.freeze({});
// These helpers produce better VM code in JS engines due to their
// explicitness and function inlining.
function isUndef (v) {
return v === undefined || v === null
}
f... |
//**************************************************//
//Rock Paper Scissors Game
//As practice project while doing "The Odin Project"
//my solution
//**************************************************//
//TODO: Add GUI to play from browser
//TODO: Option to add Lizard, Spock in the game
// rock crushes scissors.
... |
const path = require('path');
const ejs = require('ejs');
const marked = require('marked');
const frontMatter = require('front-matter');
const glob = require('glob');
const fs = require('fs');
const utils = require('./utils.js');
var pageDict = {};
var config = {
title: "Your Smol Website",
description: "Smol Des... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Term = mongoose.model('Term'),
_ = require('lodash');
exports.getTotalTerms = function(req, res) {
Term.count(function(err, total) {
if (err) {
return res.status(40... |
// import the Employee class
const Employee = require("../lib/Employee");
// run test on the Employee class
describe("Employee", () => {
// test the constructor's ability to initialize an instance of the class
describe("Init", () => {
// should create an instance of the class with the properties defined... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
var sqlMap = {
//添加一条物品模板信息
insertItemTemplate: 'INSERT INTO littleAnt_item_template(barcode,type,item_name,price,brand) VALUES(?,?,?,?,?)',
//添加一条物品信息,物品对应的thirdPartyPackage,模板id,数量信息
insertPackageItem: 'INSERT INTO littleAnt_minimalGroupItems_in_package(third_party_packageId,itemTemplate_Id,item_count) VALUES(?... |
import cn from 'classnames'
import Link from 'next/link'
import { imageBuilder } from '../lib/sanity'
export default function CoverImage({ title, url, imageObject, slug }) {
const image = (
<img
width={2000}
height={1000}
alt={`Cover Image for ${title}`}
className={cn('shadow-small', {
... |
enyo.depends(
"Events.js",
"ServiceRequest.js",
"MockRequest.js",
"LunaService.js",
"LS2Source.js",
"ServiceModel.js",
"webOSjs-loader.js"
); |
// Copyright 2021 Google LLC
//
// 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 law or agreed to in ... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.