text stringlengths 27 775k |
|---|
import { Component, OnDestroy, OnInit } from '@angular/core';
import { tap } from 'rxjs/operators';
import { OfferState } from '@app/store/offer.state';
import { Select, Store } from '@ngxs/store';
import { Observable, Subscription } from 'rxjs';
import { GetOffers, OfferLoading, ReloadOffers } from '@app/store/offer.a... |
// !LANGUAGE: +DefinitelyNonNullableTypes +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: JClass.java
import org.jetbrains.annotations.*;
public abstract class JClass<T> {
public void foo(@NotNull T x) {}
publ... |
#!/bin/bash
#
# Description : Fix layout pour moodle
#
#
#
# Auteur : Boutry Thomas <thomas.boutry@x3rus.com>
# Date de création : 2016-01-11
# Licence : GPL v3.
###############################################################################
##########
## VARS ##
URL_TO_CHANGE=$1
HTML_FILE=$2
# Exemple :
# ../... |
# Implementation of Mod 11 Check Digits
# Marshall Mickelson
#
# References:
# http://www.ftpconsulting.com/checkdigit.htm
class Mod11
def weight_emitter(number_of_digits)
nextseq = 2
number_of_digits.times do |x|
yield nextseq
nextseq += 1
if nextseq > 7
nextseq = 2
e... |
#ifndef libprocxx__mt__utils_hxx
#define libprocxx__mt__utils_hxx
/**
* \file
* \brief Various utilities for multithreading
*
* \date 2017/07/15
* \author Vaclav Krpec <vencik@razdva.cz>
*
*
* LEGAL NOTICE
*
* Copyright (c) 2017, Vaclav Krpec
* All rights reserved.
*
* Redistribution and use i... |
package grpcutil
import (
"net"
"strings"
"time"
"google.golang.org/grpc"
"github.com/blend/go-sdk/ex"
)
// DialAddress dials an address with a given set of dial options.
// It resolves how to dial unix sockets if the address is prefixed with `unix://`.
func DialAddress(addr string, opts ...grpc.DialOption) (*... |
package org.stepik.android.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
import ru.nobird.android.core.model.Identifiable
@Parcelize
data class Progress(
@SerializedName("id")
override val id: String,
@SerializedName("last_view... |
import Popper from '@components/popper/src/popper';
import type { PopperProps } from '@components/popper/types';
import './styles/popper.scss';
export { Popper, PopperProps };
|
#import <Foundation/Foundation.h>
@class BTAPIClient;
@class BTHTTP;
NS_ASSUME_NONNULL_BEGIN
/**
Domain for analytics service errors.
*/
extern NSString * const BTAnalyticsServiceErrorDomain;
/**
Error codes associated with analytics services.
*/
typedef NS_ENUM(NSUInteger, BTAnalyticsServiceErrorType) {
///... |
# frozen_string_literal: true
require "rails_helper"
RSpec.describe "Cookie Banner", type: :system do
describe "visibility" do
before(:each) do
visit "/"
end
it { expect(page.body).to have_css("#cookies-eu-modal") }
end
describe "accepting cookies" do
before(:each) do
visit "/"
... |
(ns playmary.util
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [goog.dom :as dom]
[goog.events :as events]
[cljs.core.async :refer [<! put! chan]]))
(enable-console-print!)
(defn dirr [o]
(.log js/console o)
o)
(defn printlnr [o]
(println o)
o)
(defn get-wind... |
import 'package:flutter/foundation.dart';
abstract class WalletCreationState {}
class WalletCreating extends WalletCreationState {}
class WalletCreatedSuccessfully extends WalletCreationState {}
class WalletCreationFailure extends WalletCreationState {
WalletCreationFailure({@required this.error});
final Strin... |
/*
* RHQ Management Platform
* Copyright (C) 2005-2010 Red Hat, Inc.
* 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 version 2 of the License.
*
* This program i... |
package cloud
import (
"github.com/devspace-cloud/devspace/pkg/devspace/cloud/config/versions/latest"
"github.com/devspace-cloud/devspace/pkg/util/kubeconfig"
"github.com/pkg/errors"
)
// DeleteKubeContext removes the specified space from the kube context and providers.yaml
func (p *provider) DeleteKubeContext(spa... |
//========================================================================
// This software is free: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License Version 3,
// as published by the Free Software Foundation.
//
// This software is distributed in the hope that it... |
/**
* @file dex_linear_sweep_disassembly.hpp
* @author @Farenain
*
* @brief Linear sweep disassembly for DEX file
* we will create a disassembly method that
* users can also use to disassembly raw
* hex bytes.
*/
#ifndef DEX_LINEAR_SWEEP_DISASSEMBLY_HPP
#define DEX_LINEAR_SWEEP_DISASSEMBL... |
#!/bin/sh
release_ctl eval --mfa "QbBackend.ReleaseTasks.migrate/1" -- "$@"
|
package com.javaweb.config.websocket;
import java.io.IOException;
import java.util.LinkedList;
import javax.websocket.OnClose;
import javax.websocket.OnError;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;
import org.spri... |
SET SCHEMA accounts;
CREATE FOREIGN FUNCTION REPEAT (x string, y integer) RETURNS string
OPTIONS (JAVA_CLASS 'org.teiid.spring.example.UserFunctions',
JAVA_METHOD 'repeat');
|
//-*- C++ -*-x
// Copyright (c) 2013, Bluespec, Inc. ALL RIGHTS RESERVED
#pragma once
#include <string>
#include "XactorCore.h"
#include "MsgPacket.h"
// requirements on T
// constructor T(const SceMiMessageData *)
// friend std::ostream operator<< (std::ostream &, const T &)
template <typename T>
class OutpipeXac... |
package ar.com.kairoslp.tripter.persistence.repository
import ar.com.kairoslp.tripter.model.Trip
interface TripRepository {
fun findById(id: Long): Trip
} |
// Copyright(C) 2022 github.com/hidu All Rights Reserved.
// Author: hidu <duv123@gmail.com>
// Date: 2022/5/4
package hydra
// Protocol 协议接口定义
type Protocol interface {
// Name 协议名字
Name() string
// MinLen 为最小长度,用于做非判断( MustNot )
MinLen() int
// MustNot 通过 MinLen 长度的 header 判断,一定不是该协议
// 当确定不是该协议的时候,返回 tru... |
# cp3
My solutions to the "must try" problems proposed in the book Competitive Programming 3
## Chapter 1: Introduction
### Getting Started: The Easy Problems
#### Super Easy Problems in the UVa Online Judge (solvable in under 7 minutes)
- [ ] 11172 - Relational Operators
- [ ] 11498 - Division of Nlogonia
- [ ] 11... |
package shared.io.helpers.traits.reflection
import java.lang.reflect.Method
import shared.com.ortb.model.reflection
import shared.com.ortb.model.reflection.MethodWrapperModel
import shared.com.ortb.model.results.ResultWithCountSuccessModel
import shared.io.helpers.implementations.reflection.ClassTagHelperConcreteImpl... |
import React, {
KeyboardEvent,
RefObject,
useEffect,
useMemo,
useRef,
useState
} from 'react';
import { INPUT_DEFAULT_STYLE } from '../style';
interface LabelInputListPropos {
labels: string[];
labelsChange: (labels: string[]) => unknown;
}
interface CaretSelection {
inputIndex: number;
start: nu... |
# 大文件上传
## 场景分析
在业务场景中文件上传很普遍,而大文件的上传经常会导致上传时长过久,大量占用带宽资源,而分片上传就解决了目前的问题。
## 解决方案
### 前端 【[Concurrent](./web/src/utils/concurrent.js)】
- 获取文件进行分片
- 请求服务端过滤出未保存的分片
- 未保存分片上传 ` Promise限流 `【[PromiseLimit](./web/src/utils/promiseLimit.js) 】
- 上传完毕,发送合并分片请求
### 后端接口
- 保存分片
- 已保存的分片info获取
- 合并分片 |
class Array
def generate_valid_paths
next_values = [last+2, last*2]
next_values << (last / 2) if last%2 == 0
next_values.map {|value| self + [value]}
end
end
def solve(start, goal)
astar(start,goal)
end
require 'rubygems'
require 'priority_queue'
def astar(start,goal)
open = PriorityQueue.new
s... |
package io.loustler.massemble.spark.builder
import org.apache.spark.{ SparkConf, SparkContext }
object SparkContextBuilder {
/**
*
*
* @param appName
*/
def default(appName: String): SparkContext = {
val conf = new SparkConf().setMaster(DefaultMaster).setAppName(appName)
new SparkContext... |
require 'stan/version'
require 'fileutils'
module Stan
autoload :Server, 'stan/server'
autoload :Compressor, 'stan/compressor'
autoload :Deployer, 'stan/deployer'
CI = ENV.fetch('CI', false).freeze
end
|
using System;
using Android.App;
using Android.Runtime;
using NinjaTools.Droid;
namespace NinjaTasks.App.Droid
{
[Application(/*Debuggable = true, // TODO: remove for shipment*/
Icon="@drawable/ic_launcher",
Theme="@style/ThemeNinjaTasks",
Label="@strin... |
# Slam PHPUnit extensions
This repo has been superceded by [slam/phpstan-extensions](https://github.com/Slamdunk/phpstan-extensions).
|
<?php
namespace App\Services;
use App\Models\AccountingConnection;
class CreateAccountingConnectionService
{
// добавление записи в РеестрБухгалтерскихОпераций
public function make($data)
{
return (new AccountingConnection())->create($data);
}
}
|
; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
; CHECK: Cannot allocate unsized type
; PR2113
define void @test() {
%A = alloca void()
ret void
}
|
package java.time.temporal
trait Temporal extends TemporalAccessor {
def isSupported(unit: TemporalUnit): Boolean
def `with`(adjuster: TemporalAdjuster): Temporal = adjuster.adjustInto(this)
def `with`(field: TemporalField, newValue: Long): Temporal
def plus(amount: TemporalAmount): Temporal = amount.addTo(... |
fun main() {
println(getGreeting());
println(hello())
println(getGreetingShort())
println(getNullString())
sayHello("Kotlin")
sayHello("Kotlin", "Hello")
}
fun getGreeting(): String {
return "Returned String"
}
// returns nothing
fun hello() : Unit {
return Unit;
}
// type inference... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Siswa extends Model
{
//Menghubungkan model dengan table
protected $table = 'tbl_siswa';
protected $primaryKey = 'nis';
//Menentukan field yang boleh diisi
protected $fillable = [
'nama', 'jenis_kelamin', 'alamat_siswa',... |
use {crate::id::Id, makepad_render::*, std::collections::HashMap};
#[derive(Default)]
pub struct ListLogic {
item_ids_by_area: HashMap<Area, ItemId>,
selected_item_id: Option<ItemId>,
}
impl ListLogic {
pub fn new() -> ListLogic {
ListLogic::default()
}
pub fn begin(&mut self) {
s... |
module AdventOfCode2019
using BenchmarkTools
using Printf
solvedDays = 1:25
# Include the source files:
include(joinpath(@__DIR__, "intcode.jl"))
for day in solvedDays
ds = @sprintf("%02d", day)
include(joinpath(@__DIR__, "day$ds.jl"))
end
# Read the input from a file:
function readInput(path::String)
s... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class AbsensiDepartemen extends Model
{
protected $table = "absensi_departemens";
public function departemensub()
{
return $this->hasMany('\App\AbsensiDepartemensub', 'departemen_id');
}
}
|
package main
const (
// StatusOK means no problems.
StatusOK = iota
// StatusNoCredentials means wrong inputs to login.
StatusNoCredentials = iota
// StatusNoAuth means no or wrong auth token was passed.
StatusNoAuth = iota
// StatusAuthFailed means username or password was wrong, or account non-existent.
Stat... |
Demo - https://alonhar.github.io/rubiks-cube-3d/index.html
### License
____________________
rubiks-cube-3d is licensed under the MIT License.
|
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Camfort.Analysis.CommentAnnotatorSpec (spec) where
import Camfort.Analysis.CommentAnnotator
import Camfort.Specification.Parser (mkParser, parseError, SpecParser)
... |
<!-- DOCTOC SKIP -->
# Optimism Bedrock specs
This directory contains the plain english specs for Optimism, an minimal optimistic rollup protocol
that maintains 1:1 compatibility with Ethereum.
## Specification Contents
- [Glossary](glossary.md)
- [Deposits](deposits.md)
- [Execution Engine](exec-engine.md)
- [L2 Ou... |
package com.qiyei.android.media.app.ui.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.FragmentTransaction
import com.qiyei.android.media.app.R
import com.qiyei.android.media.app.ui.fragment.MediaFragment
class MainActivity : AppCompatActivity() {
ov... |
package solutions.masai.masai.android.register;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.util.Patterns;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import solutions.masa... |
# Some credits of this file go to Javy de Koning
Write-Host 'Installing Dependencies...' -ForegroundColor Yellow
$packageProvider = Install-PackageProvider -Name NuGet -Force
Write-Host " - NuGet version '$($packageProvider.version)'"
Write-Host ' - Pester'
Install-Module -Name Pester -Repository PSGallery -Force
W... |
using System;
using System.IO;
using System.Windows.Forms;
using System.Drawing;
using ZedGraph;
using static OrbModUI.OrbMod_FormGraph;
using static System.Math;
namespace OrbModUI
{
public abstract class Plot
{
protected ZedGraphControl zg;
protected string fileName;
protected dou... |
package arrow.meta.phases
data class Composite(val phases: List<ExtensionPhase>): ExtensionPhase {
companion object {
operator fun invoke(vararg phases: ExtensionPhase): ExtensionPhase =
Composite(phases.toList())
}
} |
package net.bzzt.strictscalaversions
import sbt.AutoPlugin
import sbt.settingKey
import sbt.Keys.crossScalaVersions
import sbt.Keys.scalaVersion
object StrictScalaVersionsPlugin extends AutoPlugin {
override def trigger = allRequirements
object autoImport {
val strictScalaVersionCheck = settingKey[Unit]("str... |
import webbrowser
# class = blueprint that have data and methods
class Movie():
""" This class provides a way to store movie related information"""
# constructor this is the init method and analyze the data.
def __init__(self, movie_title, movie_storyline,
poster_image, traile... |
#pragma once
#include "ActorComponent.hpp"
struct SDL_KeyboardEvent;
namespace oeng
{
inline namespace engine
{
class InputSystem;
class ENGINE_API InputComponent final : public ActorComponent
{
CLASS_BODY(InputComponent)
public:
InputComponent();
void BindAction(Name action, bool pressed, std::func... |
module Embulk
# TODO pure-ruby page reader
class Page
include Enumerable
def initialize(java_page, schema)
@java_page = java_page
@schema = schema
end
attr_reader :schema
def each
schema = @schema
reader = Java::PageReader.new(schema.to_java)
begin
rea... |
package games
import (
rps "example.com/games/RPS"
ttt "example.com/games/TTT"
)
// Returns a string generated by tictactoe. This can be anything from
// gameplay to gameplay logic errors
func PlayTTT(playerID string, player string, args []string) string {
return ttt.PlayTTT(player, player, args)
}
/*
Returns the... |
Firedrake scripts for the blog post https://www.migueloptimization.com/posts/diode/

|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
namespace SmoothGL.Graphics
{
/// <summary>
/// Describes the six possible faces of a cube texture.
/// </summary>
public enum TextureCubeFace
{... |
use core::ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Neg, Sub, SubAssign};
use rand::{
distributions::{Distribution, Standard},
Rng,
};
#[derive(Debug, Copy, Clone, PartialEq)]
pub struct Vector(f64, f64, f64);
macro_rules! impl_bin_op {
($trait_name:ident, $method_name:ident) => {
imp... |
use WordsFile;
/// Error that can occur when parsing words file
#[derive(Debug, Fail)]
pub enum WordsFileCorrupt {
#[fail(display = "Corrupt words file! Line {} in \"{}\" doesn't have boolean prefix.", _1, _0)]
Corrupt(&'static str, usize),
#[fail(display = "Corrupt words file! File {} is empty!", _0)]
... |
package net.minestom.server.network.packet.client;
import net.minestom.server.MinecraftServer;
import net.minestom.server.entity.Player;
public abstract class ClientPlayPacket implements ClientPacket {
public void process(Player player) {
MinecraftServer.getPacketListenerManager().process(this, player);
... |
from django.views.generic import ListView
from .models import Fruit
from django.contrib.auth.mixins import LoginRequiredMixin
class FruitListView(LoginRequiredMixin, ListView):
model = Fruit
template_name = 'catalogue/fruit-list.html'
context_object_name = 'fruits'
def get_context_data(self, **kwa... |
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2010 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2009-06-09
// Updated ... |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_unit/app/blocs/global/global_bloc.dart';
import 'package:flutter_unit/app/blocs/global/global_event.dart';
import 'package:flutter_unit/app/blocs/global/global_state.dart';
import 'package:flutter_unit/compo... |
from leapp.actors import Actor
from leapp.libraries.actor.sourcebootloaderscanner import scan_source_boot_loader_configuration
from leapp.models import SourceBootLoaderConfiguration
from leapp.tags import FactsPhaseTag, IPUWorkflowTag
class SourceBootLoaderScanner(Actor):
"""
Scans the boot loader configurati... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$route['home/index'] = 'home/index';
$route['home/homelogin'] = 'home/homelogin';
$route['home/(:any)'] = 'home/view/$1';
$route['komplain/index'] = 'komplain/index';
$route['komplain/indexadm'] = 'komplain/indexadm';
$route['komplain/searchadm'] ... |
PDFKit.configure do |config|
#config.wkhtmltopdf = '/Users/andybass/.rbenv/shims/wkhtmltopdf'
config.default_options[:quiet] = false
config.default_options[:load_error_handling] = 'ignore'
end
|
/**
*cpp file of class Champion
*Authors Alexey Titov and Shir Bentabou
*Version 2.0
**/
//library
#include "Champion.h"
//we need change, set our algorithm
const Coordinate Champion::play(const Board& board){
for (uint x=0; x<board.size(); ++x){
uint tmp=board.size()-1-x;
Coordinate c{tmp,x};
... |
# HexViewer 2.6.0
New release!
Please see `Preferences->Package Settings->HexViewer->Changelog`
for more info about the release.
|
<html>
<head>
<link rel="stylesheet" href="<?=base_url()?>assets/css/materialize.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="<?=base_url()?>assets/css/style.css">
<link rel="stylesheet" href="<?=base_url()?>assets/css/sweet... |
import { Directive, HostBinding, Input, OnChanges } from '@angular/core';
import { DToast } from './toast';
@Directive({
selector: '[toastColor]'
})
export class ToastColorDirective implements OnChanges {
@Input('toastColor') toast: DToast;
@HostBinding('class.text-info') info: boolean
@HostBinding('... |
require "spec_helper"
RSpec.describe Monotonic do
describe ".now" do
it "returns monotonic time" do
expect { Monotonic.now }.not_to raise_error
end
end
end
|
# svgToImg方法
## 基础用法
> 此方法是使用在需要在地图中展示大量 icon 时,将要展示的icon 从 html 转化为base64图片的方法,可以用于节省性能
:::demo
```html
<template>
<div style="width: 100%; height: 600px">
<sp-map height="100%" :center="[120, 33]" :zoom="3" >
<sp-map-image v-for="(item, index) in arr" :key="index" v-bind="item" ></sp-map-image>
</... |
#!/bin/bash
# Start cronjob service(daemon)
# service cron start
# Run django in interactive mode
if [ ${PYTHON_IS_PRODUCTION} = "true" ]; then
_cmd="uwsgi --ini uwsgi.ini"
else
_cmd="python manage.py runserver 0.0.0.0:8000"
fi
exec $_cmd
|
class TripData {
String deviceId;
Destination destination;
TripData({this.deviceId, this.destination});
TripData.fromJson(Map<String, dynamic> json) {
deviceId = json['device_id'];
destination = json['destination'] != null
? new Destination.fromJson(json['destination'])
: null;
}
... |
---
layout: post
title: "2019. 8. 25. 일요일 오전 러닝"
categories: run
author: "허건영"
---
.jpg){: width="100%" height="100%"}
거리 - 1.77km
페이스 - 5\`36\`\`/km
시간 - 09:54
.jpg){: width="100%" height="100%"}
거리 - 3.91km
페이스 - 6... |
using System.Threading.Tasks;
using Cosmos.Serialization.Json.Lit;
// ReSharper disable once CheckNamespace
namespace Cosmos.Serialization.Json
{
/// <summary>
/// LitJson extensions
/// </summary>
public static partial class Extensions
{
/// <summary>
/// To LitJson
/// </... |
import { expect } from 'chai';
import * as funcs from './3.05-sortStack';
for (let key in funcs) {
let func = funcs[key];
describe('ch3-q5: ' + key, function() {
it('does not crash on an empty list', function() {
let stack = [];
expect(() => func(stack)).to.not.throw(Error).and.to.equal(stack);
... |
type XPCallbacks
start_cdata::Function
end_cdata::Function
comment::Function
character_data::Function
default::Function
default_expand::Function
start_element::Function
end_element::Function
start_namespace::Function
end_namespace::Function
end
type XPStreamHandler{D}
cbs::... |
ALTER TABLE nfc
add column if not exists name VARCHAR(1024),
add column if not exists updated_at timestamp,
drop column if exists linked_multimedia_id;
|
drop table if exists users;
drop table if exists reports;
drop table if exists persons;
create table users (
id integer primary key autoincrement,
tax_id integer check(tax_id not null and length(tax_id) == 9),
precinct text not null,
sector text not null,
password text not null,
first_name text not null,
... |
# frozen_string_literal: true
# Copyright 2021 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... |
/* leave this
l:see LICENSE file
g:utility
v:130612\s.zaglio: @out to null if error
v:130529\s.zaglio: added out to @out
v:120406\s.zaglio: replaced #blob with #spfrsblob
v:110921\s.zaglio: adapted to use of fn__ntext_to_lines
v:110316\s.zaglio: adapted to new sp__write_ntext_to_lines #blo... |
using Il2CppSystem.Collections.Generic;
using DataHelper;
namespace GunfireLib.Data
{
public static class ModelData
{
public static Dictionary<int, modeldataclass> modelList;
public static System.Collections.Generic.Dictionary<int, Classes.ModelDataClass> parsedModelList =
new Sys... |
package edu.ucsf.lava.core.auth.model;
import java.util.Calendar;
import java.util.Date;
import java.util.Set;
import edu.ucsf.lava.core.model.EntityBase;
import edu.ucsf.lava.core.model.EntityManager;
public class AuthGroup extends EntityBase {
public static EntityManager MANAGER = new EntityBase.Manager(AuthG... |
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Models\Childrens;
use Illuminate\Database\Events\StatementPrepared;
use Illuminate\Http\Request;
use App\Models\Parents;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Input;
c... |
package cn.web.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.web.b... |
function Beta_tr(mu, sd)
a = ((1 - mu) / sd ^ 2 - 1 / mu) * mu ^ 2
b = a * (1 / mu - 1)
return a, b
end
function Gamma_tr(mu, sd)
b = sd ^ 2 / mu
a = mu / b
return a, b
end
function InvGamma_tr(mu, sd)
a = mu ^ 2 / sd ^ 2 + 2
b = mu * (a - 1)
return a, b
end
@model function ... |
package com.example.application.views.listview;
import com.vaadin.flow.component.html.H1;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
//@Route("company")
public class CompanyListView extends VerticalLayout {
public CompanyListView(){
add(new H1("Firma Listesi"));
}
}
|
; Check FP options -fno-trapping-math and -fdenormal-fp-math. They are passed
; as function attributes, which map on to build attributes ABI_FP_exceptions
; ABI_FP_denormal. In the backend we therefore have a check to see if all
; functions have consistent function attributes values.
; Here we check values no-trapping-... |
/*
* Tencent is pleased to support the open source community by making vap available.
*
* Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the... |
use crate::player::{PlayerPlugin, Player};
use bevy::window::WindowMode;
use bevy::prelude::*;
mod screens;
mod gamedata;
mod gamestate;
mod ground;
mod player;
use crate::ground::GroundPlugin;
use crate::gamestate::*;
use crate::screens::ScreensPlugin;
use crate::gamedata::GameData;
const SCREEN_WIDTH: f32 = 1280.0... |
/* eslint-disable no-unused-vars */
/* eslint-disable no-param-reassign */
import {
getAllDevice,
getDeviceTypeById,
addDevice,
updateDevice,
delByDeviceId,
} from '@/services/MaintEqui';
import { message } from 'antd';
const judge = ({ code, msg }) => {
if (code === 200) {
return true;
}
message... |
require 'oauth2'
module Twitch
class OAuth
#def initialize(client_id, client_secret, options = {})
def initialize(options = {})
opts = options.dup
@oauth_options = {
:site => 'https://api.twitch.tv',
:authorize_url => '/kraken/oauth2/authorize',
:token_url... |
module Paypal
module Ipn
module Item
def item_name(index = nil)
item_attribute_value("item_name", index)
end
def item_quantity(index = nil)
item_attribute_value("quantity", index).to_i
end
def item_number(index = nil)
item_attribute_value("item_number", inde... |
# coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from qrl.core import logger, config
from twisted.internet.task import cooperate
from pyqrllib.pyqrllib import bin2hstr
from qrl.core.BufferedChain import BufferedChai... |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module PipelineSpec where
import Protolude
import Test.Hspec
import qualified Control.Monad.Except as E
import qualified Control.Monad.State.Strict as S
import qualified Step2.Impl2 as I2
import qualified Step3.Impl3 as I3
sp... |
<!-- Autogenerated by weave; DO NOT EDIT -->
<!-- To regenerate the readme, run: -->
<!-- go run golang.org/x/example/gotypes@latest generic-go-types.md -->
# Updating tools to support type parameters.
This guide is maintained by Rob Findley (`rfindley@google.com`).
**status**: this document is currently a work-in-p... |
import json
import logging
import os
import os.path
from queue import Queue
import random
import time
import urllib
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.by import By
from twigmon.config import IG_LOGIN, USER
from twigmon.const import DATA_DIR, DEBUG_DIR, IG_URL
f... |
lazy val root = project
.in(file("."))
.enablePlugins(SbtPlugin)
.settings(
sbtPlugin := true,
name := "sbt-docker-compose-test",
organization := "fr.ramiro",
scalaVersion := "2.12.15",
libraryDependencies ++= Seq(
"org.scala-sbt" % "sbt" % sbtVersion.value % Provided,
"org.scala-s... |
(UBYTE5P)
(BOOLEANP-OF-UBYTE5P)
(UBYTE5P-FORWARD-UNSIGNED-BYTE-P)
(UNSIGNED-BYTE-P-REWRITE-UBYTE5P)
(NATP-WHEN-UBYTE5P)
(UBYTE5-FIX)
(UBYTE5P-OF-UBYTE5-FIX)
(UBYTE5-FIX-WHEN-UBYTE5P)
(FTY::TMP-DEFFIXTYPE-IDEMPOTENT)
(UBYTE5-EQUIV$INLINE)
(UBYTE5-EQUIV-IS-AN-EQUIVALENCE)
(UBYTE5-EQUIV-IMPLIES-EQUAL-UBYTE5-FIX-1)
(UBYTE5... |
# GitHub Repository search

## Your users should be able to:
- View the optimal layout for each page depending on their device's screen size
- See hover states for all interactive elements on the page
- Toggle color theme to their prefer... |
(ns repl-tooling.editor-integration.loaders
(:refer-clojure :exclude [load-file])
(:require [clojure.string :as str]
[repl-tooling.editor-helpers :as helpers]
[repl-tooling.editor-integration.evaluation :as e-eval]))
(defn- eval-code [code {:keys [editor-data notify evaluate on-eval]}]
(l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.