text
stringlengths
27
775k
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Mtrangchu extends MY_Model { public function __construct() { parent::__construct(); } function get_dmsanpham(){ return $this->db->get('tbl_danhmuc_sanpham')->result_array(); } function get_sanphamslide($limit, $offset){ $th...
@if($data['header'] == 'tak') <div class="text--center title--icon"> <img src="@asset("images/leaf.png")" alt="lasagne"> <h2 class="title title--section"> {{ $data['title'] }} </h2> @if($menu) <a class="button button--pdf" href="{{ $menu['url'] }}"> PDF </a> @endif </div> @endif
mod class; mod class_loader; mod class_member; mod class_ref; mod constant_pool; mod field; mod field_ref; mod member_ref; mod method; mod object; mod symbol_ref;
import 'package:byr_mobile_app/customizations/theme_controller.dart'; import 'package:byr_mobile_app/reusable_components/refreshers.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; import 'package:get/g...
package se.gigurra.renderer trait TextRenderer { def print(text: String, font: Font) def printLn(text: String, font: Font) def getTextWidth(text: String, font: Font): Float }
--- layout: post categories: [tech, life] title: The first post --- Just setup my blog using Jekyll and testing it with this first post. The initial theme is inspired by [Paul Chiusano's blog](https://pchiusano.github.io/). (Updated on 09/11/2018)
//! The memory caching implementation. use crate::{common::*, profiling::Timing}; // cache loader /// Image caching processor. #[derive(Debug)] pub struct MemoryCache { image_size: usize, image_channels: usize, device: Device, cache: flurry::HashMap<String, CacheEntry>, } #[derive(Debug)] struct Cac...
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'creating a draft DOI', :datacite_api, :js do let(:model_class) do Class.new(GenericWork) do include Hyrax::DOI::DOIBehavior include Hyrax::DOI::DataCiteDOIBehavior end end let(:form_class) do Class.new(Hyrax::GenericWork...
package io.arkstud.wordbox_roberto.network.person.model import java.io.Serializable data class GetPersonsResponse ( var results: List<PersonResponse>, var info: Info ) data class Info ( var seed: String, var results: Int, var page: Int, var version: String ) data class PersonResponse ( v...
export * from './lib/datasets'; export * from './lib/detailed-dataset'; export * from './lib/select-dataset';
import torch from torch.autograd import Variable import utils import dataset from PIL import Image import models.crnn as crnn model_path = './expr/netCRNN_99_100.pth' img_path = '../text2font/imgs/x14y24pxHeadUpDaisy_2.png' #alphabet = '0123456789abcdefghijklmnopqrstuvwxyz' with open('alphabets.txt', 'r', encoding='...
USE SnakesAndLadder; drop procedure if exists ProvidingAdminAccess; DELIMITER // Create procedure ProvidingAdminAccess (pUsername varchar(50)) begin declare countExistedUsername int; START TRANSACTION; select count(Username) from Account where Username = pUsername into countExistedUsername; if countExisted...
--- id: 9d7123c8c441eeafaeb5bdef title: Remove Elements from an Array Using slice Instead of splice challengeType: 1 forumTopicId: 301236 localeTitle: 使用 slice 而不是 splice 从数组中移除元素 --- ## Description <section id='description'> 使用数组时经常遇到要删除一些元素并保留数组剩余部分的情况。为此,JavaScript 提供了<code>splice</code>方法,它接收两个参数:从哪里开始删除项目的索引,和要删除...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Category extends CI_Controller { function __construct() { parent::__construct(); //Load Dependencies $this->load->library(array('template', 'form_validation')); $this->load->model('admin'); } public function index() { $this->c...
using Clide; using System; using System.Linq; using System.Collections.Generic; namespace NuGet.Packaging.VisualStudio { class MoveProjectItemsToProjectVisitor : ISolutionVisitor { readonly Stack<ISolutionExplorerNode> stack; readonly List<ISolutionExplorerNode> nodesToBeDeleted; readonly Func<IProjectItemNod...
class Import < ApplicationRecord belongs_to :medium belongs_to :teachable, polymorphic: true validates :medium, uniqueness: { scope: [:teachable] } end
namespace Buildron.Domain.Users { /// <summary> /// Arguments for user updated events. /// </summary> public class UserUpdatedEventArgs : UserEventArgsBase { #region Constructors /// <summary> /// Initializes a new instance of the <see cref="Buildron.Domain.Users.UserUpdatedEventArgs"...
class SellCupcakeJob < ApplicationJob queue_as :default def perform(cupcakes = []) json_api_opts = {} json_api_opts[is_collection: true] json_api_opts[:meta] = {total: cupcakes.length } serializer = CupcakeSerializer.new(cupcakes, json_api_opts) message = serializer.serialized_json Activ...
# == Schema Information # # Table name: attendings # # id :integer not null, primary key # course_id :integer # user_id :integer # created_at :datetime # updated_at :datetime # last_visit :datetime # role :integer default("0") # class Attending < ActiveRecord::Base enum rol...
# Protected Planet Monthly WDPA Release Import The new Protected Planet website is designed to make importing and displaying the WDPA monthly releases as easy and fast as possible. ## What you have to do The import process is detailed [here](https://github.com/unepwcmc/wiki/wiki/WDPA-Release)
/* eslint-disable */ import { testExamples, render, waitFor, fireEvent, act } from '@test/utils'; import React, { useState } from 'react'; import { Select } from 'tdesign-react'; const { Option, OptionGroup } = Select; // 测试组件代码 Example 快照 testExamples(__dirname); describe('Select 组件测试', () => { const selectSelec...
export const SYMBOLS = { r_init_vm: { parameters: [], result: "void", }, r_release_vm: { parameters: [], result: "void", }, r_load: { parameters: ["pointer"], result: "void", }, r_call: { parameters: ["pointer", "pointer"], result: "void", }, r_c: { parameters: ["i3...
package com.ims.coursedetails; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; @Data @Entity @Table(name = "coursedescri...
import "bootstrap/dist/css/bootstrap.css"; import notification from "./components/notification.vue"; import "./pusher.min.js" var app = new Vue({ el: "#app", components: { "notification": notification, }, data:{ "broadcast": null }, template:'{{ broadcast }}' }) Pusher.logToConsole = true; var pusher = ...
use strict; use warnings; use Digest::MD5 qw(md5_hex); sub IsOpen { my $char = shift; return 1 if ($char eq 'b' or $char eq 'c' or $char eq 'd' or $char eq 'e' or $char eq 'f'); return 0; } my $inputfile = shift; if (!defined($inputfile)) { $inputfile = 'sample1.txt'; } open(my $fh, '<', $inputfile) or die "...
// deno run --allow-all scrape.ts <UqZBpD3n> <jlinksessionidx> <quarter> import { join as joinPath } from 'https://deno.land/std@0.125.0/path/mod.ts' import { ExamCodes, InstructionCodes } from './meeting-types.ts' import { Period, Time } from './util/time.ts' export type RawSearchLoadSubjectResult = { LONG_DESC: s...
<?php use Validator\Collection; it('can add array using __construct', function () { $collection = new Collection(['key' => 'value']); expect($collection)->key->toEqual('value'); }); it('can add array using make', function () { expect(Collection::make(['key' => 'value']))->key->toEqual('value'); }); it(...
import { ErrorReponse } from "./models"; export class APIError extends Error { constructor(private _res: Response, private _body?: ErrorReponse) { super(_body?.error ?? "unknown"); } get response() { return this._res; } get status() { return this._res.status; } get code() { return this...
# start_dev.sh export FLASK_APP=wsgi.py export FLASK_DEBUG=1 export FLASK_ENV=development flask run --host='0.0.0.0'
package com.example; public class App { private final String message; public App() { this.message = "Hello World!"; } public String getMessage() { for(int i = 0; i < 10; i++) { System.out.println(""); } return this.message; } public static void mai...
#!/bin/bash if [ -z $1 ]; then echo 'Input named volume' exit 0 fi docker volume ls -q | grep -x $1 if [ $? -ne 0 ]; then echo -e "\033[00;31m ERROR! Volume $1 not found \033[0m" echo "List of docker volumes: " docker volume ls -q | grep $1i exot 0 fi # exit 0 VOLUME_NAME=$1 CURRENT_DATETIME=$(dat...
// Copyright (c) 2018-present, GM Cruise LLC // // This source code is licensed under the Apache License, Version 2.0, // found in the LICENSE file in the root directory of this source tree. // You may not use this file except in compliance with the License. import { useAnimationFrame } from "@cruise-automation/ho...
import os import jax import jax.numpy as jnp from jax import jit import haiku as hk import optax import jmp import time from funlib.learn.jax.models import UNet, ConvPass from typing import Tuple, Any, NamedTuple, Dict '''To test model with some dummy input and output, run with command `CUDA_VISIBLE_DEVICES=0 ...
# frozen_string_literal: true module JSONFactory class JSONBuilder BUILDER_VARIABLE_NAME = :json TOKEN_LEFT_SQUARE_BRACKET = '[' TOKEN_RIGHT_SQUARE_BRACKET = ']' TOKEN_LEFT_CURLY_BRACKET = '{' TOKEN_RIGHT_CURLY_BRACKET = '}' TOKEN_COLON = ':' TOKEN_COMMA = ',' def initialize(io, typ...
FactoryBot.define do factory :expense do amount { Faker::Commerce.price } date { Faker::Date.backward(14) } description { Faker::Lorem.words(rand(2..10)).join(' ') } currency { 'HRK' } expense_category user end end
package io.flutter.plugins.batteryexample import dev.flutter.plugins.e2e.E2EPlugin import io.flutter.app.FlutterActivity import io.flutter.plugins.battery.BatteryPlugin class EmbeddingV1Activity : FlutterActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) ...
import { EntityRepository, Repository } from 'typeorm'; import { City } from '../entity/city.entity'; @EntityRepository(City) export class CityRepository extends Repository<City> { async list(){ return this.createQueryBuilder("city") .getMany() } }
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Payement extends Model { protected $table = 'payements'; public $timestamps = false; protected $fillable = array('montant', 'encaisseMois', 'numCheque','adherent_id','moyensPayement_id'); public function moyensPayement() { ...
# frozen_string_literal: true module Resolvers class AdminDailyStatisticConnectionResolver < AdminBaseResolver argument :start_date, String, required: false argument :end_date, String, required: false argument :after, String, required: false type Types::DailyStatisticType.connection_type, null: fals...
[section .text] global _start: _start: mov ah ,0fh mov al ,'K' mov [gs:((80*1+40)*2)] ,ax jmp $
package io.kblog.service.impl import io.kblog.domain.Base import io.kblog.domain.Role import io.kblog.domain.User import io.kblog.repository.RoleDao import io.kblog.service.RoleService import org.apache.commons.lang3.StringUtils import org.springframework.beans.factory.annotation.Autowired import org.springframework.s...
import React from 'react' import { ChakraProvider, theme, Button } from '@chakra-ui/react' import { render, screen, act, fireEvent, waitFor } from '@testing-library/react' import Navbar from './' describe('Navbar', () => { it('Renders initial and expands', async () => { render( <ChakraProvider theme={theme...
# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
#!/usr/bin/env bash # # Create application bundles for Windows systems. # Copyright 2015-2021 OpenIndex.de # # 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/L...
""" A standalone partial implementation of sbt https://www.solutionsbytext.com/api-support/api-documentation/ """ from .resources import RequireVBT, RequestVBT, Carrier, SendTemplateMessage, GetMessageStatus __all__ = [ 'RequireVBT', 'SendTemplateMessage', 'Carrier', 'GetMessageStatus', 'RequestVBT' ] __version...
package com.shijc.wanandroidkotlin.ui.account import android.support.v7.app.AppCompatActivity import android.os.Bundle import com.shijc.wanandroidkotlin.R import com.shijc.wanandroidkotlin.common.mvp.BaseActivity class RegisterActivity : BaseActivity() { override fun onCreate(savedInstanceState: Bundle?) { ...
#!/usr/bin/env bash set -e echo "$TRAVIS_JOB has been received" if [[ $TRAVIS_JOB = "docker" ]]; then echo "Docker connection Checks" curl --fail ${BIOBLEND_GALAXY_URL}/api/version date > $HOME/date.txt && curl --fail -T $HOME/date.txt ftp://localhost:21 --user $GALAXY_USER:$GALAXY_USER_PASSWD sudo -E ...
#!/bin/bash ## ## Jenkins 部署脚本 ## ## Started on 2019/10/28 Leo <xinlichao2016@gmail.com> ## Last update 2019/10/28 Leo <xinlichao2016@gmail.com> ## set -e version="1.0.0" # Colours red="\033[91m" green="\033[92m" yellow="\033[93m" magenta="\033[95m" cyan="\033[96m" none="\033[0m" # 项目ID project_id="" # 环境:developm...
var MongoClient = require('mongodb').MongoClient , assert = require('assert'); // Connection URL var url = 'mongodb://localhost:27017/test'; var insertDocs, findDocs, updateDocs, removeDocs, indexCollection, createCapped, closeDb, createValidated; insertDocs = function(db, callback){ var collection = db.collecti...
package pw.vhome.ticketsystem.controller; import pw.vhome.ticketsystem.data.InquiryProducer; import pw.vhome.ticketsystem.data.UserProducer; import pw.vhome.ticketsystem.model.Inquiry; import pw.vhome.ticketsystem.model.User; import pw.vhome.ticketsystem.util.Events; import javax.enterprise.context.SessionScoped; imp...
include("./imports.jl") using ReTest FluxTraining.runtests() module FluxTrainingTests include("./imports.jl") include("./metrics.jl") include("./protected.jl") include("./training.jl") include("./callbacks/stoponnanloss.jl") include("./callbacks/conditional.jl") include("./callbacks/logging.jl") include("./callbac...
// ----------------------------------------------------------------------- // <copyright file="IReceiverContext.cs" company="Asynkron AB"> // Copyright (C) 2015-2022 Asynkron AB All rights reserved // </copyright> // ----------------------------------------------------------------------- // ReSharper disable onc...
import java.util.* plugins { `maven-publish` id("com.jfrog.bintray") version Constants.BuildLibVersions.bintray kotlin("multiplatform") version Constants.BuildLibVersions.kotlin } group = "de.nidomiro" version = "0.3.0" repositories { mavenCentral() jcenter() } @Suppress("UNUSED_VARIABLE") kotli...
#include <iostream> #include <functional> #include <vector> #include <queue> #include <tuple> using namespace std; #define MAX 102 const int dx[4] = {0, 1, 0, -1}; const int dy[4] = {1, 0, -1, 0}; const int INF = 1e9+7; typedef tuple<int, int, int> ti; int n, m; int map[MAX][MAX], height[MAX][MAX]; bool visit[MAX][MAX...
package yafmi import scalaz.{Monad, ~>} sealed trait Arrow[A, F[_], B] { final def thenArrow[C](arrow: Arrow[B, F, C]): Arrow[A, F, C] = Arrow.Sequence(this, arrow) protected def prepared: Arrow[A, F, B] def run(fa: F[A])(implicit F: Monad[F]): F[B] def transform[G[_]](nt: F ~> G): Arrow[A, G, B] } object...
# == Schema Information # # Table name: tool_members # # tool_type :string # tool_id :integer # role :integer # user_id :integer not null # invited_at :datetime # reminded_at :datetime # created_at :datetime not null # updated_at :datetime not null # response_id :in...
const AbstractClubRepository = require('../abstractClubRepository'); const AbstractClubRepositoryError = require('../error/abstractClubRepositoryError'); test('No se puede instanciar un repositorio abstracto', () => { let repoInstance; try { repoInstance = new AbstractClubRepository(); } catch (e) { expe...
package com.kotato.context.ecommerce.modules.order.domain.view import com.kotato.context.ecommerce.modules.cart.domain.CartId import com.kotato.context.ecommerce.modules.order.domain.OrderId import com.kotato.context.ecommerce.modules.payment.domain.PaymentId interface OrderViewRepository { fun save(view: OrderV...
using ERPXTpl.Enum; using System.Collections.Generic; namespace ERPXTpl.Model { public interface IInvoice { long Id { get; set; } string OSSProcedureCountryCode { get; set; } bool IsOSSProcedure { get; set; } long? PurchasingPartyId { get; set; } long? ReceivingPartyId ...
using System; namespace DaisyFx.Events.Source { public class SourceExceptionEvent : IDaisyEventAsync { public SourceExceptionEvent(string chainName, string sourceName, int sourceIndex, Guid sourceExecutionId, Exception exception) { Cha...
fun main() { val input = generateSequence(::readLine){readLine()}.joinToString("") val lines = input.split("\n") val count = lines.count() println("$count lines") val day24 = Day24(lines) val result1 = day24.solvePart1() println("Result #1 is $result1") val result2 = day24.solvePart2(1...
--- title: xlWindowView enumeration (Excel) ms.prod: excel api_name: - Excel.XlWindowView ms.assetid: b60b88f9-af0b-e06e-d4dc-8524e3118e4c ms.date: 06/08/2017 --- # xlWindowView enumeration (Excel) Specifies the view showing in the window. |Name|Value|Description| |:-----|:-----|:-----| | **xlNormalView**|1|Norma...
DROP TABLE DASHBOARD_RESOURCE; CREATE TABLE IF NOT EXISTS DASHBOARD_RESOURCE ( ID INTEGER NOT NULL AUTO_INCREMENT, URL VARCHAR(100) NOT NULL, OWNER VARCHAR(100) NOT NULL, NAME VARCHAR(256) NOT NULL, DESCRIPTION VARCHAR(1000), PARENT_ID ...
#pragma warning disable CS1591 using Newtonsoft.Json; namespace Discord.API.Rest { [JsonObject(MemberSerialization = MemberSerialization.OptIn)] internal class DeleteMessagesParams { [JsonProperty("messages")] public ulong[] MessageIds { get; } public DeleteMessagesPara...
URLs, Schemes, and Resources ============================ 这是最重要的 Redox 选择设计选择之一。这三个基本概念都非常纠结。 “一切都在一个URL”是什么意思? -------------------------------------- “一切都是一个URL” 是 “一切是一个文件”的推广,允许更广泛地使用这种统一的界面方。 这些可用于在 “non-patchworky" 方式有效调节系统。 这个词是相当具误导性,因为 URLs 是方案和资源描述的仅仅是标识。因此,在这个意义上说“一切都是 Schemes,以 URLs 标识”更准确,但也不是很吸引人的。 那...
# podstawy_cybernetyki Pliki powstałe podczas zajęć z Podstaw Cybernetyki w Politechnice Gdańskiej. Files created during basics of cybernetics lessons on Universitet of Technology in Gdansk.
require 'spec_helper' require 'ostruct' describe User do let(:user) { create :user } it { should have_many(:pull_requests) } it { should have_many(:skills) } it { should accept_nested_attributes_for(:skills) } describe 'callbacks' do describe 'before_save' do describe '.check_email_changed' do ...
@using DD4T.Mvc.Html; @model DD4T.ContentModel.Page <h2>Home</h2> Page title: @Model.Title<br /> Page id: @Model.Id<br /> Page version: @Model.Version<br /> View name: @Model.PageTemplate.MetadataFields["view"].Value<br /> Staging Url: @Model.MetadataFields["StagingUrl"].Value<br /> <div style="b...
$(function() { var SERVER_URL = null; var video_active = false; var demo_running = false; var NUM_TO_SHOW = 20; var IMAGE_DISPLAY_WIDTH = 800; var BOX_LINE_WIDTH = 6; var FONT_SIZE = 48; var TEXT_BOX_PAD = 5; var PAD = 10; // A nice set of colors var WAD_COLORS = [ "rgb(173, 35, 35)", //...
<?php use siav\Lib\Database; use siav\Lib\FrontController; use siav\Lib\AbstractModel; use siav\Models\OptionsModel; ob_start(); /** * Database setup * Configuration de la base de données */ define('DB_HOST', '127.0.0.1'); define('DB_NAME', 'blogy-mvc'); define('DB_USER', 'user'); define('DB_PASSWORD', 'pass'); ...
/** * @param {number[][]} buildings * @return {number[][]} */ function getSkyline(buildings) { function getSections(buildings) { let pointSet = new Set(); buildings.forEach((building) => { pointSet.add(building[0]); pointSet.add(building[1]); }); let pointArray = []; pointSet.forEac...
import io.ktor.application.ApplicationCallPipeline import io.ktor.application.call import io.ktor.http.content.defaultResource import io.ktor.http.content.resources import io.ktor.http.content.static import io.ktor.http.content.staticBasePackage import io.ktor.request.path import io.ktor.response.respondRedirect import...
<?php $conecta = mysqli_connect("localhost", "root","" ,"Unip"); mysqli_set_charset($conecta,"utf8"); if( mysqli_connect_errno() ){ die("falha na conexão: " . mysqli_connect_errno()); } ?>
using System; using System.Collections.Generic; using System.Text; namespace Buildersoft.Andy.X.Storage.Data.Model.Enums { public enum DataStorageStatus { // TODO... Kqyre me mire qete pjese, mendoj statuset me ndryshe pasi qe jane server. Active = 1, Inactive= 2, Blocked=3 ...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ppapi/shared_impl/audio_impl.h" #include "base/logging.h" namespace pp { namespace shared_impl { AudioImpl::AudioImpl() : playing_(fa...
-------------------- -- Select -------------------- -- SELECT * FROM aluno; -- SELECT * FROM professor; -- SELECT cpf, materia FROM professor; --------------- -- Operadores --------------- -- SELECT * FROM aluno WHERE matricula = 1; -- SELECT * FROM aluno WHERE nome like "j%"; -- SELECT * FR...
import React, { useState, useRef, useEffect } from 'react'; import { Card, config as defaultConfig } from 'ygo-card'; import { Card as CardInterface } from '@/utils/interface'; import { getCardData, getCardImageUrl } from '@/utils/api'; import './style.less'; interface cardBoxProps { data?: object; id?: string; ...
#!/usr/bin/env bash OPENBLAS="$(brew --prefix openblas)" pip install numpy
import React, { ComponentType, FC } from 'react'; import { css } from '@emotion/core'; import { Link } from 'react-router-dom'; import { ListItem, ListItemText, ListItemIcon, Theme } from '@material-ui/core'; interface Props { onClick?: () => void; path?: string; Icon: ComponentType; className?: string; name...
import React, { Component } from 'react'; import propTypes from 'prop-types'; import { Icon, Card, Row, Col, Modal } from 'antd'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actions from '../../ducks/admin'; import NotFound from '../../components/NotFound'; import Ba...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class AdminLogController extends Controller { public function index() { $logs = DB::table('logs') ->select('*') ->orderBy('created_at','desc') ->paginate(6); return view(...
import 'package:json_annotation/json_annotation.dart'; import 'package:financialinvest/network/model/request/actions.dart'; import 'package:financialinvest/network/model/base_request.dart'; part 'accounts_balances_request.g.dart'; @JsonSerializable() class AccountsBalancesRequest extends BaseRequest { @JsonKey(name...
package it.polimi.genomics.compiler import scala.util.parsing.input.Positional /** * Created by pietro on 12/09/15. */ case class ParsedOperatorToken(operator_type : String) extends Positional{ }
package org.testmonkeys.maui.core.browser.popups; import org.openqa.selenium.Alert; /** * JsAlert is the representation of a simple Alert box */ public class JsAlert { protected Alert alert; public JsAlert(Alert alert) { this.alert = alert; } /** * Gets the text displayed in the pop-u...
<?php namespace Tests\PHPCensor\Helper; use PHPCensor\Helper\BuildInterpolator; class BuildInterpolatorTest extends \PHPUnit\Framework\TestCase { /** * @var BuildInterpolator */ protected $testedInterpolator; protected function setUp() { parent::setup(); $this->testedInterp...
# 播客软件 首先,你需要一个播客客户端。如果是苹果手机,随系统安装的 Podcasts 已经很好用了。 ![img](images/Podcasts_App.jpg) 如果是 Android 手机,在「[全平台播客订阅及收听指南](https://sspai.com/post/57960)」里找个合适的。 登录 [Podcast Maker](https://pcmaker.club/) 首页,每个频道都有 RSS 按钮,点击,RSS 地址即拷贝到操作系统剪贴板。 ![image-20210921222945574](images/image-20210921222945574.png) 下一步,选择自己喜欢的播客软件...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Customer extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('Customers'); } public function index($permission) { $data['list'] = $this->Customers->Customers_List(); $d...
# frozen_string_literal: true class NoMatchForm include ActiveModel::Model attr_accessor :try_again validates :try_again, inclusion: { in: %w[true false] } def try_again? ActiveModel::Type::Boolean.new.cast(try_again) end end
#pragma once #include <bits/stdc++.h> #include "../dynamictrees/LinkCutTree.h" using namespace std; // Support offline queries on connected components, after edges have been // added or removed, using a Link Cut Tree // Constructor Arguments: // V: the number of vertices in the graph // Fields: // ans: a vector ...
package mouse import ( "time" "github.com/oakmound/oak/v2/physics" "github.com/oakmound/shiny/gesture" ) // A GestureEvent is a conversion of a shiny Gesture to our local type so we // don't need to import shiny variables in more places. // GestureEvents contain information about mouse events that are not single ...
package com.applicaster.quickline.auth import com.applicaster.storage.LocalStorage import com.google.gson.Gson // todo: move to SDK fun LocalStorage.removeItem( key: String, namespace: String? = null ) { when { namespace.isNullOrEmpty() -> remove(key) else -> remove(key, namespace) } ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Models\Education; use App\Models\Subject; class Candidate extends Model { use HasFactory; protected $table = 'candidates'; public function education() { return $t...
--- templateKey: portfolio-post title: "JoyCus: An Illustration System" date: 2017-05-01T14:04:10.000Z description: >- This illustration system is a way to enrich a Loycus's visual language and say more nuanced things that a logo, color scheme, typeface, or even words cannot convey alone. company: Loycus location...
using UnityEngine; using Zenject; namespace Zenject.Tests.Factories.BindFactoryOne { //[CreateAssetMenu(fileName = "Bar", menuName = "Installers/Bar")] public class Bar : ScriptableObject { [Inject] public void Init(string value) { Value = value; } publi...
import path from 'path'; import EventEmitter from 'core/EventEmitter'; import RenderProcess from 'video/RenderProcess'; import AudioProcess from 'video/AudioProcess'; import MergeProcess from 'video/MergeProcess'; import { api, logger } from 'view/global'; import { uniqueId } from 'utils/crypto'; export default class ...
class Jaf::Deserializer attr_reader :document def initialize(document) @document = document.permit!.to_h.deep_transform_keys { |key| key.to_s.underscore.to_sym } end def deserialize ActionController::Parameters.new(attributes.merge(relationships || {})) end def data document[:data] end d...
package com.jwplayer.jwplatform.rest; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyMap; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.when; import static org.powermock.api.mockito.PowerMockito.mockStatic; import java.util.HashM...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: Frank Dellaert, et al. (see THANKS for the full author list) * See LICENSE for the license information * ----...
var searchData= [ ['swarm_5fserver_2eh',['swarm_server.h',['../swarm__server_8h.html',1,'']]] ];
using Box2D.XNA; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Microsoft.Xna.Framework { public static class Vector2Extensions { public static Vector2 Rotate(this Vector2 vec, float angle) { var temp = (DVector2)vec; ...