text
stringlengths
3
1.05M
(function() { 'use strict'; angular.module('app.news.card', []); })();
# -*- coding: utf-8 -*- """ 微博账号 """ accounts = [ ["guitar_sky2307@Yahoo.com.cn", "19890523Bzm"], ]
var mongoose = require("mongoose") // Connect mongoose to your server mongoose.Promise = global.Promise; mongoose.connect("mongodb://localhost/tastyFood_app") // Define schema, or the basic layout of your collection entries var recipeSchema = new mongoose.Schema({ name: String, origin: String, cost: Numbe...
function select_problem(btnId){ if (problem_type == 0){ if (btnId == "p0") init_problem(p1.L, p1.U, p1.x); if (btnId == "p1") init_problem(p2.L, p2.U, p2.x); if (btnId == "p2") init_problem(p3.L, p3.U, p3.x); if (btnId == "p3") init_problem(p4.L, p4.U, p4.x); if (btnId == "p4") ini...
# Copyright 2017 The Bazel 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 applicable la...
(window.webpackJsonp=window.webpackJsonp||[]).push([[108],{323:function(t,a,r){"use strict";r.r(a);var s=r(2),v=Object(s.a)({},(function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"什么是-rpc-框架"}},[r("a",{staticClass:"header...
from py2js import JavaScript @JavaScript def StartGoL(): window.gol = GoL() @JavaScript class GoL(object): def __init__(self): self.width = 75 self.height = 75 self.canvas = document.getElementById(js('canvas')).getContext(js('2d')) self.canvas.fillStyle = js('rgb(0, 0, 0)') ...
import React from "react"; import PrimaryLayout from "../layouts/PrimaryLayout"; import Post from "../components/Post"; export default () => { return( <PrimaryLayout> <Post/> </PrimaryLayout> ); }
from __future__ import print_function import compas_fea from compas.datastructures import Mesh from compas_fea.structure import Structure from compas_fea.structure import FixedDisplacement from compas_fea.structure import ElasticIsotropic from compas_fea.structure import ShellSection from compas_fea.structure import...
# -*- coding: utf-8 -*- # # Copyright 2013 - Mirantis, 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 requir...
var baseInvoke=require("./_baseInvoke"),baseRest=require("./_baseRest"),invoke=baseRest(baseInvoke);module.exports=invoke;
'use strict'; const assert = require('assert'), headersHelper = require('../../../src/models/http/headersHelper'); describe('headersHelper', function () { describe('#getHeader', function () { const request = { headers: { 'My-First-header': 'first-value', ...
from .BaseGrammar import BaseGrammar class MSSQLGrammar(BaseGrammar): """Microsoft SQL Server grammar class.""" aggregate_options = { "SUM": "SUM", "MAX": "MAX", "MIN": "MIN", "AVG": "AVG", "COUNT": "COUNT", "AVG": "AVG", } join_keywords = { "i...
import json import unittest from secrets import token_bytes from blspy import AugSchemeMPL, PrivateKey from dogechia.util.keychain import Keychain, bytes_from_mnemonic, bytes_to_mnemonic, generate_mnemonic, mnemonic_to_seed class TesKeychain(unittest.TestCase): def test_basic_add_delete(self): kc: Keych...
import React from 'react'; import ReactDOM from 'react-dom'; import Router, { Link, goBack } from 'route-lite'; const FirstPage = () => { return ( <Link component={SecondPage} componentProps={{text: "Component B"}} > Component A </Link> ); } const SecondPage = ({text}) => { return ...
import Vue from 'vue' import VueRouter from 'vue-router' import auth from './middleware/auth' import admin from './middleware/admin' import guest from './middleware/guest' import middlewarePipeline from './kernel/middlewarePipeline' import store from '../store' Vue.use(VueRouter) const routes = [ // {...
import { request } from '@/utils/request' export function create(data) { return request('post', 'songbook/create', data) } export function update(data) { return request('post', 'songbook/update', data) } export function del(data) { return request('post', 'songbook/delete', data) } export function li...
from .port_detector import PortDetector _port_detector = None def invoke(event, context): global _port_detector if _port_detector is None: _port_detector = PortDetector() return _port_detector.invoke(event, context)
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["zjt"]=e():t["zjt"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var ...
// Copyright 2014 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. function testDeviceInfo() { chrome.test.assertEq(2, devices.length); chrome.test.assertEq('Chromebook Pixel', devices[0].name); chrome.test.assertE...
Autocompleter.Base.hide = function() {} Toobs.UI.DragDropPair = Class.create(); Toobs.UI.DragDropPair.prototype = { initialize: function() { Toobs.debug('DragDropPair - init()'); Toobs.Comp['DragDropPair'] = this; if (!this._onUpdateSource) { this._onUpdateSource = this.onUpdateSource.bindAsE...
export default () => ({ path: '*', /* Async getComponent is only invoked when route matches */ getComponent (nextState, cb) { /* Webpack - use 'require.ensure' to create a split point and embed an async module loader (jsonp) when bundling */ require.ensure([], (require) => { /* Webpac...
const path = require('path'); const pkg = require('../../package.json'); const isDev = think.env === 'development'; module.exports = [ { handle: 'meta', options: { logRequest: isDev, sendResponseTime: isDev } }, { handle: 'resource', enable: i...
import re import uuid import contextlib from datetime import datetime import sentry_sdk from sentry_sdk.utils import capture_internal_exceptions, logger, to_string from sentry_sdk._compat import PY2 from sentry_sdk._types import MYPY if PY2: from collections import Mapping else: from collections.abc import ...
(function() { function applicationPreferences() {} applicationPreferences.prototype.get = function(key,success,fail) { var args = {}; args.key = key; cordova.exec(success,fail,"applicationPreferences","getSetting",[args]); }; applicationPreferences.prototype.set = function(key,value,success,fail) { ...
"use strict"; module.exports = Object.freeze({ // States states : { START_MODE : '_START_MODE', FEED_MODE : '_FEED_MODE', NO_NEW_ITEM : '_NO_NEW_ITEM', SINGLE_FEED_MODE : '_SINGLE_FEED_MODE' }, // Custom constants terminate : 'TERMINATE', // Speech break tim...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","he",{title:"הוראות נגישות",contents:"הוראות נגישות. לסגירה לחץ אסקייפ (ESC).",legend:[{name:"כללי",items:[{name:"סרגל הכלים",...
import React , {Component} from 'react'; class SearchBar extends Component { constructor(props){ super(props) this.state = {term:''}; } render(){ return(<div className="col-md-12 search-bar"> <input value={this.state.term} onChange={event=>this.on...
describe("session service", function() { var cookie; beforeEach(module("teachly.services")); // fake $cookieStore for the session service beforeEach(module(function($provide) { cookie = {}; $provide.value("$cookieStore", { get: function(key) { return cook...
# -*- mode: python; coding: utf-8 -*- # Copyright (c) 2018 Radio Astronomy Software Group # Licensed under the 2-clause BSD License """Tests for FHD_cal object.""" import pytest import os import numpy as np from pyuvdata import UVCal import pyuvdata.tests as uvtest from pyuvdata.data import DATA_PATH # set up FHD f...
import { Drug } from "../drug"; export class Doliparne extends Drug { constructor(expiresIn, benefit) { super(Doliparne.name, expiresIn, benefit); } }
import logging import logging.config import os from pygluu.containerlib import get_manager from pygluu.containerlib import wait_for from pygluu.containerlib.validators import validate_persistence_type from pygluu.containerlib.validators import validate_persistence_ldap_mapping from pygluu.containerlib.validators impor...
/*** * * This code runs under the popup and controls the tag entry for adding a page to BT. * Trying to keep it minimal. No jQuery etc. * ***/ 'use strict'; const Note = document.getElementById('note'); var CurrentTab; var AwesomeWidget; function popupAction (bgPage) { // Activate popup -> open bt window ...
module.exports = { TABLE_9: 'TABLE_9', TABLE_6: 'TABLE_6', DATA_NOT_INFORMED: 'DATA_NOT_INFORMED', UNKNOWN: 'UNKNOWN' }
(function(d){d['kn']=Object.assign(d['kn']||{},{a:"‍‍ದಪ್ಪ",b:"‍ಇಟಾಲಿಕ್",c:"Underline",d:"Insert image or file",e:"Cannot upload file:",f:"Could not obtain resized image URL.",g:"Selecting resized image failed",h:"Could not insert image at the current position.",i:"Inserting image failed",j:"‍‍ರದ್ದು",k:"‍ಮತ್ತೆ ಮಾಡು",l:"...
exports.up = function (knex) { return knex.schema.createTable("incidents", function (table) { table.increments(); table.string("title").notNullable(); table.string("description").notNullable(); table.decimal("value").notNullable(); table.string("ong_id").notNullable(); table.foreign("ong_id"...
/** * @overview single point of entry for requiring all Cell subclasses */ const Cell = require('./cell'); const BeeCell = require('./beeCell'); const HarvesterCell = require('./harvesterCell'); const PlanterCell = require('./planterCell'); const NeighborhoodCell = require('./neighborhoodCell'); module.exports = { ...
import ee # Initialize the GEE API # try: # ee.Initialize() # except Exception as ee: # ee.Authenticate() # ee.Initialize() # geemap:A Python package for interactive mapping with Google Earth Engine, ipyleaflet, and ipywidgets # Documentation: https://geemap.org import geemap from geemap import ml import p...
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
import SmartHomeConnector from "../src/index"; import OpenHabAdapter from "../src/adapters/OpenHab/OpenHabAdapter"; /** * local openHAB installations require Allow CORS in runtime configuration * edit file conf/services/runtime.cfg * add new line: * org.eclipse.smarthome.cors:enable=true */ describe("OpenHabAdap...
def getNthFib(n,memoize={1:0,2:1}): if n in memoize: return memoize[n] else: memoize[n]=getNthFib(n-1,memoize)+getNthFib(n-2,memoize) return memoize[n]
import React from "react"; import { Link, useStaticQuery, graphql } from "gatsby"; import Navigation from "../components/navigation"; import "prismjs/themes/prism-okaidia.css"; export default ({ children }) => { const data = useStaticQuery( graphql` query { site { siteMetadata { ...
import { Position } from '../../constants' /** * Function to create a Rect. * @param {Object} dimensions * @param {Number} dimensions.width * @param {Number} dimensions.height * @param {Object} position * @param {Number} position.left * @param {Number} position.top * @return {Object} Rect { width, height, left...
module.exports = function(config) { config.set({ basePath: '', frameworks: ['mocha'], webpack: { mode: 'development', module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', op...
editArea.add_lang("pl",{ test_select: "wybierz tag", test_but: "test" });
import {formatNumber, stringToNumber } from '../src/numberUtils.js'; describe('stringToNumber', () => { it('converts a string to a number', () => { const number = stringToNumber('5'); expect(number).toBe(5); }); it('converts a string with a decimal to a number', () => { const numb...
const users = []; const addUser = ({ id, player, username, room }) => { const numberOfUsersInRoom = users.filter(user => user.room === room).length; if (numberOfUsersInRoom === 4) { return { error: 'Room full' }; } const newUser = { id, player, username, room }; users.push(newUser); return { newUser }; }; ...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
'use strict' const {get} = require( '../../services/v1.0/handlers/locations') require('include-node') const {stub, spy} = require('sinon') describe('Location', function() { before(() => { global.Typedef = Include('/libs/typedef') }) it('should query houses by id if provided', async function() { const ...
// (C) Copyright 2018 Hewlett Packard Enterprise Development LP const OneSphereApi = require('../onesphere-api'); const Analytics = require('../analytics'); const messages = require('../constants/messages'); module.exports = function () { // How are my One Sphere cloud providers doing // Alexa, ask One Sphere how m...
from unittest import TestCase from unittest.mock import patch, Mock from grafana_api.grafana_api import GrafanaClientError from script import grafana class delete_team_by_name(TestCase): @patch("script.grafana.grafana_api") @patch("script.grafana.configuration") def test_deletes_team(self, mock_config, ...
var inspect = require('../'); var endent = require('endent').default; var test = require('tape'); test('circular', function (t) { t.plan(1); var obj = { a: 1, b: [3, 4] }; obj.c = obj; console.log(inspect(obj)); t.equal(inspect(obj), endent`{ "a": 1, "b": [ 3, 4 ], "c": "[Circular...
console.log('this is my custom service worker'); workbox.precaching.precacheAndRoute(self.__precacheManifest || []); self.addEventListener('install', () => { // The promise that skipWaiting() returns can be safely ignored. self.skipWaiting(); }); self.addEventListener('activate', (event) => { event.waitUntil( ...
const router = require("express").Router(); const commentRoutes = require("./comment-routes"); const postRoutes = require("./post-routes"); const userRoutes = require("./user-routes"); router.use("/comments", commentRoutes); router.use("/posts", postRoutes); router.use("/users", userRoutes); module.exports = router;...
// Required external modules const fs = require('fs'); const inquirer = require('inquirer'); // Required internal modules const Manager = require('./lib/Manager'); const Engineer = require('./lib/Engineer'); const Intern = require('./lib/Intern'); // Start by displaying instructions to user console.log('Welcome to Tea...
/*! jQuery UI - v1.10.0 - 2013-01-17 * http://jqueryui.com * Includes: jquery.ui.effect-transfer.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ (function(e,t){e.effects.effect.transfer=function(t,n){var r=e(this),i=e(t.to),s=i.css("position")==="fixed",o=e("body"),u=s?o.scrollTop():0,a=s?...
import React from 'react'; import PropTypes from 'prop-types'; import map from 'lodash/map'; import find from 'lodash/find'; import { Table, TableBody, TableRow, TableRowColumn, } from 'material-ui/Table'; const TodoList = ({ todos, onSelect }) => ( <Table onCellClick={(index) => onSelect(todos[index].id...
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt x = np.arange(0, 5, 0.1); y = np.sin(x) plt.plot(x, y) plt.show()
# -*- coding: utf-8 -*- """ This is a skeleton file that can serve as a starting point for a Python console script. To run this script uncomment the following lines in the [options.entry_points] section in setup.cfg: console_scripts = fibonacci = ttu_encoder.skeleton:run Then run `python setup.py install...
import * as Environment from "~/node_common/environment"; import * as Data from "~/node_common/data"; import * as Utilities from "~/node_common/utilities"; import * as Serializers from "~/node_common/serializers"; import * as Validations from "~/common/validations"; import * as ViewerManager from "~/node_common/manager...
// DATA_TEMPLATE: dom_data oTest.fnStart( "bServerSide" ); /* Not interested in server-side processing here other than to check that it is off */ $(document).ready( function () { /* Check the default */ var oTable = $('#example').dataTable(); var oSettings = oTable.fnSettings(); oTest.fnTest( "Ser...
import {connect} from 'react-redux'; import {getSidebarVisibility} from '../../selectors'; import Sidebar from '../../components/sidebar/Sidebar'; const mapStateToProps = (state) => ({ visible: getSidebarVisibility(state), }); const SidebarContainer = connect(mapStateToProps, null)(Sidebar); export default Sideb...
from __future__ import print_function import json from cloud_processor import CloudProcessor LANGUAGES = 'de,es,fr,it,pt' CONFIG_FILENAME = 'diagnostics-service-config.xml' RESOURCE_DESTINATION = './kc_diagnostics/resources/' CONFIG_FILENAME_PREFIX = 'diagnostics-service-config' class Diagnostics(): def __init__(s...
import * as THREE from 'https://unpkg.com/three@0.120.1/build/three.module.js'; import { OrbitControls } from 'https://unpkg.com/three@0.120.1/examples/jsm/controls/OrbitControls.js'; import { GLTFLoader } from 'https://unpkg.com/three@0.120.1/examples/jsm/loaders/GLTFLoader.js'; import { SubdivisionModifier } from 'h...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf import argparse import cv2 import numpy as np from glob import glob num_classes = 2 img_height, img_width = 224, 224 tf.set_random_seed(0) def VGG16(x, keep_prob): x = tf.layers.conv2d(inputs=x, filters=64, kernel_size=[3, 3], strides=1,...
! function(s) { "use strict"; function t(e) { 1 == s("#light-mode-switch").prop("checked") && "light-mode-switch" === e ? (s("#dark-mode-switch").prop("checked", !1), s("#rtl-mode-switch").prop("checked", !1), s("#bootstrap-style").attr("href", "assets/css/bootstrap.min.css"), s("#app-style").attr("hre...
import os import shutil from pathlib import Path from typing import Any, Dict, List, Optional, Tuple import yaml from xcha import __version__ from xcha.consensus.coinbase import create_puzzlehash_for_pk from xcha.ssl.create_ssl import generate_ca_signed_cert, get_chia_ca_crt_key, make_ca_cert from xcha.util.bech32m i...
from docutils import nodes from docutils.parsers.rst import Directive class html_hidden(nodes.Element): pass def visit_html_hidden_latex(self, node): self.body.append(node['before-not-html']) def depart_html_hidden_latex(self, node): pass def visit_html_hidden_html(self, node): self.body.append(...
const { canModifyQueue } = require("../util/Util"); module.exports = { name: "stop", aliases: ["dc", "disconnect"], description: "停止播放歌曲", execute(message) { const queue = message.client.players.get(message.guild.id); if (!queue) { message.reply("❌ ┃ 目前沒有任何歌曲正在播放!") .catch(console.error)...
export default {"name":"--pf-c-button--disabled--BorderColor","value":"transparent","var":"var(--pf-c-button--disabled--BorderColor)"}
export default function isFunction(obj) { return Boolean(obj && obj.constructor && obj.call && obj.apply) }
/** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ //Not using strict: uneven strict support in browsers, #392, and causes //problems with requ...
export { default as Automation } from './Automation' export { default as Record } from './Record' export { default as RecordList } from './RecordList' export { default as Calendar } from './Calendar' export { default as Chart } from './Chart' export { default as Content } from './Content' export { default as SocialFeed...
import React from "react"; import { shallow } from "enzyme"; import CategoryWithLocation from "apps/main/components/CategoryWithLocation"; describe("apps/main/components/CategoryWithLocation", () => { it("renders without an issue", () => { const subject = <CategoryWithLocation />; const wrapper = shallow(su...
"use strict"; exports.__esModule = true; var append_1 = require("./append"); var makeIterator_1 = require("../function/makeIterator_"); /** * Maps the items in the array and concatenates the result arrays. */ function collect(arr, callback, thisObj) { callback = makeIterator_1["default"](callback, thisObj); v...
// You should implement your task here. module.exports = function towelSort(matrix) { let result = []; if (!matrix) { return result; } for (let i = 1; i <= matrix.length; i++) { result = (i % 2 === 0) ? result.concat(matrix[i - 1].reverse()) : result.concat(matrix[i - 1]); } ret...
// @flow import type { Login, CheckLoginSuccess } from '../types/actions/auth'; export const login = (): Login => ({ type: 'LOGIN' }); export const checkLoginSuccess = (): CheckLoginSuccess => ({ type: 'CHECK_LOGIN_SUCCESS' });
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import InputField from './InputField'; const SearchWrapper = styled.div` display: block; margin-top: 20px; `; const Search = (props) => ( <SearchWrapper> <InputField /> </SearchWrapper> ); export defau...
from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session from dispatch.database.core import get_db from dispatch.database.service import search_filter_sort_paginate, common_parameters from .models import ( FeedbackCreate, FeedbackPagination, FeedbackRead, FeedbackUpdat...
import React, { useEffect, useState } from 'react' /** @jsx jsx */ import { jsx, css } from '@emotion/core' import styled from '@emotion/styled' import { ArtworkLayout, ImageLayout, } from 'components/artwork' import { WavyFadeInUp } from 'components/animate' import { useScreen } from 'components/theme' import { Re...
const CrisprDefaults = { all: { minReadCount: 30, minGuides: 4, norm: true, normCount: 10000000, }, BAGEL: { bootstrapIter: 1000, essentialVersion: 'v1', }, drugZ: { nonEssentialVersion: 'v1', pseudoCount: 5, removeGenes: '', }, MAGeCKmle: { adjustMethod: '', ge...
'use strict'; const express = require('express'); const path = require('path'); const errorHandler = require('errorhandler'); const logger = require('morgan'); const methodOverride = require('method-override'); const { StreamCamera, Codec } = require('pi-camera-connect'); const WebSo...
(function($) { //全局配置(通常所有页面引用该配置,特殊页面使用mui.init({})来覆盖全局配置) $.initGlobal({ swipeBack: true }); var back = $.back; $.back = function() { var current = plus.webview.currentWebview(); if (current.mType === 'main') { //模板主页面 current.hide('auto'); setTimeout(function() { document.getElementById("titl...
# Copyright 2010 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...
import { styled } from '../../../Utilities'; import { PersonaPresenceBase } from './PersonaPresence.base'; import { getStyles } from './PersonaPresence.styles'; /** * PersonaPresence is used to render an individual's presence. */ export var PersonaPresence = styled(PersonaPresenceBase, getStyles); //# sourceMappingUR...
"use strict"; exports.PI = 3.14; function calculateCirumcumference(diameter) { return diameter * exports.PI; } exports.calculateCirumcumference = calculateCirumcumference;
// https://www.youtube.com/watch?v=H-9jCNhLe-Q const particles = []; function setup() { let canvas = createCanvas(740, 500); const particlesLength = Math.floor(width / 10); for (let i = 0; i < particlesLength; i++) { particles.push(new Particle()); } } function draw() { background(55, 100, 144); part...
$(document).ready(function(){ /** * Json Syntax Highlight * * @param json * @returns {XML|string} */ function syntaxHighlight(json) { json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;'); return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])...
(function () { 'use strict'; angular .module('smartdokter') .service('Pasien', Pasien); Pasien.$inject = ['$http', '$q']; function Pasien($http, $q) { const URL_SERVER = 'http://smartdoctor.tritronik.com/api'; // Seluruh method di service this.getAllDataPasiens...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (...
var count = (function abs(BigNumber) { var start = +new Date(), log, error, passed = 0, total = 0; if (typeof window === 'undefined') { log = console.log; error = console.error; } else { log = function (str) { document.body.innerHTML += str...
const File = require('@gotoeasy/file'); const countLine = require('./lib/index'); const countLineInit = require('./lib/count-line-init'); module.exports = function(opts={}, ... args){ let mode = opts.mode; let debug = console.debug; console.debug = ()=>{}; try{ if ( /^init$/i.test(mode) ) { ...
from django.db import models from django.contrib.auth.models import User # Create your models here. class ShortURL(models.Model): code = models.CharField(max_length=100, blank=True, null=True) url = models.TextField(blank=True, null=True) submitter = models.ForeignKey(User, null=True, on_delete=models.CA...
/** * marked-it-cli * * Copyright (c) 2020 IBM Corporation * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, ...
/* eslint-disable no-underscore-dangle */ const mongoose = require("mongoose"); const uniqueValidator = require("mongoose-unique-validator"); const EventWarningSchema = new mongoose.Schema( { solutionDate: { type: mongoose.Schema.Types.Date }, solved: { type: mongoose.Schema.Types.Boolean }, createdAt: {...
# Copyright 2021-2002 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 writi...
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, ...
from easydict import EasyDict as edict __C = edict() cfg = __C # # Dataset Config # __C.DATASETS = edict() __C.DATASETS.SHAPENET = edict() __C.DATASETS.SHAPENET.TAXONOMY_FILE_PATH ...
import { getSecurityDetails, postSecurityDetails, MAX_INPUT_LENGTH, } from '.'; import Application from '../../../models/application'; import { updateApplication } from '../../../services/api'; jest.mock('../../../models/application'); jest.mock('../../../services/api', () => ({ updateApplication: jest.fn(), }...