text stringlengths 3 1.05M |
|---|
const computeWeeklyDays = (data, rruleObj) => {
let weekdays = [];
if (rruleObj.freq !== 2) {
return data.repeat.weekly.days;
}
if (rruleObj.byweekday) {
weekdays = rruleObj.byweekday.map((weekday) => weekday.weekday);
}
return {
mon: weekdays.includes(0),
tue:... |
import GameService from './game.service';
describe('Game Service', function(){
let service;
let API_URL = 'api-url',
resource = jasmine.createSpy('resource').and.callFake(function() {
return {
save: jasmine.createSpy('save')
}
}),
state = {
go: jasmine.createSpy(... |
from __future__ import absolute_import
import unittest
from .util import extract_numerical_value
from .model import Missing
def isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
return abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)
class TestSelector(unittest.TestCase):
def test_extract_numerical_value... |
/**
* Suitelet that changes the PO Form Type
*/
function crearFacturaCo(request, response)
{
/*var id = request.getParameter('paramInCo');
nlapiLogExecution('ERROR', 'crearFacturaCo: ', 'SL| Value request id parameter: ' + id);*/
var valT = "POCD_HD000041";
var myvar = '<?xml version="1.0" encod... |
//take 2 objects that have string arrays and alternately print them out to the console
function AlternatingStrings(obj1, obj2) {
//find the smaller arrays
let smallerArray = Math.min(obj1.stringArray.length, obj2.stringArray1.length);
let fullString = '';
for (let i = 0; i < smallerArray; i++) {
... |
from __future__ import print_function # In python 2.7
import os, sys
sys.path.append('/home/ubuntu/sebastian')
from flask import Flask, request, redirect, url_for, json, make_response, request
from flask import send_from_directory
from flask import render_template
from werkzeug import secure_filename
import random, st... |
/**
* Riode Main Javascript File
*/
"use strict";
var $ = jQuery.noConflict();
/* jQuery easing */
$.extend($.easing, {
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
return $.easing[$.easing.def](x, t, b, c, d);
},
easeOutQuad: function (x, t, b, c, d) {
return -c * (t /= d) ... |
import {useContext} from 'react';
import {useApiClient} from './useApiClient';
import {DoneTaskContext} from '../_context/DoneTaskContext';
import {PendingTaskContext} from '../_context/PendingTaskContext';
export const useTaskApi = () => {
const {client} = useApiClient();
const [, setDoneTasks] = useContext(Don... |
# Programa que realice cualquiera de las figuras anteriores
print("Selecciona la figura que quieres crear,")
print("Puedes elegir entre las siguientes figuras:")
carlos=input("Triángulo,Cuadrado,Pentágono,Hexágono,Octógono y Decágono: ")
import turtle
turtle.Turtle
l=100
turtle.bgcolor("blue")
turtle.color("pink")
tu... |
import $axios, { api } from '@/js/api'
export default {
namespaced: true,
state: {
authenticated: false,
user: null,
},
getters: {
authenticated(state) {
return state.authenticated
},
user(state) {
return state.user
},
},
mutations: {
setAuthenticated(state, value... |
"use strict";
window.globals = require('./can-globals');
|
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/db_name');
// map function
var map = function(){
emit(this.field_to_group_by, {
other_fields: this.other_fields
// list other fields like above to select them
})
}
// reduce function
var reduce = function(key, values){
return {
... |
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as orgApi from 'actions/api/organisation';
import * as userApi from 'actions/api/user';
import RegisterPanel from '../index';
function mapStateToProps(state, ownProps) {
const { app, home } = state;
return {
orgs: app.o... |
from django.contrib import admin
from django.urls import path, include
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('admin/', admin.site.urls),
path('api/user/', include('user.urls')),
path('api/recipe/', include(... |
module.exports = {
siteMetadata: {
title: `Praktik`,
description: `Vodoinštalačný material PRAKTIK Nové Mesto nad Váhom. Vodovodné Batérie, ...`,
author: `@coderkin`
},
plugins: [
// {
// resolve: 'gatsby-source-googlemaps-geocoding',
// options: {
// key: 'AIzaSyAWJm6cxzq48liRWhS45Otn0DnfncMvc_k',... |
define(function (require) {
var exports = require('./exports');
var q = require('quack');
var Matrix = require('./matrix');
return exports.Vector = q.createAbstractClass(Matrix, {
toVectorN: new q.AbstractMethod(),
reversed: new q.AbstractMethod(),
toMatrixNM: function() {
... |
""" networkx interface
"""
import operator
import networkx
from automol.graph._graph_base import atom_keys
from automol.graph._graph_base import bond_keys
from automol.graph._graph_base import atom_symbols
from automol.graph._graph_base import atom_implicit_hydrogen_valences
from automol.graph._graph_base import atom_s... |
import { POSICION_USER, NO_DEVICE, SIN_PERMISOS, LOADING_LOCATION } from './types';
import { Platform } from 'react-native';
import { Constants, Location, Permissions } from 'expo';
export const treaUbicacion = () => {
return async (dispatch) => {
dispatch({type: LOADING_LOCATION})
if (await (Platform.O... |
import argparse
import os
from actions import all_modes
from actions import help_dict
from actions import resampling_filters
from actions import supported_formats
import util
def resize(im, width, height, resample):
if width < 1: width = 1
if height < 1: height = 1
# In case the user hasn't given a resam... |
import { AsyncStorage } from 'react-native'
export default class Storage {
static async get(key, defaultValue) {
let stored
try {
stored = await AsyncStorage.getItem(key)
stored = JSON.parse(stored)
} catch (err) {
stored = null
}
if (defaultValue && stored === null) {
sto... |
$(document).ready(function(){
$(".navbar a, footer a[href='#myPage']").on('click', function(event) {
event.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 900, function(){
window.location.hash = hash;
... |
import { Link as RouterLink } from 'react-router-dom';
// material
import { styled } from '@mui/material/styles';
import { Box, Card, Link, Container, Typography } from '@mui/material';
// layouts
import AuthLayout from '../layouts/AuthLayout';
// components
import Page from '../components/Page';
import { MHidden } fro... |
"""save the data into db"""
import os
from typing import List, Dict
import pickle
from copy import deepcopy
from type import DataNodeStatus
import json
import dataclasses
class DB:
"""abstract class for save and search data"""
def save(self, key: str, value: DataNodeStatus):
raise NotImplementedError
... |
#!/usr/bin/python3
from __future__ import print_function
import argparse
import errno
import glob
import json
import logging
import os
import os.path
import re
import shutil
import subprocess
import sys
import time
from subprocess import check_output
from textwrap import wrap
class FoundBugException(Exception):
... |
import React from 'react';
import RightContent from '../GlobalHeader/RightContent';
import BaseMenu from '../SiderMenu/BaseMenu';
import styles from './index.less';
import LogoImg from '../LogoImg';
export default class TopNavHeader extends React.PureComponent {
render() {
const { theme, contentWidth } = this.pr... |
"""empty message
Revision ID: ac483cfeb230
Revises: b29e2c4bf8c9
Create Date: 2017-10-11 10:16:39.682591
"""
# revision identifiers, used by Alembic.
revision = 'ac483cfeb230'
down_revision = 'b29e2c4bf8c9'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{172:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return i})),n.d(t,"metadata",(function(){return o})),n.d(t,"rightToc",(function(){return p})),n.d(t,"default",(function(){return s}));var r=n(2),a=n(6),c=(n(0),n(299)),i={title:"Form / Chec... |
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import Img from "gatsby-image"
const Watergirl = props => {
const data = useStaticQuery(graphql`
query {
placeholderImage: file(relativePath: { eq: "watergirl.jpg" }) {
childImageSharp {
fluid(maxWidth: 700, qualit... |
const visit = require("unist-util-visit");
const toString = require("mdast-util-to-string");
const { breakLiquidTag } = require("./utils");
const getCodepen = require("./embeds/codepen");
const getYoutube = require("./embeds/youtube");
const getCodesandbox = require("./embeds/codesandbox");
const getGoogleslides = re... |
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin;
module.exports = {
// Disable eslint for now
chainWebpack: config => {
config.module.rules.delete('eslint');
},
// compile templates on runtime
runtimeCompiler: true,
configureWebpack: {
// plugins: [new Bundle... |
from pypy.jit.metainterp.optimizeopt.intutils import IntBound, IntUpperBound, \
IntLowerBound, IntUnbounded
from copy import copy
import sys
from pypy.rlib.rarithmetic import LONG_BIT
def bound(a,b):
if a is None and b is None:
return IntUnbounded()
elif a is None:
return IntUpperBound(b)
... |
# vim:ts=4:sts=4:sw=4:expandtab
import logging
import threading
import time
class X(threading.local):
def __init__(self):
self._total = {}
self._begin = {}
self._count = {}
x = X()
def begin(name):
x._begin[name] = time.time()
def end(name):
if not name in x._begin:
rais... |
const Career = require('../models/careers'),
mongoose = require('mongoose'),
base_URL = "http://localhost:3000/api/careers/";
module.exports = {
read: async (req, res, next) => {
const careers = await Career.find({});
res.status(200).json({
success: true,
count: careers.length,
... |
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import app from './app.vue'
import routerObj from './router.js'
var vm = new Vue({
el: '#app',
render: c =>c(app),
router: routerObj
})
|
# Copyright 2017 Google 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 required by applicable law or agreed to in writing, ... |
import React from "react"
import { graphql, Link } from 'gatsby';
import Img from "gatsby-image"
import { DiscussionEmbed } from "disqus-react"
import Layout from "../components/layout"
import SEO from "../components/seo"
class PostTemplate extends React.Component {
render() {
const frontmatter = this.props.dat... |
# -*- coding: utf-8 -*-
"""The environment controller for MapWorld.
"""
from transitions import Machine
from IPython.display import display, Image
LIST_DIRECTIONS = ["n", "s", "e", "w"]
class MapWorld(object):
"""The MapWorld environment. State machine for one agent.
Tries to be general in what it returns... |
/*! For license information please see 725e64e8.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[6992,2240],{67810:function(t,e,n){n.d(e,{o:function(){return l}});n(94604);var r=n(87156);function o(t){return o="function"==typeof Symbol&&"symbo... |
window.addEventListener('load', () => {
svgIcons = document.querySelectorAll(".skills__data-img");
const storage = localStorage.getItem("selected-theme")
svgIcons.forEach(svgIcon => {
if (storage.toString() == "dark") {
svgIcon.classList.add("skills__data-img-dark")
}
els... |
//---------------------------------------------------------------------
// Favorites panel
//---------------------------------------------------------------------
// Copyright (C) 2007-2011 The NOC Project
// See LICENSE for details
//---------------------------------------------------------------------
console.debug("... |
////////////////////
// if key and value are identical we condense to single word
////////////////////
const color = 'red';
// const car = {
// color: color
// };
const car = {
color
};
console.log(car);
////////////////////
// default function arguments
////////////////////
function makeCake (recipe, type =... |
module.exports = {
// 'primary-color': '#1DA57A',
};
|
from runtime_data.heap.class_member import ClassMember
from runtime_data.heap.utils import get_default_value, is_primitive
class ClassField(ClassMember):
def __init__(self, clazz, class_file_member):
super().__init__(clazz, class_file_member)
self.val = class_file_member.get_value()
if sel... |
/*
* Copyright 2018 dialog LLC <info@dlg.im>
* @flow
*/
export type AttachmentFile = Blob | File;
export type Attachment = {
file: AttachmentFile,
isDocument: boolean
};
export type AttachmentModalProps = {
className?: string,
current: number,
sendAsFile: boolean,
attachments: Attachment[],
onClose:... |
document.addEventListener('DOMContentLoaded', (event) => {
// Toggle mobile menu
const jlbestblog_toggleMobileMenu = () => {
const mobileMenuIcon = document.getElementById("mobile-menu-icon");
const navigation = document.getElementById("navigation");
if (mobileMenuIcon) {
... |
// All the options
const OPTIONS = {
name : "",
icon : "",
message : "",
isVCE : false,
isVE : false,
isCED : false,
isCE : false,
isView : false,
isAdd : false,
isCreate : false,
isCopy : false,
isEdit : false,
... |
const assert = require('assert')
const ListRepository = require('./listRepository')
describe.skip('List Repository', () => {
it('Should save a new list', async () => {
// Given
const repository = new ListRepository()
// When
const ret = await repository.save({ id: 1, name: 'List 1' })
// Then
... |
;(function(){
// Initialize Firebase
var config = {
apiKey: "AIzaSyBk3x6pvOi8sfsfCYTc9JHU_6oC-RW7Q9U",
authDomain: "chat-1-1-cf-25112016.firebaseapp.com",
databaseURL: "https://chat-1-1-cf-25112016.firebaseio.com",
storageBucket: "chat-1-1-cf-25112016.appspot.com",
messagingSenderId: "835... |
/**
* index.js
* @author @shawngettler
*
* Main.
*/
import Project from "./Project.js";
import JNSEBinaryData from "./io/JNSEBinaryData.js";
import ZipArchive from "./io/ZipArchive.js";
import Editor from "./ui/Editor.js";
import Toolbar from "./ui/Toolbar.js";
/*
* Run app.
*/
(function() {
let projec... |
#!/usr/bin/env python3
# Copyright (c) 2014-2021 Daniel Kraft
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# RPC tests for the handling of names in the wallet.
from test_framework.names import NameTestFramework, val
from t... |
"use strict";
let datafire = require('datafire');
let fantasydata_nascar_v2 = require('@datafire/fantasydata_nascar_v2').actions;
module.exports = new datafire.Action({
handler: async (input, context) => {
let driver = await Promise.all([].map(item => fantasydata_nascar_v2.DriverDetails({
format: "json",
... |
/*************************************************************
*
* MathJax/localization/en/MathMenu.js
*
* Copyright (c) 2009-2018 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... |
import React from "react";
import Auth from "../utils/auth";
import { useParams } from "react-router-dom";
import { useQuery } from "@apollo/react-hooks";
import { QUERY_THERAPIST } from "../utils/queries";
import ReachOutForm from "../components/ReachOutForm";
const SingleTherapist = (props) => {
const { id: ther... |
import { DesktopController } from "../controllers/DesktopController.js";
import { MobileController } from "../controllers/MobileController.js";
export class ArenaPlayer extends Phaser.Physics.Matter.Sprite
{
/* scene: Scene (Level)
x: X position of player in level (pixel unit)
y: Y position of player... |
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// Respect "... |
import { NEW_LINE_CHARACTER } from 'containers/App/constants';
import uniq from 'lodash/uniq';
export function mapSearchParticipantAssociatedOrg(participant) {
const organizations = participant.practitionerRoles && participant.practitionerRoles
.map((role) => role.organization)
.map((organization) => organiz... |
var searchData=
[
['idlenotificationdeadline',['IdleNotificationDeadline',['../classv8_1_1_isolate.html#aba794ed25d4fa8780b3a07c66a5e5d4a',1,'v8::Isolate']]],
['idletask',['IdleTask',['../classv8_1_1_idle_task.html',1,'v8']]],
['idletasksenabled',['IdleTasksEnabled',['../classv8_1_1_platform.html#ad229642bf16a066... |
const express = require('express')
const PatientController = require('../controllers/patient')
const router = express.Router()
router.get('/list', PatientController.getPatients)
router.post('/add', PatientController.addPatient)
router.put('/update', PatientController.updatePatient)
router.put('/associer', PatientCont... |
define(['mmirf/jscc','mmirf/constants','mmirf/configurationManager','mmirf/grammarConverter','mmirf/util/deferred','mmirf/util/extend','mmirf/util/toArray','mmirf/util/loadFile','mmirf/logger', 'module'],
/**
* Generator for executable language-grammars (i.e. converted JSON grammars).
*
* <p>
* This generat... |
import { FeatureService } from '../../../src/openlayers/services/FeatureService';
import { GetFeaturesBySQLParameters } from '../../../src/common/iServer/GetFeaturesBySQLParameters';
import { FetchRequest } from '../../../src/common/util/FetchRequest';
var featureServiceURL = GlobeParameter.dataServiceURL;
var options... |
# -*- coding: utf-8 -*-
"""This is a generated class and is not intended for modification!
"""
from datetime import datetime
from infobip.util.models import DefaultObject, serializable
from infobip.api.model.Error import Error
from infobip.api.model.Status import Status
from infobip.api.model.Price import Price
cla... |
/*
Language: Pine
Description: Pine (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions.
Category: common, scripting
*/
export default function (hljs) {
var KEYWORDS = {
keyword:
'var if else for to by return break continue and or not =>',
liter... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... |
(function(a,b){if("function"==typeof define&&define.amd)define([],b);else if("undefined"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){"use strict";(function(a,b){if("function"==typeof define&&define.amd)define([],b);else if("undefined"!=typeof exports)b();else{b(),a.FileSaver={export... |
# This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import division, unicode_literals
from datetime import date, datetime, time
from dateuti... |
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby grant... |
'use strict'
var mongoosePaginate = require('mongoose-pagination');
var UsersFB = require('../models/usersfb');
var FanPages = require('../models/fanpages');
var Responds = require('../models/responds');
var responseInboxC = require('./responseInbox');
var InboxSend = require('../models/inboxsends');
var graph = requ... |
import Client from "shopify-buy";
import {
INITIAL_CLIENT,
ADD_TO_CHECKOUT,
} from "../actions/shopifyCheckoutAction";
const initState = {
client: {},
checkout: {},
checkoutId: "",
};
const shopifyCheckoutReducer = (state = initState, action) => {
switch (action.type) {
case INITIAL_CLIENT:
ret... |
import numpy as np
def init(mdlParams_):
mdlParams = {}
# Save summaries and model here
mdlParams['saveDir'] = './models/model_ham_effb2_aug0_drop'
mdlParams['model_load_path'] = ''
# Data is loaded from here
mdlParams['dataDir'] = './Data'
mdlParams['with_meta'] = False
mdl... |
module.exports = () => require("./webpack.all.config");
|
/**
* Copyright (c) 2015, Facebook, Inc.
* 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.
*/
import {
Gr... |
export default {
intersectionObserverThreshold: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1],
} |
(function () {
'use strict';
/**
* Chain to fetch module
* https://github.com/johnpapa/angular-styleguide#style-y022
*/
angular
.module('app.providers')
.service('myService', MyService);
/**
* Avoid anonymous functions as callbacks
* https://github.com/johnpapa/angular-styleguide#st... |
const { resolve } = require('url');
const cheerio = require('cheerio');
const axios = require('@/utils/axios');
const iconv = require('iconv-lite');
const load = ($, baseUrl) => {
const num = $.next('font').text();
const pages = Number.parseInt(/\d+/.exec(num)[0], 10);
let description = '';
for (let p... |
import { expect } from 'chai';
import addDays from 'date-fns/addDays';
import addMonths from 'date-fns/addMonths';
import addYears from 'date-fns/addYears';
import isBeforeDay from '../../src/utils/isBeforeDay';
const today = new Date();
const tomorrow = addDays(new Date(), 1);
describe('isBeforeDay', () => {
it(... |
sweetApp.directive("sidebar", function() {
return {
restrict: 'E',
replace: true,
templateUrl : "js/directives/sidebar.html"
};
}); |
from __future__ import division
from collections import defaultdict
import random
import numpy as np
from albumentations.augmentations.keypoints_utils import KeypointsProcessor
from albumentations.core.serialization import SerializableMeta, get_shortest_class_fullname
from albumentations.core.six import add_metaclas... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var useIsomorphicLayoutEffect = require('@reach/utils/use-isomorphic-layout-effect');
/*
* Welcome to @reach/auto-id!
* Let's see if we can make sense of why this hook exists and its
* implementation.
*
*... |
/**
* three.js extensions for KIMCHI.
* @external THREE
*/
/**
* @constructor Object3D
* @memberOf external:THREE
*/
/**
* @constructor PerspectiveCamera
* @memberOf external:THREE
*/
/**
* @constructor Vector3
* @memberOf external:THREE
*/
/**
* @constructor Matrix3
* @memberOf external:TH... |
var _curry2 = require('./internal/_curry2');
var _pickBy = require('./internal/_pickBy');
/**
* Returns a new object that does not contain a `prop` property.
*
* @func
* @memberOf R
* @category Object
* @sig String -> {k: v} -> {k: v}
* @param {String} prop the name of the property to dissociate
* @param {Obj... |
from builtins import object
from typing import Dict, Optional, Tuple
from empire.server.common.module_models import PydanticModule
class Module(object):
@staticmethod
def generate(
main_menu,
module: PydanticModule,
params: Dict,
obfuscate: bool = False,
obfuscation_co... |
/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/
(function(a){var b={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},c=b[typeof window]&&window||this,d=b[typeof exports]&&exports&&!exports.nodeType&&exports,e=b[... |
# -*- coding: utf-8 -*-
# Visigoth: A lightweight Python3 library for rendering data visualizations in SVG
# Copyright (C) 2020 Visigoth Developers
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the "Software"), to deal... |
# Copyright (c) ZenML GmbH 2020. 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 applica... |
const ClientConfiguration = require('../Auth/ClientConfiguration');
const RuntimeInformationProvider = require('../RuntimeInformationProvider');
const ApiClient = require('../ApiClient');
const AuthService = require('../Auth/AuthService');
const OAuth2ApiClient = require('../OAuth2ApiClient');
const CacheService = requ... |
import logging
try:
from .version import __version__
except ImportError:
pass
from autogluon.core.dataset import TabularDataset # noqa: F401
# TODO: make ForecastingPredictor available
logging.basicConfig(format="%(message)s") # just print message in logs
|
/**
* 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.2.2 (2020-04-23)
*/
(function () {
'use strict';
... |
import React, { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { subCategoryGet } from "../../actions/subCategoryActions";
import ProductCard from "../../components/cards/ProductCard";
const SubCategoryHome = ({ match }) => {
const { slug } = match.params;
const dispatc... |
import http from 'http';
import pify from 'pify';
export const host = 'localhost';
export const port = 6765;
export function createServer(givenPort = port) {
const server = http.createServer((request, response) => {
server.emit(request.url, request, response);
});
server.host = host;
server.port = givenPort;
... |
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import 'dayjs/locale/zh';
dayjs.extend(relativeTime);
export default dayjs;
|
window.alert("Welcome!")
document.getElementById("ctcb").addEventListener("click", function() {
document.getElementById("loremgid").select()
document.execCommand("copy")
})
function copied() {
window.alert("Copied!")
}
|
var http = require("http");
http.get({host: "vitorbritto.com.br"}, function(res) {
if (res.statusCode === 200) {
console.log("This site is up and runnning!");
} else {
console.log("This site might be down!");
}
});
|
'use strict'
import React, { Component } from 'react';
import {
AppRegistry,
Text,
View,
TextInput,
Alert,
ScrollView,
AsyncStorage,
findNodeHandle
} from 'react-native';
import getData from './getData';
import base64 from 'base-64';
import SignInButton from './/button';
import styles from './styleShe... |
import { useCookies } from "react-cookie"
import {useState} from "react"
const cookieOPtions = { path: "/", maxAge: 3600 *24 * 30 *13}
export function useGdpr(initialPreferences) {
const [cookies, setCookie, removeCookie] = useCookies()
const [storedPreferences, setStoredPreferences] = useState( () => {
... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@6thquake/react-material/styles';
import Grid from '@6thquake/react-material/Grid';
import Paper from '@6thquake/react-material/Paper';
import Typography from '@6thquake/react-material/Typography';
import ButtonBase from '@6thqua... |
"""Merry Xmas ported from https://twitter.com/Frozax/status/1342463299909275651
"""
from pypico8 import *
printh(
pico8_to_python(
r"""
pal({129,1,140,12,7},1)
::_::
cls(1)
function e(x,y,r,d)
local d,x,y,r,s,a=d-1,x,y,r,r\2,t()/6
if(d%2==0)a=-a
v=(r+s)*1.2
local f,g=cos(a)*v,sin(a)*v
... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{
/***/ "../pkg/wasm_pie.js":
/*!**************************!*\
!*** ../pkg/wasm_pie.js ***!
\**************************/
/*! exports provided: compute, __wbindgen_object_drop_ref, __wbg_getRandomValues_57e4008f45f0e105, __wbg_randomFillSync_d90848a5... |
#!/usr/bin/env python
#-*-coding:utf-8-*-
"""
A client for webkv
"""
from __future__ import print_function
import json
import sys
if sys.version_info[0]==2:
from urllib import urlencode, urlopen
elif sys.version_info[0]==3:
from urllib.parse import urlencode
from urllib.request import urlopen
else:
r... |
"""
This command implements requirements 1
"""
from django.core.management.base import BaseCommand
from ...functions import current_rent
class Command(BaseCommand):
"Django Command; `lease_rent`."
help = """
Returns a list of current rent sorted in ascending order of rent.
"""
def add_arguments(... |
function saveItem(key,value){
localStorage.setItem(key, value);
}
function getItem(key){
return localStorage.getItem(key);
}
function removeItem(key){
localStorage.removeItem(key);
}
|