text stringlengths 27 775k |
|---|
/*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.tableeditor.source.colouring;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.List;
import org.rf.ide.cor... |
/**
* @license
* Copyright Andrey Chalkin <L2jLiga>. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/L2jLiga/xd2svg/LICENSE
*/
import { strictEqual } from 'assert';
import { begin, XMLNode } from 'xmlbuilder';
i... |
"""
homeassistant.components.light.zwave
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for Z-Wave lights.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/light.zwave/
"""
# Because we do not compile openzwave on CI
# pylint: disable=import-error
from thread... |
<?php
namespace Lsxiao\JWT;
use Lsxiao\JWT\Component\Claim\Audience;
use Lsxiao\JWT\Component\Claim\CustomClaim;
use Lsxiao\JWT\Component\Claim\ExpirationTime;
use Lsxiao\JWT\Component\Claim\IssuedAt;
use Lsxiao\JWT\Component\Claim\Issuer;
use Lsxiao\JWT\Component\Claim\JWTID;
use Lsxiao\JWT\Component\Claim\NotBefore;... |
<?php namespace App\Helpers\Functions;
use DOMDocument;
use Exception;
use RattfieldNz\UrlValidation\UrlValidation;
/**
* Class HtmlParse
*
* A class used to handle HTML parsing of a URL.
*
* @author Rob Attfield <emailme@robertattfield.com> <http://www.robertattfield.com>
* @package App\Helpers\Functions
*/
c... |
package amount
import "github.com/mono83/currency"
// Must function returns amount if error is nil
// or panics if error present
func Must(amount currency.Amount, err error) currency.Amount {
if err != nil {
panic(err)
}
return amount
}
|
### A Pluto.jl notebook ###
# v0.11.13
using Markdown
using InteractiveUtils
# ╔═╡ 28761bd0-f1fb-11ea-1f82-717a48c220a1
using Pkg
# ╔═╡ 6292b148-f1fb-11ea-2c32-91cd70cb3bd9
function useit(list::Array{Symbol})
installed = [key for key in keys(Pkg.installed())]
strpackages = @. string(list)
uninstalled = s... |
dojo.provide("demo.app-step3");
demo.app = {
store: null,
query: dojo.config.flickrRequest || {},
init: function() {
// proceed directly with startup
this.startup();
},
startup: function() {
// create the data store
var flickrStore = this.store = new dojox.data.FlickrRestStore();
this.initUi();
},
... |
# ISO <<Class>> Date, DateTime
# 19115-2 writer output in XML
# History:
# Stan Smith 2017-11-02 original script
module ADIWG
module Mdtranslator
module Writers
module Iso19110
class GcoDateTime
def initialize(xml, hResponseObj)
@xml = xml
... |
package at.mario.piratecraft.listener;
import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
import at.mario.piratecraft.Main;
import at.mario.piratecraft.utils.ItemsUtil;
import at.mario.piratec... |
package org.colorcoding.ibas.bobas.test.repository;
import org.colorcoding.ibas.bobas.common.OperationMessages;
import org.colorcoding.ibas.bobas.common.OperationResult;
import org.colorcoding.ibas.bobas.ownership.PermissionItem;
import junit.framework.TestCase;
public class testRepository extends TestCase {
publi... |
package com.leaguechampions.libraries.core.domain.repository
interface RiotRepository {
suspend fun getVersion(): String
}
|
/**
* makepages.js
*
* compiles/collects markdown source fragments into an array of pages with child fragments
* input = fragments array from getsources
* return = array of pages in file/fragment order
*
* NOTES
* - respect nopublish flag (omits page) if opts.production
*
* for each page
* *: name... |
# kanmaa-backend
Kanmaa adeventures backend APIs
to regerate after schema reproduction
go run github.com/99designs/gqlgen generate
|
#![doc = include_str!("../README.md")]
use std::error;
use std::fmt;
use std::io::{BufRead, Write};
use std::path::PathBuf;
use clap::{arg, command, ArgMatches};
pub mod adventure;
pub mod scene;
use scene::{Effect, Scene};
/// Runtime configuration data
pub struct Config {
/// Path of the initial scene file t... |
; uchar tshc_saddr2px(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC _tshc_saddr2px
EXTERN _zx_saddr2px
defc _tshc_saddr2px = _zx_saddr2px
|
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $table = 'usuario';
protected $pr... |
// Convert.ToByte.cpp : main project file.
// <Snippet1>
using namespace System;
void main()
{
bool falseFlag = false;
bool trueFlag = true;
Console::WriteLine("{0} converts to {1}.", falseFlag,
Convert::ToByte(falseFlag));
Console::WriteLine("{0} converts to {1}.", trueFlag,
... |
! ROSE correctly parses a pointer to an array if the pointer attribute precedes the dimension attribute.
!
PROGRAM mod6_5
REAL, DIMENSION(10), TARGET :: X
REAL, POINTER, DIMENSION(:) :: Y
!!! Aside: there is a dangling pointer that is kept on the astBaseTypeStack (or astTypeStack?) in the code.
Y=>X
E... |
---
title: FindReplace.Clear method (Publisher)
keywords: vbapb10.chm8323087
f1_keywords:
- vbapb10.chm8323087
ms.prod: publisher
api_name:
- Publisher.FindReplace.Clear
ms.assetid: eb33f21e-1fe2-6d5f-9e6e-afd02c7fe1b9
ms.date: 06/07/2019
ms.localizationpriority: medium
---
# FindReplace.Clear method (Publisher)
Rem... |
import {
Controller,
Get,
Param,
ParseIntPipe,
Post,
Patch,
Delete,
UseGuards,
Body,
UseInterceptors,
UploadedFiles,
} from '@nestjs/common';
import { ServicioService } from './servicio.service';
import { ReadServicioDto, CreateServicioDto, UpdateServicioDto } from './dto';
import { AuthGuard } fr... |
---
layout: tag_page
title: "Tag: Titus 2v1-10"
tag: Titus 2v1-10
robots: noindex
---
|
require 'caplinked/utils'
require 'caplinked/request'
require 'active_support'
module Caplinked
module Utils
def perform_get(path, params = {})
perform_request(:get, path, { params: params })
end
def perform_delete(path, params = {}, body = {}, headers = {})
perform_request(:delete, path, { ... |
# nwc2ly
NoteWorthy Composer exporter for Lilypond.
More information here: http://nwc2ly.sourceforge.net/
Written in 2004 using Delphi 5.
|
{-
Copyright 2012 Google 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
package org.grandtestauto.maths.monoid.test
import org.junit.Assert
import org.grandtestauto.maths.monoid.Partitioner
import org.grandtestauto.maths.monoid.SetPartition
import org.junit.Test
import java.util.HashSet
import java.util.function.BiPredicate
/**
* @author Tim Lavers
*/
class PartitionerTest : TestBase(... |
module Miranda.TypeCheckSpec where
import Data.Either (either)
import Test.Hspec
import Test.HUnit.Base (assertFailure)
import qualified Lambda.Syntax as S
import Miranda.Compiler (CompileError, compileStr)
import SpecUtil
-- | High level transformations
spec :: Spec
spec = do
describe "9 A Type Checker" $ do
... |
package runc
import (
"encoding/json"
"fmt"
"os/exec"
"time"
)
type Runc struct {
command string
}
func New() *Runc {
return &Runc{
command: "runc",
}
}
// stdout,stderr cannot be extracted from execution
// or the command will hang indefinitely
func (r *Runc) Create(id, bundlePath, pidPath string) error {... |
# frozen_string_literal: true
# @class ConfirmationsController
# @extend Devise::ConfirmationsController
# Confirmed user
class ConfirmationsController < Devise::ConfirmationsController
include ApplicationHelper
private
# @param resource_name
# @param resource
# resource -> User
# After user click to li... |
-module(task_3_3).
-export([new/0,lookup/1,insert/2]).
new() ->
ets:new(database,[set,public,named_table]).
lookup(Key) ->
try
[{Key,Value}] = ets:lookup(database,Key),
Value
catch
error:badarg ->
new(),
lookup(Key)
end.
insert(Key, Value) ->
try
ets:insert(database,{Key, Value... |
module Rack
class Timeout
@excludes = [
'/api/verify/images',
'/verify/doc_auth/selfie',
'/verify/doc_auth/document_capture',
'/verify/doc_auth/verify',
'/verify/capture_doc/document_capture',
'/verify/recovery/front_image',
'/verify/recovery/back_image',
'/verify/r... |
import numpy as np
import os
import cv2
import argparse
import tflite_runtime.interpreter as tflite
from matplotlib import pyplot as plt
import time
parser = argparse.ArgumentParser()
parser.add_argument("-c", "--config", type=str, default="config/train.yaml",
help="path of configuration yaml f... |
from decimal import Decimal
from deeplodocus.utils.notification import Notification
from deeplodocus.utils.flags.notif import *
from deeplodocus.utils.flags import TOTAL_LOSS, TRAINING, VALIDATION # NEEDS TO BE RELOCATED
from deeplodocus.brain.thalamus import Thalamus
from deeplodocus.utils.flags.event import ... |
v1.4.0 (in development)
-----------------------
- When splitting apart comma-separated keywords, trim whitespace and discard
any keywords that are empty or all-whitespace
v1.3.0 (2019-05-09)
-------------------
- Upgraded `wheel_inspect.SCHEMA` from JSON Schema draft 4 to draft 7
- Don't require directory entries i... |
<?php
namespace eloquentFilter\QueryFilter\Core;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Pipeline\Pipeline;
class ResolverDetections
{
private $builder;
private $request;
private $detect_factory;
public function __construct($builder, $request, $detect_factory)
{
$... |
package com.s7evensoftware.mobileminer.noso
import android.content.Context
import java.io.BufferedWriter
import java.io.File
import java.io.FileWriter
import java.io.IOException
import java.math.BigInteger
import java.security.MessageDigest
import java.text.SimpleDateFormat
import java.util.*
import kotlin.collections... |
<?php
namespace Metallizzer\Package\Providers;
use Illuminate\Support\ServiceProvider;
use Metallizzer\Package\Console\Commands;
class PackageServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
$this->mergeConfigF... |
import $ from 'jquery';
import prettyHTML from 'diffable-html';
import { createUICounter } from '../../src/uiCounter/counter';
let $container;
beforeEach(() => {
$container = $('<div>');
$container.appendTo(document.body);
createUICounter($container, {
initVal: 10,
min: 8,
max: 12
});
});
afterE... |
require 'mkmf'
dir_config("wbxml")
$libs = append_library($libs, "wbxml2")
create_makefile("wbxml")
|
const storageData = () => {
let data = {
name : document.querySelector("#name").value,
monthPay : document.querySelector("#pay").value,
time : document.querySelector("#time").value,
}
if(data.name == "" || data.monthPay <= 0 || data.time <=0){
alert("Insira o seu nome, um va... |
// This source code was generated by ClangCaster
namespace NWindowsKits
{
// C:/Program Files (x86)/Windows Kits/10/Include/10.0.18362.0/um/d3d11.h:1218
public enum D3D11_BIND_FLAG
{
_VERTEX_BUFFER = 0x1,
_INDEX_BUFFER = 0x2,
_CONSTANT_BUFFER = 0x4,
_SHADER_RESOURC... |
<?php
namespace Tehcodedninja\Teamroles\Listeners;
use Mpociot\Teamwork\Events\UserJoinedTeam;
class JoinedTeamListener
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Handle the event.
*
* @param UserJ... |
#pragma once
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
class Application
{
public:
Application();
void run();
private:
sf::RenderWindow m_window;
sf::Music m_music;
};
|
{-# LANGUAGE FlexibleContexts #-}
module AoC201605
( runDay,
) where
import Data.ByteString.Lazy.Char8 (append, pack, unpack)
import Data.Char (digitToInt)
import Data.Digest.Pure.MD5
import Data.List (isPrefixOf, sortBy)
import qualified Data.Map.Lazy as Map
runDay :: IO ()
runDay = do
putStrLn "Next answers ... |
@file:Suppress("HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE")
package com.saveourtool.save.preprocessor.utils
import org.slf4j.LoggerFactory
import org.springframework.util.FileSystemUtils
import java.io.File
import java.io.IOException
import java.math.BigInteger
import java.nio.file.Files
import java.nio.file.Paths
imp... |
import os
import securexgboost as xgb
username = "user1"
HOME_DIR = os.path.dirname(os.path.realpath(__file__)) + "/../../"
sym_key_file = HOME_DIR + "demo/data/key_zeros.txt"
priv_key_file = HOME_DIR + "config/user1.pem"
cert_file = HOME_DIR + "config/user1.crt"
xgb.init_client(user_name=username, sym_key_file=sym_k... |
@extends('layouts.app')
@section('content')
<billboard-list :team="user.team"></billboard-list>
@endsection |
<!-- YAML
added: v0.0.6
-->
* `pid` {number} 进程 ID。
* `signal` {string|number} 将发送的信号,类型为字符串或数字。**默认值:** `'SIGTERM'`。
`process.kill()` 方法将 `signal` 发送给 `pid` 标识的进程。
信号名称是如 `'SIGINT'` 或 `'SIGHUP'`的字符串。更多信息,参见[信号事件][Signal Events]和 kill(2)。
如果目标 `pid` 不存在,该方法会抛出错误。
作为一个特殊例子,信号 `0` 可以用于测试进程是否存在。
在 Windows 平台中,如果 `pid`... |
require 'test_helper'
class ImportArticleTest < ActiveSupport::TestCase
test "should to article" do
import_article = create :import_article
assert_difference "import_article.import_task.space.articles.count" do
import_article.import
end
end
end
|
using System;
using System.Collections.Generic;
using System.Linq;
using Paramdigma.Core.Collections;
using Paramdigma.Core.HalfEdgeMesh;
using Paramdigma.Core.Geometry;
using Rhino.Geometry.Collections;
using RG = Rhino.Geometry;
namespace Paramdigma.Core.Grasshopper.Converter
{
public static class Converter
... |
package kz.btsd.messenger.bot.api.model.command
import kz.btsd.messenger.bot.api.helpers.duplicate
import kz.btsd.messenger.bot.api.helpers.randomUuid
import kz.btsd.messenger.bot.api.helpers.timeUuid
import kz.btsd.messenger.bot.api.model.peer.PeerUser
import kz.btsd.messenger.bot.api.validation.LocalId
import kz.bts... |
using PyPlot
using DelimitedFiles
if !isdir("figures_summary_channel")
mkdir("figures_summary_channel")
end
m = 90
n = 180
h = 5.0 # meter
dz = 3.0 # meters
dx = 3.0
nz = Int64(round((m * h) / dz)) + 1
nx = Int64(round((n * h) / dx)) + 1
z_src = (collect(5:10:nz-5) .- 1 ) .* dz .+ dz/2.0
x_src = (5-1)ones(Int64, si... |
<?php
namespace App\Servers\HomeAssistant;
trait PollableState
{
public static function getState(string $entityId)
{
$endpoint = 'states/' . $entityId;
return json_decode(HomeAssistantConnector::get($endpoint))->state;
}
}
|
using System.Collections.Generic;
using Shields.Templates;
namespace Shields.Renderer
{
public abstract class BaseRenderer : IRenderer
{
public abstract string Render(Shield shield);
public abstract IEnumerable<string> SupportedFormats { get; }
public virtual string LoadTemplate... |
using DescriptorZoo
using Test, LinearAlgebra, BenchmarkTools
using JuLIP, JuLIP.Testing
@testset "DescriptorZoo.jl" begin
include("exports.jl")
include("test_acsf.jl")
include("test_amp.jl")
include("test_chsf.jl")
include("test_mbtr.jl")
include("test_soaplite.jl")
include("test_dscribe_s... |
# graphql-type-long
Enable 52-bit signed integer types for [GraphQL.js](https://github.com/graphql/graphql-js)
## Usage
```js
import GraphQLLong from 'graphql-type-long';
```
|
# frozen_string_literal: true
require "test_helper"
class Api::V1::ApiControllerTest < ActionDispatch::IntegrationTest
setup do
@user = users(:visitor1)
@song = songs(:mp3_sample)
end
test "should authenticate when have user session" do
login(@user)
get api_v1_song_url(@song), as: :json
as... |
plugins {
id("evercraft.java-conventions")
}
dependencies {
// Minecraft
compileOnly("io.papermc.paper:paper-api:1.18.1-R0.1-SNAPSHOT")
}
val targetJavaVersion = 17
java {
val javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = java... |
require 'spec_helper'
require 'messages/route_update_message'
module VCAP::CloudController
RSpec.describe RouteUpdateMessage do
describe 'validations' do
let(:params) do
{
metadata: {
labels: { potato: 'yam' },
annotations: { style: 'mashed' }
}
}... |
# frozen_string_literal: true
require File.expand_path('../spec_helper', __FILE__)
module Molinillo
FIXTURE_CASE_DIR = FIXTURE_DIR + 'case'
class TestCase
attr_accessor :name, :requested, :base, :conflicts, :result, :index
def initialize(fixture_path)
File.open(fixture_path) do |fixture|
JS... |
# web_address_bar example
t=text({content: "address bar content here",y: 66 })
address_bar_content = text({content: "touch to change adress bar content", x: 6, y: 6 })
t.touch do
address_bar_content.address do |e|
t.content= "#{e[:location]}\n#{e[:state]}"
end
end
address_bar_content.touch do
address_bar_... |
#!/bin/bash -xe
source hack/common.sh
source cluster-up/cluster/$KUBEVIRT_PROVIDER/provider.sh
source hack/config.sh
function wait_for_rollout() {
_kubectl rollout status $1 -n $namespace $2 --timeout=240s
}
function wait_for_digest() {
for digest in $3; do
while ! _kubectl get -n $namespace $1 $2 -o... |
2020年09月28日13时数据
Status: 200
1.傅园慧预赛第一无缘决赛
微博热度:2346187
2.美媒称特朗普10年没缴纳所得税
微博热度:2227161
3.刘昊然灵机一动代言了
微博热度:2218835
4.白浪是郎平女儿
微博热度:2218577
5.甄嬛传挺住
微博热度:1725785
6.热血满满的弟弟们什么鬼
微博热度:1645636
7.如懿传下架
微博热度:1620325
8.3岁翻版福原爱哭着打乒乓球
微博热度:1319255
9.伊能静儿子再晒女装照
微博热度:1004897
10.外交部提醒假期避免非必要跨境旅行
微博热度:999349
11.延禧攻略... |
---
layout: post
title: Off To The Sidebar
date: 2002-04-05 06:04:51.000000000 +02:00
categories:
- blogging
tags: []
status: publish
type: post
published: true
meta: {}
author:
login: shanson
email: papascott-wp@gmail.com
display_name: PapaScott
first_name: Scott
last_name: Hanson
---
<p>I worked on my sideb... |
import re
import os
import argparse
import requests
class ImgurURL:
def __init__(self):
self = self
def get_imgur_urls(self, starturl):
'''
Scans which kind of imgur url the link is and used the correct
function for returning it.
'''
albumRegEx = r"imgur.com\... |
(SYMBOL-LISTP-OF-COMMON-LISP-SYMBOLS-FROM-MAIN-LISP-PACKAGE)
(MEMBER-EQUAL-OF-NIL-AND-MAP-SYMBOL-NAME-OF-COMMON-LISP-SYMBOLS-FROM-MAIN-LISP-PACKAGE)
(SYMBOL-LISTP-OF-COMMON-LISP-SPECIALS-AND-CONSTANTS)
(MEMBER-EQUAL-OF-NIL-AND-MAP-SYMBOL-NAME-OF-COMMON-LISP-SPECIALS-AND-CONSTANTS)
(MEMBER-EQUAL-OF-T-AND-MAP-SYMBOL-NAME... |
-- @testpoint:opengauss关键字relative(非保留),作为用户组名
--关键字不带引号-成功
drop group if exists relative;
create group relative with password 'gauss@123';
drop group relative;
--关键字带双引号-成功
drop group if exists "relative";
create group "relative" with password 'gauss@123';
drop group "relative";
--关键字带单引号-合理报错
drop group if exist... |
using System;
namespace UnrealEngine
{
public partial struct FLevelSimplificationDetails
{
/// <summary>Whether to create separate packages for each generated asset. All in map package otherwise</summary>
public bool bCreatePackagePerAsset;
/// <summary>Percentage of details for static mesh proxy</summary>
pu... |
import re
from collections import namedtuple
from bs4 import BeautifulSoup
Piece = namedtuple('Piece', "content head tail sid pos")
def cut_pieces_html(soup, length, overlap, context):
return cut_pieces_txt(soup.text, length, overlap, context)
def cut_pieces_txt(text, length, overlap, context=0):
"""
cut... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\Manager;
use App\Article;
use App\Comment;
class Shop extends Model
{
protected $guarded = ['id'];
public function manager() {
return $this->belongsTo(Manager::class);
}
public function articles() {
return $this->h... |
// wrapped by build app
define("dojox/widget/Portlet", ["dojo","dijit","dojox","dojo/require!dijit/TitlePane,dojo/fx"], function(dojo,dijit,dojox){
dojo.experimental("dojox.widget.Portlet");
dojo.provide("dojox.widget.Portlet");
dojo.require("dijit.TitlePane");
dojo.require("dojo.fx");
dojo.declare("dojox.widget.Portl... |
Capistrano::Configuration.instance(:must_exist).load do
namespace :remote do
def get_cmd
cmd = self[:cmd]
raise "A command must be given. Please, call the task with -s cmd=\"your command\"" unless cmd
cmd
end
def remote_call(command)
run wrap_command(command) do |channel, stream, ... |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import '../blocs/app_navigator/app_navigator_bloc.dart';
import '../shared/app_defaults.dart';
class AppNavigatorBottom extends StatefulWidget {
AppNavigatorBottom({Key key}) : super(key: key);
@override
_AppNavigatorBotto... |
// @flow
import { AdaWallet, AdaWalletInitData } from '../types';
import { request } from '../lib/request';
export type NewAdaWalletParams = {
ca: string,
password?: string,
walletInitData: AdaWalletInitData
};
export const newAdaWallet = (
{ ca, password, walletInitData }: NewAdaWalletParams
): Promise<Ada... |
<?php
$ci = & get_instance();
$ci->load->model("home_model");
$header['header_menu_categories'] = $ci->home_model->get_header_category();
$footer['footer_menu_categories'] = $ci->home_model->get_footer_category();
$this->load->view('front/layout/header',$header);
echo $contents;
$this->load->view('front/layout/footer'... |
<?php
class Register_model extends CI_Model {
function image_upload($data){
$count = count($data);
if($count>0){
$this->db->insert_batch('pharm_galley',$data);
$first_id = $this->db->insert_id();
$last_id = $first_id + ($count-1);
return array('first_id'=>$first_id,'last_id'=>$last_id);
} else {
r... |
/*
Copyright 2021 Terway Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... |
package com.github.psm.moviedb.utils
import androidx.compose.foundation.lazy.LazyListScope
import androidx.compose.runtime.Composable
fun LazyListScope.placeholder(
enable: () -> Boolean,
itemCount: Int,
content: @Composable () -> Unit
) {
if (enable()) {
items(itemCount) {
conten... |
## WeightRoute 404 error for first request when using springBootVersion = '2.1.2.RELEASE'+'Greenwich.RELEASE'
https://github.com/spring-cloud/spring-cloud-gateway/issues/818 |
package utils;
public interface GameProfiler {
public void frameStart();
public void updateRender3d();
public void render3dRender2d();
public void render2dDisplay();
public void frameEnd();
public long[] getValues();
} |
# advent-of-code-2018
Advent of Code Solutions for 2018
The official website is here: [Advent of Code 2018](https://adventofcode.com/2018)
|
VG Feed
==============
Read VG (Verdens Gang) latest news in terminal window.

Install
--
```bash
npm install -g vg-feed
```
Usage
---
```bash
vgno
```
Limit news items
---
```bash
vgno -l 3
```
|
import 'package:flutter/material.dart';
import 'package:flutter_realm/flutter_realm.dart';
import '../subscription_widget.dart';
class SyncWidget extends StatefulWidget {
@override
_SyncWidgetState createState() => _SyncWidgetState();
}
class _SyncWidgetState extends State<SyncWidget> {
Realm _realm;
@overr... |
%%% Some very simple glue for starting fiddler from the command line.
-module(fiddler1).
-export([start/0, start3/0, startn/1]).
start() ->
fiddler:start([{7001,6001},{7000,6000}]).
start3() ->
fiddler:start([{7001,6001},{7000,6000},{7002,6002}]).
%%%
%%% Allows all TCP ports to be configured on the command... |
import 'note.dart';
import 'notes_folder.dart';
import 'notes_folder_notifier.dart';
class VirtualNotesFolder
with NotesFolderNotifier
implements NotesFolderReadOnly {
final List<Note> _notes;
VirtualNotesFolder(this._notes);
@override
List<Note> get notes => _notes;
@override
bool get isEmpty =... |
using DevExpress.Xpo;
namespace AspNetCoreMvcApplication.DataAccess {
public class Customer : XPObject {
public Customer(Session session) : base(session) { }
private string fFirstName;
public string FirstName {
get { return fFirstName; }
set { SetPropertyValue(nameo... |
/**
*
*/
package com.agsft.springdrool.service;
import com.agsft.springdrool.model.Product;
/**
* @author bpawar
* @since 13-Aug-2018
*/
public interface ProductService {
Product getProductDiscount(String type);
}
|
function concetanateData([arg1, arg2, arg3, arg4]){
let firstName = arg1;
let lastName = arg2;
let age = arg3;
let town = arg4;
console.log(`You are ${firstName} ${lastName}, a ${age}-years old person from ${town}.`);
}
concetanateData(['Ivan', 'Petrov', '40', 'Burgas']) |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Charlotte
{
public class Moment
{
//public Moment Prev; // old
public Map Map;
public int X;
public int Y;
public void UpdateReachable()
{
this.Map.UpdateReachable(this.X, this.Y);
}
public IEnumerab... |
#!/bin/bash
# Updates deployment on current k8s context
# run inside proj dir and use project env
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$DIR"
source "build-scripts/utilities/project-env.sh"
# send current version as version to update to
build-scripts/utilities/manage-deployments.sh -v "$CURRENT... |
Article 431-30
----
Les personnes morales déclarées responsables pénalement, dans les conditions
prévues par l'article 121-2, des infractions définies à la présente section
encourent, outre l'amende suivant les modalités prévues par l'article 131-38, la
peine d'affichage de la décision prononcée ou de diffusion de cell... |
@extends('master')
@section('content')
@if( $first == "Hello" )
{{ $first }}<br><br>
{{ $second }}<br><br>
{{ $third }}<br><br><!-- array of variables sent from the About function -->
<div class="title">About Page</div>
@else
<h3 class="title">Woops!!</h3>
@endif
@stop |
require 'rubygems'
require 'xcodeproj'
require 'fileutils'
xcodeproj_filepath = ARGV[0]
file_name = ARGV[1]
app_name = ARGV[2]
group_name = ARGV[3]
# Find group
project = Xcodeproj::Project.open(xcodeproj_filepath)
xcodeproj_group = project.main_group[group_name]
# Create group
unless xcodeproj_group
xcodeproj_gro... |
// Package chrome
// Time : 2022/3/25 23:24
// Author : xushiyin
// contact : yuqingxushiyin@gmail.com
package chrome
import (
"fmt"
"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/input"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"math/rand"
"strconv"
"strings"
"time"
)
type VideoInfo ... |
let YoutubeVideoInfo = require('./../dist').default;
new YoutubeVideoInfo('D_U6luQ6I90')
.then(instance => {
instance.getInfo()
.then(info => {
console.log(info)
})
.catch(err => {
console.log(err)
})
})
|
<?php
// TODO:: proper autoload
include_once 'src/interfaces/DatabaseConnection.php';
include_once 'src/DB.php'; |
package ru.alexskvortsov.policlinic.data.storage.database.providers
import ru.alexskvortsov.policlinic.data.storage.database.AppDatabase
import ru.alexskvortsov.policlinic.data.storage.database.dao.DoctorToCompetenceConnectionDao
import javax.inject.Inject
import javax.inject.Provider
class DoctorToCompetenceConnecti... |
#pragma once
#include <string>
#include "tokentype.hpp"
#include "scanner.hpp"
#include "model.hpp"
namespace lexer {
/**
* Token Class
* representation of Token
*/
class Token
{
public:
const std::string lexeme;
const tokenizer::TokenType type;
Token(const std::string &_lexeme, const tokenizer:... |
package org.jetbrains.plugins.scala.codeInspection
import com.intellij.codeInspection._
import com.intellij.psi.PsiElement
import org.jetbrains.plugins.scala.extensions.VisitorWrapper
/**
* Pavel Fatin
*/
abstract class AbstractInspection(id: String, name: String) extends LocalInspectionTool {
def this() {
th... |
package org.enso.syntax.text
import org.enso.flexer
import org.enso.flexer.Reader
import org.enso.syntax.text.ast.Doc
import org.enso.syntax.text.spec.DocParserDef
import flexer.Parser.{Result => res}
////////////////////////////////////////////////////////////////////////////////
//// Doc Parser ////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.