text stringlengths 27 775k |
|---|
package dog.snow.androidrecruittest
import android.content.Intent
import android.graphics.Bitmap
import android.os.Bundle
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import dog.snow.androidrecruittest.FunHolder.Companion... |
// const fetchData = require('../../utils/helpers/fetchData.js');
//
// const endPoint = 'https://public-api.wordpress.com/wp/v2/sites/eastmarshunited.wordpress.com/comments?per_page=100';
//
// module.exports = async function fetchComments() {
// return fetchData('comments', endPoint);
// }; |
import { EcsServiceState } from './ecs-service.state';
export type EcsClusterState = {
arn: string;
services: EcsServiceState[];
};
|
package io.mockk.impl.recording.states
import io.mockk.MockKException
import io.mockk.impl.recording.CommonCallRecorder
class StubbingState(recorder: CommonCallRecorder) : RecordingState(recorder) {
override fun recordingDone(): CallRecordingState {
checkMissingCalls()
return recorder.factories.st... |
<?php
namespace Esclaudio\Datatables;
use Esclaudio\Datatables\Database\Connection;
use Esclaudio\Datatables\Query\Builder;
class Datatables
{
/**
* Database
*
* @var \Esclaudio\Datatables\Database\DatabaseInterface
*/
protected $connection;
/**
* Base query
*
* @var \... |
module LearnYouAHaskell.Chapter1 where
------------------------------------------------
-- Chapter 1 - Starting Out --
-- (http://learnyouahaskell.com/starting-out) --
------------------------------------------------
-- Simple function definition (without a type signature)
-- Function names can't s... |
export const FORM_MAP = Symbol('form:map');
export const FORM_OBJECT = Symbol('form:object');
export const FORM_VALUE = Symbol('form:value');
export const FORM_ARRAY = Symbol('form:array');
export const FORM_LEAF = Symbol('form:leaf');
export const FORM_FUNCTION = Symbol('form:function');
export const TYPE_ANY = Symbol... |
package io.github.mavenrain.persistence
import shapeless.{::, :+:, CNil, HNil}
import zio.UIO
import zio.prelude.Newtype
trait RepositoryProvider {
type CreatorError
type ReaderError
type UpdaterError
type DeleterError
type Item
type Hash
object RowsDeleted extends Newtype[Int]
type RowsDeleted = Rows... |
export enum CommandContext {
BUCKET_EXPLORER_UPLOAD_CLIPBOARD = 'elan.bucketExplorer.uploadFromClipboard',
BUCKET_EXPLORER_UPLOAD_CONTEXT = 'elan.bucketExplorer.uploadFromContext',
BUCKET_EXPLORER_DELETE_CONTEXT = 'elan.bucketExplorer.deleteFromContext',
BUCKET_EXPLORER_COPY_CONTEXT = 'elan.bucketExplorer.copyF... |
/*
* Copyright 2012-2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.ekoapp.ekosdk.uikit.base
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.os.Build
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.app.ActivityCompat
import androidx.core.conte... |
namespace Kucoin.Net.Objects
{
/// <summary>
/// New account id
/// </summary>
public class KucoinNewAccount
{
/// <summary>
/// The id of the new account
/// </summary>
public string Id { get; set; } = "";
}
}
|
(ns backend.main
(:require ["express" :as express]
["path" :as path]))
(def markup "
<div>
this is a
<div id='target'></div>
<script src='/public/main.js'></script>
</div>")
(defn handle-req [req res]
(.send res markup))
(defn main! []
(-> (express)
(.use "/js/cljs-runtime"
... |
class Vigenere {
constructor() {
this.alphabet = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ "
this.blockSize = 5
}
getUniqueKeys(password){
let uniqueKeys = ""
for(let i=0; i<password.length; ++i){
let letter = password[i]
if(uniqueKeys.indexOf(letter) == -1 ) {
... |
package zio.prelude
import scala.annotation.tailrec
/**
* `ParSeq` is a data type that represents some notion of "events" that can
* take place in parallel or in sequence. For example, a `ParSeq`
* parameterized on some error type could be used to model the potentially
* multiple ways that an application can fail... |
use super::*;
#[test]
fn virtual_path_extensions() {
assert_eq!(VirtualPath("/".to_string()).name_and_extension(), None);
assert_eq!(
VirtualPath("/directory".to_string()).name_and_extension(),
Some(("directory", None))
);
assert_eq!(
VirtualPath("/directory/".to_string()).name_... |
package tezosdomain
import (
"time"
"github.com/baking-bad/bcdhub/internal/models/types"
"gorm.io/gorm"
"gorm.io/gorm/clause"
)
// TezosDomain -
type TezosDomain struct {
ID int64 `json:"-" gorm:"autoIncrement:true"`
Name string `json:"name" gorm:"primaryKey"`
Network types.Net... |
public class ChallengeQuestionBitwise {
public static int equal(int x, int y){
x = x^y;
x = x|x >> 16;
x = x|x >> 8;
x = x|x >> 4;
x = x|x >> 2;
x = x|x >> 1;
return x&1;
}
public static void main (String[] args) {
int b = 4;
int a = 6;
System.out.println(equal(4,6));
}
}
|
<?php
class Pengaduan extends CI_Controller
{
public function __construct()
{
parent::__construct();
isLoginPublic();
$this->load->model('PengaduanModel', 'pengaduan');
}
public function index()
{
$this->pengaduan->validation();
if ($this->form_validation->... |
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE PatternSynonyms #-}
module Lexer.Regex
( Regex(.., Many)
, buildRegex
) where
import Lexer.Nfa.Builder
-- | 正则表达式
data Regex c
= Range c c
| Or (Regex c) (Regex c)
| Concat (Regex c) (Regex c)
| Some (Regex c)
| Optional (Regex c)
de... |
#!/bin/bash
# LAST MODIFICATION: "Fri, 17 Jul 2015 14:28:10 ()"
# (C) 2015 by Douglas L. Potts, <pottsdl@gmail.com>
#
# ==============================================================================
# ==============================================================================
# Copyright (c) 2015 Douglas Lee Potts
#... |
import { createAction, handleActions } from 'redux-actions';
import { Map } from 'immutable';
import Request, { requize, pend, fulfill, reject } from 'helpers/request';
import posts from 'helpers/firebase/database/posts';
/* Actions */
const SINGLE_POST_LOAD = 'single/SINGLE_POST_LOAD';
const POST_UPVOTE_UPDATE = 'sin... |
//! Diagnostic Coordinator handles collecting any diagnostics produced, and
//! emitting them at the right times, and in the right formats.
use crate::emitter::{self, Emitter};
use crate::{diagnostic::Diagnostic, InputCoordinator};
pub struct DiagnosticCoordinator {
/// A sorted collection of all the registered d... |
import { resources } from '../../../askvm';
import { e2e } from '../../../utils/tools';
test('while without curly braces should be prohibited', async () => {
const environment = { resources };
const code = `ask {
const n = 3
while ((n==0) || (n == 1))
return true
return false
}`;
await expect(e2e(c... |
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Yuniql.Core
{
/// <summary>
/// Wraps usage of <see cref="Directory"/>
/// </summary>
public class DirectoryService : IDirectoryService
{
///<inheritdoc/>
public string[] GetDirectories(string path, str... |
package com.chooloo.www.chooloolib.interactor.blocked
import com.chooloo.www.chooloolib.interactor.base.BaseInteractor
interface BlockedInteractor : BaseInteractor<BlockedInteractor.Listener> {
interface Listener
fun blockNumber(number: String)
fun unblockNumber(number: String)
fun isNumberBlocked(nu... |
addSbtPlugin("com.cavorite" % "sbt-avro-1-8" % "1.1.5")
|
package chat.sphinx.wrapper_common.dashboard
@JvmInline
value class InviteId(override val value: Long): DashboardItemId {
init {
require(this.value >= 0L) {
"InviteId must be greater than or equal 0"
}
}
override val dashboardItemType: DashboardItemType
get() = Dashboa... |
select
coordinates,
avg(retweet_count::int4)
from
self_desc_table3
group by
coordinates |
import 'dart:async';
import 'package:device_util/device_util.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
... |
import mongoose from "mongoose";
export interface ISetting extends mongoose.Document {
groupId: number;
welcomeMessage?: string;
createdAt: Date;
modifiedAt: Date;
}
|
### v1.4.2: FlexSeal (1.18-ized)
1. Fix seals not spawning
|
const arrify = require('arrify')
const getAgreementStatus = require('../get-agreement-status')
const generateUpdateAgreementStatusJob = require('../generate-update-agreement-status-job')
const postUpdate = require('../post-update')
const logger = require('../logger')
module.exports = data => {
return new Promise(asy... |
<?xml version="1.0" encoding='UTF-8' standalone='no' ?>
<epp xmlns"urn:ietf:params:xml:ns:epp-1.0">
<command>
<check>
<domain:check xmlns:domain='urn:ietf:params:xml:ns:domain-1.0'>
<domaine:name><?=$domain;?></domaine:name>
</domain:check>
</check>
<clTRID>ABC-12345</clTRID>
</command>
</epp> |
package adf.launcher.option;
import rescuecore2.Constants;
import rescuecore2.config.Config;
public class OptionHost extends Option {
@Override
public boolean hasValue() {
return true;
}
@Override
public String getKey() {
return "-h";
}
@Override
public void setValue(Config config, String data) {
conf... |
<?php
/**
* 短信接口类
*/
namespace Library\Com;
class Sms{
/**
* 提供商:http://web.1xinxi.cn
* @param unknown $phone 要发送的手机号
* @param unknown $content 发送内容
* @return number 返回状态
*/
public function sendSms($phone, $content, $stime = ''){
header("Content-Type: text/ht... |
<?php
namespace ArdaaArslann;
use pocketmine\plugin\{Plugin, PluginBase};
use pocketmine\command\{Command, CommandSender, ConsoleCommandSender};
use onebone\economyapi\EconomyAPI;
use pocketmine\utils\Config;
use pocketmine\event\Listener;
use ArdaaArslann\{NoteEvent, NoteCommand};
class NoteMain extends PluginBase... |
import { Component, ViewEncapsulation } from '@angular/core';
import { DiagramComponent } from '@syncfusion/ej2-angular-diagrams';
import {
Diagram, NodeModel, UndoRedo, PointPortModel, Connector, FlowShapeModel,
IDragEnterEventArgs, SnapSettingsModel, MarginModel, TextStyleModel, StrokeStyleModel,
Orthogon... |
#ifndef XMLWRITER_H
#define XMLWRITER_H
///////////////////////////////////////////////////////////////////////
// XmlWriter.h - Create XML Strings //
// ver 4 //
// Language: Visual C++, Visual Studio 2010, SP1 ... |
/*
* Copyright (C) 2004-2016 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option... |
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'TIOB\\Admin' => $baseDir . '/includes/Admin.php',
'TIOB\\Importers\\Content_Importer' => $baseDir . '/includes/Importers/Content_Importer.php',
'TIOB\\Importers\\H... |
/*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 Dirk Beyer
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.util.statistics;
import com.go... |
/* eslint-disable react/jsx-props-no-spreading */
import { Box, Card, CardProps, SvgIcon } from "@material-ui/core";
import { QueryBuilder, Repeat, SaveOutlined } from "@material-ui/icons";
import clsx from "clsx";
import React, { memo, ReactText, useEffect, useRef } from "react";
import { Link, useParams } from "react... |
package net.mostlyoriginal.game.system.render;
/**
* @author Daan van Yperen
*/
import com.artemis.Aspect;
import com.artemis.ComponentMapper;
import com.artemis.Entity;
import com.artemis.annotations.Wire;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import net... |
import Cookie from 'js-cookie';
import jwtDecode from 'jwt-decode';
import { UserTokenPayload } from '@skillfuze/types';
export default class AuthService {
public static getUser(): UserTokenPayload | undefined {
return this.decodeJWT(this.getToken());
}
private static decodeJWT(token: string): UserTokenPayl... |
import React from 'react';
import ReactDOM from 'react-dom/server';
import App from './components/App';
export function renderView(callback, path, model, viewBag, routeValues, area) {
let content = ReactDOM.renderToString(<App />);
let html = ReactDOM.renderToString(
<html>
<head>
... |
; RUN: opt < %s -indvars -S | FileCheck %s
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx"
; CHECK-LABEL: @test1
; CHECK: %indvars.iv.next = add nuw nsw i64 %ind... |
// internal intercommunication objects properties
export const objectName = "name";
export const objectInitiatorId = "initiatorid";
export const objectInitiator = "initiator";
export const objectStateId = "stateid";
export const objectState = "state";
export const objectTimestamp = "ts";
export const objectLates... |
module Facepalm
module Rack
# This rack middleware converts POST requests from Facebook to GET requests.
# It's necessary to make RESTful routes work as expected without any changes
# in the application.
class PostCanvasMiddleware
def initialize(app, options = {})
@app = app
end
... |
# origin: http://forum.oszone.net/thread-337924.html
# (copied from somewhere else)
<#
Set IE = GetObject("new:{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}")
' explanation for the row above:
' https://blogs.msdn.microsoft.com/ieinternals/2011/08/03/default-integrity-level-and-automation/
IE.Visible = False ' set true for... |
use std::os::unix::io::RawFd;
use std::ptr;
use libc::{self, off_t};
use Result;
use errno::Errno;
pub fn sendfile(out_fd: RawFd, in_fd: RawFd, offset: Option<&mut off_t>, count: usize) -> Result<usize> {
let offset = offset.map(|offset| offset as *mut _).unwrap_or(ptr::null_mut());
let ret = unsafe { libc::... |
package com.mirae.shimpyo.helper
import org.slf4j.LoggerFactory
import java.nio.charset.StandardCharsets
import java.time.temporal.TemporalAdjusters
import java.time.{LocalDate, Year}
import java.util.{Calendar, Date}
/** 각종 기능의 함수들을 모아놓은 object
*
*/
object Util {
/** 각 달의 첫 일과 마지막 일을 dayOfYear 기준으로 반환한다.
*
... |
#include "palindrome_products.h"
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
static int palindrome(int n);
static int addfactors(factor_t ** p, int i, int k);
static void free_ll(struct factors *p);
product_t *get_palindrome_product(int from, int to)
{
product_t *res = malloc(sizeof(product_t));
if (... |
unit Sample.Platform.Windows;
{$INCLUDE 'Sample.inc'}
interface
uses
System.Classes,
Winapi.Windows,
Sample.Platform;
type
{ Implements Windows-specific functionality. }
TPlatformWindows = class(TPlatformBase)
{$REGION 'Internal Declarations'}
private const
WINDOW_CLASS_NAME = 'Sam... |
package alicloud
import (
"strings"
)
type MnsService struct {
}
func (s *MnsService) GetTopicNameAndSubscriptionName(subscriptionId string) (string, string) {
arr := strings.Split(subscriptionId, COLON_SEPARATED)
return arr[0], arr[1]
}
func (s *MnsService) SubscriptionNotExistFunc(err error) bool {
return str... |
<?php
namespace App\Http\Controllers;
use App\Project;
use App\Task;
use Illuminate\Http\Request;
class ProjectTasksController extends Controller
{
public function index()
{
//
}
public function create()
{
//
}
public function store(Project $project)
{
$at... |
using System;
using Havit.Data.Entity.Patterns.SoftDeletes;
using Havit.Services.TimeServices;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
namespace Havit.Data.Entity.Patterns.Tests.SoftDeletes
{
[TestClass]
public class SoftDeleteManagerTests
{
[TestMethod]
public void SoftDeleteManager_Nul... |
import kotlin.reflect.full.primaryConstructor
sealed class Gene {
var x: Int = 0
var y: Int = 0
abstract fun eval(genes: List<Gene>): Int
class Constant : Gene() {
override fun eval(genes: List<Gene>): Int = x
}
class Add : Gene() {
override fun eval(genes: List<Gene>): Int =... |
import { IDiscoveryClient } from '../discoveryClient';
export enum ClusterKind {
source = 'source',
destination = 'destination',
controller = 'controller',
}
export interface IPodContainer {
name: string;
log: string;
}
export interface IPodLogSource {
name: string;
namespace: string;
containers: IPo... |
$ErrorActionPreference = 'Stop'
# rather than install anything, we'll just create a file.
New-Item -Type Directory $env:ProgramData\TestPackage
Set-Content -Value 'Hello chocolatey!' -Path $env:ProgramData\TestPackage\test.txt |
package app
import (
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
)
var Router *gin.Engine
func init() {
initLogger()
Log.Info("Loading environment vars")
initConf()
Log.Info("Connecting to database")
initDb()
Log.Info("Setting up auth")
initAuth()
Log.Info("Initializing mailgun api")
init... |
module NumberMax
WORD_SIZE_BITS = 0.size * 8
def max(a, b)
# Are signs different
ds = has_negative_bit?(a ^ b)
k = ((~ds) & 1) * has_negative_bit?(b - a) + ds * has_negative_bit?(b)
a * k + b * ((~k) & 1)
end
def has_negative_bit?(x)
(x & (1 << (WORD_SIZE_BITS - 1))) >> (WORD_SIZE_BITS -... |
#!./perl -w
#
# Copyright 2005, Adam Kennedy.
#
# You may redistribute only under the same terms as Perl 5, as specified
# in the README file that comes with the distribution.
#
# Man, blessed.t scared the hell out of me. For a second there I thought
# I'd lose Test::More...
# This file tests several known-error c... |
@model MissionAddViewModel
@{
ViewData["Title"] = "AddMission";
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<form asp-action="AddMission" method="post" class="w-75 mx-auto p-3">
<div class="form-group">
<label>Name</label>
<span asp-validation-for="Ad" class="text-danger"... |
#include <bits/stdc++.h>
#define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
int main(){
int N=101;
while(N!=1){
int A=N,B=N;
printf("%d %d %d\n",A,B,A+B );
N--;
}
return 0;
} |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2010.0... |
/*
Copyright 2018 Alex Hunt
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, software
distr... |
package org.playarimaa.server.game
import org.playarimaa.server.Utils._
object TimeControl {
/* Increment and delay are multiplied by this every turn during overtime
* If changing this, make sure to update API docs. */
val OVERTIME_FACTOR_PER_TURN: Double = 1.0 - 1.0 / 30.0
val POSTAL_RESERVE_THRESHOLD: Doub... |
import {spawn, SpawnOptions} from 'child_process'
import chalk = require('chalk')
const warn = (message : string) => console.log(chalk.yellow(message))
interface StandardCmd {
stdout: string[],
stderr: string[]
}
export const onComplete = (cmd : string, options: SpawnOptions) : Promise<StandardCmd> => {
const c... |
# cd libft
# make
# make clean
# cd ..
gcc -g /Users/u18188899/School21_push_swap/srcs/checker.c /Users/u18188899/School21_push_swap/libft/libft.a
|
package com.nicolasguillen.kointlin.usecases
import com.nicolasguillen.kointlin.services.ApiRepository
import com.nicolasguillen.kointlin.services.errors.ApiException
import com.nicolasguillen.kointlin.services.reponses.CoindeskFeed
import io.reactivex.Single
interface LoadNewsFeedUseCase {
fun fetchNewsFeed(): ... |
import thTH from '../../DatePicker/locale/th_TH';
export default thTH;
|
import 'package:flutter/material.dart';
import 'app_bar/pue_app_bar_data.dart';
import 'footer/export.dart';
import 'footer/pue_footer_data.dart';
import 'pue_provider.dart';
import 'pue_theme.dart';
/// This is the parent widget that descendant [PuePage]s will modify. It renders
/// the `appBar` and `footer`, so that... |
SECTION code_fp_math48
PUBLIC mm48__ac1_3
mm48__ac1_3:
; set AC = 1/3
ld bc,$2aaa
ld e,c
ld d,c
ld hl,$aa7f
ret
|
import { Injectable } from '@nestjs/common';
import { BaseMap } from '@us-epa-camd/easey-common/maps';
import { LEEQualificationMap } from './lee-qualification.map';
import { LMEQualificationMap } from './lme-qualification.map';
import { PCTQualificationMap } from './pct-qualification.map';
import { MonitorQualificat... |
require("dotenv").config();
const path = require("path");
const forge = require("node-forge");
const BunqJSClient = require("../dist/BunqJSClient").default;
const customStore = require("../dist/Stores/JSONFileStore").default;
const storageBasePath = `${__dirname}${path.sep}common${path.sep}`;
// used to cache data a... |
package ch.ralena.quizapp.di.activity
import ch.ralena.quizapp.activity.MainActivity
import ch.ralena.quizapp.activity.QuizActivity
import dagger.Component
@Component(modules = [ActivityModule::class])
@ActivityScope
interface ActivityComponent {
fun inject(activity: MainActivity)
fun inject(activity: QuizActivity)... |
// Copyright 2015 Andrew E. Bruno. All rights reserved.
// Use of this source code is governed by a BSD style
// license that can be found in the LICENSE file.
// Package ipa is a Go client library for FreeIPA
package ipa
import (
"bytes"
"crypto/tls"
"crypto/x509"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"... |
#include "Component.h"
#include "GameObject.h"
#include "Application.h"
#include "imgui\imgui.h"
#include "ScriptingModule.h"
Component::Component(GameObject* parent, ComponentTypes componentType) : parent(parent), componentType(componentType)
{
if (parent != nullptr)
UUID = App->GenerateRandomNumber();
}
Compon... |
package io.euruapp.core.injection;
import android.content.Context;
import dagger.Module;
import dagger.Provides;
import io.euruapp.core.EuruApplication;
/**
* Dagger {@link Module}
*/
@Module
public class ContextModule {
private EuruApplication application;
public ContextModule(EuruApplication application) {... |
CREATE TABLE queue_placement(
queue_placement_id TEXT PRIMARY KEY,
queuer_username TEXT NOT NULL,
status TEXT NOT NULL,
map_name TEXT NOT NULL,
version TEXT NOT NULL
); |
package org.oddjob.userguide;
import org.junit.Test;
import org.junit.Assert;
import org.oddjob.Oddjob;
import org.oddjob.arooa.xml.XMLConfiguration;
import org.oddjob.state.ParentState;
import org.oddjob.OurDirs;
public class GrabbingTest extends Assert {
@Test
public void testGrabbing() {
OurDirs dirs ... |
#include "parser.tab.hpp"
#include "lex.tab.hpp"
#include "../src/AST.hpp"
#include "../src/mean_AST.hpp"
int main(){
const char* X="\
int f(){\
2*1+1;\
}\
";
parser_state* v=new parser_state();
yy_scan_string(X);
yyparse(v);
//printf("TRUE2:%p",v->lval);
v->lval->print(0);... |
#!/bin/bash
# Copyright Epic Games, Inc. All Rights Reserved.
# Check if coturn is currently installed
if ! which turnserver > /dev/null; then
# Install coturn
echo "Installing coturn"
sudo apt-get -y update
sudo apt-get install -y coturn
fi
|
<?php
namespace Helix\Shopify\Product;
use Helix\Shopify\Base\Data;
use IteratorAggregate;
use Traversable;
/**
* @method string getId ()
* @method string getName ()
* @method $this setName (string $name)
* @method int getPosition ()
* @method string getProductId()
* @method string[... |
import { fireEvent, render, screen } from '@testing-library/react';
import { QueryClient, QueryClientProvider } from 'react-query';
import AxiosMock from 'axios-mock-adapter';
import { api } from '../../services/api';
import Home from '../../pages';
const apiMock = new AxiosMock(api);
const advice = {
id: 117,
... |
import docker_registry_client.reposession as repo
import sys
__author__ = "Chris Stradtman"
__license__ = "MIT"
__version__ = "1.0"
if len(sys.argv) == 4 or len(sys.argv) == 6:
request = {}
request["repo"] = sys.argv[1]
request["repopath"] = sys.argv[2]
request["tag"] = sys.argv[3]
if len(sys.argv... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebMarkupMin.Core;
using Statiq.Common;
using Microsoft.Extensions.Logging;
namespace Statiq.Minification
{
public abstract class MinifierBase
{
public async Task<IEnumerable<IDocument>> MinifyAsync(... |
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {GoogleMap, GoogleMaps, GoogleMapsEvent, MyLocation} from '@ionic-native/google-maps';
import {Diagnostic} from '@ionic-native/diagnostic';
@IonicPage()
@Component({
selector: 'page-maps',
templateUrl... |
/*
* 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 ... |
func flatten(root *Node) *Node {
first, _ := dfs(root)
return first
}
func dfs(root *Node) (*Node, *Node) {
tmp, last := root, root
for tmp != nil {
if tmp.Child != nil {
first, last := dfs(tmp.Child)
tmp.Child = nil // requires child is nil'ed
tmpNex... |
function sayHello(name) {
return `Hello ${name}`
}
function sayGoodbay(name) {
return `Goodbye ${name}`
}
// this will export only the last function
// module.exports = sayHello
// module.exports = sayGodbay
module.exports = {
hello: sayHello,
bye: sayGoodbay,
} |
module TSObeliskSimulator
{
/// <summary>
/// スプライト線表示クラス。
/// </summary>
export class SpriteLine implements ISprite
{
private _lineTo: Point = new Point();
private _position: Point = new Point(); // 現在座標
private _opacity: number = 1;
private _visible: boolean = fals... |
# A method to check whether something is actually awesome or not. Some are obvious.
# But it only works if you pass in an argument to check.
#
# You'll need to run IRB or PRY, then load this file, and then try it out.
AWESOME_THINGS = ['bagels', 'surfing', 'coding', 'SQL']
class String
def awesome?
if AWESOM... |
import ply.yacc as yacc
import xmarievm.parsing.ast_types as ast_types
from xmarievm.parsing import translator
from xmarievm.parsing.ast_types import Program
from xmarievm.const import MAX_DEC, MEM_BITSIZE, MAX_HEX
from xmarievm.parsing.lexer import tokens, lexer
instructions = []
class ParsingError(ValueError):
... |
/**
* Copyright (C) 2020 Ivo Ganev
*
* 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... |
# miaow-inline-parse
> Miaow的资源嵌入工具,可以将指定资源以Data-URI的格式或是内容直接嵌入进来
## 效果示例
```css
.foo {
background: url(./foo.png#inline);
}
/* 处理后 */
.foo {
background: url(data-uri);
}
```
### 参数说明
#### keyword
Type:`String` Default:`inline`
用于匹配哪些链接需要做嵌入操作
#### regexp
Type:`RegExp` Default:`new RegExp('[\'"\\(](([\\w\\_... |
module CouchRest
module Model
VERSION = "1.0.0.beta8"
end
end
|
import 'package:adaptive_theme/adaptive_theme.dart';
import 'package:flutter/material.dart';
AppBar appBar(BuildContext context) {
return AppBar(
title: Text("My Little Pony"),
actions: <Widget>[
IconButton(
icon: Theme.of(context).brightness == Brightness.dark
? Icon(Icons.brightne... |
SUBROUTINE WF_R_MTRX
& (index)
c Computes reflection coefficient matrix from p matrix and
c returns it in r.
implicit real*8 (a-h,o-z)
c Wave Fields
complex * 16 c,s,p,dpdh,
& r11,r22,r12,r21,rbar11,rbar22
common/wf_pmtx/
& c(2),... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.