text
stringlengths
3
1.05M
/* genericadmin - Weston Nielson (wnielson@gmail.com) updated by Jan Schrewe (jschrewe@googlemail.com) updated by Troy Melhase (troy.melhase@gmail.com) updated by Jonathan Ellenberger (jon@respondcreate.com) */ (function($) { var GenericAdmin = { url_array: null, fields: null, ...
/**************************************************************************** * * ftlcdfil.c * * FreeType API for color filtering of subpixel bitmap glyphs (body). * * Copyright 2006-2018 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * This file is part of the FreeType project, and may only be use...
import sys import urllib.request headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0' } def get_html(url): res = None req = urllib.request.Request(url, headers=headers) try: site = urllib.request.urlopen(req) ...
# coding: utf-8 """ NeoLoad API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from ...
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
import React from "react" import Contact from "../components/Contact" import portrait from "../assets/alexis-villaraza-portrait.jpg" export default function AboutMe({ page }) { return ( <div className={`about-me-container ${page === "about-me" ? "" : "hidden"}`} > <div className="portrait"> ...
import uuid from "uuid"; import dynamoDb from "../../libs/dynamodb-lib"; import handler from "../../libs/handler-lib"; export const main = handler(async (event, _context) => { const data = JSON.parse(event.body); const params = { TableName: process.env.tableName, Item: { userId: event.requestContext....
define( //begin v1.x content { "dateFormatItem-yM": "M/yyyy", "dayPeriods-format-wide-pm": "م", "eraNames": [ "ص" ], "dateFormatItem-MMMEd": "E، d MMM", "dateFormatItem-yQQQ": "QQQ y", "days-standAlone-wide": [ "الأحد", "الاثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت" ], "dayPerio...
# Copyright 2020 - 2021 MONAI Consortium # 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...
'use strict'; const other = require('./fixture-circular-1'); module.exports = other;
""" This script implements a simple `Tracker` class. """ import numpy as np import cv2 import math import functools class Tracker(object): """A simple tracker: For previous skeletons(S1) and current skeletons(S2), S1[i] and S2[j] are matched, if: 1. For S1[i], S2[j] is the most nearest skeleton i...
// https://codepen.io/liammclennan/pen/VxpZzV?editors=0011 let container = Redux.createStore((model = { running: false, time: 0 }, action) => { const updates = { 'START': (model) => Object.assign(model, {running: true}), 'STOP': (model) => Object.assign(model, {running: false}), 'TICK': (model) => ...
# -*- coding: utf-8 -*- string1 = "Animals" string2 = "Badger" string3 = "Honey Bee" string4 = "Honeybadger" print(string1.lower()) print(string2.lower()) print(string3.lower()) print(string4.lower())
//////////////////////////////////////////////////////////////////////////// // Module : debug_renderer_inline.h // Created : 19.06.2006 // Modified : 19.06.2006 // Author : Dmitriy Iassenev // Description : debug renderer inline functions //////////////////////////////////////////////////////////////////////////...
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Users/zhangwen/Documents/zwdir/sync/workspace/howtobuildapp/j2objclibios/javasrc/com/github/howtobuildapp/libservice/platform/NotificationRequest.java // #include "J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_NotificationRequest") #ifdef RESTRI...
const mongoose = require('mongoose'); require('dotenv').config(); const options = { useNewUrlParser: true, useFindAndModify: false, useCreateIndex: true, useUnifiedTopology: true, poolSize: 10, bufferMaxEntries: 0, }; // const DB_HOST = 'localhost'; // const DB_NAME = 'MENTORS'; // const DB_PORT = 27017; ...
const { Request, Response } = require('express') const bcrypt = require('bcrypt') const jwt = require('jsonwebtoken') const Admin = require('../../models/Admin') const Commuter = require('../../models/Commuter') const Driver = require('../../models/Driver') const { JWT_SECRET } = require('../../../config') /** * Log...
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:34:23 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/CellularPla...
/* * Copyright (c) 2006-2009 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * i...
// Mouse down will pick a random word from this array let words = ["rainbow", "heart", "purple", "friend", "love"]; let index = 0; function setup() { createCanvas(400, 400); } function draw() { background(0); fill(255); textSize(32); text(words[index], 12, 200); } function mousePressed() { index = inde...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_StravaSwift_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_StravaSwift_Examp...
from django.apps import AppConfig class GaleraConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'galera'
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { ES_INDEX_NAME } from './constants'; export default function({ getSe...
(function(){var h=void 0,k=!0,l=null,m=!1;function o(){return function(){}}(function(){ktools={i:function(){var a="en",d="",b=[],i=new ktools.k;this.setLanguage=this.Oa=function(c){a=c};this.getLanguage=this.da=function(){return a};this.getAvailableLanguages=this.Z=function(){return b};this.setLanguageFilePath=this.M=f...
const router = require("express").Router(); // Router is a function in the express which can be used to return an array of routes and methods const dboardCont = require("../../controllers/dashboardCont"); // Controller functions for staff-login routes const authMid = require("../../middleware/auth"); const validate = r...
# File: Namespaces_in_Python.py # Description: Emulation of the work of the namespace in Python # Environment: PyCharm and Anaconda environment # # MIT License # Copyright (c) 2018 Valentyn N Sichkar # github.com/sichkar-valentyn # # Reference to: # [1] Valentyn N Sichkar. Emulation of the work of the namespac...
import pytest from plenum.test.delayers import delay_3pc_messages from plenum.test.helper import countDiscarded from plenum.test.node_catchup.helper import waitNodeDataEquality from plenum.test.node_request.node_request_helper import \ chk_commits_prepares_recvd from plenum.test.test_node import getNonPrimaryRepli...
# Copyright (c) 2021 PaddlePaddle 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 appli...
import random import sys from prompt_toolkit import prompt from rich.console import Console from config import ARRAY_SIZE from ui import algo_wrapper, visualize_compare, clear_screen, footer console = Console() @algo_wrapper def BubbleSort(list): '''Buble Sort''' lastElementIndex = len(list)-1 steps = 1 ...
const tailwindcss = require('tailwindcss'); const purgecss = require('@fullhuman/postcss-purgecss'); const autoprefixer = require('autoprefixer'); module.exports = { plugins: [ tailwindcss('./tailwind.config.js'), purgecss({ content: ['./*.html'], }), autoprefixer, ], };
# -*- coding: utf-8 -*- from flask import (Blueprint, render_template, current_app) from ..extensions import manager # from ..models import MyModel def initialize_api(app): with app.app_context(): # List all Flask-Restless APIs here # model_api = manager.create_api(MyModel, methods=['GET'], ...
#pragma once template <int MaxCharN = 26, int BaseChar = 'a'> struct PersistentTrie { static constexpr int ch2i(char ch) { return ch - BaseChar; } struct Node { int leafCount; int parent; int children[MaxCharN]; explicit Node(int parent = -1) { init(par...
import pyscipopt as scip def set_cover(costs, sets, name="Set Cover"): """ Generates basic set cover formulation. Parameters ---------- costs: list[float] Cost for covering each element sets: list[set] Set constraints for elements Returns ------- model: scip.Model...
#ifndef DataFormats_TauReco_PFTau_h #define DataFormats_TauReco_PFTau_h /* class PFTau * the object of this class is created by RecoTauTag/RecoTau PFRecoTauProducer EDProducer starting from the PFTauTagInfo object, * is a hadronic tau-jet candidate -built from a jet made employing a particle...
/* * Argon2 reference source code package - reference C implementations * * Copyright 2015 * Daniel Dinu, Dmitry Khovratovich, Jean-Philippe Aumasson, and Samuel Neves * * You may use this work under the terms of a Creative Commons CC0 1.0 * License/Waiver or the Apache Public License 2.0, at your option. The te...
import { isRSAA, RSAA } from 'redux-api-middleware'; import configSelectors from '../selectors'; const apiUrlMiddleware = store => next => action => { if (!isRSAA(action)) { return next(action); } const storeState = store.getState(); const urlSelectors = { apiUrl: configSelectors.apiU...
import { h } from 'vue' export default { name: "FileEarmarkMusic", vendor: "B", type: "", tags: ["file","earmark","music"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","fill":"currentColor","class":"v-icon","viewBox":"0 0 16 16","data-name":"b-f...
"""Tests for classes.""" from pytype import file_utils from pytype.tests import test_base class ClassesTest(test_base.TargetPython3BasicTest): """Tests for classes.""" def testClassGetItem(self): ty = self.Infer(""" class A(type): def __getitem__(self, i): return 42 X = A("X", ...
import glob import os, losses, utils from torch.utils.data import DataLoader from data import datasets, trans import numpy as np import torch from torchvision import transforms import matplotlib.pyplot as plt from natsort import natsorted from models.PVT import CONFIGS as CONFIGS_pvt from models.PVT import PV...
#pragma once #include <eglbinding/noegl.h> #include <eglbinding/egl/enum.h> namespace egl10 { // use enum type using egl::EGLenum; // import enums to namespace using egl::EGL_ALPHA_SIZE; using egl::EGL_BAD_ACCESS; using egl::EGL_BAD_ALLOC; using egl::EGL_BAD_ATTRIBUTE; using egl::EGL_BAD_CONFIG; using egl::EG...
{"version":3,"sources":["script.js"],"names":["window","toggleHideList","event","hiddenList","document","getElementById","style","display","BX","ready","bindDelegate","body","className","copyToClipboard","props","id","addPreloader","tag","addCustomEvent","getEventId","location","reload"],"mappings":"CAAC,SAAUA,GACVA,EA...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as HomeActions from '../actions/HomeActions'; import styles from '../../css/app.css'; import {Link} from 'react-router'; class Home extends Component { render() { const {title, dispatch...
//LOAD CONFIG var fs = require('fs'); var config = JSON.parse(fs.readFileSync('config.json', 'utf8')); //console.log(config); //EXPRESSJS var express = require('express'); var app = express(); //MONGOJS var mongojs = require('mongojs'); var db = mongojs('story', ['users']); var db = mongojs(config.mongodb, ['users'])...
# Generated by Django 3.2.9 on 2022-01-07 18:06 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('hoodapp', '0009_auto_20220107_1947'), ] operations = [ migrations.RemoveField( model_name='post', name='date', ), ...
// Copyright (c) 2012-2016 The Bitcoin Core developers // Copyright (c) 2017-2020 The OLDNAMENEEDKEEP__Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef HIVE_VERSION_H #define HIVE_VERSION_H /** * network...
import React from 'react'; import PropTypes from 'prop-types'; import ServiceFleetCard from './serviceFleetCard'; export default function ServiceFleetSection({ pathname, products }) { return ( <section className="container my-14"> <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 ...
#ifndef ES_STYLES_H #define ES_STYLES_H #include "config.h" #define KL_COLOR_RED LV_COLOR_MAKE(0xFF, 0x32, 0x00) #define KL_COLOR_BLUE LV_COLOR_MAKE(0x21, 0x33, 0x42) extern lv_style_t label_style; extern lv_style_t label_white_style; extern lv_style_t label_big_style; extern lv_style_t container_style; extern lv_st...
# -*- coding : utf-8 -*- # @FileName : grad_test.py # @Author : Ruixiang JIANG (Songrise) # @Time : 2022-01-26 # @Github :https://github.com/songrise # @Descriptions: To test gradient tape in tensorflow # %% import tensorflow as tf import numpy as np def get_model(): """ simulate nerf model ...
import React from "react" import { Link } from 'gatsby' import Header from '../components/header' export default () => ( <div style={{ color: 'purple', fontWeight: 'bold' }}> <Link to='/'>Contact</Link> <Header contactText='Hello from Contact' /> <p>Everything is Going to be All Right</p> <img src="h...
import os from datetime import datetime from PIL import Image, ImageDraw, ImageFont from pySmartDL import SmartDL from telethon.tl import functions import asyncio import shutil from userbot.utils import admin_cmd FONT_FILE_TO_USE = "Fonts/digital.ttf" @command(pattern="^.seconddp", outgoing=True) #@borg.on(admin_cmd...
#pragma once namespace NUnitTest { int RunMain(int argc, char** argv); }
import os import subprocess import sys import unittest from winlogbeat import BaseTest """ Contains tests for config parsing. """ @unittest.skipUnless(sys.platform.startswith("win"), "requires Windows") class Test(BaseTest): def test_valid_config(self): """ configtest - valid con...
# # Copyright (c) 2013-2018 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # # -*- encoding: utf-8 -*- # from cgtsclient.common import base from cgtsclient.common import constants from cgtsclient.common import utils from cgtsclient import exc from cgtsclient.v1 import ceph_mon as ceph_mon_utils from...
# Copyright 2012 OpenStack Foundation # 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 requ...
/* nppsamp.c */ #include <stdio.h> #include <stdlib.h> #include <glpk.h> int main(void) { glp_prep *prep; glp_prob *P, *Q; int ret; prep = glp_npp_alloc_wksp(); P = glp_create_prob(); ret = glp_read_mps(P, GLP_MPS_DECK, NULL, "murtagh.mps"); if (ret != 0) { printf("Error...
import configparser def get_config(): config_parser = configparser.RawConfigParser() config_file_path = r'config.ini' config_parser.read(config_file_path) return config_parser
import loopy as lp def pick_apart_float_cast(value): if isinstance(value, (int, float)): return value import re fval_match = re.match(r"^\(\((float|double)\)\s*(.+)\)$", value) if fval_match is None: return value # tp = fval_match.group(1) return float(fval_match.group(2)) ...
# Python test set -- built-in functions import platform import unittest import sys import warnings import collections import io import os import ast import types import builtins import random import traceback from test.support import (TESTFN, check_impl_detail, check_warnings, fcmp, run_unitt...
from typing import List import logging import numpy import pandas as pd from libs.datasets.timeseries import TimeseriesDataset from libs.datasets import data_source from libs.datasets import dataset_utils from libs.datasets.common_fields import CommonIndexFields from libs.datasets.common_fields import CommonFields cl...
/*! tabbyjs v12.0.3 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/tabby */ Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Ele...
import logging import os import threading from django.db import models from common import models as common_models # Create your models here. from ansible_api.models import Project, Group, Playbook from fit2ansible.settings import KUBEEASZ_DIR from kubeops_api.models.node import Node from kubeops_api.models.host impor...
/** * bootstrap.js v3.0.0 by @fat and @mdo * Copyright 2013 Twitter Inc. * http://www.apache.org/licenses/LICENSE-2.0 */ if(!jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"tran...
import asyncio import ssl as _ssl import time import warnings from collections import Counter from .errors import ( ProxyConnError, ProxyEmptyRecvError, ProxyRecvError, ProxySendError, ProxyTimeoutError, ResolveError, ) from .negotiators import NGTRS from .resolver import Resolver from .utils i...
import { createStore, applyMiddleware } from 'redux'; import rootReducer from '../reducers'; import { createLogger } from 'redux-logger'; import thunk from 'redux-thunk'; import { composeWithDevTools } from 'remote-redux-devtools'; function configureStore(initialState) { const devTools = composeWithDevTools({ rea...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.RouteRecognize...
// // BGProgressHUD.h // BXlive // // Created by huangzhiwen on 2017/3/30. // Copyright © 2017年 cat. All rights reserved. // #import <Foundation/Foundation.h> @class MBProgressHUD; @interface BGProgressHUD : NSObject /** * 普通提示 * * @param msg 消息 */ + (MBProgressHUD *)showInfoWithMessage:(NSString *)msg; ...
const exactCoverTests = { 'makes an exact cover matrix correctly': () => { const exp = `1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...
/* * Copyright (c) 2008-2009 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
/* global jest, it, describe, expect */ jest.unmock('../src/cent-provider') import React from 'react' import PropTypes from 'prop-types' import CentProvider from '../src/cent-provider' describe('CentProvider', () => { const config = {url: 'http://localhost:8000/connect', insecure: true} it('should throw Exceptio...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var ts = require("typescript"); var Lint = require("tslint"); var tsutils_1 = require("tsutils"); var FAIL_MESSAGE = 'use <Type> instead of `as Type`'; var Rule = (function (_super) { tslib_1.__extends(Rule,...
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab * Copyright (C) 2008-2008 - INRIA - Allan SIMON * * This file must be used under the terms of the CeCILL. * This source file is licensed as described in the file COPYING, which * you should have received as part of this distribution. The t...
#pragma once #include "ECSConfig.h" namespace Reality { struct BuoyancyComponent { BuoyancyComponent(float _maxDepth = 10.0f, float _volume = 10.0f, float _waterHeight = 0.0f, float _liquidDensity = 1000.0f) : maxDepth(_maxDepth), volume(_volume), waterHeight(_waterHeight), liquidDensity(_liquidDensity)...
import numpy as np from emukit.test_functions import sixhumpcamel_function def test_sixhumpcamel_minima(): """ Test some known values at minima """ sixhumpcamel, _ = sixhumpcamel_function() minimum = -1.0316 # value of function at minima assert np.isclose(sixhumpcamel(np.array([[0.0898, -0.7...
import { LitElement } from '@lion/core'; import { parseDate } from '@lion/localize'; import { aTimeout, defineCE, expect, fixture, html, unsafeStatic } from '@open-wc/testing'; import sinon from 'sinon'; import { FormatMixin } from '../src/FormatMixin.js'; import { Unparseable, Validator } from '../index.js'; /** * @...
/** * @license * Copyright 2017 The FOAM 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 ...
// import Layouts from '../layouts/google-contacts.vue' import publicProfile from './dashboard/publicProfile.vue' import dashboard from './dashboard/user.vue' import accountSettings from './dashboard/account-settings.vue' import productDetails from './products/productDetails.vue' import checkOut from '../components/ste...
from __future__ import unicode_literals from django.conf.urls import patterns, url from .api_views import ( APIObjectACLListView, APIObjectACLPermissionListView, APIObjectACLPermissionView, APIObjectACLView ) from .views import ( ACLCreateView, ACLDeleteView, ACLListView, ACLPermissionsView ) urlpatterns...
import React, { Component, Fragment } from 'react'; import { connect } from 'dva'; import { Row, Col, Icon, Card, Tabs, Table, Radio, DatePicker, Tooltip, Menu, Dropdown, } from 'antd'; import numeral from 'numeral'; import { ChartCard, yuan, MiniArea, MiniBar, MiniProgress, Field, B...
from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.http import JsonResponse def api_vendas_do_dia_por_vendedor(request): data = {'vendas': buscarVendas()} return JsonResponse(data) def buscarVendas(): return [['teste1', 15512], ...
from django.test import TestCase from django.utils import timezone from tournaments.models import Participant, PelotonProfile, Tournament, TournamentTeam # Create your tests here. class TournamentTests(TestCase): def test_main_flow(self): tournament = Tournament.objects.create( name="Test Tou...
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
#treeInterceptorHandler.py #A part of NonVisual Desktop Access (NVDA) #This file is covered by the GNU General Public License. #See the file COPYING for more details. #Copyright (C) 2006-2010 Michael Curran <mick@kulgan.net>, James Teh <jamie@jantrid.net> from logHandler import log import baseObject import api...
import React from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Badge, UncontrolledTooltip, Button } from 'reactstrap'; export default function LivePreviewExample() { return ( <> <div className="d-flex align-items-center justify-content-center flex-wrap"> <But...
module.exports = { pathPrefix: `/portfolio`, plugins: [ `gatsby-transformer-json`, `gatsby-transformer-sharp`, `gatsby-plugin-sharp`, `gatsby-plugin-react-helmet`, `gatsby-plugin-styled-components`, { resolve: `gatsby-source-filesystem`, options: { name: `content`, ...
/* Copyright 2017 Renato Cortinovis 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, ...
import copy import datetime import logging import os import re import time from collections import defaultdict from typing import List import warnings import pandas as pd import requests import json from pyshex import ShExEvaluator import pyshex from sparql_slurper import SlurpyGraph from ShExJSG import ShExC from w...
/*-----------------------------------------------------------------------*/ /* Low level disk I/O module skeleton for FatFs (C)ChaN, 2014 */ /*-----------------------------------------------------------------------*/ /* If a working storage control module is available, it should be */ /* attached to t...
const {expect} = require('chai'); const {average} = require('../average'); it('computes average of a list of numbers', ()=> { // floating point numbers cannot be compared for equality, // hence allowing a delta tolerance expect(average([1, 2, 3, 4])).to.be.approximately(2.5, 0.01); }); it('reports the average a...
/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <types.h> #include <errno.h> #include <sprintf.h> #include <per_cpu.h> #include <lapic.h> #include <vm.h> #include <vm_reset.h> #include <bits.h> #include <e820.h> #include <multiboot.h> #include <...
import unittest import os from checkov.terraform.checks.resource.panos.InterfaceMgmtProfileNoTelnet import check from checkov.runner_filter import RunnerFilter from checkov.terraform.runner import Runner class TestInterfaceMgmtProfileNoTelnet(unittest.TestCase): def test(self): runner = Runner() ...
#include <u.h> #include <libc.h> #include <fcall.h> #include <thread.h> #include <9p.h> enum { Qdir = 0, Qurl = 1, }; typedef struct Stream Stream; struct Stream{ int pid; char *url; char *name; int data[2]; Channel *cpid; }; enum { Maxstream = 1024, }; static Stream streams[Maxstream]; static int nstream =...
/*! * Sizzle CSS Selector Engine - v1.0 * Copyright 2009, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ */ (function(){ var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*...
/** @jsx jsx */ import React from "react" import {Card, Box, Label, Input, Button, Heading, jsx, useColorMode} from 'theme-ui' import SEO from "../modules/utility/seo" const IndexPage = () => { const [colorMode, setColorMode] = useColorMode() return ( <> <SEO title="Home" /> <Card> <Hea...
import User from 'models/user' import Post from 'models/post' function usersList() { return [ new User({ id: '1', name: 'Jon Stokes', email: 'jon@collectiveidea.com', website: 'https://github.com/jonstokes', password: 'foobarbazqux', role: 'admin' }), new User({ ...
import torch from ..inference import RPNPostProcessor from ..utils import permute_and_flatten from maskrcnn_benchmark.modeling.box_coder import BoxCoder from maskrcnn_benchmark.modeling.utils import cat from maskrcnn_benchmark.structures.bounding_box import BoxList from maskrcnn_benchmark.structures.boxlist_ops impor...
/****************************************************************/ /* EUSLISP foreign function interface /* /* c --> lisp /* calleus(foreign-symbol,cargv) /* /* lisp --> c /* After loading by using load-foreign func, /* (call-foreign address param-spec result-spec . args) /* /* Since arguments are pushed on stack inter...
#!/home/mark/phd/venv/bin/python # coding: utf-8 """Function to persist experiment results.""" from typing import Dict from typing import Any from typing import Optional import torch as th from hashlib import sha256 from base64 import b64encode from os import makedirs from os.path import isdir from os.path import ba...
import os import json import binascii import lycanthropy.crypto def generatePrefixes(): prefixes = [] for rSet in range(31): prefixes.append(binascii.hexlify(os.urandom(2)).decode('utf-8')) return prefixes def getConfig(): dnsConf = json.load(open('../etc/daemon.json', 'r')) return dnsConf...
""" Carbon Scraper Plugin for Userbot. //text in creative way. usage: .carbon1 //as a reply to any text message Thanks to @NeoMatrix90 for vars Type : .carbon1 """ import os import time import asyncio import shutil from bs4 import BeautifulSoup import re from time import sleep from html import unescape from re impor...