code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
'''
Testing class for database API's course related functions.
Authors: Ari Kairala, Petteri Ponsimaa
Originally adopted from Ivan's exercise 1 test class.
'''
import unittest, hashlib
import re, base64, copy, json, server
from database_api_test_common import BaseTestCase, db
from flask import json, jsonify... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zorns-lemma: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>higman-s: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | 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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | Java |
//
// console777.c
// crypto777
//
// Created by James on 4/9/15.
// Copyright (c) 2015 jl777. All rights reserved.
//
#ifdef DEFINES_ONLY
#ifndef crypto777_console777_h
#define crypto777_console777_h
#include <stdio.h>
#include <stdio.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.... | Java |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Lioncoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "core.h"
#include "init.h"
#include "keystore.h"
#include... | Java |
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
requ... | Java |
import React from 'react';
import { View, ScrollView } from 'react-native';
import ConcensusButton from '../components/ConcensusButton';
import axios from 'axios';
const t = require('tcomb-form-native');
const Form = t.form.Form;
const NewPollScreen = ({ navigation }) => {
function onProposePress() {
navig... | Java |
package com.mikescamell.sharedelementtransitions.recycler_view.recycler_view_to_viewpager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.mikescamell.sharedelementtransitions.R;
public class RecyclerViewToViewPagerActivity extends AppCompatActivity {
@Override
protecte... | Java |
define(["ace/ace"], function(ace) {
return function(element) {
var editor = ace.edit(element);
editor.setTheme("ace/theme/eclipse");
editor.getSession().setMode("ace/mode/python");
editor.getSession().setUseSoftTabs(true);
editor.getSession().setTabSize(4);
editor.setShowPrintMargin(false);
return edito... | Java |
/**
* React components for kanna projects.
* @module kanna-lib-components
*/
"use strict";
module.exports = {
/**
* @name KnAccordionArrow
*/
get KnAccordionArrow() { return require('./kn_accordion_arrow'); },
/**
* @name KnAccordionBody
*/
get KnAccordionBody() { return require... | Java |
<?php
namespace App\Helpers\Date;
use Nette;
/**
* Date and time helper for better work with dates. Functions return special
* DateTimeHolder which contains both textual and typed DateTime.
*/
class DateHelper
{
use Nette\SmartObject;
/**
* Create datetime from the given text if valid, or otherwise ... | Java |
---
layout: post
title: "[BOJ] 15686. 치킨 배달"
categories: Algorithm
author: goodGid
---
* content
{:toc}
## Problem
Problem URL : **[치킨 배달](https://www.acmicpc.net/problem/15686)**


---
## [1] Answer Code (18. 10. 15)
``` cp... | 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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | Java |
#include <iostream>
#include <fstream>
#include <seqan/basic.h>
#include <seqan/index.h>
#include <seqan/seq_io.h>
#include <seqan/sequence.h>
#include <seqan/file.h>
#include <seqan/score.h>
#include <seqan/seeds.h>
#include <seqan/align.h>
using namespace seqan;
seqan::String<Seed<Simple> > get_global_seed_chain(se... | Java |
<<<<<<< HEAD
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
<title>Buttons example - Class names</title>
<link rel="stylesheet" type="text/css"... | Java |
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Blog Ads -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-{{site.cfg.adsense_publisher_id}}"
data-ad-slot="{{site.cfg.adsense_unit_no}}"
data-ad-format="auto"></ins>
<script>
(adsbygoogle... | Java |
#include "stdafx.h"
#include "GPUResource.h"
#include <algorithm>
#include "D3D12DeviceContext.h"
CreateChecker(GPUResource);
GPUResource::GPUResource()
{}
GPUResource::GPUResource(ID3D12Resource* Target, D3D12_RESOURCE_STATES InitalState) :GPUResource(Target, InitalState, (D3D12DeviceContext*)RHI::GetDefaultDevice())... | Java |
package com.braintreepayments.api;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.braintreepayments.api.GraphQLConstants.Keys;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Use to construct a card tokenizati... | Java |
package cn.edu.siso.rlxapf;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class DeviceActivity extends AppCompatActivity {
private Button devicePrefOk = null;
@Override
protected vo... | Java |
.bluisha {
box-shadow: 0px 0px 17px #000;
padding: 0 !important;
background: url('https://lh3.googleusercontent.com/37WRn5tePAwnohEIp5zhcwWpl7eNfzZLsekTrZMr-PE=w1334-h667-no') no-repeat center center;
height: 100vh;
background-size: cover;
}
| Java |
require 'spec_helper'
RSpec.configure do |config|
config.before(:suite) do
VCR.configuration.configure_rspec_metadata!
end
end
describe VCR::RSpec::Metadata, :skip_vcr_reset do
before(:all) { VCR.reset! }
after(:each) { VCR.reset! }
context 'an example group', :vcr do
context 'with a nested example... | Java |
/*!
* Bootstrap v2.0.3
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
d... | Java |
<?php
declare(strict_types=1);
namespace OAuth2Framework\Tests\Component\ClientRule;
use InvalidArgumentException;
use OAuth2Framework\Component\ClientRule\ApplicationTypeParametersRule;
use OAuth2Framework\Component\ClientRule\RuleHandler;
use OAuth2Framework\Component\Core\Client\ClientId;
use OAuth2Framework\Comp... | Java |
function countBs(string) {
return countChar(string, "B");
}
function countChar(string, ch) {
var counted = 0;
for (var i = 0; i < string.length; i++) {
if (string.charAt(i) == ch)
counted += 1;
}
return counted;
}
console.log(countBs("BBC"));
// -> 2
console.log(countChar("kakk... | Java |
// dvt
/* 1. Да се напише if-конструкция,
* която изчислява стойността на две целочислени променливи и
* разменя техните стойности,
* ако стойността на първата променлива е по-голяма от втората.
*/
package myJava;
import java.util.Scanner;
public class dvt {
public static void main(String[] args) {
Sca... | Java |
#!/usr/bin/env bash
PYTHONPATH=. DJANGO_SETTINGS_MODULE=sampleproject.settings py.test --create-db
| Java |
//
// DYMEPubChapterFile.h
// DYMEpubToPlistConverter
//
// Created by Dong Yiming on 15/11/13.
// Copyright © 2015年 Dong Yiming. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DYMEPubChapterFile : NSObject
@property (nonatomic, copy) NSString *chapterID;
@property (nonatomic, copy) NSString... | Java |
/*
* Copyright (c) André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
/*---
id: sec-function-calls-runtime-semantics-evaluation
info: Check TypeError is thrown from correct realm with tco-call to class constructor from class [[... | Java |
package com.rootulp.rootulpjsona;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | Java |
<?php
declare(strict_types=1);
namespace JDWil\Xsd\Event;
/**
* Class FoundAnyAttributeEvent
* @package JDWil\Xsd\Event
*/
class FoundAnyAttributeEvent extends AbstractXsdNodeEvent
{
} | Java |
# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
# == Schema Information
#
# Ta... | Java |
// Copyright (c) 2015 Elements of Programming Interviews. All rights reserved.
package com.epi;
import java.util.Random;
public class RabinKarp {
// @include
// Returns the index of the first character of the substring if found, -1
// otherwise.
public static int rabinKarp(String t, String s) {
if (s.len... | Java |
using System;
using System.Collections.Generic;
using Sekhmet.Serialization.Utility;
namespace Sekhmet.Serialization
{
public class CachingObjectContextFactory : IObjectContextFactory
{
private readonly IInstantiator _instantiator;
private readonly ReadWriteLock _lock = new ReadWriteLock();
... | Java |
require "rails_helper"
RSpec.describe DiagnosesController, type: :routing do
describe "routing" do
it "routes to #index" do
expect(:get => "/diagnoses").to route_to("diagnoses#index")
end
it "routes to #new" do
expect(:get => "/diagnoses/new").to route_to("diagnoses#new")
end
it "r... | Java |
__global__ void /*{kernel_name}*/(/*{parameters}*/)
{
int _tid_ = threadIdx.x + blockIdx.x * blockDim.x;
if (_tid_ < /*{num_threads}*/)
{
/*{execution}*/
_result_[_tid_] = /*{block_invocation}*/;
}
}
| Java |
<?php
/*
* This file is part of the puli/manager package.
*
* (c) Bernhard Schussek <bschussek@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Puli\Manager\Tests\Api\Package;
use Exception;
use PHPUnit_Frame... | Java |
#!/usr/bin/env python2.7
import sys
for line in open(sys.argv[1]):
cut=line.split('\t')
if len(cut)<11: continue
print ">"+cut[0]
print cut[9]
print "+"
print cut[10]
| Java |
#ifndef __CXXU_TYPE_TRAITS_H__
#define __CXXU_TYPE_TRAITS_H__
#include <type_traits>
#include <memory>
namespace cxxu {
template <typename T>
struct is_shared_ptr_helper : std::false_type
{
typedef T element_type;
static
element_type& deref(element_type& e)
{ return e; }
static
const elemen... | Java |
package by.itransition.dpm.service;
import by.itransition.dpm.dao.BookDao;
import by.itransition.dpm.dao.UserDao;
import by.itransition.dpm.entity.Book;
import by.itransition.dpm.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import ... | Java |
<scri
<!DOCTYPE html>
<html lang="fr" itemscope="" itemtype="http://schema.org/Blog">
<head> <script>
if (window.parent !== window) {
if (typeof btoa !== "function") {
window.btoa = function (input) {
var str = String(input);
for (var block, charCode, idx = 0, map = chars, o... | Java |
/**
* getRoles - get all roles
*
* @api {get} /roles Get all roles
* @apiName GetRoles
* @apiGroup Role
*
*
* @apiSuccess {Array[Role]} raw Return table of roles
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* [
* {
* "id": 1,
* "name": "Administrator",
* ... | Java |
#include "icu.h"
#include "unicode/uspoof.h"
#define GET_SPOOF_CHECKER(_data) icu_spoof_checker_data* _data; \
TypedData_Get_Struct(self, icu_spoof_checker_data, &icu_spoof_checker_type, _data)
VALUE rb_cICU_SpoofChecker;
VALUE rb_mChecks;
VALUE rb_mRestrictionLevel;
typedef struct {... | Java |
---
layout: sieutv
title: it 227
tags: [ittv]
thumb_re: q7t1227
---
{% include q7t1 key="227" %}
| Java |
import { Component } from 'react';
import format from '../components/format';
import parse from 'date-fns/parse';
import getDay from 'date-fns/get_day';
import Media from 'react-media';
import Page from '../layouts/Page';
import TimelineView from '../components/TimelineView';
import ListView from '../components/ListVie... | Java |
---
title: エレコム 3.5インチ外付けHDD/USB3.0/2.0TB/ホワイト HD-SG2.0U3WH-Dが特価6,980円!送料無料!
author: 激安・格安・特価情報ツウ
layout: post
date: 2016-06-10 23:00:10
permalink: /pc/elecom-hdd-usb3-2tb-white-hd-hd-sg2.0u3wh-d-nttx-6980.html
categories:
- 外付けHDD
---
<div class="img-bg2 img_L">
<a href="//px.a8.net/svt/ejp?a8mat=ZYP6S+8IMA3E+S1Q+BWG... | Java |
### Explanation:
[home.js](https://github.com/vlad3489/ExampleOfCode/blob/master/home.js) - fragment code from project "Moe Misto"
[opening.js](https://github.com/vlad3489/ExampleOfCode/blob/master/opening.cs) - code from game
| Java |
/*
* Simple Vulkan application
*
* Copyright (c) 2016 by Mathias Johansson
*
* This code is licensed under the MIT license
* https://opensource.org/licenses/MIT
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "util/vulkan.h"
#include "util/window.h"
int main() {... | Java |
import { defineAsyncComponent } from 'vue';
import { showModal } from '../../../modal/modal.service';
import { User } from '../../../user/user.model';
import { GameBuild } from '../../build/build.model';
import { Game } from '../../game.model';
import { GamePackage } from '../package.model';
interface GamePackagePurch... | Java |
SET DEFINE OFF;
ALTER TABLE AFW_04_CONTX_ETEND ADD (
CONSTRAINT AFW_04_CONTX_ETEND_FK1
FOREIGN KEY (REF_CONTX)
REFERENCES AFW_04_CONTX (REF_FIL_ARIAN)
ON DELETE CASCADE
ENABLE VALIDATE)
/
| Java |
//
// detail/win_iocp_socket_recvfrom_op.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.lslboost.org/LICENSE_1... | Java |
---
layout: page
subheadline: "The software is and was used in research on concurrent conceptual design of complex systems"
title: "References"
teaser:
categories:
tags:
header: no
permalink: "/references/"
---
### CERA 2017
The tool CEDESK and a processguide for concurrent conceptual design is descibed in a paper ... | Java |
package Rakudobrew::ShellHook::Sh;
use strict;
use warnings;
use 5.010;
use File::Spec::Functions qw(catdir splitpath);
use FindBin qw($RealBin $RealScript);
use Rakudobrew::Variables;
use Rakudobrew::Tools;
use Rakudobrew::VersionHandling;
use Rakudobrew::ShellHook;
use Rakudobrew::Build;
sub get_init_code {
my ... | Java |
---
title: "Krita Brushes Presets Pack v2"
date: 2016-09-16 14:00
thumb: '/img/blog/brush-pack-v2/icon-nylnook-brush-pack-v2-art-pen.jpg'
lang_fr: '/fr/blog/pack-brosses-krita-v2'
tags:
- download
- graphic novel
- making of
- tutorials
---

Time for update ! I'm happ... | Java |
module.exports = (req, res, next) => {
req.context = req.context || {};
next();
};
| Java |
'use strict';
angular.module('achan.previewer').service('imagePreviewService', function () {
var source;
var ImagePreviewService = {
render: function (scope, element) {
element.html('<img src="' + source + '" class="img-responsive" />');
},
forSource: function (src) {
source = src;
re... | Java |
require 'spec_helper'
describe Group do
# Check that gems are installed
# Acts as Taggable on gem
it { should have_many(:base_tags).through(:taggings) }
# Check that appropriate fields are accessible
it { should allow_mass_assignment_of(:name) }
it { should allow_mass_assignment_of(:description) }
it { ... | Java |
#ifndef DIMACSGENERATOR_H
#define DIMACSGENERATOR_H 1
#include <vector>
#include <fstream>
#include "cnfclause.h"
#include "cnfformula.h"
#include "satgenerator.h"
/** A very very basic DIMACS parser. Only parses for cnf formulas. */
class DimacsGenerator : public SatGenerator{
private:
std::string filename;
... | Java |
# -*- coding: utf-8 -*-
# Keyak v2 implementation by Jos Wetzels and Wouter Bokslag
# hereby denoted as "the implementer".
# Based on Keccak Python and Keyak v2 C++ implementations
# by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni,
# Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer
#
# Fo... | Java |
---
layout: post
title: Summer Sailing
excerpt: Random photos of summer sailing and favorite anchorages.
categories: 2016-LakeSuperior
date: 2016-07-27
published: true
image:
ogimage: "2016/DSCF3171.jpg"
images-array:
- path: 2016/DSCF3080.jpg
label:
- path: 2016/DSCF3095.jpg
label:
- path: 2016/DSCF3096... | Java |
package deliver
import (
"testing"
"net/http"
"net/http/httptest"
"reflect"
)
func TestMiddlewareBasic(t *testing.T) {
d := New()
d.Use(MiddlewareHandlerFunc(func(res Response, req *Request, next func()) {
res.Send("Hello")
}))
response, body := testMiddleware(t, d)
expect(t, body, "Hello")
expect(t, r... | Java |
import _plotly_utils.basevalidators
class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="bordercolor", parent_name="sankey.hoverlabel", **kwargs
):
super(BordercolorValidator, self).__init__(
plotly_name=plotly_name,
... | Java |
# Si se lleva a cabo un docker build de portal-andino sin el parámetro "--build-arg IMAGE_VERSION={versión de portal-base}, se usa el ARG IMAGE_VERSION por default
ARG IMAGE_VERSION=release-0.11.3
FROM datosgobar/portal-base:$IMAGE_VERSION
MAINTAINER Leandro Gomez<lgomez@devartis.com>
ARG PORTAL_VERSION
ENV CKAN_HOME ... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace jaytwo.Common.Futures.Numbers
{
public static class MathUtility
{
public static double StandardDeviation(IEnumerable<double> data)
{
var average = data.Average();
var individualDeviations = data.Select(x => Math... | Java |
using FFImageLoading.Forms.Sample.WinPhoneSL.Resources;
namespace FFImageLoading.Forms.Sample.WinPhoneSL
{
/// <summary>
/// Provides access to string resources.
/// </summary>
public class LocalizedStrings
{
private static AppResources _localizedResources = new AppResources();
pu... | Java |
package com.aws.global.dao;
import java.util.ArrayList;
import com.aws.global.classes.Pizza;
import com.aws.global.common.base.BaseDAO;
import com.aws.global.mapper.PizzaRowMapper;
public class PizzaDAO extends BaseDAO{
//SQL Statement when user adds a pizza to his inventory
public void addPizza(String pizzaName... | Java |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "DataStatistic.h"
#import "TalkingData.h"
#import "TalkingDataSMS.h"
FOUNDATION_EXPORT double DataStatisticVersionNumber;
FOUNDATION_EXPORT const unsigned char DataStatisticVersionString[];
| Java |
var test = require('./tape')
var mongojs = require('../index')
test('should export bson types', function (t) {
t.ok(mongojs.Binary)
t.ok(mongojs.Code)
t.ok(mongojs.DBRef)
t.ok(mongojs.Double)
t.ok(mongojs.Long)
t.ok(mongojs.MinKey)
t.ok(mongojs.MaxKey)
t.ok(mongojs.ObjectID)
t.ok(mongojs.ObjectId)
... | Java |
class SuchStreamingBot
class << self
def matches? text
!!(text =~ /hello world/)
end
end
end
| Java |
# Frontend de NOMS/NMX/Normas
Los tres frontend se encuentran en ramas distintas de desarrollo:
* master ---> http://noms.imco.org.mx
* nmx ---> http://nmx.imco.org.mx
* normas ---> http://normas.imco.org.mx
Para cambiar de ramas utilice el comando de GIT
`git checkout ${BRANCH}`
La construcción del siti... | Java |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Les informations générales relatives à un assembly dépendent de
// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations
// associées à un assembly.
[assembly:... | Java |
package com.instaclick.filter;
/**
* Defines a behavior that should be implement by all filter
*
* @author Fabio B. Silva <fabio.bat.silva@gmail.com>
*/
public interface DataFilter
{
/**
* Adds the given {@link Data} if it does not exists
*
* @param data
*
* @return <b>TRUE</b> if the ... | Java |
#include <bits/stdc++.h>
using namespace std;
int count_consecutive(string &s, int n, int k, char x) {
int mx_count = 0;
int x_count = 0;
int curr_count = 0;
int l = 0;
int r = 0;
while (r < n) {
if (x_count <= k) {
if (s[r] == x)
x_count++;
r+... | Java |
# Expectacle
[](https://badge.fury.io/rb/expectacle)
Expectacle ("expect + spectacle") is a small wrapper of `pty`/`expect`.
It can send commands (command-list) to hosts (including network devices etc)
using telnet/ssh session.
Expectacle is portable (instead of ... | Java |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>font-image test</title>
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../web-compon... | Java |
using BaxterWorks.B2.Exceptions;
using BaxterWorks.B2.Types;
namespace BaxterWorks.B2.Extensions
{
public static class BucketExtensions
{
public static Bucket GetOrCreateBucket(this ServiceStackB2Api client, CreateBucketRequest request)
{
try
{
return c... | Java |
.favorites-container{
margin-top: 16px;
min-height: 350px;
padding-bottom: 30px;
font-family: Helvetica, Verdana;
border-radius: 2px;
background: rgba(255,255,255,0.8);
border: solid 2px rgba(255,255,255,0.3);
-webkit-box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
-moz-box-shadow: 2px... | Java |
/*
* The MIT License
*
* Copyright 2017 Arnaud Hamon
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... | Java |
# Potrubi
gemName = 'potrubi'
#requireList = %w(mixin/bootstrap)
#requireList.each {|r| require_relative "#{gemName}/#{r}"}
__END__
| Java |
import numpy as np
import warnings
from .._explainer import Explainer
from packaging import version
torch = None
class PyTorchDeep(Explainer):
def __init__(self, model, data):
# try and import pytorch
global torch
if torch is None:
import torch
if version.parse(tor... | Java |
using Lemonade.Data.Entities;
namespace Lemonade.Data.Commands
{
public interface IUpdateFeature
{
void Execute(Feature feature);
}
} | Java |
# We borrow heavily from the kernel build setup, though we are simpler since
# we don't have Kconfig tweaking settings on us.
# The implicit make rules have it looking for RCS files, among other things.
# We instead explicitly write all the rules we care about.
# It's even quicker (saves ~200ms) to pass -r on the comm... | Java |
/*
Misojs Codemirror component
*/
var m = require('mithril'),
basePath = "external/codemirror/",
pjson = require("./package.json");
// Here we have a few fixes to make CM work in node - we only setup each,
// if they don't already exist, otherwise we would override the browser
global.document = global.document || ... | Java |
// github package provides an API client for github.com
//
// Copyright (C) 2014 Yohei Sasaki
//
// 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/l... | Java |
<?php
namespace Oro\Bundle\AttachmentBundle\Tests\Unit\Entity;
use Oro\Bundle\AttachmentBundle\Entity\File;
use Oro\Bundle\UserBundle\Entity\User;
use Oro\Component\Testing\Unit\EntityTestCaseTrait;
use Oro\Component\Testing\Unit\EntityTrait;
use Symfony\Component\HttpFoundation\File\File as ComponentFile;
class Fil... | Java |
require 'json_diff/version'
# Provides helper methods to compare object trees (like those generated by JSON.parse)
# and generate a list of their differences.
module JSONDiff
# Generates an Array of differences between the two supplied object trees with Hash roots.
#
# @param a [Hash] the left hand side of the c... | Java |
<html>
<head>
<meta http-equiv="Page-Enter" content="revealTrans(Duration=4,Transition=12)">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="language" content="en" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width"... | Java |
---
layout: page
title: Erickson 50th Anniversary
date: 2016-05-24
author: Kyle Fitzpatrick
tags: weekly links, java
status: published
summary: Ut porta eleifend purus, vitae semper nunc blandit.
banner: images/banner/office-01.jpg
booking:
startDate: 09/28/2017
endDate: 09/29/2017
ctyhocn: ATLNBHX
groupCode: E... | Java |
import { observable, action } from 'mobx';
import Fuse from 'fuse.js';
import Activity from './../utils/Activity';
import noop from 'lodash/noop';
import uniqBy from 'lodash/uniqBy';
const inactive = Activity(500);
export default class Story {
@observable keyword = '';
@observable allStories = [];
@observable s... | Java |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import time
import curses
from . import docs
from .content import SubmissionContent, SubredditContent
from .page import Page, PageController, logged_in
from .objects import Navigator, Color, Command
from .exceptions import TemporaryFileError
class Subm... | Java |
#include <zombye/core/game.hpp>
#include <zombye/gameplay/camera_follow_component.hpp>
#include <zombye/gameplay/game_states.hpp>
#include <zombye/gameplay/gameplay_system.hpp>
#include <zombye/gameplay/states/menu_state.hpp>
#include <zombye/gameplay/states/play_state.hpp>
#include <zombye/gameplay/state_component.hpp... | Java |
'use strict';
const Schemas = require('../server/schemas');
const Code = require('code');
const Lab = require('lab');
const expect = Code.expect;
const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
describe('server/schemas.todoSchema', () => {
it('validates object', (done)... | Java |
package mil.nga.geopackage.extension.rtree;
import org.junit.Test;
import java.sql.SQLException;
import mil.nga.geopackage.CreateGeoPackageTestCase;
/**
* Test RTree Extension from a created database
*
* @author osbornb
*/
public class RTreeIndexExtensionCreateTest extends CreateGeoPackageTestCase {
/**
... | Java |
#ifndef MESSAGEFILE_H
#define MESSAGEFILE_H
#include "xmlserializable.h"
#include <QList>
#include <QByteArray>
#include <QImage>
#include "messagekey.h"
#include "messagetypemix.h"
namespace Velasquez
{
class DrawingElement;
}
namespace MoodBox
{
#define MESSAGE_FILE_EXTENSION ".mbm"
#de... | Java |
# Feathers-Vue
> A Vue 2 and FeathersJS 2 fullstack app with authentication, email verification, and email support."
## About
This project uses [Feathers](http://feathersjs.com). An open source web framework for building modern real-time applications and Vue 2 with Server Side Rendering.
This project is not fin... | Java |
/**
* @module popoff/overlay
*
* Because overlay-component is hopelessly out of date.
* This is modern rewrite.
*/
const Emitter = require('events').EventEmitter;
const inherits = require('inherits');
const extend = require('xtend/mutable');
module.exports = Overlay;
/**
* Initialize a new `Overlay`.
*
* ... | Java |
#!/usr/bin/env python
import os
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Test label reading from an MNI tag file
#
# The current directory must be writeable.
#
try:
fname = "mni-tagtest.tag"
channel = open(fname, "wb")
... | Java |
<div class="commune_descr limited">
<p>
Gasville-Oisème est
une commune localisée dans le département de l'Eure-et-Loir en Centre. Elle totalisait 1 176 habitants en 2008.</p>
<p>La commune propose quelques équipements sportifs, elle propose entre autres un centre d'équitation et une boucle de randonnée.<... | Java |
// The MIT License (MIT)
//
// Copyright (c) 2015 Rasmus Mikkelsen
// https://github.com/rasmus/EventFlow
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.