text stringlengths 3 1.05M |
|---|
'use strict';
module.exports = /(\w{3})[()\s\d]*$/; |
/**
* Copyright 2017 IBM Corp. 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 l... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export class ElementSchemaRegistry {
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi... |
var searchData=
[
['lax_5ffriedrichs_5f1st_5forder_104',['LAX_FRIEDRICHS_1ST_ORDER',['../include_2lsAdvect_8hpp.html#afe9778bbf7b5f9aeb52d14c4f133cc9baa6e8c70e1bb7ba1a32b675aa9affdb3e',1,'LAX_FRIEDRICHS_1ST_ORDER(): lsAdvect.hpp'],['../install_2ViennaLS_2include_2lsAdvect_8hpp.html#afe9778bbf7b5f9aeb52d14c4f133c... |
import React from 'react'
import Radium from 'radium'
import Stop from '../Stop/Stop'
import Mock from '../../stores/mocks/stop'
class StopList extends React.Component {
render() {
return (
<section>
<header>
<h2>List of Stops</h2>
<p>A list of Stop Elements.</p>
</heade... |
import React from "react"
const NotFoundPage = () => (
<>
<h1>NOT FOUND</h1>
</>
)
export default NotFoundPage
|
/**
* Generated by "@vuepress/internal-root-mixins"
*/
import m0 from "C:\\VUE\\node_modules\\@vuepress\\core\\lib\\client\\root-mixins\\updateMeta.js"
import m1 from "C:\\VUE\\node_modules\\@vuepress\\plugin-active-header-links\\clientRootMixin.js"
import m2 from "C:\\VUE\\node_modules\\@vuepress\\plugin-nprogress\\... |
/**
* @license 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 applicable law or a... |
def read_matrix():
size = int(input())
return [[int(s) for s in (input().split(' '))] for _ in range(size)]
def get_add_command(matrix, row, col, value):
if row in range(len(matrix)) and col in range(len(matrix)):
for r in range(len(matrix)):
for c in range(len(matrix)):
... |
/**
* Layout: Assamese
* Source: Akhilesh (https://github.com/akki2825)
*/
export default {
layout: {
default: [
"\u0965 \u09e7 \u09e8 \u09e9 \u09ea \u09eb \u09ec \u09ed \u09ee \u09ef \u09e6 \u002d \u09c3 {bksp}",
"{tab} \u09cc \u09c8 \u09be \u09c0 \u09c2 \u09ac \u09b9 \u0997 \u09... |
/*!
* FileInput Turkish Translations
*
* This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or
* any HTML markup tags in the messages must not be converted or translated.
*
* @see http://github.com/kartik-v/bootstrap-fileinput
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
(functi... |
import axios from "axios"
const baseUrl = "http://localhost:3001/persons"
const getAll = () => {
return axios
.get(baseUrl)
.then(response => response.data)
}
const create = newObject => {
return axios
.post(baseUrl, newObject)
.then(response => response.data)
... |
// Regular expression that matches all symbols in the Supplementary Private Use Area-A block as per Unicode v10.0.0:
/[\uDB80-\uDBBF][\uDC00-\uDFFF]/; |
"use strict";
process.stdin.resume();
process.stdin.setEncoding("utf-8");
let inputString = "";
let currentLine = 0;
process.stdin.on("data", (inputStdin) => {
inputString += inputStdin;
});
process.stdin.on("end", (_) => {
inputString = inputString
.trim()
.split("\n")
.map((string) => {
retu... |
const CustomError = require("../extensions/custom-error");
module.exports = function dateSample(sampleActivity) {
const MODERN_ACTIVITY= 15;
const HALF_LIFE_PERIOD= 5730;
if( typeof sampleActivity !== 'string') return false;//проверка,чтобы входное значение было строкой
const NUMsmplAct=parseFloat(sampleActivi... |
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import Accordion from "@material-ui/core/Accordion";
import AccordionSummary from "@material-ui/core/AccordionSummary";
import AccordionDetails from "@material-ui/core/AccordionDetails";
import ExpandMoreIcon from "@material-ui/icons/Expa... |
# Generated by Django 3.2.7 on 2021-11-02 16:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('file_manager', '0042_auto_20211102_1000'),
]
operations = [
migrations.AlterField(
model_name='rawfile',
name='note_... |
const htmlSitemap = require('@parameter1/base-cms-marko-web-html-sitemap/routes');
const identityX = require('./identity-x');
const magazine = require('../components/magazine/routes');
const nativeX = require('./native-x');
const printContent = require('./print-content');
const publicFiles = require('./public-files');
... |
module.exports = [{"isApi":true,"priority":1000.003,"key":"Window","style":{backgroundColor:"#ccc",navBarHidden:true,}}]; |
/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function (a, b) {
"object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function (a) {
if (!a.document)throw new Error("jQuery requires a window with a document");
... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
(factory(global.jQuery));
}(this, (function ($) { 'use strict';
$ = $ && $.hasOwnProperty('default') ? $['default'] : $... |
"use strict"
exports.__esModule = true;
exports.TorahIconConfig = {
name: 'TorahIcon',
height: 512,
width: 640,
svgPath: 'M320.05 366.48l17.72-29.64h-35.46zm99.21-166H382.4l18.46 30.82zM48 0C21.49 0 0 14.33 0 32v448c0 17.67 21.49 32 48 32s48-14.33 48-32V32C96 14.33 74.51 0 48 0zm172.74 311.5h36.85l-18.46-30.82z... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.default = exports.test = exports.serialize = void 0;
var _collections = require('../collections');
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT licen... |
'use strict';
const server = require('browser-sync').create();
server.init({
server: './www',
files: [
'./www/**/*.html',
'./www/**/*.css',
'./www/**/*.js',
'./www/**/*.png',
'./www/**/*.svg'
],
notify: false
});
server.reload();
|
define({
'UserView': 'User View',
'AdminView': 'Admin View',
'Logout': 'Logout',
'Norwegian': 'Norsk',
'English': 'English'
}); |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
// This icon file is generated by build/generate.ts
// tslint:disable
/** @type {?} */
export var ReconciliationTwoTone = {
name: 'reconciliation',
theme: 'twotone',
icon: '<svg viewBox="64 64 896 896... |
# ============================================================================
# FILE: sorter_rank.py
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
# License: MIT license
# ============================================================================
from .base import Base
class Filter(Base):
def __ini... |
const AbstractMutation = require("../../Abstract/Mutation.js");
/**
* A single mutation record, indication a value change
*/
class ValueMutation extends AbstractMutation {
/**
* Apply the mutation to the target, changing the value for given key
*/
apply() {
this.target[this.key] = this.value;
}
/**
* ... |
const firstName = 'William';
const lastName = 'Johnson';
const age = 37;
const str = 'Hello there my name is Kyle';
const tags = 'Web design, Web development, Programming'
// console.log(firstName, lastName);
let val;
val = firstName + lastName;
// Appending (using +=)
val = 'Kyle ';
val += 'Denman';
// Concatenat... |
"use strict";
$(function () {});
//# sourceMappingURL=app.js.map
|
module.exports = {
siteMetadata: {
title: `Is This Essential?`,
description: `Check to see what stores are open.`,
author: `@gatsbyjs`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/... |
from django import forms
from django.utils.translation import gettext_lazy as _
from .models import Project, Category, ProjectImage
class ProjectForm(forms.ModelForm):
category = forms.ModelChoiceField(Category.objects.filter(parent=None), label=_('category'))
subcategory = forms.ChoiceField(label=_('subcateg... |
class Weather {
isStormy() {
return Math.random(10) > 8
};
}; |
/* global describe it expect */
import {
getAccessTokenFromRequest,
errorTypes,
setAccessTokenToResponse,
removeCookies
} from './getSetAccessToken';
import { mockReq, mockRes } from 'sinon-express-mock';
import jwt from 'jsonwebtoken';
describe('getSetAccessToken', () => {
const validJWTSecret = 'this is a ... |
module.exports = function enableAuthentication(server) {
// enable authentication
server.enableAuth();
}; |
var searchData=
[
['example_5fstruct_0',['example_struct',['../structexample__struct.html',1,'']]]
];
|
/*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
(function( global, factory ) {
if ( typeof module ... |
var tape = require("tape");
var protobuf = require("..");
var def = {
fields: {},
oneofs: undefined,
extensions: undefined,
reserved: undefined,
group: undefined,
nested: undefined,
options: undefined,
};
var def2 = {
fields: {
a: {
type: "uint32",
id: ... |
# Security
DEBUG = True
SECRET_KEY = 'ngjqVmXKmqfKN46jKIzj'
DB = "projectWhiskey"
ROOT = "superuser@superuser.com"
ROOT_PSWD = "yoMama"
TOKEN_VALIDITY_TIMEOUT = 600
TOKEN_TIMEOUT = 3600
# Mail
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USERNAME = 'dont.reply.to.project.whiskey'
MAIL_PASSWO... |
#!/usr/bin/env python
import os
s = '@'
cmd = '''echo {} | wine 2_mod.exe | tail -n +3 | head -n -1 > /tmp/fuck.txt'''
def run(s):
os.system(cmd.format(s))
out = [s.strip() for s in open('/tmp/fuck.txt', 'r').readlines()][-1]
a, _, b = out.split()
return a == b
alphabet = '1234567890qwertyuiopasdfgh... |
// ElementList: ( Modified )
// Elisionopt AssignmentExpression
// Elisionopt SpreadElement
// ElementList, Elisionopt AssignmentExpression
// ElementList, Elisionopt SpreadElement
// SpreadElement:
// ... AssignmentExpression
var a0 = [
,
,
2,
3,
4
];
var a1 = [
... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
"use strict";
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/**!
* is
* the definitive JavaS... |
//////////////////////////////////////////////////////////////////////////////////
// //
//////////////////////////////////////////////////////////////////////////////////
var triangles = 1;
var vertexIdxArray = new Int16Array(triangles * 3);
var i = 0;
vertexIdxArray[i+0] = 0;
vertexIdxArray[i+1] = 1;
ver... |
from .predictor import BasePredictor, SegPredictor, ImSpecPredictor, Locator
from .epredictor import EnsemblePredictor, ensemble_locate
__all__ = ["BasePredictor", "SegPredictor", "ImSpecPredictor",
"EnsemblePredictor", "ensemble_locate", "Locator"]
|
import Markdown from '@/components/Markdown'
export default class WhiteSpace extends Markdown {
markdown = (lang) => {
/* eslint import/no-dynamic-require: 0 */
return require(`@/docs/${lang}/white-space.md`)
}
}
|
/**
* Filter by a configurable Ext.picker.DatePicker menu
*
* Example Usage:
*
* var grid = Ext.create('Ext.grid.Panel', {
* ...
* columns: [{
* // required configs
* text: 'Date Added',
* dataIndex: 'dateAdded',
*
* filter: {
* ... |
let U8 = (...a) => new Uint8Array(...a);
class APU extends AudioWorkletProcessor {
constructor() {
super();
this.sampleIndex = 0;
this.currentTime = 0;
this.isFirstMessage = true;
this.pendingUpdates = [];
this.port.onmessage = (ev) => {
if(this.memory) {
... |
#
# (c) 2017 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible 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 3 of the License, or
# (at your option) any later version.
#
# Ansible is d... |
var lastUpdate = 0;
function enableButtons() {
//var button = document.getElementById("main");
//button.value = "Update";
//button.onclick =
setInterval(
function(){
gapi.client.sudoku.getUpdates({
"from": lastUpdate
}).execute(updateTable);
}, 100);
//};
var select = document.getElementsByTagNam... |
import _ from 'lodash';
import { Control } from './control';
import { RangeFilterManager } from './filter_manager/range_filter_manager';
const minMaxAgg = (field) => {
const aggBody = {};
if (field.scripted) {
aggBody.script = {
inline: field.script,
lang: field.lang
};
} else {
aggBody.f... |
module.exports = function highlight (query, text, opts) {
opts = opts || { tag: 'strong' }
if (query.length === 0) {
return text
}
var offset = text.toLowerCase().indexOf(query[0].toLowerCase())
if (offset === -1) return null
var last = 0
for (var i = 1; i < query.length; i++) {
if (text[offset... |
// (c) ammap.com | SVG (in JSON format) map of Gabon - Low
// areas: {id:"GA-7"},{id:"GA-2"},{id:"GA-8"},{id:"GA-5"},{id:"GA-4"},{id:"GA-3"},{id:"GA-9"},{id:"GA-6"},{id:"GA-1"}
AmCharts.maps.gabonLow={
"svg": {
"defs": {
"amcharts:ammap": {
"projection":"mercator",
"leftLongitude":"8.6990528",
"topLat... |
'use strict';
var FieldOverrider = require('./utils/FieldOverrider');
var TimerRepository = require('./TimerRepository');
var TypeChecks = require('./utils/TypeChecks');
function Callback(f, args) {
this.f = f;
this.args = args;
}
Callback.prototype.call = function() {
this.f.apply(undefined, this.args);
};
fu... |
var data = {
"body": "<path d=\"M16 6v6c0 1.1.9 2 2 2h1v7c0 .55.45 1 1 1s1-.45 1-1V3.13c0-.65-.61-1.13-1.24-.98C17.6 2.68 16 4.51 16 6zm-5 3H9V3c0-.55-.45-1-1-1s-1 .45-1 1v6H5V3c0-.55-.45-1-1-1s-1 .45-1 1v6c0 2.21 1.79 4 4 4v8c0 .55.45 1 1 1s1-.45 1-1v-8c2.21 0 4-1.79 4-4V3c0-.55-.45-1-1-1s-1 .45-1 1v6z\" fill=\"curre... |
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
// Check that the test harness actually works
"success"
|
import * as React from "react";
function IconReportAnalytics({
size = 24,
color = "currentColor",
stroke = 2,
...props
}) {
return <svg className="icon icon-tabler icon-tabler-report-analytics" width={size} height={size} viewBox="0 0 24 24" strokeWidth={stroke} stroke={color} fill="none" strokeLinecap="round... |
import numpy as np
import pygame
import sys
import math
BLUE = (0,0,255)
BLACK = (0,0,0)
RED = (255,0,0)
YELLOW = (255,255,0)
ROW_COUNT = 6
COLUMN_COUNT = 7
def create_board():
board = np.zeros((ROW_COUNT,COLUMN_COUNT))
return board
def drop_piece(board, row, col, piece):
board[row][col] = piece
def is_valid_lo... |
/**
* Copyright (c) 2015-present, Parse, LLC.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
e... |
module.exports = { prefix: 'fal', iconName: 'stopwatch', icon: [448, 512, [], "f2f2", "M393.3 141.3l17.5-17.5c4.7-4.7 4.7-12.3 0-17l-5.7-5.7c-4.7-4.7-12.3-4.7-17 0l-17.5 17.5c-35.8-31-81.5-50.9-131.7-54.2V32h25c6.6 0 12-5.4 12-12v-8c0-6.6-5.4-12-12-12h-80c-6.6 0-12 5.4-12 12v8c0 6.6 5.4 12 12 12h23v32.6C91.2 73.3 0 170... |
var data = {
"body": "<path d=\"M16.75 22.16l-2.75-3L15.16 18l1.59 1.59L20.34 16l1.16 1.41l-4.75 4.75M18 2c1.1 0 2 .9 2 2v9.34c-.63-.22-1.3-.34-2-.34V4h-5v8l-2.5-2.25L8 12V4H6v16h6.08c.12.72.37 1.39.72 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h12z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24
};
exports.__esModule... |
from datetime import timedelta
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import pandas as pd
from measurement.models import Tick
def get_last_15min_info_df(input_df):
tmp_interval = timedelta(minutes=5)
tmp_df = input_df[input_df.created_at > input_df.created_at.iloc[-1] - tmp_interv... |
/**
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.3.0... |
import React, { Component, PropTypes } from 'react';
import {
Editor,
createEditorState,
ImageSideButton,
Block,
addNewBlock,
getCurrentBlock,
BLOCK_BUTTONS
} from 'medium-draft';
import mediumDraftExporter from 'medium-draft/lib/exporter';
const ExtraButtons = [{
label: 'H1',
style... |
# Copyright (c) OpenMMLab. All rights reserved.
from typing import List, Optional, Union
import mmcv
import torch
from mmcv.utils import Registry
from torch.utils.data import DataLoader, Dataset
from mmdeploy.codebase.base import CODEBASE, BaseTask, MMCodebase
from mmdeploy.utils import Codebase, get_task_type
def ... |
import React, { useContext } from 'react';
import { UserContext } from '../Store/UserContext';
const UserContainer = () => {
const [user] = useContext(UserContext);
const { nickName, birthday, gender, interests } = user;
console.log(user);
return (
<div className="user-container">
<h1>{`Hey ${nickNa... |
from datetime import datetime
from unittest import TestCase
from fjord.analytics.utils import counts_to_options, zero_fill
from fjord.base.tests import eq_
from fjord.base.utils import epoch_milliseconds
class TestCountsHelper(TestCase):
def setUp(self):
self.counts = [('apples', 5), ('bananas', 10), ('o... |
"use strict";
const VersionManager = require("../VersionManager"),
NodeTemplateModule = require("../Templates/Modules/NodeJS/NodeTemplateModule");
// Run Templates
VersionManager
.VersionTemplates
.addTemplate(NodeTemplateModule.standard(require("path").join(__dirname, '..')))
.runTemplate((new Ve... |
/*!
Zoom v1.7.13 - 2014-04-29
Enlarge images on click or mouseover.
(c) 2014 Jack Moore - http://www.jacklmoore.com/zoom
license: http://www.opensource.org/licenses/mit-license.php
*/
(function(o){var t={url:!1,callback:!1,target:!1,duration:120,on:"mouseover",touch:!0,onZoomIn:!1,onZoomOut:!1,magnify:1};o.zo... |
import { assign } from "../../utils";
import getIdentityOptionsValidator from "./getIdentity/getIdentityOptionsValidator";
export default (({
addEcidQueryToPayload,
ensureSingleIdentity,
setLegacyEcid,
handleResponseForIdSyncs,
getEcidFromResponse,
getIdentity,
consent
}) => {
let ecid;
let edge = {};... |
// import media from '../styles/media'
import styled from "styled-components"
import { Link } from "gatsby"
import React, { Component } from "react"
import typographies from "../styles/typography_styles"
import media from "../styles/media"
// import { library } from "@fortawesome/fontawesome-svg-core"
import { FontAwes... |
var BaseError = require('./baseError');
function VariantAlsoNegotiates() {
BaseError.apply(this, arguments);
Error.captureStackTrace(this, VariantAlsoNegotiates);
}
VariantAlsoNegotiates.prototype = Object.create(BaseError.prototype);
VariantAlsoNegotiates.prototype.constructor = VariantAlsoNegotiates;
Variant... |
//REACT
import React, { useEffect, useState } from "react";
//REDUX
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import * as actions from "../../../store/actions";
//CoreUI
//Componets
import PlaylistVideos from "../components/playlistVideos";
//Style
//API
const Playlist = ({ use... |
module.exports={A:{A:{"2":"J E F G A B kB"},B:{"1":"P Q T U V W X Y Z a b c R d H e","2":"C K L D M N O"},C:{"2":"lB dB I f J E F G A B C K L D M nB oB","4":"N O g h","194":"0 1 2 3 4 5 6 7 8 9 i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB eB KB fB LB MB S NB OB PB QB RB SB TB UB VB WB XB YB ZB aB P... |
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){functio... |
module.exports = {
pathPrefix: '/x86reference',
siteMetadata: {
title: 'x86reference',
description: 'Quickly search x86 assembly documentation.',
author: 'superhawk610',
siteUrl: 'https://superhawk610.github.io/x86reference',
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: '... |
'use strict';
const _ = require('lodash');
const EventEmitter = require('events');
const middleware = require('./message-middleware');
class MessageProcessor extends EventEmitter {
constructor() {
super();
this._stack = [];
}
use() {
let args = _.flatten(Array.from(arguments));
if (!args.len... |
import App from './App'
import forget from './page/forget'
export default [{
path: '/userlogin',
component: App,
meta: {
keepAlive: true // 需要被缓存
}
},
{
path: '/forget',
component: forget,
meta: {
keepAlive: true // 需要被缓存
}
}
]
|
import * as actions from "./actions"
import * as actionTypes from "./actionTypes"
import { combineEpics } from "redux-observable"
import { map } from 'rxjs/operator/map'
import { mergeMap } from 'rxjs/operator/mergeMap'
import { filter } from "rxjs/operator/filter"
import { delay } from "rxjs/operator/delay"
import { ... |
require('es6-promise').polyfill();
var memoize = require('../../src');
var chai = require('chai'), expect = chai.expect;
function asyncWork(num) {
return new Promise(function(res, rej) {
window.setTimeout(function() {
if (num % 2 == 0) {
res(num);
} else {
rej(num);
}
}, 1... |
module.exports = {
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
jsx: true,
modules: true
},
sourceType: "module"
},
parser: "babel-eslint",
env: {
browser: true,
es6: true,
node: true
},
globals: {
angular: false,
define: false,
describe: false,
do... |
/**
* Copyright (c) 2011-2017 by Andrew Mustun. All rights reserved.
*
* This file is part of the QCAD project.
*
* QCAD 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 3 of the License,... |
(function (window, document, $, undefined) {
'use strict';
var NEWS = {
i: function (e) {
NEWS.s();
NEWS.methods();
},
s: function (e) {
this._window = $(window),
this._document = $(document),
this._body = $('body'),
this._html = $('html'),
this.sideNav = $('.side-nav'),
this.zoom... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z" />
, 'FormatListNumberedSharp');
|
const express = require("express");
const { users } = require("../data");
const router = express.Router();
// const data = require('../data');
// const usersData = require('../data/users');
const data = require("../data");
const multer = require("multer");
const xss = require("xss");
const fs = require("fs");
const st... |
import React from 'react'
import './TitleTemplate.css'
const TitleTemplate = () => {
return (
<div className="titleTemplate">
<h1>Ahvena Balcony Blog</h1>
<h3>- From the Balconies of Hervanta</h3>
</div>
)
}
export default TitleTemplate
|
import pymongo
import urllib
from dotenv import load_dotenv
import os
load_dotenv()
MONGO_PW = os.getenv("MONGO_PW")
pw = urllib.parse.quote_plus(MONGO_PW)
mongo_url = "mongodb+srv://alexmjn:" + pw + "@cluster0-semjk.mongodb.net/test?retryWrites=true&w=majority"
client = pymongo.MongoClient(mongo_url, connect = False)... |
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: hapi/release/hook.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection... |
import time
from base64 import urlsafe_b64encode
from http import HTTPStatus
from fastapi.param_functions import Query
from fastapi.params import Depends
from pydantic import BaseModel
from starlette.exceptions import HTTPException
from lnbits import bolt11
from lnbits.core.crud import delete_expired_invoices, get_pa... |
"use strict";
// Diablo 3 Game Data API documentation: https://develop.battle.net/documentation/diablo-3/game-data-apis
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value);... |
"use strict";
/*
CONFIG.js
Contains API information.
*/
export default {
POKE_API: {
URL_ROOT: "https://pokeapi.co/api/v2/pokemon/"
},
BINARY_JAZZ: {
URL_ROOT: "https://binaryjazz.us/wp-json/genrenator/v1/",
ENDPOINTS: {
GENRE: "genre",
STORY: "story"
}
}... |
import axios from '../../../axios/index.js'
import store from '../../../../store/store.js'
// Token Refresh
let isAlreadyFetchingAccessToken = false
let subscribers = []
function onAccessTokenFetched (access_token) {
subscribers = subscribers.filter(callback => callback(access_token))
}
function addSubscriber (ca... |
(function(){throw"poop";}).call(this); |
import React from "react"
import { graphql } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import { Card, Button, Input, Form } from "antd"
const { Meta } = Card
const IndexPage = props => (
<Layout>
<SEO
title="Apex refrigeration"
keywords={[`gatsby`,... |
import {StyleParser} from './style_parser';
import Utils from '../utils/utils';
import log from '../utils/log';
import mergeObjects from '../utils/merge';
import {buildFilter} from './filter';
// N.B.: 'visible' is legacy compatibility for 'enabled'
export const reserved = ['filter', 'draw', 'visible', 'enabled', 'dat... |
"""
:codeauthor: :email:`Gareth J. Greenaway <gareth@saltstack.com>`
:codeauthor: :email:`David Murphy <dmurphy@saltstack.com>`
"""
import datetime
import time
import types
import pytest
import salt.modules.gpg as gpg
from salt.exceptions import SaltInvocationError
from tests.support.mock import MagicMock, pa... |
import * as THREE from 'three';
// TextSprite
class TextSprite {
// @param {object} options The options object
// @param {number} [options.x] The point on the x-axis
// @param {number} [options.y] The point on the y-axis
// @param {number} [options.z] The point on the z-axis
// @param {string} [options.text]... |
# Generated by Django 3.0.8 on 2021-03-07 14:45
from django.db import migrations
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0003_taggeditem_add_unique_index'),
('blog', '0005_auto_20210307_2323'),
]
operations = [
migrations.AddFie... |
// Creating a XML Obj Parser instance
const xotree = new XML.ObjTree();
// Converting a blog.xml from xml to js object
const projectsContent = xotree.parseXML(read_from_file_sync("xml/projects/projects.xml"));
fetchProjects();
function fetchProjects() {
const numberFormatter = new Intl.NumberFormat('en-IN');
... |
export const getCarIdSchema = {
$id: "getCarIdSchema",
"type": "object",
"properties": {
"_id": {
"type": "string"
},
"type": {
"type": "string"
},
"speed": {
"type": "integer"
},
"model": {
"type": "stri... |