text stringlengths 3 1.05M |
|---|
import React from 'react'
import createReactClass from 'create-react-class'
import { Link } from 'react-router-dom'
import _ from 'lodash'
import { Picture } from '../../../../components/media'
const RelationShipPrev = createReactClass({
getInitialState() {
return {
friends: []
}
},
compone... |
import argparse
import os
import platform
import shutil
import subprocess
import sys
import tarfile
from distutils.spawn import find_executable
wpt_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
sys.path.insert(0, os.path.abspath(os.path.join(wpt_root, "tools")))
from . import b... |
#!/usr/bin/env python3
import argparse
import os
from pathlib import Path
import subprocess
import requests
# TODO
# Nothing todo ATM.
PRELIM_TEST = False
def error_print(msg):
print(f"!ERROR! => {msg}")
def info_print(msg):
print(f"=> {msg}")
def test_print(msg):
print(f"==TEST== > {msg}")
def ... |
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
parserOptions: {
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
sourceType: "module" // Allows for the use of imports
},
extends: [
"plugin:@typescript-eslint/recomm... |
'use babel';
import { parse } from 'babylon';
import { recursive, base, skipThrough, ignore, ancestorNodesAtOffset } from './walk';
import Scope from './scope.js';
import utils from './utils.js';
import { debug } from './utils.js';
// handlers
import LiteralHandler from './handlers/literal.js';
import Varia... |
import React from "react"
import { graphql, useStaticQuery } from "gatsby"
import SEO from "../components/seo"
const PolicyPage = () => {
const data = useStaticQuery(graphql`
query {
markdownRemark(frontmatter: { title: { eq: "Privacy Policy" } }) {
html
frontmatter {
title
date
}
}
}... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Assistant Professor", "CONTRIBUTION AMOUNT (F3L Bundled)": "100.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "National University", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "8020 Walerga Rd Unit 1226", "CONTRIBUTOR MIDDLE NAME": "", "DONOR C... |
import { normaliseInput } from './files/normalise-input-multiple.js';
import { nanoid } from 'nanoid';
import { modeToString } from './mode-to-string.js';
import mergeOpts from 'merge-options';
import toStream from 'it-to-stream';
import debug from 'debug';
import itPeekable from 'it-peekable';
const merge = mergeOpts.... |
// Testing correct overhead attribution from Lya's performance analysis.
// (Massive performance overhead by 'with')
var m1 = require('./m1.js');
var m2 = require('./m2.js');
global.test = 1;
global.test = 1;
m2.loop(3000);
|
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const MomentLocalesPlugin = require("moment-locales-webpack-plugin");
const webpack = require("webpack");
const { execSync } = require("child_process");
const GIT_DESC... |
import o from 'react';
const t = ({ onClick: t }) => o.createElement('button', { class: 'button', onClick: t }, 'Hello Button');
export { t as Button };
//# sourceMappingURL=index.esm.js.map
|
import { Duration, isDuration } from './constructor';
import toInt from '../utils/to-int';
import absRound from '../utils/abs-round';
import hasOwnProp from '../utils/has-own-prop';
import { DATE, HOUR, MINUTE, SECOND, MILLISECOND } from '../units/constants';
import { cloneWithOffset } from '../units/offset';
imp... |
/*
* Copyright (C) 2013 Glyptodon LLC
*
* 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, publi... |
import React, { Component } from "react";
import { connect } from "react-redux";
import {
Container,
Header,
View,
Button,
Icon,
Fab,
Item,
Input,
ActionSheet,
Form
} from "native-base";
import { StyleSheet, Text } from "react-native";
import ImagePicker from "react-native-image-picker";
import { CO... |
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import optparse
import os
import unittest
from telemetry import benchmark as benchmark_module
from telemetry.core import discover
from teleme... |
# Copyright 2010 by Thomas Schmitt.
#
# This file is part of the Biopython distribution and governed by your
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
# Please see the LICENSE file that should have been included as part of this
# package.
"""Bio.SeqIO support for the "seqxml" file for... |
//mapbox api key and link
var mapBox = "https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v9/tiles/256/{z}/{x}/{y}?" +
"access_token=pk.eyJ1Ijoic2pyb2phbm8iLCJhIjoiY2tqcHpobTljMWQybjJ4bGVoY3RmYWVpOSJ9.gHa1inmOrpUBLiij5Ce34w";
//url to query all of the historic geojson earthquake data
var queryUrl = "https://... |
import numpy as np
import anglepy.ndict as ndict
# FuncLikelihood
class FuncLikelihood():
def __init__(self, x, model, n_batch):
self.x = x
self.model = model
self.n_batch = n_batch
self.n_datapoints = next(iter(x.values())).shape[1]
if self.n_datapoints % (self.n_batch) !... |
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0.004435,"30":0,"31":0.03548,"32":0,"33":0.022175,"34":0,"35":0,"36":0.013305,"37":0.004435,"38":0,"39":0,"40":0.01774,"41":0,"... |
/* eslint-disable */
var icon = require('vue-svgicon')
icon.register({
'font-awesome/subscript': {
width: 1792,
height: 1792,
viewBox: '0 0 1792 1792',
data: '<path pid="0" d="M1025 1369v167H777l-159-252-24-42q-8-9-11-21h-3q-1 3-2.5 6.5t-3.5 8-3 6.5q-10 20-25 44l-155 250H133v-167h128l197-291-185-272H1... |
#!/usr/bin/env python3
# Copyright (c) 2014-2019 The Eozi Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the getchaintips RPC.
- introduce a network split
- work on chains of different lengths
- join the n... |
/*!
* (C) Ionic http://ionicframework.com - MIT License
* Built with http://stenciljs.com
*/
Ionic.loadBundle("kyxhhqgx",["exports","./chunk-422fe0b2.js"],function(t,i){var e=window.Ionic.h,n=function(){function t(){this.side="end"}return t.prototype.isEndSide=function(){return i.isEndSide(this.win,this.side)},t.pro... |
import GetLocalState from './utils/GetLocalState.js';
import GetScale from './utils/GetScale.js';
export default {
updateChildAlpha(child) {
var localState = GetLocalState(child);
var parent = localState.parent;
child.alpha = parent.alpha * localState.alpha;
return this;
},
... |
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('view:blogs/show');
// Replace this with your real tests.
test('it exists', function(assert) {
var view = this.subject();
assert.ok(view);
});
|
from homeassistant.core import ServiceCall
from requests import put
import logging
import requests
_LOGGER = logging.Logger(__name__)
def create_or_update(call: ServiceCall) -> bool:
host = call.data.get("host", None)
protocol = call.data.get("protocol", "http")
host_port = call.data.get("host_port",... |
const asyncify = require('./asyncify.js')
const isAsync = require('./isAsync.js')
function wrapAsync (asyncFn) {
if (typeof asyncFn !== 'function') throw new Error('expected a function')
return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn
}
module.exports = wrapAsync
|
var util = require('../../../utils/util.js');
var api = require('../../../config/api.js');
var user = require('../../../services/user.js');
// TODO 订单显示数量在图标上
const app = getApp()
Page({
data: {
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo'),
... |
!function(e){var t={};function n(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,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
const fs = require('fs-extra');
const os = require('os');
(async () => {
await fs.remove(os.tmpdir() + '/renovate-changelog-cache');
await fs.remove(os.tmpdir() + '/renovate-npm-cache');
})();
|
# Licensed to the StackStorm, Inc ('StackStorm') 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 not use th... |
# Copyright (c) 2014 The Bitcoin Core developers
# Copyright (c) 2014-2015 The Dash developers
# Copyright (c) 2015-2017 The PIVX developers
# Copyright (c) 2017 The ViBOOK developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.... |
#
# Copyright 2004,2005 Dave Cridland <dave@cridland.net>
#
# This file forms part of Infotrope Polymer.
#
# Infotrope Polymer 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, o... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Broad Institute
*
* 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 u... |
import template from './sw-product-stream-detail.html.twig';
import './sw-product-stream-detail.scss';
const { Component, Mixin, Context } = Shopware;
const { mapPropertyErrors } = Shopware.Component.getComponentHelper();
const { Criteria } = Shopware.Data;
Component.register('sw-product-stream-detail', {
templat... |
/* Example Challenge
* Print out "hello world" in the console
*
* Steps:
* 1. Use `console.log` to print out "hello world"
*
* Example Output: "hello world"
*/
console.log('hello world')
/* Challenge #1
* Create a variable and print the value
*
* Steps:
* 1. Create a variable and assign it any value
* 2. ... |
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {... |
export default class AppLocalStorage {
get(key) {
return JSON.parse(localStorage.getItem(key) || '{}');
}
put(key, data) {
localStorage.setItem(key, JSON.stringify(data));
}
delete(key) {
localStorage.removeItem(key);
}
}
|
import React, { Fragment, useContext } from 'react'
import PropTypes from 'prop-types'
import MoveBlock from './MoveBlock'
import PlayerInfoBlock from './PlayerInfoBlock'
import HistoryInfoBlock from './HistoryInfoBlock'
import { MOVES_MAP, PLAYER_TYPES, FIGURES, RULES, STRATEGIES } from '../../constants/game'
import *... |
# 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 not u... |
var país = 'Brasil'
console.log (`Vivendo em ${país}`)
if (país != 'Brasil') {
console.log ('Você é estrangeiro!')
} else {
console.log ('Você é brasileiro!')
} |
// Libraries
import React, { useMemo } from 'react';
import styled, { css } from 'styled-components';
// Components
import * as Text from 'src/components/UI/Text';
import Quality from 'src/components/SVG/Icons/Quality';
import Diagram from 'src/components/SVG/Icons/Diagram';
import Communities from 'src/components/SVG... |
import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import classNames from 'classnames';
const styles = theme => ({
option: {
width: '600px',
maxWidth: '600px',
minWidth: '600px',
fontSize: '0.8rem',
padding: '5px 5px',
marginLeft: '2px',
marginBottom: '2px',... |
from .factory import Flags, make_config # noqa
|
// Copyright (c) 2019, MIS and contributors
// For license information, please see license.txt
frappe.ui.form.on('Marital Status', {
refresh: function(frm) {
}
});
|
import Document, { Head, Html, Main, NextScript } from 'next/document'
class MyDocument extends Document {
render () {
return (
<Html lang="en">
<Head />
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"
></script>
... |
const config = toastrConfig => {
Object.assign(toastrConfig, {
closeButton: true,
iconClasses: {
error: 'toast-error',
info: 'toast-info',
success: 'toast-success',
warning: 'toast-warning'
},
messageClass: 'toast-message',
progressBar: true,
tapToDismiss: true,
tim... |
import _class_call_check from "@swc/helpers/lib/_class_call_check.js";
import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js";
//@target: ES6
var SymbolIterator = /*#__PURE__*/ function() {
"use strict";
function SymbolIterator() {
_class_call_check(this, SymbolIterator);
}
... |
/** This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize cop... |
import requests
from dashboard.Image import draw_black, draw_red, get_enhanced_icon, h_red_image, small_font, medium_font
from dashboard.Config import open_weather_map_api_key, lat, lon, units, unit_letter
def print_weather():
weather = get_weather()
icon = get_enhanced_icon(weather['icon_path'], 45, False)
h_red... |
macDetailCallback("10bd55000000/24",[{"d":"2016-03-22","t":"add","a":"800 Canterbury Rd Westlake OH US 44145","c":"US","o":"Q-Lab Corporation"}]);
|
/* eslint-disable no-param-reassign */
import { ADDED, REMOVED, SET } from '../actions/items';
export default function itemsReducer(state = null, action) {
switch (action.type) {
case ADDED:
state = action.payload;
break;
case REMOVED:
state = action.payload;
break;
case SET:
... |
# Access constants from spec pkg reference.
import eth2spec.phase0.spec as spec
from eth2spec.phase0.spec import get_domain, DepositData, verify_merkle_branch, Deposit, ZERO_HASH
from eth2spec.test.helpers.keys import pubkeys, privkeys
from eth2spec.utils.bls import bls_sign
from eth2spec.utils.merkle_minimal import c... |
#!/usr/bin/env python3
"""
Find available IP addresses in an AWS Subnet
"""
import ipaddress
import boto3
import click
@click.command('find-ip-addrs')
@click.option(
'--subnet-id',
'-s',
required=False,
help="The ID of the desired subnet (may not be specified with --subnet-name)",
metavar="ID",... |
'use strict'
const Sequelize = require('sequelize')
const uuid = require('@rockyli/random').uuid
const attributes = {
id: {
type: Sequelize.INTEGER(11).UNSIGNED,
primaryKey: true,
allowNull: false,
autoIncrement: true
},
uid: {
type: Sequelize.UUID,
allowNull: false,
unique: true,
... |
from captcha.image import ImageCaptcha
import random
from random import randrange
import os
import discord
from discord.ext import commands
from discord import Embed
import json
import asyncio
import requests
os.chdir("/home/gilb/LyricMaster/")
class Security(commands.Cog):
def __init__(self, bot):
self.b... |
import React from 'react'
const SvgUploadCloud = props => (
<svg height="1em" width="1em" viewBox="0 0 1000 1000" {...props}>
<path d="M760 356c66.667 0 123.333 22.667 170 68s70 100.667 70 166-23.333 120.667-70 166-103.333 68-170 68H570V634h106L500 404 326 634h104v190H182c-49.333 0-92-17.333-128-52S0 696 0 648c0... |
# coding=utf-8
# Copyright 2022 The REALM authors and The HuggingFace Inc. 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 ... |
# -*- coding: utf-8 -*-
"""
create model and predict label of origine wine.
using K Nearest Neighbor Class of Scikit Learn.
accuracy plot by changing k.
"""
from tqdm import tqdm
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.neighbors import KNeighborsClassifier
from sklearn.cross_validation impor... |
import React from 'react'
import PropTypes from 'prop-types'
const ringFocusColors = {
blueGray: 'focus-within:ring-blue-gray-200',
gray: 'focus-within:ring-gray-200',
brown: 'focus-within:ring-brown-200',
deepOrange: 'focus-within:ring-deep-orange-200',
orange: 'focus-within:ring-orange-200',
amber: 'focu... |
require('ts-node/register');
const { setHeadlessWhen } = require('@codeceptjs/configure');
// turn on headless mode when running with HEADLESS=true environment variable
// export HEADLESS=true && npx codeceptjs run
setHeadlessWhen(process.env.HEADLESS);
exports.config = {
tests: '../tests/prepareBaseImage-undefined... |
"use strict";
const express =require('express');
const cors =require('cors');
const logger =require('./middleware/logger');
const foodRoutes =require('./routes/food.route');
const clothesRoutes =require('./routes/clothes.route');
const handler500=require("./error-handler/500");
const handler404=require("./error-handle... |
var searchData=
[
['sendfile',['SendFile',['../namespacecubesat_1_1detail_1_1pycubed.html#ae3a329ec6cfe8cb9632e55f2e37e544ba9711c6642640926ac61cd85ad1cd9aab',1,'cubesat::detail::pycubed']]],
['shutdown',['Shutdown',['../namespacecubesat_1_1detail_1_1pycubed.html#ab2720e13c4f3c6e994f714861a6cdc09a1a4ebb180ba59b06778... |
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... |
from tkinter import *
window = Tk()
window.title("Form Submission")
window.geometry('350x350')
label = Label(window, text="Good Morning")
label.grid(column=0, row=0)
txt = Entry(window,width=10)
txt.grid(column=1, row=0)
def clicked():
label.configure(text="You have submitted")
button = Button(window, tex... |
const errors = require('@tryghost/errors');
const config = require('../../shared/config');
const db = require('../data/db');
const LimitService = require('@tryghost/limit-service');
let limitService = new LimitService();
const initFn = () => {
let helpLink;
if (config.get('hostSettings:billing:enabled') && co... |
const settings = require("../settings/settings.json");
const db = require('quick.db')
const kdb = new db.table("kullanıcı");
let selamlar = ["sa", "selam", "selamın aleyküm", "selamın aleykum", "sea", "sA", "selamın aleykm", "selamün aleyküm", "selamun aleykum"]
module.exports = async (message) => {
if (message.au... |
# Copyright 2012 NEC Corporation
#
# 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 ag... |
export { default } from './Center';
|
# Copyright (c) 2019-2020 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2019-2020 Tyler Thieding <tyler@thieding.com>
# Copyright (c) 2020 Anthony Sottile <asottile@umich.edu>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/mas... |
import unittest
import os
import numpy as np
import pyNastran
from pyNastran.bdf.bdf import BDF
from pyNastran.bdf.mesh_utils.mass_properties import mass_properties
from pyNastran.utils import object_methods
PKG_PATH = pyNastran.__path__[0]
mesh_utils_path = os.path.join(PKG_PATH, 'bdf', 'mesh_utils', 'test')
class... |
/* DreemGL is a collaboration between Teeming Society & Samsung Electronics, sponsored by Samsung and others.
Copyright 2015-2016 Teeming Society. 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 a... |
import Vue from "vue"
import Vuex from "vuex"
import { format, isToday, differenceInMilliseconds, endOfToday } from "date-fns"
import { getHabits, getEvents, getLastActive, clearAll, getWeekday, updateLastActive, updateStorage, createEvents } from "./helpers"
Vue.use(Vuex)
const VIEWS = { list: "List", new: "N... |
'use strict';
var module = angular.module('orgchart.directives', [
'orgchart.services',
'ngAnimate'
]);
module.directive('animateOnPhoto', ['$animate', function($animate) {
return function(scope, ele, attr) {
attr.$observe('animateOnPhoto', function(value) {
var animationClass = attr.... |
/* eslint-env mocha */
const app = require('../../server.js')
const server = app.listen()
const request = require('supertest').agent(server)
const path = require('path')
const fs = require('fs')
const assert = require('assert')
// Check that assets are copied and the app runs
describe('Copy assets to public and run th... |
import numpy as np
from .plotlib import plt, matplotlib
from matplotlib import mlab, cm, colors
SITE_THEME_DICT = {
'basic': ('k', 'uniform'),
'black-fancy': ('k', 'star'),
'black': ('k', 'uniform'),
}
'''edgecolor, style'''
def cornerlabel(txt):
'''add corner label.'''
text(0.02, 0.9, txt, trans... |
/**
* @overview datejs
* @version 1.0.0-rc3
* @author Gregory Wild-Smith <gregory@wild-smith.com>
* @copyright 2014 Gregory Wild-Smith
* @license MIT
* @homepage https://github.com/abritinthebay/datejs
*/
/*
* DateJS Culture String File
* Country Code: de-LI
* Name: German (Liechtenstein)
* For... |
// @flow
import * as React from 'react'
import { connect } from 'react-redux'
import { ThemeProvider } from 'styled-components'
import buildConfig from '../../app/constants/buildConfig'
type PropsType = {|
children: React.Node,
darkMode: boolean
|}
class CustomThemeProvider extends React.Component<PropsType> {
... |
IntlMessageFormat.__addLocaleData({"locale":"so","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
IntlMessageFormat.__addLocaleData({"locale":"so-DJ","parentLocale":"so"});
IntlMessageFormat.__addLocaleData({"locale":"so-ET","parentLocale":"so"});
IntlMessageFormat.__addLocaleDat... |
'use strict';
const dynamoose = require('dynamoose');
const uuidv4 = require('uuid/v4');
const NotesSchema = new dynamoose.Schema({
userId: {
type: String,
hashKey: true
},
id: {
type: String,
rangeKey: true,
default: uuidv4
},
title: String,
content: String,
createdAt: String,
upd... |
import { math, random } from "yyz";
export const settings = {
dimensions: [1280, 1280],
animate: true,
};
export default (props, { width, height, playhead }) => {
const count = 20;
const radius = 10;
const margin = min(width, height) * 0.1;
return math.range(count).map((i) => {
const x = math.map(i, 0... |
import React, {
Component
} from "react";
import {
Image
} from "react-native";
import {
Content,
Text,
List,
ListItem,
Icon,
Container,
Left,
Right,
Badge
} from "native-base";
import styles from "./style";
const drawerCover = require("../../../assets/drawer-cover.png");
co... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const pkg = require('../package.json');
const availableActions = (templates) => {
const generators = fs
.readdirSync(templates)
.filter... |
import React, { Component } from "react";
import "./SvgGraphics.scss";
class SvgGraphics extends Component {
render() {
return (
<div className="SvgGraphics">
<div className="Blue-Plus aniA fadeInUp">
<svg
width="12px"
height="12px"
viewBox="102 66 12 1... |
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark... |
import React from "react";
import Link from 'next/link';
export default function Footer() {
return (
<>
<footer className="relative bg-blueGray-200 pt-8 pb-6">
<div
className="bottom-auto top-0 left-0 right-0 w-full absolute pointer-events-none overflow-hidden -mt-20 h-20"
style... |
var ec_wuhanNotWuhanNotHubeiNewlyConfirmed = echarts.init(document.getElementById('wuhanNotWuhanNotHubeiNewlyConfirmed'), "walden");
var ec_wuhanNotWuhanNotHubeiNewlyConfirmed_Option = {
title: {
text: "武汉/湖北非武汉/非湖北每日新增确诊(堆叠数据)",
textStyle: {
color: 'black',
fontSize: '22'
... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('activity-outliner', 'Integration | Component | activity outliner', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
/... |
// @flow
import fs from 'fs';
import path from 'path';
import log from 'electron-log-daedalus';
import ensureDirectoryExists from './ensureDirectoryExists';
import { pubLogsFolderPath, appLogsFolderPath, APP_NAME } from '../config';
import {
constructMessageBody,
formatMessage,
stringifyData,
} from '../../common... |
# Copyright 2018 Iguazio
#
# 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, softwa... |
$(function() {
$("html, body, section").mousewheel(function(event, delta) {
this.scrollLeft -= (delta * 10);
event.preventDefault();
});
});
var btHome = document.getElementById("btHome");
var btCareer = document.getElementById("btCareer");
var btWorks = document.getElementById("btWorks");
var btMe = docu... |
class PartyAnimal:
l = 0
name = ''
def __init__(self, nam):
self.name = nam
print(self.name,'constructed')
def party(self):
self.l = self.l + 1
print(self.name,'party count',self.l)
class footballfan (PartyAnimal):
points = 0
def touchdown(self):
... |
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
/* eslint-disable no-restricted-globals */
import React from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import classNames from 'classn... |
from data_engine.views import get_global_data, get_country_data, get_indian_state_data
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from twilio.twiml.messaging_response import MessagingResponse
from translator.views import detect_lang, translate
from .utils import countries,... |
###########################
#
# #484 Arithmetic Derivative - Project Euler
# https://projecteuler.net/problem=484
#
# Code by Kevin Marciniak
#
###########################
|
import _ from 'lodash';
import Country from './country';
import numberType from './resources/numberType.json';
const libPhoneNumber = require('google-libphonenumber');
const phoneUtil = libPhoneNumber.PhoneNumberUtil.getInstance();
const asYouTypeFormatter = libPhoneNumber.AsYouTypeFormatter;
let instance = null;
c... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2010 Citrix Systems, 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/LICE... |
export default [
{
action: '\\sqrt',
label: '\\sqrt{X}',
svg: 'data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJ... |
// // Description:
// // Get version info for debugging in Rocket.Chat
// //
// // Dependencies:
// // hubot-rocketchat
// //
// // Configuration:
// // None
// //
// // Commands:
// // bot rc version - < Tells you the Hubot, Driver and Rocket.Chat versions >
// //
// // Notes:
// // Version 1.0
// //
// // A... |
import AutoCompleteComboBox from "../base/AutoCompleteComboBox.js";
import { defaultState } from "../base/internal.js";
import PlainAutoCompleteInput from "./PlainAutoCompleteInput.js";
import PlainComboBoxMixin from "./PlainComboBoxMixin.js";
import PlainListBox from "./PlainListBox.js";
/**
* AutoCompleteComboBox c... |
import React from 'react';
import style from './style.css';
export default function CheckMark() {
return (
<svg
className={style.checkmark}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 612 612"
>
<g>
<g>
<g>
<path
d="M306 0a306 306 0 1 0 ... |