text
stringlengths
1
1.05M
<filename>houdini/scripts/html/ctrl_script.js /* author = "<NAME>" copyright = "2019 All rights reserved. See LICENSE for more details." status = "Prototype" */ // Playback Hotkeys (i/o/p) var video = document.getElementById("video_player"); document.onkeydown = function(event) { switch (event.keyCode) { ...
Sub Combinations(ByVal nChars() As Char, ByVal nPos As Integer) dim x As Integer For x = 0 To UBound(nChars) If(nPos = 1) Then Console.WriteLine(nChars(x)) Else Combinations nChars, nPos - 1 Consol...
package string_handle; import java.io.BufferedReader; import java.io.InputStreamReader; /** * * @author minchoba * 백준 9971번 : The Hardest Problem Ever * * @see https://www.acmicpc.net/problem/9971/ * */ public class Boj9971 { private static final String START = "START"; private static final String END = "EN...
<reponame>ctuning/ck-spack<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...
<reponame>pulsar-chem/BPModule<gh_stars>0 import pulsar as psr def load_ref_system(): """ Returns cubane as found in the IQMol fragment library. All credit to https://github.com/nutjunkie/IQmol """ return psr.make_system(""" C 1.2455 0.5367 -0.0729 C 0.9239 -0....
/* * */ package net.community.chest.spring.test.beans; import java.util.List; import javax.inject.Inject; import net.community.chest.spring.test.entities.EmbeddingEntity; import org.springframework.stereotype.Service; /** * <P>Copyright as per GPLv2</P> * @author <NAME>. * @since Jan 20, 2011 10:32:35 AM */ ...
#!/bin/bash export CRTDIR=$(pwd) export TMPDIR=/tmp/testgendocs mkdir $TMPDIR cp -r sig* Makefile generator $TMPDIR cd $TMPDIR make all mismatches=0 break=$(printf "=%.0s" $(seq 1 68)) for file in $(ls $CRTDIR/sig-*/README.md $CRTDIR/sig-list.md); do real=${file#$CRTDIR/} if ! diff -q <(sed -e '/Last generated...
package org.clever.storage.dto.request; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import org.clever.common.PatternConstant; import org.clever.common.model.request.BaseRequest; import org.clever.common.validation.ValidIntegerStatus; import javax.validation.con...
@connect / set echo on set termout off alter session set query_rewrite_enabled = true; alter session set query_rewrite_integrity = trusted; drop table t; set termout on set feedback off clear screen create table t ( x int not null, y int not null, z int ); insert into t values ( 1, 4, 55 ); insert into t values ( 1, 4...
<reponame>james-wills/Flixster package com.example.james_wills.flixster.utils; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; import android.util.DisplayMetrics; import android.util.TypedValue; public class DeviceDimensionsHelper { // DeviceDimensions...
<gh_stars>1-10 package net.zomis.spring.games.generic; import com.fasterxml.jackson.core.TreeNode; import com.fasterxml.jackson.databind.ObjectMapper; import net.zomis.spring.games.messages.GameMoveResult; import java.util.Map; import java.util.function.Function; @Deprecated public class GroovyGameHelper implements ...
# # Add jquery to project # mkdir ../Source/js mkdir ../Source/js/vendor mkdir ../Source/js/vendor/jquery curl -o ../Source/js/vendor/jquery/jquery-3.2.1.js https://code.jquery.com/jquery-3.2.1.min.js
#!/bin/bash for filename in `find . -type f -name '*.cpp'`; do echo $filename obj=$(echo $filename | sed -e s/src/build/ -e s/cpp/o/) echo $obj gcov-5 -r -p -o $obj $filename done
var dir_0e467354ced3595f0aa9578c498f5e57 = [ [ "TfResNext_Quantized-Armnn.cpp", "_tf_res_next___quantized-_armnn_8cpp.xhtml", "_tf_res_next___quantized-_armnn_8cpp" ] ];
<filename>cmd/govim/internal/golang_org_x_tools/lsp/template/highlight.go // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package template import ( "context" "fmt" "regexp" "github.com/govim/govim/cmd/g...
fn resolve_dependencies(modules: Vec<&str>) -> Vec<&str> { let mut graph = std::collections::HashMap::new(); let mut visited = std::collections::HashSet::new(); let mut result = Vec::new(); for module in &modules { graph.insert(module.to_string(), Vec::new()); } for module in &modules ...
<filename>src/types/Item.js class DocumentedItem { constructor(parent, data) { this.parent = parent; const { name, comment, flags, sources } = data; this.name = name; this.description = comment ? comment.shortText || comment.text : 'No description available'; this.flags = this.parseFlags(flags); this.so...
var armnn_tf_parser_2test_2_test_multi_inputs_outputs_8cpp = [ [ "BOOST_FIXTURE_TEST_CASE", "armnn_tf_parser_2test_2_test_multi_inputs_outputs_8cpp.xhtml#ade2300c7c66d25f6b8626df6fb0d82b3", null ] ];
<html> <head> <title>Weather App</title> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script> $(document).ready(function() { $.getJSON('https://api.openweathermap.org/data/2.5/weather?q=London,uk&appid=YOUR_API_KEY', function(data) { $('#city').html(data.name); $('...
#!/bin/sh set -e set -x # cleanup and create new rootfs dir rm -fr rootfs/ mkdir -p rootfs/etc/ssl/certs/ # add latest ca-certificates.crt from Debian upstream (cd rootfs/etc/ssl/certs/; \ wget https://github.com/hypriot/rpi-swarm/raw/master/certs/ca-certificates.crt) # add latest etcd binary ETCD_VERSION="2.0.1...
#!/bin/bash if [ -z "$BASH_VERSION" ]; then echo "** MUST RUN FROM bash, please run again from bash! **" exit 15 fi ZONAMADEV_URL='https://github.com/Zonama/ZonamaDev' ZONAMADEV_BRANCH='release-1.5' OS='unknown' main() { case $HOME in *' '* ) echo echo 'Your $HOME has spaces in it:' echo ...
#!/bin/bash -e ################################################################################ ## File: rust.sh ## Desc: Installs Rust ################################################################################ echo "skipping"
def test_login(client): # Retrieve the first user from the database user = User.query.first() # Append a log entry with the title "Golf" to the user's logs user.my_logs.append(Log(title="Golf")) # Add the user to the session db.session.add(user) # Commit the changes to the database db...
<reponame>lgarciaaco/cos-fleetshard<filename>cos-fleetshard-sync/src/test/java/org/bf2/cos/fleetshard/sync/connector/ConnectorStatusExtractorTest.java package org.bf2.cos.fleetshard.sync.connector; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import org.bf2.cos.fleet.mana...
<filename>src/main/java/_1_Add_two_numbers_as_a_linked_list.java /* Hi, here's your problem today. This problem was recently asked by Microsoft: You are given two linked-lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numb...
import tkinter # Create main window. main_window = tkinter.Tk() main_window.title("User Data Entry") main_window.geometry("200x100") # Create entry boxes name_label = tkinter.Label(main_window, text="Name") name_label.grid(row=0, column=0, sticky="w") name_entry = tkinter.Entry(main_window) name_entry.grid(row=0, col...
import dsReducerGenerator from 'ember-data-on-redux/reducers/ds-reducer-generator'; import initialState from '../constants/initial-state'; const noOp = {}; export default { ds: dsReducerGenerator(initialState, noOp) };
package network_flow; import java.io.*; import java.util.*; /** * * @author exponential-e * 백준 1960번: 행렬만들기 * * @see https://www.acmicpc.net/problem/1960 * Java get OOM & I dont know reason -> C++17 * */ public class Boj1960 { private static int[][] capacity; private static int[][] flow; private ...
#!/bin/bash unameOut="$(uname -s)" case "${unameOut}" in Linux*) machine=Linux;; Darwin*) machine=Mac;; CYGWIN*) machine=Cygwin;; MINGW*) machine=MinGw;; *) machine="UNKNOWN:${unameOut}" esac # where am i? move to where I am. This ensures source is properly sourced DIR="$( cd ...
from flask import Flask, render_template app = Flask(__name__) @app.route('/city_jobs') def city_jobs(): city_jobs = [ { 'job': 'Developer', 'salary': 75000 }, { 'job': 'Doctor', 'salary': 80000 }, { 'job': 'Teacher', 'salary': 45000 }, { 'job': 'Chef', 'salary': 55000 } ] ...
/* FWDU3DCarSlideshowButton */ (function(window) { var FWDU3DCarSlideshowButton = function(data) { var self = this; var prototype = FWDU3DCarSlideshowButton.prototype; this.playButtonNImg = data.playButtonNImg; this.playButtonSImg = data.playButtonSImg; this.pauseButtonImg = data.pauseButtonImg; this.tim...
/* * Copyright (C) 2012 Atlassian * * 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 t...
#!/bin/sh # $Id: vboxguest.sh 69500 2017-10-28 15:14:05Z vboxsync $ ## @file # VirtualBox Guest Additions kernel module control script for Solaris. # # # Copyright (C) 2008-2017 Oracle Corporation # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is...
<table> <tr> <th>Column 1</th> <th>Column 2</th> <th>Column 3</th> <th>Column 4</th> <th>Column 5</th> </tr> <tr> <td> <?php echo mt_rand(); ?> </td> <td> <?php echo mt_rand(); ...
const _ = require('underscore'); const DrawCard = require('../../../drawcard.js'); class HouseManderlyKnight extends DrawCard { setupCardAbilities(ability) { this.persistentEffect({ condition: () => _.any(this.game.getPlayers(), player => player.activePlot && player.activePlot.hasTrait('Winter...
# Copyright (c) 2020 - for information on the respective copyright owner # see the NOTICE file and/or the repository https://github.com/boschresearch/blackboxopt # # SPDX-License-Identifier: Apache-2.0 # # This source code is derived from HpBandSter 0.7.4 # https://github.com/automl/HpBandSter # Copyright (c) 2017-201...
<reponame>danilovalente/mashery-toolbelt-1<filename>examples/api.js const MasheryClient = require('../src/lib/client') const credentials = { username: `YOUR USERNAME`, password: `<PASSWORD>`, key: `APP KEY`, secret: `APP SECRET`, scope: `AREA UUID`, } // Authenticate on demenad const client = new MasheryCli...
<reponame>undecaf/vue-boilerplate<filename>tests/unit/03-event-bus.spec.js import Vue from 'vue' import options from '@/config' import { emitEventBus, onEventBus } from '@/services/event-bus' const config = options(Vue) /** * TODO Tests the event bus */ describe('Event bus', () => { })
#!/bin/bash # create multiresolution windows icon #mainnet ICON_SRC=../../src/qt/res/icons/zeon.png ICON_DST=../../src/qt/res/icons/zeon.ico convert ${ICON_SRC} -resize 16x16 zeon-16.png convert ${ICON_SRC} -resize 32x32 zeon-32.png convert ${ICON_SRC} -resize 48x48 zeon-48.png convert zeon-16.png zeon-32.png zeon-48.p...
#!/bin/bash set -e if [[ $# -eq 0 ]] ; then echo "Enter project name" exit 0 fi cd {{ home }}/$1 {% if is_prod -%} git pull {%- endif %} yarn install yarn build source /opt/$1/env/bin/activate pip install -r requirements.txt --exists-action s cd /opt/$1/project/src ./manage.py migrate ./manage.py collectstat...
/* * * Created on: 2020年10月1日 * Author: Lzy */ #include "usermainwid.h" #include "ui_usermainwid.h" UserMainWid::UserMainWid(QWidget *parent) : QWidget(parent), ui(new Ui::UserMainWid) { ui->setupUi(this); LandingUser::get(); mBtnBar = new UserBtnBar; mDbTable = new SqlTableWid(ui->g...
<gh_stars>0 import { Mutation, Resolver, Args, Query } from '@nestjs/graphql' import { UrlEntity } from './url.entity' import { UrlService } from './url.service' import { UseGuards } from '@nestjs/common' import { AuthGuard } from '../user/auth.guard' @Resolver((of) => UrlEntity) export class UrlResolver { constru...
<gh_stars>0 import { Injectable } from '@nestjs/common'; import { User } from '../../../entities/user.entity'; import { getConnection, getRepository } from 'typeorm'; const bcrypt = require('bcryptjs'); @Injectable() export class UserService { async createUser(body) { try { const query = await getConnection...
#!/bin/bash /home/jizong/.conda/envs/pingao/bin/python train.py exp0008_seizurev16_11_server2.yaml /home/jizong/.conda/envs/pingao/bin/python train.py exp0008_seizurev16_12_server2.yaml /home/jizong/.conda/envs/pingao/bin/python train.py exp0008_seizurev16_13_server2.yaml
#!/bin/bash cd "$(dirname "$BASH_SOURCE")" \ && source '../utils.sh' # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - set_preferences() { execute 'defaults write com.apple.terminal FocusFollowsMouse -string true' \ 'Make the focus automatically follow the mouse' execute '...
import React from "react" const GalleryCard = props => { return ( <> <div className="gallery-item double-column"> <div className="gallery-image"></div> <div className="gallery-header"> <h1> </h1> <div className="gallery-header-sub"></div> </div> </div> ...
<reponame>Ashindustry007/competitive-programming // https://www.codechef.com/AUG17/problems/RAINBOWA #include <iostream> #include <vector> using namespace std; typedef vector<int> vi; int main() { int t; cin >> t; for (int i = 0; i < t; i++) { int n; cin >> n; vi xs(n); for (int j = 0; j < n; j++) { ci...
userProfile.controller('activityController', function($scope,$http) { // create a message to display in our view $scope.invalid_login = true; $scope.unexpected_error = true; console.log("inside user activity controller"); init(); function init() { $scope.disableBuyActivity= true; $scope.disableSellActivit...
<reponame>liuyeming1997/Magnus<filename>Magnus/src/Magnus/ImGui/imGuiBuild.cpp #include "mgpch.h" #define IMGUI_IMPL_OPENGL_LOADER_GLAD #include "examples/imgui_impl_opengl3.cpp" #include "examples/imgui_impl_glfw.cpp"
/* Copyright 2009-2015 <NAME> * * This file is part of the MOEA Framework. * * The MOEA Framework is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your...
#!/bin/bash # Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditio...
from torch.utils.data import Dataset, DataLoader from tqdm.autonotebook import tqdm import torch from PIL import Image import numpy as np from torch.nn.utils.rnn import pad_sequence """ Write your own dataset here. The __getitem__ method must return a dict with the following key, value pairs: 'ques': tensor of int...
<reponame>gdnwxf/netty_stu package org.xtwy.thriftrpc; import org.apache.thrift.TProcessor; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.server.TServer; import org.apache.thrift.server.TSimpleServer; import org.apache.thrift.server.TThreadPoolServer; import org.apache.thrift.transport.TS...
<reponame>ecmwf/ecflow #ifndef USER_HPP_ #define USER_HPP_ /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // Name : // Author : Avi // Revision : $Revision: #5 $ // // Copyright 2009-2020 ECMWF. // This software is licensed under the terms of the Apache Licence version 2...
#!/usr/bin/env bash # Base16 Edge Light - Gnome Terminal color scheme install script # cjayross (https://github.com/cjayross) [[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Base 16 Edge Light" [[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="base-16-edge-light" [[ -z "$DCONF" ]] && DCONF=dconf [[ -z "$UUIDGEN" ]] && UUIDGEN=uuidg...
from django import http from functools import wraps def my_decorator(func): '''自定义的装饰器:判断是否登录,如果登录,执行func ,未登录,返回json''' @wraps(func) def wrapper(request, *args, **kwargs): if request.user.is_authenticated: # If the user is authenticated, execute the view function return fu...
package yimei.jss.algorithm.featureweighted; import java.util.ArrayList; import ec.EvolutionState; import ec.Individual; import ec.gp.GPNode; import ec.util.Checkpoint; import ec.util.Parameter; import ec.util.RandomChoice; import yimei.jss.feature.FeatureIgnorable; import yimei.jss.feature.FeatureUtil; import yimei....
<gh_stars>0 var structarmnn_1_1_space_to_depth_descriptor = [ [ "SpaceToDepthDescriptor", "structarmnn_1_1_space_to_depth_descriptor.xhtml#af295348553622bb3baadff6ea5124414", null ], [ "SpaceToDepthDescriptor", "structarmnn_1_1_space_to_depth_descriptor.xhtml#a700f6dc2a7a912cd37ee7dbfcc9220b9", null ], [ "o...
package com.yoga.admin.duty.dto; import com.yoga.core.base.BaseDto; import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @Getter @Setter @NoArgsC...
func fibonacci(_ n: Int) -> Int { guard n > 0 else { return 0 } if n == 1 || n == 2 { return 1 } return fibonacci(n - 1) + fibonacci(n - 2) } for i in 1...10 { print(fibonacci(i)) }
<gh_stars>1-10 require "git/open/version" module Git module Open class CLI def self.execute require "slop" options = Slop.parse do |option| option.on "-h".freeze, "--help".freeze, "Show this help".freeze option.on "-v".freeze, "--version".freeze, "print the version".free...
<filename>apps/ospTestSuite/test_light.cpp // Copyright 2020-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include "test_light.h" #include "ospray_testing.h" namespace OSPRayTestScenes { LightTest::LightTest() { samplesPerPixel = 16; // due to the way c0 in SpotLight is calculated we must rotat...
public class Tree { Node root; // Recursive Function to calculate the number of nodes public int numberOfNodes(Node node) { if (node == null) return 0; else { int count = 1; count += numberOfNodes(node.left); count += numberOfNodes(node.rig...
import Vue from 'vue' import moxios from 'moxios' import * as sinon from 'sinon' import ProteinView from '@/components/App/Protein/registration_system_ext/View' import VueRouter from 'vue-router' import { HTTP } from '@/utils/http-common' const sandbox = sinon.sandbox.create() const router = new VueRouter() describe...
import { Puzzle202011, parseInput } from './11'; let day: Puzzle202011; describe('202011', () => { beforeEach(() => { day = new Puzzle202011('202011'); }); test('parseInput', () => { const input = `L.LL. LLLLL`; const result = parseInput(input); expect(result).toEqual([ [ { oc...
def replace_greater_than_n(arr, n): new_arr = [] for row in arr: new_row = [] for item in row: if item > n: new_row.append(n) else: new_row.append(item) new_arr.append(new_row) return new_arr print(replace_greater_than_n(arr, n...
#!/usr/bin/env bash NEW_RELIC_LICENSE_KEY=$1 SERVICE_BUS=$2 echo "NEW_RELIC_LICENSE_KEY=$NEW_RELIC_LICENSE_KEY" echo "SERVICE_BUS=$SERVICE_BUS" dotnet publish docker build -t dotnet-backend:latest . docker run -e NEW_RELIC_LICENSE_KEY="$NEW_RELIC_LICENSE_KEY" -e SERVICE_BUS="$SERVICE_BUS" -p 5000:80 dotnet-backend...
/* * Copyright 2018 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include <new> #include <stdio.h> #include <string.h> #include <bus/PCI.h> #include <PCI_x86.h> #include <KernelExport.h> #include "sdhci_pci.h" #define TRACE_SDHCI #ifdef...
#!/bin/bash -e if [[ -e ./src/lab2_fb ]] ; then binStr="./src/lab2_fb" else echo "Couldn't find program to execute." exit 1 fi $binStr --audio_file p018k7.1.dat --graph_file p018k7.1.fsm --iters 1 \ --in_gmm p018k7.22.2.gmm --out_gmm /dev/null --chart_file p3a_chart.dat
import random def generate_list(): list = [] for i in range(10): list.append(random.randint(0, 10)) return list
#!/bin/bash -e OPTION="$1" shift # Check if an option is specified. if [[ -z $OPTION ]]; then echo "Usage: $0 <init|backend|frontend>" exit 0 fi # This script must be run in the project root folder. if [ ! -d "photod-backend" ]; then echo "The source directory is not mounted." exit 1 fi # Parse opti...
/** * */ package coca.api.co; import coca.api.CocaConst; import coca.co.ins.CoIns; import coca.co.ins.CoIns.Ins; import coca.co.ins.CoInsFactory; /** * * @author dzh * @date Oct 13, 2017 11:12:56 AM * @since 0.0.1 */ public class CocaInsFactory extends CoInsFactory { protected CoIns<?> customIns(Ins ins...
#!/bin/bash quick=false while getopts ":HG:M:D:R:F:S:Q" opt; do case $opt in H) echo "Bash script to evaluate released models on tempoTL:" echo "" echo " Flag 'R' (required): path with RGB model " echo "" echo " Flag 'F' (required): path with flow model " echo "" ec...
<reponame>chino-os/chino-os<filename>src/hal/src/chip/wm/w600/uart.cpp // MIT License // // Copyright (c) 2020 SunnyCase // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restrict...
import numpy as np class Object3D: def __init__(self): # define the object points self.vertices = np.array([(0., 0., 0.), (1., 0., 0.), (1., 1., 0.), (0., 1., 0.), (0., 0., 1.), (1., 0., 1.), (1., 1., 1.), (0., 1., 1.)]) # ...
<gh_stars>1-10 package com.studentsteam.sonic.screens; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.Screen; import com.badlogic.gdx.audio.Music; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.OrthographicCamera; import com.badlogic.gdx.scenes.scene2d.Stag...
<reponame>eMedin4/indice $( document ).ready(function() { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); /************************************************************************************************ RESPONSIVE MENU *********************************...
# ********************************************************** # Copyright (c) 2007 VMware, Inc. All rights reserved. # ********************************************************** # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are...
#!/bin/bash # remember to update the compiled train: # NB: directory where program is run (PATH_TO/fbcode) matters # buck build @mode/opt -c fbcode.platform=gcc-4.9-glibc-2.20 experimental/commai/env/src:train # cp ~/fbsource/fbcode/buck-out/gen/experimental/commai/env/src/train.par /mnt/vol/gfsai-flash-east/ai-group/...
/*ckwg +29 * Copyright 2017-2019 by Kitware, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this li...
import * as React from 'react'; import {Route} from 'react-router-dom'; import { NavLink } from 'react-router-dom'; import Account from './account'; import Password from './Password'; import AddProfile from './AddProfile'; class Settings extends React.Component<any, any>{ render(){ return ( <div className=...
<reponame>ourcade/phaser3-typescript-examples<gh_stars>10-100 import Phaser from 'phaser' export default class Muybridge extends Phaser.Scene { preload() { this.load.spritesheet('muybridge','/assets/animations/muybridge01.png', { frameWidth: 119, frameHeight: 228 }) } create() { var config: Phaser.Types.Anim...
# Copyright 2020 Cloudbase Solutions Srl # Copyright 2019 <EMAIL> # # 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...
/* * Copyright 2019 Wultra s.r.o. * * 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 in...
#!/bin/sh aclocal -I m4 || exit 1 autoconf || exit 1
import React from 'react' import Link from 'gatsby-link' const Footer = () => ( <footer className="section"> <div className="diviider"></div> <div className="w-container"> <div className="w-row"> <div className="w-col w-col-3"> <Link to="/" className="brand black...
from typing import Callable, Iterable, List, Iterator, Tuple, Union, Dict, Any from dataclasses import dataclass import time import tqdm import logging from opentelemetry import trace from datapipe.types import DataDF, IndexDF from datapipe.compute import ComputeStep, PipelineStep, Catalog, DatatableTransformStep fro...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_import_contacts = void 0; var ic_import_contacts = { "viewBox": "0 0 24 24", "children": [{ "name": "g", "attribs": {}, "children": [{ "name": "rect", "attribs": { "fill": "none", "heig...
def cipher_alphabet(message): output = "" for letter in message: if(letter == 'z'): output += 'a' else: output += chr(ord(letter) + 1) return output message = input("Enter a message to encrypt: ") encryptedMessage = cipher_alphabet(message) print("Encrypted Message...
def maxProduct(arr): maxProduct = -(float("inf")) for i in range(len(arr)-1): product = arr[i] * arr[i+1] if product > maxProduct: maxProduct = product return maxProduct
package malte0811.controlengineering.datagen.recipes; import net.minecraft.advancements.CriterionTriggerInstance; import net.minecraft.advancements.critereon.ImpossibleTrigger; import net.minecraft.data.recipes.FinishedRecipe; import net.minecraft.data.recipes.ShapedRecipeBuilder; import net.minecraft.nbt.CompoundTag;...
const request = require('request'); const generator = (data, templateName, done) => { const report_data = { template: { name: templateName }, data, options: { reports: { save: true, public: true } } } ...
package container import ( "context" "errors" "testing" "github.com/google/go-containerregistry/pkg/name" "github.com/matthogan/zc/cmd/cn/cli/options" ociremote "github.com/matthogan/zc/pkg/oci/remote" ) type RemoteMock struct{} var resolveDigestMock func(ref name.Reference, opts ...ociremote.Option) (*name.D...
#!/bin/sh # # This is an example of a script to run a "secure" TURN UDP client # with short-term credential mechanism. # # Options: # # 1) -t is absent, it means that UDP networking is used. # 5) -n 1000 means 1000 messages per single emulated client. Messages # are sent with interval of 20 milliseconds, to emulate an ...
/* * Copyright (C) 2020 The Dagger Authors. * * 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 ag...
import { GameObject } from '../../core'; import { GameUpdateArgs, Session } from '../../game'; import { MainHeading, Menu, SpriteText, TextMenuItem } from '../../gameObjects'; import { MenuInputContext } from '../../input'; import { PointsHighscoreManager } from '../../points'; import * as config from '../../config'; ...
<reponame>Decipher/druxt.js module.exports = { files: [{ path: './packages/**/dist/*.js', maxSize: '50kb', }], ci: { repoBranchBase: process.env.CI_PULL_REQUEST ? 'develop' : 'main', trackBranches: ['main', 'develop'], } }
<filename>App/app/src/main/java/com/crossover/mobiliza/app/data/remote/service/AppServices.java package com.crossover.mobiliza.app.data.remote.service; import android.content.Context; import android.util.Log; import androidx.annotation.NonNull; import androidx.core.util.Consumer; import com.crossover.mobiliza.app.Ap...
#!/usr/bin/env bash cd "$(dirname $0)/.." name=$(basename $0) base_name=${name%.*} name="${base_name}" CUDA_VISIBLE_DEVICES=0 python run.py --name $name --dataset cifar10 --arc dcgan\ --generator_adversarial_objective hinge --discriminator_adversarial_objective hinge\ --discriminator_filters 512 --generator_filters ...
arr_1 = [1, 2, 3] arr_2 = [0, 1, 5] # loop through the two arrays for i in range(len(arr_1)): diff = arr_1[i] - arr_2[i] # print the difference print("Difference between " + str(arr_1[i]) + " and " + str(arr_2[i]) + " is " + str(diff))