text stringlengths 27 775k |
|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace SmtpRedirector.Server.Data
{
public class MailMessage
{
public Guid Id { get; set; }
public DateTime RecievedDateTime { get; set; }
public str... |
## Check If N and Its Double Exist
Difficulty: Easy
Problem link: https://leetcode.com/problems/check-if-n-and-its-double-exist/
|
package mongostore
import (
"testing"
mgo "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)
func TestModels(t *testing.T) {
var (
modelNocacher = &nocacherModel{
Idx: bson.NewObjectId(),
Regexp: "askdjalks",
EEnabled: true,
}
modelPathRuler = &pathRulerModel{
Idx: bson.NewObjectId(),
... |
import * as utils from 'helpers/utils';
export class MiscAssistHelper {
constructor(game, assister, target, assistPos) {
this.game = game;
this.assister = assister;
this.target = target;
this.assistPos = assistPos;
}
miscAssist() {
switch(this.assister.assist) {
... |
package logging
class ConsoleAppenderOptions(
val level: LogLevel = LogLevel.DEBUG,
val verbose: Boolean = true
) |
<?php
session_start();
require_once 'session.class.php';
session::destroy();
header('Location: index.php?msg=You have been logged out');
exit;
?> |
# frozen_string_literal: true
class ManageAction
DOUBLE_OPT_IN_COUNTRIES = %w[DE AT].freeze
def self.create(params, extra_params: {}, skip_queue: false, skip_counter: false)
new(params, extra_params: extra_params, skip_queue: skip_queue, skip_counter: skip_counter).create
end
def initialize(params, extra... |
# Run an example component
This guide shows you how to build Fuchsia to include an example package
from Fuchsia's source [`//examples`](/examples/)
directory and run that component on your Fuchsia device.
Note: This guide is specific to [components v1](/docs/glossary.md#components-v1) and uses
[component manifests](/... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Tbl_stockist_package_inventory extends Model
{
protected $table = 'tbl_stockist_package_inventory';
public $timestamps = false;
protected $fillable = [
'product_package_id',
'stockist_id',
'package_quantity',
'archived'... |
<?php
declare(strict_types = 1);
namespace Lwf\Debug;
/**
* ErrorHandler converts a PHP error into a \ErrorException
*/
class ErrorHandler
{
/**
* Handle a PHP error and throw a \ErrorException
*
* @param int $severity The severity of the error
* @param string $message The message of th... |
import { forwardRef, InputHTMLAttributes } from "react";
import { UseFormRegister } from "react-hook-form";
import { InputsSignIn } from "../Modals/SignIn";
import { InputsSignUp } from "../Modals/SignUp";
import { Container } from "./styles";
type InputFieldProps = InputHTMLAttributes<HTMLInputElement> & {
labelI... |
boilerplate: angularjs
======================
A project boilerplate for prototyping web apps using Jekyll and Bootstrap 3.
This boilerplate uses:
- jQuery 2.1.1
- Bootstrap 3.2.0
- Font-Awesome 4.1.0
### Table of Contents
1. [Usage](#usage): how to use this boilerplate
2. [Directory Structure](#directory-structure... |
while True:
try:
a = int(input('請輸入第一位數字:'))
b = int(input('請輸入第二位數字:'))
c = int(input('請選擇何種運算符號?\n1.加, 2.減, 3.乘, 4.除'))
if c == 1:
print('{} 和 {} 相加後的答案為:{}'.format(a, b, a+b))
d = input('要繼續嗎?按Q離開')
if d == 'q' or d == 'Q':
break
elif c == 2:
print('{} 和 {} 相減後的答案為:{}'.format(a, b, a-b))
... |
/**
* Copyright (c) 2016 广东天波信息技术股份有限公司
* @author linhx
*/
package com.common.sdk.printer;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.content.Context;
import android.graphics.Bitmap;
import com.common.sdk.InternalErrorException;
import com.co... |
package com.jsongo.core.network
import com.google.gson.*
import com.jsongo.core.BaseCore
import com.jsongo.core.R
import com.jsongo.core.constant.ConstConf
import com.safframework.log.LogLevel
import com.safframework.log.okhttp.LoggingInterceptor
import okhttp3.Cache
import okhttp3.OkHttpClient
import retrofit2.Retrof... |
import {RequiredEncryptedConnectionOptions, Node, SyntaxKind} from "../../../parser-node";
import {TokenKind} from "../../../scanner";
import {CustomSyntaxKind, makeCustomRule} from "../../factory";
import {optional, zeroOrMore} from "../../../nearley-wrapper";
import {getTextRange, toValueNode} from "../../parse-util"... |
#ifndef FILEREADER_H
#define FILEREADER_H
#include <vector>
#include <iterator>
#include <string>
#include <algorithm>
#include <map>
// #include <boost/algorithm/string.hpp>
using namespace std;
# include "../entities/Point.h"
# include "../entities/Mbr.h"
class FileReader
{
string filename;
string delimeter;
... |
class UpdateVestalVersions < ActiveRecord::Migration
def self.up
add_column :versions, :reverted_from, :integer
rename_column :versions, :changes, :modifications
end
def self.down
remove_column :versions, :reverted_from
rename_column :versions, :modifications, :changes
end
end
|
#!/bin/bash
langage="Java+PHP+Javascript+Python"
old=IFS
IFS=+
set $langage
IFS=$old
echo $1
echo $2
echo $3
echo $4
IFS=$old
set $langage |
package main
import (
"fmt"
"os"
"text/template"
"github.com/urfave/cli"
)
var (
GenerateK8sSpecCommand = cli.Command{
Name: "generate-k8s-spec",
Usage: "Generate k8s ReplicationController specs",
Category: "Kubernetes spec file generation",
Action: generateK8sSpec,
}
GenerateK8sNetPolicyComm... |
# Elm project
### Prerequisites
Follow official install instructions for your setup:
- [Elm](http://elm-lang.org/) 0.19
- node
- yarn
### Development build
- `yarn start` for a hot-reload dev server
### Tests
- `yarn test`
### Production build
- `yarn build`
### Deployment
#### Needs to be configured in settings
-... |
require 'argo/property'
module Argo
class NumberProperty < Property
end
end
|
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "generator.h"
#import <algorithm>
#import <iterator>
using std::ofstream;
using std::string;
using std::vector;
static const string in = " ";... |
package io.continuum.bokeh
package tests
import org.specs2.mutable._
class PlottingSpec extends Specification {
"bokeh.plotting API" should {
"support markers" in {
val fig = new Figure()
object source extends ColumnDataSource {
val x = column(List(1.0, 2.0, 3.0))
... |
#!/usr/bin/ruby
$:.unshift '../lib'
require 'tempfile'
require 'test/unit'
require 'socket'
require 'xmpp4r/stream'
require 'xmpp4r/semaphore'
include Jabber
class StreamTest < Test::Unit::TestCase
def setup
@tmpfile = Tempfile::new("StreamSendTest")
@tmpfilepath = @tmpfile.path()
@tmpfile.unlink
@... |
## December 15th 2017
Ugh, Boost didn't work either. Going to try just a straight port to wiringpy or something.
Still waiting on some supplies before full construction can begin. But plans are being laid. LED spots tested, etc.
Going to look into a shade of gold to match the existing paint, for the scuffs from diss... |
'''
Created on April 23, 2019
@author: gsnyder
Assign a user to a user group
'''
import argparse
import json
import logging
from pprint import pprint
import sys
from blackduck.HubRestApi import HubInstance
parser = argparse.ArgumentParser("Create a new user")
parser.add_argument("user")
parser.add_argument("user_... |
# encoding: utf-8
module Moip
class Model
include ActiveModel::Validations
include ActiveModel::Serialization
def to_json
hash = self.serializable_hash.delete_if {|key, value| value.nil? }
hash.to_json
end
def set_parameters params
params.each do |key, value|
self.send("#{key}=".to_sym, valu... |
#!/usr/bin/env python3
################ mylis: Tiny Scheme Environment in Python 3.10
## Additional runtime support by Luciano Ramalho for lis.py by
## Peter Norvig (c) 2010-18; See http://norvig.com/lispy.html
import operator as op
import readline # "unused" import to enable readline in input()
import sys
from coll... |
import { Box, Text, Link as HTMLLink } from '@theme-ui/components';
import Layout from './layout';
import SEO from './seo';
import Link from './link';
import PageListHeading from './page-list-heading';
import DraftBadge from './draft-badge';
const NotesPage = (props) => (
<Layout pageContext={props.pageContext}>
... |
package com.endava.cats.fuzzer.headers.base;
import com.endava.cats.io.ServiceCaller;
import com.endava.cats.model.FuzzingStrategy;
import com.endava.cats.report.TestCaseListener;
import java.util.List;
import java.util.stream.Collectors;
/**
* Base class for fuzzers sending Control Chars or Unicode Separators in h... |
package app;/* BEGIN_HEADER TreeView 3
*
* Please refer to our LICENSE file if you wish to make changes to this software
*
* END_HEADER
*/
import gui.labels.url.UrlPresets;
import gui.window.TVController;
import gui.window.TreeViewFrame;
import model.data.matrix.... |
package uk.co.barbuzz.appwidget.widget.click
import android.annotation.SuppressLint
import android.app.Notification
import android.content.Intent
import android.content.pm.PackageManager
import uk.co.barbuzz.appwidget.R
import uk.co.barbuzz.appwidget.base.navigation.ComponentCommand
import uk.co.barbuzz.appwidget.widg... |
require './daemon'
require './kafka_client'
class ConsumerDaemon
WAIT_MAX = 1
include Services
def initialize
@kafka = kafka_client
@daemon = Daemon.new(0.5, true, self)
end
def exec
message = @kafka.read_message
movie = JSON.parse(message, symbolize_names: true)
log_info('Serving ticke... |
---
name: "\U0001F41B Bug Report"
about: "If something isn't working as expected \U0001F914."
title: ''
labels: bug
assignees: ''
---
<!--
Thanks for reporting an issue 😄 to `react-building-blocks`!
Before you submit, please search open / closed issues before submitting, since someone else might
have asked th... |
use std::collections::VecDeque;
use std::ffi::{CString, OsStr, OsString};
use std::io;
use std::os::unix::prelude::*;
use std::path::{Path, PathBuf};
use crate::{constants, open_beneath, util, AsPath, LookupFlags};
mod file_meta;
mod iter;
mod open_opts;
pub use file_meta::{FileType, Metadata};
pub use iter::{Entry,... |
package Catmandu::Bag::IdGenerator::Incremental;
use Catmandu::Sane;
use Moo;
with 'Catmandu::Bag::IdGenerator';
sub generate {
my ($self, $bag) = @_;
my $id;
$bag->store->transaction(
sub {
my $info_bag = $bag->store->bag('info');
my $info_key = $bag->name . '_id';
... |
class Flight < ApplicationRecord
belongs_to :user
belongs_to :airline
validates_presence_of :departure, :return, :cost, :origin_city, :destination_city
validates :number, length: { minimum: 6 }
end
|
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -Wall -fno-warn-tabs #-}
import Control.Monad
import Data.Maybe
import Data.List
import Data.Bits
import Data.Word
import Data.Char
import Data.ByteString (ByteString)
import System.IO
import System.Environment
import System.Exit
import System.Posix.User
import Syst... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import RSVP from 'rsvp';
import sinon from 'sinon';
import { waitUntil } from '@ember/test-helpers';
import { A } from '@ember/array';
import onTransitionEnd from 'ember-transition-end/utils/on-transition-end';
import { run } from '... |
import axios from 'axios';
import api from '../apiHost';
import token from '../auth/token';
const url = `${api}/admin/store`;
const getStoreCandidate = async () => {
const response = await axios.get(`${url}/candidate`, token);
return response.data;
}
const acceptStore = async (id) => {
const response = a... |
package JSON::Schema::Validator::Context;
use strict;
use warnings;
use utf8;
use JSON::Schema::Validator::ValidationError;
use Class::Accessor::Lite (
ro => [qw(root_validator root_schema errors positions)],
);
sub new {
my ($class, $validator, $schema) = @_;
return bless {
root_validator => $va... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//This script creates a continious background effect by replacing two identical background images interchangeably.
public class RepeatingBackground : MonoBehaviour
{
private float groundLength;
void Awake()
{
groundLeng... |
#include <QApplication>
#include <QQmlApplicationEngine>
#include <qqml.h>
#include "ffmpegplayer.h"
FFMPEGLogger* FFMPEGLogger::_instance = nullptr;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QQmlApplicationEngine engine;
qmlRegisterType<FFMPEGPlayer>("qmlffmpeg", 1, ... |
#-- encoding: UTF-8
ActiveRecord::Base.send :include, ActiveRecord::Acts::Tree
|
import React from 'react'
import { shallow } from 'enzyme'
import toJson from 'enzyme-to-json'
import AppContainer from '../AppContainer'
describe('(Containers) AppContainer', () => {
it('Should render component properly', () => {
const props = {
checkToken: jest.fn(),
store: {
getState: jes... |
/* canvas test
** 20160119
** yiru
*/
var draw={
cancelIndex:0,
cancelList:[],
sel:'size',
getCanvas:function(){
return document.getElementById('canvas');
},
init:function(img){
var toolbar=document.getElementsByClassName('c-toolbar')[0];
toolbar.addEventListener('click',draw.tools,false);
var canvas:a... |
package cieslak.matty.worklog.activity
import android.app.DatePickerDialog
import android.app.TimePickerDialog
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.DatePicker
import android.widget.TextView
import android.widget.TimePicker
im... |
# Copyright (C) 2016-2018 Virgil Security Inc.
#
# Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# (1) Redistribution... |
package com.github.littlelightmc.essential.base
import com.github.littlelightmc.essential.defaultLocale
import pro.darc.cake.core.inject.LifeCycle
import pro.darc.cake.core.inject.LifeInject
import pro.darc.cake.module.command.command
import pro.darc.cake.module.extensions.cake
object Essential {
@LifeIn... |
import React, { Component, Fragment } from "react";
import PropTypes from "prop-types";
import Grid from "@material-ui/core/Grid";
import { withStyles } from "@material-ui/core/styles";
import CatalogGrid from "@reactioncommerce/components/CatalogGrid/v1";
import PageLoading from "components/PageLoading";
import PageSt... |
import { Failure } from '../definitions/Failure'
export interface Entity {
/**
* Validate the entity so that it has correct values
* @return all errors, or empty list if the entity is valid
*/
validate(): Failure.Info[]
}
|
package models.user
import scala.concurrent.ExecutionContext.Implicits.global
import slick.driver.H2Driver.api._
import scala.concurrent.{Future, ExecutionContext}
import play.api.Play
import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfig}
import slick.driver.JdbcProfile
class Emails(tag: Tag) extends T... |
#!/bin/bash
a=24 # a的二進位值為 11000
a=$((a<<1)) # 位移後a的二進位值為 110000,換算為10進位為48
echo $a
b=31 # b的二進位值為 11111
b=$((b>>1)) # 位移後a的二進位值為 1111,換算為10進位為15
echo $b
|
/*Updating idoc_drawing */
UPDATE imw_dev_scan.idoc_drawing I INNER JOIN chart_drawings D ON I.drawing_for_master_id = IFNULL(D.import_id,0)
AND I.drawing_for = CASE D.exam_name WHEN 'LA' THEN 'LA'
WHEN 'FundusExam' THEN 'Fundus_Exam'
WHEN 'SLE' THEN 'SLE'
... |
#!./perl -w
# t/dumpperl.t - test all branches of, and modes of triggering, Dumpperl()
BEGIN {
if ($ENV{PERL_CORE}){
require Config; import Config;
no warnings 'once';
if ($Config{'extensions'} !~ /\bData\/Dumper\b/) {
print "1..0 # Skip: Data::Dumper was not built\n";
... |
use crate::models::{
Position,
TString,
};
use scroll::{
ctx::{
SizeWith,
TryFromCtx,
TryIntoCtx,
},
Endian,
Error as ScrollError,
Pread,
Pwrite,
LE,
};
#[derive(Clone, Debug, PartialEq, Eq, Pread, Pwrite)]
#[repr(C)]
pub struct Sign {
pub text: TString,
pub position: Position,
}
imp... |
-module(shackle_test_utils).
-export([
preload_modules/0
]).
%% public
preload_modules() ->
Filenames = filelib:wildcard("_build/default/lib/*/ebin/*.beam"),
Rootnames = [filename:rootname(Filename, ".beam") || Filename <- Filenames],
lists:foreach(fun code:load_abs/1, Rootnames).
|
// Vendors.
import axios from "axios";
// Custom.
import GraphClient from "../VoApi/GraphClient";
import VoBase from "../VoBase";
// import VoAuth from '../VoAuth';
import VoConfig from "../VoConfig";
class VoDocs extends VoBase {
graphqlClient: any;
init() {
this.graphqlClient = GraphClient.createGraphClien... |
package com.junerver.cloudnote.bean
import com.junerver.cloudnote.db.entity.Note
/**
* @Description 对应全部日志数据的模型
* @Author Junerver
* Created at 2021/10/14 10:10
*/
data class GetAllNoteResp(var results: List<Note>) |
import React from 'react';
import InputGroup from './InputGroup'
export default InputGroup; |
/*
* Copyright (c) 2021 Kyungyoon Kim(pemassi).
* All rights reserved.
*/
package io.pemassi.pata.exceptions
data class DataModelUnsupportedTypeException(
override val message: String
): Exception(message) |
import { Pipe, PipeTransform, OnDestroy } from '@angular/core';
import { CustomerService } from "../api/customer.service";
import { Country } from "../api/api.model";
import { Subscription } from "rxjs";
@Pipe({
name: 'country'
})
export class CountryPipe implements PipeTransform, OnDestroy {
private countries: Co... |
<?php
return [
'view_manager' => [
'display_not_found_reason' => false,
'display_exceptions' => false,
],
];
|
# A shaded view of the CSC projection. You need OpenGL for this.
require 'quad_sphere/csc'
require 'opengl'
class CSCShadedApp
WINDOW_SIZE = 480
# How many subdivisions of each cube face. Can be raised for
# smoother shading, at the cost of model complexity.
FACE_SUBDIV = 10
def run
@ang1 = 0
@... |
package api
import (
"encoding/json"
"github.com/MadhavJivrajani/go-corona-go/utils"
)
type arrayJson []json.RawMessage
func PlotGeneral(key string) ([]float64, error) {
body, err := ApiIndiaTimeline()
if err != nil {
var empty []float64
return empty, err
}
var data arrayJson
json.Unmarshal(body, &data)... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Shipping extends Model
{
public $timetamps= false;
protected $fillabe=[
'shipping_name' ,'shipping_address','shipping_phone','shipping_email','shipping_notes','shipping_method'];
protected $primaryKey ='shipping_id';
protected... |
/// Forward hatch pattern bar chart example.
///
/// The second series of bars is rendered with a pattern by defining a
/// fillPatternFn mapping function.
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
class PatternForwardHatchBarChart extends StatelessWidget {
final... |
using Domain.Core.ValueObjects;
using System;
using System.Collections.Generic;
using System.Text;
namespace Archai.CharacterCreator.Domain.ValueObject
{
public class SpriteData
{
public uint Width { get; }
public uint Height { get; }
public Color[,] Data { get; }
public Spr... |
package com.zendesk.scalaflow.sugar
import com.google.cloud.dataflow.sdk.options.PipelineOptions.CheckEnabled._
import com.google.cloud.dataflow.sdk.testing.{DataflowAssert, TestPipeline}
import com.google.cloud.dataflow.sdk.transforms.Create
import org.scalatest.{FlatSpec, Matchers}
import com.zendesk.scalaflow._
... |
# Browserify Babel sample
A sample app on using Browserify + Babel
[Video In Spanish](https://www.youtube.com/watch?v=ITM6egxpHIg)
|
# QRReader
A Java program to read QR codes from PDF files and dump the decoded QR codes into a csv file.
|
const Joi = require('joi');
const envVarsSchema = Joi.object()
.keys({
NODE_ENV: Joi.string().valid('production', 'development', 'test').required(),
PORT: Joi.number().default(3000),
})
.unknown();
module.exports = envVarsSchema;
|
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace Microsoft.Azure.II... |
using UnityEngine;
using System.Collections;
public class camera : MonoBehaviour {
public Transform camTrans;
public GameObject boatObj;
// Use this for initialization
void Start () {
GameObject mainCamObj = GameObject.Find("Main Camera");
boatObj = GameObject.Find("BoatContainer"... |
import 'package:counter/main.dart';
import 'package:redux_saga/redux_saga.dart';
import 'package:test/test.dart';
void main() {
group('Middleware Tests', () {
test('incrementAsync Test', () {
Iterable gen = incrementAsync();
Iterator iterator = gen.iterator;
iterator.moveNext();
expect... |
import { FinMath as math } from '../src/math'
describe('FinMath', () => {
describe('constructor', () => {
it('should create an instance of Math without exception when all arguments passed', () => {
expect(() => new math(1)).not.toThrow()
})
it('should create an instance of Math without exception w... |
/* ----------------------------------------------------------------------------*
* *
M I N I M A L I S T I C U L P E N T I T Y
* *
... |
require "nokogiri"
require "kaminari"
require "simple_form"
require "semantic-ui-sass"
require "ckeditor"
require "active_decorator"
require "jquery-rails"
require "jquery-ui-rails"
require "cocoon"
require "pry"
require "pry-rails"
require "pry-nav"
require "better_errors"
require "binding_of_caller"
module Fanta
c... |
<?php
namespace App\Services;
use App\Exceptions\UserNotAllowedException;
use App\Models\Task;
use App\Models\User;
class TaskService
{
/**
* Handle task list
* @param App\Models\User
* @param string $q
* @return array
*/
public function list(
User $user,
string $q = ''
)
{
if(!em... |
if [ "$TP_HOME" = "" ] ; then
echo "ERROR: TP_HOME not found in your environment."
echo
echo "Please, set the TP_HOME variable in your environment to match the"
echo "location of the Tableau Prover version you want to use."
exit 1
fi
$TP_HOME/bin/analysers/clean.sh
$TP_HOME/bin/analysers/cwSAT.sh
$TP_HOM... |
module Preprocess.Type where
import qualified Interpreter.AST as I
import qualified Parse.AST as P
preprocessType :: P.Type -> I.Type
preprocessType (P.NamedT name) = I.NamedType name
preprocessType (P.ListT t) = I.ListType (preprocessType t)
preprocessType (P.PureFunT a b) = I.PureFunctionType (preprocessType a) (pr... |
---
title: netlify demo
date: 2021-01-14T08:57:59.838Z
description: just testing
---

![]()
just testing you |
#!/bin/bash -x
set -o errexit
set -o nounset
set -o pipefail
# Install the latest kernel-ml (mainline kernel) from elrepo's elrepo-kernel yum
# repository
yum -y install http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
# Install kernel-ml-devel as its needed for when guest additions are compiled
yum -y ... |
module.exports = function (grunt, pkg) {
grunt.config.merge({
webfont: {
rh_icon: {
src: 'src/iconfont/vectors/rh_icon/*.svg',
dest: 'dist/fonts/rh_icon',
destCss: 'dist/files/',
options: {
fontFilename: 'rh-iconfont-{hash}',
relativeFontPath: '../fonts/r... |
# Œ 1224 ‰
---
] nwnk dwsu drsu pRB jwcY mn qn ko AwDwr ]2]78]101] swrg
mhlw 5 ] mYlw hir ky nwm ibnu jIau ] iqin pRiB swcY Awip BulwieAw
ibKY TgaurI pIau ]1] rhwau ] koit jnm BRmqO bhu BWqI iQiq nhI kqhU
pweI ] pUrw siqguru shij n ByitAw swkqu AwvY jweI ]1] rwiK lyhu pRB
sMimRQ dwqy qum pRB Agm Apwr ] nwnk dws qyrI sr... |
import React from 'react'
import style from './button.css'
const Button = props => (
<button
className={style.button}
onClick={() => props.onClick()}
disabled={props.disabled}
><p>{props.children}</p>
</button>
)
Button.propTypes = {
onClick: React.PropTypes.func,
children: React.PropTypes.strin... |
# frozen_string_literal: true
require_relative 'boot'
require 'rails/all'
if (google_domain = ENV["GOOGLE_DOMAIN"]) && !ENV['EMAIL_DOMAIN']
warn "Stop using deprecated GOOGLE_DOMAIN"
ENV["EMAIL_DOMAIN"] = google_domain.sub('@', '')
end
Bundler.require(:preload)
Bundler.require(:assets) if Rails.env.development? |... |
import { ACTIONS } from '../actions/game';
import { unlockThresholds, unlocks } from '../data/level-up-definitions'
export default function(state = {}, action) {
switch (action.type) {
case ACTIONS.TICK: {
const [unlockPopType, popRequired] = unlockThresholds[state.island.level - 1];
const currentPop... |
ActiveSupport::Inflector.inflections(:_gem_active_reporter) do |inflect|
sys_inflect = ActiveSupport::Inflector.inflections
%i(acronyms humans uncountables singulars plurals acronyms_camelize_regex acronyms_underscore_regex).each do |var|
inflect.instance_variable_set("@#{var}", sys_inflect.send(var).dup)
end... |
const iterHillClimbing = (state, problem, candidate) => {
const value = problem.func(candidate)
state.evaluations++
if (value <= state.value) { return false }
state.value = value
state.solution = candidate
return true
}
module.exports = { iterHillClimbing }
|
package com.lujiahao.java8inaction.chapter5;
import lombok.Data;
/**
* @author lujiahao
* @date 2019-03-11 17:17
*/
@Data
public class Trader {
public final String name;
public final String city;
}
|
module Lib.Server.Handler.PostLogin where
import Lib.Data.Permission
import Lib.Api.Types
import Lib.Server.Types
import Blaze.ByteString.Builder ( toByteString )
import Servant hiding ( BadPassword
... |
import { html } from 'lit-html'
export default {
// This is the folder where this component shows in Storybook.
title: 'Atomic Elements/VisuallyHidden',
}
export const Examples = () => html`
<gds-visually-hidden>
<a href="#">Visually hidden link</a>
</gds-visually-hidden>
<gds-visually-hidden focusable... |
package de.deutschebahn.bahnhoflive.view
import android.view.View
import com.google.android.material.snackbar.Snackbar
import de.deutschebahn.bahnhoflive.R
class ConfirmationDialog(targetView: View, message: String, confirmedAction: View.OnClickListener) {
init {
val snackbar = Snackbar.make(targetView, m... |
; ModuleID = 'generated/1/binary/args_v1.o.0.5.precodegen.bc'
source_filename = "ld-temp.o"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@global_time = internal global i64 0, align 8
; Function Attrs: noinline norecurse nounwind uwt... |
package io.unlaunch;
import io.unlaunch.exceptions.UnlaunchHttpException;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.ws.rs.ProcessingException;
import javax.ws.rs.WebApplicationException;
i... |
package ru.pasha__kun.klisp
import ru.pasha__kun.klisp.types.*
import java.util.HashMap
internal fun macroExpand(args: Map<String, LispValue>, body: LispValue): LispValue = when(body){
is LispName -> args.getOrDefault(body.value, body)
is LispList -> LispList().apply {
addAll(body.map { macroExpand(a... |
package xds
import (
"fmt"
"strings"
"github.com/pkg/errors"
mesh_proto "github.com/Kong/kuma/api/mesh/v1alpha1"
mesh_core "github.com/Kong/kuma/pkg/core/resources/apis/mesh"
core_model "github.com/Kong/kuma/pkg/core/resources/model"
envoy_core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
)
ty... |
/*
* Copyright (c) 2016. See AUTHORS file.
*
* 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 o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.