code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
<?php
declare(strict_types=1);
namespace ShlinkMigrations;
use Doctrine\DBAL\Exception;
use Doctrine\DBAL\Platforms\MySQLPlatform;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\Migrations\AbstractMigration;
use function is_subclas... | Java |
my personal site
| Java |
<?php
namespace RectorPrefix20210615;
if (\class_exists('Tx_Extbase_Property_TypeConverter_AbstractFileFolderConverter')) {
return;
}
class Tx_Extbase_Property_TypeConverter_AbstractFileFolderConverter
{
}
\class_alias('Tx_Extbase_Property_TypeConverter_AbstractFileFolderConverter', 'Tx_Extbase_Property_TypeConve... | Java |
;(function() {
angular.module('app.core')
.config(config);
/* @ngInject */
function config($stateProvider, $locationProvider, $urlRouterProvider) {
$stateProvider
/**
* @name landing
* @type {route}
* @description First page for incoming users, and for default routing
... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
namespace CommonTypes
{
/// <summary>
/// BrokerSite hides the replication in a site making the calls transparent.
/// </summary>
[Serializable]
public class BrokerSiteFrontEnd : IBroker
{
... | Java |
import Route from '@ember/routing/route';
import { A } from '@ember/array';
import { hash } from 'rsvp';
import EmberObject from '@ember/object'
export default Route.extend({
model: function() {
return hash({
exampleModel: EmberObject.create(),
disableSubmit: false,
selectedLanguage: null,
... | Java |
import lowerCaseFirst from 'lower-case-first';
import {handles} from 'marty';
import Override from 'override-decorator';
function addHandlers(ResourceStore) {
const {constantMappings} = this;
return class ResourceStoreWithHandlers extends ResourceStore {
@Override
@handles(constantMappings.getMany.done)
... | Java |
<?php
namespace proyecto\backendBundle\Entity;
/**
* Entidad Respuesta
* @author Javier Burguillo Sánchez
*/
class Respuesta
{
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $respuesta;
/**
* @var \proyecto\backendBundle\Entity\Subpregunta
*/
... | Java |
$('.js-toggle-menu').click(function(e){
e.preventDefault();
$(this).siblings().toggle();
});
$('.nav--primary li').click(function(){
$(this).find('ul').toggleClass('active');
});
| 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 |
function solve(message) {
let tagValidator = /^<message((?:\s+[a-z]+="[A-Za-z0-9 .]+"\s*?)*)>((?:.|\n)+?)<\/message>$/;
let tokens = tagValidator.exec(message);
if (!tokens) {
console.log("Invalid message format");
return;
}
let [match, attributes, body] = tokens;
let attribute... | Java |
"""
Tests for a door card.
"""
import pytest
from onirim import card
from onirim import component
from onirim import core
from onirim import agent
class DoorActor(agent.Actor):
"""
"""
def __init__(self, do_open):
self._do_open = do_open
def open_door(self, content, door_card):
retu... | Java |
/*
**==============================================================================
**
** Copyright (c) 2003, 2004, 2005, 2006, Michael Brasher, Karl Schopmeyer
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and associated documentation files (the "Software"),
** ... | Java |
'use strict';
const test = require('ava');
const hashSet = require('../index');
const MySet = hashSet(x => x);
test('should not change empty set', t => {
const set = new MySet();
set.clear();
t.is(set.size, 0);
});
test('should clear set', t => {
const set = new MySet();
set.add(1);
set.c... | Java |
Unframed XHR
===
Extends the `Unframed` prototype with five methods.
One to send any XHR request to a url that is not yet busy for this application, eventually set a tieout and a callback or emit an application event on response.
~~~
xhrSend(method, url, headers, body, timeout, callback)
~~~
And four conveniences fo... | Java |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2019_08_01
module Models
#
# Response for ListBastionHosts API service call.
#
class BastionHostListResult
... | Java |
### This script fetches level-1 PACS imaging data, using a list generated by the
### archive (in the CSV format), attaches sky coordinates and masks to them
### (by calling the convertL1ToScanam task) and save them to disk in the correct
### format for later use by Scanamorphos.
### See important instructions below.
... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sim908Connect.Lib.Constants
{
internal class CommandFormats
{
internal const string AT_CGSNBASE = "AT+CGSN";
internal const string ATE = "ATE";
internal const s... | Java |
/**
@file std_streambuf.h
@brief suppresses warnings in streambuf.
@author HRYKY
@version $Id: std_streambuf.h 337 2014-03-23 14:12:33Z hryky.private@gmail.com $
*/
#ifndef STD_STREAMBUF_H_20140323003904693
#define STD_STREAMBUF_H_20140323003904693
#include "hryky/pragma.h"
#pragma hryky_pragma_push_... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>SendMessage</title>
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location... | Java |
'use strict';
const path = require('path');
const jwt = require('jsonwebtoken');
const AuthConfig = require(path.resolve('./config')).Auth;
const jwtSecret = AuthConfig.jwt.secret;
const tokenExpirePeriod = AuthConfig.jwt.tokenExpirePeriod;
function generateToken(payLoad) {
const isObject = (typeof payLoad === ... | Java |
html {
background-color: white;
}
ul{
display: inline-block;
}
.listone{
margin-left: 75px;
}
.listtwo{
margin-left: 50px;
}
li{
margin-bottom: 10px;
}
p{
font-size: 10px;
margin:0px;
}
h1 p{
text-align: center;
font-weight: bold;
}
h1{
border-bottom: 1px solid black;
padding-bottom: 10px;
}... | Java |
//
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: android/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ASN1Enumerated.java
//
#ifndef _OrgApacheHarmonySecurityAsn1ASN1Enumerated_H_
#define _OrgApacheHarmonySecurityAsn1ASN1Enumerated_H_
#include "J2ObjC_header.h"
#include "org/apache/... | Java |
<!-- START REVOLUTION SLIDER 5.0 -->
<div id="slider_container" class="rev_slider_wrapper">
<div id="rev-slider" class="rev_slider" data-version="5.0">
<ul>
<li data-transition="slideremovedown">
<!-- MAIN IMAGE -->
<img src="<?php echo $this->common->theme_link(... | Java |
<?php
namespace AppBundle\Form;
use AppBundle\AppBundle;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class ProductType extends AbstractType
{
/**
* {@inherit... | Java |
---
layout: post
date: 2016-10-16
title: "Sherri Hill Prom Dresses Style 32176 Sleeveless Sweep/Brush Train Aline/Princess"
category: Sherri Hill
tags: [Sherri Hill ,Sherri Hill,Aline/Princess ,Strapless,Sweep/Brush Train,Sleeveless]
---
### Sherri Hill Prom Dresses Style 32176
Just **$399.99**
### Sleeveless Sweep/... | Java |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from conans.model import Generator
from conans.client.generators import VisualStudioGenerator
from xml.dom import minidom
from conans.util.files import load
class VisualStudioMultiGenerator(Generator):
template = """<?xml version="1.0" encoding="utf-8"?>
<P... | Java |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class M_slider extends Main_model {
function __construct() {
parent::__construct();
$this->table = array(
'name' => 'tbl_slider',
'coloumn' => array(
'slider_id' => ar... | Java |
# Digits
- [Data source](https://archive.ics.uci.edu/ml/datasets/Optical+Recognition+of+Handwritten+Digits)
- Train dataset: Samples: 3823 Attributes: 65
- Test dataset: Samples: 1,797 Attributes: 65
- Dont use first column
- Target column: last column (class 0-9)
- Additional preprocessing needed: feature scal... | Java |
package org.katlas.JavaKh.rows;
import org.katlas.JavaKh.utils.RedBlackIntegerTree;
public class RedBlackIntegerMap<F> extends RedBlackIntegerTree<F> implements MatrixRow<F> {
/**
*
*/
private static final long serialVersionUID = 5885667469881867107L;
public void compact() {
}
public voi... | Java |
---
title: DataCite Member Mailing List Subscription
layout: service
---
# Thank you for subscribing to the DataCite Member Mailing List
This confirms that you have succesfully subscribed to the DataCite Member Mailing List. Please contact info@datacite.org should you have any queries. For further information about o... | Java |
/**
* 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.
*/
package com.microsoft.azure.management.mediaservices.v2018_07_01;
import com.fasterxml.... | Java |
/**
* 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.
* jkl
*/
package com.microsoft.azure.management.apimanagement.v2019_12_01.implementation;
... | Java |
<?php
/**
* Created by PhpStorm.
* User: jmannion
* Date: 04/08/14
* Time: 22:17
*/
namespace JamesMannion\ForumBundle\Form\User;
use Symfony\Component\Form\FormBuilderInterface;
use JamesMannion\ForumBundle\Constants\Label;
use JamesMannion\ForumBundle\Constants\Button;
use JamesMannion\ForumBundle\Constants\Va... | Java |
/**
* @file main.c
* @brief Main routine
*
* @section License
*
* Copyright (C) 2010-2015 Oryx Embedded SARL. All rights reserved.
*
* 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; eit... | Java |
### Standalone SearchBox
```jsx
const { compose, withProps, lifecycle } = require("recompose");
const {
withScriptjs,
} = require("react-google-maps");
const { StandaloneSearchBox } = require("react-google-maps/lib/components/places/StandaloneSearchBox");
const PlacesWithStandaloneSearchBox = compose(
withProps({... | Java |
/*! Slidebox.JS - v1.0 - 2013-11-30
* http://github.com/trevanhetzel/slidebox
*
* Copyright (c) 2013 Trevan Hetzel <trevan.co>;
* Licensed under the MIT license */
slidebox = function (params) {
// Carousel
carousel = function () {
var $carousel = $(params.container).children(".carousel"),
... | Java |
<?php
// =============================================================================
// VIEWS/ETHOS/_POST-CAROUSEL.PHP
// -----------------------------------------------------------------------------
// Outputs the post carousel that appears at the top of the masthead.
// ============================================... | Java |
import test from 'ava';
import Server from '../../src/server';
import IO from '../../src/socket-io';
test.cb('mock socket invokes each handler with unique reference', t => {
const socketUrl = 'ws://roomy';
const server = new Server(socketUrl);
const socket = new IO(socketUrl);
let handlerInvoked = 0;
const ... | Java |
import React from 'react'
import PropTypes from 'prop-types'
import VelocityTrimControls from './VelocityTrimControls'
import Instrument from '../../images/Instrument'
import styles from '../../styles/velocityTrim'
import { trimShape } from '../../reducers/velocityTrim'
const handleKeyDown = (event, item, bank, userCh... | Java |
class CreateTips < ActiveRecord::Migration[5.0]
def change
create_table :tips do |t|
t.text :body
t.timestamps
end
end
end
| Java |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class MY_Controller extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->helper('url');
}
}
class Admin_Controller extends MY_Controller {
public function __construct() {
... | Java |
# chrome-launcher-cli [](https://travis-ci.org/ragingwind/chrome-launcher-cli)
> Chrome Launcher for CLI, which is a CLI tool extended from [chrome-launcher](https://www.npmjs.com/package/chrome-launcher). Please visit to [chrome-la... | Java |
/*
* Copyright (c) 2014-2016, Santili Y-HRAH KRONG
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* lis... | Java |
<?php
/**
* Link posts
*
* @package Start Here
* @since Start Here 1.0.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="post-header">
<div class="header-metas">
<?php sh_post_format(); ?>
<?php if( is_singular() ) { edit_post_l... | Java |
/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ===============================... | Java |
#!/bin/bash
SCRIPT_PATH="${BASH_SOURCE[0]}";
if ([ -h "${SCRIPT_PATH}" ]) then
while([ -h "${SCRIPT_PATH}" ]) do SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done
fi
pushd . > /dev/null
cd `dirname ${SCRIPT_PATH}` > /dev/null
SCRIPT_PATH=`pwd`;
popd > /dev/null
if ! [ -f $SCRIPT_PATH/.nuget/nuget.exe ]
then
... | Java |
#include <assert.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <video/gl.h>
#include <xxhash.h>
#include <memtrack.h>
#include "base/stack.h"
#include "core/common.h"
#include "base/math_ext.h"
#include "core/asset.h"
#include "core/configs.h"
#include "core/frame.h"
#include "core/logerr.h"
#include <c... | Java |
# Scrapy settings for helloscrapy project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
#
BOT_NAME = 'helloscrapy'
SPIDER_MODULES = ['helloscrapy.spiders']
NEWSPIDER_MODULE ... | Java |
"""
Django settings for djangoApp project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import ... | Java |
---
layout: page
title: Sub Aerospace Executive Retreat
date: 2016-05-24
author: Matthew Cole
tags: weekly links, java
status: published
summary: Class aptent taciti sociosqu ad.
banner: images/banner/leisure-03.jpg
booking:
startDate: 06/25/2018
endDate: 06/29/2018
ctyhocn: TOIALHX
groupCode: SAER
published: t... | Java |
---
layout: page
title: Pearl Group Dinner
date: 2016-05-24
author: Margaret Norris
tags: weekly links, java
status: published
summary: Pellentesque in hendrerit tortor. Quisque sollicitudin urna id.
banner: images/banner/leisure-04.jpg
booking:
startDate: 08/14/2018
endDate: 08/18/2018
ctyhocn: NYCEMHX
groupCo... | Java |
---
layout: page
title: Warren Guardian Company Conference
date: 2016-05-24
author: Emily Harmon
tags: weekly links, java
status: published
summary: Pellentesque porttitor arcu velit, in facilisis tellus volutpat non. Nulla.
banner: images/banner/leisure-02.jpg
booking:
startDate: 12/20/2018
endDate: 12/23/2018
c... | Java |
namespace Engine.Contracts
{
public interface IAct
{
/// <summary>
/// Makes an act (or try) and returns how much time it takes
/// </summary>
/// <param name="scene">Scene on which act plays</param>
/// <returns>Time passed</returns>
ActResult Do(IScene scene);
string Name { get... | Java |
---
uid: SolidEdgeFramework.Properties.Name
summary:
remarks: All objects have names that are unique within the scope of their parent.
---
| Java |
#pragma once
#include <QtCore/QPointer>
#include <QtWidgets/QTabWidget>
#include "backend/backend_requests_interface.h"
class BreakpointModel;
class PDIBackendRequests;
class DisassemblyView;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
clas... | Java |
---
layout: post
title: "8퍼센트 플랫폼개발 인턴 후기-마지막"
author: selee
description: 그동안 감사했습니다!
---
<p align="center">
<img src="/images/internship-4-인터뷰.jpg" alt="인턴 동기랑" width="500">
</p>
## <span style="color:#6741d9">이벤트 케러셀</span>
남은 기간에는 저번 인턴기에 쓴 이벤트 케러셀/배너 스태프 페이지 만들기 작업을 이어서 계속했다. 관리자 페이지에서 케러셀과 배너를 저장하면 관련 정보를 DB... | Java |
.sample2 .sea {
height: 300px;
width: 480px;
position: relative;
background-image: url(media/fishing.png), url(media/mermaid.png), url(media/sea.png);
background-position: top right 10px, bottom left, top left;
background-repeat: no-repeat, repeat-x, repeat-x;
}
.sample2 .fish {
background: url(media/fish.png) ... | Java |
/**
* @fileoverview Rule to flag use of implied eval via setTimeout and setInterval
* @author James Allardice
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const ast... | Java |
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace EthereumSamuraiApiCaller.Models
{
using Newtonsoft.Json;
using System.Linq;
public partial class BlockRespo... | Java |
//
// BPPopToast.h
// BPKITsDemo
//
// Created by mikeooye on 15-3-28.
// Copyright (c) 2015年 ihojin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BPPopToast : UIView
@property (copy, nonatomic) NSString *text;
- (void)popToastAtRect:(CGRect)rect inView:(UIView *)view;
@end
@interface NSString (B... | Java |
/*
---------------------------------------------------------------------------
Open Asset Import Library (ASSIMP)
---------------------------------------------------------------------------
Copyright (c) 2006-2010, ASSIMP Development Team
All rights reserved.
Redistribution and use of this software in source and bin... | Java |
module Tasklist
end
| Java |
---
title: "Exploring UIAlertController"
date: 2014-09-07 00:00
link_to: swift
---
This morning, I was working on the [sample app](https://github.com/AshFurrow/Moya/issues/39) for [Moya](https://github.com/AshFurrow/Moya), a network abstraction framework that I’ve built on top of [Alamofire](https://github.com/Alamofi... | Java |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Library to generate items for Sortable.js
*/
class Sortable {
protected $CI;
protected $mItems;
protected $mPostName = 'sortable_ids';
public function __construct()
{
$this->CI =& get_instance();
$this->CI->load->library('parser')... | Java |
import NodeFunction from '../core/NodeFunction.js';
import NodeFunctionInput from '../core/NodeFunctionInput.js';
const declarationRegexp = /^\s*(highp|mediump|lowp)?\s*([a-z_0-9]+)\s*([a-z_0-9]+)?\s*\(([\s\S]*?)\)/i;
const propertiesRegexp = /[a-z_0-9]+/ig;
const pragmaMain = '#pragma main';
const parse = ( source ... | Java |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = R... | Java |
using Feria_Desktop.View.Usuario;
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;
u... | Java |
/**
* Copies the values of `source` to `array`.
*
* @private
* @param {Array} source The array to copy values from.
* @param {Array} [array=[]] The array to copy values to.
* @returns {Array} Returns `array`.
*/
function arrayCopy(source, array) {
var index = -1,
length = source.length;
array || (arra... | Java |
//
// SNPGetStreamOperation.h
// Snapper
//
// Created by Paul Schifferer on 12/23/12.
// Copyright (c) 2012 Pilgrimage Software. All rights reserved.
//
#import "SNPBaseAppTokenOperation.h"
@interface SNPGetStreamOperation : SNPBaseAppTokenOperation
// -- Properties --
@property (nonatomic, assign) NSInteger s... | Java |
package de.uni.bremen.stummk.psp.calculation;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.ecl... | Java |
1.0.0 / 2014-12-24
==================
* 0.1.2
- Add X-XSS-Protection header options
* 0.1.1
- Request body or query sanitize | Java |
---
layout: post
title: "From interaction-based to state-based testing"
description: "Indiscriminate use of Mocks and Stubs can lead to brittle test suites. A more functional design can make state-based testing easier, leading to more robust test suites."
date: 2019-02-18 8:19 UTC
tags: [Unit Testing, Article Series]
-... | Java |
/// This is the sensor class
///
/// Sensor is a box2d fixture that is attached to a parent body
/// Sensors are used to detect entities in an area.
#pragma once
#include <AFP/Scene/SceneNode.hpp>
#include <AFP/Entity/Entity.hpp>
#include <AFP/Entity/Character.hpp>
namespace AFP
{
class Sensor : public SceneNode
... | Java |
# Liplis-iOS
デスクトップマスコット LiplisのiOS版です。仮想デスクトップ上でキャラクターがおしゃべりします。
# ライセンス
MITライセンス
| Java |
package insanityradio.insanityradio;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class PlayPauseReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
try {
FragmentNowPlayin... | Java |
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
# SECURITY WARNING: keep t... | Java |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ro... | Java |
<?php
/* FOSUserBundle:Resetting:request_content.html.twig */
class __TwigTemplate_16fccc8b4081822ba4c49543c44f48b24850d6b4ad9846152c39968be5b4e7c7 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blo... | Java |
export default (callback) => {
setTimeout(() => {
callback();
setTimeout(() => {
callback();
}, 3000);
}, 3000);
} | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>アルゴリズム計算量入門 〜 ② - イノベーション エンジニアブログ</title>
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="apple-mobile-web-app-capable" c... | Java |
### Tree `flatten`
Write a procedure called `tree->list` that completely flattens a tree to a list
Example usage:
```racket
(tree->list '[1 2 [3 [4]] [5]])
;;=> '[1 2 3 4 5]
```
| Java |
.float-btn-wrapper {
width: 75;
height: 75;
}
.float-btn-shadow {
width: 56;
height: 56;
}
.float-btn {
background-color: #FF69B4;
border-radius: 28;
width: 56;
height: 56;
text-align: center;
vertical-align: middle;
}
.float-btn.down{
animation-name: down;
animatio... | Java |
import re
import warnings
import ctds
from .base import TestExternalDatabase
from .compat import PY3, PY36, unicode_
class TestTdsParameter(TestExternalDatabase):
def test___doc__(self):
self.assertEqual(
ctds.Parameter.__doc__,
'''\
Parameter(value, output=False)
Explicitly de... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace HolisticWare.Ph4ct3x.Server.Pages.Ph4ct3x.Communication
{
public class InstantMessagingChatModel : PageModel
{
public vo... | Java |
/*
* Copyright (c) 2014 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 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"/>
<title>Cross-correlations:... | Java |
#include "Renderer.h"
#include "Core/Windows/Window.h"
#include <Resources/ResourceCache.h>
namespace uut
{
UUT_MODULE_IMPLEMENT(Renderer)
{}
Renderer::Renderer()
: _screenSize(0)
{
}
Renderer::~Renderer()
{
}
//////////////////////////////////////////////////////////////////////////////
bool Renderer::... | Java |
package jnt.scimark2;
public class kernel
{
// each measurement returns approx Mflops
public static double measureFFT(int N, double mintime, Random R)
{
// initialize FFT data as complex (N real/img pairs)
double x[] = RandomVector(2*N, R);
double oldx[] = NewVectorCopy(x);
long cycles = 1;
... | Java |
'use strict'
const reduce = Function.bind.call(Function.call, Array.prototype.reduce);
const isEnumerable = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable);
const concat = Function.bind.call(Function.call, Array.prototype.concat);
const keys = Reflect.ownKeys;
if (!Object.values) {
Object.v... | Java |
class Admin::DashboardController < AdminAreaController
def index
#You are entering an area where no project is concerned, so forget about your current project
session[:project] = nil
end
end
| Java |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::DevTestLabs::Mgmt::V2018_09_15
module Models
#
# Defines values for SourceControlType
#
module SourceControlType
VsoGi... | Java |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>retro-205 Cardatron Control Unit</title>
<!--
/***********************************************************************
* retro-205/webUI D205CardatronControl.html
****************************************************... | Java |
# infinite zoom plugin
"infinite zoom" is an jQuery-Plugin that creates a nice foto/image show as background on DOM-containers.
## Features
* applicable to any DOM-container
* adjustable zoom properties
* asynchronous image loading (just loads what's needed)
* rendering with the high-performance CSS3-transitions
##... | Java |
<?php
use History\Entities\Models\Company;
use History\Entities\Models\Question;
use History\Entities\Models\Request;
use History\Entities\Models\Threads\Comment;
use History\Entities\Models\Threads\Thread;
use History\Entities\Models\User;
use History\Entities\Models\Vote;
use League\FactoryMuffin\FactoryMuffin;
use ... | Java |
import {Routes} from '@angular/router';
import {JournalComponent} from '../journal/journal.component';
export const LUOO_APP_ROUTERS: Routes = [
{path: 'journal', component: JournalComponent}
]
| Java |
<template name="testWelcome">
<h2 class="center-align">Welcome Page</h2>
<div class="col-sm-6 col-md-offset-4 welcome-introduction">
<p>Welcome to Fram^ Online Testing</p>
<p>You have {{testingDuration}} minutes to complete your testting</p>
<p>Notice 1</p>
<p>Notice 2</p>
<p>Notice 3</p>
... | Java |
// This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#include "swganh_core/gamesystems/gamesystems_service_binding.h"
BOOST_PYTHON_MODULE(py_gamesystems)
{
docstring_options local_docstring_options(true, true, false);
exportGameSystems... | Java |
var htmlparser = require('htmlparser2');
var _ = require('lodash');
var ent = require('ent');
module.exports = sanitizeHtml;
function sanitizeHtml(html, options) {
var result = '';
if (!options) {
options = sanitizeHtml.defaults;
} else {
_.defaults(options, sanitizeHtml.defaults);
}
// Tags that co... | Java |
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ExtendComponent } from './src/components/extend.component';
import { SubExtendComponent } from './src/components/sub-extend.component';
const extendRoutes: Routes = [
{
path: '',
component: ExtendCompo... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.