text
stringlengths
27
775k
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Win32; namespace Gearset.Component { internal class RegistryValueStore : IValueStore { private string path; public RegistryValueStore(String key) : base(key) { ...
package farjs.filelist.stack import farjs.filelist.stack.PanelStack.StackItem import farjs.ui.{WithSize, WithSizeProps} import scommons.react._ import scommons.react.blessed.BlessedElement import scommons.react.hooks._ import scala.scalajs.js class PanelStack(top: Option[StackItem], updater: js.Func...
"use strict"; import dataForJs from "~/function/dataForJs"; import ParamEnum from "~/enum/ParamEnum"; import Routing from "~/module/Routing"; import Map from "~/module/leaflet/map"; import "~/module/leaflet/leaflet"; // noinspection ES6CheckImport import { PruneCluster, PruneClusterForLeaflet, } from "exports-...
class User < ActiveRecord::Base has_many :users_districts attr_accessor :token serialize :roles validates :name, presence: true, uniqueness: true before_save :hash_token def self.find_by_token(token) User.find_by(token_hash: Gibberish::SHA256(token)) end def generate_new_token self.token =...
@include('common/css', ['file' => 'confirmChangeCoach']) <?php $count = 0; ?> <div class="coach_all"> <div class="coach_signboardinfo"> <img src="{{IMG_URL}}signboard/info.png"> <div class ="coach_signboard_text"> <font class = "coach_font">{{'コーチを選んでください。'}}</font> </div> </div> <div class="coach_signboard...
export interface EncyclopediaShips { meta: Meta; data: { [shipID: number]: Data; }; } interface Meta { page_total: number; } interface Data { tier?: number; type?: string; name?: string; default_profile?: DefaultProfile; nation?: string; } interface DefaultProfile { concealment?: Concealment;...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class LoadNextScene : MonoBehaviour { private int _sceneToLoadIndex; [SerializeField] Animator _anim; void Start() { _sceneToLoadIndex = SceneManager.GetActiveScene().build...
package org.naver.models data class Faces( val info: Info, val faces: List<Face> ) data class Face( val roi: Roi, val landmark: Landmark, val gender: Gender, val age: Age, val emotion: Emotion, val pose: Pose ) data class Roi( val x: Int, val y: Int, val width: Int, va...
using UnityEngine; using UnityEditor; using System.Reflection; using static UnityEditor.EditorGUILayout; using hedCommon.extension.editor; namespace extUnityComponents { [CustomEditor(typeof(Animator))] public class AnimatorEditor : DecoratorComponentsEditor { private bool _isPlaying = true; ...
{-# LANGUAGE BlockArguments #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingVia #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE NoMonomorphismRestricti...
function Get-RsRestCacheRefreshPlanHistory { <# .SYNOPSIS This function fetches the history of CacheRefreshPlan(s) from a Power BI report. .DESCRIPTION This function fetches the history of CacheRefreshPlan(s) from a Power BI report. .PARAMETER RsReport S...
package cbt trait SnapshotVersion extends ArtifactInfo with DynamicOverrides{ def snapshot = newBuild[SnapshotVersion]{""" override def version = super.version ++ "-SNAPSHOT" """} }
package com.lightbend.lagom.sampleshello.impl; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.google.common.base.Preconditions; import com.lightbend.lagom.javadsl.persistence.AggregateEvent; import com.lightbend.lagom.javadsl.persistenc...
# Changelog ## v0.0.0 - Forked from original repository, and converted files to TypeScript
DROP SCHEMA bicoredata_008 CASCADE; CREATE SCHEMA bicoredata_008; SET CURRENT_SCHEMA = bicoredata_008; --FUNC_112.Result differs from CloudBU because the order outcome is different from HIVE CREATE FUNCTION GetLastValue(text, text) RETURNS text AS'com.huawei.udf.GetLastValue.evaluate' LANGUAGE java; SELECT GetLast...
#include "aluno.h" Aluno::Aluno() { } Aluno::~Aluno() { }
<?php namespace Urbem\RecursosHumanosBundle\Resources\config\Sonata\Pessoal; use Sonata\AdminBundle\Form\FormMapper; use Urbem\CoreBundle\Resources\config\Sonata\AbstractSonataAdmin; use Sonata\AdminBundle\Route\RouteCollection; class ContratoServidorConselhoAdmin extends AbstractSonataAdmin { protected $baseRou...
using System; using Machine.Specifications; using Machine.Specifications.Model; using Bank.Exceptions; namespace Bank.Tests { [Subject(typeof(DebitAccount))] public class Attempt_transferring_negative_amount_between_from_account_and_to_account { static DebitAccount fromAccount; static Debi...
package usr_storage.model import com.mohiva.play.silhouette.api.LoginInfo import io.getquill.Embedded case class LoginInfoDb( providerId: String, providerKey: String ) extends Embedded object LoginInfoDb { def apply(loginInfo: LoginInfo): LoginInfoDb = new LoginInfoDb(loginInfo.providerID, loginInfo.providerKe...
#!/bin/bash lk_bin_depth=1 . lk-bash-load.sh || exit lk_include mysql DB_NAME= DB_USER= DB_PASSWORD= DB_HOST=${LK_MYSQL_HOST:-localhost} ALL=0 EXCLUDE=0 DEST=$PWD DEST_GROUP= TIMESTAMP=${LK_BACKUP_TIMESTAMP-} NO_TIMESTAMP=0 DB_INCLUDE=() DB_EXCLUDE=(information_schema performance_schema sys) LK_USAGE="\ Usage: ${0#...
using System; using System.Collections.Generic; using System.Drawing; namespace Quixo.Framework { /// <summary> /// Represents a Quixo board. /// </summary> /// <remarks> /// The co-ordinates of the <see cref="Board"/> work as though the lower-left piece is at (0, 0) /// and the upper-right piece is at (<see cre...
@component('mail::message') # LawxBlog.com - dan Yeni Əlaqə var. {{ dd($request) }} Sizin mesajınız bizim üçün önəmlidir. Tezliklə sizinlə əlaqə saxlayacağıq. Son məqalələrimizdən xəbərdar olmaq üçün: @component('mail::button', ['url' => 'lawxblog.com']) Daxil olun @endcomponent Təşəkkürlər. Hörmətlə,<br> {{ config('...
// The MIT License (MIT) Copyright (c) 2011 Mojolly Ltd. package skinny.micro.rl import scala.language.postfixOps import scala.collection.SortedMap import Imports._ object QueryString { val DEFAULT_EXCLUSIONS = List( "utm_source", "utm_medium", "utm_term", "utm_content", "utm_campaign", "s...
describe "Symbol - constants" do describe "should work" do it 'should support `nsautoresizingmask`' do :none.nsautoresizingmask.should == NSViewNotSizable :flexible_left.nsautoresizingmask.should == NSViewMinXMargin :flexible_width.nsautoresizingmask.should == NSViewWidthSizable :flexibl...
package org.wiyi.ss.cipher; import org.junit.Assert; import org.junit.Test; import org.wiyi.ss.core.cipher.kdf.SSKDF; import java.util.Arrays; public class KDFTest { @Test public void testKDF() { String password = "Qi7IDbmERAAK0ckLlmJYOA=="; System.out.println(password.length()); b...
#pragma once namespace pf { // Utility class to represent a 2D vector class Vec2i { public: inline Vec2i(int x, int y) : x(x), y(y) {} inline Vec2i() = default; inline bool operator== (const Vec2i& v) const { return (x == v.x) && (y == v.y); } inline const Vec2i operator+ (const Vec2i& v) const { return V...
import os import glob ##################################################### ######Init the arff################################## ##################################################### os.remove("fwv.arff") file_ = open("fwv.arff", "a") file_.write("@RELATION sys_attack\n") for x in range(0,326): file_.write("@...
#!/usr/bin/env bash # defaults VERSION="3.2.3" SYSTEM="osx-x86_64" # directory BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $BINDIR cd ../ DIR=`pwd` wget https://fastdl.mongodb.org/osx/mongodb-$SYSTEM-$VERSION.tgz mv mongodb-$SYSTEM-$VERSION.tgz downloads/
-- @testpoint: join...on语句中的条件中含有数学表达式,查询成功 -- @modify at: 2020-11-13 --建表 drop table if exists all_datatype_table; create table all_datatype_table(id int not null,c_intger integer,c_char char(10)) PARTITION BY RANGE (c_intger) ( partition P_20180121 values less than (2018), partition P_20190122 values less than (2019)...
import { GetterTree } from 'vuex' import { ClaimsState, EntityId } from './types' import { RootState } from '@/store/types' import { wikidataUrl } from '@/api/wikidata' import { Claim, Snak } from '@/api/types' import { wikifyLink } from '@/api/sqid' function getStatementValue(claim: Claim) { if (claim.mainsnak.snak...
""" This script generates a word cloud from the article words. Uploads it to Imgur and returns back the url. """ import os import random import numpy as np import requests import wordcloud from PIL import Image import config MASK_FILE = "./assets/cloud.png" FONT_FILE = "./assets/sofiapro-light.otf" IMAGE_PATH = "./...
/* * Copyright (c) 2015, Kieron Wilkinson */ package org.softpres.donkeysql; import org.junit.Before; import org.junit.Test; import javax.sql.DataSource; import java.util.Arrays; import java.util.List; import java.util.stream.Stream; import static java.util.stream.Collectors.toList; import static org.assertj.core....
if RUBY_VERSION < '1.9' require 'test/unit' else require 'minitest/autorun' end require 'active_support/test_case' require 'sprockets' require 'steering/rails/template' require 'fileutils' Sprockets.register_engine ".handlebars", Steering::Rails::Template
require "dagjeweg/version" # Libraries require 'open-uri' require 'net/http' require 'json' # Files require "dagjeweg/version" require "dagjeweg/config" require "dagjeweg/engine" if defined?(Rails) && Rails::VERSION::MAJOR.to_i >= 3 require "dagjeweg/tip" require "dagjeweg/review" require "dagjeweg/dagjeweg_error" ...
#ifndef _LIST_H #define _LIST_H #include <stdbool.h> typedef struct ListStruct * List_t; /** * @brief Create List * * Create a new empty List object. * This must be matched with a Destroy() call. * * @return List_t New List object. Returns NULL on failure. */ List_t List_Create(void); /** * @brief Destroy...
#!/bin/bash apks="build/outputs/apk/app-debug-1.0.*.apk" function build { assembleType=$1 target=$2 ../gradlew --rerun-tasks clean $assembleType chmod 600 $apks cp $apks "`dirname $target`/`basename $target`/" } apks="build/outputs/apk/app-debug-1.0.*.apk" build assembleDebug $1 apks="build/outputs/apk/ap...
<?php namespace app\common; class UserCache implements CacheInterface { private $resurce = [ "username"=>"", //用户名 "token"=>"", //用户加密串 "SuperiorUser"=>"",//用户上级用户id "Subordinate"=>[],//用户下级列表 "RealName"=>"",//用户真实姓名 "InvitationCode"=>"", //用户唯一邀请码 "Commissio...
package blinky.v0 import blinky.v0.Mutator._ import blinky.v0.ReplaceType._ import scalafix.v1._ import scala.annotation.tailrec import scala.meta._ trait MutatorGroup { def groupName: String def getSubMutators: List[Mutator] abstract class SimpleMutator(simpleName: String) extends Mutator { override val...
##### google/apple/fb auth * https://github.com/MarlonBeloMarques/pokeapp?fbclid=IwAR3HG7dH4tkUwA6mjUhMXngQEVep1oJ-IelxzcnpN9k3yJatA5RfcNET7wI * https://www.facebook.com/marlon.belo.9/videos/369581761289364 ##### Food App * https://github.com/YGBReda/food_app_react_native?fbclid=IwAR3Ux--P8aF20GsajhDhThKDWZQAGpFWBT8KR...
package niki119.slit.items.axe; import net.minecraft.item.ItemAxe; import niki119.slit.SLiT; public class SandAxe extends ItemAxe { public SandAxe(ToolMaterial material){ super(material,1,1); setRegistryName("sand_axe"); setTranslationKey("sand_axe"); setCreativeTab(SLiT.creativeTabAxe); } }
from tests.unit.dataactcore.factories.staging import DetachedAwardFinancialAssistanceFactory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns _FILE = 'fabs40_detached_award_financial_assistance_2' def test_column_headers(database): expected_subset = {"row_number", "place_of_performan...
CREATE OR REPLACE FUNCTION copy_eu_suspensions_across_events( from_event_id INTEGER, to_event_id INTEGER ) RETURNS void LANGUAGE plpgsql AS $$ DECLARE to_event events%ROWTYPE; BEGIN SELECT INTO to_event * FROM events WHERE id = to_event_id; -- copy eu_suspensions INSERT INTO eu_decis...
package com.nstudiosappdev.stocker.injection.modules import androidx.lifecycle.ViewModelProvider import com.nstudiosappdev.core.presentation.viewmodel.VmFactory import com.nstudiosappdev.stocker.dashboard.presentation.CurrenciesViewModelModule import dagger.Binds import dagger.Module @Module( includes = [Currenci...
import { empty } from './empty'; export const CREATION_OPERATORS = [empty];
package com.xfhy.allinone.opensource.glide import com.bumptech.glide.load.Options import com.bumptech.glide.load.model.GlideUrl import com.bumptech.glide.load.model.ModelLoader import com.bumptech.glide.load.model.ModelLoaderFactory import com.bumptech.glide.load.model.MultiModelLoaderFactory import okhttp3.OkHttpClie...
<?php include_once __DIR__ . "/../app/config.php"; ?> <html> <head> <script src="js/createemployee.js" type="text/javascript"></script> <style> input[type=submit] { background-color: #4CAF50; color: white; padding: 14px 20px; margin: 8px 0...
class UncollectSubmissions < ApplicationJob def self.on_complete_js(_status) 'window.submissionTable.wrapped.fetchData' end def self.show_status(_status) I18n.t('poll_job.uncollect_submissions_job') end def perform(assignment) # TODO: implement this. end end
-- @testpoint:opengauss关键字password(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists password; create schema password; drop schema password; --关键字带双引号-成功 drop schema if exists "password"; create schema "password"; drop schema "password"; --关键字带单引号-合理报错 drop schema if exists 'password'; create schema 'password'; --关键字...
#pragma once #include <memory> #include <bitset> #include "emucore/common/types.h" #include "emucore/common/bitfield.h" namespace Core { class HLEComponent { }; } // namespace Core
"use strict"; let options = { manager: require("../../../../src/managers/manufacture/design-tracking-activity-manager"), model: require("bateeq-models").manufacture.DesignTrackingActivity, util: require("../../../data-util/manufacture/design-tracking-activity-data-util"), validator: require("bateeq-mod...
package ru.smityukh.joom2.ui.main import androidx.lifecycle.LiveData import androidx.lifecycle.ViewModel import androidx.paging.PagedList import ru.smityukh.joom2.data.GifInfo import ru.smityukh.joom2.data.GiphyStore import ru.smityukh.joom2.map import ru.smityukh.joom2.navigation.Navigation class MainViewModel(priva...
#!/bin/sh set -e # Perform all actions as $POSTGRES_USER export PGUSER="$POSTGRES_USER" # Create the 'template_postgis' template db "${psql[@]}" <<- 'EOSQL' CREATE DATABASE template_postgis; UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template_postgis'; EOSQL # Load PostGIS into both template_datab...
// using System.Runtime.CompilerServices; using Unity.Collections; using Unity.Entities; using Unity.Transforms; // using Unity.Mathematics; using Unity.Jobs; using Unity.Burst; using Unity.Collections.LowLevel.Unsafe; // using UnityEngine.Assertions; namespace UTJ { public struct LockTarget : IComponentData { pu...
<?php namespace ExtremeSa\Aramex\API\Classes; use ExtremeSa\Aramex\API\Interfaces\Normalize; /** * Volume is a complex element, consisting of two child elements (Unit and Value). * These apply to every element that is defined by the Data Type “Volume“. * * Class Volume * @package ExtremeSa\Aramex\API\Classes *...
package org.oso.core.entities enum class EmergencyPriority { HIGH, MEDIUM, LOW }
package com.example.base_bottom.baidu_dingwei.network import com.example.base_bottom.baidu_dingwei.model.AllBus import com.example.base_bottom.baidu_dingwei.model.BusRoute import retrofit2.Call import retrofit2.http.GET import retrofit2.http.Path interface GetBusData { // @GET("/home/home/getdata") fun ge...
package main import ( "fmt" "log" "net/http" "strconv" "github.com/gin-gonic/gin" jsoniter "github.com/json-iterator/go" ) // HostMachine host machine type HostMachine struct { Desc string `json:"desc"` OS string `json:"os"` ARCH string `json:"arch"` CPU int `json:"cpu"` Memory int64 `json:...
<!-- Keep a Changelog guide -> https://keepachangelog.com --> # FacilityOAuth-Mobile Changelog ## [Unreleased] ### Added ### Changed ### Deprecated ### Removed ### Fixed ### Security ## [0.0.2] ### Fixed - Attaching artifacts to GitHub releases ## [0.0.1] ### Added - Plaintext & HMAC-SHA1 OAuth1 authorization ...
* 递归形式,时间复杂度`O(n)`(`T(n) = T(n / 2) + 1`),空间复杂度`O(h)`(`h`为树高,平均为`log n`,最差为`n`) ```cpp class Solution { public: vector<int> inorderTraversal(TreeNode* root) { vector<int> res; dfs(root, res); return res; } void dfs(TreeNode* root, vector<int>& res) { if (!root) return; ...
import 'dart:async'; import 'dart:collection'; import 'dart:math'; import 'dart:typed_data'; import 'package:hive/hive.dart'; import 'package:hive/src/adapters/big_int_adapter.dart'; import 'package:hive/src/adapters/date_time_adapter.dart'; import 'package:hive/src/backend/storage_backend_memory.dart'; import 'packag...
using System; using System.Collections.Generic; namespace OSS.Common.BasicMos.Resp { /// <summary> /// 列表通行token接口 /// </summary> public interface ITokenList<TType> { /// <summary> /// 列表 /// </summary> IList<TType> data { get; } /// <summary> ///...
// eslint-disable-next-line @nrwl/nx/enforce-module-boundaries import { UserModel } from '../../../../../users/src/lib/shared/models/user.model'; export interface Contact { contactId: number; ownerUserId: string; ownerUser: UserModel; contactUserId: string; contactUser: UserModel; firstName: string; last...
# frozen_string_literal: true # Tag representations by user class TagInteractor include Interactor def call return all_recipes unless context.tag_id.present? context.tag = Graph::TagIndex.instance.fetch(context.tag_id) context.result = subjective_tag? ? subjective_api_response : objective_api_resonse...
package org.schhx.simplefactory; /** * Created by schhx on 2017/9/21. */ public class SimpleFactoryClient { public static void main(String[] args){ Sender sender = SenderFactory.getSender("email"); sender.send(); sender = SenderFactory.getSender("sms"); sender.send(); } }
/**************************************************************************** * * Copyright (c) 2018 PX4 Development Team. 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. Redistri...
/******************************************************************************* * jUnit Java Driver for the Zerocode-based Enrichment tests *******************************************************************************/ package tests; import org.jsmart.zerocode.core.domain.Scenario; import org.jsmart.zerocode.cor...
package services import java.time.{LocalDate, LocalDateTime, OffsetDateTime, ZoneOffset} import java.util.UUID import sangria.ast import sangria.marshalling.MarshallerCapability import sangria.schema.ScalarType import sangria.validation.ValueCoercionViolation import scala.util.{Failure, Success, Try} package object...
class Matrix def initialize(raw_grid) elements = raw_grid.split("\n") @grid = [] (0..elements.size - 1).each do |i| row = elements[i].split(' ').map(&:to_i) @grid.push(row) end @grid # @rows = values.split(/\n/).map { |line| line.split(' ').map(&:to_i) } # @columns = @rows.tran...
import 'package:citmatel_strawberry_tools/tools_exporter.dart'; import 'package:citmatel_strawberry_trivia/trivia_exporter.dart'; class TriviaLevelAnimales { static final TriviaLevelDomain levelAnimales = TriviaLevelDomain( id: 9, theme: ToolsThemesAssets.THEME_ANIMALES_NAME, themeBackgroundImage: ToolsT...
/* * Copyright (C) 2020 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package router import ( "fmt" "github.com/gorilla/mux" "github.com/intel-secl/intel-secl/v4/pkg/hvs/constants" "github.com/intel-secl/intel-secl/v4/pkg/hvs/controllers" "github.com/intel-secl/intel-secl/v4/pkg/hvs/postgres" "...
require 'pathname' module Kernel def chdir_to_root! Dir.chdir (Pathname(File.dirname(File.expand_path(__FILE__))) + '..') end end # vim: ts=2 sts=2 sw=2 # encoding: utf-8
namespace AnimalRescue.DataAccess.Mongodb.Configurations { internal class MongoDbSettings : IMongoDbSettings, IBucketSettings { public string ConnectionString { get; set; } public string DatabaseName { get; set; } public string BucketName { get; set; } } }
var express = require('express'); var bodyParser = require('body-parser') var router = express.Router(); var mongoose = require('mongoose'); var models = require('../models'); var url = require('url'); var parseForm = bodyParser.urlencoded({ extended: false }) router.get('/', function(req, res) { var url_parse = ur...
<?php namespace App\Support; use App\File; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Storage; /** * Trait FileHandler * * some methods to handle files on filesystem level */ trait FileHandler { /** * removes a file physically and in the databas...
<?php namespace App\Http\Controllers; use App\Http\Requests\StoreUserRequest; use App\Http\Requests\UpdateproductRequest; use App\Http\Requests\UpdateUserRequest; use App\Http\Resources\UserResource; use App\Models\User; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Has...
export const menuButtons = () => { return ` <button id="station-manager-button" data-index="0">1. 역 관리</button> <button id="line-manager-button" data-index="1">2. 노선 관리</button> <button id="section-manager-button" data-index="2">3. 구간 관리</button> <button id="map-print-manager-button" data-index="3"> ...
<?php namespace App\Http\Controllers\AdminControllers; use App\Http\Requests\PermissionsRequest; use Illuminate\Http\Request; use Auth; use App\Http\Controllers\Controller; use Spatie\Permission\Models\Permission; class PermissionsController extends Controller { public function index() { return view(...
/* ****************************************************************************** * Copyright 2018, Oath Inc. * Licensed under the terms of the Apache Version 2.0 license. * See LICENSE file in project root directory for terms. ****************************************************************************** */ ...
import { SET_POST, SET_POSTS, SET_POST_FORM_IS_OPENED, POST_ERROR, CREATE_POST, POST_NORMAL, POST_SUCCESS, } from '../constants/' import avatar from '../images/avatar.png' const INITIAL_STATE = { posts: [], post: {}, isOpened: false, isPost: false, postStatus: POST_NORMAL, } export default fu...
# frozen-string-literal: true # encoding: utf-8 require "commonmarker" require "jekyll" require "jekyll-commonmark" require "rouge" # A customized version of CommonMarker::HtmlRenderer which: # - outputs Kramdown-style header IDs. # - performs syntax highlighting in code blocks. class JekyllCommonMarkCustomRenderer <...
use std::fs::File; use std::io::{stdin, stdout}; use std::io::Write; use scrape::{Giveaway, Scraper}; use config::Config; use open; use Result; pub fn add_games(config: &mut Config, file: &mut File) -> Result<()> { let scraper = Scraper::new(); println!("Answer with 'n' to add to the blacklist, 'g' to google...
class ActiveRecord::Base # this method search the description field # if not exist the field this method need overlapped # on contoller def self.search(search) if search self.where("description like ?", "%#{search}%").order(updated_at: :desc) else self.all.order(updated_at: :desc) end ...
import { Body, Controller, Get, HttpCode, Param, Patch, Req, UseGuards, UsePipes, ValidationPipe, } from '@nestjs/common'; import { User } from 'src/shared/models/user.entity'; import { JwtAuthGuard } from '../auth/guards/jwt.guard'; import { UsersService } from './users.service'; @Controller('user...
fn main() { println!(r"cargo:rustc-link-search=native=C:/Users/sen/Documents/GitHub/alphagozero-rs/train/lib"); }
class Event < ApplicationRecord has_many :invitations has_many :stoats, through: :invitations attr_accessor :number_of_mobs, :participants end
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'race_session_live_comment_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _$_RaceSessionLiveCommentDto _$_$_RaceSessio...
! gl.f90 ! ! Example that shows how to render a triangle with OpenGL 1.3. ! ! Author: Philipp Engel ! GitHub: https://github.com/interkosmos/fortran-sdl2/ ! Licence: ISC program main use, intrinsic :: iso_c_binding use, intrinsic :: iso_fortran_env, only: stderr => error_unit, stdout => output_unit use ::...
@extends('layouts.marketcenter.marketcentertemplate') @section('content') <p>dffggdfg</p> @endsection
import 'package:flutter/material.dart'; import 'package:zoomable_image/zoomable_image.dart'; void main() { runApp( new MaterialApp( home: new Scaffold( body: new ZoomableImage( new AssetImage('images/squirrel.jpg'), placeholder: const Center(child: const CircularProgressIndi...
namespace Server.Models.Exam { public class StartExamModel { public int ExamAttemptId { get; set; } } }
using IronPython.Runtime; using IronPython.Hosting; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Scripting.Hosting; namespace Nomic { internal abstract class DlrEvaluationContext { public DlrEvaluationContext(Script...
const ICrud = require('../base/interfaceDb') const Mongoose = require('mongoose') const STATUS = { 0: 'Disconectado', 1: 'Conectado', 2: 'Conectando', 3: 'Disconectando', } class MongoDB extends ICrud { // 3o constructor(connection, schema) { super() // 4o this._connectio...
using Newtonsoft.Json; using System; using System.Collections.Generic; namespace VkApi.Wrapper.Objects { ///<summary> /// Timetable for a week ///</summary> public class GroupsAddressTimetable { ///<summary> /// Timetable for friday ///</summary> [JsonProperty("fri")...
# Weather Forecast ## Description Weather Forecast mobile application built with [React Native](https://reactnative.dev/). ## Installation ```bash npm install # or yarn ``` ### Setup .env file ```bash cp .env.example .env # open .env and insert the keys. ``` ## Running the app ### Running metro bundler ```bash...
This directory contains files that are used by the various examples, such as importing networks from saved files.
package com.cryptoeconomicslab.demo_payment_usecase.repository.payment import com.cryptoeconomicslab.plasma_android_sdk.httpClient.Address import com.cryptoeconomicslab.plasma_android_sdk.httpClient.entity.PaymentHistory import com.cryptoeconomicslab.plasma_android_sdk.httpClient.entity.Payment interface PaymentRepos...
package Business::EDI::CodeList::ReturnablePackageLoadContentsCode; use base 'Business::EDI::CodeList'; my $VERSION = 0.02; sub list_number {8393;} my $usage = 'B'; # 8393 Returnable package load contents code [B] # Desc: Code specifying the load contents for a returnable # package. # Rep...
; A small shell implemented in LLVM IR for 64-bit linux systems. ; -- external declarations %libc.File = type opaque declare %libc.File* @fdopen(i32, i8*) declare i64 @fclose(%libc.File*) declare dso_local void @puts(i8*) declare dso_local void @fputs(i8*, %libc.File*) declare dso_local void @fflush(%libc.File*)...
module SpreePrintInvoice module CartSerializerDecorator def self.prepended(base) base.has_many :bookkeeping_documents end end end Spree::V2::Storefront::CartSerializer.prepend(SpreePrintInvoice::CartSerializerDecorator)
using static TensorShader.VariableNode; namespace TensorShader { public partial class Field { /// <summary>TrivectorCast</summary> public static Field TrivectorCast(Field x, Field y, Field z) { Field v = new(); Link link = new Links.Trivector.TrivectorCast(x, y, z, v); ...