answer stringlengths 15 1.25M |
|---|
package fr.jmini.asciidoctorj.testcases;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.asciidoctor.AttributesBuild... |
package fr.sii.ogham.sms.message;
import fr.sii.ogham.core.util.EqualsBuilder;
import fr.sii.ogham.core.util.HashCodeBuilder;
public class PhoneNumber {
/**
* The phone number as string
*/
private String number;
/**
* Initialize the phone number with the provided number.
*
* @param ... |
# Vagrant Kafka Lab
**Prerequistes:** Vagrant (2.0.1), Virtual Box (5.2.0) and Ansible (2.4.1.0)
## Web UIs
- Grafana: [http:
- Prometheus-UI: [http:
## Installation
bash
git clone https://github.com/ineedcode/vagrant-kafka-lab
cd vagrant-kafka-lab
vagrant plugin install vagrant-hostmanager
vagrant up
## Grafana Konfig... |
package org.fastnate.generator.converter;
import java.time.Duration;
import org.fastnate.generator.context.GeneratorContext;
import org.fastnate.generator.statements.ColumnExpression;
import org.fastnate.generator.statements.<API key>;
/**
* Converts a {@link Duration} to an SQL expression.
*
* @author Tobias Liefke... |
module <API key>
# Commands used from new dtk client
def <API key>(node_address, port, path)
endpoint = node_address + ":" + port
response = request_response(path, {}, 'get', endpoint);
response.code == 200
end
def get_node_by_name(<API key>, node_name)
nodes_response = send_request("/rest/api/v... |
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using DNTProfiler.Common.JsonToolkit;
using DNTProfiler.Common.Models;
using DNTProfiler.Common.Mvvm;
using DNTProfiler.Infrastructure.Core;
using DNTProfiler.Infrastructure.ScriptDomVisitors;
using DNTProfiler.Infrastructure.ViewMode... |
html {
font-family: sans-serif;
-<API key>: 100%;
-ms-text-size-adjust: 100%
}
body {
margin: 0
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: ... |
// Generato il: 2014.10.23 alle 11:27:04 AM CEST
package org.cumulus.certificate.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlTyp... |
// Greenplum Database
// @filename:
// CMDIdCast.cpp
// @doc:
// Implementation of mdids for cast functions
#include "naucrates/md/CMDIdCast.h"
#include "naucrates/dxl/xml/CXMLSerializer.h"
using namespace gpos;
using namespace gpmd;
// @function:
// CMDIdCast::CMDIdCast
// @doc:
// ... |
package sdk.chat.demo.examples.api;
import io.reactivex.functions.Consumer;
import sdk.guru.common.DisposableMap;
public class BaseExample implements Consumer<Throwable> {
// Add the disposables to a map so you can dispose of them all at one time
protected DisposableMap dm = new DisposableMap();
@Override
... |
package net.disy.eenvplus.tfes.core.api.query;
// NOT_PUBLISHED
public interface ISuggestionQuery extends ISourceQuery {
String getKeyword();
} |
// Module : <API key>.h
// Created : 16.07.2004
// Modified : 16.07.2004
// Author : Dmitriy Iassenev
// Description : Script value container
#pragma once
#include "object_broker.h"
#ifdef <API key>
#include "script_value.h"
#endif
IC <API key>::~<API key>() { clear(); }
IC void <API... |
package com.jwetherell.algorithms.data_structures.interfaces;
public interface ITree<T> {
/**
* Add value to the tree. Tree can contain multiple equal values.
*
* @param value to add to the tree.
* @return True if successfully added to tree.
*/
public boolean add(T value);
/**
... |
package org.nd4j.linalg.indexing;
import com.google.common.base.Function;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.nd4j.linalg.BaseNd4jTest;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.api.ops.impl.accum.MatchCondition;
import org... |
package com.xiaojinzi.component.error;
public class <API key> extends RuntimeException {
public <API key>() {
}
public <API key>(String message) {
super(message);
}
public <API key>(String message, Throwable cause) {
super(message, cause);
}
public <API key>(Throwable cause) ... |
#/bin/bash
set -x
#wget --user linzhbj@cn.ibm.com --password New=1baby --<API key> -c -r -np -k -L -p \
wget -c -r -np -k -L -p \
http://rchgsa.ibm.com/projects/e/emsol/ccs/build/driver/osee-liberty/rhel7.1/openstack/latest-bld/ |
// file at the top-level directory of this distribution and at
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Conversion from AST representation of types to the ty.rs
//! representation. The main routine here is `ast_ty_to_ty()`: each use
//! is parameterized b... |
package de.uniulm.omi.cloudiator.sword.multicloud.service;
import com.google.common.base.Supplier;
import com.google.common.collect.ImmutableSet;
import com.google.inject.Inject;
import de.uniulm.omi.cloudiator.sword.domain.Cloud;
import de.uniulm.omi.cloudiator.sword.domain.Pricing;
import de.uniulm.omi.cloudiator.swo... |
<!
Generated template for the PicturePage page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
<ion-header>
<ion-navbar>
<div class="adjust-horizontal inline">
<button class="inline-right" (click)="closeModal()" ion-button clear> Cerrar</button>
... |
<!-- This file is machine generated: DO NOT EDIT! -->
# Sparse Tensors
Note: Functions taking `Tensor` arguments can also take anything accepted by
[`tf.convert_to_tensor`](framework.md#convert_to_tensor).
[TOC]
## Sparse Tensor Representation
TensorFlow supports a `SparseTensor` representation for data that is sparse
... |
package com.icfcc.cache.support;
import com.icfcc.cache.Cache;
import java.util.Collection;
/**
* Simple cache manager working against a given collection of caches.
* Useful for testing or simple caching declarations.
*
* @author Costin Leau
* @since 3.1
*/
public class SimpleCacheManager extends <API key> {
... |
title: Floating IPs
redirect_from: latest/usage/openstack/floating-ips
canonical_url: 'https://docs.projectcalico.org/v2.6/usage/openstack/floating-ips'
networking-calico includes beta support for floating IPs. Currently this
requires running {{site.prodname}} as a Neutron core plugin (i.e. `core_plugin =
calico`) ins... |
package fr.fablabmars.model;
import java.util.ArrayList;
import fr.fablabmars.observer.Observable;
import fr.fablabmars.observer.Observer;
/**
* Observable contenant le menu courant.
*
* @author Guillaume Perouffe
* @see Observable
*/
public class CardMenu implements Observable {
/**
* Liste des observate... |
package ru.job4j.collections.tree;
public class BinaryTree<E extends Comparable<E>> extends Tree<E> {
private Node<E> node;
private int size;
private class Node<E> {
private E value;
private Node<E> left;
private Node<E> right;
private Node(E value) {
this.value =... |
<?php include_once('procedures.php'); ?>
<?php include("top.php"); ?>
<script src="./js/visualRound.js"></script>
<style>
#bottomBar {
position: fixed;
left: 0px;
bottom: 0px;
width: 100%;
height: 40px;
background-color: #EEE;
border-top-width: 1px;
... |
# -*- coding: utf-8 -*-
"""
Linguistic and other taggers.
Tagging each token in a sentence with supplementary information,
such as its part-of-speech (POS) tag, and named entity (NE) tag.
"""
__all__ = [
"PerceptronTagger",
"pos_tag",
"pos_tag_sents",
"tag_provinces",
"chunk_parse",
"NER",
]
fro... |
#[doc = r" Value read from the register"]
pub struct R {
bits: u32,
}
#[doc = r" Value to write to the register"]
pub struct W {
bits: u32,
}
impl super::CMAR3 {
#[doc = r" Modifies the contents of the register"]
#[inline(always)]
pub fn modify<F>(&self, f: F)
where
for<'w> F: FnOnce(&R,... |
<?php
namespace Topxia\WebBundle\Listener;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\EventDispatcher\<API key>;
class LocaleListener implements <API key>
{
private $defaultLocale;
public function __construct($defaultLocale)
... |
package com.dexvis.simple.transform;
import javafx.scene.web.HTMLEditor;
import org.simpleframework.xml.transform.Transform;
public class HTMLEditorTransform implements Transform<HTMLEditor>
{
public HTMLEditor read(String value) throws Exception
{
HTMLEditor editor = new HTMLEditor();
editor.setHtmlText(va... |
package ecologylab.bigsemantics.service.crawler;
import java.io.IOException;
/**
* A general framework for crawling resources.
*
* @author quyin
*/
public interface ResourceCrawler<T>
{
/**
* Queue a resource with the given URI.
*
* @param uri
*/
void queue(String uri);
/**
* If the crawler has... |
package net.sf.anpr.rcp.widget;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
public class JCanvasPanel extends JLabel {
private static final long serialVers... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="es">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Thu Apr 10 11:52:58 CEST 2014 -->
<title>State</title>
<meta name="date" content="2014-04-10">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
<script type="tex... |
using SolrNetLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using SolrNetLight.Facet;
namespace SolrNetLight
{
[DataContract]
public class SolrResponse<T>
{
[DataMember(Name="response")]
public SolrResponseBase... |
package com.action.design.pattern.chain;
public class ChainPatternDemo {
private static AbstractLogger getChainOfLoggers() {
AbstractLogger errorLogger = new ErrorLogger(AbstractLogger.ERROR);
AbstractLogger fileLogger = new FileLogger(AbstractLogger.DEBUG);
AbstractLogger consoleLogger = ne... |
package adamin90.com.wpp.model.mostsearch;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class MostSearchData {
@SerializedName("data")
@... |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>ConfigFileExtension Property</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSD... |
var activeElements = [];
var sleepElements = [];
var promises = [];
$.ajax("https://osiproghackuc2015.osisoft.com/piwebapi/assetdatabases/<API key>/elements", {
type : 'GET',
headers: { "Authorization" : "Basic " + btoa("osiproghack\\hackuser051:bO2rA53P2")},
success: function(results){
... |
import { Seq, Set as ISet } from 'immutable';
import { atom, unwrap } from '../derivable';
import { equals } from './equals';
describe('util/equals', () => {
it('should check equality of primitives', () => {
expect(equals(NaN, NaN)).toBe(true);
expect(equals(4, 2 + 2)).toBe(true);
expect(equ... |
# Config
For each project a list of branches can be configured, to which submits should not be allowed, until a merge commit has been merged. |
// Generated from /POI/java/org/apache/poi/hpsf/VariantBool.java
#pragma once
#include <fwd-POI.hpp>
#include <org/apache/poi/hpsf/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class poi::hpsf::VariantBool
: public virtual ::java::lang::Object
{
pub... |
package com.hangon.saying.viewPager;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import an... |
/*
* MaiKe Labs (2016 - 2026)
*
* Written by Jack Tan <jiankemeng@gmail.com>
*
* Connect VCC of the SSD1306 OLED to 3.3V
* Connect GND to Ground
* Connect SCL to i2c clock - GPIO21
* Connect SDA to i2c data - GPIO22
* Connect DC to GND (The scanned i2c address is 0x3C)
*
*/
#include <stdio.h>
#inclu... |
<table border="1" id="table1" style="border-collapse: collapse">
<tr>
<td height="25" align="center"><span style="font-size: 16px"></span></td>
<td height="25" align="center"><span style="font-size: 16px">245</span></td>
<td height="25" align="center"><span style="font-size: 16px"></span></td>
<td height="25px" al... |
# encoding: UTF-8
module TwitterCldr
module Shared
class Hyphenator
class <API key> < StandardError; end
BASE_RESOURCE_PATH = %w(shared hyphenation).freeze
<API key> = 2
<API key> = 2
DEFAULT_NO_HYPHEN = "-'’".freeze
class << self
def get(locale)
locale = <API... |
#include <aws/mediaconvert/model/<API key>.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaConvert
{
namespace Model
{
<API key>::<API key>() :
<API key>(false),
<API key>(<API key>::NOT_SET),
... |
(function(jQuery) {
"use strict";
var control = Echo.Control.manifest("Echo.Tests.Controls.TestControl");
if (Echo.Control.isDefined(control)) return;
control.init = function() {
if (!Echo.Variables) {
Echo.Variables = {};
}
Echo.Variables.TestControl = "production";
this.ready();
};
control.con... |
package com.sadc.game.gameobject.trackobject;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.sadc.game.GameConstants;
import com.sadc.game.gameobject.GameUtils;
import com.sadc.game.gameobject.Player;
/**
* @author f536985 (Tom Farello)
*/
public class Wall exte... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_111) on Wed Feb 22 09:55:43 CET 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.togglz.slack (Togglz 2.4.0.Final API)</title>
<meta name="date" content="2017-02-22">
<link rel="styl... |
class <API key> < <API key>
after_action :verify_authorized
after_action :<API key>, only: [:index]
before_action :require_login
before_action :set_job_application, only: [:show, :edit, :update, :destroy, :followup]
# GET /posting/1/job_application
# GET /posting/1/job_application.json
# def index
# @... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_08) on Wed Jan 10 16:02:59 PST 2007 -->
<TITLE>
Uses of Interface org.apache.hadoop.mapred.<API key> (Hadoop 0.10.1 API)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT ... |
package dx.exec
import dx.api.{DxApi, DxFile}
import dx.core.io.ExecLinkInfo
import dx.core.languages.wdl.{TypeSerialization, <API key>}
import spray.json._
import wdlTools.eval.WdlValues
import wdlTools.types.WdlTypes
case class WfFragInput(blockPath: Vector[Int],
env: Map[String, (WdlTypes.T, W... |
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import java.util.stream.Stream;
import javax.xml.bind.JAXBContext;
... |
<?php
require_once __DIR__.'/../bootstrap/pustaka.php';
$pustaka = new Pustaka\Applications();
return $pustaka->run(); |
# Geranium subacaulescens var. subacutum Boiss. VARIETY
# Status
SYNONYM
# According to
GRIN Taxonomy for Plants
# Published in
Fl. orient. 1:872. 1867
# Original name
null
Remarks
null |
package es.npatarino.android.gotchallenge.chat.message.viewmodel;
import android.net.Uri;
import es.npatarino.android.gotchallenge.chat.message.model.Payload;
public class StickerPayLoad implements Payload {
private String stickerFilePath;
public StickerPayLoad(String stickerFilePath) {
this.stickerFilePath = s... |
exports.view = function() {
this.render();
};
exports.async = function() {
this.render();
}; |
module.exports = {
readFiles: readFiles
};
var filewalker = require('filewalker');
var _ = require('kling/kling.js');
var fs = require('fs');
function readFiles(directory, fileSuffix) {
return new Promise(function(resolve, reject) {
var files = [];
filewalker(directory)
.on('file', f... |
# Search dictionary symbol style
Find symbols within the mil2525d specification that match a keyword.

## Use case
You can use support for military symbology to allow users to report changes in the field using the correct military symbols.
## How to use the sample
By default, leaving the fields blank... |
package com.hundsun.network.gates.wulin.biz.service.pojo.auction;
import com.hundsun.network.gates.luosi.biz.security.ServiceException;
import com.hundsun.network.gates.luosi.common.enums.EnumActiveStatus;
import com.hundsun.network.gates.luosi.common.enums.EnumBidCheckStatus;
import com.hundsun.network.gates.luosi.com... |
layout: post
title: "LeetCode EFS"
subtitle: ""
date: 2019-12-20
author: "Jiayi.Liu"
header-img: "img/post-bg-2015.jpg"
catalog: true
tags:
- LeetCode
- Interview
## 935. Knight Dialer
This question is a great example of seeing a problem from **forward or backwar... |
package com.afollestad.breadcrumb;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.v4.view.ViewCompat;
im... |
package org.b3log.solo.processor;
import org.apache.commons.lang.StringUtils;
import org.b3log.solo.AbstractTestCase;
import org.b3log.solo.<API key>;
import org.b3log.solo.<API key>;
import org.testng.Assert;
import org.testng.annotations.Test;
@Test(suiteName = "processor")
public class <API key> extends AbstractTest... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_171) on Fri Apr 16 05:17:59 UTC 2021 -->
<title><API key>.Builder</title>
<meta name="date" content="2021-04-16">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/... |
// JMP -- flat files don't need a SEP at the end of the last column
#define EOL_HANDLING
#ifdef DOS
#define PATH_SEP '\\'
#else
#ifdef ATT
#define STDLIB_HAS_GETOPT
#ifdef SQLSERVER
#define WIN32
#else
/* the 64 bit defines are for the Metaware compiler */
#define SUPPORT_64BITS
#define DSS_HUGE long long
#define RN... |
package com.stdnull.v2api.model;
import android.os.Bundle;
import android.os.Parcelable;
import java.util.ArrayList;
import java.util.List;
public class V2MainFragModel {
private static final String KEY_V2EXBEAN = "KEY_V2EXBEAN";
private List<V2ExBean> mContentListModel = new ArrayList<>();
public List<V2Ex... |
DROP TABLE IF EXISTS tags;
DROP TABLE IF EXISTS invitations;
DROP TABLE IF EXISTS tasks;
DROP TABLE IF EXISTS projects;
DROP TABLE IF EXISTS teams_users;
DROP TABLE IF EXISTS teams;
DROP TABLE IF EXISTS orgs_users;
DROP TABLE IF EXISTS organizations;
DROP TABLE IF EXISTS users;
CREATE TABLE users
(
id int(11) NOT NUL... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>canvas-nest.js</title>
</head>
<body>
<!
Canvas-nest.js
color="255,0,0"
opacity="0.5" 0.5-1
count="99"
<script type="text/javascript" color="255,0,0" opa... |
<html xmlns:wicket="http://wicket.apache.org">
<wicket:head>
<meta NAME="ROBOTS" CONTENT="noindex" />
</wicket:head>
<wicket:extend>
</wicket:extend>
</html> |
#ifndef CELLO_SIMULATION_H
#define CELLO_SIMULATION_H
#include <algorithm>
#include <stdexcept>
#include <map>
#include <memory>
#include <queue>
#include <string>
#include <vector>
#include <gameplay.h>
#include <core/Delegate.h>
#include <core/SimulationTypes.h>
#include <json/json.h>
#include <ui/Atlas.h>
#include <... |
package org.b3log.solo.model;
public final class Link {
/**
* Link.
*/
public static final String LINK = "link";
/**
* Links.
*/
public static final String LINKS = "links";
/**
* Key of title.
*/
public static final String LINK_TITLE = "linkTitle";
/**
* Ke... |
import {ShopOrderDetail} from './ShopOrderDetail';
export class ShopOrder {
order_id: string;
user_id: number;
username: string;
is_vip: number;
payment: number;
order_no: number;
shopway: number;
status: number;
employee_id: string;
buytime: Date;
orderdealtime: Date;
phone: string;
address: ... |
layout: post
title: -OC
objective-c
NSArray * b = @[@5,@2,@3,@1,@8];
NSMutableArray *a = @[].mutableCopy;
for (int i=0; i<11; i++) {
a[i] = @0;
}
for (NSNumber *num in b) {
int index = [num intValue];
if(a[index]){
a[index] = @([a[index] intValue] + 1);
} els... |
package jenkins.plugins.hygieia;
public class <API key> extends <API key> {
// private HttpClientStub httpClientStub;
public <API key>(String host, String token, String name) {
super(host, token, name);
}
// @Override
// public HttpClientStub getHttpClient() {
// return httpClientStub;
/... |
package cn.aezo.demo.rabbitmq.c05_model_topic;
import cn.aezo.demo.rabbitmq.util.RabbitmqU;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.Envelope;
import java.io.IOException;
/**
* top... |
# AUTOGENERATED FILE
FROM balenalib/aarch64-debian:stretch-run
ENV NODE_VERSION 10.23.1
ENV YARN_VERSION 1.22.4
RUN buildDeps='curl libatomic1' \
&& set -x \
&& for key in \
<API key> \
; do \
gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --batch --keyserver keyserver.p... |
# AUTOGENERATED FILE
FROM balenalib/qemux86-debian:buster-run
ENV GO_VERSION 1.15.8
# gcc for cgo
RUN apt-get update && apt-get install -y --<API key> \
g++ \
gcc \
libc6-dev \
make \
pkg-config \
git \ |
<?php
include("config.php");
$content = file_get_contents($data_munched);
$data = json_decode($content, true);
function sort_by_order ($a, $b)
{
return $b['amount']['total'] - $a['amount']['total'];
}
usort($data["exchanges"], 'sort_by_order');
print_r($data);
?> |
@import url('/static/libs/alice/poptip/1.2.0/poptip.css');
.poptip {
top: 0;
left: 0;
} |
class <API key>
attr_accessor :access_rights
# :internal => :external
def self.attribute_map
{
:access_rights => :accessRights
}
end
def initialize(attributes = {})
# Morph attribute keys into undescored rubyish style
if attributes.to_s != ""
if <API key>.attribute_map["access_rights".... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc on Mon Sep 30 21:58:47 GMT-05:00 2002 -->
<TITLE>
Index ()
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
function asd()
{
parent.document.title="Index ()";
}
</SCRIPT>
<BODY BGCOLOR="whi... |
<reference path="Math.ts"/>
class Entity {
get X(): number {
return this.Position.x;
}
get Y(): number {
return this.Position.y;
}
get Z(): number {
return this.Position.z;
}
constructor(public Position: Vec3) {
}
} |
#pragma once
#include "indexer/feature_decl.hpp"
#include "geometry/point2d.hpp"
#include "std/initializer_list.hpp"
#include "std/limits.hpp"
#include "std/string.hpp"
#include "std/vector.hpp"
#include "3party/osrm/osrm-backend/typedefs.h"
namespace routing
{
using TNodeId = uint32_t;
using TEdgeWeight = double;
\bri... |
define(function (require) {
var SymbolDraw = require('../helper/SymbolDraw');
var LargeSymbolDraw = require('../helper/LargeSymbolDraw');
require('../../echarts').extendChartView({
type: 'scatter',
init: function () {
this._normalSymbolDraw = new SymbolDraw();
this._l... |
/**
* @author fanguozhu
*/
$(function()
{
var tab = new TabPanel("tab",true);
var f_tree = new Fieldset("f_tree","",{
state: Fieldset.OPEN_STATE,
topdown: false
});
var mytree = new PorTreeT("tree", "-1", "",{isDefaultClick:0} );
var dw = new DataWrapper();
dw.service("PRtree")... |
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-<API key>: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline;
}... |
package org.sd.token;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import org.sd.nlp.NormalizedString;
/**
* An nlp.NormalizedString implementation based on this package's tokenization.
* <p>
* @author Spence Koehle... |
package lodVader.spring.REST.models.degree;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import org.junit.Test;
import com.mongodb.BasicDBList;
import com.mongodb.BasicDBObject;
import com.mongodb.DBCollection;
import com.mong... |
package no.api.regurgitator;
import com.fasterxml.jackson.annotation.<API key>;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
@<API key>(ignoreUnknown = true)
public class <API key> extends Configurat... |
package org.minimalj.example.petclinic.frontend;
import org.minimalj.backend.Backend;
import org.minimalj.example.petclinic.model.Vet;
import org.minimalj.frontend.Frontend;
import org.minimalj.frontend.editor.Editor.NewObjectEditor;
import org.minimalj.frontend.form.Form;
public class AddVetEditor extends NewObjectEdi... |
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get -y install curl git vim
git clone https://github.com/openstack-dev/devstack.git -b stable/icehouse devstack/
cd devstack/
wget https://gist.githubusercontent.com/everett-toews/<API key>/raw/<SHA1-like>/local.conf
./stack.sh |
FILES_TO_SERVE=index.html dmcc.js dmcc.css
all: $(addprefix Deploy/, $(FILES_TO_SERVE)) Deploy/build_rules.json
Deploy/build_rules.json: Source/process_build_rules.py
cd Source && ./process_build_rules.py > ../$@.tmp && mv ../$@.tmp ../$@
Deploy/%: Source/%
cp $< $@
run_server_old: all
cd Deploy && php -S l... |
// Client+Extensions.h
// MobileTech Conference 2014
// Ivo Wessel
// Lehrter Str. 57, Haus 2
// D-10557 Berlin
// Phone : +49-(0)30-89 62 64 77
// Mobile: +49-(0)177-4 86 93 77
// Skype : ivo.wessel
// E-Mail: email@ivo-wessel.de
@interface UIColor (Extensions)
- (float) red;
- (float) green;
- (float) blue;
... |
module.exports = unbuild
unbuild.usage = "npm unbuild <folder>\n(this is plumbing)"
var readJson = require("read-package-json")
, rm = require("./utils/gently-rm.js")
, gentlyRm = require("./utils/gently-rm.js")
, npm = require("./npm.js")
, path = require("path")
, fs = require("graceful-fs")
, lifecycle =... |
package hu.akarnokd.rxjava;
import java.util.concurrent.TimeUnit;
import rx.*;
import rx.plugins.RxJavaHooks;
import rx.schedulers.Schedulers;
public class TrackSubscriber1 {
@SuppressWarnings("unchecked")
public static void main(String[] args) throws Exception {
RxJavaHooks.<API key>((observable, onSubscri... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_74) on Fri Apr 01 14:41:57 CDT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Uses of Class org.apache.solr.client.solrj.response.schema.SchemaResponse.SchemaNameResponse (Solr 6.0.0 A... |
package tk.zielony.carbonsamples.feature;
import android.app.Activity;
import android.os.Bundle;
import tk.zielony.carbonsamples.R;
public class TextMarkerActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView... |
// nOpenWeb.h
// janbin
#import <UIKit/UIKit.h>
@interface nOpenWeb_iphone : UIViewController<UIWebViewDelegate>
{
NSString *urlMain;
NSString *type;
NSString *link;
}
@property (strong, nonatomic) NSString *urlMain;
@property (strong, nonatomic) NSString *type;
@property (strong, nonatomic) NSString *lin... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_172) on Wed Mar 13 10:37:22 EDT 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>API Help (jrugged-core 4.0.0-SNAPSHOT API)</title>
<meta name="date" content="2019-03-13">
<link rel="sty... |
package com.hundsun.network.gates.houchao.biz.services.pojo;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
@Service("outFundTrans")
@Scope("prototype")
public class OutFundTrans extends InOutFundTrans
{
protected boolean isTrans()
{
return true;
}
protected boolean ... |
import type { IProviderSettings } from '@spinnaker/core';
import { SETTINGS } from '@spinnaker/core';
export interface <API key> extends IProviderSettings {
defaults: {
account?: string;
};
}
export const <API key>: <API key> = (SETTINGS.providers
.appengine as <API key>) || { defaults: {} };
if (<API key>) {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.