text stringlengths 3 1.05M |
|---|
from SimpleCopy import code_copy, code_move
def copy(copyFrom: str, copyTo: str, copyType: bool):
code_copy.copy(copyFrom, copyTo, copyType)
def move(moveFrom: str, moveTo: str, moveType: bool):
code_move.move(moveFrom, moveTo, moveType)
|
/**
* Kendo UI v2021.3.1207 (http://www.telerik.com/kendo-ui)
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
from sense_hat import SenseHat
from pathlib import Path
import numpy as np
from PIL import ImageFilter, Image
import cv2
import time
import threading
import argparse
import numpy as np
import tensorflow as tf
class MemImage:
def __init__(self):
self.bytes = bytearray()
def write(self, new_bytes):
... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["admin-Mailbox"],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/admin/Mailbox.vue?vue&type=script&lang=js&":
/*!*******************************************************************************... |
import unittest
from datetime import timedelta
from datetimerange import DateTimeRange
from logreader.lineage import Lineage
from tests.character_factories import eve, female
class TestLineage(unittest.TestCase):
def test_duration_at_least_eve_fertility(self):
e = eve()
sut = Lineage(e)
... |
""" terminal reporting of the full testing process.
This is a good source for looking at the various reporting hooks.
"""
import pytest
import pluggy
import py
import sys
import time
import platform
def pytest_addoption(parser):
group = parser.getgroup("terminal reporting", "reporting", after="general")
grou... |
class Solution:
def restoreString(self, s: str, indices: List[int]) -> str:
ans = [''] * len(indices)
for idx, v in enumerate(indices):
ans[v] = s[idx]
return ''.join(ans)
|
# Copyright (c) 2012-2013 Mitch Garnaat http://garnaat.org/
# Copyright 2012-2014 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... |
module.exports = (Sequelize, DataTypes) => {
const ShopLoc = Sequelize.define(
'ShopLoc',
{
longitude: DataTypes.STRING,
latitude: DataTypes.STRING,
},
{},
);
ShopLoc.associate = models => {
ShopLoc.belongsTo(models.Shop, {
onDelete: 'CASCADE',
foreignKey: 'shop_id',
... |
const webpack = require('webpack');
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const {
VueLoaderPlugin
} = require('vue-loader')
module.exports = {
entry: path.resolve(__dirname + '/main.js'),
mode: 'production',... |
import InputBase from '../input_base';
import ReactDOM from 'react-dom';
import PropTypes from '../../../prop_types';
import { autobind } from '../../../utils/decorators';
import { isNil } from 'lodash';
export default class InputCheckboxBase extends InputBase {
static propTypes = {
checked: PropTypes.bool,
... |
/*
Consecutively inserting and deleting an array in an array.
Creates Figure 14.
*/
const Y = require("yjs");
const { runTest } = require("./runBenchmark");
function test(lib, doc1, n) {
doc1 = lib.change(doc1, "test", (doc) => {
doc.a = [-1];
});
for (i = 0; i < n; i++) {
doc1 = lib.change(doc1, "... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
import request from '@/utils/request'
// 获取列表
export function getVideos(data) {
return request({
url: "/videos",
method: 'get',
params: data
})
}
// /study/courses
export function getStudyCourses(data) {
return request({
url: "/study/courses",
method: 'get',
params:data
// data
})
}... |
import groupedBarChart from 'britecharts/dist/umd/groupedBar.min';
import {select} from 'd3-selection';
import {validateConfiguration, validateContainer} from '../helpers/validation';
import {applyConfiguration} from '../helpers/configuration';
import { bar as groupedBarLoadingState } from 'britecharts/dist/umd/loadin... |
/// <reference types="cypress" />
describe('Example 5 - OData Grid', () => {
beforeEach(() => {
// create a console.log spy for later use
cy.window().then((win) => {
cy.spy(win.console, 'log');
});
});
it('should display Example title', () => {
cy.visit(`${Cypress.config('baseExampleUrl')}... |
# -*- coding: utf-8 -*-
# Copyright 2017 Google 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 ... |
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _modal = require('antd/lib/modal');
var _modal2 = _interopRequireDefault(_modal);
var _upload = require('antd/lib/upload');
var _upload2 = _interopRequireDefault(_upload);
var _icon = require('antd/lib/icon');
var _i... |
"""
WSGI config for hello_cedar project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... |
//>>built
define(
"dojo/cldr/nls/de/gregorian", //begin v1.x content
{
"months-format-narrow": [
"J",
"F",
"M",
"A",
"M",
"J",
"J",
"A",
"S",
"O",
"N",
"D"
],
"field-weekday": "Wochentag",
"dateFormatItem-yyQQQQ": "QQQQ yy",
"dateFormatItem-yQQQ": "QQQ y",
"dateFormatItem-yMEd": "EEE, d.M.... |
/**
* @license
* Copyright 2020 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.CLASS({
package: 'foam.box.socket',
name: 'SocketServer',
documentation: 'Waits on the socket connection for requests, passing them off to a SocketServerProcessor.',
implements: [
... |
/*!
* baguetteBox.js
* @author feimosi
* @version %%INJECT_VERSION%%
* @url https://github.com/feimosi/baguetteBox.js
*/
/* global define, module */
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(factory);
} else if (typeof exports === 'obj... |
import React from 'react';
import PropTypes from 'prop-types';
import { Toast } from 'nr1';
import { calculateVolumeReductionForMetric } from '../util/async';
import MetricAttributes from './detail-components/attributes';
import VolumeReduction from './detail-components/volume-reduction';
import NRQLDetails from './d... |
var self = this
var circleArr = []
var showCircleArr = []
$(document).ready(function() {
var canvas = document.createElement('canvas'),
canvasCircleArr
canvas.id = 'canvas'
canvas.width = self.window.innerWidth
canvas.height = self.window.innerHeight / 2
document.getElementById('drawCanvas')... |
import request from '@/utils/request'
export function getList(params) {
return request({
url: '/table/list',
method: 'get',
params
})
}
export function getRoleList(params) {
return request({
url: '/role/list',
method: 'get',
params
})
}
export function getRoleOne(params) {
return re... |
import cv2
camara = cv2.VideoCapture(0)
camara1 = cv2.VideoCapture(1)
while (True):
ret, frame = camara.read()
ret1, frame1 = camara1.read()
cv2.imshow('camara 1', frame)
cv2.imshow('camara 2', frame1)
if cv2.waitKey(1) & 0xFF == ord ('q'):
break
camara.release()
camara1.r... |
var book = {
"name": "Zjevení",
"numChapters": 22,
"chapters": {
"1": {
"1": "<span>1</span> Zjevení Ježíše Krista, které mu dal Bůh, aby svým otrokům ukázal, co se má brzy stát. [On to] prostřednictvím svého anděla naznačil svému otroku Janovi.",
"2": "<span>2</span> Ten dosvědčil Boží slovo a svědect... |
module.exports = function (router, content) {
// START__####################################################################################################
router.post('/application/_3-3rd-party-reps/_2-minors/_6-impact/se-context', function (req, res) {
res.redirect('/application/_3-3rd-party-reps/_2-minors/... |
import React, { Component } from "react";
import axios from "axios";
import ReactHtmlParser from "react-html-parser";
import BlogForm from "../blog/blog-form";
import BlogFeaturedImage from "../blog/blog-featured-image";
export default class BlogDetail extends Component {
constructor(props) {
super(props);
... |
# Copyright (c) 2018-2020, NVIDIA CORPORATION.
from contextlib import ExitStack as does_not_raise
from sys import getsizeof
import cupy
import numpy as np
import pandas as pd
import pyarrow as pa
import pytest
import cudf
from cudf import concat
from cudf.core import DataFrame, Series
from cudf.core.column.string imp... |
import { __extends } from "tslib";
import { deserializeAws_restJson1_1UpdateVoiceChannelCommand, serializeAws_restJson1_1UpdateVoiceChannelCommand } from "../protocols/Aws_restJson1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { Command as $Command } from "@aws-sdk/smithy-client";
var UpdateVo... |
import threading
# 双向锁单例模式 线程安全
class Singleton(object):
_lock = threading.Lock()
def __new__(cls, *args, **kwargs):
if not hasattr(Singleton, "_instance"):
with Singleton._lock:
if not hasattr(Singleton, "_instance"):
Singleton._instance = super(Single... |
# Copyright 2020 QuantStack
# Distributed under the terms of the Modified BSD License.
import json
import logging
import os
import random
import shutil
import subprocess
import uuid
from distutils.spawn import find_executable
from enum import Enum
from pathlib import Path
from typing import Dict, NoReturn, Optional
i... |
//import init, { add} from './pkg/wasm_game_of_life.js';
import init from './pkg/wasm_game_of_life.js';
//function run() {
// const result = add(1, 2);
// console.log(`1 + 2 = ${result}`);
// if (result !== 3)
// throw new Error("wasm addition doesn't work!");
//}
async function initialize_wasm() {
await ini... |
"""phonopy.yaml reader and writer."""
# Copyright (C) 2018 Atsushi Togo
# All rights reserved.
#
# This file is part of phonopy.
#
# 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 mus... |
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***************************... |
from e2edutch import conll
from e2edutch import minimize
from e2edutch import util
from e2edutch import coref_model as cm
import sys
import json
import os
import collections
import argparse
import logging
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
def get_parser():
parser = argparse.ArgumentPars... |
import React, { Component } from 'react';
export class CommandHelpItem extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className={`command-item ${this.props.selected && "command-item-selected"}`}>
<a onClick={() => this.props.processCommand(this.props.opti... |
import os
import random
import tempfile
import unittest
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
from snorkel.classification import (
DictDataLoader,
DictDataset,
MultitaskClassifier,
Operation,
Task,
)
NUM_EXAMPLES = 10
BATCH_SIZE = 2
class ClassifierTest(unitt... |
import { createGlobalStyle } from 'styled-components';
export default createGlobalStyle`
* {
margin: 0;
padding: 0;
outline: 0;
box-sizing: border-box;
}
html, body, #root {
height: 100%;
background: #0f0249;
color: #ddd;
}
background: #0f02... |
window.env = {
"APIKEY": "&apikey=trilogy",
"BASEURL": "https://www.omdbapi.com/?t="
}; |
import {CallbackHandler} from "sethFormBuilder/base/callback_handler";
const DEFAULT_PRIORITY = 10;
class HookList {
constructor() {
this._listHook = [];
}
reset(){
this._listHook = [];
}
_getFunctions(){
return _.pluck(_.sortBy(this._listHook, 'priority'), 'fn'); // asc
}
_... |
module.exports={A:{A:{"2":"I D F E A B kB"},B:{"1":"C O H Q J K L M z N WB LB T"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G X I D F E A B C O H Q J K L 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 P AB BB YB DB KB FB GB HB IB EB CB V U S MB NB OB PB QB JB SB TB M z N jB","2":"dB RB rB tB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 i j ... |
const createManager = (manager) => {
return `<div class="card mx-5 my-3" style="width: 18rem">
<div class="card-header bg-info text-white h2">
${manager.name}
<br />
<i class="fas fa-mug-hot"></i> Manager
</div>
<ul class="list-group list-group-flush">
<... |
from networkcomponents import *
# Get a pointer based on the previous context.
# Update the context using the pointer retrieved.
# prev_context: BS X N X D
# pointer_target: BS X T X D
# Returns
# merged_context: BS X N X D.
# pointer: BS X N X T
def get_pointer_N( prev_context, pointer_target, pointer_mask, regulari... |
import React, {Fragment, useEffect, useState} from 'react'
import {Link} from 'react-router-dom'
import Metadata from '../layout/Metadata'
import {MDBDataTable} from 'mdbreact'
import Sidebar from './Sidebar'
import {useDispatch, useSelector} from 'react-redux'
import {useAlert} from 'react-alert'
import { newProduct... |
module.exports = {
// 项目部署的基础路径
// 我们默认假设你的应用将会部署在域名的根部,
// 比如 https://www.my-app.com/
// 如果你的应用时部署在一个子路径下,那么你需要在这里
// 指定子路径。比如,如果你的应用部署在
// https://www.foobar.com/my-app/
// 那么将这个值改为 `/my-app/`
baseUrl: '/',
// 将构建好的文件输出到哪里
outputDir: 'dist',
// 是否在保存的时候使用 `eslint-loader` 进行检查。
... |
"""
This file offers the methods to automatically retrieve the graph Mycoplasma californicum.
The graph is automatically retrieved from the STRING repository.
References
---------------------
Please cite the following if you use the data:
```bib
@article{szklarczyk2019string,
title={STRING v11: protein--protei... |
$(function(){
"use strict";
var form = $("form"),
tooltipOptions = {
placement: "bottom",
trigger: "manual"
},
onError = function(response){
button.addClass("login-error");
$("#password").val("");
if(response.status === 406){
... |
# -*- coding: utf-8 -*-
from django.db import models, migrations
import rels.django
class Migration(migrations.Migration):
dependencies = [
('companions', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='companionrecord',
name='communication_ge... |
/* jshint -W097 */
/* jshint strict: false */
/* jslint node: true */
/* jshint -W061 */
'use strict';
const socketio = require('socket.io');
const request = require('request');
const path = require('path');
const fs = require('fs');
const ERROR_PERMISSION = 'permissionError';
const COMMAND_RE_... |
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 6 11:28:46 2019
@author: abinash boruah
"""
import numpy as np
import matplotlib.pyplot as plt
x = np.array([3,8,9,13,3,6,11,21,1,16])
y = np.array([30,57,64,72,36,43,59,90,20,83])
numer =sum((np.mean(x)-x)*(np.mean(y)-(y)))
deno = sum((np.mean(x)-x)**2)
... |
//>>built
define("epi/nls/visitorgroup-widgets_de-de",{"dijit/form/nls/validate":{"rangeMessage":"Dieser Wert liegt außerhalb des gültigen Bereichs. ","invalidMessage":"Der eingegebene Wert ist ungültig. ","missingMessage":"Dieser Wert ist erforderlich."},"dojo/cldr/nls/gregorian":{"months-format-narrow":["J","F","M","... |
import React from 'react';
export const ReduxContext = React.createContext("reduxStore");
const Provider = ({ store, children }) => (
<ReduxContext.Provider value={store}>{children}</ReduxContext.Provider>
);
export default Provider; |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {createElement} from 'react';
import {
// $FlowFixMe Flow does not yet know about flushSync()
flushSync,
... |
/*
Copyright 2013 Google Inc. 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 agreed to in ... |
# Copyright 2017 Google Inc. 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 agre... |
// Необходимо реализовать автодополнение. При введении в инпут первых букв страны - появляется список стран, которые начинаются на те буквы, которые вы ввели. Чем больше букв вы вводите - тем меньше стран в списке. Страну можно выбрать, кликнув по ней мышкой - в этом случае ее название появится в инпуте.
// Массив со ... |
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[8],{106:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),a=n(91),i=n(32),o=function(e){var t=Object(r.useContext)(a.a);return Object(i.b)(e,t)}},108:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function... |
/* common to webview, tabrenderer, etc */
function navigate (tabId, newURL) {
newURL = urlParser.parse(newURL)
tabs.update(tabId, {
url: newURL
})
updateWebview(tabId, newURL)
leaveTabEditMode({
blur: true
})
}
function destroyTask (id) {
var task = tasks.get(id)
task.tabs.forEach(funct... |
import re
from pygments.lexer import RegexLexer, DelegatingLexer, bygroups, include, \
using, this, default, words
from pygments.token import Punctuation, \
Text, Comment, Operator, Keyword, Name, String, Number, Literal, Other
from pygments.util import get_choice_opt, iteritems
from pygments import unistring ... |
import CollisionTypes from "./collision-types.js";
import Relationships from "./relationships.js";
const DEFAULT_TYPE = CollisionTypes.Default;
const PROJECTILE_TYPE = CollisionTypes.Projectile;
const CACHE_POSITION_LENGTH = 4;
const WARN_FLOATING_TILE_SIZE = (baseTileSize,resolutionScale) => {
console.warn(`Tile... |
"""
Unsupervised pre-training is a technique to train the network in case of scarcity of labeled data.
The DNN layers are trained one by one, keeping the previously trained layer intact.
The layers are trained using Autoencoders, before 2010 its used to be trained using RBMs.
Once, the hidden layers are trained, just t... |
// @flow
import React, { Fragment, PureComponent } from "react";
import { getMainAccount } from "@ledgerhq/live-common/lib/account";
import TrackPage from "~/renderer/analytics/TrackPage";
import Box from "~/renderer/components/Box";
import Button from "~/renderer/components/Button";
import CurrencyDownStatusAlert fr... |
import numpy as np
import re
def clean_str(string):
"""
Tokenization/string cleaning for all datasets except for SST.
Original taken from https://github.com/yoonkim/CNN_sentence/blob/master/process_data.py
"""
string = re.sub(r"[^A-Za-z0-9(),!?\'\`]", " ", string)
string = re.sub(r"\'s", " \'s... |
var $M = require("@effectful/debugger"),
$x = $M.context,
$ret = $M.ret,
$unhandled = $M.unhandled,
$raise = $M.raise,
$brk = $M.brk,
$lset = $M.lset,
$m = $M.module("file.js", null, typeof module === "undefined" ? null : module, null, "$", {
__webpack_require__: typeof __webpack_require__... |
var pathTemplate = require('./pathTemplate')
module.exports = function isSourceMap (options, asset) {
var sourceMapFilename = options.output.sourceMapFilename
var sourcemapTemplate = pathTemplate(sourceMapFilename)
return sourcemapTemplate.matches(asset)
}
|
"use strict";function chooseSpaceDir$(e){return ddSdk_1.ddSdk.invokeAPI(apiName,e)}var _a;Object.defineProperty(exports,"__esModule",{value:!0});var ddSdk_1=require("../../../lib/ddSdk"),apiName="biz.cspace.chooseSpaceDir";ddSdk_1.ddSdk.setAPI(apiName,(_a={},_a[ddSdk_1.ENV_ENUM.ios]={vs:"3.5.6"},_a[ddSdk_1.ENV_ENUM.and... |
function activationKeys(input) {
input = input[0].split("&");
let validatePattern = /^[A-Za-z\d]+$/;
let keys = [];
for (let key of input) {
let valid = false;
if (key.match(validatePattern) !== null) {
key = key.toUpperCase().split("");
if (key.length === 16) {
... |
module.exports = {
title: '你好, VuePress !',
description: '这是我的第一个 VuePress 站点',
base: '/',
themeConfig: {
sidebarDepth: 3,
logo: './images/logo.png',
lastUpdated: 'Last Updated', // 文档更新时间:每个文件git最后提交的时间
displayAllHeaders: true, // 默认值:false
activeHeaderLinks: false, // 默认值:true
nav: [
{ text: '首页', ... |
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if... |
# -*- coding: utf-8 -*-
"""Code handling the concurrency of data analysis."""
|
module.exports={A:{A:{"2":"J D E F A B hB"},B:{"1":"G M N O R S T U V W X Y Z a P b H","2":"C K L"},C:{"1":"6 7 8 9 AB BB CB DB EB FB GB aB HB bB IB JB Q KB LB MB NB OB PB QB RB SB TB UB VB WB cB R S T jB U V W X Y Z a P b H","2":"0 1 2 3 4 5 iB ZB I c J D E F A B C K L G M N O d e f g h i j k l m n o p q r s t u v w x... |
"""Adds the saliency probability of the patches to the experiment structure"""
import os
import numpy as np
import argparse
import occlusion_utils as ut
import json
from PIL import Image
import torch
from deepgaze_pytorch.deepgaze2_dsrex3 import deepgaze2_dsrex3
from tqdm import tqdm
def process_trial(trial, occlusi... |
// @flow
/* global SETTINGS */
import React from "react"
import sinon from "sinon"
import { mount } from "enzyme"
import { assert } from "chai"
import configureTestStore from "redux-asserts"
import { Provider } from "react-redux"
import * as api from "../lib/api"
import ErrorPage from "./ErrorPage"
import { actions } ... |
/*!
* stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack)
* Copyright 2018 PIXINVENT
* Licensed under the Themeforest Standard Licenses
*/
$(window).on("load",function(){require.config({paths:{echarts:"app-assets/vendors/js/charts/echarts"}}),require(["echarts","echarts/chart/radar","echarts/ch... |
#!/usr/bin/env python3
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in c... |
"""
LICENSE (MIT License):
Copyright 2018 Jason Gilbert, Ryan Concienne, and Douglas Bowman
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... |
//
//@@/@dependsOn: DataOutOfRangeError
//@@@dependsOn: DataColumn
//
/**
* @constructor
* @extends DataSource
*/
var DataGrid = function(){
DataSource.call(this);
this._data = [];
this._columnsCache = {};
this._visible = 0;
this._currentRow = 0;
};
Util.extend(DataGrid, DataSource);
DataGrid.type = "DataGrid"... |
(self["webpackChunkAnimeUI"]=self["webpackChunkAnimeUI"]||[]).push([[76],{34751:function(e,t,a){"use strict";a.a(e,(async function(e){var o=a(95082),n=a(48534),l=(a(35666),a(41539),a(78783),a(33948),a(92222),a(54747),a(47941),a(21249),a(57327),a(56598)),i=a(89745),r=a(23176),d=a(99172),s=a.n(d),p=a(35583),c="lzyspeedHL... |
import React from 'react';
import { Link } from 'react-router-dom';
import {
TextField,
InputLabel,
FilledInput,
InputAdornment,
IconButton,
FormControl,
FormGroup,
Button,
FormHelperText
} from "@material-ui/core";
import Visibility from '@material-ui/icons/Visibility';
import Visib... |
#
# Exemplo de como criar classes
#
class minhaClasse():
def __init__(self):
self.meuAtributo = "Passou pelo construtor!"
def meuMetodo(self):
print("Passou pelo meuMetodo")
def meuMetodo2(self, valor):
self.outroAtributo = valor
print(self.outroAtributo)
def criaObje... |
OC.L10N.register(
"richdocuments",
{
"Collabora Online" : "Collabora Online",
"Can't create document" : "Nie można utworzyć dokumentu",
"New Document.odt" : "Nowy Dokument.odt",
"New Spreadsheet.ods" : "Nowy Arkusz.ods",
"New Presentation.odp" : "Nowa Prezentacja.odp",
"New Document.docx... |
/**
=========================================================
* Material Dashboard 2 React - v2.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/material-dashboard-react
* Copyright 2021 Creative Tim (https://www.creative-tim.com)
Coded by www.creative... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
If thisArg is null or undefined, the called function is passed the global
object as the this value
es5id: 15.3.4.4_A3_T7
description: >
Argument at call function... |
(function () {
'use strict';
describe('Tekerays Route Tests', function () {
// Initialize global variables
var $scope,
TekeraysService;
// We can start by loading the main application module
beforeEach(module(ApplicationConfiguration.applicationModuleName));
// The injector ignores lead... |
// @flow
import { Record } from 'immutable';
const LayoutRecord = Record({
shouldMenuLeftOpened: false,
isMenuCurrentlyOpened: false,
});
export default LayoutRecord;
|
const dotenv = require("dotenv");
dotenv.config({ path: "./.env.local" });
dotenv.config({ path: "./.env.development.local" });
const siteMetadata = {
title: `schdesign`,
description: `Az schdesign a Simonyi Károly Szakkollégium kreatív alkotóműhelye.`,
author: `@schdesign`,
siteUrl: `https://schdesign.hu`,
imag... |
const db = require('./index');
const run = async () => {
const conn = await db.createConn();
const result = await conn.exists('tb_example', {
where: {
name: 'super1',
},
});
console.log(result);
};
run();
|
import Link from "next/link";
import styles from "../styles/Nav.module.css";
export default function Nav() {
return (
<nav className={styles.nav}>
<ul>
<li>
<Link href="/"><a>Home</a></Link>
</li>
<li>
<Link href="/blogs"><a>Blogs</a></Link>
</li>
... |
/*!
* jQuery UI Touch Punch 3.0.0
*
* Copyright 2011–2014, Dave Furfero
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Depends:
* jquery.ui.widget.js
* jquery.ui.mouse.js
*/
!function(a){function b(a,b,c){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var d=a.originalEvent.changedTo... |
include('data.js');
/**
* Легковесная поддержка событий без баблинга
*/
uki.data.Observable = {
bind: function(name, callback) {
var _this = this;
callback.huid = callback.huid || uki.guid++;
uki.each(name.split(' '), function(i, name) {
_this._observersFor(name).push(callback)... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[24],{
/***/ "../../src/components/icon/assets/app_management.js":
/*!************************************************************************!*\
!*** /Users/snide/es/eui/src/components/icon/assets/app_management.js ***!
\*******************************... |
define( [
"../core",
"../core/access",
"./support",
"../selector"
], function( jQuery, access, support ) {
var rfocusable = /^(?:input|select|textarea|button|object)$/i,
rclickable = /^(?:a|area)$/i;
jQuery.fn.extend( {
prop: function( name, value ) {
return access( this, jQuery.prop, name, value,... |
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import "./assets/main.css"
import Home from "./pages/Home";
import CreateTweet from "./pages/CreateTweet";
ReactDOM.render(
<Router>
<Switch>
<Route component={Home} pat... |
#!/usr/bin/env python2
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Exercise the wallet. Ported from wallet.sh.
# Does the following:
# a) creates 3 nodes, with an emp... |
/*
* Copyright (c) 2016 airbug Inc. http://airbug.com
*
* bugcore may be freely distributed under the MIT license.
*/
//-------------------------------------------------------------------------------
// Annotations
//-------------------------------------------------------------------------------
//@Export('List'... |
import AppCache from './cache';
import log from './logger';
import Parse from 'parse/node';
import auth from './Auth';
import Config from './Config';
import ClientSDK from './ClientSDK';
// Checks that the request is authorized for this app and checks user
// auth too.
// The bodyparser should... |
/********************************************
- THEMEPUNCH TOOLS Ver. 1.0 -
Last Update of Tools 27.02.2015
*********************************************/
/*
* @fileOverview TouchSwipe - jQuery Plugin
* @version 1.6.9
*
* @author Matt Bryson http://www.github.com/mattbryson
* @see https://github.com/mattbryson... |