text stringlengths 3 1.05M |
|---|
import Vue from 'vue';
import Loading from "./loading.vue";
class LoadingService {
constructor() {
this.vm = null;
this.tips = 'loading...';
}
setLoadingText(tips) {
this.tips = tips;
}
show(tips) {
if (!this.vm) {
const container = document.createElem... |
const exec = require('@actions/exec')
const core = require('@actions/core')
const { parse } = require('yaml')
const { readFileSync } = require('fs')
const { join } = require('path')
const { sync } = require('rimraf');
const GITHUB_TOKEN = core.getInput('repo-token', { required: true })
const GITHUB_REPO = core.getInpu... |
export default [
{
lastSeen: '2017-07-25T02:22:19Z',
numComments: 0,
userCount: 1,
culprit: 'Constructor.onSimilarUpdate(app/views/groupSimilar/groupingMergedList)',
title: 'ReferenceError: unmergedList is not defined',
id: '274',
assignedTo: null,
logger: 'javascript',
type: 'erro... |
import React, { Component } from 'react'
const InlineEditComponent = WrappedComponent => {
return class extends Component {
constructor (props) {
super(props)
this.state = {
editing: false
}
this.dblClicked = false
}
singleClickHandler = (event) => {
this.dblClick... |
'''
No oitavo episodio da segunda temporada do seriado The Big Bang Theory, The Lizard-Spock Expansion, Sheldon e Raj discutem qual dos dois é o melhor: o filme Saturn 3 ou a série Deep Space 9. A sugestão de Raj para a resolução do impasse é uma disputa de Pedra-Papel-Tesoura. Contudo, Sheldon argumenta que, se as par... |
/* NFRAMEWORK */(()=>{var e=[];manager=window.NFramework.nmoduleManager,e.push("code1101110"),e.push("user"),null==window.NFramework.nmoduleManager.nlcElementRunned["6e4f6347_901c_426b_bbb6_2bc5f2920cae"]&&(window.NFramework.nmoduleManager.nlcElementRunned["6e4f6347_901c_426b_bbb6_2bc5f2920cae"]=!0),e.splice(e.length-1... |
# Copyright 2016 The TensorFlow 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 required by applica... |
/*
Nashorn has not __defineGetter__ so we make one.
*/
if (!Object.prototype.__defineGetter__ &&
Object.defineProperty({},"x",{get: function(){return true}}).x) {
Object.defineProperty(Object.prototype, "__defineGetter__",
{enumerable: false, configurable: true,
... |
#
# PySNMP MIB module Wellfleet-EGP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-EGP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:33:24 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... |
/**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* globals console, document */
import View from '../../../src/view/view';
import DomEventObserver from '../../../src/view/observer/domevent... |
from django.contrib import admin
from .models import Follow, Group, Post, Question, Choice
class PostAdmin(admin.ModelAdmin):
list_display = ('pk', 'text', 'pub_date', 'author', 'group', 'image',)
search_fields = ('text',)
list_filter = ('pub_date',)
empty_value_display = '-пусто-'
list_editable ... |
'use strict';
/* Controllers
http://www.nganimate.org/angularjs/ng-repeat/appear
*/
var controllerRegister = angular.module('LinkHistory').controller;
controllerRegister( 'mainController', ['$scope', '$rootScope', '$http', function($scope, $rootScope, $http){
$rootScope.users = [];
$http.get('/api/get_use... |
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import search from '../reducers/search';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
export default () => {
const store = createStore(
combineReducers({
search
... |
import menuOptionAudio from './assets/audio/menu/Menu-Selection-Change-D2.mp3';
import soundTrack1 from './assets/audio/music/2021-11-14_-_Ogre_Boss_-_David_Fesliyan.mp3';
import soundTrack2 from './assets/audio/music/2019-05-09_-_Escape_Chase_-_David_Fesliyan.mp3';
import soundTrack3 from './assets/audio/music/60_Seco... |
/**
* Sends the clients credentials to be
* validated and authenticated.
*/
$(document).ready(function() {
$(document).on('submit', '#maintenance-login', function() {
var btnSignIn = $('#btn-sign-in');
var statusContainer = '#maintenance-login-status';
var sArray = $(this).serialize();
... |
import * as React from "react"
import { css } from "@emotion/react"
import { Link } from "gatsby"
import Emoji from "a11y-react-emoji"
import Layout from "../components/layout"
import Seo from "../components/seo"
const NotFoundPage = () => (
<Layout>
<Seo title="404: Not found" />
<h1
css={css`
... |
module.exports = {
siteTitle: 'David Nam | Full Stack SDE',
siteDescription:
'I am a collaborative software engineer with a get-stuff-done attitude, efficient time management skills, and a strong user focus. Eager to learn new technological skills; if I do not have knowledge about something, I will learn it.',
... |
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Thrust(Package):
"""Thrust is a parallel algorithms library
which resembles th... |
import React from "react";
import AppFormHeader from "./AppFormHeader";
import FormField from "./FormField";
import FormFieldText from "./FormFieldText";
const AppForm = ({
filesTab,
onFileChange,
form,
files,
onFileChange2,
onIconClick,
onInputChange,
onFormSubmit,
errors
}) => {
return (
<Rea... |
import sys
import requests
import json
import argparse
# Example raw data: https://gist.githubusercontent.com/joemiller/1723079/raw/bb862b599fa7254a770bd00fc7b16ab24f164c3f/sensu-handler-input-example.json
event = json.load(sys.stdin)
host = event['client']['name']
client_ip = event['client']['address']
parser = argp... |
{"mlist":[],"rlist":{},"page":{"page":1,"count":0,"size":10,"type":0,"id":25577}} |
import Vue from '../node_modules/vue/dist/vue.esm.browser.js'
import Vuex from '../node_modules/vuex/dist/vuex.esm.js'
import actions from './actions.js'
import plugins from './plugins.js'
import {mutations, STORAGE_KEY} from './mutations.js'
Vue.use(Vuex)
const store = new Vuex.Store({
namespaced: true,
state: {
... |
#!/usr/bin/env python
from functools import wraps
import time
from datetime import datetime
import logging
from sys import stdout
from collections import defaultdict
from decimal import Decimal, ROUND_UP
class AutoLogger:
'''
Automatically generates logs
'''
FORMAT = 'AUTOLOG:function({d[fn]}):args({... |
"""
This module finds diffusion paths through a structure based on a given
potential field.
If you use PathFinder algorithm for your research, please consider citing the
following work::
Ziqin Rong, Daniil Kitchaev, Pieremanuele Canepa, Wenxuan Huang, Gerbrand
Ceder, The Journal of Chemical Physics 145 (7), 0... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DEFAULT_EXTENSIONS = void 0;
Object.defineProperty(exports, "File", {
enumerable: true,
get: function () {
return _file.default;
}
});
exports.OptionManager = void 0;
exports.Plugin = Plugin;
Object.defineProperty(exports,... |
import { h } from 'vue'
export default {
name: "HonourLine",
vendor: "Rx",
type: "",
tags: ["honour","line"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"rx-honour-line","innerHTML":" <g> ... |
/*
* @flow
* Copyright (C) 2018 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
/* eslint-disable sort-keys */
const NULL_DATE: PartialDate... |
## -*- coding: utf-8 -*-
import urllib.request, urllib.error
from bs4 import BeautifulSoup
import os
import json
from datetime import date
from datetime import timedelta
from datetime import datetime
import sys
# 从 914 开始的 data 是带有 dd/mm/yyyy 日期的
# 去重复
def fixDataAfter941(data, data2, fmt):
keys = list(data.keys())... |
import {applyMiddleware, compose, combineReducers} from 'redux';
import alertsReducer, {alertsInitialState} from './alerts';
import assetDragReducer, {assetDragInitialState} from './asset-drag';
import cardsReducer, {cardsInitialState} from './cards';
import colorPickerReducer, {colorPickerInitialState} from './color-p... |
/**
* Bio component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.com/docs/use-static-query/
*/
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Image from "gatsby-image"
const Bio = () => {
const data = useStaticQuery(graphql`
... |
import React from "react"
import PropTypes from "prop-types"
import { TwitterTweetEmbed } from "react-twitter-embed"
import { useStaticQuery, graphql } from "gatsby"
import { Card, CardBody } from "reactstrap"
import "./style.scss"
const Background = props => {
const data = useStaticQuery(graphql`
query {
... |
# Copyright 2015 refractionPOINT
#
# 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 writin... |
import { observable, action } from 'mobx';
import { agentApi, detailApi } from 'CONST/api';
import { allProcess } from 'CONST/manageMap';
export default class Agent {
@observable
pagination = {
page: 1,
pageSize: 10
};
@observable dataSource = [];
// @observable editingKey = '';
@observable editin... |
'use strict';
// rewatch the 1st half to figure out local host vs connection
const mongoose = require('mongoose');
const dbURL = 'mongodb://localhost:27017/notes';
//look up
const Notes = require('./models/notes.schema.js');
const Category = require('./models/category.schema.js');
mongoose.connect(dbURL, { useNewUr... |
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("AdyenTerminalApi",[],t):"object"==typeof exports?exports.AdyenTerminalApi=t():e.AdyenTerminalApi=t()}(global,function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;... |
module.exports = {
Board: require('./lib/board'),
LCD: require('./lib/lcd'),
LED: require('./lib/led'),
PIR: require('./lib/pir'),
Ping: require('./lib/ping'),
Piezo: require('./lib/piezo'),
Servo: require('./lib/servo'),
Button: require('./lib/button'),
Sensor: require('./lib/sensor')
... |
const winston = require('winston');
const filter = (level) => winston.format((info) => {
if (info.level === level) {
return info;
}
})();
const levels = {
fatal: 0,
error: 1,
warn: 2,
info: 3,
debug: 4,
http: 5
}
const transports = [
// create a logging target for errors and fatals
new winsto... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d3e27"],{"5f55":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"wrapper"},[o("div",{staticClass:"animated fadeIn"},[o("b-card",{attrs:{"header-tag":"header","footer-tag":"... |
import React from 'react';
import { useHistory } from 'react-router-dom';
import { Auth0Provider } from '@auth0/auth0-react';
const Auth0ProviderWithHistory = ({ children }) => {
const history = useHistory();
const domain = process.env.REACT_APP_AUTH0_DOMAIN;
const clientId = process.env.REACT_APP_AUTH0_CLIENT_ID;
... |
import { useState } from "react";
function PledgeForm({ handler, min }) {
const [pledgeAmount, setpledgeAmount] = useState(min);
const handlePledgeInput = (e) => {
setpledgeAmount(e.target.value);
};
return (
<form className={"pledge-form "} onSubmit={handler}>
<div className="pledge-form__cont... |
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
module.exports = {
plugins: [
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [`Raleway\:400,600,700,800`, `Rock Salt`],
},
},
{
resolve: `gatsby-plugin-react-svg`,
... |
import Counter from './Counter';
export const Internal = () => (
<div>
<Counter />
</div>
); |
from ga import AbstractFitness, IChromosome
from ..interfaces import IGenotype, ITestDataset
from .phenotype import Phenotype
class Fitness(AbstractFitness):
"""
Description:
------------
適応度クラス
"""
__dataset: ITestDataset
def __init__(self, dataset: ITestDataset) -> None:
self._... |
import React, { Component } from 'react';
import { withStyles } from '@material-ui/core/styles';
const styles = {
root: {
margin: '0 8vw',
height: '100vh',
},
title: {
fontSize: '35px',
marginBottom: '50px',
},
left: {
textAlign: 'left',
},
anchor: {
'&:hover': {
color: '#aa... |
// Auto-generated. Do not edit!
// (in-package ur_dashboard_msgs.srv)
"use strict";
const _serializer = _ros_msg_utils.Serialize;
const _arraySerializer = _serializer.Array;
const _deserializer = _ros_msg_utils.Deserialize;
const _arrayDeserializer = _deserializer.Array;
const _finder = _ros_msg_utils.Find;
const _... |
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require('path')
module.exports = {
dev: {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
// Various Dev Server settings
host: 'localhost', ... |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
class PyAzureKeyvaultSecrets(PythonPackage):
"""Microsoft Azure Key Vault Secrets Client Library for Python."""
... |
export default {
title: '全民分红',
tag: '生态税',
desc: '生态税将在每一笔交易中被收取,反馈给所有持有人并促进长期增长,实现持续的全民分红(矿池、空投、FOMO、流动池回收、基金、销毁)。',
for: '用于',
type: '交易类型',
taker: '索取交易',
maker: '贡献交易',
whale: '鲸鱼交易',
robber: '掠食者交易',
total: '税率',
fees: '费用',
farm: '矿池',
airdrop: '空投',
fomo: 'FOMO',
lpAcquisition: ... |
!function(){try{var a=Function("return this")();a&&!a.Math&&(Object.assign(a,{isFinite:isFinite,Array:Array,Date:Date,Error:Error,Function:Function,Math:Math,Object:Object,RegExp:RegExp,String:String,TypeError:TypeError,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterv... |
var table = new Tabulator("#localites-table", {
ajaxURL:urllocalites,
//ajaxConfig:"POST",
//ajaxContentType:"json",
//data:tabledata, //load row data from array
height: 350,
dataTree:true,
//layout:"fitColumns", //fit columns to width of table
//responsiveLayout:"hide", //hide columns th... |
'use strict'
var utils = require('./../utils')
// 节点忽略其重复项的标头
// c.f. https://nodejs.org/api/http.html#http_message_headers
var ignoreDuplicateOf = [
'age', 'authorization', 'content-length', 'content-type', 'etag',
'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
'last-modified', 'locatio... |
var SakiProgress = {
isLoaded: false,
progres: false,
pgDiv: false,
textSpan: false,
first: false,
alertMode: false,
init: function (color) {
if (!this.isLoaded) {
this.isLoaded = true;
console.info("SakiProgress Initializing!\nVersion:1.0.4\nQinlili Tech:Gith... |
import { graphql } from 'graphql';
import createLoader from './Loader';
import createDb from '../../../models';
import { createUploadDir, uploadDir } from '../schema/resolvers/functions';
const context = async (req, schema) => {
const [db] = await Promise.all([createDb(), createUploadDir(uploadDir)]);
return {
... |
import React, { Component } from 'react';
class NotFoundPage extends Component {
render() {
return <div>Resource not found.</div>;
}
}
export default NotFoundPage;
|
define([
'pgui.user_management_api',
'pgui.localizer',
'libs/sprintf',
'pgui.utils',
'pgui.change_password_dialog',
'bootbox',
'mootools-core',
'jquery.tmpl',
'knockout'
], function (PhpGenUserManagementApi, localizer, sprintf, utils) {
return function () {
... |
""" Test data for Catalina/Photos 5 """
import datetime
from tests.parse_output import CompareValues, InspectValues
TEST_LIBRARY = "TestTimeWarp-10.15.7.photoslibrary"
CATALINA_PHOTOS_5 = {
"filenames": {
"pumpkins": "IMG_6522.jpeg",
"pears": "IMG_6501.jpeg",
"sunflowers": "IMG_6520.jpeg... |
//innerShiv for IE8-
(function($){
if(Modernizr.genericDOM){return;}
var webshims = $.webshims;
var doc = document;
var b;
var d;
var rtagName = /<([\w:]+)/;
var wrapMap = {
option: 1,
optgroup: 1,
legend: 1,
thead: 1,
tr: 1,
td: 1,
col: 1,
area: 1
};
var htmlExp = /^(?:[^<]*(<[\w\W]+>)[^>]... |
webpackHotUpdate("app",{
/***/ "./src/helpers/init.ts":
/*!*****************************!*\
!*** ./src/helpers/init.ts ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\nObject.defineProperty(exports, \"__esModule\", { ... |
const path = require('path');
export default {
entry: 'src/index.js',
extraBabelPlugins: [
['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }],
],
env: {
development: {
extraBabelPlugins: ['dva-hmr'],
},
},
alias: {
components: path.resolve(__dirname, 'src/compone... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "../../globals/js/settings", "../../globals/js/misc/mixin", "../../globals/js/mixins/create-component", "../../globals/js/mixins/init-component-by-search", "../../globals/js/mixins/handles", "../../globals/js/misc/o... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urwid
class PopUpDialog(urwid.WidgetWrap):
"""A dialog that appears with nothing but a close button """
signals = ['close']
def __init__(self, inner_widget):
close_button = urwid.Button("OK")
urwid.connect_signal(close_button, 'click',
... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var Holodeck = require('../../../../holodeck'); /* jshint ignore:line */
var Request = require(
'../../../../../../lib/http/request')... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9.17 15.5h5.64l1.14 3h2.09l-5.11-13h-1.86l-5.11 13h2.09l1.12-3zM12 7.98l2.07 5.52H9.93L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16z" />
, ... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... |
// server.js
//====================== set up =====================//
//================all the tools we need==============//
const express = require('express');
const app = express();
const port = process.env.PORT || 8080;
const mongoose = require('mongoose');
const passport = require('passport');
const flas... |
$('#tblLaporanTanggal').dataTable({"bSort" : false});
$('#tblLaporanTanggal').on('click', '.btnDetail', function(){
let kdTransaksi = $(this).data('id');
renderMenu("arusKas/detailArusKas/"+kdTransaksi);
divJudul.judulForm = "Detail Arus Kas";
}); |
# A linked list, relies on a more distributed representation in which a
# lightweight object, known as a node, is allocated for each element. each
# node maintains a reference to its element and one or more references to
# neighboring nodes in order to collectively represent the linear order of the
# sequence.
# Linke... |
const mongoose = require("mongoose");
const classroomSchema = mongoose.Schema(
{
name: {
type: String,
required: true,
},
description: {
type: String,
},
code: {
type: String,
required: true,
},
teacherPassword: {
type: String,
required: true,
... |
import ListViewConfig from './components/ListViewConfig';
import GeneralListView from './GeneralListView';
import Footer, { FooterType, FooterHeight } from "./components/Footer";
import EmptyView from './components/EmptyView';
export default GeneralListView;
export {
EmptyView,
ListViewConfig,
Footer,
... |
import report from '../report.json';
const MeasurementRow = ({ stack }) => (
<tr>
<td>
<a href={`https://${stack}-dot-ruben-oostinga-speeltuin.appspot.com`}>
{report[stack].name}
</a>
</td>
{report[stack].metrics.map(({ displayValue }, i) => <td key={i}>{displayValue}</td>)}
</tr>
)... |
import warnings
import math
import unittest
import functools
from copy import deepcopy
import torch
from torch._six import inf
import torch.optim as optim
import torch.optim._multi_tensor as optim_mt
import torch.nn.functional as F
from torch.optim import SGD
from torch.autograd import Variable
from torch import sparse... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node-opcua-numeric-range
*/
const node_opcua_assert_1 = require("node-opcua-assert");
const _ = require("underscore");
const node_opcua_basic_types_1 = require("node-opcua-basic-types");
const node_opcua_factory_1 = require("no... |
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'movie_database.settings')
try:
from django.core.management import execute_from_command_line
exce... |
import flask
from flask import request, jsonify
from flask_cors import CORS
'''
Code Reference
https://programminghistorian.org/en/lessons/creating-apis-with-python-and-flask
https://wings2pc.tistory.com/entry/%EC%9B%B9-%EC%95%B1%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D-%ED%8C%8C%EC%9D%B4%EC%8D%AC-%ED%... |
import * as settings from '../../settings.js';
export class NpcActionHandlerPf2e {
i18n = (toTranslate) => game.i18n.localize(toTranslate);
constructor(actionHandlerpf2e) {
this.baseHandler = actionHandlerpf2e;
}
buildActionList(result, tokenId, actor) {
let strikes = this._getStr... |
#
# 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 "License"); you may not us... |
import "particles.js";
const particleConfig = {
"particles": {
"number": {
"value": 100,
"density": {
"enable": true,
"value_area": 630
}
},
"color": {
"value": "#ffffff"
},
"shape": {
"type": "circle",
"stroke": {
"width": 0,
"c... |
$("#login").submit(function(e) {
e.preventDefault();
$("#status").show();
$("#status").text("Launching NeCTAR instance...");
$("#status").attr("class", "alert alert-primary");
var username = $("#username").val();
var pw = $("#password").val();
console.log("submit", username, pw);
$.ajax("launch", {
... |
"use strict";
const userNameInput = document.getElementById("user-name");
const assessmentButton = document.getElementById("assessment");
const resultDivided = document.getElementById("result-area");
const tweetDivided = document.getElementById("tweet-area");
/**
* 指定した要素の子どもを全て削除する
* @param {HTMLElement} element H... |
import { combineReducers } from 'redux';
import WeatherReducer from './reducer_weather';
const rootReducer = combineReducers({
weather: WeatherReducer
});
export default rootReducer;
|
/**
* @fileoverview Implements Toolbar Item
* @author NHN FE Development Lab <dl_javascript@nhn.com>
*/
import util from 'tui-code-snippet';
import UIController from './uicontroller';
/**
* Toolbar Item
* @extends {UIController}
*/
class ToolbarItem extends UIController {
/**
* item name
* @memberof Tool... |
import copy
import random
import sys
import numpy as np
import matplotlib.pyplot as plt
import torch
from sklearn.preprocessing import MinMaxScaler
from ch4.model.lstm import LSTM
from ch4.training_datasets import get_training_datasets, get_ni_timeseries
random.seed(1)
torch.manual_seed(1)
# PARAMETERS
# length of s... |
;(function(){
/**
* hasOwnProperty.
*/
var has = Object.prototype.hasOwnProperty;
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
... |
/*
* Facebox (for jQuery)
* version: 1.2 (05/05/2008)
* @requires jQuery v1.2 or later
*
* Examples at http://famspam.com/facebox/
*
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2007, 2008 Chris Wanstrath [ chris@ozmm.org ]
*
* Usage:
*
* jQuery(documen... |
// COPYRIGHT © 2021 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
import json
from rest_framework.test import APITestCase, APIClient
from rest_framework.views import status
from django.urls import reverse
import pdb
class TestShareArticle(APITestCase):
"""
Class tests for article .
"""
client = APIClient()
def setUp(self):
""" Creates user and user di... |
import * as fetch from '../../../lib/fetch/index.js';
import * as parse from '../../../lib/parse.js';
import maintainers from '../../../lib/maintainers.js';
// Set county to this if you only have state data, but this isn't the entire state
// const UNASSIGNED = '(unassigned)';
const scraper = {
county: 'Shasta Coun... |
import 'regenerator-runtime/runtime';
import * as Common from './core/common';
import * as Utils from './core/systemManager/utils';
import * as Prompt from './cli/prompt';
import * as Constants from './core/constants';
import CLI from './cli';
import 'source-map-support/register';
// MANAGERS
import * as EngineManage... |
export const channelsList = [
{ id: 1, title: '# channel 1' },
{ id: 2, title: '# channel 2' },
{ id: 3, title: '# channel 3' },
{ id: 4, title: '# channel 4' }
] |
'use strict';
var assign = require('../../lib/assign').assign;
var fs = require('fs');
var BaseView = require('../base-view');
var classlist = require('../../lib/classlist');
var constants = require('../../constants');
var DropinError = require('../../lib/dropin-error');
var hostedFields = require('braintree-web/hoste... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Famous Industries Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
// Helpers
require('./helpers/config').register(hexo)
require('./helpers/moment').register(hexo)
require('./helpers/layout').register(hexo)
require('./helpers/site').register(hexo)
require('./helpers/page').register(hexo)
require('./helpers/style').register(hexo)
// Filter
require('./filters/patch_content').register(h... |
var app = angular.module('admin-procesos');
app.controller('ProcesoController',['$scope','ProcesoFactory','$uibModal','urlBasePartials','idEmpresa',function ($scope,ProcesoFactory,$uibModal,urlBasePartials,idEmpresa) {
$scope.procesos =[];
$scope.listaDeProcesos= function (){
Proces... |
/*
* global Number constructor benchmark with Buffer to String conversion.
*/
var log = console.log
, s0 = '12'
, s1 = '1234'
, s2 = '12345678'
, s3 = '1234567890123456'
, s4 = '12345678901234567890123456789012'
, b0 = new Buffer( s0 )
, b1 = new Buffer( s1 )
, b2 = new Buffer( s2 )
... |
"use babel";
import { CompositeDisposable } from "atom";
import InputView from "./views/input";
let oConfig,
fActivate,
fDeactivate,
oDisposables,
_fStart;
oConfig = {
"replaceCharacters": {
"type": "string",
"default": "ASDFJKLGHQWERTYUIOPZXCVBNM"
}
};
_fStart = function( sM... |
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2014 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... |
(this["webpackJsonpunfpa-front"]=this["webpackJsonpunfpa-front"]||[]).push([[134],{1337:function(t,e,i){"use strict";i.r(e),i.d(e,"i",(function(){return l}));var n,r=i(24),s=i(651),a={exports:{}};self,n=function(){return function(){var t,e,i,n,s={},a={};function o(t){var e=a[t];if(void 0!==e)return e.exports;var i=a[t]... |
_base_ = [
'../../_base_/models/slowonly_r50.py', '../../_base_/default_runtime.py'
]
# model settings
model = dict(backbone=dict(pretrained=None))
# dataset settings
dataset_type = 'RawframeDataset'
data_root = 'data/kinetics400/rawframes_train'
data_root_val = 'data/kinetics400/rawframes_val'
ann_file_train = '... |
/*global QUnit*/
QUnit.config.autostart = false;
sap.ui.require([
'sap/ui/rta/command/CommandFactory',
'sap/ui/dt/DesignTimeMetadata',
'sap/ui/rta/command/LREPSerializer',
'sap/ui/rta/command/Stack',
'sap/ui/fl/registry/ChangeRegistry',
'sap/ui/fl/Utils',
'sap/ui/fl/Change',
'sap/ui/fl/ChangePersistence',
's... |
import t from "../../actions/auths/types";
const initialState = {};
export default function(state = initialState, action) {
switch (action.type) {
case t.GET_ERRORS:
return action.payload;
default:
return state;
}
}
|