text stringlengths 27 775k |
|---|
module TopologicalInventory::Amazon
class Parser
module Reservation
def parse_reservations(reservation, scope)
uid = reservation.reserved_instances_id
flavor = lazy_find(:flavors, :source_ref => reservation.instance_type)
collections[:reservations].data << TopologicalInventoryIng... |
/**
* @file `await` instrumentation analysis
*/
var p = (_dbux.traceExpr(30, (_sleep = sleep)),
_dbux.t(31),
_dbux.traceExpr(33, _sleep(_dbux.traceArg(32, 800)))); // var p = f();
/**
* Order:
* f() > preAwait > wrapAwait ---> postAwait
*/
var arg;
var awaitContextId;
_dbux.postAwait(
arg = f(),
await ... |
# azvm-automate-hack
This is a template repository for a Hackathon focusing on serverless-based IT process automation.
|
#include <cpp11/sexp.hpp>
#include <vector>
#include "Rcpp.h"
[[cpp11::register]] void protect_one_(SEXP x, int n) {
for (R_xlen_t i = 0; i < n; ++i) {
PROTECT(x);
UNPROTECT(1);
}
}
[[cpp11::register]] void protect_one_sexp_(SEXP x, int n) {
for (R_xlen_t i = 0; i < n; ++i) {
cpp11::sexp y(x);
}
... |
---
title: App-V 5.1 技術參考資訊
description: App-V 5.1 技術參考資訊
author: dansimp
ms.assetid: 2b9e8b2b-4cd1-46f3-ba08-e3bc8d5c6127
ms.reviewer: ''
manager: dansimp
ms.author: dansimp
ms.pagetype: mdop, appcompat, virtualization
ms.mktglfcycl: deploy
ms.sitesec: library
ms.prod: w10
ms.date: 06/16/2016
ms.openlocfilehash: 1ddf5... |
/* Replace with your SQL commands */
CREATE TABLE IF NOT EXISTS team_mates (
id SERIAL,
name VARCHAR(200)
);
INSERT INTO team_mates (name)
VALUES ('Moshood'), ('Mekky'), ('Marusoft'), ('Isah'), ('Kelechi');
|
#!/usr/bin/env bats
load test_helper
upload_file() {
name=$(new_id)
echo "Hello world" | govc datastore.upload - "$name"
assert_success
echo "$name"
}
@test "datastore.ls" {
name=$(upload_file)
# Single argument
run govc datastore.ls "${name}"
assert_success
[ ${#lines[@]} -eq 1 ]
# Multiple ... |
# Animotion.css
Animotion.css is a minimalistic CSS library to animate objects using transitions.
# Website
https://abjt14.github.io/animotion-css/
## Usage
```html
<link rel="stylesheet" href="animotion.css">
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss w... |
package RDF::Trine::Store::LDF;
use strict;
use warnings;
no warnings 'redefine';
use feature qw(state);
use utf8;
use base qw(RDF::Trine::Store);
use RDF::Trine::Store;
use RDF::Trine::Iterator;
use RDF::LDF;
use RDF::Trine::Error qw(:try);
sub new {
my ($class,%opts) = @_;
my $ref = \%opts;
$ref->{ldf}... |
import * as Encryption from "./encryption";
import * as Errors from "./errors";
import * as KeyDerivation from "./key-derivation";
export * from "./encryption-adapter";
export {
KeyDerivation,
Encryption,
Errors,
};
|
package com.luck.picture.lib.widget.longimage
/**
* Interface for decoder (and region decoder) factories.
* @param <T> the class of decoder that will be produced.
</T> */
interface DecoderFactory<T> {
/**
* Produce a new instance of a decoder with type [T].
* @return a new instance of your decoder.
... |
/**
* Created by sargis on 7/4/17.
*/
import "pixi";
import "phaser-ce";
import { Facade, PureMVC } from "../src/index";
import config from "./config";
import GameFacade from "./GameFacade";
import GameState from "./state/GameState";
export default class Game extends Phaser.Game {
// STATES
private static ST... |
function dropdown(checkbox) {
if(checkbox.checked) {
document.getElementById("toggle-image").src = "img/up.svg";
}
else document.getElementById("toggle-image").src = "img/down.svg";
}
|
package org.zalando.jsonapi
package object json {
private[json] def collectSome[A](opts: Option[A]*): List[A] =
(opts collect { case Some(field) ⇒ field }).toList
}
|
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'moor_database.dart';
// **************************************************************************
// MoorGenerator
// **************************************************************************
// ignore_for_file: unnecessary_brace_in_string_interps, unnecessary_thi... |
import { createSelector } from 'reselect';
import { TokenSetStatus } from '@/constants/TokenSetStatus';
import { usedTokenSetSelector } from './usedTokenSetSelector';
import type { RootState } from '@/app/store';
export const tokenSetStatusSelector = createSelector(
usedTokenSetSelector,
(state: RootState, tokenSe... |
<?php
declare(strict_types=1);
namespace App\Enums;
enum AppPermission: string
{
case LIST_USERS = 'list users';
case VIEW_USER = 'view user';
case CREATE_USER = 'create user';
case UPDATE_USER = 'update user';
case DELETE_USER = 'delete user';
case USER_TICKETS = 'user tickets';
case CUR... |
// build.js
// builds our RethinkDB database, tables, and documents.
// dependencies: products.json
// NOTE: Make sure RethinkDB is running before using this script...
var r = require('rethinkdb');
var fs = require('fs');
// Connect to RethinkDB
r.connect({host: 'localhost', port: 28015}, function(err, conn) {
if (... |
# CSViewer
> simple and lightweight *.csv file viewer written in Python


## Installation
Windows:
```cmd
cd /d d:
git clone https://github.com/ma1ex/CSViewer.git
cd CSViewer
python -m venv venv && venv\scripts\activate
pip install -r requirements.txt
```
## Run applicati... |
//-----------------------------------------------------------------------------
// The MIT License
//
// Copyright (c) 2012 Rick Beton <rick@bigbeeconsultants.co.uk>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software")... |
---
layout: default
title: CTF Walkthroughs
permalink: /ctf.html
---
----
## CyberSecLabs
**[Debug - Linux](https://cyb3rr3ap3r.github.io/posts/ctf/cyberseclabs/debug.html)**
**[Deployable - Windows](https://cyb3rr3ap3r.github.io/posts/ctf/cyberseclabs/deployable.html)**
**[Engine - Windows](https://cyb3rr3ap3r.g... |
/*
* Copyright 2017-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.example.dreamless.tools
import android.widget.Toast
class ToastUtils {
companion object {
fun long(message: String) {
Toast.makeText(AndroidApplication.getContext(), message, Toast.LENGTH_LONG).show()
}
fun short(message: String) {
Toast.makeText(Androi... |
package coil
import android.app.Application
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import coil.request.ImageRequest
import coil.util.createTestMainDispatcher
import coil.util.runBlockingTest
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutines... |
package com.test.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import com.test.domain.Employee;
@Mapper
public interface EmployeeDao {
List<Employee> list(Map<String,Object> map);
List<Employee> queryByName(Map<String,Object> map);
int count(Map<String,Object> ma... |
package com.github.nikitavbv.servicemonitor.metric
const val API_KEY_PREFIX = "API_TOKEN "
const val API_KEY_HEADER = "Authorization"
|
namespace GangOfFour.Behavioral.Bridge.Implementer
{
public interface IWeapon
{
public int GetAttackForce();
}
} |
/**
* Human Cell Atlas
* https://www.humancellatlas.org/
*
* Model of a term contained in the JSON response returned from files API. Contains term name and the total count, and
* in the case of the "project" facet, an array of project IDs that share the same term name.
*/
export interface ResponseTerm {
co... |
URL_ZH = r'https://www.hkex.com.hk/chi/services/trading/securities/securitieslists/ListOfSecurities_c.xlsx'
URL_EN = r'https://www.hkex.com.hk/eng/services/trading/securities/securitieslists/ListOfSecurities.xlsx'
|
/*
* autor: cristobal liendo i
* fecha: 9/1/11 vim
* descripcion: calcula la temperatura maxima, minima y el promedio de
* 10 datos usando arreglos.
*/
#include <stdio.h>
int main() {
float avg, min, max;
float vals[10];
avg = 0;
for (int i = 0; i < 10; i++) {
printf("Ingres... |
const URL = 'ws://localhost:8080/ws-chat';
let client = null;
function showMessage(value) {
const responseContainer = document.getElementById('response');
const responseFragment = document.createDocumentFragment();
const newMessage = createElementFromHTML('<div class="message-container">\n' +
' <d... |
using Mono.Cecil.Cil;
namespace Cauldron.Interception.Cecilator.Coders
{
public sealed class FinallyCoder : TryCatchFinallyCoderBase
{
internal FinallyCoder(TryCatchFinallyCoderBase tryCatchFinallyCoderBase) :
base(tryCatchFinallyCoderBase, new InstructionMarker
{
... |
<!-- YAML
added: v9.7.0
-->
* `err` {number}
* Returns: {string}
Returns the string name for a numeric error code that comes from a Node.js API.
The mapping between error codes and error names is platform-dependent.
See [Common System Errors][] for the names of common errors.
```js
fs.access('file/that/does/not/exis... |
package com.caowj.fastdev.model.net
import retrofit2.Call
import retrofit2.http.GET
interface HttpServiceApi {
/**
* 新闻列表
* @return Call<HttpBaseResult<NewsBean>>
*/
@GET("http://news-at.zhihu.com/api/4/news/latest")
fun getNews(): Call<Any>
// /**
// * 新闻列表
// * @return Call<H... |
package kfile
import (
"fmt"
"strings"
"time"
)
// 从路径中获取文件名
// param: filepath 文件路径或者文件名
// notice: 如果不是路径 则认为是文件
func GetFileName(path string) string {
if strings.Count(path, "/") == 0 && strings.Count(path, `\`) == 0 {
return path
}
if strings.Count(path, "/") > strings.Count(path, `\`) {
return path[str... |
package com.example.ulesson.ui.subject
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import com.example.ulesson.data.helper.Event
import com.example.ulesson.data.helper.R... |
<?php
class BankAccountModel extends BaseModel {
public $table = "bank_accounts";
public $soft_delete = true;
public $order_by_priority = true;
public function addBalance($accounts) {
$new_accounts = [];
foreach ($accounts as $account) {
$account_transactions = $this->db->get_where("transactions",
[
... |
ruby_version_is "1.9" do
require File.expand_path('../../../shared/rational/exponent', __FILE__)
describe "Rational#**" do
it_behaves_like(:rational_exponent, :**)
end
describe "Rational#** when passed Rational" do
it_behaves_like(:rational_exponent_rat, :**)
end
describe "Rational#** when passed... |
#pragma once
#include "aggreget_generated.hpp"
namespace aggreget
{
/*
** To tuple
*/
template <Aggregate T>
constexpr auto to_tuple(const T& t)
{
return details::to_tuple_impl_cref(t);
}
template <Aggregate T>
constexpr auto to_tuple(T&& t)
{
return details::to_tuple_impl_fref(std::forward<T>(t));
}
template <A... |
/*!
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import * as vscode from 'vscode'
import { localize } from '../../shared/utilities/vsCodeUtils'
import { IotClient } from '../../shared/clients/iotClient'
import { AWSTreeNodeBase } from '../../shar... |
<?php
namespace CpPress\Application\BackEnd;
use \Commonhelp\WP\WPController;
use \Commonhelp\App\Http\RequestInterface;
use CpPress\Application\WP\Admin\Settings;
use CpPress\Application\WP\Admin\PostMeta;
class AttachmentController extends WPController{
public function featured($files, $validMime){
if($files ... |
describe("multiple destinations", function() {
var $multiselect,
$multiselect_to,
$multiselect_to_2;
beforeEach(function() {
var html = '<div class="row">'+
' <div class="col-xs-5">'+
' <select name="from[]" id="multi_d" class="form-control" size="26" m... |
<?php
/**
* Created by PhpStorm.
* User: davidquaglieri
* Date: 14/5/17
* Time: 1:39 PM
*/
namespace AppBundle\Services;
use AppBundle\Entity\Article;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\Common\Collections\Collection;
class ArticleManager
{
private $doctrine;
/**
* ArticleMa... |
---
layout: post
title: Cumbia Japonesa
date: 2011-04-13 19:35
author: coherentnoise
comments: true
categories: [funny, japanese, music, Reposts, video]
---
Hahahaha, omigosh
[youtube=http://www.youtube.com/watch?v=BNZ0aYSHncY]
|
<?php namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Routing\Middleware;
class OnceAuth implements Middleware {
protected $auth;
public function __construct(Guard $auth)
{
$this->auth = $auth;
}
public function handle($request, Closure $next)
{
$f... |
using ArdanisDockerizedServiceTests.WebApi.DataAccess;
using ArdanisDockerizedServiceTests.WebApi.Entities;
using ArdanisDockerizedServiceTests.WebApi.Requests;
using ArdanisDockerizedServiceTests.WebApi.Responses;
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
using Microsoft.AspNetCore.Http;
usi... |
#!/bin/bash
#
# Copyright 2018 The Bazel 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... |
import cookieManager from './LocalForageCookieManager'
import requestManager from './RequestManager2'
import Logger from './SimpleLogger'
import * as version from './Version'
export default class AnalyticsManager {
private logger: Logger
private newPageLoad: boolean
private initialized: boolean
... |
/*
* 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: utf-8
describe 'et_nginx::default' do
before do
stub_command('which nginx').and_return(nil)
end
let(:chef_run) do
ChefSpec::SoloRunner.new.converge(described_recipe)
end
shared_examples_for 'default recipe' do
end
context 'unmodified attributes' do
it 'includes the package reci... |
module OrgansHelper
def manager
[@organ.manager_name, @organ.manager_email].reject(&:blank?).join(', ')
end
def status_class_for(application)
if show_recommendations?(application.call)
application.admissible? && application.eligible? ? 'valid' : 'invalid'
else
''
end
end
end
|
#!/bin/bash
# ---
# Ask and save to variable in input 2 of argument 2.
# ---
source ./f.sh
process_argument "${command[1]}"
echo
read -p "${argument[0]}" readtemp
set_var "${argument[1]}" "$readtemp"
|
@extends('layouts.app')
@section('content')
<h1>{{$shelf->shelf_name}}</h1>
@foreach($books as $Book)
<div class="well">
<h3><a href="/books/{{$Book->id}}">{{$Book->book_name}}</a></h3>
</div>
@endforeach
@endsection |
USE [C:\USERS\DADDY\SOURCE\REPOS\BUDGETEXECUTION\NINJA\DATABASE\SQLSERVER\R6.MDF]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[ORC]
AS
SELECT
PrcId,
BudgetLevel,
RPIO,
BFY,
FundCode,
FundName,
BocCode,
BocName,
AhCode,
OrgCode,
RcCode,
DivisionName,
AccountCode,
... |
use crate::fonts::{Font, FontError, GlyphId};
use crate::pdf::object::{Dictionary, Object};
use crate::pdf::syntax::{BasicObjects, PdfFile, PAGE_TREE_ID};
use crate::primitives::*;
use std::collections::hash_map::Entry;
use std::collections::HashMap;
use std::hash;
use std::io::{self, Write};
use std::ops::Deref;
use s... |
#!/usr/bin/perl -w
use strict;
use Getopt::Std;
# - - - - - H E A D E R - - - - - - - - - - - - - - - - -
#Goals of script:
#Use idxstats and bins from DASTool to generate a total number of reads recruiting to each bin.
# - - - - - U S E R V A R I A B L E S - - - - - - - -
# - - - - - G L O B A L V A R I A B L ... |
package ast
func convertSliceMap(i interface{}) []m {
var m []m
for _, mm := range i.([]interface{}) {
m = append(m, convertMap(mm))
}
return m
}
func convertMap(i interface{}) m {
return m(i.(map[string]interface{}))
}
func convertString(i interface{}) string {
return i.(string)
}
func convertInt(i interf... |
/**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/
// https://leetcode.com/problems/add-one-row-to-tree/description/
func addOneRow(root *TreeNode, v int, d int) *TreeNode {
if root == nil {
return nil
}
if d == 1 {
t := &Tre... |
module PlayerRequestHelper
def make_valid_player_param_hash(player)
param = player.attributes
param.delete 'id'
param
end
def make_invalid_player_param_hash(player)
param = make_valid_player_param_hash(player)
param['name'] = ''
param
end
end
RSpec.configure do |config|
config.includ... |
trait A
trait B
trait C
trait D
object Test {
type AB = A with B
val list: List[AB with C] = Nil
list.collect { case d: D => d }
}
|
using System;
namespace SpoolerWatcher
{
public interface ISpoolWatcher : IDisposable
{
event EventHandler<SpoolNotificationEventArgs> SpoolerNotificationReached;
PrinterNotifyFilters PrinterNotifyFilter { get; set; }
JobNotifyFilters JobNotifyFilter { get; set; }
PrinterChange... |
---
layout: post
title: A More Subtle Wordpress Security Hole
permalink: /2009/09/subtle-wordpress-security-hole
---
This has come up twice in one day over here at the Haystack group, so I thought
I'd post it here. Using Emacs and Vi to configure Wordpress can expose your
database login and password to the world.
He... |
class Task5
{
public static void main(String[] args)
{
Student student1 = new Student();
Student student2 = new Student();
Student student3 = new Student();
Student student4 = new Student();
Student student5 = new Student();
Student student6 = new Student();
Student student7 = new Student();... |
"""
The `Format` module provides a public interface that can be used to define custom formatters
aside from the predefined HTML and LaTeX outputs supported by `Highlights`.
The [Formatting](@ref) section of the manual provides a example of how to go about extending
`Highlights` to support additional output formats.
T... |
<?php
namespace Teacher\Controller;
use Think\Controller;
class CommonController extends Controller{
public function __initialize()
{
$this->checkUser(); //检查登陆
$this->checkSelected(); //检查是否选择了年份
}
//检查登陆
public function checkUser()
{
if (!... |
// SPDX-License-Identifier: MIT OR Apache-2.0
use std::{
collections::HashSet,
env,
io::{self, BufRead},
path::{Path, PathBuf},
};
use clap::{crate_authors, crate_name, crate_version, App, AppSettings, Arg, ArgMatches};
use taxonate::config::{Color, Config, LogLevel};
pub fn build() -> App<'static, ... |
# frozen_string_literal: true
require_relative "../spec/fixtures/cranky_process.rb"
supervisor = RubyEx::Supervisor.start(
[
RubyEx::Supervisor::ChildSpec.new("cranky", CrankyProcess, :start, [5])
]
)
child = RubyEx::Supervisor.children(supervisor).first
CrankyProcess.double(child)
CrankyProcess.double(child)... |
class Course {
String name;
double completedPercentage;
String author;
String thumbnail;
Course({
required this.author,
required this.completedPercentage,
required this.name,
required this.thumbnail,
});
}
List<Course> courses = [
Course(
author: "Кубаныч Асанов",
completedPercen... |
# Implements weighted randomization for a group of weighted items.
# This class expects a hash of key -> value pairs where the value is
# the weight for the item.
#
# @example Usage
# wr = WeightedRandomizer.new('queue1' => 25, 'queue2' => 100, 'queue3' => 2)
# puts "Using queue #{wr.sample}"
#
# @note Mostly adapted... |
module Roby
module Tasks
# This task class can be used to monitor the execution of an external
# process. Among the useful features, it can redirect standard output and
# error output to files.
#
# The events will act as follows:
# * the start command starts the process per se. The event is... |
static const auto fastIO = []() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
return 0;
}();
class Solution {
public:
string capitalizeTitle(string title) {
}
}; |
package com.fexo.wordcloud.controller;
import com.fexo.wordcloud.service.WordCloudService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException... |
// Geometric Tools, LLC
// Copyright (c) 1998-2014
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.1 (2013/07/14)
#include "Lights.h"
WM5_WINDOW_APPLICATION(Lights);
... |
/*
* 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 ... |
package dybarsky.agecounter
import android.appwidget.AppWidgetManager
import android.content.Context
import android.util.Log
import android.widget.RemoteViews
class Remote(context: Context) {
private val drawer = Drawer(context)
private val views = RemoteViews(context.packageName, R.layout.widget_layout)
... |
'''
Steven Kyritsis CS100
2021F Section 031 HW 10,
November 12, 2021
'''
#1
def initialletterCount(wordlist):
my_d={}
for word in wordlist:
if len(word)>0:
w=word[0]
if w not in my_d:
my_d[w]=0
my_d[w]+=1
return my_d
print(initi... |
using UncommonSense.CBreeze.Core.Property.Implementation;
using UncommonSense.CBreeze.Core.Report.Classic.Section.Contracts;
namespace UncommonSense.CBreeze.Core.Report.Classic.Section.Properties
{
public class FooterSectionProperties : SectionPropertiesBase
{
private readonly NullableBooleanProperty ... |
import { ModuleWithProviders, NgZone, InjectionToken } from '@angular/core';
import { DevtoolsOptions } from '@datorama/akita';
import * as i0 from "@angular/core";
export declare const DEVTOOLS_OPTIONS: InjectionToken<DevtoolsOptions>;
export declare class AkitaDevtools {
private ngZone;
private options;
c... |
/*
Plugin-SDK (Grand Theft Auto 3) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CCredits.h"
PLUGIN_SOURCE_FILE
PLUGIN_VARIABLE unsigned int &CCredits::CreditsStartTime = *reinterpret_cast<un... |
@extends('layouts.app')
@section('scripts')
<script>
tinymce.init({
selector: 'textarea',
height: "500"
});
</script>
@endsection
@section('content')
<div class="container">
<div class="row">
<div class="col-12">
<h1>Edit Home Page</h1>
</div>
</div>
... |
// ----------------------------------------------------------------
// xml_csharp_delete.aspx.cs
//
//
// May/24/2013
//
// ----------------------------------------------------------------
using System;
using System.IO;
using System.Collections.Generic;
using Newtonsoft.Json;
// -----------------------------------... |
import { GraphQLNonNull, GraphQLInt, GraphQLList } from 'graphql';
import { MatchType } from '../../types/match';
import { LeagueTeam } from '../../../db/models/leagueteam.model';
import { Match } from '../../../db/models/match.model';
/**
* Get all match data for league.
*/
export const getMatches = {
type: new ... |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:provider/provider.dart';
import 'package:score_keeper_2/models/game.dart';
import 'package:score_keeper_2/models/player.dart';
import 'package:score_keeper_2/models/theme.dart';
import 'package:score_keeper_2/screen... |
#if DEBUG
using JetBrains.Annotations;
using DuckGame;
using TMGmod.Core.WClasses;
namespace TMGmod.Buddies
{
[PublicAPI]
[EditorGroup("TMG|DEBUG")]
public class StingerLauncher:BaseGun
{
public StingerLauncher(float xval, float yval) : base(xval, yval)
{
var sprite = new S... |
/*
* ForumPage Messages
*
* This contains all the text for the ForumPage component.
*/
import { defineMessages } from 'react-intl'
export default defineMessages({
CreatorAccountNamePlaceholder: {
id: 'ProposalPage CreatorAccountNamePlaceholder',
defaultMessage: '签名账号'
},
ProposalFirstOne: {
id: '... |
import { Injectable } from '@angular/core';
import { ApplicationData } from './application-data';
@Injectable()
export class MockApplicationDataService {
// The local state of application data. This is a single, global instance that
// is shared across the whole app. Once it is pulled from the server, only the
... |
import sbt._
import sbt.Keys._
import org.scalajs.sbtplugin.ScalaJSPlugin
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
object ScalaJSReact extends Build {
val SCALA_VERSION = "2.11.5"
val uTestVersion = "0.3.0"
val scalajsDomVersion = "0.7.0"
val scalaXml = "org.scala-lang.modules" %% "scala-xml"... |
package avatar.game.user;
public enum Title {
TEST("Test");
private String display;
Title(String display){this.display = display;}
public String getDisplay(){
return "[" + display + "] ";
}
}
|
# Ark-Lock
Lock service in parallel environment
> This library is based on [php-lock/lock](https://github.com/php-lock/lock),
> which is licensed under the `Do What The F*ck You Want To Public License`.
This project aims to provide lock service for PHP 5.5+.
Multi Mutex Lock is supported since Version 0.3. |
import { __decorate } from "tslib";
import { customElement, bindable, useView } from 'aurelia-templating';
import { inject } from 'aurelia-dependency-injection';
import { PLATFORM } from 'aurelia-pal';
var UxField = /** @class */ (function () {
function UxField(element) {
this.element = element;
}
U... |
module Api
class PhysicalServerProfilesController < BaseController
include Subcollections::EventStreams
def assign_server_resource(type, id, data)
# Make sure the requested server exists
resource_search(data["server_id"], :physical_servers)
enqueue_ems_action(type, id, :method_name => :assi... |
package flavor.pie.sunkcost.permissions
import flavor.pie.kludge.*
import flavor.pie.sunkcost.textByCode
import org.bukkit.permissions.PermissionDefault
import org.spongepowered.api.service.permission.PermissionDescription
import org.spongepowered.api.service.permission.PermissionService
import org.bukkit.permissions.... |
# Linux
## Install packages
### Ubuntu
```
sudo apt-get install python3-dev libdbus-glib-1-dev
```
### Fedora
```
sudo dnf install redhat-lsb-core python3-devel gcc dbus-devel dbus-glib-devel
```
## Checkout xv\_leak\_tools\_internal
Simply `git clone` this repo to a location of your choice. We'll refer to the `... |
type ChatService = TeaDispenserService | DmvService;
export type TeaDispenserService = 'discordTeaDispenser' | 'kaiheilaTeaDispenser';
export type DmvService = 'kaiheilaDmv';
export default ChatService;
|
function checkOLKind(element) {
var addressKind = $(element).val();
var row = $(element).closest(".row").next(".row").next(".row");
if (addressKind == "primary") {
row.find('#inputCounty').attr('required', true);
row.find('#inputCounty').attr('disabled', true);
row.find('#inputCounty').attr('data-targ... |
---
title: "bcc-profile-exercise"
weight: 412
---
# BCC Profile exercise (Part 2)
.exercise[
- Download the Flamegrapsh scripts:
```
git clone https://github.com/brendangregg/FlameGraph
```
- Generate a flamegraph for your profiled data:
```
sudo tools/profile -p PID -f > /tmp/profile.out
flamegraph.pl /tmp/prof... |
<?php
namespace ShahBurhan\OWA\Concerns;
/**
* Example map
* Case 1.
* protected $actionMap = [
* 0 => "methodNameForNoArgAction",
* 1 => "methodNameForActionWithOneArg",
* ]
* Case 2.
* protected $actionMap = [
* 0 => [
* "methodNameForNoArgAction" => [
* ... |
package me.shedaniel.architect.plugin.transformers
import me.shedaniel.architect.plugin.Transformer
import me.shedaniel.architect.plugin.TransformerStepSkipped
import net.fabricmc.loom.LoomGradleExtension
import org.gradle.api.Project
import java.nio.file.Files
import java.nio.file.Path
object AddRefmapName : Transfo... |
<?php
declare(strict_types=1);
namespace EonX\EasyWebhook\Tests;
use DateTime;
use EonX\EasyWebhook\Webhook;
final class WebhookTest extends AbstractTestCase
{
public function testSettersGetters(): void
{
$body = [
'key' => 'value',
];
$event = 'my-event';
$extra ... |
; RUN: opt < %s -aa-pipeline=basic-aa,globals-aa -passes='require<globals-aa>,gvn' -S | FileCheck %s
;
; This tests the safe no-alias conclusions of GMR -- when there is
; a non-escaping global as one indentified underlying object and some pointer
; that would inherently have escaped any other function as the other und... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.