text
stringlengths
1
1.05M
<reponame>miyasiii/d3force-firestore<filename>public/js/ForceSimulationParameter.js export class ForceSimulationParameter{ constructor() { this._center = { x: 0.5, y: 0.5, strength: 1 } this._collide = { radius: 1, strength: 1, iterations: 1 } this._link = { ...
<filename>world.js let process = require('process'); let fs = require('fs').promises; let termkit = require('terminal-kit'); async function loadMap(mapFile) { console.log(mapFile); let map = await fs.readFile(mapFile, 'utf8'); return map.trim().split('\n').map(s => Array.from(s)); } function color(term, text, ...
<reponame>shrishankit/prisma package com.prisma.deploy.migration.validation.directives import com.prisma.deploy.migration.DataSchemaAstExtensions._ import com.prisma.deploy.migration.validation.{DeployError, PrismaSdl} import com.prisma.shared.models.ConnectorCapabilities import com.prisma.utils.boolean.BooleanUtils i...
package blocks; import core.Block; import core.Type; import tokenizer.Token; /** * @author <NAME> * @email <EMAIL> */ public class ClassBlock extends Block<Token> implements Type { public ClassBlock extendClass = null; public boolean isClosed = false; private String className; public ClassBlock(S...
import React, { useState, useRef } from 'react'; import { action } from '@storybook/addon-actions'; import Popover, { PurePopover } from '@ichef/gypcrete/src/Popover'; import Button from '@ichef/gypcrete/src/Button'; import List from '@ichef/gypcrete/src/List'; import ListRow from '@ichef/gypcrete/src/ListRow'; expor...
<reponame>hengxin/jepsen-in-java<gh_stars>1-10 package example.cassandra.read_write_client; import core.client.Client; import core.client.ClientCreator; import core.db.Node; public class ReadAndWriteDoubleClientCreator implements ClientCreator { @Override public Client Create(Node node) { return new R...
#include "image_io/jpeg/jpeg_segment.h" #include <cctype> #include <iomanip> #include <sstream> #include <string> namespace photos_editing_formats { namespace image_io { using std::string; using std::stringstream; /// Finds the character allowing it to be preceded by whitespace characters. /// @param segment The se...
package io.opensphere.core.collada.jaxb; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; /** * A COLLADA geometry. */ @XmlAccessorType(XmlAccessType.NONE) public c...
''' 09_visualize_results.py Author: <NAME> (<EMAIL>) - Load the differential and mean current, sum, and plot them together ''' import numpy as np import matplotlib.pyplot as plt ## Flag to save plots or not save_plots = True nt = 2 # number of hours ## Load mean current data tmp = np.load('./disp/U.npy') x_m =...
package parser import ( "github.com/go-faster/errors" "github.com/ogen-go/ogen/internal/oas" ) type pathParser struct { path string // immutable params []*oas.Parameter // immutable parts []oas.PathPart // parsed parts part []rune // current part param bool // current part is p...
<filename>scoreboard/frontend/src/sources/api_hooks.js import api from "./api"; import useSWR from "swr"; import _ from 'underscore'; import { useState } from "react"; const api_fetcher = (url, n_ticks=1,) => { return api.get(url, {n_ticks: n_ticks}).then(r => r.body) } const STATE_POLLING_INTERVAL = 10 * 1000; exp...
#!/bin/bash # This has to be a separate file from scripts/make.sh so it can be called # before menuconfig. (It's called again from scripts/make.sh just to be sure.) mkdir -p generated source scripts/portability.sh probecc() { ${CROSS_COMPILE}${CC} $CFLAGS -xc -o /dev/null $1 - } # Probe for a single config symb...
package gotify import ( "bytes" "log" "regexp" "strings" ) // Gotify provides "gotification" of domain specific identifier names: // underscored names translates into camel case ones. // How the translation is done: // idenitifier name is splitted into chunks and each chunk is to be lowered, samples: // abc...
curl -X POST --header "Content-Type: application/json" -d '{"build_parameters": {"CIRCLE_JOB": "deploy_stage"}}' https://circleci.com/api/v1/project/backbone/workbench/tree/develop?circle-token=$1
<reponame>bfreuden/vertx-auth<gh_stars>100-1000 /******************************************************************************** * Copyright (c) 2019 <NAME> * * This program and the accompanying materials are made available under the 2 * terms of the Eclipse Public License 2.0 which is available at * http://www.e...
#!/bin/sh TEST_ROOT=$PWD TASKLIB=$TEST_ROOT/diffexSrc/src WORKING_DIR=$TEST_ROOT/job_1 INPUT_FILE_DIRECTORIES=$TEST_ROOT/diffexSrc/data COMMAND_LINE="python $TASKLIB/DiffEx.py $INPUT_FILE_DIRECTORIES/test_dataset.gct $INPUT_FILE_DIRECTORIES/test_dataset.cls 5" # local only variables # DOCKER_CONTAINER=genepattern/d...
const executeIfFunction = <T>(f: T | ((key: string) => T), arg: string) => typeof f === "function" ? f(arg) : f ; const toString = (key: string | number) => typeof key === "number" ? key.toString() : key; export const switchcaseC: <T>(cases: { [id: string]: T }) => ((defaultCase: T) => ((key: string | number)...
def is_balanced(s: str) -> bool: left_count = 0 star_count = 0 for char in s: if char == '(': left_count += 1 elif char == ')': if left_count > 0: left_count -= 1 elif star_count > 0: star_count -= 1 else: ...
TERMUX_PKG_HOMEPAGE=https://xiph.org/flac/ TERMUX_PKG_DESCRIPTION="FLAC (Free Lossless Audio Codec) library" TERMUX_PKG_VERSION=1.3.2 TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=http://downloads.xiph.org/releases/flac/flac-1.3.1.tar.xz TERMUX_PKG_SHA256=4773c0099dba767d963fd92143263be338c48702172e8754b9bc5103efe1c56c TERMU...
<gh_stars>0 package tree.symbols; import tree.DefaultTreeNodeSymbol; public class TSComma extends DefaultTreeNodeSymbol { public static int id = COMMA; public static String text = ","; public TSComma() { super(text, id); } }
import { GRAY, CYAN, YELLOW, RED } from 'ibuprofen/lib/colors' const KEYWORDS = { 'SELECT': GRAY, 'UPDATE': CYAN, 'INSERT': YELLOW, 'DELETE': RED, } const formatQuery = (qry, params) => { let q = qry.replace('Executing (default):', '') q = q.replace('WITH rows as (', '') q = q.replace(') SELECT count(*)...
<gh_stars>1-10 #ifndef __IM_GROOT_FILE_BROWSER_H__ #define __IM_GROOT_FILE_BROWSER_H__ #include <filesystem> namespace ImGroot { class FileBrowser { private: std::filesystem::path m_current_dir = std::filesystem::current_path(); uint32_t m_selected_item_id = std::numeric_limits<uint32_t>::max(); private: void un...
<gh_stars>1-10 package de.hswhameln.typetogether.client.gui; import de.hswhameln.typetogether.client.businesslogic.ClientUser; import de.hswhameln.typetogether.client.runtime.PropertyChangeManager; import de.hswhameln.typetogether.client.runtime.SessionStorage; import de.hswhameln.typetogether.client.runtime.commands....
<filename>gulpfile.js const gulp = require("gulp"); const postcss = require("gulp-postcss"); const stylelint = require("stylelint"); const gulpStylelint = require("gulp-stylelint"); const autoprefixer = require("autoprefixer"); const path = require("path"); const APP_PATH = path.join(__dirname, "app"); const STYLES_P...
def number_of_paths(m, n): # Create a 2D array dp = [[0 for x in range(n)] for y in range(m)] # Fill out 1st row and 1st column # when moving either right or down for i in range(n): dp[0][i] = 1 for i in range(m): dp[i][0] = 1 # Fill out the remaining e...
const { expect } = require("chai"); const linthtml = require("../../../index"); const none = require("../../../presets").presets.none; function createLinter() { return new linthtml.LegacyLinter(linthtml.rules); } describe("head-valid-content-model", function() { it("Should report an error for every invalid child",...
<filename>src/aguegu/dotmatrix/DMImage.java<gh_stars>10-100 package aguegu.dotmatrix; import java.awt.image.BufferedImage; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Graphics2D; public class DMImage extends BufferedImage { private static int blockWidth = 13; private static Color backgroundC...
maxdivider = 20 def task5(maxdivider): num = 11 test = 1 while test != 0: test = 0 for div in range(1,maxdivider): test += num%div num += 1 return num - 1 print(task5(maxdivider))
package com.watayouxiang.mediaplayer.utils; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Handler; import android.os.Message; import android.widget.ImageView; import java.io.InputStream; import java.lang.ref.WeakReference; import java.net.HttpURLConnection; import java.net.U...
#! /bin/bash DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source $DIR/common.sh ID1=`$EXEC filelink --server=$SERVER -k --api_key=$KEY $DIR/send_test.sh` test_status "Couldn't create filelink" ID1=${ID1##* } ID1=${ID1##*/} ID2=`$EXEC attach --server=$SERVER -k --api_key=$KEY $DIR/attach_test.sh` test_status...
import Mirage from 'ember-cli-mirage'; const avatarBase = 'http://slack.global.ssl.fastly.net/3654/img/avatars'; function avatar(i, size) { let x = (`000${i % 25}`).slice(-4); let suffix = size === 192 ? '' : `-${size}`; return `${avatarBase}/ava_${x}${suffix}.png`; } // jscs:disable requireCamelCaseOrUpperCas...
const crypto = require('crypto') const chalk = require('chalk') const _createComparisonSignature = (body) => { const hmac = crypto.createHmac('sha1', process.env.secret) const self_signature = hmac.update(JSON.stringify(body)).digest('hex') return `sha1=${self_signature}` } const _compareSignatures = (sig...
<filename>src/ts/pages.ts import UsersStore from "./UsersStore"; export function setTemplate() { document.getElementById("app").innerHTML = ` <header class="header"> <div class="header__item"> <div class="header__item--logo"> <span class="logo-top">Match</span> <span c...
#!/bin/sh rm thx.core.zip zip -r thx.core.zip hxml src doc/ImportCore.hx test extraParams.hxml haxelib.json LICENSE README.md haxelib submit thx.core.zip
public class MicrophoneSpeakerManager : MonoBehaviour { private List<Microphone> availableMicrophones = new List<Microphone>(); private List<Speaker> availableSpeakers = new List<Speaker>(); private void Start() { RefreshMicrophonesButtonOnClickHandler(); listener.SpeakersUpdatedEvent +...
fun main() { var n1:Int=0 var n2:Int=1 var n3:Int println(n1) println(n2) for(i in 0..18){ n3=n1+n2 n1=n2 n2=n3 println(n3) } }
#!/bin/bash # shellcheck source=./common.sh source "$(dirname "${BASH_SOURCE[0]}")/common.sh" if [[ ${BUILD_ENVIRONMENT} == *onnx* ]]; then pip install click mock tabulate networkx==2.0 pip -q install --user "file:///var/lib/jenkins/workspace/third_party/onnx#egg=onnx" fi # Skip tests in environments where they ...
<gh_stars>10-100 package io.opensphere.csv.config.v2; import java.awt.Color; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.net.URI; import java.net.URISyntaxException; import java.util.Arrays; import javax.xml.bind.JAXBException; import org.ju...
<filename>func-core/src/test/java/cyclops/container/foldable/AbstractConvertableSequenceTest.java package cyclops.container.foldable; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; ...
<reponame>savvasth96/fructose /** * Reinforcement Q-learning. */ package fwcd.fructose.ml.rl.qlearn;
#!/bin/sh #--------------------------------------------------------------------------- # Copyright 2006-2009 # Dan Roozemond, d.a.roozemond@tue.nl, (TU Eindhoven, Netherlands) # Peter Horn, horn@math.uni-kassel.de (University Kassel, Germany) # # Licensed under the Apache License, Version 2.0 (the "License"); #...
import numpy as np from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense # Create a model model = Sequential() model.add(Dense(4, activation="relu", input_dim=1)) model.add(Dense(2, activation="sigmoid")) model.compile(loss="sparse_categorical_crossentropy", optimizer="adam", metric...
package binary_search; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringTokenizer; /** * * @author minchoba * 백준 16401번: 과자나눠주기 * * @see https://www.acmicpc.net/problem/16401/ * */ public class Boj16401 { public static void main(String[] args) throws Exception{ Buffe...
<filename>cohort/week12/CacheV1.java import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; public class CacheV1 { // Iterators returned by ConcurrentHashMap are weakly consistent instead of fail-fast (it also // employs lock stripping and does n...
<filename>app/views/groups/show.json.jbuilder json.extract! @group, :id, :name, :value, :description, :created_at, :updated_at
#!/bin/bash if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then export DISABLE_AUTOBREW=1 $R CMD INSTALL --build . else mkdir -p $PREFIX/lib/R/library/gtsummary mv * $PREFIX/lib/R/library/gtsummary if [[ $target...
read_default_username() { local file_path="$1" local read_result=$(read_field_from_file 'default_username' "$file_path") printf "$read_result" } read_default_host_address() { local file_path="$1" local read_result=$(read_field_from_file 'default_host_address' "$file_path") printf "$read_result" } read_default_k...
<filename>models/hotels.js module.exports = function(sequelize, DataTypes) { var Hotel = sequelize.define("Hotel", { name: { type: DataTypes.STRING, allowNull: false, validate: { notEmpty: true } }, rating: { type: DataTypes.DECIMAL, allowNull: true, }, ...
<reponame>glowroot/glowroot-instrumentation<filename>instrumentation-test-matrix/src/main/java/org/glowroot/instrumentation/test/matrix/ApacheHttpAsyncClient.java /** * Copyright 2016-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file...
#!/bin/sh echo "stopping nomatrix MN ..." docker stop nomatrix echo DONE!
<filename>src/components/methodUI.styles.tsx import styled from "styled-components"; export const MethodWrapper = styled.div` display: flex; flex-direction: column; background: white; padding: var(--space-m); border: 1px solid; border-radius: 0.4rem; `; export const Banner = styled.div` font-size: var(-...
#!/usr/bin/env bash # # Copyright (c) 2018 The Readercoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. export LC_ALL=C.UTF-8 PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|...
<gh_stars>0 import 'jest'; // @ts-ignore import PROJECT from '[PROJECT NAME]'; describe('example test suite', () => {});
import { useStaticQuery, graphql } from "gatsby" import Img from "gatsby-image" import React, { useEffect } from "react" import { ExtraImageProps } from "../../../../../types/shared" const alt = { sensojiGarden: "Senso-Ji Garden", sensojiGarden2: "Senso-Ji Garden", sensojiGarden3: "Senso-Ji Garden", sensojiGar...
<gh_stars>1-10 #include <stdio.h> #include <string.h> #include <math.h> #include <time.h> #define __STDC_FORMAT_MACROS #include <inttypes.h> #include "mmt_core.h" #ifdef _WIN32 #include <ws2tcpip.h> #else #include <arpa/inet.h> //inet_ntop #include <netinet/in.h> #endif #ifdef _WIN32 #include <time.h> #include <window...
<reponame>TecXra/NodeJSTextProject const repository = require('../repository'); const { REMOVE_TAG_ERROR_MESSAGE } = require('../constants'); async function deleteTagDetails(req, res) { let deleteTag; try { deleteTag = await repository.deleteTag({ ...req.body }); } catch (deleteTagError) { deleteTag = d...
INPUT: paragraph SET counter to zero FOR each word in paragraph: IF word is in dictionary of positive words increment counter ELSE IF word is in dictionary of negative words decrement counter IF counter is greater than zero OUTPUT "positive" ELSE IF counter is less than zero OUTPUT "n...
import component from './ProjectContributions' export default component
#!/usr/bin/env bash set -e -o pipefail set -x source "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"/../.ci/deps.sh SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" export CHECKOUT_DIR=$(dirname $SCRIPTPATH)/third-party cd $SCRIPTPATH function checkout_dep() ( cd $CHECKOUT_DIR if [ ! -d ...
is_empty_list([]). is_empty_list([_|_]):- fail.
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 a...
<gh_stars>1-10 package benchmarks.caldat.flmoon.Neq; public class newV { public static int jd = 0; public static double frac = 0.0; public static int mm,id,iyyy; public static void flmoon( int n, int nph) { final double RAD=3.141592653589793238/180.0; int i; double am,as,c,t,t2,xtra; c=n+nph/4.0;...
void copy_array(int arr1[], int arr2[], int size) { for (int i=0; i<size; i++) arr2[i] = arr1[i]; }
<gh_stars>1-10 import { nextWeekRoomOpCreator } from '../../api/services/zoom'; test('if forgot set arg', () => { const roomOp = nextWeekRoomOpCreator(); expect(roomOp['topic']).toBe('by my-first-zoom-app'); expect(roomOp['timezone']).toBe('Asia/Tokyo'); });
package joist.domain.util; import java.util.Date; import com.domainlanguage.time.TimePoint; import com.domainlanguage.time.TimeSource; /** A {@link TimeSource} for the current time. */ public class WallClock implements TimeSource { public TimePoint now() { return TimePoint.from(new Date()); } }
package pedroSantosNeto.fazenda; import static org.junit.jupiter.api.Assertions.assertEquals; import java.sql.SQLException; import java.util.Date; import org.junit.Test; public class TesteAnimal { @Test public void testarInsercaoAnimal() throws ClassNotFoundException, SQLException { Date data = new Date(); ...
//规范:Function文件中只存放全局函数 function formIsValid(formId: string): boolean { let demo = $('#' + formId) as any; if (!demo.valid()) { return false; } else { return true; } } function formReset(formId: string) { (document.getElementById(formId) as any).reset(); } function co...
import { format } from '@root/lib/util/durationFormat'; import { Argument, ArgumentContext, ArgumentResult } from '@sapphire/framework'; import { Duration } from '@sapphire/time-utilities'; export default class extends Argument<number> { public run(parameter: string, context: ArgumentContext): ArgumentResult<number> ...
#!/bin/bash # Install The Silver Searcher (ag) hash ag >/dev/null || ( # Ensure dependencies sudo apt-get install -y git-core automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev # Get the source sudo mkdir -p /usr/local/src/silversearcher sudo chmod 777 /usr/local/src/silversearcher git ...
import subprocess def execute_tasks(commands): for i, command in enumerate(commands, start=1): process = subprocess.Popen(command, shell=True) process.communicate() if process.returncode == 0: print(f"Task {i}: Success") else: print(f"Task {i}: Failed") # Ex...
<gh_stars>1-10 #include "Logger.hpp" using namespace DomoticaInternals; Logger::Logger() : _loggingEnabled(true) , _printer(&Serial) { } void Logger::setLogging(bool enable) { _loggingEnabled = enable; } void Logger::setPrinter(Print* printer) { _printer = printer; } size_t Logger::write(uint8...
<reponame>Shasthojoy/cartodb<gh_stars>1-10 var Backbone = require('backbone'); var FactoryModals = require('../../../factories/modals'); var EditorHelpers = require('builder/components/form-components/editors/editor-helpers-extend'); function dispatchDocumentEvent (type, opts) { var e = document.createEvent('HTMLEve...
/* * Recursively convert object key value pairs into url encoded string * ------------------------------------------------------------------ * * @param o [object] ( only param that needs to be passed by user ) * @param _key [string] ( for iteration ) * @param _list [array] store key value pairs ( for iteration )...
class ConfigurationManager: def __init__(self, config_args): self._config_args = config_args @property def experiment_args(self): return self._config_args["Experiment"] @property def train_dataset_args(self): return self._config_args["Dataset - metatrain"] @property ...
require 'vmstat' module Bot module DiscordCommands module Embeds extend Discordrb::EventContainer extend Discordrb::Commands::CommandContainer info_desc = 'Information about Sapphire' command(:info, description: info_desc, help_available: true) do |event| sys = Vmstat.snapshot ...
#!/bin/bash # This script parses in the command line parameters from runCust, # maps them to the correct command line parameters for DispNet training script and launches that task # The last line of runCust should be: bash $CONFIG_FILE --data-dir $DATA_DIR --log-dir $LOG_DIR # Parse the command line parameters # tha...
import styled from "@emotion/styled"; const StatsSubline = styled("h4")` font-size: ${({ theme }) => theme.font.xs}; color: ${({ theme }) => theme.col.black}; font-weight: 400; margin: 0 0 12px; `; export default StatsSubline;
#!/bin/bash # if we are linked, use that info # docker-compose uses depends_on, but while building the following will fail since it # assumes a hard-dependency on 'mongodb' # if [ "$MONGO_STARTED" != "" ]; then # Sample: MONGO_PORT=tcp://172.17.0.20:27017 mongo db/admin < /tmp/db-setup.js # fi
docker build -t quickmess-api:v1 . docker run -p 5123:5123 --name quickmess-backend --net wtl-network --ip 172.19.0.11 quickmess-api:v1
<reponame>kr05/tiny-stepper export { TinyStepper } from './src/TinyStepper.js';
<gh_stars>10-100 export function bound (value, interval) { return Math.max(interval[0], Math.min(interval[1], value)) } export function shuffle (array) { var counter = array.length // While there are elements in the array while (counter > 0) { // Pick a random index var index = Math.floor(Math.random()...
/* * Copyright (c) 2017 * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the foll...
import { IlpPrepare, serializeIlpPrepare } from 'ilp-packet' import { deserializeIldcpResponse } from 'ilp-protocol-ildcp' import { createILPContext } from '../../utils' import { ILPContext } from '../../rafiki' import { IncomingAccountFactory, IncomingPeerFactory, OutgoingPeerFactory, IlpPrepareFactory, Rafi...
import unittest b32 = 0xFFFFFFFF def bitInsertionFor(N, M, i, j): clearmask = 0 for b in range(i, j): clearmask |= 1 << b clearmask = ~clearmask r = N & clearmask return r | (M << i) def bitInsertionBit(N, M, i, j): clearmask = (~1 & b32) << j clearmask |= (1 << i) - 1 R = N &...
package owlmoney.logic.parser.card; import java.util.Iterator; import owlmoney.logic.command.Command; import owlmoney.logic.command.card.EditCardCommand; import owlmoney.logic.parser.exception.ParserException; /** * Parses input by user for editing card. */ public class ParseEditCard extends ParseCard { /** ...
<filename>src/vscripts/abilities/heroes/kakashi/kakashi_sharingan.ts import { BaseAbility, BaseModifier, registerAbility, registerModifier } from "../../../lib/dota_ts_adapter" interface kv { ability_id: EntityIndex; } @registerAbility() export class kakashi_sharingan extends BaseAbility { Precache(context: CScr...
package io.github.apace100.origins.mixin.fabric; import io.github.apace100.origins.access.EntityShapeContextAccess; import net.minecraft.block.EntityShapeContext; import net.minecraft.entity.Entity; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm....
<style> body { background-color: #f2f2f2; } .container { width: 500px; margin: 0 auto; } .login-form { background-color: #fff; padding: 30px; border-radius: 5px; box-shadow: 0 5px 5px #000; } .login-form-input { width: 100%; ...
def alternatingCase(s): result = "" for i in range(len(s)): if i % 2 == 0: result = result + s[i].upper() else: result = result + s[i].lower() return result s = "Hello World" print(alternatingCase(s))
exit 1 # This script isn't currently runnable it just documents the process # Remember to update version number cd .. snapcraft clean && SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY=4G snapcraft # Install and test snap snapcraft login snapcraft upload --release=stable mysnap_latest_amd64.snap
"use strict"; /** * Copyright (c) 2012-2015, <NAME> (MIT License) * Copyright (c) 2016, <NAME> (MIT License). * Copyright (c) 2018, Microsoft Corporation (MIT License). */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Terminal = exports.DEFAULT_ROWS = exports.DEFAULT_COLS = void 0; var even...
<reponame>Mamuya7/datrastoco-springboot-api package com.mamuya.datrastocospringbootapi.service.serviceImpl; import com.mamuya.datrastocospringbootapi.entities.Product; import com.mamuya.datrastocospringbootapi.repository.ProductRepository; import com.mamuya.datrastocospringbootapi.service.ProductService; import org.sp...
#!/bin/bash # ======================================================== # # | *** Parse Arguments *** | # # ======================================================== # while getopts ":h-:" OPTION do case "${OPTION}" in h) usage exit 2 ;; -) case "$...
def array_sum(arr): sum = 0 for i in range(0, len(arr)): sum += arr[i] return sum arr = [1,2,3,4,5] print(array_sum(arr))
var hashidEncoder = require('../lib/hashEncoderDecoder'); function getOrderedPlaces(destinationsForPlaces,taste,connection,placesDataCallback){ var CityIDsForPlaces=[]; var cityWisePlaces=[]; var tastesSubQuery='(Taste & '+connection.escape(taste.tasteInteger)+'!=0 )' var familyFriendsSubQuery = '(Taste & '+con...
//package study.business.application.jobs.person; // //import javax.batch.api.partition.PartitionAnalyzer; //import javax.batch.runtime.BatchStatus; //import javax.enterprise.context.Dependent; //import javax.inject.Named; //import java.io.Serializable; // //@Dependent //@Named("PartitionAnalyzerImpl") //public class P...
<reponame>danielsan/resilient.js var Resilient = require('../') var client = Resilient({ balancer: { random: true, roundRobin: false }, discovery: { servers: [ 'http://localhost:8882/discovery/balancer' ], timeout: 1000, parallel: false } }) client.on('request:outgoing', function...
package com.zhcs.dao; import java.util.List; import java.util.Map; import com.zhcs.entity.MailtemplateEntity; //***************************************************************************** /** * <p>Title:MailtemplateDao</p> * <p>Description: 邮件模板</p> * <p>Copyright: Copyright (c) 2017</p> * <p>Company: 深圳市智慧城市管...
#!/bin/bash set -e echo "Global config ..." #envsubst < /templates/global/koha-sites.conf.tmpl > /etc/koha/koha-sites.conf envsubst < /templates/global/passwd.tmpl > /etc/koha/passwd echo "Setting up local cronjobs ..." #envsubst < /cronjobs/deichman-koha-common.tmpl > /etc/cron.d/deichman-koha-common envsubst < /cro...
/* ============================================================ * QupZilla - WebKit based browser * Copyright (C) 2010-2012 <NAME> <<EMAIL>> * * 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 Foundation, ei...