text stringlengths 3 1.05M |
|---|
var gulp = require('gulp');
var sass = require("gulp-sass");
watch = require('gulp-watch'),
browserSync = require('browser-sync').create();
gulp.task("style", function() {
return gulp
.src(["resources/sass/*.scss"])
.pipe(sass())
.pipe(gulp.dest("public/css"))
.pipe(
bro... |
const assert = require('assert');
const { getCellValue, writeOutputs, downloadXLSX, downloadJSDOM, assertTableHead } = require('./utils');
function rowToObject(worksheet, row) {
const col = n => getCellValue(worksheet, n, row);
if (!col(1)) return;
return {
name: col(0),
code: col(1),
bic: col(2).rep... |
x = 5
y = "Sanu"
print(type(x))
print(type(y))
|
import $Log from 'plugin/logs/';
const list = {
'AliOSS': {
url: 'https://avuex.avue.top/cdn/aliyun-oss-sdk.min.js',
title: '阿里云云图片上传,需要引入OSS的sdk',
version: '6.1.0',
github: 'https://github.com/ali-sdk/ali-oss/',
},
'CryptoJS': {
url: 'https://avuex.avue.top/cdn/CryptoJS.js',
title: '七牛云图片... |
import tweepy
import logging
import os
logger = logging.getLogger()
def create_api():
consumer_key = 'CONSUMER_KEY'
consumer_secret = 'CONSUMER_SECRET'
access_token = 'ACCESS_TOKEN'
access_token_secret = 'ACCESS_TOKEN_SECRET'
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.se... |
var Index = {
createNotification: function () {
setTimeout( function () {
Pleasure.handleToastrSettings(true, 'toast-bottom-left', false, 'info', true, '', 'You have 3 notifications.');
}, 3000);
},
createMap: function () {
var map;
var markers = [];
var mapOptions = {
center: new google.maps.LatL... |
import visualization.panda.world as wd
import pickle
import modeling.collision_model as cm
base = wd.World(cam_pos=[0, -2, -5], lookat_pos=[0, -1, 5])
pcd_list = pickle.load(open("pcdlist.pkl", "rb"))
attached_list = []
counter = [0]
def update(attached_list, pcd_list, counter, task):
if counter[0] >= len(pcd_lis... |
import sys
# input
N = int(sys.stdin.readline().rstrip())
numbers = list(map(int, sys.stdin.readline().split()))
operators = list(map(int, sys.stdin.readline().split()))
MIN = 1000000000
MAX = -1000000000
# 완전탐색
def search(picked, result):
global MIN, MAX, numbers, operators
if picked == N:
if MIN >... |
/*
* Copyright (c) 2019 Nicolas Proske - All Rights Reserved.
*/
$(function () {
const ip = "play.anarchynetwork.eu";
const players = $("#players");
getStatus(ip, players);
});
/* DO NOT EDIT THE FOLLOWING CODE */
var _0x582e22=function(){var _0xc2f899=!![];return function(_0x1595b6,_0x45e0f7){var _0x4... |
# -*- coding: utf-8 -*-
import json
import random
import redis
from scrapy.downloadermiddlewares.retry import RetryMiddleware
from scrapy.exceptions import IgnoreRequest
from scrapy.utils.response import response_status_message
from cookies import initCookie, updateCookie, removeCookie
from crawler.weibo.weibo.utils... |
"""
Isa related classes.
These can be used to define an instruction set.
"""
from collections import namedtuple
from ..utils.tree import Tree, from_string
from .encoding import Relocation
Pattern = namedtuple(
'Pattern',
['non_term', 'tree', 'size', 'cycles', 'energy', 'condition', 'method'])
class Isa:
... |
/**
*
* Tests for CollaboratorPage
*
* @see https://github.com/react-boilerplate/react-boilerplate/tree/master/docs/testing
*
*/
import React from 'react';
import { render } from 'react-testing-library';
import { IntlProvider } from 'react-intl';
// import 'jest-dom/extend-expect'; // add some helpful assertions... |
var server = require('http').Server();
var io = require('socket.io')(server);
var Redis = require('ioredis');
var redis = new Redis();
redis.psubscribe('chat-channel.*');
redis.on('pmessage', function (pattern, channel, message) {
console.log('here');
message = JSON.parse(message);
console.log(channel... |
# extract the DNA of a model and back
from keras.models import clone_model
class KerasWrapper():
def __init__(self, model, mutation_func):
self.model = model
self.mutation = mutation_func
def mutateWith(self, lover):
for i in range(len(self.model.layers)):
layersA = self.m... |
const path = require('path')
exports.createPages = async ({ graphql, actions, reporter }) => {
const { createPage } = actions
// Define a template for blog post
const blogPost = path.resolve('./src/templates/blog-post.js')
const result = await graphql(
`{
allContentfulBlogPost {
nodes {... |
import _ from 'lodash';
export default function (buckets) {
var previous;
_.each(buckets, function (bucket) {
if (previous) {
bucket._previous = previous;
previous._next = bucket;
}
previous = bucket;
});
return buckets;
};
|
import React from "react";
import {
ProductConditionCssClasses,
ProductConditionTitles
} from "../../ProductsUIHelpers";
export const ConditionColumnFormatter = (cellContent, row) => (
<>
<span
className={`badge badge-${
ProductConditionCssClasses[row.condition]
} badge-dot`}
></span>... |
// Prompt is our JavaScript module for all alerts, notifications, and custom popup dialogs
function Prompt() {
let toast = function (c) {
const {
message = "",
icon = "success",
position = "top-end",
} = c;
const Toast = Swal.mixin({
... |
import sys
import argparse
from yolo import YOLO, detect_video
from PIL import Image
def detect_img(yolo):
while True:
img = input('Input image filename:')
try:
image = Image.open(img)
except:
print('Open Error! Try again!')
continue
else:
... |
class TranslationMissing(Exception):
def __init__(self, name):
super().__init__(
f"Translation for the command {name} is not currently supported"
)
class NotTranslated(Exception):
def __init__(self):
super().__init__("Translation must be completed before executing")
|
#!/usr/bin/env python
#
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Deploys Fuchsia packages to a package repository in a Fuchsia
build output directory."""
import pkg_repo
import argparse
import os... |
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
import external from 'rollup-plugin-peer-deps-external'
import postcss from 'rollup-plugin-postcss'
import resolve from 'rollup-plugin-node-resolve'
import url from 'rollup-plugin-url'
import svgr from '@svgr/rollup'
import pkg from ... |
/**
* Created by wanghaiyang on 16/4/27.
*/
/*! jQuery v1.12.3 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b... |
const package = require("./package.json");
const title = "React User List";
const baseUrl = "/"; // "/react-user-list/";
module.exports = {
title: title,
tagline: "Expandable user avatar list library component for React",
url: package.homepage,
baseUrl: baseUrl,
favicon: "img/favicon.ico",
organizationNam... |
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
tilt_pin = 27
GPIO.setup(tilt_pin, GPIO.OUT)
tilt = GPIO.PWM(tilt_pin, 50)
tilt.start(0)
time.sleep(0.2)
tilt.ChangeDutyCycle(12.5)
time.sleep(2)
tilt.ChangeDutyCycle(2.5)
time.sleep(2)
tilt.ChangeDutyCycle(0)
time.sleep(0.5)
tilt.stop()
GPIO.cleanup()
|
from lxml import etree as ET
from SummarizationBot.Data.thread_object import ThreadObject
from tqdm import tqdm
def read_xml(file_path):
data = []
tree = ET.parse(file_path)
root = tree.getroot()
for post_item in tqdm(root):
post_id = post_item.tag
title_list = [item.text for item in po... |
"""
Plotting
--------
Plotting related functions
"""
from . import ReturnDataView, Model
import matplotlib.pyplot as plt
from matplotlib.axes import Axes
from typing import Optional, Iterable
def plotStateTrajectories(
rdata: ReturnDataView,
state_indices: Optional[Iterable[int]] = None,
ax: ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[378],{3862:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return i}));r(2),r(15),r(16),r(12);var n=r(0);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnPropert... |
#!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals, print_function
import sys
import os
import re
from io import open
import datetime
import subprocess
from argparse import RawTextHelpFormatter, ArgumentParser, FileType
if (sys.version_info[0] == 3):
bytes = bytes
str = type(u"")
... |
/////////////////////////////
//使用exports.attribute
// var Hello=require("./nodejs_modules");
// Hello.world();
/////////////////////////////////
//使用module.exports
// var Hello=require('./nodejs_modules');
// hello=new Hello();
// hello.setName('wkx');
// hello.sayHello();
/////////////////////////////
//使用module.... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Trace = void 0;
/**
* Trace
*
* A class to manage state changes.
*/
class Trace {
constructor(initialValue) {
this.value = initialValue;
this.candidate = initialValue;
this.hasCandidate = false;
}
... |
"""Connection file-related utilities for the kernel
"""
# Copyright (c) yap_ipython Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import absolute_import
import json
import sys
from subprocess import Popen, PIPE
import warnings
from yap_ipython.core.profiledir import Pro... |
#!/usr/bin/python
#
# document-correctness.py
#
# This source file is part of the FoundationDB open source project
#
# Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License... |
export function pushMap(f, ph) {
return {send_callback : v=>ph.send_callback(f(v)));
}
export function send(ph, v) {
ph.send_callback(v);
}
|
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import Composition from './composition';
//import Footer from '../js/components/footer';
import Header from './ui-components-2/pages/header';
import Main from './ui-components-2/pages/main';
import SideBar from './ui-components-2/pages/sideba... |
// SPDX-Identifier: MIT
const randint = x => Math.floor(x * Math.random());
class BobEvotar {
constructor() {
this.video = null;
this.current_audio = null;
this.next_audio = null;
// don't think it's a good idea to reuse the game's
this.audio_context = new AudioContext;
this.playlist = [];
this.playlis... |
import React from 'react';
import Types from 'prop-types';
const GameStatus = ({ playerMoves, minimumMoves }) => {
return (
<div>
<h3>You won! Press on the game board to start a new one.</h3>
{playerMoves && minimumMoves ? (
<p>
You switched the lights {playerMoves} times. The game ... |
import React, {h} from 'react';
import {Provider} from 'react-redux';
import ReactDOM from 'react-dom';
import createSagaMiddleware from 'redux-saga';
import {applyMiddleware, compose, createStore} from 'redux';
import Routes from './routes';
import models from './models';
import {buildReducer} from 'util/reducerBuilde... |
import os
SITE_ID = 1
DEBUG = True
MEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))
MEDIA_URL = '/media/'
DATABASE_ENGINE = 'sqlite3'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'drf_example',
}
}
INSTALLED_APPS = [
'django.contrib... |
/*
Copyright 2016 Autodesk,Inc.
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 writing, software
d... |
import {
newDate,
addDays,
subDays,
isEqual,
isSameDay,
isSameMonth,
isSameQuarter,
isSameYear,
isDayDisabled,
isDayExcluded,
isMonthDisabled,
isQuarterDisabled,
monthDisabledBefore,
monthDisabledAfter,
yearDisabledBefore,
yearDisabledAfter,
getEffecti... |
"use strict";
var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };
var Test = (function () {
function Test() {}
_prototypeProperties(Test, null, {
... |
/** Created By Wuwenbin https://wuwenbin.me
* mail to wuwenbinwork@163.com
* 欢迎加入我们,QQ群:697053454
* if you use the code, please do not delete the comment
* 如果您使用了此代码,请勿删除此头部注释
* */
layui.use(['table', 'element'], function () {
var table = layui.table
, element = layui.element;
element.render();
... |
# -*- coding: utf-8 -*-
"""Automated_Seismic_Phase_Recognition_Using_Neural_Networks.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1RjDUzEEvewUzNJ-6q7h2bHTf-0ViXKO1
# *Automated Seismic Phase Recognition Using Neural Networks*
##### Syed Ali Ra... |
/*!
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
* v4.0.32 - 2019-11-13
*
*/!function(a,b){"use strict";b.doc.on("all.wb-inview partial.wb-inview none.wb-inview",function(b){"wb-inview"===b.nam... |
import invariant from './invariant'
import isFunction from './isFunction'
const promisfy = (func) => {
invariant(isFunction(func), 'func must be a Function')
return function (...args) {
return new Promise((resolve, reject) => {
args.push((err, value) => {
if (err) {
return reject(err)
... |
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
/* eslint-disable max-nested-callbacks */
import assert from 'assert';
import {ViewTypes} from 'app/constants';
import {messageRetention} from 'app/store/middleware';
jest.mock('react-native-fetch-blob', () => {
... |
// Generated by CoffeeScript 1.9.3
var JsInit, Utils, _, amdclean, color, fs, gutil, path, pkg,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } ret... |
/*@preserve
* Tempus Dominus Bootstrap4 v5.1.0 (https://tempusdominus.github.io/bootstrap-4/)
* Copyright 2016-2018 Jonathan Peterson
* Licensed under MIT (https://github.com/tempusdominus/bootstrap-3/blob/master/LICENSE)
*/
if (typeof jQuery === 'undefined') {
throw new Error('Tempus Dominus Bootstrap4\'s requi... |
const Schema = require('../schema.js');
const parser = require('xml2json');
function choco(res) {
let packages = [];
let packs = JSON.parse(parser.toJson(res));
if ((packs.feed.entry).length == null || (packs.feed.entry).length == undefined) {
return packages;
} else {
for (let p of packs.feed.entry) {... |
(function() {
var BX = window.BX;
if(BX.Access)
return;
BX.Access =
{
bInit: false,
waitDiv: null,
waitPopup: null,
bDialogLoaded: false,
selectedProvider: '',
obSelected: {},
obCnt: {__providers_cnt: 0},
obAlreadySelected: {},
obSelectedBind: {},
showSelected: false,
popup: null,
callback: null,
obProvi... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* The following block of code may be ... |
import React, { useEffect, useState } from 'react'
import { makeStyles, withStyles } from '@material-ui/core/styles'
import {
AppBar,
Button,
Box,
Card,
Divider,
Grid,
MenuItem,
Slider,
Tab,
Tabs,
TextField,
Typography
} from '@material-ui/core'
import VolumeUp from '@material-... |
require('can/list/list');
require('./can-map-delegate');
require('steal-qunit');
QUnit.module('can/map/delegate');
var matches = can.Map.prototype.delegate.matches;
test('matches', function () {
equal(matches(['**'], [
'foo',
'bar',
'0'
]), 'foo.bar.0', 'everything');
equal(matches(['*.**'], ['foo']), null, '... |
import Turbolinks from 'turbolinks';
import debug from './debug';
const events = [
'turbolinks:click',
'turbolinks:before-visit',
'turbolinks:visit',
'turbolinks:request-start',
'turbolinks:request-end',
'turbolinks:before-cache',
'turbolinks:before-render',
'turbolinks:render',
'turbolinks:load',
];... |
$(document).ready(function() {
/* Pesquisa */
$('#expandir').click(function () {
if ($("#search").val() == "") {
$("#search").toggle();
}
});
$("#search").keyup(function () {
if ($('#search').val() == "") {
$('#expandir').show();
$('#buscar')... |
# Generated by Django 2.1.7 on 2019-04-11 06:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
('landing', '0045_section_featured'),
]
operations = [
migrations.RemoveFie... |
/*
Highmaps JS v1.1.8-modified ()
Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file)
(c) 2011-2014 Torstein Honsi
License: www.highcharts.com/license
*/
(function(l){function J(a,b){var c,d,e,f,g=!1,h=a.x,i=a.y;for(c=0,d=b.length-1;c<b.length;d=c++)e=b[c][1]>i,f=... |
! function(e) {
var t = {};
function n(r) {
if (t[r]) return t[r].exports;
var i = t[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports
}
n.m = e, n.c = t, n.d = function(e, t, r) {
... |
import json
backups = json.loads(open("blazar2.json").read())
for b in range(len(backups)):
if backups[b]["ra"] == "77.35817":
backups[b]["z"] = "0.336"
with open("blazar2.json", "w") as f:
f.write(json.dumps(backups))
|
# Aula 12 - 22-11-2019
# Dicionários |
const baseConfig = require('../base');
module.exports = {
...baseConfig,
'extends': [
'preact',
'airbnb',
'airbnb/hooks',
...baseConfig.extends,
],
'parserOptions': {
...baseConfig.parserOptions,
'jsxPragma': 'h',
'ecmaFeatures' : {
'jsx': true,
},
},
'settings': {
... |
import React, { Component } from "react";
import Shelf from '../Shelf';
import Filter from '../Shelf/Filter';
import GithubCorner from '../github/Corner';
import FloatCart from '../FloatCart';
class Shop extends Component {
render() {
return (
<div>
<React.Fragment>
... |
from discord.gateway import DiscordWebSocket, utils, _log, KeepAliveHandler, ReconnectWebSocket
async def received_message(self, msg, /):
if type(msg) is bytes:
self._buffer.extend(msg)
if len(msg) < 4 or msg[-4:] != b'\x00\x00\xff\xff':
return
msg = self._zlib.decompre... |
module.exports = function log(level, msg, more) {
var func = console[level] || console.log
var args = [
'Baron: ' + msg,
more
]
Function.prototype.apply.call(func, console, args)
}
|
""" Helper functions for constructing design regressors
"""
from __future__ import division
import numpy as np
def dct_ii_basis(volume_times, order=None, normcols=False):
""" DCT II basis up to order `order`
See: https://en.wikipedia.org/wiki/Discrete_cosine_transform#DCT-II
By default, basis not norma... |
/**
* ------------------------------------------------------------------
* WeApp-Workflow 配置文件
*
* 建议复制一份并重命名为 config.custom.js ,即可在config.custom.js 上根据需求进行配置
* ------------------------------------------------------------------
*
* @author JeffMa
* @link https://devework.com/
* @data 2017-06-11
*/
mod... |
/*!
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
*/
import {pick} from 'lodash';
import {inBrowser, oneFlight} from '@webex/common';
import {safeSetTimeout} from '@webex/common-timers';
import WebexHttpError from '../webex-http-error';
import WebexPlugin from '../webex-plugin';
import {sortScope... |
function f() {
return /* a */;
}
|
import { h } from 'vue'
export default {
name: "TextHOne",
vendor: "Ph",
type: "",
tags: ["text","h","one"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 256 256","class":"v-icon","fill":"currentColor","data-name":"ph-text-h-one","innerHTML":" <rect width='... |
const path = require('path');
const slsw = require('serverless-webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
entry: slsw.lib.entries,
resolve: {
extensions: [
'.js',
'.json',
'.ts',
'.tsx'
]
},
out... |
import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, browserHistory } from 'react-router'
import { Home } from './src/home'
ReactDOM.render(
<Router history={browserHistory}>
<Route path="/" component={Home} />
</Router>,
document.getElementById('container')
)
|
import { createContext } from 'react';
const DataProviderContext = createContext(null);
DataProviderContext.displayName = 'DataProviderContext';
export default DataProviderContext;
|
import Clipboard from "clipboard";
import { _ } from "src/util";
// Example :
// <code>
// <button v-clipboard="myDynamicValue" @copied="copied">Text</button>
//</code>
export default function (app) {
app.directive("clipboard", {
beforeMount(el, binding, vnode) {
el._cbText = binding.value;
el._cbElem =... |
const mix = require('laravel-mix');
mix.setResourceRoot(process.env.APP_URL + '/');
if (!mix.inProduction()) {
mix.sourceMaps();
mix.webpackConfig({devtool: 'inline-source-map'});
} else {
mix.version();
}
if (process.env.section) {
require(`${__dirname}/resources/mixes/${process.env.section}/webpack... |
import { login, logout, getInfo,checklog,getpower } from '@/api/user'
import { getToken, setToken, removeToken } from '@/utils/auth'
import router, { resetRouter } from '@/router'
import context from "@/main";
import store from "@/store";
const state = {
token: getToken(),
name: '',
avatar: '',
introduction: '... |
/**
* @param {number[]} A
* @return {number}
*/
// eslint-disable-next-line no-unused-vars
function sumOfDigits(A) {
A.sort((a, b) => a - b);
let min = A[0].toString().split("");
return min.reduce((a, b) => a + parseInt(b, 10), 0) % 2 === 0 ? 1 : 0;
}
|
# Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... |
var classknn_classification =
[
[ "knnClassification", "classknn_classification.html#a37873bbb03dea575d878b0205a4d1b39", null ],
[ "~knnClassification", "classknn_classification.html#a37e034151bb6d69c3952454df630dd80", null ],
[ "addNeighbour", "classknn_classification.html#aa6b10f1d20066e81e93c8172b4a7e44d... |
;(function($){
$.fn.gdsZoom = function(options){
//设置默认值
var defaults = {
//放大区域的宽高
width:400,
height:300,
position:'right',//这是设置默认值,如果传位置的参数进来那么就会默认位置为right
gap:15 //小图与大图的间距
}
//return this.each这个是习惯写法,在后面写return也可以,... |
import logging
import numpy as np
from skimage.filters import sobel
from skimage.color import convert_colorspace, rgb2gray
from distutils.util import strtobool
def getBrightnessGray(s, params):
logging.info(f"{s['filename']} - \tgetContrast")
limit_to_mask = strtobool(params.get("limit_to_mask", "True"))
... |
import React from 'react'
import { M, BM } from 'ui/components/equations'
import { Par } from 'ui/components/containers'
import FloatInput from 'ui/form/inputs/FloatInput'
import { InputSpace } from 'ui/form/Status'
import SimpleExercise from '../types/SimpleExercise'
import { useSolution } from '../ExerciseContainer... |
const uuid = require('uuid');
var users = require('../db/users');
var globalSettings = require('../db/globalSettings');
var setup = function(p, secret) {
var PassportJwt = require('passport-jwt');
var opts = {};
opts.jwtFromRequest = PassportJwt.ExtractJwt.fromAuthHeaderAsBearerToken();
opts.secretOr... |
from __future__ import absolute_import
from lintreview.review import Problems
from lintreview.review import Comment
from lintreview.tools.jshint import Jshint
from lintreview.utils import in_path
from lintreview.utils import npm_exists
from unittest import TestCase
from unittest import skipIf
from nose.tools import eq_... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'tb';
var iconName = 'letter-c';
var width = 512;
var height = 512;
var ligatures = [];
var unicode = null;
var svgPathData = 'M 234.63086 63.990234 C 164.2021 63.990234 106.65039 121.54195 106.65039 191.9707 L 106.65039 319.94922... |
import flickity from 'flickity';
export class FlickityService {
constructor(
$timeout, $q, $rootScope, $log
) {
'ngInject';
this.$timeout = $timeout;
this.$q = $q;
this.$rootScope = $rootScope;
this.$log = $log;
this.instances = [];
}
/**
... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from abc import abstractmethod
from functools import wraps
from aif360.datasets import Dataset
from aif360.decorating_metaclass import ApplyDecorator
# TODO: Use sklea... |
'use strict';
process.env.SECRET = 'toes';
require('@code-fellows/supergoose');
const middleware = require('../src/auth/middleware/bearer.js');
const Users = require('../src/auth/models/users.js');
const jwt = require('jsonwebtoken');
const { expect } = require('@jest/globals');
let users = {
admin: { username: 'a... |
# -*- coding: utf-8 -*-
"""
:copyright: Copyright 2020 Sphinx Confluence Builder Contributors (AUTHORS)
:license: BSD-2-Clause (LICENSE)
"""
from sphinxcontrib.confluencebuilder.config.notifications import deprecated
from sphinxcontrib.confluencebuilder.config.notifications import warnings
from sphinxcontrib.confluenc... |
from electrum_exos.plugin import hook
from .trezor import TrezorPlugin
from ..hw_wallet import CmdLineHandler
class Plugin(TrezorPlugin):
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keystore.handler... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = wrapperRaf;
var raf = function raf(callback) {
return +setTimeout(callback, 16);
};
var caf = function caf(num) {
return clearTimeout(num);
};
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) ... |
'use strict';
const moment = require('moment');
const MomentWrange = require('./moment-wrange');
const {
INTERVALS,
MIN_TIME_MILLISECONDS,
MAX_TIME_MILLISECONDS
} = require('./constants');
// Static Methods
const invertRanges = require('./moment-wrange/static/invertRanges');
const isRange = require('./mo... |
from fastapi import FastAPI, WebSocket, WebSocketDisconnect
from typing import List
import json
from . import devices
class Packet(object):
"""A message from external converted to an internal message, ready for
digest through the waiting components.
"""
def __init__(self, message: str, own... |
import Debug from 'debug'
import { isArray } from 'lodash'
import { splitIntoLines, splitIntoSections } from '../utils'
const debug = Debug('mediainfo')
/*
* new Mediainfo.parse(rawText)
* #-> { general: { KEY: VALUE }, video: [..], .. }
*/
export default class MediainfoParser {
parse(text) {
const result = ... |
(function(d){d['et']=Object.assign(d['et']||{},{a:"Faili ei suudeta üles laadida:",b:"Piltide tööriistariba",c:"Tabelite tööriistariba",d:"Rasvane",e:"Sisesta pilt või fail",f:"Kaldkiri",g:"Allajoonitud",h:"Tsitaat",i:"pildi vidin",j:"Täissuuruses pilt",k:"Pilt küljel",l:"Vasakule joondatud pilt",m:"Keskele joondatud p... |
/**
* This file is part of TeamELF
*
* (c) GuessEver <guessever@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const { Card, Button, Icon, Timeline, Modal, Input } = antd;
export default class extends React.Component ... |
import BlueBet from "./bluebet.svelte";
export default {
title: "Dashboard"
}
export const blueBet = () => ({
Component: BlueBet,
name: "Blue bet"
}); |
/* eslint max-len: ["error", { "code": 140 }] */
import {
createColspanSettings,
createPlaceholder,
} from 'handsontable/plugins/nestedHeaders/__tests__/helpers';
import { normalizeSettings } from 'handsontable/plugins/nestedHeaders/stateManager/settingsNormalizer';
function createColspanSourceSettings(overwritePr... |
Jx().package("T.UI.Controls", function(J){
// 严格模式
'use strict';
var _crrentPluginId = 0;
var defaults = {
// 选项
// fooOption: true,
// 覆写 类方法
// parseData: undefined,
// 事件
// onFooSelected: undefined,
// onFooChange: function(e, data){}
... |
// pages/about/about.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
name:'詹姆斯',
studens:[
{name:'kobe',age:'18'},
{name:'James',age:'30'}
],
onclick(){
//通过app.globalData.属性获取
this.setData({
message:app.globalData.title,
name: a... |