text stringlengths 3 1.05M |
|---|
import React from "react"
import { VerticalTimeline } from "react-vertical-timeline-component"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { TimelineItem } from "../common/timelineItem"
import { WorkContentItem } from "./workContentItem"
import "react-vertical-timeline-component/style.min.cs... |
'''
todayBingWallpaper
Bing json File Url: https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=zh-CN
Just for learn!
'''
import requests
import json
import time
import os
import argparse
info = '''todayBingWallpaper,default download path './data',save name simple: 2020-01-01.jpg.
Just for learn!
'''
c... |
var http =require('http');
// 加载一个【http】模块,负责创建WEB服务器及处理HTTP相关任务等。
var server = http.createServer(function(req,res){
res.writeHead(200,{'Content-Type':'text/plain'});
res.end('Hello Node.js\n');
})
server.listen(1337,'127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
//用【createServer】创建WEB服务... |
# ==============================================================================
# File : Characterize.py
# Author : Max von Hippel and Cole Vick
# Authored : 30 November 2019 - 13 March 2020
# Purpose : Checks when models do or do not satisfy properties. Also inter-
# prets various outputs of S... |
/**
* @preserve jquery.layout 1.3.0 - Release Candidate 30.4
* $Date: 2012-03-10 08:00:00 (Sat, 10 Mar 2012) $
* $Rev: 303004 $
*
* Copyright (c) 2012
* Fabrizio Balliano (http://www.fabrizioballiano.net)
* Kevin Dalman (http://allpro.net)
*
* Dual licensed under the GPL (http://www.gnu.org/licen... |
from keras_applications import get_submodules_from_kwargs
from ._common_blocks import Conv2dBn
from ._utils import freeze_model, filter_keras_submodules
from ..backbones.backbones_factory import Backbones
backend = None
layers = None
models = None
keras_utils = None
# -----------------------------------------------... |
/* stb_image - v2.19 - public domain image loader - http://nothings.org/stb
no warranty implied; use at your own risk
Do this:
#define STB_IMAGE_IMPLEMENTATION
before you include this file in *one* C or C++ file to create the implementation.
// i.e. it should look like... |
#########################################################################
# _________ ___. ______________________ ___
# \_ ___ \___.__.\_ |__ ___________ / _____/\______ \ \/ /
# / \ \< | | | __ \_/ __ \_ __ \/ \ ___ | _/\ /
# \ \___\___ | | \_\... |
#include <stdio.h>
#include <ngx_config.h>
#include <ngx_core.h>
typedef struct {
int x;
int y;
} my_point_t;
typedef struct {
my_point_t point;
ngx_queue_t queue;
} my_point_queue_t;
//sort from small to big
ngx_int_t my_point_cmp(const ngx_queue_t* lhs, const ngx_queue_t* rhs)
{
my_point_queue... |
from dumper import *
def qdump__TestClass(d, value):
d.putValue("TestClass")
d.putNumChild(2)
if d.isExpanded():
with Children(d):
d.putSubItem("x", value["x"])
d.putSubItem("y", value["y"])
|
/* vi: set sw=4 ts=4: */
/*
* cat implementation for busybox
*
* Copyright (C) 2003 Manuel Novoa III <mjn3@codepoet.org>
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
//config:config CAT
//config: bool "cat (5.6 kb)"
//config: default y
//config: help
//config: cat is used to concatenate fi... |
import datetime
import numpy as np
from pynwb import NWBHDF5IO, NWBFile
from pynwb.core import DynamicTableRegion
from pynwb.device import Device
from pynwb.ecephys import ElectrodeGroup
from pynwb.file import ElectrodeTable as get_electrode_table
from pynwb.testing import TestCase, remove_test_file, AcquisitionH5IOMi... |
import argparse
import os
from grimoire.genome import Reader
## CLI
parser = argparse.ArgumentParser(description="exon-intron data builder")
parser.add_argument("build_dir", type=str, metavar='<dir>',
help="build")
arg = parser.parse_args()
efp = open('exons1.fa', 'w')
ifp = open('introns1.fa', 'w')
for d in os.li... |
import gamma from './_gamma'
/**
* Generates a chi2 random variate.
*
* @method chi2
* @memberof ran.dist
* @param {ran.core.Xoshiro128p} r Random generator.
* @param {number=} nu Degrees of freedom.
* @returns {number} Random variate.
* @ignore
*/
export default function (r, nu) {
return gamma(r, nu / 2, 0... |
'''
LED event manager
Wires events to handlers
'''
import gevent
class LEDEventManager:
processEventObj = gevent.event.Event()
events = {}
eventHandlers = {}
eventThread = None
def __init__(self, strip, config):
self.strip = strip
self.config = config
def isEnabled(self):
... |
/*
* Foundation Responsive Library
* http://foundation.zurb.com
* Copyright 2014, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function ($, window, document, undefined) {
'use strict';
var header_helpers = function (class_array) {
var i = class_array.... |
import vue from "vue";
import AppHelper from './../../../app-helper';
export default {
namespaced: true,
state: {
loaded: false,
elements: [
]
},
getters: {
filterByTag: (state) => (tag) => {
return state.elements.filter(element => element.tags === tag);
... |
'use strict'
module.exports = javadoclike
javadoclike.displayName = 'javadoclike'
javadoclike.aliases = []
function javadoclike(Prism) {
;(function (Prism) {
var javaDocLike = (Prism.languages.javadoclike = {
parameter: {
pattern:
/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+... |
import json
from conans.cli.cli import cli_out_write
from conans.client.output import Color
from conans.cli.command import conan_command, Extender
def output_search_cli(info):
for remote_info in info:
source = "cache" if remote_info["remote"] is None else str(remote_info["remote"])
cli_out_write(... |
"""
Exponential sum functions.
Create an animated plot with the optional --anim argument.
Examples
--------
>>> python expsum func1 2000 10 7 17
>>> python expsum func1 2000 10 7 17 --anim
>>> python expsum func1 8000 11 21 31
>>> python expsum func2 1200 100
>>> python expsum func2 4000 800
>>> python expsum func3 1... |
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... |
"""
7_problem.py
Implement an HTTPRouter like you would find in a typical web server using
the Trie data structure.
The purpose of an HTTP Router is to take a URL path like "/", "/about",
or "/blog/2019-01-15/my-awesome-blog-post" and figure out what content
to return. In a dynamic web server, the content will often ... |
/*
* When testing with Webpack and ES6, we have to do some
* preliminary setup. Because we are writing our tests also in ES6,
* we must transpile those as well, which is handled inside
* `karma.conf.js` via the `karma-webpack` plugin. This is the entry
* file for the Webpack tests. Similarly to how Webpack creates... |
/*!
* 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 appli... |
// SPDX-License-Identifier: GPL-2.0
/*
* Driver for older Chrome OS EC accelerometer
*
* Copyright 2017 Google, Inc
*
* This driver uses the memory mapper cros-ec interface to communicate
* with the Chrome OS EC about accelerometer data or older commands.
* Accelerometer access is presented through iio sysfs.
*... |
const spawn = require('child_process').spawn
, exec = require('child_process').exec
, path = require('path')
, fs = require('fs')
, PassThrough = require('readable-stream/passthrough')
, mkdirp = require('mkdirp')
, bl = requ... |
from docutils.parsers.rst import directives
from sphinx.util.docutils import SphinxDirective
from sphinx import addnodes
from docutils import nodes
from sphinx.transforms import SphinxTransform
from sphinx.writers.html5 import HTML5Translator
class HTML5VerbosityTranslator(HTML5Translator):
def starttag(self, nod... |
import './js/shim/shim-jquery';
import './js/shim/shim-lightbox';
import './js/shim/shim-semantic-ui';
import 'semantic-ui-css/semantic.css';
import 'lightbox2/dist/css/lightbox.min.css';
import 'slick-carousel/slick/slick.css';
import 'sylius/ui-resources/js/app';
import './js/app';
import 'sylius/ui-resources/sass... |
import json
import re
from django.urls import reverse
import jsonmatch
from projectroles.tests.test_permissions_api import TestProjectAPIPermissionBase
from geneinfo.tests.factories import HpoFactory, HpoNameFactory
from variants.tests.factories import (
CaseFactory,
SmallVariantCommentFactory,
SmallVaria... |
import pyqtgraph.examples
pyqtgraph.examples.run()
|
// DEFINE TASK (required)
var taskinfo = {
type: 'task', // 'task', 'survey', or 'study'
uniquestudyid: 'updatemath2', // unique task id: must be IDENTICAL to directory name
description: 'mental math', // brief description of task
condition: null, // experiment/task condition
redirect_url: false // ... |
var trace = document.querySelector(".trace");
trace.addEventListener("click", function(){
document.querySelector(".container").classList.toggle("show-menu");
}); |
import cv2
from numpy import expand_dims
from keras.preprocessing.image import load_img
from keras.preprocessing.image import img_to_array
from keras.preprocessing.image import ImageDataGenerator
import matplotlib
matplotlib.use('TkAgg') # macos backend
import matplotlib.pyplot as plt
import scipy as sc
img = cv2.im... |
#import <Preferences/PSSpecifier.h>
#import <Preferences/PSTableCell.h>
#import <UIKit/UIKit.h>
#import <NSTask.h>
#import "FBPPackageInfo.h"
#import "NSString+Control.h"
#import "UIColor+HexString.h"
@interface FBPTableCell : PSTableCell
@end
|
//
// CoreTextView.h
// coreTextDemo
//
// Created by LDY on 17/3/27.
// Copyright © 2017年 LDY. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CoreTextView : UIView
@end
|
// fs is a Node standard library package for reading and writing files
const fs = require("fs");
// path module is needed to work with the directories and file paths
const path = require("path");
// inquirer is a collection of common interactive command line user interfaces
const inquirer = require("inquirer");
// Tell... |
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: justice_py_sdk_codegen/__main__.py
# justice-social-service (1.29.2)
# pylint: disable=... |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 CERN.
# Copyright (C) 2020 Northwestern University.
# Copyright (C) 2021 TU Wien.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""Bibliographic Record Resource."... |
// flow-typed signature: 65c82ab5e500f8a48ae94acae911f339
// flow-typed version: <<STUB>>/eslint_v^8.1.0/flow_v0.167.1
/**
* This is an autogenerated libdef stub for:
*
* 'eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* comm... |
#!/usr/bin/env python
"""
Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import types
import urllib2
import urlparse
from StringIO import StringIO
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
from l... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... |
from common.core import BaseTestCase
from common.core import AutoTest
import responses
class FollowLinksTestCase(BaseTestCase):
@responses.activate
def test_run(self):
responses.add(responses.GET, "http://test.myurl.com/test1",
body="""
<html>
... |
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return false; };
var argument2 = function() {
callbackArguments.push(arguments)
return 53; };
var argument3 = false;
var argument4 = function() {
callbackArguments.push(arguments)
return undefined; };
var argument5... |
from .assembly import Assembly
from .LTF_reactors import LTF_HTM_ST_3_1
__all__ = ["Assembly", "LTF_HTM_ST_3_1"]
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_tolower.c :+: :+: :+: ... |
# Challenge Ref: https://twitter.com/learn_byexample/status/1484142816750374916
# read file
def read_file(filename):
with open(filename, 'r') as f:
lines = f.readlines()
lines = [line.strip() for line in lines]
return lines
# function that takes list of lines and returns list of lines with... |
import Route from '@ember/routing/route';
export default Route.extend({
model({ date }) {
return date
},
})
|
from django import template
register =template.Library()
@register.filter
def odd(x):
return x*2 |
#! /usr/bin/python
'''
Given inorder and postorder traversal of a tree, construct the binary tree.
Given preorder and inorder traversal of a tree, construct the binary tree.
'''
from node_struct import TreeNode
class Solution:
def _buildTreeInPostOrder(self, inorder, start_index_inorder, end_index_inorder, posto... |
"""
WSGI config for autostat_server 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/2.1/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "autostat_server.settings")
f... |
'use strict';
const AWS = require("aws-sdk");
const S3 = new AWS.S3({
signatureVersion: 'v4',
});
const path = require('path');
const AdmZip = require('adm-zip');
const mime = require('mime/lite');
const https = require("https");
const url = require("url");
const readline = require('readline');
const SourceBucke... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
import torch
import torchvision.transforms as transforms
from torch.utils.data import Dataset
import glob
from PIL import Image
from PIL import ImageOps
import random
mapping_20 = {
0: 0,
1: 0,
2: 0,
3: 0,
4: 0,
5: 0,
6: 0,
7: 1,
8: 2,
9:... |
/*! lib.rtcomm.clientjs 1.0.9 25-05-2016 18:30:28 UTC */
console.log('lib.rtcomm.clientjs 1.0.9 25-05-2016 18:30:28 UTC');
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], function () {
return (root.returnExportsGlobal = fa... |
# Copyright 2018 The TensorFlow Probability 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 o... |
import requests
# Função para gerenciamento de wordlists
def fuzzing(*args):
domain,sc,hc,auto,url,arquivo = args
if arquivo == None:
arquivo = 'wordlists/common.txt'
with open(arquivo,'r') as words:
if auto != False:
try:
url = "https://{}/".format(domai... |
# -*- coding:utf8 -*-
# datafile path
positive_data_file = "./data/rt-polaritydata/rt-polarity.pos"
negative_data_file = "./data/rt-polaritydata/rt-polarity.neg"
checkpoint_dir = "./runs/1459637919/checkpoints/"
|
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... |
'use strict';
var myApp = angular.module(
'myApp',
[ 'ngAnimate',
'ui.bootstrap',
'ngRoute',
'ngResource']);
myApp.controller('AlertCtrl', function($scope) {
$scope.alerts = [ ];
$scope.closeAlert = function(index) {
$scope.alerts.splice(index, 1);
};
});
myApp.factory('Person', function(... |
#======================================================================
#
# This routine interfaces with IPOPT
# It sets the optimization problem for every training point
# during the VFI.
#
# Simon Scheidegger, 11/16 ; 07/17; 01/19
# Cameron Gordon, updates to Python3 11/21
# Main difference ... |
/*
* Copyright 2016 IBM Corp.
*
* 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 ... |
#!/usr/bin/env python3
import random
import sys
from PyQt5.QtWidgets import QMainWindow, QAction, qApp, QApplication, QLabel, QPushButton, QLineEdit, QPlainTextEdit
from PyQt5.QtGui import QIcon, QFont, QClipboard, QIntValidator
from qt_material import apply_stylesheet
# Maximum length
maxchar: int = 1500
# Characte... |
"""Classes for loading, saving, evaluating, and operating on trajectories.
* For piecewise-linear interpolation in cartesian space, use :class:`~klampt.model.trajectory.Trajectory`.
* For piecewise-linear interpolation on a robot, use :class:`~klampt.model.trajectory.RobotTrajectory`.
* For Hermite interpolation in ca... |
/*!
* @license
* Copyright 2018 Alfresco Software, 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
/*
* linux/arch/m68knommu/kernel/sys_m68k.c
*
* This file contains various random system calls that
* have a non-standard calling sequence on the Linux/m68k
* platform.
*/
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/sem.h>
#include <linux/msg.h>
... |
def make_pizza(size,*toppings):
"""Summarize the list of toppings in the pizza"""
print(f"\nMake a {size} inch pizza with the following toppings")
for t in toppings:
print(f"- {t}")
make_pizza(16,'pepperoni')
make_pizza(12,'mushrooms','green peppers','extra cheese')
|
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... |
import os
import json
import requests
import logging
log = logging.getLogger(__name__)
def make_ckan_request(url, method='GET', headers=None, api_key=None, **kwargs):
'''Make a CKAN API request to `url` and return the json response. **kwargs
are passed to requests.request()'''
if headers is None:
... |
/*
Copyright (c) 2011-2012 - Tőkés Attila
This file is part of SmtpClient for Qt.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your op... |
//-----------------------------------------------------------------------------
// Filename : Service.Socket.js
//-----------------------------------------------------------------------------
// Language : Javascript
// Date of creation : 28.04.2017
// Require: Class.js
//----------------------------------------------... |
const Emitter = require("events").EventEmitter;
class DeviceManager extends Emitter {
constructor() {
super();
this.deviceMap = {};
}
registerDevice(device, channelId) {
const existed = this.deviceMap[channelId];
if (existed) {
for (let i = existed.length - 1; i >= 0; i--) {
if (ex... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _SVG = require('./SVG');
var _SVG2 = _interopRequireDefault... |
"""Support for Blink system camera sensors."""
from __future__ import annotations
import logging
from homeassistant.components.sensor import (
SensorDeviceClass,
SensorEntity,
SensorEntityDescription,
)
from homeassistant.const import SIGNAL_STRENGTH_DECIBELS_MILLIWATT, TEMP_FAHRENHEIT
from homeassistant.... |
/*
* Copyright (c) 2012 Simone Tripodi (simonetripodi@apache.org)
*
* 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 us... |
/*
* This declarations of the PIC16LF628 MCU.
*
* This file is part of the GNU PIC library for SDCC, originally
* created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
*
* This file is generated automatically by the cinc2h.pl, 2016-04-13 17:22:56 UTC.
*
* SDCC is licensed under the GNU Public license (GPL)... |
# Copyright (C) 2014 eNovance SAS <licensing@enovance.com>
#
# 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 applicabl... |
import datetime
import json
import os
import random
import time
import uuid
import lambdae.shared as shared
from pynamodb.attributes import (UnicodeAttribute, UTCDateTimeAttribute)
from pynamodb.models import Model
import pynamodb.exceptions
USERS_TABLE = shared.get_env_var("USERS_TABLE")
MATCHES_TABLE = shared.get_... |
"""
Copyright 2018 Johns Hopkins University (Author: Jesus Villalba)
Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from six.moves import xrange
import numpy as np
import h5py
from .score_norm... |
# Copyright (c) 2019 Manfred Moitzi
# License: MIT License
import pytest
from copy import deepcopy
from ezdxf.math import Vector
from ezdxf.entities.dxfentity import base_class, DXFAttributes, DXFNamespace, SubclassProcessor
from ezdxf.entities.dxfgfx import acdb_entity
from ezdxf.entities.line import acdb_line
from ez... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__wchar_t_fromFile_fopen_51a.c
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-51a.tmpl.c
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: fromFile Read input from a file
... |
# Copyright 2021 Huawei Technologies Co., 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.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
from src.gameSettings.SpeedFallingConstants import *
class Speed:
def __init__(self):
self.speed_falling: int = SPEED_FALLING
self.speed_falling_increase: int = SPEED_FALLING_INCREASE
self.falling_speed_up_interval: int = SPEED_FALLING_SPEED_UP_INTERVAL
self.numbers_of_increase: in... |
r"""ABC Index descriptor.
References
* http://match.pmf.kg.ac.rs/electronic_versions/Match75/n1/match75n1_233-242.pdf
"""
import numpy as np
from ._base import Descriptor
from ._graph_matrix import DistanceMatrix
__all__ = ("ABCIndex", "ABCGGIndex")
class ABCIndexBase(Descriptor):
__slots__ = ()
@cl... |
from django.conf.urls import include, url
from . import views
urlpatterns = [
url(r'^transfer/$', views.transfer_main, name='transfer_landing'),
url(r'^transfer/confirmation/$', views.confirmation, name='transfer_confirmation'),
url(r'^transfer/create/$', views.create, name='transfer_create')
] |
/*
* 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... |
#!/usr/bin/env python3
# Copyright (c) 2016-2017 The DigiByte Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test various net timeouts.
- Create three digibyted nodes:
no_verack_node - we never send a vera... |
/**
* grunt/pipeline.js
*
* The order in which your css, javascript, and template files should be
* compiled and linked from your views and static HTML files.
*
* (Note that you can take advantage of Grunt-style wildcard/glob/splat expressions
* for matching multiple files.)
*
* For more information see:
* ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "pch.h"
#include "BaseCardElement.h"
#include "ElementParserRegistration.h"
namespace AdaptiveCards
{
class Fact;
class FactSet : public BaseCardElement
{
friend class FactSetParser;
public:
... |
#!/usr/bin/env python
# ###################################################################
#
# Disclaimer and Notice of Copyright
# ==================================
#
# Copyright (c) 2015, Los Alamos National Security, LLC
# All rights reserved.
#
# Copyright 2015. Los Alamos National Security, LLC.
# Thi... |
"""
Conversion from ctypes to dtype.
In an ideal world, we could achieve this through the PEP3118 buffer protocol,
something like::
def dtype_from_ctypes_type(t):
# needed to ensure that the shape of `t` is within memoryview.format
class DummyStruct(ctypes.Structure):
_fields_... |
#ifndef GRAPHITE_CORE_UTIL_UTILITY_H
#define GRAPHITE_CORE_UTIL_UTILITY_H
#include <string>
#include <vector>
namespace graphite
{
void split(const std::string& s, char c, std::vector< std::string >& v);
bool fileExists(const std::string& name, bool exitOnFailure);
bool folderExists(const std::string& path, bool e... |
module.exports = {
product: "Analytics",
pathPrefix: "/analytics",
productIconKey: "analytics",
contentRepo: "cloudflare/cloudflare-docs",
contentRepoFolder: "products/analytics",
externalLinks: [
{
title: "Cloudflare homepage",
url: "https://cloudflare.com"
}
],
search: {
indexN... |
var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '© <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',
osm = L.tileLayer(osmUrl, { maxZoom: 20, attribution: osmAttrib }),
map = new L.Map('map', { center: new L.LatLng(15.369445, 44.191006), zo... |
import pickle
from multiprocessing import cpu_count, Process, Queue
import matplotlib.patches as mptchs
import matplotlib.pyplot as plt
import numpy as np
from scipy.spatial.distance import cdist
from sklearn.decomposition import PCA
def man_dist_pbc(m, vector, shape=(10, 10)):
""" Manhattan distance calculation... |
//
// Page.h
// DOT
//
// Created by Woncheol Heo on 2018. 7. 3..
// Copyright © 2018년 wisetracker. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Product.h"
#import "CustomValue.h"
@interface Page : NSObject
@property (nonatomic) NSString *keywordCategory;
@property (nonatomic) NSString *keyw... |
/* global everest_forms_admin_tools */
jQuery( function ( $ ) {
$( '#log-viewer-select' ).on( 'click', 'h2 a.page-title-action', function( evt ) {
evt.stopImmediatePropagation();
return window.confirm( everest_forms_admin_tools.delete_log_confirmation );
});
});
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=11
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
*
* (C) 2001 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "mpiimpl.h"
#include "topo.h"
/* -- Begin Profiling Symbol Block for routine MPI_Graphdims_get */
#if defined(HAVE_PRAGMA_WEAK)
#pragma weak MPI_Graphdims_get = PMPI_... |
import pandas as pd
import numpy as np
import os
import tensorflow as tf
import functools
####### STUDENTS FILL THIS OUT ######
#Question 3
def reduce_dimension_ndc(df, ndc_df):
'''
df: pandas dataframe, input dataset
ndc_df: pandas dataframe, drug code dataset used for mapping in generic names
return:... |
const execSync = require('child_process').execSync;
/**
*
* @param {string} command
* @returns {string}
*/
function exec(command, options) {
options.encoding = 'utf-8';
// let result;
// try {
// result = execSync(`(time -v ${command})`, options)
// } catch (e) {
// console.log(e);
// }
try {... |