text stringlengths 27 775k |
|---|
//
// NSDate+SA.h
// SACategory
//
// Created by yusian on 15-3-19.
// Copyright (c) 2015年 Sian. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDate (SA)
// 根据日期获取星期,返回数字(1~7)
+ (NSInteger)weekDayWithDate:(NSDate *)date;
// 当前日期是否处于本周
- (BOOL)hasBelongThisWeek;
// 日期转换成字符串,格式如:2015-03-1... |
package org.gradoop.spark.model.impl.operators.setgraph.gve
import org.gradoop.spark.model.api.operators.BinaryLogicalGraphToLogicalGraphOperator
import org.gradoop.spark.model.impl.types.Gve
class GveOverlap[L <: Gve[L]] extends BinaryLogicalGraphToLogicalGraphOperator[L#LG] {
override def execute(left: L#LG, rig... |
<?php
namespace Smoren\Yii2\QueryRelationManager\Base;
/**
* Интерфейс для обертки ORM-класса запроса
* @package Smoren\Yii2\QueryRelationManager\Base
* @author Smoren <ofigate@gmail.com>
*/
interface QueryWrapperInterface
{
/**
* Передача в запрос список выбираемых полей
* @param array $arSelect ... |
---
title: "DVWA: File Inclusion"
last_modified_at: 2020-09-21T00:24:02-05:00
categories:
- DVWA
tags:
- DVWA
- 웹해킹
toc: true
toc_label: "Table of Contents"
toc_icon: "cog"
toc_sticky: true
author_profile: true
read_time: false
---
<figure class="align-center">
<img src="{{ site.url }}{{ site.baseurl }}/ass... |
<!--
id: 3169251612
link: http://tumblr.atmos.org/post/3169251612/file-readme-kgio-kinder-gentler-i-o-for-ruby
slug: file-readme-kgio-kinder-gentler-i-o-for-ruby
date: Mon Feb 07 2011 14:11:40 GMT-0800 (PST)
publish: 2011-02-07
tags:
title: File: README [kgio - kinder, gentler I/O for Ruby]
-->
File: README [kgio - ... |
using RepairsApi.V2.Domain;
using System.Threading.Tasks;
namespace RepairsApi.V2.UseCase.Interfaces
{
#nullable enable
public interface IGetPropertyUseCase
{
Task<PropertyWithAlerts?> ExecuteAsync(string propertyReference);
}
}
|
"""
Transitive dependencies.
"""
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
load("@rules_antlr//antlr:deps.bzl", "antlr_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_d... |
; stat-interrupt.asm - Avik Das
;
; = DATA/VARIABLES ==================================================
SECTION "RAM",BSS[$c000]
SCRBAS: DB ; the base offset into the background scroll table
SCROFF: DB ; display line-specific offset into the scroll table
WNDWON: DB ; whether the window is being drawn or not
VBFLA... |
package Tail::Tool;
# Created on: 2010-10-06 14:15:40
# Create by: Ivan Wills
# $Id$
# $Revision$, $HeadURL$, $Date$
# $Revision$, $Source$, $Date$
use Moose;
use warnings;
use version;
use Carp;
use English qw/ -no_match_vars /;
use Tail::Tool::File;
our $VERSION = version->new('0.4.1');
has files => (
is ... |
# WhitelistOperation_status
Type|Name|Description|Repeated?
-|-|-|-
[`WhitelistOperation_information_E`](../enums/wlop_info_e)|`whitelistOperationInformation`|...|no
[`KeyIdentifier`](keyidentifier)|`signerOfOperation`|...|no
[`OperationStatus_E`](../enums/opstatus_e)|`operationStatus`|...|no |
# Public Pages
| Name | Description |
| ----- | ------ |
| [NAB Test Table](page-nab-test-table/index.md) | |
|
# frozen_string_literal: true
module Types
class ContactType < BaseObject
field :id, ID, null: false
field :account_id, ID, null: false, camelize: false
field :email, String, null: true
field :phone, String, null: true
field :identifier, String, null: true
field :name, String, null: true
... |
SELECT
p.Name AS ProductName
, pc.Name AS CategoryName
, p.ListPrice
, RANK() OVER
(
PARTITION BY pc.Name
ORDER BY ListPrice DESC
) AS RecordRank
FROM Production.Product AS p
JOIN Production.ProductSubcategory AS psc
ON p.ProductSubcategoryID = psc.ProductSubcategoryID
JOIN Product... |
import { HookName } from "../types";
export const onStart: HookName = 'ON_START';
export const onError: HookName = 'ERROR';
export const beforeAll: HookName = 'BEFORE_ALL';
export const afterAll: HookName = 'AFTER_ALL';
export const beforeEach: HookName = 'BEFORE_EACH';
export const afterEach: HookName = 'AFTER_EACH'; |
$PWD/scripts/bash-files/runMetric.sh apfd &
$PWD/scripts/bash-files/runMetric.sh mean-spreading &
|
import { Input } from './Input';
describe('Input component', () => {
beforeEach(() => {
document.body.innerHTML = '';
});
it('should render the input', () => {
const input = new Input({
id: 'input-id',
name: 'input-name',
placeholder: 'Input label',
required: true,
});
i... |
# **Safle Token Rates Controller**
Safle Token Rates Controller SDK
## **Installation and Usage**
> Installation
Install the package by running the command,
`npm install @getsafle/token-rates-controller`
Import the package into your project using,
`const safleTokenRatesController = require('@getsafle/token-rate... |
import React, { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import CancelIcon from '@material-ui/icons/Cancel';
import AddIcon from '@material-ui/icons/Add';
import { Paper, IconButton, Button, Grid } from '@material-ui/core';
import {
removeSchemaTaskById,
schemaAddSimpleSubtas... |
package io.idml.jackson.serder
import io.idml.datanodes.{IArray, IDouble, IFalse, IInt, IObject, IString, ITrue}
import io.idml.{IdmlNull, IdmlValue}
import com.fasterxml.jackson.core.{JsonParser, JsonToken}
import com.fasterxml.jackson.databind.`type`.TypeFactory
import com.fasterxml.jackson.databind.{Deserialization... |
package alpha.proyectos.is2.fpuna.py.alpha.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/**
*
* @author federico.torres
*/
public class PreferenceUtils {
/** Boolean para indicar si el usuario esta logueado o no */
public st... |
import 'package:clock_game/settings/logic/settings_cubit.dart';
import 'package:clock_game/storage/storage_shared_preferences.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:shared_preferences/shared_preferences.dart';
void main() {
final StorageSharedPreferences storage = StorageSharedPrefer... |
use Test::More tests => 4;
use Graphics::Color::RGB;
BEGIN {
use_ok('Chart::Clicker::Drawing::ColorAllocator');
}
my @seedcolors = (
Graphics::Color::RGB->new({
red => 0,
green => 0,
blue => 0,
alpha => 1,
name => 'black'
})
);
my $ca = Chart::Clicker... |
# Utility Scripts
This is a collection of scripts, that will find a place in most unity projects.
Most of these are very simple, but haveing them all ready to go still speads things up.
|
## 0.0.3
* Refactored the encoding and decoding of JSON messages.
## 0.0.2
* Added build configuration for the build_runner
## 0.0.1
* Initial release
|
/// The minimum voxel and size of a quad, without an orientation. To get the
/// actual corners of the quad, combine with an [`OrientedBlockFace`].
///
/// When using these values for materials and lighting, you can access them
/// using either the quad's minimum voxel coordinates or the vertex coordinates
/// given by... |
import { action } from 'typesafe-actions';
import { UserTypes, UserData } from './types';
export const loginRequest = (payload: UserData) =>
action(UserTypes.LOGIN_REQUEST, payload);
export const loginSuccess = (payload: UserData) =>
action(UserTypes.LOGIN_SUCCESS, payload);
export const loginFailure = () => act... |
package xyz.nabijaczleweli.lonning
import xyz.nabijaczleweli.lonning.loutput.LogOutput
import scala.annotation.elidable
import scala.annotation.elidable._
import scala.annotation.meta.field
/** Mixin trait for logging.
*
* @author Jędrzej
* @since 18.04.14
*/
trait Logger[T <: LogOutput] {
val logger: T
/... |
package org.covid19support.modules.session
import com.auth0.jwt.interfaces.DecodedJWT
import io.ktor.application.*
import io.ktor.http.*
import io.ktor.request.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.sessions.*
import org.covid19support.*
import org.covid19support.authentication.*
import or... |
require 'formula'
class Man2html < Formula
homepage 'http://www.oac.uci.edu/indiv/ehood/man2html.html'
url 'http://www.oit.uci.edu/indiv/ehood/tar/man2html3.0.1.tar.gz'
sha1 '18b617783ce59491db984d23d2b0c8061bff385c'
def install
bin.mkpath
man1.mkpath
system "/usr/bin/perl", "install.me", "-batch"... |
# Wstęp do programowania
Zajęcia z podstaw programownia na Podyplomowym Studium Podstaw Informatyki MFI UG
## Tutorials:
* [Zanurkuj w Pythonie](https://pl.wikibooks.org/wiki/Zanurkuj_w_Pythonie)
* [Learning Python](http://docs.python-guide.org/en/latest/intro/learning/)
* [Python Programming by Codecademy](https://ww... |
; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
define <8 x i32> @zext_8i16_to_8i32(<8 x i16> %A) nounwind uwtable readnone ssp {
;CHECK-LABEL: zext_8i16_to_8i32:
;CHECK: vpunpckhwd
;CHECK: ret
%B = zext <8 x i16> %A to <8 x i32>
ret <8 x i32>%B
}
define <4 x i64> @zext_4... |
<?php
namespace App\Observers\Division;
use App\Models\Divison\Division;
use Illuminate\Support\Facades\Cache;
class DivisionObserver
{
/**
* Handle the Division "created" event.
*
* @param \App\Models\Division $division
* @return void
*/
public function created(Division $division)... |
package com.beam
import org.apache.beam.sdk.Pipeline
import org.apache.beam.sdk.io.TextIO
import org.apache.beam.sdk.options.Validation.Required
import org.apache.beam.sdk.options.{Default, Description, PipelineOptions, PipelineOptionsFactory}
import org.apache.beam.sdk.transforms.DoFn.ProcessElement
import org.apache... |
#require 'httparty'
--begin
describe 'TestApplication' do
describe '#get_accounts' do
let(:test_account) { "http://interview.wpengine.io/v1/accounts"}
let(:response) { instance_double(HTTParty::Response, body: api_response_body) }
let(:api_response_body) { 'resp... |
---
layout: post
title: "Kotlin Part#6"
date: 2018-07-13 15:40:56
categories: kotlin
---
## NULL
kotlin의 타입 시스템은 코드에서의 null 참조의 위험을 제거할 수 있도록 설계되었습니다.
kotlin에서는 null (nullable 참조)을 가질 수 있는 참조와 (null이 아닌 참조) 가질 수 없는 참조를 구별합니다.
### nullable
기본적으로 변수는 null일수가 없습니다.
다음 코드를 보면 java와 달리 컴파일 오류가 발생합니다.
```java
var a: Str... |
from ..factory import Method
class registerDevice(Method):
device_token = None # type: "DeviceToken"
other_user_ids = None # type: "vector<int32>"
|
package com.jzz.newspeciality.java8.lambda;
/**
* @author jzz
* @date 2019/5/24
*/
public class LambdaTest {
public static void main(String[] args) {
new Thread(()-> System.out.println(1));
}
}
|
import java.util.Scanner;
public class Hipotenus {
public static void main(String[] args) {
// Kullanıcıdan veri almak için Scanner sınıfından nesne oluşturuldu.
Scanner inp = new Scanner(System.in);
// Hipotenüs hesaplama ile ilgili değişkenler oluşturuldu.
int a, b;
doubl... |
package redacted.balances
import redacted.operations.{DepositOperation, WithdrawalOperation}
import redacted.transactions.{Transaction, TransactionLog}
object BalanceCalculator {
def computeBalance(transactionsLog: TransactionLog): BigDecimal =
transactionsLog.transactions.foldLeft(BigDecimal(0)) { case (acc, T... |
use thiserror::Error;
use super::{Extent3d, Texture, TextureDimension, TextureFormat};
impl From<image::DynamicImage> for Texture {
fn from(dyn_img: image::DynamicImage) -> Self {
use bevy_core::cast_slice;
let width;
let height;
let data: Vec<u8>;
let format: TextureForma... |
<?php
namespace EcommerceBundle\Controller;
use EcommerceBundle\Entity\Avis;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RedirectResponse;
class AvisController extends Controller
{
public function ajouterAction(Requ... |
#include <gtest/gtest.h>
#include <octree_nn.h>
#include <octree_samples.h>
#include <merge_octrees.h>
TEST(VecResizeTest, TestVecResize) {
vector<int> vec0{ 3 }, gt0{ 3, 3, 3 };
resize_with_last_val(vec0, 3);
ASSERT_EQ(vec0, gt0);
vector<int> vec1{ 3, 1, 1, 3 }, gt1{3, 1, 1};
resize_with_last_val(vec1, 3)... |
text = list(input().split(' '))
word = 0
for i in text:
if i != '':
word += 1
print(word)
|
/*
Pythagoras Tree
variables : 0, 1
constants: [, ]
axiom : 0
rules : (1 → 11), (0 → 1[0]0)
*/
var rules = {
'1': '11',
'0': '1[0]0'
};
// Render an L-system string.
// origin {x, y, a}
// source '10[]'
function render(origin, source) {
var TURN = Math.PI/4; // 45 degrees
var position = origin;
var stack =... |
<?php
namespace App\Services\Support\BaseContracts;
interface IndexInterface
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Support\LazyCollection|\Illuminate\Http\Resources\Json\ResourceCollection
*/
public function index();
}
|
import { Posts } from '../../models/Posts'
import { PostStyled } from './PostStyle'
import Link from 'next/link'
import marked from 'marked'
interface Props {
post: Posts
}
const Post: React.FC<Props> = ({ post }: { post: Posts }) => {
return (
<PostStyled>
<header>
<Link href="/">[ Go back ]</L... |
import * as React from 'react';
import {createContext} from 'react';
import {userStore, postStore} from './store';
export const storeContext = createContext({
userStore,
postStore
});
// eslint-disable-next-line react/prop-types
const StoreProvider: React.FC = ({children}) => (
<storeContext.Provider value={{us... |
/*
* Copyright 2022 Google LLC
*
* 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 i... |
package com.github.roarappstudio.btkontroller.reports
@ExperimentalUnsignedTypes
@Suppress("EXPERIMENTAL_FEATURE_WARNING")
inline class AbsMouseReport(
val bytes: ByteArray = ByteArray(4)
) {
var X: Int
get() = (bytes[1].toUByte().toInt() shl 8) or bytes[0].toUByte().toInt()
set(value) {
... |
package com.github.cc3002.citricjuice.model.board;
import com.github.cc3002.citricjuice.model.contenders.Jugador;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Set;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertio... |
'use strict';
/**
* activate Gateway contract on origin class
*
* @module lib/setup/common/ActivateGateway
*/
const rootPrefix = '../../..',
contractConstants = require(rootPrefix + '/lib/globalConstant/contract'),
SubmitTransaction = require(rootPrefix + '/lib/transactions/SignSubmitTrxOnChain'),
CommonSetu... |
using UnityEngine;
using System.Collections;
using System;
public class ImagePickerCallback : AndroidJavaProxy {
public Action <string>onGetImageComplete;
public Action onGetImageCancel;
public Action onGetImageFail;
public ImagePickerCallback() : base("com.gigadrillgames.androidplugin.image.IImageCallback")... |
[](https://snyk.io/test/npm/baset-cli)
# BaseT CLI
> CLI for [BaseT](https://github.com/Igmat/baset) project.
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- END doctoc generated TOC please keep comment here t... |
DROP table IF EXISTS account_info;
DROP table IF EXISTS account_transaction;
DROP table IF EXISTS customer;
DROP table IF EXISTS account_customer;
DROP table IF EXISTS address;
DROP table IF EXISTS account_change_info;
CREATE TABLE account_info (
account_id varchar(255),
title varchar(255),
description ... |
@model IEnumerable<src.Models.Organization>
@inject UserManager<ApplicationUser> UserManager
@inject src.Data.ApplicationDbContext Context
@{
ViewData["Title"] = "Index";
Layout = "~/Views/Shared/_LayoutAdminlteWallpaper.cshtml";
ApplicationUser appUser = await UserManager.GetUserAsync(User);
Guid cust... |
<?php
namespace App\Http\Controllers;
use PDF;
use Illuminate\Http\Request;
class pdfController extends Controller
{
public function createPDF(Request $req){
$certificate = 'file://'.base_path().'/public/tcpdf.crt';
$privateKey = 'file://'.base_path().'/public/tcpdf.key';
$info... |
package io.github.volkanozkan.mancala.service;
import io.github.volkanozkan.mancala.model.Game;
import io.github.volkanozkan.mancala.model.Player;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
im... |
package edu.calpoly.flipted.ui.goals
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.RecyclerView
import edu.calpoly.flipted.R
import edu.calpoly.flipted.ui.goals.edit.*
import java.util.*
class GoalRecyclerViewAdapte... |
Facter.add('fundamentals_pe_version') do
setcode do
pe_ver = Facter.value("puppetversion").match(/Puppet Enterprise (\d+\.\d+\.\d+)/)
pe_ver[1] if pe_ver
end
end
|
// ignore-tidy-linelength
#![deny(deprecated_in_future)]
#![feature(staged_api)]
#![stable(feature = "rustc_deprecation-in-future-test", since = "1.0.0")]
#[rustc_deprecated(since = "99.99.99", reason = "effectively never")]
#[stable(feature = "rustc_deprecation-in-future-test", since = "1.0.0")]
pub struct S;
fn ... |
package uk.lobsterdoodle.namepicker.ui
import uk.lobsterdoodle.namepicker.selection.SelectionToggleEvent
data class UpdateDrawActionsEvent(
val drawCounterText: String,
val drawOptions: List<String>,
val toggleLabel: String,
val selectionToggleEvent: SelectionToggleEvent
)
|
#!/bin/sh
spark-submit --class WordCount --num-executors 10 target/scala-2.10/wordcount-application_2.10-1.0.jar
hdfs dfs -getmerge Lab6/wordcount answer
md5sum answer
|
#!/bin/bash
# Clean up
rm -f install-*-emoji.zip
for folder in android-versions/*; do
android_version=`basename $folder`
sed -i "s/VERSION/${android_version^}/" META-INF/com/google/android/updater-script
zip -r install-$android_version-emoji.zip META-INF
sed -i "s/${android_version^}/VERSION/" META-IN... |
{-# LANGUAGE TemplateHaskell, QuasiQuotes #-}
module Language.Quasi.StringSub where
import Control.Arrow ( second )
import Control.Applicative ( (<$>) )
import Data.List ( find, isPrefixOf, inits, tails )
import Text.Themplates ( parseSplices, curlySp... |
#!/bin/bash
REPO_ROOT="`cd $(dirname $0)/..; echo $PWD`"
"$REPO_ROOT/node_modules/@faast/ts-config/library/bin/build.sh" "$@"
|
import "provider.dart" show Provider;
class Container {
static final _container = <Type, _ContainerItem>{};
static void registerSingleton<T>(Provider provider) {
_container.putIfAbsent(T, () => _ContainerItem.singleton(provider));
}
static void registerTransient<T>(Provider provider) {
_container.put... |
/**
* @author Luke Brandon Farrell
* @description
*/
/* NPM - Node Package Manage */
import { call, put, delay } from "redux-saga/effects";
import { config } from "./config";
/**
* Network Saga Abstraction
*
* @param action
* @param baseUrl
* @param api
* @param type
* @param key - key for the timestamp, in... |
#include "private.h"
#include "private_opencl.h"
#include "loaders/libclblas.h"
#include "gpuarray/buffer_blas.h"
#include "gpuarray/error.h"
extern const gpuarray_buffer_ops opencl_ops;
static inline clblasOrder convO(cb_order order) {
switch (order) {
case cb_row:
return clblasRowMajor;
case cb_column:
... |
#!/usr/bin/env bash
set -ex
ORIG_DIR=`pwd`
TEMP_DIR=`mktemp -d -t docker_deploy_agent`
TEMP_DOCKER_IMAGE=temp_docker-deploy-agent:20160712-1500
DOCKER_IMAGE=docker-deploy-agent:20160712-1500
DOCKERFILE_URL=https://raw.githubusercontent.com/kjpianeta/docker-deploy-agent/master/Dockerfile
function _build_docker_image(... |
package org.eightsines.kotlinperfopt
class A39 {
private fun foo(a: IntArray) {
println("size = ${a.size}")
}
}
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
"fmt"
smithy "github.com/awslabs/smithy-go"
)
// A request contains unexpected data.
type BadRequestException struct {
Message *string
}
func (e *BadRequestException) Error() string {
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMe... |
import 'dart:math';
import "package:angular/angular.dart";
import 'package:angulardart_bootstrap/angulardart_bootstrap.dart';
import 'package:angular_forms/angular_forms.dart';
@Component (selector: "progress-demo",
templateUrl: "progress_demo.html",
directives: const [BsProgressComponent, BsToggleButtonDirec... |
/*
* Copyright (C) 2016 Incognito
*
* 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 t... |
SET autocommit=0;
START TRANSACTION;
--
-- Table structure for table `driver`
--
CREATE TABLE `driver` (
`id` bigint(20) UNSIGNED AUTO_INCREMENT NOT NULL,
`created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`created_by` varchar(255) NOT NULL DEFAULT 'anonymous',
`last_modified_at` datetime(6) NOT ... |
INSERT INTO `person` (`id`, `name`, `age`, `address`) VALUES ('1', 'wyf', '32', '合肥'); |
<?php
namespace EscolaLms\Youtube\Services;
use EscolaLms\Core\Models\User;
use EscolaLms\Youtube\Events\YtProblem;
use EscolaLms\Youtube\Exceptions\YtAuthenticateException;
use EscolaLms\Settings\Facades\AdministrableConfig;
use EscolaLms\Youtube\Dto\Contracts\YTLiveDtoContract;
use EscolaLms\Youtube\Dto\YTBroadcast... |
# test various page configuration
@testset "configurations" begin
root = joinpath("assets", "configurations")
@testset "notebook" begin
src_page_dir = joinpath(root, "without_notebook")
page = DemoPage(src_page_dir)
sec1 = page.sections[1]
@test sec1.title == "Sec1"
@tes... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
# encoding: ascii-8bit
# frozen_string_literal: true
require 'spec_helper'
describe 'Bitcoin::Protocol::Parser (addr)' do
# Mock protocl handler
class AddrHandler < Bitcoin::Protocol::Handler
attr_reader :addr, :err, :pkt
def on_addr(addr)
(@addr ||= []) << addr
end
def on_error(*err)
... |
describe('App', () => {
beforeEach(() => {
cy.visit('http://localhost:3000');
});
it('Checks the title is correct', () => {
cy.title().should('include', 'JamDodger');
});
});
|
---
layout: tag-blog
title: Data Structure
slug: datastructure
category: devlog
menu: false
order: 2
header-img: "img/datastructure.png"
---
|
/**
* Tests that are applied when grouping files in {@code
* org.anchoranalysis.plugin.io.bean.file.group}
*/
package org.anchoranalysis.plugin.io.bean.file.group.check;
|
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
/*
* Copyright (C) 2019-2020 HERE Europe B.V.
*
* 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... |
# RNN training tutorial
by Wojtek Czarnecki
_Designed for education purposes. Please do not distribute without permission_.
**Questions/Correspondence**: 2018tmlss@gmail.com
## This is a tutorial training various RNNs on simple datasets and doing some analysis.
#### Structure:
1. basic (vanilla RNN) implementation... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Posyandu extends Model
{
protected $table="posyandus";
protected $fillable = [
'nama_posyandu',
'alamat_posyandu',
];
public function kaders()
{
return $this->hasMany(Kader::class);
}
}
|
---
layout: post
title: "[Algorithm] 조합을 사용해 경우의 수 구하기"
date: 2021-07-16
excerpt: "경우의 수를 구해보자."
tags: [Java, Combination, number_of_cases]
comments: true
---
## 조합이란?
조합이란 n개의 숫자 중에서 r개의 수를 순서 없이 뽑는 경우를 말한다.
예를 들어 [1, 2, 3] 배열에서의 조합은 아래와 같이 나온다.
```java
[1, 2]
[1, 3]
[2, 3]
```
순열 이라는 것은 주어진 수열에서 순서에 따라 결과가 달라지는... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
# Jira Ticket Automation
You can leverage the Python script `open_jira_ticket.py` as an example of how to open up JIRA tickets automatically with a Cloudsplaining report description and attachments. This can speed up your assessment process.
See the script here: https://github.com/salesforce/cloudsplaining/tree/maste... |
namespace Vereesa.Core.Configuration
{
public class GameStateEmissionSettings
{
public string EmissionEndpoint { get; set; }
public string EmissionEndpointUserKey { get; set; }
}
}
|
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.utils.translation import ugettext_lazy as _
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from base.util import class_view_decorator
from base.views import Redir... |
module P06 where
import Data.List(nub,unfoldr)
import qualified Data.Set as Set
main :: String -> IO ()
main input =
do doWork (length . nub . concat)
doWork (Set.size . foldr1 Set.intersection . map Set.fromList)
where
groups = parseInput input
doWork f = print $ sum $ map f groups
type Group = [String... |
#!/bin/sh
./clean.sh
render=1
if [ $# == 1 ]; then
render=$1
fi
if [ $render == 0 ]; then
sed -i 's/#define RENDER_ENABLED.*/#define RENDER_ENABLED 0/g' src/sim.h
cmake -DRENDER=OFF .
fi
if [ $render == 1 ]; then
sed -i 's/#define RENDER_ENABLED.*/#define RENDER_ENABLED 1/g' src/sim.h
cmake -DRE... |
<!-- <li class="nav-item has-treeview">
<a href="#" class="nav-link">
<i class="nav-icon fas fa-tachometer-alt"></i>
<p>
Dashboard
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="assets/index.html" class="nav-link">
... |
# ----------------------------------------------------------------------------
#
# Package : kafka-open
# Version : 2.9
# Source repo : https://github.com/odpi/egeria
# Tested on : ubuntu_18.04
# Passing Arguments: Passing Arguments: 1.Version of package
# Script License : Apache License... |
# Exploring Monocle ...
... and other data manipulation libraries:
- chimney
- Monocle
- QuickLens
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
from investing_algorithm_framework.core.exceptions import OperationalException
from investing_algorithm_framework.core.models import OrderSide
from investing_algorithm_framework.core.models import OrderType
from tests.resources import SYMBOL_A, SYMBOL_A_PRICE
from tests.resources import TestBase, TestOrderAndPositionsO... |
const utils = require('./../../utils')
module.exports = router => {
// Generate new id and redirect to that qualification
router.get('/application/:applicationId/other-qualifications/add', (req, res) => {
const id = utils.generateRandomString()
res.redirect(`/application/${req.params.applicationId}/other-q... |
package migemo
import (
"bytes"
"container/list"
"regexp"
"unicode/utf8"
"github.com/koron/gelatin/trie"
)
func (m *matcher) Pattern() (pattern string, err error) {
if m.patterned {
return m.pattern, nil
}
b := new(bytes.Buffer)
err = m.writePattern(b, m.trie.Root())
if err != nil {
return "", err
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.