text stringlengths 27 775k |
|---|
<?php
/**
* 会员服务
* User: keepwin100
* Date: 2019-06-12
* Time: 13:52
*/
namespace community\service;
use authority\exception\MemberException;
use authority\includes\helper\HelperPassword;
use community\model\Member;
use community\model\MemberToken;
use core\service\Service;
use core\utils\ExLog;
class MemberS... |
"""
leftjoin!(df1, df2; on, makeunique=false, source=nothing,
matchmissing=:error)
Perform a left join of two data frame objects by updating the `df1` with the
joined columns from `df2`.
A left join includes all rows from `df1` and leaves all rows and columns from `df1`
untouched. Note that each ro... |
package poofazentech;
public class Producao_leite {
protected String nome_vaca;
protected String especie_vaca;
protected String ultima_ordenha;
protected float temperatura_leite;
protected float qtd_quarto_mamario;
protected boolean inseminacao;
protected String estimativa_parto;
protect... |
#!/usr/bin/env node
let fileReader = require('./file-reader'),
fileProcessor = require('./json-processor');
exports = module.exports = function(file, options) {
let outputOptions = {}
// The format to convert to
outputOptions.type = options.type || "pdf";
// The file name and path to output to
outputOptions.ou... |
# Sudoku_GUI_Solver
A basic GUI used for sudoku puzzle.
First run pip install pygame to successfully run this code.
## Controls -
- Use Numpad for entry into blocks.
- Use arrows to move around the box.
- Press **ENTER** to check whether the entered number is correct or not.
- Press **SPACE** to auto-solve the sudo... |
package firebomb.criteria;
public abstract class PropertyCriterion {
private String propertyName;
public PropertyCriterion(String propertyName) {
this.propertyName = propertyName;
}
public String getPropertyName() {
return propertyName;
}
}
|
import S3GuildRepository from '../../../repositories/implementations/S3/s3GuildRepository';
import S3UserRepository from '../../../repositories/implementations/S3/s3UserRepository';
import addGuildToUserUseCase from '../../user/addGuildToUser';
import AcceptGuildInviteUseCase from './acceptGuildInviteUseCase';
const u... |
#[path = "../common/mod.rs"]
mod common;
use common::*;
use core::fmt::Debug;
use struct_variant::struct_variant;
#[struct_variant(Shape)]
enum ShapeEnum {
Round(Circle),
Rectangle,
}
#[struct_variant(Shape)]
#[derive(Debug)]
enum ShapeEnumWithDerive {
Round(Circle),
Rectangle,
}
fn main() {
assert_shape_bound... |
package com.rocbillow.doraemon.ui.main
import androidx.fragment.app.activityViewModels
import com.arch.sunflower.ui.GardenActivity
import dagger.hilt.android.AndroidEntryPoint
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
/**
* @author rocbillow
* @date 2021-01-07
*/
@AndroidEntryPo... |
<?php
namespace App\Models\AccountChart;
use Illuminate\Database\Eloquent\Model;
class Account extends Model
{
protected $table = 'account';
protected $fillable = [
'account_name',
'account_code',
'description',
'dashboard_watchlist',
'required_status',
'accou... |
package com.apprecipe.rijkscollection.data
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
class ArtDetailResponse(
@Json(name = "artObject") val artDetail: ArtDetail
)
|
tekstflyt
=========
tekstflyt, norwegian for text flow is a game that gets your story flowing.
|
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json;
namespace Ropufu.JsonSchemaToHpp
{
public sealed class CppIntegerSchema : CppSchemaBase
{
public override Boolean DoPassByValue => true;
public CppIntegerSchema(JsonSchema schema)
: base(sch... |
app.controller('depositController', function(usersService, $route){
console.log($route.current.$$route.originalPath);
this.users = usersService.get();
this.loggedInUser = usersService.loggedIn;
this.type = 1;
this.amount = null;
this.deposit = function() {
this.loggedInUser.user.balance += this.amount;
thi... |
sweet :: IO ()
sweet = do
inp <- getLine
putStrLn $ reverse inp
bitter :: IO ()
bitter = putStrLn . reverse =<< getLine
|
require "spec_helper_#{ENV['SPEC_TARGET_BACKEND']}"
describe file('/swapfile') do
it { should be_file }
it { should be_mode 600 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
describe command('swapon -s') do
its(:stdout) { should contain('/swapfile') }
end
|
//
// Copyright 2014 Hong Miao (miaohong@miaohong.org). 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 ... |
var unionNumberString;
class C {
}
class D extends C {
foo1() {
}
}
class E extends C {
foo2() {
}
}
var unionDE;
var num;
var str;
var c;
var d;
var e;
// A union type U is assignable to a type T if each type in U is assignable to T
c = d;
c = e;
c = unionDE; // ok
d = d;
d = e;
d = unionDE; // error e... |
/* Resource fork of software/extras/Iconographer Support/Testing/crashing/NIWINC1.01 */
resource 'icns' (-16455, "Programs window") {
{ /* array elementArray: 4 elements */
/* [1] */
'ICN#',
$"0000 0000 0000 0000 0000 0000 0000 0000"
$"0000 0000 0000 0000 0000 0000 0000 0000"
$"0000 0000 0000 0000 0000 0000 ... |
<?php
class Sabai_Addon_Field_Type_CAPTCHA extends Sabai_Addon_Field_Type_AbstractType
{
protected function _fieldTypeGetInfo()
{
return array(
'label' => __('CAPTCHA', 'sabai'),
'cacheable' => false,
'exportable' => false,
'viewable' => false,
);
... |
package eu.kanade.tachiyomi.extension.all.dragonball_multiverse
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.MangasPage
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.ka... |
#include "dmzJsModuleUiV8QtBasic.h"
#include <dmzJsV8UtilConvert.h>
#include "dmzV8QtObject.h"
#include "dmzV8QtUtil.h"
#include <QtGui/QAction>
#if 0
dmz::V8Value
dmz::JsModuleUiV8QtBasic::_create_action (const v8::Arguments &Args) {
v8::HandleScope scope;
V8Value result = v8::Undefined ();
JsModuleUiV8Qt... |
package fitnesse.idea.fixtureclass
import com.intellij.psi.stubs.Stub
import fitnesse.idea.parser.FitnesseElementType
import fitnesse.idea.psi.{MockIndexSink, PsiSuite}
class FixtureClassTest extends PsiSuite {
test("can create stubs for fixture class") {
val deserialized: Stub = createFileAndSerializeAndDeser... |
using System;
using Newtonsoft.Json;
namespace CatFacts.Net.Models {
public class Fact {
/// <summary>
/// Whether or not the Fact has been sent by the CatBot. This value is reset each time every Fact is used
/// </summary>
public bool? Used { get; set; }
/// <summary>
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.uniandes.csw.turismo.entities;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.CascadeType... |
package team.easytravel.ui;
import java.util.logging.Logger;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.Region;
import team.easytravel.commons.core.LogsCenter;
import team.easytravel.model.trip.Trip;
/**
* Panel containing the list of persons.
*/
public class DashboardPa... |
import { Message } from 'discord.js';
import { random as getHaiku } from 'haiku-random';
import { Action } from '../Action';
import { ActionResult } from '../ActionResult';
export class HaikuAction extends Action {
handle(message: Message): ActionResult {
const match = /^!haiku/i.exec(message.content);
if (match)... |
# Picker (Picker Calculator)
Picker Calculator is a calculator with spinning wheel.
How to use:
1) Move upper and lower spinning wheels.
2) Select the location of the decimal point.
3) Select "+" or "-" or "x" or "÷".
You will get the answer.
|
class PostSetMaintainer < ApplicationRecord
belongs_to :user
belongs_to :post_set
validate :ensure_not_set_owner, on: :create
validate :ensure_set_public, on: :create
validate :ensure_maintainer_count, on: :create
validate :ensure_not_duplicate, on: :create
after_create :notify_maintainer
def notify_... |
// This is a generated file (see the discoveryapis_generator project).
// ignore_for_file: unused_import, unnecessary_cast
library googleapis.displayvideo.v1;
import 'dart:core' as core;
import 'dart:async' as async;
import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dar... |
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
{-# LANGUAGE TypeFamilies, EmptyCase, LambdaCase #-}
{-# LANGUAGE UndecidableInstances #-}
-- Check some DataFamilies, warning appearance and other stuff
module EmptyCase005 where
data Void
newtype Void2 = Void2 Void
data Void3 = Void3 Void
-- Exhaustive
f1 :: Void2... |
module Secretary
class Version < ActiveRecord::Base
#monkey patch
self.table_name = "secretary_versions"
acts_as_paranoid
belongs_to :version_object_change, dependent: :destroy, inverse_of: :version
validates :versioned, presence: true
validates :version_object_change, presence: true, uniq... |
import java.util.Scanner;
class G
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
char ch=sc.next().charAt(0);
switch(ch)
{
case 'a': System.out.println("Choice entered is a vowel.");
break;
case 'A': System.out.println("Choice entered is a vowel.");
... |
# 自己实现的高斯图像滤波器
虽然OpenCV中有并且可以直接实现这个功能,但是我还是想自己试试做一下.
## 参考
[图像处理基础(4):高斯滤波器详解](https://www.cnblogs.com/wangguchangqing/p/6407717.html) |
import '../App.css';
import { Col, Container, Row } from 'react-bootstrap';
import { Result, NavbarComponent, ListCategory, Menus } from '../components';
import React, { Component } from 'react';
import { API_URL } from '../utils/Constants';
import axios from 'axios';
import swal from 'sweetalert';
export defa... |
import { HttpResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ExamChecklist } from 'app/entities/exam-checklist.model';
import { Exam } from 'app/entities/exam.model';
import { ExamManagementService } from 'app/exam/manage/exam-management.service';
import { Observable } from ... |
namespace FunctionApp.Models.Options
{
public class ApplicationOptions
{
public bool UseMSI { get; set; }
public System.Int16 FrameworkWideMaxConcurrency { get; set; }
public ServiceConnections ServiceConnections { get; set; }
public TimerTriggers TimerTriggers { get; set... |
/**
* Created by Phan Trung Nguyên.
* User: nguyenpl117
* Date: 6/3/2020
* Time: 8:47 AM
*/
import {Facade} from "../Facade";
import {HashManager} from "../../Hashing/HashManager";
export const Hash: HashManager = Facade.create<HashManager>('hash') |
# Electrical-Charger-
Want To build the EV charging Software that will totally based on cloud system
|
# JSYG.fetch
fetch polyfill with control of http status :
the promise will be rejected if the status is ( < 200 and != 0) or ( >= 300 and != 304 ).
### Installation
```shell
npm install jsyg-fetch
```
You can also install it with bower
### Usage with webpack/babel
```javascript
import fetch from "jsyg-fetch"
fetch... |
---
id: 02
title: "Portfolio"
tags: ["React", "TypeScript", "Gatsby.js", "Netlify"]
repo: "https://github.com/franklinfarahani/franklin.codes"
external: "https://www.franklin.codes/"
media: "./portfolio.png"
---
My personal website where I display my past projects and blog about JS-related topics.
Built using the Gats... |
import React from 'react';
import { NotesSortKey, Folder } from '../utils/enums';
import { sync } from '../slices/sync';
//==============================================================================
// Items
//==============================================================================
export interface NoteItem ... |
import tensorflow as tf
import numpy as np
def predict_with_model(model, imgpath):
"""
Predict an image to which class it belongs
Parameters:
model: tensorflow model
imgpath: to be predicted image path (str)
Returns:
prediction: predicted class (int)
"""
image = tf.io... |
function Find-UnusedDockerImage {
[CmdletBinding()]
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string]
$Repository
,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[int]
$AgeInDays
)
$Data = Find-UnusedArtifact @P... |
module ActiveRecord::TypedStore
class TypedHash < HashWithIndifferentAccess
class << self
attr_reader :columns
def create(columns)
Class.new(self) do
@columns = columns.index_by { |c| c.name.to_s }
end
end
end
def initialize(constructor={})
super()
... |
package com.example.instagram_clone_clean_architecture.app.data.retrofit.responses
import com.example.instagram_clone_clean_architecture.app.data.model.UserProfileDataModel
data class AddRelationResponse(
val followings: List<UserProfileDataModel>
)
|
# -*- coding: utf-8 -*-
from amplify.agent.objects.abstract import AbstractObject
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__license__ = ""
__maintainer__ = "Mike Belov"
__email__ = "dedm@nginx.com"
def _version_to_tuple(version):
return tuple(map(int, str(versio... |
package com.ebfstudio.comet
import androidx.lifecycle.*
import com.ebfstudio.comet.util.AppDispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
@Deprecated(message = "Remplacé par SingleEventAction")
class Vmh<T>(
private val viewModel: ViewModel,
private val dispatchers: AppDisp... |
package com.example.ljduserinterface1
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import kotlinx.android.synthetic.main.second_layout.*
import kotlinx.android.synthetic.main.third_layout.*
class MainActivity : AppCompatActivity() {
override fun onCreate(sav... |
@extends('layout/main')
@section('title', 'Add Category | Coda.com')
@section('container')
<div class="container">
<div style="margin-top: 150px; margin-bottom: 150px;">
<div class="col-xs-6 mb-4">
<h2>Add New Category</h2>
</div>
<form method="post" action="{{url('kategori_... |
package view
import (
"github.com/awesome-gocui/gocui"
"github.com/wagoodman/dive/dive/filetree"
"github.com/wagoodman/dive/dive/image"
)
type Views struct {
Tree *FileTree
Layer *Layer
Status *Status
Filter *Filter
Details *Details
Debug *Debug
}
func NewViews(g *gocui.Gui, imageName string, analy... |
import { createApolloServer } from './server';
(function main() {
if (process.env.NODE_ENV !== 'production') {
const path = require('path');
const dotenvOutput = require('dotenv').config({ env: path.resolve(__dirname, '../.env') });
if (dotenvOutput.error) {
throw dotenvOutput.error;
}
}
co... |
using System;
using PokeTrader.Core.Resources;
namespace PokeTrader.Core.Trader.Models
{
public record Player
{
public string Name { get; init; } = TextResources.UnknownPlayer();
public Player(int tradeOrder)
{
Name = TextResources.TraderName(tradeOrder);
}
... |
<?php
namespace Entap\Laravel\Carp;
use Illuminate\Contracts\Routing\Registrar as Router;
class RouteRegistrar
{
/**
* The router implementation.
*
* @var \Illuminate\Contracts\Routing\Registrar
*/
protected $router;
/**
* Create a new route registrar instance.
*
* @par... |
-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 07, 2015 at 08:52 AM
-- Server version: 5.6.26
-- PHP Version: 5.6.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `cleanblog`
--
-- -------------------------------... |
jsdoc3-plugin-propertyof
======================
## Plugin Origin
Note: The original source code for this plugin was found here: https://github.com/vmeurisse/jsdoc3-plugin-propertyof
It has been included in `c2cs-jsdoc` for convenience, consistency, and ease-of-use.
## Usage
This plugin allows you to split split the... |
#!/usr/bin/env bash
DOCKER_IMAGE_VERSION=${1:-latest}
# go to repo root
repo_root="$(cd $(dirname ${BASH_SOURCE[0]})/.. && pwd)"
cd "${repo_root}"
# Step 1: pull the latest builder image
docker pull goslalom.azurecr.io/go-slalom:builder || true
# Step 2: build the 'builder' stage, using pulled image as cache. If th... |
package run.qontract.contract.utilities
import run.qontract.core.utilities.URIUtils.parsePathParams
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import java.net.URI
import java.net.URISyntaxException
internal class URIUtilsTest {
@Test
@Throws(URISyntaxException::class)
fun sh... |
namespace Node.Interfaces
{
public interface IPostHttpRequest
{
T Send<T>(string url, string json, string userAgent = null);
}
} |
class LocationData {
double latitude;
double longitude;
String address;
LocationData(this.latitude, this.longitude, this.address);
}
|
package edu.berkeley.cs.succinct.sql
import com.google.common.io.Files
import org.apache.spark.LocalSparkContext
import org.apache.spark.sql.Row
import org.apache.spark.sql.types.{StringType, StructField, StructType}
import org.apache.spark.storage.StorageLevel
import org.apache.spark.{SparkConf, SparkContext}
import ... |
package world.gregs.voidps.world.interact.entity.player.combat.magic.spell
import world.gregs.voidps.engine.client.message
import world.gregs.voidps.engine.entity.character.npc.NPC
import world.gregs.voidps.engine.entity.character.player.Player
import world.gregs.voidps.engine.entity.character.player.chat.ChatType
imp... |
-- There is a table World
-- +-----------------+------------+------------+--------------+---------------+
-- | name | continent | area | population | gdp |
-- +-----------------+------------+------------+--------------+---------------+
-- | Afghanistan | Asia | 652230 | 2550... |
package no.nav.dagpenger.soknad.serder
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import no.nav.dagpenger.soknad.html.InnsendtSøknad
internal class JsonHtmlMapper(
private val søknadsData: String,
tekst: String,
private val språk: Innsendt... |
# alligator 🐊
Alligator is a small crate for getting the output value from a future
```rust
#![feature(async_await)]
#![feature(futures_api)]
#[macro_use] extern crate alligator;
async fn hello_world() -> &'static str {
"Hello World"
}
fn main() {
println!("{}", later!{ hello_world() });
}
```
|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Payment extends Model
{
protected $fillable = ['title', 'name', 'status', 'order', 'payment_key'];
public function scopeActive($query)
{
$query->where('status', 1);
}
public function scopeOrder($query)
{
$... |
#!/usr/bin/env bash
ENV=pair
MODEL=lstm
python -m train --env $ENV --model $MODEL --T 100 &
python -m train --env $ENV --model $MODEL --T 50 &
python -m train --env $ENV --model $MODEL --T 20 &
python -m train --env $ENV --model $MODEL --T 10 & |
class RenameExpedienteTable < ActiveRecord::Migration
def change
rename_table :expedientes, :legislative_files
rename_table :estado_expedientes, :legislative_files_status
rename_table :expedientes_despachos, :legislative_files_procedures
rename_table :expedientes_tags, :legislative_files_tags
ren... |
<?php
declare(strict_types=1);
namespace JsonMarshler\Validation\Rules;
use JsonMarshler\Json\JsonType;
use JsonMarshler\Validation\Error\FieldMissingError;
use JsonMarshler\Validation\Error\FieldTypeError;
use JsonMarshler\Validation\ValidationErrors;
use PHPUnit\Framework\TestCase;
/**
* Tests for FieldExistsOrN... |
var module = angular.module("lvl.directives.dragdrop", ['lvl.services']);
module.directive('lvlDraggable', ['$rootScope', 'uuid', function ($rootScope, uuid) {
return {
restrict: 'A',
link: function (scope, el, attrs, controller) {
angular.element(el).attr("draggable", "true");
... |
<!DOCTYPE html>
<html>
<head>
<title>My website</title>
</head>
<body>
<h1>This is my site, very secure.</h1>
<h2>You cannot hack this site.</h2>
<h3>This site does not have a backdoor as backdoor.php</h3>
</body>
</html>
|
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :right_domain
private
def right_domain
if request.subdomain.present?
Agent8ballRails::Application.redirect(request.referer)
redirect_to 'http://agent8ball.com', :status => :moved_permanently
en... |
package com.newrelic.agent.service.module;
import com.newrelic.agent.extension.ExtensionsLoadedListener;
import com.newrelic.agent.instrumentation.context.ClassMatchVisitorFactory;
import com.newrelic.api.agent.Logger;
import java.util.concurrent.ExecutorService;
public class JarCollectorInputs {
private final E... |
---
name: Test file 2
when: 2021-01-02
---
Test file 2 body
with multiple lines
here's a wiki link to [[Test file 3]]
here's a [md link to Test file 4](./directory/Test file 4.md) as well
|
<?php
/*
** Zabbix
** Copyright (C) 2001-2019 Zabbix SIA
**
** This program 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 2 of the License, or
** (at your option) any later version.
**
** Th... |
#!/bin/sh
mkdir -p sampled-linear-traits
mkdir -p sampled-lineage-traits
mkdir -p slice-stratified-sampled-linear-data
mkdir -p slice-stratified-sampled-lineage-data
mkdir -p slice-stratified-filtered-linear-data
mkdir -p slice-stratified-filtered-lineage-data
######## Sample exported datafiles to create synthetic a... |
import { Component, OnInit } from '@angular/core';
import {BackofficeService} from '../../services/backoffice.service';
import {NotificationsService} from 'angular2-notifications';
@Component({
selector: 'app-management',
templateUrl: './management.component.html',
styleUrls: ['./management.component.css']
})
ex... |
{-# LANGUAGE BangPatterns #-}
import Prelude hiding (getLine, filter, putStrLn)
import Text.Parsing.Parser (char, decimal, simpleParse)
import qualified Text.Parsing.List.Simple as LS
import qualified Text.Parsing.List.StaticInfo as LI
import qualified Text.Parsing.List.Memo as LM
import qualified Text.Parsing.List.Co... |
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
const int N = 2e5 + 9, mod = (1 << 16) - 1;
const unsigned int M = ~0u;
int cnt[mod + 1];
inline int popcount(unsigned int x){
... |
package com.github.kerubistan.kerub.model.controller.config
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonTypeName
import com.github.kerubistan.kerub.model.Entity
import com.github.kerubistan.kerub.model.Range
import com.github.kerubistan.kerub.utils.emptyString
/**
*... |
require_relative "./test_helper"
class Rails3Mailer < ActionMailer::Base
include QC::Mailer
default :from => "from@example.org", :subject => "Subject"
def test_mail(*params)
mail(*params)
end
end
class PriorityMailer < Rails3Mailer
self.queue_name = 'priority-mailer'
end
describe 'QC::Mailer' do
in... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;
use DB;
use Illuminate\Support\Facades\Log;
use Auth;
class ClientController extends Controller
{
public function index()
{
// $clients = User::join("role_user","users.id","=","... |
/*
* CVidConfig.cpp
*
* Created on: 04.02.2011
* Author: gerhard
*/
#include "CVidConfig.h"
#include <cstring>
#include <cstdio>
CVidConfig::CVidConfig()
{
reset();
}
bool CVidConfig::operator==(const CVidConfig& target)
{
return ( memcmp( &target, this, sizeof(CVidConfig)) == 0);
}
bool CVidConfig... |
package org.myddd.vertx.grpc
import io.vertx.core.Future
interface ServiceProxy<T> {
suspend fun grpcService(): Future<T>
suspend fun <X> rpcRun(execute:(service:T)->Future<X>):Future<X>
suspend fun lazyLoad():Future<Unit>
} |
chrome.storage.sync.get(null, function(data) {
console.log(data);
showStorage($('#keys'), data);
});
|
# Shell script for "Symlink to Dropbox" Automator action
# by Mike Green
# Copyright (C) 2009, Mike Green
# GNU General Public License
for f in "$@"
do
ssh fifthroom@dunder.local "ln -s \"$f\" /Users/fifthroom/.dropbox-alt/Dropbox/`basename \"$f\"`"
osascript -e "tell application \"Finder\" to display dialog \"Symli... |
package no.nav.helse.dokument.crypto
import java.util.*
import javax.crypto.Cipher
import javax.crypto.SecretKey
import javax.crypto.SecretKeyFactory
import javax.crypto.spec.GCMParameterSpec
import javax.crypto.spec.PBEKeySpec
import javax.crypto.spec.SecretKeySpec
private const val ALGO = "AES/GCM/NoPadding"
class... |
class Object
def to_jexp
JSON.parse(JSON.dump([self])).first
end
end
|
---
description: The ICertPropertyRenewal interface exposes the following properties.
ms.assetid: 966C4584-625C-49BE-B4EF-5FB8311BE4E2
title: ICertPropertyRenewal Properties
ms.topic: reference
ms.date: 05/31/2018
---
# ICertPropertyRenewal Properties
The [**ICertPropertyRenewal**](/windows/desktop/api/CertEnroll/nn-... |
#ifndef CARMEL__CONFIG_HPP
#define CARMEL__CONFIG_HPP
#include <graehl/shared/glibc_memcpy.hpp>
//#define USE_OPENFST
// we usually enable this from Makefile -DUSE_OPENFST
#ifdef USE_OPENFST
// set this only if you add -I$(OPENFST)/src and have installed headers or also -I$(OPENFST)/src/include
# include <cstring>
#... |
package hostmeta
const XMLNS = "http://docs.oasis-open.org/ns/xri/xrd-1.0"
const XMLRel = "lrdd"
const MimeType = "application/xrd+xml"
|
#!/bin/bash
set -v -x
# An array DIRSTACK is used to keep directory stack.
# Display DIRSTACK.
dirs -v
# Or display it directly.
echo "${DIRSTACK[@]}"
# Add a new directory into stack.
pushd /home
pushd .
pushd ..
pushd ~
# The folder must be existing.
pushd /NoExisting
dirs -v
# "-l" will expend ".", ".." and ... |
# frozen_string_literal: true
# Create an api access token for root user with the value:
token = 'ypCa3Dzb23o5nvsixwPA'
scopes = Gitlab::Auth.all_available_scopes
Gitlab::Seeder.quiet do
User.find_by(username: 'root').tap do |user|
params = {
scopes: scopes.map(&:to_s),
name: 'seeded-api-token'
... |
package com.tanyayuferova.franklin.ui.main
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.... |
import pandas as pd
import matplotlib.pyplot as plt
from collections import defaultdict
import numpy as np
seen = []
all = []
d = defaultdict(list)
dict_names = []
with open("timings.txt") as f:
for line in f:
lis = line.split()
if len(lis) == 3:
d[lis[1]].append(int(lis[2]))
... |
---
toc_priority: 151
---
# skewSamp {#skewsamp}
Computes the [sample skewness](https://en.wikipedia.org/wiki/Skewness) of a sequence.
It represents an unbiased estimate of the skewness of a random variable if passed values form its sample.
``` sql
skewSamp(expr)
```
**Arguments**
`expr` — [Expression](../../../s... |
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg
name = "Catalyst"
version = v"0.1.0"
sources = [
GitSource("https://gitlab.kitware.com/paraview/catalyst",
"16dc369855a7c29bb00829cf8ecb16fa3b7ebd4... |
# kjs.report.api
#### 前言
该项目之所以开源出来,以助长更多的人有机会接触 .net core ,同时满足部分人的需求。
#### 项目介绍
基于ASP.NET Core Mvc +EF Core服务端系统架构,同时根据自己的实际应用需求可调整为集群部署。
#### 技术选型
- Redis:分布式缓存数据库 https://redis.io/
- NLog:日志组件 http://nlog-project.org/
- AutoMapper:映射 http://automapper.org/
- Swagger:API帮助文档 https:/... |
<?php
/**
* Copyright (c) 2008, David R. Nadeau, NadeauSoftware.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:
*
* * Redistributions of source code must retain the above copyright
... |
# test.sh
# Copyright (C) 2008 梅どぶろく umedoblock
gcc test_unit_DH_simple.c -o test_unit_DH_simple -lutbi_sanjutsu
./test_unit_DH_simple 1024 53
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.