text stringlengths 3 1.05M |
|---|
import React from 'react';
import { NavLink } from 'react-router-dom';
const Header = () => (
<header>
<h1>Portfolio</h1>
<NavLink to="/" activeClassName="is-active" exact={true}>Home</NavLink>
<NavLink to="/portfolio" activeClassName="is-active" exact={true}>Portfolio</NavLink>
<NavLink to="/contact" activeC... |
/*
* blueimp Gallery JS
* https://github.com/blueimp/Gallery
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Swipe implementation based on
* https://github.com/bradbirdsall/Swipe
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global define, window, documen... |
var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,i=(e,t)=>{for(var n in t||(t={}))r.call(t,... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import TextField from "@material-ui/core/TextField";
import AddIcon from "@material-ui/icons/Add";
import DelIcon from "@material-ui/icons/Delete";
import Button from "@material-ui/core... |
const Ch5Questions = [
{
question: `Why do we care about asynchrony? Why not make everything synchronous?`,
questionId: 'fSSc7ml4RBdQfi3VnoUO',
shouldBeRandomized: true,
answers: [
{ text: 'That would make our code less readable', id: 0 },
{ text: 'For performance reasons', id: 1 },
... |
import VueRouter from 'vue-router';
import logger from 'kolibri.lib.logging';
const logging = logger.getLogger(__filename);
/** Wrapper around Vue Router.
* Implements URL mapping to Vuex actions in addition to Vue components.
* Otherwise intended as a mostly transparent replacement to vue-router.
*/
class Route... |
// flow-typed signature: 8ba3123cbbeb28104ff2918413b01b47
// flow-typed version: <<STUB>>/npm-run-all_v4.1.1/flow_v0.54.0
/**
* This is an autogenerated libdef stub for:
*
* 'npm-run-all'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the... |
const St = imports.gi.St;
const PopupMenu = imports.ui.popupMenu;
const GObject = imports.gi.GObject;
const Clutter = imports.gi.Clutter;
const Lang = imports.lang;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const ConfirmDialog = Me.imports.confirmDialog;
const... |
# -*- coding: utf_8 -*-
"""Frida tests."""
import base64
import glob
import os
import re
import json
from pathlib import Path
import threading
import logging
from django.shortcuts import render
from django.conf import settings
from django.views.decorators.http import require_http_methods
from mobsf.DynamicAnalyzer.vi... |
module.exports = [{"isApi":true,"priority":1000.0001,"key":"Window","style":{backgroundColor:"#33B5E5",}},{"isApi":true,"priority":1000.0003,"key":"TableView","style":{left:0,width:Ti.UI.FILL,separatorColor:"#336699",height:Ti.UI.SIZE,backgroundColor:"#33B5E5",}},{"isApi":true,"priority":1000.0004,"key":"TableViewRow",... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'language', 'fr', {
button: 'Définir la langue',
remove: 'Supprimer la langue'
} );
|
import json
import logging
from typing import Any, Dict, List, Tuple, Optional, Iterable
from allennlp.common.util import sanitize_wordpiece
from allennlp.data.fields import MetadataField, TextField, SpanField
from overrides import overrides
from allennlp.common.file_utils import cached_path, open_compressed
from all... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React__default = require('react');
var React__default__default = _interopDefault(React__default);
var propTypes = require... |
var initialize_FileSystemTest = function()
{
InspectorTest.preloadPanel("resources");
var nextCallbackId = 0;
var callbacks = {};
InspectorTest.MockEntry = function(url)
{
this.url = url;
}
InspectorTest.registerCallback = function(callback)
{
var callbackId = ++nextCa... |
import React from 'react';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import ReactDOM from 'react-dom';
import App from './containers/App';
import reducer from './reducers/app';
import './index.css';
// create store and enable dev tool... |
from flask import Flask,render_template
app = Flask(__name__,template_folder='templates')
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
app.run(debug = True)
|
var example = require('./build/Release/failing_detach_test.node')
const buf = example.alloc_with_finalise()
console.log(buf)
example.detach(buf)
console.log(buf)
|
import os
from argparse import ArgumentParser
import torch
from pytorch_lightning import Trainer, seed_everything
from pytorch_lightning.callbacks import ModelCheckpoint
from pytorch_lightning.loggers import WandbLogger, TensorBoardLogger
from data import CIFAR10Data
from module import CIFAR10Module
import json
impo... |
$(function(){
$("#user_manage_btn").click(function(){
$("#userManage").show();
$("#bookManage").hide();
});
$("#books_manage_btn").click(function(){
$("#userManage").hide();
$("#bookManage").show();
});
//添加学生信息功能初始化
stuAddHandle();
//学生搜索
$("#stu_search").click(function(){
if(!isAddStu()){
var ... |
'use strict'
const fs = require('fs')
const net = require('net')
const tman = require('tman')
const http = require('http')
const assert = require('assert')
const Stream = require('stream')
const request = require('supertest')
const statuses = require('statuses')
const stderr = require('test-console').stderr
const Toa ... |
import React from 'react';
import onlineIcon from '../Icon/onlineIcon.png';
import classes from './info.module.css';
const InfoBar = ({ userName }) => (
<div className={classes.infoBar}>
<h3>{userName}</h3>
<img className={classes.onlineIcon} src={onlineIcon} alt="online icon" />
</div>
);
export d... |
(function(){const ENUM_CONST={PLUS:"+",SUBTRACT:"-",TIMES:"*",DIVIDE:"/",MODE:"%",NOT:"!",GREAT:">",LESS:"<",ASSIGN:"=",GREAT_EQUAL:">=",LESS_EQUAL:"<=",EQUAL:"==",NOT_EQUAL:"!=",BIT_AND:"&",BIT_OR:"|",BIT_NOT:"~",BIT_XOR:"^",CONDITION_AND:"&&",CONDITION_OR:"||",BIT_LEFT_SHIFT:"<<",BIT_RIGHT_SHIFT:">>",WHITESPACE:" ",L... |
/*!
* Bootstrap Context Menu
* Author: @sydcanem
* https://github.com/sydcanem/bootstrap-contextmenu
*
* Inspired by Bootstrap's dropdown plugin.
* Bootstrap (http://getbootstrap.com).
*
* Licensed under MIT
* ========================================================= */
;(function($) {
'use strict';
/* CO... |
define(['knockout','plugins/router'], function (ko,router) {
var childRouter4 = router.createChildRouter()
.makeRelative({
moduleId:'mycard',
fromParent:true
}).map(appConfig.app.myCardRouter).buildNavigationModel();
appConfig.app.mycardshell= {
acti... |
/*! (C) 2017 https://github.com/ikarus512 */!function(){"use strict";angular.module("a_common",[])}(); |
from django.test import TestCase
from users.forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
class UserRegisterTest(TestCase):
def test_email_label(self):
form = UserRegisterForm()
self.assertTrue(form.fields['email'].label is None or form.fields['email'].label == 'Email')
de... |
from typing import Dict, Optional, Tuple, cast
from ee.clickhouse.models.action import format_action_filter
from ee.clickhouse.models.group import get_aggregation_target_field
from ee.clickhouse.models.property import parse_prop_clauses
from ee.clickhouse.queries.actor_base_query import ActorBaseQuery
from ee.clickhou... |
const FunctionHelper = require('../../functionhelper');
FunctionHelper.prototype.date_add = function(date, addSub, dateType, noQuotes, alias) {
dateType = dateType.toLowerCase();
return this.client.raw("DATEADD("+dateType+","+addSub+","+FunctionHelper.prototype.getDateForQFn(date, noQuotes)+")"+FunctionHelper.prot... |
# -*- coding: utf-8 -*-
import sys
import os
from functools import wraps
from six.moves import input
from colorama import Fore
import distutils.spawn
MACOS = 'darwin'
IS_MACOS = sys.platform == MACOS
def wordIndex(data, word):
wordList = data.split()
return wordList.index(word)
def print_say(text, self, c... |
// Misc.js v3.4.1
/* global _doc:readonly */
//---------------------------------------------------------------------------
// ★Miscクラス html表示系 (Menu, Button以外)の制御を行う
//---------------------------------------------------------------------------
ui.misc = {
//------------------------------------------------------------... |
'use strict';
var assert = require('assert');
var Emitter = require('../dist/build.js');
var bus = new Emitter();
var params;
var called = false;
var called2 = false;
function listener() {
called = true;
params = arguments;
}
function listener2() {
called2 = true;
}
describe('Emitter', function () {
before... |
import React from 'react';
import Button from '@material/react-button';
import Capability from '../lib/capabilities/Capability';
import MaterialIcon from '@material/react-material-icon';
import PropTypes from 'prop-types';
import * as Actions from '../redux/actions';
import { ApprovalState, ApprovalType , LocationRestr... |
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... |
'use strict';
var ES = require('es-abstract/es7');
var has = require('has');
var bind = require('function-bind');
var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable);
module.exports = function entries(O) {
var obj = ES.RequireObjectCoercible(O);
var entrys = [];
for (var key in obj) ... |
nv.models.multiBar = function() {
"use strict";
//============================================================
// Public Variables with Default Settings
//------------------------------------------------------------
var margin = {top: 0, right: 0, bottom: 0, left: 0}
, width = 960
, height = 500
... |
import React from "react";
import styled from "styled-components";
const ContactContainer = styled.section`
width: 100vw;
/* height: calc(100vh - 80px); */
height: 100vh;
background: blue;
`;
const Contact = React.forwardRef((props, ref) => (
<ContactContainer id="contact" ref={ref} {...props}></ContactCont... |
(async function(testRunner) {
const {page, session, dp} = await testRunner.startURL(
'https://devtools.oopif-a.test:8443/inspector-protocol/resources/coi-with-iframe.php',
`Tests that the attachedToTarget message is dispatched to all attached sessions`);
await dp.Target.enable();
await dp.Target.setA... |
from hashlib import sha256
MAX_NONCE = 100000000000
def SHA256(text):
return sha256(text.encode("ascii")).hexdigest()
def mine(block_number, transactions, previous_hash, prefix_zeros):
prefix_str = '0'*prefix_zeros
for nonce in range(MAX_NONCE):
text = str(block_number) + transactions + p... |
import pytest
from mitmproxy.http import Headers
from mitmproxy.net.http.http1.read import (
read_request_head,
read_response_head, connection_close, expected_http_body_size,
_read_request_line, _read_response_line, _read_headers, get_header_tokens
)
from mitmproxy.test.tutils import treq, tresp
def test... |
import os
import shutil
import json
import pandas as pd
import numpy as np
from loguru import logger
execResjson = "find -type f -iname 'alphapose-results.json'"
def getVisDir(path):
p = os.path.split(path)[0]
return os.path.join(p,'vis')
def getImgToDel(jsit):
with open(jsit) as jsf:
js = json.l... |
# Copyright 2018 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://aws.amazon.com/apache2.0/
#
# or in the "LICENSE.txt" file accom... |
const { getLanguage } = require('./actions.js');
/**
The init function of Mist
@method mistInit
*/
mistInit = function () {
console.info('Initialise Mist Interface');
EthBlocks.init();
const ethBlocksInterval = setInterval(() => {
if (_.isEmpty(EthBlocks.latest)) {
EthBlocks.init();
... |
from django.contrib import admin
from .models import Profile, Gender, Tag
# Register your models here.
admin.site.register(Profile)
admin.site.register(Gender)
admin.site.register(Tag) |
# -*- coding: utf-8 -*-
import uuid
import docker
import os.path
import pytest
import socket
import random
from bitshares import BitShares
from bitshares.instance import set_shared_bitshares_instance
from bitshares.genesisbalance import GenesisBalance
from bitshares.asset import Asset
from bitsharesbase.chains import... |
const webpack = require("webpack");
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');
const srcDir = '../src/';
module.exports = {
entry: {
content_script: path.join(__dirname, srcDir + 'content_script.ts'),
},
output: {
path: path.join(__dirname, '../dist/js'... |
import os
import logging
from getpass import getpass
from skcom.crypto import decrypt_text
def main():
logger = logging.getLogger('helper')
cfg_path = os.path.expanduser(r'~\.skcom\skcom.yaml')
try:
# 解密
with open(cfg_path + '.enc', 'rb') as enc_file:
secret = enc... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'tr', {
options: 'Özel Karakter Seçenekleri',
title: 'Özel Karakter Seç',
toolbar: 'Özel Karakter Ekle'
} );
|
const generateUniqueId = require("../../src/utils/generateUniqueId");
describe("Geração Unique ID", () => {
it("Deve gerar um ID exclusivo", () => {
const id = generateUniqueId();
expect(id).toHaveLength(8);
});
});
|
(function(factory){if(typeof module==="object"&&typeof module.exports!=="undefined"){module.exports=factory}else{factory(FusionCharts)}})(function(FusionCharts){(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var ... |
import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import Layout from '../components/Layout'
import Features from '../components/Features'
import Testimonials from '../components/Testimonials'
import Pricing from '../components/Pricing'
import PreviewCompatibleImage from '../c... |
// eslint-disable-next-line import/no-extraneous-dependencies,import/no-self-import
const copyfiles = require('copyfiles');
const Fs = require('fs');
const pkg = require('./package.json');
const copyToDir = process.env.OUT_DIR;
const isBuild = copyToDir === 'build';
const workspaces = pkg.workspaces.packages.map(x => ... |
async function saveComment(event){
event.preventDefault();
console.log("HELLO FROM SAVE BUTTON FUNCTION");
const newComment = document.getElementById('comment-text').value;
const post_id = document.getElementById('post-header').dataset.index;
const commentData = await fetch(`/api/posts/comment`, {... |
from django.contrib import admin
from django.contrib.auth import admin as auth_admin
from django.contrib.auth import get_user_model
from nomadgram.users.forms import UserChangeForm, UserCreationForm
User = get_user_model()
@admin.register(User)
class UserAdmin(auth_admin.UserAdmin):
form = UserChangeForm
a... |
import json
from os import write
w = open("json.txt","r",encoding="utf-8")
f = open("dict.txt","w",encoding="utf-8")
arr = json.load(w)
s = dict()
f.write('{')
for item in arr:
s[item["value"]] = item["key"]
print(s)
for key in s:
f.write('"'+str(key)+'"'+':')
f.write('"'+str(s[key])+'"'+',\n')
f.write("}"... |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-obj-init.case
// - src/dstr-binding/default/gen-func-decl.template
/*---
description: Object binding pattern with "nested" object binding pattern using initializer (generator function declaration)
esid: sec-generator... |
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* @fileoverview Implementation for the corp-relay@google.com proxy.
*/
/**
* Corp Relay implementation.
*
* @param {!hterm... |
#!/usr/bin/env python
#
# file: core.py
# author: Cyrus Harrison <cyrush@llnl.gov>
#
#
import os
import subprocess
import datetime
import json
import errno
import webbrowser
from os.path import join as pjoin
__all__ = ["Context",
"shell",
"svn",
"cmake",
"make",
... |
#!/usr/bin/env python3
# Copyright (c) 2017-2018 The Bitcoin Core developers
# Copyright (c) 2017 The Raven Core developers
# Copyright (c) 2018 The Rito Core developers
# Copyright (c) 2019 The Naldcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.open... |
var CamEngine = (function() {
var stream; // stream obtained from webcam
var video; // video receiving stream
var captureCvs; // internal canvas capturing full images from video
var captureCtx; // context for capture canvas
var procCvs; ... |
CKEDITOR.plugins.setLang("docprops","ka",{bgColor:"ფონის ფერი",bgFixed:"უმოძრაო (ფიქსირებული) ფონი",bgImage:"ფონური სურათის URL",charset:"კოდირება",charsetASCII:"ამერიკული (ASCII)",charsetCE:"ცენტრალურ ევროპული",charsetCR:"კირილური",charsetCT:"ტრადიციული ჩინური (Big5)",charsetGR:"ბერძნული",charsetJP:"იაპონური",charsetK... |
import "regenerator-runtime";
import "bootstrap/dist/css/bootstrap.min.css";
import "./styles/main.css";
import "./component/navbar.js";
import "./component/faq.js";
import "./component/donasi.js";
import "./component/footer.js";
import berita from "./script/berita.js";
import track from "./script/track.js";
berita();... |
import { MAKE_SANE } from '../actions/actionTypes';
const sanePerson = (state = { status: 'angry' }, action) => {
switch(action.type) {
case MAKE_SANE:
return Object.assign({}, state, { status: action.status });
default:
return state;
}
};
export default sanePerson;
|
'use strict';
const store = require('./store');
const TaskStatus = require('./task-status');
const chalk = require('chalk');
const {quizMap} = require('../lib/quiz');
class Status {
constructor () {
let oldStatus = store.get('status') || {};
this.task = oldStatus.task ? TaskStatus.clone(oldStatu... |
/**
* @license
* Copyright (C) 2016 The Android Open Source Project
*
* 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... |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
"""
"""
import hashlib
import json
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
db = SQLAlchemy()
bcrypt = Bcrypt()
def hash_json_256(data):
return hashlib.sha256(
json.dumps(data, sort_keys=True, separators=(",", ":")).encode("utf-8")
).hexdigest()
|
import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import 'bootstrap/dist/css/bootstrap.min.css';
import { Container } from 'react-bootstrap';
import Home from './components/home/Home';
import DataDetails from './components/details/DataDetails';
import Topbar from './c... |
/* @flow */
import config from '../config'
import VNode, { createEmptyVNode } from './vnode'
import { createComponent } from './create-component'
import { traverse } from '../observer/traverse'
import {
warn,
isDef,
isUndef,
isTrue,
isObject,
isPrimitive,
resolveAsset
} from '../util/index'
import {
... |
"use strict";
var utils = require("../../../lib/utils");
var assert = require("chai").assert;
var sinon = require("sinon");
var external = "192.168.0.4";
describe("Utils: creating URLs", function () {
var opts, port, ipStub;
before(function () {
ipStub = sinon.stub(utils, "getHostIp").return... |
/**
* @flow
*/
/* eslint-disable */
'use strict';
/*::
import type {ConcreteFragment} from 'relay-runtime';
export type ManageAuthor_node = {|
+id: string;
+name: string;
+slug: string;
+affiliation: {|
+institute: ?{|
+id: string;
+name: ?string;
|};
|};
+posts: ?{|
+edges: $Re... |
var config = require('../../conf/config')
, auth = require('../index')
, AppStrategy = require('../strategies/app')
, appAPI = require('../../data/app');
var provider = {
strategy: 'app',
scope: null
};
auth.useStrategy(provider, AppStrategy, {
passReqToCallback: true
},
function(req, appId, appSec... |
const Discord = require('discord.js')
function SendErr(ch,errMsg) {
const eEmbed = new Discord.MessageEmbed()
.setDescription(`ℹ️ ${errMsg}`)
.setColor("#ff0000")
ch.send(eEmbed)
}
/**
* Draws a rounded rectangle using the current state of the canvas.
* If you omit the last three params, it wil... |
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^playlists/(?P<playlist_id>[0-9]+)/$', views.playlist, name='playlist'),
url(r'^summary/$', views.summary, name='summary'),
url(r'^reports/$', views.reports, name='reports'),
]
|
# Copyright 2021 One Theta. 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 ag... |
/**
* pageTitle - Directive for set Page title - mata title
*/
function pageTitle($rootScope, $timeout) {
return {
link: function(scope, element) {
var listener = function(event, toState, toParams, fromState, fromParams) {
var title = 'IAF, Ibis AdapterFramework'; // Default ti... |
import numpy as np
from scipy import signal
def Peakiness(data,
delta_fast_time_range,
n_snow,
log_peak_threshold = 0.7,
lin_peak_threshold = 0.5,
pp_r_threshold = 30,
pp_l_threshold = 30,
**kwargs):
'''
Autho... |
import { LinearFilter, LinearMipMapLinearFilter, ClampToEdgeWrapping } from '../constants';
import { XHRLoader } from './XHRLoader';
import { DataTexture } from '../textures/DataTexture';
import { DefaultLoadingManager } from './LoadingManager';
/**
* @author Nikos M. / https://github.com/foo123/
*
* Abstract Base ... |
from collections import deque
from copy import deepcopy
from dataclasses import dataclass
from enum import Enum
from pathlib import Path
from typing import Dict, Iterable, List, Optional, cast
import warnings
from parse import parse
from pywps import ComplexInput, FORMATS, Process
from pywps import configuration
from ... |
import React from "react";
import { Auth } from "aws-amplify";
import produce from "immer";
const SIGNING = "SIGNING";
const SIGN_IN = "SIGN_IN";
const SIGN_OUT = "SIGN_OUT";
const initialState = {
error: null,
isLoading: true,
isSigning: false,
isSignedIn: false,
};
const AuthContext = React.createContext(n... |
sap.ui.define([
"./BaseController",
"sap/ui/model/json/JSONModel",
"sap/ui/core/routing/History",
"../model/formatter"
], function (BaseController, JSONModel, History, formatter) {
"use strict";
return BaseController.extend("ns.mitigations.controller.Object", {
formatter: formatter,
/* ====================... |
// Copyright 2007 The Closure Library 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 requ... |
/*!
* 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(["./rules/Misc.support","./rules/Config.support","./rules/Model.support","./rules/View.support","./rules/App.support","./rules/Rendering.support"],function... |
const Insight = require('../lib/insight')
const generateFiles = require('../boilerplate/files')
const { getReactNativeVersion } = require('../lib/react-native-version')
const fs = require('fs-extra')
module.exports = async function (context) {
// grab some features
const { ignite, print } = context
// load the ... |
import service from '../../js/request'
/**
* --------排对候诊-------------
*/
// 候诊信息查询
export function getWaitInfos(query) {
return service({
url: '/registration/getwait',
method: 'post',
data: query
})
}
/**
* --------B超预约-------------
*/
// 获取B超提示信息
export function getCheckCaution... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FacebookFill = {
name: 'facebook',
theme: 'fill',
nameWithTheme: 'facebook-fill',
tag: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
class: 'icon',
viewBox: '0 0 1024 1024'
},
chil... |
/**
* @license Highstock JS v8.2.0 (2020-08-20)
* @module highcharts/indicators/keltner-channels
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Daniel Studencki
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Stock/... |
/**
* 前端越来越复杂的产品和组件库需要更扎实的算法和数据结构才能驾驭
* 前端也不再满足于简单的css+js
* 数据结构和算法更是未来的趋势
*/
module.exports=require('./lib/bundle.js'); |
'use strict';
const fs = require('fs');
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString = '';
let currentLine = 0;
process.stdin.on('data', inputStdin => {
inputString += inputStdin;
});
process.stdin.on('end', _ => {
inputString = inputString.replace(/\s*$/, '')
.split(... |
var COMPODOC_SEARCH_INDEX = {
"index": {"version":"2.3.9","fields":["title","body"],"fieldVectors":[["title/controllers/AppController.html",[0,1.194,1,2.566]],["body/controllers/AppController.html",[0,2.103,1,4.523,2,1.605,3,0.181,4,0.181,5,0.152,6,4.679,7,0.439,8,1.656,9,6.155,10,2.681,11,0.019,12,1.204,13,5.444,1... |
/*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("app-transitions",function(e,t){function n(){}n.ATTRS={transitions:{setter:"_setTransitions",value:!1}},n.FX={fade:{viewIn:"app:fadeIn",viewOut:"app:fadeOut"},slideLef... |
const router = require("express").Router();
let billing = require("../models/Billing.model");
const checkMail = (mail) =>{
if (/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(myForm.emailAddr.value))
{
return (true)
}
return (false)
}
router.route("/find").get((req, res)=>... |
import React, { Component } from 'react';
import './Button.css';
export default class TextButton extends Component{
constructor() {
super();
this.state = {
title: "Button",
}
};
render(){
const fromProps = (this.props.text) ? this.props.text : this.state.title;
const text = (this.prop... |
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('emeraldApp'));
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
MainCtrl = $contro... |
import Link from "next/link";
import cn from "classnames";
import PropTypes from "prop-types";
export default function Button({ Component, children, primary, ...props }) {
const classNames = cn(
"box-border",
"inline-block",
"p-3 sm:p-4",
"mx-auto",
"mt-4",
"mb-4",
"font-bold",
"text... |
import Vue from 'vue'
import '@/utils/directive.js'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
import mavonEditor from 'mavon-editor'
import... |
import numpy as np
import os
import ntpath
import time
import sys
from subprocess import Popen, PIPE
from . import util, html
# from scipy.im import imresize
from PIL import Image
if sys.version_info[0] == 2:
VisdomExceptionBase = Exception
else:
VisdomExceptionBase = ConnectionError
def save_images(webpage, ... |
module.exports={A:{A:{"2":"H D G E A B HB"},B:{"2":"0 C p J L N I"},C:{"2":"0 1 2 3 4 6 7 8 9 cB F K H D G E A B C p J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y z AB BB aB UB"},D:{"1":"1 4 6 7 8 9 AB BB OB eB GB IB FB JB KB LB MB","2":"0 2 F K H D G E A B C p J L N I O P Q R S T U V ... |
import Notebook32 from "./Notebook32.svelte";
export default Notebook32; |
import sys
from watools.Collect.MOD13.DataAccess import DownloadData
def main(Dir, Startdate, Enddate, latlim, lonlim, cores=False, Waitbar = 1, hdf_library = None, remove_hdf = 1):
"""
This function downloads MOD13 16-daily data for the specified time
interval, and spatial extent.
Keyword arguments:... |
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or th... |