text stringlengths 3 1.05M |
|---|
// Copyright (c) 2017 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_CONSTRUCT_TRAITS_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_WTF_CONSTRUCT_TRAITS_H_
#include "thi... |
"""
Run NMF Gibbs on the Sanger dataset.
We can plot the MSE, R2 and Rp as it converges, against time, on the entire dataset.
We give flat priors (1/10).
"""
import sys, os
project_location = os.path.dirname(__file__)+"/../../../../"
sys.path.append(project_location)
from BNMTF.code.models.bnmf_gibbs_optimised impo... |
define({
expanded: 'Išskleistas',
collapsed: 'Suskleisti',
panel: 'Šoninis skydelis',
overlay: 'Perdanga',
resizable: 'Keičiamo dydžio',
defaultState: 'Numatytoji būsena',
toggleBtn: 'Sutraukimo mygtukas',
divider: 'Dalijimas',
leftPanel: 'Kairysis skydelis',
topPanel: 'Skydelis viršuje',
rightPan... |
#!/usr/bin/env python
import rospy
from std_msgs.msg import Int32
from geometry_msgs.msg import PoseStamped, Pose
from styx_msgs.msg import TrafficLightArray, TrafficLight
from styx_msgs.msg import Lane
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
from light_classification.tl_classifier import TLCla... |
from .models import Employee
from django.views.generic import ListView
class EmployeeList(ListView):
model = Employee |
/*
* MYSBootloader 1.3.0-rc.1
* OTA RF24 bootloader for MySensors: https://www.mysensors.org
* Based on MySensors library 2.2
* Developed and maintained by tekka 2018
*/
#ifndef MYSBootloader_H
#define MYSBootloader_H
extern MyMessage _outMsg,_inMsg;
extern uint8_t _configuredParentID;
extern uint8_t _save_MCUS... |
/* Chartist.js 0.10.0
* Copyright © 2016 Gion Kunz
* Free to use under either the WTFPL license or the MIT license.
* https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL
* https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT
*/
!function (a, b) {
"function" == type... |
/**
* Editor.spec.js
* (c) 2015~ Summernote Team
* summernote may be freely distributed under the MIT license./
*/
define([
'chai',
'spies',
'chaidom',
'jquery',
'summernote/base/core/agent',
'summernote/base/core/dom',
'summernote/base/core/range',
'summernote/base/Context'
], function (chai, spies... |
from asyncio import sleep
from discord import FFmpegPCMAudio, PCMVolumeTransformer
from configs import bot_enum
from ..session.Session import Session
async def alert(session: Session):
vc = session.ctx.voice_client
if not vc:
return
path = bot_enum.AlertPath.POMO_END
if session.state == bot... |
"""Tests for :mod:`nanoutils.testing_utils`."""
import os
from pathlib import Path
from assertionlib import assertion
from nanoutils import FileNotFoundWarning, delete_finally
PATH = Path('tests') / 'test_files'
DIR1 = PATH / 'tmp_dir'
FILE1 = PATH / 'tmp_file.txt'
def test_warning() -> None:
"""Test :exc:`na... |
/* */
"format cjs";
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.7-master-0f15e39
*/
function MdTabsPaginationService(){function e(e,t){var a,s,r=e.canvas,i=n(e);for(a=0;a<i.length;a++)if(i[a]>=t){s=i[a];break}return Math.max(0,s-r.clientWidth)}function t(e,t){var s,... |
const express = require('express');
const dotenv = require('dotenv');
const morgan = require('morgan');
// Route files
const venues = require('./routes/venues.js')
//Load env vars
dotenv.config({path: './config/config.env'})
const app = express();
// Dev logging middleware
if(process.env.NODE_ENV === 'development'){
... |
import { Loading } from 'td-ui';
class App extends React.Component {
render() {
return (
<Loading text="加载中" loading={false} size="large">
<div style={{padding: 50, textAlign: 'center'}} text="aaa">loading Content</div>
</Loading>
);
}
}
ReactDOM.render(
<App />,
mountNode,
);
|
/**
* @file types.h
* @brief Tesseracts Collision Common Types
*
* @author Levi Armstrong
* @date January 18, 2018
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2017, Southwest Research Institute
*
* @par License
* Software License Agreement (Apache License)
* @par
* Licensed under the... |
/*******************************************************************************
Supply Controller(SUPC) PLIB
Company
Microchip Technology Inc.
File Name
plib_supc.c
Summary
SUPC PLIB Implementation File.
Description
This file defines the interface to the SUPC peripheral library. This
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#ifndef __STACK_TRACE... |
#include "ruby.h"
VALUE mod = Qnil;
VALUE method_my_reverse_xor(VALUE self);
//VALUE method_my_reverse_xchg(VALUE self);
void Init_seans_xor_swap()
{
mod = rb_const_get(rb_cObject, rb_intern("String"));
rb_define_method(mod,"seans_xor_swap", method_my_reverse_xor, 0);
}
VALUE method_my_reverse_xor(VALUE self)
... |
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# -------------------------------------
import pytest
from azure.keyvault.keys import ApiVersion, KeyClient
@pytest.mark.parametrize("version", ApiVersion)
def test_supported_version(version):
"""The cl... |
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import os
import sys
try:
from torch.utils.model_zoo import _download_url_to_file
from torch.utils.model_zoo import urlparse
from torch.utils.model_zoo import HASH_REGEX
except:
from torch.hub import _download_url_to_file
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Hint():
def __init__(self, label, value):
self.label = label
self.value = value
def __repr__(self):
return '<Hint %r>' % self.label
def serialize(self):
return {
'label': self.label,
'value': sel... |
from migen import *
from litex.soc.interconnect import csr, csr_bus, wishbone, wishbone2csr
from litex.soc.interconnect.csr import CSR, CSRField, CSRStorage, CSRAccess
def _data_bus():
"""Wishbone data bus used in FX2"""
return wishbone.Interface(data_width=8, adr_width=16)
def _mem_decoder(start_address, ... |
const express = require("express");
const dotenv = require("dotenv");
const colors = require("colors");
const cors = require("cors");
const { json } = require("body-parser");
const { nanoid } = require("nanoid");
dotenv.config({ path: "./config.env" });
const app = express();
app.use(cors());
app.use(json());
let t... |
import glob
import os.path
from functools import partial
import logging
# third party imports
import pyproj
from shapely.geometry import Point, Polygon, MultiPolygon
from shapely.ops import transform
import shapely.wkt
import numpy as np
from openquake.hazardlib.geo.geodetic import min_distance_to_segment
from validat... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
import sys
from shutil import rmtree
from setuptools import setup, find_packages
# Package meta-data.
NAME = 'jhubctl'
DESCRIPTION = 'CLI for managing Jupyterhub instances on AWS+Kubernetes'
URL = 'https://github.com/townsenddw/jhubctl'
EMAIL = ''
AUT... |
import libtcodpy as libtcod
from states.event import Event
from interface.gui import Message, MessageLog
class GameState:
def __init__(self, name_state):
self.nameState = name_state
def handle_video(self, game):
pass
def handle_world(self, game):
pass
class ActiveState(... |
/**
* Copyright 2018 Alibaba Group
*
* 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... |
$(document).ready(function() {
$.ajax({
url: "menu.html",
success: function(result) {
$("#page").prepend(result);
$("#menu").mmenu({
"header": {
"title": "PhoneGap Demo Menu",
"add": true,
... |
"""Support for KNX/IP switches."""
import voluptuous as vol
from xknx.devices import Switch as XknxSwitch
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
from homeassistant.const import CONF_ADDRESS, CONF_NAME
from homeassistant.core import callback
import homeassistant.helpers.config_validat... |
import chai from 'chai';
import chaiHttp from 'chai-http';
import app from '../../../../app';
chai.use(chaiHttp);
const { expect } = chai;
describe('Authentication controller methods', () => {
it('should signup a new user account', (done) => {
chai.request(app)
.post('/api/v1/auth/signup')
... |
/*
* Copyright (C) 2001 MontaVista Software Inc.
* Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the Licen... |
module.exports = {
extends: 'recommended',
rules: {
'no-invalid-interactive': false,
'no-inline-styles': false,
'simple-unless': {
maxHelpers: 1
}
}
};
|
# AUTOGENERATED! DO NOT EDIT! File to edit: library/analyses/Serial_Position_Effect_in_Repetition_Datasets.ipynb (unless otherwise specified).
__all__ = ['alternative_contiguity', 'fast_csp', 'plot_csp', 'fast_crp', 'plot_crp', 'fast_mixed_crp', 'flex_mixed_crp',
'randomize_dataset', 'indices_of_repeated_it... |
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/... |
// individual.h :
//
#pragma once
#include <array>
#include "genome.h"
#include "strategy.h"
#include "StrategyData.h"
class Random;
class Individual
{
public:
static void RefreshCache( );
Individual( );
void ResetIndividual( );
ENERGY_UNITS GetEnergy ( ) con... |
/***********************************************************************************************************************
* *
* libscopehal v0.1 ... |
/* $OpenBSD: auth-passwd.c,v 1.47 2018/07/09 21:26:02 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
* Password authentication. This file contains the functions to check whether
* the password is va... |
// Dependencies
var IsVowel = require("is-vowel")
, RemoveLastChar = require("remove-last-char")
, LastChar = require("last-char")
;
/**
* UnvowelLast
* Removes the last letter if it is a vowel.
*
* @name UnvowelLast
* @function
* @param {String} input The input string.
* @return {String} The input string... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.... |
#!/usr/bin/env python
"""
Copyright (c) 2014 Wind River Systems, Inc.
SPDX-License-Identifier: Apache-2.0
"""
import setuptools
setuptools.setup(name='logmgmt',
version='1.0.0',
description='logmgmt',
license='Apache-2.0',
packages=['logmgmt'],
... |
"""Shared utilities for the modules in wandb.sklearn."""
from collections.abc import Sequence, Iterable
import numpy as np
import pandas as pd
import sklearn
import scipy
import wandb
chart_limit = 1000
def check_against_limit(count, chart, limit=None):
if limit is None:
limit = chart_limit
if coun... |
#ifndef GAME_H
#define GAME_H
#include <irrklang/irrKlang.h>
#include "model.h"
#include "renderer_2D.h"
#include "movable_game_object_2D.h"
#include "movable_game_object_3D.h"
#include "ball.h"
#include "paddle.h"
#include "camera.h"
#include "window.h"
#include "state.h"
#include "finite_state_machine.h"
class Gam... |
"""
*Real Component*
"""
|
/**
* @author Russell Toris - rctoris@wpi.edu
*/
var ROS2D = ROS2D || {
REVISION : '0.9.0'
};
// convert the given global Stage coordinates to ROS coordinates
createjs.Stage.prototype.globalToRos = function(x, y) {
var rosX = (x - this.x) / this.scaleX;
var rosY = (this.y - y) / this.scaleY;
return new ROSL... |
var aBrowser = chrome || browser;
var _clockifyProjectList;
var _clockifyTagList;
var _button;
var ClockifyEditForm = class {
constructor(timeEntry) {
this.state = {
timeEntry: Object.assign(timeEntry, {
project: { id: timeEntry.projectId },
task: { id: timeEnt... |
#ifndef _GEGNER_AUGE_H_
#define _GEGNER_AUGE_H_
#include "Gegner_Stuff.h"
#include "GegnerClass.h"
class GegnerAuge : public GegnerClass
{
private:
float smokedelay;
public:
GegnerAuge (int Wert1, int Wert2, // Konstruktor
bool Light);
void GegnerExplode (void); // Gegner ... |
import React from 'react';
import './footer.scss';
const Footer = () =>{
return(
<footer className="footer">
<h1>© 2020 Ashura</h1>
</footer>
)
}
// const Footer = () => <footer> <span className='AshuraFooter'></span></footer>
export default Footer;
|
#ifndef MouseButton_h
#define MouseButton_h
namespace Mayra
{
enum class MouseButton
{
Left = 0,
Right = 1,
Middle = 2,
Four = 3,
Five = 4,
Six = 5,
Seven = 6,
Eight = 7
};
}
#endif /* MouseButton_h */
|
console.log("main.js chargé...");
// CODE JS POUR LIGHTBOX
// ON VA AJOUTER UNE ACTION SUR LES IMAGES DANS LES ARTICLES
function ajouterAction (selecteurCSS, evenementJS, callback)
{
var listeBalise = document.querySelectorAll(selecteurCSS);
for(var b=0; b<listeBalise.length; b++)
{
var ... |
values = {"value": "not-none"}
<caret>if values["value"]:
print("Not none")
else:
print("None") |
/**
* Copyright 2004-present Facebook. 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.
*
* @flow strict-local
* @format
*/
export type Coords = {
accuracy: ?number,
altitude: ?number,
altitudeAccuracy... |
# coding: utf-8
from . import load # noqa, flake8 issue
from . import paths # noqa, flake8 issue
|
# -*- coding: utf-8 -*-
from django.conf.urls import url
from . import views
app_name = 'bib'
urlpatterns = [
url(r'^synczotero/$', views.sync_zotero, name="synczotero"),
url(r'^synczotero/update$', views.update_zotitems, name="synczotero_update"),
url(r'^reference/detail/(?P<pk>[0-9]+)$', views.Reference... |
/******************************************************************************
* Copyright 2017 The Apollo 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
... |
require.config({
baseUrl: 'js',
paths: {
'codeflask': 'libs/codeflask/codeflask.min',
'blockly': '../blockly/blockly_compressed',
'bootstrap': 'libs/bootstrap/bootstrap-3.3.1-dist/dist/js/bootstrap.min',
'bootstrap-table': 'libs/bootstrap/bootstrap-3.3.1-dist/dist/js/bootstrap-ta... |
# Copyright (C) 2018-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import logging
import onnx.backend.test
from tests_compatibility import (
BACKEND_NAME,
skip_rng_tests,
xfail_issue_33488,
xfail_issue_33538,
xfail_issue_33581,
xfail_issue_33589,
xfail_issue_33595,
xfail... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import sys
import math
import random
import logging
import pickle
import numpy as np
from image_iter import FaceImageIter
from image_iter import FaceImageIterList
import mxnet as mx
from mxnet import ... |
"""
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/hotel_management"
# docs_base_url = "https://[org_name].github.io/hotel_management"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html =... |
import _plotly_utils.basevalidators
class OhlcValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="ohlc", parent_name="", **kwargs):
super(OhlcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_class_s... |
import * as types from '../constants/action_types';
import utils from '../utils';
const request = new XMLHttpRequest();
function originPoint(coordinates) {
return dispatch => {
const origin = utils.createPoint(coordinates, {
id: 'origin',
'marker-symbol': 'A',
});
dispatch({ type: types.ORIG... |
/*
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 not use ... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.3.2 (2020-06-10)
*/
(function (domGlobals) {
'use st... |
from django.conf.urls import url
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
url(r'^$',views.Home,name = 'Home'),
url(r'^single_image/(\d+)',views.single_image, name='single_page'),
url(r'^search/', views.search_results, name='search_results... |
app.config(($routeProvider, $locationProvider) => {
$locationProvider.hashPrefix('');
$routeProvider.when("/", {
templateUrl: "view/home.html"
})
.when("/product", {
templateUrl: "view/products.html"
})
.otherwise({
template: "<h1>Sorry, Don't ... |
from .base import *
DEBUG = True
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Database
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
|
#!/usr/bin/env python3
# -*- encoding=utf-8 -*-
# description:
# author:jack
# create_time: 2018/5/26
"""
desc:pass
"""
class __init__py:
pass
if __name__ == '__main__':
pass |
//
// BankCardManageViewController.h
// CurrencyKit
//
// Created by gwh on 2019/11/14.
// Copyright © 2019 gwh. All rights reserved.
//
#import "CurrencyShare.h"
#import "CC_ViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface BankCardManageVC : CC_ViewController
@end
NS_ASSUME_NONNULL_END
|
var browser = browser || chrome;
function attach(elem) {
elem.dataset.varnam = true;
var tributeComplete = new TributeComplete(elem);
}
function scanAndInitialize() {
// Attach swanalekha to input boxes
let inputs = [...document.getElementsByTagName('input')];
inputs.forEach((elem) => {
le... |
"""
********************************************************************************
com
********************************************************************************
.. currentmodule:: compas.com
Matlab
======
.. autosummary::
:toctree: generated/
:nosignatures:
MatlabClient
MatlabEngine
Ma... |
get_input = True
while get_input:
try:
credit = int(input("Number: "))
except ValueError:
pass
else:
if credit > 0:
get_input = False
def checksum(card):
reverse = card [::-1]
sum = 0
for i in range(1, len(reverse), 2):
temp = str(int(reverse[i]) * 2)... |
export const UP = 'UP'
export const DOWN = 'DOWN'
export const LEFT = 'LEFT'
export const RIGHT = 'RIGHT'
|
#
# Copyright (c) 2015, 2016, 2017, 2018, 2019, Intel Corporation
#
# 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 lis... |
/*
***********************************************************
Histogram manager for event plane framework QA
Contact: Jaap Onderwaater, j.onderwaater@gsi.de, jacobus.onderwaater@cern.ch
Histogram manager inspired from PWGDQ/dielectron/AliDielectronHistos by J.Wiechula
and based on work of Ionut-Cristia... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef ICEBERGCOIN_HASH_H
#define ICEBERGCOIN_HASH_H
#include "uint256.h"
#includ... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
window.EventBus = new window.Vue();
/**
... |
from flask_restful import Resource,reqparse
from flask_jwt_extended import get_jwt_identity, jwt_required, get_jwt_claims, fresh_jwt_required, jwt_optional
from models.projects import ProjectModel
from models.articles import ArticleModel
_user_parser = reqparse.RequestParser()
_user_parser.add_argument('name',
... |
import { ConceptPage } from '../../pattern/page/ConceptPage'
import { conceptPagePath } from '../path'
export const compilingRoute = {
path: conceptPagePath.compiling,
clientComponent: ConceptPage.Compiling.AsyncCompiling,
serverComponent: ConceptPage.Compiling.Compiling,
}
|
D, T, S = map(int, input().split())
if (D / S) <= T:
print("Yes")
else:
print("No")
|
# -*- coding: utf-8 -*-
from server import server
if __name__ == "__main__":
server.main()
|
from .binary import *
from .boolean import *
from .date import *
from .datetime import *
from .decimal import *
from .definition import *
from .email import *
from .enumeration import *
from .error import *
from .float import *
from .integer import *
from .map import *
from .object import *
from .sequence import *
from... |
/*
*********************************************************************************************************
* uC/TCP-IP
* The Embedded TCP/IP Suite
*
* Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
*
* ... |
import * as constants from './constants';
const initialState = {
xRepeat: 2,
yRepeat: 2,
zRepeat: 1,
rotationMatrix: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1.3],
canvas: {},
stereographic: false,
};
function geometryCanvasReducer(state = initialState, action) {
switch (action.type) {
case con... |
ace.define("ace/mode/ruby_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(acequire, exports, module) {
"use strict";
var oop = acequire("../lib/oop");
var TextHighlightRules = acequire("./text_highlight_rules").TextHighlightRules;
var constantOtherSymbol = export... |
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publ... |
#-*- coding:utf8 -*-
# Copyright (c) 2019 barriery
# Python release: 3.7.0
'''
该模块包含了ShowList,Show,Event类的定义
'''
import re
from showtime import utils
from showtime import show_type_pb2
from google.protobuf import text_format
def check_params(requested_params, params):
for param in requested_params:
if par... |
/*
* /MathJax/localization/ia/HelpDialog.js
*
* Copyright (c) 2009-2016 The MathJax 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.apach... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, June 7, 2020 at 11:43:35 AM Mountain Standard Time
* Operating System: Version 13.4.5 (Build 17L562)
* Image Source: /System/Library/PrivateFrameworks/IconServices.framework/IconServices
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by E... |
class Keycodes {
constructor() {
this.codes = [];
var x =0,
i = 0;
/* Mouse Key Codes */
this.codes[0] = 'leftmouse';
this.codes[1] = 'middlemouse';
this.codes[2] = 'rightmouse';
/* Insert Char Codes a-z */
for(x=65;x<91;x++) {
if(this.codes[x] === undefine... |
topojson = (function() {
function merge(topology, arcs) {
var fragmentByStart = {},
fragmentByEnd = {};
arcs.forEach(function(i) {
var e = ends(i),
start = e[0],
end = e[1],
f, g;
if (f = fragmentByEnd[start]) {
delete fragmentByEnd[f.end];
... |
import os
from celery import Celery, current_task
from celery.result import AsyncResult
REDIS_URL = 'redis://:{pw}@redis:6379/0'.format(pw=os.getenv('REDIS_PW'))
BROKER_URL = 'redis://:{pw}@redis:6379/1'.format(pw=os.getenv('REDIS_PW'))
celery = Celery('tasks', backend=REDIS_URL, broker=BROKER_URL)
|
const path = require('path');
const fs = require('fs');
const {system, template, pathExists, findTop,
skelDir, findFiles} = require('./script-utils');
const filterName = name => name.replace(/([^\w-])/g, '-');
module.exports = (name, options)=>{
const existingDir = ! name;
let package, topDir;
if (existi... |
__________________________________________________________________________________________________
sample 168 ms submission
from collections import defaultdict
class Solution:
def allCellsDistOrder(self, R: int, C: int, r0: int, c0: int) -> List[List[int]]:
dic = defaultdict(list)
for i in range(R):... |
/*
*
* Dashboard reducer
*
*/
import { fromJS } from 'immutable';
// import * as constants from './constants';
export const initialState = fromJS({});
export default function dashboardReducer(state = initialState, action) {
switch (action.type) {
default:
return state;
}
}
|
#!/usr/bin/env python3
import numpy as np
import numpy.testing as npt
from osgeo import gdal
import pybind_isce3 as isce
def make_slc_data(shape):
# create indices and reshape to raster shape
size = shape[0]*shape[1]
i = np.arange(size).reshape(shape)
# create hh and hv np arrays in a dict to match ... |
module.exports = {
name: 'xor',
version: 2,
parts: {
wireI: null,
wireL: null,
wireT: null,
wireX: null,
wireXdot: null,
nand: null,
},
inputX: [
1,
3,
],
outputX: 2,
input: [
[
0,
0,
],
[
0,
1,
],
[
1,
0,
],
[
1,
1,
],
],
output: [
0,
1,
1,
0,
... |
"""
WSGI config for conceptus 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from dj_static import Cling
os.en... |
# coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 10
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import isi_sdk_9_0_0
from ... |
import React from "react";
import { Link, Route } from "react-router-dom";
// import Learn from "../Learn/index";
import "./style.css";
function Contact(props) {
return (
<div>
<div id="contact" className="contact">
<div className="container">
<div className="section-title">
... |
const southWest = L.latLng(42.373775, -72.541988),
northEast = L.latLng(42.402095, -72.515408),
bounds = L.latLngBounds(southWest, northEast);
let map = L.map("map", {
maxBounds: bounds, // Then add it here..
maxZoom: 18,
minZoom: 15,
}).setView([42.391155, -72.526711], 15);
const attribution =
'© <a... |
// Assignment Code
var generateBtn = document.querySelector("#generate");
var pwLength = 0;
var pwUpperCase = false;
var pwLowerCase = false;
var pwNumbers = false;
var pwSpecialCharacters = false;
// Write password to the #password input
function writePassword() {
// prompt user to enter length of generated passwor... |
/**
* Created by za-sumeng on 2018/7/8.
*/
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: [
"webpack-dev-server/client?http://localhost:8080/",
"./src/index.tsx"
],
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "../dist")
},
// ... |