text stringlengths 27 775k |
|---|
import Home from './home';
import Login from './login';
import Page1 from './pages/Page1';
import Page2 from './pages/Page2';
const routes = [
{
path: '/login',
component: Login,
},
{
path: '/home',
component: Home,
routes: [
{
path: '/home/page1',
component: Page1,
},
{
path: '/home... |
package com.github.omarmiatello.androidslf4jlogger
import android.util.Log
import org.slf4j.helpers.MarkerIgnoringBase
import org.slf4j.helpers.MessageFormatter
@Suppress("TooManyFunctions")
public abstract class BasicAndroidLogger(
internal val levelMin: Int = Log.DEBUG,
) : MarkerIgnoringBase() {
public ab... |
---
category: event
title: SPLASH
logo: /resources/img/splash.png
location: Indianapolis
description: Systems, Programming, Languages and Applications Software for Humanity
start: 26 October 2013
end: 31 October 2013
link-out: http://splashcon.org/2013/
--- |
#pragma once
#include <QString>
#include <QPair>
#include <QList>
#include <QStringList>
#include <QMap>
#include <QDir>
#include <memory>
#include "logic/minecraft/OneSixRule.h"
#include "logic/minecraft/OpSys.h"
#include "GradleSpecifier.h"
#include "logic/net/URLConstants.h"
class RawLibrary;
typedef std::shared_p... |
package ch.veehait.devicecheck.appattest.attestation
import javax.annotation.processing.Generated
internal data class AttestationObject(
val fmt: String,
val attStmt: AttestationStatement,
val authData: ByteArray,
) {
data class AttestationStatement(
val x5c: List<ByteArray>,
val recei... |
class Foo derives Bar
trait Bar[T]
object Bar {
def derived[T]: Bar[T] = new Bar[T] {}
}
|
---
question: If I forget my password how do I retrieve it?
answer: -On the log-in page (lifeloopapp.com/login) you can select "Forgot Your
Password?". This will direct you to another page where you can enter the email
address that is associated with your LifeLoop account. We will email you a
password reset link ... |
#import <Flutter/Flutter.h>
#import <StoreKit/StoreKit.h>
@interface BillingPlugin : NSObject <FlutterPlugin, SKPaymentTransactionObserver, SKProductsRequestDelegate>
@end
|
package graphs
import (
"fmt"
"testing"
)
var (
initDAG1 = func() DirectedGraph {
g := InitDirectedGraph(8)
g.AddEdge(0, 1)
g.AddEdge(1, 2)
g.AddEdge(1, 5)
g.AddEdge(1, 7)
g.AddEdge(3, 1)
g.AddEdge(3, 4)
g.AddEdge(4, 5)
g.AddEdge(6, 4)
g.AddEdge(6, 7)
return g
}
initDAG2 = func() DirectedGr... |
tasks.register("hello") {
doLast {
println("Hello world!")
}
}
tasks.register("intro") {
dependsOn("hello")
doLast {
println("I'm Gradle")
}
}
|
#ifndef platforms_arch_arm64_regs_h
#define platforms_arch_arm64_regs_h
#include "kitzz.h"
#include "CommonKit/log/log_kit.h"
#include "instructions.h"
typedef enum _ZzARM64Reg {
ZZ_ARM64_REG_X0 = 0,
ZZ_ARM64_REG_X1,
ZZ_ARM64_REG_X2,
ZZ_ARM64_REG_X3,
ZZ_ARM64_REG_X4,
ZZ_ARM64_REG_X5,
ZZ_... |
import PropTypes from "prop-types";
import React from "react";
import Header from "./header";
import Footer from "./footer";
import Imports from "./imports";
// Crisp chat
import "../assets/js/crispchat.js";
// Navigation
import ReactGA from "react-ga";
ReactGA.initialize("UA-165932729-1");
if (process.browser) {
... |
package org.klips.engine.rete
import org.klips.dsl.Facet
import org.klips.engine.Binding
import org.klips.engine.Modification
import org.klips.engine.util.Log
abstract class Node(val log: Log) {
abstract val refs : Set<Facet.FacetRef<*>>
private val consumers_ = mutableListOf<Consumer>()
val consum... |
from PIL import Image
import glob
for name in glob.glob('../datasets/train/img/0/*.tiff'):
im = Image.open(name)
name = str(name).rstrip(".tiff")
im.save(name + '.png', 'PNG')
for name in glob.glob('../datasets/train/gt/0/*.tiff'):
im = Image.open(name)
name = str(name).rstrip(".tiff")
im.save... |
# Install libwebp on Windows.
# Downloads and installs the specified prebuilt version from Google's servers.
$LibVer = $args[0]
$LibArchive = "libwebp-$LibVer-windows-x64"
#Download and extract the release package
$DownloadPath = New-TemporaryFile
$LibArchiveURL = "https://storage.googleapis.com/downloads.webmproject... |
// <copyright file="AppMetricsServiceCollectionExtensionsTests.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using App.Metrics;
using App.Metrics.Extensions.DependencyInjection;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjec... |
package crossword.configuration;
import java.util.ArrayList;
public class Configuration {
public int size;
public Configuration(int size) {
this.size = size;
}
private Matrix fillingMatrix(Words words) {
Matrix m = new Matrix(size);
m.amountOfWords = 0;
long startTime = System.currentTimeMi... |
#[macro_use]
extern crate serde_derive;
mod remote {
pub struct S(pub u16);
}
#[derive(Deserialize)]
#[serde(remote = "remote::S")]
struct S(u8);
fn main() {}
|
This module is present for backwards compatibility and should not be used -
for support for a specific mesh file format, depend on the specific
module, instead.
|
---
layout: post
title: "Bem vindo!"
ref: welcome
date: 2019-09-07 10:00:00 +0100
categories:
lang: pt
---
## A lista de ferramentas
|
#!/bin/sh
cd ../
FILES=*.txt
for f in $FILES
do
filename="${f%.*}"
echo "Converting $f to $filename.md"
`pandoc $f -f rst -t markdown -o docs/$filename.md`
done
pwd
cd docs
`mv README.md index.md`
|
class Question < ActiveRecord::Base
belongs_to :clinet
has_many :answers
# This is Sinatra! Remember to create a migration!
end
|
import { Component, OnInit } from "@angular/core";
import { MenuItem, MessageService } from "primeng/api";
import { UserService } from "../services/user.service";
import {
trigger,
state,
style,
transition,
animate
} from "@angular/animations";
import { Character } from "../character";
@Component({
selecto... |
param(
$modulePath = 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'
,$locationSite = "SMA"
,$deviceName
,$collectionName
,$severity = "Error"
,$viewingPeriod = "2/17/2020 7:00 PM"
,$ruleId = 1
,$option
)
# Loads the Configurat... |
class UpdateUser < Struct.new(:params, :current_user)
attr_reader :status
def save
fail UnauthorizedError unless allowed_to_edit?
update_user
end
def errors
user.errors.full_messages.to_sentence
end
def user
@user ||= User.find(params[:id])
end
private
def update_user
user.as... |
package main
import (
"fmt"
_ "strconv"
"strings"
car "github.com/mohae/carchivum"
"github.com/mohae/contour"
log "github.com/mohae/ezlog"
magicnum "github.com/mohae/magicnum/compress"
)
func Create(dst string, sources ...string) (string, error) {
switch contour.String(Format) {
case "zip":
return createZ... |
#!/bin/sh
IFS=","
HOSTNAMES="d5blade22,d5blade23,d5blade24,d5blade25"
HOSTS=`echo ${HOSTNAMES//","/" "} | wc -w`
TASKSPERRANK=7
MFDSGD_PATH=/home/chteflio/workspace/mf/build/examples/fmakari
MATRIX_PATH=/home/chteflio/InitialMatrices_sorted_averagedOut
FACTOR_PATH=/home/chteflio/InitialFactors_Rank60
. include.sh
cp... |
<?php
namespace Acacha\ForgePublish\Commands\Traits;
/**
* Trait InteractsWithLocalGithub.
*
* @package Acacha\ForgePublish\Commands\Traits
*/
trait InteractsWithLocalGithub
{
/**
* Get github repo from github.
*
* @return string
*/
protected function getRepoFromGithubConfig()
{
... |
<?php
namespace Sourceout\LastFm\Services;
use Sourceout\LastFm\Http\HttpInterface;
use Sourceout\LastFm\Providers\ProviderInterface;
class ServiceFactory
{
/** @var ProviderInterface */
private $provider;
/** @var HttpInterface */
private $http;
/**
* Constructor method for the client
... |
export var albumGetters = {
methods: {
getAlbum: function (id) {
return this.$store.state.data.albums[id]
},
getMainArtistForAlbum: function (albumId) {
return this.$store.state.data.artists[this.getAlbum(albumId).mainArtist]
},
getTracksForAlbum: function (albumId) {
return Obje... |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.7
// Test that parameters keep their names in the output.
import 'package:async_helper/as... |
#include <stdio.h>
#include <psec/tc.h>
int main(void) {
char test_1[9] = "testing!";
char test_2[9] = "testing!";
tc_memmove(test_1, test_1 + 2, 4);
tc_memmove(test_2 + 2, test_2, 4);
puts(test_1);
puts(test_2);
return 0;
}
|
class RenameEventToRecurringEvent < ActiveRecord::Migration[5.2]
def change
rename_table :events, :recurring_events
rename_column :event_instances, :event_id, :recurring_event_id
end
end
|
package internal
import "testing"
func TestExtractJSPath(t *testing.T) {
fakeHTML := `
<!DOCTYPE html>
<html>
<head>
<title>fastester.com</title>
</head>
<body>
<script src="/app-888deadbeef888.js"></script>
</body>
</html>
`
if jsPath := extractJSPath(fakeHTML); jsPath != "/app-888d... |
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Assertions
inline fun <reified T : Throwable> assertThrowsSuspend(crossinline executable: suspend () -> Unit) {
Assertions.assertThrows(T::class.java) {
runBlocking { executable() }
}
} |
#!/usr/bin/env bash
declare -x GITEA_SSH_MINIMUM_KEY_SIZES_ED25519
[[ -z "${GITEA_SSH_MINIMUM_KEY_SIZES_ED25519}" ]] && GITEA_SSH_MINIMUM_KEY_SIZES_ED25519="256"
declare -x GITEA_SSH_MINIMUM_KEY_SIZES_ECDSA
[[ -z "${GITEA_SSH_MINIMUM_KEY_SIZES_ECDSA}" ]] && GITEA_SSH_MINIMUM_KEY_SIZES_ECDSA="256"
declare -x GITEA_SS... |
import { IsNotEmpty, IsString } from 'class-validator';
export class AssignData {
user: string;
quantity: string;
amount: string;
percent: number;
info: string;
}
export class AuthorityUnit {
authorityName: string;
flag: boolean;
data: string;
description: string;
}
export class DacCreateReqDto {
... |
import type {App, ComponentOptionsMixin, Plugin} from 'vue';
import ElementPlus from 'element-plus';
import {library} from '@fortawesome/fontawesome-svg-core';
import {fab} from '@fortawesome/free-brands-svg-icons';
import {far} from '@fortawesome/free-regular-svg-icons';
import {fas} from '@fortawesome/free-solid-svg-... |
## Java Messaging Service
This is a good introductions [video](https://www.youtube.com/watch?v=lsAyTeUUXHk&t=74s)
## References
1. _https://www.javatpoint.com/jms-tutorial_
2.
|
package faraday.derived.mechanical
import faraday.Units
import faraday.base.Distance
import faraday.derived.Force
/**
* Torque is the rotational equivalent of linear force. It is also referred to as the moment,
* moment of force, rotational force or turning effect, depending on the field of study. The
* concept or... |
#!/usr/bin/env kscript
@file:DependsOn("com.soywiz:wasm2kt:0.0.3")
@file:MavenRepository("soywiz-bintray", "https://dl.bintray.com/soywiz/soywiz")
com.soywiz.wasm.Wasm.main(args)
|
#!/usr/bin/env ruby
require 'minitest/autorun'
require 'pssh'
require 'socket'
class PSSHTest < Minitest::Test
PSSH_BIN = PSSH.new([]).method(:execute).source_location[0]
def test_cli
h = Socket.gethostname
output = `#{PSSH_BIN} #{Socket.gethostname} 127.0.0.1 "echo foo" 2>/dev/null`
skip "PSSH failed... |
package com.nnt.core
class ResultT {
companion object {
}
}
class CallT {
companion object {
}
} |
@inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.Author>
@using ContentModels = Umbraco.Web.PublishedContentModels;
@Html.Partial("AuthorInfo", Model)
|
import { configureStore, connectStore } from 'midux';
import { reduxObservable } from 'redux-observable';
import counter from './reducers/counter';
import navigation from './reducers/navigation';
let middleware = [
reduxObservable()
];
if (process.env.NODE_ENV !== 'production') {
middleware.push(require('redux-l... |
// Copyright 2017 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.
namespace std {
// This is the move that should be flagged. Representes the unary std::move.
template <typename T>
T move(T t) {
return t;
}
// This r... |
---
title: MacOS 修改 mac 地址
date: 2018-06-14 09:03:16
description: 公司的网络接入是需要 ip 地址和 mac 地址绑定在一起的,笔记接入的 WiFi 没绑定就无法上网,公司那么多电脑不用,就使用他们已经绑定好的 静态 IP 地址和 mac 地址来上网
categories: [MacOS篇]
tags: [MacOS]
---
<!-- more -->
公司的网络接入是需要 ip 地址和 mac 地址绑定在一起的,笔记接入的 WiFi 没绑定就无法上网,公司那么多电脑不用,就使用他们已经绑定好的 静态 IP 地址和 mac 地址来上网
1. 随机生成一个全新的M... |
//css_dir ..\..\..\;
//css_ref Wix_bin\SDK\Microsoft.Deployment.WindowsInstaller.dll;
//css_ref System.Core.dll;
using System;
using System.IO;
using System.Windows.Forms;
using Microsoft.Deployment.WindowsInstaller;
using WixSharp;
using WixSharp.Nsis;
public static class Script
{
public static void Main(string[... |
// Code generated by Wire protocol buffer compiler, do not edit.
// Source file: ../wire-runtime/src/test/proto/custom_options.proto
package com.squareup.wire.protos.custom_options;
import com.google.protobuf.EnumOptions;
import com.google.protobuf.EnumValueOptions;
import com.google.protobuf.FieldOptions;
import com.... |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module S3Demo (s3Main) where
import Control.Lens ((&), (.~), (^.))
import Control.Monad
import Data.Foldable
import qualified Data.HashMap.Strict as HashMap
import Data.Text (Text)... |
package com.lts.core.commons.file;
import com.lts.core.logger.Logger;
import com.lts.core.logger.LoggerFactory;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.channels.FileChannel;
/**
* 文件锁
*
* @author Robert HG (254963746@q... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using VndbSharp.Attributes;
using VndbSharp.Models.Common;
namespace VndbSharp.Models.User
{
/// <summary>
/// User Lists
/// </summary>
... |
import { ErrorCorrectionLevel } from "../types";
interface ErrorCorrectionLevels {
[key: string]: ErrorCorrectionLevel;
}
declare const _default: ErrorCorrectionLevels;
export default _default;
|
package com.alibaba.tesla.appmanager.server.service.componentpackage;
import com.alibaba.tesla.appmanager.common.pagination.Pagination;
import com.alibaba.tesla.appmanager.domain.req.componentpackage.ComponentPackageCreateByLocalFileReq;
import com.alibaba.tesla.appmanager.domain.req.componentpackage.ComponentPackageN... |
<?php
declare(strict_types=1);
namespace AsyncAws\Core\Tests\Unit\Exception\Http;
use AsyncAws\Core\Exception\Http\ClientException;
use AsyncAws\Core\Test\Http\SimpleMockedResponse;
use PHPUnit\Framework\TestCase;
class ClientExceptionTest extends TestCase
{
public function testRestJsonError()
{
$js... |
#include "src/math/float/erfcf.c"
#include "unary.h"
#include <assert.h>
int main(void)
{
assert(erfcf(INFINITY) == 0);
assert(erfcf(-INFINITY) == 2);
for (uint32_t i = 0; i < 0x7F800000; i += 111) {
float x = reinterpret(float, i);
verify(approx(erfcf(x), erfc(x), 1), x);
verify(a... |
json.array!(@event_comments) do |event_comment|
json.extract! event_comment, :id, :body,, :string
json.url event_comment_url(event_comment, format: :json)
end
|
#!/bin/bash
SCRIPTDIR=`dirname $0`
source "$SCRIPTDIR/functions"
###############################
# MAIN
###############################
start_server master
check_get 18011 "/?a=*" '"count":0'
start_server store_n_forward
start_server agent_to_store_n_forward
# these should be ignored for being too old
send_stat ag... |
package tech.harmonysoft.oss.leonardo.model.runtime
interface DataMapper {
fun dataXToVisualX(dataX: Long): Float
fun visualXToDataX(visualX: Float): Long
} |
export * from './FormStatus';
export * from './FormStatusList';
export * from './FormStatusListItem'; |
#include "backendattachedtype.h"
BackendAttachedType::BackendAttachedType(QObject *parent) : QObject(parent)
{
}
|
# diamant
Diamant / Incan Gold clone
## Tests
```bash
docker-compose run --rm e2e
```
|
package repository.hbase.reportingunit
import repository.hbase.HBase.{ RowKeyDelimiter, Wildcard }
import uk.gov.ons.sbr.models.enterprise.Ern
import uk.gov.ons.sbr.models.reportingunit.Rurn
object ReportingUnitQuery {
def byRowKey(ern: Ern, rurn: Rurn): String =
queryBy(ern, rurnSelector = rurn.value)
def f... |
/*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by Denis Oliver Kropp <dok@directfb.org>,
Andreas Shim... |
# Ball game
PhoneGap app to test the maps on cordova plugin amd Phaser.
## Usage
### PhoneGap CLI
phonegap serve
[PhoneGap Developer App](http://docs.phonegap.com/getting-started/2-install-mobile-app/)
|
#include <cassert>
#include <sv/platform/Platform.h>
namespace sv {
void Platform::queueEvent(const PlatformEvent &event) { queue.push(event); }
// Platform &Platform::getSingleton() {
// assert(singleton);
// return (*singleton);
// }
// Platform *Platform::getSingletonPtr() { return singleton; }
}
|
@file:Suppress("RemoveExplicitTypeArguments")
package com.marknkamau.justjavastaff.di
import com.marknkamau.justjavastaff.ColorUtils
import com.marknkamau.justjavastaff.data.local.SettingsRepoImpl
import com.marknkamau.justjavastaff.data.local.SettingsRespository
import org.koin.android.ext.koin.androidContext
import... |
{-# OPTIONS_GHC -Wall #-}
module Output where
import Data.Functor.Identity
import Control.Applicative
newtype OutputT o m a = OutputT { runOutputT :: m (a, o) }
type Output o = OutputT o Identity
instance Functor m => Functor (OutputT o m) where
fmap f m = OutputT $ (fmap $ \ (a, o) -> (f a, o)) $ runOutputT m
... |
/*
* Copyright 2013 Commonwealth Computer Research, Inc.
*
* 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 applica... |
module.exports = () => {
return $scope => {
return channel => {
return {
message,
open,
close,
error
};
function message(channel, event) {
const msg = JSON.parse(event.data);
}
function open(channel) {
}
function close(channel)... |
<?php
declare(strict_types=1);
namespace Novuso\System\Test\Resources;
use JsonSerializable;
use Novuso\System\Type\Comparable;
use Novuso\System\Type\Equatable;
use Novuso\System\Utility\Assert;
use Novuso\System\Utility\Validate;
/**
* Class TestStringObject
*/
class TestStringObject implements Comparable, Equa... |
-- Table generation script for sightings table
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema m... |
using Microsoft.AspNetCore.Mvc;
using TreatsList.Models;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
namespace TreatsList.Controllers
{
public class TreatsController : Controller
{
private readonly TreatsListContext _db;
public TreatsController(TreatsListConte... |
import { SubstateIdT } from './_types'
import { combine, Result } from 'neverthrow'
import { noTab } from './removeWhitespace'
import { BufferReaderT } from '@radixdlt/util'
const parseFromBufferReader = (
bufferReader: BufferReaderT,
): Result<SubstateIdT, Error> =>
combine([
bufferReader.readNextBuffer(32),
bu... |
velo.lua
========
This directory contains an implementation of Velo in Lua 5.1,
called `velo.lua`. Its source resides in the `src` subdirectory.
It also contains a demonstration of running `velo.lua` in a
web browser, under [Fengari][], in the `demo` subdirectory.
In order to for this demonstration to work locally,... |
# Superflous code
# Contains code ported from Prof. Hicksn's Mapping_Mod.f90
@doc """
### calcJacobian
!!!!! NOT NEEDED !!!!
Calculates the metric Jacobian value based on the B-spline explicit mapping.
**Arguments**
* `map` : Object of Mapping type
* `Jac` : Array of mesh Jacobians in j,k,m format
"""->
f... |
package me.liuli.mashiro.command.commands
import me.liuli.mashiro.Mashiro
import me.liuli.mashiro.command.Command
class ToggleCommand : Command("toggle", "Allow you toggle modules without open ClickGui", arrayOf("t")) {
override fun exec(args: Array<String>) {
if (args.isNotEmpty()) {
args.for... |
import React from 'react'
import styled from 'styled-components'
import { ParallaxProvider } from 'react-scroll-parallax'
import Nav from './Nav'
import Footer from './Footer'
import './layout.css'
import { ReactChildren } from '../types'
import { HEADER_HEIGHT, FOOTER_HEIGHT } from '../constants/measurements'
const ... |
## 1.0.19
- Support for Curve25519 GPG keys (via vendored PR: keybase/go-crypto#38)
- Support for Signature Subpacket 33 (via vendored PR: keybase/go-crypto#39)
## 1.0.18
- Some people (like @brentmaxwell) had broken sigchains due to bad
short signature IDs. Ignore those. (via vendored PR: keybase/go-crypto#36)
-... |
# InfiniteCollectionView
Infinite horizontal scrolling using `UICollectionView`
[](http://cocoadocs.org/docsets/InfiniteCollectionView)
[](https://d... |
import Skylink from '../../../../../index';
import { TAGS } from '../../../../../constants';
import handleNegotiationStats from '../../../../../skylink-stats/handleNegotiationStats';
import logger from '../../../../../logger';
import messages from '../../../../../messages';
import parsers from '../../../parsers';
impor... |
Roman Numbers - Java
====================
Simple java class to create roman number literals from decimal integers and vice versa.
Two static methods:
```java
import RomanNumbers.Roman;
System.out.println( Roman.toInteger ( "CDLXXVI" ) );
System.out.println( Roman.toRoman ( 1917 ) );
```
which result in this output:... |
package controllers.auth.ldap
import java.util.Hashtable
import javax.naming._
import javax.naming.directory._
import com.google.inject.Inject
import controllers.auth.AuthService
import play.api.Configuration
import scala.util.control.NonFatal
class LDAPAuthService @Inject()(globalConfig: Configuration) extends Aut... |
$(document).ready(function() {
var serviceItems = $(".services-item");
$(serviceItems).click(function() {
$(serviceItems).removeClass("active");
$(serviceItems).find(".services-dropdown").slideUp();
$(this).addClass("active");
$(this).find(".services-dropdown").slideDown();
});
}); |
require 'rails_helper'
describe User::OmniauthCallbacks, type: :model do
let(:callback) { Class.new.extend(User::OmniauthCallbacks) }
let(:data) { { 'email' => 'email@example.com', 'nickname' => '_why', 'name' => 'why' } }
let(:uid) { '42' }
describe 'new_from_provider_data' do
it 'should respond to :new_... |
/*
* Copyright 2011-2017 Chris de Vreeze
*
* 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 agree... |
package com.imohsenb.ISO8583.interfaces;
import java.math.BigDecimal;
/**
* @author Mohsen Beiranvand
*/
public interface Financial<T> {
DataElement<T> setAmount(BigDecimal amount);
}
|
#![feature(rustc_macro)]
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate log;
extern crate env_logger;
extern crate dotenv;
extern crate redis;
extern crate r2d2;
extern crate r2d2_redis;
extern crate regex;
use dotenv::dotenv;
use r2d2_redis::RedisConnectionManager;
use std::thread;
use std::env::... |
create table t(a bit(1000));
insert into t values(B'1111111111');
insert into t values(null);
create index idx on t (LEAST(a,a));
drop t;
create table t(a char(3));
insert into t value('SQL');
CREATE INDEX idx ON t(lower (a));
drop table t;
|
La miscelazione richiede due conti dedicati nel portafoglio - un conto "miscelato" e un
conto "non miscelato".
Quando il miscelatore è attivato, dei Decred saranno trasferiti dal conto non miscelato
al conto miscelato.
Le transazioni miscelate vengono create ogni 20 minuti, ma solo se ci sono abbastanza partecipanti
... |
{-|
Module : HOI4.Events
Description : Feature handler for Hearts of Iron IV events
-}
module HOI4.Events (
parseHOI4Events
, writeHOI4Events
) where
import Debug.Trace (traceM)
import Control.Arrow ((&&&))
import Control.Monad (liftM, foldM, forM)
import Control.Monad.Except (MonadError (..))
... |
/*
IPTech.Coroutines is a coroutine and debug visualizer library
Copyright (C) 2019 Ian Pilipski
This program is free software: you can redistribute it and/or modify
it under the terms of the MIT license
You should have received a copy of the MIT License
along with this program. If not, see <... |
var cmd = new SqlCommand("INSERT INTO tb_Instrumento SET Identificacao = @Identificao, Descricao = @Descricao, ... aqui vai colocar todos os campos ..., Certificado = @Certificado, ... pode ter outros aqui", connection);
cmd.Parameters["@Identificacao"].Value = identificacaoTextBox.Text;
cmd.Parameters["@Descricao"].V... |
This skill wraps python-aiml library and allows developer to integrate AIML scripts into DeepPavlov dialog system.
If you'd like to find more free AIML scripts here is link:
https://github.com/pandorabots/Free-AIML
You can set path to folder with your AIML scripts as config param (see attr `path_to_aiml_scripts`). |
use crate::Dimensions;
use chargrid_input::{
keys, Input, KeyboardInput, MouseButton as ChargridMouseButton, MouseButton, MouseInput,
ScrollDirection,
};
use chargrid_render::Coord;
use winit::dpi::{LogicalPosition, PhysicalSize};
use winit::event::{
ElementState, ModifiersState, MouseButton as GlutinMouseB... |
#ifndef OPENPOSE_POSE_BODY_PARTS_CONNECTOR_HPP
#define OPENPOSE_POSE_BODY_PARTS_CONNECTOR_HPP
#include <openpose/core/common.hpp>
#include <openpose/pose/enumClasses.hpp>
namespace op
{
template <typename T>
void connectBodyPartsCpu(
Array<T>& poseKeypoints, Array<T>& poseScores, const T* const heatMa... |
[TOC]
---
# What is MariaDB?
We install MariaDB as database server.
If you want further information please check the [Wikipedia page](https://en.wikipedia.org/wiki/MariaDB).
# Tasks
* Install MariaDB
* Enable MariaDB autostart
---
# Install MariaDB
**Debian/Ubuntu/Raspbian**
```sh
root@cloudserver:~# apt-get ... |
# prometheus metrics exemple
- http://localhost:8080/actuator/prometheus
- http://localhost:3000
- http://localhost:9090 |
package net.ollie.maths.functions.angular
import org.scalatest.{Matchers, FlatSpec}
/**
* Created by Ollie on 07/02/14.
*/
class AngleTest extends FlatSpec with Matchers {
}
|
extern crate libusb;
use std::time::Duration;
use std::thread;
use pandacan::Panda;
fn main() {
let context = libusb::Context::new().unwrap();
let panda = Panda::new(&context, Duration::from_millis(100));
let fw = panda.get_fw_version().expect("Error getting fw version");
println!("FW version: {:x?}"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.