text stringlengths 3 1.05M |
|---|
import React from "react"
import Layout from "../components/Layout"
import { graphql } from "gatsby"
import RecipeList from "../components/RecipeList"
import SEO from "../components/SEO"
const contact = ({
data: {
allContentfulRecipe: { nodes: recipes },
},
}) => {
return (
<Layout>
<SEO title="Cont... |
/**
* Test dependencies.
*/
var start = require('./common'),
mongoose = start.mongoose,
assert = require('power-assert'),
Schema = mongoose.Schema;
describe('schema options.timestamps', function() {
describe('create schema with options.timestamps', function() {
it('should have createdAt and updat... |
import React from 'react';
import { act } from 'react-dom/test-utils';
import { createMemoryHistory } from 'history';
import { mountWithContexts } from '../../../testUtils/enzymeHelpers';
import Schedules from './Schedules';
describe('<Schedules />', () => {
test('initially renders successfully', async () => {
l... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# File : Train.py
# Author: LiuXuanhe
# Date : 2019/7/2
from My_Data import My_Data
from My_Model2 import CNN2SEQ
from torch.utils.data import DataLoader
from torch import optim, nn
import torch
from torchvision import transforms
import os
trans = {"0":0, "1":1, "2":2, "3... |
__NUXT_JSONP__("/37/87", (function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,$,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao){return {data:[{metaTitle:A,metaDesc:B,verseId:87,surahId:37,currentSurah:{number:"37",name:"الصّٰۤفّٰت",name_latin:"As-Saffat",numb... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Grid_1 = __importDefault(require("./lib/datatypes/Grid"));
exports.Grid = Grid_1.default;
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Elementary Math Library. (For demonstration purpose only)
"""
__version__ = "0.0.8"
__short_description__ = "Elementary Mathematics."
__license__ = "MIT"
__author__ = "Sanhe Hu"
__author_email__ = "husanhe@me.com"
__maintainer__ = "Sanhe Hu"
__maintainer_email__ = "hu... |
'use strict';
const karmaSauceLauncher = require('karma-sauce-launcher');
const karmaConfig = require('./karma.conf.js');
module.exports = function(config) {
karmaConfig(config);
const launchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome'
},
sl_chrome_57: {
base: 'SauceLabs',
brows... |
/**
* angular-strap
* @version v2.1.2 - 2014-10-19
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes (olivier@mg-crea.com)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.datepicker', ['mgcrea.ngStrap.helpers.dateParser', 'mgc... |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... |
import os
import tarfile
import tempfile
from inspect import signature
from zipfile import ZipFile
from bioblend.galaxy import dataset_collections
from . import (
GalaxyTestBase,
test_util
)
class TestGalaxyDatasetCollections(GalaxyTestBase.GalaxyTestBase):
def test_create_list_in_history(self):
... |
/* This file is generated by createIcons.js any changes will be lost. */
import createIcon from '../createIcon';
export const ApplePayIconConfig = {
name: 'ApplePayIcon',
height: 512,
width: 640,
svgPath: 'M116.9 158.5c-7.5 8.9-19.5 15.9-31.5 14.9-1.5-12 4.4-24.8 11.3-32.6 7.5-9.1 20.6-15.6 31.3-16.1 1.2 12.4-3... |
import seaborn as sns
import numpy as np
import os
import matplotlib.pyplot as plt
from probvis.aux import save_fig
import pandas as pd
from probvis.aux import Cte
def violin_plot(x_list, y_list, **args):
log = args['log'] if 'log' in args else False
showmeans = args['showmeans'] if 'showmeans' in args el... |
const express = require('express')
const router = express.Router()
const goodsType = require('../lib/goods_type')
const util = require('../db/util')
// 新增商品类型
router.post('/create_goods_type', function (req, res, next) {
try {
goodsType.createGoodsType(req, res)
} catch (error) {
util.log(error.message)
}... |
const cellSize = 50;
module.exports = {
fontSize: {
legend: 180,
map: cellSize,
information: cellSize * (2 / 5)
},
cellSize: cellSize,
cellHalfSize: cellSize / 2,
cellQuarterSize: cellSize / 4,
cellDeciSize: cellSize / 10,
lineWidth: cellSize / 2.5,
roundedRadius: cellSize,
... |
import argparse
import cPickle
import numpy as np
import pandas as pd
import time
import sys, os, re
from context import NetworkAnalysis
import NetworkAnalysis.network_analysis as NA
import NetworkAnalysis.tissue_specificity as TS
def main():
options = parse_user_arguments()
create_tissue_specific_network... |
// We need to disable Shadow DOM isolation for tests, as we inspect
// the DOM contents of QML elements through .children
QmlWeb.useShadowDom = false;
function loadQmlFile(file, div, opts) {
var engine = new QmlWeb.QMLEngine(div, opts || {});
engine.loadFile(file);
engine.start();
document.body.appendChild(div... |
import React from "react";
import { Link } from "react-router-dom";
import { updateMonetization } from "../../utils/monetization";
export const Game = ({
match: {
params: { id },
},
}) => {
updateMonetization("$ilp.uphold.com/2f28xFUMdj9Z");
console.log(window.ddrmat);
return (
<div className="game">... |
'use strict';
global.aa = 'aa';
var a = 'a0';
global.bb = 'bb';
var b = 'b0';
global.cc = 'cc';
var c = 'c0';
global.ee = 'ee';
global.dd = 'dd';
var d = 'd0';
var x = /*#__PURE__*/Object.freeze({
__proto__: null,
a: a,
b: b,
c: c,
d: d
});
global.result = x;
|
const assert = require("../../../wrapper/assert-wrapper");
const locale = require("../../locale");
const { Broadcast } = require("../../broadcast");
const { ColorUtil } = require("../../color/color-util");
const { DraftSelectionManager } = require("../draft-selection-manager");
const { MapStringLoad } = require("../../... |
const http = require('http')
const port = 80
const server = http.createServer((request, response) => {
response.writeHead(200, {'Content-Type': 'text/plain'})
response.write('Hello World\n')
response.write('from version 3\n')
response.end('Version: ' + process.env.NODE_VERSION + '\n')
})
server.listen(port)
... |
Ext.define('Page.view.PageTreeComponent',
{
extend: 'Admin.view.ux.TreePanel',
alias: 'widget.Page.view.PageTreeComponent',
store: 'PageTreeComponent',
name: 'PageTreeComponent',
selModel:
{
xtype: "treemodel",
mode: "SINGL"
},
selType: "rowmodel",
root:
{
allowDrop: false,
id: -1
},
... |
// you can write to stdout for debugging purposes, e.g.
// console.log('this is a debug message');
function solution(T, R) {
// write your code in JavaScript (Node.js 8.9.4)
//T is the test cases arrays
//R is the results cases arrays strings
//same length and corresponding test case, but we must group them
... |
/**
* Copyright 2000-2021 Nokia
*
* Licensed under the Apache License 2.0
* SPDX-License-Identifier: Apache-2.0
*
*/
import reducer from "./reducers";
import * as functionTypes from "./types";
import * as functionOperations from "./sagas";
import { default as functionSelectors } from "./selectors"
export {
... |
import React from 'react';
import './App.css'
import { HashRouter as Router, Route } from 'react-router-dom';
//components
import Nav from './components/Nav';
import Footer from './components/Footer';
//pages
import Home from './Pages/Home';
import Contact from './Pages/Contact'
import Portfolio from './Pages/Portfol... |
import PropTypes from 'prop-types'
import React from 'react'
import JSONData from "../content/mycontent.json"
class Main extends React.Component {
render() {
let close = (
<div
className="close"
onClick={() => {
this.props.onCloseArticle()
}}
></div>
)
// le... |
import React from 'react'
import { Carousel } from 'react-responsive-carousel'
import 'react-responsive-carousel/lib/styles/carousel.min.css'
import styled from 'styled-components'
import Layout from '../components/layout'
import SEO from '../components/seo'
const ProjectContentTitle = styled.h1`
margin: 0 10px 10p... |
import React from 'react';
import { render } from 'react-testing-library';
import Form from '../styled/Form';
describe('<Form />', () => {
it('should render an <form> tag', () => {
const {
container: { firstChild },
} = render(<Form />);
expect(firstChild.tagName).toEqual('FORM');
});
it('sho... |
/*
Copyright (C) 2018 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
import template from './import-history.mustache';
export default can.Component.extend({
tag: 'import-history',
template,
viewModel: {
history: [],
remove(id) {
this.dispatch({
... |
/**
* Copyright 2019 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import { LitElement, html, css } from "lit-element/lit-element.js";
import "@lrnwebcomponents/simple-icon/simple-icon.js";
import "@lrnwebcomponents/simple-icon/lib/simple-icons.js";
import "@lrnwebcomponen... |
'use strict'
const Joi = require('joi')
const verifyCollection = require('../../middleware/verifyCollection')
const { removeSingle, removeMultiple } = require('../../handlers/removeHandlers')
const { DB_OPS: { REMOVE }, COLL_NAME_REGEX } = require('../../constants')
const { isEmpty } = require('lodash')
const { getCRU... |
/*
* Copyright 2011 Research In Motion Limited.
*
* 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 ... |
async function getDescuentos(a){try{const b=await axios.get(`/${SITEURL}/descuentos/myg/details/${a}`),c=await b.data.data,d=document.getElementById("descuentosDraw");let e="";await c.forEach(a=>{e+=`
<hr>
<small class="text text-danger font-weight-bold ">${a.fecha} ${a.user.name} </small>
... |
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se... |
import React from 'react';
import Layout from '../components/Layout';
// import { Link } from 'gatsby';
import Sidebar from '../components/Sidebar';
import config from '../../config';
const IndexPage = () => (
<Layout>
<Sidebar />
<div className="container-fluid p-0">
<section
className="resum... |
#Imports
import requests
import json
import os
import sys
import pandas as pd
import numpy as np
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
from dash import Dash
from dash.dependencies import Output, Input, State
from dash.exceptions import PreventUpda... |
$('#form').submit(function (e) {
e.preventDefault();
let form = $(this);
$.ajax({
url: form.attr('action'),
method: "post",
data: form.serialize(),
beforeSend: function (xhr) {
form.find('help-block').detach()
form.find('form-group').removeClass('has-... |
// @flow
// robot HTTP API client
import type { Error } from '../types'
import type { RobotService } from '../robot'
import type { ApiRequestError } from './types'
export type Method = 'GET' | 'POST' | 'PATCH'
// TODO(mc, 2018-04-30): deprecate importing this type from client
export type { ApiRequestError }
// not ... |
const util = require('../../util');
function buildWanted (groups, sr) {
var config = sr.config
, wanted
, result = {}
, isPP2002 = (config.patentPolicy === "pp2002")
, isWGNote = (config.longStatus === "Working Group Note")
, isAmended = config.amended
;
if (isPP2002)
... |
import asyncio
import json
from functools import wraps
import quart
from quart import websocket
from lib import ConfigLoader
from lib.OpusStreamer import OpusStreamer
app = quart.Quart("App")
connected_websockets = set()
def collect_websocket(func):
@wraps(func)
async def wrapper(*args, **kwargs):
... |
/**
* Module dependencies.
*/
var Suite = require('../suite')
, Test = require('../test');
/**
* QUnit-style interface:
*
* suite('Array');
*
* test('#length', function(){
* var arr = [1,2,3];
* ok(arr.length == 3);
* });
*
* test('#indexOf()', function(){
* var arr =... |
import { combineReducers } from "redux";
import {
loginReducer,
createUserReducer,
getAllUsersReducer,
updateUserReducer,
deleteUSerReducer,
getOneUserReducer,
getPaginatedUsersReducer
} from "./_user";
import {
studentReducer,
createStudentReducer,
updateStudentReducer,
deleteStudentReducer,
ge... |
/*
* Demonstrate use of multiple columns in a tree, and the use of the
* getHierarchy() method to retrieve the entire tree path of a node.
* Allows various options to be manipulated.
*/
qx.Class.define(
"qxl.demobrowser.demo.treevirtual.TreeVirtual_Multiple_Columns",
{
extend: qx.application.Standalone,
... |
from dataclasses import dataclass
from typing import Optional
from hostingde.model import Model
@dataclass
class DeleteZoneRequest(Model):
zone_config_id: Optional[str]
zone_name: Optional[str]
|
import { FormattedMessage as T, injectIntl, defineMessages } from "react-intl";
import {
AccountsSelect,
AddressInput,
DcrInput,
ReceiveAccountsSelect
} from "inputs";
import { Tooltip, Balance } from "shared";
import "style/SendPage.less";
const messages = defineMessages({
destinationAddrPlaceholder: {
... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Block within a "do-while" Expression is not allowed
es5id: 12.6.1_A15
description: Using "{0}" Block as an Expression
negative:
phase: early
type: SyntaxError
---*/
/////... |
var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,l=(e,t)=>{for(var n in t||(t={}))i.call(t,... |
#! /usr/bin/env python3
import rclpy
from rclpy.node import Node
from rclpy.duration import Duration
import time
import sys
import numpy as np
import copy
import pickle
import gzip
import lzma
from std_msgs.msg import String
from nav_msgs.msg import OccupancyGrid
from action_msgs.msg import GoalStatus
from multi_robot_... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
var elecToggle = false;
document.getElementById("subdiv1").innerText = ""
document.getElementById("subdiv2").innerText = ""
document.getElementById("subdiv3").innerText = ""
document.getElementById("subdiv4").innerText = ""
document.getElementById("subdiv5").innerText = ""
document.getElementById("num1").innerText... |
/**
* example of cubic disarray implemented with canvas-sketch
* @author Stephane Tombeur (https://github.com/stombeur)
*/
const canvasSketch = require('canvas-sketch');
const { polylinesToSVG } = require('canvas-sketch-util/penplot');
const noise = require('../utils/perlin').noise;
const lines = [];
const settin... |
# -*- coding: utf-8 -*-
'''
Local settings
- Run in Debug mode
- Use console backend for emails
- Add Django Debug Toolbar
- Add django-extensions as app
'''
from .common import * # noqa
# DEBUG
# ------------------------------------------------------------------------------
DEBUG = env.bool('DJANGO_DEBUG', default... |
const babel = require("rollup-plugin-babel");
const { sizeSnapshot } = require("rollup-plugin-size-snapshot");
export default [{
input: 'src/index.jsx',
output: {
file: 'es/index.js',
format: 'esm'
},
external: ['react'],
plugins: [
babel({
exclude: /node_modules... |
export default function system(state = {}) {
return state;
}
|
from temperature import Temperature
import unittest
class Test_Kelvin(unittest.TestCase):
def test_celsiustokelvin(self):
self.assertEqual(Temperature(celsius=36).kelvin, 309.15)
def test_fahrenheittokelvin(self):
self.assertEqual(Temperature(fahrenheit=33).kelvin, 273.7055555555555)
... |
// Arrays
var number = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
var specialChar = ["!", "%", "&", ",", "*", "+", "-", ".", "/", "<", ">", "?","~"];
var alphaLower = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
var alphaUpp... |
"""
This file contains the GAN loss implementations from original Pix2Pix authors.
https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix
You can choose which loss function to initialize
"""
import torch
import random
import torch.nn as nn
class GANLossD(torch.nn.Module):
"""Define different GAN objectives.
... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import sys
def min_edit(source, target):
print (source, target)
coloumns = len(target)+1
rows = len(source)+1
mat = [ [0] * coloumns for _ in range(rows)] #init matrix of zeros
for i in range(1, coloumns):
mat[0][i] = i # first row initialized to 1-m which is the length of subtring of sou... |
foam.CLASS({
package: 'foam.cross_platform.code_generation.refines',
name: 'ConstantRefine',
refines: 'foam.core.Constant',
properties: [
{
class: 'StringProperty',
name: 'crossPlatformAxiomName',
expression: function(name) {
return foam.String.constantize(name);
}
},
... |
var should = require("should");
const rl = require('readline');
var path = require('path')
var fs = require('fs')
var assert = require('assert')
var argv = require('optimist').demand('config').argv
var configFilePath = argv.config
assert.ok(fs.existsSync(configFilePath), 'config file not found at path: ' + configFilePa... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Parses the command line arguments when executing the package as a whole
and passes them to `algcompare.compare_from_file()`.
"""
from .algcompare import compare_from_file
import sys
render = False
prune = False
sort = False
output_files_prefix = None
help_text = ""... |
const Discord = require('discord.js');
exports.start = function start(client) {
return;
}
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[22,7],{1481:function(e,a,t){"use strict";t.r(a);var n=t(24),r=t.n(n),i=t(25),l=t.n(i),s=t(26),o=t.n(s),c=t(27),u=t.n(c),m=t(16),d=t.n(m),p=t(0),h=t.n(p),g=t(32),b=t(768),f=t(22),y=t.n(f),v=t(6),N=t.n(v),A=t(4),I=t(701),E=t(101),w=t(876),C=Object(g.b)(null,(function(e... |
export { default } from 'components/molecules/SearchForm/SearchForm';
|
'use strict';
// ---- includes
const gulp = require('gulp');
const cleanCSS = require('gulp-clean-css');
const concatCss = require('gulp-concat-css');
const sass = require('gulp-sass');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
const del = require('del');
const runSequence ... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import { Row, Col, Card, Form, Input, Button, message, Modal } from 'antd';
import StandardTable from '@/components/StandardTable';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import moment from 'moment';
import C... |
# encoding: utf-8
"""
Composers for default chart XML for various chart types.
"""
from __future__ import absolute_import, print_function, unicode_literals
from copy import deepcopy
from xml.sax.saxutils import escape
from ..compat import to_unicode
from ..enum.chart import XL_CHART_TYPE
from ..oxml im... |
import HDCA_LI from "mvc/history/hdca-li";
import DC_VIEW_EDIT from "mvc/collection/collection-view-edit";
import faIconButton from "ui/fa-icon-button";
import _l from "utils/localization";
//==============================================================================
var _super = HDCA_LI.HDCAListItemView;
/** @clas... |
""" general utility functions used throughput codebase """
import os
from os.path import join, isfile, isdir, basename
import numpy as np
import pandas as pd
import constants
import encode
__version__ = '0.1.0'
def mkdir(d):
""" creates given dir if it does not already exist """
if not isdir(d):
os... |
import api from 'config/axios';
export const getAllUsersOfOrganization = async (organizationId, onSuccess, onError) => {
await api.get(`users/${organizationId}`)
.then(resp => {
onSuccess && onSuccess(resp);
})
.catch(err => {
onError && onError(err);
});
};
|
import copy
import datetime
import logging
from math import ceil
import os
from typing import Any, Dict, List, Optional, Text
import rasa.nlu
from rasa.shared.exceptions import RasaException
import rasa.shared.utils.io
import rasa.utils.io
from rasa.constants import MINIMUM_COMPATIBLE_VERSION, NLU_MODEL_NAME_PREFIX
fr... |
import _plotly_utils.basevalidators
class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(self, plotly_name="visible", parent_name="indicator", **kwargs):
super(VisibleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... |
/* globals Recorder */
this.AudioRecorder = new class {
start(cb) {
window.AudioContext = window.AudioContext || window.webkitAudioContext;
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia;
window.URL = window.URL || window.webkitURL;
window.audioContext = new AudioContext;
c... |
export const INITIALIZE_STATUS = 'INITIALIZE_STATUS'
export const ADD_STATUS = 'ADD_STATUS'
export const REMOVE_STATUS = 'REMOVE_STATUS'
export const ADD_QUESTION_STATUS = 'ADD_QUESTION_STATUS'
export const CHOOSE_ANSWER = 'CHOOSE_ANSWER'
export const RESET_DECK = 'RESET_DECK'
export const TOGGLE_Z = 'TOGGLE_Z'
export ... |
//initiates the chart building
function getChart(error = 0){
if (error == 0 ){
//delete any old errors now that we have success
jQuery( ".rest-error" ).empty();
jQuery( ".indicator-chart" ).show();
currentCardScope = jQuery("#pa-card-tabs li.ui-tabs-active").text().trim().toLowerCase();
if (currentCardScope... |
/**
* This class is used to manage all plugins used in Hexo.
*
* There're 9 types of plugins:
*
* - {% crosslink Extend.Console Console %}
* - {% crosslink Extend.Deployer Deployer %}
* - {% crosslink Extend.Filter Filter %}
* - {% crosslink Extend.Generator Generator %}
* - {% crosslink Extend.Helper Helper %}
* - {% ... |
'use strict';
describe('Scope', function() {
beforeEach(module(provideLog));
describe('$root', function() {
it('should point to itself', inject(function($rootScope) {
expect($rootScope.$root).toEqual($rootScope);
expect($rootScope.hasOwnProperty('$root')).toBeTruthy();
}));
it('should ... |
export const GOOGLE_MAP_API_KEY = 'AIzaSyBjhirhG9yuh4c3ckiNuL9R-RhihpBppJs';
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.copywithin
description: Property type and descriptor.
info: |
22.1.3.3 Array.prototype.copyWithin (target, start [ , end ] )
17 ECMAScript Standa... |
(function (enyo, scope) {
/**
* Fires when a response is received.
*
* @event enyo.WebService#onResponse
* @type {Object}
* @property {enyo.Async} ajax - The {@link enyo.Async} instance associated with the request.
* @property {*} data - Any response data associated with the request.
* @public
*/
/**
* F... |
/**
* ascii-folder.js
* https://github.com/mplatt/fold-to-ascii-js
*
* This is a JavaScript port of the Apache Lucene ASCII Folding Filter.
*
* The Apache Lucene ASCII Folding Filter is licensed to the Apache Software
* Foundation (ASF) under one or more contributor license agreements. See the
* NOTICE file dis... |
function usleep(microseconds) {
// * example 1: usleep(2000000); // delays for 2 seconds
// * returns 1: true
var start = new Date().getTime();
while (new Date() < (start + microseconds / 1000)) { }
return true;
}
chrome.webRequest.onBeforeRequest.addListener(
function (details) {
// console.log(det... |
exports.menu = (id, BotName, corohelp, tampilTanggal, tampilWaktu, instagram, whatsapp, kapanbotaktif, grupch1, grupch2) => {
return `┏━┅┅┄┄⟞⟦✮⟧⟝┄┄┉┉━┓
⠀⠀⠀⠀ ∆𝚂𝚃𝚁𝙾 𝙱𝙾𝚃
┗━┅┅┄┄⟞⟦✮⟧⟝┄┄┉┉━┛
→ ❖ Olá , seja bem-vindo ao menu do *∆stro Bot* (eu) , aqui estão algumas funções que posso executar para você! ❖ ←
... |
const path = require('path');
const isProd = process.env.NODE_ENV === 'production';
function recursiveIssuer(m) {
if (m.issuer) {
return recursiveIssuer(m.issuer);
} else if (m.name) {
return m.name;
} else {
return false;
}
}
module.exports = {
configureWebpack: {
name: require('./src/se... |
# Copyright 2020 Google LLC. 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 applicable law or a... |
/** Perfil para retornar listagem de incidents específicos da ong */
const connection = require('../database/connection'); //impota conexão com banco de dados
module.exports = {
/** Retorna casos específicos */
async index(request, response) {
/** Pega dados da ong logada */
const ong_id = request.headers.... |
import React, { PropTypes } from 'react';
import {
Container,
List,
Loader,
} from 'amazeui-touch';
import {
Link,
} from 'react-router';
import { MyFooter } from '../components';
export default class Lease extends React.Component {
componentWillMount() {
const { appActions, homeActions, leases} = this... |
const webpack = require('webpack');
module.exports = {
entry: {
filename: './app.js'
},
output: {
filename: './build.js'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
// options: {
// presets: ['@babel/preset... |
const WDIOReporter = require('@wdio/reporter').default
const Suite = require('./suite')
const Stats = require('./stats')
const Test = require('./test')
class WdioMochawesomeReporter extends WDIOReporter {
constructor (options) {
options = Object.assign(options)
super(options)
this.registerL... |
/*!
* jslib-cli v0.1.0
* (c) 2018-2018 careteenL <15074806497@163.com>
* Released under the MIT License.
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function add(a, b) {
return a + b;
}
exports.add = add;
|
import React from 'react';
import { Icon } from './Icon';
import { cn, dg, bft, bmq } from './fragments';
export var TwoToneFolderShared =
/*#__PURE__*/
function TwoToneFolderShared(props) {
return React.createElement(Icon, props, React.createElement("path", {
opacity: ".3",
d: "M11.17 8L9.17 6H4v12h16V8zM19 ... |
import { withRouter } from "next/router"
import Layout from "../components/Layout/Layout";
const PostPage = withRouter(({ router }) => (
<Layout>
<h1>{router.query.title || router.query.id}</h1>
<p>This is the blog post content.</p>
</Layout>
));
export default PostPage; |
# ---------------------------------------------------------------------
# Gufo Err: test Compressor
# ---------------------------------------------------------------------
# Copyright (C) 2022, Gufo Labs
# ---------------------------------------------------------------------
# Third-party modules
import pytest
# Gufo... |
import * as React from "react"
import Layout from "../components/layout"
import Seo from "../components/seo"
import { Row } from "react-bootstrap"
import ImageCards from "../components/ImageCards"
import Spacer from "../components/Spacer"
import Featured from "../components/Featured"
import Supported from "../compone... |
/**
*==================================================
Copyright [2021] [HCL Technologies]
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 re... |
const search = require('lib/search')
const config = require('app/config')
async function saveSearchDoc (doc, options) {
await search(config, options).save(options.model, doc)
}
async function deleteSearchDoc (doc, options) {
await search(config, options).delete(options.model, doc)
}
const model = {
callbacks: ... |
class Time {
static now() {
return Date.now() + Time._timeOffset;
}
static set timeOffset(offset) {
Time._timeOffset = offset;
}
}
Time._timeOffset = 0;
Class.register(Time);
|
// load testswarm agent
( function() {
var url = window.location.search;
url = decodeURIComponent( url.slice( url.indexOf( "swarmURL=" ) + 9 ) );
if ( !url || url.indexOf( "http" ) !== 0 ) {
return;
}
document.write( "<scr" + "ipt src='https://swarm.jquery.org/js/inject.js?" + ( new Date ).getTime() + "'></scr" ... |
#!/usr/bin/env node
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const yargs_1 = __importDefault(require("yargs"));
const test_1 = require("./Command... |