text stringlengths 3 1.05M |
|---|
package ch.bind.philib.conf;
import org.testng.annotations.Test;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoMoreInteractions;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
public class Filter... |
<?php
/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <juliangut@gmail.com>
*/
declare(strict_types=1);
namespace Jgut\Slim\Routing\Response\Handler;
use Jgut\Slim\R... |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Proc. Linn. Soc. London 158: 34 (1947)
#### Original name
Meliola ngongensis Hansf.
### Remarks
null |
<?php if ( ! defined('BASEPATH')) {
exit('No direct script access allowed');
}
// ------------------------------------------------------------------------
/**
* CodeIgniter Typography Helpers
*
* @package CodeIgniter
* @subpackage Helpers
* @category Helpers
* @author EllisLab Dev Team
* @link http://cod... |
import java.util.ArrayList;
import java.util.Collections;
public class SortDemo1 {
public static ArrayList<Integer> toArrayList(int [] array) {
ArrayList<Integer> retval = new ArrayList<Integer>();
for (int val: array) {
retval.add(val);
}
return retval;
}
public static void main(String[] args) ... |
<?php
namespace Pasinter\AdManagerBundle\Entity;
class Campaign
{
/**
* @var string $code
*/
private $code;
/**
* @var string $description
*/
private $description;
/**
* @var datetime $createdAt
*/
private $createdAt;
/**
* @var datetime $updatedAt
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... |
package io.github.gefangshuai.utils;
import org.apache.commons.io.FileUtils;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import java.io.File;
import java.io.IOException;
/**
* Crea... |
// Copyright (C) 2009 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... |
<#
.SYNOPSIS
This is a Powershell script to bootstrap a Cake build.
.DESCRIPTION
This Powershell script will download NuGet if missing, restore NuGet tools (including Cake)
and execute your Cake build script with the parameters you provide.
.PARAMETER Script
The build script to execute.
.PARAMETER Target
The build scri... |
<!DOCTYPE html>
<html>
<head>
<title>MultiEvent</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="demo.css" type="text/css">
</head>
<body>
<ul id="results">
<li id="event">event: <span></span></li>
<li id="input">source: <span></span></li>
<li... |
<?php
/*
* This file is part of Mannequin.
*
* (c) 2017 Last Call Media, Rob Bayliss <rob@lastcallmedia.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace LastCall\Mannequin\Core\Tests\Iterator;
use LastCall\Mannequin\Core\Iterator... |
import * as React from 'react';
import {SvgIconProps} from '../../SvgIcon';
export default function ExposureNeg2(props: SvgIconProps): React.ReactElement<SvgIconProps>;
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct template tag<std::vector< T, Al >></title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.c... |
<?php
/**
* Mageflow_Connect_Model_Resource_System_Info_Performance
*
* @category MFX
* @package Mageflow_Connect
* @subpackage Model
* @author Prototypely Ltd, Estonia <info@prototypely.com>
* @copyright Copyright © 2017 Prototypely Ltd, Estonia (http://prototypely.com)
* @license MIT Copyright (... |
package example.service;
import example.repo.Customer77Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer77Service {
public Customer77Service(Customer77Repository repo) {}
}
|
import datetime
import pandas as pd
from pandas import DataFrame
import matplotlib.pyplot as plt
from matplotlib import style
interested_range = -500
# style.use('ggplot')
sp = pd.read_csv('sp500.csv', index_col='Date', parse_dates=True)
sp_close = sp['Adj Close']
sp_close = sp_close[interested_range:]
print sp_clo... |
/**
*
*/
package eu.codesketch.ws.configurations.service.infrastructure.config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.s... |
<?php
namespace Madef\CmsBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
abstract class AbstractAdminController extends Controller
{
use TraitMenuAdminController;
}
|
//
// TimeTool.h
// Chatter
//
// Created by JW on H28/07/24.
// Copyright © 平成28年 JumboStudio. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TimeTool : NSObject
/* 时间戳*/
+(NSString *)timeStr:(long long)timestamp;
@end
|
namespace OMX.Web
{
using System.Web.Mvc;
using System.Web.Routing;
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapMvcAttributeRoutes();
routes.MapRo... |
title: Java 8 Streams
tags: [java,java8]
category: java8
summary: "Java 8 Streams"
---
# When to return Streams
Consider:
* Stream is not a data structure
* Steam can only be consumed once
See: <https://stackoverflow.com/questions/24676877/should-i-return-a-collection-or-a-stream>:
* "And it depends... |
var MAX_CRITERIA = 5;
var criteria = 0;
var SELECT_VALUES = [
'ids.firstname^First Name',
'ids.lastname^Last Name',
'alum.cl_yr^Class year',
'ids.city^Home City',
'ids.st^Home State',
'ids.id^ID Number',
'maiden.lastname^Maiden Name',
'activity^Activity/Sport',
'major1.txt... |
package com.arjuna.databroker.data.jee;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.arjuna.databroker.data.DataFlowNode;
import com.arjuna.databroker.data.DataProvider;
import com.arjuna.databroker.data.connector.NamedDataProvider;
import com.arjuna.databroker.data.connector.Observabl... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
<?php
//namespace Xacmlphp;
class Action
{
/**
* Action type
* @var string
*/
private $type = null;
/**
* Init the object and set the type if given
*
* @param string $type Action type
*/
public function __construct($type = null)
{
if ($type !== null) {
... |
/* This file OVERWRITES jQuery UI theme defaults */
/* adding style for general dialog box */
.ui-widget.ui-dialog.ui-widget-content { font-family:Helvetica, Arial, Verdana, sans-serif; font-size:90%; color:#41475B; font-weight:normal;}
.ui-dialog.ui-widget-content {
border:1px solid #D5DB97;
background:#fff;
-mo... |
package net.sf.jasperreports.export.parameters;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.Map;
import net.sf.jasperreports.engine.JRAbstractExporter;
import net.sf.jasperreports.eng... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
package io.selendroid.server.model;
import io.selendroid.android.internal.Point;
import io.selendroid.server.action.touch.FlickDirection;
import io.selendroid.server.model.interactions.Coordinates;
/**
* Interface representing basic touch screen operations.
*/
public interface TouchScreen {
/**
* Allows the... |
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
namespace MahApps.Metro.Controls
{
public class DataGridCellHelper
{
public static readonly DependencyProperty SelectionUnitProperty
= DependencyProperty.RegisterAttached("SelectionUnit",
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
CharIndexTranslator (POI API Documentation)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/ja... |
package org.marketcetera.module;
import org.marketcetera.util.misc.ClassVersion;
import java.util.Date;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/* $License$ */
/**
* An abstraction representing a module that can emit data, consume data o... |
package com.basgeekball.awesomevalidation.helper;
import androidx.core.util.Pair;
import junit.framework.TestCase;
import java.util.ArrayList;
public class RangeHelperTest extends TestCase {
private ArrayList<Pair<Integer, Integer>> expected;
private ArrayList<Pair<Integer, Integer>> ranges;
@Override... |
package com.example.android.sunshine.app.utilities;
import com.example.android.sunshine.app.controler.RestClient;
import com.example.android.sunshine.app.controler.WeatherService;
/**
* Created by Administrador on 25/01/2017.
*/
public class ApiUtils {
private static final String API_BASE_URL = "http://api.op... |
/*globals*/
/*eslint-env node, mocha*/
/**
* @author pmeijer / https://github.com/pmeijer
*/
var testFixture = require('../../_globals.js');
describe('SafeStorage with Passing Authorizer', function () {
'use strict';
var gmeConfig = testFixture.getGmeConfig(),
expect = testFixture.expect,
lo... |
/**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highstock]]
*/
package com.highstock.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript... |
class OffenceImporter < TypeBasedImporter
def self.importer_class
{
'AssaultOffence' => AssaultOffenceImporter,
'GenericOffence' => GenericOffenceImporter,
'RetailTheftOffence' => RetailTheftOffenceImporter
}
end
end
|
<!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_26) on Tue May 08 20:32:58 UTC 2012 -->
<TITLE>
Uses of Class org.apache.hadoop.examples.ExampleDriver (Hadoop 1.0.3 API)
</TITLE>
<META NAME="date"... |
package org.springframework.xd.dsl;
import org.springframework.xd.fluent.internal.XDRestClient;
/**
*
* @author aclement
*/
public class DeployedStream {
private String streamName;
// private StreamState streamState;
private XDRestClient xdrc;
public DeployedStream(String streamName, StreamState streamS... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Matsush. Mycol. Mem. 7: 62 (1993)
#### Original name
Polystratorictus fasciculatus var. fasciculatus Matsush.
### Remarks
null |
#include "sdl_rpc_plugin/commands/mobile/get_file_response.h"
#include "application_manager/application_impl.h"
#include "application_manager/rpc_service.h"
#include "interfaces/MOBILE_API.h"
namespace sdl_rpc_plugin {
using namespace application_manager;
namespace commands {
SDL_CREATE_LOG_VARIABLE("Commands")
Ge... |
containerd supports extending its functionality using most of its defined
interfaces. This includes using a customized runtime, snapshotter, content
store, and even adding gRPC interfaces.
## Smart Client Model
containerd has a smart client architecture, meaning any functionality which is
not required by the daemon i... |
<?php
###
# @name Update to version 3.0.3
# @copyright 2015 by Tobias Reich
###
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
# Add skipDuplicates to settings
$query = Database::prepare($database, "SELECT `key` FROM `?` WHERE `key` = 'skipDuplicates' LIMIT 1", array(LYCHEE_TABLE_SETTINGS));... |
package at.ac.tuwien.dsg.hcu.common.interfaces;
public interface RuleEngineInterface {
public void removeFact(Object obj);
public void insertFact(Object obj);
public void terminate();
}
|
This is my first repository for test.
|
ref: https://docs.docker.com/engine/reference/commandline/cp/
update: 2021-10-11
---
# Usage
Copy files/folders between a container and the local filesystem.
```shell
docker cp OPTIONS SOURCE CONTAINER:DEST
docker cp OPTIONS CONTAINER:SOURCE DEST
```
| Option | Description |
| --- | --- |
| `-a` `--archive` | Archi... |
Test 10-02 Trivy scan a image with vulnerability
=======
# Purpose:
To verify that trivy can scan a image with vulnerability.
# References:
User guide
# Environment:
* This test requires that a Harbor instance is running and available.
* Harbor is installed with trivy enable.
* A linux host with D... |
const {escape, stringify} = require('querystring');
const iframe = require('./IFrame');
/**
* @this {EleventyPage}
* @param {CodepenParam} param
* @return string
*/
function Codepen(param) {
const {
id,
user,
tab = 'result',
theme = 'light',
height = 500,
width = '100%',
allow = [],... |
import videojs from 'video.js';
import { HlsQualitySelectorPlugin } from 'videojs-hls-quality-selector';
import ConcreteButton from 'videojs-hls-quality-selector/src/ConcreteButton';
import ConcreteMenuItem from 'videojs-hls-quality-selector/src/ConcreteMenuItem';
declare const player: videojs.Player;
declare const pl... |
<?php
return array(
'categories' => 'Categorii',
'categories:settings' => 'Setează categoriile siteului',
'categories:explanation' => 'Pentru a seta cateva categorii predefinite ale siteului care vor fi folosite pe întreg sistemul, introdu-le mai jos, separate prin virgulă. Unelte compatibile le vor afișa apoi atunc... |
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0001_squashed_0016_change_page_url_path_to_text_field'),
('people', '0001_initial'),
]
operations = [
migrations.CreateModel(... |
"""
Perovskite crystal structures and formation energies.
"""
import os
import deepchem as dc
from deepchem.molnet.load_function.molnet_loader import TransformerGenerator, _MolnetLoader
from deepchem.data import Dataset
from typing import List, Optional, Tuple, Union
PEROVSKITE_URL = 'https://deepchemdata.s3-us-west-1... |
namespace System.Runtime.Serialization
{
#if CONFIG_SERIALIZATION
using System.IO;
public interface IFormatter
{
// Get or set the binder that performs type lookups.
SerializationBinder Binder { get; set; }
// Get or set the streaming context to use for serialization.
StreamingContext Context { get; set; }
... |
import React from 'react';
import PropTypes from 'prop-types';
import { useMediaSources } from '../../context/MediaSourceContext';
function MediaSourceIcon({ sourceType }) {
const { getMediaSource } = useMediaSources();
const { icon, name } = getMediaSource(sourceType);
return (
<img
height="20dp"
... |
namespace palo {
using palo_udf::FunctionContext;
class LlvmCodeGen;
class MemPool;
class MemTracker;
class ObjectPool;
class RuntimeState;
class Tuple;
class TupleRow;
class TExprNode;
/// --- AggFn overview
///
/// An aggregate function generates an output over a set of tuple rows.
/// An example would be AVG() wh... |
package calculations
import akka.actor._
import akka.routing.RoundRobinPool
import scala.concurrent.duration._
import scala.collection.mutable
import display.MandelbrotDisplay
object Mandelbrot extends App {
calculate(numWorkers = 4, numSegments = 10)
sealed trait MandelbrotMessage
case object Calculate exte... |
package com.maany.ultimamaps;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
su... |
<?php
// Make sure output buffering is turned on before attempting page redirects.
// Best to turn it on in php.ini, but the line below ensures it is on.
ob_start();
// Turns off any browser built-in XSS protections
// LEAVE THIS LINE IN WHILE YOU ARE LEARNING
// We want to get punished for any XSS mistakes...
header... |
<p>Partial View 9</p>
<div class="paths">
<input type="button" value="Path" name="For Path" ng-click="changeToPath()">
<input type="button" value="Arc" name="For Arc" ng-click="changeToArc()">
<input type="button" value="Default Shape" name="For Default" ng-click="changeToDefault()">
<!--<paths></paths... |
package org.apache.drill.exec.physical.impl.aggregate;
import static org.apache.drill.exec.record.RecordBatch.IterOutcome.EMIT;
import static org.apache.drill.exec.record.RecordBatch.IterOutcome.NONE;
import static org.apache.drill.exec.record.RecordBatch.IterOutcome.OK;
import static org.apache.drill.exec.record.Rec... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using ArcGIS.Desktop.Framework;
using ArcGIS.Desktop.Framework.Contracts;
using System.Threading.Tasks;
namespace DivideLines
{
/// <summary>
/// This sample provides a tool that divides a line into an... |
package org.kymjs.kjframe;
import org.kymjs.kjframe.http.Cache;
import org.kymjs.kjframe.http.CacheDispatcher;
import org.kymjs.kjframe.http.DownloadController;
import org.kymjs.kjframe.http.DownloadTaskQueue;
import org.kymjs.kjframe.http.FileRequest;
import org.kymjs.kjframe.http.FormRequest;
import org.kymjs.kjfra... |
package net.nikore.kafka.ws.json;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JacksonFactory {
private static final ObjectMapper mapper = new ObjectMapper();
public static ObjectMapper getMapper() {
return mapper;
}
}
|
<?xml version="1.0" encoding="UTF-8"?>
<billStatus>
<bill>
<updateDate>2017-07-20T17:26:12Z</updateDate>
<congress>115</congress>
<recordedVotes />
<titles>
<item>
<titleType>(Extracted from GPO) Short Titles as Introduced</titleType>
<parentTitleType />
<title>Integrated... |
<?php
/**
*公司人员模型
*
* @since 0.1
*/
namespace app\admin\model;
class Organization extends Base
{
public function organizationCategory()
{
return $this->belongsTo('organizationCategory', 'category_id');
}
} |
package v7pushaction_test
import (
. "code.cloudfoundry.org/cli/actor/v7pushaction"
"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant"
"code.cloudfoundry.org/cli/command/translatableerror"
"code.cloudfoundry.org/cli/util/manifestparser"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = ... |
<?xml version="1.0"?>
<!--
#%L
Secured Properties
===============================================================
Copyright (C) 2016 Brabenetz Harald, Austria
===============================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use thi... |
package com.facebook.buck.testutil.integration;
import com.facebook.buck.io.file.MoreFiles;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.... |
package xitrum.routing
import scala.annotation.tailrec
import scala.collection.mutable.{ArrayBuffer, Map => MMap}
import io.netty.handler.codec.http.HttpMethod
import xitrum.{Action, Log}
import xitrum.annotation.Swagger
import xitrum.scope.request.{Params, PathInfo}
import xitrum.util.LocalLruCache
object RouteCol... |
@class DropboxService;
@interface HomeViewModel : NSObject
- (void)uploadImageToDropBox:(UIImage*)photo;
- (id)initWithDropbox:(DropboxService *)service;
- (void)setGpsDataForCurrentLocation:(NSDictionary *)gpsData;
@end |
package com.google.javascript.jscomp;
import static com.google.common.truth.Truth.assertThat;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.javascript.jscomp.AccessorSummary.PropertyAccessKind;
import com.google.javascript.jscomp.NodeTraversal.Abstract... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace Risersoft.API.GSTN.GSTR3
{
public class RevInv
{
[Required]
[Display(Name = "Identifer if Goods or Services")]
[RegularExpression("^[a-zA-z]+$")]
... |
package db
import (
"database/sql"
"database/sql/driver"
"fmt"
"github.com/jmoiron/sqlx"
"github.com/lib/pq"
_ "github.com/lib/pq"
"github.com/rs/zerolog/log"
"github.com/trasa/watchmud/serverconfig"
"golang.org/x/crypto/ssh"
. "golang.org/x/crypto/ssh/agent"
"io/ioutil"
"net"
"os"
"time"
)
var watchdb ... |
First of all, Particle\Filter expects an array of values to filter. Once you have an array and you have installed
Particle\Filter (preferable with composer), you're ready to filter your array. First you need a new filter.
```php
use Particle\Filter\Filter;
$data = [
'first_name' => ' rick',
'mid_name' => 'van... |
<!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_22) on Sun Aug 26 15:13:10 EDT 2012 -->
<TITLE>
Uses of Class org.newdawn.slick.tests.CanvasSizeTest (Slick - The 2D Library)
</TITLE>
<MET... |
package gov.hhs.fha.nhinc.util;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author svalluripalli
*/
public class StringUtilTest {
public StringUtilTest() {
}
@BeforeClas... |
#include "config.h"
#include "GraphicsSurface.h"
#if USE(GRAPHICS_SURFACE)
#include "GLPlatformContext.h"
#include "GLTransportSurface.h"
#include "NotImplemented.h"
#include "TextureMapperGL.h"
namespace WebCore {
struct GraphicsSurfacePrivate {
GraphicsSurfacePrivate()
{
}
GraphicsSurfacePriva... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2015, Nordic Semiconductor
~ 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 t... |
var config = {
// конфигурируем настройку для своего списка chosen-cft
'.chosen-cft' : { no_results_text: "Такая схема не предусмотрена!",
//allow_single_deselect: true, // пиктограмма "удалить"
width:"100%" // заполн... |
require 'fileutils'
include FileUtils
require 'rubygems'
%w[rake hoe newgem rubigen].each do |req_gem|
begin
require req_gem
rescue LoadError
puts "This Rakefile requires the '#{req_gem}' RubyGem."
puts "Installation: gem install #{req_gem} -y"
exit
end
end
$:.unshift(File.join(File.dirname(__FI... |
package com.gcalsync.component;
import com.gcalsync.log.ErrorHandler;
import com.gcalsync.option.Options;
import com.gcalsync.store.Store;
import javax.microedition.lcdui.*;
/**
* Set options whether to upload events, download events, or both.
*
* @author Thomas Oldervoll, thomas@zenior.no
* @author $Author: th... |
<div class="footer">
<div class="pull-left">
<p>© 2013 btcshirts.co | Shirts printed by <a href="http://unauthorizedprints.com/">Unauthorized Screen Printing</a>.</p>
</div>
<div class="credits pull-right">
<img src="img/WeLv_BC_48px.png" />
<img src="img/coin... |
<?php
declare(strict_types = 1);
namespace Tests\Innmind\TimeContinuum\Earth\Timezone\Asia;
use Innmind\TimeContinuum\{
Earth\Timezone\Asia\Kuwait,
Timezone,
};
use PHPUnit\Framework\TestCase;
class KuwaitTest extends TestCase
{
public function testInterface()
{
$zone = new Kuwait;
$... |
import os
from setuptools import setup
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='manipuldate',
version='0.2.1',
description='Date/Time/DateTime Manipulation Done R... |
ACCEPTED
#### According to
NUB Generator [autonym]
#### Published in
null
#### Original name
null
### Remarks
null |
'use strict';
var keysInValues = require('../../helpers/keysInValues'),
_ = require('../../helpers/lambda-ramda'),
//items = require('../../../constants/items.json'),
config = require('config'),
request = require('sync-request'),
url = 'https://' + config.region +
'.api.... |
require "jquery-iframe_auto_resize/engine"
module JqueryIframeAutoResize
end
|
/* global describe, it, require, beforeEach */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Matrix data structure:
matrix = require( 'dstructs-matrix' ),
// Check whether an element is a finite number
isFiniteNumber = require( 'validate.io-finite' ),
// Module to be te... |
package org.apache.tools.ant.taskdefs.optional.perforce;
import org.apache.myrmidon.api.TaskException;
/*
* P4Revert - revert open files or files in a changelist
*
* @author <A HREF="mailto:leslie.hughes@rubus.com">Les Hughes</A>
*/
public class P4Revert
extends P4Base
{
private String m_revertChange;
... |
// Karma configuration
// Generated on Wed Jun 03 2015 11:26:36 GMT-0400 (EDT)
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '../',
// frameworks to use
// available frameworks: https://npmj... |
import React, { PropTypes } from 'react'
import style from './Subheader.scss'
export const Subheader = ({ text, size, alignment }) => (
<h5 style={{ textAlign: alignment }} className={`${style.subheader} ${style[size]}`}>{text}</h5>
)
Subheader.propTypes = {
text: PropTypes.string.isRequired,
size: PropTypes.st... |
module Azure::ServiceFabric::V7_0_0_42
module Models
#
# Specifying this parameter adds support for reliable collections
#
class ReliableCollectionsRef
include MsRestAzure
# @return [String] Name of ReliableCollection resource. Right now it's
# not used and you can use any string.
... |
package resolve
import (
"context"
"fmt"
"github.com/google/gapid/gapis/atom"
"github.com/google/gapid/gapis/capture"
"github.com/google/gapid/gapis/messages"
"github.com/google/gapid/gapis/service"
"github.com/google/gapid/gapis/service/path"
)
// Atoms resolves and returns the atom list from the path p.
fun... |
require 'pathname'
module Phorminx
autoload :VERSION, 'phorminx/version'
autoload :Logging, 'phorminx/logging'
autoload :CLI, 'phorminx/cli'
autoload :Rails, 'phorminx/rails'
autoload :Loader, 'phorminx/loader'
autoload :Analyser, 'phorminx/analyser'
autoload :Formatter, 'phormin... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>USGMailer - Welcome</title>
<link href="/l... |
<!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" xml:lang="en" lang="en">
<!-- Mirrored from bvs.wikidot.com/system:list-all-pages/p/123 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 10 Jul 2022 06:1... |
Seems straightforward enough
```
=render 'yourdir/your_partial'
```
but remember:
- `yourdir` is relative to `app/views`
- 'your_partial' is expecting '_your_partial.haml' to exist at `app/views/yourdir/`
- `your_partial` can't have any hyphens in it, only underscores
|