text
stringlengths
1
1.05M
<reponame>tryond/test_artifact_20 package com.plugra.view; public interface MouseTypeViewListener { public void mouseTypeSelected(String mouseType); }
import style from './style.module.css' const NotFound = () => { return ( <div className={style.wrap}>404 NotFound</div> ) } export default NotFound
import re def extract_author_info(code): author_info = {} author_name = re.search(r'author="<(.*?)>"', code) author_email = re.search(r'author_email="<(.*?)>"', code) if author_name and author_email: author_info['author'] = author_name.group(1) author_info['author_email'] = author_email...
#!/bin/bash # Script can be ONLY included by "source" command. [[ -z "$BASH" || (-n "$BASH_LINENO" && BASH_LINENO[0] -le 0) ]] && return source '/bin/bash_tacklelib' || exit $? tkl_include '__init__.sh' || tkl_abort_include tkl_include "$TACKLELIB_BASH_ROOT/tacklelib/testlib.sh" || tkl_abort_include function TestUse...
import React, { useState, useEffect } from 'react'; import './info-local.css'; import MapaLocal from './mapa-local'; import { navigate } from 'hookrouter'; import Button from 'react-bootstrap/Button'; import axios from 'axios'; import config from './config'; import ModalDescricaoLocal from './modal-descricao-loc...
<reponame>liaoyinglong/kkt<filename>example/rematch/src/utils/request.js import axios from 'axios'; import { splitUrl } from './utils.js'; // Get the current location. // const location = history.location; const codeMessage = { 200: '服务器成功返回请求的数据。', 201: '新建或修改数据成功。', 202: '一个请求已经进入后台排队(异步任务)。', 204: '删除数据成功。'...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/1024+0+512-only-pad/7-model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/1024+0+512-only-pad/7-1024+0+512-N-VB-ADJ-first-256 --do_ev...
<gh_stars>0 import React from "react" import Header from "../Header" import { rhythm, scale } from "../../utils/typography" const Layout = (props): JSX.Element => { const { location, children } = props return ( <div> <Header location={location} /> {children} </div> ) } export default Layou...
#!/bin/sh EXPECTED_SIGNATURE="$(curl -L https://composer.github.io/installer.sig)" # Original line (with wget): # EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)" php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ACTUAL_SIGNATURE="$(php -r "echo hash_file('SHA384',...
<filename>02-controller/routing/src/controller/03-restful-controller.ts<gh_stars>1-10 /** * With combination of route configurations we can create restful route * * POST /users * GET /users?limit&offset * GET /users/:id * PUT /users/:id * PATCH /users/:id * DELETE /users/:id */ import { meta, ...
<reponame>blackpc/wanderer<filename>src/Wandering.cpp /** * Filename: Wandering.cpp * Author: <NAME> * Date: Nov 25, 2014 * * The MIT License (MIT) * * Copyright (c) 2014 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
<filename>typekit/typekit.py import copy from .request import make_request from .exceptions import NoKitFoundException, NoFontFoundException import pdb class Typekit(object): use_ssl = True host = 'typekit.com/api/v1/json/' def __init__(self, **kwargs): self.use_ssl = kwargs.get('use_ssl', self.use_ssl) se...
package com.bones.si.jdbc.load import java.sql.{Connection, ResultSet} import com.bones.si.jdbc.{CrossReference, Deferrability, UpdateDeleteRule} object LoadCrossReference extends DefaultLoader[CrossReference] { override protected def loadFromQuery(databaseQuery: DatabaseQuery, con: Connection): Stream[ResultSet...
#!/bin/bash function pause(){ read -p "Presiona enter cuando acabe ese pedo" } handle_error() { echo "FAIL: line $1, exit code $2" exit 1 } trap 'handle_error $LINENO $?' ERR echo "Vamos a settear madres..." echo "" # Cambiar nombre de la compu function nombre(){ read -e -p "¿Cómo se llama esta compu? " COM...
const createArray = (n) => { const arr = []; for (let i = 0; i < n; i++) { arr.push(Math.floor(Math.random() * n)) } return arr; }; let arr = createArray(8000000); //let arr = [8, 17, 125]; //console.log(arr); let bucket = []; for (let i = 0; i < 10; i++) { bucket[i] = [] } const radix = (ar...
import keras # Input layer input_layer = keras.layers.Input(shape=(784,)) # Hidden layer hidden_layer = keras.layers.Dense(128, activation='relu')(input_layer) # Output layer output_layer = keras.layers.Dense(10, activation='softmax')(hidden_layer) # Model model = keras.Model(input...
<reponame>orthoticholdingsinc/comments $(document).ready(function(){ $('.story-slider').slick({ infinite: true, arrows: true, slidesToShow: 2, centerMode: true, centerPadding: '0px', prevArrow: '<i class="fa fa-caret-left slider-prev slick-prev"></i>', nextArrow: '<i class="fa fa-caret-right slider-next ...
<reponame>littlemole/MTL #include "MTL/ole/cp.h"
#!/usr/bin/env bash # # vim:ft=sh:tabstop=4:shiftwidth=4:softtabstop=4:noexpandtab # # Copyright (c) 2010-2017 Wael Nasreddine <wael.nasreddine@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software F...
<reponame>bedeljani/Backend_Test const dotenv = require('dotenv') dotenv.config() module.exports = { development: { client: 'mysql', connection: { host : process.env.DB_HOST, user : process.env.DB_USER, password : <PASSWORD>, database : process.env.DB_NAME }, debug: true }...
// file : xsde/cxx/qname.hxx // author : <NAME> <<EMAIL>> // copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file #ifndef XSDE_CXX_QNAME_HXX #define XSDE_CXX_QNAME_HXX #include <xsde/cxx/config.hxx> namespace xsde { namespace cxx ...
var AWS = require('aws-sdk'); AWS.config.update({region: 'us-east-2'}); s3 = new AWS.S3({apiVersion: '2006-03-01'}); // var bucketParams = {Bucket: process.argv[2]}; // s3.getBucketAcl(bucketParams, (err, data) => { // if (err) { // console.log('Error', err); // } else { // console.log('Success', data.Gra...
import random def dice_roll(sides):     # generate a random integer from 1 to the number of sides     roll = random.randint(1, sides)     return roll
<gh_stars>1-10 package ext import ( context "golang.org/x/net/context" mgo "gopkg.in/mgo.v2" "github.com/go-redis/redis" "github.com/gocql/gocql" "github.com/rs/zerolog" "google.golang.org/grpc" ) // CassandraUnaryServerInterceptor creates a Cassandra session and add it to the context func CassandraUnaryServer...
#!/bin/bash # sudo apt install liblzma-dev if [ ! -d "models" ] then mkdir -p models # GLIDE models, downloaded upfront for docker caching curl -C - https://openaipublic.blob.core.windows.net/diffusion/dec-2021/base.pt --output models/base.pt curl -C - https://openaipublic.blob.core.windows.net/diffusion/de...
import re from collections import Counter def count_words_in_file(file_path, top_n): with open(file_path, 'r') as file: text = file.read().lower() # Convert the text to lowercase words = re.findall(r'\b\w+\b', text) # Extract words using regular expression stop_words = set(['the', 'is', '...
<reponame>zoho/Zoho-CRM-Field-Buddy package com.zoho.crm_field_buddy; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Bitmap; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; i...
import java.net.UnknownHostException; public class TFPort implements ITFNetworkAddress{ public int number; private TFNetworkAddress address; private TFRouter owner; public TFPort(TFRouter owner) { this.address = new TFNetworkAddress(); this.setName(owner.name); this.owner = ow...
python test.py */*_test.py
<filename>src/main/java/com/pipemaze/eggdropsoap/mod_pndc/Main.java package com.pipemaze.eggdropsoap.mod_pndc; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; @Mod(modid = Main...
DATE=`date "+%Y%m%d"` curl -s http://cancer.sanger.ac.uk/cancergenome/assets/cancer_gene_census.tsv \ | perl -pe 's/\r\n|\n|\r/\n/g' \ > cancer_gene_census.$DATE.tsv
class MinHeapPriorityQueue: def __init__(self): self.heap = [] def push(self, value, priority): self.heap.append((value, priority)) self._sift_up(len(self.heap) - 1) def pop(self): if not self.heap: return None if len(self.heap) == 1: return ...
<reponame>Sasha7b9Work/S8-53M2<filename>sources/common/_VS_GUI/USBD/usbd_ctlreq.cpp #define _STL_COMPILER_PREPROCESSOR 0 #include "defines.h" #include <usbd_ctlreq.h> void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len) { UNUSED(desc); UNUSED(unicode); UNUSED(len); }
export default { none: 0, xxs: '.25rem', xs: '.5rem', s: '1rem', m: '1.5rem', l: '2rem', xl: '3rem', };
'use strict' import * as assert from 'assert'; describe('Item search', function(){ it('should show results in case of multiple items matches', function(){ browser.url('/'); const searchItem = 'Duck'; $('[type=search]').setValue(searchItem); browser.keys('Enter'); const sea...
#!/bin/bash # while sleep 9m; do echo -e '\n=====[ Gradle build is still running ]====='; done & echo "Running Couchbase docker image..." docker run -d --name couchbase -p 8091-8094:8091-8094 -p 11210:11210 couchbase/server:6.5.0 echo "Waiting for Couchbase server to come online..." sleep 20 until $(curl --output /de...
// Displays message in console when this file is loaded document.addEventListener('DOMContentLoaded', () => { console.log('api.js loaded') }); // Object Oriented JavaScript // Class // Class Api to encapsulate all information/behaviors that represents the apis // This Api class holds our functions for fetching ou...
import java.util.Scanner; public class HelloWorld { public static void main(String[] args) { // Prints "Hello, World" to the terminal window. Scanner scanner = new Scanner(System.in); System.out.println("Please enter your name:"); String name = scanner.nextLine(); System...
#!/usr/bin/env bash BUILD_WEB="${BUILD_WEB:-true}" if [ "$BUILD_WEB" != "true" ]; then exit 0 fi # Only run one at a time # [ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -e "$0" "$0" "$@" || : # Exit when any command fails set -o errexit # Exit when an undeclared variable is used set -o nounset # Exi...
<reponame>bygui86/go-metrics package rest import "github.com/bygui86/go-metrics/monitoring" const ( // Custom metrics // .. general metricsNamespace = "echoserver" metricsSubsystem = "rest" // .. opsProcessed opsProcessedKey = "opsProcessed" opsProcessedName = "processed_ops_total" opsProcessedHelp = "Total ...
<filename>app/controllers/info_window_controller.rb # http://oldwiki.rubyonrails.org/rails/pages/HowtoWorkWithSessions class InfoWindowController < ApplicationController def index session[:thing] = Thing.find_by_id(params[:thing_id]) session[:thing] = Thing.find_by_id(session[:id]) if session[:thing].nil? ...
<gh_stars>0 # frozen_string_literal: true RSpec.shared_examples 'work item base types importer' do it 'creates all base work item types' do expect { subject }.to change(WorkItem::Type, :count).from(0).to(WorkItem::Type::BASE_TYPES.count) end end
<filename>framework/common/src/org/ofbiz/common/preferences/PreferenceServices.java /******************************************************************************* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work...
import React from 'react'; import styled, { css } from 'styled-components'; import PropTypes from 'prop-types'; export default function Container(props) { const { footer, header, main, children } = props; switch (true) { case footer: return ( <Footer> <div>{children}</div> </Fo...
// Define the EntityBase type export declare type EntityBase = {}; // Implement the EntityCollection class class EntityCollection<T extends EntityBase> { private entities: T[]; constructor() { this.entities = []; } add(entity: T): void { this.entities.push(entity); } remove(entity: T): void { ...
#!/bin/bash # Copyright 2017 MLiy Contributors # 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...
#!/bin/bash function addTests { dir=$1 name=$(echo -n ${dir} | tr [:punct:][:space:] _) echo "${name}_TESTS = \\" for test in $dir/*.t.cc; do echo " ${test%.cc} \\" done echo " \$(NULL)" echo "TESTS += \$(${name}_TESTS)" echo "check_PROGRAMS += \$(${name}_TESTS)" echo ...
#!/bin/bash -e # Copyright 2020. IBM All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
<filename>src/controller/Controller.java package controller; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.sql.Connection; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java...
package main import ( "fmt" ) func main() { mySlice := make([]int, 1, 4) fmt.Printf("Length is: %d.\nCapacity is: %d.\n", len(mySlice), cap(mySlice)) for i := 1; i < 17; i++ { mySlice = append(mySlice, i) fmt.Println("Capacity is:", cap(mySlice)) } }
package server import ( "fmt" "log" "net/http" "time" "github.com/gin-gonic/gin" "github.com/shien/weightrec-backend/pkg/auth" "github.com/shien/weightrec-backend/pkg/csvparser" "github.com/shien/weightrec-backend/pkg/globalcfg" ) const ( cookieUserInfo = "UserInfo" ) func NewRouter() *gin.Engine { router...
g++ -o Message_lengths.o Message_lengths.cpp -L../../build/lib -loqs ./Message_lengths.o
#!/usr/bin/env bash #------------------------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. #-----------------...
fn simulate_packet_transmission<'a, I>(packets: I, sender_id: usize, receiver_id: usize) -> usize where I: Iterator<Item = &'a [u8]> { let mut packets_sent = 0; for packet in packets { // Simulate sending packets packets_sent += send_packet(sender_id, receiver_id, packet); // Introdu...
<gh_stars>0 /* * 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 obtai...
<gh_stars>1-10 module Tracksale class Answer LIMIT = -1 attr_accessor :time, :type, :name, :email, :identification, :phone, :nps_answer, :last_nps_answer, :nps_comment, :campaign_name, :campaign_code, :id, :deadline, :elapsed_time, :disp...
def get_max(nums): max_num = nums[0] for num in nums: if num > max_num: max_num = num return max_num if __name__ == '__main__': nums = [2,8,5,4,1,9] print("Maximum value:", get_max(nums))
// 1071. 字符串的最大公因子 // https://leetcode-cn.com/problems/greatest-common-divisor-of-strings/ package question1013 import "testing" func Test_gcdOfStrings(t *testing.T) { str1 := "ABCABC" str2 := "ABC" t.Log(gcdOfStrings(str1, str2) == "ABC") str1 = "ABABAB" str2 = "ABAB" t.Log(gcdOfStrings(str1, str2) == "AB") ...
#!/bin/bash export CNODE_HOME=/opt/cardano/cnode truncate -s 0 /tmp/ip2trace_out.log; truncate -s 0 /tmp/ip2trace_in.log; pHOST=$HOSTNAME pIP=$(ifconfig eth0 | grep inet | grep -v inet6 | awk '{print $2}') pPORT=$(ps ax | grep "cardano-node run" | grep -v grep |sed 's/[^ ].*port //' | awk '{print $1}') netstat ...
<filename>rollup-plugins/export-in-place.js /** * Copyright 2019 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICEN...
package ch.raiffeisen.openbank.branch.controller.api; import java.util.HashSet; import java.util.Set; public class PostalAddress { private Set<String> addressLines = new HashSet<>(); private String buildingNumber; private String streetName; private String townName; private String countrySubDivision; priv...
#!/bin/bash tesseract() { docker run --rm -it -v \ `pwd`/app/base/ProcessManager.py:/tesseract/base/ProcessManager.py \ personal-expenses-accounting_tesseract /bin/bash } recogniser() { docker run --rm -it -v \ `pwd`/app/base/ProcessManager.py:/recognis...
#include <iostream> #include <algorithm> // Function to convert string to uppercase std::string toUpperString(std::string str) { std::transform(str.begin(), str.end(), str.begin(), ::toupper); return str; }
#!/bin/bash # © Copyright 2020 UCAR # This software is licensed under the terms of the Apache Licence Version 2.0 which can be obtained at # http://www.apache.org/licenses/LICENSE-2.0. set -ex name="tau2" version="2.28.1" # Hyphenated version used for install prefix compiler=$(echo $JEDI_COMPILER | sed 's/\//-/g') m...
<gh_stars>10-100 package io.opensphere.csvcommon.common.datetime; /** * Contains the picked date columns, or null if one could not be determined. * */ public class DateColumnResults { /** * The date column or the up time column. */ private DateColumn myUpTimeColumn; /** * I...
<reponame>astenstrasser/HelloJava<gh_stars>0 package br.com.neobank.bank.model; public class StocksExchange implements Taxable { @Override public double getTaxes() { return 50; } }
import React, {Component} from 'react' import {connect} from 'react-redux'; import {fetctPackages} from '../../Store/Actions/UserActions'; import ListOfCmds from '../List/List'; class SearchArea extends Component { onkeyDown = async e => { let query = e.target.value; await this.props.Search(query);...
sudo snap install beekeeper-studio
#!/bin/bash -e # ---------------------------------------------------------------------------- # # Package : carbon-charts # Version : 0.41.31 # Source repo : https://github.com/carbon-design-system/carbon-charts # Tested on : ubuntu_18.04 (Docker) # Language : Node # Travis-Check : True ...
<filename>src/core/utils/helpers/deviceInfo.ts<gh_stars>0 export const getDeviceId = async (): Promise<string | null | undefined> => { try { const devices = await navigator?.mediaDevices?.enumerateDevices?.() const device = devices.find((device) => device.kind === 'videoinput') return device?.deviceId ||...
package org.moskito.control.plugins.opsgenie; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import org.configureme.annotations.Configure; import org.configureme.annotations.ConfigureMe; import org.moskito.control.plugins.notifications.config.BaseNotificationProfileConfig; import org.moskito.control.plugin...
package core.shape_interface.editor.geom; import core.geom.Line; import core.shape_interface.editor.Control; import core.shape_interface.editor.ShapeEditor; import java.awt.Cursor; import java.awt.Graphics2D; import java.awt.Point; import java.awt.event.MouseEvent; /** * * @author <NAME> */ public class LineShapeE...
import { config } from "../config.js"; const { backend } = config; const { host, port } = backend; export const getTasksByTeam = async (teamId, memberId) => { console.log("---at get tasks by team---"); // Send the request with fetch() const tasks = await fetch( host + port + "/api/task/team/" + teamId + "/" ...
import React from "react" import { Link } from "gatsby" import PropTypes from "prop-types" import "@styles/header.scss" const Header = ({ siteTitle }) => ( <header> <div className="header-inner"> <h1 className="site-title"> <Link to="/"> {siteTitle} </Link> </h1> <nav ...
from rest_framework.serializers import ModelSerializer from rest_framework_queryfields import QueryFieldsMixin class drf_mscnt_Timestamp_Serializer(QueryFieldsMixin, ModelSerializer): class Meta: model = drf_mscnt_Timestamp id_field = 'id' fields = ('__all__')
#!/bin/bash function install_falco_driver_loader () { node_number=$1 debug_image=$2 image_option="" if [[ ! -z "$debug_image" ]] ; then echo "debug_image: $debug_image" image_option="--image" fi #echo $node_number nodename=${nodearray[$node_number]} echo "---------------...
// // FSShowDeleteView.h // Expand // // Created by Fudongdong on 2017/11/3. // Copyright © 2017年 china. All rights reserved. // #import <UIKit/UIKit.h> @interface FSShowDeleteView : UIView - (void)setText:(NSString *)text; - (void)setNotice:(NSString *)notice; - (void)startAnimation; @end
// An expression to calculate the area of a triangle given the three sides area = (1/4)*√( (3 + 4 + 5)*(-3 + 4 + 5)*(3 - 4 + 5)*(3 + 4 - 5))
const express = require('express'); const app = express(); app.get('/sequence', (req, res) => { const query = req.query.numbers; let dataSplit = query.split(","); let lastElement = dataSplit[dataSplit.length-1]; // lastElement is an integer let result = parseInt(lastElement) + 1; res.send({next: result.toString...
<reponame>deltd3v/bloog /** Generate an array of 16,777,216 colors */ export const genAllColors = (colorArray = []): string[] => { for (let i = 0xffffff; i >= 0; --i) colorArray[i] = i.toString(16).padStart(6, '0'); return colorArray; // exceeds 25m can't even cache this ish in localStorage }; /** Ge...
# middleware.py from django.http import HttpResponseForbidden from .models import Article class EditRestrictionMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): if request.path.startswith('/wiki/locked/edit/'): article_id = ...
#!/bin/bash rm -f solutions && \ rm -rf lovelace-solutions/ docker build -t lovelace-engine . && \ docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 14714:14714 lovelace-engine && \ docker ps -a git clone https://github.com/project-lovelace/lovelace-solutions.git && \ ln -s lovelace-solutions/python/ so...
#!/bin/bash read n for i in `seq 1 10` do let result=n*i echo "$n x $i = $result" done
import { MeshPhongMaterialDirective } from './mesh-phong-material.directive'; describe('MeshPhongMaterialDirective', () => { it('should create an instance', () => { const directive = new MeshPhongMaterialDirective(); expect(directive).toBeTruthy(); }); });
#ifndef _llvm_functions_h #define _llvm_functions_h /* * Contains all of the CLIPS=>LLVM and LLVM=>CLIPS wrapper functions. * These functions show up in CLIPS as various different things */ #include "ExpertSystem/Types.h" extern "C" void RegisterExpertSystemFunctions(void *theEnv); extern "C" void LLVMPrint(void *t...
<gh_stars>1-10 ############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by <NAME>, <EMAIL>, All rights reserved. # LLNL-CODE-647...
#pragma once #include "Common.h" #include "HostCapability.h" #include "Capability.h" #include "Host.h" #include "Session.h"
<reponame>ComputerArchitectureGroupPWr/Floorplan-Maker<filename>src/floorplan.py # -*- coding: utf-8 -*- from PyQt4 import QtGui import sys from PyQt4.QtCore import QString, Qt from PyQt4.QtGui import QColor __author__ = 'pawel' from Parameters import Param class Floorplan: colors = {QString("niebieski"):Qt.blu...
./gradlew clean bootJar docker-compose build linux docker-compose push linux
package com.ervin.litepal.utils; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import java.io.InputStream; /** * Created by Ervin on 2015/12/22. */ public class Tools { public static Bitmap readBitMap(Context context, int resId){ BitmapFactory....
<reponame>hapify/cli<gh_stars>1-10 import 'reflect-metadata'; import { expect } from '@hapi/code'; import 'mocha'; import { CLI, Sandbox } from './helpers'; describe('generate command', () => { it('success', async () => { const sandbox = new Sandbox(); sandbox.clear(); // Clone repository first const respons...
//##################################################################### // Copyright 2009, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### // Class ADVE...
/* eslint-disable no-shadow */ import { execSync, spawn } from "node:child_process"; import { existsSync, lstatSync, readFileSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import { URL } from "node:url"; import { watch } from "chokidar"; import { getType } fro...
//获取应用实例 var app = getApp(); Page({ data: { imageCtx: app.globalData.imageCtx, start: '', end: '', list: [], page: 1, stateList: [ { state: 1, name: '接单中' }, { state: 2, name: '生产中' }, { state: 3, name: '生产完成' }, { state: 4, name: '已发货' }, { state: 5, name: '已完成'...
#include "libft.h" char *ft_strndup(const char *str, size_t n) { char *temp; temp = (char *)ft_calloc(1, sizeof(char) * n + 1); if (temp == NULL) return (NULL); else ft_strlcpy(temp, str, n + 1); return (temp); }
mkdir -p ~/.streamlit/ echo "\ [general]\n\ email = \"quimicokalfa@gmail.com\"\n\ " > ~/.streamlit/credentials.toml echo "\ [server]\n\ headless = true\n\ enableCORS=false\n\ port= $PORT\n\ " > ~/.streamlit/config.toml
#! /bin/sh project="unity-sdk-travis" echo "Attempting to install credentials" git clone https://$CREDENTIALS_GITHUB_TOKEN@github.ibm.com/germanatt/sdk-credentials.git Travis/sdk-credentials/ if [ $? = 0 ] ; then echo "Credentials install SUCCEEDED! Exited with $?" else echo "Credentials install FAILED! Exited wi...
<reponame>tdm1223/Algorithm // 2204. 도비의 난독증 테스트 // 2021.06.10 // 문자열 #include<iostream> #include<string> #include<algorithm> using namespace std; int main() { int n; string s; while (1) { cin >> n; if (n == 0) { break; } string ans = ""; ci...
#! /bin/sh -e # This script downgrades MSVC 2008 projects to MSVC 2005 projects, allowing # people with MSVC 2005 to open them. Otherwise, MSVC 2005 simply refuses to # open projects created with 2008. We run this as part of our release process. # If you obtained the code direct from version control and you want to ...
package org.rs2server.rs2.domain.service.impl; import com.google.common.eventbus.EventBus; import com.google.common.eventbus.SubscriberExceptionContext; import com.google.common.eventbus.SubscriberExceptionHandler; import com.google.inject.Inject; import org.rs2server.rs2.domain.service.api.HookService; import org.slf...