text stringlengths 27 775k |
|---|
FactoryGirl.define do
factory :profile do
name "My first profile"
calls_per_second 5
max_calls 100
max_concurrent 10
transport_type "u1"
end
end
|
import BaseSeeder from '@ioc:Adonis/Lucid/Seeder'
import Region from 'App/Models/Region'
import Province from 'App/Models/Province'
export default class ProvinceSeeder extends BaseSeeder {
public async run() {
let northId: number = 0
let centerId: number = 0
let southId: number = 0
const uniqueKey = ... |
# -*- coding: utf-8 -*-
from django.conf import settings
# 自定义上下文管理器
def settings_info(request):
return {
'site_end_title':settings.SITE_END_TITLE,
'site_description':settings.SITE_DESCRIPTION,
'site_keywords':settings.SITE_KEYWORDS,
'my_github': settings.MY_GITHUB,
'my_cs... |
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:args/args.dart';
import 'package:automated_testing_framework_driver_websocket/driver.dart';
import 'package:automated_testing_framework_models/automated_testing_framework_models.dart';
import 'package:convert/convert.dart';
import 'package:c... |
@using Ateliex
@using Ateliex.Extensions
@using Ateliex.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
package exifcommand
import (
"encoding/csv"
"errors"
"flag"
"fmt"
"log"
"os"
"path/filepath"
"sort"
"strings"
"time"
exifutil "github.com/cxcheng/exifutil"
)
type OutCmd struct {
conf *Config
w *os.File
csvW *csv.Writer
filter string
cols []string
outType stri... |
//Problem 6. Sum integers
//You are given a sequence of positive integer values written into a string, separated by spaces.
//Write a function that reads these values from given string and calculates their sum.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threadi... |
import md5 from "md5";
function getUrl(type, uid, data = {}) {
// let host = "https://api-takumi-record.mihoyo.com/game_record/app/genshin/api/";
let host = "https://api-takumi.mihoyo.com/game_record/app/genshin/api/";
let server = getServer(uid);
let query = "";
let body = "";
switch (type) {
//首页宝箱
... |
#!/bin/bash
/home/baruque/HoneyMapping/scripts/kill_all_pid.sh /home/baruque/HoneyMapping/var/pid.txt
/home/baruque/HoneyMapping/scripts/monitor_files.sh
|
package com.mercari.data.condition.protobuf
import com.google.protobuf.Timestamp
object TimestampCondition {
// See https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto
private val SECONDS_LOWER_LIMIT = -62135596800L
private val SECONDS_UPPER_LIMIT = 253402300799L
priva... |
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;
class IndexController extends Controller
{
public function __construct()
{
//$this->middleware('guest');
}
protected function index()
{
$data['body'] = 'index.index';
... |
<?php
namespace Padosoft\Support\Test;
trait DateTimeDataProvider
{
/**
* @return array
*/
public function cal_days_in_monthProvider()
{
return [
'null, null, null' => [null, null, null, 'PHPUnit_Framework_Error'],
'\'\', \'\', \'\'' => ['', '', '', 'PHPUnit_Fram... |
import {Service} from 'typedi';
import {ConfigService} from './config.service';
import {createClient, RedisClient} from 'redis';
@Service()
export class RedisService {
private _redisClient: RedisClient;
constructor(private configService: ConfigService) {}
public get redisClient(): RedisClient {
if (this._redis... |
package responses
import models.Question
import responses.UserProtocol._
import responses.AnswerProtocol._
import spray.json._
case class QuestionResponse(id: Int,
from: UserResponse,
statusId: Int,
statusName: String,
... |
<?php
if(!function_exists('dateFormat'))
{
function dateFormat($format='d-m-Y', $givenDate=null)
{
return date($format, strtotime($givenDate));
}
}
if(!function_exists('dateFormatTime'))
{
function dateFormatTime($format='d-m-Y H:i:s', $givenDate=null)
{
return date($format, strtot... |
mkdir build
g++ glfw_startup.cpp -lglfw -lGL -lm -lX11 -lpthread -lXi -lXrandr -ldl -o build/glfw_startup |
fn main() {
println!("Hello, world!");
}
#[test]
fn sample_test() {
assert_eq!(digits(5), 1);
assert_eq!(digits(12345), 5);
assert_eq!(digits(9876543210), 10);
}
fn digits(n: u64) -> usize {
n.to_string().len()
} |
'use strict';
angular.module('main').service('Points', function (DataStore) {
var dataStore = DataStore('points');
this.earn = function (session) {
return dataStore.save({
amount: session.subject.topics[session.topic].points,
session: session
});
};
this.remove = function (session) {
return dataStore... |
# Spell Check Shootout
These are the results as of 2019-10-24
Command:
```bash
$ ./benchsuite.sh . Nightblood
```
Spell checkers:
- ripgrep 11.0.1 (rev 973de50c9e) -SIMD -AVX (compiled) +SIMD +AVX (runtime)
- Though not a spell checker, present to be a theoretical lower bound
- typos-cli 0.1.0 w/ cargo 1.38.0 (2... |
///////////////////////////////////////////////////////////////////////
// Copyright (c) 2018 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
///////////////////////////////////////////////////////////////////////
package io.dispatchframework.javabaseimage;
public interface FunctionExecutor {
... |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| r... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Javascript/jQuery functions to initialize UI on page
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
$(".menu-link").click(
function() {
show_page();
}
);
$(".home").click(
function() {
hide... |
; ###############################
; Draws an 8x8 sprite aligned to a grid
;
; Inputs:
; $82 = address of sprite
; $86 = x coord
; $87 = y coord
; Destroys:
; a, x, y
; $80, $81, $84
draw_sprite:
jsr get_coords ; Get starting VRAM coordinates into $80
ldy #0
draw_sprite_row:
lda ($82), y ; load (address + y) from ($8... |
def find_nth_term_for_an_arithmetic_sequence(first_term: int, common_difference: int, requested_term: int) -> int:
"""
Find the nth term in an arithmetic sequence
:param first_term:
:param common_difference:
:param requested_term
:return: the nth term
"""
return first_term + (req... |
package com.patres.automation.action.keyboard
import com.patres.automation.gui.controller.box.AbstractBox
import com.patres.automation.gui.controller.model.AutomationController
import com.patres.automation.keyboard.KeyboardKey
import com.patres.automation.type.ActionBootKeyboard
class HoldKeyboardButtonAction(
... |
// This file is licensed to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Spines.Utility
{
/// <summary>
/// An array of bits with methods to access single or multiple bits.
/// </summary>
public class BitField
{
/// <summary>
/// Instantiates ... |
package com.example.furlencotask.domain.usecases
import com.example.furlencotask.domain.Repository
import com.example.furlencotask.domain.entities.RequestType
import io.reactivex.Single
import javax.inject.Inject
/**
* Created by Sourik on 7/11/20.
*/
class GetRowCountUseCase @Inject constructor(private val reposi... |
#!/usr/bin/env python3
r"""
Use robot framework API to extract test data from test suites.
Refer to https://robot-framework.readthedocs.io/en/3.0.1/autodoc/robot.parsing.html
"""
import sys
import os
from robot.parsing.model import TestData
sys.path.append(os.path.join(os.path.dirname(__file__), "../lib"))
from gen_... |
<img src="slides/log.png" style="width:50%">
## 喫煙ログ機能
タバコを吸った本数を管理する機能
|
#include "Pickup.h"
#include "Physics.h"
#include "Renderer.h"
#include "Editor.h"
#include "Game.h"
#include "Destructable.h"
using namespace glm;
Health::Health()
{
className = "Health";
Tag("Roomless");
amount = 1;
}
void Health::Draw()
{
Render::DrawCircle(vec3(position, 11), vec2(1), vec4(1, 0.3, 0.3, 1... |
module Philbot
module Providers
class Rackspace
def dir
config = Philbot::Config.instance
rackspace = Fog::Storage.new(
{
provider: config['provider'],
rackspace_username: config['username'],
rackspace_api_key: config['a... |
package solutions.alterego.androidbound
import org.junit.Assert.assertTrue
import org.junit.Test
class KotlinJunitTest {
@Test
fun firstTest() {
assertTrue(true)
}
}
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use PDF;
use DB;
use App\Tabia;
use App\Woreda;
class PdfDemoController extends Controller
{
public function index(){
$Tabias = DB::table('hitsuys')
->join('midebas', 'hitsuys.hitsuyID', '=', 'midebas.hitsuyID')... |
#!/usr/bin/env python
"""reducer.py"""
from operator import itemgetter
import sys
import math
def median(lst):
lstLen = len(lst)
index = (lstLen - 1) // 2
if (lstLen % 2):
return lst[index]
else:
return (lst[index] + lst[index + 1])/2.0
batch_current = 0
metric_list = []
# input c... |
use super::BaseEvent;
use crate::ExtendedMap;
#[cfg(feature = "impl")]
use crate::MessageAlt;
use serde::{Deserialize, Serialize};
/// ## OneBot 消息事件 Content
///
/// 消息事件是聊天机器人收到其他用户发送的消息对应的一类事件,例如私聊消息等。
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct MessageContent {
#[serde(flatten)]
pu... |
COMMENT ON COLLATION testschema."Cl1_$%{}[]()&*^!@""'`\/#"
IS 'Description for alter';
ALTER COLLATION testschema."Cl1_$%{}[]()&*^!@""'`\/#"
RENAME TO "Cl1_$%{}[]()&*^!@""'`\/#a";
|
# Performance
## Browser Profiling
- It's not automated yet(Integrating with CI)
- So must perform it manually from time to time
## What to search for
- Memory leak - Increasing memory
- Bottleneck functions
- Rendering too much
## Tools
- Chrome V8 profiler
- React Extension
(?? Research more)
|
require 'net/http'
require 'uri'
require 'json'
module Sendable
class Client
attr_reader :api_key
def initialize(api_key)
@api_key = api_key
end
def render(params = {})
uri = URI('https://api.sendable.io/v1/render')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = tru... |
{"score_count": 17634, "score": 8.23, "timestamp": 1582633648.0}
{"score_count": 14868, "score": 8.19, "timestamp": 1581420070.0}
{"score_count": 13089, "score": 8.22, "timestamp": 1580812013.0}
{"score_count": 11977, "score": 8.22, "timestamp": 1580414615.0}
{"score_count": 11977, "score": 8.22, "timestamp": 158041461... |
using Quartz.Impl.Matchers;
using Quartz.Spi;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Quartz.Plugins.RecentHistory
{
public class ExecutionHistoryPlugin : ISchedulerPlugin, IJobListener
{
IScheduler _scheduler;
IExecutionHistoryStore _store;
publi... |
import React, { createContext, useContext } from "react";
import { GltfStore } from "./GltfStore";
import { SettingsStore } from "./SettingsStore";
export class RootStore {
public gltfStore = new GltfStore();
public settingsStore = new SettingsStore();
}
export const RootStoreContext = createContext<RootStore>({}... |
<!DOCTYPE html>
<html>
<head>
<title>Supermercado de Nuria Gutierrez Liano</title>
</head>
<body>
<?php
require_once 'categoria.php';
require_once 'producto.php';
require_once 'alimentacion.php';
require_once 'electronica.php';
require_once 'DB.php';
$bbdd = new db("localhost", "root", ... |
package com.depromeet.bboxx.data.repository
import com.depromeet.bboxx.data.mapper.TokenEntityMapper
import com.depromeet.bboxx.data.mapper.TokenValidEntityMapper
import com.depromeet.bboxx.data.repository.authsign.AuthSignDataSource
import com.depromeet.bboxx.domain.model.Token
import com.depromeet.bboxx.domain.model... |
package de.paulweber.routes.profile
import de.paulweber.getBaseUrl
import de.paulweber.plugins.getPrincipalIdentifier
import de.paulweber.profileStore
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.http.*
import io.ktor.request.*
import io.ktor.response.*
import io.ktor.routing.*
fun Application.re... |
-- more characters for storing IP addresses (to accommodate IPv6)
ALTER TABLE jforum_posts MODIFY poster_ip VARCHAR2(50);
ALTER TABLE jforum_privmsgs MODIFY privmsgs_ip VARCHAR2(50);
ALTER TABLE jforum_banlist MODIFY banlist_ip VARCHAR2(50);
ALTER TABLE jforum_sessions MODIFY session_ip VARCHAR2(50);
ALTER TABLE jfor... |
import {
bindActionCreators,
Dispatch,
} from 'redux';
import {
connect,
} from 'react-redux';
import {
fetchToken,
verifyToken,
} from '~/actions';
import {
State,
} from '~/reducers';
import {
AppComponent,
} from './AppComponent';
function mapStateToProps(state: State) {
return {
'token': state.accoun... |
<?php
namespace App\Exports;
use App\Models\Marca;
use Maatwebsite\Excel\Concerns\FromCollection;
class MarcasExport implements FromCollection
{
/**
* @return \Illuminate\Support\Collection
*/
public function collection()
{
$marcas = Marca::where('ma_eliminado',false)->get();
$ou... |
/*
* Copyright (c) 2020 by Denis Verentsov (decsent@yandex.ru)
* All rights reserved.
*/
package com.dvinc.core.di.component
import com.dvinc.core.di.DaggerApplication
import com.dvinc.core.di.module.AppToolsModule
import com.dvinc.core.di.provider.AppToolsProvider
import dagger.BindsInstance
import dagger.Compone... |
pad(io, n)::Void = print(io, " "^n)
# function Base.show(io::IO, q::QueryNode, leftmargin=0)::Void
# println(io, name(typeof(q)))
# pad(io, leftmargin+2); println(io, "arguments:")
# for (i, arg) in enumerate(q.args)
# pad(io, leftmargin+6); println(io, "$i) ", arg)
# end
# pad(io, leftmar... |
// ignore_for_file: unnecessary_this
import '../../curo.dart';
import '../daycount/convention.dart';
import 'cash_flow.dart';
import 'validator.dart';
/// A container for a series of cash in-flows and out-flows.
///
class Profile {
/// The cash flow series.
final List<CashFlow> cashFlows;
/// The day count con... |
$(document).ready(function() {
$('#allDataTable').DataTable({
"info": true,
"ordering": false,
"seraching": true,
"paging": true,
});
});
|
package models
import play.api._
import play.api.libs.json._
case class SongInput(
id: String,
startTime: Long,
endTime: Long,
titre: String,
titreAlbum: String,
interpreteMorceau: String,
anneeEditionMusique: Option[String],
label: Option[String],
visuel: Map[String, String],
lien: String
)
ca... |
package app.flux.react.uielements.media
import app.flux.action.AppActions
import app.flux.action.AppActions.AddSongsToPlaylist.Placement
import app.flux.router.AppPages
import app.flux.stores.media.AlbumDetailStoreFactory
import app.flux.stores.media.PlayStatusStore
import app.models.media.JsAlbum
import app.models.me... |
---
layout: static
title: Jupyter Notebook
template: 3-columns
name: Jupyter Notebbok
category: Machine Learning
---
# jupyter notebook
## インストール
アナコンダをインストール
## ローカルサーバーを起動する
```
$ cd <jupyter notebook>
$ jupyter notebook
```
## ローカルサーバーをシャットダウンする
```
$ (crtl + c)
```
## カーネル操作
セルで、bashを実行するには、コマンドの先頭に`!`を付ける
``... |
module Roleman
class Router
attr_reader :routes
def initialize(routes)
@routes = routes
end
#FIXME optimize lookup algorithm
def find_route(path, method)
method = method.upcase
routes.each do |route|
next unless route.method == method
if route.regex && route.reg... |
# @see http://api.myemma.com/api/external/fields.html
module Emma
module API
module Fields
# Gets a list of this account’s defined fields.
def my_fields(params = {})
get("/fields", params)
end
# Gets the detailed information about a particular field.
def get_field_by_... |
---
layout: post
title: "Nice Sky"
tags:
- albuquerque
- farm
- clouds
hero: ../uploads/IMAG1526_optimized.jpg
overlay: orange
published: true
---
[{:.lead}](../uploads/IMAG1526.jpg) |
using FluentValidation;
namespace ChallengeBuiltCode.Business.Models.Validations
{
public class PatientValidation : AbstractValidator<Patient>
{
public PatientValidation()
{
RuleFor(f => f.BirthDate)
.NotEmpty().WithMessage("The 'BirthDate' is required");
... |
import 'package:dio/dio.dart';
import 'package:flutter_template/util/interceptor/combining_smart_interceptor.dart';
import 'package:flutter_test/flutter_test.dart';
import '../../di/test_injectable.dart';
void main() {
CombiningSmartInterceptor sut;
setUp(() async {
await initTestInjectable();
sut = Comb... |
export enum AUTH_ROLES {
USER,
}
export const COOKIE_NAME_JWT_TOKEN = "JWT_TOKEN";
export const VISITOR_SIADBARS: { label: string; tab: string }[] = [
{
label: "User Info",
tab: "",
},
{
label: "Torrent Status",
tab: "torrentsStatus",
},
];
export const PROFILE_SIDEBARS: { label: string; ta... |
---
layout: tag
permalink: /ml-blog/
author_profile: true
header:
image: "/images/other/intro_3.png"
taxonomy: ml
entries_layout: list
---
Welcome to my blog! I hope you enjoy the posts.
Posts will either be Fun/Random <b>[Rand]</b> or Research/Ideas <b>[Idea]</b>.
Enjoy! |
<?php
session_start();
$jAdmin = $_SESSION['sUser'];
if( !isset($_SESSION['sUser']) ) {
header('Location: index');
}
//get database
$sData = file_get_contents('../data/subscribers.json');
$jData = json_decode($sData);
//handle input
$sSubject = $_POST['newsletter-subject'];
if(empty($sSubject)){sendResponse(0,... |
import {Injectable} from '@angular/core';
import {createMnemonic, getSHA3hashSum} from './binance-crypto';
import {StorageService} from './storage.service';
import {StateService} from './state.service';
@Injectable()
export class RegistrationService {
mnemonic: string = null;
private passHash: string;
con... |
enum SelectType { start, between, end, none, disabled, selected, empty }
|
<?php
namespace Mchekin\MVCBoiler\Filters;
abstract class Filter
{
protected $message = 'Invalid value';
protected $min = 3;
protected $max = 255;
/**
* @param string $value
* @return bool
*/
abstract public function validate($value);
/**
* @param string $value
* @re... |
class FiatStripe::Subscription::CancelStripeSubscriptionJob < ApplicationJob
queue_as :default
def perform(subscription)
if subscription
sub = Stripe::Subscription.retrieve({ id: subscription.id }, api_key: subscribable.stripe_api_key)
sub.delete
end
end
end
|
package levsha.benchmark
import org.openjdk.jmh.annotations.{Benchmark, Param, Scope, State}
@State(Scope.Benchmark)
class StaticRenderingComparision {
import StaticRenderingComparision.engines
// TODO "beard"
@Param(Array("levsha", "scalatags", "twirl"))
var engineName: String = _
@Benchmark def simpleH... |
# Emerald
面向游戏的轻量级绘图框架
# 支持
Visual Basic 6.0
# 功能
√ 基本图形的绘制
√ 即时控件
√ 安全游戏存档
√ 游戏资源管理器
√ 游戏页面管理器
√ 封装Bass的音乐播放器
√ 动画系统
# 文档
[Emerald Wiki](https://github.com/buger404/Emerald/wiki)
# English Version
# Emerald
A game framework for Visual Basic 6.0.
# Support
Visual Basic 6.0
# Functions
√ Bas... |
class VideoAuth
def initialize video, user = nil
@video = video
@user = user
end
def play
raise StandardError, "Unauthorized" unless @user == "Authenticated user"
@video.play
end
end
|
#!/usr/bin/perl
# Shared code for glibc conformance tests.
# Copyright (C) 2014-2016 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the... |
package controllers
import io.flow.healthcheck.v0.Client
import io.flow.healthcheck.v0.models.Healthcheck
import io.flow.test.utils.FlowPlaySpec
class HealthchecksSpec extends FlowPlaySpec with db.Helpers {
lazy val client = new Client(wsClient, s"http://localhost:$port")
"GET /_internal_/healthcheck" in {
... |
const { Router } = require('express')
const router = Router()
const auth = require('../middleware/auth')
const Poems = require('../model/Poema')
const rateLimit = require('express-rate-limit')
const { v4: uuidv4 } = require('uuid')
const User = require('../model/User')
const Category = require('../model/Category')
cons... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WeiXinManage.Model
{
/// <summary>
/// 图文信息
/// </summary>
public class S_ImageText : SendBase
{
public S_ImageText()
{
Articles = new List<Article>();
base.MsgTy... |
#!/bin/bash
# LinuxGSM install_factorio_save.sh function
# Author: Kristian Polso
# Website: https://linuxgsm.com
# Description: Creates the initial save file for Factorio
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
echo -e ""
echo -e "${lightyellow}Creating initial Factorio savefile${default}... |
using System;
using System.Collections.Generic;
using SmartSql.Configuration.Tags;
namespace SmartSql.IdGenerator
{
public interface ISnowflakeId : IIdGenerator
{
int MachineIdBits { get; }
int SequenceBits { get; }
long Epoch { get; }
DateTimeOffset EpochTime { get; }
l... |
# encoding: utf-8
require 'rubygems'
require 'yaml'
class Spore
module SpecParser
class Yaml
attr_reader :specs
def self.load_file(f)
YAML.load_file(f)
end
end
end
end
|
namespace EntityGraphQL.Schema.FieldExtensions
{
public class ConnectionArgs
{
// forward pagination
public int? First { get; set; } = null;
public string After { get; set; } = null;
[GraphQLIgnore]
public int? AfterNum { get; set; } = null;
// backward pagination... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Microsoft.AspNetCore.Http;
using RemoteFork.Network;
namespace RemoteFork.Requests {
public class ProxyM3u8RequestHandler : BaseRequestHandler<byte[]> {
public const string UrlPath = "p... |
import {indexCondition} from "../common/indexCondition";
/**
* @param array - The array to slice.
* @param start - The start position.
* @param end - The end position.
* Creates a slice of array from start up to, but not including, end.
* Note: This method is used instead of Array#slice to ensure dense arrays are... |
#!/bin/bash -e
# Debugging.
set -x
# Environment.
export SHELL=/bin/bash
# Fix https://github.com/aiidalab/aiidalab-docker-stack/issues/225
if [ -L /home/${SYSTEM_USER}/${SYSTEM_USER} ]; then
rm /home/${SYSTEM_USER}/${SYSTEM_USER}
fi
# Setup AiiDA jupyter extension.
# Don't forget to copy this file to .ipython/pr... |
package renetik.kotlin.collections
inline val Collection<*>.length get() = size
inline val Collection<*>.count get() = size
inline val Collection<*>.hasItems get() = isNotEmpty()
inline val Collection<*>.isEmpty get() = isEmpty()
inline val Collection<*>.lastIndex get() = size - 1
fun <T> Collection<T>.hasAll(var... |
package org.s3s3l.yggdrasil.redis;
import java.time.LocalDateTime;
import org.s3s3l.yggdrasil.redis.base.IRedis;
/**
* <p>
* </p>
* ClassName:AutoSwithRedis <br>
* Date: Mar 10, 2018 2:32:09 PM <br>
*
* @author kehw_zwei
* @version 1.0.0
* @since JDK 1.8
*/
public class AutoSwitchRedis {
private LocalD... |
---
title: Error occurs when setting Dynamics CRM for Outlook
description: This article provides a resolution to an error you may see when configuring the Microsoft Dynamics CRM Client for Microsoft Office Outlook.
ms.reviewer: jowells, chanson
ms.topic: troubleshooting
ms.date: 3/31/2021
---
# Cannot authenticate your... |
class AddressPresenter < BasePresenter
def full_name(format = :formal)
if format == :formal
[formal_name, first_name].compact.join(', ')
elsif format == :pdf
[title, first_name, name].compact.join(' ')
else
[first_name, name].compact.join(' ')
end
end
def detail_line
[addres... |
+++
fragment = "item"
#disabled = false
date = "2017-10-04"
weight = 330
background = "secondary"
align = "center"
title = "item"
image = "resource_logo.svg"
+++
|
package input_files
import (
"fmt"
"os"
"path/filepath"
)
type t struct {
myString string
}
func myPrint() {
println(T("isn't that grand"))
}
func Something() string {
myPrint() // a trivial case
someString := T("hello")
var anotherString string = T("world")
println(someString, anotherString)
yetAnother... |
export default (baseUrl, configData) => {
return fetch(baseUrl + "/api/v1/upsertBotConfig", {
method: "POST",
body: configData,
}).then(resp => {
return resp.json();
});
}; |
---
layout: capture
label: 20190606
station: TLP3
date: 2019-06-07 03:55:03
preview: TLP3/2019/201906/20190606/stack.jpg
capturas:
- imagem: TLP3/2019/201906/20190606/M20190607_035503_TLP_3P.jpg
- imagem: TLP3/2019/201906/20190606/M20190607_045909_TLP_3P.jpg
- imagem: TLP3/2019/201906/20190606/M20190607_075010_T... |
import 'dart:async';
import 'package:bloc_pattern/bloc_pattern.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
class LoginBloc extends BlocBase {
CollectionReference colecao = Firestore.instance.collection("usuarios");
String status = "";
final StreamController _streamController = StreamControlle... |
package xyz.luan.audioplayers.source
import android.media.MediaPlayer
import xyz.luan.audioplayers.player.SoundPoolPlayer
import java.io.ByteArrayOutputStream
import java.io.File
import java.io.FileOutputStream
import java.net.URI
import java.net.URL
data class UrlSource(
val url: String,
val isLocal: Boolean... |
class MovieCastModel {
final int id;
final int castId;
final String character;
final String name;
final String profilePath;
MovieCastModel({
this.id,
this.castId,
this.character,
this.name,
this.profilePath,
});
}
|
import fs = require('fs');
import os = require('os');
import path = require('path');
import ts = require('typescript');
var FILENAME_TS = 'file.ts';
function tss(code: string, options?: ts.CompilerOptions): string {
if (options) {
return new tss.TypeScriptSimple(options).compile(code);
} else {
... |
#To be inserted at 800238d4
###########################################
##FPSHack_14_ActorEventMoveApproval_LowHz##
###########################################
lis r17, 0x817F
lwz r17, 0x0000 (r17) #Load LowHzUpdate
#####
cmpwi r17, 0
bne- 0x0008
#####
li r3, 0
#####
cmpwi r3, 2 #Vanilla |
<?php
/**
* @author Thomas Müller <thomas.mueller@tmit.eu>
*
* @copyright Copyright (c) 2018, ownCloud GmbH
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foun... |
<?php namespace Victorem\Entities;
use Illuminate\Database\Eloquent\Model;
class Answer extends Model
{
public $timestamp = true;
public $fillable = ['text', 'question_id'];
}
|
TODO:
- Extend to fit random effects on turn angle and transistion probability
- Extend to fit covariates
- Consider estimating mean turn angle...may be useful for quantifying effects of sound on heading
|
package me.rainstorm.jvm;
public final class ClassFileParseTest implements Interface1, Interface2 {
@Anno
public static final boolean FLAG = true;
public static final byte BYTE = 123;
public static final char X = 'X';
public static final short SHORT = 12345;
public static final int INT = 123456... |
import {Filter} from "./filter"
import * as p from "core/properties"
import {Indices} from "core/types"
import {ColumnarDataSource} from "../sources/columnar_data_source"
export namespace InversionFilter {
export type Attrs = p.AttrsOf<Props>
export type Props = Filter.Props & {
operand: p.Property<Filter>
... |
<?php
declare(strict_types=1);
namespace Falgun\Application\Tests;
use Falgun\Routing\Router;
use Falgun\Fountain\Fountain;
use Falgun\Application\Config;
use PHPUnit\Framework\TestCase;
use Falgun\Reporter\ProdReporter;
use Falgun\Application\Application;
final class ApplicationTest extends TestCase
{
public f... |
using System;
namespace src.Api.domain.Entity
{
public class Character : Entity
{
public String firstname { get; set; }
public String lastname { get; set; }
public String grade { get; set; }
public long experience { get; set; }
public Status status { get; set; }
public Skill skills { get; s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.