text stringlengths 27 775k |
|---|
<?php
namespace Swoole\Coroutine;
use Swoole;
use Swoole\Protocol\RPCServer;
class RPC extends Swoole\Client\RPC
{
static $pool = array();
function __construct($id = null)
{
parent::__construct($id);
//基于Swoole扩展
if (!$this->haveSwoole or class_exists('Swoole\Coroutine\Client', fa... |
/*
* Copyright University of Basel, Graphics and Vision Research Group
*
* 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 ... |
insert into hero(name) values('Ms Nice');
insert into hero(name) values('Nurco');
insert into hero(name) values('Bombastico');
insert into hero(name) values('Fennel');
insert into hero(name) values('Magnostic');
insert into hero(name) values('Duck Man');
insert into hero(name) values('Silly Putty Man');
insert into her... |
#!/usr/bin/env python3
# Compute the cryptographic hash value of a file
# or directory. Metadata is not taken into account.
import os, sys
import hashlib
def eprint(s):
print(s,file=sys.stderr)
def new_hasher():
return hashlib.sha256()
BLOCKSIZE = 2**16
def hash_file(h,path):
with open(path,"rb") as f:... |
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// test <type_traits> header, part 1
#define TEST_NAME "<type_traits>, part 1"
#include "tdefs.h"
#include "typetr.h"
#include <type_traits>
// TESTS
static void t_wrappers() { // test integral_constant, tru... |
namespace Microsoft.Maui.Handlers
{
public partial interface IPageHandler : IContentViewHandler
{
}
} |
using System;
using System.Collections.Generic;
using System.Text;
namespace uplink.NET.Models
{
/// <summary>
/// The list of part upload found with a search operation
/// </summary>
public class UploadPartsList
{
/// <summary>
/// The items within this list
/// </summary>... |
<?php
namespace We7\V172;
defined('IN_IA') or exit('Access Denied');
/**
* [WeEngine System] Copyright (c) 2013 WE7.CC
* Time: 1520315760
* @version 1.7.2
*/
class CreateJobTable {
/**
* 执行更新
*/
public function up() {
if (!pdo_tableexists('job')) {
$table = tablename('job');
$sql = "CREATE TABLE ... |
package ksm
import (
"errors"
"strings"
"github.com/hashicorp/vault/sdk/framework"
"github.com/keeper-security/secrets-manager-go/core"
)
var (
errFieldDataNil = errors.New("field data passed for updating was nil")
errBadConfigFormat = errors.New("config string is not a valid JSON/Base64")
)
... |
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe AuthorizedProjectUpdate::PeriodicRecalculateService do
subject(:service) { described_class.new }
describe '#execute' do
let(:batch_size) { 2 }
let_it_be(:users) { create_list(:user, 4) }
before do
stub_const('AuthorizedProject... |
from rest_framework import views
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from .models import Legal, AppUrls
from .serializers import TermsSerializer, PolicySerializer
class TermsView(views.APIView):
serializer_class = TermsSerializer
permission_classes = (... |
// <auto-generated>
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace KyGunCo.Counterpoint.Sdk.Entities
{
// VI_PS_ORD_WITH_CELL_DETAILS
public class ViPsOrdWithCellDetail
{
public long DocId { get; set; } // DOC_ID
public int L... |
#pragma once
class Config {
private:
Config() {
loadData();
}
Config( const Config& );
Config & operator = (const Config &);
char mqttUsername[33];
char mqttPassword[33];
char mqttIp[16];
int mqttPort;
void loadData();
public... |
# Pokedex
### How to run
cd pokedex
npm install
npm start
And open your browser to `localhost:1234`
|
using System.Diagnostics.CodeAnalysis;
namespace Modbus4Net.Device
{
/// <summary>
/// Modbus IP master device.
/// </summary>
[SuppressMessage("Microsoft.Naming", "CA1706:ShortAcronymsShouldBeUppercase", Justification = "Breaking change.")]
internal class ModbusIpMaster : ModbusMaster
{
... |
import React from 'react'
import GroupSlider from 'antd-group-slider'
import 'antd-group-slider/dist/index.css'
import 'antd/dist/antd.css'
const App = () => {
return (
<div
style={{
display: 'flex',
width: '100%',
justifyContent: 'center',
flexDirection: 'column',
al... |
#include <stdio.h>
#include <stdlib.h>
#define MAX 100007
struct node{
int x;
struct node* pre,*next;
};
typedef struct node node;
void ins(node* now,node* pre);
void del(node* now);
void init(void);
node* newnode(int x);
node* head,*q[MAX],*tail;
int main(void)
{
int N,M,i;
scanf("%d",&N);
head=newnode(0);
... |
DEFINE RECORD CDD$TOP.AD.AD_JOURNAL
DESCRIPTION IS /*Depreciation Units Journal*/.
AD_JOURNAL_CDD STRUCTURE.
/* Element = DEP_OBJECT
Description = Depreciation object */
DEP_OBJECT DATATYPE IS TEXT SIZE IS 1.
/* Element = DATE
Description = Date *... |
module Consular
# Defines the abstract definition of a core. This needs to be
# subclassed and have the appropriate methods defined so that
# the CLI runner knows how to execute the Termfile on
# each core. You will need to add the core to Consular like so:
#
# Consular.add_core self
#
class Core
... |
package sbtBom
import sbt._
trait BomSbtKeys {
lazy val targetBomFile: SettingKey[sbt.File] = settingKey[File]("target file to store the generated bom")
lazy val makeBom: TaskKey[sbt.File] = taskKey[File]("Generates bom file which includes all project dependencies")
lazy val listBom: TaskKey[String] = taskKey... |
# Copyright 2015 Hitachi Data Systems
#
# 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 ... |
/*
* Copyright 2021 Alexi Bre
*
* 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... |
require 'Config'
module OpenshiftReliability
class ClusterUser
def initialize()
@userkey=$config.keys+"admin.kubeconfig"
end
def get_projects()
projects=[]
res=exec("oc get projects --no-headers")
if res[:status] ==0 && ! res[:output].nil? && res[:output].length>0
res[:o... |
import 'package:flutter/material.dart';
/// 스크롤업 버튼 구현 페이지
class WithScrollUpButton extends StatefulWidget {
/// 스크롤업 버튼을 가질 리스트뷰로 컨트롤러를 포함해야 함
final ListView listView;
/// 버튼 색상
/// 기본값 `Theme.of(context).accentColor`
final Color? buttonColor;
/// 버튼 투명도
/// 기본값 `0.8`
final double buttonOpacity;
... |
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="Pawel 'kilab' Balicki - kilab.pl" />
<title>SimpleAdmin</title>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/navi.css" media=... |
import { } from 'jasmine';
import capivara from '../../src/index';
// describe('test create component', () => {
// const template = `
// <my-component id="demo"></my-component>
// `;
// const element = document.createElement('div');
// element.innerHTML = template;
// });
|
package cn.woolsen.material.animations
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.core.graphics.drawable.DrawableCompat
import androidx.fragment.app.Fragment
class SharedElementFragment2 : Fragment(... |
<?php
namespace Honeybadger;
use Honeybadger\Backtrace\Line;
/**
* Tests Honeybadger\Backtrace.
*
* @group honeybadger
*/
class BacktraceTest extends \PHPUnit_Framework_TestCase {
public function test_parse_drops_null_lines()
{
$callback = function($line) {
if ($line['file'] == 'dropme.php')
return N... |
import { PageConfig as AliPageConfig } from 'remax/ali';
const config: AliPageConfig = {
defaultTitle: 'Ali Page',
titleBarColor: '#323239',
};
export default config;
|
class SubReportUtil {
static final SubReportUtil _instance = SubReportUtil._internal();
Map<String, String> statusLabelToIdName = {
"ODP": "odp",
"ODP Selesai Pemantauan": "odpsp",
"PDP": "pdp",
"PDP Sembuh": "pdps",
"PDP Meninggal": "pdpm",
"Orang Tidak Bergejala (OTG)": "otg",
"Pos... |
package solution
import (
"math/rand"
"reflect"
"testing"
)
func TestCountSmallerExample(t *testing.T) {
input := []int{5, 2, 6, 1}
expect := []int{2, 1, 1, 0}
got := countSmaller(input)
assertequal(t, got, expect)
}
func TestCountSmallerFuzz(t *testing.T) {
n := 1000
nums := make([]int, n)
for trial := 0;... |
#include "PluginProcessor.h"
#include "PluginEditor.h"
ModularAudioProcessorEditor::ModularAudioProcessorEditor(
ModularAudioProcessor& p)
: juce::AudioProcessorEditor(&p), audioProcessor(p)
{
setSize(500, 400);
addAndMakeVisible(aSlider_);
aSlider_.setValue(1.0);
aSlider_.setRang... |
<?php
function _syslog($msg) {
$trace = debug_backtrace();
$caller = $trace[1];
$parent = $caller['function'];
if (isset($caller['class'])) {
$parent = $caller['class'] . '::' . $parent;
}
return error_log( "{$parent}: {$msg}" );
}
function notimplemented() {
header('HTTP/1.1 501 N... |
import time
import pyautogui
from .point import point
from pywinauto import application
from pyautogui import (
moveTo, keyDown, keyUp, press
)
def moveClick(target, sleep=True):
"""
Parameters
----------
target :
Returns
-------
"""
pyautogui.moveTo(target.x, target.y, ... |
<?php
namespace yii2lab\domain\events;
/**
* Class QueryEvent
*
* @package yii2lab\domain\events
* @deprecated
*/
class QueryEvent extends MethodEvent {
}
|
<!-- Copyright 2019 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
# TBMv3 [Experimental]
This directory contains files for TBMv3, an experimental new metric authoring
platform based on Perfetto.
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class MyModel extends CI_Model{
public function action($act, $table, $data=null, $where=null){
if(!is_null($where)){
$this->db->where($where);
}
switch ($act) {
case 'input' : $this->db->insert($table,$data); break;
case 'update' :... |
import { Component, OnInit, ViewChild } from '@angular/core';
import { ModalDirective, PopoverDirective } from 'ng2-bootstrap/ng2-bootstrap';
import { NotificationService } from '../shared';
import { TodoService } from './todo.service';
import { Todo } from './todo.model';
@Component({
selector: 'dml-todo',
templ... |
# asy-brewer: ColorBrewer palettes for Asymptote
[Asymptote](https://asymptote.sourceforge.io) is vector graphics language for
technical drawing. It ships with a number of base modules including `palettes`
which provides a number of colour palettes. This module supplements these with
Cynthia Brewer and Mark Hadden's C... |
import { TestBed } from '@angular/core/testing';
import { Inject } from '@angular/core';
import { DoneWhen } from '../../../test-helper/doneWhen';
import { Subject } from 'rxjs/Subject';
import { from as fromStatic } from 'rxjs/observable/from';
import { of } from 'rxjs/observable/of';
import { delay, tap, finalize, l... |
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:guess_the_move/bloc/user_settings_bloc.dart';
import 'package:guess_the_move/components/switch_selector.dart';
import 'package:guess_the_move/model/game_mode.dart';
import 'package:guess_the_move/model/live_analysis_response.... |
rm -rf ./esubot/bin
echo Delete //bin successful.
rm -rf ./esubot/obj
echo Delete //obj successful.
echo Now dotnet will publish new version on win-x64.
dotnet publish -r win-x64 -c Release |
Software Design 2021年4月号 ディープラーニングではじめるソフトウェア高速化入門 第6回 サンプルコード
====
Software Design 2021年4月号掲載の「ディープラーニングではじめるソフトウェア高速化入門 第6回」のサンプルコードです。
## 動作確認環境
- Ubuntu 18.04 LTS
- CUDA Toolkit 10.0
## ビルド方法
各サブディレクトリ中で `make` コマンドを実行することで対応するプログラムがビルドされます。
## プログラムの説明と実行方法
### naive
- 愚直に実装されたGPU版行列積です。
- 行列サイズはコマンドライン引数として指... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace io.daniellanner.indiversity
{
public class LoadinScreenAnimationWait : CustomYieldInstruction
{
private bool _done = false;
public override bool keepWaiting
{
get
{
return !_done;
}
}
public LoadinScree... |
/**
* For pooling objects that can be reused.
* @class Pool
* @constructor
*/
export class Pool {
objects: any[];
type: any;
constructor() {
/**
* The pooled objects
* @property {Array} objects
*/
this.objects = [];
/**
* Constructor of the objects
* @property {mixed} t... |
module CoverMe
module Results
class << self
def read_results(path = CoverMe.config.results.store)
data = {}
if File.exists?(path)
data = eval(File.read(path)) || {}
end
return data
end
def merge_results!(cov_results, path = CoverMe.con... |
var express = require('express');
var assetLinks = require('../resources/assetlinks.json');
var appleSiteAssociation = require('../resources/apple-app-site-association.json');
var { makeQrCodeDataUri } = require('../utils/qrcodeUtils');
var router = express.Router();
router.get('/', function (req, res, next) {
fun... |
using System;
namespace StarWing.Framework
{
public class GameTime
{
public TimeSpan SinceLastUpdate { get; }
public TimeSpan TotalTime { get; }
public GameTime()
{
SinceLastUpdate = TimeSpan.Zero;
TotalTime = TimeSpan.Zero;
}
public Ga... |
package com.example.heroku.repositories;
import com.example.heroku.domain.Passenger;
import org.springframework.data.jpa.repository.JpaRepository;
public interface PassengerRepository extends JpaRepository <Passenger, Long>{
}
|
import { Component, forwardRef, Input } from '@angular/core';
import { ISipMenuItem } from '../../base/i-sip-menu-item';
import { SipMenuChildren } from './sip-menu-children';
@Component({
selector: 'sip-menu',
template: `
<div class="ant-dropdown-menu" [style.width]="width">
<ul nz-menu
[nzMode]="mode"
[... |
package io.github.jspinak.brobot.actions.methods.sikuliWrappers.mouse;
import io.github.jspinak.brobot.actions.BrobotSettings;
import io.github.jspinak.brobot.actions.methods.sikuliWrappers.Wait;
import io.github.jspinak.brobot.reports.Report;
import org.sikuli.script.Mouse;
import org.springframework.stereotype.Compo... |
/**
* Class for config graph connections
* @param editor which contains graph for config
* @constructor
*/
var GraphConnectionConfig = function (editor) {
this.editor = editor;
this.graph = editor.graph;
};
GraphConnectionConfig.prototype.config = function () {
var graph = this.graph;
graph.isCellC... |
namespace ExCSS
{
internal sealed class OrientationMediaFeature : MediaFeature
{
private static readonly IValueConverter TheConverter = Converters.Toggle(Keywords.Portrait, Keywords.Landscape);
public OrientationMediaFeature() : base(FeatureNames.Orientation)
{
}
inter... |
USE [Certificate_Administration]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- ======================================================================
-- Author: John Merkel
-- Creation date: October 1, 2021
-- Description: Checks to see if schema and object exists.
-- Return: Schema an... |
#!/usr/bin/env bash
if [ -z ${OTOOL+x} ]; then
if which otool&>/dev/null; then
OTOOL=$(which otool)
elif which aarch64-apple-darwin-otool&>/dev/null; then
OTOOL=$(which aarch64-apple-darwin-otool)
elif which x86_64-apple-darwin-otool&>/dev/null; then
OTOOL=$(which x86_64-apple-darwin-otool)
else
echo "... |
# RimWorldModGuide
My attempt at a RimWorld guide to assist models.
# ([Enter the Guide Here](https://github.com/roxxploxx/RimWorldModGuide/wiki))
Finding this helpful? [Support me on Patreon](https://www.patreon.com/roxxploxx). Thanks!
|
/**
* @author WMXPY
* @namespace Neon_Card
* @description Racket
*/
import { Classes } from "jss";
import * as React from "react";
import { ThemedComponent, ThemeProps, withConsumer } from "../#common/consumer";
import { BoxProps } from "../#common/declare";
import { mergeClasses } from "../#common/style/decorator... |
// SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
//
// SPDX-License-Identifier: Apache-2.0
package main
import (
"flag"
"fmt"
"github.com/spf13/viper"
"os"
"text/template"
)
const yamlAppsTemplate = "{{ printf \"#ONOS Helm Chart Releases\"}}\n\n" +
"{{range $key, $va... |
/*
# Derby:
start pitcher
start batter
start timer
# PitchingAndBatting:
batter active
pitcher active { onPitch: deactivate }
catcher: catch the ball -> activate batter/pitcher
batter: hit the ball -> ball fly
ball: land on field -> {
show distance for 2 seconds
: if timer = 0: end derby
else reset batte... |
/*
* Copyright 2019 HM Revenue & Customs
*
* 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... |
# permissions.py
from webpie import WPApp, WPHandler, run_server, webmethod
import time
class H_methods(WPHandler):
_Methods = ["hello"]
def hello(self, request, relpath):
return "Hello, World!\n"
def wrong(self, request, relpath):
return "This should never happen\n"
class ... |
# Worder
A chrome extension for [Cambridge Learner's Dictionary](http://dictionary.cambridge.org/dictionary/learner-english/)
|
#include<GL/gl.h>
#include<GL/glx.h>
#include<X11/Xlib.h>
#include<stdlib.h>
#include<stdio.h>
main()
{
Display *dpy=XOpenDisplay(NULL);
int screen=DefaultScreen(dpy);
int errorcode[10],eventcode[10];
printf("%d\n",glXQueryExtension(dpy,errorcode,eventcode));
printf("%s\n",glXQueryExtensionsString(dpy,screen... |
---
layout: watch
title: TLP4 - 15/05/2019 - M20190515_050914_TLP_4T.jpg
date: 2019-05-15 05:09:14
permalink: /2019/05/15/watch/M20190515_050914_TLP_4
capture: TLP4/2019/201905/20190514/M20190515_050914_TLP_4T.jpg
---
|
# frozen_string_literal: true
module Devise
module Sso
module Controllers
# Those helpers are convenience methods added to ApplicationController.
module Helpers
def authenticate_sso!
return if sso_resource_signed_in?
respond_to do |format|
format.html { redire... |
import assert from "assert";
import { extract } from "../../../src/core/scrapers.js";
describe("Scraper: StarGR", function () {
it("should return URL when it's not a video", async function () {
const url = new URL("https://www.star.gr/lifestyle/media");
const options = { depth: false, incognit... |
export const addCommas = (value: string): string => value.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
export const removeCommas = (value: string): string => value.replace(/,/g, '');
export const checkIsValidNumber = (input: string): boolean => {
if (Number(input) < 0 || isNaN(Number(input))) {
return false;
}
r... |
# ${StrFilter}
* Convert string to uppercase or lowercase.
* Set symbol filter.
## Syntax
${StrFilter} "[string]" "[options]" "[symbols1]" "[symbols2]" $var
"[string]" ;[string]
; input string
;
"[options]" ;[+|-][1|2|3|12|23|31][eng|rus]
... |
using System;
using System.Threading.Tasks;
using ProcessControl.Industry;
using ProcessControl.Jobs;
using ProcessControl.Tools;
using UnityEngine;
public class ConstructionSite : MonoBehaviour, Buildable
{
public bool Assembled => this.enabled;
[SerializeField] private Recipe constructionRecipe;
p... |
#!/bin/sh
eval $(docker-machine env workshop-manager)
docker swarm init --advertise-addr $(docker-machine ip workshop-manager)
eval $(docker-machine env workshop-manager)
export TOKEN=$(docker swarm join-token worker -q)
eval $(docker-machine env workshop-worker1)
docker swarm join --token $TOKEN $(docker-machine ip... |
package com.prateekj.snooper.formatter
import com.prateekj.snooper.utils.TestUtilities.readFrom
import org.hamcrest.CoreMatchers.`is`
import org.junit.Assert.assertThat
import org.junit.Test
class JsonResponseFormatterTest {
@Test
@Throws(Exception::class)
fun shouldReturnFormattedJsonObject() {
val forma... |
package io.gitlab.arturbosch.grovlin.parser
import io.gitlab.arturbosch.grovlin.GrovlinParser
import org.assertj.core.api.Assertions
import org.junit.Test
/**
* @author Artur Bosch
*/
class ReturnTest {
@Test
fun simpleReturnStmt() {
val returnStmt = "return 5".parseStatement() as GrovlinParser.ReturnStatement... |
//======================================================================
/*! \file IbeoSdkTrackingBoxLiveDemo.cpp
*
* \copydoc Copyright
* \author Jan Christian Dittmer (jcd)
* \date Oct 23, 2015
*
* Demo project for connecting to a LUX and process the received
* data blocks.
*///-------------------------------... |
class Mixlr < Cask
url 'http://cdn.mixlr.com/Mixlr_beta_latest.pkg'
homepage 'http://mixlr.com'
version 'latest'
sha256 :no_check
install 'Mixlr_beta_latest.pkg'
uninstall :pkgutil => 'com.mixlr.Mixlr'
end
|
import odrive
from odrive.enums import *
from odrive.utils import dump_errors
import time
class OdriveInterface:
def __init__(self):
# CONSTANTS
self.MIN_MOTOR_RADS = 104 # So min wheel speed is ~50 RPM
self.MAX_MOTOR_RADS = 471 # So max wheel speed is ~200 RPM
self.MAX_EFFORT = 2... |
# Reloading
class Main
unless production?
FileUtils.mkdir_p Aura.root('tmp/')
FileUtils.touch Aura.root('tmp/restart.txt')
use(Pistol, app_files + [Aura.root('tmp/restart.txt')]) {
reset! and load(ENV['APP_FILE'])
}
end
end
|
;;; -*- mode: lisp; package: jnil.lib -*-
;;; Copyright (c) 2004-2005 Tiago Maduro-Dias. All Rights Reserved.
;;;
;;; This code is free software; you can redistribute it and/or
;;; modify it under the terms of the version 2.1 of
;;; the GNU Lesser General Public License as published by
;;; the Free Software Foundation... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\PatientController;
use App\Http\Controllers\UserController;
/*
|--------------------------------------------------------------------------
| Web Routes
|-------------------------------------------------------... |
%%====================================================================
%% Copyright (c) 2011, David Haglund
%% All rights reserved.
%%
%% Redistribution and use in source and binary forms, with or without
%% modification, are permitted provided that the following conditions
%% are met:
%%
%% * Redistributions of so... |
---
template: ModelPage
title: Connor
featuredImage: >-
https://ucarecdn.com/5c9fe007-b326-4717-a3a0-978910b2e6aa/-/crop/2048x1011/0,191/-/preview/
imageThumbnail: 'https://ucarecdn.com/e088a995-1444-432b-bde5-234e118da1e1/'
firstName: Connor
collection: Men
height: 179cm
measurementType: chest
bust: 96cm
waist: 79cm... |
package com.hoc081098.datastoresample.domain.usecase
import com.hoc081098.datastoresample.domain.repo.UserPreferencesRepository
class EnableSortByDeadline(
private val userPreferencesRepository: UserPreferencesRepository,
) {
suspend operator fun invoke(enabled: Boolean) =
userPreferencesRepository.en... |
//
// MenuDefine.cs
// ProductName Ling
//
// Created by toshiki sakamoto on 2021.04.11
//
namespace Ling.Common.Scene.Menu
{
/// <summary>
/// 定数
/// </summary>
public class MenuDefine
{
/// <summary>
/// メニューグループ
/// </summary>
public enum Group
{
Menu,
Shop,
}
/// <summary>
/// 各要素のカテゴ... |
#include <iostream>
using std::cout;
class Foo {
int value_ = 0;
public:
Foo (){}
Foo (int x) : value_(x) {}
int value () const { return value_; }
int value (int x) { return value_ = x; }
Foo& operator++ ();
Foo operator++ (int);
Foo& operator-- ();
Foo operator-- (int);
};
Foo& F... |
using FluentAssertions;
using ksqlDB.RestApi.Client.Infrastructure.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ksqlDB.Api.Client.Tests.Infrastructure.Extensions
{
[TestClass]
public class EnumerableExtensionsTests
{
[TestMethod]
public void IsOneOfFollowing()
{
//... |
---
макет : название слайда
: " Добро пожаловать на наш второй слайд! "
---
Ваш текст awwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
Используйте левую стрелку, чтобы вернуться!
|
# Description
Runs Get-IISAppPool and returns app pool names and their status.
# Author
Bryan Mason |
//! Encoding, where 8 trits are stored in two bytes.
//!
//! Advantages:
//! * Better memory-efficiency than T3B1, and same as T4B1.
//! * If the `hi` part is stored in byte 1, and the `lo` part in byte 2 at the same
//! relative position, then this form of vectorization allows high-level SIMD,
//! ... |
package com.github.saboteur.ticketbookingsystem.ticketbookingservice.mapper.dto
import com.github.saboteur.ticketbookingsystem.ticketbookingservice.dto.TicketDto
import com.github.saboteur.ticketbookingsystem.ticketbookingservice.mapper.Mapper
import com.github.saboteur.ticketbookingsystem.ticketbookingservice.mapper.... |
import type { Encodings } from "$lib/types/encodings";
import { sendAxisDimension } from "$lib/util/requests";
import type { Writable } from "svelte/store";
import { writable } from "svelte/store";
import { interestingDimensions } from "./interesting-dimensions";
export const activeViewEncodings: Writable<Encodings> =... |
// Type definitions for itty-router-extras 0.4
// Project: https://github.com/kwhitley/itty-router-extras
// Definitions by: David Roizenman <https://github.com/hmnd>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Router, Request as IttyRequest } from 'itty-router';
export { Router as Thro... |
# frozen_string_literal: true
$LOAD_PATH.push File.expand_path('lib', __dir__)
require 'clepsydra/version'
Gem::Specification.new do |spec|
spec.name = 'clepsydra'
spec.version = Clepsydra::Version::VALUE
spec.authors = ['Abhimanyu Singh']
spec.email = ['abhisinghabhimanyu@gmail.com']
spec.homepage = 'htt... |
require 'spec_helper'
require 'cleanroom/rspec'
describe 'RSpec matchers' do
let(:klass) do
Class.new do
include Cleanroom
def method_1; end
expose :method_1
def method_2; end
end
end
let(:instance) { klass.new }
describe '#be_an_exposed_method_on' do
context 'when given... |
if [[ -n $CUBES ]]; then
CUBES="$CUBES orders"
else
CUBES="orders"
fi |
/*
Copyright 2020 The Crossplane 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, sof... |
---
title: Number sequences in Microsoft Dynamics AX
TOCTitle: Number sequences
ms:assetid: 7e3b5fa7-6761-42ef-a296-620558a08172
ms:mtpsurl: https://technet.microsoft.com/library/Hh209291(v=AX.60)
ms:contentKeyID: 36058317
author: Khairunj
ms.date: 04/18/2014
mtps_version: v=AX.60
audience: Application User
ms.search.r... |
package lab2
import com.squareup.moshi.JsonClass
import com.squareup.moshi.Moshi
@JsonClass(generateAdapter = true)
data class SomeObj(
val hidden: Boolean,
val names: List<String>
)
fun main() {
val json = """
{
"hidden": true,
"names": ["a", "b"]
}
""".trimI... |
# frozen_string_literal: true
module Rockstart::Development
class GeneratorOverridesGenerator < Rails::Generators::Base
include Rails::Generators::AppName
source_root File.expand_path("templates", __dir__)
def add_custom_resource_routes_generator
template "resource_route_generator.rb",
... |
using System;
using Android.Media;
namespace PictureInPicture
{
public class MovieViewMediaPlayerOnCompletionListener : Java.Lang.Object, MediaPlayer.IOnCompletionListener
{
MovieView self;
public MovieViewMediaPlayerOnCompletionListener(MovieView self)
{
this.self = self;
... |
# Convert To UTF-8-BOM

这是一个嗯缝了以下两个开源项目而得到的产物,感谢这些项目的开发者们。
软件主体框架 https://github.com/hontsev/ShiftJISDecoder
文件编码识别 https://github.com/CharsetDetector/UTF-unknown
|
#!/bin/bash
TMP_PATH=`mktemp -d -t gstringer`
IFS='
'
SAMPLE_NUM=1;
SAMPLE_LIST="";
if [ "$(which ffmpeg)" == "" ]; then
echo "no ffmpeg installed :(";
exit -1
fi
while read LINE; do
QUOTED_LINE=`python -c "import urllib, sys; print urllib.quote(sys.stdin.read().replace('\n',''))" <<EOF
$LINE
EOF`
if [ "$QU... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.