text stringlengths 27 775k |
|---|
# goit-nodejs-hw-01
Скріншоти виконання команд
https://monosnap.com/file/xPG5PRGdaRhDDxfuhWhplPdqkgXhjf
https://monosnap.com/file/svl1bEBqOB9zxPl4RNawGFJM9f5Xqf
|
import {domInsertBefore} from "@purtuga/common/src/domutils/domInsertBefore.js"
import {domRemoveChild} from "@purtuga/common/src/domutils/domRemoveChild.js"
import {
isUndefined,
isNull,
isDocFragment
} from "@purtuga/common/src/jsutils/runtime-aliases.js"
import Directive from "../directives/Directive.js"... |
<?php
namespace App\Enums;
class ExamEnum
{
const STATUS_IS_NOT_OPEN = 0;
const STATUS_IS_OPENING = 1;
const STATUS_IS_CLOSED = 2;
public static $status = [
self::STATUS_IS_NOT_OPEN => '未开始',
self::STATUS_IS_OPENING => '进行中',
self::STATUS_IS_CLOSED => '已结束',
];
}
|
Utility element to enable repeatable pip installs
=================================================
Set this element as a dependency to make the utility scripts available,
and then use them as appropriate.
## Usage
This element makes a number of scripts available for use in image building, and
performs actions to cop... |
import { EntityMetadata } from "../../metadata/EntityMetadata";
export class ViewUtils {
/**
* Comparator for .sort() that will order views bases on dependencies in creation order
*/
static viewMetadataCmp(metadataA: EntityMetadata | undefined, metadataB: EntityMetadata| undefined): number {
i... |
import { Comment, CommentAddData, CommentUpdateData } from './data/comment'
import { Issue, IssueAddData, IssueUpdateData } from './data/issue'
import { Member, MemberAddData, MemberUpdateData } from './data/member'
import { Milestone, MilestoneAddData, MilestoneUpdateData } from './data/milestone'
import { Product, Pr... |
import { Action } from 'redux';
import ConsumptionModificationType from '../../domain/enum/ConsumptionModificationType';
import IPerson from '../../domain/model/IPerson';
// Action Types
export const ADD_PERSON = 'person/ADD';
export const REMOVE_PERSON = 'person/REMOVE';
export const INCREMENT_CONSUMPTION = 'person/I... |
package com.tencent.mm.sdk.modelbase;
import android.os.Bundle;
import com.tencent.mm.sdk.b.a;
public abstract class BaseReq {
public String openId;
public String transaction;
public abstract boolean checkArgs();
public void fromBundle(Bundle bundle) {
this.transaction = a.b(bundle, "_wxapi_... |
:- dynamic astar_expansions/1.
:- multifile holds/2.
%% A version of holds that will be used by A*
holds(F,List) :- is_list(List),member(F,List).
astar_is_goal(State) :-
goal_condition(G),
\+ (member(F,G), \+ member(F,State)).
astar_action_cost(_,1).
astar_infinity(10000).
% gets the g value of the state
ge... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TextController : MonoBehaviour
{
[SerializeField] private bool finishedIntro;
public const int COLOR_BASE = 256;
public const int NUM_COLOR_CHANNELS = 3;
public const int LEFT_CLICK = 0... |
package typingsSlinky.asmcryptoJs
import typingsSlinky.asmcryptoJs.sha1AsmMod.sha1result
import typingsSlinky.asmcryptoJs.sha256AsmMod.sha256result
import typingsSlinky.asmcryptoJs.sha512AsmMod.sha512result
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scala... |
$workingDir = "$PSScriptRoot/workingDir"
. $PSScriptRoot/f1.ps1
. $PSScriptRoot/somefunction.ps1
somefunction |
from tester import *
from PIL import Image
# sample ppm stream
file = "Images/lena.ico"
data = open(file, "rb").read()
def test_sanity():
im = Image.open(file)
im.load()
assert_equal(im.mode, "RGBA")
assert_equal(im.size, (16, 16))
assert_equal(im.format, "ICO")
|
namespace DestDiscordBotV3.Common.Redstone
{
using System;
using System.Threading.Tasks;
using System.Timers;
public class Repeater : IRepeater
{
private readonly IGiveawayObserver _giveaway;
private readonly IReminderObserver _reminder;
private readonly IMusicObserver _mus... |
#![no_std]
#![feature(asm, naked_functions, linkage, core_intrinsics, global_asm)]
pub extern crate sam_common;
pub use sam_common::bobbin_bits;
pub use sam_common::bobbin_mcu;
pub use sam_common::bobbin_hal;
pub use sam_common::bobbin_sys;
pub use sam_common::nvic;
pub use sam_common::scb;
pub use sam_common::systick... |
#!/bin/bash
#docker stop webgeold
#docker rm webgeold
#docker rmi webgeold
docker build -t webgeold .
|
require 'rails_helper'
describe Country, type: :model do
describe '#with_exporting_guide' do
it 'returns only countries that have exporting guides' do
with_guide = create_list(:country, 3, exporting_guide_path: "/file/#{Faker::Lorem.word}")
without_guide = create_list(:country, 3)
expect(descri... |
import {
IsString,
IsNotEmpty,
IsEmail,
MinLength,
MaxLength,
IsUUID,
IsOptional,
Validate,
IsISO8601,
IsDateString,
} from 'class-validator';
import AtLeastXYearsAgo from 'src/validators/AtLeastXYearsAgo.validator';
export class CreateUserDto {
@IsString()
@IsEmail()
@IsNotEmpty()
email;
... |
package ast
import (
"github.com/geode-lang/geode/pkg/lexer"
"github.com/geode-lang/geode/pkg/util/log"
)
var blkidx = 0
func (p *Parser) parseBlockStmt() BlockNode {
p.requires(lexer.TokLeftCurly)
blk := BlockNode{}
blk.TokenReference.Token = p.token
blk.NodeType = nodeBlock
p.Next()
for {
p.globTerminat... |
<?php
namespace Gregurco\Bundle\GuzzleBundleWssePlugin\Test\Middleware;
use Gregurco\Bundle\GuzzleBundleWssePlugin\Middleware\WsseAuthMiddleware;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Request;
use PHPUnit\Framework\TestCase;
class WsseAuthMiddlewareTest extends TestCase
{
public function testConstruct... |
package io.sentry.core;
final class SentryEnvelopeItemHeader {
private final String contentType;
private final String fileName;
private final String type;
private final int length;
public String getType() {
return type;
}
public int getLength() {
return length;
}
public String getContentTy... |
<?php
$alpha = 'CC';
$colors = array(
'#00FF00' . $alpha,
'#0000FF' . $alpha,
);
$ds_name[1] = 'Duplication';
$opt[1] = "-T 55 --vertical-label \"Percent\" --title \"$hostname / PuppetDB Duplication\"";
$def[1] = '';
foreach ($DS as $i) {
$def[1] .= rrd::def("var$i", $rrdfile, $DS[$i], 'AVERAGE');
$... |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace System.Data.Entity.ModelConfiguration.Edm
{
using System.Data.Entity.Core.Metadata.Edm;
using System.Data.Entity.Utilities;
internal static class EdmTypeExtensions... |
# Berry
Berry is an open source code editor created with the Godot Game Engine and is under the MIT liscense
|
'use strict';
(function () {
var addEventListenerList = function (list, event, fn) {
for (var i = 0, len = list.length; i < len; i++) {
list[i].addEventListener(event, fn, false);
}
}
var optionContainer = document.querySelector('.option-container'),
addOptButton = doc... |
unit fStoreDeals;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, fGridForm, JvComponentBase, JvCaptionButton, DB, AbmesFields,
ParamDataSet, ActnList, DBClient, AbmesClientDataSet, GridsEh, DBGridEh,
AbmesDBGrid, ComCtrls, ToolWin, DBCtrls, ColorNav... |
/// xterm-query error type
#[derive(thiserror::Error, Debug)]
pub enum XQError {
#[error("IO error: {0}")]
IO(#[from] std::io::Error),
#[error("UTF8 error: {0}")]
Utf8(#[from] std::str::Utf8Error),
#[error("Wrong answer format: {0}")]
WrongFormat(String),
#[error("Timeout waiting for xterm"... |
# Instructions
**Note**: a live version is available [here](https://joerihermans.com/talks/lfmcmc/).
1. Clone this repository:
```
git clone https://github.com/montefiore-ai/likelihood-free-mcmc
cd likelihood-free-mcmc/talk
```
2. Start an HTTP server to serve the slides:
```
python -m http.server 8000
```
3. Visit [... |
package fr.vp3n.overthebox
import scala.concurrent.Future
import scala.concurrent.ExecutionContext.Implicits.global
class Api(loginApi: Login,
interfaceApi: Interface) {
def stopInterface(name: String): Future[Unit] = {
withCredentials(auth => interfaceApi.stop(auth, name))
}
def sta... |
#ifndef SYMBOL_SELECTOR_FACTORY_H
#define SYMBOL_SELECTOR_FACTORY_H
#include "ALMImproved_ss.hpp"
#include "double_char_ss.hpp"
#include "ALM_ss.hpp"
#include "ngram_ss.hpp"
#include "single_char_ss.hpp"
#include "symbol_selector.hpp"
namespace hope {
class SymbolSelectorFactory {
public:
static SymbolSelector *c... |
using System;
using System.Threading;
using System.Threading.Tasks;
using Warden.Core;
using Warden.Utils;
namespace Warden
{
/// <summary>
/// Default implementation of the IWarden interface.
/// </summary>
public class Warden : IWarden
{
private readonly WardenConfiguration.Builder _conf... |
# == Schema Information
#
# Table name: geo_entity_types
#
# id :integer not null, primary key
# name :string(255) not null
# created_at :datetime not null
# updated_at :datetime not null
#
class GeoEntityType < ActiveRecord::Base
attr_accessible :name
include Dicti... |
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
#if UNITY_EDITOR
using System.IO;
using UnityEditor;
#endif
namespace FrancoisSauce.Scripts.FSUtils
{
/// <summary>
/// use this singleton to keep track of all the built scenes in the project + the levels scenes.
/// if in unity edito... |
#!/bin/bash
jekyll serve -c _config.yml,_config.dev.yml -w --drafts
|
package VMOMI::ClusterUsageSummary;
use parent 'VMOMI::DynamicData';
use strict;
use warnings;
our @class_ancestors = (
'DynamicData',
);
our @class_members = (
['totalCpuCapacityMhz', undef, 0, ],
['totalMemCapacityMB', undef, 0, ],
['cpuReservationMhz', undef, 0, ],
['memReservationMB', undef... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Lab15_Geometry
{
interface GeometricShape : Object2DMoveOnAxisX, Object2DMoveOnAxisY
{
public Coordinates2D[] Points { get; }
public ShapeType ShapeType { get; }
public void PrintPointsCoords();
}
}
|
package dev.pimentel.domain.usecases
import dev.pimentel.domain.usecases.shared.NoParams
import dev.pimentel.domain.usecases.shared.UseCase
class AreCategoriesStored(
private val getAllCategories: GetAllCategories
) : UseCase<NoParams, Boolean> {
override suspend fun invoke(params: NoParams): Boolean =
... |
#!/bin/bash
set -e
HOME=/www/wuaiwow-www
echo "edit flask plugin compatible with flask 1.0.2"
packages=($(python -c "import site; print(site.getsitepackages())" | tr -d "[],\'\'"))
for package in ${packages[@]}; do
cache_path=${package}'/flask_cache/jinja2ext.py'
echo 'search flask_cache at: '${cache_path}
... |
class Scoreboard:
def __init__(self):
self.wins = 0
self.losses = 0
self.ties = 0
def addWin(self):
self.wins += 1
def addLoss(self):
self.losses += 1
def addTie(self):
self.ties += 1
def printScoreboard(self):
print('Your current record is:')
print('Wins: ' + str(self.wins))
print('Losses: ... |
use crate::asset::Dungeon;
use ron::de::from_str;
impl Dungeon {
pub fn name(&self) -> String {
self.name.clone()
}
}
impl Iterator for Dungeon {
type Item = String;
fn next(&mut self) -> Option<Self::Item> {
if self.stages.len() - 1 < self.curr {
return None;
}
... |
package com.dimanem.android.nba.rssreader.vo
import org.simpleframework.xml.Attribute
import org.simpleframework.xml.Element
import org.simpleframework.xml.Root
/**
* Created by dimanemets on 09/02/2018.
*/
@Root(name = "rss")
class RSS {
@set:Attribute(name = "version")
@get:Attribute(name = "version")
... |
#!/usr/bin/perl
use strict;
use warnings;
use IO::Async::Test;
use Test::More;
use Test::Metrics::Any;
use POSIX qw( SIGINT );
use IO::Async::Loop;
use IO::Async::OS;
plan skip_all => "POSIX fork() is not available" unless IO::Async::OS->HAVE_POSIX_FORK;
my $loop = IO::Async::Loop->new_builtin;
testing_loop( $l... |
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace ValidationComponents
{
// Allow for different types of range comparison.
// You could add different options to support more
// data types, like dates.
public enum ValidationDataType
... |
# Veterinary API (aka aws-sam-api-gateway-dynamodb-lambda)
A simple example using ApiGateway or ApiGateway + Lambda to interact with Dynamo DB, using:
- TypeScript + Node for lambda implementation
- API Gateway + OpenAPI/Swagger integration for API validation
- AWS SAM for infrastructure templating
## Requirements
-... |
Credits
=======
- [josh.zeno@plex](https://forums.plex.tv/profile/josh.zeno)
HDSurfer Plug-in
- [lazybones@plex](https://forums.plex.tv/user/80977-lazybones/)
Auto Transcode
- [hychiang@plex](https://forums.plex.tv/profile/hychiang)
HDHRViewerV2.bundle original code, favorites, restapi + Channel-App-Guide
- [robe... |
#
# Routines for catman command only.
#
# Sccsid catman.ksh 1.2 (gritter) 8/10/03
#
#
# Add windex line for a page. $1 is the entry in mandir, $2 is the possibly
# uncompressed file to read from, $3 is the manual section.
#
windexadd() {
w_name="${1##*/}"
case "$3" in
[0-9])
w_name="${w_name%.$3*}"
;;
*)
w_... |
import React from "react"
import { render, cleanup, fireEvent } from "@testing-library/react"
import { UserNav } from "../../src/navigation/UserNav"
afterEach(cleanup)
describe("<UserNav>", () => {
it("renders while signed in and shows children", () => {
const signOutSpy = jest.fn()
const { getByText } = re... |
<?php
namespace Softspring\SubscriptionBundle\Tests\Model;
use Doctrine\Common\Collections\Collection;
use PHPUnit\Framework\TestCase;
use Softspring\SubscriptionBundle\Model\SubscriptionCustomerInterface;
use Softspring\SubscriptionBundle\Model\SubscriptionInterface;
use Softspring\SubscriptionBundle\Tests\Model\Exa... |
module ApplicationHelper
def params_plus(additional_params)
params.to_unsafe_h.merge(additional_params)
end
def delete_link(resource)
return unless resource.destroyable_by?(current_user)
link_to "Delete",
send("#{resource.class.name.downcase}_path", resource),
method: :delete,... |
<?php
/**
* Created by PhpStorm.
* User: hp
* Date: 2017/4/23
* Time: 13:43
*/
class Manager_change_info extends CI_Controller{
function all_room_delete(){
header('content-type:application:json;charset=utf8');
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods... |
# Copyright (c) 2016-2019, Matteo Cafasso
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and ... |
// Licensed under the Apache License. See footer for details.
/*jslint node: true*/
"use strict";
var
request = require('request'),
_ = require('lodash');
function Weather(url) {
var self = this;
self.autocomplete = function (query, callback) {
request.get(
url + "/api/weather/v3/location/search?la... |
@file:JsQualifier("isc")
package isc
external open class Blah {
open fun findIndex(propertyName: dynamic, value: dynamic): isc Integer = definedExternally
open fun findIndex(propertyName: dynamic): isc Integer = definedExternally
}
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkmicro_app_1_0.models;
import com.aliyun.tea.*;
public class UpdateAppRoleInfoRequest extends TeaModel {
// 执行用户userId
@NameInMap("opUserId")
public String opUserId;
// 变更角色名称,可不传,不传则不变
@NameInMap("newRoleName")
... |
package com.manday.fruit.dao
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.manday.fruit.entities.FruitEntity
@Dao
interface FruitDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun i... |
<?php
namespace App\Nucleo;
/**
* interface base de las funciones para los motores de bases de datos
* @author Leonardo Alvarado
* @package bd
* @subpackage base_bd
*/
interface base_bd{
public function _conexion();
public function _ejecutarSQL($sql);
public function _arreglo($sql,$tipo);
public functi... |
import 'package:flutter/material.dart';
typedef OnPressed = void Function(int);
class ToggleButton extends StatefulWidget {
const ToggleButton({
Key key,
this.title,
this.errorText,
this.titleFontSize = 16.0,
this.labelFontSize = 15.0,
this.errorFontSize = 11.0,
this.activeBgColor,
t... |
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const path = require('path');
const styleSpec = require('@mapbox/mapbox-gl-style-spec');
const expressions = Object.keys(styleSpec.v8.expression_name.values);
const fileContent = `// DO NOT MODIFY DIRECTLY!
// This file is generated by scripts/build-operato... |
namespace System.Windows.Forms
{
public delegate void ToolStripPanelRenderEventHandler(object sender, ToolStripPanelRenderEventArgs e);
}
|
---
layout: blog
title: Version 1.2 released
author: nick
---
Node-RED 1.2 is now available to [install](https://npmjs.org/package/node-red).
If upgrading, please read the [upgrade instructions](http://nodered.org/docs/getting-started/upgrading.html).
---
<iframe width="560" height="315" src="https://www.youtube.co... |
import 'package:analyticsx/src/analytics_action.dart';
/// Abstract class to represent analytics providers (e.g. Firebase), which all implementations must extend.
///
/// Any implementation must provide a unique ID string by which it can be identified, but no format is enforced, and
/// this can be as simple as "MegaC... |
%% ekvs_keynumhandler
%% Handler module implementing the endpoint for getting the number of keys of the node
-module(ekvs_keynumhandler).
-export([init/2]).
%% Response Header
-define(HEADER, #{<<"content-type">> => <<"application/json">>}).
%% Response Bodies
-define(BODY_GET(Count), jsx:encode(#{<<"count">> => C... |
"use strict";
var gitHistory=require('git-history'),
Commit=require('./Commit');
process.on('message', function onChildMessageReceived(msg) {
var history=gitHistory(), commits={}, _this=this, repoDir=msg.repo;
var log = require('./logger')(msg.module);
//process.chdir(repoDir);
function onCommitEventHand... |
module IntegrationHelpers
def create_view_file(content)
write_file ""
end
def write_file(filename, content)
in_views_directory { File.open(filename, 'w') { |file| file.puts content } }
end
def in_views_directory(&block)
FileUtils.mkdir_p views_dir
Dir.chdir views_dir, &block
end
def vie... |
package xyz.z3ro.colorenhance.utility.kcal
object KCALManager {
var kcalImplementation: KCALInterface
init {
kcalImplementation = GenericKCALManager()
if (!kcalImplementation.isSupported) kcalImplementation = DummyKCALManager()
}
val isKCALAvailable: Boolean
get() = kcalImplem... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
Class Browserpage extends WFF_Controller {
private $collection = "Browser_page";
function __construct()
{
parent::__construct();
header('Content-type: application/json');
$this->load->library("crud");
$this->collection = set... |
export interface INBrightOrder {
ItemId: number;
OrderedBy: string;
OrderNr: string;
CreatedDate: Date;
OrderStatus: number;
SubTotal: number;
Discount: number;
Total: number;
NrParticipants: number;
}
export class NBrightOrder implements INBrightOrder {
ItemId: number;
OrderedBy: string;
Order... |
package io.defitrack.price
import com.github.michaelbull.retry.policy.limitAttempts
import com.github.michaelbull.retry.retry
import io.defitrack.common.network.Network
import io.defitrack.common.utils.BigDecimalExtensions.dividePrecisely
import io.defitrack.price.hop.HopPriceService
import io.defitrack.protocol.balan... |
#include "remote_control/resource_allocation_manager_impl.h"
#include "application_manager/application.h"
#include "application_manager/message_helper.h"
#include "remote_control/rc_module_constants.h"
#include "json/json.h"
#include "utils/helpers.h"
#include "utils/make_shared.h"
#include "remote_control/message_help... |
package update
import (
"context"
"fmt"
"os"
"github.com/henvic/wedeploycli/fancy"
"github.com/henvic/wedeploycli/isterm"
"github.com/henvic/wedeploycli/update"
version "github.com/hashicorp/go-version"
"github.com/henvic/wedeploycli/command/canceled"
"github.com/henvic/wedeploycli/command/internal/we"
"gi... |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace Microsoft.Data.Entity.Design.UI.Views.Dialogs
{
using System.Collections.Generic;
using System.Windows.Controls;
using System.Windows.Input;
// <summary>
/... |
<?php
namespace App\Bootstrap;
use DI\Container;
use Slim\App;
class MiddlewareManager
{
/** @var App The application */
protected $app;
/** @var Container The application container */
protected $container;
/**
* Create a new MiddlwareManager object.
*
* @param \Slim\App $app... |
use std::collections::{HashMap, HashSet};
use ast::*;
use span::Node;
use strings;
#[derive(Clone, Copy, Debug, PartialEq, Hash)]
pub enum Symbol {
Typename,
Identifier,
}
#[derive(Default)]
pub struct Env {
pub symbols: Vec<HashMap<String, Symbol>>,
pub extensions_gnu: bool,
pub extensions_stric... |
<?php
$APP_NAME = "PrakWeb02";
$SERVER_NAME = "localhost";
$PROJECT_NAME = "prakweb02";
$DB_NAME = "prakweb02";
$DB_USERNAME = "root";
$DB_PASSWORD = ""; |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
package com.microsoft.device.dualscreen.sample.bottomnavigation
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragmen... |
#!/usr/bin/python3
"""Print latest release notes from changelog"""
PACKAGES = []
with open("CHANGELOG.md", "r", encoding="utf-8") as in_file:
FOUND_LATEST = False
for line in in_file:
if FOUND_LATEST:
if line.strip().startswith("#") or line.strip() == "":
break
... |
# bunker
Enterprise Bastion System
# Build
* Use release `v17.03.2-ce` for `github.com/docker/docker` |
package com.tinashe.weather
import org.mockito.Mockito
import org.mockito.stubbing.OngoingStubbing
/**
* Mockito Utils
* Use `whenever` instead of `when` since its reserved in kotlin
*/
inline fun <reified T> mock() = Mockito.mock(T::class.java)
inline fun <T> whenever(methodCall: T) : OngoingStubbing<T> =
... |
package com.h5190041.mobiett.data.model
import com.google.gson.annotations.SerializedName
data class LoginResponseItem(
@SerializedName("email")
val email: String,
@SerializedName("parola")
val parola: String
) |
//
// VROAVPlayer.cpp
// ViroRenderer
//
// Created by Raj Advani on 11/18/16.
// Copyright © 2016 Viro Media. All rights reserved.
//
// 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 Softwar... |
#ifndef _ORDERLIST_H
#define _ORDERLIST_H
#include <stdbool.h>
typedef int ElemType;
typedef struct Node{
ElemType data;
struct Node *next;
}Node;
typedef struct Node *OrderList;
void CreatListTail(OrderList *L,int n);
bool ListEmpty(OrderList L);
void ClearList(OrderList *L);
bool GetElem(OrderList L... |
import 'package:aapkavaidya/minigamefiar/match_page.dart';
import 'package:aapkavaidya/minigamequizzler/quiz_game.dart';
import 'package:aapkavaidya/minigameminesweeper/minesweeper.dart';
import 'package:flutter/material.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:music_player/music_playe... |
package com.malliina.musicpimp.library
import java.nio.file.{Files, Path, Paths}
import com.malliina.file.FileUtilities
import com.malliina.musicpimp.library.Settings.log
import com.malliina.musicpimp.util.FileUtil
import play.api.Logger
import play.api.libs.json.Json
trait Settings {
val settingsFile = FileUtil.l... |
# Buildozer package definition for Erlang
# Architecture: x86
# Platform: CentOS 5.9
name "libogg"
version "1.3.1"
maintainer "Matthieu Vachon"
source do
from "http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz"
end
package "libogg" do
provides "libogg"
depends "libc.so.6"
includes "usr/local/lib... |
const Mongoose = require('mongoose')
class Database {
constructor(url = 'mongodb://localhost/wsap_tool') {
this.url = url
}
connect() {
return Mongoose.connect('mongodb://localhost:27017/wsap_tool').then(() => {
return Mongoose.model('OnlineRecord', Database.OnlineRecord)
})
}
static get On... |
package com.eaglesakura.util;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
public class DateUtil {
private static final SimpleDateFormat ISO8601 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
public static final int DAY_MILLI_SEC = 1000 * ... |
echo alphaBETA | tr '[a-z]' '[A-Z]' # => ALPHABETA
echo alphaBETA | tr '[A-Z]' '[a-z]' # => alphabeta
|
import 'package:flutter/material.dart';
// Foreign
import 'package:flushbar/flushbar.dart';
class CustomSnackBar {
CustomSnackBar(
String message, {
Color color = Colors.red,
}) {
_customBar = SimpleSnackBar.generateSnackBar(message, color: color);
}
Flushbar _customBar;
void show(BuildContext co... |
CREATE OR REPLACE FUNCTION public.artwork_last_tx(artwork_row artworks)
RETURNS timestamp with time zone
LANGUAGE sql
STABLE
AS $function$
SELECT max(transactions.created_at)
FROM transactions
WHERE transactions.artwork_id = artwork_row.id
$function$;
|
package com.goldknight;
import com.google.firebase.database.IgnoreExtraProperties;
@IgnoreExtraProperties
public class Customer {
public String addr_address;
public String addr_city;
public String id;
public Customer() {
}
public String getAddr_address() {
return addr... |
package practice.ej;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;
import static java.lang.System.currentTimeMillis;
/**
* Created by kedar on 5/9/17.
*/
public class Nightmare {
private static final class Notorious implements Comparable<Notorious>{
final int value;
... |
#!/bin/bash
set -euo pipefail
output="$(git -c color.status=always status --short)"
if [ -n "$output" ]; then
echo "== git status =="
echo -e "$output"
echo "================"
fi
git diff --color=always --exit-code
if [ -n "$output" ]; then
echo
echo -e "\e[31;1mThere are pending changes!\e[0m"
exit 1
... |
import { EventFilters } from '../../core/entities/Event'
import { SearchParamsKeyValue } from '../network/SearchParams'
import moment from 'moment'
export const GetEventsSearchParametersMapper = {
map: (filters: EventFilters | undefined): SearchParamsKeyValue => {
let searchParams: SearchParamsKeyValue = {}
... |
use crate::color::Colorable;
use crate::widget::palette::Msg::*;
use crate::widget::precise::Msg::Changed;
use crate::widget::radio::Msg::Change;
use crate::widget::Palette;
use crate::widget::PreciseScale;
use gtk::prelude::*;
type FormWidget = crate::widget::RadioGroup<redpitaya_scpi::generator::Form>;
#[derive(rel... |
<?php
namespace Urbem\CoreBundle\Repository\Patrimonio\Frota;
use Doctrine\ORM;
class VeiculoDocumentoRepository extends ORM\EntityRepository
{
public function getDocumentosLivres($params)
{
$subqb = $this->getEntityManager()->getRepository('CoreBundle:Frota\VeiculoDocumento')
->createQue... |
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Topic } from 'src/app/models/topic.model';
import { Record } from 'src/app/models/record.model';
import { DiaryService } from '../diary.service';
@Component({
selector: 'app-daily-records',
templat... |
namespace Merchello.Web.Discounts.Coupons
{
using System;
using System.Collections.Generic;
using System.Linq;
using Merchello.Core.Models;
using Merchello.Web.Models.ContentEditing;
using Newtonsoft.Json;
using Umbraco.Core.Logging;
/// <summary>
/// ExtendedDataCollection exte... |
# test site
## develop info
get start
```
gatsby develop
```
## gatsby info
use template : https://www.gatsbyjs.com/starters/cobidev/gatsby-simplefolio/
|
#!/bin/bash
../runner -n 8 -b 192 -e 5 --seed 0 --dllogger-log report.json
python check_curves.py curve_baselines/dgx1v16g_8gpu_fp16.json report.json --epochs 5
|
from django.db import models
from django.db.models.fields import DateTimeField
from django.utils.translation import gettext_lazy as _
class Challenge(models.Model):
"""Main challenge model"""
name = models.CharField(_("Name of Challenge"), max_length=100)
description = models.TextField(_("Challenge descr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.