text stringlengths 3 1.05M |
|---|
//constants
const express = require('express')
const app = express()
const mongodb = require('mongodb')
const dotenv = require('dotenv')
dotenv.config()
//leverages
app.use(express)
console.log('[*] congrats, server is running.')
//has to be checked these ones
app.use(express.urlencoded({ extended: false }))
app.use... |
import styled from 'styled-components';
import {
neutralColor2,
neutralColor5,
primaryMedium,
alertSuccessLight,
brandSecondaryLightest,
brandTertiaryLight,
brandTertiaryLightest
} from '../../../style/colors';
export const Container = styled.div`
width: 100%;
position: relative;
`;
export const Te... |
#
# This source file is part of the EdgeDB open source project.
#
# Copyright 2008-present MagicStack Inc. and the EdgeDB 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... |
/**
* 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... |
import router from '@/router'
import { isNil } from 'lodash'
import { createNewUserFromFirebaseAuthUser } from '@/misc/helpers'
import UsersDB from '@/firebase/users-db'
export default {
/**
* Callback fired when user login
*/
login: async ({ commit, dispatch }, firebaseAuthUser) => {
const userFromFireb... |
/* -*- Mode: js2; indent-tabs-mode: nil; tab-width: 4; js2-indent-offset: 4; js2-basic-offset: 4; -*-
* vim: set ts=4 sw=4 et tw=99 ft=js:
*/
//
// desugars
//
// for (let x of a) { ... }
//
// to:
//
// {
// %forof = a[Symbol.iterator]();
// while (!(%iter_next = %forof.next()).done) {
// let x = %... |
import EmberObject from '@ember/object';
import ResetScrollMixin from 'preprint-service/mixins/reset-scroll';
import { module, test } from 'qunit';
module('Unit | Mixin | reset scroll');
test('ResetScrollMixin mixin scrolls back to the top on every new route', function(assert) {
const object = EmberObject.extend(... |
var classde_1_1tudarmstadt_1_1informatik_1_1fop_1_1breakout_1_1states_1_1_editor_state =
[
[ "EditorState", "classde_1_1tudarmstadt_1_1informatik_1_1fop_1_1breakout_1_1states_1_1_editor_state.html#afeec69c7ceda21bed6972927c7605a3b", null ],
[ "init", "classde_1_1tudarmstadt_1_1informatik_1_1fop_1_1breakout_1_1s... |
/**
* @file sw-notification
* @author ruoran (liuruoran@baidu.com)
*/
import {grade} from 'helper';
import {log} from 'log';
self.addEventListener('install', function (event) {
log('Install event');
self.skipWaiting();
});
self.addEventListener('activate', function (event) {
log('Activate event');
});... |
import { h } from 'preact'; // eslint-disable-line no-unused-vars
import { Link } from 'preact-router';
export default function (props) {
return (
<div className="page page__404">
<h1>404 Page</h1>
<h2>— Looks like your were given a bad link —</h2>
<div className="err... |
import unittest
from app.models import Role
class RoleModelTest(unittest.TestCase):
def setUp(self):
self.new_role = Role(name='Admin')
# def tearDown(self):
# Role.delete()
def test_init(self):
self.assertEquals(self.new_role.name,'Admin') |
# a detector interface class name must follow the
# naming convention: dettype_drpalg_major_minor_micro
from .test_detectors import *
from .misc_detectors import *
from .bld import *
from .envstore import *
from hsd import *
from .opal im... |
'use strict';
const mongoose = require('mongoose');
const MessageSchema = new mongoose.Schema({
message: String,
sender: {type: mongoose.Schema.Types.ObjectId, required: false, ref: "user"},
solved: {
type: mongoose.Schema.Types.Boolean,
default: false
}
}, {
timestamps: true
});
... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("eagle-ui/lib/utils/Component"), require("eagle-ui"), require("react/lib/ReactDOM"));
else if(typeof define === 'function' && define.amd)
def... |
'use strict';
import React, { PropTypes, Component } from 'react';
import Field from '../../../../_helpers/Field';
import Counters from './Counters';
import Buttons from '../../../../_helpers/Buttons';
export default class Form extends Component {
constructor(props) {
super(props);
this.state = { siteId: '... |
const { expect, sinon } = require("../test_helper");
const { GenerateReminderMessage } = require("@use_cases");
describe("GenerateReminderMessage", function() {
it("can generate a reminder message for a slack user", function() {
const nonResponderId = "slackUserId";
const expectedResponse = `Hi <@slackUserId... |
from django.conf.urls import include, url
from django.contrib import admin
admin.autodiscover()
# URLs for django.contrib.admin
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
]
# URLs for powerdns_manager
urlpatterns.append(
url('^powerdns/', include('powerdns_manager.urls')),
)
|
__zl([{"01":0,"03":1,"04":2,"05":3,"40":4,"41":5,"43":6,"44":7,"45":8,"46":9,"47":10,"48":11,"50":12,"52":13,"54":14,"55":15,"56":16,"57":17,"58":18,"59":19,"61":20,"62":21,"63":22,"64":23,"65":24,"68":25,"71":26,"72":27,"73":28,"74":29,"76":30,"77":31,"78":32,"82":33,"83":34,"86":35,"87":36,"88":37,"89":38,"91":39,"92... |
import numpy as np
from sklearn import utils as skutils
from rng import np_rng, py_rng
def center_crop(x, ph, pw=None):
if pw is None:
pw = ph
h, w = x.shape[:2]
j = int(round((h - ph)/2.))
i = int(round((w - pw)/2.))
return x[j:j+ph, i:i+pw]
def patch(x, ph, pw=None):
if pw is None:
... |
/**
* Created by navneet_gupta on 15/09/15.
*/
'use strict';
module.exports = function(app) {
var outlets = require('../../app/controllers/outlet.server.controller');
var menus = require('../../app/controllers/menus.server.controller');
app.route('/outlets').get(outlets.list);
app.route('/menus')... |
var options={series:[76],chart:{height:150,type:"radialBar",sparkline:{enabled:!0}},colors:["#556ee6"],plotOptions:{radialBar:{startAngle:-90,endAngle:90,track:{background:"#e7e7e7",strokeWidth:"97%",margin:5},hollow:{size:"60%"},dataLabels:{name:{show:!1},value:{offsetY:-2,fontSize:"16px"}}}},grid:{padding:{top:-10}},... |
'use strict';
var child = require('child_process');
var zerorpc = require("zerorpc");
module.exports = {
retrain: function(t) {
// var spawn = child.spawn;
// var process = spawn('python', ['./testPy.py', 'Hi Py']);
// process.stdout.on('data', function(data) {
// console.log(data);
var client = new zerorp... |
#!/usr/bin/env python
"""
Copyright Google Inc. 2016
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... |
import mongoose from "mongoose";
const userSchema = mongoose.Schema({
email: {
type: String,
},
number: {
type: String,
},
fullname: {
type: String,
required: [true, "Enter your fullname."]
},
username: {
type: String,
required: [true, "Enter ... |
"""Util to invoke c++ compilers in the system."""
# pylint: disable=invalid-name
from __future__ import absolute_import as _abs
import sys
import subprocess
import os
from .util import tempdir
def create_shared(output,
objects,
options=None,
cc="g++"):
"""Cre... |
import { createConversionChecker } from '../helpers/helpers';
QUnit.test('Math.atanh', assert => {
const { atanh } = Math;
assert.isFunction(atanh);
assert.name(atanh, 'atanh');
assert.arity(atanh, 1);
assert.looksNative(atanh);
assert.nonEnumerable(Math, 'atanh');
assert.same(atanh(NaN), NaN);
assert.... |
'use strict'
/*
* Create a function `multiply` that takes two number arguments
* and returns the result of the multiplication of those two.
* But you must do this without using the operators * or /
*
* @notions Primitive and Operators, Functions, While
*/
// Your code :
function multiply(number1, number2) {
... |
import axios from 'axios';
import extension from 'extensionizer';
import {API_TOKEN_STORAGE_KEY, BACKEND_URL} from '../../constants';
export async function getStoredToken() {
return new Promise(resolve => {
extension.storage.local.get(API_TOKEN_STORAGE_KEY, (keys) => {
if (keys[API_TOKEN_STORAGE_KEY]){
... |
import numpy as np
from stable_baselines3 import PPO, SAC
from evaluations.racing_agent import Agent
class RacingAgent(Agent):
def __init__(self, algorithm: str, checkpoint_path: str):
if algorithm == 'ppo':
policy = PPO.load(checkpoint_path)
elif algorithm == 'sac':
polic... |
"""Remote client commands dealing with images."""
import operator
from collections import OrderedDict
import humanize
import podman
from pypodman.lib import AbstractActionBase, Report, ReportColumn
class Images(AbstractActionBase):
"""Class for Image manipulation."""
@classmethod
def subparser(cls, par... |
import sys
from pmc_turbo.camera.image_processing import blosc_file
from pmc_turbo.camera.image_processing import jpeg
def make_jpeg_from_blosc(input_filename, output_filename, **kwargs):
img, chunk = blosc_file.load_blosc_image(input_filename)
img_jpeg, offset, scale = jpeg.simple_jpeg(img, **kwargs)
ima... |
var path = require('path');
var webpack = require('webpack');
module.exports.getWebpackConfig = (minify) => {
let config = {
watch: false,
entry: "./framework7-react/index.ts",
resolve: {
extensions: [".ts", ".tsx", ".js"]
},
output: {
fi... |
import { useState, useCallback, useEffect } from "react";
import debounce from "./debounce";
function useDimensions(
liveMeasure = true,
delay = 250,
initialDimensions = {}
) {
const [dimensions, setDimensions] = useState(initialDimensions);
const [node, setNode] = useState(null);
const ref = useCallback(... |
const routes = [
{
path: '/',
component: () => import('layouts/MainLayout.vue'),
children: [
{ path: '', component: () => import('pages/Index.vue') },
],
},
{
path: '/statistic',
component: () => import('layouts/MainLayout.vue'),
children: [
{ path: '', component: () => im... |
const CustomError = require("../extensions/custom-error");
module.exports = function countCats(arr) {
let count = 0;
for (let i = 0; i < arr.length; i++) {
for (let j = 0; j < arr[i].length; j++) {
if (arr[i][j] === '^^') {
count += 1;
}
}
}
retur... |
// CLI params parser, to be used before we have deducted what commands and options are supported in given context
'use strict';
const ensureMap = require('type/map/ensure');
const memoizee = require('memoizee');
const parseArgs = require('./parse-args');
const globalOptionsSchema = require('./commands-schema/common-o... |
import pytest
import graphene_field_permission.permissions_loader
from unittest.mock import Mock
from graphene_field_permission.api import (
_has_access, permissions_filter,
get_filter_data, check_field_access,
restructure_permissions,
fetch_permissions,
)
from graphene_field_permission.tests.fixtures i... |
var Person = /** @class */ (function () {
function Person(name, age) {
this.name = name;
this.age = age;
}
return Person;
}());
var jake = new Person("Jake", 23);
console.log(jake);
|
const config = {
/**
* You can use this tool http://heymind.github.io/tools/microsoft-graph-api-auth
* to get following params: client_id, client_secret, refresh_token & redirect_uri.
*/
"refresh_token": "0.AAAAI5QiBZSRS0m6EacE3Ujk7BY_FIksIsVGl2VifaWpFgZxAPY.AQABAAIAAAD--DLA3VO7QrddgJg7WevrsNhowk... |
import os
import pandas as pd
import numpy as np
np.random.seed(0)
"""
create csv for martin test
run: python -m datasets_utils.create_martin_test_csv
"""
path = 'D:/Dataset/martin_test'
csv_name = 'martin_test.csv'
df = pd.DataFrame(columns=["image_path", "category"])
print(list(df.columns.values))
def splitall(p... |
import random
import subprocess
import dash
import dash_bootstrap_components as dbc
import dash_html_components as html
from dash.dependencies import Input, Output
import dash_html_components as html
import dash_core_components as dcc
import dash_daq as daq
import plotly.express as px
import plotly.graph_objs as go
... |
import json
import pandas as pd
from .filemanager import Manager
from .gmap_api import get_elevations
def lines():
file = 'data/austin_texas_osm_line.geojson'
file2 = 'austin_texas_osm_line.geojson'
try:
with open(file, encoding='utf8') as f:
lines = json.load(f)
return lines
except Excepti... |
import './App.css'; // i like to keep this because dark mode
import Situps from './components/situps'; // importing situps function component
import Pushups from './components/pushups'; // importing pushup class component
// the main web app
function App() {
return (
// returns a div with a header 1, a situp com... |
$(document).ready(function () {
let formData = {action: "GET_BRAND", sub_action: "GET_SELECT"};
let dataRecords = $('#TableBrandList').DataTable({
'lengthMenu': [[5, 10, 20, 50, 100], [5, 10, 20, 50, 100]],
'language': {
search: 'ค้นหา', lengthMenu: 'แสดง _MENU_ รายการ',
... |
export { default as Fire } from './Fire.js'; |
var chai = require("chai");
var LinkedList = require("../");
var expect = chai.expect;
describe("List Node", function () {
var list = null;
before(function () {
list = new LinkedList();
});
it("exists when instantiated", function () {
var node = list.createNewNode("test data");
... |
module.exports = {
globalSetup: './test/global-setup.js',
globalTeardown: './test/global-teardown.js',
testEnvironment: './test/puppeteer-environment.js',
reporters: ['default', '<rootDir>/test/utils/image-reporter.js'],
};
|
import React, { Component, Fragment } from "react"
import PropTypes from "prop-types"
import Img from "gatsby-image"
import styled from "styled-components"
import { Dialog, DialogOverlay, DialogContent } from "@reach/dialog"
import { FaAngleLeft, FaAngleRight, FaTimes } from 'react-icons/fa'
const LightboxConta... |
import ConfigDetail from './ConfigDetail';
export default ConfigDetail; |
# coding=utf-8
# Copyright 2022 The Fairseq Authors and The Google Flax Team Authors And The HuggingFace Inc. team. 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
#
# ... |
import React from "react"
import styled from "styled-components"
export default styled.button`
background-color: #49bf9d;
border-color: white;
color: white;
padding: 5px 20px;
font-size: ${props => `${props.size}em` || "0.8em"};
border-radius: 10px;
:focus {
outline: none;
}
:hover {
transi... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.13.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... |
import React, { Component } from 'react';
const initData = {
loginText: "Login",
signupText: "Sign Up",
forgotText: "Forgot Password?",
rememberText: "Remember Me",
text_1: "with your social network",
text_2: "By clicking, you are continue to receive newsletters & promotions from Appo"
... |
from __future__ import absolute_import
__author__ = 'Aneil Mallavarapu (http://github.com/aneilbaboo)'
from datetime import datetime
import six
import dateutil.parser
from .errors import InvalidTypeException
def default_timestamp_parser(s):
try:
if dateutil.parser.parse(s):
return True
... |
/*!
Buttons for DataTables 1.1.0
©2015 SpryMedia Ltd - datatables.net/license
*/
(function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(n){return e(n,window,document)}):"object"===typeof exports?module.exports=function(n,o){n||(n=window);if(!o||!o.fn.dataTable)o=require("datat... |
"""
Wrapper for python import strings.
"""
from typing import Any, List
class ImportStringError(Exception):
"""
Main error for `ImportString`.
"""
class ImportString:
"""
Wrapper for python import strings.
Arguments:
value -- Import string.
"""
def __init__(self, value: str... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import { createGlobalStyle } from 'styled-components'
import fontFiles from './fonts'
export default createGlobalStyle`
@font-face {
font-family: 'Ogg Regular';
font-style: normal;
font-weight: 300;
src: url(${fontFiles.OggRomanEOT}) format('eot'),
url(${fontFiles.OggRomanWO... |
/*!
* Custom Javascript
*/
function setFooterDate(target) {
var today = new Date();
var yr = today.getFullYear();
$(target).html(yr);
}
function toggleInfo(target) {
var loc = $.trim(target.substring(5,20));
var tgtID = '#info-'+loc;
//alert(tgtID);
var chk = document.getElementById(... |
import MessageHandler from './MessageHandler.js';
const messageHandlers = new Map();
// Support server-side-rendering
if (typeof window !== 'undefined') {
window.addEventListener('message', function (event) {
try {
let data = JSON.parse(event.data);
if (!data.windowID || !data.type) {
return... |
!function(e){function t(t){for(var n,r,i=t[0],a=t[1],l=0,u=[];l<i.length;l++)r=i[l],o[r]&&u.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);u.length;)u.shift()()}var n={},o={3:0};function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].cal... |
# -*- coding: utf-8 -*-
import torch
import numpy as np
import sys
import subprocess
import os
import unittest
import itertools
import warnings
import math
from math import inf, nan, isnan
import random
from random import randrange
from itertools import product
from functools import reduce
from torch.testing._interna... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _util = require("./util");
function defaultTemplate({
template
}, opts, {
imports,
interfaces,
componentName,
props,
jsx,
exports
}) {
const plugins = ['jsx'];
if (opts.typescript) {
plugins.push('typesc... |
// @flow
class C {}
// XYZXYZ
export default class {
array = [];
num = 1;
}
|
import React from 'react'
import {Jumbotron, Container} from 'react-bootstrap'
const NonprofitBanner = (props) => {
console.log(props)
return(
<Jumbotron fluid>
<Container>
<h1>{props.nonprofit.name}</h1>
<p>
Contact info: {props.non... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, 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
#
# ... |
"""
edx_manager_access_api Django application initialization.
"""
from __future__ import absolute_import, unicode_literals
from django.apps import AppConfig
class EdxManagerAccessApiConfig(AppConfig):
"""
Configuration for the edx_manager_access_api Django application.
"""
name = 'edx_manager_access_... |
/*
* Ext JS Library 3.0 Pre-alpha
* Copyright(c) 2006-2008, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
/**
* @class Ext.Element
*/
Ext.Element.addMethods({
/**
* Measures the element's content height and updates height to match. Note: this function uses setTimeout... |
# qubit number=4
# total number=42
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... |
import Transaction, {
TRANSACTION_REGISTRY,
} from "../transaction/Transaction.js";
import TopicId from "./TopicId.js";
/**
* @namespace proto
* @typedef {import("@hashgraph/proto").IConsensusDeleteTopicTransactionBody} proto.IConsensusDeleteTopicTransactionBody
* @typedef {import("@hashgraph/proto").ITransacti... |
const {extname,dirname,resolve,sep} = require('path');
const {FileLoader , PathReadResult} = require('./file-loader');
const {lookupRules} = require('./lookup-rules');
class FileTraceResult{
constructor(name){
this.name = name;
this.requires = [];
}
addRequire(dependency){
if (!thi... |
/* global SLang : true, parser */
(function () {
"use strict";
var A = window.SLang.absyn;
var E = window.SLang.env;
function nth(n) {
switch (n+1) {
case 1: return "first";
case 2: return "second";
case 3: return "third";
default: return (n+1) + "th";
}
}
function typeCheckPrimitive... |
#!/usr/local/bin/python3
"""
Copyright (c) 2015-2019 Ad Schellevis <ad@opnsense.org>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain th... |
import { refreshEntryPositions } from '../../../global/functions/producers/refreshEntryPositions';
import { getAssignedParticipantIds } from '../../getters/getAssignedParticipantIds';
import { modifyDrawNotice } from '../../notifications/drawNotifications';
import { SUCCESS } from '../../../constants/resultConstants';... |
# python
# import warnings
# Third party imports
import numpy as np
# grAdapt
from .base import Initial
from grAdapt.utils.sampling import sample_corner_bounds
class Vertices(Initial):
"""
Samples vertices if n_evals >= 2 ** len(bounds).
Else low discrepancy sequences are sampled.
"""
def __ini... |
require("dotenv").config();
var { createProxyMiddleware } = require("http-proxy-middleware");
module.exports = {
siteMetadata: {
title: `Sheila Anne`,
author: `Sheila Anne Murray`,
description: `Transformational life coaching with Sheila Anne Murray`,
siteUrl: `https://www.sheilaanne.com`,
social... |
// 这里存放
|
import Main from './Main.js';
export default Main; |
import numpy as np
from proximal.halide.halide import Halide
from proximal.utils.utils import Impl
from .prox_fn import ProxFn
class norm1(ProxFn):
"""The function ||x||_1.
"""
def init_tmps(self):
"""Initialize temporary variables for _prox method.
"""
self.v_sign = np.zeros(sel... |
import { stateSetIn } from '@/libs/utils';
// import { getMenu } from '@/api/base';
const state = {
menu: [],
currentMenu: null,
};
const getters = {
menu: state => state.menu,
currentMenu: state => state.currentMenu,
};
const actions = {
async updateField({ commit }, payload) {
commit('updateState', pay... |
import React from 'react'
import styles from './youtube-embed.module.css'
const YoutubeEmbed = ({node}) =>
{
var frameSrc = node.data.target.fields.watchKey['en-US']
return (
<div className={styles.parent}>
<iframe src={`https://www.youtube.com/embed/${frameSrc}`} width="560" height="315" f... |
define([
'dojo/_base/declare',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dijit/_WidgetsInTemplateMixin',
'dojo/_base/lang',
'dojo/_base/array',
'dojo/on',
'dojo/aspect',
'dojo/topic',
'dojo/number',
'dojo/dom-style',
'dijit/registry',
'esri/graphic',
'esri... |
# -*- 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "Hotel Management",
"color": "grey",
"icon": "fa fa-bed",
"type": "module",
"label": _("Hotel Management")
}
]
|
from pyot.models import lol
from pyot.utils import PtrCache
async def iterate_match_events():
cache = PtrCache()
match = await lol.MatchTimeline(id=3442099474).get()
for team in match.teams:
for p in team.participants:
for event in p.timeline["events"]:
pass
|
function pad (n) {
return n < 10 ? '0' + n.toString(10) : n.toString(10);
}
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
function twelveHour(hour) {
return hour == 0 ? 12 : hour > 12 ? hour - 12 : hour;
}
// 26 Feb 16:19:34
function timestamp (d) {
retur... |
import {createStore, applyMiddleware} from 'redux';
import {composeWithDevTools} from 'redux-devtools-extension';
import rootReducer from './reducers/RootReducer';
import thunk from 'redux-thunk';
import {socketMiddleware} from './SocketMiddleware';
const middleware = [thunk, socketMiddleware('http://localhost:8080/ap... |
/**
* Pure Modal v1.0.3
* (c) 2019 Roman Slonov
* Released under the MIT License.
*/
var PureModal=function(){"use strict";var t="modal-backdrop",i="is-open",s="in",e="out",o="modal-dialog",n=27,a=9,r={transition:!0},l=function(t){return window.console.error("PureModal: "+t)},c=function t(i,s){this.id=i,this.con... |
# coding: utf-8
"""
THORChain API
This documentation outlines the API for THORChain. NOTE: This document is a **work in progress**. # noqa: E501
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest... |
const dragonForms = require('./dragon-forms');
module.exports = {
tertiary: {
items: [
{ href: '/search', label: 'Search' },
],
},
footer: {
items: [
{ href: '/page/about-us', label: 'About Us' },
{ href: '/page/contact-us', label: 'Contact Us' },
{ href: 'https://designmanufa... |
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/axios/index.js":
/*!*************************************!*\
!*** ./node_modules/axios/index.js ***!
\*************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
module... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails oncall+relay
* @flow strict-local
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
const Profiler... |
var index = {
// Application Constructor
initialize: function() {
this.bindEvents();
},
bindEvents: function() {
document.addEventListener('deviceready', this.onDeviceReady, false);
document.addEventListener("backbutton", app.finishOnBackDown, false);
$(document)
... |
var searchData=
[
['enums',['Enums',['../namespace_omni_kassa_1_1_model_1_1_enums.html',1,'OmniKassa::Model']]],
['exceptions',['Exceptions',['../namespace_omni_kassa_1_1_exceptions.html',1,'OmniKassa']]],
['http',['Http',['../namespace_omni_kassa_1_1_http.html',1,'OmniKassa']]],
['model',['Model',['../namespac... |
"""
The Prefect Storage interface encapsulates logic for storing, serializing and even running Flows. Each storage unit is able to store _multiple_ flows (possibly with the constraint of name uniqueness within a given unit), and exposes the following methods and attributes:
- a name attribute
- a `flows` attribute th... |
"""
This is the extension to RFC 5234 which adds case-sensitive char-val.
Collected rules from RFC 7405
https://tools.ietf.org/html/rfc7405
"""
from ..parser import Rule as _Rule
from .misc import load_grammar_rules
from . import rfc5234
@load_grammar_rules(
[
(rule.name, rule)
for rule in rfc52... |
import * as tslib_1 from "tslib";
import * as React from 'react';
import * as stylesImport from './BaseFloatingPicker.scss';
import { BaseComponent, css, KeyCodes } from '../../Utilities';
import { Callout, DirectionalHint } from '../../Callout';
import { SuggestionsControl } from './Suggestions/SuggestionsControl... |
import Check from "../Core/Check.js";
import defaultValue from "../Core/defaultValue.js";
import defined from "../Core/defined.js";
import MetadataEntity from "./MetadataEntity.js";
/**
* Metadata about the tileset.
* <p>
* See the {@link https://github.com/CesiumGS/3d-tiles/tree/main/extensions/3DTILES_metadata|3D... |
# -*- coding: utf-8 -*-
from sdklib.behave.requests import safe_add_http_request_context_to_behave_context
def sdklib_before_all(context):
"""
Initialization method that will be executed before all execution.
:param context:
:return:
"""
safe_add_http_request_context_to_behave_context(contex... |
import { createMapInternal } from 'guide4you/src/main'
import { registerModule } from 'guide4you/src/moduleRegistration'
import defaultClientConf from 'file-loader?name=conf/[name].[ext]!mustache-loader!../client.commented.json'
import defaultLayerConf from 'file-loader?name=conf/[name].[ext]!mustache-loader!./layers.... |