text
stringlengths
1
1.05M
package chylex.hee.world.feature.stronghold; import java.util.Random; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntityChest; import chylex.hee.init.BlockList; import chylex.hee.system.abstractions.BlockInfo; import chylex.hee.system.abstractions.Meta; imp...
use Shopware\Core\Framework\ShopwareHttpException; class SatispaySettingsInvalidException extends ShopwareHttpException { public function getErrorCode(): string { return 'SATISPAY_PLUGIN__SETTING_EXCEPTION'; } }
using NUnit.Framework; using PackageManagement.Cmdlets.Tests.Helpers; namespace PackageManagement.Cmdlets.Tests { [TestFixture] public class TestableUpdatePackageCmdletTests { [Test] public void TestableUpdatePackageCmdlet_Initialization_Success() { // Arrange ...
var frameModule = require("ui/frame"); var dialog = require("tns-core-modules/ui/dialogs"); var Page1ViewModel = require("./page1-view-model"); var page1ViewModel = new Page1ViewModel(); var listViewModule = require("tns-core-modules/ui/list-view"); var Observable = require("data/observable"); var ObservableArray = req...
<reponame>cuczhangyi/engineercms function LoadMxDrawX(dwgfile,cabpath,msipath) { var s, classid, Sys = {}, ua = navigator.userAgent.toLowerCase(); (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua.match(/trident\/([\d.]+)/)) ? Sys.ie9 = s[1] : (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :...
#!/usr/bin/env bash PY="/usr/bin/python3" PP="/usr/bin/pip3" DC="/usr/bin/docker" function check { echo "Checking the need command for library ..." CMD=($PY $DC $PP) for i in "${CMD[@]}" do if [ -e "${i}" ] then echo "${i} ... OK" else echo "${i} ......
# setup history options HISTFILE=~/.histfile HISTSIZE=10000 SAVEHIST=10000 setopt appendhistory setopt histignoredups setopt histignorespace
#!/bin/bash # # -D BOOST_ROOT=/opt/android/boost_1_67_0 set -e orig_path=$PATH base_dir=`pwd` build_type=release # or debug archs=(arm arm64 x86 x86_64) #archs=(x86) for arch in ${archs[@]}; do ldflags="" case ${arch} in "arm") target_host=arm-linux-androideabi ldflags="-march=armv7-a -Wl,--fix-corte...
<filename>tests/read_log.py # -*- coding: utf-8 -*- """ Created on Fri Feb 5 10:54:25 2021 @author: <NAME> """ import os import pandas as pd import readers.log_reader as lr def read_log_test(): # Event log reading column_names = {'Case ID': 'caseid', 'Activity': 'task', 'lifecycle:transi...
<reponame>gcusnieux/jooby package parser; import org.jooby.Jooby; public class MvcApp extends Jooby { { use(MvcRoutes.class); } }
from setuptools import setup long_description = "" setup( name="aiomultiprocessing", version="0.1", scripts=[], packages=['aiomultiprocessing'], author="<NAME>", author_email="<EMAIL>", long_description=long_description, description='n/a', license="Expat", url="http://pault.ag...
/* CHALLENGE Given a two strings, write an algorithm to check if they are anagrams of each other. Return true if the pass the test and false if they don't. E.g isAnagram('silent', 'listen') // should return true */ function isAnagram(stringA, stringB) { // Code goes here } module.exports = isAnagram
package narwhalfire.fucket.item; import net.minecraft.item.Item; /** * Base class for fuckets. */ public abstract class FucketBase extends Item { //todo: need to add capabilities to fuckets }
import cgi, cgitb import sendEmailController as sendEmail import ProductAccessMysql as ProductAccess import generateEmailDetails cgitb.enable() def getOrderFromDatabase(self): orderlist = self.listOfOrders self.listbox.delete(0,tk.END) for order in orderlist: self.after(0, s...
#!/bin/sh export GPU_ID=$1 echo $GPU_ID cd .. export DATASET_DIR="datasets/" export CUDA_VISIBLE_DEVICES=$GPU_ID # Activate the relevant virtual environment: python train_continual_learning_few_shot_system.py --name_of_args_json_file experiment_config/omniglot_variant_SCA_5_way_1_maml++_high-end_shot_preds_True_5_1_...
def findDuplicates_Optimized(arr): duplicates = set() seen = set() for num in arr: if num not in seen: seen.add(num) else: duplicates.add(num) return list(duplicates)
#!/bin/bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); ...
import { RouteItemConfig } from '@/types/app'; import AboutRoute from './about'; import ChartsRoute from './charts'; import TableRoute from './table'; import UserRoute from './user'; import exceptionRoute from './exception'; const Route: RouteItemConfig[] = [AboutRoute, ChartsRoute, TableRoute, UserRoute, exceptionRou...
// setup file import { configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; // configure enzyme-adapter-react for test purposes configure({ adapter: new Adapter(), });
# import datetime import datetime # define datetime object date = datetime.datetime(2020, 4, 22) # convert datetime to string date_str = date.strftime('%Y-%m-%d') # print string print('Date in string format:', date_str)
/* * Copyright 2013 Square Inc. * * 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 w...
//required modules const router = require("express").Router(); const { User, Property, Location } = require("../models"); const auth = require("../utils/auth"); //the information for all properties router.get("/", auth, async (req, res) => { try { const propertyData = await Property.findAll({ where: { ...
class BankAccount: def __init__(self, account_holder): self.account_holder = account_holder self.balance = 0 def deposit(self, amount): self.balance += amount def withdraw(self, amount): if amount <= self.balance: self.balance -= amount else: ...
/* * Copyright © 2020 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modified, * propagated...
import java.util.Arrays; public class Example { public static void main(String[] args) { // Initialize two arrays int[] array1 = {1, 2, 3, 5, 7, 8}; int[] array2 = {2, 3, 5, 6, 8, 9}; // Find the length of both the arrays int length1 = array1.length; int length2 = array2.length; // Initialize a...
/* * The MIT License (MIT) * * Copyright (c) 2015 <NAME> * * 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 restriction, including without limitation the rights to use, copy, modify, ...
#include <iostream> int main() { int count = 0; int n = 100; count = (n * (n + 1)) / 2; std::cout<<count<<std::endl; return 0; }
<reponame>netosha/ton-dex-contest<filename>lint-staged.config.js module.exports = { '*.{js,jsx,ts,tsx}': ['eslint --fix', 'eslint'], '**/*.ts?(x)': () => 'tsc --noEmit --pretty', '*.json': ['prettier --write'], '**/*.{css,scss}': [ 'stylelint "**/*.{css,scss}" --fix', 'prettier --write', 'stylelint ...
import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; interface Product { // Define the structure of a product id: number; name: string; price: number; // Add any other relevant fields } @Injectabl...
<filename>app/src/main/java/org/jf/dexlib2/analysis/OdexedFieldInstructionMapper.java /* * Copyright 2013, 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: * * * Redistrib...
<filename>server/users/settings/location/update.js // Save user location // 'use strict'; module.exports = function (N, apiPath) { N.validate(apiPath, { latitude: { type: 'number', minimum: -90, maximum: 90 }, longitude: { type: 'number', minimum: -180, maximum: 180 } }); // Check permissions // ...
/* * $Id$ * * Copyright 2002-2007 the original author or 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 req...
def is_convex_hull(nodes, hull): def orientation(p, q, r): val = (q[1] - p[1]) * (r[0] - q[0]) - (q[0] - p[0]) * (r[1] - q[1]) if val == 0: return 0 # collinear return 1 if val > 0 else 2 # clockwise or counterclockwise def is_convex(nodes, hull): n = len(nodes) ...
require File.join(File.dirname(__FILE__), 'base_kde_formula') class Akonadi < BaseKdeFormula homepage 'http://pim.kde.org/akonadi/' url 'http://download.kde.org/stable/akonadi/src/akonadi-1.13.0.tar.bz2' sha1 '9d594b5840e2e5d90057a7e5d8545004a3476bc0' depends_on 'shared-mime-info' depends_on 'mysql' depen...
const Discord = require('discord.js') const moment = require('moment') let request, response request = require('async-request') module.exports = { name: 'serverstatus', description: 'Fetches server status', aliases: ['server','serverstatus',], async execute (message, args) { try { // Store which serv...
#!/bin/bash ########################################################################### # # Copyright 2017 Samsung Electronics 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 Licens...
# -*- coding: utf-8 -*- class TagsParam(): def _validate_tags(self): if self.tags is not None: used = set() self.tags = ",".join([x.strip() for x in self.tags.split(',') if x.strip() and x not in used and (used.ad...
require File.expand_path(File.dirname(__FILE__) + "/../init.rb") require 'spec' # require 'rubygems' # require 'spec' # require File.join(File.dirname(__FILE__), 'lib')
#!/bin/bash set -e sudo add-apt-repository -y ppa:chris-lea/node.js sudo apt-get update sudo apt-get install -y riak nodejs sudo cp scripts/vagrant/app.config /etc/riak/app.config sudo service riak start mkdir -p userfiles pip install -r requirements.txt npm install export PATH=node_modules/.bin:$PATH cat >setting...
<reponame>takakd/lambda-wrk2 #!/usr/bin/env node import path = require("path"); import "source-map-support/register"; import * as cdk from "@aws-cdk/core"; import {LambdaWrk2Service} from "../lib/lambda-wrk2-service"; // Validate environment variables. if (!process.env.AWS_STACK_NAME) { throw new Error('error AWS_...
import { Injectable } from '@angular/core'; import { HalFormService } from '@hal-form-client'; import { Observable } from 'rxjs'; import { switchMap } from 'rxjs/operators'; import { SessionService } from './session.service'; @Injectable({ providedIn: 'root', }) export class AppInitializationService { constructor(...
import { randomBytes, createCipheriv, createDecipheriv } from "crypto"; import logger from "./logger"; function Crypto(algorithm = "aes-256-ctr") { /** * Criptografa uma string. * @param {String} string Texto a ser criptografado. * @returns {Object} Retorna um objeto com a key 'error'. Caso error * seja 'fal...
<filename>src/org/mocraft/NagatoKai/utils/Loc.java package org.mocraft.NagatoKai.utils; import org.mocraft.NagatoKai.Nagato; import org.sikuli.script.Location; import java.util.Random; public class Loc extends Nagato { private int width, height; private Location loc = new Location(0, 0); private String ...
<reponame>oondeo/yett export const TYPE_ATTRIBUTE = 'javascript/blocked' export const jsonStringify = value => { return JSON.stringify(value,replacer,2) } export const jsonParse = value => { return JSON.parse(value,reviver) } export const patternsObj = { blacklist: null, whitelist: null } export co...
# frozen_string_literal: true module GithubAuthentication class GitCredentialHelper def initialize(pem:, installation_id:, app_id:, storage: nil, stdin: $stdin) @pem = pem @installation_id = installation_id @app_id = app_id @storage = storage @stdin = stdin end def handle_g...
#!/usr/bin/env bash # ###################### # ARGUMENTS HANDLING # ###################### print_help () { cat <<HELP USAGE install_gpg_all.sh <options> <component options> DESCRIPTION Installs a whole GnuPG suite. All arguments which are not recognized by this script are forwarded to install_gpg_component.s...
<filename>app/src/main/java/com/yunusseker/mvvmarchitecture/ui/main/MainActivity.java package com.yunusseker.mvvmarchitecture.ui.main; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.widget.Toast; import com.yunusseker.mvvmarchitecture.R; import com.yunusseker.mvvmarchit...
package proptics.syntax import cats.Applicative import proptics.AnIso_ trait AnIsoSyntax { implicit def anIsoSequenceOps[F[_], S, T, A](iso: AnIso_[S, T, F[A], A]): AnIsoSequenceOps[F, S, T, A] = AnIsoSequenceOps(iso) } final case class AnIsoSequenceOps[F[_], S, T, A](private val iso: AnIso_[S, T, F[A], A]) exten...
#!/bin/bash # Check if in script directory path=$(pwd) primary_dir=$(basename $path) if [ "$primary_dir" != "scripts" ]; then cd scripts fi ./code_coverage.sh "keymanager" "base_layer/keymanager/"
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('brewery', '0019_auto_20170813_1114'), ] operations = [ migrations.CreateModel( name='Beer', fields=[ ('id', models.AutoField(auto_created=True, primar...
n = 10 for i in range(1, n+1): if i % 2 == 0: print(i)
The highest value is 8. list_ints = [2, 5, 3, 4, 8] highest_value = max(list_ints) print('The highest value is ' + str(highest_value) + '.')
const express = require('express'); const path = require('path'); const csv = require('csvtojson'); const csvPokemonPath = './data/pokemon.csv'; const Pokedex = require('pokedex-promise-v2'); const app = express(); // Serve static files from the React app app.use(express.static(path.join(__dirname, 'client/build')));...
let codigoUser = null let linhas = [] let colunas = [] let operacaoFuncionario = null let operacaoRelatorio = null function carregaFuncionarios(btn){ let tbody = window.document.getElementById('dadosCarregados') let dados = window.document.getElementsByClassName('dadoInfo') let obj = window.document.querySelector('...
// https://codeforces.com/contest/1020/problem/C #include <bits/stdc++.h> using namespace std; using ll=long long; using ii=tuple<ll,ll>; using vi=vector<ll>; using vii=vector<ii>; int main(){ ios::sync_with_stdio(0); cin.tie(0); ll n,m,M=10000000000000000LL; cin>>n>>m; vii a; vi b(m); for(int i=0;i<n;i++...
class X509FederationRequest: def __init__(self): self._certificate = None self._public_key = None self._intermediate_certificates = None @property def certificate(self): """ **[Required]** Gets the certificate of this X509FederationRequest. """ return...
<reponame>Lelith/adventofcode19 const utils = require('../utils'); function gravityAssistant(data) { let i = 0; let a = 0; let b = 0; let pointer = 0; let operator = data[0]; while (operator !== 99 && i < (data.length - 1)) { a = data[i + 1]; b = data[i + 2]; pointer = data[i + 3]; console....
<reponame>benwhitehair/pinkslipproperty.com.au<gh_stars>0 import React from 'react'; const CTA = () => ( <section id="about" className="bg-grey-lightest leading-normal px-8 py-16"> <div className="max-w-lg mx-auto md:mt-16 text-lg"> <h1 className="font-condensed leading-none mb-6 text-5xl uppercase"> ...
import os import shutil import fnmatch def rsync(source_dir, destination_dir, exclude_patterns=None): if not os.path.exists(destination_dir): os.makedirs(destination_dir) for root, dirs, files in os.walk(source_dir): relative_path = os.path.relpath(root, source_dir) destination_path = ...
#!/bin/bash set -e echoerr() { echo "$@" 1>&2; } # Split out host and port from DB_HOST env variable IFS=":" read -r DB_HOST_NAME DB_PORT <<< "$DB_HOST" DB_PORT=${DB_PORT:-3306} # create .env file if not there if [ ! -f ".env" ]; then if [[ "${DB_HOST}" ]]; then cat > ".env" <<EOF # Environment APP_E...
<filename>src/app/views/management/add-edit-super-users.component.ts import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { SecureAuth } from '../../helpers/secure-auth'; import { UsersService } from '../../services/users/users.service'; import { iFItSuperU...
import { connect, NatsConnection, createInbox } from "nats"; import { JetStreamManager, StreamAPI } from "nats"; async function interactWithJetstreamManager( serverConfig: any, streamName: string, streamConfig: any ): Promise<string[]> { const nc = await connect(serverConfig); // Connect to the NATS server c...
from django_filters.filterset import FilterSet from ..search.filter import SearchFilter from .models import Institution from .searchset import InstitutionSearchSet class InstitutionFilterSet(FilterSet): query = SearchFilter(searchset=InstitutionSearchSet()) class Meta: model = Institution fi...
############################################################################## # 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-647188 # # For det...
#!/bin/bash set -e readonly MY_DIR="$( cd "$( dirname "${0}" )" && pwd )" source ${MY_DIR}/env-vars.sh # - - - - - - - - - - - - - - - - - - - - - - - - - - - wait_till_up() # $1==container_name { local n=10 while [ $(( n -= 1 )) -ge 0 ] do if docker ps --filter status=running --format '{{.Names}}' | grep ...
<reponame>jibrelnetwork/jibrel-contracts-jsapi import should from 'should' import BigNumber from 'bignumber.js' import jibrelContractsApi from '../index' if (process.env.JSON_PATH == null) { throw (new Error('JSON_PATH env variable not found')) } const testParams = require(process.env.JSON_PATH) const eth = jibre...
#!/bin/bash set -x go vet ./pkg/... go vet ./cmd/...
<gh_stars>1-10 package tsn.oop.polymorphism; import java.util.Date; public class Robot { private String nameRobot; // поле имени робото public Robot() { // конструктор по-умолчанию nameRobot = "Чудо-Робот"; } public Robot(String nameRobot) { // полиморфный конструктор с дополнительным парам...
#!/bin/sh set -e set -x _modname=$(sed -n '/^\s*name\s*=/{s/.*"\(.\+\).*"/\1/p;q}' modinfo.lua) _modversion=$(sed -n '/^\s*version\s*=/{s/.*"\(.\+\).*"/\1/p;q}' modinfo.lua) _OUT="./out/${_modname// /_}-${_modversion}" _OUTSTEAM="./out/steam/${_modname// /_}" rm -fr "${_OUT}" "${_OUTSTEAM}" "${_OUT}.zip" for f in REA...
@objc protocol ___VARIABLE_sceneName___RoutingLogic { func routeToSomewhere(segue: UIStoryboardSegue?) } protocol ___VARIABLE_sceneName___DataPassing { var dataStore: ___VARIABLE_sceneName___DataStore? { get } } class ___VARIABLE_sceneName___Router: NSObject, ___VARIABLE_sceneName___RoutingLogic, ___VARIABLE_...
/* eslint-disable prettier/prettier */ import React from "react"; import TodoList from "../../components/TodoList"; export default class Active extends React.Component { constructor(props) { super(props) this.state = {} } render() { const {tasks} = this.props const activeTasks = tasks.filter(...
public static void bubbleSort(int[] arr) { int n = arr.length; for (int i = 0; i < n-1; i++) { for (int j = 0; j < n-i-1; j++) { if (arr[j] > arr[j+1]) { int temp = arr[j]; arr[j] = arr[j+1]; arr[j+1] = temp; } } ...
""" You are given a string that contains alphabetical characters (a - z, A - Z) and some other characters ($, !, etc.). For example, one input may be: 'sea!$hells3' Can you reverse only the alphabetical ones? reverseOnlyAlphabetical('sea!$hells3'); // 'sll!$ehaes3' """ import re def reverseOnlyAlphabetical(str): ...
<gh_stars>1-10 package gv package isi package functional trait BindersPackage { @inline final def pfconst[T](t: T): Any ~~> T = { case _ ⇒ t } @inline final def const[T](t: T): Any ⇒ T = _ ⇒ t @inline final def lazypf[T](t: ⇒ T): Any ~~> T = { case _ ⇒ t } @inline final def lazyconst[T](t: ⇒ T): Any ⇒ T = ...
<gh_stars>0 import React, { Component } from "react"; import InputMask from "react-input-mask"; class Contact extends React.Component { // Значения полей ввода constructor(props) { super(props); this.state = { fullName: { value: '', type: 't...
<filename>Exercises/Ex04-ObjectComposition/02-ConstructionCrew/constructionCrew.js function solve(worker) { if (worker["handsShaking"] === true){ worker["bloodAlcoholLevel"] += worker["weight"] * worker["experience"] * 0.1; worker["handsShaking"] = false; } return worker; } console.log(solv...
# https://docs.docker.com/buildx/working-with-buildx/#build-multi-platform-images [[ -z "${IMAGE:-}" ]] && IMAGE='test' [[ -z "${TAG:-}" ]] && TAG='latest' docker buildx build -t ${IMAGE}:${TAG} --platform linux/amd64 .
<gh_stars>1-10 package main import ( "fmt" "os" "os/exec" "strings" ) var version = "0.1.0" var helpMsg = `NAME: ext - A convention for command extensions USAGE: ext commands... ` func main() { defer rescue() if len(os.Args) < 2 { fmt.Println(helpMsg) os.Exit(1) } switch os.Args[1] { case "-h"...
<filename>src/scripts/reducers/index.js<gh_stars>0 import combineReducers from "react-combine-reducers"; import genres from "./genres"; import movies from "./movies"; export const reducer = combineReducers({ movies, genres }); console.log(1, reducer, genres, movies); export default reducer;
// Copyright 2017 <NAME>. All rights reserved. // // TODO(tep): Add requisite licensing preamble // Package timespan provides a broad-scaled extension to time.Duration. // // This package provides two types: // // Timespan - An extension to time.Duration // Time - an alias for time.Time (to ease use of Timespa...
/* * Copyright 2021 HM Revenue & Customs * * 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...
#!/usr/bin/env bash # # Copyright © 2015-2016 Cask Data, Inc. # # 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 ...
// Define the Platform enum to represent different platforms and their minimum versions enum Platform { case iOS(Int) case android(Int) // Add more cases for other platforms if needed } // Create the PlatformManager class class PlatformManager { var platforms: [String: Platform] = [:] // Method to...
package com.heima.common.common.storage; import lombok.Getter; import lombok.Setter; import java.util.ArrayList; import java.util.List; /** * 一个存储的实体 */ @Setter @Getter public class StorageEntity { /** * 存储类型的列表 * 一个实体可以存储多个数据列表 */ private List<StorageData> dataList = new...
from django.db import models from django.forms import ModelForm class Task(models.Model): name = models.CharField(max_length=200) description = models.TextField() class TaskForm(ModelForm): class Meta: model = Task fields = ['name', 'description'] #views.py from django.shortcuts import render, redirect, get_obj...
<filename>src/java/RingBullet.java<gh_stars>1-10 import javax.imageio.ImageIO; import java.io.File; import java.io.IOException; public class RingBullet extends Bullet{ RingBullet(int x, int y, int direction){ super(x,y,direction); this.velocity = 0.7f; this.power = 1; try{ this.bulletImage ...
<gh_stars>1-10 # Generated by Django 3.0.6 on 2020-05-20 14:58 from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ ("reporting", "0005_auto_20200520_1438"), ] operations = [ migrations.AlterField( model_name="e...
#!/bin/bash ansible-playbook -i ./inventory/prod/k8s.ini k8s-pre.yml
<gh_stars>1-10 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.facebook = void 0; var facebook = { "viewBox": "0 0 1024 1792", "children": [{ "name": "path", "attribs": { "d": "M959 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h25...
<reponame>Vladimir-Anfimov/oop-2022 #pragma once #include <string> class Carte { public: virtual std::string GetInfo() = 0; };
#!/bin/sh # This is a generated file; do not edit or check into version control. export "FLUTTER_ROOT=E:\FlutterSdk" export "FLUTTER_APPLICATION_PATH=D:\ASProjects\rammus\example" export "FLUTTER_TARGET=lib\main.dart" export "FLUTTER_BUILD_DIR=build" export "SYMROOT=${SOURCE_ROOT}/../build\ios" export "OTHER_LDFLAGS=$(...
<reponame>songningbo/jdk8source /* * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.webkit.dom; import org.w3c.dom.html.HTMLUListElement; ...
#!/bin/bash : ${REGION:=$(aws configure get region)} : ${ACCOUNT_ID:=$(aws sts get-caller-identity|jq -r ".Account")} ########################################################### ########### ########### ########################################################### logger() { LOG_TYP...
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for RHSA-2012:0308 # # Security announcement date: 2012-02-21 04:53:04 UTC # Script generation date: 2017-01-01 21:13:51 UTC # # Operating System: Red Hat 5 # Architecture: x86_64 # # Vulnerable packages fix on version: # - busybox.x86_64:1.2.0-13.el5 # - busyb...
/* * Copyright (c) 2021 - <NAME> - https://www.yupiik.com * 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 applica...
-- MySQL dump 10.13 Distrib 5.6.27, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: blog_example -- ------------------------------------------------------ -- Server version 5.6.27-0ubuntu1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHAR...
import requests from bs4 import BeautifulSoup # Make the request to the website url = 'https://example.com/search?query=best+laptops+for+gaming' page = requests.get(url) # Parse the html content soup = BeautifulSoup(page.content, 'html.parser') # Extract the search results results = soup.find_all('div', class_='sear...
var searchData= [ ['getbyte',['GetByte',['../usart3_8c.html#a05a3d555d7db61ea60d126ad67129b0b',1,'usart3.c']]] ];
#ifndef NLIB_ACCEPTOR_H #define NLIB_ACCEPTOR_H #include "../Lib/lib.h" class EventLoop; class InetAddress; class Acceptor { public: typedef std::function<void ( int sockfd, const InetAddress&)> NewConnectionCallback; Acceptor( EventLoop* loop, const InetAddress& listenAddr...
<filename>04-first-class-entity/custom-generic-controller-typeorm/src/controller/person-controller.ts<gh_stars>1-10 import { CustomGenericController } from "../custom-generic-controller"; import { User } from "../entity/users-entity"; // example usage of custom generic controller factory, // we used user entity but se...