text stringlengths 3 1.05M |
|---|
from __future__ import print_function
from collections import OrderedDict
import os
import sys
import timeit
import scipy.io as sio
import numpy as np
import theano
import theano.tensor as T
################################################################################################################
#############... |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
______ ______ ______ __ __ __ ______
/\ == \ /\ __ \ /\__ _\ /\ \/ / /\ \ /\__ _\
\ \ __< \ \ \/\ \ \/_/\ \/ \ \ _"-. \ \ \ \/_/\ \/
\ \_____\ \ \_____\ ... |
"""
ASGI config for crm project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_... |
from pkg_resources import resource_string
import questionary
from cid import utils
from cid.helpers import Athena, CUR, Glue, QuickSight
from cid.helpers.account_map import AccountMap
from cid.plugin import Plugin
import os
import sys
import click
from string import Template
import json
from pathlib import Path
fr... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import expect from '@kbn/expect';
import lzString from 'lz-string';
import { ... |
/********************************************************************************
**** Copyright (C), 2020, xx xx xx xx info&tech Co., Ltd. ****
********************************************************************************
* File Name : rtos_test.c
* Date : 2020-07-20
* Description... |
#!/usr/bin/env python3
''' PortScan v3
-----------
This application scans for open ports on the designated system. It uses
multiprocessing to speed up this process.
'''
import socket
import subprocess
import sys
from datetime import datetime
from multiprocessing import Pool
def scan(port):
try:
... |
var models = require('../models');
var Tag = models.Tag;
exports.getByName = function (tagName,callback){
Tag.findOne({tagName: tagName}, callback);
};
exports.insert = function(tag,callback){
var newTag = new Tag(tag);
newTag.save(callback);
}
exports.save = function(tag,callback){
tag.save(callback);
}
... |
import React, {Component} from 'react'
import axios from 'axios'
import {connect} from 'react-redux'
class OrderHistory extends Component {
constructor() {
super()
this.state = {
orderHistory: [],
error: false
}
}
async componentDidMount() {
try {
const orderData = await axios.get(
'/api/order... |
from cleo import Command
from .list import ListCommand
# from .get import GetCommand
# from .set import SetCommand
# from .convert import ConvertCommand
class ConfigCommand(Command):
name = "config"
description = "Configuration command"
commands = [
ListCommand(),
# GetCommand(),
... |
// Copyright 2019 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_INTERPOLABLE_TRANSFORM_LIST_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_INTERPOLABLE_TRANSFORM_... |
"""CSP (Constraint Satisfaction Problems) problems and solvers. (Chapter 6)."""
from utils import argmin_random_tie, count, first
import search
from collections import defaultdict
from functools import reduce
import itertools
import re
import random
class CSP(search.Problem):
"""This class describes finite-dom... |
#!/usr/bin/env python
#
'''
DF-MP2 natural orbitals for the allyl radical
'''
from pyscf.gto import Mole
from pyscf.scf import UHF
from pyscf.tools import molden
from pyscf.mp.dfump2_native import DFMP2
mol = Mole()
mol.atom = '''
C -1.1528 -0.1151 -0.4645
C 0.2300 -0.1171 -0.3508
C 0.9378 ... |
//
// YPViewController.h
// YPAVAssetResourceLoader
//
// Created by yiplee on 12/08/2017.
// Copyright (c) 2017 yiplee. All rights reserved.
//
@import UIKit;
@interface YPViewController : UIViewController
@end
|
const Article = require('../models/Article');
const Comment = require('../models/Comment');
module.exports = {
getArticles: (req, res) => {
Article.find()
.then((articles) => {
let resArticles = articles.sort((a, b) => b.date - a.date)
res
.status(200)
.json({ message:... |
# Write results to this file
OUTFILE = 'runs/10KB/par-bro-iter01000.result.csv'
# Source computers for the requests
SOURCE = ['10.0.0.1']
# Should Bro be enabled on the source machines?
SOURCE_BRO = [True]
# Target machines for the requests (aka server)
TARGET = ['10.0.0.2']
# Should Bro be enabled on the target m... |
const express = require("express");
var cookieParser = require('cookie-parser')
const app = express();
const mongoose = require("mongoose");
const port = process.env.PORT || 9501;
const routes = require("./routes");
require("./db/conn");
app.use(express.json());
app.use(cookieParser());
app.use(routes);
app.listen(... |
from functools import lru_cache
import logging
from typing import Iterable, Optional, Union
from arche.data_quality_report import DataQualityReport
from arche.readers.items import Items, CollectionItems, JobItems, RawItems
import arche.readers.schema as sr
from arche.report import Report
import arche.rules.category as... |
var searchData=
[
['batch2space',['BATCH2SPACE',['../namespacerk_1_1nn.html#a6a02b2d1d62293b20242e3dcfbdd0117a1da63a60f350a062e3bb5bb3dcd31a47',1,'rk::nn']]],
['batch_5fnorm',['BATCH_NORM',['../namespacerk_1_1nn.html#a6a02b2d1d62293b20242e3dcfbdd0117a459ac7deae89644bcd5b99c9aac222a4',1,'rk::nn']]],
['bool8',['BOO... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisa... |
import asyncio
import random
from pathlib import Path
import sqlite3
import aiosqlite
import pytest
from src.full_node.block_store import BlockStore
from src.consensus.blockchain import Blockchain
from src.full_node.coin_store import CoinStore
from tests.setup_nodes import test_constants, bt
@pytest.fixture(scope="m... |
/*!
* (C) Ionic http://ionicframework.com - MIT License
* Built with http://stenciljs.com
*/
import*as tslib_1 from"../polyfills/tslib.js";import{h}from"../ionic.core.js";import{a as rIC,k as isPlatform}from"./chunk-c23403d0.js";import{h as createColorClasses,j as hostContext,k as createThemedClasses}from"./chunk-b9... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nssrwlk.h"
#include "nspr.h"
PR_BEGIN_EXTERN_C
/*
* Reader-writer lock
*/
struct nssRWLockStr {
... |
import sys
import numpy
import os
import gc
import json
import matplotlib
import csv
import argparse
matplotlib.use("TkAgg")
from keras.layers import Activation, Dense, LSTM, ReLU
from keras.models import Sequential, load_model
from keras.optimizers import Adam
from keras.utils import plot_model
from math import sqrt
f... |
///
/// Copyright (C) 2015, Dependable Systems Laboratory, EPFL
///
/// 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... |
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);retur... |
/* eslint quotes: 0 */
// Defines the MongoDB $jsonSchema for service `nedb5`. (Can be re-generated.)
const merge = require('lodash.merge');
// !code: imports // !end
// !code: init // !end
let moduleExports = merge({},
// !<DEFAULT> code: model
{
bsonType: "object",
additionalProperties: false,
prope... |
from pathlib import Path
from tempfile import TemporaryDirectory
from tuulfile.directory import cd
from tuulver.version import bump_build, \
bump_major, \
bump_minor, \
bump_patch, \
bump_pre, \
... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
# Copyright (c) Ye Liu. All rights reserved.
from .base import Hook
from .checkpoint import CheckpointHook
from .closure import ClosureHook
from .eval import EvalHook
from .events import (CommandLineWriter, EventWriterHook, JSONWriter,
TensorboardWriter)
from .lr_updater import LrUpdaterHook
from ... |
/*
* jQuery Superfish Menu Plugin - v1.7.4
* Copyright (c) 2013 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
(function ($, window) {
"use strict";
var methods = (function () {
// priva... |
import axios from 'axios'
export default function useHttp(baseURL) {
const defaultHeaders = {
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest'
}
const call = (url, method, options = {}) => {
const data = options.data || {}
const config = options.con... |
define({"topics" : [{"title":"Multihead Ingest","href":"datacollector\/UserGuide\/Destinations\/KineticaDB.html#concept_jx1_25h_sbb","attributes": {"data-id":"concept_jx1_25h_sbb",},"menu": {"hasChildren":false,},"tocID":"concept_jx1_25h_sbb-d46e123188","topics":[]},{"title":"Inserts and Updates","href":"datacollector\... |
(function(t){const e=t["zh-cn"]=t["zh-cn"]||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"第 %0 步,共 %1 步","Align cell text to the bottom":"使单元格文本对齐到底部","Align cell text to the center":"使单元格文本水平居中","Align cell text to the left":"使单元格文本左对齐","Align cell text to the middle":"使单元格文本垂直居中","Align cell text to the... |
import numpy as np
import pytest
import autoarray as aa
from autoarray.inversion.mappers.voronoi import MapperVoronoiNoInterp
from autoarray.inversion.mappers.delaunay import MapperDelaunay
from autoarray.mock.mock import MockLinearObjFunc
# TODO : NEed to figure out how we blur linear light profile wit... |
__________________________________________________________________________________________________
sample 40 ms submission
class Solution:
def numSpecialEquivGroups(self, A: List[str]) -> int:
def count(A):
ans = [0] * 52
for i, letter in enumerate(A):
ans[ord(letter)... |
/*!
*
* 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-20T16:47Z
*
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'objec... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const object_polyfill_1 = require("../../lib/object-polyfill");
function parseDataFormat2or4(data) {
const dataFormat = data[0];
const humidity = data.readUInt8(1) * 0.5;
const temperature = data.readInt8(2);
const pressure = M... |
/*
* 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.
*/
'... |
import sys
import torch
from torch._C import _add_docstr, _special # type: ignore
from torch._torch_docs import common_args # type: ignore
Tensor = torch.Tensor
entr = _add_docstr(_special.special_entr,
r"""
entr(input, *, out=None) -> Tensor
Computes the entropy on :attr:`input` (as defined bel... |
# -*- coding: utf-8 -*-
from h import models, security
from h.util.db import lru_cache_in_transaction
PREFIX = "6879-"
class DeveloperTokenService:
"""A service for retrieving and performing common operations on developer tokens."""
def __init__(self, session):
"""
Create a new developer to... |
import { addParameters } from "@storybook/react";
import "!style-loader!css-loader!sass-loader!./styles.scss";
const KINDS = [
"Foundation/Introduction",
"Foundation/Colors",
"Foundation/Icons",
"Layout/Grid"
];
addParameters({
options: {
/**
* display the top-level grouping as a "root" in the side... |
const moment = require('moment');
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const TrackSchema = new Schema({
name: = { type: String, required: true},
album: {type: Schema.ObjectId, ref: 'Album', required: true},
rating: {type: Number, required: true, enum:[1, 2, 3, 4, 5], default: 3}... |
/*
* Copyright 2014 msedova.
*
* 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... |
# Copyright 2018 Nordic Semiconductor ASA
# Copyright 2017 Linaro Limited
#
# 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 require... |
"use strict";
/* eslint-env jquery */
jQuery(document).ready(function ($) {
/**
* Force the superfish menu to align top instead of drop down
*/
$('#menu .menu li > ul').each(function () {
var position = $(this).parent().position();
$(this).css('top', 4 - position.top);
});
/**
* Trigger an i... |
import logging
log_handler = logging.getLogger(__name__)
_DEFAULT_LOG_FORMAT = '%(asctime)s - %(levelname)s - %(message)s'
_SHARED = None
class Logger:
@staticmethod
def debug(message):
log_handler.info(message)
def configure_logging():
log_handler.setLevel(logging.DEBUG)
ch = logging.St... |
#include "communication.h"
#include "defs.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
int replyToClient_error(unsigned int pid, int error_status) {
char fifo_name[WIDTH_FIFO_NAME + 1];
snprintf(fifo_name, WIDTH_FIFO_NAME+1, CLIENT_ANSWER_PREFIX "%0"... |
import pandas as pd
import hillmaker as hm
file_stopdata = '../data/ShortStay2.csv'
# Required inputs
scenario = 'ShortStay2_PatTypeSeverity'
in_fld_name = 'InRoomTS'
out_fld_name = 'OutRoomTS'
cat_fld_name = ['PatType', 'Severity']
start = '1/1/1996'
end = '3/30/1996 23:45'
# Optional inputs
bin_mins = 60
totals=... |
from setuptools import setup
import sys
def get_readme_md_contents():
"""read the contents of your README file"""
with open("README.md") as f:
long_description = f.read()
return long_description
install_reqs = ["decorator>=3.3.2", "requests>=2.6.0"]
if [sys.version_info[0], sys.version_info... |
import logging
__version__ = "0.19.0rc29"
version = tuple(__version__.split('.'))
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
from django.urls import path
from flights import views
app_name = 'flights'
urlpatterns = [
path('',views.home, name = 'home'),
path('login',views.login, name = 'login'),
path('home/<str:name>',views.home1, name = 'home1'),
path('forum/<str:name>',views.forum, name = 'forum'),
path('notes/<str:name... |
/* ************************************ */
/* Define helper functions */
/* ************************************ */
ITIs = [0,0.136,0.136,0.612]
var get_ITI = function() {
return 4500 + ITIs.shift()*1000
}
var randomDraw = function(lst) {
var index = Math.floor(Math.random() * (lst.length))
return lst[index]... |
(function() {
'use strict';
var toFixed = fabric.util.toFixed;
/**
* Pattern class
* @class fabric.Pattern
* @see {@link http://fabricjs.com/patterns|Pattern demo}
* @see {@link http://fabricjs.com/dynamic-patterns|DynamicPattern demo}
* @see {@link fabric.Pattern#initialize} for constructor def... |
var Dispatcher = require('flux').Dispatcher;
module.exports = new Dispatcher();
|
from flask import request, jsonify, session
from tqdm import tqdm
import traceback, json, time, os, datetime, threading, pywfom
import numpy as np
from . import api
from .. import models
from ...devices.arduino import Arduino
from ...devices.camera import Camera
DEFAULT_FILE = {
"directory":os.environ['PYWFOM_DI... |
/**
* http://www.openjs.com/scripts/events/keyboard_shortcuts/
* Version : 2.01.B
* By Binny V A
* License : BSD
*/
shortcut = {
'all_shortcuts': {}, //All the shortcuts are stored in this array
'add': function (shortcut_combination, callback, opt) {
//Provide a set of default options
... |
# Copyright 2012 Google Inc. 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 applicable law or a... |
import React from 'react';
import { graphql } from 'gatsby';
import Seo from '../../components/seo';
import BookSummaries from '../../components/book-summaries';
const BooksPage = ({
data: {
allMdx: { nodes },
},
}) => {
return (
<>
<h1>Book Notes</h1>
<Seo
... |
// 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.
cr.define('print_preview.ticket_items', function() {
'use strict';
/**
* Media size ticket item.
* @param {!print_preview.AppState} appState Ap... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var isArray = require('./isArray');
var isArrayStrict = require('./isArrayStrict');
var isBe = require('./isBe');
var isBigint = require('./isBigint');
var isBoolean = require('./isBoolean');
var isFalse = require('./isFalse');
var i... |
# Copyright (c) 2020 PaddlePaddle 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 applic... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
/*-------------------------------------------------------------------------
*
* procarray.c
* POSTGRES process array code.
*
*
* This module maintains arrays of PGPROC substructures, as well as associated
* arrays in ProcGlobal, for all active backends. Although there are several
* uses for this, the princip... |
//*******************************************************************
/*!
\file I2Cmaster.h
\author Thomas Breuer (Bonn-Rhein-Sieg University of Applied Sciences)
\date 23.03.2016
This file is released under the MIT License.
*/
//*******************************************************************
#ifndef _HW_I2C_... |
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import PostsIndex from './components/posts_index';
import PostsNew from './components/posts_new';
import PostsShow from './components/post_show';
export default (
<Route path="/" component={App}>
<In... |
/* globals Router Credentials Projects Session */
Router.route('/projects/:id/credentials', {
name: 'credentials',
controller: 'ProjectController',
onRun: function () {
if (Settings.findOne({
setting: 'persistViewFilters',
enabled: true
})) {
this.next()
return
}
Session.s... |
import jinja2
import jinja2.nodes
from jinja2.ext import Extension
from .templatetags.wagtailcore_tags import pageurl, richtext, slugurl, wagtail_version
class WagtailCoreExtension(Extension):
tags = {'include_block'}
def __init__(self, environment):
super().__init__(environment)
self.envi... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
TIP_TRIGGER = '[tip'
TIP_START_TAG_PATTERN = re.compile(r'(\[tip( type=\"(.*?)\")?\])',
re.MULTILINE)
TIP_END_TAG_PATTERN = '[/tip]'
ALLOWED_TYPES = ['default', 'note', 'important', 'read-on']
def trigger(ori... |
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license.
"""
import re
import setuptools
# Module dependencies
requirements, dependency_links = [], []
with open('requirements.txt') as f:
for line in f.re... |
from django.contrib import admin
from .models import Pessoas
class VerPessoas(admin.ModelAdmin):
list_display = ('id', 'nome', 'email')
list_display_links = ('id', 'nome',)
admin.site.register(Pessoas, VerPessoas) |
# Copyright 2019 Uber Technologies, 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/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... |
// standard
import aLaMode from 'alamode'
import ALaImport from '@a-la/import'
import App from "koa"
import { methodA, methodB } from '@a-la/named-import'
/* expected */
let aLaMode = require('alamode'); if (aLaMode && aLaMode.__esModule) aLaMode = aLaMode.default;
let ALaImport = require('@a-la/import'); if (ALaImpo... |
#!/usr/bin/env python
# Copyright 2020 The Tekton 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... |
"""Nose Plugin that supports IPython doctests.
Limitations:
- When generating examples for use as doctests, make sure that you have
pretty-printing OFF. This can be done either by setting the
``PlainTextFormatter.pprint`` option in your configuration file to False, or
by interactively disabling it with %Ppri... |
define(["jquery", "Q", "modules"], function ($, Q, modules) {
function makeRequest(url, type, data, content) {
var deferred = Q.defer();
var requestOptions = {
url: url,
type: type,
//dataType: "application/x-www-form-urlencoded",
data: data,... |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function GiWineBottle (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M133.99 28v23.512h52.02V28h-52.02zm0 41.51v90.705c-26.01 17.34-43.347 39.014-43.347 56.353v260.735S90.64 494 107.98 4... |
/* Copyright 2020 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 datetime
from dateutil.relativedelta import relativedelta
import json
from lxml import etree
import os
import random
import urllib
import uuid
from nose.tools import (
eq_,
assert_raises,
assert_raises_regexp,
set_trace,
)
from StringIO import StringIO
from api.authenticator import BasicAuthen... |
export { default } from 'global-admin/components/cloud-credential-azure/component'; |
const cinemaNames = [
"Cinema One",
"Cinema Two",
"Cinema Three",
];
export default cinemaNames; |
ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(acequire, exports, module) {
"use strict";
var oop = acequire("../lib/oop");
var TextHighlightRules = acequire("./text_highlight_rules").TextHighlightRules;
var XmlHighlightRules = function... |
const Command = require('./Command');
const request = require("request");
module.exports = class CatCommand extends Command{
execute(message){
super.execute(message, Command.CAT());
Command.logDebug("requesting http://aws.random.cat/meow");
request("http://aws.random.cat/meow", function (error, respon... |
import React from 'react'
import auth from '../../src'
import { Client } from '../../src/ipc'
import { ipcStorage, getData } from '../../src/storage'
import './IdpSelect.css'
export default class IdpSelect extends React.Component {
state = { idp: '', error: null }
handleChangeIdp = (event) => {
let idp = ev... |
// router/appPerspectives.js - application perspectives
import Vue from 'vue'
import * as _const from '@/store/_constants'
import { appMenu, menuRoute } from '@/router/appMenu'
/**
appPerspectives defines all application perspectives.
Note:
- reusing perspective menu items in app menu
- appPerspectives is si... |
#include "Arduino.h"
#include "sensors_lib.h"
//CONFIG FOR PNEUMATIC PRESSURE SYSTEM
//SENSING:
//Arduino ADC pins:
//Mega: A0-A15 (all pins work fine)
//Uno: A0-A5 (all pins work fine)
//Micro: A0, A1, A4 - A8, A11 (A9, A10, A12, A13 all confli... |
import * as ActionTypes from '../actions/application'
import Immutable from "immutable";
export default function applicationState(state, action) {
if (!state) {
state = Immutable.Map();
}
switch(action.type) {
case ActionTypes.DISPLAY_PLUGIN_LIST:
return state.set("display_plu... |
import dynamic from 'next/dynamic'
const DynamicComponentWithCustomLoading = dynamic(
() => import('../components/hello'),
{ loading: () => <p>...</p> }
)
const DynamicClientOnlyComponent = dynamic(
() => import('../components/hello'),
{ ssr: false }
)
|
/******************************************************************************
*
* Copyright (C) 2014 Google, 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://ww... |
import os
import time
import comedi
class stimulus_pulse(object):
com = comedi.comedi_open('/dev/comedi0')
def __init__(self, *args, **kwargs):
#self.com = comedi.comedi_open('/dev/comedi0')
super(stimulus_pulse, self).__init__(*args, **kwargs)
subdevice = 0
write_mask = 0x800000
val = 0x000000
base_c... |
const ColorParse = require('../src/api/ColorParse');
const StreetData = require('../src/api/StreetData');
const YelpData = require('../src/api/YelpData');
const WeatherData = require('../src/api/WeatherData');
const RouteData = require('../src/api/RouteData');
let grid = RouteData.GetPointGrid(47.660273, -122.409887, ... |
import asyncio
import dataclasses
import logging
import random
import time
import traceback
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
import aiosqlite
from blspy import AugSchemeMPL
import chia.server.ws_connection as ws # lgtm [py/import-and-import-from]
from... |
# Copyright (c) Glow Contributors. See CONTRIBUTORS file.
#
# 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 ... |
module.exports = { prefix: 'fab', iconName: 'flipboard', icon: [448, 512, [], "f44d", "M0 32v448h448V32H0zm358.4 179.2h-89.6v89.6h-89.6v89.6H89.6V121.6h268.8v89.6z"] };
|
#
# Copyright (c) 2021 The Markovflow Contributors.
#
# 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... |
__NUXT_JSONP__("/amp/37/3", (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){return {data:[{metaTitle:A,metaDesc:B,verseId:C,surahId:37,currentSurah:{number:"37",name:"الصّٰۤفّٰت",name_latin:"As-Saffat"... |
export { default } from './InputRating.jsx';
|
/*
* A-Frame.
* This version of aframe based on 0.6.1, accepts the GLTF
* version 2.0 files and the camera position bug it's fixed.
*/
require('aframe');
/*
* A-Frame Components.
*
*/
require('aframe-template-component')
require('@gladeye/aframe-preloader-component')
/*!
* Bootstrap v3.3.7 (http://getbootstr... |
/**
* Turf is a modular geospatial analysis engine written in JavaScript. It performs geospatial
* processing tasks with GeoJSON data and can be run on a server or in a browser.
*
* @module turf
* @summary Geospatial analysis for JavaScript
*/
export {default as isolines} from '@turf/isolines';
export {default as... |
$.fn.parseForm = function () {
let serializeObj = {};
let array = this.serializeArray();
$(array).each(function () {
if (serializeObj[this.name]) {
if ($.isArray(serializeObj[this.name])) {
serializeObj[this.name].push(this.value);
} else {
serializeObj[this.name] = [serializeObj[this.name], this.val... |