text stringlengths 3 1.05M |
|---|
// debug.inspect = true;
/*
|-------------------------------------------------------------------------------------|
| |
| CONSTANTS |
| ... |
// Objects
class FacebookMessenger {
constructor() {
this._name = 'facebook';
}
send(message) {
console.log('Send to : ' + this._name);
console.log('Send a message : ' + message);
}
setName(name) {
this._name = name;
}
}
class MessengerAdapter {
constructor(name) {
this._messenger = n... |
/**
* Copyright 2018 The Subscribe with Google 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
*
* U... |
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* 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.apach... |
const replace = curry(function(find, replacement, str) {
const regex = new RegExp(find, 'g')
return str.replace(regex, replacement)
})
const wrapWith = curry(function(tag, str) {
return `<${tag}>${str}</${tag}>`
})
const modifyPoem = pipe(
replace('brillig', wrapWith('em', 'four o’clock in the afternoon')),
... |
/*
* Copyright 2020 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 ... |
/*! For license information please see chunk.7122cc44cc9455b79dfd.js.LICENSE */
(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{135:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get... |
var demo = g9({
x:130,
y:415,
}, function({x,y}, draw){
draw.circle(x,y,"hello")
draw.circle(y,x,"asdfe")
}, function(newdata, renderees){
console.log('changed data to', newdata)
}) |
import React, {Component} from 'react';
import Login from './Login';
import { Panel } from 'react-bootstrap';
class Home extends Component {
constructor(props) {
super(props);
this.state = {
authenticated: true,
user: '',
password:''
};
this.handleChange = this.handleChange.bind(this);
this.handl... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @license
* Copyright Google Inc. 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
*/
const schematics_1 = require("@... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2017 New Vector Ltd
Copyright 2018 New Vector Ltd
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... |
/**
* Created by jiahao.li on 3/28/2016.
*/
(function () {
'use strict';
angular
.module('app.core')
.directive('c2sCheckAfterToday', c2sCheckAfterToday);
/* @ngInject */
function c2sCheckAfterToday() {
var directive = {
require: 'ngModel',
restrict:... |
// _____ _ _ _____
// / ___| (_) | | / __ \
// \ `--. ___ _ __ _ _ __ | |_| / \/
// `--. \/ __| '__| | '_ \| __| | / _` | '_ ` _ \
// /\__/ / (__| | | | |_) | |_| \__/\ (_| | | | | | |
// \____/ \___|_| |_| .__/ \__|\____/\__,_|_| |_| |_|
// | |
// Versio... |
import { isBrowser } from './root';
// @internal
export const __stores__ = {};
// @internal
export const __queries__ = {};
if (isBrowser) {
window.$$stores = __stores__;
window.$$queries = __queries__;
}
//# sourceMappingURL=stores.js.map |
!function(o,t,i,e){"use strict";var r;if(""==(r=(r=i.body||i.documentElement).style).webkitFlexWrap||""==r.msFlexWrap||""==r.flexWrap)return;var a=(h=o(".news-list--home")).find("article");(n=function(){a.css("height","auto");var t=Math.floor(h.width()/a.width());if(null==t||t<2)return!0;for(var i=0,e=a.length;i<e;i+=t... |
/**
Copyright 2014 Gordon Williams (gw@pur3.co.uk)
This Source Code is subject to the terms of the Mozilla Public
License, v2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
------------------------------------------------------------------
A butt... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import React, { Component } from 'react';
class ContactPage extends Component {
render() {
return (
<div className="container-fluid">
<h1 style={{margin: '0px'}}>
Contact Us
</h1>
<div style={{color: 'red'}}>
<h1>Serge Assaad: serge.assaad@duke.edu</h1>
</div>
<div style={{color... |
(window.webpackJsonp=window.webpackJsonp||[]).push([["a078"],{"5rEg":function(e,n,t){"use strict";var c=t("q1tI"),r=t("17x9"),a=t("TSYQ"),o=t.n(a),i=t("BGR+"),l=t("VCL8"),s=t("wEI+"),f=t("CtXQ"),u=t("CWQg"),m=t("6CfX");function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return... |
import { StyleSheet, Dimensions,Platform } from "react-native";
import {Color } from '../utils/Colors';
export const styles = StyleSheet.create({
subHeader:{
flex: 3, backgroundColor: Color.BACKGROUND_COLOR
},
viewStyle:{
width: "100%", height: 44, backgroundColor: "white", marginTop: 5, bord... |
module.exports = {
mode: 'jit',
darkMode: false,
theme: {
container: {
center: true,
padding: '1.5rem',
},
debugScreens: {
position: ['bottom', 'right'],
},
extend: {},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('t... |
from torch.nn import (
AvgPool2d,
Conv2d,
CrossEntropyLoss,
Dropout,
Flatten,
Linear,
MaxPool2d,
MSELoss,
ReLU,
Sigmoid,
Tanh,
ZeroPad2d,
)
from backpack.extensions.backprop_extension import BackpropExtension
from backpack.extensions.curvature import Curvature
from backp... |
var searchData=
[
['network_2eh',['Network.h',['../db/d9e/_network_8h.html',1,'']]],
['networkinterfaces_2eh',['NetworkInterfaces.h',['../d1/dc9/_network_interfaces_8h.html',1,'']]]
];
|
import os, sys
import unittest
import shutil
import inspect
from configobj import ConfigObj
from threading import Event
if sys.path[0] != '.':
sys.path.insert(0, os.path.abspath('.'))
from lib.events import EventList
from lib.jobstatus import JobStatus
from lib.util import print_message
from lib.filemanager impo... |
let mix = require('laravel-mix')
.version();
mix.js('resources/assets/js/app.js', 'public/js'); |
var MF = MF || {};MF.RecordingData = MF.RecordingData || {};MF.RecordingData["07271582e18b6cefefa00b0582642d8b720078b6"] = {
"startTime": "2020-07-27T19:08:18.0985574Z",
"websitePageUrl": "/my-store/dashboard",
"visitTime": 670008,
"engagementTime": 110666,
"pageTitle": "Mi Tienda | Canasta Rosa",
"ur... |
import BaseComponentObject from '../../BaseComponents/BaseStaticComponent';
import ComponentDescribe, {componentType} from '../../ComponentDescribe'
import IocContainer from 'Core/IocContainer';
import IComponent from './IComponent'
import IPreview from './IPreview'
class ComponentObject extends BaseComponentObject{
... |
/**
* Copyright 2020 The AMP HTML 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 require... |
'use strict';
var $q = require('../../services/ng-utils').$q;
var dataPackageApi = require('../../services/data-package-api');
var ngModule = require('../../module');
ngModule.directive('paramControls', [
'LoginService', 'Configuration',
function(LoginService, Configuration) {
return {
template: requi... |
const _marko_template = _t(__filename);
export default _marko_template;
import { a as _marko_attr } from "marko/src/runtime/html/helpers";
import { r as _marko_renderer, c as _marko_defineComponent, rc as _marko_registerComponent } from "marko/src/runtime/components/helpers";
import { t as _t } from "marko/src/runtime... |
#!/usr/bin/env python3
# Copyright (c) 2013-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import biplist
from ds_store import DSStore
from mac_alias import Alias
import sys
output_file = sys.argv... |
# Licensed to my_happy_modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The my_happy_modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "Licens... |
/**
* @author Gilles Coomans <gilles.coomans@gmail.com>
*
*
* deepjs completion :
*
* nodes.asyncUps = function(s, objects) { // load
return proto.getAll(objects)
.done(function(objects) {
return nodes.ups(s, objects);
});
};
nodes.asyncBottoms = function(s, objects) {
return proto.getAll(obj... |
const getProjectList=require('../controller/getAllProjects');
const express = require('express');
const router = express.Router();
router.get('/api/:owner/projects',getProjectList);
module.exports=router; |
from base64 import encode, encodebytes
from flask import Blueprint
import sqlalchemy
import base64
import time
import hashlib
from flask.globals import request
from werkzeug.utils import redirect
router = Blueprint("router", __name__)
key_url_mapping = {}
# a dictionary stores data in the form of key:value
# Here, the... |
var fs = require("fs");
// Write a function that logs a message, then executes
// a function argument.
// Write a function that runs a function argument if
// its other argument is truthy.
// Write a function that accepts a function argument and
// a value, and returns a function that returns the result
// of execut... |
import Container from '@/components/Container'
import BlogPost from '@/components/BlogPost'
import Pagination from '@/components/Pagination'
import { getAllPosts } from '@/lib/notion'
import BLOG from '@/blog.config'
const Page = ({ postsToShow, page, showNext }) => {
return (
<Container>
{postsToShow &&
... |
import numpy as np
import pandas as pd
import xarray as xr
from .accessors import register_dataset_method
class _Df_Accessor:
def __init__(self, xarray_obj):
self._obj = xarray_obj
def __call__(self, *args, **kwargs) -> xr.Dataset:
raise NotImplementedError()
def df(self, df, *, append=... |
from rest_framework import serializers
from accelerator.models import Location
class LocationSerializer(serializers.ModelSerializer):
class Meta:
model = Location
fields = ['id', 'street_address', 'timezone', 'country',
'state', 'name', 'city', ]
|
(function () {
'use strict';
angular.module('demoCat')
.service('domainsService', DomainsService);
function DomainsService(MLRest) {
var service = {
list: listFeatures
};
function listFeatures() {
return MLRest.values('domains', { options: 'all', format: 'json' }).then(function(res... |
#!/usr/bin/env monkeyrunner
# Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
from time import sleep
import os, sys
# ALL VARS, PARAMS and OPTIONS INITIALIZATION
IMG_PATH = None
RECT = None
# PARAMS AND OPTIONS PARSE
# there is no argparse :(
... |
from setuptools import setup, find_packages
import os
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
long_description = (
read('README.txt')
+ '\n' +
read('CHANGES.txt')
+ '\n' +
'Download\n'
'********\n'
)
tests_require = [
'grokcore.view[s... |
webpackJsonp([12],{CBdw:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("mtWM"),A=e.n(s),i=e("c2Ch"),c={data:function(){return{data:[]}},created:function(){this.getData()},methods:{getData:function(){var t=this,a=new URLSearchParams;a.append("openid",localStorage.getItem("openid"))... |
import numpy as np
# import pylab as pl
import seaborn as sns
from pymoreg.core.gaussian import sample_from_gn
from pymoreg.metrics.score import BGe
from numpy.random import RandomState
from pymoreg.structure.graph_generation import random_dag
# from pymoreg.structure.graphs import plot_digraph
from pymoreg.mcmc.graph... |
import RPC from '@/RPC'
const request = jest.fn(() => 'returned content')
describe('RPC', () => {
const rpc = new RPC(request)
beforeEach(() => {
request.mockClear()
})
it('sends a request with POST and GET', async () => {
await rpc('rpc-test', { a: 1, b: 2 }, { get: false })
expect(request).toH... |
/*global AppName */
if (!this.AppName || typeof this.AppName !== 'object') {
this.AppName = {};
}
(function () {
'use strict';
AppName.module('HomeModule.Show', function (Show, App, Backbone, Marionette, $, _) {
/*
* Home/Show/InfoView
*/
Show.InfoView = Backbone.Marionette.ItemView.extend({
... |
class Player {
constructor() {
this.directions = ['forward', 'left', 'right', 'backward']
}
checkSurroundings(warrior) {
const surroundingsReducer = (set, direction) => set.add(warrior.feel(direction))
const surroundings = this.directions.reduce(surroundingsReducer, new Set())
return surroundings... |
# Interpolation = enterpolasyon, farklı bir bilgi veri noktası aralığı içinde yeni veri noktaları oluşturma yöntemidir.
# cv2.INTER_AREA - küçültmek veya örneklemek için iyi
# cv2.INTER_NEAREST - en hızlı
# cv2.INTER_LINEAR - yakınlaştırmak veya örneklemek için iyi (default)
# cv2.INTER_CUBIC - daha iyi
# cv2.INTER_L... |
import tinycolor from "tinycolor2";
const primary = "#536DFE";
const secondary = "#FF5C93";
const warning = "#FFC260";
const success = "#3CD4A0";
const info = "#9013FE";
const lightenRate = 7.5;
const darkenRate = 15;
export default {
palette: {
primary: {
main: primary,
light: tinycolor(primary)
... |
import Ember from "ember-metal/core";
import isNone from 'ember-metal/is_none';
import Set from "ember-runtime/system/set";
import EmberObject from 'ember-runtime/system/object';
import EmberArray from "ember-runtime/mixins/array";
// NOTE: This test is adapted from the 1.x series of unit tests. The tests
// are the ... |
from absl import flags
import pylot.control.flags
import pylot.debug.flags
import pylot.perception.flags
import pylot.planning.flags
import pylot.prediction.flags
import pylot.simulation.flags # noqa: F401
FLAGS = flags.FLAGS
# Files where to log information.
flags.DEFINE_string('log_file_name', None, 'Name of the ... |
/* ===========================================================
* sw.js
* ===========================================================
* Copyright 2016 @huxpro
* Licensed under Apache 2.0
* service worker scripting
* ========================================================== */
// CACHE_NAMESPACE
// CacheStorage i... |
const router = require("express").Router();
const path = require('path');
router.get("/", (req, res) => {
res.sendFile(path.join(__dirname, '../public/index.html'));
});
router.get("/stats", (req, res) => {
res.sendFile(path.join(__dirname, '../public/stats.html'));
});
router.get("/exercise", (req, res) => ... |
#!/usr/bin/python
from __future__ import with_statement, print_function
from datetime import datetime, timedelta
import unittest
import os
from trello import TrelloClient, ResourceUnavailable
class TrelloCardTestCase(unittest.TestCase):
"""
Tests for TrelloClient API. Note these test are in order to
prese... |
import React, {useState} from 'react'
import Numero from './componentes/Numero'
import './App.css'
export default function App(){
const[num,setNum] = useState(15)
const[nome, setNome]=useState('Darcisio Almeida')
/*let n1 =35//não se usa váriavel, pois não está associado ao valor do componente
const n100=()=>... |
import unittest
import time
from collections.abc import Iterable
import numpy as np
import openmdao.api as om
from openmdao.utils.mpi import MPI
from openmdao.utils.array_utils import evenly_distrib_idxs, take_nth
from openmdao.utils.assert_utils import assert_near_equal, assert_warning
try:
from parameterized i... |
/**
* @license Copyright 2016 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 a... |
import abc
import logging
from collections import OrderedDict
from pkg_resources import iter_entry_points, load_entry_point, DistributionNotFound
from six import add_metaclass
LOG = logging.getLogger('alerta.plugins')
@add_metaclass(abc.ABCMeta)
class PluginBase(object):
def __init__(self, name=None):
... |
const siteConfig = require('./site-config');
module.exports = {
siteMetadata: {
...siteConfig,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-offline`,
`gatsby-transformer-json`,
`gatsby-transformer-remark`,
`gatsby-plugin-eslint`,
{
reso... |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
var test = require('tap').test,
fs = require('fs'),
glob = require('glob'),
fuzzer = require('fuzzer'),
path = require('path'),
tokml = require('../');
test('tokml', function(t) {
function geq(t, name, options) {
var expected = tokml(file(name + '.geojson'), options);
if (proce... |
var logger = require('../utils/winston');
var { OWNERS } = require('../config/conf');
var controller = require('./index');
const compareProducts = async function (req, res, next) {
let q = req.params.q;
logger.info(`***** COMPARE PRODUCT FOR ${q} *****`);
logger.info(q);
let ownerPromise = new Array... |
// UX portfolio
// link to heroku app
// fireflies |
# python 3
from __future__ import print_function, division, absolute_import
import os
import argparse
import random
import numpy as np
import time
# from numpy import linalg
import os.path as osp
cur_dir = osp.dirname(osp.abspath(__file__))
from sklearn.datasets import load_svmlight_file
from scipy.sparse import csr... |
# Copyright 2015 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... |
var _ = require("lodash");
var errors = require('request-promise/errors');
var Promise = require('bluebird');
var util = require('util');
var WebRequest = require('./web-request');
var Request = require('../request');
var Exceptions = require("../exceptions");
var SHARED_JSON_REGEXP = /window._sharedData = (.*);<\/sc... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"dijit/_editor/nls/commands":{bold:"Vet",copy:"Kopi\u00ebren",cut:"Knippen","delete":"Wissen",... |
'use strict';
/*!
* V4Fire Client Core
* https://github.com/V4Fire/Client
*
* Released under the MIT license
* https://github.com/V4Fire/Client/blob/master/LICENSE
*/
import Store from 'core/store';
import bInputHidden from 'form/b-input-hidden/b-input-hidden';
import iInput from 'super/i-input/i-input';
import... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("... |
# 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... |
"""
WSGI config for sims_django 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... |
/*!
* Bootstrap Confirmation (v4.1.0)
* @copyright 2013 Nimit Suwannagate <ethaizone@hotmail.com>
* @copyright 2014-2018 Damien "Mistic" Sorel <contact@git.strangeplanet.fr>
* @licence Apache License, Version 2.0
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? fact... |
const env = process.env.NODE_ENV || 'local'
const pkg = require('./package')
const fs = require('fs')
if (env === 'local') {
require('dotenv').config()
}
const config = {
env,
appName: 'kiwicomsummercamp-api',
version: pkg.version,
server: {
port: process.env.PORT || 3000,
maxMemory: 512,
killTi... |
from pytorch_metric_learning import miners
from allennlp.common import Registrable
class PyTorchMetricLearningMiner(Registrable):
"""This class just allows us to implement `Registrable` for PyTorch Metric Learning miner functions.
Subclasses of this class should also subclass a miner function from PyTorch Me... |
const { StatusCodes } = require('http-status-codes');
class ResetController {
constructor(sampleDataService) {
this.sampleDataService = sampleDataService;
}
async invoke(req, res) {
await this.sampleDataService.generate();
return res.sendStatus(StatusCodes.NO_CONTENT);
}
}
mo... |
export function __cargo_web_snippet_1392c8a2ab532b5064b3d45160a9b94ddd8524a2(Module, $0, $1, $2, $3, $4, $5) { $1 = Module.STDWEB_PRIVATE.to_js($1);$2 = Module.STDWEB_PRIVATE.to_js($2);$3 = Module.STDWEB_PRIVATE.to_js($3);$4 = Module.STDWEB_PRIVATE.to_js($4);$5 = Module.STDWEB_PRIVATE.to_js($5);Module.STDWEB_PRIVATE.fr... |
#coding:utf-8
#
# id: bugs.core_1945
# title: Custom attribute for collation to sort numbers in numeric order
# decription:
# tracker_id: CORE-1945
# min_versions: ['3.0']
# versions: 3.0
# qmid: None
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 3.0
#... |
/**
*
* @title 附加操作
* @description `extraContent`参数可以在页签右边自定义附加操作。
*
*/
import React, { Component } from 'react';
import Button from 'bee-button';
import Tabs from '../../src';
const {TabPane} = Tabs;
class Demo6 extends Component {
add = () => {
alert("在这里添加操作 ^_^")
}
ren... |
/*
* Copyright 2020 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 ... |
Ext.define("MyApp.view.Gantt", {
extend : 'Gnt.panel.Gantt',
alias : 'widget.gantt',
zoomLevels: [
{width: 40, increment: 1, resolution: 1, preset: "manyYears", resolutionUnit: "YEAR"},
{width: 80, increment: 1, resolution: 1, preset: "manyYears", resolutionUnit: "... |
import { Component, h, Prop } from '@stencil/core';
import { format } from '../../utils/utils';
export class MyComponent {
getText() {
return format(this.first, this.middle, this.last);
}
render() {
return h("div", null,
"Hello, World! I'm ",
this.getText());
}
... |
#!/usr/bin/env python
# -- coding: utf-8 --
"""
Copyright (c) 2021. All rights reserved.
Created by C. L. Wang on 15.9.21
"""
from multiprocessing.pool import Pool
import torch
from PIL import Image
import timm
from myutils.cv_utils import *
from myutils.project_utils import *
from root_dir import DATA_DIR
from timm... |
const _ = require('lodash')
// const blockTracker = require('../blockTracker')
class TransactionTracker {
constructor() {
this.trackedTransactions = []
}
async trackTransaction({ transaction }) {
if (!_.find(this.trackedTransactions, { transactionHash: transaction.hash })) {
this.trackedTransaction... |
function spelling(str) {
const arr = [];
for (let i = 0; i < str.length; i++) {
arr.push(str.substr(0, i))
}
return arr;
}
module.exports = spelling;
|
/* @flow */
import React, { useState, useEffect } from "react";
import { StyleSheet, View } from "react-native";
import { useNavigation } from "@react-navigation/native";
import { Camera } from "expo-camera";
import { BarCodeScanner } from "expo-barcode-scanner";
import StyledStatusBar from "./StyledStatusBar";
import ... |
# MIT License
#
# Copyright (c) 2017- Delve Labs 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
# to use, copy, modify, me... |
/*! For license information please see 8065.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[8065,2767,6716],{4405:(e,t,a)=>{"use strict";function n(e,t){var a=t.emit;return{updateValue:function(t){var n=t.target.value;"checkbox"===t.target.type&&(n=t.target.checked),"radio"===t.target.type&&(n=e.valu... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'colordialog', 'pt', {
clear: 'Limpar',
highlight: 'Realçar',
options: 'Opções de cor',
selected: 'Cor selecionada',
title: '... |
#!/usr/bin/env python
"""
Use the ciscoconfparse library to find the crypto maps that are using pfs group2
"""
from __future__ import unicode_literals, print_function
from ciscoconfparse import CiscoConfParse
def main():
"""
Use the ciscoconfparse library to find the crypto maps that are using pfs
group2
... |
// Se carga la configuración de la base de datos.
const sequelize = require('../config/database');
// Se cargan los modelos.
const dia = require('../models/DatosDelDia');
const lamina = require('../models/Lamina');
const lineaProduccion = require('../models/linea_produccion');
// Se cargan las utilidades.
const funci... |
"""
ASGI config for LoanApp project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... |
import { addClassAndTriggerReflow, removeClass } from '.';
class FakeNode {
constructor() {
this.scrollTopAccessorMock = jest.fn();
this.classList = {
add: jest.fn(),
remove: jest.fn(),
};
}
get scrollTop() {
this.scrollTopAccessorMock();
return 0;
}
}
describe('Select dom hel... |
define([
"skylark-domx-query",
"../../addons",
"../../action",
"../../i18n",
"./link-popover"
],function($,addons,Action,i18n,LinkPopover){
var LinkAction = Action.inherit({
name : 'link',
icon : 'link',
htmlTag : 'a',
disableTag : 'pre',
_status : function() {... |
import toHash from 'tohash'
export const FONTS = [
{ id: 'Anonymous Pro', name: 'Anonymous Pro' },
{ id: 'Droid Sans Mono', name: 'Droid Sans Mono' },
{ id: 'Fantasque Sans Mono', name: 'Fantasque Sans Mono' },
{ id: 'Fira Code', name: 'Fira Code' },
{ id: 'Hack', name: 'Hack' },
{ id: 'IBM Plex Mono', nam... |
// Based on https://github.com/shramov/leaflet-plugins
// GridLayer like https://avinmathew.com/leaflet-and-google-maps/ , but using MutationObserver instead of jQuery
import GoogleMapsLoader from "google-maps";
import * as L from "leaflet";
GoogleMapsLoader.VERSION = "weekly";
let google;
// class GridLayer.GoogleM... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require("babel-runtime/helpers/createClass");
var _createClass3 = _interopReq... |
$(function() {
$('div.alert').delay(3000).slideUp(300);
var sttu, stclai, stclaitemp;
var $table = $('#tung').DataTable({
"processing": true,
"responsive": false ,
"select": {
style: 'os',
selector: 'td:first-child'
},
"responsive": {
details: {
type: 'column',
targ... |
// Handle Gulp args
const arg = require('./gulp-args');
// Development File Structure
var MAIN_DIR = "";
var AST_DIR = "public/static";
var NEXT_DEV_SASS = "assets/scss/";
var NEXT_DEV_IMG = "assets/img/";
var NEXT_SCSS = NEXT_DEV_SASS + '**/*.scss'
var NEXT_IMG = NEXT_DEV_IMG + '**/*.*'
var PROD_CSS = MAIN_DIR + A... |
import React, {Component} from "react";
import Form from "react-jsonschema-form";
const log = (type) => console.log.bind(console, type);
const schema = {
title: "Todo",
type: "object",
required: ["title"],
properties: {
title: {
type: "string",
title: "Title",
... |
import Link from 'next/link';
import useTranslation from 'next-translate/useTranslation';
import IconPDF from '../icon-pdf';
const ButtonCv = ({ lang }) => {
const { t } = useTranslation();
return (
<Link href={`/cv/[${lang}] CV Manea Lucian George.pdf`}>
<a aria-label={t('common:cvButtonLabel')} title... |