text stringlengths 3 1.05M |
|---|
define([
'jquery',
'block/block',
'block/blockmanager',
], function(jQuery, block, BlockManager) {
var VideoBlock = block.AbstractBlock.extend({
title: 'VideoBlock',
getSchema: function() {
return {
'source': {
type: 'string',
label: 'Source'
},
}
},
init: function($element, postPr... |
const client = require('./client.js');
const superagent = require('superagent');
function handleMovies(request, response) {
const locationObj = request.query.data;
const url = `https://api.themoviedb.org/3/search/movie?api_key=${process.env.MOVIE_API_KEY}&query=${locationObj.search_query}`
superagent.get(url)
... |
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @format
* @flow strict-local
*/
import * as React from 'react';
import TutorialProgressContent from '../TutorialProgressContent';
import {TestApp} from '@fbcnms/tg-nms/app/tests/testHelpers';
import {render} from '@testing-library/react';
const defa... |
/* istanbul instrument in package npmdoc_url_loader */
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
var local;
// run shared js-env code - init-before
(function () {
... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, ExchangeNotAvailable, AuthenticationError, DDoSProtection, InsufficientFunds, OrderNotFound, OrderNotCached, InvalidOrder, CancelPending, InvalidNonce } = ... |
const async = require("async");
const fs = require("fs");
const rlequire = require("rlequire");
const Config = rlequire("dendro", "src/models/meta/config.js").Config;
const Logger = rlequire("dendro", "src/utils/logger.js").Logger;
const destroyAllGraphs = function (app, callback)
{
if (Config.startup.load_databa... |
# coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import functools
imp... |
// /* eslint-disable no-console */
import express from "express";
import mongoose from 'mongoose'
import dotenv from "dotenv";
import path from 'path';
import { router } from './routes/router.js';
if (process.env.NODE_ENV !== 'production') {
dotenv.config();
}
const app = express();
app.use(express.json()) // for pa... |
// Dependencias
const express = require('express');
const app = express();
const path = require('path');
const mongoose = require('mongoose');
const exphbs = require('express-handlebars');
const passport = require('passport');
// Configuración de Passport
require('./config/passport')(passport);
// Inicializamos DB
co... |
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).batchTaskAssignment=t()}(this,(function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e,t){re... |
/**
* Bundle of AWEMA page-map
* Generated: 2019-06-28 10:52:35
* Version: 1.1.1
*/
!function(){"use strict";function t(t){let e=0;do{e+=t.offsetTop,t=t.offsetParent}while(t);return e}function e(t){let e=getComputedStyle(t);return t.clientWidth-parseInt(e.paddingLeft)-parseInt(e.paddingRight)}function i(t,e,i){ret... |
window.$ = require('jquery')
window.UIkit = require('uikit')
window.axios = require('axios')
window.hljs = require('highlight.js')
|
/** @jsx jsx */
import { jsx } from "@emotion/core"
import { Fragment, useState, useMemo } from "react"
import { useStaticQuery, graphql } from "gatsby"
import {
AvatarGroup,
Box,
Divider,
Grid,
PseudoBox,
Text,
Tooltip,
} from "@chakra-ui/core"
import { remove, intersection } from "lodash"
export const ... |
define([
"underscore",
"hr/hr",
"core/backends/rpc",
"models/user"
], function(_, hr, rpc, User) {
var Users = hr.Collection.extend({
model: User,
// Return an user from the collection by its user id
getById: function(userId) {
return this.find(function(model) {
... |
'use strict';
require('babel-core/register')({});
var server = require('./server');
|
"use strict";var a=Object.defineProperty;var n=(r,s)=>a(r,"name",{value:s,configurable:!0});const b=require("wkx"),L=require("lodash"),I=require("moment-timezone");module.exports=r=>{r.ABSTRACT.prototype.dialectTypes="https://mariadb.com/kb/en/library/resultset/#field-types",r.DATE.types.mariadb=["DATETIME"],r.STRING.t... |
import requests
url = "https://api.nomics.com/v1/currencies?key=f4b956d31db28555b9d720edaaa78c12&exchange=binance&base=BTC,ETH,LTC,XMR"e=BTC,ETH,BNB"
data = requests.get(url)
print(data.text) |
#!/usr/bin/env python3
#coding=utf-8
"""
for testing chess.py
Unittests to be added
"""
import chess
if __name__ == "__main__":
plt = chess.plt
b = chess.Board()
plt.show()
input('Press any button to continue... ')
plt.close()
|
/*
* @copyright Adam Benda, 2016
*
*/
/* global Blob, File, SVGSVGElement, EventTarget */
/**
* @classdesc SVG Rendering library
* @class
*/
var SVGRender = function () {
/**
* Last error message. Retrieve with method getErrorMessage()
* @type {String}
* @private
*/
this.errMessage... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class KoubeiServindustryExercisePlanSyncResponse(AlipayResponse):
def __init__(self):
super(KoubeiServindustryExercisePlanSyncResponse, self).__init__()
def parse_response_co... |
//import Vue from 'vue';
import router from './router';
import store from './store';
//import NProgress from 'nprogress'; // progress bar
//import 'nprogress/nprogress.css'; // progress bar style
//import notification from 'ant-design-vue/es/notification';
import * as types from '@/store/mutation-types';
import * as ut... |
const czConfig = require('./.cz-config');
const releaseRules = [
{ breaking: true, release: 'major' },
{ type: 'docs', scope: 'README', release: 'patch' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{... |
import React from "react";
import profilePicture from "../../../static/assets/images/bio/logo.png";
export default function() {
return (
<div className="content-page-wrapper">
<div
className="left-column"
style={{
background: "url(" + profilePicture + ") no-repeat",
back... |
import React from "react";
export default function footer(props) {
return (
<div className="footer">
<h3>{props.footerdata}</h3>
</div>
)
} |
from socket import *
import sys
from datetime import datetime as dt
# Import time so can send a current time stamp to the server
import time
server_address = ('127.0.0.1', 12000)
count = 10
clientSocket = socket(AF_INET, SOCK_DGRAM)
clientSocket.settimeout(1)
# Ping ten times
for i in range(count):
start = time... |
import * as Button from './esm/button';
export { Button };
|
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: 'a0d901ba-9956-4f7d-830c-2d7974c36666',
name: 'Azure Storage DM Dev',
use... |
def caesar(plaintext,shift):
alphabet=["a","b","c","d","e","f","g","h","i","j","k","l",
"m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
#Create our substitution dictionary
dic={}
for i in range(0,len(alphabet)):
dic[alphabet[i]]=alphabet[(i+shift)%len(alphabet)]
#Convert each letter of plaintext to ... |
from __future__ import print_function, absolute_import, division
import tensorflow as tf
import numpy as np
def conv_layer(layer_name, input_tensor, filter_height, filter_width, in_channels, out_channels,
stride_height, stride_width, padding='SAME', activation_function=tf.nn.relu,
filter... |
'use strict';
var redis = require('redis'),
client = redis.createClient();
var cursor = '0';
function scan() {
client.scan(
cursor,
'MATCH', 'q:job:*',
'COUNT', '10',
function(err, res) {
if (err) throw err;
// Update the cursor position for the next ... |
import {
ADD_PRODUCT,
ADD_PRODUCT_SUCCESS,
ADD_PRODUCT_ERROR,
DOWNLOAD_PRODUCTS,
DOWNLOAD_PRODUCTS_SUCCESS,
DOWNLOAD_PRODUCTS_ERROR,
DELETE_PRODUCT,
DELETE_PRODUCT_SUCCESS,
DELETE_PRODUCT_ERROR,
EDIT_PRODUCT,
EDIT_PRODUCT_SUCCESS,
EDIT_PRODUCT_ERROR,
} from '../types';
const initialState = {
... |
"use_strict";
var HeaderMenu = (function() {
var initHeadermenu = function() {
var body = ULUtil.get("body");
var headerMenuWrap = ULUtil.getByClass("ul-header-menu-wrap");
function closeAllSubmenu() {
let q = body.querySelectorAll(".ul-menu-item--open");
for (var i = 0; i < q.length; i++) {... |
/** @license
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.provide('shaka.util.FairPlayUtils');
goog.require('goog.Uri');
goog.require('shaka.util.BufferUtils');
/**
* @summary A set of FairPlay utility functions.
* @exportInterface
*/
shaka.util.FairPlayUtils = class {
/**
* ... |
import { makeStyles } from "@material-ui/core/styles"
const useStyles = makeStyles(theme => ({
root: {
flexGrow: "1",
},
navbar: {
backgroundColor: "black",
},
doubleHero: {
flexGrow: "1",
backgroundColor: "black",
color: "white",
textAlign: "center",
display: "flex",
alignIte... |
# Django settings for zulip project.
########################################################################
# Here's how settings for the Zulip project work:
#
# * settings.py contains non-site-specific and settings configuration
# for the Zulip Django app.
# * settings.py imports prod_settings.py, and any site-speci... |
class BookstoreAPI {
static baseURL = 'https://us-central1-bookstore-api-e63c8.cloudfunctions.net/bookstoreApi/apps/7Yk0oIip10822KACVnk2/books/';
static getAllBooks = async () => fetch(this.baseURL, {
method: 'GET',
headers: {
'Content-type': 'application/json; charset=UTF-8',
},
}).then(async ... |
const colors = require("tailwindcss/colors");
module.exports = {
purge: ["./src/**/*.{js,jsx,ts,tsx}", "./public/index.html"],
darkMode: "class", // or 'media' or 'class'
theme: {
extend: {},
colors: {
transparent: "transparent",
current: "currentColor",
black: colors.black,
white... |
import React, { Component } from "react"
class Cutter extends Component {
componentDidMount() {
this.onRouteChanged(this.props.location.pathname)
}
componentDidUpdate(prevProps) {
if (this.props.location.pathname !== prevProps.location.pathname) {
this.onRouteChanged(this.props.location.pathname)
}
}
o... |
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 23 00:00:55 2016
@author: likui
"""
from customized import *
from CDhitMIL import *
from sklearn.externals import joblib
def MIL_Rank():
test1=create_bags('S1.txt')
test2=create_bags('S2.txt')
train1,folds=create_mutants()
bag_aggre, ... |
#!/usr/bin/env vpython3
# 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.
"""Unit tests for instrumentation_test_instance."""
# pylint: disable=protected-access
import collections
import tempfile
import u... |
import React, { PureComponent } from 'react';
import { connect } from 'react-redux';
import styles from './index.module.less';
const FormItem = ({ label, onChange = () => {}, type = 'text', value }) => (
<div className={styles.formItem}>
<label>{label}:</label>
<input type={type} onChange={onChange} value={v... |
module.exports = {
bot: {
token: 'Secret Token',
prefix: '!',
owners: ['12345678910']
},
db: {
mongo: {
url: 'mongodb://localhost:27017/yourmongodbdatabase',
user: 'yourmongodbuser',
password: 'yourmongodbpassword',
options: { useNewUrlParser: true, us... |
exports.TestSpark = require('./TestSpark')
|
import { createStore, applyMiddleware } from 'redux';
import { rootReducer } from '../reducers';
import { middleware } from '../store';
export const testStore = initialState => {
const createStoreWithMiddleware = applyMiddleware(...middleware)(createStore);
return createStoreWithMiddleware(rootReducer, initialSta... |
// Do not edit this file; automatically generated by build.py.
"use strict";
// Copyright 2014 Google Inc. Apache License 2.0
Blockly.Dart=new Blockly.Generator("Dart");Blockly.Dart.addReservedWords("assert,break,case,catch,class,const,continue,default,do,else,enum,extends,false,final,finally,for,if,in,is,new,null,r... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
var callbackArguments = [];
var argument1 = function (a, b) {
callbackArguments.push(arguments)
return (a || '').toString() + (b || '').toString();
};
var argument2 = false;
var argument3 = "wN";
var argument4 = function (a, b) {
callbackArguments.push(arguments)
i++;
if (i <= 4) {
arr.p... |
function me() { me(); }
me(); |
/**
*
* @license Guriddo jqGrid JS - v5.0.0
* Copyright(c) 2008, Tony Tomov, tony@trirand.com
*
* License: http://guriddo.net/?page_id=103334
*/
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery","./grid.base","./grid.common"],a):a(jQuery)}(function(a){"use strict";a.fn.jqFilter=function... |
module.exports = {
up: queryInterface => queryInterface.bulkInsert(
'Conditions',
[
{
id: '1',
conditionName: 'Passport Renewal',
documentType: 'Passport',
userId: '-LSsFyueC086niFc9rrz',
createdAt: '2019-03-29 18:42:51.078+03',
updatedAt: '2019-03-29 18:4... |
import React from 'react';
import styled from 'styled-components';
import Button from './Button';
import PText from './PText';
const ContactBannerStyles = styled.div`
padding: 5rem 0;
.contactBanner__wrapper {
background-color: var(--deep-dark);
border-radius: 12px;
padding: 5rem 0rem;
text-align: ... |
var express = require('express');
var { User, Comment } = require('../models').default;
var router = express.Router();
router.get('/:id', function(req, res, next) {
Comment.findAll({
include: {
model: User,
where: { id: req.params.id },
},
})
.then((comments) => {
console.log(comment... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 25 09:55:44 2019
@author: edward
"""
from math import isclose
import itertools
import random
from vizdoom import DoomGame, ScreenResolution, GameVariable, Button, AutomapMode, Mode, doom_fixed_to_double
import numpy as np
from cv2 import resize
impo... |
import math
from PCRaster import *
from PCRaster.Framework import *
import generalfunctions
# Notes:
# time step duration in h
# vertical fluxes in m/h, variable name 'flux'
# vertical fluxes over a time step in m, variable name 'fluxAmount'
# downward fluxes are positive
# amounts in storages in m (stores),... |
import datetime
from zeeguu_core.model import User, Exercise, Bookmark
from zeeguu_core.model.bookmark import bookmark_exercise_mapping
from zeeguu_core import db
# USER_ID = 2162
# USER_ID = 2145 # Fe
# USER_ID = 2134 #Victor
USER_ID = 534
def past_exercises_for(user_id):
user = User.find_by_id(USER_ID)
q = (... |
module.exports = {
devServer: {
proxy: 'http://localhost:8000'
}
} |
describe("Testing noinfopath.kendo.ui", function(){
var $timeout, db, noKendoDataSourceFactory, kendoQueryParser;
beforeEach(function(){
module("ui.router");
module("noinfopath");
module("noinfopath.helpers");
module("noinfopath.app");
module("noinfopath.data");
module("noinfopath.ui");
module("noinfop... |
import Component from "@glimmer/component";
import { inject as service } from "@ember/service";
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class AutoplayGotchas extends Component {
@tracked sound
@tracked url;
@service stereo;
// BEGIN-SNIPPET autoplay-... |
const mongoose = require('mongoose')
const apiSchema = mongoose.Schema({
apikey : {
type : String,
required : true,
unique : true
},
email : {
type : String,
required : true,
unique : true
},
uses : {
type : Number,
defa... |
$(document).ready(function () {
//inactiviy logout setting
var logout_time = $("#logout_time").val();
var logout_time_ms = logout_time * 1000;
var timer = setInterval(idleSessout, logout_time_ms); //assign timer to a variable
$(window).bind('focus', function ()
{
clearInterval(timer); /... |
/* Copyright 2012 Mozilla Foundation
*
* 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... |
import pglet
from pglet import Button, Checkbox, Dialog, Text
with pglet.page("basic-dialog") as page:
def button_clicked(e):
d.open = True
page.update()
b = Button(text="Open dialog", on_click=button_clicked)
page.add(b)
d = Dialog(
title="Welcome!",
width=200,
... |
/* global describe, it, jsPDF, comparePdf, loadBinaryResource */
/**
* Standard spec tests
*/
describe("Module: putTotalPages", () => {
it("standardfont", () => {
const doc = new jsPDF({ floatPrecision: 2 });
const totalPagesExp = "{totalPages}";
doc.text(10, 10, "Page 1 of {totalPages}");
doc.add... |
!(function (e, a) {
module.exports = a(require('number-intl'))
})(this, function (e) {
return e.addLocaleData({
"locale": "ky",
"number": {
"nu": [
"latn"
],
"patterns": {
"decimal": {
"pos": "{number}",
"ne": "{minus}{num... |
module.exports = {
development: {
client: 'sqlite3',
connection: {
filename: './dev.sqlite3'
},
useNullAsDefault: true
}
};
|
const { BaseCommand } = require('@twilio/cli-core').baseCommands;
const { TwilioCliError } = require('@twilio/cli-core').services.error;
class ProfilesUse extends BaseCommand {
async run() {
await super.run();
const profile = this.userConfig.setActiveProfile(this.args.profile);
if (!profile) {
thr... |
from django.conf import settings
from django.contrib.auth.models import Permission
from django.urls import reverse
from django.utils.http import urlencode
from django.utils.translation import gettext
from django.utils.translation import gettext_lazy as _
from draftjs_exporter.dom import DOM
import wagtail.admin.rich_t... |
Template.sidebar.resize = function () {
$("#sidebar").height($(window).height());
};
Template.sidebar.rendered = function () {
$(window).resize(Template.sidebar.resize);
Template.sidebar.resize();
};
|
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false;
Vue.use(ElementUI)
new Vue({
router,
render: h => h(App)
}).$mount('#app')
|
module.exports = {
"stories": [
"../stories/**/*.stories.mdx",
"../stories/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials"
]
}
|
/**
* Copyright 2014 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import _ from 'lodash';
import './style.css';
import printMe from './print.js';
function component() {
const element = document.createElement('div');
const btn = document.createElement('button');
element.innerHTML = _.join(['Hello', 'webpack'], ' ');
element.classList.add('hello');
btn.innerHTML = 'Click m... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
require("./styles.scss");
var _react = _interopRequireWildcard(require("react"));
var _Hierarchy = _interopRequireDefault(require("./Hierarchy"));
var _Properties = _interopRequireDefault(require("./Properti... |
import { useState, useEffect } from 'react';
function usePosts(limit = 3) {
const [loading, setLoading] = useState(false);
const [data, setData] = useState([]);
const handleGetPosts = async () => {
const rawResult = await fetch('https://indrakusuma.web.id/content.json');
const result = await rawResult.j... |
/**
* Bio component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.com/docs/use-static-query/
*/
import * as React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { StaticImage } from "gatsby-plugin-image"
const Bio = () => {
const ... |
exports.names = ['.quake'];
exports.hidden = true;
exports.enabled = true;
exports.matchStart = false;
exports.handler = function(data) {
request('http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson', function(error, response, body) {
var quakes = JSON.parse(body).features.slice(0,3);
... |
import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import { Formik, Form, Field } from 'formik';
import { withStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/c... |
import React from 'react'
import {
CBadge,
CDropdown,
CDropdownItem,
CDropdownMenu,
CDropdownToggle,
CHeaderNavLink,
CImg
} from '@coreui/react'
import CIcon from '@coreui/icons-react'
const TheHeaderDropdown = () => {
return (
<CDropdown
inNav
className="c-header-nav-items mx-2"
... |
const Networks = require('./../../../src/networks.json');
const url = require('url');
function verifySharePopup (expectedUrl) {
return function (result) {
var newWindow = result.value[1];
this.verify.equal(result.value.length, 2, 'There should be an open window popup');
this.switchWindow(newWindow);
... |
/**
* Event Modal wrapper.
*
* @author Htmlstream
* @version 1.0
*
*/
;(function ($) {
'use strict';
$.HSCore.components.HSModalEvent = {
/**
*
*
* @var Object _baseConfig
*/
_baseConfig: {},
/**
*
*
* @var jQuery pageCollection
*/
pageCollection: $(),
... |
let app = new (require('express').Router)();
const companiesController = require('../controllers/companies');
app.use('', companiesController);
module.exports = app; |
export default {
data() {
return {
menus: [
{
name: "Home",
url: { name: "home" },
},
{
name: "Jobs",
url: { name: "home" },
},
],
}... |
import { bindActionCreators, compose } from 'redux';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { setDisplayName } from 'recompose';
import { withStyles } from 'material-ui/styles';
import { userLogin, snackBarOpen } from '/imports/ui/redux/actions';
import RegisterCont... |
#!/usr/bin/env python
#
# -----------------------------------------------------------------------------
# Version 0.0.6 - August 2015 - Included Penalisation on binning, default M=1
# Version 0.0.5 - August 2015 - Change np.average to np.ma.average to avoid Zero
# Error message
# Version ... |
import { t as _t } from "marko/dist/runtime/html";
const _marko_componentType = "hPPGxVRm",
_marko_template = _t(_marko_componentType);
export default _marko_template;
import _new from "./new.marko";
import _marko_tag from "marko/dist/runtime/helpers/render-tag";
import _marko_renderer from "marko/dist/runtime/... |
import React from "react";
export default {
name: "sendLongRangeMessage",
objectKey: "sendLongRangeMessage",
category: "Triggers",
component: () => (
<div>
Event: Send Long Range Message
<div>
<small>
Possible "Is Outgoing" options:{" "}
<div>
<code>true<... |
"use strict";
/* globals describe it */
const path = require("path");
const fs = require("fs");
const webpack = require("..");
describe("Examples", () => {
const basePath = path.join(__dirname, "..", "examples");
const examples = require("../examples/examples.js");
examples.forEach(examplePath => {
const filter... |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# MIT License
# Copyright (c) 2017-2018 Jetsonhacks
# Please see accompanying license information
from __future__ import print_function
import os,sys
class terminalColors:
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
import pprint
import subproces... |
const express = require("express");
const cors = require("cors");
const { uuid } = require("uuidv4");
// const { uuid } = require("uuidv4");
const app = express();
app.use(express.json());
app.use(cors());
const repositories = [];
const likes = [];
app.get("/repositories", (request, response) => {
const results ... |
import { t as _t } from "marko/src/runtime/html/index.js";
const _marko_componentType = "packages/translator-default/test/fixtures/entities/template.marko",
_marko_template = _t(_marko_componentType);
export default _marko_template;
import _marko_renderer from "marko/src/runtime/components/renderer.js";
const _... |
/**
* GPI: download
*/
module.exports = function(px2me, data, callback){
delete(require.cache[require('path').resolve(__filename)]);
var utils79 = require('utils79');
px2me.createBroccoli({}, function(broccoli){
// console.log(broccoli);
if( !data.target ){
callback(false);
return;
}
/*
(↓)brocc... |
import test from 'tape';
import midpoint from '.';
import distance from '@turf/distance';
import { point } from '@turf/helpers';
test('midpoint -- horizontal equator', function (t) {
var pt1 = point([0, 0]);
var pt2 = point([10, 0]);
var mid = midpoint(pt1, pt2);
t.equal(distance(pt1, mid).toFixed(6)... |
export const larCommentDots = {
name: 'lar-comment-dots',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M3 5v18h5v5.078L14.352 23H29V5zm2 2h22v14H13.648L10 23.918V21H5zm5 5a1.999 1.999 0 100 4 1.999 1.999 0 100-4zm6 0a1.999 1.999 0 100 4 1.999 1.999 0 100-4zm6 0a1.999 1.999 0 100 4... |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "9ebe2abb1e66b5fac55ff86e629bdca9",
"url": "/monomodel/site/index.html"
},
{
"revision": "8b8d14ab4289f83f5364",
"url": "/monomodel/site/static/css/2.371916a1.chunk.css"
},
{
"revision": "8b8d14ab4289f83f5364"... |
//! moment.js locale configuration
//! locale : Russian [ru]
//! author : Viktorminator : https://github.com/Viktorminator
//! Author : Menelion Elens le : https://github.com/Oire
//! author : Коренберг Марк : https://github.com/socketpair
;(function (global, factory) {
typeof exports === 'object' && typeof module ... |
__NUXT_JSONP__("/26/183", (function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,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,Y,Z,_,$,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as){return {data:[{metaTitle:B,metaDesc:C,verseId:183,surahId:26,currentSurah:{number:"26",name:"الشعراۤء",name_latin:"Asy... |
import abc
from enum import Enum
from typing import Optional
from .abc import AbstractConnection
class AuthBase:
value: Optional[str]
def __init__(self, connector: AbstractConnection):
self.connector = connector
self.value = None
@abc.abstractmethod
def encode(self) -> str:
... |
var indexObj={
init:function(){
this.slider();
this.notice();
this.winList();
this.gameColumn();
},
slider:function(){
var map = {};
map['adType'] =1;
var mw=baseObj.mw(map);
$.ajax({
type: "POST",
url:move.advert,
dataType:'json',
data:{
mw:mw
},
success:function(ret){
var ... |
#! /usr/bin/python3
from sys import argv
from copy import deepcopy
import time
import os
DIM = 9
class Cell:
__slots__ = ('value', 'possible')
def __init__(self, initial):
"""
Constructor
"""
self.value = initial
self.possible = [] # [0,0,0,0,0,0,0,0,0]
def __st... |
module.exports = function initializeDomEvents(THREE, THREEx) {
/** @namespace */
THREEx = THREEx || {};
THREEx.Linkify = function(domEvents, mesh, url, withBoundingBox){
withBoundingBox = withBoundingBox !== undefined ? withBoundingBox : true
// compute geometry size
var geometry = mesh.geometry
geometry.comput... |