text
stringlengths
3
1.05M
from pyunicon.UCScreen import UCScreen from erc_server import socketio from flask.ext.socketio import emit from pyunicon.UCMouse import UCMouse from erc_server.erc_util import get_key_by_text, press_key __author__ = 'cansik' DEFAULT_NAMESPACE = '/text' __mouse = UCMouse() __screen = UCScreen() @socketio.on('connec...
import datetime from typing import List from celery import shared_task from dateutil.relativedelta import relativedelta from django.core.mail import EmailMessage from django.db.models import Sum from django.db.models.functions import Coalesce from django.template.loader import render_to_string from django.utils import...
# 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. DEPS = [ 'recipe_engine/path', 'recipe_engine/platform', 'recipe_engine/properties', 'recipe_engine/python', 'tryserver', ] def RunSteps(api): ...
function getMinFromArrays(arrays, state) { let minIndex = -1; for (let i = 0, l = arrays.length; i < l; i++) { if (state[i] >= arrays[i].length) { continue; } if ( minIndex === -1 || arrays[i][state[i]].offset < arrays[minIndex][state[minIndex]].offset ) { minIndex = i; } } if (minIndex === -1...
/* Copyright 2013-2018 IBM Corp. * * 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...
8.0-alpha2:0a94d9e30e30990d0ecd68b44fb631d2518a72259199c41e7344da704cb40bae
#!/usr/bin/env python2 # Copyright (c) 2016-2017 The Duality Blockchain Solutions developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test mempool limiting together/eviction with the wallet from test_framework.test_frame...
from pathlib import Path from typing import List __all__ = ( "ResourceLoaderError", "NoSuchResourceError", "DuplicateResourceError", "FailedToLoadResourceError", "UnsupportedResourceExtensionError", ) class ResourceLoaderError(Exception): def __init__(self, path: Path, message: str): ...
/****************************************************************************** * Code generated with sympy 0.7.6 * * * * See http://www.sympy.org/ for more information. * ...
/* Generated by CIL v. 1.7.0 */ /* print_CIL_Input is false */ struct _IO_FILE; struct timeval; extern void signal(int sig , void *func ) ; extern float strtof(char const *str , char const *endptr ) ; typedef struct _IO_FILE FILE; extern int atoi(char const *s ) ; extern double strtod(char const *str , char co...
/** * Created by REN on 9/29/2016. */ var app = angular.module('mainApp'); app.factory('downloadServices',function($http,API_URL,$q) { return { downloadZip: function(filename){ return $http({ method: 'GET', url: API_URL + "downloadZip/" + filename, ...
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
import React from 'react' export const HeroPos = React.memo(({ className }) => ( <svg width="309" height="45" viewBox="0 0 309 45" fill="none" xmlns="http://www.w3.org/2000/svg" className={className} > <path d="M42.3932 0.207031V17H46.5885V10.707H62.1276V6.5H46.5885V4.40234H63.803...
Ext.define('KitchenSink.view.binding.TwoWay', { extend: 'Ext.Container', xtype: 'binding-two-way', controller: 'binding-twoway', viewModel: { data: { title: 'Default Title' } }, // <example> otherContent: [{ type: 'Controller', path: 'modern/src/...
/* * Author: Damian Morris <damian@moso.com.au> * * Copyright (c) 2010 MOSO Corporation, Pty Ltd. * Copyright (c) 2010 Plausible Labs Cooperative, Inc. * * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * fi...
'use strict'; /** * Module dependencies. */ var passport = require('passport'), url = require('url'), FacebookStrategy = require('passport-facebook').Strategy, config = require('../config'), users = require('../../app/controllers/users.server.controller'); module.exports = function() { // Use facebook strategy...
(function(root, factory) { if (typeof define === 'function' && define.amd) { define('calendar', ['js/jquery'], factory); } else if (typeof exports === 'object') { module.exports = factory(require('jquery')); } else { factory(root.jQuery); } }(this, function($) { //...
module.exports = function(grunt) { let template = '/*! <%= pkg.title %> v<%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd") %>) - <%= pkg.description %>\n\n\nThis Source Code Form is subject to the terms of the Mozilla Public\nLicense, v. 2.0. If a copy of the MPL was not distributed with this\nfile, You c...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
import logging import pytest import requests import test_helpers __maintainer__ = 'kensipe' __contact__ = 'orchestration-team@mesosphere.io' log = logging.getLogger(__name__) def deploy_test_app_and_check_windows(dcos_api_session, app: dict, test_uuid: str): """This method deploys the python test server conta...
$wnd.jsme.runAsyncCallback10('var a$="data-selenium-id";function b$(){this.ob=Xx("file");this.ob[pi]="gwt-FileUpload"}y(407,388,Bn,b$);_.Ie=function(a){yF(this,a)};function c$(a){var b=$doc.createElement(Ii);Kr(Gl,b.tagName);this.ob=b;this.b=new D2(this.ob);this.ob[pi]="gwt-HTML";C2(this.b,a,!0);L2(this)}y(411,412,Bn,c...
#import <UIKit/UIKit.h> /** * Options for pinning item edges. */ typedef NS_OPTIONS(NSUInteger, HRKViewPinEdges) { /// Pins the top edge of an item. HRKViewPinTopEdge = 1 << 0, /// Pins the right edge of an item. HRKViewPinRightEdge = 1 << 1, /// Pins the bottom edge of an item. HRKView...
/**************************************************************************** * apps/system/setlogmask/setlogmask.c * * 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 copyrig...
// // UIControl+Sound.h // Category // // Created by Silence on 2017/3/18. // Copyright © 2017年 silence. All rights reserved. // #import <UIKit/UIKit.h> @interface UIControl (Sound) /// 不同事件增加不同声音 - (void)setSoundNamed:(NSString *)name forControlEvent:(UIControlEvents)controlEvent; @end
from selenium import webdriver from selenium.webdriver.firefox.options import Options from . import Base class Firefox(Base): def get_options(self): return Options() def boot_driver(self): return webdriver.Firefox(**self.browser_args) def do_install_addon(self, params): """ ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <tuple> #include <folly/Hash.h> #include <react/renderer/graphics/Float.h> #include <react/renderer/graph...
/*------------------------------------------------------------------------- * * tsquery_op.c * Various operations with tsquery * * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * * * IDENTIFICATION * $PostgreSQL$ * *-----------------------------------------------------------------...
/*********************************************************************** * * Copyright 2001 MontaVista Software Inc. * Author: jsun@mvista.com or jsun@junsun.net * * include/asm-mips/ddb5xxx/ddb5477.h * DDB 5477 specific definitions and macros. * * This program is free software; you can redistribute it and...
/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license/ */ CKEDITOR.lang['cy']={"application":"Rich Text Editor","editor":"Golygydd Testun Cyfoethog","editorPanel":"Panel Golygydd Testun Cyfoethog","common":{"editorH...
/* * Copyright 2009-2017 Alibaba Cloud 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...
/** * flowground :- Telekom iPaaS / groupalarm-monitor-api-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are licensed under the Apache 2.0 License. For details * see the file LICENSE on the toplevel directory. */ const processWrapper = require...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; // components import Icon from 'components/ui/icon'; // styles import './styles.scss'; class ResetViewControls extends PureComponent { static propTypes = { className: PropTypes.string, onR...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" @class MTLumaDodgePillView; @protocol MTLumaDodgePillBackgroundLuminanceObserver <NSObject> - (void)lumaDodgePillDidDetectBackgroundLuminanceChange:(MTLumaDod...
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. #----------------------------------------------------------------------------- # Minimal Python version sanity check (from IPython/Jupyterhub) #-----------------------------------...
const food = { types: 'only pizza' }; console.log(food.types);
/** * @license Highcharts JS v5.0.9 (2017-03-08) * Highcharts funnel module * * (c) 2010-2016 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function(factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else { factory(Highcha...
H, N = [int(n) for n in input().split()] A = [int(n) for n in input().split()] print('Yes' if sum(A) >= H else 'No')
import copy from typing import Callable, Awaitable from aiohttp import web from aiohttp.hdrs import METH_ANY, METH_ALL from apispec import APISpec from apispec.ext.marshmallow import MarshmallowPlugin from .utils import get_path, get_path_keys, issubclass_py37fix PATHS = {"get", "put", "post", "delete", "patch"} _A...
from glados import GladosBot, GladosPlugin import logging class TestPlugin3(GladosPlugin): def __init__(self, bot: GladosBot, name, **kwargs): super().__init__(name, bot, **kwargs) logging.info(f"plugin {self.name} imported") def test_function(self, echo, **kwargs): return echo
export const willChange = { bind(el, binding) { binding.name = "will-change"; el._willChangeActive = function () { const label = el.getElementsByClassName("will-change"); label[0].style.willChange = binding.value; }; el._willChangeAuto = function () { const label = el.getElementsByCl...
################################### # File Name : parameter_logger_wraps.py ################################### #!/usr/bin/python3 import time import datetime from functools import wraps def measure_run_time(func): @wraps(func) def wrapper(*args, **kwargs): start = time.time() result = func(*...
from index import dynoxhost
#!/usr/bin/env python2 # Copyright (c) 2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import SDRTTestFramework from test_framework.util import * class SignRawT...
var moment = require("../../index"); exports["America/Guyana"] = { "1915" : function (t) { t.equal(moment("1915-03-01T03:52:39+00:00").tz("America/Guyana").format("HH:mm:ss"), "23:59:59", "1915-03-01T03:52:39+00:00 should be 23:59:59 LMT"); t.equal(moment("1915-03-01T03:52:40+00:00").tz("America/Guyana").format(...
import numpy as np import sys import torch as t import torch.nn as nn import torch.nn.functional as F sys.path.insert(0, '../utils/') #import choice_utils as cu import time import pdb from tqdm import tqdm class Embedding(nn.Module): """ Redefining torch.nn.Embedding (see docs for that function) ...
# https://mw_streams.info from __future__ import print_function import tweepy from tweepy.streaming import StreamListener import json import mongo_connector as mongo class TwitterReader(): def __init__(self, credentials_file_name): self.credentials_file_name = credentials_file_name with open(self...
// 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. /** * @fileoverview * 'settings-people-page' is the settings page containing sign-in settings. */ Polymer({ is: 'os-settings-people-page', behavio...
/* global variables var tileCountX = 2; var tileCountY = 10; var colorsLeft = []; var colorsRight = []; var colors = []; var interpolateShortest = true; */ function colorPaletteSetup() { createCanvas(800, 800); colorMode(HSB); noStroke(); shakeColors(); } function colorPalette() { tileCountX ...
/** * @file Decoder.h * @author Raffaele Montella <raffaele.montella@uniparthenope.it> * @date Wed Nov 30 17:16:48 2016 * * @brief * * */ #pragma once #include <cstdlib> #include <iostream> namespace gvirtus::common { typedef enum { step_A, step_B, step_C } EncodeStep; class Encoder { public: Encoder...
# python3 # Copyright 2021 InstaDeep 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 required by applic...
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Pre-processing fMRI - BOLD signal workflows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. automodule:: fmriprep.workflows.bold.base .. automodule:: fmriprep.workflows.bold.hmc .. automodule:: fmripre...
import base64 import urllib from io import StringIO import ujson from django.conf import settings from zerver.lib.test_classes import ZulipTestCase from zerver.lib.test_helpers import ( create_s3_buckets, get_test_image_file, override_settings, use_s3_backend, ) from zerver.lib.upload import upload_ba...
# Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
/** * Created by zaoyu on 2018/1/30. */ //地图信息的Json数据 let graphData = { //pointID name type enabled isFree coordinateX coordinateY coordinateZ mapID bundled codeID point: [ /*[{'id': 1}, {'coordinate': [10, 10]}, {'type':'haltPoint'},{'name':'站点-1'}], [{'id': 2}, {'coordinate': [50, 50]}, {'ty...
import argparse import torch from tqdm import tqdm, tqdm_gui from constant import * from Transformer.model import Transformer from dataloader import prepare_dataloaders def train_epoch(model, train_data, optim=None, device=None): model.train() total_loss = 0 for batch in tqdm(train_data, mininterval=2, d...
from prompt_toolkit.validation import Validator, ValidationError from prompt_toolkit import prompt from prompt_toolkit.contrib.completers import WordCompleter from enum import Enum class QuestionType(Enum): TEXT = 1 CONFIRM = 2 SECRET = 3 class Question: def __init__(self, type, name, message=None, ...
import numpy as np class MultiArmBandit: def __init__(self, p): if np.any(p < 0) or np.any(p > 1): raise ValueError('values in p must be between 0 and 1') if p.ndim != 1: raise ValueError('number of dimensions of p must be 1 ' '(i.e. must be a v...
import pandas as pd import math import numpy as np import time import imp import pickle import os from os import path from chefboost.commons import functions from chefboost.training import Preprocess, Training from chefboost.tuning import gbm, adaboost, randomforest #from commons import functions #from ...
"use strict"; $(document).ready(function() { function handleError(message) { $("#errorMessage").text(message); $("#domoMessage").animate({width:'toggle'},350); } function sendAjax(action, data) { $.ajax({ cache: false, type: "POST", url: action,...
/** * # Task: Source - Library * * */ import { emptyDirSync } from 'fs-extra' import gulp from 'gulp' const $ = require('gulp-load-plugins')() /** * [description] * @param {[type]} env [description] * @return {[type]} [description] */ export default (env) => { emptyDirSync(env.LIB) return new Promise...
(function (jskom) { // We want to handle unread_texts and no_of_unread differently to be // able to only keep partial lists of unread texts in the future // (i.e unread_texts.length != no_of_unread). var Reader = function($log, $q, textsService, conn) { this._$log = $log; this._$q = $q; this._...
# Copyright 2014, Jeff Buttars, A10 Networks. # # 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 appli...
# -*- coding: utf-8 -*- from biothings.web.api.es.transform import ESResultTransformer import logging class ESResultTransformer(ESResultTransformer): # Add app specific result transformations def _modify_doc(self, doc): for source, val in self.source_metadata[self.options.assembly].items(): ...
/// /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. /// /// Auto-generated by Stone, do not modify. /// #import <Foundation/Foundation.h> #import "DBSerializableProtocol.h" @class DBSHARINGListFileMembersContinueError; @class DBSHARINGSharingFileAccessError; @class DBSHARINGSharingUserError; NS_ASSUME_NON...
/////////////////////////////////////////////////////////////////// // Copyright(c) 2011-, EpicForce Entertainment Limited // // Author : Mac Lin // Module : EpicForceEngine // Date : 19/Aug/2011 // /////////////////////////////////////////////////////////////////// #ifndef _Matrix3_h_ #define _Matrix3_h_ // Matri...
'use strict'; angular.module('roadblocks').controller('RoadblocksUpdateController', ['$scope', 'Roadblocks', 'Notify', function($scope, Roadblocks, Notify ) { // Roadblocks update controller logic $scope.nameOptions = [ {id: '1', opt:'Time Machine'}, {id: '2', opt:'Travel G...
var searchData= [ ['packet_2eh_11097',['packet.h',['../packet_8h.html',1,'']]], ['paf_2ed_11098',['paf.d',['../paf_8d.html',1,'']]], ['pafaudio_2ed_11099',['pafaudio.d',['../pafaudio_8d.html',1,'']]], ['pafvideo_2ed_11100',['pafvideo.d',['../pafvideo_8d.html',1,'']]], ['pamenc_2ed_11101',['pamenc.d',['../pame...
import React, {Component} from 'react'; import { Link } from 'react-router-dom' export default class Header extends Component { render(){ return ( <nav className="blue darken-1"> <div className="nav-wrapper"> <Link to="/" className="brand-logo center">Poke Re...
'use strict'; /** * General-purpose validator for ngModel. * angular.js comes with several built-in validation mechanism for input fields (ngRequired, ngPattern etc.) but using * an arbitrary validation function requires creation of a custom formatters and / or parsers. * The ui-validate directive makes it easy to ...
/** HTML-OBJ functions for JavaScript and node.js @preserve Copyright (c) 2020 Manuel Lõhmus. */ (function(n){function u(n){var t,i,r;if(n&&n.constructor===String){for(t="",i=0;i<n.length;i++){r=n.charCodeAt(i);switch(r){case 9:t+="&emsp;";break;case 10:t+=n.charCodeAt(i-1)===13?"":"<br/>";break;case 13:t+="<br/>";bre...
# Copyright 2011 OpenStack Foundation # 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 requ...
from fastapi_sqlalchemy.middleware import DBSessionMiddleware, db __all__ = ["db", "DBSessionMiddleware"] __version__ = "0.1.2"
from timeit import timeit def make_list_1(): result = [] for value in range(1000): result.append(value) return result def make_list_2(): result = [value for value in range(1000)] return result print('make_list_1 takes', timeit(make_list_1, number=1000), ' seconds') print('make_list_2 take...
import gzip import json import os import sys from collections import OrderedDict from io import BytesIO import requests sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib")) from splunklib.searchcommands import Configuration, EventingCommand, Option, dispatch, validators # isort:skip from sfx_ut...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:45:07 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/BaseBoardUI.framework/BaseBoardUI * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by ...
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 Steve Nygard. // #import "APLegacyMetricRequester.h" @class APPBClickLocation; @interface APLogSysEventRequester : APLegacyMetricRequester { int _eventType; /...
/* @flow */ import type { Bytes } from "./index"; type i32 = number; export function structBytes(hi: i32): Bytes { return { data: ((hi & 0x0000ffff) << 3) >>> 0, pointers: (hi & 0xffff0000) >>> 13, }; } export function structHi(bytes: Bytes): i32 { return (bytes.pointers << 13) | (bytes.data >>> 3); }...
from django.db.models import QuerySet, Manager, Q class EntriesQuerySet(QuerySet): def only_published(self): return self.filter(Q(published=True) & Q(defunct=False)) def for_author(self, handle): return self.filter(author__handle=handle) def with_tags(self, tags): return self.filter...
var class_c_i___d_b__oci8__driver = [ [ "__construct", "class_c_i___d_b__oci8__driver.html#a9162320adff1a1a4afd7f2372f753a3e", null ], [ "_bind_params", "class_c_i___d_b__oci8__driver.html#a66b8b06dadf7ff16c3877d5c024f5d2b", null ], [ "_close", "class_c_i___d_b__oci8__driver.html#a4d9082658000e5ede8312067c6...
import React from "react" import Layout from "../components/Layout" const Contact = () => ( <Layout> <h1>Contact</h1> </Layout> ) export default Contact
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
from __future__ import division, absolute_import, print_function import warnings import numpy.core.numeric as _nx from numpy.core.numeric import ( asarray, zeros, outer, concatenate, array, asanyarray ) from numpy.core.fromnumeric import product, reshape, transpose from numpy.core.multiarray import normalize_...
#!/usr/bin/env python #------------------------------------------------------------------------------- # Name: check_true_false # Purpose: Main entry into logic program. Reads input files, creates # base, tests statement, and generates result file. # # Created: 09/25/2011 # Last Edited: 07...
# -*- coding: utf-8 -*- from test.test_support import ( verbose, run_unittest, import_module, precisionbigmemtest, _2G, cpython_only, captured_stdout, have_unicode, requires_unicode, u, check_warnings) import locale import re from re import Scanner import sre_constants import sys import string import tr...
# Generated by Django 3.0.7 on 2020-06-08 07:55 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Torrents', '0009_auto_20200608_0754'), ] operations = [ migrations.RenameField( model_name='likes', old_name='post_id', ...
import os import sys import logging from app import BOT from app.database import db_connect from app.tasks.tasks import start_tasks if __name__ == "__main__": logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s" ) # Establish a connection...
from .theloop import TheLoop
#include <iostream> #include "item.h" #ifndef ITEMCARNAVAL_H #define ITEMCARNAVAL_H using namespace std; class ItemCarnaval : public Item { public: ItemCarnaval (string, double, string); virtual void print (); private: string supermercado; }; #endif
from django.contrib.syndication.views import Feed from django.template.defaultfilters import truncatewords from .models import Post class LatestPostsFeed(Feed): title = "Demo Blog" link = "127.0.0.1:8000" desccription = "New posts of demo blog" def items(self): return Post.objects.filter(statu...
# Juggling Algorithm for Cyclic Shifting import sys def gcd(m, n): if(n == 0): return m else: return gcd(n, m%n) def cyclically_shift(array, no, shift_no): gcd_no = gcd(no, shift_no) for i in range(0, gcd_no, 1): j = i temp = array[j] while(1): k = ...
const core = require('@actions/core'); const aws = require('aws-sdk'); const assert = require('assert'); // The max time that a GitHub action is allowed to run is 6 hours. // That seems like a reasonable default to use if no role duration is defined. const MAX_ACTION_RUNTIME = 6 * 3600; const USER_AGENT = 'configure-a...
/** * @fileoverview Regression test to ensure local type symbols can be exported. * Generated from: test_files/export_local_type/export_local_type.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ goog.module('test_files.export...
const stylus = require('stylus'); const path = require('path'); const nodes = stylus.nodes; module.exports = function() { return function(style) { style.define('exists', function(file) { return !!stylus.utils.lookup(file.string, this.paths); }); style.define('__dirname', functi...
$(document).ready(function(event) { $( "p" ).hide( 2500 ); $("h1").fadeOut(2500); });
# This function is used to collect the metadata of the GSV panoramas based # on the sample point shapefile # Copyright(C) Xiaojiang Li, Ian Seiferling, Marwa Abdulhai, Senseable # City Lab, MIT import urllib.request import urllib.parse import urllib.error import urllib.request import urllib.error import urllib.parse ...
//===- ARC.h - Top-level interface for ARC representation -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
(function($){ document.getElementById("set_height").style.height = $(window).height()-70; var getUrl = window.location; var baseUrl = getUrl .protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1]; $(".bucket_filter").change(function(e) { event.preventDefault(); selectcellmachine(); }); $('...
""" The :mod:`sklearn.model_selection._search` includes utilities to fine-tune the parameters of an estimator. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # Olivier Grisel <olivier....
// COCOA class header file //Id: OptOCameraDetector.h //CAT: Model // // Base class to describe Optical Objects of type sensor 2D // // History: v1.0 // Pedro Arce #ifndef _OPTOCAMERADETECTOR_HH #define _OPTOCAMERADETECTOR_HH #include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" #include "Alignment/Co...