text
stringlengths
27
775k
package utils import java.text.NumberFormat import java.util.* fun Int.toEuros(): String { val format = NumberFormat.getCurrencyInstance() format.maximumFractionDigits = 0 format.currency = Currency.getInstance("EUR") return format.format(this) }
package com.yachint.twitterdrift.data.common interface DatabaseListener { fun onQueryComplete(type: String) }
require 'set' N, M = gets.split(' ').map(&:to_i) =begin LIST = [] N.times do |i| LIST[i] = N.times.to_a LIST[i].delete(i) end M.times do pair = gets.split(' ').map(&:to_i) LIST[pair[1] - 1].delete(pair[0] - 1) end def patterns(i, visited) result = 0 if visited.size == N result = 1 else LIST[...
# <img src="../img/geofetch_logo.svg" class="img-header"> usage reference `geofetch` command-line usage instructions: `geofetch --help` ```{console} usage: geofetch [-h] -i INPUT [-n NAME] [-m METADATA_FOLDER] [-f] [--just-metadata] [-r] [--acc-anno] [--use-key-subset] [-x] [--confi...
require "#{File.dirname(__FILE__)}/helper" class ReconnectionsTest < Test::Unit::TestCase include WaderTest def test_raises_after_max_reconnect_attempts Mockingbird.setup(:port=>8080) do # Success on first connection on_connection(1) do 10.times do send '{"foo":"bar"}' ...
// Copyright 2020 New Relic Corporation. All rights reserved. // SPDX-License-Identifier: Apache-2.0 // Package stacktracetest helps test stack trace behavior. package stacktracetest // TopStackFrame is a function should will appear in the stacktrace. func TopStackFrame(generateStacktrace func() []byte) []byte { ret...
using MongoDA; using MongoDB.Driver; using System; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization.Json; using System.Security.Authentication; namespace DeserializeJSON { public class Program { static void Main(string[] args) { UserContext cont...
import countries from 'src/components/countries.json'; export interface AppStateInterface { countrySearchTerm: string; isLoading: boolean; countries: Array<{ value: string; label: string }>; } export const AppState = (): AppStateInterface => ({ countrySearchTerm: '', isLoading: false, countries, });
# coding: utf-8 from django.core import paginator as django_paginator from django.test import TestCase from spectator.core.paginator import DiggPaginator class PaginatorTestCase(TestCase): def test_page_string(self): p = DiggPaginator(range(1, 1000), 10, body=5).page(1) self.assertEqual(str(p), "...
package com.qianlq.eurekaorder.Etity; import lombok.Data; /** * @ClassName Test * @Description TODO * @Author Administrator * @Date 2019/11/22 11:45 * @Version **/ @Data public class Test { private String age; private String name; private String address; }
using System; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Eventi.Web.Models; using Eventi.Web.ViewModels; using Eventi.Web.Helper; using Eventi.Sdk; using Eventi.Contracts.V1.Requests; namespace Eventi.Web.Controllers { public class HomeControll...
- **Buitenstof** - Knip **2 achterpanden** met de goede kanten op elkaar - Knip **2 voorpanden** met de goede kanten op elkaar - Knip **1 linker tailleband** - Knip **1 rechter tailleband** - Knip **2 gulp delen** met de goede kanten op elkaar - Knip **2 zijpanden** met de goede kanten op elkaar -...
# frozen_string_literal: true FactoryBot.define do factory :merge_request_block do blocking_merge_request { create(:merge_request) } blocked_merge_request { create(:merge_request) } end end
require 'test_helper' class JsonApiParamsTest < Minitest::Test def test_simple params = ActionController::Parameters.new( data: { attributes: { 'x-y': 1, z: 2 }, relationships: { 'foo-bar': { data: { id: 42 } ...
--- layout: post title: [POT·越不二]每日情书-PART Ⅶ date: 2016-02-28 Author: 闲茶 categories: tags: [同人, 网王, 越不二] comments: true --- EF日课题,第七部分。有关他们的未来。 # Keyhole 眼前的明亮泛着真实的暖意。他抱着被子,茫茫然坐起身,眨了眨眼,继而听到身边人有些担忧的问句,微微沙哑的声音在寂静的暗夜里显出几分温柔。 “做梦了?” “嗯。” 他含糊地应了一字,重新躺下。久违的浓重疲惫随着意识清醒一并袭来,让人只想继续睡去。 “不关灯吗?”他闭着眼喃...
package br.com.phoebus.rebel.api.units; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.isA; import static org.mockito.Mockito.when; import java.util.Optional; import org.junit.Before; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation....
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Amazon.DatabaseMigrationService.Model; namespace DMSSample.Models { public partial class DisplayTableStatistics { public DisplayTableStatistics(TableStatistics tableStatistics, String d...
package com.rockymadden.stringmetric import com.rockymadden.stringmetric.phonetic._ import com.rockymadden.stringmetric.similarity._ import com.rockymadden.stringmetric.transform._ object StringMetricSpec extends org.specs2.mutable.SpecificationWithJUnit { "StringMetric convenience methods" should { "pass through"...
declare v_exists integer; begin select count(*) into v_exists from user_indexes where lower(index_name)='acs_permissions_object_id_idx'; if v_exists = 0 then execute immediate 'create index acs_permissions_object_id_idx on acs_permissions(object_id)'; end if; end; / show errors
if (process.env.NODE_ENV !== 'production') { // eslint-disable-next-line global-require const dotenv = require('dotenv'); dotenv.config(); }
gcc -O3 -fomit-frame-pointer -funroll-loops meteor.c -o bin_c crystal build meteor.cr --release -o bin_cr echo Crystal ../xmptime.rb ./bin_cr echo C ../xmptime.rb ./bin_c
/** * Program header type * @reference elf/common.h * @type {JSON} */ const PT = { toString : ()=>'PT_', NULL : 0, /* Program header table entry unused */ LOAD : 1, /* Loadable program segment */ DYNAMIC : 2, /* Dynamic linking information */ INTERP : 3, /* Program interpreter */...
import { getGlobalSettings } from "./settingsFactory"; const globalSettings = getGlobalSettings(); export default globalSettings;
#!/bin/sh if ! test -f "$1"/models.BUILD ; then echo "USAGE: $0 <tensorflow-dir>" exit 1 fi set -x set -e HERE=$(pwd) TF="$1" (cd "$TF" && gmake -f tensorflow/lite/micro/tools/make/Makefile generate_hello_world_make_project) rm -rf tensorflow third_party hello_world SRC=`ls -d $TF/tensorflow/lite/micro/tools/make...
use crate::Expr; use indexmap::map::IndexMap; use std::collections::{BTreeMap, HashMap}; use std::fmt::{Debug, Display, Formatter}; use std::iter::FromIterator; use std::ops::{Deref, DerefMut}; /// A map from variable names to expressions. #[derive(Debug, Clone)] pub struct Association { /// key -> (is_delayed, va...
{-# LANGUAGE FlexibleInstances, TypeSynonymInstances #-} module Encoding where import GHC.TypeNats import Data.Proxy import Data.Bits (testBit, unsafeShiftL, unsafeShiftR) import Data.VectorSpace import Data.Foldable (foldl') import Control.Monad (replicateM) import Data.Bits import Data.Binary import Data.Binary.Ge...
/* * Copyright 2021 Arunkumar * * 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...
// !DIAGNOSTICS: -UNUSED_PARAMETER fun test(a: Int, b: Boolean) { <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>bar<!>(a.foo(<!ARGUMENT_TYPE_MISMATCH!>b<!>)) } fun <T, R> T.foo(l: (T) -> R): R = TODO() fun <S> bar(a: S) {}
import {Injectable} from '@angular/core'; import {Title} from '@angular/platform-browser'; @Injectable() export class TitleService { readonly TITLE_POSTFIX = ' | geli'; readonly MAX_PART_LENGTH = 30; constructor(private title: Title) { } getTitle(): string { return this.title.getTitle(); } setTit...
package models import ( "time" "github.com/jinzhu/gorm/dialects/postgres" ) // User model type User struct { ID uint `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Slug string `go...
library foo.ng_deps.dart; import 'bar.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; export 'baz.dart'; import 'baz.ng_deps.dart' as i0; var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; reflector ..registerType(BarComponent, new Reflectio...
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
module BlackBrown class ProfileResult attr_accessor :display_name, :user_id, :picture_url, :status_message #todo: The key must be snake_case def initialize(options={}) options.each do |key, val| instance_variable_set("@#{key}", val) end end #todo: make success? method def...
# To configure resque concurrent restriction, add something like the # following to an initializer (defaults shown): # # Resque::Plugins::ConcurrentRestriction.configure do |config| # # The lock timeout for the restriction queue lock # config.lock_timeout = 60 # # How many times to try to get a lock b...
package guideme.volunteers.ui.fragments.base import android.content.Context import android.os.Bundle import android.support.v4.app.Fragment import android.view.* import android.view.animation.Animation import guideme.volunteers.log.createLog import guideme.volunteers.ui.activities.main.EmptyMainActivity import guideme...
<?php final class PhabricatorPeopleMailEngineException extends Exception { private $title; private $body; public function __construct($title, $body) { $this->title = $title; $this->body = $body; parent::__construct(pht('%s: %s', $title, $body)); } public function getTitle() { return $th...
import { css } from '@emotion/react'; import { useTheme } from '@mui/material'; export const styles = ({ fullWidth }: { fullWidth: boolean }) => { const theme = useTheme(); return css` padding: ${theme.spacing(1.5)} ${theme.spacing(3)}; border-radius: ${theme.shape.borderRadius}; font-size: ${theme.typ...
require "yaml" require 'fileutils' require 'rubygems' require 'json/pure' module VMC::Cli class Config DEFAULT_TARGET = 'api.vcap.me' DEFAULT_SUGGEST = 'vcap.me' TARGET_FILE = '~/.vmc_target' TOKEN_FILE = '~/.vmc_token' INSTANCES_FILE = '~/.vmc_instances' ALIASES_FILE = '~/.vmc_a...
# Thread to close the warning windows from LockInCamera import time import threading class ClearPopupThread(threading.Thread): def __init__(self, window_name, button_name, quit_event): threading.Thread.__init__(self) self.quit_event = quit_event self.window_name = window_name self...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PrototypeContexProvider.src { public class CompositeContex : IContex { private class Entry { public Contex Contex; public GlueLogicOperator Glue; public bool Not; } private List<Entry...
module Services module DataAnalysis def overall_sentiments(comments) results = { totals: {}, averages: {} } eligible_comments = comments.select { |comment| comment.sentiment.present? } count = eligible_comments.count Sentiment::NAMES.each do |s_name| sentime...
void cubgcv( double *x, double *f, double *df, int *n, double *y, double *c, int *ic, double *var, int *job, double *se, double *wk, int *ier); void b_spline(int n, double *x, double *y, int m, double *sx, double *sy);
--- layout: post title: Test tags: fame subclass: post tag-fame author: padfoot7 categories: padfoot7 cover: assets/images/posts_cover.jpg navigation: true logo: assets/images/ghost.png --- Test
/** * Function arguments */ export class AddParams { /** * Abstract key */ [key: string]: string | undefined | number; }
import { FC, useState } from "react"; import { SubjectAvailableHours } from "../../features/scheduler/degrees/domain/models/SubjectAvailableHours"; import Entry, { SubjectKind, substractTime, Time } from "../../features/scheduler/entries/domain/models/Entry"; import { DegreeSubjectsContext } from "./context"; export c...
package fsevent import ( "encoding/json" "fmt" "reflect" "testing" "time" "google.golang.org/genproto/googleapis/type/latlng" ) type data struct { Bool bool `firestore:"bool"` Int int64 `firestore:"int"` IntP *int64 `firestore:"intP"` Fl...
module Data.Char.Properties.Case ( module Data.Char.Properties.CaseData ) where { import Data.Char.Properties.CaseData; }
namespace EPlast.ViewModels.AnnualReport { public class CityViewModel { public int ID { get; set; } public string Name { get; set; } public int RegionId { get; set; } public RegionViewModel Region { get; set; } } }
// 需要支持dom创建的api 及属性处理的api import { nodeOps } from "./nodeOps"; import {patchProp} from './patchProp' // 如果元素一致只是属性发生变化 要做属性的diff算法
use strict; use warnings; use File::Temp qw/tempdir/; use File::Spec::Functions; my $tempdir = tempdir( CLEANUP => 1 ); sub testf($) { catfile( $tempdir, shift ); } use Test::More tests => 7; use CXGN::Transcript::DrawContigAlign; use constant DrawContigAlign => 'CXGN::Transcript::DrawContigAlign'; #Tests the ...
using System; using System.Collections.Generic; using Avalonia.Controls; using Avalonia.Controls.Primitives; using Avalonia.Input; using Avalonia.Interactivity; using MessageBox.Avalonia.DTO; using MessageBox.Avalonia.Enums; using MessageBox.Avalonia.Models; using MessageBox.Avalonia.Views; namespace MessageBox.Avalon...
# Boilerplay Using the latest technology in the Scala ecosystem, Boilerplay is a pure Scala reactive web application built on Play 2.6, Scala.js, Silhouette 5, Akka, PostgreSQL 9.5+, and Sangria/GraphQL. It provides a good starting point for whatever you want to build. ## Documentation https://kyleu.github.io/boile...
package io.usoamic.app.ui.base import android.app.AlertDialog import android.os.Bundle import android.view.MenuItem import android.view.View import androidx.annotation.LayoutRes import io.usoamic.commons.crossplatform.models.common.base.ErrorArguments import io.usoamic.validateutilkt.error.* import io.usoamic.app.R im...
bot_template = "BOT : {0}" user_template = "USER : {0}" # Define a function that responds to a user's message: respond def respond(message): # Concatenate the user's message to the end of a standard bot respone bot_message = "I can hear you! You said: " + message # Return the result return bot_message ...
const chat_cmds = { [0](ctx, mrp){ if(ctx.lastMsg && ctx.lastResponse){ mrp.addDialogue(ctx.lastMsg, ctx.lastResponse, -1) ctx.chatText += 'Reward system adjusted.\n' } }, [1](ctx, mrp){ if(ctx.lastMsg && ctx.lastResponse){ mrp.addDialogue(ctx.lastMsg, ctx.lastResponse, 1) ctx...
<?php //1526726656-1543503871 $ranges=Array( "1526726656" => array("1530920959","DE"), "1530920960" => array("1531183103","DE"), "1531183104" => array("1531445247","FR"), "1531445248" => array("1531707391","AE"), "1531707392" => array("1531969535","RU"), "1531969536" => array("1532100607","IT"), "1532100608" => array("...
using PX.Data; using PX.Objects.SO; using System.Collections; namespace CodeRefactoringTechnique { public class SOOrderEntryExtFeaturePrint : PXGraphExtension<SOOrderEntry> { public static bool IsActive() { return SOSetupSlot.IsPrintFeatureEnabled; } public PXActio...
#! /bin/bash FOLDER=$1 IMAGE=$2 CONTAINER=`docker run -d --rm -p 8888:8888 \ --name viya_$IMAGE \ -v $FOLDER/notebooks/:/home/ds/notebooks \ -v $FOLDER/data/:/home/ds/datasets \ -v $FOLDER/logs/:/home/ds/logs \ -v $FOLDER/custom/:/home/ds/custom \ cent...
hey -c "$CONN" -z "$DURATION"s "$URL" | head -n 7 | tail -n 1 | awk '{print $2}'
#ifndef AETHER_DRAWABLE_HPP #define AETHER_DRAWABLE_HPP #include "Aether/types/Colour.hpp" #include "Aether/types/ImageData.hpp" #include "Aether/Renderer.hpp" // Forward declare types as we only need a pointer here namespace Aether { class Renderer; }; struct SDL_Surface; struct SDL_Texture; namespace Aether { ...
using System; using System.Collections.Generic; using System.Text; namespace Destiny.Core.Flow.Dtos.MenuFunction { /// <summary> /// 批量添加菜单功能 /// </summary> public class BatchAddMenuFunctionInputDto { public Guid[] MenuIds { get; set; } public Guid[] FunctionIds { get; set; } ...
# frozen_string_literal: true require 'rails_helper' require_relative '../support/iam_session_helper' require_relative '../support/matchers/json_schema_matcher' RSpec.describe 'maintenance windows', type: :request do include JsonSchemaMatchers describe 'GET /v0/maintenance_windows' do context 'when no mainten...
use log::debug; use kf_protocol::api::RequestMessage; use kf_socket::KfSocket; use kf_socket::KfSocketError; use crate::core::DefaultSharedGlobalContext; use crate::controllers::leader_replica::LeaderConnection; use super::FetchStreamRequest; use super::FetchStreamResponse; pub(crate) async fn handle_fetch_stream_re...
import os import argparse import json import subprocess import fileinput test_file = "benchmark/test1.dart" parser = argparse.ArgumentParser() parser.add_argument("--method","-m", help="Method, either astyle,uncrustify or sdartfmt") args = parser.parse_args() m = args.method def sdartfmt(): cmd = "bin/sdartfmt --f...
package main func main () { as:= 1e2 * 8 }
--- url: 'http://www.bidvine.com' image: bidvine.png name: Bidvine added: 2016-02-29T19:46:15.000Z --- Service matching site using Ember to build our web application
part of pinenacl.api.encoding; const _alphabet = 'qpzry9x8gf2tvdw0s3jn54khce6mua7l'; final _alphabetMap = _alphabet.codeUnits.asMap().map((idx, value) => MapEntry(value, idx)); class Base32Encoder implements Encoder { const Base32Encoder._singleton(); static const Base32Encoder instance = Base32Encoder._singl...
@file:JvmName("RPickMedia") package pyxis.uzuki.live.richutilskt.utils import android.Manifest import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.ContextWrapper import android.content.Intent import android.net.Uri import android.provider.MediaStore...
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:goscele/components/goscele_custom_card.dart'; import 'package:goscele/components/goscele_custom_card_course.dart'; import 'package:goscele/viewmodels/courses_viewmodel.dart'; import 'package:stacked/stacked.dart'; class Cu...
<?php declare(strict_types=1); namespace Rector\Tests\Rector\Class_\RenameClassRector\Source; abstract class AbstractManualExtension { }
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:intl/intl.dart'; import 'package:mooncake/entities/entities.dart'; import 'package:mooncake/ui/ui.dart'; /// Represents a post like button that can be tapped to like a post if not /// yet liked, or to remove a like...
/* * @copyright (c) 2017, Philipp Thuerwaechter & Pattrick Hueper * @license BSD-3-Clause (see LICENSE.md in the root directory of this source tree) */ /* eslint-disable no-console, no-var */ const joda = require('@js-joda/core'); require('@js-joda/timezone'); const { DateTimeFormatter, Instant, ZonedDa...
import numpy as np import pandas as pd from matplotlib import pyplot as plt def generate_colours(df, column, cmap_name): # TODO: they get generated a little different than what pandas does automatically labels = np.sort(df[column].unique()) cmap = plt.get_cmap(cmap_name) colours = cmap(np.linspace(0,1...
module Database.Edis ( -- * How to use Edis -- |It's basically the same as in <https://hackage.haskell.org/package/hedis Hedis>. -- Most of the entities in Hedis are re-exported, or have the same names -- with types. -- -- @ -- -- connects to localhost:6379 ...
#ifndef __BIAS_PARAM_HPP__ #define __BIAS_PARAM_HPP__ #include "parameter.hpp" namespace TEngine { struct BiasParam : public NamedParam { int bias_size; DECLARE_PARSER_STRUCTURE(BiasParam) { DECLARE_PARSER_ENTRY(bias_size); } }; } // namespace TEngine #endif
// Colorful FX - Unity Asset // Copyright (c) 2015 - Thomas Hourdel // http://www.thomashourdel.com namespace Colorful.Editors { using UnityEditor; [CustomEditor(typeof(Dithering))] public class DitheringEditor : BaseEffectEditor { SerializedProperty p_ShowOriginal; SerializedProperty ...
# django-tables2-umi Django tables 2 and Umijs hook https://hooks.umijs.org/hooks/antd/use-form-table
; ModuleID = 'target/assignment3-example2.c' source_filename = "target/assignment3-example2.c" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" ; Function Attrs: noinline nounwind optnone uwtable define dso_local i32 @main() #0 { entry: %retval = alloca i32, align 4 ...
--- path: "/post-71384/" category: "Remote Jobs" tags: ["full stack","dev","web dev"] title: "Full Stack Web Application Developer" date: "2019-02-26T13:12:39-08:00" summary: "undefined" images: ["https://remoteok.io/assets/logo-square.png"] --- Full Stack Web Application Developer <br/> <br/> Apply here: <A HREF="ht...
package ru.cherryperry.amiami.data.export data class ExportedData( val highlight: List<ExportedItem> )
@file:Suppress("IllegalIdentifier") package com.sanogueralorenzo.posts.domain.usecase import com.nhaarman.mockitokotlin2.mock import com.nhaarman.mockitokotlin2.verify import com.nhaarman.mockitokotlin2.whenever import com.sanogueralorenzo.posts.comment import com.sanogueralorenzo.posts.domain.repository.CommentRepos...
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access. defined('_HZEXEC_') or die(); if (isset($this->disabled) && $this->disabled) { ?> <p id="primary-document"> <span class="btn disabled <?php...
import { getConfig } from '@UTILS' function prepareTitle(title: string): string { const sizeTitle = 9 let titlePrepared = title if (title.length > sizeTitle) { throw new Error(`The size of the title of the debug message must be less than ${sizeTitle + 1}`) } else { const count = sizeTitle - title.leng...
# burl A simple script that makes 'openssl' and bash's '/dev/tcp' easier to use. The default method is to try a HEAD request with openssl. If the HEAD request failed, bash's '/dev/tcp' is used. Otherwise, the request is repeated with openssl. # Usage ``` Usage: burl [options] <url> Options: -O ...
# -*- coding: utf-8 -*- u"""Test sirepo.auth :copyright: Copyright (c) 2019 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function import pytest from pykern import pkcollections from sirepo import srunit @sru...
#!/bin/sh cd / ls -l /github/workspace ./tf-auto-document --repo=/github/workspace --mods=$INPUT_MODULESFOLDER
import React from 'react'; import {useGLTF} from '@react-three/drei'; import {GroupProps} from '@react-three/fiber'; import {getRubber, getSteel} from '../utils/materials'; import {WHEEL_MODEL_PATH} from './constants'; // Preview the model. // @see: https://github.com/pmndrs/drei#usegltf // useGLTF.preload(WHEEL_MODEL...
use std::ffi::c_void; #[cfg(unix)] mod wayland; #[cfg(not(any(target_os = "macos", target_os = "ios")))] mod opengl; /// Native Window Handle. enum NwinHandle { /// Wayland window handle. #[cfg(all( unix, not(any( target_os = "android", target_os = "macos", ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Simulador_Academico.Models { public class Turmas { private int idTurmas; public int IdTurmas { get => idTurmas; set => idTurmas = value; } } }
package skuber /** * @author David O'Riordan */ case class EnvVar( name: String, value: EnvVar.Value = "") object EnvVar { sealed trait Value case class StringValue(s:String) extends Value sealed trait Source extends Value case class FieldRef(fieldPath: String, apiVersion: String = "") extends Sourc...
#!/bin/bash # Install a Simple Nginx Pod kubectl apply -f https://k8s.io/examples/pods/simple-pod.yaml # You should see the Output kubectl get pods -o wide echo "***************************************************" echo "If you see the Pod IP in the Network of Calico ( 192.168.0.0/16), i.e all our setup is workin...
package com.justai.aimybox.api.aimybox import com.github.salomonbrys.kotson.nullString import com.google.gson.Gson import com.google.gson.JsonElement import com.google.gson.JsonObject import com.google.gson.JsonParser import com.google.gson.annotations.Expose import com.google.gson.annotations.SerializedName import co...
#!/bin/bash docker run \ -it --rm \ -v `pwd`:`pwd` \ ubuntu:trusty \ bash -c "set -ex; sudo apt-get update; sudo apt-get -y install zlib1g-dev build-essential wget; cd `pwd`; bash py24-build.sh"
ROOT=$PWD CORES=1 if [ "$(uname)" == "Darwin" ]; then # Do something under Mac OS X platform CORES=$(sysctl -n hw.ncpu) elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then # Do something under GNU/Linux platform CORES=$(nproc) fi cd ${ROOT}/deps/jemalloc ./autogen.sh #lib jmallloc ./co...
# sleepless WIP language created for learning purposes. Development stalled because I'm working on my thesis. #TODO: - [ ] Work on linter warnings - [x] Conditionals - [x] Recursion - [ ] Macro - [ ] Imports and modules - [ ] Decorators - [ ] Standard Lib - [x] Arguments parser for config - [ ] Comments - [ ] Remove ...
; FGL - A Symbolic Simulation Framework for ACL2 ; Copyright (C) 2008-2013 Centaur Technology ; ; Contact: ; Centaur Technology Formal Verification Group ; 7600-C N. Capital of Texas Highway, Suite 300, Austin, TX 78731, USA. ; http://www.centtech.com/ ; ; License: (An MIT/X11-style license) ; ; Permission is h...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ export type { Contract } from "./Contract"; export type { TemplateContract } from "./TemplateContract"; export { Contract__factory } from "./factories/Contract__factory"; export { TemplateContract__factory } from "./factories/Tem...
#ifndef BASE_CUSTOM_SPAN_HPP________ #define BASE_CUSTOM_SPAN_HPP________ #ifndef span_FEATURE_MAKE_SPAN #define span_FEATURE_MAKE_SPAN 1 #endif #ifndef span_FEATURE_MAKE_SPAN_TO_STD #define span_FEATURE_MAKE_SPAN_TO_STD 17 #endif #include "nonstd/span.hpp" #endif // BASE_CUSTOM_SPAN_HPP________
use crate::debug::{dbg_single, ParamDbg}; use display_bytes::display_bytes_string; use std::collections::HashMap; use std::fmt; /// Header contains information about an email header event #[derive(PartialEq, Clone)] pub enum Header<'a> { /// A header containing unstructured information as key, value Unstructur...
package pipeline import ( "fmt" "testing" "github.com/stretchr/testify/assert" ) var ( ignoreHosts = []string{"*.ruby-china.com", "ruby-china.org", "localhost"} ) func Test_ImageURLFilter_isHost(t *testing.T) { hostsWillIgnore := []string{ "https://ruby-china.com/foo.jpg", "https://www.ruby-china.com/foo.j...