text stringlengths 1 1.05M |
|---|
docker build -t codotype-plugin-dev . |
<gh_stars>0
/*****
License
--------------
Copyright © 2017 Bill & Melinda Gates Foundation
The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy o... |
import { h, render, Fragment } from "preact";
import { useState, useEffect } from "preact/hooks";
import { auth, useDatabase, update } from "./firebase.js";
import World from "./World.js";
import { hexesInRadius } from "./hexes.js";
const App = () => {
const [user, setUser] = useState(null);
const [error, setErro... |
import { ILottery, createLotteryPicker, ILotteryNextOf } from './create-lottery-picker'
import { INextOf } from '../manipulators/next-item-factory'
import { shuffleArray } from './shuffle-array'
export function createUniqueLotteryPicker<T extends Object>(lottery: ILottery<T>) : INextOf<T> {
const map = new Map<T, Bo... |
<reponame>mastoppink/antrianjs
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var routes = require('./routes');
var favicon = require('serve-favicon');
var path = require('path');
var model = require('./db/db.js');
var port =... |
#
# Copyright 2013 The Android Open Source Project
#
# 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... |
const buildRequest = ({ url, ...params }) => {
return Object.keys(params).reduce(
(accumulator, currentParam) =>
`${accumulator}${currentParam}=${params[currentParam]}&`,
url
)
}
export { buildRequest }
|
#!/bin/bash
#SBATCH -J Act_maxtanh_1
#SBATCH --mail-user=eger@ukp.informatik.tu-darmstadt.de
#SBATCH --mail-type=FAIL
#SBATCH -e /work/scratch/se55gyhe/log/output.err.%j
#SBATCH -o /work/scratch/se55gyhe/log/output.out.%j
#SBATCH -n 1 # Number of cores
#SBATCH --mem-per-cpu=6000
#SBATCH -t 23:59:00 # Hours, minutes ... |
apiVersion: v1
kind: ConfigMap
metadata:
name: db-configmap
data:
DBUSER: root
DBPASSWORD: 123456 |
const taskPriorityConfiguration = {
"spawn":{
"weak_transferer":{
"centralTransfer":2,
},
"transferer":{
"pureTransfer":0, // Primary
"remoteHarvest":106,
"powerHarvest":107,
"remoteTransfer":106,
"remotePickUper":5,
... |
<gh_stars>1-10
// Copyright (c) 2021 Palantir Technologies Inc. All rights reserved.
// Use of this source code is governed by the Apache License, Version 2.0
// that can be found in the LICENSE file.
package gotypes
import (
"go/types"
"github.com/pkg/errors"
"golang.org/x/tools/go/packages"
)
// FindType searc... |
<reponame>maciej-plonka/tournament-app
import {Player, PrismaClient, Tournament} from "@prisma/client";
import {GetServerSideProps, NextPage} from "next";
import {FormEvent, useCallback, useMemo, useState} from "react";
import axios from "axios";
import {canGenerateAvailableTeamSizes, generateAvailableTeamSizes} from "... |
#!/bin/bash
#Determine the OS:
osname=$(uname -s)
GotInfo=0
##################
GetSCMInfo() {
printf "Enter Surround username [Administrator]: "
read -r scm_un
scm_un=${scm_un:-Administrator}
printf "Enter password [ ]: "
read -r scm_pw
printf "Enter server address [localhost]: "
read -r scm_address
scm_address=${scm_... |
RESTSERVER=localhost
#정상 동작
curl -X DELETE http://$RESTSERVER:1024/publicip/cbpublicip01?connection_name=aws-config01
|
import { Form } from "./form";
export var Account = (function () {
var entity = {};
entity.showAccounts = function() {
var container = $(".accounts-list");
$.ajax({
type: 'GET',
url: container.data("action"),
success: function(response) {
container.html(response);
},
}... |
#!/bin/bash
#
# File: collect_node_diag.sh
#
# Created: Wednesday, May 22 2019
# Modified: $Format:%cD$
# Hash: $Format:%h$
#
# This script collects diagnostic for individual node
##
function usage() {
echo "Usage: $0 -t <type> [options] [path]"
echo " ----- Required --------"
echo " -t type - valid cho... |
// Initialize Firebase
var config = {
apiKey: "<KEY>",
authDomain: "atomlabs-b8da9.firebaseapp.com",
databaseURL: "https://atomlabs-b8da9.firebaseio.com",
projectId: "atomlabs-b8da9",
storageBucket: "atomlabs-b8da9.appspot.com",
messagingSenderId: "394511887133"
};
firebase.initializeAp... |
#!/bin/bash
hbase_nodes="`pwd`/../conf/hbase-nodes"
clients="`pwd`/../conf/clients"
jps_names_hbase="HQuorumPeer HRegionServer HMaster DITBClient DITBServer HybridClient HybridServer"
jps_names_hdfs="SecondaryNameNode DataNode NameNode"
jps_names_client="DITBClient DITBServer PerfClient HybridClient HybridServer"
us... |
let occurrences = {};
let words = ["hello", "world", "hi"];
let str = "Hello, world! Hi there!";
words.forEach(word => {
let regex = new RegExp(`\\b${word}\\b`, 'gi');
let matches = str.match(regex);
if (matches) {
occurrences[word] = matches.length;
}
});
console.log(occurrences); // { hello: 1, world: 1, hi: 1... |
/*
* 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 fr.calamus.common.tools;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import jav... |
#!/bin/bash
# https://linuxize.com/post/how-to-nvidia-drivers-on-ubuntu-20-04/#installing-the-nvidia-drivers-using-the-command-line
ubuntu-drivers device
# Find the "driver" with nvidia in the name
# e.g. for a MacBook 2013, the command is:
# sudo apt -y install nvidia-340
|
package com.sereno.vfv.Data.Annotation;
import com.sereno.vfv.Data.SubDataset;
/**Abstract base class for Drawable annotation component. Contains graphical information to render log annotation components.*/
public abstract class DrawableAnnotationLogComponent
{
/** The native C++ pointer of a std::shared_ptr<Draw... |
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
var express = require('express');
var staticHandler = require('jcash');
var ejs = require('ejs');
var fs = require('fs');
var path = require('path');
var appRequire = require('app-require');
var config = appRequire.requireConfig();
var libs = appRequire.requireLib();
var mobile = libs.mobile;
var template = libs.templa... |
<reponame>fdw/sqlfluff
"""AnyNumberOf and OneOf."""
from typing import List, Optional, Tuple
from sqlfluff.core.parser.helpers import trim_non_code_segments
from sqlfluff.core.parser.match_result import MatchResult
from sqlfluff.core.parser.match_wrapper import match_wrapper
from sqlfluff.core.parser.match_logging im... |
<html>
<head>
<title>Compare Inputs</title>
</head>
<body>
<form action="/action_page.php" method="post">
<label>Input 1: </label><br>
<input type="text" name="input1"><br><br>
<label>Input 2:</label><br>
<input type="text" name="input2"><br><br>
<input type="submit" value="S... |
/*
* 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 com.garesst.gmost.recursos;
/**
*
* @author oscar
*/
public enum RecursoConector {
jdbc,odbc,otro
}
|
var classdroid_1_1_runtime_1_1_utilities_1_1_sampling_1_1_perlin =
[
[ "Perlin", "classdroid_1_1_runtime_1_1_utilities_1_1_sampling_1_1_perlin.html#a6a7ace126c8f493e7093ec7736acb797", null ],
[ "Noise", "classdroid_1_1_runtime_1_1_utilities_1_1_sampling_1_1_perlin.html#a62726d332fc6a25a34b8fe1d929a3f29", null ]... |
<reponame>gy20151015/umy-ui
import uButton from './src/button'
uButton.install = function(Vue) {
Vue.component(uButton.name, uButton)
}
export default uButton
|
# Generated by Django 3.1.5 on 2021-01-31 22:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0016_auto_20210131_1429'),
]
operations = [
migrations.AddField(
model_name='rpc',
name='timestamp',
... |
<filename>src/epics/blog/ArticleList.js
import React from "react";
import PropTypes from "prop-types";
import { Link, graphql, StaticQuery } from "gatsby";
import Img from "gatsby-image";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import styled from "styled-components";
import { UpPose } from "..... |
<reponame>ritaswc/wechat_app_template
var app = getApp()
Page({
data: {
stars: [0, 1, 2, 3, 4, 5],
img_url: 'http://appuat.huihuishenghuo.com/img/',
normalSrc: 'http://appuat.huihuishenghuo.com/img/order/star.png',
selectedSrc: 'http://appuat.huihuishenghuo.com/img/order/stars.png',
... |
CREATE TABLE Sales (
RecordId INT NOT NULL AUTO_INCREMENT,
Date DATETIME NOT NULL,
Revenue DECIMAL(10,2) NOT NULL,
TotalQty INT NOT NULL,
PRIMARY KEY (RecordId)
); |
<reponame>liadmagen/Keep-Current-App<gh_stars>1-10
import { TestBed, inject } from '@angular/core/testing';
import { RecommendationListService } from './recommendation-list.service';
describe('RecommendationService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [RecommendationLis... |
<filename>include/re/lib/container/ring_array.hpp
#pragma once
#include <cassert>
#include <array>
#include <algorithm>
#include <iterator>
#include <stdexcept>
#include <type_traits>
#include <utility>
#include <gsl/span>
#include "indexed_iterator.hpp"
namespace re {
template <typename T, std::size_t Size>
... |
package com.it.zzb.niceweibo.activity;
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import com.it.zzb.niceweibo.R;
import com.it.z... |
/*!
* JavaScript to update page URL when a redirect is viewed, ensuring that the
* page is scrolled to the id when it's a redirect with fragment.
*
* This is loaded in the top queue, so avoid unnecessary dependencies
* like mediawiki.Title or mediawiki.Uri.
*/
( function ( mw, $ ) {
var profile = $.client.profil... |
<gh_stars>1-10
/*
* Copyright 2022 Whilein
*
* 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... |
package string_handle;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
*
* @author minchoba
* 백준 9954번: Cedric's Cypher
*
* @see https://www.acmicpc.net/problem/9954/
*
*/
public class Boj9954 {
private static final String NEW_LINE = "\n";
private static final String TERMINATE = "#";
... |
#!/bin/bash
cd /home/polarsite/cursivedata/www/
source venv/bin/activate
exec gunicorn www.wsgi:application -b localhost:8000 -w 2
|
<reponame>coder-blog/satellite<gh_stars>1-10
package com.kinstalk.satellite.socket.manager;
import com.kinstalk.satellite.domain.AgentModel;
import com.kinstalk.satellite.domain.packet.SocketPacket;
import com.kinstalk.satellite.domain.packet.TimerRunStartPacket;
import com.kinstalk.satellite.service.api.AgentService... |
package com.company.sales.api.models;
import java.math.BigDecimal;
import java.util.UUID;
public class Subscription {
public UUID id;
public UUID customerId;
public int dayOfMonth;
public BigDecimal price;
}
|
#!/usr/bin/sh
env="mujoco"
scenario="Ant-v2"
agent_conf="2x4"
agent_obsk=1
algo="macpo"
exp="rnn"
seed_max=1
echo "env is ${env}, scenario is ${scenario}, algo is ${algo}, exp is ${exp}, max seed is ${seed_max}"
for seed in `seq ${seed_max}`;
do
echo "seed is ${seed}:"
CUDA_VISIBLE_DEVICES=0 python train/train... |
#!/usr/bin/env bash
set -eu
echo $(grep -Po "version='\K\d\.\d\.\d" setup.py)
|
$(document).ready(function(){
$("#btnChangeColor").click(function(){
$("body").css("background-color", "#00FF00");
});
}); |
function printMultiplicationTable() {
for (let i = 1; i <= 5; i++) {
let row = '';
for (let j = 1; j <= 5; j++) {
row += `${i * j}\t`;
}
console.log(row);
}
}
printMultiplicationTable();
// Output:
// 1 2 3 4 5
// 2 4 6 8 10
// 3 6 9 12 15
// 4 8 12 16 20
// 5 10 15 20 25 |
#!/bin/bash
function ergodic(){
for file in ` ls $1`
do
if [ -d $1"/"$file ]
then
ergodic $1"/"$file
else
local path=$1"/"$file #得到文件的完整的目录
local name=$file #得到文件的名字
#做自己的工作.
if [ "${file##*.}" = "bmp" ]; then
python3 bmp2hex.py $file -kbin
... |
<filename>algorand-spring-starter-demo/src/main/java/com/algorand/starter/demo/cryptopayment/model/Card.java<gh_stars>0
package com.algorand.starter.demo.cryptopayment.model;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
im... |
<filename>doc/html/search/groups_a.js<gh_stars>0
var searchData=
[
['types_1264',['Types',['../group__types_group.html',1,'']]]
];
|
<reponame>yuetchn/VueNext-ElementPlus-Admin<filename>src/components/index.ts<gh_stars>1-10
/*
* @ModuleName: Global components
* @Author: <EMAIL>
* @LastEditTime: 2022-04-18 14:08:49
*/
import { App } from "vue";
import Dialog from "./Dialog/Dialog.vue";
import SvgIcon from "./SvgIcon/SvgIcon";
import Page from "./... |
import ApiMap from "@/apimap";
function _promise(apiFunction, payload, store, constant) {
return new Promise((resolve, reject) => {
apiFunction(payload)
.then(resp => {
store.commit(constant, resp.data);
resolve(resp);
})
.catch(err => {
reject(err);
});
});
}
export default {
}; |
<reponame>lsst-sqre/mobu<filename>src/mobu/monkey.py
"""The monkey."""
from __future__ import annotations
import logging
import sys
from tempfile import NamedTemporaryFile
from typing import TYPE_CHECKING
import structlog
from aiohttp import ClientSession
from aiojobs import Scheduler
from .config import config
fro... |
#!/bin/bash
pidfile=$1
pwd=$(pwd)
service=${pwd##*/}
if [ ! -f "$pidfile" ]
then
echo "[$service] Service is not running - $pidfile"
exit 0
fi
echo "[$service] Stopping Service - $pidfile. PID=$(cat $pidfile)"
kill -9 $(cat $pidfile)
rm $pidfile
|
package io.opensphere.core.util.lang;
/**
* Runtime exception that indicates an unintended branch of code has been
* reached.
*/
public class ImpossibleException extends RuntimeException
{
/**
* Default serial version UID.
*/
private static final long serialVersionUID = 1L;
/**
* Constru... |
protoc --proto_path=../../MessageDefinition/ --python_out=./ ../../MessageDefinition/gait_recorder_message.proto |
#!/bin/sh
rm -rf /var/log/spinnaker/front50
|
<gh_stars>0
package de.arthurpicht.tail4j.modules.tail;
import de.arthurpicht.tail4j.Logger;
import de.arthurpicht.tail4j.Tail;
import de.arthurpicht.tail4j.helper.LogFileCreator;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.File;
import java.io.IOException;
im... |
class JsonModel {
public title: string;
public jsonPath: string;
constructor(title = '', jsonPath = '') {
this.title = title;
this.jsonPath = jsonPath;
}
}
export default class {
private jsonModel: JsonModel;
constructor(type: string) {
this.jsonModel = this.getQuestionLi... |
#!/usr/bin/bash
# # ------------------- 1-5 Var -------------------
python dataset.py \
--config ./configs/dataset_1-5var.json \
--folder ./datasets/1-5Var_v2/Test/ \
--seed 2023 \
--testPoints 1 \
--numSamplesEachEq 1 \
--force_threshold 0 \
--numSamples 200
python dataset.py \
--conf... |
#!/bin/bash
export PATH="$HOME/.composer/vendor/bin:$PATH"
if [ "$PHPCS" == 1 ]; then
ARGS="-p --extensions=php --standard=CakePHP .";
if [ -n "$PHPCS_IGNORE" ]; then
ARGS="$ARGS --ignore='$PHPCS_IGNORE'"
fi
if [ -n "$PHPCS_ARGS" ]; then
ARGS="$PHPCS_ARGS"
fi
eval "phpcs" $ARGS
... |
// Linear Search Algorithm
const linearSearch = (arr, targetValue) => {
// Iterate over the array
for (let i = 0; i < arr.length; i++) {
// check if the target value is equal to the element in the array
if (arr[i] === targetValue) {
// if it is, return the index
return i;
}
}
// else r... |
<reponame>blockchainhelppro/Telegram-API-Integration-
/// <reference path="../common/models.ts" />
/// <reference path="config.ts" />
/// <reference path="utils.ts" />
///<reference path="interfaces.ts"/>
import * as moment from "moment";
import Config = require("./config");
import Models = require("../common/models")... |
using System;
using System.Collections.Generic;
public class RegisterDecoder
{
private static Dictionary<uint, string> GprRegisters = new Dictionary<uint, string>();
static RegisterDecoder()
{
GprRegisters.TryAdd(24, "$t8");
GprRegisters.TryAdd(25, "$t9");
GprRegisters.TryAdd(26, "... |
<gh_stars>1-10
/*******************************************************************************
* Copyright (c) 2008, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is ... |
SELECT
name,
COUNT(*) AS num_occurrences
FROM users
GROUP BY name
ORDER BY num_occurrences DESC
LIMIT 1; |
go build -buildmode=c-shared -o output/mesos-master-zabbix-module.so
|
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2020
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distri... |
<gh_stars>0
package main
import (
"fmt"
"time"
)
type Sugar struct {
Date time.Time
Record float64
Unit string
}
type SpO2 struct {
Date time.Time
Record float64
Unit string
}
type Preassure struct {
Date time.Time
Record float64
Unit string
}
type HR struct {
Date time.Time
Record float64
Unit stri... |
<filename>lang/py/cookbook/v2/source/cb2_19_4_sol_1.py
def peel(iterable, arg_cnt=1):
""" Yield each of the first arg_cnt items of the iterable, then
finally an iterator for the rest of the iterable. """
iterator = iter(iterable)
for num in xrange(arg_cnt):
yield iterator.next()
yield it... |
function mostFrequentWord(str) {
const words = str.split(' ');
let count = {};
words.forEach(word => {
if (count[word]) {
count[word]++;
} else {
count[word] = 1;
}
});
let mostFrequentWord = '';
let highestFrequency = 0;
Object.keys(count).forEach(word => {
if (count[word] > highestFrequency) {
mostFre... |
import numpy as np
def listify_mat(matrix):
matrix = np.array(matrix).astype(str)
if len(matrix.shape) > 1:
matrix_list = []
for row in matrix:
try:
matrix_list.append(list(row))
except Exception as e:
print(f"An exception occurred: {e}")
... |
#!/usr/bin/env bash
set -eux
version=$1
coursier fetch \
org.scoverage:scalac-scoverage-plugin_2.11.12:$version \
org.scoverage:scalac-scoverage-plugin_2.12.8:$version \
org.scoverage:scalac-scoverage-plugin_2.12.9:$version \
org.scoverage:scalac-scoverage-plugin_2.12.10:$version \
org.scoverage:scalac-scov... |
<reponame>forrl/typescript-error-reporter-action
import type { Diagnostic } from 'typescript'
import { issueCommand } from '@actions/core/lib/command'
type TS = typeof import('typescript')
export const reporter = (ts:TS) => (diagnostic:Diagnostic) => {
switch (diagnostic.category) {
case ts.DiagnosticCategory.Er... |
aws configure
|
<gh_stars>0
var express = require('express');
var router = express.Router();
var User = require('../models/user');
/* GET home page. */
function checkSigninUser(req, res, next) {
if (req.session.user) {
next();
} else {
res.render('index', {
message: "User not logged in!"
});;
}
}
router.get(... |
public static int[] rotateArray(int[] arr) {
int temp = arr[0];
int i;
for (i = 0; i < arr.length - 1; i++)
arr[i] = arr[i + 1];
arr[i] = temp;
return arr;
} |
package serenitylabs.tutorials.trains.search;
import com.serenity.annotation.processor.StepData;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Interaction;
import net.serenitybdd.screenplay.actions.Click;
import net.serenitybdd.screenplay.targets.Target;
import net.serenitybdd.screenplay.w... |
<reponame>dbatten5/dagster
from dagster.core.execution.plan.handle import (
ResolvedFromDynamicStepHandle,
StepHandle,
UnresolvedStepHandle,
)
def test_step_handles():
plain = StepHandle.parse_from_key("foo")
assert isinstance(plain, StepHandle)
unresolved = StepHandle.parse_from_key("foo[?]")... |
#!/bin/bash
# If an error occurs, quit the script and inform the user. This ensures scripts
# like ./build-macosx etc. don't continue on if Autotools isn't installed.
function finish {
if [ $success -eq 0 ]; then
echo 'autogen.sh failed to complete: verify that GNU Autotools is installed on the system and try ag... |
package info.u250.c2d.engine.cmd;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Graphics.DisplayMode;
import info.u250.c2d.engine.Engine;
import info.u250.c2d.engine.EngineCallback;
import info.u250.c2d.engine.resources.AliasResourceManager;
import info.u250.c2d.engine.resources.looper.LoopLoader;
imp... |
<reponame>sliwei/blog-serve
/* jshint indent: 2 */
const moment = require('moment');
module.exports = function (sequelize, DataTypes) {
return sequelize.define('bstu_blog', {
id: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true,
autoIncrement: true
},
u_id: {
... |
const { parse } = require('./marked');
const YFM = require('yaml-front-matter');
const angularNonBindAble = require('./angular-nonbindable');
module.exports = function parseDemoMd(file) {
// 获取meta信息
const meta = YFM.loadFront(file);
const content = meta.__content;
delete meta.__content;
const remark = requi... |
package com.github.goober.sonarqube.plugin.decorator.sonarqube.model;
import lombok.RequiredArgsConstructor;
import lombok.Value;
import java.util.Set;
@Value
@RequiredArgsConstructor
public class MetricsResponse {
Set<Metric> metrics;
}
|
public class Formatter {
public String formatCsvLine(String csvLine) {
String[] tokens = csvLine.split("; ");
StringBuilder builder = new StringBuilder();
for (int i = 0; i < tokens.length; i++) {
builder.append('"');
builder.append(tokens[i]);
builder.a... |
#!/usr/bin/env bash
TMP_DIR="$HOME/.dotfiles_tmp_install"
mkdir -p "$TMP_DIR"
cd "$TMP_DIR" || exit 1
M4_VERSION=1.4.19
wget -nc "https://ftp.gnu.org/gnu/m4/m4-$M4_VERSION.tar.gz"
tar xf "m4-$M4_VERSION.tar.gz"
cd "m4-$M4_VERSION" || exit 1
./configure --prefix=$HOME/.local
make install
|
#!/usr/bin/env sh
# Prepare environment
find /tmp/pineapple/* ! -name '*.tar.gz' 2>/dev/null | sort -n -r | xargs rm -rf --
mkdir -p /tmp/pineapple && cd /tmp/pineapple
#Define the functions
makealias() {
ryualias='alias ryujinx="'$arg' GDK_BACKEND=x11 /home/'${USER}'/.local/share/Ryujinx/Ryujinx"'
if [ -z "${S... |
<filename>C2CRIBuildDir/projects/C2C-RI/src/C2CRIReportsDBLibrary/src/org/fhwa/c2cri/reports/dao/C2CRIAppLayerTestCaseDataDAO.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.fhwa.c2cri.reports.dao;
import java.io.File;
import java.sql.DriverManager;
... |
<filename>src/common/selector/selector_test.go
/*
* Tencent is pleased to support the open source community by making 蓝鲸 available.
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance wi... |
#!/bin/sh
function get_help_msg() {
local USAGE_MSG=
local USAGE_MSG_FILE=
USAGE_MSG="$1"
USAGE_MSG_FILE="$2"
if [ -z $USAGE_MSG ]; then
if [[ -n $USAGE_MSG_FILE && -e $USAGE_MSG_FILE ]]; then
USAGE_MSG=$(cat $USAGE_MSG_FILE)
else
USAGE_MSG="no help msg and file"
fi
fi
echo "$USA... |
// JavaScript Document
var isSubmit = false;
Company = new function(){
var $this = this;
$this.url_ajax = {
search : null,
apply : null,
user_list : null,
user_remove : null,
remarks : null,
upLogo : null,
};
$this.url_index = null;
$this.view_join = {
is_default : true,
is_loading : 0,
is_empty... |
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/Home.vue'
const routes: Array<RouteRecordRaw> = [
{
path: '/',
name: 'Home',
component: Home
},
{
path: '/about',
name: 'About',
component: () => import(/* webpackChunkName: "about" ... |
package progress
import (
"context"
"fmt"
"io"
"testing"
"time"
"github.com/stretchr/testify/assert"
"golang.org/x/sync/errgroup"
)
func TestProgress(t *testing.T) {
t.Parallel()
s, err := calc(context.TODO(), 4, "calc")
assert.NoError(t, err)
assert.Equal(t, 10, s)
eg, ctx := errgroup.WithContext(conte... |
#ifndef _FAST_NN_BLOCK_H_
#define _FAST_NN_BLOCK_H_
typedef struct _block {
long long id;
int num_dimensions;
long long capacity;
long long* indices;
float* data;
long long size;
} block_t;
enum {
BLOCK_INIT_WITH_DATA = 0x01,
BLOCK_INIT_WITH_INDICES = 0x02,
BLOCK_INIT_ALL = 0xff
}... |
#!/bin/bash
# version="0.1"
#
#
# ARG_OPTIONAL_SINGLE([all],[a],[Do all configurations OIDC, IM Connection and secret and navigation updates],[false])
# ARG_OPTIONAL_SINGLE([oidc-only],[o],[Only do the configuration for OIDC and SSO],[true])
# ARG_OPTIONAL_SINGLE([nav-only],[n],[Only add Infrastructure Management to na... |
// Define the WrappedEnum type
protocol WrappedEnum {
// Define any required properties or methods for the WrappedEnum type
}
// Define the Resources enum
enum Resources {
case ErrorEnumFacadeAddedCase
// Define other cases as needed
}
// Define the noChange migration operation
func noChange(target: Any) ... |
<gh_stars>0
/**
* Copyright 2018 hubohua
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable ... |
/*
* Copyright 2019 BROCKHAUS AG
*
* 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 applicabl... |
<filename>dist/service/Writer.d.ts
import { IGeneratorResult } from '../interface/Generator';
export declare class WriterService {
constructor();
/** Zip results and write to disk */
zip(path: string, results: IGeneratorResult[]): Promise<void>;
/** Write results to disk */
writeMany(root: string, r... |
<reponame>Gesserok/Market
package stream_tasks;
import java.util.ArrayList;
/**
* Created by ENIAC on 06.12.2017.
*/
public class UserArrayList {
public static ArrayList<User> userArrayList() {
ArrayList<User> userArrayList = new ArrayList<>();
userArrayList.add(new User(0, 29, 120, "Alla", ... |
import { Expose } from 'class-transformer';
import { IsIn, IsLowercase, IsNotEmpty, IsString } from 'class-validator';
import { Locale, Locales } from '../../../../../localisation/types/Locale';
import { BaseValidatable } from '../../../../../validation/BaseValidatable';
export class GetMovieDetailByCodeRequest extend... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.