text stringlengths 3 1.05M |
|---|
/**
* @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
*/
/**
* @module
* @description
* Entry point for all public APIs of the common package.
*/
import { Version } from ... |
const HDWalletProvider = require('truffle-hdwallet-provider')
require('dotenv').config()
const mnemonic = process.env.MNEMONIC
const token = process.env.INFURA_TOKEN
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*" // Match any network id
},
... |
# Python SQL toolkit and Object Relational Mapper
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
import datetime as dt
database_path = "Resources/hawaii.sqlite"
engine =... |
require("dotenv").config();
const server = require("./api/server.js");
const port = process.env.PORT || 8000;
server.listen(port, () => console.log(` Running on port ${port}`)); |
import React from 'react'
import { graphql, useStaticQuery } from 'gatsby'
import styles from './sponsors.module.css'
import Img from 'gatsby-image'
import StyledButton from '../styled-button'
export default () => {
const { allContentfulSponsor } = useStaticQuery(SponsorsQuery);
const nodes = allContentfulSpo... |
# 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 or agreed to in writing, ... |
from collections.__init__ import namedtuple
from enum import Enum
from struct import pack
from datafields import UnsignedIntegerField, RawBytesField, StringField
from sockets5.enums import Socks5RepType
class Socks5AuthRsp:
def __new__(cls, auth_method):
ver = 5
auth_method = auth_method
... |
/**
* @license
* Copyright 2016 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
'use strict'
moduleProducto.controller('productoPlist_1Controller', ['$scope', '$http', '$location', 'toolService', '$routeParams', 'sessionService',
function ($scope, $http, $location, toolService, $routeParams, sessionService) {
$scope.totalPages = 1;
$scope.select = ["5", "10", "25", "50", "500... |
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
class Product(models.Model):
#primary key called as id will automatically be generated by django
product_id = models.AutoField
product_name = models.CharField(max_length=50)
category = models.Cha... |
module.exports = require('../../../config/postcss.config');
|
import spinUp from "./spinUp.js";
let db, schema, queryAndMatchArray, runMutation, close;
beforeAll(async () => {
({ db, schema, queryAndMatchArray, runMutation, close } = await spinUp());
await db.collection("books").insertOne({ title: "Book 100", pages: 100 });
await db.collection("books").insertOne({ title: ... |
const PREFERENCES_KEY = 'preferences'
export const getPreferences = () => {
return JSON.parse(window.localStorage.getItem(PREFERENCES_KEY)) || { showMat: false }
}
export const savePreferences = (prefs) => {
return window.localStorage.setItem(PREFERENCES_KEY, JSON.stringify(prefs))
}
|
import jwt from 'jsonwebtoken';
// models
import UserModel from '../models/User.js';
const SECRET_KEY = 'some-secret-key';
export const encode = async (req, res, next) => {
try {
const { userId } = req.params;
const user = await UserModel.getUserById(userId);
const payload = {
userId: user._id,
... |
import React from "react";
import { CommandBtnLink, BtnLinkATag } from "../ButtonElements";
import {
InfoContainer,
InfoWrapper,
InfoRow,
Column1,
Column2,
Img,
ImgWrap,
TextWrapper,
TopLine,
Heading,
Subtitle,
BtnWrap,
} from "./InfoElements";
const InfoSection = ({
lightBg,
id,
imgStart... |
import numpy as np
from bokeh.models import CategoricalColorMapper, LinearColorMapper
from holoviews.element import ErrorBars
from .test_plot import TestBokehPlot, bokeh_renderer
class TestErrorBarsPlot(TestBokehPlot):
def test_errorbars_padding_square(self):
errorbars = ErrorBars([(1, 1, 0.5), (2, 2,... |
var proxy = require('http-proxy-middleware')
module.exports = {
siteMetadata: {
title: 'VFW Post 6654',
description:
'This is a blog site for the Veterans of Foreign Wars Post 6654 in DeSoto, Kansas.',
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
{
// keep as ... |
/**
* @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
*/
import { Platform, PlatformModule, getSupportedInputTypes } from '@angular/cdk/platform';
import { CommonModule } fro... |
/// 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
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyrigh... |
#!/usr/bin/env python3
import logging
import os
from github import Github
from pr_info import PRInfo, get_event
from get_robot_token import get_best_robot_token
from commit_status_helper import get_commit
NAME = 'Run Check (actions)'
def filter_statuses(statuses):
"""
Squash statuses to latest state
1. co... |
jQuery(document).ready(function ($) {
$('#myCarouselProyecto').carousel({
interval: false
});
$('#carousel-text').html($('#slide-content-0').html());
//Handles the carousel thumbnails
$('[id^=carousel-selector-]').click(function () {
var id_selector = $(this... |
var y = 1
var x = "y ="
var z = "5"
eval(x+z)
dumpValue(y); |
const axios = require("axios").default;
const extractor = require("./extractor");
jest.mock("axios");
describe("extractor worker", () => {
it("A worker should return stringified object that contains the main content of the webpage.", async () => {
axios.get.mockResolvedValueOnce({
data: "<body>Here's a bu... |
# ============================================================================
# 付録 A 機器の性能を表す仕様の決定方法
# ============================================================================
from pyhees.section4_1_Q import \
get_Q_T_CL_d_t_i
# get_Q_T_H_A_d_t
from pyhees.section4_2 import \
get_season_array_d_t, \
... |
import DesktopComponent, {
universalPropTypes,
universalDefaultProps,
} from './DesktopComponent';
import libui from 'libui-node';
import PropTypes from 'prop-types';
class Button extends DesktopComponent {
eventParameter = { onClicked: 'text' };
childName = 'text';
constructor(root, props) {
super(root... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.11.2-master-7b91b60
*/
function SliderDirective(e,t,a,n,i,r,o,l,d){function s(e,t){return e.attr({tabIndex:0,role:"slider"}),a.expect(e,"aria-label"),u}function u(a,s,u,c){function m(){h(),D(),$()}function v(e){j=parseFloat(e),... |
# Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# 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... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _parallel;
var _noop = require('lodash/noop');
var _noop2 = _interopRequireDefault(_noop);
var _isArrayLike = require('lodash/isArrayLike');
var _isArrayLike2 = _interopRequireDefault(_isArrayLike);
var _slice = req... |
if (typeof jQuery === "undefined") {
throw new Error("jQuery plugins need to be before this file");
}
$.AdminBSB = {};
$.AdminBSB.options = {
colors: {
red: '#F44336',
pink: '#E91E63',
purple: '#9C27B0',
deepPurple: '#673AB7',
indigo: '#3F51B5',
blue: '#2196F3',
... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
import { ERROR } from 'src/constants';
export default {
'jsx-quotes': [ERROR, 'prefer-double'],
};
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[438],{1442:function(t,a,e){"use strict";e.r(a);var r=e(19),i=Object(r.a)({},(function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h2",{attrs:{id:"nanomind-110"}},[r("a",{staticClass:"he... |
import React from "react";
import renderer from "react-test-renderer";
import { Link } from "./Link";
describe("React Component [Link]", () => {
it("can create empty Link", () => {
const component = renderer.create(<Link />);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
it("ca... |
""" CBAM (sort-of) Attention
Experimental impl of CBAM: Convolutional Block Attention Module: https://arxiv.org/abs/1807.06521
WARNING: Results with these attention layers have been mixed. They can significantly reduce performance on
some tasks, especially fine-grained it seems. I may end up removing this impl.
Hack... |
var commonModule = require('./common.js');
tp('Comments')
// or else only 25 are got
.take('1000')
.where('(Id gte ' + start_id + ') and (Id lte ' + end_id + ')')
.sortByDesc('Id')
.then(function(err,entities) {
printEntities(err,entities)
})
|
import { Rminder } from './js/Rminder.js';
import { dbMessage } from './js/dbMessage.js';
export const App = () => 'App initialiser';
App.rminder = new Rminder();
App.db = new Worker('./js/workers/dbw.js');
App.start = () => {
App.db.postMessage({ type: 'start' });
App.db.onmessage = (event) => dbMessage(App.rminder... |
const {ownerNumber} = require('./setting.json')
// https://wa.me/628985665498?text=%23menu%0A
// https://wa.me/628985665498?text=Feedback%20%3A%20
// https://wa.me/628985665498
//
const owner = `\nSelengkapnya bisa hubungi owner : @${ownerNumber.replace(
"@c.us",
""
)} as Developer`;
const ownerLink = `\nS... |
// Copyright (C) 2019-2021 Intel Corporation
//
// SPDX-License-Identifier: MIT
(() => {
const PluginRegistry = require('./plugins');
const serverProxy = require('./server-proxy');
const lambdaManager = require('./lambda-manager');
const {
isBoolean,
isInteger,
isEnum,
i... |
shadow$provide.module$node_modules$blockstack$lib$profiles$profileSchemas$personUtils=function(global,process,require,module,exports,shadow$shims){Object.defineProperty(exports,"__esModule",{value:!0});exports.getName=function(profile){if(!profile)return null;var name=null;if(profile.name)name=profile.name;else if(prof... |
import MockAdapter from "axios-mock-adapter";
import axios from "axios";
import {
createMinespaceUser,
fetchMinespaceUsers,
deleteMinespaceUser,
} from "@common/actionCreators/minespaceActionCreator";
import * as genericActions from "@common/actions/genericActions";
import { ENVIRONMENT } from "@common/constants/... |
const secondsContainer = document.querySelector('#seconds')
const minutesContainer = document.querySelector('#minutes')
const hoursContainer = document.querySelector('#hours')
const daysContainer = document.querySelector('#days')
const nextYearContainer = document.querySelector('#year')
const spinnerLoading = document.... |
const apiKey = "Enter your API key here";
const main = document.getElementById('main');
const form = document.getElementById('form');
const search = document.getElementById('search');
const url = (city)=> `https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${apiKey}`;
async function getWeath... |
import { formatMessage } from './../utils/format';
const length = (
value,
{
maxMessage = 'This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.',
minMessage = 'This value is too short. It should have {{ limi... |
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import PropTypes from 'prop-types'
import logo from '../assets/logo.svg'
import { decode } from 'he'
import { getStatus } from '../lib/helpers'
import arrow from '../assets/arrow.svg'
class Header extends Component {
handleHeaderText =... |
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
... |
/*!
* jQuery UI Stars v3.0.1
* http://plugins.jquery.com/project/Star_Rating_widget
*
* Copyright (c) 2010 Marek "Orkan" Zajac (orkans@gmail.com)
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* $Rev: 164 $
* $Date:: 2010-05-01 #$
* $Build: 35 (2010-05-01)
*
* Depends:
*... |
sap.ui.define([
"sap/ui/core/mvc/Controller"
], function (Controller) {
"use strict";
return Controller.extend("ase.wt.controller.App", {
onInit: function () {
}
});
}); |
/**
* @type {Object.<string, import('splendid').Page>}
*/
export default {
feb18_24: {
title: 'zavr blog',
url: 'index.html', // '18-24-february.html',
file: '18-24-february',
menuUrl: '/',
reverse: true,
},
feb11_17: {
title: '11-17 February 2019',
url: '11-17-february.html',
fi... |
console.log('test2.js');
/**
* @requires com.example.test.test2
*/
console.log('resolvepath.js');
|
import logging
import os
from pathlib import Path
import click
import torch
from dotenv import find_dotenv, load_dotenv
from transformers import AutoTokenizer
import csv
@click.command()
@click.argument('input_filepath', type=click.Path(exists=True))
@click.argument('tensor_size')
@click.argument('tokenizer')
@click... |
//Управление глазом
const eyeAccount = document.getElementById('eye_icon_reset');
//изменение цветов
eyeAccount.addEventListener("mouseover", (event) =>{
if (document.getElementById('new_password_reset_form').type == 'password'){
eyeAccount.style.border = '2px solid #79b260';... |
export * from 'mobxstore'
|
/** set the location function
* with the state default setting
*
* => really testable => dependant
*
* as pure function => make sure to return something
*/
export default function location(state = "Seattle, WA", action) {
if (action.type === 'CHANGE_LOCATION') {
return action.payload;
} else {
ret... |
# Copyright Amazon.com Inc. or its affiliates. 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. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanyin... |
const mongoose = require('mongoose');
const utils = require('../../services/utils');
const Iss = mongoose.model('Issue');
const User = mongoose.model('User');
//POST /issues/:issueid/checklists/new - creates a new checklist, providing a issueid
module.exports.issueChecklistsCreate = (req, res) => {
if (utils.check... |
/* Dialog -- a Javascript load/save library for IF interfaces
* Designed by Andrew Plotkin <erkyrath@eblong.com>
* <http://eblong.com/zarf/glk/glkote.html>
*
* This Javascript library is copyright 2010-16 by Andrew Plotkin.
* It is distributed under the MIT license; see the "LICENSE" file.
*
* This library lets... |
import ServiceWorkerContainer from './modules/ServiceWorkerContainer';
export default class SteveJobsWorker {
static init() {
if (false && 'serviceWorker' in navigator) return;
navigator.__defineGetter__('serviceWorker', () => ServiceWorkerContainer);
}
}
|
module.exports = function (grunt) {
// From TWBS
RegExp.quote = function (string) {
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&');
};
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*!\n' +
' * Bootstrap-select v<%= p... |
"""Pylint plugin: check that tests have used super() properly."""
import astroid
import six
from pylint.checkers import BaseChecker, utils
from pylint.interfaces import IAstroidChecker
from pylint.checkers.classes import _ancestors_to_call
from .common import BASE_ID
def register_checkers(linter):
"""Register ... |
import Widget from "../widget/ui.widget";
import { getGanttViewCore } from "./gantt_importer";
import { TaskAreaContainer } from "./ui.gantt.task.area.container";
export class GanttView extends Widget {
_init() {
super._init();
this._onSelectionChanged = this._createActionByOption("onSelectionChan... |
!function(){return function e(t,n,o){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){return r(t[a][1][e]||e... |
javascript: void (function () {
if ("https://discord.com" != this.document.location.origin)
alert("You must be on Discord to use this tool!");
else {
const c = document.createElement("iframe");
document.head.append(c);
const d = Object.getOwnPropertyDescriptor(c.contentWindow, "localStorage");
c... |
import { isString } from 'lodash';
import * as yup from 'yup';
import { i18n } from '@/i18n';
import GenericField from '@/shared/fields/generic-field';
export default class EnumeratorField extends GenericField {
constructor(
name,
label,
options,
{ required = false } = {},
) {
super(name, label... |
class App {
constructor() {
console.info("ES6 Modules work!");
}
}
export default App;
|
let conn = require('./connection')
module.exports = {
checkAdminLogin: (username, password) => {
return new Promise((resolve, reject) => {
let sqlQuery =`SELECT * FROM admin WHERE admin_username = ? AND admin_password = ? AND admin_id = 1`
conn.query(sqlQuery,
[user... |
from setuptools import setup, find_packages
setup(
name="symbulate",
version="0.5.5",
description="A symbolic algebra for specifying simulations.",
url="https://github.com/dlsun/symbulate",
author="Dennis Sun",
author_email="dsun09@calpoly.edu",
license="GPLv3",
classifiers=[
... |
import { defineComponent, watch, reactive, toRefs, provide, ref, computed, openBlock, createBlock, renderSlot } from 'vue';
import mitt from 'mitt';
const elFormKey = 'elForm';
const elFormItemKey = 'elFormItem';
const elFormEvents = {
addField: 'el.form.addField',
removeField: 'el.form.removeField',
};
... |
import os
import select
import subprocess
class MPlayer(object):
""" A class to access a slave mplayer process
you may want to use command(name, args*) directly
or call populate() to access functions (and minimal doc).
Exemples:
mp.command('loadfile', '/desktop/funny.mp3')
mp.command('... |
require("dotenv").config({
path: `.env`
});
module.exports = {
siteMetadata: {
title: `For fun...`,
description: `...and more fun!`,
author: `@n8finch`
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
p... |
'use strict';
/* eslint-disable import/no-extraneous-dependencies, global-require */
const minimatch = require('minimatch');
const resolve = require('rollup-plugin-node-resolve');
const commonjs = require('rollup-plugin-commonjs');
const babel = require('rollup-plugin-babel');
const string = require('rollup-plugin-st... |
/*! jQuery UI - v1.9.2 - 2018-04-08
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.tr={closeText:"kapat",prevText:"<geri",nextText:"ileri>",currentText:"bugün",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Tem... |
/*! jQuery UI - v1.12.1 - 2017-09-14
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/se... |
import ScrollGallery from './ScrollGallery';
export default ScrollGallery;
|
import { setRoute } from "egov-ui-framework/ui-redux/app/actions";
import { validate } from "egov-ui-framework/ui-redux/screen-configuration/utils";
import { getUserInfo } from "egov-ui-kit/utils/localStorageUtils";
import get from "lodash/get";
import { getQueryArg,getTransformedLocalStorgaeLabels ,getLocaleLabels} fr... |
const myName = document.getElementById('myName');
const clock = document.getElementById('myClock');
const userName = prompt('Adınız Nedir: ');
myName.textContent = userName;
const pad = (time) => (time < 10 ? `0${time}` : time);
const showTime = (date = new Date()) => {
const days = [
'Pazar',
'Pazartesi',... |
/**
* Hey! Welcome to @chakra-ui/vue Grid
*
* A primitive useful for grid layouts. CGrid is CBox with
* display: grid and comes with helpful style shorthand.
* It renders a div element by default
*
* @see Docs https://vue.chakra-ui.com/grid
* @see Source https://github.com/chakra-ui/chakra-ui-vue/blob/mas... |
# coding: utf-8
import json
import requests
from .data import SongkickEvent
def check_bands(bands, api_key):
result = []
# bands_to_check = bands
# bands_to_retry = []
# retries = 5
# while True:
for b in bands:
print(f'Checking Sonkick for band "{b.name}"...')
url = 'https:/... |
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { store } from "./actions/store";
import {Provider} from "react-redux";
import FormList from './components/FormList';
import { Container } from "@material-ui/core";
import { ToastProvider } from "react-toast-notifications"
import { mak... |
//>>built
define("dijit/nls/tr/loading",({loadingState:"Yükleniyor...",errorState:"Üzgünüz, bir hata oluştu"}));
|
import Regular from 'regularjs'
export default Regular.extend( {
template: `
<div>
header
</div>
`
} )
|
/**
* Kendo UI v2021.3.1207 (http://www.telerik.com/kendo-ui)
* Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
import React from "react";
import { render } from "react-dom";
import { TextInput, Code, NavBar, Img } from "./lib";
import styled from "styled-components";
import logo from "./towhen_small.png";
const LogoHolder = styled.div`
text-align: center;
`;
const LogoImage = styled(Img)`
height: 40px;
margin-bottom: -... |
import pytest
import cpp_module.cppcore as cpp
from api.blackjack.conversions import game_to_dict, dict_to_game, GameDict
@pytest.fixture()
def game() -> cpp.Game:
"""Create a test game with a test state.
Note: that state would be invalid in a normal game.
"""
def card(rank: int, suit: int, hidden: b... |
p3xr.ng.factory('p3xrDialogConnection', function (p3xrCommon, $mdDialog, p3xrSocket) {
return new function () {
this.show = async (options) => {
try {
const result = await $mdDialog.show({
controller: function ($scope, $mdDialog) {
... |
/*
* This file is part of the Symfony Webpack Encore package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
const cssExtractLoaderUtil = require('./loaders/css-extract... |
var fake_module = require('./fake_module');
var bar = function () {
return fake_module.foo();
};
exports.bar = bar;
|
import { CAPTURE_CREATE, CAPTURE_DELETE } from '../../constants'
import { cleanFalsy } from '../../../components/utils/array'
import { omit } from '../../../components/utils/object'
const initialState = {}
const stateKey = arr => cleanFalsy(arr).join('_')
export function captures (state = initialState, action = {}) ... |
/* globals roam42, jsPanel, roam42KeyboardLib, flatpickr, setEmptyNodeValue, getRoamDate,
chrono, iziToast, tippy, shiftKeyDownTracker
*/
// INFO: Provides a quick way to jump between daily notes pages using a calendar
// Datepicker based on: https://flatpickr.js.org/
// roam42.jumpToDate
(()=>{
ro... |
import React, { Component } from "react";
import brandLogo from "../assets/images/cat-solid.svg";
import { Link } from "react-router-dom";
import CartIcon from "./CartIcon";
class Nav extends Component {
render() {
return (
<div className="nav-container">
<nav
className="navbar navbar-expa... |
import json
import os
import discord
import psycopg2
from discord.ext import commands
dirname = os.path.dirname(__file__)
filename = os.path.join(dirname, "../json/data.json")
class Moderation(commands.Cog):
'''
Useful commands for keeping your server clean!
'''
def __init__(self, bot):
self... |
/** Package wrapper and layout.
*/
(function (global, init) { "use strict"; // Universal Module Definition.
if (typeof define === 'function' && define.amd) {
define(['creatartis-base', 'ludorum'], init); // AMD module.
} else if (typeof module === 'object' && module.exports) {
module.exports = init(require('creat... |
/**
* Auto-generated action file for "Microsoft Graph API" API.
*
* Generated at: 2019-08-07T14:53:12.154Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / microsoft-graph-api-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector ar... |
'use strict';
const path = require('path');
const config = require('@serverless/utils/config');
const cjsResolve = require('ncjsm/resolve/sync');
const _ = require('lodash');
const crypto = require('crypto');
const isModuleNotFoundError = require('ncjsm/is-module-not-found-error');
const ServerlessError = require('../... |
export const createRandomNumber = (max) => Math.floor(Math.random() * max);
export const prefixHex = (color) => {
if (!color) return
return `#${color}`
}
export const moneyFormat = (value) => { // 金额 格式化
if (!value && value !== 0) return '-';
var intPart = Number(value) | 0; //获取整数部分
var intPartFormat = in... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... |
/*
* This RESTlet covers the basic operations for interacting with Netsuite data.
*/
/*
* Constants
*/
var OPERATIONS = { 'CREATE': { 'function': 'initializeRecord',
'access': 'GET',
'baseGovernance': 10 },
'LOAD'... |
/* eslint-disable */
import gulp from 'gulp';
import browserSync from 'browser-sync';
const server = browserSync.create();
import { bsServer } from '../config';
/* eslint-enable */
const serverTask = done => {
server.init(
{
proxy: `localhost:${bsServer.port}`
},
done()
);
};
gulp.task('server',... |
Vue.component("stickyfoot", {
template: '<footer class="footer">\n' +
' <div class="container">\n' +
' <span class="text-muted">© 2019 Chris Snyder & <a href="https://openweathermap.org" target="_blank">OpenWeather Map API</a></span>\n' +
' </div>\n... |
/*
* chord.js
*
* Copyright (C) 2012 Aaron Spike [aaron@ekips.org]
*
* Based On:
* Chord Image Generator
* http://einaregilsson.com/2009/07/23/chord-image-generator/
*
* Copyright (C) 2009-2012 Einar Egilsson [einar@einaregilsson.com]
*
* This program is free software: you can redistribute it and/or modify
... |
//// [/lib/initial-buildOutput.txt]
/lib/tsc --b src/tsconfig_withFiles.json --verbose
12:01:00 AM - Projects in this build:
* src/tsconfig_withFiles.json
12:01:00 AM - Project 'src/tsconfig_withFiles.json' is out of date because output file 'src/src/index.js' does not exist
12:01:00 AM - Building project ... |