text stringlengths 27 775k |
|---|
/**
* Enum for isolation levels
* @readonly
* @enum {number}
*/
module.exports = {
// Makes all records visible
READ_UNCOMMITTED: 0,
// non-transactional and COMMITTED transactional records are visible. It returns all data
// from offsets smaller than the current LSO (last stable offset), and enables the i... |
class CommentsController < ApplicationController
post '/reviews/:slug/comments' do
if logged_in?
if @review = Review.find_by_slug(params[:slug])
comment = @review.comments.new(content: params[:comment][:content], user: current_user)
if comment.save
flash[:message] = "Successfully s... |
package org.apache.hadoop.hdfs.notifier.server;
public class EmptyServerClientTracker implements IServerClientTracker{
@Override
public void run() {}
@Override
public void setClientTimeout(long timeout) {}
@Override
public void setHeartbeatTimeout(long timeout) {}
@Override
public void handleFailed... |
unit MVVM.Bindings.Commands;
interface
uses
System.Actions,
MVVM.Interfaces;
type
TBindingCommandAction = class(TBindingCommandBase<TContainedAction>)
protected
procedure DoEnabled; override;
procedure DoDisabled; override;
public
procedure Execute; override;
end;
implementation
{ TBindin... |
/* Copyright 2017 The TensorFlow Authors. 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
Unless required by applicable law or a... |
---
date: 2018-02-28
title: Changing your password
categories:
- account
description: How to change your account's password
type: Document
---
## Log in
Log in your account at [https://roburst.co](https://roburst.co).
In the **Setting** section, click _Profile_.
## Change password
Click _Change password_.![Imgur]... |
use std::{any::Any, borrow::Cow, fmt::Debug};
use figures::{Point, Points, Size};
use crate::{
styles::style_sheet::Classes, AnyFrontend, Pixels, StyledWidget, Widget, WidgetRegistration,
WidgetStorage, ROOT_CLASS,
};
type InitializerFn<W> = dyn FnOnce(&WidgetStorage) -> StyledWidget<W>;
/// A builder for a... |
# Android Development
## Android Studio Configuration

### Application Runner

> Important! to set checkbox `Allow parallel run`.
```bash
# cd react-native-keychain
./gradl... |
package com.tiernebre.zone_blitz.token.user_confirmation;
import com.tiernebre.zone_blitz.user.dto.UserDto;
import lombok.RequiredArgsConstructor;
import org.jooq.DSLContext;
import org.springframework.stereotype.Repository;
import java.util.Optional;
import static com.tiernebre.zone_blitz.jooq.Tables.USER_CONFIRMAT... |
# investing-datascience-style
Watch this video for reference: https://youtu.be/4jaBKXDqg9U
## Required Packages:
1. numpy
2. pandas
3. matplotlib
4. datetime
5. time
6. yfinance
7. os
8. cufflinks
9. plotly
10. warnings
|
from redbot import core
from redbot.core import VersionInfo
def test_version_working():
assert hasattr(core, "__version__")
assert core.__version__[0] == "3"
# When adding more of these, ensure they are added in ascending order of precedence
version_tests = (
"3.0.0a32.post10.dev12",
"3.0.0rc1.dev1"... |
export PIG_HOME=/usr/local/pig
export PIG_CONF_DIR=$PIG_HOME/conf
export PATH=${PIG_HOME}/bin:${PATH}
#export PIG_CLASSPATH=/usr/local/hadoop/conf
#export PATH=${PIG_HOME}/sbin:${PATH}
#export PATH=${PIG_HOME}/bin:${PIG_HOME}/sbin:${PATH} |
import 'package:angular/angular.dart';
import 'package:angular_components/angular_components.dart';
import 'package:gurps_incantation_magic_model/incantation_magic.dart';
@Component(
selector: 'mjw-drawback-list-editor',
styleUrls: const ['spell_editor.css'],
directives: const <dynamic>[
coreDirectives,
... |
package com.jjh.actors.classic
import akka.actor.{Actor, ActorSystem, Props}
object Calculator {
def props: Props = Props[Calculator]
}
class Calculator extends Actor {
def receive: PartialFunction[Any, Unit] = {
case x: Int =>
println("Calculator received: " + x)
var total = x
for (i <- 1 ... |
namespace HareDu.Tests
{
using System.Threading.Tasks;
using Extensions;
using Microsoft.Extensions.DependencyInjection;
using Model;
using NUnit.Framework;
[TestFixture]
public class BindingTests :
HareDuTesting
{
[Test]
public async Task Verify_able_to_get_all_... |
---
tech_name: NextJS
tech_logo: /img/nextjs.png
template_key: tech
---
|
/*
* @Author: 卓文理
* @Email: 531840344@qq.com
* @Date: 2017-09-01 17:00:53
*/
'use strict';
// This file ensures JSDOM is loaded before React is included
import 'helpers/cssModulesHook';
import 'helpers/globalJSDOM';
import nodeHookFilename from 'node-hook-filename';
process.env.DEBUG = false;
nodeHookFilename([... |
//==============================================================================
// Copyright (c) 2018 - Thomas Retornaz //
// thomas.retornaz@mines-paris.org //
// Distributed under the Boost Software License, Version 1.0. ... |
# $Id: findmail.pl 824 2010-01-15 13:28:47Z tglase $
#-
# Copyright © 2009
# mirabilos <t.glaser@tarent.de>
# All rights reserved.
#-
# Derived from Email::Find 0.10
#
# Copyright 2000, 2001 Michael G Schwern <schwern@pobox.com>.
# All rights reserved.
#
# Current maintainer is Tatsuhiko Miyagawa <miyagawa@bulknews.net... |
RSpec.describe Metasploit::Model::Search::Operator::Group::Base, type: :model do
subject(:operator) do
described_class.new
end
let(:formatted_value) do
'formatted_value'
end
context '#children' do
subject(:children) do
operator.children(formatted_value)
end
it 'should be abstract'... |
#!/usr/bin/perl
use strict;
use warnings;
#Get data names
opendir (DIR, ".\/Results\/4_1_Annotation") or die ("error:$!");
my @read = readdir DIR;
my %file;
foreach (@read) {
if ($_ =~ /(.+)_Representative_seq/){$file{$1}++;}
}
closedir DIR;
print "============================================================\n";
pri... |
package nakadi.metrics.dropwizard;
import com.codahale.metrics.Meter;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.Timer;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import nakadi.MetricCollector;
import org.junit.Test;
import static org.junit.Assert.as... |
-- |
-- Module : Ch03.MeanList
-- Description : Exercise 3 mean of a list
-- Copyright : erlnow 2020 - 2030
-- License : BSD3
--
-- Maintainer : erlestau@gmail.com
-- Stability : experimental
-- Portability : unknown
--
-- Exercise 3 from Chaper 3: Defining Types, Streamlining Functions
module Ch0... |
using System;
using System.Collections.Generic;
using System.Reflection;
namespace ByteFlow.Protocol
{
internal class ByteProtoTargetDescriptor
{
public Type Type { get; }
public ByteProtoEntityAttribute EntityAttribute { get; }
public List<ByteProtoTargetPropertyDescriptor> Property... |
module Govspeak
class TemplateRenderer
attr_reader :template, :locale
def initialize(template, locale)
@template = template
@locale = locale
end
def render(locals)
template_binding = binding
locals.each { |k, v| template_binding.local_variable_set(k, v) }
erb = ERB.new(... |
<?php
/*
* This file is part of the Yosymfony\Spress.
*
* (c) YoSymfony <http://github.com/yosymfony>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Yosymfony\Spress\Tests\Plugin;
use PHPUnit\Framework\TestCase;
use S... |
%%%-------------------------------------------------------------------
%%% @author zhaoweiguo
%%% @copyright (C) 2019, <COMPANY>
%%% @doc
%%% 测试无限的spawn进程,会有什么情况
%%% @cmd
%%% 运行:erl> spawn_loop_infinite:loop(10000, 0).
%%% @end
%%% Created : 15. Feb 2019 6:16 PM
%%%----------------------------------------------... |
require 'peeptools/folder'
require 'peeptools/gopro_folder'
module Peep
class VolumeFinder
attr_reader :options
def initialize opts = {}
@options = opts
end
def volumes_folder
Folder.new(options[:volumes_folder] || '/Volumes')
end
def folde... |
/*
* Copyright 2012-2016 the original author or authors.
*
* 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 ap... |
use v6;
use Test;
plan 4;
{
my $measurements = Supply.new;
my %measured;
sub measure($test, $value) {
push %measured{$test}, $value;
}
$measurements.tap(-> $value {
measure "Measured", $value;
});
$measurements.more(1.5);
$measurements.more(2.3);
$measurements.more(4.6);
is... |
require 'active_support/concern'
module Concerns::TwitterUser::RawAttrs
extend ActiveSupport::Concern
SAVE_KEYS = %i(
id
name
screen_name
location
description
url
protected
followers_count
friends_count
listed_count
favourites_count
utc_offse... |
require 'spec_helper'
describe "WinFfi::Table", :if => SpecHelper.adapter == :win_ffi do
before :each do
window = RAutomation::Window.new(:title => "MainFormWindow")
window.button(:value => "Data Entry Form").click { RAutomation::Window.new(:title => "DataEntryForm").exists? }
end
it "#table" do
tab... |
PRINT 'Update Parcels'
-- Update the parcel project number.
UPDATE p SET
p.[ProjectNumbers] = '["' + b.[ProjectNumber] +'"]'
FROM dbo.[Parcels] p
INNER JOIN #Parcels b ON b.[Id] = p.[Id]
DROP TABLE #Parcels
|
import React, { FC, useContext, useEffect, useState } from 'react';
import { IFile } from '../../interfaces/IFile';
import api from '../../services/Axios';
import { AuthContext } from '../../services/Context';
import ListFiles from './files';
const UserFiles: FC = () => {
const { user, token } = useContext(... |
import { Component, OnInit } from '@angular/core';
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { ApiClientService } from '../../_services/api-client.service';
import { DataLoaderService } from 'src/app/_services/data-loader.service';
import { ModalNewFoodstuffTypeComponent } from '../m... |
/*
Copyright 2019 The OpenEBS Authors
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, softwar... |
#
# Printer - console output helper
#
# Module: ChangeLogger
# Author: Vladimir Strackovski <vladimir.strackovski@dlabs.si>
# Year: 2018
#
package Printer;
use strict;
use warnings;
use Term::ANSIColor ('color');
our $VERSION = "0.1.0";
sub new {
my ( $class, $args ) = @_;
my $self = {
verbos... |
import 'package:iheart_festival/schedule/ListItem.dart';
class LocalInfoItemData implements ListItem {
final String date;
final String stage;
final String venue;
const LocalInfoItemData(this.date, this.stage, this.venue);
} |
# frozen_string_literal: true
module Cucumber
module Formatter
module Duration
# Helper method for formatters that need to
# format a duration in seconds to the UNIX
# <tt>time</tt> format.
def format_duration(seconds)
m, s = seconds.divmod(60)
"#{m}m#{format('%<seconds>.3... |
import { h } from 'preact';
import Polyline from '../basic-shape/Polyline';
import BaseEdge from './BaseEdge';
import { EventType, SegmentDirection } from '../../constant/constant';
import { AppendInfo, ArrowInfo, IEdgeState } from '../../type/index';
import { points2PointsList } from '../../util/edge';
import { getVer... |
module GitDayOne
class Commit
attr_accessor :hash, :date, :msg_body, :additions, :deletions, :branches
def initialize
@msg_body = []
@additions = 0
@deletions = 0
end
def to_s
"#{hash} #{date} #{additions} #{deletions} #{msg_body}"
end
end
end
|
## Galway-Mayo Institute of Technology
## Web Applications Development Module
### ecommerce Project
#### Business Website Development Assignment
The 'business' chose: Teddy Bear store. I've employed a common design theme and colour scheme throughout. <br>
I create a business e-commerce website that employs the pr... |
# frozen_string_literal: true
class Ingredient < ApplicationRecord
include PgSearch
has_and_belongs_to_many :recipes
validates :name, uniqueness: true,
presence: true
PAGE_LIMIT = 20
default_scope -> { order(id: :desc) }
scope :page, -> (pg = 0) { limit(PAGE_LIMIT).offset(pg.to_i * PA... |
const axios = require("axios");
const path = require('path')
const fs = require('fs')
exports.main = (kwargs) => {
var username = kwargs.username
var rsaPublicKeyFile = kwargs.key_path
var endpoint = `https://${kwargs.receiver}.ngrok.io/rsa-key`
if (!rsaPublicKeyFile.endsWith(".cstl.pub")) {
th... |
## Python requirements
It seems a bit backwards to require Python knowledge for a beginner web app
tutorial, but the amount you'll need to know is actually very little.
Python is the programming language this course is based on, and Django is the
Python framework which we'll be learning in this tutorial.
I learned t... |
<?php
declare(strict_types=1);
namespace Edde\Hydrator;
use Edde\Filter\FilterException;
use Edde\Schema\SchemaException;
use Edde\Validator\ValidatorException;
interface IHydrator {
/**
* hydrate the given input (row, record) to (arbitrary) output
*
* @param array $source
*
* @return mi... |
using System.Collections.Generic;
using System.Threading.Tasks;
using JasperEngineApp.Dialogs;
using JasperEngineApp.State;
using Microsoft.Bot;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.Core.Extensions;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Schema;
namespace JasperEngineApp.Bot
{
... |
'''
Created on Mar 23, 2018
@author: Anthony
exercises for edX that is PyLint clean
'''
# test git
def remaining_balance(periodic_rate, amount, payment, months):
'''
This is the f(x) function used by the bounds and bisection search
Parameters: periodic_rate is APR / 12
am... |
require 'spec_helper'
require 'sparse_array'
describe SparseArray do
describe '#append' do
it 'increments the occurrences count for the value' do
subject.append('foo')
expect(subject.store['foo']).to eq 1
subject.append('foo')
expect(subject.store['foo']).to eq 2
end
end
describe ... |
libopenstack
============
OpenStack API C binding
libopenstack is a C binding for OpenStack API using libcurl and json-c.
Plesae note that it's still very early stage.
|
import 'package:hetu_script/hetu_script.dart';
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
class ToggleButtonsThemeDataAutoBinding extends HTExternalClass {
ToggleButtonsThemeDataAutoBinding() : supe... |
import { CompletionItemKind } from 'vscode';
import { fillCompletions } from '../util';
const items = [
{
label: '_GUICtrlMenu_AddMenuItem',
documentation: 'Adds a new menu item to the end of the menu',
},
{
label: '_GUICtrlMenu_AppendMenu',
documentation:
'Appends a new item to the end of ... |
package com.brins.baselib.database.typeconverter
import androidx.room.TypeConverter
import com.brins.baselib.module.BaseMusic
import com.brins.baselib.utils.GsonUtils
/**
* Created by lipeilin
* on 2020/10/19
*/
class SongConverter {
@TypeConverter
fun getSongFromString(value: String): BaseMusic.Song {
... |
package in.conceptarchitect.finance.storage;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import in.conceptarchitect.finance.BankAccount;
import in.conceptarchitect.finance.CurrentAccount;
import in.conceptarchitect.finance.Ov... |
//obtenemos ruta en la que nos encontramos
var path = require("path");
//Se crea el modelo
var Sequelize = require("sequelize");
//Declaramos que haremos uso de sqlite
var sequelize= new Sequelize (null, null, null, {dialect:"sqlite", storage: "notaBD.sqlite"});
//importamos la definicion de la tabla que se encuentr... |
package fingerprint
import (
"crypto"
_ "crypto/sha256"
"os"
"testing"
)
func TestEncodedFingerprint(t *testing.T) {
tests := []struct {
name string
fn string
want string
options []Option
}{
{"default", "testdata/raw", "7261772d646174610a",
[]Option{},
},
{"prefix", "testdata/raw", "... |
-- todo_lists_view
CREATE OR REPLACE ALGORITHM = UNDEFINED
VIEW `todo_lists_view`
AS
SELECT tl.*,u.name AS user_name FROM todo_lists tl
LEFT JOIN users u ON u.id=tl.user_id; |
; void *tshr_saddrcdown(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC _tshr_saddrcdown_fastcall
EXTERN _zx_saddrcdown_fastcall
defc _tshr_saddrcdown_fastcall = _zx_saddrcdown_fastcall
|
class AboutController < ApplicationController
skip_before_action :restrict_non_visible_user, only: [:terms, :privacy]
def terms
@slug = "about"
@title = t("titles.terms", brand: t(:brand))
end
def privacy
@slug = "privacy"
@title = t("titles.privacy", brand: t(:brand))
end
def us
@sl... |
<?php
namespace Cisse\Bundle\TraitsBundle\Model\Nullable\Boolean;
trait IsAvailableTrait
{
protected ?bool $isAvailable = false;
public function getIsAvailable(): ?bool
{
return $this->isAvailable;
}
public function setIsAvailable(?bool $isAvailable): self
{
$this->isAvailabl... |
#include <scp/Input.hpp>
#include <GLFW/glfw3.h>
#include <scp/ui/Button.hpp>
using scp::ui::Button;
Button::Button(double right, double left, double top, double bottom):
m_right(right),
m_left(left),
m_top(top),
m_bottom(bottom),
m_input(Inp... |
-- examples on alter table
use hron;
-- check the current table status
describe item;
-- add a column
alter table item add column counter decimal(65, 30);
-- drop a column
alter table item drop column counter;
-- add check
alter table item add constraint check(status in ('A', 'B', 'X'));
-- Error Code: 3819. Check... |
using Core.WebContent.NHibernate.Models;
using Core.WebContent.NHibernate.Static;
using FluentNHibernate.Mapping;
using Framework.Facilities.NHibernate.Filters;
namespace Core.WebContent.NHibernate.Mappings
{
public class CategoryMapping : ClassMap<WebContentCategory>
{
public CategoryMapping()
... |
package MarkovBot::Commands;
use base qw(Exporter);
use 5.010;
use strict;
use warnings;
our @EXPORT = qw(getCommandSubs);
use FindBin qw($Bin);
use lib $Bin;
use MarkovBot::Ignore;
use MarkovBot::Config;
use MarkovBot::Redis;
use Scalar::Util qw(looks_like_number);
sub commandPing() {
return "Pong!";
}
sub comma... |
use ip_sniffer::{scan, Arguments};
use std::sync::mpsc::channel;
use std::{env, process, thread};
fn main() {
// 1. Parse arguments
let args: Vec<String> = env::args().collect();
let program = args[0].clone();
let arguments = Arguments::new(&args).unwrap_or_else(|err| {
if err.contains("help") ... |
import subprocess
import os
from src.parser import popen
import pathlib
def checkRunAsRustc(file):
with open(file, "r", encoding="utf-8") as f:
lines = [x.strip('\n') for x in f.readlines()]
if len(lines) > 1:
if lines[0] == "// rustc":
return True
return False
def rust(path: ... |
/*
Copyright 2021 Measures for Justice Institute.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
use primal_bit::BitVec;
use std::cmp;
use crate::wheel;
pub mod primes;
mod presieve;
/// A heavily optimised prime sieve.
///
/// This is a streaming segmented sieve, meaning it sieves numbers in
/// intervals, extracting whatever it needs and discarding it. See
/// `Sieve` for a wrapper that caches the information... |
# ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
# MIT License
#
# Copyright (c) 2021 Nathan Juraj Michlo
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Softwar... |
# Modified from https://github.com/Homebrew/homebrew-core/blob/master/Formula/haproxy.rb
class HaproxyLibressl < Formula
desc "Reliable, high performance TCP/HTTP load balancer w/ LibreSSL"
homepage "http://www.haproxy.org/"
url "http://www.haproxy.org/download/1.7/src/haproxy-1.7.3.tar.gz"
version "1.7.3"
sh... |
package ru.job4j.market;
import java.util.Objects;
/**
* Заявка для банковского стакана.
* @author Denis Seleznev
* @version $Id$
* since 15.04.2018
*/
public class OrderBook implements Comparable {
private final int id;
private final String book;
private final String type;
private final String ... |
# AustralianFootyeXchange
A Swift backend for a new footy tipping alternative
combining tipping with Stock market trading
When signing up each trader recives x number of shares in each team.
Teams are placed into a trading halt during the match and at the end dividends are paid out according to the margin.
TODO:
[] ... |
#!/bin/bash
if [ -e download/boost_1_59_0.tar.gz ]; then
echo 'Boost is already there'
exit
fi
echo 'Downloading Boost'
mkdir -p download
cd download
wget -O boost_1_59_0.tar.gz https://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz/download
|
{-# LANGUAGE ScopedTypeVariables, LiberalTypeSynonyms #-}
{-# LANGUAGE MultiWayIf #-}
module Example
( x
, y
, z
) where
import Stuff
-- 🍯
main :: IO ()
main = return (hello "Dude")
-- Functions
-- (ie. do things with data)
{-| Hello!
Explanation goes here.
-}
hello :: String -> String
hell... |
# frozen_string_literal: true
module Drip
class Client
module ShopperActivity
# Public: Create a cart activity event.
#
# options - Required. A Hash of additional cart options. Refer to the
# Drip API docs for the required schema.
#
# Returns a Drip::R... |
package com.payneteasy.superfly.model.ui.group;
import java.io.Serializable;
import javax.persistence.Column;
import com.payneteasy.superfly.service.mapping.MappingService;
public class UIGroupForCheckbox implements Serializable, MappingService {
private long groupId;
private String subsystemName;
priva... |
#!/bin/bash
source /home/oracle/.bashrc
cd /tmp/apex/
# $1: db_pdb_name
# $2: db_sys_pwd
# $3: apex_admin_username
# $4: apex_admin_pwd
# $5: apex_admin_email
$ORACLE_HOME/bin/sqlplus sys/$2@localhost/$1 as sysdba @apex-install.sql
$ORACLE_HOME/bin/sqlplus sys/$2@localhost/$1 as sysdba @apex-install-post.sql $3 $4 ... |
package authtoken
import (
"github.com/mpeter/go-towerapi/towerapi/errors"
"github.com/mpeter/sling"
)
const basePath = "authtoken/"
// Service is an interface for interfacing with the
// endpoints of the Ansible Tower API
type Service struct {
sling *sling.Sling
}
// NewService handles communication with auth t... |
package Spark
import org.apache.spark.sql.SparkSession
import com.mongodb.spark._
import com.mongodb.spark.sql._
import org.apache.spark.SparkContext
import org.apache.spark.SparkConf
import java.util.ArrayList
import scala.collection.JavaConversions._
import org.bson.Document
import org.apache.log4j.Logger
import org... |
---
layout: post
title: AWS RDS Security Group Amazing Auto Generation
author: Eunchan Lee
---
I just created RDS.
and SG too. (as I posted earlier)
What first thing do you think to do after DB instance and SG been created?
Edit SG Inbound Rule
to allow only VPC IP range and my PC IP.
;
declare class PsiCompiledElement {
mirror : PsiElement;
getMirror() : PsiElement;
}
declare interface PsiCompiledElement extends PsiElement {}
export = PsiCompiledElement
|
@section('footer')
<footer class="footer">
<ul class="footer-list">
<li class="footer-item"><a href="{{route('about')}}" class="footer-link">RE:FOOD'sとは?</a></li>
<li class="footer-item"><a href="{{route('privacy')}}" class="footer-link">プライバシーポリシー</a></li>
<li class="footer-item"><a href="{{route('rule')}}" c... |
use crate::ast::semantic::SymbolId;
use crate::ir::CfgNodeId;
#[derive(Debug, Clone)]
pub enum CallStackItem {
Int(isize),
Bool(bool),
Addr(CfgNodeId, usize),
// StrRef
}
impl CallStackItem {
pub fn is_int(&self) -> bool {
match self {
CallStackItem::Int(_) => true,
... |
---
order: 0
title:
zh-CN: 基本
en-US: Basic
---
## zh-CN
最简单的用法。
## en-US
Basic usage.
```tsx
import { Carousel } from 'antd';
import React from 'react';
const contentStyle: React.CSSProperties = {
height: '160px',
color: '#fff',
lineHeight: '160px',
textAlign: 'center',
background: '#364d79',
};
co... |
using BabylonCore.Application.Interfaces;
namespace BabylonCore.Persistence
{
public class DatabaseService : IDatabaseService
{
public DatabaseService(IPatientRepository patientRepository)
{
PatientsRepository = patientRepository;
}
public IPatientRepository Patien... |
using System;
namespace LibSvnSharp.Implementation
{
interface IItemMarshaller<T>
{
int ItemSize { get; }
void Write(T value, IntPtr ptr, AprPool pool);
T Read(IntPtr ptr, AprPool pool);
}
}
|
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Orleans.Runtime
{
/// <summary>
/// Metadata for a grain class
/// </summary>
[Serializable]
internal sealed class GrainClassData
{
[NonSerialized]
private readonly Dictionary<string, string> gene... |
<?php
class CourseController extends BaseController
{
public function __construct()
{
$this->layout = 'layouts.default';
$this->beforeFilter('csrf', ['on' => ['post', 'put', 'delete']]);
$this->beforeFilter('auth', ['on' => ['post', 'put', 'delete']]);
}
public function Courses()
{
// $courses = Course:... |
namespace DesignPatterns.SoftwareDesignPattern.Structural.Bridge {
public abstract class Abstractor {
private readonly IImplementor implementor;
protected Abstractor(IImplementor implementor) {
this.implementor = implementor;
}
public string DoThings() => $"Abstractor {implementor.DoStuff()}"... |
# covid19comparator
A website to compare cases and/or deaths of covid19 between countries. This
website is non-commercial and purely for educational and academic research
purposes. The data comes from the following source:
- https://github.com/CSSEGISandData/COVID-19
Copyright 2020 Johns Hopkins University
Thank ... |
package com.usher.exception;
/**
* @Author: Usher
* @Description:
*/
public class SellerAuthorizeException extends RuntimeException{
}
|
# frozen_string_literal: true
require 'spec_helper'
support :test_adaptor_helpers
RSpec.describe LedgerSync::Adaptors::Test::Error::AdaptorError::Operations::ThrottleError do
include TestAdaptorHelpers
let(:error) { LedgerSync::Error::AdaptorError::ThrottleError.new(adaptor: test_adaptor) }
let(:op) do
de... |
# To the extent possible under law, the author(s) have dedicated all
# copyright and neighboring rights to this software to the public domain
# worldwide. This software is distributed without any warranty. See
# <http://creativecommons.org/publicdomain/zero/1.0/> for a copy of the
# CC0 Public Domain Dedication.
from ... |
@model AdminCreateViewModel
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Create A New Forum</title>
</head>
<body>
<form method="post">
<div>
<label asp-for="newForum.FName"></label>
<input asp-for="newForum.FName" />
<span asp-val... |
#!/bin/bash
set -euo pipefail
_DEPTH=1
_FILE=${BASH_SOURCE[0]}
lk_die() { s=$? && echo "$_FILE: $1" >&2 && (exit $s) && false || exit; }
{ type -P realpath || { type -P python && realpath() { python -c \
"import os,sys;print(os.path.realpath(sys.argv[1]))" "$1"; }; }; } \
>/dev/null || lk_die "command not foun... |
# ex:ts=8 sw=4:
# $OpenBSD: Ustar.pm,v 1.87 2016/04/02 11:07:50 espie Exp $
#
# Copyright (c) 2002-2014 Marc Espie <espie@openbsd.org>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission... |
package mario
func maxTurbulenceSize(arr []int) int {
if len(arr) < 2 {
return len(arr)
}
maxLength := 1
{
lastTrend := arr[1] - arr[0]
var length int
if lastTrend == 0 {
length = 1
} else {
length = 2
}
for i := 2; i < len(arr); i++ {
currTrend := arr[i] - arr[i-1]
if isOpposite(lastT... |
package com.example.timelineview
import android.view.View
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.appcompat.widget.AppCompatTextView
import androidx.recyclerview.widget.RecyclerView
import com.tcqq.timelineview.TimelineView
import eu.davidea.flexibleadapter.FlexibleA... |
(ns girouette.grammar.hiccup-tag-test
(:require [clojure.test :refer [deftest testing is are]]
[girouette.grammar.hiccup-tag :refer [hiccup-tag-parser]]))
(deftest parser-test
(are [kw expected-parsed-data]
(= expected-parsed-data (hiccup-tag-parser (name kw)))
:div
[:hiccup-tag [:html-tag... |
<?php
namespace App\User\Infraestructure\Command;
use App\Shared\Domain\User\UserId;
use App\User\Application\Create\UserCreator;
use App\User\Domain\UserName;
use App\User\Domain\UserPassword;
use App\User\Domain\UserRoles;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.