text stringlengths 27 775k |
|---|
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;
using OpenLiveWriter.PostEditor.ContentSources;
namespace OpenLiveWriter.PostEditor
{
public sealed class PostEditorInitializer
{
/// <summary>
... |
{-# LANGUAGE TupleSections #-}
module Scan where
import qualified Data.Set as S
import qualified Data.Vector as V
import Data.List
import Data.Function
import Data.Maybe
import qualified Data.Map as M
import Control.Applicative
import Control.Monad
import Geom
diffs :: [Vec3] -> [(Vec3,Vec3,Vec3)]
diffs vs =
map ... |
# description
## package setup
1. $: mvn clean compile package
2. copy jar to new dstorage-v{currentDate}
3. compress finished
## directory name rule
```
example: dstorage-v2020.0313
explain: appName-v{currentDate}
```
## dist structure
| key |desc
|-----|------
| / |
| ├─ app/ | 程序内部资源,包含配置文件、G... |
module Parser where
import Control.Monad
import Text.ParserCombinators.Parsec
import Text.ParserCombinators.Parsec.Expr
import Text.ParserCombinators.Parsec.Language
import qualified Text.ParserCombinators.Parsec.Token as Token
import TinyPL
languageDef =
emptyDef { Token.commentStart = "/*"
, Token.... |
package mayacomms
import com.intellij.openapi.util.SystemInfo
import com.intellij.util.io.exists
import java.nio.file.Paths
private const val mayaExecutableNameWin = "maya.exe"
private const val mayaPyExecutableNameWin = "mayapy.exe"
private const val mayaExecutableNameMac = "Maya"
private const val mayaPyExecutable... |
/*
* Public API Surface of vmts-lib
*/
export const LIBRARY_VERSION = '0.1.0';
export * from './lib/api';
export * from './lib/model-collection';
export * from './lib/model-property';
export * from './lib/named-property-model';
export * from './lib/visitor-helpers';
export * from './lib/visitor-limiters';
export *... |
<img src="topf.svg" height="128" />
# Topf — Topological peak filtering
`topf` is a small library for Python 3 that permits the detection and
subsequent filtering of peaks in one-dimensional functions. The method
is based on a topological notion of *prominence* or *persistence* of a
peak with respect to all ot... |
package net.ripe.db.whois.common.grs;
import net.ripe.db.whois.common.domain.CIString;
import net.ripe.db.whois.common.rpsl.ObjectType;
import org.apache.commons.io.IOUtils;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.junit.jupiter.api.extension.Exte... |
Rails.application.routes.draw do
get 'page/dashboard', :as => 'dashboard'
get 'page/login', :as => 'login'
resources :people do
resources :signatures
resources :goals
resources :contributions
end
root 'page#login'
# For details on the DSL available within this file, see http://guides.rubyonra... |
---
layout: post
title: Tensor란 무엇인가?
tags: [ML]
comments: true
---
- Tensor
Tensor란 수학적인 개념의 하나로 인공지능에서의 Tensor는 데이터의 배열이라고 볼 수 있다. Tensor는 Rank에 따라서 다르게 불리며 Rank는 간단히 말해서 몇 차원으로 이루어진 배열인가를 나타낸다.
| RANK | TYPE | EXAMPLE |
| :------ |:--- | :--- |
| 0 | Scalar | [1] |
| 1 | Vector | [1, 1] |
| 2 | Matrix | [[1, 1], ... |
require "ershou/engine"
require "cancan"
require "inherited_resources"
require "simple_form"
require "kaminari"
require "kaminari-bootstrap"
require "slim"
require "state_machine"
require "paperclip"
require 'redcarpet/compat'
require 'unread'
require 'acts_as_paranoid'
require 'acts_as_list'
require 'twitter-text'
m... |
# PLSudoku
A GUI for a sudoku solver written in Prolog.
 |
//
// Copyright 2021 Free TON Wallet Team
//
// 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 agre... |
package de.elektroniker.hippocloud.lib.console;
import de.elektroniker.hippocloud.lib.CloudLib;
import java.io.IOException;
/******************************************************************
* Urheberrechtshinweis
* Copyright © Thomas Michaelis 2019 ... |
---
pid: s7
label: 'A Covenant with Color: Race and Social Power in Brooklyn'
creator: Craig Steven Wilder
publisher: Columbia University Press
_date: '2000'
format: book
source: https://www.worldcat.org/title/covenant-with-color-race-and-social-power-in-brooklyn/oclc/469903160
clio: https://clio.columbia.edu/catalog/2... |
const URL = "https://caligari-api.herokuapp.com/api/v1/features";
const featuresWrapper = document.querySelector(".tags__wrapper");
export const getFeatures = async () => {
const response = await fetch(URL);
const features = await response.json();
const tpl = features
.map(
(feature) => `
<li... |
subroutine header_reservoir
use basin_module
use reservoir_module
!use hydrograph_module, only : res, sp_ob
use hydrograph_module
implicit none
!! RESERVOIR
if (pco%res%d == "y" .and. sp_ob%res > 0 ) then
open (2540,file="reservoir_day.txt",recl=1500)
... |
/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... |
#!/usr/bin/env bash
set -e
BUILD_TYPE=Release
ARCH=arm64-v8a
OPENCL=OFF
ARCH_LIST="arm64-v8a armeabi-v7a"
READLINK=readlink
MAKEFILE_TYPE="Ninja"
OS=$(uname -s)
function usage() {
echo "$0 args1 .."
echo "available args detail:"
echo "-m : machine arch(arm64-v8a, armeabi-v7a)"
echo "-l : enable build... |
const path = require('path');
const gulp = require('gulp');
const less = require('gulp-less');
const rename = require('gulp-rename');
const cleanCss = require('gulp-clean-css');
const babel = require('gulp-babel');
const gulpif = require('gulp-if');
const injectEnvs = require('gulp-inject-envs');
const isProduction = ... |
Credit: Image by GregoryButler from Pixabay
URL: https://pixabay.com/photos/battleship-engine-room-historic-war-389274/
|
package com.auritylab.graphql.kotlin.toolkit.common.markers
/**
* Marker for a public API which is in experimental state. Marked elements might be changed or even removed
* in the future.
*/
@Retention(AnnotationRetention.SOURCE)
annotation class Experimental()
|
package at.doml.fnc.lab1.controller
import at.doml.fnc.lab1.set.FuzzySet
class CenterOfAreaDefuzzifier extends Defuzzifier {
override def defuzzify(set: FuzzySet): Int = {
if (set.domain.numberOfComponents != 1) {
throw new IllegalArgumentException("Set with simple domain is expected")
... |
#!/usr/bin/env bash
source ../../.env
cd ../docker
docker-compose -p $PROJECT_NAME exec --user root magento xdebug
exit 0 |
import {
IExecuteFunctions,
} from 'n8n-core';
import {
IBinaryKeyData,
INodeExecutionData,
INodeType,
INodeTypeDescription,
NodeOperationError,
} from 'n8n-workflow';
import * as fflate from 'fflate';
import { promisify } from 'util';
const gunzip = promisify(fflate.gunzip);
const gzip = promisify(fflate.gzi... |
import { Inject as I } from './Inject';
import { VendingMachineTest } from './VendingMachineTest';
export class ExtendedVendingMachineTest extends I(VendingMachineTest, {})
{
} |
/**
*
*/
package com.shivishbrahma.tilottama.test.util.weatherapp.api;
/**
* @author Purbayan Chowdhury
* (<a href="shivishbrahma.github.io">shivishbrahma.github.io</a>)
*
*/
public class City {
public Coordinate coord;
public String country, name;
private int id;
public City() {
}
/**
* @para... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using IAM.Data;
using IAM.Models;
using IdentityModel;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Serilog;
... |
using System.Collections.Generic;
using Avocado.DependenciesVisualizer.Base.Editor.Scripts.State;
using DependenciesVisualizer.Base.Editor.Scripts.ReorderList;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
namespace Avocado.DependenciesVisualizer.Base.Editor.Scripts {
public class LayersWindow {... |
package com.demo.liur.cacheweather.data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* 数据库建表类
* Created by Liur on 2016/6/15.
*/
public class CacheOpenHelper extends SQLiteOpenHelper {
private static final String CREATE_PR... |
class User::SessionsController < Devise::SessionsController
protected
def after_sign_in_path_for(resource)
profile_path(resource)
end
end
|
# Write your MySQL query statement below
select A.id
from Weather A, Weather B
where A.temperature > B.temperature and DATE(DATE_ADD(B.recordDate, INTERVAL 1 DAY)) = DATE(A.recordDate);
|
package users
import (
"encoding/json"
"github.com/globalsign/mgo/bson"
"reflect"
)
const (
AdminRole = "admin"
UserRole = "user"
)
type Roles map[string]struct{}
func (r Roles) HasRole(role string) bool {
_, ok := r[role]
return ok
}
func (r Roles) AddRole(role string) Roles {
r[role] = struct{}{}
retur... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
#!/bin/bash
if [ -n "$USERNAME" ] && [ -n "$PASSWORD" ]
then
echo $USERNAME
echo $PASSWORD
echo "Mod htpasswd"
htpasswd -bc /etc/nginx/htpasswd $USERNAME $PASSWORD
echo Done.
else
echo Using no auth.
sed -i 's%auth_basic "Restricted";% %g' /etc/nginx/conf.d/default.conf
sed -i 's%auth_b... |
package cz.josefadamcik.trackontrakt.data.api
class ApiException(message: String, val responseCode: Int, val responseMessage: String) : Exception(message)
|
#include "ropp_map.h"
#include "ropp_actor.h"
#include "ropp_model.h" |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
int rhombusSize = int.Parse(Console.ReadLine());
for (int rowSize = 1; rowSize <= rhombusSize; rowSize++)
{
... |
package reswing.reshapes.util
import java.awt.Point
object MathUtil {
def isInCircle(center: Point, radius: Int, point: Point): Boolean = {
val dx: Int = center.x - point.x
val dy: Int = center.y - point.y
math.sqrt((dx * dx + dy * dy).toDouble) <= radius
}
/** returns the intersection points of tw... |
package com.rallyhealth.vapors.v1
import data.{RegexMatch, SliceRange}
import munit.FunSuite
class SimpleRegexMatchesSpec extends FunSuite {
import dsl.uncached._
test("matchesRegex returns true with an exact string match") {
val input = "exact"
val expr = input.const.matchesRegex(input.r)
val obta... |
// -*- C++ -*-
//
// Package: CondTools/BeamSpot
// Class: BeamSpotOnlineHLTRcdWriter
//
/**\class BeamSpotOnlineHLTRcdWriter BeamSpotOnlineHLTRcdWriter.cc CondTools/BeamSpot/plugins/BeamSpotOnlineHLTRcdWriter.cc
Description: EDAnalyzer to read the BeamSpotOnlineHLTObjectsRcd and dump it into a txt and root f... |
require_relative "../persistence/sqlite_adaptor"
class Repository
SECOND = 1
MINUTE = 60 * SECOND
HOUR = 60 * MINUTE
DAY = 24 * HOUR
def initialize(args = {})
@database = args.fetch(:db) { SQLiteAdaptor.database }
end
def save_following(user_id)
following_table.insert(
user_id: user_id... |
package com.vk.api.sdk.listeners
interface ApiCallListener {
fun onApiCallStart(reqId: Long, url: String) {}
fun onApiCallSuccess(reqId: Long) {}
fun onApiCallFailed(reqId: Long, throwable: Throwable) {}
companion object {
val EMPTY = object : ApiCallListener {}
}
} |
-- This is the simulator for lambda-bridge.
-- It emulates the different forms of low-level sockets.
-- lb_simulator byte|packet imported-socket exported-socket
module Main where
import System.IO
import Control.Concurrent
import System.Environment
import Control.Monad
import qualified Data.ByteString as B
import Ne... |
package org.ballistacompute.logical
import org.ballistacompute.datatypes.Field
/**
* Logical Expression for use in logical query plans. The logical expression provides information needed
* during the planning phase such as the name and data type of the expression.
*/
interface LogicalExpr {
/**
* Return ... |
import type { JWEHeaderParameters, KeyLike } from '../types.d'
import type { JWEKeyManagementHeaderResults } from '../types.i.d'
import { JOSENotSupported, JWEInvalid } from '../util/errors.js'
import { unwrap as aesKw } from '../runtime/aeskw.js'
import * as ECDH from '../runtime/ecdhes.js'
import { decrypt as pbes2Kw... |
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or ... |
"use strict";
import * as request from "request";
import * as Debug from "debug";
const debug: Debug = Debug("line-notify:client");
const UTF8: string = "utf8";
const SUCCESS_CODE: number = 200;
interface Config {
key: string;
}
interface Notify {
message: string;
imageThumbnail?: string;
imageFullsize?: st... |
package com.ok.yuuki.janken
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.preference.PreferenceManager
import android.view.View
import kotlinx.android.synthetic.main.activity_main.*
import org.jetbrains.anko.startActivity
class MainActivity : App... |
package com.shuyu.gsygiideloader
import android.graphics.drawable.Drawable
import com.bumptech.glide.request.target.SimpleTarget
import com.bumptech.glide.request.transition.Transition
import com.shuyu.gsyimageloader.GSYImageLoader
import java.io.File
/**
* Glide 图片下载对象
* Created by guoshuyu on 2018/1/18.
*/
cla... |
<?php
namespace app\mobile\controller;
use app\notice\model\Nuser as NuserModel;
use app\meeting\model\Lists as ListModel;
use app\meeting\model\MeetingUser as MUserModel;
use app\notice\model\Cate as CateModel;
use app\logs\model\Daily as DailyModel;
use app\logs\model\Plan as PlanModel;
use think\Db;
/*
* 消息控制器*/
cl... |
<?php
/*
* This file is part of pmg/three-repositories
*
* Copyright (c) PMG <https://www.pmg.com>
*
* For full copyright information see the LICENSE file distributed
* with this source code.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace PMG\ThreeRepositories;
/**
* This is the "read"... |
namespace ProjectMarkdown.MarkdownLibrary.HtmlComponents
{
public class Link : HtmlComponent
{
private readonly string _url;
public Link(string text, string url) : base(text, TagTypes.Link)
{
_url = url;
}
public override string ToString()
{
... |
<?php
namespace DariusIII\ItunesApi\Providers;
use DariusIII\ItunesApi\Entities\Track;
use DariusIII\ItunesApi\Exceptions\SearchNoResultsException;
use DariusIII\ItunesApi\Exceptions\TrackNotFoundException;
use DariusIII\ItunesApi\Mappers\TrackMapper;
use DariusIII\ItunesApi\Utils\SearchResults;
class TrackProvider ... |
<?php
namespace Fundaudo\Http\Controllers;
use Illuminate\Http\Request;
use Fundaudo\Cliente;
use Fundaudo\Curso;
use Fundaudo\FacturacionCurso;
use Fundaudo\FacturacionDiplomado;
use Fundaudo\Http\Requests;
use Session;
use App;
use Auth;
use Carbon\Carbon;
use Illuminate\Routing\Route;
use Input;
use Redirect;
use ... |
window.addEventListener('DOMContentLoaded', setup, false)
const LUNGHEZZA = 4
const TENTATIVI = 3
const VALIDI = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
let segreto
let sequenza = []
let effettuati = 0
function setup() {
// alert('DOMContentLoaded')
const tb = document.querySelectorAll('span.tasto')
for (... |
import * as React from 'react';
import {
View,
Platform,
requireNativeComponent,
ViewProps,
} from 'react-native';
type AirPlayButtonProps = ViewProps & {
activeTintColor?: string;
tintColor?: string;
style?: React.CSSProperties;
};
let AirPlayButton: React.FunctionComponent<AirPlayButtonProps> = () => ... |
---
layout: post
title: Creating Conda Configuration for Tensorflow
subtitle: Tensorflow
#gh-repo:
#gh-badge: [star, fork, follow]
tags: [Conda,Configuration,Tensorflow]
image: /img/logos/tensorflow.png
---
# Creating Conda Configuration for Tensorflow
### Making the conda variable to be called globally
export PATH=... |
package net.mffjam2.common.item;
import lombok.Getter;
import net.mffjam2.common.gem.GemProperty;
import net.minecraft.item.Item;
public class EssenceItem extends Item
{
@Getter
private final GemProperty gemProperty;
public EssenceItem(GemProperty gemProperty, Properties properties)
{
super(properties);
thi... |
# Exonio
This gem brings some useful Excel formulas to Ruby. For now, it just has
financial formulas, but could have more (like statistical formulas) in the future.
[](https://badge.fury.io/rb/exonio)
[
var (
redisDir string
)
func setupRedis() {
str, err := os.Getwd()
if err != nil {
return
}
redisDir = str + "/../logs/redis"
InitRedis(redisDir)
}
func teardownRedis() {
os.RemoveAll(redisDir)
}
func TestRedisWrite(t *testing.T) {
data := Redis{
... |
<?php
use App\Models\QuestionnaireAvailableAnswer;
use Illuminate\Database\Seeder;
class QuestionnaireAvailableAnswerSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// built in answer
QuestionnaireAvailableAnswer::create... |
---
layout: tutorial
title: シンプルな MobileFirst Server のインストール
breadcrumb_title: シンプルな MobileFirst Server のインストール
weight: 1
---
<!-- NLS_CHARSET=UTF-8 -->
## 概説
{: #overview }
この入門チュートリアルでは、機能する {{ site.data.keys.mf_server }} として 2 つのノードを持つクラスターを Liberty プロファイル上にインストールする手順をガイドします。 インストールは、以下の 2 つの方法で実行できます。
* グ... |
package `16_Loops`
fun main(){
for(i in 0..10){
println(i)
}
}
/* i - is a variable that will contain the current value in the range
in - keyword used to iterate over the range
0..10 - range where the loop will iterate.
*/ |
const trustedIpRoute = require('../../../src/routes/trusted-ipaddress');
describe('src/routes/trusted-ip', () => {
let redisClient;
let req;
let res;
beforeEach(() => {
redisClient = jasmine.createSpyObj('client-mock', ['on', 'get']);
req = {
redisClient,
params: {
ipAddress: '1.1.... |
(ns rui.forms.components
"It contains UI components for forms like checkbox, text input, form errors, etc."
(:require
[goog.string.format]
[goog.string :refer [format]]
[ccn.core :refer [bem css-class twbs]]
[re-frame.core :refer [dispatch]]
[rui.buttons :refer [button-primary]]
[rui.forms.c... |
const siteKey = process.env.NEXT_PUBLIC_SITE_KEY;
const gitBranch = process.env.VERCEL_GIT_COMMIT_REF;
const gitMessage = process.env.VERCEL_GIT_COMMIT_MESSAGE;
if(gitBranch.includes(siteKey)){
console.log('✅ - Build can proceed');
process.exit(1)
} else if(gitMessage.includes('#')){
if(gitMessage.includes(siteKey)... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\Auth;
use App\TheLoai;
use App\LoaiTin;
use App\TinTuc;
use App\Slide;
use App\User;
class PagesController extends Controller
{
//
function __construct()
{
$thelo... |
require 'rails_helper'
RSpec.describe 'Post creation', type: :feature do
let(:user) { User.create(name: 'Johnny Bravo', email: 'johnny@microverse.org', password: '123456789') }
scenario 'Create post' do
visit new_user_session_path
fill_in 'user_email', with: user.email
fill_in 'user_password', with: u... |
<?php
namespace Modules\Adsense\Presenters;
interface AdsensePresenterInterface
{
/**
* @param string $spaceName
* @return string rendered space
*/
public function render($spaceName);
}
|
/*
Sniperkit-Bot
- Status: analyzed
*/
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"sync"
"github.com/gdamore/tcell"
"github.com/sniperkit/snk.fork.viktomas-godu/core"
"github.com/sniperkit/snk.fork.viktomas-godu/interactive"
)
func main() {
limit := flag.Int64("l", 10, "sh... |
package io.ginger.kdtrey5
object Utils {
/** A less frustrating version of `Arrays.arraysEquals` due to Java <-> Scala type system impedance.
* Also allows providing a `size` parameter for our own convenience.
*/
private[kdtrey5] def arrayEquals[T](a1: Array[T], a2: Array[T], size: Int): Boolean = {
va... |
package v0
const (
configKind = "azbiConfig"
stateKind = "azbiState"
configVersion = "v0.2.1"
stateVersion = "v0.0.2"
)
|
package com.dove.backend.storage.mocked.users.tokens
import com.dove.backend.storage.core.users.tokens.TokensStorage
import com.dove.data.users.tokens.Token
import com.dove.data.users.tokens.TokenType
import kotlin.random.Random
class MockedTokensStorage : TokensStorage {
private val tokens: MutableList<Token> = ... |
#!/usr/bin/bash
python3 ~/.KitCast/KitCast/app.py $*
|
/*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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 ... |
require 'spec_helper'
require 'arena.rb'
RSpec.describe Arena do
describe "#step" do
it "does the correct thing with the column example" do
new_grid = Arena.new([
[false, true, false],
[false, true, false],
[false, true, false],
]).step
expect(new_grid).to eq([
... |
<?php
namespace HnhDigital\LaravelConsoleSelfUpdate\Tests;
use HnhDigital\LaravelConsoleSelfUpdate\SelfUpdateInterface;
use PHPUnit\Framework\TestCase;
class SelfUpdateTest extends TestCase
{
public function testSetUrl()
{
$command = new MockCommand();
$command->setUrl('localhost');
$... |
---
layout: post
title: Continue to Refine Your Pronunciation After You Get Hired
date: 2014-03-26 22:47
author: Kevin Olega
comments: true
categories: [Lessons]
---
While making calls have you ever been asked the following questions?
## Has the Customer Asked You...
Where are you located?
I don't understand your En... |
package Catalyst::Controller::HTML::FormFu;
{
$Catalyst::Controller::HTML::FormFu::VERSION = '1.00';
}
use Moose;
use HTML::FormFu;
use Config::Any;
use Regexp::Assemble;
use Scalar::Util qw/ isweak weaken /;
use Carp qw/ croak /;
use namespace::autoclean;
# see https://rt.cpan.org/Ticket/Display.html?id=55780
BEG... |
package mypackage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamConstants;
import javax.xml.stream.XMLStreamException;
impo... |
import pathlib
# path of the given file
print(pathlib.Path("my_file.txt").parent.absolute())
# current working directory
print(pathlib.Path().absolute()) |
// Copyright (C) 2018, Baking Bits Studios - All Rights Reserved
package configs
import (
"fmt"
"os"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)
const defaultEnv = "int"
// Configuration is the top level configuration data from
// the config file.
type Configuration struct {
Backend Ba... |
import { Counter } from './counter';
customElements.define('ar-counter', Counter)
|
module GroupTree
def render_group_tree(groups)
@groups = if params[:filter].present?
Gitlab::GroupHierarchy.new(groups.search(params[:filter]))
.base_and_ancestors
else
# Only show root groups if no parent-id is given
groups.where(par... |
Signaling Messages
===========================================================
These 2 fields are always there
- *Full User id (with device id)*
- *Message Type*
SignalR sends it as **SIGNAL** message:
- **Full User id**
- **Message Type** (I_AM_HERE, HELLO, etc.)
- *Message Payload*
Client code... |
use point_collector_api::routes::{create, index};
use rocket::{
serde::{json::Json, Deserialize},
Data,
};
#[macro_use]
extern crate rocket;
#[launch]
fn rocket() -> _ {
rocket::build().mount("/api/v1", routes![index, create])
}
|
import "package:kt_dart/collection.dart";
import "package:kt_dart/src/collection/impl/iterable.dart";
import "package:test/test.dart";
import "../test/assert_dart.dart";
void main() {
group("KtIterableExtensions", () {
group("iterable", () {
// TODO replace with Iterable.generate once implemented
te... |
use super::*;
use dscp_pallet_traits::{ProcessFullyQualifiedId, ProcessIO, ProcessValidator};
use sp_std::collections::btree_map::BTreeMap;
use crate::restrictions::Restriction;
use crate::{Process, ProcessModel, ProcessStatus};
#[test]
fn it_succeeds_when_process_exists() {
new_test_ext().execute_with(|| {
... |
# Options
CLEAN_ALL_OPT="--clean-all"
clean_all() {
rm -rf $MJW_CACHE_PATH &&
echo "All cache cleaned successfully."
}
cache() {
while [ "$#" -gt 0 ]; do
case "${1^^}" in
"${CLEAN_ALL_OPT^^}")
clean_all
exit 0
;;
*)
shift
;;
esac
done
}
|
namespace BusinessLayer.DTOs.Filter.Enums
{
public enum AchievementType
{
Done,
Partial,
NotStarted,
NonCompleted
}
} |
-module(oauth_uri).
-export([normalize/1, calate/2, encode/1]).
-export([params_from_string/1, params_to_string/1,
params_from_header_string/1, params_to_header_string/1]).
-import(lists, [concat/1]).
-spec normalize(iolist()) -> iolist().
normalize(URI) ->
case http_uri:parse(URI) of
{ok, {Scheme, UserInfo,... |
% ------------------------------------------------------------------------------
%
% Copyright © 2018-2019, Lauri Moisio <l@arv.io>
%
% The ISC License
%
% Permission to use, copy, modify, and/or distribute this software for any
% purpose with or without fee is hereby granted, provided that the above
% copyright notice... |
#' @title Install suggested packages only if missing
#'
#' @descriptions Reads DESCRIPTION file and installs any
#' suggested packages that are missing.
#' Useful in R data packages, as this can be run in
#' a script to create the data to easily install packages
#' required for actually creating the data, but not requi... |
*DECK DPRVEC
DOUBLE PRECISION FUNCTION DPRVEC (M, U, V)
C***BEGIN PROLOGUE DPRVEC
C***SUBSIDIARY
C***PURPOSE Subsidiary to DBVSUP
C***LIBRARY SLATEC
C***TYPE DOUBLE PRECISION (PRVEC-S, DPRVEC-D)
C***AUTHOR Watts, H. A., (SNLA)
C***DESCRIPTION
C
C This subroutine computes the inner product of a vector U... |
package csw.config.api.models
import java.nio.file.Path
/**
* Contains information about a config file stored in the config service
*
* @param path the path of file sitting in config service
* @param id the ConfigId representing unique id of the file
* @param comment the comment end user wants to provide while c... |
---
title: Soror
letter: S
permalink: "/definitions/bld-soror.html"
body: Lat. In the civil iaw. Sister; a sister. Ihst 3, 6, 1
published_at: '2018-07-07'
source: Black's Law Dictionary 2nd Ed (1910)
layout: post
--- |
/**
* \file
* \copyright
* Copyright (c) 2012-2022, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include <algorithm>
#include <memory>
#incl... |
/*
* Copyright 2016 LinkedIn Corp.
*
* 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 i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.