text
stringlengths
3
1.05M
# Copyright 2017 The TensorFlow 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...
const merge = require('webpack-merge'); const TerserWebpackPlugin = require('terser-webpack-plugin'); const common = require('./webpack.common.js'); module.exports = merge(common, { mode: 'production', output: { filename: 'bundle.js', }, optimization: { minimizer: [new TerserWebpackPlugin()], } });
'use strict' const mongoose = require('mongoose') const Schema = mongoose.Schema const schema = Schema({ user_name: { type: String, required: true }, password: { type: String, required: true }, tweets: { type: Number, required: true }, followers: { type: Number, required: true }, follows: { type: N...
export {default, optionalAction} from 'ember-appointment-slots-pickers/helpers/optional-action';
# coding: utf-8 import pprint import re import six class ShowApiVersionRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the va...
(function () { var chartData = [ { label: '2014', values: [17000000, 10000000, 5000000] }, { label: '2015', values: [9000000, 12000000, 3000000] }], chartOptions = { appendTo: '#group...
import React, { Component } from 'react' import {connect} from 'react-redux'; import {changeEventInfo, submitEvent, cleanupEvent} from '../../Redux/Actions/event' import Banner from '../Banner/Banner' import Pain from './EventTemplates/Pain' import './Event.css' import TypeMenu from './TypeMenu'; import Marker from...
# Copyright 2011 Justin Santa Barbara # # 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 l...
from model.group import Group from model.contact import Contact import random def test_delete_contact_from_group(app, db, check_ui): if len(db.get_group_list()) == 0: app.group.create(Group(name="test")) if len(db.get_contact_list()) == 0: app.contact.create(Contact(firstname="test")) if l...
#include "common.h" #include "hash.h" #include "jksql.h" #include "linefile.h" #include "hdb.h" #include "psl.h" #include "imageClone.h" #include "stanMad.h" void usage() { errAbort("findStanAlignments - takes a stanford microarray experiment file and\n" "tries to look up an alignment for the relevant clone in the...
# Copyright 2017 The TensorFlow 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...
from modules.scheduler.scheduler import Scheduler class PreemptivePS(Scheduler): def gantt_chart(self): sorted_processes = sorted(self.processes, key=lambda process: process.priority) gantt = {} burst_time_track = {process:process.burst_time for process in sorted_processes} ...
import os import copy import shutil import argparse import collections import torch import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.utils import shuffle from sklearn.model_selection import KFold, StratifiedKFold import data_loader.data_loaders as module_data imp...
#!/usr/bin/env node 'use strict'; // This file simply reads the arguments from the command // then calls the proper storage function of simple_storage // then displays the result using the proper function of simple_output var simple_storage = require('./simple_storage'); var simple_output = require('./simple_output')...
import os, sys def create_cesm_case(cesm_code_base, new_case): email = os.environ['USER']+'@ucar.edu' cesm_xml={ 'RESUBMIT': '10', 'STOP_N': '10', 'STOP_OPTION': 'nyears', 'DOUT_S': 'TRUE' } pp_xml={ 'GENERATE_TIMESERIES': 'FALSE', 'GENERATE_AVGS_ATM': 'FALSE', ...
// MIT // // Copyright Joyent, Inc. and other Node contributors. // // 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 use...
from unittest import TestCase import os import sys import six from cqlengine.connection import get_session CASSANDRA_VERSION = int(os.environ['CASSANDRA_VERSION']) class BaseCassEngTestCase(TestCase): # @classmethod # def setUpClass(cls): # super(BaseCassEngTestCase, cls).setUpClass() session = N...
from django.urls import path,include from rest_framework.routers import DefaultRouter from profiles_api import views router = DefaultRouter() router.register('hello-viewset',views.HelloViewSet,base_name = 'hello-viewset') router.register('profile',views.UserProfileViewSet,base_name = '') urlpatterns = [ path('he...
import React from 'react' import PropTypes from 'prop-types' import { handleSlug } from '../utils/location-utils' import { ArticleTitle, ViewsSlide, ViewsThumbnail } from './ViewsCard.styles' const ViewsCard = ({ featuredImage, title, slug }) => { return ( <ViewsSlide to={handleSlug(slug)}> <ViewsThumbnail...
// 北渊贡献了代码 const a = '1111' const b = '2222' console.log(a+b);
import { Radar } from 'react-chartjs-2' const options = { legend: { position: 'top' }, title: { display: true, text: 'Big Five Personality' }, scale: { reverse: false, gridLines: { circular: true }, ticks: { beginAtZero: true, max: 1 } } } // const data = {...
from gaphor.tests import TestCase from gaphor import UML from gaphor.diagram.classes import AssociationItem, ClassItem from gaphor.core import transactional class UndoTest(TestCase): services = TestCase.services + ["undo_manager"] def test_class_association_undo_redo(self): factory = self.element_fa...
"use strict"; exports.__esModule = true; var metadata = { group: "builtin-modules" }; exports.metadata = metadata; var Program = { exit: function exit(program, parent, scope, file) { // ensure that these are at the top, just like normal imports var _arr = file.dynamicImports; for (var _i = 0; _i < _ar...
export default function valueFromLocationQuery(props, name) { const value = props.location.query && props.location.query[name]; return value && JSON.parse(value); }
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
/** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ export { typedDependencies } from './dependenciesAny/dependenciesTyped.generated' export { ResultSetDependencies } from './dependenciesAny/dependenciesResultSet.generated' export { BigNumberDependencies } from './dependenciesAny/dependenciesBigNumberClas...
import React from 'react'; import { TouchableOpacity, View } from 'react-native'; import { SvgXml } from 'react-native-svg'; import { navigate } from '@/NavigationService'; import { ORANGE, DEVICE_IOS, DEVICE_LARGE } from '@/utils/constants'; import backArrow from '@/static/back_arrow_white.svg'; export const headerTi...
var file = 'blah.txt'; var helpers = { test: function() { console.log('test something'); }, parse: function() { console.log('parse something'); } }
#!/usr/bin/env python3 from argparse import ArgumentParser import os, re, sys if __name__ == "__main__": parser = ArgumentParser("Simple app to submit jobs to the GPU queue on O2") parser.add_argument("--cmd", "-d", help = "Script cmd-line in quotes. We will add output directories...
import os import subprocess ''' inputs: src (str) Source of mp4 file dst (str) Destination to save audio file to including filename ''' def mp4_to_wav(src, dst): filename = src.split('/')[-1].split('.')[0] dst = f'{dst}/{filename}.mp4' if os.path.isfile(dst): os.remove(dst) command = f'ffmpeg -i {src} -ab 160k ...
/* Private define ------------------------------------------------------------*/ #define TIM_1_8_CLOCK_HZ 168000000 #define TIM_1_8_PERIOD_CLOCKS 3500 #define TIM_1_8_DEADTIME_CLOCKS 20 #define TIM_APB1_CLOCK_HZ 84000000 #define TIM_APB1_PERIOD_CLOCKS 4096 #define TIM_APB1_DEADTIME_CLOCKS 40 #define TIM_1_8_RCR 2 #de...
import { userMenus} from '../api/api'; //test export const increment = ({commit}) => { commit('INCREMENT') } export const decrement = ({commit}) => { commit('DECREMENT') } export const currentUrl = ({commit}, tourl) => { commit('currentUrl', tourl); } export const setPermission = ({commit},path) => { ...
""" Thierry Bertin-Mahieux (2010) Columbia University tb2332@columbia.edu This code creates an SQLite database with 5 tables. One per unique artist, one per unique Echo Nest term, one per unique musicbrainz tag, then one table to link artists and terms, and one table to link artists and mbtags. This is part of the Mi...
#import <AVFoundation/AVFoundation.h> #import <UIKit/UIKit.h> /** * * @version: 4.6.2 * @brief class for media attributes of a Call * localVideo, holds boolean value that if the local video is activated for sending * remoteVideo, holds boolean value that if the remote video is receiving * localAudio, holds b...
const base = require("./jest.config.base.js"); module.exports = { ...base, roots: ["<rootDir>"], projects: [ "<rootDir>/packages/*/jest.config.js", "<rootDir>/integration/jest.config.js" ] };
# Copyright (c) 2012 NetApp, Inc. # Copyright (c) 2016 Red Hat, 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...
# Copyright 2015 Microsoft 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 o...
#!/usr/bin/env python import sys, os, time import shutil, re thisDir = os.getcwd() # this the directory of the script loading this one # so for example, when using wf_reproductive_rom, # thisDir is the directory where that script is located shwaveRepoDir = thisDir print("shwaveRepoDir = {}".format(shwaveRepoDir)) f...
//--------------------------------------------------------------------- // <copyright file="_pEndpoint.h" company="Lenovo"> // Copyright (c) 2018-present, Lenovo. All rights reserved. Licensed under BSD, see COPYING.BSD file for details. // </copyright> //---------------------------------------------------------...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' .. module:: examples.benchmarks.144_000_example_1 :platform: Agnostic, Windows :synopsis: Test for IGES type 144 form 0 .. Created on 01/08/2013 .. codeauthor:: Rod Persky <rodney.persky {removethis} AT gmail _DOT_ com> .. Licensed under the Academic Free Licen...
// Copyright 2011 Google Inc. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the COPYING file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing project authors may // be...
import time, threading balance = 0 lock=threading.Lock() def change_it(n): global balance lock.acquire(); balance = balance + n balance = balance - n lock.release() def run_thread(n): for i in range(100000): change_it(n) t1 = threading.Thread(target=run_thread, args=(5,)) t2 = threadin...
import setuptools with open('README.md', 'r', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup( name='codegenlib', author='Umut Boz', author_email='umut.boz@outlook.com', version="0.6.0", description='Code Generation library written by python. can use bash script, can be ...
import os PROJ_ROOT = os.path.abspath(os.path.dirname(__file__)) DEV_MODE = True # Used to control local static content serving. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = () MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': "django.contrib.gis.db.backends.postgis", 'NAME': "imaginary_...
# from collections import deque class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def maxProduct(root: TreeNode) -> int: sums = deque([]) def sumTree(root): if not root: return 0 sum...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "m8.1 13.34 2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.1-6.12....
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from bincrafters import build_template_installer from bincrafters import build_shared from conans import tools if __name__ == "__main__": docker_entry_script = ".ci/build.sh" if tools.os_info.is_linux else None arch = os.environ["ARCH"] builder = bu...
module.exports = { siteMetadata: { title: `Exploring Gatsby`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, }, plugins: [ `gatsby-plugin-react-helmet`, ...
module.exports = { 'desc' : 'Mark A Pending Submission As Complete', 'examples' : [{ cmd : 'fhc appforms environments submissions complete --environment=<Environment Id> --id=<Submission Id> ', desc : 'Mark A Pending Submission As Complete'}], 'demand' : ['environment', 'id'], 'alias' : {}, 'describe' : { ...
# -*- coding: utf-8 -*- # Potential improvements: # - when add to pending_jobs, we should look and see if we already have a job # for this file, if so, don't bother adding it. We don't need more than # one pending import collections import os import shutil import tempfile as builtin_tempfile import threading ...
import numpy as np from ...orbits.cov import Cov def load_cov(orb, data): if "COV_REF_FRAME" in data: frame = data["COV_REF_FRAME"].text else: frame = orb.cov.PARENT_FRAME if frame in ("RSW", "RTN"): frame = "QSW" values = [ [ data["CX_X"].text, ...
import os, sys # Copyright 2012 Loris Corazza, Sakis Christakidis # # 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 req...
#!/usr/bin/env python from datetime import datetime, timedelta import unittest from app import create_app, db from app.models import User, Post from config import Config class TestConfig(Config): TESTING = True SQLALCHEMY_DATABASE_URI = 'sqlite://' class UserModelCase(unittest.TestCase): def setUp(self)...
# coding: utf-8 # Python libs from __future__ import absolute_import from collections import namedtuple # Salt testing libs from tests.support.unit import skipIf, TestCase from tests.support.mock import NO_MOCK, NO_MOCK_REASON, patch, MagicMock, Mock from tests.support.mixins import LoaderModuleMockMixin # Salt libs...
load("0d8683db8b3792521a65ad1edba9cf82.js"); load("dada5190587903f93a3604016a6099ce.js"); load("b1197297ed3b96697cf0bc2ef4bf07e7.js"); load("e0355c495d347fb5fd9f38ee321e9622.js"); /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2...
/*** * * String module * @dependency String * ***/ var plurals = [], singulars = [], uncountables = [], humans = [], acronyms = {}, NormalizeMap = {}, NormalizeReg = '', NormalizeSource, Downcased, Inflector; function remov...
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. # # 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 Licen...
## ## Copyright (c) 2018-2019 Thomas Kramer. ## ## This file is part of gds3xtrude ## (see https://codeberg.org/tok/gds3xtrude). ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU Affero General Public License as ## published by the Free Software Foundation, e...
#pragma once #include "ChromaSDKImpl.h" // CAlertDlg dialog class CAlertDlg : public CDialogEx { DECLARE_DYNAMIC(CAlertDlg) public: CAlertDlg(CWnd* pParent = NULL); // standard constructor virtual ~CAlertDlg(); // Dialog Data enum { IDD = IDD_DIALOG_ALERTS }; private: CWnd* m_pParent; U...
import numpy as np import pandas as pd #Author: Asa Thibodeau def convertToPositionFormatFromBED(data, startidx=1): """Converts BED format positions to position format. Parameters ---------- data : array-like, shape (n_peaks, n_features) A numpy array containing peak data ...
import os import shutil from scipy import sparse from Alg.alg import Alg import numpy as np import bottleneck as bn import tensorflow as tf class Dae(Alg): def __init__(self, data, alg_cfg): super().__init__(data) tf.reset_default_graph() self.alg_cfg = alg_cfg self.p_dims = [self...
from core.state import State import random from _global.const import _Sentiment import json import config from _global import regex import util import os from core.nn import Matcher, get_w2i4matchnet, cut_word4matchnet import gensim import sqlite3 class NLG: # TODO 让user profile和AI profile更好的决定输出 def __init_...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created on 01/05/2015 @author: jorgesaw ''' from __future__ import absolute_import, print_function, unicode_literals from imperial.vista.gui.busqueda.BusquedaGenericaDlg import BusquedaGenericaDlg import PyQt4.QtGui as _qg MAC = hasattr(_qg, "qt_mac_set_native_menub...
import React from 'react'; import PropTypes from 'prop-types'; import InputSelect from '../InputSelect'; const InputSelectMonths = props => ( <div className="input-select-months w100% posr"> <InputSelect {...props} > <option value=""></option> <option value="1" >01 - January</option> <option value=...
import React from 'react'; import styled from 'styled-components'; import Layout from '../global/Layout'; import Image from '../components/Image'; const Page = styled.div` width: 100%; height: 100vh; padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; `; ...
import os import unittest from checkov.runner_filter import RunnerFilter from checkov.terraform.checks.resource.aws.SecretManagerSecretEncrypted import check from checkov.terraform.runner import Runner class TestSecretManagerSecretEncrypted(unittest.TestCase): def test(self): runner = Runner() cu...
$(()=>{ let path = "sliderimg/" let img = ["1.jpg","2.jpg","3.jpg","4.jpg","5.jpg"] let x = 0 const slider = $("#slider") slider .css({ width: "100%", margin: "auto", boxShadow: "0 0 5px #333", position: "relative", ...
__NUXT_JSONP__("/amp/21/37", (function(a,b,c,d,e,f,g,h,i,j){return {data:[{metaTitle:b,metaDesc:c,verseId:37,surahId:21,currentSurah:{number:"21",name:"الانبياۤء",name_latin:"Al-Anbiya'",number_of_ayah:"112",text:{"1":"اِقْتَرَبَ لِلنَّاسِ حِسَابُهُمْ وَهُمْ فِيْ غَفْلَةٍ مُّعْرِضُوْنَ ۚ ","2":"مَا يَأْتِيْهِمْ مِّنْ ذ...
from setuptools import setup package_name = 'intel_camera' setup( name=package_name, version='0.0.0', packages=[package_name], data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['package.xml']), ], in...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.FileShield2 = React.forwardRef(function (props, ref) { var attrs = { "fill": "cur...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2013-2016. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
const http = require('http') const url = require('url') const { URL: Url } = url const argv = require('minimist')(process.argv.slice(2)) const fs = require('fs-extra') if (!fs.existsSync('./Config.js')) { fs.copySync('./Config.example.js', './Config.js') } const Config = require('./Config.js') const config = Conf...
import React from 'react'; import { withFirebase } from '../Firebase/firebase'; import * as ROUTES from "../../constants/routes"; const SignOutButton = ({ firebase }) => ( <div style={{ textDecoration: "none"}} to={ROUTES.LANDING} onClick={()=>{ firebase.doSignOu...
# -*- coding: utf-8 -*- """ Created on Mon Sep 11 13:16:19 2017 @author: Ashiv Dhondea """ import AstroFunctions as AstFn import GeometryFunctions as GF import TimeHandlingFunctions as THF import math import numpy as np import datetime as dt import pytz import aniso8601 import matplotlib.pyplot a...
from django.contrib.flatpages.sitemaps import FlatPageSitemap class PriorityFlatPageSitemap(FlatPageSitemap): priority = 0.5
"use strict"; /*! * @contentstack/message-broker * Copyright(c) 2020 Contentstack LLC * MIT Licensed */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SQS = void 0; const tslib_1 = require("tslib"); const AWS = require("aws-sdk"); const common_1 = require("@nestjs/common"); const message_bro...
# -*- coding: utf-8 -*- """ bl_api_objdetect.core ~~~~~~~~~~~~ This module provides the core HttpBin experience. """ import base64 import json import os import random import time import uuid import argparse from PIL import Image from flask import Flask, Response, request, render_template, redirect, jsonify as flas...
import os import socket import subprocess import signal import sys import logging import time #print 'The current directory is' + os.getcwd() addr=('127.0.0.1', 8286) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: #print 'Simulating COSACS...' sock.bind(addr) time.sleep(200) ...
const path = require('path'); const _ = require('lodash'); const languages = require('./src/content/i18n/languages'); exports.onCreateNode = ({ node, actions, getNode }) => { const { createNodeField } = actions; // Sometimes, optional fields tend to get not picked up by the GraphQL // interpreter if...
/****************************************************************************** * * @file nor_ops.c * * * Ver Who Date Changes * 1.00 AZ 02/23/17 First release * 1.01 RY 02/27/18 Add DMA function and divide all code into 4 blocks. ************************************************************...
/*! ========================================================= * Material Kit React - v1.7.0 ========================================================= * Product Page: https://www.creative-tim.com/product/material-kit-react * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https://githu...
import '../primes/test.js' import '../prime-counting/test.js' import '../primality-test/test.js' import '../nth-prime/test.js'
const { Schema, model, Types } = require('mongoose'); const moment = require('moment'); // sub-document const ReactionSchema = new Schema( { reactionId: { type: Schema.Types.ObjectId, default: () => new Types.ObjectId() }, reactionBody: { type: String, required: true, maxlen...
""" 2D Vector-Vector Projection =========================== Project a vector onto another vector. """ from skspatial.objects import Vector from skspatial.plotting import plot_2d vector_a = Vector([1, 1]) vector_b = Vector([2, 0]) vector_projected = vector_b.project_vector(vector_a) _, ax = plot_2d( vector_a....
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.core.exceptions import ValidationError from .models import Profile class SignUpForm(UserCreationForm): email = forms.EmailField(required=True, label='Email') class Meta: ...
// SPDX-License-Identifier: GPL-2.0+ /* * comedi/drivers/amplc_pci230.c * Driver for Amplicon PCI230 and PCI260 Multifunction I/O boards. * * Copyright (C) 2001 Allan Willcox <allanwillcox@ozemail.com.au> * * COMEDI - Linux Control and Measurement Device Interface * Copyright (C) 2000 David A. Schleef <ds@schlee...
# -*- coding: utf-8 -*- class CallableMock(object): def __init__(self, mock): self.mock = mock def __call__(self, *args, **kwargs): return self.mock.__call__(*args, **kwargs) class IterableMock(object): def __init__(self, mock): self.mock = mock def __iter__(self, *args, **...
# Importing the Kratos Library import KratosMultiphysics as KM import KratosMultiphysics.ShallowWaterApplication as SW import KratosMultiphysics.MeshingApplication as MSH def Factory(settings, Model): if not isinstance(settings, KM.Parameters): raise Exception("expected input shall be a Parameters object, ...
import React, { useState, useEffect } from 'react' import PropTypes from 'prop-types' import { ModalContent, Button, closeModal, TextEntry, Select } from '../../common' const NativeCredentialsModal = ({ action }) => { const [platform, setPlatform] = useState('') const [bundleId, setBundleI...
version = '0.66' short_version = version full_version = version
/** * CindyJS WebXR integration code: * * Copyright 2019 Christoph Neuhauser * * 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 * ...
/* ** FFI C callback handling. ** Copyright (C) 2005-2021 Mike Pall. See Copyright Notice in luajit.h */ #include "lj_obj.h" #if LJ_HASFFI #include "lj_gc.h" #include "lj_err.h" #include "lj_tab.h" #include "lj_state.h" #include "lj_frame.h" #include "lj_ctype.h" #include "lj_cconv.h" #include "lj_ccall.h" #include ...
//Material components import Grid from '@material-ui/core/Grid'; //Custom components import WorksBanner from '../components/Works/worksbanner'; import Index from '../components/Works/index'; import Footer from '../components/Index/footer'; import View from '../components/View/view'; import ViewWork from '../components...
from __future__ import absolute_import, unicode_literals import re import sqlparse from django.utils.html import escape from sqlparse import tokens as T class BoldKeywordFilter: """sqlparse filter to bold SQL keywords""" def process(self, stream): """Process the token stream""" ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = Hand2; var _Hand = require("@adobe/react-spectrum-workflow/dist/Hand2"); var _icon = require("@react-spectrum/icon"); var _react = _interopRequireDefault(require("react")...
// http://goo.gl/IRlJuI ;(function(d){"use strict";d.head.appendChild(d.createElement("style")).innerHTML=".hljs{display:block;overflow-x:auto;padding:.5em;background:#282b2e;-webkit-text-size-adjust:none}.hljs-keyword,.hljs-literal,.hljs-change,.hljs-winutils,.hljs-flow,.nginx .hljs-title,.css .hljs-id,.tex .hljs-spec...
// -*- c++ -*- // Generated by gtkmmproc -- DO NOT MODIFY! #ifndef _GTKMM_SCALE_P_H #define _GTKMM_SCALE_P_H #include <gtkmm/private/range_p.h> #include <glibmm/class.h> namespace Gtk { class Scale_Class : public Glib::Class { public: #ifndef DOXYGEN_SHOULD_SKIP_THIS typedef Scale CppObjectType; typedef GtkSca...
#!/usr/bin/env node var fs = require('fs') , path = require('path') , markdown = require('markdown') , ps = require('child_process') , build_path = path.join(__dirname, 'tmp') , html_tmp_filename = path.join(build_path, 'tmp.html') , html_header_tmp_filename = path.join(build_path, 'tmp_header.html') , h...
"""Featured models storage/logic. Stores currently featured artists, songs, albums, and genres.""" from __future__ import unicode_literals from django.db import models from artists.models import Artist from songs.models import Song class Current(models.Model): song = models.CharField(max_length=100) artist =...
let cursos = [] localStorage["cursos"] = JSON.stringify(cursos) var cursosOfertado = [9] cursosOfertado[0] = "HTML5" cursosOfertado[1] = "CSS3" cursosOfertado[2] = "JS" cursosOfertado[3] = "Java" cursosOfertado[4] = "Python" cursosOfertado[5] = "Ruby" cursosOfertado[6] = "SQL" cursosOfertado[7] = "MySQL" cursosOfertad...