text stringlengths 27 775k |
|---|
package com.pharaoh.aws.awsconnect.connect
import com.amazonaws.auth.AWSStaticCredentialsProvider
import com.amazonaws.auth.BasicAWSCredentials
import com.amazonaws.regions.Regions
import com.amazonaws.services.s3.AmazonS3
import com.amazonaws.services.s3.AmazonS3ClientBuilder
import java.io.File
/**
* Created by ma... |
{-# LANGUAGE OverloadedStrings, TemplateHaskell #-}
module StarDict.Format.Ifo(parse,Opt(..)) where
import Data.Text (Text)
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Maybe (fromJust)
import Control.Applicative
import Data.Attoparsec.Text hiding (parse)
import Prelude hiding (unlines)
import Sta... |
const { loggers } = require('@projecttacoma/node-fhir-server-core');
const express = require('express');
const mongoUtil = require('./database/connection');
const { decrementBulkFileCount } = require('./database/dbOperations');
const { buildConfig } = require('./config/profileConfig');
const { initialize } = require('.... |
#include "../../../src/range_search/interval_tree.hpp"
#include <gtest/gtest.h>
TEST(RangeSearch_IntervalTree, Test0TreeSize) {
interval_tree tree;
EXPECT_EQ(tree.get_size(), 0) << "Tree had size 0";
}
TEST(RangeSearch_IntervalTree, TestTreeSize) {
interval_tree tree(10);
EXPECT_EQ(tree.get_size(), 1... |
import raf from '../__mocks__/tempPolyfill'
import React from "react";
import Enzyme, {mount} from "enzyme";
import Adapter from 'enzyme-adapter-react-16';
import App from '../src/components/App'
import {showToast} from '../src/ar/toast.ar'
import store from "../src/libs/store"
Enzyme.configure({adapter: new Adapter()... |
/**
* Copyright © 2019-2020 Jesse Gallagher
*
* 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 o... |
class Sportify::CLI
def initialize
Sportify::MLBscraper.team_builder
main_menu
end
def main_menu
puts "***** Welcome To Sportify *****"
puts ""
Sportify::MLBteam.teams.each_with_index do |team, index|
puts "#{index + 1}) #{team.name}"
end
puts ""
puts "Enter the number of t... |
!
! Copyright (C) 2001 PWSCF group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!-----------------------------------------------------------------------
subroutine ... |
---
title: We are friends to the indigent
subtitle: Dedicated to attorneys who represent to the indigent accused
image: /img/courthouse.jpg
blurb:
heading: Why Friends To The Indigent?
text: >-
We are committed to the principle everyone deserves a well resourced, well
trained and properly educated attorney.... |
// by value (primitives)
let a = 3;
let b;
b = a;
a = 2;
console.log(a);
console.log(b);
// by reference (all objects - including functions)
let c = { greeting: 'hi' };
let d;
d = c;
// mutate
c.greeting = 'hello';
console.log(c);
console.log(d);
// by reference (even as parameters)
function... |
<footer class="MobileRes ">
<img src="img/footer.png" style="width: 90%;">
</footer>
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded js-scroll-trigger" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<footer class="stickfooter">
<div class="button" >
<img src="img/footer1.png"... |
-- | This module exports functionality for generating a call graph of
-- an Futhark program.
module Futhark.Analysis.CallGraph
( CallGraph
, buildCallGraph
, FunctionTable
, buildFunctionTable
)
where
import Control.Monad.Reader
import qualified Data.HashMap.Lazy as HM
import Futhark.Representation.SOACS... |
require 'rails_helper'
RSpec.describe MembersNeedPacketsAlert, type: :model do
let(:subject) { described_class.instance }
describe 'gather_content_items' do
it 'calls GetmembersNeedingPackets to get all of the members to put in the content of the alert' do
expect(AdminOnly::GetMembersNeedingPackets).... |
"use strict";
class LarxModel {
constructor() {
this.vertices = [];
this.colors;
this.normals;
this.texCoords;
this.indices = [];
this.shininess = 0;
this.opacity = 1.0;
this.specularWeight = 1.0;
this.faceCount = 0;
this.vertexCount = 0;
this.bounds;
this.frustumBounds;
}
setBounds() {... |
// import * as prompts from 'prompts';
import * as fs from 'fs';
import { OfxParser } from '../ofx';
import { TransactionModel } from 'src/transaction.model';
import { StatementModel } from 'src/statement.model';
interface ParsedOfx {
ledgerBalance: number,
availableBalance?: number;
balanceAsOf: Date;
transac... |
{-# LANGUAGE StandaloneDeriving, Rank2Types, DeriveFunctor, FlexibleInstances #-}
module Scale.Frontends.GScale.GFScale where
import Control.Monad
import Data.Char
import Control.Applicative
import Text.Parsec.String
import Text.Parsec.Prim(try)
import Text.ParserCombinators.Parsec.Combinator
import Text.ParserCombina... |
# -*- coding: utf-8 -*-
# This file was generated
import ctypes
import nifgen.errors as errors
import threading
from nifgen._visatype import * # noqa: F403,H303
class Library(object):
'''Library
Wrapper around driver library.
Class will setup the correct ctypes information for every function on first ... |
"""Find translation keys that are in Lokalise but no longer defined in source."""
import json
import pathlib
import sys
import requests
INTEGRATION_DIR = pathlib.Path("homeassistant/components")
PROJECT_ID = "130246255a974bd3b5e8a1.51616605"
class Lokalise:
"""Lokalise API."""
def __init__(self, project_id... |
// To start: type: node server
const server = require('http').createServer();
const io = require('socket.io')(server);
var allClients = [];
var chat = io
.of('/chat')
.on('connection', (socket) => {
socket.on('users', (data) => {
allClients.push(data);
chat.emit('users', allClients);
console.info('came in:', ... |
#!/usr/bin/env bash
# This shebang line will use the first bash in your PATH, which should be 4.x
# Bash 4.x is required for this script
# Libbitcoin-explorer (bx)
# Configure bx.cfg config file to testnet values for testnet
# Not all commands accept --version option
# Associative arrays are stored in a 'hash' order,... |
package com.mdiai.seckill.common.access;
import java.lang.annotation.*;
/**
* @author Kevin.Liu
* @Date create in 2018/7/13 11:34
* @Description 接口限流注解
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AccessLimit {
/**
* 时间单位,默认是秒
*
* @return
... |
/*-------------------------------------------------------------------------
*
* origin.c
* Logical replication progress tracking support.
*
* Copyright (c) 2013-2017, PostgreSQL Global Development Group
*
* IDENTIFICATION
* src/backend/replication/logical/origin.c
*
* NOTES
*
* This file provides the fo... |
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.DependencyInjection;
namespace Copernicus.Common.Signalr
{
public static class Extensions
{
public static IServiceCollection AddHub<THub>(this IServiceCollection services) where THub : Hub
{
... |
# сообщение
class Contact < ActiveRecord::Base
validates :message, presence: true
validates :email, format: {with: /@/}
end
|
import { formatMoney, getMoment } from '@/tools';
export const TABLE_COL_DEFS = [
{
title: '投资组合',
dataIndex: 'portfolioName',
width: 130,
},
{
title: '更新时间',
dataIndex: 'createdAt',
width: 180,
render: (value, record, index) => (value ? getMoment(value).format('YYYY-MM-DD HH:mm:ss') ... |
#------------------------------------------------------------------------------
# test and benchmark groups
#------------------------------------------------------------------------------
# IMPORTANT NOTE: the names "_grp" and "_cmp" suffixes are special, do
# not rename them to something else.
base_stream_grp="\
`... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Kujikatsu025.Algorithms;
using Kujikatsu025.Collections;
using Kujikatsu025.Extensions;
using Kujikatsu025.Numerics;
using Kujikatsu0... |
/*
* Copyright (C) 2014 Saravan Pantham
*
* 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 test.kotlin
import net.manpreet_singh.checklist.Utility
import net.manpreet_singh.config.UCRParser
import java.io.BufferedReader
import java.io.File
import java.io.FileReader
import java.io.Reader
class Extractor {
init {
val parser = UCRParser()
parser.readDataFromFile(File("UCR.xls"))
... |
package org.folio.reader.values;
import org.folio.processor.error.RecordInfo;
public class ValueWrapper {
private RecordInfo recordInfo;
private Object value;
public ValueWrapper(RecordInfo recordInfo, Object value) {
this.recordInfo = recordInfo;
this.value = value;
}
public RecordInfo getRecordI... |
namespace DotNetCoreApi_CodeHubGreece.Models
{
[Helpers.GeneratedController]
public class VersionNoteType : CommonModel
{
public string Name { get; set; }
}
}
|
module Spree
class RichDataConfiguration < Preferences::Configuration
preference :store_uses_https, :boolean, default: false
end
end
|
TITLE Fast Multiply (CH07N05.asm)
;Program Description: This program will multiply two integers
; using shifts and adds only.
;
;Author: Alberto Martinez
;Date Created: 10.26.03
;Last Modification Date: 10.26.03
INCLUDE Irvine32.inc
.data
StartMSG BYTE "This program will multiply two positive int... |
class Experince {
String image, description, date, time, type;
Experince(this.image,this.description,this.date,this.time,this.type);
} |
import 'package:flutter/material.dart';
import '../bloc.dart';
import 'package:rxdart/rxdart.dart' show Observable;
import '../models.dart' show DoubleColor;
import 'dart:math' show max;
const assetsPath = "assets/developers/luke_pighetti/book_reader";
class Background extends StatelessWidget {
@override
Widget b... |
#!/bin/sh
echo "Test case 1: (echo A && echo B) || (echo C && echo D)";
echo "Test case 2: (echo A || echo B) && (echo C || echo D)";
echo "Test case 3: (echo A && ls) && (echo Hello || echo world)";
echo "Test case 4: (test bin/rshell || echo Doesn't Exist) && (test -d src && echo E)";
echo "Test case 5: (test binnnn ... |
require File.expand_path("../base", __FILE__)
require "support/shared/command_examples"
describe "vagrant halt" do
include_context "acceptance"
it_behaves_like "a command that requires a Vagrantfile", ["vagrant", "halt"]
it "succeeds and ignores if the VM is not created" do
require_box("default")
asser... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OpenGLWinControl.OpenGL.Enumerations.GL
{
public enum MaterialParameter : ushort
{
EMISSION = 0x1600,
SHININESS = 0x1601,
AMBIENT_AND_DIFFUSE = 0x1602,
... |
package org.scalaide.extensions
package autoedits
import org.eclipse.jface.text.IRegion
import org.scalaide.util.eclipse.RegionUtils._
/** Functionality for all auto edits that should handle matching pairs. */
trait CloseMatchingPair extends AutoEdit {
private val openingMap = Map('{' -> '}', '[' -> ']', '(' -> ')... |
export declare enum TestableServerMode {
JSON = "json",
URLENCODED = "urlencoded",
RAW = "raw"
}
export declare const runTestableServer: (server: any, mode?: TestableServerMode) => Promise<any>;
|
# POO
Seminar1
-aici apar comentariile hahaha
# Am modificat
Who knows
yes, me
# yeeeeey Goodbye
|
# Apache Superset (incubating)
Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application
|
/*
* This file is part of AckCord, licensed under the MIT License (MIT).
*
* Copyright (c) 2019 Katrix
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including ... |
import { merge } from 'lodash'
import routes, { subAppRoutes } from "./dss/router"
// 根据module参数配置要打包的应用,生成的虚拟模块
const apps = require('dynamic-modules')
// 处理路由,单个应用可以有独立的顶层路由配置layout,header,footer
// length ===1 为单个子应用独立运行,否则为dss,包含多个子应用
let subRoutes = subAppRoutes
const appsRoutes = Object.values(apps.appsRoutes)
if... |
package com.example.corto;
public class ActorData {
public int startBytePosition = 0;
public int length = 0;
public int vertices = 0;
public int faces = 0;
}
|
import * as React from "react";
import Head from "next/head";
import cx from "classnames";
import {
CalendlyEvent,
CalendlyPrefill,
CalendlyScheduledEvent,
isCalendlyEvent,
} from "apis/calendly";
import styles from "./styles.module.css";
export function CalendlyScript() {
return (
<Head>
<script
... |
import fsval from "../index";
import { expect } from 'chai';
describe('file structure validator', ()=> {
const fsv1 = new fsval({
base: "./src/tests/dirtestaaa",
files:[],
dirs: []
});
it('base doesnt exists', ()=> {
expect(fsv1.validate()).to.have.property('valid').to.equal(false);
});
con... |
-- |
-- Module : DobutokO.Sound.Effects.Timespec
-- Copyright : (c) OleksandrZhabenko 2020
-- License : MIT
-- Stability : Experimental
-- Maintainer : olexandr543@yahoo.com
--
-- Helps to create experimental music.
-- Can be used for applying the SoX effects with the needed time specifications.
--... |
using Terraria.ModLoader;
namespace WX
{
public class WX : Mod
{
}
} |
import React from 'react';
import { mount } from 'enzyme';
import { Provider } from '../../context';
import { Hex } from '..';
describe('<Hex />', () => {
it('should fire onChange with object containing the new color', () => {
const onChangeMockFn = jest.fn();
const context = {
hex: '#f... |
//! A collection of custom, non-std **Sample** types.
pub use self::i11::I11;
pub use self::i20::I20;
pub use self::i24::I24;
pub use self::i48::I48;
pub use self::u11::U11;
pub use self::u20::U20;
pub use self::u24::U24;
pub use self::u48::U48;
macro_rules! impl_from {
($T:ident: $Rep:ident from {$U:ident : $URe... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <unistd... |
package com.lambiengcode.telegram
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import androidx.appcompat.widget.Toolbar
import com.lambiengcode.telegram.databinding.ActivityMainBinding
import com.lambiengcode.telegram.pages.fragment... |
package main
import (
"fmt"
"os"
jamf "github.com/pirox07/jamf-pro-go"
)
func main() {
url := os.Getenv("JAMF_BASE_URL")
userName := os.Getenv("JAMF_USER")
password := os.Getenv("JAMF_USER_PASSWORD")
conf, err := jamf.NewConfig(url, userName, password)
if err !=nil{
fmt.Println(err.Error())
}
client := j... |
#!/bin/sh
set -e
if [ -z "$DOMAIN" ]; then
echo "DOMAIN to obtain a certificate is missing"
exit 1
fi
if [ -z "$EMAIL" ]; then
echo "EMAIL is missing"
exit 2
fi
if [ -z "$KONG_HTTP_ADDR" ]; then
echo "KONG_HTTP_ADDR is missing"
exit 3
fi
echo "Launching Certbot Script"
./certbot.sh
|
#!/bin/bash
## Define ANSI colors
declare -r ANSI_BLUE='\033[1;34m'
declare -r ANSI_DARK_GREEN='\033[0;32m'
declare -r ANSI_GREEN='\033[1;32m'
declare -r ANSI_RED='\033[1;31m'
declare -r ANSI_DARK_PURPLE='\033[0;35m'
declare -r ANSI_PURPLE='\033[1;35m'
declare -r ANSI_YELLOW='\033[1;33m'
declare -r ANSI_NOCOLOR='\033[... |
class Portal
attr_accessor :url, :topic, :name
@@all = []
def initialize(url)
@url = url
@@all << self
end
def self.all
@@all
end
def self.find_or_create_by_url(url)
if Portal.all.detect{|portal| url == portal.url}
@portal = Portal.all.detect{|portal| url == portal.url}
else
... |
@baseFiles=qw(
d3dcompiler_47.dll
ffmpeg.dll
icudtl.dat
libEGL.dll
libGLESv2.dll
locales
natives_blob.bin
node.dll
nw.dll
nw_100_percent.pak
nw_200_percent.pak
nw_elf.dll
resources.pak
v8_context_snapshot.bin
swiftshader/libGLESv2.dll
swiftshader/libEGL.dll
);
&mvDebug;
&mvNonDebug;
sub mvDebug {
my $trash="nwjs... |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:helpers_plethora/src/extensions/list_datetimerange_x.dart';
void main() {
group('Sum of date ranges:', () {
late List<DateTimeRange> ranges1;
late List<DateTimeRange> ranges2;
late List<DateTimeRange>... |
#include "scheduler.h"
#include <iostream>
// scheduler
scheduler::scheduler()
{
nthreads = tthread::thread::hardware_concurrency();
for (int i = 0; i < nthreads; i++)
{
threadPool.push_back(new thread(this));
threadPool[i]->name = i;
}
}
scheduler::~scheduler()
{
/*for (unsigned ... |
/*
Base entity class for particle entities. Subclass your own particles from
this class. See the EntityDebrisParticle in debris.js for an example.
Particle entities will kill themselfs after #lifetime# seconds. #fadetime#
seconds before the #lifetime# ends, they will start to fade out.
The velocity of a particle is r... |
package com.yixsoft.support.mybatis.utils;
import com.yixsoft.support.mybatis.autosql.dialects.exceptions.AutoSqlException;
import org.springframework.util.Assert;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.InvocationTargetE... |
game=./go/game model=df_policy model_file=./go/df_model python3 df_console.py --list_file ~/local/go/go_gogod/train.lst --data_aug 0 "$@"
|
<?php declare(strict_types=1);
namespace Torr\Umbrella\Exception;
interface UmbrellaException extends \Throwable
{
}
|
require_relative '../../../test_helper'
module Troo
module API
describe Headers do
let(:described_class) { Headers }
let(:uri) { 'http://www.example.com/' }
let(:headers) { {} }
describe '#build!' do
subject do
described_class.build!(uri, headers)['Authorization']
... |
package com.example.security.rbac.web.controller;
import com.example.security.rbac.dto.AdminCondition;
import com.example.security.rbac.dto.AdminInfo;
import com.example.security.rbac.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
impor... |
#!/usr/bin/env bats
load '../lib/helper'
load '../bats/extensions/bats-support/load'
load '../bats/extensions/bats-assert/load'
load '../bats/extensions/bats-file/load'
load '../lib/asserts-config-repository'
@test "remove: show help" {
run helm config-scheme remove
assert_failure 1
assert_output --parti... |
<?php
/**
* User: andreas
* Date: 2011-12-23
* Time: 17:30
*/
define('LOADALL',true);
define('LOADDATABASE',false);
define('DB_NAME', 'auto_testing');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_HOST', 'localhost');
include('../../config.php');
include(PACKAGE_PATH.'/'.'tests/classes/wp-funct... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Validator;
class anggotaController extends Controller
{
public function home()
{
... |
#include <cstdio>
#include <cstdlib>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "Vmain.h"
#include "verilated.h"
#include "verilated_vcd_c.h"
#include "shared_mem.h"
//----------------------------------------------------------------------------... |
#!/usr/bin/python2.4
#
# Copyright 2009 Google Inc. All Rights Reserved.
"""Defines classes that represent parts of the common wave model.
Defines the core data structures for the common wave model. At this level,
models are read-only but can be modified through operations.
"""
__author__ = 'davidbyttow@google.com (... |
import { createContext, optional, uint8 } from "../../src";
const ctx = createContext();
beforeEach(() => {
ctx.i = 0;
});
const serdes = optional(uint8);
test("optional encode with value", () => {
serdes.ser(ctx, 100);
expect(ctx.bytes[0]).toBe(1);
expect(ctx.i).toBe(2);
});
test("optional decode with val... |
// taken from https://gist.github.com/the-vampiire/a564af41ed0ce8eb7c30dbe6c0f627d8
type ParsedCookies = Record<string, { flags: ParsedFlags; value: string }>
type ParsedFlags = Record<string, string>
export const shapeFlags = (flags: Array<string>): ParsedFlags =>
flags.reduce((shapedFlags, flag) => {
const [... |
<?php
namespace App\Http\Controllers;
use App\Libs\HttpStatusCode;
use App\Libs\JsonResponse;
use App\Libs\MessageCode;
use App\Subject;
use Illuminate\Http\Request;
class SubjectController extends Controller
{
use JsonResponse;
/**
* Retrieve All Subjects
*
* @return \Illuminate\Http\JsonRes... |
from livesettings import config_value
from payment.listeners import capture_on_ship_listener
from product.models import Product
from product.listeners import default_product_search_listener, discount_used_listener
from satchmo_store.contact import signals as contact_signals
from satchmo_store.mail import send_html_emai... |
# count-service
RSocket service that streams integers to the [count-client](../count-client) when requested.
|
//============================================================================
// Name : Flight.h
// Author : Rajko Zagorac
// Date :
// Copyright :
// Description :
//============================================================================
#pragma once
#include <string>
#include <iostream>
#i... |
namespace AppStudio.Data.DataSchemas
{
public class VenueSchema
{
public string country { get; set; }
public string id { get; set; }
public string city { get; set; }
public string name { get; set; }
public string url { get; set; }
public string longitude { get;... |
var a02462 =
[
[ "AttribKernel", "a02462.html#a9cd8827016e0a136aa6f5e9f3b6d2a75", null ],
[ "Mesh", "a02462.html#a451a2c00bc77a056ab322994a2e3560d", null ],
[ "MeshItems", "a02462.html#a6704748a07a2116596762d977c46172c", null ],
[ "MeshKernel", "a02462.html#ac127f6132018b68c502e47f9910d3b07", null ]
]; |
#!/usr/bin/env bash
# This is a simple static analysis tool for subzero core. It checks
# - which gateway address type is present in the subzero binary.
# Function `print_gateway_address_type` prints one of the following values
# to STDOUT
# * "GATEWAY TYPE: TESTNET"
# * "GATEWAY TYPE: MAINNET"
# * "GATEWAY... |
<?php
namespace App\Services;
/**
* Class NewsSlugParser
* @package App\Services
*/
class NewsSlugParser
{
/**
* @param string $slug
* @return int
*/
public function getIdFromSlug(string $slug): int
{
$arrayFromSlug = explode('-', $slug);
$id = array_shift($arrayFromSlug... |
// Copyright 2021 SpecializedGeneralist. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package server
import (
"context"
"fmt"
"github.com/SpecializedGeneralist/whatsnew/pkg/models"
"github.com/SpecializedGeneralist/whatsnew/pkg/models... |
(ns listopia.home.view.layout
(:require [hiccup.page :refer [html5]]))
(defn page-layout [content]
(html5
{:lang :en}
[:head
[:title "listopia"]
[:meta {:name :viewport
:content "width=device-width, initial-scale=1.0"}]
[:link {:href "/assets/bootstrap/css/bootstrap.min.css"
... |
library flutter_support_chat;
// Flutter imports:
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:flutter_support_chat/conversation.dart';
import 'package:flutter_support_chat/overview.dart';
/// Flutter package to implement a fire store chat between cust... |
use bootloader_locator::locate_bootloader;
use std::{
env,
path::Path,
process::{exit, Command},
};
pub fn main() {
let build_type: String;
match env::args().nth(1) {
Some(t) => build_type = t,
None => {
println!("Pass build type 'debug/release' as the argument");
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataAccessLayer.Entites
{
public class hotelinfo
{
public int h1_t1 { get; set; }
public int h1_t2 { get; set; }
public int h1_t3 { get; set; }
public i... |
# Portfólio
Página criada para servir minhas informações e atributos.
|
import Title from "./Title";
import Main from "./Main";
import Result from "./Result";
import Form from "./Form";
import Background from "./Background";
import Header from "./Header";
import StatusBarTheme from "./StatusBarTheme";
import ComponentControlModelDark from "./ComponentControlModeDark";
import Button from ".... |
<?php namespace Zofe\Rapyd;
use Illuminate\View\Compilers\BladeCompiler;
//http://stackoverflow.com/questions/16891398/is-there-anyway-around-to-compile-blade-template-like-this
class Parser extends BladeCompiler
{
/**
* Compile blade template with passing arguments.
*
* @param string $value
... |
package edu.brandeis.cosi12b.enumexample;
public class PlayingCard {
int value;
Suit suit;
PlayingCard(Suit suit, int value) {
this.suit = suit;
this.value = value;
}
public String toString() {
return String.format("Card: %d of %s", value, suit);
}
}
|
package com.jutt.githubtrendingrepomviflow.common.extensions
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import com.jutt.githubtrendingrepomviflow.common.widgets.NpaLinearLayoutManager
import com.jutt.githubtrendingrepomviflow.common.utils.EndlessScrollListener
import kotlinx.corout... |
<?php
namespace Drutiny\JUnit\Format;
use Drutiny\Report\Format;
use Drutiny\Report\FilesystemFormatInterface;
use Drutiny\Report\FormatInterface;
use Drutiny\Profile;
use Drutiny\AssessmentInterface;
use Llaumgui\JunitXml\JunitXmlTestSuites;
use Llaumgui\JunitXml\JunitXmlValidation;
use Symfony\Component\Console\Out... |
<?php
namespace App\Http\Controllers\Cart;
use App\Console\Commands\view;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class CartController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
... |
package danggai.data.network.getgamerecordcard.module
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import danggai.data.module.NetworkModule
import danggai.data.network.getgamerecordcard.remote.api.GetGameRecordCardApi
import danggai.data.netw... |
import 'package:shared/modules/hacker_news/models/news_models_public.dart';
import '../resources/resource_provider/news_api_provider.dart';
import '../resources/resource_provider/news_db_provider.dart';
class Repository {
List<Source> sources = <Source>[
newsDbProvider,
NewsApiProvider(),
];
List<Cache>... |
---
templateKey: blog-post
number: '21'
title: Is Twitch the Only Streaming Platform?
date: 2020-08-17T13:00:01.756Z
description: This week the boys talk about alternative streaming platforms.
thumbnailimage: /img/ep21.jpg
youtube_link: 'https://www.youtube.com/watch?v=LWMA5PLiUvE'
youtube_embed: 'https://www.youtube.c... |
package restaurant
import (
"time"
"go.mongodb.org/mongo-driver/bson"
bson_primitive "go.mongodb.org/mongo-driver/bson/primitive"
"google.golang.org/protobuf/proto"
"github.com/sveatlo/night_snack/internal/events"
restaurant_pb "github.com/sveatlo/night_snack/proto/restaurant"
)
var (
_ events.Event = &Event... |
using UnityEngine;
using UnityEditor;
using System;
using System.Collections.Generic;
using WebSocketSharp;
using WebSocketSharp.Server;
using WebSocketSharp.Net;
using System.Threading;
using MsgPack;
namespace MLPlayer
{
public class AIServer : MonoBehaviour
{
private WebSocketServer wssv;
[SerializeField] s... |
package dev.drewhamilton.inlinedimens.view
import android.graphics.Point
import android.graphics.Rect
import android.view.Display
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.verifyNoMoreInteractions
import dev.drewhamilton.inlinedimens.graphics.P... |
//! Plain recorder.
use std::fmt;
use std::sync::Arc;
use metrics::{Identifier, Key, Recorder};
use metrics_util::{CompositeKey, Handle, MetricKind, Registry};
/// A simple recorder doing nothing fancy but record the plain values.
///
/// Cloning this is cheap since the clones will refer to the same metrics storage.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.