text
stringlengths
3
1.05M
package org.openqa.selenium; import org.openqa.selenium.interactions.HasInputDevices; import org.openqa.selenium.interactions.HasTouchScreen; import org.openqa.selenium.interactions.Keyboard; import org.openqa.selenium.interactions.Mouse; import org.openqa.selenium.interactions.TouchScreen; import org.openqa.selenium....
namespace Microsoft.Azure.Management.DevTestLabs.Models { using System; using System.Linq; using System.Collections.Generic; using Newtonsoft.Json; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Microsoft.Rest.Azure; /// <summary> /// Profile of a lab user. /// ...
#ifndef NPCallbacksBlackBerry_h #define NPCallbacksBlackBerry_h #include "PluginView.h" #include <pthread.h> namespace WebCore { struct PthreadMutexLocker { PthreadMutexLocker(pthread_mutex_t*); ~PthreadMutexLocker(); pthread_mutex_t* m_mutex; }; struct PthreadReadLocker { PthreadReadLocker(pthre...
using System.Collections.Generic; using System.IO; using System.Text; using System.Diagnostics.Contracts; using System; // Disable the "this variable is not used" warning as every field would imply it. #pragma warning disable 0414 // Disable the "this variable is never assigned to". #pragma warning disable 0067 // Dis...
package org.scalatest.concurrent /** * Concept trait for futures, instances of which are passed to the <code>whenReady</code> * methods of trait <code>WhenReady</code>. * * @author Bill Venners */ trait FutureConcept[T] { /** * Queries this future for its value. * * <p> * If the future is not rea...
function TestCreateString(n) { var l = n * 1; var r = 'r'; while (r.length < n) { r = r + r; } return r; } assertEquals("r", TestCreateString(1)); assertEquals("rr", TestCreateString(2)); assertEquals("rrrr", TestCreateString(3)); assertEquals("rrrrrrrr", TestCreateString(6));
namespace base { namespace { enum ParsingState { KEY_NAME, KEY_VALUE }; // Read /proc/<pid>/status and returns the value for |field|, or 0 on failure. // Only works for fields in the form of "Field: value kB". size_t ReadProcStatusAndGetFieldAsSizeT(pid_t pid, const std::string& field) { FilePath stat_file = i...
TriangleFilterBank32 *TriangleFilterBank32_new(size_t filterCount, size_t magnitudeFrameSize, size_t samplerate) { TriangleFilterBank32 *self = calloc(1, sizeof(TriangleFilterBank32)); self->filterCount = filterCount; self->filterFrequencyCount = filterCount + 2; self->magnitudeFrameSize = magnitudeFram...
using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; namespace KNXLib { internal class KnxSenderRouting : KnxSender { private readonly IList<UdpClient> _udpClients; private readonly IPEndPoint _remoteEndpoint; internal KnxSenderRoutin...
namespace { // This constant yields the version of the CRX that has been extracted into // the test data directory, and must be kept in sync with what is there. // A reciprocal comment has been placed in // chrome/test/data/cld2_component/README.chromium; don't update one without // updating the other. const base::File...
// CTK includes #include "ctkWorkflowButtonBoxWidgetPlugin.h" #include "ctkWorkflowButtonBoxWidget.h" //----------------------------------------------------------------------------- ctkWorkflowButtonBoxWidgetPlugin::ctkWorkflowButtonBoxWidgetPlugin(QObject *newParent) : QObject(newParent) { } //-----------...
//----------------------------------------------------------------------- // <copyright file="LoggingOperations.cs" company="Microsoft"> // Copyright 2011 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.Text; namespace Microsoft.VisualStudio.LanguageServices.Imple...
#include "SkNinePatch.h" #include "SkCanvas.h" #include "SkShader.h" static const uint16_t g3x3Indices[] = { 0, 5, 1, 0, 4, 5, 1, 6, 2, 1, 5, 6, 2, 7, 3, 2, 6, 7, 4, 9, 5, 4, 8, 9, 5, 10, 6, 5, 9, 10, 6, 11, 7, 6, 10, 11, 8, 13, 9, 8, 12, 13, 9, 14, 10, 9, 13, 1...
<!DOCTYPE html> <html lang="en-us" dir="ltr" itemscope itemtype="http://schema.org/Article"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Minions</title> <meta name="author" conte...
package org.apache.camel.component.mail; import java.util.Properties; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.internet.MimeMessage; /** * The JavaMailSender interface contains all the methods of a JavaMailSender * implementation currently used by the mail component. */ ...
.yui3-slider, .yui3-slider-rail { /* xbrowser inline-block styles */ display: -moz-inline-stack; /* FF2 */ display: inline-block; *display: inline; /* IE 7- (with zoom) */ zoom: 1; vertical-align: middle; } .yui3-slider-content { position: relative; display: block; } .yui3-slider-rail...
module Fastlane module Helper class PodspecHelper attr_accessor :path attr_accessor :podspec_content attr_accessor :version_regex attr_accessor :version_match attr_accessor :version_value def initialize(path = nil) version_var_name = 'version' @version_regex = ...
using System; /// <summary> ///System.Array.IndexOf<T>(T[], T) /// </summary> public class ArrayIndexOf2 { #region Public Methods public bool RunTests() { bool retVal = true; TestLibrary.TestFramework.LogInformation("[Positive]"); retVal = PosTest1() && retVal; retVal = Po...
Stopwatch Component =================== The Stopwatch component provides a way to profile code. Resources --------- * [Documentation](https://symfony.com/doc/current/components/stopwatch.html) * [Contributing](https://symfony.com/doc/current/contributing/index.html) * [Report issues](https://github.com/symfony...
package ch.javasoft.jbase; /** * A <code>FixedWidthMarshaller</code> is an extension of an * entity marshaller where the row width is known, i.e. all * entity instances need the same amount of storage to be * persisted * * @param <E> The entity type */ public interface FixedWidthMarshaller<E> extends EntityMar...
<?php class Kwf_Assets_KwfUtils_Test extends Kwf_Test_TestCase { public function testDeps() { $l = new Kwf_Assets_KwfUtils_TestProviderList(); $d = $l->findDependency('Kwf.Assets.KwfUtils.Test'); foreach ($d->getRecursiveFiles() as $i) { $array[] = $i->getFileNameWithType(); ...
package org.apache.ignite.cache.hibernate; import java.util.Set; import org.apache.ignite.Ignite; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.IgniteException; import org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxLocal; import org.apache.ignite.internal.util.Grid...
using browser_sync::BookmarkDataTypeController; using browser_sync::ChangeProcessorMock; using browser_sync::DataTypeController; using browser_sync::ModelAssociatorMock; using testing::_; using testing::DoAll; using testing::InvokeWithoutArgs; using testing::Return; using testing::SetArgumentPointee; class StartCallba...
/* This file intentionally left blank */
require File.expand_path('../../../spec_helper', __FILE__) describe "Symbol#upcase" do it "returns a Symbol" do :glark.upcase.should be_an_instance_of(Symbol) end it "converts lowercase ASCII characters to their uppercase equivalents" do :lOwEr.upcase.should == :LOWER end it "leaves lowercase Unico...
<button type="button" ng-click="vm.openFilter()">Open filter</button> <div ng-if="vm.isOpen"> <button type="button" ng-click="vm.closeFilter()">Close filter</button> <div ng-transclude></div> </div>
<?php require 'vendor/autoload.php'; use Aws\S3\S3Client; use Aws\Exception\AwsException; /** * Put bucket cors * * This code expects that you have AWS credentials set up per: * http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/credentials.html */ $bucketName = 'BUCKET_NAME'; $client = new S3Client([ ...
<?php namespace Sylius\Bundle\CoreBundle\EmailManager; use Sylius\Bundle\CoreBundle\Mailer\Emails; use Sylius\Component\Mailer\Sender\SenderInterface; use Sylius\Component\Shipping\Model\ShipmentInterface; /** * Sends the shipment confirmation email. * * @author Hussein Jafferjee <hussein@jafferjee.ca> */ clas...
/*jslint white: true, browser: true, plusplus: true, indent: 4, maxerr: 50 */ var Handsontable = { //class namespace plugins: {}, //plugin namespace helper: {} //helper namespace }; (function ($, window, Handsontable) { "use strict"; //http://stackoverflow.com/questions/3629183/why-doesnt-indexof-work-on-an-ar...
using System; namespace com.celigo.net.ServiceManager.SuiteTalk { public partial class SearchColumnMultiSelectCustomField : ISupportSearchValue< ListOrRecordRef[] >, ISupportReferenceSearchValue< IReference[] > { public ListOrRecordRef[] GetSearchValue() { return this.searchValue; } ...
ARG version=20.04 FROM ubuntu:$version ARG DEBIAN_FRONTEND=noninteractive # hadolint ignore=DL3008 RUN apt-get update \ && apt-get install -y --no-install-recommends software-properties-common \ && add-apt-repository -y ppa:git-core/ppa \ && apt-get update \ && apt-get install -y --no-install-recommends \ ...
// Copyright 2011 the V8 project authors. 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 ...
/** * @author Mat Groves http://matgroves.com/ @Doormat23 */ /** * A RenderTexture is a special texture that allows any Pixi display object to be rendered to it. * * __Hint__: All DisplayObjects (i.e. Sprites) that render to a RenderTexture should be preloaded otherwise black rectangles will be drawn instead. * ...
! Check that parameters are correct intercepted. ! Constants with comma separations are commonly ! used, for instance Pi = 3._dp subroutine foo_single(x) implicit none integer, parameter :: rp = selected_real_kind(6) real(rp), intent(inout) :: x dimension x(3) real(rp), parameter :: three = 3._rp x(1) = x(1...
/* * The following is auto-generated. Do not manually edit. See scripts/loops.js. */ #include "stdlib/strided/base/nullary/f_as_b.h" #include "stdlib/strided/base/nullary/macros.h" #include <stdint.h> /** * Applies a nullary callback and assigns results to elements in a strided output array. * * @param arrays arr...
An Azure-hosted version of Hello World. Runs an Orleans silo in an Azure worker role, and an Azure web role acting as a client talking to the HelloWorld grain in the silo. The sample is configured to run inside of the Azure Compute Emulator on your desktop by default. More info about this sample is available here: h...
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in J. C. M. Grenier & D. A. Godron, Fl. France 1:216. 1847 #### Original name null ### Remarks null
package bamboo.crawl; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.skife.jdbi.v2.StatementContext; import org.skife.jdbi.v2.sqlobject.Bind; import org.skife.jdbi.v2.sqlobject.BindBean; import org.skife.jdbi.v2.sqlobject.GetGeneratedKeys; import org.skife.jdbi.v2.sqlobject...
export interface IWebpackPrerender { templatePath: string; configPath: string; appPath: string; } export class PrerenderWebpackPlugin { private bootloader: any; private cachedTemplate: string; constructor(private options: IWebpackPrerender) { // maintain your platform instance this.bootloader = r...
#ifndef TEST_WEBM_VIDEO_SOURCE_H_ #define TEST_WEBM_VIDEO_SOURCE_H_ #include <cstdarg> #include <cstdio> #include <cstdlib> #include <new> #include <string> #include "../tools_common.h" #include "../webmdec.h" #include "test/video_source.h" namespace libvpx_test { // This class extends VideoSource to allow parsing o...
package org.apache.beam.sdk.transforms; import static org.apache.beam.sdk.testing.CombineFnTester.testCombineFn; import static org.apache.beam.sdk.transforms.display.DisplayDataMatchers.hasDisplayItem; import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.assertEquals; import org.apache...
"""Tests for mongodb backend Authors: * Min RK """ #------------------------------------------------------------------------------- # Copyright (C) 2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this softwar...
package com.amazonaws.auth; /** * Interface for providing AWS credentials. Implementations are free to use any * strategy for providing AWS credentials, such as simply providing static * credentials that don't change, or more complicated implementations, such as * integrating with existing key management systems....
package com.google.security.zynamics.binnavi.ZyGraph.Builders; /** * Events issued while the visible graph of a view is built. */ public enum GraphBuilderEvents { /** * Signals that building has started. */ Started, /** * Signals that the graph was initialized. */ InitializedGraph, /** * ...
using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.AspNetCore.Hosting; using MediatR; using SimplCommerce.Infrastructure.Modules; using SimplCommerce.Module.Core.Events; using SimplCommerce.Module.ProductRecentlyViewed.Data; using SimplCommerce.Module.ProductRecentlyVie...
title: What You Don't Need Plugins For --- Most third-party functionality you want to add to your website will follow standard JavaScript and React.js patterns for importing packages and composing UIs. These do not require a Gatsby plugin! Some examples: - Importing JavaScript packages that provide general functiona...
function [mri, hdr] = read_ctf_mri(filename); % READ_CTF_MRI reads header and image data from a CTF version 2.2 MRI file % % Use as % [mri, hdr] = read_ctf_mri(filename) % % See also READ_CTF_MRI4 % Copyright (C) 2003-2010 Robert Oostenveld % % This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fiel...
import Mixin from '@ember/object/mixin'; import { get, computed } from '@ember/object'; import { htmlSafe } from '@ember/string'; export default Mixin.create({ getNotifierById(id) { if (!id) { return null; } const notifiers = get(this, 'notifiers'); return notifiers.filterBy('id', id).get('fir...
package request import ( "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" ) // Retryer is an interface to control retry logic for a given service. // The default implementation used by most services is the service.DefaultRetryer // structure, which contains basic retry logic using exp...
package common import ( "context" "fmt" "strconv" "sync" "time" autoscalingv1 "k8s.io/api/autoscaling/v1" "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/apimachinery/pkg/util/wait" clientset "k8s.i...
package cmd_test import ( "fmt" "io" "io/ioutil" "os" "reflect" "strings" "testing" "time" "github.com/pilosa/pilosa/cmd" "github.com/spf13/cobra" ) // failErr calls t.Fatal if err != nil and adds the optional context to the // error message. func failErr(t *testing.T, err error, context ...string) { ctx...
from __future__ import print_function, division from sympy.core import S, Basic, Dict, Symbol, Tuple from sympy.core.compatibility import range, iterable from sympy.sets import Set, FiniteSet, EmptySet class Class(Set): r""" The base class for any kind of class in the set-theoretic sense. In axiomatic s...
var requestsTransport = require('../transports/request').requestTransport; var isString = require('lodash').isString; var isObject = require('lodash').isObject; var noop = require('lodash').noop; /** * * @param {String} slackUrl * @param {object?} defaults * @param {string} defaults.username The default username t...
/*! Lazy Load XT v0.8.8 2013-12-26 * http://ressio.github.io/lazy-load-xt * (C) 2013 RESS.io * Licensed under MIT */ (function ($) { var options = $.lazyLoadXT; options.forceEvent += ' lazyloadall'; options.autoLoad = options.autoLoad || 50; $(document).ready(function () { setTimeout(funct...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <!-- Rich Media Ad Tag Platform: Smaato RM Type: MRAID Ad Format: Interstitial --> ...
package org.kasource.di.bean; /** * Exception thrown by BeanResolver if no bean can be resolved. * * @author rikardwi */ public class BeanNotFoundException extends RuntimeException { private static final long serialVersionUID = 1L; /** * Constructor. * * @param message Error message ...
using System; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { [JsonConverter(typeof(SalesforceObjectDatasetConverter))] public partial class SalesforceObjectDataset : IUtf8JsonSerializable ...
var Cookie = require('../vendor/cookie') , Jar = require('../vendor/cookie/jar') , assert = require('assert'); function expires(ms) { return new Date(Date.now() + ms).toUTCString(); } // test .get() expiration (function() { var jar = new Jar; var cookie = new Cookie('sid=1234; path=/; expires=' + expires(10...
/** * @fileoverview Require spaces around infix operators * @author Michael Ficarra */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { ...
using System; using System.Xml.Serialization; using Microsoft.Win32; using System.IO; using System.Xml; using System.Collections.Generic; namespace OfficialPlugins.FrbdkUpdater { #region RelativeType enum public enum RelativeType { Relative, Absolute } #endregion [XmlRoot("...
var _checkForMethod = require('./internal/_checkForMethod'); var _curry2 = require('./internal/_curry2'); var reduceBy = require('./reduceBy'); /** * Splits a list into sub-lists stored in an object, based on the result of * calling a String-returning function on each element, and grouping the * results according t...
GitLab 5.1 is affected by critical security vulnerability CVE-2013-4490. ## Release notes - `unicorn` replaced with `puma` - merge request cached diff will be truncated ## 1. Stop server sudo service gitlab stop ## 2. Get latest code ```bash cd /home/git/gitlab sudo -u git -H git fetch sudo -u git -H git chec...
<?php namespace Gedmo\Exception; use Gedmo\Exception; /** * UploadableInvalidPathException * * @author Gustavo Falco <comfortablynumb84@gmail.com> * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com> * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ class UploadableInv...
define([ 'utils', 'convertToIIFE', 'convertToIIFEDeclaration', 'defaultValues', 'normalizeModuleName', 'defaultValues' ], function( utils, convertToIIFE, convertToIIFEDeclaration, defaultValues, normalizeModuleName, defaultValues ) { return function convertToFunctionExpression(obj) { var a...
package com.fsck.k9.mail; import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; public class AddressTest { /** * test the possibility to parse "From:" fields with...
<?php /* * This file is part of the Silex framework. * * (c) Fabien Potencier <fabien@symfony.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Silex\Tests\Provider; use Silex\Application; use Silex\Provider\TranslationServiceProv...
namespace swift { class AliasAnalysis; } // end namespace swift //===----------------------------------------------------------------------===// // Ref Count State //===----------------------------------------------------------------------===// namespace swift { /// A struct that abstrac...
package org.apache.camel.component.ical.springboot; import javax.annotation.Generated; import org.apache.camel.spring.boot.DataFormatConfigurationPropertiesCommon; import org.springframework.boot.context.properties.ConfigurationProperties; /** * The iCal dataformat is used for working with iCalendar messages. * ...
FROM balenalib/beagleboard-xm-fedora:35-build ENV GO_VERSION 1.17.7 RUN mkdir -p /usr/local/go \ && curl -SLO "http://resin-packages.s3.amazonaws.com/golang/v$GO_VERSION/go$GO_VERSION.linux-armv7hf.tar.gz" \ && echo "e4f33e7e78f96024d30ff6bf8d2b86329fc04df1b411a8bd30a82dbe60f408ba go$GO_VERSION.linux-armv7hf.tar.g...
var ZeroClipboard = { version: "1.0.7", clients: {}, // registered upload clients on page, indexed by id moviePath: '/flash/ZeroClipboard.swf', // URL to movie nextId: 1, // ID of next movie $: function(thingy) { // simple DOM lookup utility function if (typeof(thingy) == 'string') thingy = document.getEle...
<?php require_once('../../config.php'); require_once('lib.php'); require_login(); $strapplications = get_string('applications', 'local_applications'); $strdeleteapplication = get_string('delete-application', 'local_applications'); $id = required_param('id', PARAM_INT); // application id $PAGE->set_url('/local/app...
/* line 3, ../../app/stylesheets/home_page.scss */ ol#interesting_items-list { text-align: left; padding-left: 0px; } /* line 7, ../../app/stylesheets/home_page.scss */ ol#interesting_items-list li { padding: 12px; display: inline-block; border-right: 1px solid #DFDFDF; height: 100%; } /* line 13, ../../app...
namespace content { namespace { void SuccessCollectorCallback(const base::Closure& done_closure, bool* overall_success, ServiceWorkerStatusCode status) { if (status != ServiceWorkerStatusCode::SERVICE_WORKER_OK) { *overall_success = false; } done_cl...
from __future__ import unicode_literals import datetime import re from decimal import Decimal from django.core.exceptions import FieldError from django.db import connection from django.db.models import ( F, Aggregate, Avg, Count, DecimalField, DurationField, FloatField, Func, IntegerField, Max, Min, Sum, Valu...
try: # As long as we're using setuptools/distribute, we need to do this the # setuptools way or else pkg_resources will throw up unncessary and # annoying warnings (even though the namespace mechanism will still # otherwise work without it). # Get rid of this as soon as setuptools/distribute is dead...
/** * Created by nicholas.ball on 03/10/2016. */ //Set up an event listener var e1 = document.getElementById("inputButton"); e1.addEventListener("click", function() { var name = document.getElementById("yourInput").value; document.getElementById("reply1").innerHTML = "My name is " + name +"!"; });
package netexec import ( "encoding/json" "fmt" "io" "io/ioutil" "log" "net" "net/http" "net/url" "os" "os/exec" "strconv" "strings" "sync/atomic" "time" "github.com/spf13/cobra" utilnet "k8s.io/apimachinery/pkg/util/net" ) var ( httpPort = 8080 udpPort = 8081 shellPath = "/bin/sh" ser...
if (!Elm.fullscreen) { (function() { 'use strict'; var Display = { FULLSCREEN: 0, COMPONENT: 1, NONE: 2 }; Elm.fullscreen = function(module, args) { var container = document.createElement('div'); document.body.appendChild(container); return init(Display.FULLSCREEN, container, module, args...
package com.fionapet.business.consumer; import com.alibaba.fastjson.JSON; import com.fionapet.business.entity.MedicChemicalExamtypeDetail; import com.fionapet.business.service.MedicChemicalExamtypeDetailService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.List; /** * Created by tom on ...
// flow-typed signature: 17ceeccdbb293c95d34e3d38ebb5398e // flow-typed version: <<STUB>>/webpack-merge_v^1.1.2/flow_v0.37.1 /** * This is an autogenerated libdef stub for: * * 'webpack-merge' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work wit...
<Record> <Term>Borderline Leprosy</Term> <SemanticType>Disease or Syndrome</SemanticType> <ParentTerm>Leprosy, Paucibacillary</ParentTerm> <ClassificationPath>Bacterial Infections and Mycoses/Bacterial Infections/Gram-Positive Bacterial Infections/Actinomycetales Infections/Mycobacterium Infections/Leprosy/Leprosy,...
<?php namespace ZfcUser\Authentication\Adapter; use Zend\Authentication\Storage; abstract class AbstractAdapter implements ChainableAdapter { /** * * @var Storage\StorageInterface */ protected $storage; /** * Returns the persistent storage handler * * Sessi...
define(['./unique', './filter', './contains'], function (unique, filter, contains) { /** * Exclusive OR. Returns items that are present in a single array. * - like ptyhon's `symmetric_difference` */ function xor(arr1, arr2) { arr1 = unique(arr1); arr2 = unique(arr2); va...
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Inpu...
FROM balenalib/jetson-tx1-fedora:33-build ENV NODE_VERSION 12.22.9 ENV YARN_VERSION 1.22.4 RUN for key in \ 6A010C5166006599AA17F08146C2130DFD2497F5 \ ; do \ gpg --keyserver pgp.mit.edu --recv-keys "$key" || \ gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \ gpg --keyserver keyserver.ubuntu.com --rec...
layout: post title: aloft date: 2015-10-07 01:56:33 summary: categories: drawing --- ![aloft](/images/diary/aloft.png "I am tooooooo lazy.")
package com.marshalchen.common.uimodule.passcodelock; import android.app.Activity; import android.os.Bundle; import android.text.InputFilter; import android.text.InputType; import android.text.Spanned; import android.text.method.PasswordTransformationMethod; import android.view.Gravity; import android.view.MotionEvent...
package org.apache.camel.example.rest; import java.util.Collection; import java.util.Map; import java.util.Random; import java.util.TreeMap; /** * A {@link org.apache.camel.example.rest.User} service which we rest enable the routes defined in the XML file. */ public class UserService { // use a tree map so th...
import logging from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms from horizon import messages from horizon.utils import fields from openstack_dashboard import api LOG = logging.getLogger(__name__) class Up...
class Base { constructor(c) { } } class D extends Base { private _t; constructor() { let x = () => { this._t }; x(); // no error; we only check super is called before this when the container is a constructor this._t; // error super(undefined); } }
module Sniffer module Adapters # HTTP adapter module HTTPAdapter # private # rubocop:disable Metrics/AbcSize, Metrics/MethodLength def request_with_sniffer(verb, uri, opts = {}) opts = @default_options.merge(opts) uri = make_request_uri(uri, opts) headers = ma...
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. Imports System.Threading Imports Microsoft.CodeAnalysis.Completion.Providers Imports Microsoft.CodeAnalysis.VisualBasic.Extensions.ContextQuery Namespace Micr...
@implementation JBStatusItemView - (id)initWithFrame:(NSRect)frame { self = [super initWithFrame:frame]; if (self) { //register for drags [self registerForDraggedTypes:[NSArray arrayWithObjects: NSURLPboardType, nil]]; // // NSNotificationCenter *distributed...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // </copyright> // <summary>Structure which includes the success or failures of the IBuildEngine build and the target outputs.</summary> //-----------------------------...
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_pa...
<?php /** * ZH-Revision: 09.Nov.2012 */ return array( // Zend_I18n_Validator_Alnum "Invalid type given. String, integer or float expected" => "请输入一个整数或小数", "The input contains characters which are non alphabetic and no digits" => "输入不能为字母数字以外的字符", "The input is an empty string" => "输入不能为空", // ...
<?php namespace Zend\Form; use ArrayAccess; use Traversable; use Zend\InputFilter\Factory as InputFilterFactory; use Zend\InputFilter\InputFilterInterface; use Zend\Stdlib\ArrayUtils; use Zend\Stdlib\Hydrator; class Factory { /** * @var InputFilterFactory */ protected $inputFilterFactory; /**...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...