text stringlengths 3 1.05M |
|---|
(function(__global) {
var tmp0;
tmp0 = 23;
})(typeof global === 'undefined' ? this : global); |
'use strict';
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
const paths = require('./paths');
// Make sure that including paths.js after env.js will read .env variables.
delete require.cache[require.resolve('./paths')];
const NODE_ENV = process.env.NODE_ENV;
... |
const formatter = require('@commitlint/format')
const chalk = require('chalk')
module.exports = (report, options) => {
const isError = report.errorCount > 0
let result = formatter.default(report, options)
if (isError) {
result += chalk.yellow("\n\nPlease use command 'npm run commit' to commit changes\n\n")
... |
/*!
*
* Super simple wysiwyg editor v0.8.18
* https://summernote.org
*
*
* Copyright 2013- Alan Hong. and other contributors
* summernote may be freely distributed under the MIT license.
*
* Date: 2020-05-20T18:09Z
*
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'objec... |
"""
Changing subtitle sytle
"""
import sys
import fileinput
import time
import regex
subtitle = sys.argv[1]
subfont = sys.argv[2]
sf = subfont + ","
# setting font
for font in fileinput.input(subtitle, inplace=True, encoding="utf-8"):
font = regex.sub(r"(?:^Style: .*?,)\K().*?,", sf, font.strip())
print(font.... |
import React, { useState } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import {
Button,
CardContent,
Grid,
Paper,
TextField,
Typography,
} from '@material-ui/core';
import { forgotPasswordDrawing } from '../../assets';
import { EMAIL_REGEX } from '../../constants';
const ForgotPass... |
var expect = require('chai').expect,
dino = require('../src/index');
describe('dino-name', function () {
describe('all', function () {
it('should be a array of strings', function () {
expect(dino.all).to.satisfy(isArrayOfStrings);
function isArrayOfStrings(array)... |
/* Copyright 2014 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... |
const shell = require('shelljs');
exports.create = (filename, extension) => {
const filePath = `${process.cwd()}/${filename}.${extension}`;
// console.log(filePath);
shell.touch(filePath);
};
exports.createdir = (dirname) => {
const path = `${process.cwd()}/${dirname}`;
shell.mkdir(path);
}
|
import Axios from 'axios';
import styled from 'styled-components';
import { useContext, useState } from 'react';
import { Link, useHistory } from 'react-router-dom';
import UserContext from '../../context/UserContext';
import domain from '../../util/domain';
import ErrorMessage from '../../util/ErrorMessage';
import {... |
'use strict';
// Update cache names any time any of the cached files change.
const CACHE_NAME = 'static-cache-v1';
// Add list of files to cache here.
const FILES_TO_CACHE = ['/offline.html'];
self.addEventListener('install', evt => {
// console.log('[ServiceWorker] Install');
evt.waitUntil(
cac... |
import RefundSerializer from '@apps/finance/serializers/refund_serializer'
import Customer from '@apps/finance/models/customer'
import Refund from '@apps/finance/models/refund'
const refundsRoute = async (req, res) => {
const customer = await Customer.query(qb => {
qb.where('team_id', req.team.get('id'))
qb... |
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Copyright (c) Megvii, Inc. and its affiliates.
from loguru import logger
from tqdm import tqdm
import torch
import torchvision
from yolox.utils import (
gather,
is_main_process,
postprocess,
synchronize,
time_synchronized,
xyxy2xywh
)
import co... |
from lxml import etree
with open("show_security_zones.xml") as f:
my_xml = etree.fromstring(f.read())
### Exercise 4a
# Finds first instance of "zones-security" in xml file
first_sec_zone = my_xml.find("zones-security")
# Print first tag
print()
print("EXERCISE 4a\n" + ("=" * 12))
print()
print("Find tag of the ... |
from flask import Flask, jsonify, json, Response, request
from flask_cors import CORS
import mysfitsTableClient
import os
app = Flask(__name__)
CORS(app)
# The service basepath has a short response just to ensure that healthchecks
# sent to the service root will receive a healthy response.
@app.route("/")
def healthC... |
import { getRoot, types } from "mobx-state-tree";
import Utils from "../utils";
import { guidGenerator } from "../utils/unique";
import Constants, { defaultStyle } from "../core/Constants";
export const HighlightMixin = types
.model()
.views(self => ({
get _hasSpans() {
return self._spans ? (
se... |
# complex input_data[100] = {
# complex( 0.87351053,-2.95107652), complex( 0.60034215,+0.14694272), complex(-1.19640623,-0.47464486), complex(-2.02080161,-1.41166226),
# complex( 1.03313946,-0.19951225), complex( 0.65292322,-0.99240952), complex( 0.39455197,+0.88894462), complex(-2.32675700,+0.75269158),
# ... |
import json
import os
from os.path import expanduser, exists
try:
from yaml import safe_load
except ImportError:
yaml_avail = False
else:
yaml_avail = True
cloudmap = { }
if 'OS_AUTH_URL' in os.environ:
cloudmap['auth_url'] = os.environ['OS_AUTH_URL']
elif 'OS_CLOUD' in os.environ:
clouds = os.en... |
import React from 'react'
import {View, StyleSheet, Dimensions} from 'react-native'
const SCREEN_WIDTH = Dimensions.get('window').width
const SCREEN_HEIGHT = Dimensions.get('window').height
const Spacer =({children})=>{
return<View style = {styles.spacer}>{children}</View>
};
const styles = StyleSheet.create({
... |
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_pages_Home_vue"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/Home.vue?vue&type=script&lang=js&":
/*!************************... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.3/esri/copyright.txt for details.
//>>built
define({basic:"Basic",preview:"\u30d7\u30ec\u30d3\u30e5\u30fc",shape:"\u5f62\u72b6",fill:"\u5857\u308a\u3064\u3076\u3057",outline:"\u30a2\u30a6\u30c8\u30e9\u30a4\u3... |
# Copyright (c) 2020, Fabio Muratore, Honda Research Institute Europe GmbH, and
# Technical University of Darmstadt.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source ... |
# coding: utf8
if auth.user is None:
redirect(URL('default', 'user', args='login',
vars=dict(_next=URL(args=request.args, vars=request.vars))))
import pygal
from pygal.style import CleanStyle
from pygal.style import SaturateStyle
from pygal.style import Style
custom_style = Style(
colors=('#01DF01', '#FF0000... |
__NUXT_JSONP__("/amp/86/9", (function(a,b,c,d,e,f,g,h,i,j){return {data:[{metaTitle:c,metaDesc:d,verseId:9,surahId:86,currentSurah:{number:"86",name:"الطارق",name_latin:"At-Tariq",number_of_ayah:"17",text:{"1":"وَالسَّمَاۤءِ وَالطَّارِقِۙ ","2":"وَمَآ اَدْرٰىكَ مَا الطَّارِقُۙ ","3":"النَّجْمُ الثَّاقِبُۙ ","4":"اِنْ ... |
// a wrapper around JSON.stringify to allow for more control over the formatting of the JSON
export default function stringify(obj, optionsOptional) {
const stringOrChar = /("(?:[^\\"]|\\.)*")|[:,]/g;
function prettify(string) {
return string.replace(stringOrChar, (match, str) => (str ? match : `${match} `));... |
import React from 'react';
import clsx from 'clsx';
import { makeStyles, useTheme } from '@material-ui/core/styles';
import Input from '@material-ui/core/Input';
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import FormControl from '@material-ui/core/FormContr... |
var NISLFuzzingFunc = function() {
var a = Array.prototype.slice;
return a.next.apply(a, arguments);
};
NISLFuzzingFunc();
|
const Worker=require('./worker.js');
const some_path="/home/globik/fuck";
const str="pupkin";//6
const str2="HELLO";
const b=Buffer.from(str);
const b2=Buffer.from(str2);
function dura(some_path){
const w=new Worker(some_path);
//w.create_client(some_path);
w.on("connect",d=>{
console.log("out ***on_connect A?:*** ",... |
module.exports = function reverse (n) {
let str = String(Math.abs(n));
let num = Number(str.split('').reverse().join(''));
return num;
}
|
module.exports = ({
name: "shopreward",
code: `
$setGlobalUserVar[Utm;$sum[$getGlobalUserVar[Utm;$authorID];1];$authorID]
$onlyIf[$getGlobalUserVar[premium]==true;:thinking:**You don't have premium**]
$thumbnail[$authorAvatar]
$color[RANDOM]
$title[Redeemed Ultimate Lootbox]
$description[You have redeemed a **$customE... |
import * as dataType from './dataType';
import * as graph from './graph';
import * as parser from './parser';
import * as csl from './csl';
export const util = Object.assign({}, dataType, graph, parser, csl);
export * from './register';
export * from './chain';
export * from './type';
export * from './data'; |
function prank() {
chrome.tabs.executeScript({
file: 'prank.js'
});
}
if(document.getElementById('prank') != null) {
document.getElementById('prank').addEventListener('click', prank);
}
|
const fs = typeof require !== "undefined" && require('fs');
const crypto = typeof require !== "undefined" && require('crypto');
const all = (arr, fn = Boolean) => arr.every(fn);
const allEqual = arr => arr.every(val => val === arr[0]);
const any = (arr, fn = Boolean) => arr.some(fn);
const approximatelyEqual = (v1, v2... |
/**
* Bootstrap Table Filter German translation
* Author: Tobias Ehrig <me@t0by.eu>
*/
(function ($) {
'use strict';
$.extend($.fn.bootstrapTableFilter.defaults, {
formatRemoveFiltersMessage: function () {
return 'Filter zurücksetzen';
},
formatSearchMessage: function () ... |
/* eslint-disable */
// TODO: Remove previous line and work through linting issues at next edit
'use strict';
/* jshint unused: false */
/* jshint latedef: false */
var should = require('chai').should();
var expect = require('chai').expect;
var _ = require('lodash');
var sinon = require('sinon');
var bitcore = requi... |
// ::INFO - FORBINDELSE TIL DATABASEN
// Her skabes forbindelse til databasen vha. mysql
const mysql = require('mysql2');
module.exports = {
'connect': () => mysql.createConnection({
'host': 'localhost',
'user': 'root',
'password': '',
'database': 'svendeproeve_magasinet_bil_baad_og_bikes'
})
}; |
"use strict";
import React from "react";
import { ZeusAd } from "../lib";
import renderer from "react-test-renderer";
jest.mock("../../util/lib/zeus-api", () => ({
...jest.requireActual("../../util/lib/zeus-api"),
triggerPersonalizedAdPermissionsChange: jest.fn()
}));
describe("@zeus-platform/ad", () => {
it("S... |
const path = require("path");
module.exports = {
mode: "development",
entry: {
signup: "./src/signup.js",
login: "./src/login.js",
create_fooditem: "./src/create-fooditem.js",
all_fooditems: "./src/all-fooditems.js",
admin_item:"./src/admin-item.js"
},
output: {
path: path.resolve(__dir... |
angular
.module('com.bendani.bibliomania.book.detail.reading.dates.directive', [
'com.bendani.bibliomania.book.model',
'com.bendani.bibliomania.personal.book.info.model',
'com.bendani.bibliomania.confirmation.modal.service',
'com.bendani.bibliomania.reading.date.modal.service',
... |
/**
* ----------------------------------------------------------------------------------------------------
* Set Self-Hosted Runners in a Group for an Enterprise [Run]
*
* @description - Set self-hosted runners in a group for an enterprise using the Github API
*
* @author Buildable Technologies Inc.
* @access... |
# -*- coding: utf-8 -*-
#
# Flask-KwDocs documentation build configuration file, created by
# sphinx-quickstart on Fri Dec 14 21:02:58 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... |
'use strict';
var expect = require('chai').expect;
describe('registry : domain : plugins-initialiser', function(){
var pluginsInitialiser = require('../../src/registry/domain/plugins-initialiser');
describe('when initialising not valid plugins', function(){
describe('when plugin not registered correctly', ... |
const run = require('../../run');
const { userConfig } = require('../../mocks/user-config');
describe('@down', () => {
it('should replace @down(desktop) with @media (min-width: 61.99875em)', () => {
const source = `
.test {
@down (desktop) {
background-color: gold;
... |
import React from 'react';
import './r2d2.scss';
const R2D2 = () => {
return(
<div className="r2d2">
</div>
)
}
export default R2D2; |
module.exports = {
"extends": [
"airbnb",
"plugin:json/recommended",
"plugin:codeceptjs/recommended",
"plugin:chai-expect/recommended",
"plugin:chai-friendly/recommended"
],
"root": true,
"env": {
"browser": true,
"es6": true,
"jest": true,... |
#!/usr/bin/env python3
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
setup_args = generate_distutils_setup(
packages=['tuw_iwos_controller_revolute'],
package_dir={'': 'src'}
)
setup(**setup_args)
|
function AccountManager() {
this.balance = 0;
this.allCredit = [];
this.allDebit = [];
this.allDates = [];
}
AccountManager.prototype.deposit = function(credit, number, date) {
this.allCredit.push(credit);
this.allDates.push(date);
credit.addCredit(number);
date.addDateToCredit(credit);
this.b... |
angular.module('LoginCtrl', [])
.factory('Trackers', function() {
var trackers = [];
var trackerName = [
'FrenchTorrentDB',
't411',
'Smartorrent'
];
function getTracker(name){
var tracker = {
name : '',
login : '',
password : '',
isLogge... |
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* Tabulator v4.6.1 (c) Oliver Folkerd */
;(func... |
export { default as dayJsLocale } from 'dayjs/locale/it';
export default from './locale.json';
|
morpheus.ElementSelectionModel = function (project) {
this.viewIndices = new morpheus.Set();
this.project = project;
};
morpheus.ElementSelectionModel.prototype = {
click: function (rowIndex, columnIndex, add) {
var id = new morpheus.Identifier([rowIndex, columnIndex]);
var isSelected = this.viewIndices.h... |
'use strict';
const app = require('express')();
const session = require('express-session');
const {random} = require('pokemon');
app.use(session({ secret: 'fromage' })); // <1>
app.get('/', (req, res) => {
req.session.pokemon = random(); // <2>
res.redirect('my-pokemon');
});
... |
"use strict";
var _ = lib("utils/helpers");
describe("Helpers", function() {
describe("extend", function() {
var extend = _.extend;
var base = {
fruits: ["apple"],
vegetables: ["beet"],
thing: null,
otherThing: "hello!",
data: [{ user: "barney" }, { user: "fred" }]
};
... |
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const CleanWebpackPlugin = require("clean-webpack-plugin");
const webpack = require("webpack");
module.exports = {
entry: {
app: "./src/index.js"
},
devtool: "inline-source-map",
devServer: {
contentBase: "./dist",
... |
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/styles';
import AccountCircle from '@material-ui/icons/AccountCircle';
import {
Button,
TextField,
Grid,
Select,
FormControl,
InputLabel,
Backdrop,
CardHeader,
... |
a, b = open("data.txt").read().split("\n")
a, b = [x.split(",") for x in [a, b]]
dir_x = {'L': -1, 'R': 1, 'U': 0, 'D': 0}
dir_y = {'L': 0, 'R': 0, 'U': 1, 'D': -1}
def get_coords(data):
x = 0
y = 0
length = 0
ans = {}
for move in data:
direction = move[0]
number = int(move[1:])
... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The production QuantifierPrefix :: ? evaluates by returning the two
results 0 and 1
es5id: 15.10.2.7_A5_T2
description: >
Execute /java(script)?/.exec("state: ja... |
export const securityHeaders = {
'referrer-policy': 'same-origin',
'strict-transport-security': 'max-age=63072000; includeSubdomains; preload',
'x-content-type-options': 'nosniff',
'x-frame-options': 'DENY',
'x-xss-protection': '1; mode=block'
}
|
//<band-gallery gallery-imgs='myImgs' nav-top-btn="true" nav-down-btn="true" page-nr="true"></band-gallery>
(function () {
'use strict';
angular.module('ngFader', [])
.directive('ngFader', ['$timeout','$interval', function (timer,$interval) {
function getFader(scope){
/* =============================... |
"""
@file
@brief Install or update all packages.
.. faqref::
:title: Skipped modules
Some modules are still marked as a dependency by others
even if they are not needed or cannot be installed.
* `enum-compat <https://pypi.python.org/pypi/enum-compat>`_:
not needed after Python 3.5
* `pretty... |
/**
👨👨👧👧
@file multi-sprite avatar
@summary make the player big
@license MIT
@version 13.4.2
@author Sean S. LeBlanc
@description
Allows multiple sprites to be moved together along with the player
to create the illusion of a larger avatar.
Provided example is a 2x2 square for simplicity,
but multi-sprite avata... |
// Import Style
import './cardItem.scss';
// Import internal modules
import controller from './cardItem.controller';
import directive from './cardItem.directive';
import cardItemTitle from './cardItemTitle';
import cardItemActions from './cardItemActions';
import cardItemChild from './cardItemChild';
import cardItemN... |
# Software License Agreement (BSD License)
#
# Copyright (c) 2013, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above... |
from django.core.management.base import BaseCommand
from knox.models import AuthToken
class Command(BaseCommand):
help = "Deletes all knox tokens"
def handle(self, *args, **kwargs):
AuthToken.objects.all().delete()
self.stdout.write("All tokens have been deleted!")
|
import numpy as np
from ..feature.util import (FeatureDetector, DescriptorExtractor,
_mask_border_keypoints,
_prepare_grayscale_input_2D)
from ..feature import (corner_fast, corner_orientations, corner_peaks,
corner_harris)
from ..transfor... |
import {getComponentOption, getToComponent} from '../utils/routerHookUtil';
import {incrForceRouteKey, setRouteKey} from '../mixins/routeKeyMixin';
export default (to, from, next) => {
const promises = [];
to.matched.forEach((m, index) => {
const promise = getToComponent(to, index).then(component => {... |
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import AppBar from 'material-ui/AppBar';
import Particles from 'react-particles-js';
import Modal1 from './Modal1';
import RaisedButton from 'material-ui/RaisedButton';
import Catch from './Catch'
import Fetch from './Fetch'
... |
const specMetadataType = {
MODEL: 'MODEL',
FUNC: 'FUNC',
ACTION: 'ACTION',
};
const specMetadataScope = {
ENTITY: 'ENTITY',
COLL: 'COLL',
};
module.exports = {
specMetadataScope,
specMetadataType,
};
|
/*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict';
const { Gateway, Wallets } = require('fabric-network');
const FabricCAServices = require('fabric-ca-client');
const fs = require('fs');
const path = require('path');
const { v4: uuidv4 } = require('uuid');
const { registerUser, userExist } = require("./regist... |
'use strict';
var util = require('./script/common/util.js');
var Preloader = require('./script/engine/preloader.js');
var Game = require('./script/engine/game.js');
var Renderer = require('./script/engine/renderer.js');
var Canvas = require('./script/engine/canvas.js');
var UI = require('./script/ui/ui.js');
var bs = r... |
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import { unstable_useId as useId, unstable_useForkRef as useForkRef } from '@mui/utils';
import { MenuUnstyledContext } from '../MenuUnstyled';
import { useButton } from '../ButtonUnstyled';
export default function useMenuItem(pr... |
/*
Copyright 2014, KISSY v1.49
MIT Licensed
build time: May 22 12:30
*/
KISSY.add("separator/render",["component/control"],function(b,a){return a("component/control").getDefaultRender().extend({beforeCreateDom:function(a){a.elAttrs.role="separator"}})});KISSY.add("separator",["component/control","separator/render"],fun... |
"""
cclib (http://cclib.sf.net) is (c) 2006, the cclib development team
and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html).
"""
__revision__ = "$Revision: 733 $"
import random # For sometimes running the progress updater
import numpy
from density import Density
class MBO(Density):
... |
/**
* 신규 글 DB 저장
*
*/
import { loadDB, firestore } from "../../../public/js/db";
import moment from "moment";
export default async (req, res) => {
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE");
res.setHeader("Access-Control-Allow-H... |
const Employee = require('./employee');
class Engineer extends Employee {
constructor(name, id, email, gitHub) {
super(name, id, email);
this.gitHub = gitHub;
}
getGithub() {
return this.gitHub;
}
getRole() {
return 'Engineer';
}
}
module.exports = Engineer; |
# stdlib
from enum import Enum
from typing import Any
from typing import Dict
from typing import Optional
# third party
from google.protobuf.reflection import GeneratedProtocolMessageType
from nacl.signing import VerifyKey
# syft absolute
import syft as sy
# relative
from ..... import lib
from .....proto.core.node.c... |
import sys
from setuptools import setup, find_packages
requires = ["click", "coloredlogs==10.0", "humanfriendly==4.17"]
tests_requires = ["pytest", "pytest-cache", "pytest-cov"]
lint_requires = ["flake8", "black"]
dev_requires = ["bumpversion"] + requires + tests_requires + lint_requires
setup(
name="gypse",
... |
module.exports.stats = {
'coverage': {
'external': {
'css': {
'absolute': {
'total': 0,
'unused': 0,
'used': 0
},
'percent': {
'unused': 0,
'used': 0
}
},
'js': {
'absolute': {
'total': 0,
... |
const fs = require('fs');
const path = require('path');
module.exports = function(content, liquidFilePath) {
let transformedContent = content.toString();
// naming convention is : section_name.schema.json for separate json schema files.
const jsonSchemaFilePath = liquidFilePath.replace('.liquid', '.schema.json'... |
import argparse
import math
import os
import random
import runpy
import shutil
import subprocess
import sys
import timeit
from collections import defaultdict
from functools import wraps
from pathlib import Path
import numpy as np
import taichi.cc_compose
import taichi.diagnose
from colorama import Back, Fore, Style
fr... |
const Employee = require("./Employee");
class Intern extends Employee {
constructor(name, id, email, school) {
super(name, id, email);
this.school = school;
this.role = "Intern";
this.getSchool = () => {
return school;
};
this.getRole = () => {
return this.role;
};
}
}
mo... |
/*
Copyright 2020 Bruno Windels <bruno@windels.cloud>
Copyright 2020 The Matrix.org Foundation C.I.C.
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
... |
/* takes commands and builds into svg path string */
var space = '\u0020';
//todo: do lots of testing with different paths
// make a collection of different paths
// study how svg-path-parser breaks up paths.
function handleCommand (memo, command, index, commands) {
var result;
switch(command.code){
case 'M':
... |
var express = require("express"),
router = express.Router();
var Blogs = require("../models/blogs"),
middleware = require("../middleware");
router.get("/",function(req,res){
res.render("index");
});
router.get("/feeds",middleware.isLoggedIn,function(req,res){
res.send("blogs");
})... |
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = {
entry: path.join(__dirname, './src/main.js'),
output: {
path: path.join(__dirname, './dist'),
filename: 'bundle.js',
// 在没有将 index.h... |
(function (app) { 'use strict';
// Word statistic list
// Arguments:
// options: {
// container - container selector
function WordList (options) {
this._container = document.querySelector( options.container );
const close = app.Visualization.root.querySelector( '.close... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import zipfile
import os, sys
import glob
import shutil
import struct
root_dir = "/Users/dikien/Downloads/apk/"
os.chdir(root_dir)
files = [x[2] for x in os.walk(root_dir)][0]
#---------------------------------------------------------------------
# isdex : dex 파일이 맞는지 체크
... |
"""
Class Features
Name: drv_configuration_time_rfarm
Author(s): Fabio Delogu (fabio.delogu@cimafoundation.org)
Date: '20201130'
Version: '1.0.1'
"""
#######################################################################################
# Library
import logging
import time
import datetime... |
search_result['780']=["topic_000000000000025B.html","ERROR_IS_JOIN_TARGET Field",""]; |
/**
* angular-strap
* @version v2.0.3 - 2014-05-30
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes (olivier@mg-crea.com)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
"use strict";angular.module("mgcrea.ngStrap.dropdown",["mgcrea.ngStrap.tooltip"]).provider("$dropdown... |
#
# Copyright 2016 The BigDL Authors.
#
# 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 ... |
// @flow
import defineType, { assertNodeType, assertOneOf } from "./utils";
import { PLACEHOLDERS } from "./placeholders";
defineType("Noop", {
visitor: [],
});
defineType("Placeholder", {
visitor: [],
builder: ["expectedNode", "name"],
// aliases: [], defined in placeholders.js
fields: {
name: {
... |
# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6320, generator: {generator})
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# ---------------------------------------... |
import { afterSetData } from './utils'
import { TuaComp, TuaPage } from '../../src'
describe('TuaComp', () => {
afterEach(() => {})
test('nested setData with callback', (done) => {
const vm = TuaComp({
data: {
a: { b: 'c' },
young: 'young',
},
... |
# -*- coding: utf-8 -*-
'''
Control virtual machines via Salt
'''
# Import python libs
from __future__ import absolute_import, print_function
import os.path
import logging
# Import Salt libs
import salt.client
import salt.utils.virt
import salt.utils.cloud
import salt.key
from salt.exceptions import SaltClientError
... |
'use strict';
const gulp = require('gulp-help')(require('gulp'));
const fs = require('fs');
const rollup = require('rollup').rollup;
const commonjs = require('rollup-plugin-commonjs');
const nodeResolve = require('rollup-plugin-node-resolve');
const path = require('path');
const config = require('../build.conf');
fun... |
/*
* Copyright 2017-2020 The ShadowEditor Authors. All rights reserved.
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file.
*
* For more information, please visit: https://github.com/tengge1/ShadowEditor
* You can also visit: https://gitee.com/tengge1/ShadowEd... |
import React from "react"
import Heading from "../components/Heading"
import Paragraph from "../components/Paragraph"
import Section from "../components/Section"
import Surface from "../components/Surface"
import VerticalSpacing from "../components/VerticalSpacing"
export default {
title: "Theme|Space",
}
const Si... |
const inputError = document.querySelectorAll('.nhsuk-input--error');
if (inputError.length) inputError[0].focus();
|
exports.up = function(knex) {
return knex.schema.createTable('comments', tbl => {
tbl.increments();
tbl.string('description', 1000)
.notNullable();
tbl.integer('author_id')
.notNullable()
.unsigned()
.references('id')
.inTable('user... |