text
stringlengths
3
1.05M
// JavaScript Document (function($){ $.fn.myScroll = function(options){ //默认配置 var defaults = { speed:40, //滚动速度,值越大速度越慢 rowHeight:24 //每行的高度 }; var opts = $.extend({}, defaults, options),intId = []; function marquee(obj, step){ obj.find("ul").animate({ marginTop: '-=1' },0,functi...
(function() { function System() {} System.prototype.initialize = function() {}; System.prototype.destroy = function() {}; this.System = System; })();
# -*- coding: utf-8 -*- import numpy as np import theano from theano import gof import theano.tensor as tt __all__ = ["spotYlmOp"] class spotYlmOp(tt.Op): def __init__(self, func, ydeg, nw): self.func = func self._grad_op = spotYlmGradientOp(self) self.Ny = (ydeg + 1) ** 2 self.nw...
// This file is automatically compiled by Webpack, along with any other files // present in this directory. You're encouraged to place your actual application logic in // a relevant structure within app/javascript and only use these pack files to reference // that code so it'll be compiled. import Rails from "@rails/u...
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
############################################################################## # Copyright (c) 2016 Max Breitenfeldt and others. # Copyright (c) 2018 Sawyer Bergeron, Parker Berberian, and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache Lic...
'use strict'; module.exports = { up: async (queryInterface, Sequelize) => { return await queryInterface.addColumn('tbl_food', 'vivino_id', { type: Sequelize.INTEGER, defaultValue: 0 }); }, down: async (queryInterface, Sequelize) => { return await queryInterface.removeColumn('tbl_food', '...
"use strict"; const {createXmlTemplaterDocx, expect} = require("./utils"); describe("speed test", function () { it("should be fast for simple tags", function () { const content = "<w:t>tag {age}</w:t>"; const time = new Date(); for (let i = 1; i <= 100; i++) { createXmlTemplaterDocx(content, {tags: {age: 12...
import numpy as np import pandas as pd import talib low=0.95 high=1.05 pct= 0.12 def initialize(context): context.stocks= [sid(8347), sid(6653), sid(3149), sid(4151), sid(5061), sid(19675), sid(700), sid(8229)] context.spy= sid(8554) context.market= 0 schedule_function(check) def check(context, data)...
""" The following module extracts 68 tuples of facial keypoints. """ import torch from torchvision import transforms from PIL import Image import pathlib import numpy as np import cv2 import face_alignment from torchvision.utils import save_image class KeypointsGenerator(): def __init__(self): se...
import { nearlyEqual as bigNearlyEqual } from '../../utils/bignumber/nearlyEqual' import { nearlyEqual } from '../../utils/number' import { factory } from '../../utils/factory' import { createAlgorithm03 } from '../../type/matrix/utils/algorithm03' import { createAlgorithm07 } from '../../type/matrix/utils/algorithm07'...
#ifndef ZC_GEVPTAR_H #define ZC_GEVPTAR_H #include <stdlib.h> #include "zadesk.h" #include "assert.h" #include "zacarray.h" typedef ZcArray<void*> GE_DLLEXPIMPORT ZcGeVoidPointerArray; #endif
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # 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 witho...
/*! Vera VAF 1.0 license: https://github.com/sparkledb/vera */ /* Interfaces */ $(function () { $.fn.extend({ bashSimulator: function () { return _bashSimulator($(this)); } }); function _bashSimulator(elem) { var isRunning = false, isPaused = false, fastForward = false...
# -*- coding: utf-8 -*- ''' Scheduling routines are located here. To activate the scheduler make the schedule option available to the master or minion configurations (master config file or for the minion via config or pillar) code-block:: yaml schedule: job1: function: state.sls seconds: 360...
import { extendComponent } from './extendComponent'; /** * Generates a function to be attached to a React component, which can be called * as a replacement to setTimeout. In-flight async calls will be auto canceled if the component * is unmounting before the async code is executed, preventing bugs where code *...
"use strict"; module.exports = function (Promise, apiRejection, INTERNAL, tryConvertToPromise, Proxyable, debug) { var errors = require("./errors"); var TypeError = errors.TypeError; var util = require("./util"); var errorObj = util.errorObj; var tryCatch = util.tryCatch; var yieldHandlers = [];...
# -*- coding: utf-8 -*- """ Defines unit tests for :mod:`colour.io.luts.iridas_cube` module. """ import numpy as np import os import unittest import shutil import tempfile from colour.io import (LUT1D, LUTSequence, read_LUT_IridasCube, write_LUT_IridasCube) __author__ = 'Colour Developers' __c...
# -*- coding: utf-8 -* import os import re import time import json import platform import requests from bs4 import BeautifulSoup def create_session(url): header = { 'User-Agent': "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0", 'Host': "www.youdao.com"...
import re import redis import time import json as Json from random import shuffle from hashlib import md5 from functools import wraps from collections import defaultdict from collections.abc import Iterable, Callable def fn_timer(func): @wraps(func) def wrapper(*args, **kwargs): start = time.time() ...
/** * @file include/retdec/config/architecture.h * @brief Decompilation configuration manipulation: architecture. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_CONFIG_ARCHITECTURE_H #define RETDEC_CONFIG_ARCHITECTURE_H #include <string> #include "retdec/config/base.h" na...
import * as React from "react"; import { Link } from "gatsby"; import tw, { styled } from "twin.macro"; import { GatsbyImage, getImage } from "gatsby-plugin-image"; export const CardContainer = tw.div`w-full bg-gray-100 border-2 border-gray-200 p-5 rounded-md shadow-lg tracking-wide transform transition hover:scale-11...
YUI.add('paginator-core', function (Y, NAME) { /** Paginator's core functionality consists of keeping track of the current page being displayed and providing information for previous and next pages. @module paginator @submodule paginator-core @since 3.11.0 */ /** _API docs for this extension are included in t...
# Generated by Django 3.0.8 on 2021-04-27 06:26 import Projects.models from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('Accounts', '0001_initial'), ] operations = [ migrati...
const { Keystone } = require('@keystonejs/keystone'); const { PasswordAuthStrategy } = require('@keystonejs/auth-password'); const { Text, Checkbox, Password } = require('@keystonejs/fields'); const { GraphQLApp } = require('@keystonejs/app-graphql'); const { AdminUIApp } = require('@keystonejs/app-admin-ui'); const in...
import React from "react"; import ErrorBoundary from "./index"; describe('Error Boundary', () => { const Something = () => null; it('should display an ErrorMessage if wrapped component throws', () => { const wrapper = mount( <ErrorBoundary> <Something /> </Error...
#ifdef _WIN32 __declspec(dllexport) #endif int i;
''' Hack Bulgaria, “Programming 101 with Python” започващ на 24.02.2020 задача "Сензори за мръсен въздух" от Кирил Иларионов, k.ilarionov@gmail.com 02/02/2020 ''' def sensors() : ''' https://github.com/HackBulgaria/Programming-101-Python-2020-Spring/tree/master/Application/1.Sensors ...
#!/usr/bin/python # Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # 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 limitati...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/user/openairinterface5g/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/user/openairinterface5g/c...
# -*- coding: utf-8 -*- # # doctest-travis documentation build configuration file, created by # sphinx-quickstart on Sun Jan 6 13:25:30 2019. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file...
function isObject(obj) { if (obj == null) return false; if (typeof obj !== "object" || obj.nodeType) { return false; } if ( obj.constructor && !({}).hasOwnProperty.call( obj.constructor.prototype, "isPrototypeOf" ) ) { return false; } return true; } function isArr...
#!/bin/python import random import time import math from . import locale class World(): def __init__( self, GlobalTools=None, populationLoops=None, worldLoops=None, conf=None, TargetParameters=None, EnvironmentParameters=None, ...
const { json } = require('express'); const { STATUS_CODES } = require('http'); const https = require('https'); age = 45; d_id = 286; let date_ob = new Date(); let date = date_ob.getDate(); let month = date_ob.getMonth() + 1; let year = date_ob.getFullYear(); let request_date=date+"-"+month+"-"+year; var DATA ...
/* * Copyright (c) 2015, Nagoya University * 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 ...
import { APIRequest } from "src/api/APIRequest"; const getCenters = async (email, startIndex, batchSize, filters) => { const url = 'taheel-apis-records-getCenters-v2?'; const requestBody = filters const queryParams = { userEmail: email, startIndex: startIndex, batchSize: batchSize ...
from django.contrib.contenttypes.fields import GenericRelation from django.db import models from dalme_app.models._templates import dalmeUuid import django.db.models.options as options options.DEFAULT_NAMES = options.DEFAULT_NAMES + ('in_db',) class Wordform(dalmeUuid): normalized_form = models.CharField(max_len...
#!/bin/python3 import math import os import random import re import sys # # Complete the 'dynamicArray' function below. # # The function is expected to return an INTEGER_ARRAY. # The function accepts following parameters: # 1. INTEGER n # 2. 2D_INTEGER_ARRAY queries # def dynamicArray(n, queries):...
/****************************************************************************** * Code generated with sympy 0.7.6 * * * * See http://www.sympy.org/ for more information. * ...
class Solution(object): def intersect(self, nums1, nums2): """ :type nums1: List[int] :type nums2: List[int] :rtype: List[int] """ dict = {} for n in nums2: if n not in dict: dict[n] = 1 else: dict[n] +=...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
from django.http import HttpResponse, HttpRequest, HttpResponseRedirect from django.template import RequestContext, Template, Context from django.shortcuts import render from django.template.context_processors import csrf from django.views.decorators.csrf import csrf_exempt from django.core.urlresolvers import reverse ...
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test Hierarchical Deterministic wallet function.""" import os import shutil from test_framework.test_...
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-06-22 01:39 from __future__ import unicode_literals import re from django.db import migrations from django.contrib.gis.geos import Point from data.migration_utils import csv_from_azure def import_data(apps, schema_editor): Allegation = apps.get_model(...
import logging from collections import defaultdict from enum import Enum from typing import TYPE_CHECKING, Any, DefaultDict, Dict, List, NamedTuple, Optional from gevent.lock import Semaphore from rotkehlchen.accounting.structures.balance import AssetBalance, Balance, BalanceSheet from rotkehlchen.accounting.structur...
# -*- coding: utf-8 -*- import os import time import pytest from click.testing import CliRunner from maestral.cli import main from maestral.constants import IDLE, PAUSED, ERROR from maestral.daemon import MaestralProxy if not ("DROPBOX_ACCESS_TOKEN" in os.environ or "DROPBOX_REFRESH_TOKEN" in os.environ): pyte...
#ifdef HAVE_CONFIG_H #include "../../ext_config.h" #endif #include <php.h> #include "../../php_ext.h" #include "../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/object.h" #include "kernel/fcall.h" #include "ke...
/* * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. * Distributed under the terms of the MIT License. */ #ifndef IMAGE_INFO_H #define IMAGE_INFO_H #include <image.h> #include <kits/support/String.h> #include <Types.h> class ImageInfo { public: ImageInfo(); ImageInfo(const ImageInfo& other);...
/*______________ | ______ | U I Z E J A V A S C R I P T F R A M E W O R K | / / | --------------------------------------------------- | / O / | MODULE : Uize.Loc.Plurals.Langs.te Package | / / / | | / / / /| | ONLINE : http://www.uize.com | /____/ /__/_| | COPYRIGHT...
import React from 'react'; import './middle-box.css' function MiddleBox(props) { let boxWidth let titleWidth switch (props.width) { case 'wide': boxWidth = 'column is-10 is-5' titleWidth = 'title is-5 box-title' break; default: boxWidth = 'column is-5' titleWidth = 'tit...
import Vue from 'vue' import App from './App' import router from './router' import 'element-ui/lib/theme-chalk/index.css' import ElementUI from 'element-ui' Vue.use(ElementUI) Vue.config.productionTip = false /* eslint-disable no-new */ new Vue({ el: '#app', router, render: h => h(App) })
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "id": "cordova-plugin-admobpro.AdMob", "file": "plugins/cordova-plugin-admobpro/www/AdMob.js", "pluginId": "cordova-plugin-admobpro", "clobbers": [ "window.AdMob" ] }, { "id": "onesignal-c...
import json import os import random import re import time from collections import defaultdict import globals from nonebot import on_keyword, on_regex, require from nonebot.adapters import Bot, Event from nonebot.adapters.cqhttp import Message, MessageSegment from nonebot.matcher import Matcher from nonebot.plugin impo...
TA_BLACKLIST = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~' EN_BLACKLIST = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~' FILENAME = { 'dev' : { 'en' : 'data/corpus.bcn.dev.en', 'ta' : 'data/corpus.bcn.dev.ta' }, 'test' : { 'e...
#======================================================== # siteobject.py #======================================================== # PublicPermissions: True #======================================================== # Base class for all SiteDescription objects # initialized from XML elements #==========================...
/** * @ngdoc directive * @name skycon * @restrict 'E' * * @description * A directive for rendering an icon from skycons */ components.directive('skycon', function () { return { restrict: 'E', //E = element, A = attribute, C = class, M = comment replace: true, scope: { //@ ...
exports.usePathFinder=function() { return PathFinder.use(true); } exports.deserialize=function(json) { return function () { return PathFinder.CostMatrix.deserialize(json); } } exports.search=function(from) { return function(to ) { return function(opts) { var clonedOpts =...
import offset from 'document-offset'; //import ImageUpdater from "wprr/imageloader/ImageUpdater"; export default class ImageUpdater { constructor() { //console.log("wprr/imageloader/ImageUpdater::constructor"); this._element = null; this._data = null; this._settings = null; this._imageRatio = 0; ...
'use strict'; // polyfill function polyfill() { // aliases var w = window; var d = document; // return if scroll behavior is supported and polyfill is not forced if ( 'scrollBehavior' in d.documentElement.style && w.__forceSmoothScrollPolyfill__ !== true ) { return; } // globals var Ele...
/*========================================================================= Program: Visualization Toolkit Module: $RCSfile$ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distrib...
from django.urls import path from .views import LinkListView urlpatterns = [ path('links/', LinkListView.as_view(), name='links'), ]
__all__ = 'run', from . import coroutines from . import events from . import tasks def run(main, *, debug=False): """Run a coroutine. This function runs the passed coroutine, taking care of managing the asyncio event loop and finalizing asynchronous generators. This function cannot be called wh...
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'tundra.users' verbose_name = "Users" def ready(self): """Override this to put in: Users system checks Users signal registration """ pass
export function frameworkEventListeners(object){const domDebuggerModel=object.runtimeModel().target().model(SDK.DOMDebuggerModel);if(!domDebuggerModel){return Promise.resolve(({eventListeners:[],internalHandlers:null}));} const listenersResult=({eventListeners:[]});return object.callFunction(frameworkEventListenersImpl...
# Copyright 2022 The AI Flow 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 applicable law or agreed to in wri...
/** * @file lv_ex_conf.h * */ /* * COPY THIS FILE AS lv_ex_conf.h */ #if 1 /*Set it to "1" to enable the content*/ #ifndef LV_EX_CONF_H #define LV_EX_CONF_H /******************* * GENERAL SETTING *******************/ #define LV_EX_PRINTF 0 /*Enable printf-ing data in demoes and examples*/ #define...
#!/usr/bin/env node var bitcore = require('bitcore-lib'); var levelup = require('level') var db = levelup('./addressdb', { valueEncoding: 'json'}); var phrase = process.argv[2]; var value = new Buffer(phrase); var hash = bitcore.crypto.Hash.sha256(value); var bn = bitcore.crypto.BN.fromBuffer(hash); var keyT = ne...
"""Converts raw Somerset data to standardised mobile library format""" import csv import time import collections import urllib.request import json from datetime import datetime DATA_SOURCE = '../data/raw/somerset_raw.csv' DATA_OUTPUT = '../data/somerset.csv' def run(): """Runs the main script""" mobiles = []...
#!/usr/bin/env python3 """Inject an SDF or URDF file into Gazebo""" import sys import rclpy import transformations from gazebo_msgs.srv import SpawnEntity from geometry_msgs.msg import Pose def inject(xml: str, initial_pose: Pose): """Create a ROS node, and use it to call the SpawnEntity service""" rclpy....
self["webpackHotUpdate_N_E"]("webpack",{}, /******/ function(__webpack_require__) { // webpackRuntimeModules /******/ "use strict"; /******/ /******/ /* webpack/runtime/getFullHash */ /******/ !function() { /******/ __webpack_require__.h = function() { return "587077b7c5714790ba74"; } /******/ }(); /******/ /******/...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: The RegExp.prototype multiline property has the attribute DontEnum es5id: 15.10.7.4_A8 description: > Checking if enumerating the multiline property of RegExp.prototype ...
if (Meteor.isServer) { Tinytest.add('Collection2 - Ensure Index', function () { // We need to have an access to the getIndexes method of the embedded // collection in order to test this feature. // var indexes = books._collection._getIndexes(); }); } // When unique: true, inserts should fail if another...
# # This source file is part of the EdgeDB open source project. # # Copyright 2020-present MagicStack Inc. and the EdgeDB 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...
# 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...
import pandas as pd import numpy as np from os import mkdir, getcwd from os.path import exists, join import stock_fundamentals as sf import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt data_dir = join(getcwd(),'data/') img_dir = join(getcwd(),'images/') def split_buy_sell_vols(stock_index,ticker,...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
/** Copyright 2011 Couchbase, 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 i...
from snakeoil.sequences import iflatten_instance from snakeoil.strings import pluralism from .. import base, results, sources from . import ExplicitlyEnabledCheck, OverlayRepoCheck, repo_metadata class UnusedInMastersLicenses(results.VersionResult, results.Warning): """Licenses detected that are unused in the ma...
// LICENSE NOTICE ================================================================================== /** * netzhaut - Web Browser Engine * Copyright (C) 2020 The netzhaut Authors * Published under MIT */ // INCLUDE ========================================================================================= #include...
// External Libraries const mongoose = require('mongoose'); // Self Libraries const StatusExchange = require('./statusExchangeSchema'); const StatusExchangeCodes = require('./statusExchangeCodes'); // Constants let isConnected = false; mongoose.Promise = global.Promise; // Main const myMongo = (urlConnection) => { ...
# -*- coding: utf-8 -*- import argparse import os import torch from collections import OrderedDict def get_item_values(model_dict, enc_dec, kitem, max_span, nheads=4, span_ramp=2): item_values = OrderedDict() for key, value in model_dict.items(): if enc_dec in key and kitem in key: nlayer ...
import setuptools setuptools.setup( name='dao.common', version='0.7.1', namespace_packages=['dao'], author='Sergii Kashaba', description='Deployment Automation and Orchestration Framework', classifiers=[ 'Environment :: Console', 'Environment :: Web Environment', 'Intend...
const mdxToJsx = require('@mdx-js/mdx/mdx-hast-to-jsx'); const parser = require('@babel/parser'); const generate = require('@babel/generator').default; const camelCase = require('lodash/camelCase'); const jsStringEscape = require('js-string-escape'); // Generate the MDX as is, but append named exports for every // sto...
""" Agutil Cipher format: [16 byte header] [16 or 0 byte nonce block] [Variable size extra-data block] [Ciphertext] [Variable size MAC tag block] Legacy Compatability (headerless) format: [16 byte nonce block] [16 byte validation block] [Ciphertext] Header format (16 Bytes): [0x00], [legacy cipher bitmask], [modern c...
/** * @license Map plugin v0.1 for Highcharts * * (c) 2011-2013 Torstein Hønsi * * License: www.highcharts.com/license */ /* * See www.highcharts.com/studies/world-map.htm for use case. * * To do: * - Optimize long variable names and alias adapter methods and Highcharts namespace variables * - Zoom and pan...
/* * Copyright 2020, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ import { classificationVector, classificationRaster, updateStyleService, clearCache } from '../StyleE...
const exec = require('child_process').exec; const allure = require('allure-commandline'); exports.config = { runner: 'local', specs: [ './test/specs/**/*.spec.js', //'./test/specs/structure/StructureProperties.spec.js' ], suites: { superuser: [ './test/specs/**/*.spe...
module.exports = { module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, use: 'babel-loader', }, { test: /\.css$/, include: /node_modules/, use: [ 'style-loader', 'css-loader', ], }, { te...
import React from "react" import Layout from "../components/Layout/layout" import SEO from "../components/SEO/seo" const Index = () => ( <Layout> <SEO title="Home" /> <p>Welcome to your new Gatsby site.</p> </Layout> ) export default Index
import { useCallback } from 'react'; import useCreateContextMenu from './use-create-context-menu'; const useCreateContextMenuForMouseEvent = (content) => { const createContextMenu = useCreateContextMenu(); const createContextMenuForMouseEvent = useCallback( (event) => { event.preventDefault(); eve...
# Copyright: 2006-2011 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD __all__ = ("tree",) from pkgcore.operations.repo import sync_operations class tree(object): operations_kls = sync_operations def __init__(self, sync=None): object.__setattr__(self, '_syncer', sync) @property def...
#Para saber el valor del punto de código ASCII/UNICODE de un caracter específico, # puedes usar la función "ord()" (proveniente de ordinal). #La función necesita una cadena de un caracter como argumento # - incumplir este requisito provoca una excepción TypeError, # y devuelve un número que representa el punto de códig...
/*$(function() { $("#contactForm input,#contactForm textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { // additional error messages or events }, submitSuccess: function($form, event) { event.preventDefault(); // prevent default submit beh...
// Copyright (c) 2006-2008 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. #ifndef CHROME_COMMON_VISITEDLINK_COMMON_H__ #define CHROME_COMMON_VISITEDLINK_COMMON_H__ #include <string> #include "base/basictypes.h" #inclu...
print('bar-package grok!')
var mailer = require('nodemailer'); var smtpTransport = require('nodemailer-smtp-transport'); var config = require('../config'); var util = require('util'); var logger = require('./logger'); var transporter = mailer.createTransport(smtpTransport(config.mail_opts)); var SITE_ROOT_URL = 'http:/...
#!/usr/bin/env python # Copyright (c) 2020, NVIDIA CORPORATION. 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, thi...
import template from './sw-users-permissions-role-view-detailed.html.twig'; import './sw-users-permissions-role-view-detailed.scss'; Shopware.Component.register('sw-users-permissions-role-view-detailed', { template, inject: [ 'acl', ], props: { role: { type: Object, ...
# 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. from io import BytesIO import logging import warnings import base64 import random import numpy as np import torch from PIL import Image, Ima...
import React from 'react'; import styled from 'styled-components'; import oc from 'open-color'; import scuize from '../../lib/scuize'; const Box = styled.div` position: relative; height: 60px; top : 60px; width: 100%; cursor : pointer; flexDirection : column; background: #ffffff; margin-bottom : 1rem; padding-top: 0.5...