text stringlengths 27 775k |
|---|
#!/bin/bash
# Steps to set-up 64-bit cross compilation (for Windows under Linux):
# - install mingw-w64 (this will provide all kinds of executable named x86_64-w64-mingw32-*)
# - add a nim.cfg with the following content:
#
# amd64.windows.gcc.path = "/usr/bin"
# amd64.windows.gcc.exe = "x86_64-w64-mingw32-gcc"... |
<?php
namespace App\Tests\Behat\v2\Common;
trait INavigateToAdminTrait
{
/**
* @When I navigate to the admin clients search page
*/
public function iNavigateToAdminClientsSearchPage()
{
$this->clickLink('Clients');
$this->iAmOnAdminClientsSearchPage();
}
/**
* @When... |
module Named.Parser where
import Named.Data
import Text.ParserCombinators.Parsec
import Control.Applicative ((<*),(*>))
parseNamed = parse parseLambda "Lambda"
lexeme :: Parser a -> Parser a
lexeme a = a <* spaces
variable :: Parser String
variable = do
first <- letter
rest <- many (letter <|> digit)
return... |
import React from 'react'
import { useTranslation } from 'react-i18next'
import PropTypes from 'prop-types'
import './Article.scss'
export const Article = ({title, text, link, imageUrl}) => {
const { t } = useTranslation();
return (
<article className="article" style={{backgroundImage: `url(${imageUrl... |
import type { Document, Logger, Transform } from '@gltf-transform/core';
import { Packet, XMP } from '@gltf-transform/extensions';
import inquirer from 'inquirer';
import { check as validateLanguage } from 'language-tags';
import validateSPDX from 'spdx-correct';
import fs from 'fs/promises';
import path from 'path';
i... |
# FriendlyId Globalize
[Globalize](https://github.com/globalize/globalize) support for
[FriendlyId](https://github.com/norman/friendly_id).
|
rm -rf dist/plugins/DefaultPlugin
rm -rf dist/plugins/PluginBase
(git co $1 && git merge $2)
git submodule foreach git fetch --tags
git submodule update --init --recursive
(cd dist/plugins/DefaultPlugin && git co develop)
(cd dist/plugins/PluginBase && git co develop)
|
using System;
using System.Linq;
namespace AcademyPopcorn
{
public class ConsoleInterface
{
}
} |
using System;
/// <summary>
/// The face attributes class that holds Age/Gender/Head Pose/Smile/Facial Hair information.
/// </summary>
[Serializable]
public class FaceAttributes
{
/// <summary>
/// Gets or sets the age value.
/// </summary>
/// <value>
/// The age value.
/// <... |
<?php
namespace Mapp\Connect\Framework\Mail;
use Magento\Framework\Exception\MailException;
use Magento\Framework\Phrase;
class Transport implements \Magento\Framework\Mail\TransportInterface {
protected $parameters;
protected $messageId;
protected $mappconnect;
public function __construct($mapp... |
package watch.craft.scrapers
import watch.craft.Scraper
import watch.craft.Scraper.Job.Leaf
import watch.craft.Scraper.ScrapedItem
import watch.craft.shopify.extractShopifyOffers
import watch.craft.utils.*
import java.net.URI
class OrbitScraper : Scraper {
override val jobs = forPaginatedRootUrl(ROOT_URL) { root ->... |
---
layout: post
title: " [LINE] Refresh 휴가를 받다 ! "
categories: E.T.C
author: goodGid
---
* content
{:toc}
## Prolouge
* 재직 중인 LINE 회사에서
신규 입사자는 만 2년 근무를 하면 Refresh 휴가를 받을 수 있다.
* 그리고 오늘(=1월2일) 기준으로 입사한 지 만 2년이 되었다.
<p>2019. 01. 02 ~ 2021. 01. 02</p>
---
## Refresh 휴가

-> Box... |
package money._07_apples_and_oranges
class Dollar(override protected val amount: Int) extends Money(amount) {
def times(mul: Int): Dollar = {
new Dollar(amount * mul)
}
}
|
#!/usr/bin/env bash
# Domain - DNS entry must be created and point to the namespace of the ingress.
D=${1:-control.istio.webinf.info}
# Namespace of the gateway.
INGRESS=${2:-istio-ingress}
export ISTIOIP=$(kubectl get -n $INGRESS service ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo "Ingr... |
#
sub toSec {
my ($h,$m,$s) = split /:/,@_[0];
return $s + 60 * ($m + (60 * $h));
return ($result < 0) ? $result + 86400 : $result;
}
sub fixDate {
my $months = 'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec';
my ($month, $day, $hh, $mm, $ss, $year) = split "[ \:]+",shift;
return "$year-". sprintf("%02d",1+ind... |
RSpec.describe ABBYY::Cloud::Models::Direction do
let(:data) { { source: "en-Br", target: "ru" } }
subject { described_class.new(data) }
it { is_expected.to be_kind_of ABBYY::Cloud::Model }
its(:to_h) { is_expected.to eq data }
context "with invalid source:" do
before { data[:source] = "2" }
it "f... |
module Circuitdata
class ExposedArea
def initialize(product)
@product = product
end
def final_finish_total_area
return nil if board_area.nil?
layer_final_finish_area + barrel_area
end
def barrel_area
return 0 if board_thickness.nil?
plated_holes.map { |hole| sum_hol... |
package scuff
import org.junit._, Assert._
import java.io._
class TestMediaType {
@Test
def `remove parm`(): Unit = {
val mt = MediaType("application/json;encoding=UTF-8")
assertEquals("UTF-8", mt.parm("encoding").get)
val mt2 = mt.removeParm("encoding")
assertEquals("UTF-8", mt.parm("encoding").... |
using System;
namespace BuildingBlocks.Core.Domain.DomainEventNotifications
{
public abstract class DomainNotificationEventBase<TEventType> : IDomainEventNotification<TEventType>
where TEventType : IDomainEvent
{
protected DomainNotificationEventBase(TEventType domainEvent, Guid id, Guid correl... |
package com.eusecom.samshopersung
import android.content.Intent
import android.content.SharedPreferences
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.design.widget.AppBarLayout
import android.support.design.widget.CollapsingToolbarLayout
import android.support.v4.app.... |
(defproject mml-maastotietokanta-etl "0.1.0-SNAPSHOT"
:description "MML Maastotietokanta GML ETL tool"
:url "https://github.com/kherrala/mml-maastotietokanta-etl"
:license {:name "MIT License"
:url ""}
:main app.main
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/java.... |
-- This query is run at the end of every month to generate the new
-- entries for monthly subscriber retention. So this query should be run
-- only on the first of every month.
SELECT
COUNT(user_id) AS active_users,
platform,
product_type,
date_trunc(first_active_date, month) AS cohort_month,
date_... |
class AddNotNullToPositionOnCarrierType < ActiveRecord::Migration[5.2]
def change
change_column :carrier_types, :position, :integer, null: false, default: 1
change_column :content_types, :position, :integer, null: false, default: 1
change_column :frequencies, :position, :integer, null: false, default: 1
... |
/// <reference types="react" />
export declare function onCancel(history: {
push: (location: string) => void;
}): void;
export declare function PlacementExamples(): JSX.Element;
export declare function CreatePlacement(): JSX.Element;
export declare function CreatePlacementRule(): JSX.Element;
export declare functio... |
package slinky.reactrouter
import slinky.core._
import slinky.core.annotations.react
import slinky.web.html.a
import org.scalajs.dom.History
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
@JSImport("react-router", JSImport.Default)
@js.native
object ReactRouter extends js.Object {
val StaticRo... |
#!/usr/bin/env bash
#
set -x
rexx acknak_basic.rex
rexx connect_basic.rex
rexx frame_basic.rex
rexx hdrencdec.rex
rexx header_basic.rex
rexx headers_basic.rex
rexx headers_encdec.rex
rexx netconn_basic.rex
#
STOMP_DEST=/queue/rexx/test/recv/10 STOMP_NMSGS=1 rexx send_basic.rex
STOMP_DEST=/queue/rexx/test/recv/10nid STO... |
import React from "react";
import './menu.css';
import Employees from "../employees/employees";
import { NavLink } from "react-router-dom";
function Menu() {
return (
<div className="Menu">
<header className="Menu-header">Find information about your company faster!</header>
<div ... |
# 依赖倒转原则
#### 定义
>* 高层模块不应该依赖底层模块,两者都应该依赖抽象接口
>* 抽象接口不应该依赖于具体实现。而具体实现则应该依赖于抽象接口
#### 中心思想
>面向接口编程
#### 例子
```java
class Person{
public void receive(Email email){
System.out.println(email.getInfo());
}
}
class Email{
public String getInfo(){
return "Message from Email!";
}
}
``... |
package com.lunatech.iamin.core.idcodec
import scalaz.zio.{TaskR, ZIO}
package object service extends IdCodec.Service[IdCodec] {
override def encodeId(id: Long): TaskR[IdCodec, String] =
ZIO.accessM(_.idCodec.encodeId(id))
override def decodeId(s: String): TaskR[IdCodec, Option[Long]] =
ZIO.accessM(_.id... |
import os
from os.path import join as jph
import numpy as np
from numpy.testing import assert_array_equal
from nilabels.tools.aux_methods.utils import eliminates_consecutive_duplicates, lift_list, labels_query, print_and_run
from tests.tools.decorators_tools import create_and_erase_temporary_folder, test_dir
# TES... |
import r from "../random";
import faker from "faker";
import { v4 as uuid } from "uuid";
import { servicify } from "../util";
import { DateTime } from "luxon";
import { append, range } from "ramda";
//import { augmentPerson } from "./augmentor";
const bcrypt = require("bcryptjs");
const getGenderForNaming = (gender) =... |
import 'package:campus_mobile_experimental/core/providers/parking.dart';
import 'package:campus_mobile_experimental/ui/common/container_view.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:provider/provider.dart';
class ParkingStructureView extends StatefulWidget... |
/**
* Compiler pass for the service container
* It handles tags to register console commands
*/
module.exports = class CommandCompilerPass {
async process(container) {
const definition = container.getDefinition("solfege_console_commands_registry");
const serviceIds = container.findTaggedServiceIds("solfeg... |
package distributions.discrete
import definitions.Global._
import definitions.{Environment, PNum}
import distributions.distributions.random0to1
/**
* Class: Binomial
* Intention(s): Encapsulates a binomial distribution.
* Parameter(s): p - success rate
* n - number of trials
*/
class Binomial (p : ... |
# Déroulement de la Formation
<br><br>
A chaque concept clé :
<br><br>
- Un excercice d'application
<br>
- Correction de cet excercice
<br>
- Un exemple concret (voyons ensemble comment intégrer ce concept dans un vrai projet)
<br>
- Questions et réponses
|
> # py-kit:logr
>
> Read information from logs.
```bash
$ virtualenv .virtenv
$ v+
$(.virtenv) pip install -r requirements.txt
$(.virtenv) ...
```
|
CREATE TABLE IF NOT EXISTS "job_adverts" (
"job_advert_id" uuid DEFAULT uuid_generate_v4 (),
"exp_date" DATE NOT NULL,
"description" TEXT NOT NULL,
"salary_min" INTEGER NOT NULL,
"salary_max" INTEGER NOT NULL,
"city" VARCHAR(40),
"state" VARCHAR(2),
"recruiter_id" uuid REFERENCES users("acc_id") NOT NULL,
"com... |
using Microsoft.AspNetCore.Mvc;
namespace ZWave.Server.Controllers;
[ApiController]
[Route("[controller]")]
public class InfoController : ControllerBase
{
private readonly ILogger<InfoController> _logger;
private readonly Driver _driver;
public InfoController(
ILogger<InfoController> logger,
... |
#!/bin/bash
set -eo pipefail
declare -x SENTRY_CACHE_TYPE
[[ -z "${SENTRY_CACHE_TYPE}" ]] && SENTRY_CACHE_TYPE="filebased"
declare -x SENTRY_CACHE_HOST
[[ -z "${SENTRY_CACHE_HOST}" ]] && SENTRY_CACHE_HOST=""
true
|
## Example response in JSON
```json
{
"aeccar0": "AECCAR0.gz",
"aeccar1": "AECCAR1.gz",
"aeccar2": "AECCAR2.gz",
"chgcar": "CHGCAR.gz",
"procar": "PROCAR.gz",
"wavecar": "WAVECAR.gz"
}
```
|
__author__ = 'Matt'
try:
# for Python2
from Tkinter import *
except ImportError:
try:
# for Python3
from tkinter import *
except ImportError:
exit()
from TopDisplay import drawWheelDisplay
from RockerBogieSide import drawRockerBogie
from UI.ManualControl import drawManualContro... |
<?php
namespace MusicBrainz\Helper;
use MusicBrainz\Definition\RelationTarget;
use MusicBrainz\Definition\RelationTypeId;
use MusicBrainz\Relation;
use MusicBrainz\Relation\NullType;
use MusicBrainz\Relation\Type;
use MusicBrainz\Value\Direction;
use MusicBrainz\Value\MBID;
/**
* The relation factory
*/
class Rela... |
# Savedata Synchronizer
## Install
```
$ git clone https://github.com/sawaken/savedatasync.git
$ cd savedatasync
$ rake install
```
## Usage
```
$ sdsync -h
```
|
const express = require('express')
import { isAuthenticated } from '../../../middlewares/auth'
import { FilterUsersByRole, GetASingleUser, LoggedInUserDetails } from './user_controller'
const router = express.Router()
router.get('/users/current-user', isAuthenticated, LoggedInUserDetails)
router.get('/users/:id', Get... |
procedure Test;
require
True : 'Invalid string'(;
begin
end; |
package com.moac.android.palettedemo;
public enum PaletteOption {
VIBRANT,
VIBRANT_DARK,
VIBRANT_LIGHT,
MUTED,
MUTED_DARK,
MUTED_LIGHT
} |
require_relative "helpers.rb"
LIBSSH2_IOS_INSTALL_PATH = File.expand_path("../External/libssh2-for-iOS/lib/libssh2.a", File.dirname(__FILE__))
LIBGIT2_IOS_INSTALL_PATH = File.expand_path("../External/libgit2-iOS/libgit2-iOS.a", File.dirname(__FILE__))
def sdk_root(arch)
if %w(x86_64 i386).include? arch
platform... |
'''
Python module for Mopidy Pummeluff shutdown tag.
'''
__all__ = (
'Shutdown',
)
from logging import getLogger
from os import system
from .base import Action
LOGGER = getLogger(__name__)
class Shutdown(Action):
'''
Shutting down the system.
'''
@classmethod
def execute(cls, core):
... |
namespace AP.MobileToolkit.Fonts.Controls
{
public interface IIconSpan
{
string GlyphName { get; }
}
}
|
import java.util.*;
public class FormulaOrtoedro {
public static void main(String args[]) {
Scanner teclado = new Scanner(System.in);
float b, h, a, vol;
System.out.print("Ingrese la base: ");
b = teclado.nextFloat();
System.out.print("\nIngrese la altura: ");
h = tecla... |
extern crate futures;
extern crate tokio;
extern crate trust_dns_proto;
extern crate trust_dns_server;
use std::io;
use std::time::Duration;
use futures::{Async, Poll};
#[allow(deprecated)]
use futures::stream::{iter, Stream};
use tokio::runtime::current_thread::Runtime;
use trust_dns_server::server::TimeoutStream;
... |
# Convert TECS style assembly code, to Hack2 assembly
'''
@#
@label // will need a pass to translate labels to constants...
dst = cmp ; jmp
(label)
'''
'''
A -> r1
D -> r2
'''
# Assumes program only 32k?
# Assumes no whitespace in TECS instruction, and
# code is compliant (ex valid integers)
regs ... |
/************************** INCLUDE APPLICATION SECTION *****************************/
#include "extern.h"
#include "protocol.h" // Definizione dei protocolli utilizzati
int (* dammi_protocollo(int ))(int, unsigned char *, int, int);
void SendPollCmd(int,int,int ) ;
void InitChannel(int);
void InitConnectio... |
{-# LANGUAGE GADTs, TypeOperators #-}
module SessionCheck.Spec where
import Control.Monad
import Control.DeepSeq
import SessionCheck.Classes
import SessionCheck.Predicate
-- Specifications of protocols
data Spec t a where
Get :: (a :< t, NFData a) => Predicate a -> Spec t a
Send :: (a :< t, NFData a) => Pre... |
Get-Module -Name pstrami | Remove-Module
$fullPathIncFileName = $MyInvocation.MyCommand.Definition
$currentScriptName = $MyInvocation.MyCommand.Name
$currentExecutingPath = $fullPathIncFileName.Replace("\$currentScriptName", "")
Import-Module (resolve-path "$currentExecutingPath\..\pstrami\pstrami.psm1")
Function Tes... |
#!/bin/sh
for filename in `ls *.out`
do
sed -e 's/\/[A-Za-z0-9][A-Za-z0-9]*\/vstree\/src\/vstree\/src\/doc\///' $filename > .tmp
mv .tmp $filename
done
|
{******************************************************************************}
{ }
{ WiRL: RESTful Library for Delphi }
{ ... |
import markdown
from django import forms
from django.db import models
from django.conf import settings
from django.contrib.admin.options import FORMFIELD_FOR_DBFIELD_DEFAULTS
from sakkada.admin.editors.markdown import MarkdownTextInput, MarkdownTextarea
MARKDOWN_INIT_KWARGS = {
'extensions': [],
'extension_co... |
<?php
class Detail extends CI_Controller{
public function __construct(){
parent::__construct();
$this->load->model('detail_model');
$this->load->helper('url_helper');
}
public function get_urls(){
$slug = $this->uri->segment(3, 0);
$data['name'] = urldecode($this->ur... |
class Controller
def initialize()
@style = ""
@page_title = ""
@title = ""
@foot = ""
@menu = ""
end
def main()
@menu += $usr.get_logout_form()
html = "Controller.main()"
return html
end
def output(html)
wk = {
"style" => @style,
"page... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VierGewinnt.Utils.Logger
{
public class MessageLoggedEventArgs
{
/// <summary>
/// Type of the Logged Message
/// </summary>
public LogLevel Type { get;... |
package com.example.skillshop.LoginActivities;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.TextView;
import com.example.skillshop.NavigationFragments.FragmentHandle... |
# Enforces a maximum depth to nested describe calls (`max-nested-describe`)
While it's useful to be able to group your tests together within the same file
using `describe()`, having too many levels of nesting throughout your tests make
them difficult to read.
## Rule Details
This rule enforces a maximum depth to nes... |
/**
* Copyright 2015-2018 the original author or authors.
*
* 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/licenses/LICENSE-2.0
*
* Unless required by appl... |
class AddSightingsColumns < ActiveRecord::Migration[5.0]
def change
add_column :sightings, :animal_id, :integer
add_column :sightings, :neighborhood, :string
end
end
|
-- depends on {{ ref('my_passing_model') }}
This is invalid SQL
|
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
-- Module : System.Taffybar.Widget.FSMonitor
-- Copyright : (c) José A. Romero L.
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : José A. Romero L. <escherdragon@gmail.com>
-- Stabi... |
<?php
use Illuminate\Database\Seeder;
class NuevosSeeders extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//Flujo Operativo solicitud cambios al presupuesto
$this->call(ControlPresupuestoFlujoOperativoSeeder::class);
//... |
mod app;
use app::{cli_app::CliApp, ClaveApp, args::get_clap_app};
use std::path::PathBuf;
fn main() {
let args = get_clap_app().get_matches();
if let Some(file_paths) = args.values_of("files") {
let file_paths: Vec<PathBuf> = file_paths.into_iter()
.map(|entry| {
PathB... |
package interview;
import org.junit.Test;
/**
* Description : 字符串相关
*
* @author : JunJiang
* @date : 2021-10-23 16:33
*/
public class StringRelatedTest {
@Test
public void test1() {
String str = null;
StringBuffer sb = new StringBuffer();
/**
* StringBuffer的append()方法对于n... |
/* create database */
CREATE DATABASE rga;
USE rga;
/* create data source tables */
-- create EmployeeRoster
CREATE TABLE rga.dbo.EmployeeRoster (
User_ID int NOT NULL,
Email_ID int NULL,
Title int NULL,
Fullname varchar(1000) NULL,
Department varchar(1000) NULL,
Gender varchar(100) NULL,
Office int NULL,
Re... |
from abc import ABCMeta, abstractmethod
from enum import Enum
class LoadableTypeEnum(Enum):
Achievement = "Achievement"
Character = "Character"
Guild = "Guild"
GuildUpgrade = "GuildUpgrade"
Item = "Item"
ItemStat = "ItemStat"
Mastery = "Mastery"
MiniPet = "MiniPet"
Skill = "Skill"
... |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE BangPatterns #-}
-- | This is a wrapper around IO that permits SMT queries
module Language.Fixpoint.Solver.Monad
( -- * Type
SolveM
-- * Execution
, runSolverM
-- * Get Binds
, get... |
const form = document.getElementsByTagName('form')[0]
const peso1 = form.querySelector('#peso')
const altura1 = form.querySelector('#altura')
const botao = form.querySelector('button')
let resultado1 = form.querySelector('div')
form.addEventListener('submit', check)
function check(e){
e.preventDefault()
... |
CREATE OR REPLACE FUNCTION "FIND_FAMILYFORGENUS" (genus in varchar2)
return varchar2
-- Given a generic name, find the single family this genus is most frequently placed in in MCZbase
-- return null if no match is found.
--
-- Intended for use with lepidoptera bulkload, to find the family in ord... |
<?php
namespace App\Modules\Admin;
use App\Model\Manager\OrgManager;
use Markette\Gopay;
class ContactsPresenter extends SecurePresenter
{
public function createComponentForm()
{
$form = new \Nette\Application\UI\Form();
$form->addGroup('');
$form->addText('contacts', 'presenters.co... |
/* eslint-disable key-spacing */
import { defaultSuggestionListTheme } from '../../src/SuggestionList/theme';
export const defaultMultiSelectTheme = {
checkBoxItem: 'multiselect-check-box-item',
checkBoxList: 'multiselect-checkbox-list',
checkBoxListFooter: 'multiselect-footer',
... |
; ModuleID = 'test'
source_filename = "test"
define void @foobar() {
entry:
%0 = alloca i32
store i32 1, i32* %0
ret i32* %0
}
|
<?php
$db['db_host']='127.0.0.1';
$db['db_user']='root';
$db['db_pass']='';
$db['db_name']='test';
foreach($db as $key => $value)
{
define(strtoupper($key),$value);
}
$con=mysqli_connect(DB_HOST,DB_USER,DB_PASS);
mysqli_select_db($con,DB_NAME);
... |
package cz.begera.bitcoin_price_chart.bitcoin_price.data
import io.reactivex.functions.Function
import javax.inject.Inject
/**
* Created by Jakub Begera (jakub@begera.cz) on 07/04/2019.
*/
class BlockchainChartMapper @Inject constructor() : Function<Pair<Timespan, BlockchainChartRaw>, BlockchainChart> {
overri... |
/*
* Licensed by the author of Time4J-project.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. The copyright owner
* licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance
* w... |
package com.github.anicolaspp.maprdbcleaner
import com.github.anicolaspp.maprdbcleaner.conf.Configuration
import com.github.anicolaspp.maprdbcleaner.db.Db
import com.github.anicolaspp.maprdbcleaner.query.QueryBuilder
import org.ojai.store.{Connection, DriverManager}
object App {
implicit lazy val connection: Conne... |
package io.restassured.module.mockmvc.kotlin.extensions
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.... |
package zielu.gittoolbox.extension.projectview
import com.intellij.ide.projectView.ProjectViewNode
import com.intellij.openapi.extensions.ExtensionPointName
import zielu.intellij.java.toSet
internal class ViewModuleNodeChildExtension {
fun hasChildOfType(nodeType: Class<in ProjectViewNode<*>>): Boolean {
val no... |
#ifndef CFD_LAB_CONFIGPARSER_HPP
#define CFD_LAB_CONFIGPARSER_HPP
#include "LBDefinitions.hpp"
#include <fstream>
#include <iomanip>
#include <iostream>
#include <regex>
#include <sstream>
#include <string>
#include <unordered_map>
class ConfigParser {
using rawConfig_t = std::unordered_map<std::string, std::stri... |
package dranjohn.graphics.scene
import dranjohn.graphics.Window
import dranjohn.graphics.entity.Entity
import dranjohn.graphics.entity.Quad
import dranjohn.graphics.scene.camera.Camera
import dranjohn.graphics.scene.camera.OrthogonalCamera
import org.lwjgl.opengl.GL11
private const val DEFAULT_UNITS_PER_SCREEN_WIDTH ... |
§align:center
##### §nDraconic Chestplate§n
§stack[draconicevolution:draconic_chest]{size:64}
§rule{colour:0x606060,height:3,width:100%,top_pad:0}
§bStats
Flight (Configurable)
Removes mining slowdown while in the air
Fire immunity
+200 Base Shield Capacity
+3 Armor Toughness
+8 Armor
§rule{colour:0x606060,height:3... |
#!/bin/sh
####################################################################################################
#
# FILENAME: local-config.sh
#
# PURPOSE: Template for creating a personalized local-config.sh file.
#
# DESCRIPTION: All shell scripts in the dev-tools directory require several configuration value... |
package cn.edu.fudan.moreinfo.ebook.service;
import cn.edu.fudan.moreinfo.ebook.common.ServerResponse;
import cn.edu.fudan.moreinfo.ebook.entity.Book;
import java.util.List;
import org.springframework.stereotype.Service;
@Service
public interface BookService {
Integer addByBook(Book book);
Integer addByBookSelect... |
package de.lessvoid.nifty.slick2d;
import de.lessvoid.nifty.Nifty;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* This "game" does nothing but showing the Nifty GUI on the screen. For real games the Nifty ... |
#ifndef CONV_MESSAGE_H
#define CONV_MESSAGE_H
#include <support/SupportDefs.h>
class BString;
class Contact;
class ConvMessage // : public MsnMessage
{
public:
ConvMessage(Contact* sender);
virtual ~ConvMessage();
Contact* Sender();
void SetSender(Contact* sender);
bigtime_t Timestamp();
... |
#include<stdio.h>
int main() {
int i,p[26];
char c;
for(i=0;i<26;++i)
p[i]=0;
while(((c=getchar())!='\n')&&(c!=EOF))
if((c>='A')&&(c<='Z'))
p[c-'A']++;
else if((c>='a')&&(c<='z'))
p[c-'a']++;
for(i=0;i<26;++i)
if(!p[i])
break;
if(i<26)
printf("not pangram\n");
else
printf("pangram\n");
retu... |
package com.imran.validation.controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.hateoas.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping... |
// Copyright 2020 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
import { Supplementable } from 'base/supplementable.js';
// Represents a pickup on the server. They are some of the wackiest entities availabl... |
---
layout: media
title: Unsere Fachärzte
permalink: /praxis/
share: false
---
| Dr. med. Katharina Mecner | Dr. med. Jiri Mecner |
| ------------------------- | -------------------- |
| Fachärztin für Gynäkologie und Geburtshilfe | Facharzt für Gynäkologie und Geburtshilfe |
| Zertifizierte Spezialistin für Anti-Agin... |
@extends('layout.master.master_user')
@section('title', 'Atur Aplikasi')
@section ('content')
<!-- Titlebar
================================================== -->
<div id="titlebar" class="single">
<div class="container">
<div class="sixteen columns">
<h2>Kelola Aplikasi</h2>
<nav id="breadcrumbs">
... |
require_relative '../../spec_helper'
describe "Integer#bit_length" do
context "fixnum" do
it "returns the position of the leftmost bit of a positive number" do
0.bit_length.should == 0
1.bit_length.should == 1
2.bit_length.should == 2
3.bit_length.should == 2
4.bit_length.should == ... |
package identico
import (
"image"
"image/color"
"image/draw"
)
func Classic(mask image.Image, bg, fg color.Color) image.Image {
bounds := mask.Bounds()
bgimg := FillBackground(bounds, bg)
fgimg := ReplaceMask(mask, fg)
dst := image.NewNRGBA(bounds)
draw.Draw(dst, bounds, bgimg, image.ZP, draw.Src)
draw.Draw... |
drop table if exists `memoryStore`;
create table `memoryStore` (
`key` varchar(255) not null,
`value` varbinary(4096) not null,
`expire` int unsigned
) engine=memory; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.