text
stringlengths
3
1.05M
function ClientError() { var args = Array.prototype.slice.call(arguments); switch (args.length) { case 0: this.code = 'BADREQUEST'; this.message = 'Bad request'; break; case 1: this.code = 'BADREQUEST'; this.message = args[0]; break; default: case 2: this.c...
package org.rlcommunity.rlglue.codec.tests; import org.rlcommunity.rlglue.codec.EnvironmentInterface; import org.rlcommunity.rlglue.codec.util.EnvironmentLoader; import org.rlcommunity.rlglue.codec.types.Action; import org.rlcommunity.rlglue.codec.types.Observation; import org.rlcommunity.rlglue.codec.types.Reward_ob...
const fetch = require("node-fetch"); exports.names = ["define"]; exports.hidden = false; exports.enabled = true; exports.cdAll = 10; exports.cdUser = 30; exports.cdStaff = 10; exports.minRole = PERMISSIONS.NONE; exports.handler = function (data) { var input = _.rest(data.text.split(" "), 1).join(" ").trim(); if (...
import os import sys import argparse import re import platform import util import git # Google's cpplint.py from depot_tools is the linter used here. CPP_LINTER_RULES = ''' build/class build/deprecated build/endif_comment build/forward_decl build/include_order build/printf_format build/storage_class legal/copyright r...
<?php namespace Zend\Mvc\View\Console; use ArrayAccess; use Zend\Mvc\MvcEvent; use Zend\Mvc\View\Http\ViewManager as BaseViewManager; /** * Prepares the view layer for console applications */ class ViewManager extends BaseViewManager { /** * Prepares the view layer * * Overriding, as several op...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery UI Button Demos</title> </head> <body> <ul> <li><a href="default.html">Default functionality</a></li> <li><a href="icons.html">Icons</a></li> </ul> </body> </html>
// Copyright 2008 The Closure Library 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 requ...
#include <sys/epoll.h> typedef struct aeApiState { int epfd; struct epoll_event *events; } aeApiState; static int aeApiCreate(aeEventLoop *eventLoop) { aeApiState *state = zmalloc(sizeof(aeApiState)); if (!state) return -1; state->events = zmalloc(sizeof(struct epoll_event)*eventLoop->setsize)...
using Newtonsoft.Json; namespace WatsonServices.Models.VisualRecognition { public class ClassifyResponse { [JsonProperty("images", NullValueHandling = NullValueHandling.Ignore)] public Image[] Images { get; set; } [JsonProperty("images_processed", NullValueHandling = NullValueHandling....
import React from 'react'; import { Step, Stepper, StepButton, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Non-linear steppers allow users to enter a multi-step flow at any point. * * This example is similar to the r...
package framework import ( "bytes" "fmt" "math" "sort" "strconv" "strings" "sync" "text/tabwriter" "time" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/kubernetes/pkg/client/clientset_generated/clientset" "k8s.io/kubernetes/pkg/util/system" ) ...
<?php /** * Edit Term Administration Screen. * * @package WordPress * @subpackage Administration * @since 4.5.0 */ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( empty( $_REQUEST['tag_ID'] ) ) { $sendback = admin_url( 'edit-tags.php' ); if ( ! empty( $taxnow...
<?php declare(strict_types=1); namespace PHPUnit\Runner; use SebastianBergmann\Version as VersionId; /** * This class defines the current version of PHPUnit. */ class Version { private static $pharVersion; private static $version; /** * Returns the current version of PHPUnit. * * @retu...
REMOTEM=angstrom@eu.feeds.angstrom-distribution.org # Feed dir we want to upload to REMOTED=website/feeds/2011.03/ipk/$(basename $PWD) # create upload dir mkdir -p upload-queue || true # Find and delete morgue dirs, we don't need them echo "Deleting morgue directories" find ipk/ -name "morgue" -exec rm -rf \{\} \; ...
using System; namespace UnityEngine.PostProcessing { [Serializable] public class GrainModel : PostProcessingModel { [Serializable] public struct Settings { [Tooltip("Enable the use of colored grain.")] public bool colored; [Range(0f,...
namespace { class MaybeTestDisabler : public testing::EmptyTestEventListener { public: virtual void OnTestStart(const testing::TestInfo& test_info) OVERRIDE { ASSERT_FALSE(TestSuite::IsMarkedMaybe(test_info)) << "Probably the OS #ifdefs don't include all of the necessary " "platforms.\nPlease...
package org.apache.pig.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintStream; import java.util.Iterator; import java.util.List; import java.util.Properties; import org...
#ifndef __PUSHREADER_H__ #define __PUSHREADER_H__ #ifdef __cplusplus extern "C" { #endif struct PushReader *OpenPushReader(const char *filename, URLProtocol *private_protocol, unsigned long option ); // 0 none // 1 mpeg1 // 2 mpeg2 // 3 divx3 // 4 mpeg4 // 5 mpeg4flash // 8 vc1 // 9 wmv9 // 10 h264 // -1 unsupp...
-- SQL script for creating the database tables -- Authors: Tomas Meszaros, David Molnar -- Date: 2011-11-01 -- Encoding: UTF-8 -- ------------------------------------ USE `xmolna02`; DROP TABLE IF EXISTS `Ucebna`; CREATE TABLE IF NOT EXISTS `Ucebna` ( `id_miest` CHAR(4) NOT NULL, `typ_miest` VARCHAR(30) NOT NULL...
package org.keycloak.dom.saml.v2.protocol; import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * <p> * Java class for AssertionIDRequestType complex type. * * <p> * The following schema fragment specifies the expected content conta...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_20) on Wed Sep 01 18:11:09 CEST 2010 --> <TITLE> Uses of Package com.rambris </TITLE> <META NAME="date" CONTENT="2010-09-01"> <LINK REL ="styleshee...
namespace eja { // Component class version_component final : public component { make_factory(version_component); private: enum number : size_t { major, minor, patch, tag }; size_t m_major = 0; size_t m_minor = 0; size_t m_patch = 0; public: version_component() { } version_component(const versio...
package org.apache.sling.testing.mock.osgi; import java.util.Dictionary; import java.util.Hashtable; import org.osgi.framework.Constants; import org.osgi.service.cm.Configuration; /** * Mock implementation of {@link Configuration}. */ class MockConfiguration implements Configuration { private final Strin...
package ber import ( "bytes" "io" "math" "testing" ) func TestReadLength(t *testing.T) { testcases := map[string]struct { Data []byte ExpectedLength int ExpectedBytesRead int ExpectedError string }{ "empty": { Data: []byte{}, ExpectedBytesRead: 0, ExpectedError: io.Er...
import { copy, noCopy } from 'quiver-object' const configNormalized = Symbol('ConfigNormalized') const handlerMap = Symbol('handlerMap') const bundleMap = Symbol('bundleMap') const initTable = Symbol('initTable') export const globalConfig = config => { if(!config.global) { config.global = noCopy({}) } retu...
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'support/strip' require 'rails5/spec_converter' require 'rails5/spec_converter/test_type_identifier' require 'rails5/spec_converter/text_transformer' require 'rails5/spec_converter/text_transformer_options'
import Ember from 'ember'; import Application from '../../app'; import config from '../../config/environment'; export default function startApp(attrs) { var application; var attributes = Ember.merge({}, config.APP); attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; Ember.r...
NSString *const kGPUImageStretchDistortionFragmentShaderString = SHADER_STRING ( varying highp vec2 textureCoordinate; uniform sampler2D inputImageTexture; uniform highp vec2 center; void main() { highp vec2 normCoord = 2.0 * textureCoordinate - 1.0; highp vec2 normCenter = 2.0 * center - 1.0; ...
<button (click)="action()">go</button>
/** * */ package querqy.rewrite; import java.util.Collections; import java.util.Set; import querqy.model.ExpandedQuery; import querqy.model.Term; /** * @author René Kriegler, @renekrie * */ public abstract class RewriterFactory { private final String rewriterId; protected RewriterFactory(final String...
package cpu func getisar0() uint64 { return 0 } func getisar1() uint64 { return 0 } func getpfr0() uint64 { return 0 }
package draw2d import ( "bosun.org/_third_party/code.google.com/p/freetype-go/freetype/raster" ) type VertexAdder struct { command VertexCommand adder raster.Adder } func NewVertexAdder(adder raster.Adder) *VertexAdder { return &VertexAdder{VertexNoCommand, adder} } func (vertexAdder *VertexAdder) NextCommand...
import { combineReducers } from 'redux'; import { createAction, handleActions } from 'redux-actions'; import { formReducer, modelReducer } from 'react-redux-form'; export type RequestState = { isPending: boolean } export type SignUpForm = { name: string, email: string, password: string, } export const modelP...
package v1beta1_test import ( "testing" "github.com/google/go-cmp/cmp" v1 "k8s.io/api/core/v1" discovery "k8s.io/api/discovery/v1beta1" apiequality "k8s.io/apimachinery/pkg/api/equality" "k8s.io/kubernetes/pkg/api/legacyscheme" _ "k8s.io/kubernetes/pkg/apis/discovery/install" utilpointer "k8s.io/utils/point...
package descriptor import ( "fmt" "path" "path/filepath" "strings" "github.com/golang/glog" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" plugin "github.com/golang/protobuf/protoc-gen-go/plugin" ) // Registry is a registry of information extracted from plugin.CodeGeneratorRequest. type Regi...
package com.orientechnologies.orient.test.database.speed; import java.io.IOException; import java.io.UnsupportedEncodingException; import com.orientechnologies.common.test.SpeedTestMonoThread; import com.orientechnologies.orient.core.db.raw.ODatabaseRaw; import com.orientechnologies.orient.core.id.OClusterPositionFa...
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.s=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,...
#ifndef __ESP_SYSTEM_H__ #define __ESP_SYSTEM_H__ #include <stdint.h> #include <stdbool.h> #include "esp_err.h" #include "esp_attr.h" #include "esp_bit_defs.h" #include "esp_idf_version.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Reset reasons */ typedef enum { ESP_RST_UNKNOWN, //!< Reset reaso...
package com.orange.ngsi.server; import com.orange.ngsi.model.*; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/i") public class FakeControllerHelper extends NgsiBaseController { @Override protec...
package com.fqc.suggest; /** * @author fqc */ public class StopThread { public static void main(String[] args) { MyThread2 t = new MyThread2(); ThreadController threadController = new ThreadController(t); int count = 0; while (threadController.isFlag()) { threadContr...
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="processEng...
import {createHistory} from "history"; import {useRouterHistory} from "react-router"; const browserHistory = useRouterHistory(createHistory)({ basename: "/app" }); export default browserHistory;
/** @prettier */ import { Subject } from '../Subject'; import { Observable } from '../Observable'; import { Subscriber } from '../Subscriber'; import { Subscription } from '../Subscription'; import { refCount as higherOrderRefCount } from '../operators/refCount'; import { OperatorSubscriber } from '../operators/Operato...
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterField( model_name='blogpost', name='publish_date', fiel...
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain ...
<?xml version="1.0" encoding="UTF-8"?> <job id="trace-partition-batchlet" xmlns="http://xmlns.jcp.org/xml/ns/javaee" version="1.0"> <step id="step"> <batchlet ref="traceBatchlet"/> <partition> <mapper ref="tracePartitionMapper"/> <reducer ref="tracePartitionReducer"/> ...
package unix //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Dup2(oldfd int, newfd int) (err error) //sys Fchown(fd int, uid int, gid int) (err error) //sys Fstat(fd int, stat *Stat_t) (err error) //sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTA...
//>>built define("dojo/gears",["./_base/lang","./sniff"],function(_1,_2){ var _3={}; _1.setObject("dojo.gears",_3); _3._gearsObject=function(){ var _4; var _5=_1.getObject("google.gears"); if(_5){ return _5; } if(typeof GearsFactory!="undefined"){ _4=new GearsFactory(); }else{ if(_2("ie")){ try{ _4=new ActiveXObject(...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Concurrent; using System.Diagnostics.Contracts; using System.Reflection; using System.Web.Http.Internal; using Microsoft.Data.Edm; na...
using Microsoft.Test.ModuleCore; namespace XLinqTests { public class XNodeReplaceOnDocument3 : XNodeReplace { public override void AddChildren() { AddChild(new TestVariation(OnXDocument) { Attribute = new VariationAttribute("(BVT)XDocument: Replace with multiple nodes") { Params = n...
import EmberObject from 'ember-runtime/system/object'; export default EmberObject.extend({ init() { this.cache = {}; }, has(bucketKey) { return bucketKey in this.cache; }, stash(bucketKey, key, value) { var bucket = this.cache[bucketKey]; if (!bucket) { bucket = this.cache[bucketKey] = ...
/*! * masonryHorizontal layout mode for Isotope * http://isotope.metafizzy.co */ /*jshint browser: true, strict: true, undef: true, unused: true */ ( function( window ) { 'use strict'; // -------------------------- helpers -------------------------- // var indexOf = Array.prototype.indexOf ? function( items, ...
importAutomationScript('/feature-policy/experimental-features/vertical-scroll.js'); function inject_scroll(direction) { return touchScroll(direction, window.innerWidth / 2, window.innerHeight / 2); } function inject_zoom(direction) { let width = window.innerWidth, height = window.innerHeight; return pinchZoom(d...
"""Cardinality analysis of `Dataset` objects.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.data.ops import dataset_ops from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.pyt...
package org.onosproject.incubator.net.domain; import com.google.common.annotations.Beta; import org.onosproject.core.ApplicationId; /** * Administrative interface for the intent domain service. */ @Beta public interface IntentDomainAdminService extends IntentDomainService { /** * Register an application ...
CKEDITOR.plugins.setLang("sourcedialog","lt",{toolbar:"Šaltinis",title:"Šaltinis"});
package com.intellij.diff; public class InvalidDiffRequestException extends Exception { public InvalidDiffRequestException(String message) { super(message); } public InvalidDiffRequestException(String message, Throwable cause) { super(message, cause); } public InvalidDiffRequestException(Throwable...
title: Authorization aliases: - /auth/authz/ --- # Authorization Global (`server.require`) and service-specific (`services[*].require`) authorization restrictions may be configured. For both settings, the values should be an array of hashes with one of the available filter types. At least one authorization rule must ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <HTML> <HEAD> <meta name="generator" content="JDiff v1.1.1"> <!-- Generated by the JDiff Javadoc doclet --> <!-- (http://www.jdiff.org) --> <meta name="description" content="JDiff is a Javadoc doclet which generates...
""" Interface to Constrained Optimization By Linear Approximation Functions --------- .. autosummary:: :toctree: generated/ fmin_cobyla """ from __future__ import division, print_function, absolute_import import numpy as np from scipy._lib.six import callable from scipy.optimize import _cobyla from .optimiz...
<component name="libraryTable"> <library name="Maven: com.ckfinder:ckfinderplugin-imageresize:2.3"> <CLASSES> <root url="jar://$USER_HOME$/.m2/repository/com/ckfinder/ckfinderplugin-imageresize/2.3/ckfinderplugin-imageresize-2.3.jar!/" /> </CLASSES> <JAVADOC> <root url="jar://$USER_HOME$/.m2/r...
FROM ubuntu:precise RUN apt-get update && apt-get install -y bash-completion build-essential curl ca-certificates debhelper git libapparmor-dev libsqlite3-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* ENV GO_VERSION 1.4.2 RUN curl -fSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * oci8 Database Adapter Class * * Note: _DB is an extender class that the app controller * creates dynamically based on whether the query builder * class is being used or not. * * @package CodeIgniter * @subpackage Drivers * @categor...
class Profile; namespace base { class RefCountedMemory; } namespace thumbnails { class ThumbnailService; } // ThumbnailListSource renders a webpage to list all thumbnails stored in // TopSites, along with all associated URLs. The thumbnail images are embedded // into the HTML via Base64, so we can easily produce a d...
/* @flow */ import React, { PropTypes } from 'react' import { ScrollView } from 'react-native' import KeyboardAwareMixin from './KeyboardAwareMixin' const KeyboardAwareScrollView = React.createClass({ propTypes: { ...ScrollView.propTypes, viewIsInsideTabBar: PropTypes.bool, resetScrollToCoords: PropType...
package org.bouncycastle.crypto.modes; import java.io.ByteArrayOutputStream; import org.bouncycastle.crypto.BlockCipher; import org.bouncycastle.crypto.CipherParameters; import org.bouncycastle.crypto.DataLengthException; import org.bouncycastle.crypto.InvalidCipherTextException; import org.bouncycastle.crypto.Output...
package azure import ( "bytes" "io" ) type blockBlobWriter interface { GetSize(container, blob string) (int64, error) WriteBlobAt(container, blob string, offset int64, chunk io.Reader) (int64, error) } // zeroFillWriter enables writing to an offset outside a block blob's size // by offering the chunk to the unde...
//*******************************************************************************************// // // // Download Free Evaluation Version From: https://bytescout.com/download/web-installer // // ...
"use strict"; /* jshint maxlen: false */ const apirequest_1 = require("../../lib/apirequest"); /** * Fitness * * Stores and accesses user data in the fitness store from apps on any platform. * * @example * const google = require('googleapis'); * const fitness = google.fitness('v1'); * * @namespace fitness * ...
require 'spec_helper' describe Spree::Core::NumberGenerator do let(:number_generator) { described_class.new(options) } let(:random) { instance_double(Random) } let(:model) do mod = number_generator Class.new(ActiveRecord::Base) do self.table_name = 'spree_orders' include mod ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-login', templateUrl: './login.component.html', styleUrls: ['./login.component.css'] }) export class LoginComponent implements OnInit { constructor() { } ngOnInit() { } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Phaser Source: D:/wamp/www/phaser/src/loader/LoaderParser.js</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/default.css"> <li...
package org.scalawiki.dto case class CategoryInfo(size: Long, pages: Long, files: Long, subCats: Long)
from __future__ import print_function, division import numpy as np from numpy.testing import (run_module_suite, assert_array_almost_equal_nulp, assert_almost_equal, assert_array_equal, assert_raises) import warnings from skimage.restoration import unwrap_phase fro...
package com.commonsware.empublite; import android.app.Activity; import android.app.Fragment; import android.support.v13.app.FragmentStatePagerAdapter; public class ContentsAdapter extends FragmentStatePagerAdapter { public ContentsAdapter(Activity ctxt) { super(ctxt.getFragmentManager()); } @Override pub...
SYNONYM #### According to Index Fungorum #### Published in null #### Original name Zygosaccharomyces pastori Guillierm. ### Remarks null
Template[getTemplate('mobile_nav')].helpers({ primaryNav: function () { return primaryNav; }, secondaryNav: function () { return secondaryNav; }, getTemplate: function () { return getTemplate(this).template; } }); Template[getTemplate('mobile_nav')].events({ 'click .dropdown-sub-level': funct...
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Graphics.UserInterfa...
class BiMap<K, V> { private inverseBiMap: BiMap<V, K>; public get(key: K): V { return null; } public inverse(): BiMap<V, K> { return null; } } var b = new BiMap<string, number>(); var i = b.inverse(); // used to get the type wrong here. var r2b = i.get(1);
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using Microsoft.CodeAnalysis.ExpressionEvaluator; using Microsoft.VisualStudio.Deb...
using System; using System.Collections.Generic; using System.Linq; namespace Azure.ResourceManager.Network.Models { /// <summary> Parameters to get network configuration diagnostic. </summary> public partial class NetworkConfigurationDiagnosticParameters { /// <summary> Initializes a new instance o...
require('./es6.array.iterator'); var global = require('./_global') , hide = require('./_hide') , Iterators = require('./_iterators') , TO_STRING_TAG = require('./_wks')('toStringTag'); for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i <...
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8"> <title>DefaultRect</title> <link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"> <script>var pathToRoot = "../../../";</script> <script type="text/javascript" src="../../../scripts/...
<!DOCTYPE html><html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <meta charset="utf-8"> <title>PHPExcel classes » \PHPExcel_Reader_Excel2007_Chart</title> <meta name="aut...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["InspireTree"] = factory(); else root["I...
Param ( [switch]$Publish, [string]$version ) $ErrorActionPreference = "Stop" $global:ExitCode = 1 function Write-Log { #region Parameters [cmdletbinding()] Param( [Parameter(ValueFromPipeline=$true)] [array] $Messages, [Parameter()] [ValidateSet("Error", "Warn", "Info")] [string] $Level = "Info...
<?php namespace common\models; use modules\image\models\Image; use Yii; /** * This is the model class for table "company_image". * * @property integer $id * @property integer $company_id * @property integer $image_id * * @property Company $company * @property Image $image */ class CompanyImage extends \yii\...
require "ImageClip/version" module ImageClip def self.add_image(table_name, attachment_name) add_column(table_name, "#{attachment_name}_data", :text) add_attachment(table_name, attachment_name) # add code to model for saving end def self.remove_image(table_name, attachment_name) remove_column(ta...
<?php namespace Drupal\Core\Display; use Drupal\Component\Plugin\ConfigurablePluginInterface; use Drupal\Component\Plugin\PluginInspectionInterface; use Drupal\Core\Cache\RefinableCacheableDependencyInterface; use Drupal\Core\Plugin\PluginFormInterface; use Drupal\Core\Session\AccountInterface; /** * Provides an in...
layout: post title: "STEM Cyber Challenge 2018: Keygenme" date: 2018-04-21 17:00:48 -0400 comments: true categories: ctf --- I got a chance to play a bit of the STEM Cyber Challenge 2018 CTF over the weekend. This one is called keygenme, a 400 point reverse engineering challenge. Like its name suggests, the binary pro...
// // PXUIImageView.m // Pixate // // Created by Paul Colton on 9/18/12. // Copyright (c) 2012 Pixate, Inc. All rights reserved. // #import "PXUIImageView.h" #import "UIView+PXStyling.h" #import "UIView+PXStyling-Private.h" #import "PXStylingMacros.h" #import "PXOpacityStyler.h" #import "PXFillStyler.h" #impor...
class UserUrlConstrainer def matches?(request) User.find_by_username(request.params[:username]).present? end end
package org.apache.camel.processor; import org.apache.camel.CamelExecutionException; import org.apache.camel.ContextTestSupport; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.junit.Test; /** * @version */ public class AOPAroundFinallyTest extends Con...
package org.springframework.boot.actuate.autoconfigure.security.reactive; import java.net.URI; import java.time.Duration; import java.util.Collections; import java.util.List; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; import org.springframework.boot.actuate.autoconfigure.endpoint.Endpoi...
package com.vividsolutions.jts.algorithm; import com.vividsolutions.jts.geom.*; /** * Computes the centroid of a point geometry. * <h2>Algorithm</h2> * Compute the average of all points. * * @version 1.7 */ public class CentroidPoint { private int ptCount = 0; private Coordinate centSum = ...
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="rebound_listview_header_hint_normal">@string/init_data</string> <string name="rebound_listview_header_hint_ready">@string/init_data</string> <string name="rebound_listview_header_hint_loading">正在加载</string> <string name="rebound_listview_...
<?php namespace spec\Scriptotek\GenericBookCover; use PhpSpec\ObjectBehavior; class BookCoverSpec extends ObjectBehavior { public function it_is_initializable() { $this->shouldHaveType('Scriptotek\GenericBookCover\BookCover'); } public function it_supports_setting_a_text_color() { ...
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_enabled="false" android:drawable="@drawable/bbk_edit_round_bg" /> <item android:state_pressed="true" android:drawable="@drawable/bbk_edit_round_sel_bg" /> <item android:drawable="@drawable...
package storage // Copyright 2017 Microsoft 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 License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by...