text stringlengths 27 775k |
|---|
# stty (else ^S freeze terminal until ^Q)
stty start undef
stty stop undef
|
#!/usr/bin/ruby
class Time
attr_reader :hrs, :mins
attr_writer :hrs, :mins
def initialize(*args)
if args.length == 1
if args[0].is_a? String
tmp = args[0].to_t
@hrs = tmp.hrs
@mins = tmp.mins
else
absmins = args... |
package slimeknights.tconstruct.library.tinkering;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.protocol.Packet;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.item.Ite... |
{-# LANGUAGE OverloadedStrings #-}
module SolutionSpec (main, spec) where
import Test.Hspec
import Test.QuickCheck
import Solution
-- `main` is here so that this module can be run from GHCi on its own. It is
-- not needed for automatic spec discovery.
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
descr... |
first_number = 'hello world!'
expect (second_number) .not_to equal (0)
sum = first_number + second_number |
#if !ALLFEATURES
namespace iSukces.Mathematics.Compatibility
{
public abstract class Transform3D
{
}
}
#endif |
unit U_DM;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Db, DBTables;
type
TDM = class(TDataModule)
Q_DISCIPLINAS: TQuery;
Q_TAREFAS: TQuery;
Q_HORARIOS: TQuery;
Q_PROFESSOR: TQuery;
Q_AULA: TQuery;
Q_DIAS: TQuery;
DS_DISCI... |
package com.sinch.rtc.vvc.reference.app.features.calls.newcall.validator
interface DestinationValidator {
fun isCalleeValid(value: String): Boolean
} |
rootProject.name = "completable-reactor"
for (project in listOf(
"completable-reactor-example",
"completable-reactor-graph",
"completable-reactor-graph-kotlin",
"completable-reactor-graph-viewer",
"completable-reactor-graph-viewer-app",
"completable-reactor-model",
... |
/**
* Copyright 2015, deepsense.io
*
* 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 applicable law or agreed ... |
package com.github.beansoft.reatnative.idea.actions.console;
import com.github.beansoft.reatnative.idea.actions.BaseRNConsoleNPMAction;
import com.github.beansoft.reatnative.idea.icons.PluginIcons;
import com.github.beansoft.reatnative.idea.views.ReactNativeConsole;
// React Native start React Packager Task
public cl... |
<?php
namespace MyTravel\Location\Model;
class Location {
protected $id;
protected $coordinate;
protected $info;
protected $weight;
protected $status;
protected $stage;
public function __construct($data) {
$this->coordinate = new Coordinate();
$this->coordinate
->setLat((float) $data['la... |
# This file intended to be sourced
# . /build/config.sh
# This is the definitive site and incredibly slow
HBASE_DIST="http://archive.apache.org/dist/hbase"
## Build time dependencies ##
BUILD_PACKAGES="curl"
## RUN time dependencies ##
RUN_PACKAGES="bash" |
#!/bin/bash
set -e
RUN_MULTI_USER_REPORT=$7
if [ "$RUN_MULTI_USER_REPORT" == "false" ]; then
echo "RUN_MULTI_USER_REPORT set to false so exiting..."
exit 0
fi
PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source $PWD/../functions.sh
source_bashrc
step="multi_user_reports"
init_log $step
for i in $(ls $PW... |
/*
* Copyright 2018 Ian Johnson
*
* This is free software, distributed under the MIT license. A copy of the
* license can be found in the LICENSE file in the project root, or at
* https://opensource.org/licenses/MIT.
*/
//! Parsing functions for the assembler.
//!
//! For the sake of consistency, we follow the ... |
// Labels
export { default as BasePriceFilterLabel } from './labels/base-price-filter-label.vue';
export { default as BaseRatingFilterLabel } from './labels/base-rating-filter-label.vue';
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Mycon extends CI_Controller {
function __construct()
{
parent::__construct();
if($this->session->userdata('status_login') != "login"){
redirect(base_url("Login"));
}
}
public function index()
{
$data['active1'] = 'a... |
using Newtonsoft.Json;
using System.Text;
namespace Crypto.Compare.Models.CoinInfo
{
public class CoinInfo
{
[JsonProperty("Id")]
public string Id { get; set; }
[JsonProperty("Name")]
public string Name { get; set; }
[JsonProperty("FullName")]
public string F... |
{-# LANGUAGE DuplicateRecordFields #-}
module ZP.TestData.KnowledgeBase.Doors where
import ZP.Prelude
import ZP.Types
import ZP.Game.Types
import ZP.Game.Logic
import ZP.AI.Types
import ZP.AI.StaticKnowledge
import ZP.TestData.KnowledgeBase.Essences
import ZP.TestData.KnowledgeBase.Common
import qualified Data.Map a... |
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
const SectionTitle = styled('h1')({
marginTop: 0,
marginBottom: 18,
fontWeight: 400
}, ({ withMarginTop }) => ({
marginTop: withMarginTop ? 24 : 0
}));
SectionTitle.propTypes = {
withMarginTop: PropTypes.bool
};
SectionTitle.defaultP... |
// SPDX-License-Identifier: Apache-2.0
// Licensed to the Ed-Fi Alliance under one or more agreements.
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
// See the LICENSE and NOTICES files in the project root for more information.
import { mkdir } from "fs/promises";
import { cont... |
export const adminTest = {
email: 'admin@gmail.com',
password: 'admin@123',
role: 'admin',
};
|
# encoding: utf-8
require 'date'
require 'insensitive_hash'
require 'sqlite3'
module TimezoneParser
class Data
# Timezone data Storage class
class Storage
protected
@@Database = nil
@@Statements = {}
public
DatabaseName = 'timezones.db'
... |
package io.smallrye.mutiny.subscription;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
import io.smallrye.mutiny.CompositeException;
import io.smallrye.mutiny.helpers.EmptyUniSubscription;
import io.smallrye.mutiny.helpers.ParameterValidation;
import io.smallrye... |
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package frontend
import (
"bytes"
"context"
"math"
"github.com/google/safehtml"
"github.com/google/safehtml/template"
"github.com/google/safehtml/unchec... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
import React, { useEffect, useState } from "react";
import {
Button,
createTheme,
Tab,
Tabs,
TextField,
ThemeProvider,
} from "@material-ui/core";
import SearchIcon from "@material-ui/icons/Search";
import axios from "axios";
import TrendContent from "../Components/TrendContent";
import Paginationn from "..... |
namespace Equinor.ProCoSys.Preservation.Query.GetPreservationRecord
{
public class RequirementDefinitionDetailDto
{
public RequirementDefinitionDetailDto(int id, string title)
{
Id = id;
Title = title;
}
public int Id { get; }
public string Title... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class LatestNews extends Model
{
protected $fillable=['news_headline','news_image','news_date','small_paragraph',
'dr_name','job_title','dr_img'
];
public function mainPage()
{
return $this->belongsTo(MainPage::class);... |
<?php
/**
* Created by PhpStorm.
* User: feida
* Date: 2018/4/10
* Time: 15:02
*/
namespace app\api\controller;
use app\common\controller\ApiController;
class Apply extends ApiController
{
public function create()
{
$data = $this->request->param();
$data['openid'] = $this->openid;
... |
#!/usr/bin/env python3
#
# Copyright (C) 2018 Stanislav Markov
# Please see the accompanying LICENSE file for further information.
from setuptools import setup
import sys
if sys.version_info < (3, 0, 0, 'final', 0):
raise SystemExit('Python 3 is required!')
setup(
name="vasprun",
version='0.1.0',
de... |
<?php
namespace Stecman\Component\Symfony\Console\BashCompletion;
final class HookFactory
{
/**
* Hook scripts
*
* These are shell-specific scripts that pass required information from that shell's
* completion system to the interface of the completion command in this module.
*
* The... |
MSG.title = "Webduino Blockly Chapter 13-3 : LED Matrix Marquee";
MSG.subTitle = "Chapter 13-3 : LED Matrix Marquee";
MSG.demoDescription = "Click on the following link, generating the code. Create marquee effect on LED Matrix.";
MSG.generatorTitle = "Webduino LED Matrix Code Generator"
|
---
id: autoform
title: Autoform
sidebar_label: Autoform
---
[Autoform](https://github.com/orionjs/orionjs-react-autoform) is an Orionjs package, available to import in any React project and usable as a React Component. It allows to specify the name of a `mutation` as a prop and automatically setting a form for it, al... |
set -ex
if [ ! -z "$DOCKER_IMAGE" ]
then
tag="$DOCKER_IMAGE/latest"
docker build $DOCKER_IMAGE -t $tag
docker run \
-e USER="$USER" \
-e TARGET="$TARGET" \
-e TOOLCHAIN="$TOOLCHAIN" \
-e DOCKER_IMAGE="$DOCKER_IMAGE" \
-e NAME="$NAME" \
-e TRAVIS_TAG="$TRAVIS_TAG" \
-e USER_... |
<?php
namespace frame\util;
/**
* phpinfo
*
* @author lonphy(dev@lonphy.com)
* @version 1.0
*/
class Uphpinfo
{
/**
* 显示PHPINFO信息
* 使用方法:$this->getUtil('phpinfo')->get_phpinfo();
*/
public function get_phpinfo()
{
phpinfo();
exit;
}
} |
Rails.application.routes.draw do
resources :roles
# custom overriden controller allows to insert custum field at registration
# source: http://jacopretorius.net/2014/03/adding-custom-fields-to-your-devise-user-model-in-rails-4.html
devise_for :users, :controllers => { registrations: 'registrations' }
resourc... |
require_relative 'queue_base'
module ApplicationInsights
module Channel
# A synchronous queue for use in conjunction with the {SynchronousSender}.
# The queue will call {SenderBase#send} when it reaches {#max_queue_length},
# or when the consumer calls {#flush}.
#
# @example
# require 'appl... |
<?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller as Ctrl;
use Symfony\Component\HttpFoundation\Request;
use AppBundle\Entity\Product;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundatio... |
package com.mapswithme.maps.ugc
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.mapswithme.maps.R
import com.mapswithme.maps.widget.RatingView
import com.mapswithme.util.DateUtils
import... |
cask 'hsang' do
version '1.6.1'
sha256 'e747d0549630c24a81b3b74b9382cd47ecb594af123f7471a4f9753c3bf4b1ba'
# nie.gdl.netease.com/lushi was verified as official when first introduced to the cask
url "http://nie.gdl.netease.com/lushi/HSAng_#{version}.dmg"
name 'HSAng'
homepage 'http://lushi.163.com/'
licens... |
use crate::token::{TknTy, Token};
use kolgac_errors::{
lex::{LexErr, LexErrTy},
KolgaErr,
};
use std::{
collections::HashMap,
fs::File,
io::{BufRead, BufReader, Seek, SeekFrom},
};
#[derive(Debug)]
pub struct Lexer {
/// Current character in input buffer
pub curr: Option<char>,
/// C... |
from django.core.cache import InvalidCacheBackendError, caches
from django.core.cache.utils import make_template_fragment_key
from django.template import (Library, Node, TemplateSyntaxError,
VariableDoesNotExist)
from wagtail.core.blocks import (CharBlock, ChoiceBlock, ChooserBlock,
... |
using log4net;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using System;
using System.Net.WebSockets;
using System.Text;
using System.Threading.Tasks;
namespace Tourism.WebsocketServer.Utils
{
public class ChatMessageHandler : WebSocketHandler
{
private ILog _log;
public ChatMessag... |
#ifndef utilities_cpp
#define utilities_cpp
#include<bits/stdc++.h>
using namespace std;
typedef unsigned long long int ulli;
namespace Utilities{
bool check_email_iitj(char input[]){
char *ptr;
ptr= strstr(input,"@iitj.ac.in"); //searches input array for "@iitj.ac.in" string
if(ptr)
{
... |
---
title: >-
Recruitment cost borne by employee as a proportion of yearly income earned in
country of destination
permalink: /10-7-1/
sdg_goal: 10
layout: indicator
indicator: 10.7.1
indicator_variable: null
graph: null
graph_type_description: null
graph_status_notes: UNK
variable_description: null
variable_notes:... |
<?php
namespace SmileyMrKing\GatewayWorker;
use GatewayWorker\Lib\Gateway;
use Illuminate\Support\ServiceProvider;
use SmileyMrKing\GatewayWorker\Commands\GatewayWorkerCommand;
class GatewayWorkerServiceProvider extends ServiceProvider
{
public function boot()
{
$this->publishes([
__DIR__... |
import 'dart:async';
import 'package:flutter/material.dart';
// ignore: depend_on_referenced_packages
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:glider/commands/command.dart';
import 'package:glider/models/item.dart';
import 'package:glider/pages/account_page.dart';
import 'package:g... |
package it.agilelab.darwin.app.mock.classes
import it.agilelab.darwin.annotations.AvroSerde
@AvroSerde
case class MyClass(override val value: Int, otherVale: Long) extends MyTrait
|
# -*- coding: utf-8 -*-
require 'write_xlsx/package/xml_writer_simple'
require 'write_xlsx/utility'
module Writexlsx
module Package
class Relationships
include Writexlsx::Utility
Schema_root = 'http://schemas.openxmlformats.org'
Package_schema = Schema_root + '/package/2006/relationships... |
CREATE PROCEDURE [dbo].[RenameFolder]
@userId UNIQUEIDENTIFIER,
@id UNIQUEIDENTIFIER,
@name NVARCHAR(200)
AS
UPDATE [Folders] SET [Name] = @name WHERE [Id] = (
SELECT TOP 1 [FolderId] FROM [UserFolders] WHERE [FolderId] = @id AND [UserId] = @userId);
|
<?php
/*
* Generated by CRUDigniter v3.2
* www.crudigniter.com
*/
class Controlesistema extends CI_Controller{
function __construct()
{
parent::__construct();
$this->load->database('sistema',TRUE);
$this->load->model('Controlesistema_model');
}
public function index(){
... |
## Asset management models to msdyn_models
This template synchronizes data between Finance and Operations apps and Common Data Service.
Finance and Operations apps | Map type | model-driven apps in Dynamics 365 | Default value
---|---|---|---
DESCRIPTION | = | msdyn_description |
MODELID | = | msdyn_model_id |
PROD... |
import { time } from "@discordjs/builders";
import * as DJS from "discord.js";
import Bot from "structures/Bot";
export async function weekly(
bot: Bot,
interaction: DJS.CommandInteraction,
lang: typeof import("@locales/english").default,
) {
const user = await bot.utils.getUserById(interaction.user.id, intera... |
# TermJa
専門用語を簡単に変換するための辞書ファイルです。
現在は数学を拡充しています。
## 使用方法
### 1. 最新の辞書ファイルをダウンロードする
[最新の辞書ファイル](https://github.com/kakudo415/dict/releases/latest)
### 2. インストールする
そのうちちゃんと書きます。
#### Windowsの場合
「IME 辞書 インポート」等で検索してください。
#### macOSの場合
[Macの追加辞書に読み込むためのテキストファイルを作成する](https://support.apple.com/ja-jp/guide/japanese... |
# hcloud\_ocf
Pacemaker OCF Resource Agents to manage Hetzner Cloud resources.
## Floating Ip
Floating ips are also known as failover ips. They can be switched between hosts.
[Floating IP Resource Agent](floating_ip)
## Fencing / Stonith
Stonith devices ensure data safety by 'killing' a node believed to have failed.... |
export declare function baselineVerbose(node: Element): string;
export declare function baselineBrief(node: Element): string;
export declare function leftSuperscriptVerbose(node: Element): string;
export declare function leftSubscriptVerbose(node: Element): string;
export declare function leftSuperscriptBrief(node: Ele... |
package cn.allwayz.auth.service.impl;
import cn.allwayz.auth.exception.RegisterPageException;
import cn.allwayz.auth.feign.MemberFeignService;
import cn.allwayz.auth.service.RegisterService;
import cn.allwayz.auth.vo.RegisterVO;
import cn.allwayz.common.to.MemberRegisterTO;
import cn.allwayz.common.utils.R;
import com... |
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:grin_plus_plus/screens/root_screen/bloc/bloc.dart';
import 'package:grin_plus_plus/screens/screens.dart';
import 'package:grin_plus_plus/screens/send_screen/bloc/bloc.dart';
... |
#!/bin/bash
cm=2
CUDA_VISIBLE_DEVICES=$1 python hdrnet/bin/train.py \
--learning_rate 1e-4 \
--batch_size 16 \
--model_name HDRNetPointwiseNNGuide \
--nobatch_norm \
--output_resolution 512 512 \
--channel_multiplier $cm \
--data_dir data/style_transfer_1024/tra... |
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_RATreeViewBasicExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_RATreeViewBasicExampleVersionString[];
|
FactoryBot.define do
factory :emergency_login_key do
not_valid_after { Date.current - 5.months }
publisher
end
end
|
package com.user.invoicemanagement.model.dto
import com.raizlabs.android.dbflow.annotation.Column
import com.raizlabs.android.dbflow.annotation.PrimaryKey
import com.raizlabs.android.dbflow.annotation.Table
@Table(database = DbflowDatabase::class)
class OldProduct {
@PrimaryKey(autoincrement = true)
var id:... |
#!/bin/bash
sed 's/double precision/single precision/g' monolish_vml_double.hpp | \
sed 's/double/float/g' > monolish_vml_float.hpp
|
# 计算中国节假日
本项目采用的是:ThinkPHP5+mysql进行编写
# 功能介绍
用于计算中国的工作日,避开周六/周日并考虑到放假和补班
调用接口时写入指定开始计算的时间和要就算的天数,就会返回指定开始时间到指定天数的最后一天的工作日时间或指定天数内所包含的所有时间
由于数据库很小就一个表,我就复制了那个表的内容和结构,方便大家整合到成型的系统
# 待完善的功能
现在每年节假日安排出来后都得去添加一次,需要找一个相关的接口去完善
|
import tape from 'tape';
import tableEqual from '../table-equal';
import { desc, op, table } from '../../src';
tape('orderby orders a table', t => {
const data = {
a: [2, 2, 3, 3, 1, 1],
b: [1, 2, 1, 2, 1, 2]
};
const ordered = {
a: [1, 1, 2, 2, 3, 3],
b: [2, 1, 2, 1, 2, 1]
};
const dt = ta... |
package scalaz.example
import scalaz.{Endo,IList,Zip}
import scalaz.std.function._
import scalaz.std.anyVal._
import scalaz.syntax.monoid._
import scalaz.syntax.foldable._
object EndoUsage {
// The scala Endo class is a class which wraps functions from A => A
// for some A. This class exists in order to supply so... |
#!/bin/bash
set -euo pipefail
if [[ -z ${1+x} ]];
then
echo 'version number required'
exit 1
else
VERSION=$1
fi
BASE_DIR=$(pwd)
BASE_VERSION=${VERSION:0:3}
ROUND_VERSION=$( printf '%.*f\n' 1 $BASE_VERSION )
if [[ 1 -eq "$(echo "$ROUND_VERSION >= 4.0" | bc)" ]]; then
echo "Support currently not availa... |
import React from 'react';
import { graphql, StaticQuery } from 'gatsby';
import { List, ListItem, Link } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import styles from '../assets/jss/material-kit-react/components/footerStyle';
const useStyles = makeStyles(styles);
const FooterMenu... |
/******************************************************************************/
/*** Preamble ************************************************/
/******************************************************************************/
/*
This code is simplified from code from week 6 of my Online Experiments course, see e.g.
... |
## Test environments
- local Ubuntu 20.04 installation, R 4.1.1, 3.6.0
- win-builder (devel, release, oldrelease)
## R CMD check results
There were no ERRORs or WARNINGs or NOTEs.
## Downstream dependencies
There are no downstream dependencies at this time.
|
export { default as Footer } from './Footer';
export { default as Layout } from './Layout';
export { default as NextLink } from './NextLink';
|
package com.kyant.pixelmusic.ui.shape
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.Outline
import androidx.compose.ui.graphics.Path
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.Layout... |
#ifdef ZFP_WITH_CUDA
#include "../cuda_zfp/cuZFP.h"
static void
_t2(decompress_cuda, Scalar, 1)(zfp_stream* stream, zfp_field* field)
{
if (zfp_stream_compression_mode(stream) == zfp_mode_fixed_rate)
cuda_decompress(stream, field);
}
/* compress 1d strided array */
static void
_t2(decompress_strided_cuda, S... |
<?php
declare(strict_types=1);
namespace TogglJira\Command;
use Exception;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerAwareTrait;
use TogglJira\Options\SyncOptions;
use TogglJira\Service\SyncService;
use Zend\Config\Writer\Json;
use Zend\Console\Adapter\AdapterInterface;
use Zend\Console\Request;
class Sync... |
// apply babel plugins to json
exports.babelrc = function babelrc(json) {
if (!json.plugins) json.plugins = [];
json.plugins.push(['styled-components', { ssr: true, displayName: true }]);
return json;
};
|
---
layout: post
title: Pretty print json
date: 2013-05-09 15:06:00 +0800
author: Yuan Jiang
tags: json
---
How to pretty print json usually for better visibility.
## With python json tool
{% highlight bash %}
curl http://some-api-output-as-json | python -m json.tool
{% endhighlight %}
## With online json format too... |
{-# language NoImplicitPrelude #-}
module Mpv.Prelude.Debug where
import qualified Data.Text as Text
import Exon (exon)
import GHC.Stack (SrcLoc (..))
import Relude
import System.IO.Unsafe (unsafePerformIO)
srcLoc :: CallStack -> SrcLoc
srcLoc = \case
(getCallStack -> (_, loc) : _) -> loc
_ -> error "Debug.srcLo... |
package controllers
/*
============================================================================
Name : mailtpl.go
Author : xiehui
Version : 1.0
Email : xiehui6@lenovo.com
Copyright : Copyright © 2018 Lenovo Services. All rights reserved.
Description : 邮件模板
==========================... |
namespace SOLID.DIP
{
public interface ICustomer
{
}
public class Customer : ICustomer
{
private readonly ICustomerRepository _customerRepository;
public Customer(ICustomerRepository customerRepository)
{
_customerRepository = customerRepository;
}
... |
package no.nav.helse
import java.time.LocalDate
sealed class Vedtak2(
val aktørId: String,
val fødselsnummer: String,
val førsteFraværsdag: LocalDate,
val opprettet: LocalDate,
val forbrukteSykedager: Int = 999 // Avtalt defaultverdi med IT-gjengen for vedtak fra før vi fikk på plass verdien
) {
... |
package me.anno.gpu.buffer
import org.lwjgl.opengl.GL11C.*
enum class AttributeType(val byteSize: Int, val glType: Int, val normalized: Boolean) {
FLOAT(4, GL_FLOAT, false),
DOUBLE(8, GL_DOUBLE, false),
UINT8(1, GL_UNSIGNED_BYTE, false),
UINT16(2, GL_UNSIGNED_SHORT, false),
UINT32(4, GL_UNSIGNED... |
module tokenModule
def getTokenType
return @tokenYpe
end
end
class Token
extend tokenModule
def initialize(tokenType)
@tokenType = tokenType
end
end
|
package com.github.joristruong.load.lesson.factory
import com.jcdecaux.setl.annotation.Delivery
import com.jcdecaux.setl.storage.connector.Connector
import com.jcdecaux.setl.transformation.Factory
import com.jcdecaux.setl.util.HasSparkSession
import org.apache.spark.sql.DataFrame
import org.apache.spark.sql.functions.... |
import { makeStyles } from "@material-ui/core/styles";
export default makeStyles((theme) => ({
root: {
height: "calc(100vh - 64px)"
},
button: {
marginTop: theme.spacing(2)
}
}));
|
/**
* @project: Butterfly
* @author: DStack Group
* @module: user-manager-rest-api
* @fileName: ValidationError.ts
* @created: 2019-03-07
*
* --------------------------------------------------------------------------------------------
* Copyright (c) 2019 DStack Group.
* Licensed under the MIT Licen... |
package com.alexzh.imbarista.domain.repository
import com.alexzh.imbarista.domain.model.Cafe
import io.reactivex.Single
interface NearMeCafeRepository {
fun getCafes(
currentLatitude: Double,
currentLongitude: Double
): Single<List<Cafe>>
} |
/* FantastleReboot: An RPG
Copyright (C) 2011-2012 Eric Ahnell
Any questions should be directed to the author via email at: products@puttysoftware.com
*/
package com.puttysoftware.fantastlereboot.items.combat.predefined;
import com.puttysoftware.fantastlereboot.assets.SoundIndex;
import com.puttysoftware.fantastler... |
# 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 applicable law or agreed to in writing, software
# d... |
import boto3
import json
import random
import time
from datetime import datetime
'''
Generator code for the food truck business. Randomly generate "purhcase" events and
place them into the food truck firehose.
The foodtruck project is an example project with test data.
'''
trucks = [
{'truck': 'PHX1', 'state': '... |
class BaseResultDto {
String? errorMessage;
String timestamp = DateTime.now().millisecondsSinceEpoch.toString();
}
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
namespace Kitware.VTK
{
/// <summary>
/// UserControl derived implementation of vtkRenderWindow for use
/// in Windows Forms applications.
/// The... |
import { ComponentFactoryResolver, Directive, Input, Renderer2, ViewContainerRef } from '@angular/core';
import { FlexyLayoutComponentSchema } from '../model/layout-schema.model';
import { bindAttributes } from './attr.binder.utils';
const LAYOUT_SCHEMA_KEY = 'layoutSchema';
@Directive({
selector: '[flexyContainer]... |
const Country_code = {
"0": { "Country": "Afghanistan", "Code": "93" },
"1": { "Country": "Albania", "Code": "355" },
"2": { "Country": "Algeria", "Code": "213" },
"3": { "Country": "American Samoa", "Code": "1-684" },
"4": { "Country": "Andorra", "Code": "376" },
"5": { "Country": "Angola", "Co... |
## HTTPS File Serving Example
The `https` example shows how to request a file on the `server` from the `client` over HTTPS.
This is HTTP/0.9, which is a toy protocol that's much simpler than real HTTP, especially HTTP/3.
1. HTTPS Server (`http_server.rs`)
The server listens for any client requesting a file.
If the... |
import React from 'react';
import { View, Text, Image } from 'react-native';
import NO_POST from '../../../../assets/no_post.png';
import styles from './noPostStyles';
import { MainButton } from '../../../mainButton';
const NoPost = ({
text,
name,
defaultText,
source,
imageStyle,
style,
isButtonText,
h... |
# Portfolio Site
This is a portfolio site for listing projects I've been working on.
The live site can be found at [https://www.zlateff.com/](https://www.zlateff.com/)
|
package com.fc.currencyconversionservice.domain
import java.math.BigDecimal
data class CurrencyConversionBean (
val id: Long,
val from: String,
val to: String,
val conversionMultiple: BigDecimal,
var quantity: BigDecimal = BigDecimal(0),
var totalCalculateAmount: BigDec... |
# frozen_string_literal: true
class HTRegistrationsController < ApplicationController
before_action :fetch_institutions
PERMITTED_FIELDS = %i[
inst_id
name
jira_ticket
contact_info
auth_rep_name
auth_rep_email
auth_rep_date
dsp_name
dsp_email
dsp_date
mfa_addendum
].f... |
<?php
define('_CLI_DEBUG', TRUE );
include_once __DIR__ . '/init.php';
$cache = Cache::farm('memcached');
function test_data() {
return [
'id' => mt_rand(1,9),
'stamp' => time()
];
}
$key = 'test_data';
$life = 9;
$data = $cache->invoke($key, $life, 'test_data');
var_dump($data);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.