code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
require 'optparse'
require 'pathname'
module EdifactConverter
class CommandLineParser
class << self
attr_writer :options
def options
@options ||= {}
end
def parser
@parser ||= begin
OptionParser.new do|opts|
opts.banner = "Usage: #{$COMMAND_NAME} [... | Java |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root.
/*
* Copyright 2000-2010 JetBrains s.r.o.
*
* 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... | Java |
package org.peerbox.presenter;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.layout.Pane;
public class MainController implements INavigatable {
@FXML
private Pane mainPane;
/*
* (non-Javadoc)
*
* @see org.peerbox.presenter.INavigatable#setContent(javafx.scene.Node)
*/
@Override
... | Java |
//
// LightningSendDownView.h
// TNTLoveFreshBee
//
// Created by apple on 16/10/14.
// Copyright © 2016年 LiDan. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol didLightningSendDownViewCommitDelegate <NSObject>
@optional
- (void)didLightningSendDownViewCommit;
@end
@interface LightningSendDownView : UIV... | Java |
<?php
/*
Template Name: Full Page Width Template
*/
get_header();
while ( have_posts() ) {
the_post();
get_template_part( 'content', 'page-full' );
} // end of the loop
get_footer(); | Java |
print("hello!!!!") | Java |
var monsterArray =
{
"name": "岩龙",
"other": [
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
""
],
"weakness": [
{
"data": [
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
... | Java |
/// <reference path="../definitions/mocha.d.ts"/>
/// <reference path="../definitions/node.d.ts"/>
/// <reference path="../definitions/Q.d.ts"/>
import Q = require('q');
import assert = require('assert');
import path = require('path');
import fs = require('fs');
describe('General Suite', function () {
this.timeou... | Java |
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Gang } from '../models/gang';
import { Session } from '../models/session';
import { CREW_2_ROUTE } from '../../app/app.routes.model';
import { HttpClient } from '@angular/common/http';
@Injectable()
export class CrewServ... | Java |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2001-2011 Hartmut Kaiser
http://spirit.sourceforge.net/
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at h... | Java |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | Java |
//
// kmeans.h
// VoterMLA
//
// Created by MD Shihabul Kabir on 12/5/16.
// Copyright © 2016 MD Shihabul Kabir. All rights reserved.
//
#ifndef kmeans_h
#define kmeans_h
#include "county.h"
#include <vector>
//K-Means Clustering Namespace
namespace KmeansCluster {
//Data Structure to help K-Means Clustering... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>T837185195841212416</title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,600">
<link rel="stylesheet" href="/style.css">
<link... | Java |
#include "NL_ImguiD3D11Renderer.h"
#include <d3d11.h>
#include <d3dcompiler.h>
#include <imgui.h>
namespace NLE
{
namespace GRAPHICS
{
struct VERTEX_CONSTANT_BUFFER
{
float mvp[4][4];
};
ImguiD3D11Renderer::ImguiD3D11Renderer() :
_vertexBuffer(nullptr),
_indexBuffer(nullptr),
_vertexShad... | Java |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | Java |
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */
dbm.registerClass("dbm.thirdparty.facebook.constants.EventTypes", null, function(objectFunctions, staticFunctions, ClassReference) {
//console.log("dbm.thirdparty.fac... | Java |
module TweetStream
class Terminated < ::StandardError; end
class Error < ::StandardError; end
class ConnectionError < TweetStream::Error; end
# A ReconnectError is raised when the maximum number of retries has
# failed to re-establish a connection.
class ReconnectError < StandardError
attr_accessor :tim... | Java |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.
#pragma warning disable CA1801 // Remove unused parameter
#pragma warning disable IDE0060 // Remove unused parameter
using System;
using System.Linq;
using System.Text;
na... | Java |
<?php
namespace FashionGuide\Oauth2\Exceptions;
class AppException extends \Exception
{
} | Java |
#!/bin/bash
# Set up your StartSSL certificates/keys for nginx-proxy
# This script expects your certificate and key files in this folder following
# the nginx-proxy naming convention.
# For example: foo.example.com.crt foo.example.com.key
# are the .crt and .key file for the domain foo.example.com
# Make sure script ... | Java |
'use strict';
// This is the webpack config used for JS unit tests
const Encore = require('@symfony/webpack-encore');
const encoreConfigure = require('./webpack.base.config');
const webpackCustomize = require('./webpack.customize');
// Initialize Encore before requiring the .config file
Encore.configureRuntimeEnviron... | Java |
/***********************
* fallback mode panel *
***********************/
PanelWidget,
PanelApplet,
PanelToplevel {
padding: 0;
background-color: @osd_bg;
background-image: none;
color: #222222;
}
PanelApplet {
border-width: 0;
}
PanelSeparator {
border-width: 0;
background-color: @osd_b... | Java |
@echo off
REM Script to install the updates
net user Administrator p@ssw0rd /active:yes
SET install_dir=%~dp0
REM Getting rid of the \ at the end
SET install_dir=%install_dir:~0,-1%
cd %install_dir%
dir /b %install_dir%\*.cab > updatelist.txt
for /f "delims=" %%i in (updatelist.txt) do (
echo Processing %%i
call... | Java |
# Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: '_petitioneer_session'
| Java |
// Release 1: User Stories
// As a user, I want to be able to create a new grocery list. After that, I need to be able to add an item with a quantity to the list, remove an item, and update the quantities if they change. I need a way to print out the list in a format that is very readable.
// Release 2: Pseudocode
// ... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<script src='matrices.js'></script>
<style>
.indent {
padding-left: 2em;
}
</style>
</head>
<body>
<h3>Color space:</h3>
Spec: <select id='e_color_space'>
<option value='rec601' selected>Rec601</option>
<option value='rec709'>Rec709<... | Java |
Dagaz.Controller.persistense = "setup";
Dagaz.Model.WIDTH = 8;
Dagaz.Model.HEIGHT = 8;
ZRF = {
JUMP: 0,
IF: 1,
FORK: 2,
FUNCTION: 3,
IN_ZONE: 4,
FLAG: 5,
SET_FLAG: 6,
POS_FLAG: 7,
SET_POS_FLAG: 8,
ATTR:... | Java |
#ifndef __GTHREE_VECTOR_KEYFRAME_TRACK_H__
#define __GTHREE_VECTOR_KEYFRAME_TRACK_H__
#if !defined (__GTHREE_H_INSIDE__) && !defined (GTHREE_COMPILATION)
#error "Only <gthree/gthree.h> can be included directly."
#endif
#include <gthree/gthreekeyframetrack.h>
G_BEGIN_DECLS
#define GTHREE_TYPE_VECTOR_KEYFRAME_TRACK ... | Java |
<?php
namespace PHPAuth;
class Auth
{
protected $dbh;
public $config;
public $lang;
public function __construct(\PDO $dbh, $config, $language = "en_GB")
{
$this->dbh = $dbh;
$this->config = $config;
if (version_compare(phpversion(), '5.5.0', '<')) {
... | Java |
namespace InfluxData.Net.InfluxDb.Models.Responses
{
public class User
{
/// <summary>
/// User name.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Whether or not the user is an administrator.
/// </summary>
public bool IsAdmi... | Java |
package id3
import (
"bytes"
"errors"
"io"
"time"
)
var timestampFormats = []string{
"2006-01-02T15:04:05",
"2006-01-02T15:04",
"2006-01-02T15",
"2006-01-02",
"2006-01",
"2006",
}
func parseTime(timeStr string) (time.Time, error) {
for i := range timestampFormats {
t, err := time.Parse(timestampFormats[... | Java |
<div class="demo-menu">
<div class="menu-section">
<p>You clicked on: {{ selected }}</p>
<md-toolbar>
<button md-icon-button [md-menu-trigger-for]="menu">
<md-icon>more_vert</md-icon>
</button>
</md-toolbar>
<md-menu #menu="mdMenu">
<button md-menu-item *ngFor="let item of ... | Java |
using Argolis.Hydra.Annotations;
using Argolis.Models;
using Vocab;
namespace TestHydraApi
{
public class IssueFilter : ITemplateParameters<Issue>
{
[Property(Schema.title)]
public string Title { get; set; }
[Property(Schema.BaseUri + "year")]
[Range(Xsd.integer)]
publ... | Java |
// make a linked list that has one member
// then make 5 nodes - with each node having 1,2,3,4,5 as data
// then print them out
// then work out how to reverse the list by only changing the pointers
// then print again
#include <stdio.h>
#include <stdlib.h> // Including this header to use malloc
struct node {
int n... | Java |
#pragma once
#include <rikitiki/http/content_types.h>
#include <vector>
#include <map>
#include <array>
#include <mxcomp/reflection.h>
#ifdef _MSC_VER
#define constexpr
#endif
namespace rikitiki {
class ConnContext;
struct Response;
template <typename T>
struct ContentHandler_ {
static... | Java |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInit037b77112e3f60b3fb10492299961fe0::getLoader();
| Java |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using Office = Microsoft.Office.Core;
// TODO: Follow these steps to enable the Ribbon (XML) item:
// 1: Copy the following code block into the ThisAd... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
namespace MusicStore.Api
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// Web API configuration and services
// Web API routes
... | Java |
using System.Web.Mvc;
using Microsoft.Practices.Unity;
using Unity.Mvc4;
namespace MVCForum.IOC
{
public static class Bootstrapper
{
public static IUnityContainer Initialise()
{
var container = BuildUnityContainer();
DependencyResolver.SetResolver(new UnityDependencyResolver(container));
... | Java |
{% extends "content_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/copy-to-clipboard.html" import copy_to_clipboard %}
{% block per_page_title %}
Billing details
{% endblock %}
{% block content_column_content %}
{{ page_header('Billing details') }}
<p cl... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InTheHand.Net;
using InTheHand.Net.Sockets;
using InTheHand.Net.Bluetooth;
namespace NXTLib
{
public static class Utils
{
public static string AddressByte2String(byte[] address, bool withcolons)
{
... | Java |
<!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">
<link rel="shortcut icon" href="https://newsblur.com/media/img/favicon.ico" type="image/png" />
<link rel="icon" href="https:... | Java |
<ion-view view-title="Coffee Shop">
<ion-content>
<div class="card">
<div class="item item-divider text-center">
<h2>{{biz.businessName}}</h2>
</div>
<div class="item text-center">
<div><strong>{{biz.street}}</strong></div>
... | Java |
<?php
/**
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace Clash82\EzPlatformStudioTipsBlockBundle\Installer;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\I... | Java |
# Starter Web App
This is my attempt to create a dev workflow which hot reloads client and server side changes.
Note: This is still a work in progress
## Installation
git clone xyz
rm -rf .git
npm install
gulp (npm run dev)
open http://localhost:3000
## Deployment
gulp bundle (npm run bund... | Java |
# frankie - a plugin for sinatra that integrates with the facebooker gem
#
# written by Ron Evans (http://www.deadprogrammersociety.com)
#
# based on merb_facebooker (http://github.com/vanpelt/merb_facebooker)
# and the Rails classes in Facebooker (http://facebooker.rubyforge.org/) from Mike Mangino, Shane Vitarana, &... | Java |
package tutorialHorizon.arrays;
/**
* Created by archithrapaka on 7/4/17.
*/
public class InsertionSort {
public static void insertionSort(int[] items, int n) {
int i, j;
for (i = 1; i < n; i++) {
j = i;
while (j > 0 && (items[j] < items[j - 1])) {
swap(i... | Java |
import { createContext } from 'react';
export const defaultApiStatus = {
offline: false,
apiUnreachable: '',
appVersionBad: false,
};
export default createContext(defaultApiStatus);
| Java |
> Link jsreport browser sdk into your page and easily render a report from the browser or open limited version of jsreport studio inside any web application and let end users to customize their reports. There are various scenarios where this can be used. Typical example can be when application is sending invoices to th... | Java |
module.exports = {
//"@context": { type: String, default: "http://schema.org" },
//"@type": { type: String, default: "Article" },
//>>Properties from NewsArticle
//dateline: String,//The location where the NewsArticle was produced.
//printColumn: String,//The number of the column in which the NewsArticle appears ... | Java |
from flask import Blueprint, request, render_template
from ..load import processing_results
from ..abbr import get_abbr_map
abbr_map = get_abbr_map()
liner_mod = Blueprint('liner', __name__, template_folder='templates', static_folder='static')
@liner_mod.route('/liner', methods=['GET', 'POST'])
def liner():
if r... | Java |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | Java |
# Pluralsight React Components
A library of React components created in "Creating Reusable React Components" on Pluralsight.
## Install
```
npm install ps-react-dr
```
## Issues
I'll add tips for common problems and address any known course issues here.
## Docs
[Component documentation](http://dryzhkov.github.io/ps... | Java |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/tools/qdbus/src/qdbusabstractadaptor.cpp -->
<he... | Java |
typedef struct { f_t x, y; } vec_t, *vec;
//inline
f_t cross(vec a, vec b)
{
return a->x * b->y - a->y * b->x;
}
//inline
vec vsub(vec a, vec b, vec res)
{
res->x = a->x - b->x;
res->y = a->y - b->y;
}
// Does point c lie on the left side of directed edge a->b?
// 1 if left, -1 if right, 0 if on the li... | Java |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | Java |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Experiments - Weking</title>
<link rel="stylesheet" href="dist/css/weking.css">
<link rel="stylesheet" ... | Java |
var fs = require('fs')
var d3 = require('d3')
var request = require('request')
var cheerio = require('cheerio')
var queue = require('queue-async')
var _ = require('underscore')
var glob = require("glob")
var games = []
glob.sync(__dirname + "/raw-series/*").forEach(scrape)
function scrape(dir, i){
var series = d... | Java |
// FoalTS
import { FileSystem } from '../../file-system';
export function createVSCodeConfig() {
new FileSystem()
// TODO: test this line
.cdProjectRootDir()
.ensureDir('.vscode')
.cd('.vscode')
.copy('vscode-config/launch.json', 'launch.json')
.copy('vscode-config/tasks.json', 'tasks.json');... | Java |
import { strictEqual } from 'assert';
import { Config, HttpResponse, HttpResponseOK } from '../core';
import {
SESSION_DEFAULT_COOKIE_HTTP_ONLY,
SESSION_DEFAULT_COOKIE_NAME,
SESSION_DEFAULT_COOKIE_PATH,
SESSION_DEFAULT_CSRF_COOKIE_NAME,
SESSION_DEFAULT_SAME_SITE_ON_CSRF_ENABLED,
SESSION_USER_COOKIE_NAME,
} ... | Java |
doskey comit =python c:\Windows\ComIt\runWithoutRequests.py $*
| Java |
<?php
class Neostrada
{
const API_HOST = 'https://api.neostrada.nl/';
private $_key;
private $_secret;
public function __construct($key, $secret)
{
$this->_key = $key;
$this->_secret = $secret;
}
public function domain($domain)
{
return new Neostrada_Domain($this, $domain);
}
public function save(N... | Java |
---
layout: post
title: "Vim实用技巧进阶(第10章:复制和粘贴) - Practical.Vim.2nd.Edition"
keywords: "vim,practical-vim,copy,paste,register,clipboard,实用技巧"
description: "Practical.Vim.2nd.Edition 实用技巧进阶 第10章:复制和粘贴"
tagline: "Tip 60~64"
date: '2018-11-01 09:44:57 +0800'
category: linux
tags: vim practical-vim linux
---
> {{ page.descr... | Java |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Department extends Model
{
protected $fillable =['name'];
}
| Java |
# (c) Liviu Balan <liv_romania@yahoo.com>
# http://www.liviubalan.com/
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
LIV_TUT_META_URL='http://www.liviubalan.com/git-log-command'
| Java |
module Fae
module BaseModelConcern
extend ActiveSupport::Concern
require 'csv'
attr_accessor :filter
included do
include Fae::Trackable if Fae.track_changes
include Fae::Sortable
end
def fae_display_field
# override this method in your model
end
def fae_nested_par... | Java |
#pragma once
#include <boost/uuid/random_generator.hpp>
#include <boost/uuid/uuid_io.hpp>
#include "util/util.h"
#include "util/stl_ext.h"
namespace collections {
extern boost::optional<std::vector<std::string>> wrap_string(const char *csource, int charsPerLine);
class tes_string : public reflection::class_m... | Java |
package biz.golek.whattodofordinner.business.contract.presenters;
import biz.golek.whattodofordinner.business.contract.entities.Dinner;
/**
* Created by Bartosz Gołek on 2016-02-10.
*/
public interface EditDinnerPresenter {
void Show(Dinner dinner);
}
| Java |
<!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>Robber frog factsheet on ARKive - Eleutherodactylus simulans</... | Java |
\chapter{Constanten}
\section{Globale Constanten}
Dikwijls gebruik je bepaalde waarden doorheen je hele programma. Zo zou je, in een programma dat veel berekeningen met circels moet doen, vaak het getal pi nodig hebben. Dat getal kan je elke keer opnieuw berekenen, maar dat is niet zo'n goed idee omdat de uitkomst van ... | Java |
package main
import (
"github.com/weynsee/go-phrase/cli"
"log"
"os"
)
func main() {
args := os.Args[1:]
c := cli.NewCLI("1.0.0", args)
exitStatus, err := c.Run()
if err != nil {
log.Println(err)
}
os.Exit(exitStatus)
}
| Java |
version https://git-lfs.github.com/spec/v1
oid sha256:2e4cfe75feb71c39771595f8dea4f59e216650e0454f3f56a2a5b38a062b94cf
size 1360
| Java |
require 'spec_helper'
describe ZK::Threadpool do
before do
@threadpool = ZK::Threadpool.new
end
after do
@threadpool.shutdown
end
describe :new do
it %[should be running] do
@threadpool.should be_running
end
it %[should use the default size] do
@threadpool.size.should == ZK... | Java |
<div class="col-xs-7">
<div class="box">
<div class="box-header">
<h3 class="box-title">Order Table</h3>
<div class="box-tools">
<div class="input-group input-group-sm" style="width: 150px;">
<input type="search" class="light-table-filter form-control pull-right" data-table="order-t... | Java |
//
// UIFont+PongMadness.h
// Pong Madness
//
// Created by Ludovic Landry on 2/27/13.
// Copyright (c) 2013 MirageTeam. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIFont (PongMadness)
+ (UIFont *)brothersBoldFontOfSize:(CGFloat)pointSize;
+ (void)printAvailableFonts;
@end
| Java |
//
//
#ifndef _Rectangle_h
#define _Rectangle_h
// Includes
#include <Engine/Core/Shape.h>
#include <Engine/Core/Vector.h>
//==============================================================================
namespace ptc
{
class Ray;
class Rectangle : public Shape
{
public:
Rectangle();
Rectangle( const Vector&... | Java |
package multiwallet
import (
"errors"
"strings"
"time"
eth "github.com/OpenBazaar/go-ethwallet/wallet"
"github.com/OpenBazaar/multiwallet/bitcoin"
"github.com/OpenBazaar/multiwallet/bitcoincash"
"github.com/OpenBazaar/multiwallet/client/blockbook"
"github.com/OpenBazaar/multiwallet/config"
"github.com/OpenBa... | Java |
// Copyright (c) 2012 Pieter Wuille
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "addrman.h"
#include "hash.h"
#include "serialize.h"
#include "streams.h"
int CAddrInfo::GetTriedBucket(const uint256& nKey) const
{
... | Java |
import asyncio
import discord
import datetime
import pytz
from discord.ext import commands
from Cogs import FuzzySearch
from Cogs import Settings
from Cogs import DisplayName
from Cogs import Message
from Cogs import Nullify
class Time:
# Init with the bot reference, and a reference to the s... | Java |
<!DOCTYPE html>
<?xml version="1.0" encoding="UTF-8"?>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Earth Negotiations Bulletin: COP17</title>
<link href="../assets/style/bulletin.css" rel="stylesheet" />
</head>
<body>
<h1>Earth Negotiations... | Java |
/*
* @param parseObject [ParseObject]
* @return [Object]
* */
export const convertBrand = (parseObject) => {
const ret = {};
const object = parseObject.toJSON();
ret.id = object.objectId;
ret.name = object.name;
ret.description = object.description;
ret.images = (object.images || []).map(image => ({ id:... | Java |
<a alt="joel 1" href="#/web/joel/1"><div class="chapter-btn">1</div></a><a alt="joel 2" href="#/web/joel/2"><div class="chapter-btn">2</div></a><a alt="joel 3" href="#/web/joel/3"><div class="chapter-btn">3</div></a> | Java |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... | Java |
#include <iostream>
using namespace std;
int main()
{
int a,b,c,d;
int sum=1080;
while(cin>>a>>b>>c>>d)
{
if(a==0&&b==0&&c==0&&d==0)
break;
if(a>b)
{
sum=(a-b)*9+sum;
}
else if(a<b)
{
sum=((40-b)+a)... | Java |
---
layout: page
title: Donald Singh's 31st Birthday
date: 2016-05-24
author: Teresa Mcdaniel
tags: weekly links, java
status: published
summary: Nam finibus mollis massa eget venenatis. Maecenas suscipit cursus.
banner: images/banner/leisure-01.jpg
booking:
startDate: 10/08/2018
endDate: 10/13/2018
ctyhocn: TCCH... | Java |
---
layout: page
title: Spring International Conference
date: 2016-05-24
author: Helen Kline
tags: weekly links, java
status: published
summary: Vivamus euismod, ipsum at eleifend porttitor, ligula neque accumsan.
banner: images/banner/office-01.jpg
booking:
startDate: 10/10/2019
endDate: 10/15/2019
ctyhocn: RICM... | Java |
---
layout: page
title: Webb Basic Financial Party
date: 2016-05-24
author: Kenneth Schroeder
tags: weekly links, java
status: published
summary: Aliquam erat volutpat. Pellentesque tincidunt luctus neque, ac.
banner: images/banner/leisure-02.jpg
booking:
startDate: 01/03/2017
endDate: 01/07/2017
ctyhocn: MGMDNHX... | Java |
#ifndef COLLISIONALGORITHMB
#define COLLISIONALGORITHMB
#include "CollisionAlgorithm.h"
class CollisionAlgorithmB : public CollisionAlgorithm
{
public:
CollisionAlgorithmB();
~CollisionAlgorithmB();
public:
Tuple4f computeRayTriangleIntersection(Ray3D *ray, const Tuple3f &p0, const Tu... | Java |
/* */
"format cjs";
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.1-master-342ee53
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.toast
* @description
* Toast
*/
MdToastDirective['$inject'] = ["$mdToa... | Java |
<?php
namespace Dvsa\Mot\Frontend\SecurityCardModule\CardOrder\Controller;
use Core\Controller\AbstractDvsaActionController;
use Dvsa\Mot\Frontend\AuthenticationModule\Model\Identity;
use Dvsa\Mot\Frontend\SecurityCardModule\CardOrder\Service\OrderNewSecurityCardSessionService;
use DvsaCommon\Constants\FeatureToggle;... | Java |
/* SaveFileController
*
* Version 1.0
*
* November 13, 2017
*
* Copyright (c) 2017 Cup Of Java. All rights reserved.
*/
package com.cmput301f17t11.cupofjava.Controllers;
import android.content.Context;
import com.cmput301f17t11.cupofjava.Models.Habit;
import com.cmput301f17t11.cupofjava.Models.HabitEvent;
imp... | Java |
import unittest
from katas.beta.what_color_is_your_name import string_color
class StringColorTestCase(unittest.TestCase):
def test_equal_1(self):
self.assertEqual(string_color('Jack'), '79CAE5')
def test_equal_2(self):
self.assertEqual(string_color('Joshua'), '6A10D6')
def test_equal_3(... | Java |
<?php
namespace BoomCMS\Settings;
use BoomCMS\Support\Facades\Settings;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Lang;
abstract class Manager
{
public static function options()
{
$options = [];
foreach (Config::get('boomcms.settingsManagerOptions') as $name => $t... | Java |
package endpoints.algebra.circe
import io.circe.{Decoder => CirceDecoder, Encoder => CirceEncoder}
/**
* Combines both an [[io.circe.Encoder]] and a [[io.circe.Decoder]] into a single type class.
*
* You don’t need to define instances by yourself as they can be derived from an existing pair
* of an [[io.circe... | Java |
# go-miner #
Data Mining Algorithms in GoLang.
## Installation
$ go get github.com/ozzie80/go-miner
## Algorithms
### k-means
Description From [Wikipedia](https://en.wikipedia.org/wiki/K-means_clustering):
> k-means clustering aims to partition n observations into k clusters in which each observation belongs to ... | Java |
namespace UCloudSDK.Models
{
/// <summary>
/// 获取流量信息
/// <para>
/// http://docs.ucloud.cn/api/ucdn/get_ucdn_traffic.html
/// </para>
/// </summary>
public partial class GetUcdnTrafficRequest
{
/// <summary>
/// 默认Action名称
/// </summary>
privat... | Java |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Progress extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this contr... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Andersc.CodeLib.Tester.Helpers
{
public class Book
{
public string Title { get; set; }
public string Publisher { get; set; }
public int Year { get; set; }
}
}
| Java |
## XII. Admin processes
### รันงานของผู้ดูแลระบบ/การจัดการให้เป็นกระบวนการแบบครั้งเดียว
[process formation](./concurrency) เป็นอาร์เรย์ของ process ที่ใช้ในการทำธุรกิจปรกติของ app (เช่นการจัดการ reqeust ของเว็บ) ขณะทำงาน developer มักต้องการทำการดูแลหรือบำรุงรักษาเพียงคนเดียวสำหรับ app เช่น:
* รันการย้ายข้อมูลฐานข้อมู... | Java |
import test from 'ava';
import { spawn } from 'child_process';
test.cb('app should boot without exiting', (t) => {
const cli = spawn('node', [ './cli' ]);
cli.stderr.on('data', (param) => {
console.log(param.toString());
});
cli.on('close', (code) => {
t.fail(`app failed to boot ${code}`);
});
s... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.