text stringlengths 3 1.05M |
|---|
# -*- coding: utf-8 -*-
__author__ = """Francesco DeSensi"""
__email__ = 'desensif@gmail.com'
__version__ = '0.1.0'
|
const initialState = {};
export default (state = initialState, action) => {
switch (action.type) {
case 'USER_STATE/SAVE_USER_INFO': {
return {
...state, data: action.data,
};
}
case 'USER_STATE/REMOVE_CURRENT_USER_DATA': {
return {};
}
case 'USER_STATE/SET_AUTH_ERROR': ... |
#!/usr/bin/env node
import process from 'node:process';
import fs from 'node:fs';
import meow from 'meow';
import stripBomStream from 'strip-bom-stream';
const cli = meow(`
Usage
$ strip-bom <file> > <new-file>
$ cat <file> | strip-bom > <new-file>
Example
$ strip-bom unicorn.txt > unicorn-without-bom.txt
... |
//// [thisInSuperCall2.ts]
class Base {
constructor(a: any) {}
}
class Foo extends Base {
public x: number;
constructor() {
super(this); // no error
}
}
class Foo2 extends Base {
public x: number = 0;
constructor() {
super(this); // error
}
}
//// [thisInSuperCall2.j... |
export { default } from 'ember-flexberry-account/routes/login';
|
'use strict';
var $ = require('jquery');
var AddonHelper = require('js/addonHelper');
var S3NodeConfig = require('./s3NodeConfig').S3NodeConfig;
var url = window.contextVars.node.urls.api + 's3/settings/';
new S3NodeConfig('#s3Scope', url);
|
"""
ViewSets are essentially just a type of class based view, that doesn't provide
any method handlers, such as `get()`, `post()`, etc... but instead has actions,
such as `list()`, `retrieve()`, `create()`, etc...
Actions are only bound to methods at the point of instantiating the views.
user_list = UserViewSet.a... |
# coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-262
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class SnmpUserRef(object):
"""
NOTE: This class is ... |
//==============================================================================
// bl_core.c
// multi model mesh demo based mesh core
//
// Created by Hugo Pristauz on 2022-Jan-02
// Copyright © 2022 Bluccino. All rights reserved.
//==============================================================================
// mcor... |
/*!
* OpenUI5
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.ui.core.util.ExportType
sap.ui.define(['sap/ui/base/ManagedObject'],
function(ManagedObject) {
'use strict';
/**
* Constructor for a new Exp... |
var expect = require("chai").expect;
const WxrdBook = require("../app/wxrd-book");
describe("Wxrd Book", function() {
const myWxrdBook = new WxrdBook();
var testWxrd;
beforeEach(function(){
myWxrdBook.clearAllWxrds();
wxrdLst = myWxrdBook.getWxrdsByAlias("Test Wxrd");
test... |
'use strict';
// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
initializePage();
})
/*
* Function that is called when the document is ready.
*/
function initializePage() {
$("#testjs").click(function(e) {
$('.jumbotron h1').text("Javascript has taken control");
$("... |
from django.db import models
from wagtail.wagtailcore.models import Page, Orderable
from wagtail.wagtailadmin.edit_handlers import FieldPanel, \
InlinePanel, StreamFieldPanel
from wagtail.wagtailcore.fields import StreamField
from wagtail_embed_videos.edit_handlers import EmbedVideoChooserPanel
from wagtail.wagtail... |
#This input file is supposed to perform computations in a purely periodic domain
#To look for phases and stuff, that sort of thing
import sys
import os
resultDir = os.environ.get('RESULTS')
if resultDir == None :
print "WARNING! $RESULTS not set! Attempt to write results will fail!\n"
# Expecting input avConc, r... |
import React from 'react';
const TableauxTheory = function(props) {
return (
<div>
<h1>Eu sou a teoria do Tableaux</h1>
</div>
)
}
export default TableauxTheory;
|
"""
send_report_to_es
Send a puppet report to ElasticSearch.
Configuration is read from the file specified in the environment variable
`PUPPET_ES_CONFIG` (defaults to /etc/puppet_es.conf) and uses ConfigParser
syntax. A sample configuration file is included as etc/puppet_es.conf.example.
Usage:
send_report_to_es... |
from .exceptions import ViddlerAPIException
class ViddlerAPI(object):
def __init__(self, apikey, username, password):
from .users import UsersAPI
from .videos import VideosAPI
from .api import ApiAPI
from .encoding import EncodingAPI
self.users = UsersAPI(apikey)
s... |
from totalimpact.providers import provider
from totalimpact.providers.provider import Provider, ProviderContentMalformedError
from unicode_helpers import remove_nonprinting_characters
import os, re
import logging
logger = logging.getLogger('ti.providers.arxiv')
def clean_arxiv_id(arxiv_id):
arxiv_id = remove_non... |
s1 = "abc"
s2 = "uvwxyz"
s3 = ""
size = int()
if (len(s1) > len(s2)):
size = len(s2)
else:
size = len(s1)
for i in range(size):
s3 += s1[i] + s2[i]
if(len(s1) == size):
s3 += s2[size:]
else:
s3 += s1[size:]
print(s3) |
import sys
import time
# Startup information
STARTING = "Running {} on {}"
INMEMORY = "in-memory raster"
SEQUENTIAL = "sequential raster blocks"
CONCURRENT = "concurrent raster blocks"
# Completion status
COMPLETION = "Finished in {}"
WRITEOUT = "Wrote output to {}"
# Warnings
STRIPED = "Blocks are lines with shape... |
// Copyright (C) 2013-2017 Internet Systems Consortium, Inc. ("ISC")
//
// 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/.
#ifndef PROTOCOL_UTIL_H
#define PROTOCOL_UTIL... |
#!/usr/bin/env python3
import logging
import os, re, shutil, sys, tempfile
from argparse import (ArgumentParser, ArgumentDefaultsHelpFormatter, RawDescriptionHelpFormatter)
from mob_suite.version import __version__
import mob_suite.mob_init
from collections import OrderedDict
from operator import itemgetter
from mob_s... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('ashlar', '0016_auto_20151016_1951'),
]
operations = [
migrations.RenameField(
model_name='record',
o... |
import logging
from copy import deepcopy
from ctrail.introspect import *
def print_agent_vrfs(x, filters=None, indent_level=0, indent=' ', verb=0):
print_keys = (
['name', 'RD', 'vn'],
[],
[]
)
if (filters is not None) and (not filter_generic(x, filters)):
return 0
... |
# @File(label="Directory of the images sequence", style="directory") images_sequence_dir
# @String(label="Image File Extension", required=false, value=".tif") image_extension
# @String(label="Output Filename", required=false, value=".") stack_name
# @String(label="Output Filename", required=false, value=".tif") output_... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const bcrypt = require('bcrypt-nodejs')
const userSchema = new Schema({
username: {type: String, required: true, unique: true, lowercase: true},
password: {type: String, required: true}
});
// On Save Hook, encrypt password
userSchema.pre('sa... |
// Karma configuration
module.exports = function(config) {
config.set({
// see https://www.npmjs.com/package/karma-typescript
karmaTypescriptConfig: {
compilerOptions: {
lib: ['dom', 'es6'],
},
bundlerOptions: {
resolve: {
alias: {
'jquery': './src/jq/... |
from typing import Dict, List, Optional
from caldera.consensus.block_record import BlockRecord
from caldera.types.blockchain_format.sized_bytes import bytes32
from caldera.types.blockchain_format.sub_epoch_summary import SubEpochSummary
from caldera.types.blockchain_format.vdf import VDFInfo
from caldera.types.header_... |
import pandas as pd
import numpy as np
def markers_by_hierarhy(inf_aver, var_names, hierarhy_df, quantile=[0.05, 0.1, 0.2], mode='exclusive'):
"""Find which genes are expressed at which level of cell type hierarchy.
Assigns expression counts for each gene to higher levels of hierarhy using estimates of average ... |
#!/usr/bin/env python
'''
Generate valid and invalid base58 address and private key test vectors.
Usage:
gen_base58_test_vectors.py valid 50 > ../../src/test/data/base58_keys_valid.json
gen_base58_test_vectors.py invalid 50 > ../../src/test/data/base58_keys_invalid.json
'''
# 2012 Wladimir J. van der Laan
# R... |
/* eslint-disable react/prop-types */
/**
Copyright 2016 Autodesk,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 ... |
$(function(){
const outletTable = $('#table-outlet').dataTable({
"processing": true,
"serverSide": true,
"order": [],
"ajax": {
"url": base_url + "master/get_outlet_json",
"type": "POST"
},
"columns": [
{"data" : "id_outlet"},
{"data": "nama_outlet"},
{"data": "alamat"},
{"data": "telepon"}... |
from django.contrib.contenttypes.models import ContentType
from django.db import models
def build_polymorphic_ctypes_map(cls):
# {'1': 'unified_job', '2': 'Job', '3': 'project_update', ...}
mapping = {}
for ct in ContentType.objects.filter(app_label='main'):
ct_model_class = ct.model_class()
... |
"""
===============
Demo Gridspec04
===============
"""
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
def make_ticklabels_invisible(fig):
for i, ax in enumerate(fig.axes):
ax.text(0.5, 0.5, "ax%d" % (i+1), va="center", ha="center")
ax.tick_params(labelbottom=False, labell... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.genPoints = genPoints;
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
function ... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BGL_RPC_REQUEST_H
#define BGL_RPC_REQUEST_H
#include <string>
#include <univ... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
import tornado.ioloop
import tornado.web
from routers import NestedRouter, GenericRouter
from handlers.main import MainHandler
# r = GenericRouter("/api/", trailing_slash=False)
r = NestedRouter("/api/", trailing_slash=False)
# r.register(r"/clusters/(?P<cluster_id>[^/.]+)/pods", MainHandler)
r.register(("clusters", "... |
var app = app || {};
(function() {
'use strict';
app.Project = Backbone.Model.extend({
defaults: {
title: '',
chinesetitle: '',
image: '',
description: '',
keywords: '',
demo: '',
source: '',
code: '',
... |
var mysql = require("mysql");
const inquirer = require("inquirer");
const cTable = require('console.table');
var conn = mysql.createConnection({
host: "localhost",
port: 3306,
user: "root",
database: "bamazon"
});
conn.connect(function (err) {
if (err) throw err;
start();
});
function start()... |
# -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.bitfinex import bitfinex
import hashlib
import math
import json
from ccxt.base.errors import ExchangeError
from ccxt.base.errors ... |
/*
A CkCallback is a simple way for a library to return data
to a wide variety of user code, without the library having
to handle all 17 possible cases.
This object is implemented as a union, so the entire object
can be sent as bytes. Another option would be to use a virtual
"send" method.
Initial version by Orion... |
/*
* ESPRESSIF MIT License
*
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to dea... |
/**
* @fileoverview Flag all the variables that were declared but never used
* @author Raghav Dua <duaraghav8@gmail.com>
*/
'use strict';
module.exports = {
meta: {
docs: {
recommended: true,
type: 'error',
description: 'Flag all the variables that were declared but never used'
},
schema: []
}... |
#!/usr/bin/python
# Copyright (c) 2010-2013, Regents of the University of California.
# All rights reserved.
#
# Released under the BSD 3-Clause license as published at the link below.
# https://openwsn.atlassian.net/wiki/display/OW/License
import logging
import random
import threading
from math import radians, cos, s... |
# ckwg +29
# Copyright 2019 by Kitware, 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 copyright notice,
# this list of conditi... |
import { useRef } from 'react'
import Head from 'next/head';
import { faBalanceScale } from '@fortawesome/pro-light-svg-icons';
import DocPage from '../../components/DocPage'
import DocSection from '../../components/DocSection'
import Code from '../../components/Code'
var low = require('lowlight')
var tree = low.highl... |
import json
from abc import abstractmethod
from typing import (
Any,
Dict,
Union,
)
from tri_declarative import (
dispatch,
EMPTY,
Namespace,
Refinable,
)
from iommi._web_compat import (
get_template_from_string,
HttpResponse,
HttpResponseBase,
mark_safe,
Template,
)
fr... |
const winston = require('winston');
const info = (message) => {
winston.info(message);
};
const error = (message) => {
winston.error(message);
};
module.exports = {
info,
error
}; |
"""
Running Distributed Pytorch Training using KF PytorchOperator
-------------------------------------------------------------------
This example is adapted from the default example available on Kubeflow's pytorch site.
`here <https://github.com/kubeflow/pytorch-operator/blob/b7fef224fef1ef0117f6e74961b557270fcf4b04/e... |
#!/usr/bin/env python
#
# Copyright 2014 tigmi
#
# 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 agre... |
/**
* @author Don McCurdy / https://www.donmccurdy.com
*/
import {
BufferAttribute,
BufferGeometry,
FileLoader,
Loader
} from "../../../build/three.module.js";
var DRACOLoader = function ( manager ) {
Loader.call( this, manager );
this.decoderPath = '';
this.decoderConfig = {};
this.decoderBinary = null;
... |
from lib.utils import *
from intervaltree import IntervalTree
def load(virus):
if virus == 'h1':
escape_fname = ('target/flu/semantics/cache/'
'analyze_semantics_flu_h1_bilstm_512.txt')
region_fname = 'data/influenza/h1_regions.txt'
elif virus == 'h3':
escape_fn... |
module.exports = {
'E2E': process.env.E2E,
'projectOverrides': JSON.stringify({
bulletTrain: process.env.BULLET_TRAIN,
ga: process.env.GA,
crispChat: process.env.CRISP_CHAT,
mixpanel: process.env.MIXPANEL,
sentry: process.env.SENTRY,
api: process.env.API_URL,
... |
import unittest
from scrapydd.webhook import *
from scrapydd.models import WebhookJob
from six import StringIO
import tornado
import tornado.web
from tornado.testing import AsyncTestCase, AsyncHTTPTestCase
import json
class WebhookRequestHandler(tornado.web.RequestHandler):
def initialize(self, test):
... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkCocoaRenderWindow.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distribut... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Update (create if not existed) YAML 'lastmod' in posts
according to their last git log date.
Dependencies:
- git
- ruamel.yaml
© 2018-2019 Cotes Chung
Licensed under MIT
"""
import sys
import glob
import os
import subprocess
import shutil
from utils.frontmatter... |
$(function () {
"use strict";
// chart 1
var options = {
series: [{
name: 'Sessions',
data: [414, 555, 257, 901, 613, 727, 414, 555, 257]
}],
chart: {
type: 'line',
height: 60,
toolbar: {
show: false
},
zoom: {
enabled: false
... |
const gps = require('.');
describe("gps fn test", () => {
it("passes testing fn1", () => {
var x = [0.0, 0.23, 0.46, 0.69, 0.92, 1.15, 1.38, 1.61];
var s = 20;
var u = 41;
expect( Math.floor(gps(s ,x)) ).toBe(u);
});
it("passes testing fn2", () => {
var x = [0.0, 0.... |
from django.conf.urls import url
from django.contrib.auth.views import login,logout
from appPortas.views import *
urlpatterns = [
url(r'^porta/list$', porta_list, name='porta_list'),
url(r'^porta/detail/(?P<pk>\d+)$',porta_detail, name='porta_detail'),
url(r'^porta/new/$', porta_new, name='porta_new'),
... |
class Solution:
def XXX(self, root: TreeNode) -> List[List[int]]:
ans = []
if not root:
return ans
stack = [(root,0)]
while stack:
node,i = stack.pop()
if len(ans) == i:
ans.append([])
ans[i].append(node.val)
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/awstransfer/Transfer_EXPORTS.h>
#include <aws/awstransfer/TransferRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/awstransfer/model/HomeDirectoryTy... |
# Generated by Django 4.0 on 2021-12-13 15:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('main', '0001_initial'),
]
operations = [
migration... |
# Copyright 2012 Jeff Trawick, http://emptyhammock.com/
#
# 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 la... |
require('./bootstrap');
window.Vue = require('vue');
// Vue.component('example-component', require('./components/ExampleComponent.vue').default);
Vue.component('sign-component', require('./components/SignComponent.vue').default);
Vue.component('ce-component', require('./components/CEComponent.vue').default);
Vue.comp... |
import Component from "@ember/component";
import { computed } from '@ember/object';
export default Component.extend({
threads: computed(function(){ return []; })
});
|
# -*- coding: utf-8 -*-
# Copyright (c) 2021, Sachin Mane and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class BackgroundJobConfig(Document):
@staticmethod
def get_invalidate_key():
return f'invali... |
/* Copyright (C) 2011-2014 Povilas Kanapickas <povilas@radix.lt>
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef LIBSIMDPP_SIMDPP_DETAIL_INSN_ZIP_HI_H
#define LIBSIMDPP_SIMDPP_DETAIL... |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','... |
from d3m import index
from d3m.metadata.base import ArgumentType
from d3m.metadata.pipeline import Pipeline, PrimitiveStep
# Creating pipeline
pipeline_description = Pipeline()
pipeline_description.add_input(name='inputs')
# Step 0: dataset_to_dataframe
primitive_0 = index.get_primitive('d3m.primitives.tods.data_pro... |
# Copyright (c) 2015 Aptira Pty Ltd.
# 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 requi... |
(function () {
"use strict";
/**
* Callback function when the environment is ready.
* @callback ready
* @param {Object} envObj - environment object (in environment.js).
*/
/**
* Callback function when the environment is failing.
* @callback fail
* @param {string} message - the reason why th... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-login"],{"173f":function(e,t,n){"use strict";n.r(t);var i=n("429f"),a=n("208d");for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("a338");var c,s=n("f0c5"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"f44ce6e... |
# Generated by Django 3.0.1 on 2020-02-04 07:05
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
/*"use stri... |
"""
EVM Instruction Encoding (Opcodes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. contents:: Table of Contents
:backlinks: none
:local:
Introduction
------------
Machine readable representations of EVM instructions, and a mapping to their
implementations.
"""
import enum
from typing import Callable, Dict
from .... |
# Copyright (c) 2019 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 app... |
/* Definition of `struct stat' used in the kernel.
Copyright (C) 1997, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by t... |
############################################
# Project: MCT-TFE
# File: TFE.py
# By: ProgrammingIncluded
# Website: ProgrammingIncluded.com
############################################
import numpy as np
import random as rnd
# Game Settings
# Probability of 4 appearing
FOUR_PROB = 10
MAX_VALUE = 2048
... |
export { default } from './ShowBuilderPage';
|
/*-
* Copyright (c) 1989 Stephen Deering.
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Stephen Deering of Stanford University.
*
* Redistribution and use in source and binary forms, with or wit... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\rick.towler\Work\AFSCGit\SurveyApps\MaceFunctions3\QImageViewer\ui\imageAdjustmentsDlg.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, Qt... |
var hasOwn = Object.prototype.hasOwnProperty;
var toString = Object.prototype.toString;
module.exports = function forEach (obj, fn, ctx) {
if (toString.call(fn) !== '[object Function]') {
throw new TypeError('iterator must be a function');
}
var l = obj.length;
if (l === +l) {
... |
#!/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
from toolbox.AirWatchAPI import AirWatchAPI as airwatch
api = airwatch()
for device in search['Devices']:
if device['EnrollmentStatus'] == 'Enrolled' and device['LocationGroupName'] != 'Disabled':
for policy in device['ComplianceSummary']['DeviceComp... |
var searchData=
[
['t_0',['T',['../classnetdem_1_1_s_d_f_calculator.html#adcfdb7972eb8e7126390fd912c5ed078',1,'netdem::SDFCalculator']]],
['t_5fstart_1',['t_start',['../classnetdem_1_1_d_e_m_profiler.html#ab7d2947cb98fab1a0ad2d96be95cc8b4',1,'netdem::DEMProfiler']]],
['target_5fpressure_2',['target_pressure',['..... |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
__author__ = 'Andreas Bader'
__version__ = "1.00"
import logging
import logging.config
import argparse
from fabric.api import *
import os
import time
import Util
import subprocess
import threading
import Vm
import ConfigParser
import datetime
import re
import platform
p... |
// Derived from Inferno utils/5c/swt.c
// http://code.google.com/p/inferno-os/source/browse/utils/5c/swt.c
//
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
// Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
// Portions Copyright © 1997-1999 Vita Nuova Limited
// Portions Cop... |
import time
LABELS = [
'brightpixel',
'narrowband',
'narrowbanddrd',
'noise',
'squarepulsednarrowband',
'squiggle',
'squigglesquarepulsednarrowband'
]
LABEL_TO_ID = {label: label_i for label_i, label in enumerate(LABELS)}
def tprint(msg):
print('%s: %s' % (int(time.time()), msg))
def... |
"""
Plotting for nirvana outputs.
.. include:: ../include/links.rst
"""
import numpy as np
from matplotlib import pyplot as plt
import matplotlib
from mpl_toolkits.axes_grid1 import make_axes_locatable as mal
import re
import os
import traceback
import multiprocessing as mp
from functools import partial
import dynes... |
'use strict';
const Generator = require('yeoman-generator');
const chalk = require('chalk');
const yosay = require('yosay');
module.exports = class extends Generator {
prompting() {
// Have Yeoman greet the user.
this.log(
yosay(
`Welcome to the premium ${chalk.red('generator-micrub')} generato... |
#!/usr/bin/env python
import subprocess
import sys
def restart_until_success(cmd):
ret_code = -1
while ret_code != 0:
ret_code = subprocess.call(cmd)
if __name__ == '__main__':
cmd = sys.argv[1:]
print ('Executing:', ' '.join(cmd))
restart_until_success(cmd)
|
# Generated by Django 2.2.2 on 2021-05-02 06:25
import account.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='account',
name='a... |
import sys, os
sys.path.insert(0, os.path.abspath('..'))
import pygame, pygbutton
from pygame.locals import *
FPS = 30
WINDOWWIDTH = 640
WINDOWHEIGHT = 480
WHITE = (255, 255, 255)
def main():
pygame.init()
FPSCLOCK = pygame.time.Clock()
DISPLAYSURFACE = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT... |
import SPViewElement from '/js/controls/view.js';
export default class SPConfigViewElement extends SPViewElement {
connectedCallback() {
super.connectedCallback();
if (!this.created2) {
this.create();
this.created2 = true;
}
}
... |
import email
import boto3
import logging
from botocore.exceptions import ClientError
logger = logging.getLogger()
def download_email(message_id):
"""
This method downloads full email MIME content from WorkMailMessageFlow and uses email.parser class
for parsing it into Python email.message.EmailMessage cla... |
import torch._C
from contextlib import contextmanager
from typing import Iterator
from torch.utils import set_module
# These are imported so users can access them from the `torch.jit` module
from torch._jit_internal import (
Final,
Future,
_IgnoreContextManager,
_overload,
_overload_method,
i... |
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
process = cms.Process("L1TStage2DQM", eras.Run2_2018)
#--------------------------------------------------
# Event Source and Condition
# Live Online DQM in P5
process.load("DQM.Integration.config.inputsource_cfi")
# # Tes... |
/*-
* Copyright (c) 1989, 1993
* The Regents of the University of California. 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 code must retain the above copy... |
'use strict'
const path = require('path')
const defaultSettings = require('./src/settings.js')
function resolve(dir) {
return path.join(__dirname, dir)
}
const name = defaultSettings.title || '火狐一卡通系统' // 标题
const port = process.env.port || process.env.npm_config_port || 80 // 端口
// vue.config.js 配置说明
//官方vue.con... |
"use strict";
var _ = require("lodash");
function skewer(input) {
var output = _.kebabCase(input);
return output;
}
var message = skewer("EnableJavacriptIntellisense");
console.log(message);
|