text stringlengths 3 1.05M |
|---|
var express = require('express');
var router = express.Router();
var request = require('request');
var QuickBooks = require('node-quickbooks');
const util = require('util');
const helper = require('../Utils/helper');
const qbRepository = require('../Repository/qbRepository');
const sessionManager = require('../Utils/s... |
//@flow
import template from './elementsPalette/templates/elementsPalette.html';
import PaletteToolbarView from './elementsPalette/views/PaletteToolbarView';
import ContextPaletteView from './elementsPalette/views/ContextPaletteView';
import IconPaletteView from './elementsPalette/views/IconPaletteView';
export defaul... |
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("_"),require("Vue"));else if("function"==typeof define&&define.amd)define(["_","Vue"],t);else{var i="object"==typeof exports?t(require("_"),require("Vue")):t(e._,e.Vue);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o... |
export default (state, action) => {
switch (action.type) {
case 'increment':
return {
...state,
count: state.count + 1,
};
case 'countincrement':
return {
...state,
anothercount: state.anothercount + 1,
};
default:
return state;
}
} |
import { MutationNames } from '../mutations/mutations'
import { createLoan } from '../../request/resources'
export default function ({ commit, state }, object) {
commit(MutationNames.SetSaving, true)
createLoan({ loan: object }).then(response => {
TW.workbench.alert.create('Loan was successfully created.', 'no... |
from kivy.uix.gridlayout import GridLayout
from kivy.uix.scrollview import ScrollView
from kivy.utils import rgba
from kivy.metrics import dp
from kivy.uix.screenmanager import Screen
from kivy.lang import Builder
from kivy.core.window import Window
from kivy.network.urlrequest import UrlRequest
from kivy.uix.popup imp... |
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
*... |
#!/usr/bin/env python3
from subprocess import check_call, check_output
from time import sleep
import re
ADB = './adb.exe'
def wait_for_emulator():
print("Waiting for emulator")
check_call([ADB, 'wait-for-device', 'shell', 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent... |
import Icon from '../components/Icon.vue'
Icon.register({"block":{"width":24,"height":24,"paths":[{"d":"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c... |
import socket
import json
import struct
import sys
from .protocol import encrypt, decrypt
from phenome_core.core.helpers.socket_helper import receive, send
class TPLinkSmartDevice:
"""An object to represent any TP-Link smart device.
You may not have to instantiate that object directly.
"""
DEFAULT... |
from django.views import generic
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
from .models import Album
class IndexView(generic.ListView) :
template_name = 'music/index.html'
context_object_name = 'all_albums'
def get_queryset(self):
... |
(function () {
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// packages/msavin:jetsetter/jetsetter.js ... |
import React from 'react';
import { Container, Card, Row, Col, Button } from 'react-bootstrap';
import Logo from '../../../dist/assets/reaperlogo.jpg';
import Hero from '../common/Hero';
var GetStarted = function (props) {
React.useEffect(() => {
document.title = 'reaMIXed: Getting Started';
}, []);
return ... |
import {assert} from 'chai';
import {compressShader} from '../../src/lib/minify.js';
export function minifyTests() {
describe('Minify', function() {
describe('#compressShader()', function() {
it('should minify basic', function() {
const input = `AAA;\n` +
`\n` +
... |
import React from 'react';
import { connect } from 'react-redux';
import { toggleMobileNavVisibility } from '../../reducers/Layout';
import { Navbar, Nav, NavItem, NavDropdown, MenuItem, FormGroup, FormControl } from 'react-bootstrap';
import { Link, withRouter } from 'react-router-dom';
const Header = ({
showMo... |
import React from "react";
import ReactDOM from "react-dom";
import MainPage from "./page/MainPage";
ReactDOM.render(<MainPage/>, document.getElementById("root")); |
import styled from 'styled-components'
const Spinner = styled.div`
display: block;
width: ${({ size }) => (size ? `${size}px` : '64px')};
height: ${({ size }) => (size ? `${size}px` : '64px')};
margin: 0 auto;
padding: 5px;
&:after {
content: ' ';
display: block;
width: ${({ size }) => (size ?... |
var parse = require('acorn').parse;
var objectKeys = Object.keys || function (obj) {
var keys = [];
for (var key in obj) keys.push(key);
return keys;
};
var forEach = function (xs, fn) {
if (xs.forEach) return xs.forEach(fn);
for (var i = 0; i < xs.length; i++) {
fn.call(xs, xs[i], i, xs);
... |
import boto
import boto3
from boto3.dynamodb.conditions import Key
import sure # noqa # pylint: disable=unused-import
import pytest
from datetime import datetime
from freezegun import freeze_time
from boto.exception import JSONResponseError
from botocore.exceptions import ClientError
from moto import mock_dynamodb2, m... |
import pdf_to_json as p2j
import json
url = "file:data/multilingual/Taml.TAM/Sun-ExtA_16/udhr_Taml.TAM_Sun-ExtA_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
|
function str() {
this.clean = function(str) {
return str.replace(/(\r\n|\n|\r)/gm,"");
};
}
module.exports = str; |
$('#sky-form3').on('click','.submittertt', function(){
//alert('vdv');
var herea = $(this); // alert div for show alert message
var form = herea.closest('form');
var ing = herea.data('ing');
var msg = herea.data('msg');
var prv = herea.html();
var can = '';
var l = '';
fo... |
const { MONGO_URL } = require('../.env');
const ora = require('ora');
const express = require('express');
const mongoose = require('mongoose');
const routes = require('./routes');
const cors = require('cors');
const app = express();
const dbAnimation = ora('Conectando MongoDB').start();
//Database Connection
mongoos... |
#
# Copyright 2021. Clumio, Inc.
#
from clumioapi import api_helper
from clumioapi import configuration
from clumioapi.controllers import base_controller
from clumioapi.exceptions import clumio_exception
from clumioapi.models import list_file_systems_response
from clumioapi.models import read_file_system_response
impo... |
"use strict";
var img = new Image();
// img.crossOrigin = "Anonymous"; //解决资源跨域问题,元素的跨域资源请求不需要凭证标志设置。非本地資源
var canvas;
var ctx;
var inputFile;
var imgData;
/* 自定義調用函數 */
/**創造並添加一個 HTML元素到 對應 id的 HTML元素中 */
function creAddElemt(elementTag, addInToElementId) {
var element = document.createElement(elementTag);
d... |
import React from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import { Helmet } from 'react-helmet'
import { v4 } from 'uuid'
import Content, { HTMLContent } from '../components/Content'
import Layout from '../components/Layout'
export const GlobalPageTemplate = ({
footer,
nav,
... |
var world = new VIZI.World({
viewport: document.querySelector("#vizicities-viewport"),
center: new VIZI.LatLon(51.278709, 1.080535)
});
var controls = new VIZI.ControlsMap(world.camera);
//var controls = new VIZI.ControlsClick(world.camera);
var mapConfig = {
input: {
type: "BlueprintInputMapTiles",
opt... |
//import { app } from '../client/js/app';
import { updateUi } from '../client/js/Ui';
describe('app function', () => {
test('It should be a function', () => {
expect( typeof updateUi ).toBe( 'function' );
});
}); |
# -*- coding: utf-8 -*-
#
# django-tagulous documentation build configuration file, created by
# sphinx-quickstart on Tue Sep 15 15:19:30 2015.
#
# 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 fil... |
import React, { Component } from 'react';
import logo from '../logo.svg';
import '../App.css';
import Navigation from '../components/navbar.js';
import Jumbo from '../components/jumbotron.js'
import Galeria from '../components/Galeria.js'
import Card from '../components/Cards.js'
import '../css/styles.css'
const card... |
n=str(input('Digite um nome: '))
if (n.upper().find('SILVA') != (-1)):
print('True')
else:
print('False') |
/*!
* jQuery JavaScript Library v3.4.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2019-05-01T21:04Z
*/
( function( global, factory ) {
"use strict";
if ( t... |
class DataTransformError extends Error {
constructor(message) {
super(message);
}
}
module.exports = DataTransformError;
|
/* jshint undef: true, unused: true */
/* globals sinon, jasmine, describe, it, expect, beforeEach */
function nope () {
return 'nope';
}
function getTestChart () {
return lava.createChart('LineChart', 'TestChart');
}
function getData () {
return {
"cols": [
{"type": "string", "label"... |
#!/usr/bin/env python
import argparse
import os
import re
import sys
import bson
import wiredtiger
from mtools.util.cmdlinetool import BaseCmdLineTool
from mtools.version import __version__
codec_options = bson.codec_options.CodecOptions(uuid_representation=bson.binary.STANDARD)
class MTransferTool(BaseCmdLineTool... |
#!/usr/bin/env python3
import vapoursynth as vs
import audiocutter
from subprocess import call
core = vs.core
ts = "cap/Senki Zesshou Symphogear XV - 02 (MX).d2v"
src = core.d2v.Source(ts)
src = src.vivtc.VFM(1).vivtc.VDecimate()
ac = audiocutter.AudioCutter()
audio = ac.split(src, [(799, 2557, "Intro"), (2558, 49... |
/**
* Created by user on 2017/3/4.
*/
/*!
* jQuery JavaScript Library v3.1.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/animatedSelector,-effects/Tween,-deprecated
* https://jquery.com/
... |
/**
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var Axes = require('../cartesian/axes');
var str2RGBArray = require('../../lib/str2rgbarray');
function Axes2... |
'use strict';
debugger;
var selectedId=""
navigator.webkitGetUserMedia({ audio: true }, function() {
}, function(e) {
alert('not ok--' + e);
});
var default_url='http://localhost:8081/vcat/testcase';
chrome.storage.sync.set({'remoteserver':default_url}, function() {
console.log('Remote server set to ... |
import { createSelector } from 'reselect';
const getPayload = (state) => state.home;
export const getModel = createSelector([getPayload], (payload) => {
return {
payload
};
});
|
from time import time
import hdbscan
import jieba
jieba.set_dictionary('../data/dict.txt.big')
import pandas
from sklearn.cluster import DBSCAN, AffinityPropagation
from sklearn.decomposition import PCA, TruncatedSVD
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from collections impor... |
import React, { Component } from 'react';
import logo from './webmontag-kassel-logo.png';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
... |
import request from '@/utils/request'
import { exportExcel } from '@/utils/export-file'
export function getResourcesPage(page, query) {
query.size = page.size
return request({
url: '/resources/page/' + page.currentPage,
method: 'get',
params: query
})
}
export function createResources(resources) {
... |
# Ported by Aidil Aryanto
import os
from asyncio.exceptions import TimeoutError
from telethon.errors.rpcerrorlist import YouBlockedUserError
from userbot import CMD_HELP, TEMP_DOWNLOAD_DIRECTORY, bot
from userbot.events import register
@register(outgoing=True, pattern=r"^\.spotnow$")
async def _(event):
if eve... |
import './bootstrap.min.css';
import './App.css';
import EmotionTable from './EmotionTable.js';
import React from 'react';
import axios from 'axios';
class App extends React.Component {
state = {innercomp:<textarea rows="4" cols="50" id="textinput"/>,
mode: "text",
sentimentOutput:[],
... |
export default {
name: 'username',
}
|
// This loads the environment variables from the .env file
require('dotenv-extended').load();
var builder = require('botbuilder');
var restify = require('restify');
var telemetryModule = require('./telemetry-module.js');
var appInsights = require('applicationinsights');
appInsights.setup(process.env.APPINSIGHTS_INST... |
#!"C:\Users\Trang Minh Hoang\PycharmProjects\sleeptrackbackend\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.3','console_scripts','pip3'
__requires__ = 'pip==9.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... |
const request = require('supertest');
describe('integration:applications', () => {
let app;
beforeEach(() => {
app = global.app;
});
describe('delete', () => {
it('should return 204 on found application', async () => {
await request(app)
.delete('/applications/adf825db-ef01-42ec-a334-a5a... |
load("@rules_jvm_external//:defs.bzl", "maven_install")
def scala_proto_register_toolchains():
native.register_toolchains("@rules_scala_annex//rules/scala_proto:scalapb_scala_proto_toolchain")
def scala_proto_artifacts():
return [
"com.github.os72:protoc-jar:3.8.0",
"com.thesamet.scalapb:compi... |
"""
Don't use this file directly or via pip. This file
is used by conda-build which handles the dependencies.
"""
import os
from setuptools import setup, find_packages
def read(f_name):
return open(os.path.join(os.path.dirname(__file__), f_name)).read()
setup(
name="byow",
version="0.0.1",
author="... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bounds = exports.random = void 0;
// randomColor by David Merfield under the CC0 license
// https://github.com/davidmerfield/randomColor/
var index_1 = require("./index");
function random(options) {
if (options === void 0) { option... |
#! /usr/bin/env node
const commander = require("commander");
const fs = require("fs");
const path = require("path");
const programOptions = require("../lib/options");
const createTask = require("../lib/createTask");
const { readPackageFile } = require("../lib/readConfig");
const getPkg = (() => JSON.parse(readPackage... |
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
ReactDOM.render(
<React.StrictMode>
<App className="" />
</React.StrictMode>,
document.getElementById("root")
);
// If you want to start measuring perf... |
$(document).ready(function() {
var cat = localStorage.getItem('expandCat');
if(cat === null || typeof cat !== "string") {
cat = {};
} else {
try {
cat = JSON.parse(cat);
} catch(e) {
cat = {};
}
}
var expandableLinks = $(".expandable > a.expa... |
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { RedisE... |
/*
* @Author: doramart
* @Date: 2019-06-24 13:20:49
* @Last Modified by: doramart
* @Last Modified time: 2021-04-17 23:12:28
*/
'use strict';
const Service = require('egg').Service;
const path = require('path');
// general是一个公共库,可用可不用
const {
_list,
_item,
_count,
_create,
_update,
_removes,
_safeD... |
// Copyright 2020 Breakside Inc.
//
// Licensed under the Breakside Public License, Version 1.0 (the "License");
// you may not use this file except in compliance with the License.
// If a copy of the License was not distributed with this file, you may
// obtain a copy at
//
// http://breakside.io/licenses/LICENSE-... |
"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... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var AbstractSqliteDriver_1 = require("../sqlite-abstract/AbstractSqliteDriver");
var SqljsQueryRunner_1 = require("./SqljsQueryRunner");
var DriverPackageNotInstalledError_1 = require("../../error/DriverPackageN... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _inte... |
exports.seed = function (knex) {
// Deletes ALL existing entries
return knex('table_name')
.del()
.then(function () {
// Inserts seed entries
return knex('table_name').insert([
{ id: 1, colName: 'rowValue1' },
{ id: 2, colName: 'rowValue2' },
{ id: 3, colName: 'rowValue3'... |
import React, { Component } from "react";
import { connect } from "react-redux";
import uuidv1 from "uuid";
import { addArticle } from "../Actions";
const mapDispatchToProps = dispatch => {
return {
addArticle: article => dispatch(addArticle(article)),
};
};
class ConnectedForm extends Component {
construct... |
# Charon the Ferryman carries souls across the river Styx to the
# world of the dead but does so only for a fee. It's a business after
# all.
# Check whether the recently deceased has a coin, if any, print
# Welcome to Charon's boat!
# The variable coin stores a Boolean value, so it qualifies as a
# condition. If co... |
/* NOTA IMPORTANTE
*
* En la variable global llamada 'data' es donde se guardan los datos de esta página web,
* con solo modificarla ya se modifican sus datos.
*
* Ejemplo:
* Para actualizar las categorias basta con hacer `data.categories = [...]` y con eso ya
* se renderizan las nuevas categorías.... |
const assert = require('assert');
const postcss = require('postcss');
const tailwindcss = require('tailwindcss');
const defaultConfig = require('tailwindcss/defaultConfig');
const { stripIndents } = require('common-tags');
const plugin = require('.');
async function process(input) {
const config = {
...de... |
def fb_match_team_stats(pageSoup):
"""
Extracts summary stats for each team in a given match
Parameters:
pageSoup (html document): bs4 object of a match
Returns:
dict: summary statistics for each team
"""
# Find team stats object
stats = pageSoup.find('div', {'id' : 'team_stat... |
const Twit = require('twit')
const unique = require('unique-random-array')
const config = require('../config')
const param = config.twitterConfig
const randomReply = unique(param.randomReply.split('|'))
const bot = new Twit(config.twitterKeys)
// function: tweets back to user who followed
function tweetNow(text) {
... |
##############################################################################
# Copyright (c) 2017 ZTE Corporation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is avail... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Error from '../components/Error';
import withIntl from '../lib/withIntl';
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import Member from './Member';
import { ButtonGroup, Button } from 're... |
// @flow
export const VCX_PUSH_TYPE = 1
export const SPONSOR_ID = 'connectme'
/*
* Function to be called to get provision token
* Signature: GET_PROVISION_TOKEN_FUNC() -> [error: string | null, token: string | null]
* */
export const GET_PROVISION_TOKEN_FUNC = null
/* Here you can override server environments
T... |
# ===============================================================================
# Copyright 2015 Jake Ross
#
# 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... |
const json2csv = require('json2csv');
const AWS = require('aws-sdk');
var mysql = require('mysql');
var excel = require('node-excel-export');
var s3 = new AWS.S3();
Processor = {};
Processor.initializeConnection = function(){
Processor.connection = mysql.createConnection({
host : 'xxxx',
port : 3306,
... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 21.2.5.11
description: Behavior when error thrown while accessing `flags` prop... |
# -*- coding: utf-8 -*-
# Django settings for addons-server project.
import environ
import json
import logging
import os
import socket
from datetime import datetime
import sentry_sdk
from kombu import Queue
from sentry_sdk.integrations.celery import CeleryIntegration
from sentry_sdk.integrations.django import Django... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/**
* Copyright 2012-2022, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = {
moduleType: 'locale',
name: 'me',
dictionary: {},
format: {
days: ['Н... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isHexadecimal;
var _assertString = _interopRequireDefault(require("./util/assertString"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var hexadecimal = /^(0x)?[0-9A-F... |
const isAuthenticated = (req, res, next) => {
// if the user is not logged in: redirect to login page
// else: continue
if (!req.isAuthenticated()) {
req.flash('msg_info', 'Please log in to view this content');
// return res.redirect('/login');
}
next();
};
const isNotAuthenticated = (req, res, next)... |
# Copyright (c) 2021, AV Tutoring Pvt Ltd and Contributors
# See license.txt
# import frappe
import unittest
class TestCatalogueGallery(unittest.TestCase):
pass
|
import numpy as np
import pandas as pd
from sklearn.feature_extraction.text import CountVectorizer
from bson.objectid import ObjectId
from utils.eimmo_data import DataExtractor
from utils.preprocess import refine, tokenize
def get_similar_project(target_idx, df_context, k=3) -> list:
"""Get top- similar projects... |
module.exports={A:{A:{"2":"H D G E IB","132":"A B"},B:{"132":"0 C p J L N","516":"I"},C:{"1":"1 6 7 8 9 BB CB","2":"0 2 3 4 cB F K H D G E A B C p J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y z AB aB UB"},D:{"1":"CB OB GB eB JB HB KB LB MB","2":"0 2 4 6 7 8 9 F K H D G E A B C p J L N... |
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
isCustomElement: (tag) => tag === 'hgroup'
}
}
... |
$(document).ready(function() {
var height = $("#page-header").height()
$("a.internal").click(function(e) {
e.preventDefault();
var href = $(this).attr("href");
$('html, body').animate({
scrollTop: $(href).offset().top - height
}, 0);
});
});
// Community selector
$(document).on(... |
// @ts-check
/** @typedef {'database query' | 'database result' | 'resolution part' | 'resolution part title' | 'access warning' | 'info' | 'error' | 'login' | 'warning' } LogCategory */
/** Custom logger. Will be improved later */
const categories = {
// 'database query': 'bold',
// 'database result': 'default',... |
var webpack = require('webpack');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var path = require('path');
module.exports = {
entry: [
'./src/app.tsx',
],
// Output the bundled JS to dist/app.js
output: {
filename: 'app.js',
path: path.resolve(__dirname, 'dist')
},
modu... |
#
# Copyright (c) 2016, Novartis Institutes for BioMedical Research 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 copyri... |
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... |
# -*- coding: utf-8 -*-
from logging import getLogger
from functools import partial
from cornice.resource import resource
from openprocurement.api.models import get_now, TZ
from openprocurement.api.utils import error_handler, context_unpack
from openprocurement.tender.belowthreshold.utils import check_tender_status, ad... |
/*
* 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 1.0.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.... |
import base64
import json
import sublime
import sublime_plugin
class JwtCommand(sublime_plugin.TextCommand):
def run(self, edit, text):
if text:
try:
decoded_jwt = decode_jwt(text)
new_file = self.view.window().new_file()
new_file.run_command('ap... |
import requests
from bs4 import BeautifulSoup
import time
import numpy as np
import re
from urllib.parse import unquote
import wikipediaapi
import pandas as pnd
class extract_portal_wikipedia:
def __init__(self, url_portal):
self.url_portal = url_portal
def scrap_all_url_from_portal(self)... |
import styled from 'styled-components';
export const LogViewerContainer = styled.div`
display: flex;
flex: 1;
border: 1px solid white;
color: #ccc;
background: #444;
height: 100%;
min-width: 0;
overflow-anchor: none;
overflow: auto;
`;
export const CloseFileButton = styled.button`
position: fixed;... |
# Generated by Django 3.1.7 on 2021-05-28 23:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Player',
fields=[
('id', models.AutoField(a... |
/**
* @license Copyright 2019 The Lighthouse Authors. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applica... |
function reverseString(someString){
let newString='';
for (let i= someString.length-1; i >= 0;i--){
newString=newString+someString[i];
}
return newString
}
module.exports=reverseString; |
"use strict";
import { toUtf8Bytes, toUtf8String } from "@ethersproject/strings";
import { logger, Wordlist } from "./wordlist";
const words = "A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAc... |
/*!
* Bootstrap-select v1.9.3 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2015 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Regist... |
var exec = require('child_process').exec;
var d3 = require('d3-queue');
var config = require('config');
var cmds = config.get('Monitoring.Commands');
//callback is important for d3.queue
function getCmdResponse(cmd, id, data, callback) {
exec(cmd, function(error, stdout, stderr) {
data[id]=stdout.split("\n");
... |
#!/usr/bin/python3
import os ,re,readline,sys
from ssf import *
from socket import *
#sys.path.append("/data/data/com.termux/files/usr/opt/sandsploit/core")
#sys.path.append("/opt/sandsploit/core/")
#import complator
HOST = None
USERLIST =None
PASSLIST = None
name = "Banner Finder"
author = "@Aμιρ-0x0 (AMJ)"
info = "a... |