text stringlengths 27 775k |
|---|
export interface IAccountOwnership {
Action?: 'Propose';
MemberNumber: number;
}
|
#!/bin/bash
set -x
# assume polycubed is already running
# sudo polycubed -d
# assume veth1 and veth2 already created and configured
# ./setup_veth.sh
echo "configure firewall and connect ports"
polycubectl firewall add fw
polycubectl firewall fw ports add fw-p1
polycubectl firewall fw ports add fw-p2
polycubect... |
<?php
// config for Morrislaptop/LaravelSeedList
return [
/*
* The directory where your seeder classes are stored.
*/
'seeders_path' => database_path('seeders'),
/**
* The default namespace for seeders (excluded when printed in console)
*/
'seeders_namespace' => 'Database\\Seeders\\... |
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use App\Http\Controllers\Controller;
class AuthController extends Controller
{
/**
* Login.
*/
p... |
import sys, re
def read_int(input, count, signed = False):
return int.from_bytes(input.read(count), byteorder = 'little', signed = signed)
def main(args):
try:
rom_gba = args[1]
offset = int(args[2], base = 0) & 0x1FFFFFF
end_offset = int(args[3], base = 0) & 0x1FFFFFF
except Inde... |
from django.urls import path
from .views import *
urlpatterns = [
path('create/', AuthorCreateView.as_view()),
path('all/', AuthorListView.as_view()),
path('detail/<int:pk>', AuthorDetailView.as_view()),
]
|
package com.packt;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.*;
import javafx.stage.Stage;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import java.util.*;
import java.util.function.*;
import java.util.stream.*;
import javafx.scene.*;
import javafx.scene... |
{-# LANGUAGE ScopedTypeVariables, FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module Selective where
-- Tests for limitSelect-related code in L.LimitWindows.
-- To run these tests, export (select,update,Selection(..),updateAndSelect) from
-- L.LimitWindows.
import XMonad.Layout.LimitWindow... |
package com.sailer.core.navigation
/**
* Created by Ahmed Abd-Elmeged on 5/6/20.
*/
interface CoordinatorHost<C : Coordinator> {
val coordinator: C
} |
using System;
namespace OSiSP_2
{
public class PrintTask : ITask
{
private readonly string _text;
public PrintTask(string text)
{
_text = text;
}
public void Process()
{
Console.WriteLine (_text);
}
}
}
|
package com.mindorks.framework.mvvm.ui.theme
import androidx.compose.ui.graphics.Color
val ComPurple200 = Color(0xFFBB86FC)
val ComPurple500 = Color(0xFF6200EE)
val ComPurple700 = Color(0xFF3700B3)
val ComTeal200 = Color(0xFF03DAC5) |
<h1>Dxdcore</h1>
<h2><?= $name; ?></h2>
<?php foreach($posts as $post): ?>
<h3><?= $post->title ?></h3>
<?php endforeach ?> |
# Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
import unittest
from c7n.registry import PluginRegistry
class RegistryTest(unittest.TestCase):
def test_unregister(self):
registry = PluginRegistry('dummy')
klass = lambda: 1 # NOQA
registry.register('dust',... |
# PowerShell-Log4J-Scanner
can find, analyse and patch Log4J files because of CVE-2021-44228, CVE-2021-45046
official apache site: https://logging.apache.org/log4j/2.x/download.html
Script is for Powershell, should work on Win10 or Win11.
|
zip -d libs/hamcrest-core-1.1.jar LICENSE.txt
zip -d libs/hamcrest-library-1.1.jar LICENSE.txt
zip -d libs/hamcrest-integration-1.1.jar LICENSE.txt
zip -d libs/junit-dep-4.10.jar LICENSE.txt
|
cd $1
mkdir -p training/tsv
#mkdir -p training/parquet
cd training/tsv
split -d --lines=1000000 --suffix-length=2 --filter='gzip > $FILE.gz' ../../training.tsv data_
#cd ../..
#mkdir -p evaluation/tsv
#mkdir -p evaluation/parquet
#cd evaluation/tsv
#split -d --lines=1000000 --suffix-length=2 --filter='gzip > $FILE.gz... |
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\User $user
*/
?>
<div class="breadcrumb_div">
<ol class="breadcrumb m-b-20">
<li class="breadcrumb-item"><a
href="<?php echo $this->Url->build(['controller' => 'Tops',
'action' => 'index']); ?>">Home</a></li>
<li class="breadcrumb-item">... |
package com.crestech.pages.androidpage.paytransfer;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.Duration;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.remote.RemoteWebElement;
import org.openqa.se... |
package kr.ac.gachon.sw.safenoisecanceling.ui.splash
class SplashPresenter: SplashContract.Presenter {
private var mView: SplashContract.View? = null
override fun createView(view: SplashContract.View) {
mView = view
}
override fun destroyView() {
mView = null
}
} |
package com.alexzh.imbarista.domain.interactor.user
import com.alexzh.imbarista.domain.executor.PostExecutionThread
import com.alexzh.imbarista.domain.model.User
import com.alexzh.imbarista.domain.repository.UserRepository
import com.alexzh.testdata.base.RandomData.randomEmail
import com.alexzh.testdata.base.RandomDat... |
package com.kasukusakura.kimiroyli.core;
import com.kasukusakura.kimiroyli.api.internal.ImplBridge;
import com.kasukusakura.kimiroyli.api.perm.Permission;
import com.kasukusakura.kimiroyli.api.perm.PermissionContext;
import com.kasukusakura.kimiroyli.api.perm.StandardPermissions;
import com.kasukusakura.kimiroyli.core... |
import { complete } from "@/util";
import assert from "assert";
import { isEqual } from "lodash";
import {
completeStockTimeDataArrRes01,
completeStockTimeDataArrRes02,
completeStockTimeDataArrExample03,
completeStockTimeDataObjArrRes01,
completeStockTimeDataObjArrRes02,
completeStockTimeDataObjArrExample0... |
/*This is a small java GUI application,
* for calculating the precise PE-score according to the given critera.
*
* All the code is in this file.
*
* Author: zhendong.nus@gmail.com
* License: MIT
* Date: Jan 9 2017
*
* */
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
impor... |
# Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
# 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: [package root]/LICENSE.txt
# Unless required by applicable law or agreed to in writing,... |
import 'dart:async';
import 'package:mocha/src/cache_impl.dart';
typedef Future<V> Callable<K, V>(K key);
/// Key value cache where values are loaded manually and stored until they
/// are evicted or manually invalidated.
abstract class Cache<K, V> {
factory Cache({
Duration expiresAfterWrite,
int maximumSi... |
/*
* Copyright (c) 2008 Kasper Nielsen.
*
* 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 ag... |
export enum InstitutionalInvestors {
FINI = '外資',
SITC = '投信',
}
|
package jp.zuikou.system.redditprojectsample1.presentation.data.datasource
sealed class NetworkState {
object LOADING : NetworkState()
object SUCCESS : NetworkState()
object ERROR : NetworkState()
object NO_INTERNET : NetworkState()
} |
#!/usr/bin/env bash
# this versioning algo:
# keeps tag as is in case if this version is an equal match
# otherwise adds .<number of commits since last tag>
SHORT_TAG=`git describe --abbrev=0 --tags`
LONG_TAG=`git describe --tags`
COMMIT_WITH_LAST_TAG=`git show-ref --tags --dereference | grep "refs/tags/${SHORT_TAG}^... |
/**
* Copyright 2020 EPAM Systems
*
* 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... |
package tokyo.aieuo.mineflow.formAPI.element.mineflow
import tokyo.aieuo.mineflow.flowItem.FlowItemIds
import tokyo.aieuo.mineflow.utils.DummyVariableMap
import tokyo.aieuo.mineflow.variable.DummyVariable
class EntityVariableDropdown(
variables: DummyVariableMap = mapOf(),
default: String = "",
text: Stri... |
#pragma once
#include "qset.hh"
#include "TWUtilAlgos.hh"
#include "AbstractMemo.hh"
#include "BottomUpTW.hh"
bool isSimplicial(const Graph& G, Vertex v, const VSet& SStart);
|
import React from 'react';
import { render, waitFor, fireEvent } from '@testing-library/react';
import SearchDialog from './search-dialog';
const createTestProps = (custom) => ({
onClose: jest.fn(),
...custom,
});
describe('Rendering', () => {
it('should initialize autocomplete search input and focus on it', as... |
/*
* Copyright 2020 Paul Rybitskyi, paul.rybitskyi.work@gmail.com
*
* 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 requir... |
/**
* Exposure of the library components.
*
* @module rabbit-hole
*/
export {
Deserializable,
Disposable,
Queue,
Serializable,
Terrain,
TransferableContainer
} from "./core";
export {
Clipmap,
Scene
} from "./clipmap";
export {
RunLengthEncoding
} from "./codecs";
export {
SDFLoaderEvent,
TerrainEven... |
module SimpleQS
module Request
class Get < Base
http_method :get
def perform
sign!
SimpleQS::Responce.new Net::HTTP.get(URI.parse(uri(true)))
end
end
end
end
|
/** Copyright (c) 2010, 2011 Novus Partners, Inc. <http://novus.com>
*
* 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 req... |
import { Response } from 'got';
import { HttpCookie } from './http.cookie';
export interface HttpResponse<T> extends Response<T> {
cookies: HttpCookie[];
}
|
module sb
export OhmicSBParams, SBModel,
EhrenfestOps, RunEhrenfest!,
ECEIDOps, RunECEID!,
CEIDOps, RunCEID!,
H, F, K, comm, acomm, IOHBAR
include("physical_constants.jl")
include("matrices.jl")
include("ohmicsb.jl")
include("ehrenfest.jl")
include("ECEID.jl")
include("CEID.jl")
end ... |
// with '!' mark we tell ts compiler never yield null
// casting with angle brackets
const userInputElement = <HTMLInputElement>document.getElementById('user-input')!
userInputElement.value = 'test button angle'
// casting with 'as' keyword
const userInputElementAs = document.getElementById('user-input')! as HTMLInput... |
require 'cancan/ability'
require 'cancan/rule'
require 'cancan/model_additions'
require 'cancan/exceptions'
require 'cancan/model_adapters/abstract_adapter'
require 'cancan/model_adapters/default_adapter'
require 'cancan/model_adapters/active_record_adapter' if defined? ActiveRecord
require 'cancan/model_adapters/data_... |
exports.up = (pgm) => {
pgm.createTable('portals', {
id: {type: 'uuid', primaryKey: true},
active_shared_editor_id: {type: 'bigint', references: 'shared_editors'}
})
}
|
/*
* @class Fancy.grid.plugin.GroupHeader
* @extends Fancy.Plugin
*/
Fancy.define('Fancy.grid.plugin.GroupHeader', {
extend: Fancy.Plugin,
ptype: 'grid.groupheader',
inWidgetName: 'groupheader',
/*
* @constructor
* @param {Object} config
*/
constructor: function(config){
var me = this;
me... |
<?php
//So that we don't need a certain root folder name
define('MOD_DOAP_PATH',rtrim(dirname(__FILE__), DIRECTORY_SEPARATOR));
$folders = explode(DIRECTORY_SEPARATOR,MOD_DOAP_PATH);
define('MOD_DOAP_DIR',rtrim(array_pop($folders),DIRECTORY_SEPARATOR));
unset($folders);
// NewsletterSignup::set_api_key('...');
|
export 'barcode_scanner_view.dart';
export 'digital_ink_recognizer_view.dart';
export 'face_detector_view.dart';
export 'label_detector_view.dart';
export 'pose_detector_view.dart';
export 'text_detector_view.dart';
|
-- Shows the SQL to run to load the final table
WITH LoadData AS(
SELECT load_table.visitId,
load_table.visitNumber,
load_table.visitStartTime,
load_table.channelGrouping,
load_table.date,
load_table.fullVisitorId,
load_table.socialEngagementType,
l... |
# Jimus.io的说说
这是一个博客, 分享一些智能家居相关的好用的工具.
让所有人轻松享受智能生活. 从[这里开始](https://jimusio.github.io/blog)
如果您遇到好用的工具, 欢迎推荐给我们.
|
node scripts/validate-token.js
# staging or prod
MODE=$1
WEBSITE_DIR=`pwd`
# clean up cache
rm -rf ./.cache ./public
case $MODE in
"prod")
gatsby build
;;
"staging")
gatsby build --prefix-paths
;;
esac
# transpile workers
BABEL_ENV=es5 babel --config-file ../babel.config.js ./static/workers --ou... |
import logging
from core.actions import MOVE_ACTION_NAME
from core.actions import Move
from settings import BAR_NAME
from settings import FOOBAR_NAME
from settings import FOO_NAME
logger = logging.getLogger('foobartory')
class DuplicatedProductException(Exception):
pass
class NotEnoughProductException(Except... |
<?php namespace App;
use Illuminate\Database\Eloquent\Model;
class discount_code extends Model {
//
protected $table = "discount_code";
protected $primaryKey = "discount_code_id";
public function employees(){
return $this->belongsTo('App/employee,','employee_id','employees');
}
}
|
import styled from 'styled-components'
import { StyledLines } from '../styledLines/StyledLines'
import { getBarColor } from '../functions/'
const getIsActiveBefore = buttonWidth => `
top: 0;
transform: translate3d(${-buttonWidth * 0.2}px, ${-buttonWidth *
0.25}px, 0) rotate(-45deg) scale(0.7, 1);
transition: t... |
# android_log_write.py
import gc
import os
import sys
from arm_ds.debugger_v1 import Debugger
from arm_ds.debugger_v1 import DebugException
import config
import memory
import mmu
# obtain current execution state
debugger = Debugger()
execution_state = debugger.getCurrentExecutionContext()
def cl... |
# Dig.lua
Esolang > [Dig](https://esolangs.org/wiki/Dig)
# How to use
You need Lua installed.
Download main.lua, then you can:
`lua main.lua yourcode.dig`
# TODO
* Refactoring
* Error handler
|
package olon
package actor
import org.specs2.mutable.Specification
class MockLiftActorSpec extends Specification {
"Mock Actor Specification".title
sealed trait MockSpecActorMessage
case object MockSpecActorMessage1 extends MockSpecActorMessage
case object MockSpecActorMessage2 extends MockSpecActorMessage
... |
# Quiz
Pequeno quiz sobre o meu curso técnico, com foco em funcionalidades e não em desing
# Linguagens utilizadas
- HTML 5
- CSS 3
- JavaScript
- jQuery
- SITE HOSPEDADO: http://quizdodia.rf.gd/?i=1 |
import { NgModule } from '@angular/core';
import { CommonModule, DecimalPipe } from '@angular/common';
import { SharedModule } from '@shared/shared.module';
import { LayersSingleTableComponent } from './layers-single-table/layers-single-table.component';
import { LayersTableService } from './layers-table.service';
im... |
2020年09月21日00时数据
Status: 200
1.布布 Nikki
微博热度:1934745
2.张文宏称第二波疫情是必然的
微博热度:729653
3.郑爽不知道Kris是吴亦凡
微博热度:672374
4.何晟铭
微博热度:669066
5.宿舍染发染成案发现场
微博热度:558922
6.王一博送你三个千万
微博热度:555551
7.洗澡拖延综合症
微博热度:474631
8.iOS14小组件
微博热度:410461
9.美国再度窃取叙利亚石油
微博热度:366332
10.琉璃收官云歌会
微博热度:363296
11.央视镜头下的女明星
微博热度:353739
12... |
#!/bin/bash -e
BASEDIR=`dirname $0`/..
if [ -f "$BASEDIR/env/bin/python" ]; then
PYTHON="$BASEDIR/env/bin/python"
else
PYTHON="$BASEDIR/env/Scripts/python.exe"
fi
echo "Building wheel..."
"$PYTHON" setup.py bdist_wheel
echo "Building egg..."
"$PYTHON" setup.py sdist
|
module Sento
module Kanban
class CardMailer < ApplicationMailer
def notify_watcher(watcher, card)
@user = watcher
@card_activity = card.activities.last
mail(to: @user.email,
subject: t('.subject', board_title: card.board.title))
end
end
end
end
|
import * as R from 'ramda';
import { Categories } from '../types';
class MsgInstantiateContract {
public category: Categories;
public type: string;
public json: any;
public sender: string;
public admin: string;
public codeId: number;
public initMsg: JSON;
public initCoins: MsgCoin[];
constr... |
object TextureUsageForm: TTextureUsageForm
Left = 0
Top = 0
BorderIcons = [biSystemMenu]
BorderStyle = bsSingle
Caption = 'Texture Usage List'
ClientHeight = 440
ClientWidth = 752
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
... |
<?php
declare(strict_types=1);
namespace Sendportal\Base\Events\Webhooks;
class SesWebhookReceived
{
/** @var array */
public $payload;
/** @var string */
public $payloadType;
public function __construct(array $payload, string $payloadType)
{
$this->payload = $payload;
$this... |
package array
import array.complex.Complex
import kotlin.test.Test
import kotlin.test.assertFailsWith
class LogicTest : APLTest() {
@Test
fun andTest() {
assertSimpleNumber(0, parseAPLExpression("0∧0"))
assertSimpleNumber(0, parseAPLExpression("0∧1"))
assertSimpleNumber(0, parseAPLExpr... |
/** @file
Data Hub filter driver that takes DEBUG () info from Data Hub and writes it
to StdErr if it exists.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <FrameworkDxe.h>
#include <Guid/DataHubStatusCodeRecord.h>
#include <Guid/... |
/*
//@HEADER
// ************************************************************************
//
// rom_galerkin_systems.hpp
// Pressio
// Copyright 2019
// National Technology & Engineering Solutions of Sandia, LLC (NTESS)
//
// Under the terms of Contract DE-NA0003525... |
use super::{ed25519_dalek as ed25519, EnrKey, EnrPublicKey, SigningError};
use rlp::DecoderError;
use std::collections::BTreeMap;
/// The ENR key that stores the public key in the ENR record.
pub const ENR_KEY: &str = "ed25519";
impl EnrKey for ed25519::Keypair {
type PublicKey = ed25519::PublicKey;
/// Perf... |
import 'dart:io';
import 'package:devote_app/user.dart';
import 'package:http/http.dart' as http;
import 'dart:async';
String url = 'http://10.0.2.2:4000';
Future<User> getUser() async{
final response = await http.get('$url');
return userFromJson(response.body);
}
Future<http.Response> createPost(Use... |
# frozen_string_literal: true
require 'spec_helper'
describe Autocomplete::ProjectInvitedGroupsFinder do
let(:user) { create(:user) }
describe '#execute' do
context 'without a project ID' do
it 'returns an empty relation' do
expect(described_class.new(user).execute).to be_empty
end
en... |
namespace Portal.CMS.Web.DependencyResolution
{
using StructureMap.Configuration.DSL;
using StructureMap.Graph;
public class DefaultRegistry : Registry
{
public DefaultRegistry()
{
Scan(
scan =>
{
scan.TheCallingAssembly();... |
/* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vedit.beans;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFac... |
<?php declare(strict_types=1);
namespace Tests\Log;
use Compose\Http\Aggregates\ServiceProviders;
use Compose\Http\Application;
use Compose\Http\Bootstrap\Configuration;
use Compose\Log\Logger;
use Compose\Log\LoggerException;
use Compose\Log\LogManager;
use Compose\Utility\Hash;
use Monolog\Formatter\FormatterInterf... |
// Package imports:
import 'package:bloc/bloc.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:odoo_rpc/odoo_rpc.dart';
// Project imports:
import 'package:hris_mobile/core/error/network_exceptions.dart';
import 'package:hris_mobile/modules/login/repository/auth_repo.dart';
part 'au... |
# frozen_string_literal: true
module Biovision
module Notifiers
# Notification mapper for socialization component
class UsersNotifier < BaseNotifier
TYPE_LOGIN_ATTEMPT = 'login_attempt'
# @param [Hash] track
def new_login_attempt(track)
check_and_notify(track[:ip_address]&.id, TYPE... |
name := "Ferrit"
version := "1.0"
scalaVersion := "2.10.3"
testOptions in Test += Tests.Setup( () => System.setProperty("logback.configurationFile", "../../../logback.xml"))
scalacOptions ++= Seq("-feature", "-deprecation")
exportJars := true
retrieveManaged := true
parallelExecution in Test := false
// ------... |
package com.cxyx.common.alchemist.tools
import java.io.{File, PrintWriter}
import org.apache.log4j.Logger
import scala.io.Source
/**
* Created by didi on 2020/10/14.
*/
object ToolsFile {
def checkFileExist(path:String):Boolean = {
val file=new File(path)
file.exists()
}
def delFile(log:Logger,p... |
package org.jetbrains.plugins.dotty.lang.psi.stubs.elements
import com.intellij.psi.StubBuilder
import com.intellij.util.io.StringRef
import org.jetbrains.plugins.dotty.lang.DottyTokenSets
import org.jetbrains.plugins.scala.lang.psi.api.ScalaFile
import org.jetbrains.plugins.scala.lang.psi.stubs.elements.ScStubFileEle... |
import 'package:flutter/material.dart';
import '../src/web_pagination_item_builder.dart';
import '../src/web_pagination_widget.dart';
/// Only prepare the enviroment for add the button style and set the setttings
class WebPaginationButton extends StatelessWidget {
final VoidCallback onPressed;
final WebPaginationI... |
/*
* 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 ... |
'use strict'
/**
* Licensed under MIT
* (https://github.com/rclp/rclp-cli/blob/master/LICENSE)
*/
const os = require('os')
const path = require('path')
/**
* ConfigUtility class provides utility functions around configiration file.
*/
class ConfigUtility {
/**
* Returns a configuration file path based on r... |
import 'package:async_redux/async_redux.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:bewell_pro_core/application/redux/states/core_state.dart';
import 'package:bewell_pro_core/application/redux/states/misc_state.dart';
import 'package:bewell_pro_core/p... |
class IvlNotices::IvlRenewalNotice < IvlNotice
attr_accessor :family, :data, :person, :open_enrollment_start_on, :open_enrollment_end_on
def initialize(consumer_role, args = {})
args[:recipient] = consumer_role.person
args[:notice] = PdfTemplates::ConditionalEligibilityNotice.new
args[:market_kind] = '... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ProductsPrices extends Model
{
protected $tablde = 'products_prices';
}
|
module ExampleSeeds where
import Data.Complex
import Seed ( Seed
, createSeed
)
circleSeed :: Seed
circleSeed = createSeed f n spaceScale timeScale trailLength
where
f ... |
#!/usr/bin/env bash
HTPASSWD_FILE="./htpass"
USERNAME="pipelinesdeveloper"
USERPASS="developer"
HTPASSWD_SECRET="htpasswd-pipelinesdeveloper-secret"
OC_USERS_LIST="$(oc get users)"
if echo "${OC_USERS_LIST}" | grep -q "${USERNAME}"; then
echo -e "\n\033[0;32m \xE2\x9C\x94 User pipelinesdeveloper already exists \0... |
package org.xtimms.ridebus.ui.setting
import androidx.preference.PreferenceScreen
import org.xtimms.ridebus.R
import org.xtimms.ridebus.data.preference.PreferenceValues
import org.xtimms.ridebus.util.preference.*
//
// Created by Xtimms on 28.08.2021.
//
class SettingsScheduleController : SettingsController() {
... |
<div class="container">
<section class="section-footer">
<div class="footer text-center pt-5 mb-5">
<h5>Made with ❤️ By Ahmad Septian</h5>
</div>
</section>
</div> |
package com.twu.biblioteca.services;
import com.twu.biblioteca.data.Book;
import com.twu.biblioteca.data.Item;
import com.twu.biblioteca.data.Movie;
import com.twu.biblioteca.data.User;
import com.twu.biblioteca.expections.InvalidLibraryNumberException;
import com.twu.biblioteca.expections.ItemIsNotAvailableException;... |
<h3><span>Educational Qualification</span></h3>
<span>**Indian Institute of Information Technology, Dharwad**</span>
Bachelor of Technology, Computer Science and Engineering
<h3><span>Work Experience</span></h3>
<span>**Routematic, Bangalore - *Data Scientist*** </span>
Routematic is an Employee Transport Managem... |
#coding: utf-8
#装卸组出库
class ScanHeaderLoadOutsController < ScanHeadersController
defaults :resource_class => ScanHeaderLoadOut
#GET search
#显示查询窗口
def search
render :partial => "search"
end
#PUT scan_header_load_out/:id/ship
#发车
def ship
@scan_header_load_out = ScanHeaderLoadOut.find(params[:i... |
import { Injectable } from '@angular/core';
import {Observable} from "rxjs";
import {HttpClient, HttpHeaders} from "@angular/common/http";
import {environment} from "../../environments/environment";
import {SystemInformation} from "./systemInformation";
import {ReviewGroup} from "./reviewGroup";
import {User} from "../... |
fun test(b: Boolean): (Int) -> Int {
if (b) {
fun foo(n: Int) = n + 1
}
else {
fun bar(n: Int) = n - 1
}
} |
package gg.rsmod.plugins.content.areas.alkharid.fishing
import gg.rsmod.plugins.content.skills.fishing.FishingLocation
import gg.rsmod.plugins.content.skills.fishing.FishingSpot
import gg.rsmod.plugins.content.skills.fishing.FishingSpots
val net_spots = FishingLocation()
net_spots.spots.add(FishingSpot(FishingSpots.N... |
package app
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"sire.run/awsc/pkg/op"
)
type noopInput struct{}
func (noopInput) Validate() error { return nil }
func noop(aws.Config) func(*op.Op) *op.Op {
return func(o *op.Op) *op.Op {
o.Input = noopInput{}
var sender op.Sender = func(context.Context) (... |
#include <windows.h>
#include <cstdint>
#include <cstdlib>
#include "drawing.h"
#include "window.h"
#include "utils.h"
#include "logic.h"
#include "memory.h"
const int ROW_BYTEVIEW_WIDTH = 24;
const int ROW_TILEVIEW_WIDTH = 16;
const int ROW_ADDRVIEW_WIDTH = 40;
const int ROW_TEXT_OFFSET = 6;
const int ROW_HEIGHT = 16... |
module Community
module UserUtility
# used by controllers
extend ActiveSupport::Concern
def view_news_prefs?
@user.id == current_user.id || is_admin?
end
def get_voter_type
current_user.class.name
end
def get_votable_type
current_user.class.name
end
end
end |
#!/bin/bash
set -eE
declare -a ARCH=(
npm
yarn
bind
vault
thunar
tumbler
ttf-cascadia-code
repo
neofetch
vagrant
net-tools
transmission-gtk
terraform
discord
vlc
mousepad
grim
slurp
ansible
aws-cli
python2
packer
deno
wf-r... |
I represent the package which is managed by concrete package system.
Calypso provides infrastructure for various package management systems.
Each system should implement subclass of ClyPackageManager which returns my instances created over system packages:
ClyManagerPackage for: aRPackage managedBy: aPackageManager
... |
module TreesHelper
# Relative URI for a tree.
def tree_path(tree_ref, path = nil)
if path.nil?
profile_repository_commit_tree_path(tree_ref.repository.profile,
tree_ref.repository, tree_ref)
else
path = path[1..-1] if path[0, 1] == '/'
profil... |
using Microsoft.Data.SqlClient;
namespace Helium.SqlServer.Helpers
{
public static class SqlServerUtils
{
public static DbClient CreateClient(string initialCatalog)
{
var connectionString = CreateConnectionString(initialCatalog);
return new DbClient(SqlClientFactory.Inst... |
const osc = require('osc');
import 'core-js';
import { resolve } from 'path';
/**
* @class
* @classdesc the main entry point for qlab-js. Use an
*/
/* eslint-disable no-class-assign */
// eslint-disable-next-line
export default class Qlab {
udpPort: any;
messageListeners: MessageListener[];
constructor(targe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.