text stringlengths 27 775k |
|---|
<?php
/**
* @var $categories \common\models\db\CategoryPoster
*/
use yii\helpers\Url;
?>
<section class="afisha-menu">
<div class="container">
<ul>
<?php foreach ($categories as $category): ?>
<li><a href="<?= Url::to([
'/poster/default/single_category'... |
class ManualSectionIndexableFormatter
def initialize(section, manual)
@section = section
@manual = manual
end
def type
"manual_section"
end
def id
link
end
def indexable_attributes
{
title: "#{manual.title}: #{section.title}",
description: section.summary,
link: li... |
export default class Ray {
constructor(p1, a, maxLen) {
this.p1 = p1;
this.a = a;
this.maxLen = maxLen;
// If no obstacles in way, this is end point
this.maxP2 = createVector(
cos(a) * this.maxLen + this.p1.x,
sin(a) * this.maxLen + this.p1.y,
);
this.p2 = this.maxP2.copy();
... |
package ru.luckycactus.steamroulette.presentation.features.game_details.adapter
import ru.luckycactus.steamroulette.databinding.ItemGameDetailsLinksBinding
import ru.luckycactus.steamroulette.presentation.features.game_details.GameDetailsViewModel
import ru.luckycactus.steamroulette.presentation.features.game_details.... |
/*
* GridGain Community Edition Licensing
* Copyright 2019 GridGain Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause
* Restriction; you may not use this file except in compliance with the License. You may obtain a
* c... |
---
layout: watch
title: TLP1 - 22/02/2021 - M20210222_030849_TLP_1T.jpg
date: 2021-02-22 03:08:49
permalink: /2021/02/22/watch/M20210222_030849_TLP_1
capture: TLP1/2021/202102/20210221/M20210222_030849_TLP_1T.jpg
---
|
package definiti.tests.end2end.controls.expression
import definiti.common.ast.Root
import definiti.common.program.Ko
import definiti.common.tests.LocationPath
import definiti.tests.ConfigurationBuilder
import definiti.tests.end2end.EndToEndSpec
import definiti.tests.utils.CommonTypes._
import definiti.tests.validation... |
package com.android.elk.common
typealias Email = String
typealias Username = String
typealias Password = String
|
import React from 'react';
const Details = (props) => {
return (
<div>
<header>
{props.toolbar}
</header>
<main className="details">
{props.main}
</main>
{props.footer}
</div>
);
}
export default Details; |
import toml
from ttblackjack import CONFIG_FP
def test_config():
config1 = toml.load(CONFIG_FP)
config2 = {
"decks": 2,
"sleep": 1.0,
"rounds": 0,
"yes": True,
"viewer": "cli",
"debug": False,
"players": [
{"name": "player 1", "algorithm": "... |
# Regenerates GATK golden files for comparison upon GATK version changes
DESIRED_GATK_VERSION=$(~/gatk/gatk --version | grep GATK | sed -E 's/.*v([0-9.]*).*/\1/')
# Checks if the file was already generated with the same tool and GATK version
file_has_desired_gatk_version () {
FILE_NAME=$1
TOOL_NAME=$2
if [ -f... |
require File.dirname(__FILE__) + '/../test'
module BuildMaster
describe Git do
it 'should take a directory as the working directory' do
current_dir = Cotta.parent_dir(__FILE__)
git = Git.new(current_dir)
git.work_dir.should == current_dir
end
it 'should change directory and run com... |
#!/bin/bash
for foto in *.png; do
#echo "ORIGINAL: $foto ; NOVO: $foto.NEW.png";
convert -resize 30x30 "$foto" "$foto.NEW.png";
done
|
package proctor
// Version is the main version number that is being run at the moment.
var Version = "No version set"
// VersionPrerelease is a pre-release marker for the version. If this is ""
// then it means that it is a final release. Otherwise, this is a pre-release
// such as "dev" (in development), "beta", "rc... |
module Api
module V1
class UsersController < ApplicationController
before_action :authenticate_request!, only: [:show, :create, :update_permissions]
before_action :user_type!, only: [:current_user_data]
before_action :set_user, only: [:show, :update]
def index
paginate json:... |
import React from 'react'
import {Switch,Route} from 'react-router-dom'
import App from './components/app'
// import Courses from './pages/coursePage'
// import {CourseDetail} from './components/courses/'
// import {LoginRoute, PrivateRoute} from './privateRoute';
// import PrivateInstructorRoute from './privateInstruc... |
/*-
* #%L
* Arcade Connectors
* %%
* Copyright (C) 2018 - 2021 ArcadeData
* %%
* 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
*
... |
apply(from = "enterprise.gradle.kts")
include(":app")
rootProject.name = "app"
|
(ns day_01
(:require [utils :refer [open-resource]]))
(def input-file "day_01.txt")
(def data (->> input-file open-resource (map #(Integer/parseInt %))))
(defn part-01 [input]
(let [pairs #(partition 2 1 %)
differences (fn [[f s]] (- f s))]
(->> input pairs (map differences) (filter neg?) count)))
(... |
import toDate from '../toDate/index'
import requiredArgs from '../_lib/requiredArgs/index'
/**
* @name startOfSecond
* @category Second Helpers
* @summary Return the start of a second for the given date.
*
* @description
* Return the start of a second for the given date.
* The result will be in the local timezo... |
import 'package:linkfy_text/src/enum.dart';
String urlRegExp = r'(?:(?:https?|ftp):\/\/)?[\w/\-?=%.]+\.[\w/\-&?=%.]+';
String hashtagRegExp = r'(#+[a-zA-Z0-9(_)]{1,})';
String emailRegExp =
r"([a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[a-zA-Z0-9]+\.[a-zA-Z]+)";
/// construct regexp. pattern from provided link ... |
#set -x
# extract minor version (eg. 10.9 vs. 10.10 vs. 10.11)
MINOR_VER=$([[ "$(sw_vers -productVersion)" =~ [0-9]+\.([0-9]+) ]] && echo ${BASH_REMATCH[1]})
if [[ $MINOR_VER -ge 11 ]]; then
echo 10.11+
else
echo 10.10-
fi
|
using Kingmaker.Blueprints;
using Kingmaker.Blueprints.Facts;
using Kingmaker.Blueprints.JsonSystem;
using Kingmaker.Items;
using Kingmaker.Items.Slots;
using Kingmaker.PubSubSystem;
using Kingmaker.UnitLogic;
namespace TabletopTweaks.Core.NewComponents {
[AllowedOn(typeof(BlueprintUnitFact), false)]
[AllowM... |
<?php
namespace Spatie\EventSourcing\Enums;
class MetaData
{
const AGGREGATE_ROOT_UUID = 'aggregate-root-uuid';
const AGGREGATE_ROOT_VERSION = 'aggregate-root-version';
}
|
package kim.jeonghyeon.simplearchitecture.plugin.config
import kim.jeonghyeon.simplearchitecture.plugin.extension.simpleArchExtension
import org.gradle.api.Project
import org.gradle.kotlin.dsl.apply
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
fun Project.applyCommonCon... |
*----------------------------------------------------------------------*
subroutine prop_evaluate(ndens,rank,label_den,trplt,
& env_type,op_info,str_info,orb_info)
*----------------------------------------------------------------------*
*
* for a given list of densities (all have rank "rank") evaluat... |
<?php
/**
* Administration panel
*
* @package Cotonti
* @version 0.1.0
* @author Neocrome, Cotonti Team
* @copyright Copyright (c) Cotonti Team 2008-2009
* @license BSD
*/
(defined('SED_CODE') && defined('SED_ADMIN')) or die('Wrong URL.');
list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_aut... |
const getWinston = async (bytes, target) => {
bytes = bytes || 0;
target = target || '';
const response = await fetch(`https://arweave.net/price/${bytes}/${target}`);
return response.ok ? response.text() : null;
};
const createState = (state) => {
return new Proxy(state, {
set(obj, proper... |
// Copyright 2020 Sarbagya Dhaubanjar. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Formats month to literal form
String formattedMonth(int month) {
switch (month) {
case 1:
return 'January';
case 2:
return 'Febru... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
/// <summary>
/// Serializable helper for System.Windows.Media.Color
/// </summary>
[Serializable]
public struct Colour
{
public byte A;
public byte R;
public byte G;
public byte ... |
#!/bin/bash
#当前日期
today=`date "+%Y%m%d"`
# 设置回收路径
trashPath=$HOME/.Trash
# 创建回收文件夹
if [ ! -d "$trashPath" ]; then
mkdir $trashPath
fi
# 清除命令中的所有开关选项
args=${@##-*}
# 移动文件并备份,如有必要,修改错误信息并输出
msg=`mv --backup=t $args $trashPath 2>&1`
if [ ! "$msg" = "" ]; then
echo ${msg//mv/.rm.sh} # 将错误信息中的“mv”替换成".rm.sh"
f... |
# Ayehu
AY IncidentConfigurationCreateIncident
Method: Post
OperationID: IncidentConfiguration_CreateIncident
EndPoint:
/API/IncidentConfiguration/createIncident
|
CREATE DATABASE threads ENCODING 'UTF8' LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8';
GRANT All PRIVILEGES ON database threads TO doug;
|
<?php
namespace App\Enum;
class TableStatuses
{
public const BUSY = 'busy';
public const FREE = 'free';
public const SERVED = 'served';
} |
<?php
include_once('config.php');
if(isset($_POST["update"])){
$id = $_GET['id'];
$nama = $_POST['nama'];
$user = $_POST['username'];
$pass = $_POST['password'];
$query= "UPDATE tb_user SET username='$user', password='$pass', nama='$nama' WHERE id='$id' ";
mysqli_query($koneksi, $query);
h... |
import { Controller, HttpResponse, Validation } from '@/presentation/protocols'
import { AddChildren } from '@/domain/usecases'
import { Gender } from '@/domain/models'
import { badRequest, serverError, created } from '@/presentation/helpers'
export class AddChildrenController implements Controller {
constructor (
... |
#!/usr/bin/perl
#This perl script can be used to create a Qt QRC file for all the files in a given folder
# To generate a QRC file for all the icons in the /icons folder,
# first, cd into the Core folder
# second, call "perl ../icons/createQRC.pl ../icons > Tinkercell.qrc"
# compile again so that the new qrc ... |
# Club de Investigación en Ciencia de Datos
Página Web del Club de Investigación en Ciencia de Datos.
|
import 'package:flutter/material.dart';
import 'package:video_viewer/data/repositories/video.dart';
import 'package:video_viewer/ui/widgets/transitions.dart';
class VideoCoreThumbnail extends StatelessWidget {
const VideoCoreThumbnail({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
... |
package admin
import (
"context"
"net/http"
"github.com/ops-cn/common/schema"
)
// ILogin 登录业务逻辑接口
type ILogin interface {
// 获取图形验证码信息
GetCaptcha(ctx context.Context, length int) (*schema.LoginCaptcha, error)
// 生成并响应图形验证码
ResCaptcha(ctx context.Context, w http.ResponseWriter, captchaID string, width, height... |
## DRUM MACHINE APP
this project is part of freecodecamp projects challenges
https://learn.freecodecamp.org/front-end-libraries/front-end-libraries-projects/build-a-drum-machine/
### Steps to run
#### 1- for provide local audio is necesary
Web Server for Chrome extension
https://chrome.google.com/webstore... |
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../blocs/counter_bloc.dart';
class ProviderPage extends StatelessWidget {
const ProviderPage();
@override
Widget build(BuildContext context) {
return Provider<CounterBloc>(
create: (_) => CounterBloc(),
disp... |
/*
Package storage provides type definitions for use with the Chrome Storage protocol
https://chromedevtools.github.io/devtools-protocol/tot/Storage/
*/
package storage
/*
UsageForType is usage for a storage type.
https://chromedevtools.github.io/devtools-protocol/tot/Storage/#type-UsageForType
*/
type UsageForType ... |
#!/bin/bash
farm=${1:-farmNotSet}
argFile=${2:-reaper.conf}
echo $0
echo farm $farm
echo argFile $argFile
export PYTHONPATH=~/ncscli
export PATH=$PATH:~/ncscli/ncscli
sdt=$(date -u --iso-8601=seconds)
sdtTag=$(date --date=$sdt +"%Y-%m-%d_%H%M%S")
cd ~/ncscli/examples/neoload
dataDirPath=data/$farm
#mkdir -p $dataD... |
#!/usr/bin/perl
# postprocess data for spec_index: squash multiple occurrences of parameters
# @(#) $Id: 344fb98b28f19144666c0c8de994f015d47e3215 $
# 2016-05-05: append "COMMIT;"
# 2016-04-16, Dr. Georg Fischer
#------------------------------------------------------------------
# Usage: c.f. makefile
# perl... |
package service
import (
"net"
pb "github.com/huajiao-tv/gokeeper/pb/go"
"github.com/huajiao-tv/gokeeper/server/setting"
"github.com/huajiao-tv/gokeeper/server/sync"
"github.com/johntech-o/gorpc"
"google.golang.org/grpc"
)
//@todo 完善server初始化部分内容,优化代码
var (
grpcListener net.Listener //grpc中配置和服务发现的端口暂时共用
)
/... |
#include "stdafx.h"
#include "ObjectAnimator.h"
#include "motion.h"
bool st_AnimParam::Update(float dt){
t+=dt;
if (t>max_t){
if (bLoop){ t=min_t; return true; }
else { t=max_t; return false;}
}
return true;
}
void st_AnimParam::Set(COMotion* M, bool _loop){
t=0;
bLoop = _loop;
min... |
<?php
/**
* This file is part of the LdapTools package.
*
* (c) Chad Sikorra <Chad.Sikorra@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LdapTools\Security\Ace;
use LdapTools\Security\Flags;
use LdapTools\S... |
package org.moe.runtime
abstract class MoeNativeObject[A] (
private var value: A,
private var associatedType: Option[MoeType] = None
) extends MoeObject(associatedType) {
def getNativeValue: A = value
protected def setNativeValue(v: A) = value = v
def copy: MoeNativeObject[A]
}
|
#### Parser Content
```Java
{
Name = crowdstrike-config-change
Vendor = CrowdStrike
Product = Falcon
Lms = Direct
DataType = "config-change"
TimeFormat = "epoch"
Conditions = [ """"event_simpleName":"Firewall""" ]
Fields = [
"""exabeam_host=([^=]{1,2000}@\s{0,100})?(gcs-topic|({host}[\... |
import React from 'react';
import './Note.scss';
import { deleteNote } from './notesStore';
import { ReactComponent as CloseIcon } from '../../icons/Close.svg';
import { useDispatch } from 'react-redux';
export const Note: React.FC<{ content: string; noteId: number }> = ({
content,
noteId,
}) => {
const dispatc... |
using UnityEngine;
public class PauseScreenComponent : MonoBehaviour
{
public void OnExitMenuClick()
{
OsFps.Instance.MenuStack.Pop();
}
public void OnOptionsClick()
{
OsFps.Instance.EnterOptionsScreen();
}
public void OnLeaveServerClick()
{
OsFps.Instance.MenuS... |
package uk.gov.nationalarchives.signcookies
import java.time.Instant
trait TimeUtils {
def now(): Instant
}
|
import mongoose from "mongoose";
import { CardItemSchema } from "../cardItem/cardItemModel";
const Schema = mongoose.Schema;
export const CardItemsSchema = new Schema({
header: {
type: String,
required: true
},
cardItems: [CardItemSchema]
});
export default mongoose.model("CardItems", CardItemsSchema)... |
# Bayesian Logistic Regression with Laplace Approximation
See the `ftr_notebook.ipynb` for example usage.


|
//'use strict';
/*
*
* TASK 1
*
* Создайте функцию которая будет запоминать переданные
* ей аргументы, и прибавлять их в строку
* и отображать в консоле всю строку
*
*
* */
function solution1() {
let str = "";
let args = [];
return function(arg) {
args.push(arg);
return (str += arg + " ");
};... |
#include "charitydialog.h"
#include "ui_charitydialog.h"
#include "clientmodel.h"
#include "notificator.h"
#include "version.h"
#include "wallet.h"
#include "walletdb.h"
#include "main.h"
#include "init.h"
#include <QMessageBox>
charityDialog::charityDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::cha... |
use crate::hardware::Cpu;
use crate::memory::Memory;
const INTERRUPTS_VBLANK: u8 = 1 << 0;
const INTERRUPTS_LCDSTAT: u8 = 1 << 1;
const INTERRUPTS_TIMER: u8 = 1 << 2;
const INTERRUPTS_SERIAL: u8 = 1 << 3;
const INTERRUPTS_JOYPAD: u8 = 1 << 4;
pub fn interrupt_check(cpu: &mut Cpu, mem: &mut Memory) -> bool {
if ... |
Topics that should be covered
-------------------------
* History of Software
* Challenges of Project Management
* History of OSS
* Prehistoric open source: BSD, MIT Emacs, X Windows, etc.
* GNU, Stallman, etc.
* Linux
* Today...
* Well-known projects
* Linux
* Distros
* Languages (Ruby, ... which other... |
import {
Component,
OnInit,
ChangeDetectionStrategy,
Input,
AfterViewInit
} from "@angular/core";
@Component({
selector: "ng-marquee",
templateUrl: "./ng-marquee.component.html",
styleUrls: ["./ng-marquee.component.css"],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class NgMarqueeCompon... |
import {
Controller,
Get,
Post,
Body,
Delete,
UploadedFile,
UseInterceptors,
Query,
} from '@nestjs/common';
import { FileInterceptor } from '@nestjs/platform-express';
import { BannerService } from './banner.service';
@Controller('banner')
export class BannerController {
constructor(private readonly... |
at_style=At typ systému,1,linux-Linux,solaris-Solaris,freebsd-FreeBSD,irix-Irix,macos-MacOS X,openserver-OpenServer
at_dir=At adresář úkolů,0
allow_file=Povolit soubor At uživatelů,3,Nic
deny_file=Zakázat soubor At uživatelé,3,Nic
|
/*! @file */
/*
Copyright (C) 2018-2021, Sakura Editor Organization
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,... |
module Dev
class Vault
RELEASE = '1'.freeze
VERSION = '0.5.2'.freeze
end
end
|
# -*- encoding: utf-8 -*-
"""
Copyright (c) 2019 - present AppSeed.us
"""
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from .models import RemRole, RemUser, RemOrganization
from .utils imp... |
# tcpts
Shutdown computer on request on given port. Default is 80.
## Help
```console
TCP to shutdown 0.1.0
Shutdown a computer if a specified port is requested
USAGE:
tcpts [OPTIONS] [port]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-d, --... |
<?php
namespace App\Http\Controllers;
use App\Kememberan;
use Illuminate\Http\Request;
class ApiKememberanController extends Controller
{
public function index()
{
$data = Kememberan::get();
return response()->json([
'status' => 'success',
'message' => 'list data keme... |
<?php
namespace Litepie\Contact\Repositories\Eloquent;
use Litepie\Contact\Interfaces\ContactRepositoryInterface;
use Litepie\Repository\Eloquent\BaseRepository;
class ContactRepository extends BaseRepository implements ContactRepositoryInterface
{
/**
* @var array
*/
protected $fieldSearchable = [... |
predictionfile=outputs/simple_tagger_output.txt
outfname=outputs/simple_tagger_summary.txt
tgtfile=data/processed/multicopy.test.src.txt
# tune threshold to get equivalent summary length. # agg-ppl: 1867.28 words
python prediction_to_text.py -data $predictionfile \
-output $outfname \
... |
import 'package:flutter/material.dart';
import 'package:foldable_sidebar/foldable_sidebar.dart';
import 'package:get/get.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import 'package:realpet/components/state_management.dart';
import 'package:realpet/pages/login_page.da... |
# coding: utf-8
require File.dirname(__FILE__) + '/spec_helper'
require 'htmldiff'
class TestDiff
extend HTMLDiff
end
describe "htmldiff" do
it "should diff text" do
diff = TestDiff.diff('a word is here', 'a nother word is there')
diff.should == "a<ins class=\"diffins\"> nother</ins> word is <del ... |
/*
Copyright (C) 2016 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwa... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking.NetworkSystem;
using Julo.Logging;
using Julo.Network;
namespace Julo.TurnBased
{
public abstract class TurnBasedClient : GameClient
{
public static new TurnBasedClient instance = null;
... |
alter table ref_hm_pcode_objecttype
add
constraint ref_hm_pcode_objecttype_fk1
foreign key (hm_pcode)
references ref_hm_pcode(hm_pcode);
alter table ref_hm_pcode_objecttype
add
constraint ref_hm_pcode_objecttype_fk2
foreign key (objecttype_id)
references hdb_objecttype(objecttype_id);
|
@extends('themes.admin-theme')
@section('content')
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header card-header-primary card-header-icon">
<div class="card-icon">
<i class="material-icons">person</i>
</div>
... |
import java.util.*;
public class ParrotSalute {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
System.out.print("How big is your group?: ");
int groupSize = keyboard.nextInt();
while (groupSize <= 0 || groupSize >= 11){
System.out.p... |
import React, { useState } from 'react';
import { SurveyTemplate, AgeBox } from '@/components/domain/survey';
import { Title } from '@/lib/styles/styledComponents';
import styled from 'styled-components';
import { MIN_AGE, MAX_AGE } from '@/components/domain/survey/AgeBox';
import ChooseTwoBox from '@/components/domain... |
package io.burkard.cdk.services.codepipeline
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object AlexaSkillDeployAction {
def apply(
clientId: String,
skillId: String,
input: software.amazon.awscdk.services.codepipeline.Artifact,
... |
# frozen_string_literal: true
module Renderer
# Read a file and render the markdown
class MarkdownFileRenderer
include Util::Logging
include Parser::FrontmatterMetadataFinder
attr_reader :path, :image_provider, :vtt_file
def initialize(path:, image_provider: nil, vtt_file: nil)
@path = path... |
// ignore_for_file: unused_local_variable
import 'dart:convert';
import 'package:amatrider/features/home/data/data.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:logger/logger.dart';
import '../fixtures/fixture_reader.dart';
void main() {
test(
'test that `BankAccountDTO` model can pa... |
# Developer notes
## Storybook deployment
Run `yarn build-storybook` to build the static storybook in the `docs/` directory and then commit + push to GitHub.
## Publish package
Run `npx np` and follow the interactive prompts to publish a new version. |
<?php
/**
* Created by PhpStorm.
* User: engineer
* Date: 1/9/19
* Time: 11:48 PM
*/
class User_Authentication_model extends CI_Model
{
public function fetch()
{
$this->db->order_by('ID', 'DESC');
$this->db->where('STATUS', TRUE);
return $this->db->get('USERS');
}
funct... |
import { ERROR, LOADED, LOADING } from "../api/status";
import React, { PureComponent } from "react";
import ContactMap from "./ContactMap";
import NoMatch from "./NoMatch";
import PropTypes from "prop-types";
class Detail extends PureComponent {
constructor(props) {
super(props);
}
render() {
const { ... |
---
layout: post
title: "Vue.js Router , Axios"
date: 2022-04-08 13:51
image: '/assets/img/'
description: 'Vue.js'
tags:
- Vue.js
categories:
- Vue.js
twitter_text: ''
comments: true
---
프로젝트 및 이사준비 때문에 블로그 관리에 소홀했다..
아직 완벽하게 해결된건 아니지만 어느정도 여유가 생겼기에 다시 블로그를 작성하려고 한다.
Vue.js 에서 가장 핵심(?) 이라고 할수 있는 Router , Axios 에 대해 알아... |
{-# LANGUAGE OverloadedStrings #-}
module Network.SCP.Types where
import Control.Applicative ((<|>))
import Data.Attoparsec.ByteString (anyWord8)
import Data.Attoparsec.ByteString.Char8
import Data.ByteString (ByteString)
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as C
import Prelude ... |
<?php declare(strict_types=1);
namespace JTL\Filter\Pagination;
/**
* Class ItemFactory
* @package JTL\Filter\Pagination
*/
class ItemFactory
{
/**
* @return Item
*/
public function create(): Item
{
return new Item();
}
}
|
<?php
namespace App\Http\Controllers\Backend;
use App\Models\Menu;
use App\Repository\CommentRepository;
use App\Repository\MemberRepository;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use GrahamCampbell\Markdown\Facades\Markdown;
class HomeController extends CommonController
{
protected $... |
/*
Agregamos la instruccion strict para acceder
a las nuevas funciones de javascript:
*/
'use strict'
/*
Conexion a la base de datos:
1. Creamos un objeto con los
parametros de la libreria mongoose:
*/
var mongoose = require('mongoose');
/*
Agregamos app.js y el puerto de escucha:
*/
var app = require('./app');
var... |
package org.cocos2d.actions.ease;
import org.cocos2d.actions.interval.CCIntervalAction;
public class CCEaseSineIn extends CCEaseAction {
public static CCEaseSineIn action(CCIntervalAction action) {
return new CCEaseSineIn(action);
}
protected CCEaseSineIn(CCIntervalAction action) {
super... |
import React, { useEffect, useState, SetStateAction, Dispatch } from "react";
import { PasswordGenerator } from "./PasswordGenerator";
export const Password = () => {
const [password, setPassword] = useState("");
const [useNumber, setUseNumber] = useState(false);
const [useSign, setUseSign] = useState(false);
... |
import { Action, ActionReducerMap, combineReducers, createFeatureSelector } from '@ngrx/store';
import * as fromLibrarians from './librarian.reducer';
import * as fromPagination from './pagination/librarians-pagination.reducer';
export interface LibrariansModuleState {
librarians: fromLibrarians.LibrariansState,
p... |
import * as express from "express";
import controller from "./controller";
export default express
.Router()
.post("/login", controller.login)
.post("/register", controller.register)
.get("/refreshtoken", controller.refreshToken)
.get(
"/msal",
process.env.MSAL_ACTIVE === "true"
? controller.msa... |
/**
* Management of the release downloads.
* @module releases
*/
const ReleaseManager = require('./ReleaseManager');
module.exports = {
ReleaseManager: ReleaseManager
}
|
import logging
from . import AbstractTranslationProvider
from google.cloud import translate
logger = logging.getLogger(__name__)
class GoogleTranslate(AbstractTranslationProvider):
def translate(self, strings, target_language, source_language="en"):
client = translate.Client()
response = client... |
test = """
F10
N3
F7
R90
F11
"""
function parse_program(prog::AbstractString)::Vector
return split(prog, "\n"; keepempty = false) .|> Instruction
end
struct Instruction{code}
v::Int
Instruction(cmd::AbstractString) = new{cmd[1]}(parse(Int, cmd[2:end]))
end
Base.show(io::IO, i::Ins... |
namespace Machete.X12Schema.V5010
{
using X12;
public interface MOA :
X12Segment
{
Value<decimal> ReimbursementRate { get; }
Value<decimal> HCPCSPayableAmount { get; }
Value<string> ClaimPaymentRemarkCode1 { get; }
Value<string> ClaimPaymentRemarkCode2 { ... |
import type { Client, CommandInteraction, ContextMenuInteraction } from 'discord.js';
import type { ChooksConfig } from './config';
import type { ChooksLogger } from '@chookscord/logger';
import type { FetchUtil } from '@chookscord/fetch';
export type ChooksDep = Record<string, unknown>;
export type EmptyDep = Record<... |
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'managedmac', 'common'))
Puppet::Type.newtype(:macgroup) do
@doc = %q(A drop-in replacement for the built-in Puppet Type: Group
A custom Puppet type for configuring and managing OS X groups.
Similar to the built-in Puppet type, Macgroup can m... |
import Joi from '@hapi/joi';
const route = {
options: {
validate: {
payload: Joi.object({}),
},
},
handler: async (request, h) => {
// work
},
};
export default route;
|
package _936_stamping_the_sequence
func movesToStamp(stamp string, target string) []int {
letters, toErase := []byte(target), len(target)
contains := func(offset int) bool {
empty := true
for i := 0; i < len(stamp); i++ {
if l := letters[offset+i]; l != '.' && l != stamp[i] {
return false
} else if l !... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.