code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
-- Move generator logic
module Kurt.GoEngine ( genMove
, simulatePlayout
, EngineState(..)
, newEngineState
, updateEngineState
, newUctTree
) where
import Control.Arrow ... | Java |
# k0nsl's blog
mirrored blog posts from my personal platform.
| Java |
# CommandBuilder <span style="font-weight:normal; font-size:.5em">extends [Command](#Command)</span>
## Constructor
```js
new Mechan.CommandBuilder(name);
```
| Parameter | Type | Optional | Default | Description ... | Java |
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import * as React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { number } from '@storybook/addon-knobs';
import { LightboxGallery, Props } from './LightboxGallery... | Java |
// app.photoGrid
var Backbone = require("backbone");
// var _ = require("underscore");
var $ = require("jquery");
var ImageGridFuncs = require("./photo_grid_functions");
var ImageCollection = require("../models/photo_grid_image_collection");
var ImageView = require("./photo_grid_image");
module.exports = Backbone.Vi... | Java |
package ua.pp.shurgent.tfctech.integration.bc.blocks.pipes.transport;
import net.minecraft.item.Item;
import net.minecraftforge.common.util.ForgeDirection;
import ua.pp.shurgent.tfctech.integration.bc.BCStuff;
import ua.pp.shurgent.tfctech.integration.bc.ModPipeIconProvider;
import ua.pp.shurgent.tfctech.integration.b... | Java |
package org.crazyit.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
/**
* Description:
* <br/>site: <a href="http://www.crazyit.org">crazyit.org</a>
* <br/>Copyright (C... | Java |
// Remove the particular item
function removeArr(arr , removeItem){
if(arr.indexOf(removeItem) > -1){
arr.splice(arr.indexOf(removeItem),1);
}
return arr;
}
| Java |
declared in [MTMatrix](MTMatrix.hpp.md)
~~~ { .cpp }
MTMatrix::MTMatrix(int rows, int cols)
{
//std::clog << "MTMatrix(" << rows << ", " << cols << ")" << std::endl;
if (cols > 0 && rows > 0) {
_rows = rows;
_cols = cols;
_elements = new double[_rows * _cols];
for (int i=0; i<_rows*_cols; i++) {
_ele... | Java |
package ru.mos.polls.ourapps.ui.adapter;
import java.util.ArrayList;
import java.util.List;
import ru.mos.polls.base.BaseRecyclerAdapter;
import ru.mos.polls.base.RecyclerBaseViewModel;
import ru.mos.polls.ourapps.model.OurApplication;
import ru.mos.polls.ourapps.vm.item.OurApplicationVM;
public class OurAppsAdapte... | Java |
using System;
namespace SourceCodeCounter.Core
{
/// <summary>
/// The exception that is thrown when a command-line argument is invalid.
/// </summary>
internal class InvalidArgumentException : Exception
{
readonly string _argument;
public InvalidArgumentException(strin... | Java |
html{
margin:0 auto;
}
body {
background:url(images_white/background.gif) repeat-y top center #fff;
color:#404040;
/* font:76% Verdana,Tahoma,Arial,sans-serif; */
line-height:1.3em;
margin:0 auto;
padding:0;
}
/* Menu */
#top_menu {
position:relative;
/* color: #6666aa; */
/* background-color: #aaccee; */
... | Java |
#ifndef AssimpSceneLoader_H
#define AssimpSceneLoader_H
#include <string>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <assimp/Importer.hpp>
#include "Common/Singleton.h"
#include "Mesh/Mesh.h"
#include "Shader/ShaderProgram.h"
#include "Scene/Material.h"
using std::string;
class AssimpSceneL... | Java |
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Public Class rptAnalisisVencimiento
Inherits DevExpress.XtraReports.UI.XtraReport
'XtraReport overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByV... | Java |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashbo... | Java |
{# The template expects one input parameter: `active`, which determines what link we are currently at #}
{% load i18n %}
<div class="economy__leftmenu">
<a class="economy__leftbutton resetlink {% if filter is None %}active{% endif %}"
href="{% url 'economy_soci_sessions' %}">{% trans 'X-lists' %}</a>
<a ... | Java |
const gal=[//731-62
'1@001/b4avsq1y2i',
'1@002/50uvpeo7tb',
'1@002/0ypu4wgjxm',
'1@002/b61d80e9pf',
'1@002/f1kb57t4ul',
'1@002/swq38v49nz',
'1@002/zeak367fw1',
'1@003/nx1ld4j9pe',
'1@003/yh0ub5rank',
'1@004/j29uftobmh',
'1@005/0asu1qo75n',
'1@005/4c7bn1q5mx',
'1@005/le3vrzbwfs',
'1@006/ek0tq9wvny',
'1@00... | Java |
//
// semaphore.cpp
//
// Circle - A C++ bare metal environment for Raspberry Pi
// Copyright (C) 2021 R. Stange <rsta2@o2online.de>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either... | Java |
import numpy as np
from scipy import sparse
from scipy.interpolate import interp1d
class calibration(object):
'''
some useful tools for manual calibration
'''
def normalize_zdata(self,z_data,cal_z_data):
return z_data/cal_z_data
def normalize_amplitude(self,z_data,cal_ampdata):
return z_data/cal_ampdata
... | Java |
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this f... | Java |
QUnit.test( "testGetIbanCheckDigits", function( assert ) {
assert.equal(getIBANCheckDigits( 'GB00WEST12345698765432' ), '82', 'Get check digits of an IBAN' );
assert.equal(getIBANCheckDigits( '1234567890' ), '', 'If string isn\'t an IBAN, returns empty' );
assert.equal(getIBANCheckDigits( '' ), '', 'If st... | Java |
<?php
namespace Aqua\SQL;
class Search
extends Select
{
/**
* @var array
*/
public $whereOptions = array();
/**
* @var array
*/
public $havingOptions = array();
/**
* @param array $where
* @param bool $merge
* @return static
*/
public function whereOptions(array $where, $merge = true)
{
if($... | Java |
#pragma once
#include <nstd/Base.h>
class DataProtocol
{
public:
enum MessageType
{
errorResponse,
subscribeRequest,
subscribeResponse,
unsubscribeRequest,
unsubscribeResponse,
tradeRequest,
tradeResponse,
registerSourceRequest,
registerSourceResponse,
registerSinkRequest,... | Java |
---
title: "हरियाणा में सभी पार्टियां बहुमत से दूर"
layout: item
category: ["politics"]
date: 2019-10-24T11:42:44.692Z
image: 1571917364691hariyana-jjp-congress-bjp-hung-assembly.jpg
---
<p>नई दिल्ली: हरियाणा चुनाव के नतीजे काफी दिलचस्प हो गए हैं। अब तक के रुझान में भाजपा यहां आगे जरूर चल रही है, लेकिन बहुमत का आंकड़ा ... | Java |
ALTER TABLE `b_iblock_element` ADD KEY `TIMESTAMP_X` (`TIMESTAMP_X`);
ALTER TABLE `b_iblock_element` ADD KEY `IBLOCK_ID` (`IBLOCK_ID`);
ALTER TABLE `b_iblock_element` ADD KEY `XML_ID` (`XML_ID`);
ALTER TABLE `b_iblock_element` ADD KEY `WF_PARENT_ELEMENT_ID` (`WF_PARENT_ELEMENT_ID`);
ALTER TABLE `b_iblock_element` ADD K... | Java |
/*!
* \file db_mysql_list_entities_report_sql.c
* \brief Returns MYSQL SQL query to create list entities report.
* \author Paul Griffiths
* \copyright Copyright 2014 Paul Griffiths. Distributed under the terms
* of the GNU General Public License. <http://www.gnu.org/licenses/>
... | Java |
/*
* SPDX-License-Identifier: GPL-3.0
*
*
* (J)ava (M)iscellaneous (U)tilities (L)ibrary
*
* JMUL is a central repository for utilities which are used in my
* other public and private repositories.
*
* Copyright (C) 2013 Kristian Kutin
*
* This program is free software: you can redistribute it and/or modify... | Java |
Bitrix 16.5 Business Demo = bf14f0c5bad016e66d0ed2d224b15630
| Java |
/*--[litinternal.h]------------------------------------------------------------
| Copyright (C) 2002 Dan A. Jackson
|
| This file is part of the "openclit" library for processing .LIT files.
|
| "Openclit" is free software; you can redistribute it and/or modify
| it under the terms of the GNU General Public Lice... | Java |
## mostly copied from: http://norvig.com/spell-correct.html
import sys, random
import re, collections, time
TXT_FILE='';
BUF_DIR='';
NWORDS=None;
def words(text): return re.findall('[a-z]+', text)
def train(features):
model = collections.defaultdict(lambda: 1)
for f in features:
model[f] += 1
r... | Java |
<B_lastforums><div id="derniers-forums" class="listagebloc">
<h2><:derniers_forums:></h2>
<ul class="listageconteneur">
<BOUCLE_lastforums(FORUMS){!par date}{0,#ENV{parametre}}{plat}>
<li>
<h4 class="listagetitre"><a href="#URL_ARTICLE#forums">#TITRE</a></h4>
<div class="listageinfo">[(#DATE|affdate)][, <:par_auteur:> ... | Java |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!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/html; charset=UTF-8" />
<title>sense... | Java |
package com.baeldung.webflux;
import static java.time.LocalDateTime.now;
import static java.util.UUID.randomUUID;
import java.time.Duration;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.socket.WebSocketHandler;
import org.springframework.web.reactive.socket.WebSocketSessio... | Java |
/*****************************************************************************
The Dark Mod GPL Source Code
This file is part of the The Dark Mod Source Code, originally based
on the Doom 3 GPL Source Code as published in 2011.
The Dark Mod Source Code is free software: you can redistribute ... | Java |
describe SearchController, type: :controller do
it { is_expected.to route(:get, '/search').to(action: :basic) }
it { is_expected.to route(:get, '/search/entity').to(action: :entity_search) }
describe "GET #entity_search" do
login_user
let(:org) { build(:org) }
def search_service_double
instanc... | Java |
<?php
namespace App\Model;
use PDO;
use Exception;
use App\Model;
use App\Config;
use App\Exceptions\ServerException;
use App\Exceptions\DatabaseInsertException;
class Account extends Model
{
public $id;
public $name;
public $email;
public $service;
public $password;
public $is_active;
pu... | Java |
package org.vaadin.addons.guice.server;
import org.vaadin.addons.guice.servlet.VGuiceApplicationServlet;
import com.google.inject.servlet.ServletModule;
/**
*
* @author Will Temperley
*
*/
public class ExampleGuiceServletModule extends ServletModule {
@Override
protected void configureServlets() {
... | Java |
class Global_var_WeaponGUI
{
idd=-1;
movingenable=false;
class controls
{
class Global_var_WeaponGUI_Frame: RscFrame
{
idc = -1;
x = 0.365937 * safezoneW + safezoneX;
y = 0.379 * safezoneH + safezoneY;
w = 0.170156 * safezoneW;
h = 0.143 * safezoneH;
};
class Global_var_WeaponGUI_Background: ... | Java |
CREATE TABLE "new_american_city_inc_donors" (
"contributor" text,
"aggregate_donation" text
);
| Java |
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class inkMenuAccountLogicController : inkWidgetLogicController
{
[Ordinal(1)] [RED("playerId")] public inkTextWidgetReference PlayerId { get; set; }
[Ordinal(2)] [RED("changeAccountLabe... | Java |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\... | Java |
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.6
-- Dumped by pg_dump version 10.6
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET c... | Java |
--玄星曜兽-女土蝠
function c21520110.initial_effect(c)
--summon & set with no tribute
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(21520110,0))
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c21520110.ntco... | Java |
#include "Data/datadescriptor.h"
#include <type_traits>
#include <QDebug>
unsigned int DataDescriptor::_uid_ctr = 0;
DataDescriptor::DataDescriptor(QString name, QString unit, double factor, Type t) :
_name(name), _unit(unit), _factor(factor), _type(t)
{
_uuid = getUUID();
}
DataDescriptor::DataDescriptor(const QJ... | Java |
/*
-----------------------------------------------------------------------
Copyright: 2010-2015, iMinds-Vision Lab, University of Antwerp
2014-2015, CWI, Amsterdam
Contact: astra@uantwerpen.be
Website: http://sf.net/projects/astra-toolbox
This file is part of the ASTRA Toolbox.
The ASTRA Toolbox is free ... | Java |
#!/usr/bin/env python
# -*- coding: utf-8; py-indent-offset:4 -*-
###############################################################################
#
# Copyright (C) 2015 Daniel Rodriguez
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pub... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.mariotaku.twidere.util.http;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.microedition.io... | Java |
/***************************************************************************
* Title : Find all possible paths from Source to Destination
* URL :
* Date : 2018-02-23
* Author: Atiq Rahman
* Comp : O(V+E)
* Status: Demo
* Notes : comments inline, input sample at '01_BFS_SP.cs'
* meta : tag-graph-dfs, tag-re... | Java |
/***********************************************************************
This file is part of KEEL-software, the Data Mining tool for regression,
classification, clustering, pattern mining and so on.
Copyright (C) 2004-2010
F. Herrera (herrera@decsai.ugr.es)
L. Sánchez (luciano@uniovi.es)
J. A... | Java |
package com.orcinuss.reinforcedtools.item.tools;
import com.google.common.collect.Sets;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemTool;
import java.util.Se... | Java |
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''Copyright (C) 2010 MapAction UK Charity No. 1075977
''
''www.mapaction.org
''
''This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eithe... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Net;
using System.Net.Http;
using System.Net.Http.Formatting;
namespace Admin.Models
{
public class FacilityClient
{
//private string BASE_URL = "http://ihmwcore.azurewebsites.net/api/";
private s... | Java |
/*
This file is part of Darling.
Copyright (C) 2019 Lubos Dolezel
Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Darling i... | Java |
/*
* Copyright © 2004 Noah Levitt
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 3 of the License, or (at your
* option) any later version.
*
* This program is distribu... | Java |
#include "XmlSerializer.h"
namespace dnc {
namespace Xml {
XmlSerializer::XmlSerializer() {}
XmlSerializer::~XmlSerializer() {}
std::string XmlSerializer::ToString() {
return std::string("System.Xml.XmlSerializer");
}
std::string XmlSerializer::GetTypeString() {
return std::string("XmlSerializer"... | Java |
package org.hl7.v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>AgeDetectedIssueCodeのJavaクラス。
*
* <p>次のスキーマ・フラグメントは、このクラス内に含まれる予期されるコンテンツを指定します。
* <p>
* <pre>
* <simpleType name="AgeDetectedIssueCode">
* <restriction base="{urn:hl7-org:v... | Java |
---
title: Puppet ça pête !
author: Deimos
type: post
date: 2010-06-24T14:50:45+00:00
url: /2010/06/24/puppet-ca-pete/
image: /images/Puppet-short.png
thumbnailImage: /thumbnails/Puppet-short.png
thumbnailImagePosition: left
categories:
- Developement
- Hi-Tech
- Linux
- OpenBSD
- Solaris
tags:
- Developeme... | Java |
<?php
/**
* @package Arastta eCommerce
* @copyright Copyright (C) 2015 Arastta Association. All rights reserved. (arastta.org)
* @license GNU General Public License version 3; see LICENSE.txt
*/
// Heading
$_['heading_title'] = 'Produktegenskaper - Grupper';
// Text
$_['text_success'] = 'Endringer ble ... | Java |
code --install-extension brian-anders.sublime-duplicate-text
code --install-extension britesnow.vscode-toggle-quotes
code --install-extension dbaeumer.vscode-eslint
code --install-extension dinhlife.gruvbox
code --install-extension eamodio.gitlens
code --install-extension editorconfig.editorconfig
code --install-extens... | Java |
<?php
/**
* @package Joomla.Platform
* @subpackage Data
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* JDataSet is a collection class ... | Java |
package medium_challenges;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
class BenderSolution {
public static void main(String args[]) {
@SuppressWarnings("resource")
Scanner in = new Scanner(System.in);
int R = in.nextInt();
int C = in.nextInt();
... | Java |
package me.zsj.moment.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
import com.bumptech.glide.load.resource.bitmap.Bit... | Java |
/*
* Copyright (C)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hop... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>reordc_c</TITLE>
</HEAD>
<BODY style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<A name="TOP"></A>
<table style="text-align: left; margin-left: auto; margin-right: auto; width: 800px;"
border="0" cellpadding... | Java |
/*
Rocrail - Model Railroad Software
Copyright (C) 2002-2014 Rob Versluis, Rocrail.net
This program is free software; you can redistribute it and/or
as published by the Free Software Foundation; either version 2
modify it under the terms of the GNU General Public License
of the License, or (at your option) ... | Java |
package clientdata.visitors;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.util.HashMap;
import java.util.Map;
import org.apache.mina.core.buffer.IoBuffer;
import clientdata.VisitorInterface;
public class SlotDefinitionVisitor implements VisitorInterface {
public static class ... | Java |
package fr.eurecom.senml.entity;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;
@PersistenceCapable
public class ContactTest {
@Prima... | Java |
<ion-header>
<ion-navbar color="secondary">
<button ion-button menuToggle>
<ion-icon color="primary" name="menu"></ion-icon>
</button>
<ion-title color="primary">Gourmet Calculator</ion-title>
</ion-navbar>
</ion-header>
<ion-content class="calc">
<form #calcForm="ngForm" (ngSubmit)="onSubmit()"... | Java |
class CustomUrl < ActiveRecord::Base
belongs_to :media_resource
belongs_to :creator, class_name: 'User', foreign_key: :creator_id
belongs_to :updator, class_name: 'User', foreign_key: :updator_id
default_scope lambda{order(id: :asc)}
end
| Java |
package me.anthonybruno.soccerSim.team.member;
import me.anthonybruno.soccerSim.models.Range;
/**
* Player is a class that contains information about a player.
*/
public class Player extends TeamMember {
private final Range shotRange;
private final int goal;
/**
* Creates a new player with a nam... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Newtonsoft.Json;
using SmartStore.Core.Infrastructure;
namespace SmartStore.Collections
{
public abstract class TreeNodeBase<T> where T : TreeNodeBase<T>
{
private T _parent;
private List<T> _children = new L... | Java |
package vizardous.delegate.dataFilter;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import vizardous.util.Converter;
/**
* Filter class that provides filter functionality for data structures with comparable content
*
* @au... | Java |
/*++
Copyright (c) 2008 Microsoft Corporation
Module Name:
ast_smt_pp.h
Abstract:
Pretty printer of AST formulas as SMT benchmarks.
Author:
Nikolaj Bjorner 2008-04-09.
Revision History:
--*/
#ifndef _AST_SMT_PP_H_
#define _AST_SMT_PP_H_
#include"ast.h"
#include<string>
#inclu... | Java |
#!/bin/bash
set -e
echo "$(whoami)"
if [ "$(whoami)" == "root" ]; then
chown -R scrapy:scrapy /home/scrapy/backup
chown --dereference scrapy "/proc/$$/fd/1" "/proc/$$/fd/2" || :
exec gosu scrapy "$@"
fi | Java |
<!DOCTYPE html>
<html>
<head>
<title>!AntiShout demo</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
</head>
<body>
<form action="/">
<p>
<label>Type: text</label>
<input type="text" placeholder="T... | Java |
# Tutorials
## Table of contents
- [Make a server from scratch](https://github.com/Komrod/web-servo/blob/master/tutorials.md#make-a-server-from-scratch)
- [Create a HTTPS server](https://github.com/Komrod/web-servo/blob/master/tutorials.md#make-a-https-server)
## Make a server from scratch
Assuming you start from... | Java |
//
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: ../pdfreporter-core/src/org/oss/pdfreporter/crosstabs/fill/calculation/BucketingServiceContext.java
//
#include "J2ObjC_header.h"
#pragma push_macro("INCLUDE_ALL_OrgOssPdfreporterCrosstabsFillCalculationBucketingServiceContext")
#ifdef RESTRICT_OrgO... | Java |
<?php
return array(
'title' => 'Publicaciones',
'parent' => 'Contenido',
'name' => 'publicación|publicaciones',
'table' =>
array(
'id' => 'ID',
'action' => 'Acción',
'title' => 'Título',
'category_id' => 'Categoría',
'author_id' => 'Autor',
'url_alias' => 'Alias de la URL',
'autho... | Java |
package com.albion.common.graph.algorithms;
import com.albion.common.graph.core.v1.Edge;
import com.albion.common.graph.core.v1.Graph;
import com.albion.common.graph.core.v1.Vertex;
import java.util.ArrayList;
import java.util.List;
public class BreathFirstSearch {
public static Vertex locate(Graph graph, Integer ... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Athame.PluginAPI.Service
{
/// <summary>
/// Represents a collection of items that are retrieved as pages from a service.
/// </summary>
/// <typeparam name="T">The type of eac... | Java |
namespace Animals.Animals
{
public class Kitten : Cat
{
public Kitten(string name, int age) : base(name, age, "Female")
{
}
public override string ProduceSound()
{
return "Meow";
}
}
}
| Java |
URLDetector
===========
URLDetector is an objc program that can find all parts in a string that might refer to an URL.
| Java |
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Platform-specific code for FreeBSD goes here. For the POSIX-compatible
// parts, the implementation is in platform-posix.cc.
#include <osconfig.h>
... | Java |
#! /usr/bin/env python
import logging, logtool
from .page import Page
from .xlate_frame import XlateFrame
LOG = logging.getLogger (__name__)
class Contents:
@logtool.log_call
def __init__ (self, canvas, objects):
self.canvas = canvas
self.objects = objects
@logtool.log_call
def render (self):
w... | Java |
class CfgWeapons {
// Base classes
class ItemCore;
class H_HelmetB;
class H_Cap_red;
class H_Bandanna_khk;
class rhs_booniehat2_marpatd;
// RHSSAF
class rhssaf_helmet_base : H_HelmetB{
rgoc_canAcceptNVG = 1;
};
class rhssaf_helmet_m59_85_nocamo : rhssaf_helmet_base{
rgoc_canAcceptNVG = 1;
};
class rhs... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package services;
import FareCalculator.Calculate;
import java.util.ArrayList;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.PathParam;
import javax.ws.rs.Consumes;
import javax.ws... | Java |
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices
Imports System.Globalization
Imports System.Resources
Imports System.Windows
' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' assoc... | Java |
package xyw.ning.juicer.poco.model;
import xyw.ning.juicer.base.NoProguard;
/**
* Created by Ning-win on 2016/7/30.
*/
public class Size implements NoProguard {
public String url;
public long width;
public long height;
}
| Java |
#include <gtest/gtest.h>
#include "math/integr/WeightedIntegral.h"
#include "math/integr/IntegrationDensities.h"
#include <stdexcept>
#include <cmath>
class WeightedIntegralTest: public testing::Test
{
};
TEST_F(WeightedIntegralTest,Test)
{
rql::integr::WeightedIntegral wi(rql::integr::WeightedIntegral::... | Java |
/********************************************************************
* a A
* AM\/MA
* (MA:MMD
* :: VD
* :: º
* ::
* :: ** .A$MMMMND AMMMD AMMM6 MMMM MMMM6
+ 6::Z. TMMM MMMMMMMMMDA VMMMD AMMM6 MMMMMMMMM6
... | Java |
/*
* Copyright (C) 2014 Matej Kormuth <http://matejkormuth.eu>
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
* ... | Java |
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6" > <![endif]-->
<!--[if IE 7]> <html class="no-js ie7" > <![endif]-->
<!--[if IE 8]> <html class="no-js ie8" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" cont... | Java |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//---... | Java |
<?php
require('../../php/bdd.php');
$bdd->query('DELETE FROM general WHERE 1');
$reqe = $bdd->prepare('INSERT INTO general (name, text, date) VALUES (:label, :text, 0)');
$reqe->execute(array(
"label" => 'titre_accueil',
"text" => $_POST['title']
));
$reqe->CloseCursor();
$reqe = $bdd->prepare('INSERT INTO gen... | Java |
Get required packages
=====================
``` r
library(devtools)
install.packages('tm')
install.packages("SnowballC")
devtools::install_github("cran/wordcloud")
```
Setup corpus
============
- Around here I became frustrated with the CamlCase inconsistencies. Oh well.
- The recursive argument doesn't seem to ... | Java |
#ifndef TOKENS_H
#define TOKENS_H
#define NUMBER 256
#define SYMBOL 257
#endif
| Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navig... | Java |
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
public class SelectOnInput : MonoBehaviour {
public EventSystem eventSystem;
public GameObject selectedObject;
private bool buttonSelected;
// Use this for initialization
void Start () {
}
// Update is called once per ... | Java |
package org.anddev.amatidev.pvb;
import java.util.LinkedList;
import org.amatidev.util.AdEnviroment;
import org.amatidev.util.AdPrefs;
import org.anddev.amatidev.pvb.bug.BugBeetle;
import org.anddev.amatidev.pvb.card.Card;
import org.anddev.amatidev.pvb.card.CardTomato;
import org.anddev.amatidev.pvb.obj.Dialog;
impo... | Java |
<html>
<body>
<table border="0" cellspacing="0" cellpadding="0" align="LEFT">
<tr>
<td><img src="file:///I:/Monografia/2. Diagramas BPMN/3. Generados/Añadir Escuela a proyectos-1.0_0_0.png"/></td>
</tr>
</table>
</body>
</html> | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.