text stringlengths 3 1.05M |
|---|
(function(){
var w3cColors = {
aliceblue: '#f0f8ff',
antiquewhite: '#faebd7',
aqua: '#00ffff',
aquamarine: '#7fffd4',
azure: '#f0ffff',
beige: '#f5f5dc',
bisque: '#ffe4c4',
black: '#000000',
blanchedalmond: '#ffebcd',
blue: '#0000ff',
blueviolet: '#8a2be2',
brown: '#a52a2a',
burlywood: '#deb88... |
from datetime import timedelta
from django.test import TestCase
from django.utils import timezone
from eth_account import Account
from hexbytes import HexBytes
from gnosis.eth.constants import NULL_ADDRESS
from gnosis.eth.contracts import get_paying_proxy_contract, get_safe_contract
from gnosis.eth.utils import get_... |
var pg = require("pg");
var Sequelize = require("sequelize");
var db = new Sequelize("todoDB", "postgres","31303",{
dialect: "postgres"
});
var User = db.define("user",{
user_id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true
},
name: Sequelize.ST... |
# vim: set et sw=4 sts=4 fileencoding=utf-8:
#
# Python camera library for the Rasperry-Pi camera module
# Copyright (c) 2013-2017 Dave Jones <dave@waveform.org.uk>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# ... |
var logger = require('winston');
var model = require('../models/alert')();
var Promise = require('promise');
var $ = require('mongo-dot-notation');
module.exports = function() {
var projectionCommonFields = {
__v: false,
isEnabled: false,
};
retur... |
const {nextTick: defaultNextTick} = require('process');
const {setImmediate: nativeSetImmediate} = global;
let callbacks = [];
const nextTick = jasmine.createSpy('nextTick').and.callFake(callback => {
callbacks.push(callback);
});
function cleanup(cb) {
cb();
callbacks.splice(callbacks.indexOf(cb), 1);
}
modu... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017 The TensorFlow 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/lic... |
/**
* Scrollable.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* This mixin makes controls scrollable using custom scrollbars.
*
* @-x-less Scrollable.less
... |
/*!
* js-data-firebase
* @version 1.1.2 - Homepage <http://wwwjs-data.io/docs/dsfirebaseadapter>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data-firebase/blob/master/LICENSE>
*
* @overview Firebase adapter for js-data.
*/
!function... |
var array = [1, 2, 3, 5, 1, 5, 9, 1, 2, 8];
uniqueArray(array);
function uniqueArray(array){
var Obj = {};
var unique = [];
for(var i=0; i<array.length; i++){
if(!Obj.hasOwnProperty(array[i]))
{
Obj[array[i]] = 1;
unique.push(array[i]);
}
}
return unique;
}
|
import React from 'react'
import { siteMetadata } from '../../gatsby-config'
import Layout from 'components/Layout'
import Meta from 'components/Meta'
import App from 'components/App'
class Index extends React.Component {
render() {
const { location } = this.props
return (
<div className="container">
... |
/* extension.js
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope tha... |
/*! For license information please see pdf.worker.entry-4884ec79059bf8b5204c.worker.js.LICENSE.txt */
!function(e){var t={};function a(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.definePropert... |
import React from 'react';
import classnames from 'classnames';
const defaultProps = {
clsPrefix : "u-navbar-brand"
}
class NavbarBrand extends React.Component {
render() {
const { className, children,clsPrefix, ...props } = this.props;
if (React.isValidElement(children)) {
return React.cloneElem... |
from __future__ import absolute_import
from __future__ import print_function
import json
from ._geom import Polygon, Polyline, Point, MultiPoint
#TODO: from arcgis.geom import Polygon, Polyline, Point, MultiPoint
########################################################################
class StatisticFilter(object):
... |
from .translator import Translator, VectorTranslatorMixin, RasterTranslatorMixin
from .geometry_msgs import Pose2DTranslator, PoseStampedTranslator
from .json_transport import JSONTransportTranslator
from .nav_msgs import OccupancyGridTranslator, OdometryTranslator
from .sensor_msgs import NavSatFixTranslator
from .st... |
import React, { useState } from 'react'
import { Row, Col, message } from 'antd'
import { Form, Input, Typography, Divider } from 'antd'
import { useForm } from 'react-hook-form'
import Navbar from './navbar'
const { Title, Paragraph, Text } = Typography
// import { useForm } from 'react-hook-form';
function Contact() ... |
'use strict';
/**
* Module dependencies
*/
var path = require('path'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller'));
/**
* Show the current user
*/
exports.read = function (req, res) {
res.... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[152],{
/***/ "./frontend/src/views/ui/page-layouts/LayoutBlank.vue":
/*!************************************************************!*\
!*** ./frontend/src/views/ui/page-layouts/LayoutBlank.vue ***!
\****************************************************... |
import numpy as np
import pyximport
pyximport.install(setup_args={"include_dirs":np.get_include()},build_dir="build", build_in_temp=False)
from align_fill import cython_fill_table
import sys
import torch
sys.path.append("../../../espnet")
from espnet.asr.asr_utils import get_model_conf
import os
from pathlib impo... |
#!/usr/bin/env yamtbx.python
"""
(c) RIKEN 2015. All rights reserved.
Author: Keitaro Yamashita
This software is released under the new BSD License; see LICENSE.
"""
import os
from yamtbx.dataproc.xds import xscalelp
def run(wdir):
xscale_lp = os.path.join(wdir, "XSCALE.LP")
corrs = xscalelp.get_pairwise_c... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may n... |
# -*- encoding: utf-8 -*-
#
# Copyright © 2022 Mergify SAS
#
# 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 applicabl... |
# Copyright 2013 Francisco Souza. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import multiprocessing
def power(value):
return value * value
if __name__ == "__main__":
numbers = xrange(1, 20001)
pool = multiprocessing.Pool(20)... |
import React, { useCallback, useState } from 'react';
import classnames from 'classnames';
import { useOutsideClick } from '../../../utils/hooks';
import { useUpdateRunDetails } from '../../../apollo/mutations';
import { toHumanReadableTime } from '../../../utils/date-utils';
import CloseIcon from '../../icons/close';
... |
asynctest(
'browser.tinymce.core.ui.PanelTest',
[
'ephox.agar.api.Pipeline',
'ephox.mcagar.api.LegacyUnit',
'tinymce.core.dom.DOMUtils',
'tinymce.core.dom.EventUtils',
'tinymce.core.test.UiUtils',
'tinymce.core.test.ViewBlock',
'tinymce.core.ui.Api',
'tinymce.core.ui.Factory',
't... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactPolyglot = require("react-polyglot");
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
var _propTypes... |
import {USER_LOGIN, USER_LOGIN_SUCCESS, USER_LOGIN_FAILURE} from './actions';
const initialState = {
id: null,
name: null,
email: null,
accessToken: null,
};
const reducer = (state = initialState, action) => {
switch (action.type) {
case USER_LOGIN_SUCCESS: {
const {id, name, email, accessToken} =... |
import warnings
from collections import defaultdict
from itertools import chain
from typing import Dict, Iterable, Iterator, List, Optional, Set
from maggma.core import Builder, Store
from maggma.utils import grouper
from monty.json import MontyDecoder
from pymatgen.analysis.phase_diagram import PhaseDiagramError
from... |
from torch.utils.ffi import _wrap_function
from ._psroi_pooling import lib as _lib, ffi as _ffi
__all__ = []
def _import_symbols(locals):
for symbol in dir(_lib):
fn = getattr(_lib, symbol)
locals[symbol] = _wrap_function(fn, _ffi)
__all__.append(symbol)
_import_symbols(locals())
|
var GetTileX = function (worldX, worldY) {
var tileX;
switch (this.mode) {
case 0: // orthogonal
worldX -= this.x;
tileX = Math.round(worldX / this.width);
break;
case 1: // isometric
worldX -= this.x;
worldY -= this.y;
tile... |
/**
* models which holds the current order with the necessary information
*/
// {block name="backend/create_backend_order/model/create_backend_order"}
//
Ext.define('Shopware.apps.SwagBackendOrder.model.CreateBackendOrder', {
/**
* Extends the Ext.data.Model
*/
extend: 'Ext.data.Model',
require... |
"use strict";(function(){var __webpack_modules__={670:function _(module,__unused_webpack_exports,__webpack_require__){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value}catch(error){reject(error);return}if(info.done){resolve(value)}else{Promise.resolve(v... |
import React, { useEffect, useState } from "react";
import PropTypes from "prop-types";
import SwipeableViews from "react-swipeable-views";
import CustomToolbar from "../../CustomToolbar";
import Checkbox from "@material-ui/core/Checkbox";
import { makeStyles, useTheme } from "@material-ui/core/styles";
import Select f... |
import { nullParser } from './Options/parsers';
const { ParseServerOptions } = require('./Options/Definitions');
const logsFolder = (() => {
let folder = './logs/';
if (typeof process !== 'undefined' && process.env.TESTING === '1') {
folder = './test_logs/'
}
if (process.env.PARSE_SERVER_LOGS_FOLDER) {
... |
'use strict';
const ServiceBrokerApiController = require('./ServiceBrokerApiController');
module.exports = {
ServiceBrokerApiController: ServiceBrokerApiController,
serviceBrokerApi: new ServiceBrokerApiController()
};
|
import { mount, shallowMount } from '@vue/test-utils'
import NetlifyForm from '@/components/NetlifyForm'
describe('NetlifyForm', () => {
it('Renders a form', () => {
const wrapper = shallowMount(NetlifyForm, {
propsData: {
formName: 'testForm'
}
})
... |
import { getImageLoadObject, putImageLoadObject } from './imageCache.js';
import EVENTS, { events } from './events.js';
import triggerEvent from './triggerEvent.js';
/**
* This module deals with ImageLoaders, loading images and caching images
* @module ImageLoader
*/
const imageLoaders = {};
let unkn... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
/**
* 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.
*
* @flow
*/
export {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
Children,
Component,
Fragment,
Profiler,
Pure... |
(function() {
'use strict';
angular
.module('events.common')
.factory('EventEmmiter', EventEmmiterService);
/**
* @ngdoc service
* @name events.common.factory:EventEmmiter
*
* @description
* TODO: Describe this service
*
*/
EventEmmiterService.$inject = [];
function EventEmmiterService () {
... |
'use strict';
const AzureSearch = require('./lib/azuresearch');
hexo.extend.console.register('azuresearch', 'Index posts on Azure Search', {
options: []
}, (options, callback) => {
AzureSearch(hexo, options, callback);
}); |
import React from "react";
import { Link } from "react-router-dom";
import { makeStyles, useTheme } from "@material-ui/core/styles";
import {
Grid,
Hidden,
IconButton,
Typography,
useMediaQuery,
} from "@material-ui/core";
import {
analytics,
backArrow,
ecommerce,
forwardArrow,
outreach,
seo,
} f... |
def __init__(self):
print("Created ice cream!")
def eat(self):
print("Yum!")
|
'use strict';
angular.module('main')
.controller('VenueMenuController', function ($scope, $state, $timeout, $ionicLoading, $ionicPopup, AppGlobals, CartService, AppModalService, LoginService, SmsService, MessageService, VenueService, menu, $cordovaNativeAudio, $cordovaLocalNotification, $cordovaVibration, $cordovaB... |
/**
*
* Almost a "Class"
*
* 1. Using a Proxy constructor
* 2. Storing the SuperClass
* 3. Resetting the constructor pointer, otherwise all Child instances
* will have Parent as constructor.
* 4. Borrow the Parent constructor
*/
var inherits = (function () {
// This way the proxy function is declared once,... |
import React from "react";
import { header, bodyContent } from "./fileFormatter";
const additionalResources = (
<div>
{header("Additional Resources")}
{bodyContent(`
For additional learning resources, check out
- [The Elements of Statistical Learning](https://web.stanford.edu/~hastie/ElemStatLearn/)
- [Stanford C... |
webpackJsonp([0x81b8806e4260],{334:function(e,o){e.exports={data:{site:{siteMetadata:{title:"Gatsby Practice Site",desc:"Finding my feet with React, Gatsby and Styled Components"}},allMarkdownRemark:{edges:[{node:{id:"/Users/lev/dev/gatsbypractice-lut/src/posts/first-post-via-netlify-cms.md absPath of file >>> Markdown... |
'use strict';
const electron = require('electron');
const {
app,
BrowserWindow,
Menu,
globalShortcut,
ipcMain,
webContents,
dialog,
net,
} = electron;
const path = require('path');
const fs = require('fs');
const packageJson = require('../package.json');
const ChildProcess = require('ch... |
const BotaoDeleta = () => {
const botaoDeleta = document.createElement('button')
botaoDeleta.innerText = 'deletar'
botaoDeleta.addEventListener('click', deletarTarefa)
return botaoDeleta
}
const deletarTarefa = (evento) => {
const botaoDeleta = evento.target
const tarefaCo... |
import {
login,
logout,
getUserInfo,
getMessage,
getContentByMsgId,
hasRead,
removeReaded,
restoreTrash,
getUnreadCount,
getUserInfoNoPass
} from '@/api/user'
import {setToken, getToken} from '@/libs/util'
export default {
state: {
userInfo: {},
userName: '',
userId: '',
avatarImg... |
class Foo {
call foobar() {
foo();
}
}
|
'use strict';
var dgram = require('dgram');
var min = require('osc-min');
var Message = require('./Message');
var Client = function (host, port) {
this.host = host;
this.port = port;
this._sock = dgram.createSocket({
type: 'udp4',
reuseAddr: true
});
this.kill = function() {
... |
/**
* @constructor
* @class Validator
* @param {Array|Object} validations
*/
function Validator(validations) {
validations = validations || [];
this.cs = {};
this.vs = parseValidations(validations);
}
function parseValidations(validations, getField) {
validations = getType(validations) === TYPE_ARRAY ? val... |
import requests
import json
url = 'https://www.cbr-xml-daily.ru/daily_json.js'
response = requests.get(url)
data = json.loads(response.text)
print(data)
|
export default {
server: 'http://localhost:3000'
};
|
module.exports = {
siteMetadata: {
title: `Toque Bateria`,
description: `Conheça o maior curso online de bateria do Brasil`,
author: `@vitor_lambert_`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: ... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
const authors = require("./authors.json");
const books = require("./books.json");
/**************************************************************
* getBookById(bookId, books):
* - receives a bookId
* - recieves an array of book objects
* - returns the book object that matches that id
* - returns undefined if no m... |
$(function (){
var notes = notes || {};
/* Display current datetime and hours */
function CurrentDate(container){
var monthNames = [ "January", "February", "March", "April", "May", "June","July", "August", "September", "October", "November", "December" ];
var dayNames= ["Sunday","Monday","T... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from .base import BaseViewer
import sys
from subprocess import check_call, Popen as run_command
class FreedesktopDefaultViewer(BaseViewer):
def __str__(self):
return "Freedesktop Default Viewer"
def load(self):
if not check_call("which xdg-open... |
'use strict';
const { prompt } = require('enquirer');
prompt({
type: 'confirm',
name: 'really',
message: 'Wirklich?',
initial: 'j',
default: '(J/n)',
onRun() {
this.isTrue = input => input === 'j';
this.isFalse = input => input === 'n';
}
})
.then(console.log)
.catch(console.log);
|
module.exports = function(that) {
var value = that.rules.number
|| that.rules.integer
|| typeof that.rules.min=='object'? // moment object
that.value:
that.value.length;
if (that.rules.number || that.rules.integer) value = parseFloat(value);
return (value... |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "TwendeMars.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that t... |
const { DateTime } = require("luxon");
const pluginRss = require("@11ty/eleventy-plugin-rss");
module.exports = function(eleventyConfig) {
const CleanCSS = require('clean-css');
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addFilter("readableDate", dateObj => {
return DateTime.fromJSDate(dateObj).toForma... |
$(function () {
/* get user from local storage */
var user = amplify.store("user");
if(user != undefined){
/* set loaded token to header */
setHeaderToken(user.token);
}
/* on apicall button press */
$('.apicall').on('click', function () {
$.ajax({
type: 'GE... |
require('dotenv').config();
const axios = require('axios');
const crypto = require('crypto');
const express = require('express');
const moment = require('moment');
const querystring = require('querystring');
const redirect_uri = process.env.REDIRECT_URI;
const serverPort = process.env.SERVER_PORT || 8081;
const app = ... |
# Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... |
module.exports = {
extends: ['../../index.js', '../../jsx-a11y.js'],
}
|
const { ErrorMessage } = require("../lib/messages")
/** Just allow application/json accepts
* @param req
* @param res
* @param next
*/
module.exports = (req, _res, next) => {
if (req.accepts("application/json")) {
return next()
}
return next(new ErrorMessage("Content Type not supported", "server just supports... |
// @flow
import {
dirname,
resolve
} from 'path';
import babelPluginJsxSyntax from '@babel/plugin-syntax-jsx';
import BabelTypes from '@babel/types';
import ajvKeywords from 'ajv-keywords';
import Ajv from 'ajv';
import optionsSchema from './schemas/optionsSchema.json';
import optionsDefaults from './schemas/optio... |
const getPokemonIdFromUrl = url => {
const splitUrl = url.split("/");
return splitUrl[splitUrl.length - 2];
};
module.exports = getPokemonIdFromUrl;
|
import React from 'react'
import fetch from 'isomorphic-fetch'
class Content extends React.Component {
constructor (props) {
super(props)
this.state = {
publications: [],
}
}
componentDidMount() {
this.getPublications()
}
getPublications() {
fet... |
import React from "react";
const Supportdocument = (props) => {
return(
<div className="doc-tile" data-link={props.document_link}>
<div className="doc-icon">
<a href={props.document_link} title={props.document_title}>
<img src={'https://staging.matthewsmarking.com/app/themes/matthewsma... |
/* eslint-disable no-unused-vars */
const React = require('react')
const gatsby = jest.requireActual('gatsby')
module.exports = {
...gatsby,
graphql: jest.fn(),
Link: jest.fn().mockImplementation(
// these props are invalid for an `a` tag
({
activeClassName,
activeStyle,
getProps,
... |
const onError = require('../../../backend/error');
const respond = require('../../../backend/respond');
const strings = require('core/strings');
module.exports = (req, res) => respond(['auth'], (scope) => {
try {
const user = scope.auth.getUser(req);
let base = strings.getBase('frontend');
let acceptedL... |
from __future__ import print_function
import sys
import random
import math
from argparse import ArgumentParser
# import trace generator for $
# Note: this path is relative to bp_me/syn directory
# it would be nice to simply add the directory that TraceGen source lives in to the path
# that python will search for files ... |
function lockedProfile() {
let mainElement = document.querySelector('main');
mainElement.addEventListener('click', onClick);
function onClick(ev) {
if (ev.target.nodeName === 'BUTTON') {
let inputLockElement = ev.target.parentElement.firstElementChild.nextElementSibling.nextElementSibl... |
/*
* @Author: your name
* @Date: 2021-04-08 19:06:10
* @LastEditTime: 2021-04-12 10:06:33
* @LastEditors: Please set LastEditors
* @Description: 双向链表
* @FilePath: \UC-font\components\uct\libs\structure\doublyLinkedList.js
*/
class DoublyLinkedList {
constructor(head = null, tail = null) {
this.head = head
... |
import Visibility from 'visibilityjs';
import { GlLoadingIcon } from '@gitlab/ui';
import { __ } from '~/locale';
import { deprecatedCreateFlash as createFlash } from '~/flash';
import Poll from '~/lib/utils/poll';
import EmptyState from '../components/pipelines_list/empty_state.vue';
import SvgBlankState from '../comp... |
asynctest(
'browser.tinymce.core.keyboard.EnterKey',
[
'ephox.agar.api.Pipeline',
'ephox.mcagar.api.LegacyUnit',
'ephox.mcagar.api.TinyLoader',
'tinymce.core.Env',
'tinymce.core.FocusManager',
'tinymce.core.test.HtmlUtils',
'tinymce.core.util.Tools',
'tinymce.themes.modern.Theme'
]... |
var DJI_TOPO = {"type":"Topology","objects":{"dji":{"type":"GeometryCollection","geometries":[{"type":"MultiPolygon","properties":{"name":null},"id":"-99","arcs":[[[0]],[[1]]]},{"type":"Polygon","properties":{"name":"Ali Sabieh"},"id":"DJ.AS","arcs":[[2,3,4]]},{"type":"Polygon","properties":{"name":"Djibouti"},"id":"DJ... |
var x = void x ; |
'use strict';
describe('RememberMeDirective', function () {
var el, scope, template, compiler, form;
beforeEach(module('wasabi.directives'));
beforeEach(inject(function($rootScope, $compile){
el = angular.element(
'<div style="padding-bottom:10px">' +
'<form name="m... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'LockLevel',
]
class LockLevel(str, Enum):
"""
The level of the lock. Possible values are: NotSpecifie... |
def add_numbers(upper):
if upper == 0:
return upper
else:
return upper + add_numbers(upper - 1)
def main():
total = add_numbers(5)
print("Total:", total)
if __name__ == "__main__":
main()
|
(this.webpackJsonpfrontend=this.webpackJsonpfrontend||[]).push([[0],{23:function(e,t,n){e.exports=n(46)},28:function(e,t,n){},29:function(e,t,n){e.exports=n.p+"static/media/logo.5d5d9eef.svg"},30:function(e,t,n){},31:function(e,t,n){},32:function(e,t,n){},38:function(e,t,n){},45:function(e,t,n){},46:function(e,t,n){"us... |
module.exports={A:{A:{"2":"I F E D A B kB"},B:{"1":"M V N VB S","2":"C O P H J K L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 Q z AB XB CB JB EB FB GB HB DB BB y T KB LB MB NB OB PB IB RB SB M V N jB","2":"dB QB G W I F E D A B C O P H J K L X Y Z a b c d e f g h i j k l m n o p q r s t u v w x rB tB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 v... |
(function(){
if (!String.prototype.startsWith) {
String.prototype.startsWith = function(searchString, position){
position = position || 0;
return this.substr(position, searchString.length) === searchString;
};
}
})();
|
import React, { Component } from "react";
import PropTypes from "prop-types";
import markdownToReact from "markdown-to-react-components";
import BlockQuote from "./block-quote";
import CodePane from "./code-pane";
import Code from "./code";
import Heading from "./heading";
import Image from "./image";
import Link from... |
odoo.define('web.calendar_tests', function (require) {
"use strict";
var AbstractStorageService = require('web.AbstractStorageService');
var CalendarView = require('web.CalendarView');
var CalendarRenderer = require('web.CalendarRenderer');
var Dialog = require('web.Dialog');
var ViewDialogs = require('web.view_dialog... |
import combineReducers from 'redux/lib/combineReducers';
import { createPurchases, calcTotalCost } from './redux/reducers'
export default combineReducers({
purchases: createPurchases,
totalCost: calcTotalCost
});
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[73],{1882:function(n,e,t){"use strict";t.r(e),e["default"]="<template>\n <div style=\"max-width: 800px; width: 100%;\">\n <q-calendar\n v-model=\"selectedDate\"\n view=\"month\"\n locale=\"en-us\"\n style=\"height: 500px;\"\n >\n ... |
const http = require('http');
const fs = require("fs")
const path = require("path")
const requestListener = function (req, res) {
res.writeHead(200);
res.end(fs.readFileSync(path.join(__dirname, "index.html")));
}
const server = http.createServer(requestListener);
server.listen(8080);
|
/**
* Copyright 2020 Inrupt Inc.
*
* 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, modify, merge, publish, d... |
import os
from . import types
import setup
class Vars:
def __init__(self):
self.vars = {}
def add(self, k, v):
data_type = None
if v[0:1] == 's': # if it's a string
v = types.String(v[1:]) # creates a string [1:] removes the s character
elif v[0:1] == 'l': # list... |
var http = require('http');
var configuracoes = {
hostname: 'localhost',
port:3000,
path:'/produtos',
method:'post',
headers: {
'Accept':'application/json',
'Content-type':'application/json'
}
};
/*http.get(configuracoes,function(res){
console.log(res.statusCode);
res.on(... |
load("fcfbc86708bc3a4062c2091a062e13b6.js");
load("faa81dc98fc13338aca921d45eebae79.js");
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the ... |
export const ADD_DEVICE = 'boilerplate/Home/ADD_DEVICE';
|