text stringlengths 3 1.05M |
|---|
import React from 'react';
import {
Link,
} from 'react-router';
import {
Breadcrumb,
Icon,
} from 'amazeui-react';
const BreadCrumbLink = React.createClass({
render() {
const {
active,
...props,
} = this.props;
return (
<Breadcrumb.Item
active={active}
linkComp... |
module.exports = require('./lib/Class.js');
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp2497Component } from './comp-2497.component';
describe('Comp2497Component', () => {
let component: Comp2497Component;
let fixture: ComponentFixture<Comp2497Component>;
beforeEach(async(() => {
TestBed.configureTestingM... |
package com.agricraft.agricore.templates.versions.v1;
import com.agricraft.agricore.json.AgriSerializable;
import com.agricraft.agricore.templates.versions.v2.AgriSoil_1_16;
import com.agricraft.agricore.util.TypeHelper;
import java.util.List;
import java.util.stream.Collectors;
public class AgriSoil_1_12 implements ... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Mycotaxon 34(1): 33 (1989)
#### Original name
Dermocybe sierraensis Ammirati
### Remarks
null |
package com.amazonaws.services.redshiftserverless.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.redshiftserverless.model.*;
import com.amazonaws.transform.Marshaller;
... |
package com.microsoft.bingads.v10.bulk.entities;
import com.microsoft.bingads.v10.bulk.BulkServiceManager;
import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid;
import com.microsoft.bingads.v10.bulk.BulkFileReader;
import com.microsoft.bingads.v10.bulk.BulkFileWriter;
import com.microsoft.bingads.v10.bulk... |
package com.ryanbrozo.spray.hawk
import spray.http.{StatusCodes, StatusCode, HttpHeader}
import spray.routing.Rejection
/**
* A rejection returned when Hawk validation fails
* @param cause Cause why validation failed
* @param challengeHeaders Challenge headers to be returned to the client
*/
case class HawkReje... |
#pragma once
class CartFile;
class LevelStyle
{
public:
LevelStyle();
~LevelStyle();
bool Load(CartFile& cart, DWORD addr);
WORD routine1_;
WORD routine2_;
BYTE music_;
WORD palette_;
BYTE fg_scroll_;
BYTE graphics_;
BYTE map_id_;
};
|
package org.raml.jaxrs.codegen.core;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.jsonschema2pojo.AnnotationStyle;
import org.jsonschema2pojo.DefaultGenerationConfig;
import org.jsonschema2pojo.GenerationConfig;
i... |
var app = angular.module('app', [
'ngResource',
'ngRoute'
]);
app.value('url', 'http://localhost:3000/');
app.controller('HomeController', HomeController);
app.config(["$routeProvider", ($routeProvider: angular.route.IRouteProvider) => {
$routeProvider
.when('/', {
templateUrl: 'app/views/home.html',... |
package com.breakidea.noah.common.service;
import java.util.concurrent.ScheduledFuture;
public interface ClientWorker {
public void execute(Runnable command);
public ScheduledFuture<?> schedule(Runnable command, long secondsDelay);
}
|
using System;
using Csla;
namespace ParentLoad.Business.ERLevel
{
public partial class A03_Continent_Child
{
#region OnDeserialized actions
/*/// <summary>
/// This method is called on a newly deserialized object
/// after deserialization is complete.
/// ... |
package uk.gov.hmrc.ct.version
object CoHoAccounts {
case object CoHoMicroEntityAccounts extends Accounts {
override def key(): String = "CoHoMicroEntityAccounts"
}
case object CoHoMicroEntityAbridgedAccounts extends Accounts with ReducedAccounts {
override def key(): String = "CoHoMicroEntityAbridge... |
using System;
using System.IO;
using System.Linq;
using BetterModules.Core.Environment.FileSystem;
using NUnit.Framework;
namespace BetterModules.Core.Tests.Environment.FileSystem
{
[TestFixture]
public class DefaultWorkingDirectoryTests : TestBase
{
private string OriginalFileName
{
... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Denkschr. Akad. Wiss. , Wein, Mathematische-naturwissenschaftliche Klasse 71: 95 (1902)
#### Original name
Acarospora lavicola J. Steiner
### Remarks
null |
supported_comps=('director' 'manager' 'lib' 'tools' 'frontend')
if [ -z "$1" ]
then
echo "Usage: $0 conpaas_version [components] (eg: $0 1.1.0 director frontend)"
echo "The supported components are: ${supported_comps[@]}"
exit 1
fi
CPSVERSION="$1"
param_comps=( "$@" )
wrong_comps=( "$@" )
wrong_comps[0]="... |
class ossimPlanetElevationFactory : public ossimPlanetElevationRegistry::FactoryBase
{
public:
ossimPlanetElevationFactory();
virtual ossimPlanetElevationDatabase* openDatabase(const ossimString& location);
static ossimPlanetElevationFactory* instance();
};
#endif |
package com.swdrts.swvideo.ui;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.text.TextUtils;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Toast... |
package com.google.cloud.filestore.v1beta1.samples;
// [START file_v1beta1_generated_CloudFilestoreManager_ListShares_String_sync]
import com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClient;
import com.google.cloud.filestore.v1beta1.InstanceName;
import com.google.cloud.filestore.v1beta1.Share;
public cl... |
var newthreadForumList = new function() {
'use strict';
var self = this;
this.parseUrlQuery = function(queryStr) {
var dict = {};
var queries = queryStr.replace(/^\?/, '').split('&');
var i;
for (i = 0; i < queries.length; i++) {
var parts = querie... |
title: Building Linked Alerts
keywords: webhooks
tags: [alerts]
sidebar: doc_sidebar
permalink: alerts_dependencies.html
summary: Use alert metrics to build alerts that depend on other alerts.
---
Metrics can be related in a dependency hierarchy. For example, a login application service is dependent on a user database... |
class Table {
protected:
uint8_t *_cells_states;
public:
unsigned int width;
unsigned int height;
unsigned int len;
Table(uint8_t state = 0, unsigned int width = 1, unsigned int height = 1);
inline unsigned int Get_x(unsigned int index);
inline unsigned int Get_y(unsigned int index);
inl... |
import { Directive, TemplateRef } from '@angular/core';
@Directive({
selector: '[appIfTabActive]'
})
export class IfTabActiveDirective {
constructor(public templateRef: TemplateRef<any>) {}
}
|
function text_counter(e1,e2,n){
var text_max=n;
e2.innerHTML = text_max + ' characters remaining';
e2.classList.add('text-primary');
e1.onkeyup = function(){
var text_length = e1.value.length,
text_remaining = text_max - text_length;
e2.innerHTML = (text_remaining < 0 ? 0 :... |
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class FirstdataE4Gateway < Gateway
# TransArmor support requires v11 or lower
self.test_url = "https://api.demo.globalgatewaye4.firstdata.com/transaction/v11"
self.live_url = "https://api.globalgatewaye4.firstdata.com/transaction/v11"
... |
using NUnit.Framework;
using MidiGremlin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MidiGremlin.Tests
{
[TestFixture()]
public class ExceptionTests
{
[Test()]
public void ToneNotFoundExceptionTest()
{
ToneN... |
default_target: all
.PHONY : default_target
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hp... |
<?php
namespace PHPExiftool\Driver\Tag\Torrent;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class Name extends AbstractTag
{
protected $Id = 'name';
protected $Name = 'Name';
protected $FullName = 'Torrent::Info';
protect... |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ZptDocumentRendererForFilePathFactory
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ZptD... |
package manager
import (
"context"
"fmt"
"path"
log "github.com/Sirupsen/logrus"
"github.com/coreos/etcd/client"
"github.com/9corp/9volt/alerter"
"github.com/9corp/9volt/base"
"github.com/9corp/9volt/config"
"github.com/9corp/9volt/monitor"
"github.com/9corp/9volt/overwatch"
"github.com/9corp/9volt/state"... |
'use strict'
exports.html = require('./html')
exports.svg = require('./svg')
exports.normalize = require('./normalize')
exports.find = require('./find')
|
<?php
class Kuis extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model(array('Kuis_model', 'User_model'));
$this->load->library(array('form_validation', 'session', 'auth'));
$this->load->database();
$this->load->helper('url');
}
public function view_kuis() {
$c... |
{-# LANGUAGE ScopedTypeVariables #-}
module Astro.Time.Format where
import Astro.Time
import Data.Time
import System.Locale
-- Formatting
-- ==========
-- | Format an epoch using the formatting codes of
-- 'Data.Time.Format.formatTime'. Some specifics to keep in mind:
--
-- * Week days will in general not make ... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_27) on Fri Mar 28 15:13:30 PDT 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Class org.g... |
module Pohoda
module Builders
module Bka
class BankAccountHeaderType
include ParserCore::BaseBuilder
def builder
root = Ox::Element.new(name)
root = add_attributes_and_namespaces(root)
root << build_element('bka:id', data[:id], data[:id_attributes]) if data.ke... |
>Download EmberConf videos for offline viewing.
EmberConf just passed a few weeks back and I wanted to have the talks available for viewing when I'm offline for those
times where WiFi is not allowed (e.g. plane).
I created this small tool that you can use to download any of the EmberConf videos! This is thanks to
[p... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
<?php
/**
* IncomeCategoryTable
*
* This class has been auto-generated by the Doctrine ORM Framework
*/
class IncomeCategoryTable extends CategoryTable
{
/**
* Returns an instance of this class.
*
* @return object IncomeCategoryTable
*/
public static function getInstance()
{
return Doctrine_... |
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using System.Reflection;
using System.Resources;
using Microsoft.LightSwitch.Model;
using OfficeSharp.Resources;
namespace OfficeSharp.Metadata
{
[Export(typeof(IModuleDefinitionLoader))]
[ModuleDefinit... |
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.developerknowledge.simplenavapp.fragmentOne">
<!-- TODO: Update blank fragment layout -->
... |
namespace CnSharp.VisualStudio.NuPack.AssemblyInfoEditor
{
partial class AssemblyInfoForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being us... |
<?php
namespace Cnerta\Model;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Cnerta\Model\RepositoryInterface;
use Cnerta\Validator\UrlValidator;
/**
* @author valérian Girard <valerian.girard@educagri.fr>
*/
class RepositoryPackage implements RepositoryInterface
{
protected $packageTyp... |
/**
* Dispatch to given `controller` and `action` in `app`.
*
* @param {Application} app
* @param {String} controller
* @param {String} action
* @return {Function}
* @api private
*/
module.exports = function(app, controller, action) {
return function dispatch(req, res, next) {
app._controller(controller,... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Particles/Acceleration/ParticleModuleAccelerationBase.h"
#include "ParticleModuleAccelerationOverLifetime.generated.h"
UCLASS(editinlinenew, hidecategories=Object, meta=(DisplayName = "Acceleration/Life"), MinimalAPI)
class UParticle... |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilie... |
Fundamentals
============
fundamentals of coding
|
package org.effting.tools;
import java.io.File;
import java.io.IOException;
import java.net.URI;
/**
* The contract that represents the available operations performed by the underlying operating system.
*
* @author Charles Kafels Effting
*/
interface Operations {
/**
* Launches the associated applicatio... |
from setuptools import setup, find_packages
setup(
name='django-ganalytics',
version='1.0.0',
description='Simple integration of the Google Analytics tracking code in Django projects.',
author='Raymond Wanyoike',
author_email='raymond.wanyoike@gmail.com',
long_description=open('README.rst').re... |
'use strict';
/**
* Factory for Badge
*/
badgeModule.factory('Badge', ['$http', function($http) {
// REST Service URL to manage badge
var entityURL = baseURL + '/badge';
/**
* Validate badge
* @param badge badge
* @throws validation exception
*/
var validate = function (badge) {
var e... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
IOSAudioBuffer.cpp: Unreal IOSAudio buffer interface object.
=============================================================================*/
/*--------------------------------... |
<?php
namespace Product\View\Helper;
use Zend\View\Helper\AbstractHelper;
class ProductHelper extends AbstractHelper
{
public function formFixer( Zend_Form $_form ) {
foreach( $_form->getElements() as $element ) {
if( $element instanceof Zend_Form_Element_Hidden ) {
$label = $... |
# we verified in the LCMBasics demo that all the configuration runas Local System account
# But, Some resource configuration requires running as a specific user.
Configuration RunAsDemo
{
Import-DscResource -moduleName PSDesiredStateConfiguration
Node S12R2-01
{
#This creates a group if it do... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
The Dhall language integration consists of the following parts:
- The VSCode/ium plugin "Dhall Language Support" *([vscode-language-dhall](https://github.com/dhall-lang/vscode-language-dhall))* adds syntax highlighting for Dhall files.
- The VSCode/ium plugin "Dhall LSP Server" *([vscode-dhall-lsp-server](https://githu... |
// LuaState.h
// Declares the cLuaState class representing the wrapper over lua_State *, provides associated helper functions
/*
The contained lua_State can be either owned or attached.
Owned lua_State is created by calling Create() and the cLuaState automatically closes the state
Or, lua_State can be attached by ca... |
import { HttpService } from './../../services/http.service';
import { PasswordValidationUtil } from './../../utils/password-validation.util';
import { Router } from '@angular/router';
import { FormGroup, Validators, FormBuilder } from '@angular/forms';
import { OnInit, Component } from '@angular/core';
@Component({
... |
$packageName = 'zimbra-desktop'
$packageSearch = "Zimbra Desktop"
$fileType = 'msi'
$silentArgs = '/quiet /qn /norestart'
$validExitCodes = @(0)
Get-ItemProperty -Path @( 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
'HKLM:\Software\Microsoft\Windows\CurrentVersio... |
@class AFHTTPRequestOperation;
@interface DataLoaderUtils : NSObject
// 这是一个POST模板方法
+(void)julunHttpPost: (NSString *) uri
params: (id) params
parseHandler: (id (^)(AFHTTPRequestOperation * operation, id responseObject)) handler
success: (void (^)(id responseObject)) ... |
package android.marshon.likequanmintv.view.lazyvp;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
public abstract class LazyFragmentPagerAdapter ... |
require 'test_helper'
class DeviationSpiderDeliverableValueTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
|
package buildah
import (
"github.com/opencontainers/runtime-tools/generate"
selinux "github.com/opencontainers/selinux/go-selinux"
)
func setupSelinux(g *generate.Generator, processLabel, mountLabel string) {
if processLabel != "" && selinux.GetEnabled() {
g.SetProcessSelinuxLabel(processLabel)
g.SetLinuxMount... |
var util = require('util');
exports.errors = (function() {
var debug = false;
//We kep Error code none at 0 as it's convenient to check if(err.errorCode) { }
var errors = {
none: { errorCategory: "ALL", errorCode: 0, errorMessage:undefined },
CONFIG_JSON_PARSE_ERROR: { errorCategory:"CONFIG", errorCode: "JSON... |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#99000000"/>
<padding
android:left="16dp"
android:top="4dp"
android:right="16dp"
android:bottom="4dp"/>
<corners
android:radius="2dp"/>
</sh... |
<div style="margin: 15px;">
<form class="layui-form" action="">
<div class="layui-form-item">
<label class="layui-form-label">名称</label>
<div class="layui-input-block">
<input type="text" name="formName" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
</di... |
TreeNode * allocNode() {
TreeNode * tempNode = (TreeNode *)calloc(1, sizeof(TreeNode *));
tempNode->numChildren = 0;
tempNode->child[0] = NULL;
tempNode->sibling = NULL;
return tempNode;
} |
package com.piketec.tpt.api.constants.steps;
import com.piketec.tpt.api.steplist.WaitValueStep;
/**
* For further information, please refer to the User Guide, Wait for Value Step.
*
* @deprecated Will be removed in TPT-18. Use {@link WaitValueStep} instead.
*/
@Deprecated
public interface WaitValue e... |
/*
Copyright (c) 2010, NHIN Direct Project
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the foll... |
Wire up autocomplete for an `<input type="text">` element.
# example
[Try this example.](https://b282c4661ca4815fef34e7afc8ae23a21e58725e.htmlb.in)
Auto-complete the months.
``` js
var auto = require('autocomplete-element');
var input = document.querySelector('input');
var months = [
"January", "February", "Ma... |
"""
Created on Mon Jul 17 16:17:25 2017
@author: jorgemauricio
"""
# librerias
import numpy as np
from pandas import Series,DataFrame
import pandas as pd
# se pueden abrir archivos csv como dataframes
dframe = pd.read_csv('data/ej_18_data.csv')
# desplegar
dframe
# tambien se puede utilizr read_table para leer una... |
package net.de1mos.jbox.webclient.viewmodels;
public class Song {
private String title;
public Song(String title, String artist) {
super();
this.title = title;
this.artist = artist;
}
private String artist;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.titl... |
.PHONY: clean-pyc clean-build docs
help:
@echo "clean-build - remove build artifacts"
@echo "clean-pyc - remove Python file artifacts"
@echo "lint - check style with flake8"
@echo "test - run tests quickly with the default Python"
@echo "testall - run tests on every Python version with tox"
@echo "coverage - che... |
<component name="libraryTable">
<library name="Maven: org.junit.platform:junit-platform-commons:1.0.1">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/junit/platform/junit-platform-commons/1.0.1/junit-platform-commons-1.0.1.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/... |
This README would normally document whatever steps are necessary to get your application up and running.
### What is this repository for? ###
* It's just a app to do some mathematical functions
* 1.00 final
### Who do I talk to? ###
* Vahe Danielyan (DanieV)
### Download Link ###
* [Dropbox](https://www.dropbox.c... |
#ifndef _LINUX_EXT3_JBD_H
#define _LINUX_EXT3_JBD_H
#include <linux/fs.h>
#include <linux/jbd.h>
#include <linux/ext3_fs.h>
#define EXT3_JOURNAL(inode) (EXT3_SB((inode)->i_sb)->s_journal)
/* Define the number of blocks we need to account to a transaction to
* modify one block of data.
*
* We may have to touch o... |
/*
* ======== dma.c ========
*/
#include "../USB_Common/device.h"
#include "../USB_Common/types.h" //Basic Type declarations
#include "../USB_Common/defMSP430USB.h"
#include <USB_Config/descriptors.h>
#include <string.h>
#ifdef __REGISTER_MODEL__
/* for IAR */
#if __REGISTER_MODEL__ == __REGISTER_MODEL_REG20__
#... |
namespace ni
{
namespace details
{
template <typename T, T Empty, typename Fill, typename Enabled = void>
struct SPSCRingBufferFiller
{
static constexpr Unit value = Unit();
using type = Unit;
};
template <typename T, T Empty>
struct SPSCRingBufferFiller<T, Empty, T, T>
{
static constexpr int value = reinterpret... |
package com.jeecms.core.dao.impl;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.jeecms.common.hibernate3.HibernateBaseDao;
import com.jeecms.core.dao.CmsConfigItemDao;
import com.jeecms.core.entity.CmsConfigItem;
@Repository
public class CmsConfigItemDaoImpl extends
Hibernate... |
<!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
namespace Jaxon\Request\Call;
use Jaxon\App\Dialog\Library\DialogLibraryManager;
use Jaxon\Plugin\Response\JQuery\DomSelector;
use function array_shift;
use function implode;
class Call extends JsCall
{
use Traits\CallConditionTrait;
use Traits\CallMessageTrait;
/**
* @var DialogLibraryMan... |
/*!
** \file Source/ClipBoard.h
** \brief
\*****************************************************************************/
#pragma once
#include <Source/TextDoc.h>
// ============================================================================
retcode copyTextToClipboard(HWND hwnd, const TextDoc& doc);
retcode past... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace itBit.Configuration {
public interface ITickerConfigurator {
ITickerConfigurator Symbol(string value);
}
}
|
package java.security.cert;
import java.security.InvalidAlgorithmParameterException;
/**
*
* The <i>Service Provider Interface</i> (<b>SPI</b>)
* for the {@link CertPathValidator CertPathValidator} class. All
* {@code CertPathValidator} implementations must include a class (the
* SPI class) that extends this c... |
<!DOCTYPE html>
<html class="theme-next gemini use-motion" lang="">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=2">
<meta name="theme-color" content="#222">
<meta http-e... |
static int kHandlerKey; // Value is not used.
namespace content {
void AppCacheInterceptor::SetHandler(net::URLRequest* request,
AppCacheRequestHandler* handler) {
request->SetUserData(&kHandlerKey, handler); // request takes ownership
}
AppCacheRequestHandler* AppCacheInterc... |
class linked_list
def clone
result = linked_list.new
ptr = @head
while not ptr.nil?
result.append(ptr.datum)
ptr = ptr.succ
end
result
end
end
|
package pahakia.fault.java7;
import static junit.framework.TestCase.assertEquals;
import org.junit.Test;
import pahakia.fault.CodeBlock;
import pahakia.fault.Fault;
import pahakia.fault.FinaleBlock;
import pahakia.fault.KatchBlock;
public class KatchMultiExceptionClassTest {
@Test
public void test1() {
... |
import os
import requests
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def index(request):
binUrl = 'http://httpbin.org/get'
url = os.getenv('BLIZZARD_WEB_API_URL') + '/wow/guild/Thunderhorn/Fallen Empire'
url_params = {
'fields': 'members',
... |
<p>
When text is rendered by a computer, sometimes there will be characters in the text that can not be displayed, because no font that supports them is available to the computer.
When this occurs, small boxes are shown to represent the characters.
We call those small boxes “tofu,” and we want to remove t... |
<?php include_once 'base.php'; ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
<?php if ((isset($this->session->loggedin)) && ($this->session->loggedin == 1)) : ?>
Reddit | Frontpage
<?php else : ?>
Reddit | Sign-In
... |
/* First created by JCasGen Thu Aug 15 13:53:20 EDT 2013 */
package org.oaqa.dso.model;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.... |
layout: tag
tag: blog
--- |
<?xml version="1.0" encoding="UTF-8"?>
<alto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.bl.uk/schemas/alto/alto-1-4.xsd" xmlns:xlink="http://www.w3.org/1999/xlink">
<Description>
<MeasurementUnit>mm10</MeasurementUnit>
<sourceImageInformation>
<fileName>... |
Telemetroid::Application.config.session_store :cookie_store, key: '_telemetroid_session'
|
Copyright (c) 2017 Duan Xiaoyue
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, copy, modify, merge, publish, distribute, subli... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class TriagemRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get th... |
package com.azaptree.services.command.http;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Set;
import java.util.TreeSet;
import javax.servlet.http.HttpServletResponse;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.x... |
package rays
import "strconv"
// PIDParam contains current PID
type PIDParam int
// GetKey is slf.Param implementation
func (r PIDParam) GetKey() string { return "pid" }
// GetRaw is slf.Param implementation
func (r PIDParam) GetRaw() interface{} { return string(r) }
// Value return PID value as integer
func (r PI... |
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using Khronos;
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
// ReSharper disable JoinDeclarationAndInitializer
namespace OpenGL
{
public partial class Wgl
{
/// <... |
from __future__ import absolute_import, division, print_function
# Import standard modules
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
# Import the relevant PTS classes and modules
from pts.core.tools import filesystem as fs
from pts.core.tools import tables
# ------------... |