text stringlengths 3 1.05M |
|---|
<?php
class MediaController extends BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
return View::make('modules.pages.home');
}
/**
* Show the form for crea... |
<component name="libraryTable">
<library name="FileUpload node_modules" type="javaScript">
<properties>
<option name="frameworkName" value="node_modules" />
<sourceFilesUrls>
<item url="file://$PROJECT_DIR$/node_modules" />
</sourceFilesUrls>
</properties>
<CLASSES>
<root u... |
using System;
using Xamarin.UITest;
namespace ${namespace}
{
public static class PageExtensions
{
public static ${Name} ${Name}(this IApp app)
{
var page = new ${Name} (app);
if (app.TraitExists(page.Trait))
return page;
throw new Exception ("The ${Name} page was not found.");
}
public static... |
jekyll serve
PAUSE |
package com.linkedin.kafka.cruisecontrol.exception;
/**
* This exception indicates that the percentage of partitions modeled in the load monitor is not enough.
*/
public class NotEnoughValidSnapshotsException extends KafkaCruiseControlException {
public NotEnoughValidSnapshotsException(String msg) {
super(ms... |
require 'assert'
require 'mr/factory'
require 'test/support/models/user'
module MR::Factory
class SystemTests < Assert::Context
desc "MR::Factory for records and models"
subject{ MR::Factory }
should "return a RecordFactory when a Record is passed to `new`" do
factory = subject.new(UserRecord)
... |
#ifndef ICPTRHOLDER_CXX_H
#define ICPTRHOLDER_CXX_H
#include <cassert>
template < class T > class ICPointerHolder {
public:
ICPointerHolder()
: ptr(0)
{
}
ICPointerHolder(T *p)
: ptr(p)
{
}
// copy constructor to support assignment
ICPointerHolder(const ICPointerHolde... |
layout: page
title: Sobre mí
tags: [about]
date: 2017-03-04
comments: false
---
## Educación
### <a href="http://etsiit.ugr.es" target="_blank">ETSIIT</a>
:------------------------|------------------------:
*Ingeniería Informática* | Septiembre 2013 - Ahora
## Habilidades
* __Programación:__ Python, C, C++, OpenMP... |
var abp = abp || {};
(function ($) {
// if (!sweetAlert || !$) {
// return;
// }
if (!swal || !$) {
return;
}
/* DEFAULTS *************************************************/
abp.libs = abp.libs || {};
abp.libs.sweetAlert = {
config: {
'default': {
... |
import { Component, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { ReactiveFormsModule, FormControl, FormGroup } from '@angular/forms';
/**
* Returns `true` if FormControl's value represen... |
package de.schunterkino.kinoapi.sockets;
import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;
import java.nio.charset.Charset;
import java.time.Duration;
import java.time.Instant;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Map.Entry;
i... |
var assert = require('assert');
var util = require('../lib/util.js');
describe('Utility functions', function() {
describe('isFile()', function () {
it('should return true if specified path is a file', function() {
var result = util.isFile('test/fixture/app.css');
assert.equal(result, true);
});... |
<bill session="115" type="s" number="1038" updated="2017-08-31T13:27:19Z">
<state datetime="2017-08-02">REPORTED</state>
<status>
<unknown datetime="2017-08-02"/>
</status>
<introduced datetime="2017-05-04"/>
<titles>
<title type="official" as="introduced">A bill to require the Administrator of the Sm... |
package com.zabonlinedb.data;
import java.io.Serializable;
/**
* ZABonlineDB.RelFactoryBankId
* 12/11/2013 23:29:35
*
*/
@SuppressWarnings("serial")
public class RelFactoryBankId
implements Serializable
{
private Integer factoryId;
private Integer bankId;
public boolean equals(Object o) {
... |
/*
Text Align
A set of responsive, mobile-first classes to set text-align on elements.
Base class names are namespaced across three breakpoints:
* -ns = not-small (covers everything larger than mobile)
* -m = medium
* -l = large
*/
.tl { text-align: left; }
.tr { text-align: right; }
.tc { text-align: center; }
... |
import "reflect-metadata";
import {Connection} from "../../../src/connection/Connection";
import {CockroachDriver} from "../../../src/driver/cockroachdb/CockroachDriver";
import {closeTestingConnections, createTestingConnections, reloadTestingDatabases} from "../../utils/test-utils";
import {Table} from "../../../src/s... |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using Palmmedia.ReportGenerator.Core.Common;
using Palmmedia.ReportGenerator.Core.Logging;
using Palmmedia.ReportGenerator.Core.Parser.Analysis;
using Palmmedia.ReportGenerator.Core.Propert... |
/*
An Open max test application ....
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <time.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <pthread.h>
#include <semaphore.h>
#include "OMX_QCOMExtns.h"
... |
<div class="row">
<div class="col-md-5">
<a ui-sref="produto.insert" class="btn btn-primary">
<i class="glyphicon glyphicon-plus"></i>Novo
</a>
<button type="button" class="btn btn-danger" ng-click="produto.methods.delete(selectedValues)" gumga-confirm="Deseja remover?">
... |
<!DOCTYPE html>
<meta charset="utf-8">
<title>Redirecting to https://react-native-elements.github.io/react-native-elements/docs/1.1.0/slider.html</title>
<meta http-equiv="refresh"
content="0; URL=https://react-native-elements.github.io/react-native-elements/docs/1.1.0/slider.html">
<link rel="canonical" href="https:... |
/**
* Defines the integer factory function and basic operations on it.
* @module factory
*/
var prototype = {}
Object.defineProperty(prototype, 'toString', {
value: function() {
if (this.value.join('') === '') {
return 'undefined'
} else {
return this.sign === '-' ? this.sign + this.value.joi... |
package prog
import (
"fmt"
"github.com/PieterD/glimmer/gli"
)
func (coll *programCollection) calcLocations() error {
attrMap := make(map[string]programAttribute)
for _, group := range coll.groups {
location := uint(0)
for _, program := range group.programs {
for _, buffer := range program.buffers {
fo... |
class Octocat
attr_accessor :title, :author, :image_url, :author_avatar, :updated_at
end
|
ACCEPTED
#### According to
NUB Generator [implicit canonical]
#### Published in
null
#### Original name
null
### Remarks
null |
<?php
include "function.php";
$query = "";
$Name = $City = $Disability = "";
$log = new Admin;
if (isset($_POST['print']) and isset($_POST['patients'])){
}
elseif(isset($_POST['del']) and isset($_POST['patients'])){
foreach ($_POST['patients'] as $pid){
... |
package com.thoughtworks.go.server.scheduling;
import com.thoughtworks.go.server.messaging.GoMessage;
public class ScheduleCheckMessage implements GoMessage {
private String pipelineName;
private long trackingId;
public ScheduleCheckMessage(String pipelineName, long trackingId) {
this.pipelineNa... |
module Fog
module OpenStack
class ContainerInfra
class Real
def delete_cluster(uuid_or_name)
request(
:expects => [204],
:method => 'DELETE',
:path => "clusters/#{uuid_or_name}"
)
end
end
class Mock
def delete_... |
package org.jzy3d.plot3d.primitives.contour;
import java.util.List;
import org.jzy3d.maths.Array;
import org.jzy3d.maths.Coord3d;
import org.jzy3d.plot3d.primitives.LineStrip;
/** Tells if we should merge with any LineStrip according to a maximum distance
* threshold
* @author Martin Pernollet
*/
public class De... |
package net.sourceforge.plantuml.project.timescale;
import net.sourceforge.plantuml.project.time.Day;
public interface TimeScale {
public double getStartingPosition(Day instant);
public double getEndingPosition(Day instant);
public double getWidth(Day instant);
public boolean isBreaking(Day instant);
}
|
<?php
//remove error reporting at deploment time
error_reporting(E_ALL);
ini_set("display_errors", 1);
require_once '../inc/db.php';
//for non php 5.5+ users
require_once '../inc/password.php';
require_once '../inc/functions.php';
require_once '../inc/userOptions.class.php';
$emailError = 0;
$passError = 0;
$nameErr... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
<title>DataTables example</titl... |
from __future__ import print_function, unicode_literals, division, absolute_import
import random as _random
from pyotp.hotp import HOTP
from pyotp.otp import OTP
from pyotp.totp import TOTP
from . import utils
def random_base32(length=16, random=_random.SystemRandom(),
chars=list('ABCDEFGHIJKLMNOPQ... |
using System;
using System.Collections.Generic;
using System.Net;
using System.Xml;
using System.Reflection;
using System.Text;
using System.Threading;
using OpenSim.Framework;
using OpenSim.Framework.Capabilities;
using OpenSim.Framework.Client;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framew... |
echo
echo "RACKSPACE TOOLS"
read -p "Install Rackspace Monitoring Agent (Y/n): " install_monitoring_agent
if test "$install_monitoring_agent" = "Y"; then
# RACKSPACE MONITORING AGENT
echo "deb http://stable.packages.cloudmonitoring.rackspace.com/ubuntu-14.04-x86_64 cloudmonitoring main" > /etc/apt/sources.list.d/ra... |
package org.hl7.fhir.instance.model;
// Generated on Sat, Aug 22, 2015 23:00-0400 for FHIR v0.5.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.instance.model.annotations.Child;
import org.hl7.fhir.instance.model.annotations.Description;
import org.hl7.fhir.instance.mo... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/browser_plugin/browser_plugin_guest.h"
#include <algorithm>
#include "base/message_loop/message_loop.h"
#include "base/str... |
require './test_helper'
class TestDocument < Minitest::Test
def setup
xp = XML::Parser.string('<ruby_array uga="booga" foo="bar"><fixnum>one</fixnum><fixnum>two</fixnum></ruby_array>')
assert_instance_of(XML::Parser, xp)
@doc = xp.parse
assert_instance_of(XML::Document, @doc)
end
def t... |
import findAll from "../functions/findAll.js";
import addClass from "../functions/addClass.js";
import removeClass from "../functions/removeClass.js";
// ####################
// ##### settings #####
// ####################
const class__isHidden = 'js-hidden';
const class__isVisible = 'js-visible';
// ###### script ##... |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package wrapper
import (
"bytes"
"io/ioutil"
"net/http"
"sort"
"strings"
"time"
"code.cloudfoundry.org/cli/api/cloudcontroller"
)
//go:generate counterfeiter . RequestLoggerOutput
// RequestLoggerOutput is the interface for displaying logs
type RequestLoggerOutput interface {
DisplayJSONBody(body []byte) er... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Forcoin</source>
<translation>Σχετικα:Forcoin</translation>
</... |
require 'spec_helper'
require 'socket'
RSpec.describe 'sprout-postgresql' do
before :all do
system('psql -c "select 1" &> /dev/null') && raise('This system already has postgres installed')
expect(system('soloist')).to eq(true)
end
it 'runs postgres on the default port' do
expect do
TCPSocket.o... |
package com.amazonaws.services.codestarnotifications.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/ListTagsForResource"
* target="_top">AWS API Documentation</a>
*/
@Generated("com.amazon... |
package net.savantly.graphite.query;
import java.net.URLConnection;
public interface Formatter<T> extends HasStringValue {
T getData(URLConnection connection);
}
|
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Porphyrellus amylosporus A.H. Sm.
### Remarks
null |
<?php
$va_messages = $this->getVar('messages');
$t_message = $this->getVar('message');
$va_snapshot = $t_message->get('set_snapshot');
$va_communication_ids = array();
foreach($va_messages[$t_message->get('transaction_id')] as $vn_i => $va_communication) {
$va_communication_ids[] = (int)$va_... |
/**
* @license Angular v4.2.3
* (c) 2010-2017 Google, Inc. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/Observable'), require('rxjs/observable/merge'), require('rxjs/operator/share'), require('rxjs/... |
if !!ENV["CI"]
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter '/spec/'
add_filter '/vendor/'
minimum_coverage(90)
end
else
require ... |
package com.nec.strudel.workload.env;
public interface Environment {
void start(ExecConfig conf);
void stop(ExecConfig conf);
void startSuite(ExecConfig conf);
void stopSuite(ExecConfig conf);
}
|
#region Copyright
// Copyright 2017 Gigya Inc. 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
//
// THI... |
package resource
import (
"strings"
jsonyaml "github.com/ghodss/yaml"
"gopkg.in/yaml.v2"
fluxerr "github.com/fluxcd/flux/pkg/errors"
"github.com/fluxcd/flux/pkg/policy"
"github.com/fluxcd/flux/pkg/resource"
)
const (
PolicyPrefix = "fluxcd.io/"
FilterPolicyPrefix = "filter.fluxcd.io/"
// This is the ... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-comp-2596',
templateUrl: './comp-2596.component.html',
styleUrls: ['./comp-2596.component.css']
})
export class Comp2596Component implements OnInit {
constructor() { }
ngOnInit() {
}
}
|
<!-- TODO: Write a brief abstract explaining this sample -->
This sample illustrates construction tools and modify tools for annotation feature classes. The modify tools show how to modify the text, geometry and symbol of annotation features. There are also some tools illustrating how to add callouts and leader line... |
export { default } from "./../../_gen/openfl/display/Bitmap"; |
<!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_43) on Tue Apr 09 16:55:12 ICT 2013 -->
<TITLE>
Uses of Class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink (Hadoop 1.0.4-SNAPSHOT API)... |
package com.duan.musicoco.view.discreteseekbar.internal.drawable;
import android.content.res.ColorStateList;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.support.annotation.NonNull;
/**
* to draw circles/ovals
*
* @hide
*/
public class TrackOvalDra... |
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file... |
System.register(['angular2/core', './PhoneService'], function(exports_1) {
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof... |
module.exports = (config) => {
var log = require('./src/log')(config);
var connpool = require('./src/connection-pool')(log);
return {
Logger: log,
ConnectionStringBuilder: require('./src/connection-string-builder')(config),
ConnectionPool: connpool,
Repository: require('./src... |
import React from 'react';
import { mount } from 'enzyme';
import TabPane from '../src/TabPane';
describe('<TabPane>', () => {
it('Should have class', () => {
mount(<TabPane>Item content</TabPane>)
.assertSingle('div.tab-pane[aria-hidden=true][role="tabpanel"]')
.assertNone('.active');
});
it('... |
<div>
Konfiguriert Hudson für Abfragen auf Änderungen in einer Versionsverwaltung
(Source Code Management system, kurz: SCM).
<p>
Bedenken Sie, dass dies für das Versionsverwaltungssystem CVS eine äußerst
ressourcenintensive Operation darstellt, da Hudson bei jeder Abfrage den
kompletten Arbeitsbereich üb... |
<head profile="http://www.w3.org/2005/10/profile">
{% if page.refresh %} <meta http-equiv="refresh" content="{{ page.refresh.time }}; url={{ page.refresh.url }}" />
{% endif %}
<meta charset="{{ site.charset | default 'utf-8' }}" />
<title>{% if page.title %}{{ page.title }} - {{ site.title }}{% else %}{{ site... |
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>PHPXRef 0.7.1 : Unnamed Project : Require cross reference for my_reporter.php</title>
<link rel="stylesheet" href="../../sample.css" type="text/css">
<link rel="stylesheet" href=".... |
var ipc = require('ipc'),
toolbarUi = require('./modules/toolbar-ui.js'),
broadcast = require('./modules/broadcast.js');
toolbarUi.app.on('ready', toolbarUi.ready);
toolbarUi.app.on('create-window', toolbarUi.createWindow);
toolbarUi.app.on('after-create-window', toolbarUi.afterCreateWindow);
toolbarUi.app.on... |
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
class Utils_Calendar extends Module {
private static $views = array('Agenda','Day','Week','Month','Year');
private $settings = array('first_day_of_week'=>0,
'default_view'=>'Agenda',
'custom_rows'=>null,
'custom_agenda_cols'=>null,
... |
require "rails/railtie"
module Altria
module Pipeline
class Railtie < Rails::Railtie
initializer "altria.pipeline" do
require "altria/pipeline/initializer"
end
end
end
end
|
package rosella
import (
"github.com/twitchyliquid64/CNC/logging"
"bytes"
"fmt"
"sort"
"strings"
"time"
"net"
)
func (c *Client) setNick(nick string) {
if c.nick != "" {
delete(c.server.clientMap, c.key)
for _, channel := range c.channelMap {
delete(channel.clientMap, c.key)
}
}
//Set up new nick
... |
using log4net;
using Mono.Addins;
using Nini.Config;
using OpenMetaverse;
using OpenMetaverse.StructuredData;
using OpenSim.Framework;
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;
using OpenSim.Services.Interfaces;
using System;
using System.Collections.Generic;
using System.Refle... |
using System.Collections.Generic;
using Html2Markdown.Replacement;
namespace Html2Markdown.Scheme {
/// <summary>
/// Allows creation of custom conversion schemes to control conversion
/// </summary>
public interface IScheme {
/// <summary>
/// The collection of IReplacer that for this scheme
/// </summary>
... |
using Skybrud.Social.OAuth;
using Skybrud.Social.Twitter.Endpoints.Raw;
namespace Skybrud.Social.Twitter.OAuth {
/// <summary>
/// Class for handling the communication with the Twitter API. The class ha
/// methods for handling OAuth logins using a three-legged approach as well
/// as logic for ca... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Bull. Soc. mycol. Fr. 14: 155 (1898)
#### Original name
Capnodiastrum tetracerae Pat.
### Remarks
null |
<!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... |
int main(int argc, char const *argv[])
{
auto average_movie_workflow = new train_test_workflow(new average_movie_model);
average_movie_workflow->execute();
return 0;
} |
// File: train.cc
// Author: Karl Moritz Hermann (mail@karlmoritz.com)
// Created: 01-01-2013
// Last Update: Thu 03 Oct 2013 11:27:36 AM BST
// STL
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
// Boost
#include <boost/program_options/variables_map.hpp>
#include <boost/program_options/p... |
/**
* A profile policy is composed of a roleId to define API rights
* and an optional array of restrictions on index and collections
*
* @example
* {
* "roleId": "editor",
* "restrictedTo": {
* "index": "blog",
* "collections": [
* "articles"
* ]
* }
* }
*
* @see https://docs.kuzz... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AcceptFramework.Domain.Evaluation
{
#region EvaluationInternal
public class InternalEvaluationAudit : DomainBase
{
public virtual string ProjectToken { get; set; }
... |
Just copy/link them inside this folder with the following naming pattern:
```
001.ogg
002.ogg
003.ogg
004.ogg
[...]
```
They must be encoded with the Ogg Vorbis format. You can easily transcode them from any format with [FFmpeg](https://ffmpeg.org/download.html):
```
ffmpeg -i input.mp3 -c:a libvorbis -q:a 4 001.ogg
`... |
package org.jsmiparser.util.pair;
public class Pair<T1, T2> {
private T1 first;
private T2 second;
public Pair(T1 first, T2 second) {
this.first = first;
this.second = second;
}
public T1 getFirst() {
return first;
}
public void setFirst(T1 first) {
this.... |
namespace ParentLoad.DataAccess.ERCLevel
{
public partial interface IB09_Region_ReChildDal
{
}
}
|
layout: page
title: Omega Tech Award Ceremony
date: 2016-05-24
author: Gabriel Jenkins
tags: weekly links, java
status: published
summary: Phasellus cursus leo tortor, id cursus.
banner: images/banner/people.jpg
booking:
startDate: 01/22/2016
endDate: 01/24/2016
ctyhocn: AVLHNHX
groupCode: OTAC
published: true
... |
package edu.cmu.sv.ws.ssnoc.data.po;
import com.google.gson.Gson;
public class SearchPO {
private String[] content;
private String type;
public String[] getContent(){return content;}
public void setContent(String[] content){this.content=content;}
public String getType(){return type;}
publ... |
package edu.rochester.urmc.util.aggregate;
import edu.rochester.urmc.util.AggregateOnePass;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
public class AggrVMIN implements AggregateOnePass {
double currmin = Double.MAX_VALUE;
HashMap field = null;
Object levelcd = nul... |
import React from 'react';
import Header from './Header.js';
import Footer from './Footer.js';
const Layout = (props) => {
let path = props.location.pathname;
let segment = path.split('/')[1] || 'root'; // for providing unique keys if needed
return (
<div>
<Header></Header>
{props.children}
... |
package org.apache.avro.mapred.tether;
import java.io.IOException;
import java.io.File;
import java.net.InetSocketAddress;
import java.net.URI;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import org.apache.hadoop.io.NullWritable;
import org... |
package com.gigigo.ggglib.utils;
final public class StringUtils {
private StringUtils() {
}
public static String capitalize(String s) {
if (s == null || s.length() == 0) {
return "";
}
char first = s.charAt(0);
if (Character.isUpperCase(first)) {
return s;
} else {
retur... |
@interface ThumbAnimation : UIView
- (void)removeFromSuperviewWithFade;
@end
|
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ecmascript.ast;
import org.mozilla.javascript.Token;
import org.mozilla.javascript.ast.VariableDeclaration;
public class ASTVariableDeclaration extends AbstractEcmascriptNode<VariableDeclaration> {... |
from django.contrib.auth.models import User
from django.db import models
from abstract import BaseModel
from core import ArticleTag
from woot.apps.core.models import SendMail, MailType
class ArticleEmail(BaseModel):
email = models.EmailField(max_length=100)
tag = models.ForeignKey(ArticleTag, related_name='e... |
module Azure::CognitiveServices::ImageSearch::V1_0
module Models
#
# Defines a recognized entity.
#
class RecognizedEntity < Response
include MsRestAzure
def initialize
@_type = "RecognizedEntity"
end
attr_accessor :_type
# @return [Thing] The entity that was... |
define(function(require, exports) {
var UI_SWITCHABLE = 'ui-switchable';
// 内部默认的 className
exports.UI_SWITCHABLE = UI_SWITCHABLE;
exports.NAV_CLASS = UI_SWITCHABLE + '-nav';
exports.CONTENT_CLASS = UI_SWITCHABLE + '-content';
exports.TRIGGER_CLASS = UI_SWITCHABLE + '-trigger';
exports.PAN... |
package com.loginbox.dropwizard.mybatis.types;
import org.apache.ibatis.type.JdbcType;
import org.junit.Test;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Optional;
import static org.hamcrest.Mat... |
package org.wso2.identity.integration.common.clients.workflow.mgt;
import org.apache.axis2.AxisFault;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.Lo... |
package ameba.container.event;
import ameba.container.Container;
import ameba.core.Application;
/**
* <p>BeginReloadEvent class.</p>
*
* @author icode
*
*/
public class BeginReloadEvent extends ContainerEvent {
/**
* <p>Constructor for BeginReloadEvent.</p>
*
* @param container a {@link ameba... |
package com.laytonsmith.core;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Map;
/**
* All constructs have or can return a certain data type. Sometimes it is useful
* to compare these types at compile time, but since CH isn't strictly type safe,
* that isn't always practical. However, in m... |
package com.jtbdevelopment.core.mongo.spring.social.dao;
import com.jtbdevelopment.core.spring.social.dao.AbstractConnectionRepository;
import org.bson.types.ObjectId;
import org.springframework.security.crypto.encrypt.TextEncryptor;
import org.springframework.social.connect.ConnectionFactoryLocator;
/**
* Date: 12/... |
package ru.job4j.loop;
public class Board {
public String drawBoard(int length, int width) {
StringBuilder myBoard = new StringBuilder();
String slineN = System.getProperty("line.separator");
char cLineN = slineN.charAt(0);
for (int i = 0; i < length; i++) {
for (int ... |
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<file url="file://$PROJECT_DIR$" libraries="{choosemy.tv node_modules}" />
</component>
</project> |
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<session-config>
<session-timeout>5</session-tim... |
@interface ViewController ()
{
NSString *documentPath;
NSBundle *imageBundle;
UIImageView *imageView;
}
@property (nonatomic, strong) SubView *subView;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically... |
//Not using strict: uneven strict support in browsers, #392, and causes
//problems with requirejs.exec()/transpiler plugins that may not be strict.
/*jslint regexp: true, nomen: true, sloppy: true */
/*global window, navigator, document, importScripts, setTimeout, opera */
var requirejs, require, define;
(function (g... |