text
stringlengths
27
775k
using CommandLine; namespace Arcestio.Core { public class CommandLineOptions { [Option( shortName: 'd', longName: "DatabaseProvider", Required = true, HelpText = "SQL database provider")] public string DatabaseProvider { get; set; } [Option( shortName: 'c', longName: "ConnectionString"...
package lint import ( _ "fmt" ) const vet_Err = "constant present to trigger error"
using System; using UnityEngine; public class Dispenser : MonoBehaviour { public GameObject[] breadcrumbs; public Transform parent = null; public Transform spawnPoint = null; public void Dispense(int selectedBreadcrumb) { Instantiate(breadcrumbs[selectedBreadcrumb], spawnPoint.position, s...
using System; namespace Andtech.MicroDatabase { /// <summary> /// Indicates that the type can be indexed by GUID. /// </summary> public interface IGuidIndexable { /// <summary> /// The GUID associated with the instance. /// </summary> Guid Guid { get; } } }
package repository.iplay.account; import io.ebean.Ebean; import io.ebean.EbeanServer; import io.ebean.SqlUpdate; import io.ebean.Transaction; import models.iplay.account.Endpoint; import play.db.ebean.EbeanConfig; import repository.DatabaseExecutionContext; import javax.inject.Inject; import java.util.List; import ja...
@extends('app') @section('header') <h1>This is contact header</h1> @stop
package amora import org.junit.ComparisonFailure object TestUtils { final implicit class Assert_===[A](private val actual: A) extends AnyVal { def ===(expected: A): Unit = { if (actual != expected) { (actual, expected) match { case (actual: Seq[_], expected: Seq[_]) ⇒ val as...
type DashboardFetch = 'Instance' | 'ChildrenIfNotInstance' | 'Children' | 'NamedDashboard'; export interface SimpleOptions { dashboardFetch: DashboardFetch; maxChildren: number; namedDashboardName: string; } export interface QualifiedName { namespaceUrl: string; name: string; } export interface OpcUaNod...
# A Game of Life A React-driven app that creates [Conway's cellular automaton](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) based on an initial state. A FreeCodeCamp project. ##Change Log ### Jan. 18, 2016 * Initiated * Coded bare markup and React components ### Jan. 19, 2016 * Finished most markup...
DryAdmin::Engine.routes.draw do root 'dashboards#index' get ':model' => 'resources#index' post ':model' => 'resources#create' get ':model/new' => 'resources#new' get ':model/:id/edit' => 'resources#edit' get ':model/:id' => 'resources#show' patch ':model/:id' => 'resources#update' put ':model/...
require 'statsby' require 'shared/a_client' RSpec.describe Statsby::Client do let(:test_io) { StringIO.new } let(:default_client) { Statsby::Client.new(metrics_writer: test_io) } let(:tagless_client) { Statsby::Client.new(tags_enabled: false) } let(:tagged_client) do Statsby::Client.new(tags: { 'key' => 'va...
library sembast_test.codec_test; import 'package:sembast/timestamp.dart'; import 'package:sembast_test/base64_codec.dart'; import 'test_common.dart'; void main() { defineTests(memoryDatabaseContext); } void defineTests(DatabaseTestContext ctx) { var factory = ctx.factory; group('codec', () { test('export'...
import { ChangeDetectorRef, Component } from '@angular/core'; import { DialogRef } from '@ngneat/dialog'; import { map, take, tap } from 'rxjs/operators'; import { UserQuery } from '~front/app/queries/user.query'; import { ApiService } from '~front/app/services/api.service'; import { UserStore } from '~front/app/stores...
--- layout: post title: "Java Generic 学习小记3" description: "Java Generic" category: articles tags: [java] comments: true --- Python学习趣事 #### reduce对单个item的list操作 ``` l=map(int,'123.4'[4:3:-1]) >>> l [4] >>> m=reduce(lambda x,y: 0.1*x+y,l) >>> m 4 ``` 可以看到,在lambda中的x实际是一个初始值,而y才是取出list中的各个值。
require 'spec_helper' describe RuboCop::Cop::Betterment::AllowlistBlocklist, :config do it 'rejects a method that should use allowlist' do inspect_source(<<-DEF) class MyClass def whitelist; end end DEF expect(cop.offenses.size).to eq(1) expect(cop.offenses.map(&:line)).to eq([1]...
#!/bin/sh #for HOST in $(ls -1d /sys/class/fc_host/*); do echo "1" > ${HOST}/issue_lip; done for HOST in $(ls -1d /sys/class/scsi_host/*); do echo "- - -" > ${HOST}/scan ; done multipath > /dev/null #dmsetup remove_all /etc/init.d/multipath-tools reload
# Copyright 2007 Matthew Elder <sseses@gmail.com> # based on work by Tobias Luetke require 'capistrano/recipes/deploy/scm/base' module Capistrano module Deploy module SCM # Implements the Capistrano SCM interface for the Mercurial revision # control system (http://www.selenic.com/mercurial/). ...
require 'spec_helper' require 'bosh/dev/vsphere/micro_bosh_deployment_manifest' require 'psych' module Bosh::Dev::VSphere describe MicroBoshDeploymentManifest do subject { described_class.new(env) } let(:env) { {} } it 'is writable' do expect(subject).to be_a(Bosh::Dev::WritableManifest) end ...
package io.vertx.example.web.auth; import io.vertx.core.AbstractVerticle; import io.vertx.core.json.JsonObject; import io.vertx.example.util.Runner; import io.vertx.ext.auth.AuthProvider; import io.vertx.ext.auth.shiro.ShiroAuth; import io.vertx.ext.auth.shiro.ShiroAuthRealmType; import io.vertx.ext.web.Router; import...
using PyCall @pyimport matplotlib.pyplot as plt @pyimport matplotlib.lines as lines @pyimport matplotlib.animation as anim export SeisPlot, waveAnim include("SeisPlot.jl") include("waveAnim.jl")
#Requires -RunAsAdministrator <# A simpler approach to initiating an MDM sync, as explained by @mniehaus in his blog post https://oofhours.com/2019/09/28/forcing-an-mdm-sync-from-a-windows-10-client/ This method should be run as SYSTEM or an administrative account. #> Start-ScheduledTask -TaskName "PushLaunch"
# f373_seq2 STM32CubeMX files CubeMX files for a 3-channel CV + Gate step sequencer for Eurorack based on the STM32F373CCT6 processor. This is a project file for the CubeMX processor configuration tool available from ST.com
#include<stdio.h> #include<pthread.h> pthread_mutex_t mutex; pthread_cond_t cond; void *f(void *arg) { pthread_mutex_lock(&mutex); pthread_cond_signal(&cond); pthread_mutex_unlock(&mutex); pthread_exit(NULL); } int main(){ pthread_t tid1; pthread_mutex_init(&mutex,NULL); pthread_cond_init...
# Returns a string formatted list # of all the commands you can use # on slack. class ShowHelp include Interactor include Rails.application.routes.url_helpers # Expects: # team # user # dj # playlist # command e.g. "help" # def call context.message = help_message end def self.match?(comm...
/* Package project provdes chaincode for managing PROJECT data. */ package project import ( "encoding/json" "errors" "github.com/hyperledger/fabric/core/chaincode/shim" . "github.com/kenmazsyma/soila/chaincode/log" "github.com/kenmazsyma/soila/chaincode/peer" ) // IsOwn is a function for checking if project exis...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class StudentController extends Controller { // Must login before public function __construct() { $this->middleware('auth'); } // read public function index() { $student = \App\Student::paginate(5); ...
# Olá, Mundo! Primeiro repositório do curso de Git e GitHub Neste repositório vou colocar tudo que estou aprendendo sobre o GitHub Repositório criado durante uma aula de um curso Essa linha eu adicionei diretamente pelo site. Que impressionante!!! --- ### Nessa parte farei testes Markdown (md)::: **Negrito*...
/* src/driver.h ============================================================== */ /* start/end tags for the machine driver */ #define MACHINE_DRIVER_START(game) \ void construct_##game(machine_config *machine) \ { ...
class AddSubProcessToProtocolEvents < ActiveRecord::Migration def change add_belongs_to :protocol_events, :sub_process, index: true, foreign_key: true remove_belongs_to :protocol_events, :protocol, index: true, foreign_key: true end end
#有人没事干,把pgdata下的pg_clog里的0000删除了,然后就被迫进行了恢复。 #不得不说一句,在pg中有个3个带log的文件夹, #除了pg_log文件夹可以清理内容,其他几个不要乱动。 #为此pg10还特地修改了文件夹名称。 #以下是我重现灾难和修复过程。并非还是真实环境。 [postgres@TT data]$ cd pg_clog/ [postgres@TT pg_clog]$ ll total 32 -rw-------. 1 postgres postgres 32768 May 25 23:24 0000 [postgres@TT pg_clog]$ rm 0000 [postgres@TT pg_clog...
#!/usr/bin/env bash # This script publishes the built .spl file to SplunkBase # It is intended to be used in a CI/CD pipline # Env Vars Required: # # SPLUNK_USER # SPLUNK_PASS set -e command -v jq >/dev/null 2>&1 || (echo >&2 "The program 'jq' is required, please install it on your system"; exit 1) if [ -z "$SPLU...
subroutine nufft1dII(nj,x,iflag,ns,rt,tol,U,V,xsub,r) implicit none integer :: ns,rt,iflag,nj,k,j,r,xsub(nj) real :: tol real*8 pi,x(nj) parameter (pi=3.141592653589793238462643383279502884197d0) complex*16 fftconst,U(nj,r),V(ns,r) complex*16 M(nj,ns) fftconst = iflag*dcmplx(0,1)/ns*2*pi do k ...
// Submitted 14-01-2012 import java.util.*; public class NotationLength { public double avgRatio(int radix, int low, int high) { double ave = 0.0; int l = 0; for(int i = low; i <= high; i++) { String a = i+""; String b = Integer.toString(i, radix); ave +...
// Copyright © 2015 The Things Network // Use of this source code is governed by the MIT license that can be found in the LICENSE file. package handlers import ( "testing" "github.com/TheThingsNetwork/ttn/core" . "github.com/TheThingsNetwork/ttn/core/adapters/mqtt" "github.com/TheThingsNetwork/ttn/utils/errors" ...
<?php namespace AV\Kernel\Bundle\Tests\Resource\Services; use AV\Service\ServicesInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; /** * User: Andy * Date: 20/08/2014 * Time: 16:29 */ class BundleServices implements ServicesInterface { public function getServices($configuration, Containe...
# # sentry_dsn.rb - Set facts for the sentry dsn urls for apps install on the host # require 'facter' require 'net/http' require 'openssl' require 'resolv' require 'timeout' # Lookup the Sentry DSN url from cache file or right from Sentry itself def app_lookup (app_name, sentry_url) cache_file = "/var/cache/sentry_...
const express = require('express'); const router = express.Router(); const ShopifyFunctions = require('../scripts/shopify-functions.js'); router.post('/build-product', async (req, res) => { console.log('==============Building Product!=============='); const items = req.body; const createdProduct = await ShopifyF...
--- title: First Phaser 3 Game description: Get started with your very first phaser 3 game author: name: yandeu website: https://github.com/yandeu --- # First Phaser Game Some text ```ts var config = { type: Phaser.AUTO, width: 800, height: 600, scene: { preload: preload, create: create, upda...
using System; using System.Collections.Generic; using System.Reflection; using System.Text; namespace Alcohol.Consumption.Models { public class ReflectionExtension { public static List<string> GetParameterNames(Type type) { var flags = BindingFlags.Public | BindingFlags.Instance; ...
use lib qw(t/lib); use Test::More; use Test::Exception::LessClever; use Class::Attribute; subtest "should occur an exception" => sub { throws_ok { has 'a' => ( is => 'rw', lazy => 1 ); } qr/You cannot have a lazy attribute \(a\) without specifying a default value for it/...
<?php namespace Filter\app\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Str; class MakeFilter extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'make:filter {name} {column} {--type=} {--second=} {--...
const data = require('../shared/catalog-data'); module.exports = async function (context) { try { var items = []; if(context.bindingData.id){ items = await data.getCatalogById(context.bindingData.id); }else{ items = await data.getCatalog(); } context.res.status(200).send(items); } ...
<?php namespace app\admin\controller; use app\BaseController; class AdminBase extends BaseController { public function show($status = 1, $message = 'error', $data = [], $httpStatus = 200) { $result = [ "status" => $status, "message" => $message, "data" => $data, ...
// Copyright (c) 2012, John Evans // https://github.com/prujohn/Buckshot // See LICENSE file for Apache 2.0 licensing information. /** * A button that only allows a single selection when part of the same group. */ class RadioButton extends Control { /// Represents the value of the radio button. FrameworkProperty v...
package com.renanfch.delibird.core.validate; import lombok.experimental.UtilityClass; @UtilityClass public class PhoneNumberValidate { static final String PHONE_FORMAT_INCORRECT = "PhoneNumber: %s format incorrect"; public static void validate(final String value) { if (value.length() < 10 || value.l...
package config import ( "testing" "github.com/stretchr/testify/assert" ) func TestKeys(t *testing.T) { keys := Keys(map[string]string{"test": "test", "test2": "test"}) assert.Contains(t, keys, ", ") assert.Contains(t, keys, "test") assert.Contains(t, keys, "test2") } func TestStringify(t *testing.T) { test :...
namespace Ogre.NanoRepairTech { public class TickData { public TickData() { } // increment cannot be stored like it used to // because tick data will be wrong after its generated // from low tier to advanced tier //public float Increment; public float Accumulated; public float TickAmount; public bo...
abstract class RoutesPath { static const String introduction = "/"; static const String login = "/login"; }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FantasyData.Soccer.Entities { public class TeamSeasons : List<TeamSeason> { } public class TeamSeason { public int StatId { get; set; } public int SeasonType { get;...
#!/usr/bin/env perl # Copyright 2017, VIA Technologies, Inc. & OLAMI Team. # # 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 ...
(in-package :myriam) (defparameter *self* nil) (defparameter *actions* nil) (defparameter *storage* nil) (defparameter *storage-lock* (bt:make-lock "storage lock")) (defparameter *print-internal-actor-error-messages* nil "if not nil, print error messages when they occur inside an actor") ;;; ;;; Storage ;;; ;;...
# Provides stepping with given interval over elements in an iterable and optionally runs a # [lambda](http://docs.puppetlabs.com/puppet/latest/reference/lang_lambdas.html) for each # element. # # This function takes two to three arguments. # # 1. An 'Iterable' that the function will iterate over. # 2. An `Integer` step...
--- district: "25" state: CA website: "https://http://bryancaforio.com/" firstName: Bryan lastName: Caforio title: Bryan Caforio image: /img/jd_site_bryancaforio_550x600_100918.jpg electionDate: "2018-06-05" blurb: >- Bryan Caforio has spent his career taking on big banks, insurance companies, and corporations that...
/* * Copyright (c) Huawei Technologies Co., Ltd. 2008-2021. 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 * ...
#! /usr/bin/ksh # # # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source....
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
 @{ } <h2>@ViewData["Title"].</h2> <form asp-controller="FakeAccount" asp-action="Login" method="post" class="form-horizontal" role="form"> <input type="hidden" name="returnUrl" value="@ViewData["ReturnUrl"]" /> <div class="form-group"> <label class="col-md-2 control-label">Select User </label> ...
# Estruturas de controle ---- Estruturas de controle ----
use std::{convert::TryFrom, str::FromStr}; use nommy::{text::*, IntoBuf, Parse}; type Ident = WhileNot1<" \t\r\n)">; #[derive(Debug, PartialEq, Parse)] #[nommy(ignore = WhiteSpace)] #[nommy(parse_type = char)] enum Exp { #[nommy(prefix = Tag<"(">, suffix = Tag<")">)] SExp(Vec<Exp>), Number(#[nommy(parser...
import { useRecoilValue } from 'recoil'; import { projectViewProjects } from './index'; export function useIsProjectRoot(path: string) { return useRecoilValue(projectViewProjects).some((item) => item.path === path); }
--- layout: post title: Hard disk drive TB limit author: quorten date: 2018-05-22 01:00 -0500 categories: [pentax-k-1-camera] tags: [pentax-k-1-camera] --- Important! According to the DNA data storage article in the May 2018 issue of IEEE Spectrum, 1 TB per square inch is the practical storage density limit on hard d...
import 'dart:io'; import 'package:chubster/models/food_conversion.dart'; import 'package:path/path.dart' as p; import 'package:chubster/data_providers/foods_provider.dart'; import 'package:chubster/models/food.dart'; import 'package:chubster/models/food_source.dart'; import 'package:sqflite/sqflite.dart'; class LocalF...
<li><a target="_blank" href="https://getuikit.com/">UIkit Website</a></li> <li><a target="_blank" href="https://getuikit.com/docs">UIkit Docs</a></li> <li><a target="_blank" href="https://getuikit.com/changelog">UIkit Changelog</a></li> <li><a target="_blank" href="https://twitter.com/getuikit">UIkit on Twitter</a></li...
import { Controller, RequestMapping } from '@nobot-core/commons'; import { Request, Response } from 'express'; import { inject } from 'inversify'; import RewardService from './reward-service'; @Controller('/action/reward') export default class RewardController { @inject(RewardService) rewardService: RewardService; ...
/** * Transpiler for loading, transpiling and running code */ export interface Transpiler { /** * Check whether the given file can be transpiled by this transpiler * @param path {string} * @returns {boolean} whether the given path can be transpiled */ check(path: string): boolean /** * Transpile...
package com.oudake.console.service; import com.oudake.common.ResultEntity; import com.oudake.console.model.TblSysUser; /** * @author wangyi */ public interface LoginService { TblSysUser findByUsername(String username); boolean isUserExist(String username); ResultEntity login(String username, String p...
import jsSha512 from "js-sha512"; import { base32 } from "rfc4648"; import { TChecksumValidator } from "./types/validators.types"; const { sha512_256 } = jsSha512; const correctPadding = (a: string): string => { if (a.length % 8 === 0) return a.length.toString(); return a + "=".repeat(8 - (a.length % 8)); }; co...
%%%---------------------------------------------------------------------- %%% File : stun_logger.erl %%% Author : Holger Weiss <holger@zedat.fu-berlin.de> %%% Purpose : Wrap OTP Logger for STUN/TURN logging %%% Created : 19 Jul 2020 by Holger Weiss <holger@zedat.fu-berlin.de> %%% %%% %%% Copyright (C) 2020-2021 Pro...
# Changelog All notable changes to this project will be documented in this file. ## [2.0.0] - 2018-07-03 ### Added - Methods with Async - Await - ChannelId in contructor - Change the way of pass parameters of contructor, now is an object - New public method `searchChannel` for get liveId on any channel and its informa...
package com.karhoo.uisdk.screen.booking.quotes.category import com.karhoo.uisdk.screen.booking.domain.address.BookingStatus import com.karhoo.uisdk.screen.booking.domain.quotes.AvailabilityProvider import com.nhaarman.mockitokotlin2.atLeastOnce import com.nhaarman.mockitokotlin2.capture import com.nhaarman.mockitokotl...
# frozen_string_literal: true module ActiveSupport module Testing module ConstantStubbing # Changes the value of a constant for the duration of a block. Example: # # # World::List::Import::LARGE_IMPORT_THRESHOLD = 5000 # stub_const(World::List::Import, :LARGE_IMPORT_THRESHOLD, 1) do ...
#!/bin/sh # jgroups multicast listen address export JGROUPS_MCAST_ADDRESS=228.11.11.10 # jgroups mulitcast listen port export JGROUPS_MCAST_PORT=51110
// <copyright file="UniformIntSamplerTests.cs" company="QuantifEye"> // Copyright (c) QuantifEye. All rights reserved. // Licensed under the Apache 2.0 license. // See LICENSE.txt file in the project root for full license information. // </copyright> namespace Qtfy.Net.Numerics.Tests.Random.Samplers { using System...
import 'package:dropdown_date_picker/dropdown_date_picker.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { test('Non-null valid date.', () { final date = NullableValidDate(year: 2010, month: 5, day: 10); expect(date.year, 2010); expect(date.month, 5); expect(date.day, 10); f...
-- AlterTable ALTER TABLE "User" ALTER COLUMN "role" SET DEFAULT E'NEWUSER';
# Alicia's Code Snippets This repository is a place where I keep all of my code snippets used in blogs, videos, and talks. ## License Apache 2.0 ## Disclaimer This is not an official Google product.
export const calculateBmi = (height: number, mass: number): string => { const result: number = (mass) / ((height / 100) ^ 2); if (result < 15) { return 'Very severely underweight'; } else if (15 <= result && result < 16) { return 'Severely underweight'; } else if (16 <= result && result < 18.5) { re...
using System; using HOPL.Grammar; using HOPL.Interpreter.NamespaceTypes.Values; using HOPL.Interpreter.Api; namespace HOPL.Interpreter.NamespaceTypes { class ReferenceGlobalEntity : IGlobalEntity { public string Name { get; protected set; } public InterpreterType Type { get; protected set; } ...
# go-rpc go roc - [google api设计规定](https://cloud.google.com/apis/design/design_patterns)
unit perisettings; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, RXSpin,define_types; type TPSForm = class(TForm) BinWidthEdit: TRxSpinEdit; Label3: TLabel; Label1: TLabel; Label2: TLabel; SliceTimeCheck: TCheckBox; OKB...
# Embark Contributor Guidelines Welcome! This project is created by the team at [Embark Studios](https://embark.games). We're glad you're interested in contributing! We welcome contributions from people of all backgrounds who are interested in making great software with us. At Embark, we aspire to empower everyone to...
# 000 - Packages Since Yii 3 framework is divided into several packages with the following agreements. For all packages GitHub repository name exactly matches Packagist package name. For a full list of packages and their build statuses see [status page at yiiframework.com](https://www.yiiframework.com/status/3.0). ...
 using Microsoft.Data.SqlClient; using System.Data; namespace CoreJob.Library.Data { /// <summary> /// Open Connection to database /// </summary> public sealed class ConnectionFactory { /// <summary> /// Open new connection to DB, /// it's the caller responsibility to dispose DB object when it's not long...
use super::super::domain::{Data, Primitive}; use super::super::errors::ApplicationError; use std::collections::HashMap; pub fn command( store: &mut HashMap<String, Data>, key: &str, member: &Primitive, ) -> Result<bool, ApplicationError> { match store.get_mut(key) { Some(Data::Set(s)) => Ok(s.c...
## 材料試験自動計算 機能:生データからポアソン比,ヤング率,グラフを自動で出力する   ### matlab 和 python
/* * cloudbeaver - Cloud Database Manager * Copyright (C) 2020 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ import { injectable } from '@dbeaver/core/di'; import { IComputedMenuItemOptions, StaticMenu } from '@db...
#!/usr/bin/env sh # install mozilla sops wget https://github.com/mozilla/sops/releases/download/3.2.0/sops_3.2.0_amd64.deb dpkg -i sops_3.2.0_amd64.deb /oya/install.sh cd /oya/test/ oya run test
-- delete_subscription deletes the provided subscription from the database. create or replace function delete_subscription(p_subscription jsonb) returns void as $$ delete from subscription where user_id = (p_subscription->>'user_id')::uuid and package_id = (p_subscription->>'package_id')::uuid and event...
#!/usr/bin/env python import pdb import sys import os import pandas as pd filein = sys.argv print(filein) orig_df = pd.read_excel(filein[1],index_col='RANK') new_df = orig_df.copy() new_df.rename(columns = {"VS. ADP": "Elig. Pos."},inplace=True) new_df.rename(index={'RANK':'Rank'}, inplace=True) for i,data in orig_df...
@extends('frame.index') @section('title_1','active') @section('content') <!-- page content --> <div class="right_col" role="main"> <div class="card col-md-4 col-sm-4"> <div class="card-body"> <h5 class="card-title">Pengaturan Dashboard Mahasiswa</h5> <table class="table"> ...
/*! * jQuery visibleText plugin 0.1.0 * https://github.com/Krinkle/jquery-visibleText * * author Timo Tijhof, 2012 * source This plugin is based on Sizzle.getText. * Copyright 2012 jQuery Foundation and other contributors http://jquery.com/ * license MIT License <http://www.opensource.org/licenses/mit-license.p...
<?php namespace QBNK\QBank\API\Controller; use QBNK\QBank\API\CachePolicy; use QBNK\QBank\API\Model\PropertySet; use QBNK\QBank\API\Model\PropertyType; class PropertysetsController extends ControllerAbstract { /** * Lists all PropertySets. * * @param CachePolicy $cachePolicy a custom cache policy...
import * as React from 'react'; import { ImageProps } from './Image.types'; import { makeClasses } from '@fluentui/react-compose/lib/next/index'; import { useInlineTokens } from '@fluentui/react-theme-provider'; import * as classes from './Image.scss'; import { useImage } from './useImage'; // Create a hook to resolve...
<!-- Bootstrap 4 --> <script src="{{ asset('backend/plugins/bootstrap/js/bootstrap.bundle.min.js') }}"></script> <!-- AdminLTE App --> <script src="{{ asset('backend/dist/js/adminlte.min.js') }}"></script> <!-- overlayScrollbars --> <script src="{{ asset('backend/plugins/overlayScrollbars/js/jquery.overlayScrollbars.mi...
using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace TrueCraft.Client.Interface { public interface IGameInterface { InterfaceScale Scale { get; set; } void Update(GameTime gameTime); void DrawSprites(GameTime gameTime, SpriteBatch spriteBatch)...
package main import ( "fmt" "time" "github.com/ChronixDB/chronix.go/chronix" "github.com/prometheus/common/model" "github.com/prometheus/prometheus/storage/local/chunk" ) type chronixStore struct { chronix chronix.Client commitWithin time.Duration } func (s *chronixStore) Put(metric model.Metric, descs ...
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { RaceModel } from './models/race.model'; import { HttpService } from './http.service'; import { Http } from '@angular/http'; import { GiftModel } from '../models/gift.model'; import { AppSettings } from '../appSettings'; ...
import {computed, isRef, Ref, ref, unref} from 'vue'; import {useEffect} from './index'; import {clearHarmonicInterval, setHarmonicInterval} from 'set-harmonic-interval'; const useHarmonicIntervalFn = (fn: Function, delay: number | Ref<number> | null = 0) => { const latestCallback = ref<Function>(() => { /...
package com.chrisventura.apps.noteline.Model; /** * Created by ventu on 15/5/2017. */ public class Note { String idNote, title, body, idCategory; long createdAt, updatedAt, deletedAt; public boolean isChecked() { return checked; } public void setChecked(boolean checked) { this....
function Out-Dictionary { [CmdletBinding(PositionalBinding=$false)] [OutputType([System.Collections.Generic.IDictionary[object, object]])] param( [Parameter(Position=0)] [string] [ValidateNotNullOrEmpty()] $KeyProperty = 'Key', [Parameter(Position=1)] [string...