text
stringlengths
1
1.05M
import random, string def randomPassword(length): # Generate a list of random characters gen_pass = ''.join(random.choice(string.ascii_letters + string.digits) for _ in range(length)) return gen_pass random_password = randomPassword(8) print(rando...
#!/bin/sh srcdir=`dirname $0` test -z "$srcdir" && srcdir=. PROJECT=exiv2-sharp autoreconf -v --force --install -I config -I m4 if test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... $srcdir/configure $conf_flags "$@" \ && echo Now type \`make\' to compile $PROJECT || exit 1 else ...
package com.school.infrastructure.messaging.interceptors; import lombok.extern.slf4j.Slf4j; import org.springframework.integration.config.GlobalChannelInterceptor; import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; import org.springframework.messaging.support.ChannelInte...
LPVOID FindNearestFreeMemoryBlock(LPVOID nearest) { MEMORY_BASIC_INFORMATION mbi = { 0 }; LPVOID nearestFreeBlock = NULL; for (SIZE_T addr = (SIZE_T)nearest; addr > (SIZE_T)nearest - 0x80000000; addr = (SIZE_T)mbi.BaseAddress - 1) { if (!VirtualQuery((LPCVOID)addr, &mbi, sizeof(mbi))) b...
<gh_stars>1-10 #ifndef __POWERUPBLUE_H__ #define __POWERUPBLUE_H__ #include "Weapon.h" #include "Path.h" class PowerupBlue : public Weapon { public: // Constructor (x y coordinates in the world) // Creates animation and movement data and the collider PowerupBlue(int x, int y); void Update() override; void OnCo...
#!/bin/bash cd "$(dirname "$0")/.." # python3 setup.py block_on_version | python3 setup.py block_on_version clean sdist bdist_wheel || exit python3 -m twine upload dist/*
# books.py @app.route('/search', methods=['GET']) def search(): query = request.args.get('query') results = search_books(query) return render_template('results.html', query=query, results=results) # main.py # search books function def search_books(query): # your search code goes here... return b...
<gh_stars>0 import { BasePublisher, ItemUpdatedEvent, Subjects } from '../../common'; export class ItemUpdatedPublisher extends BasePublisher<ItemUpdatedEvent> { readonly subject = Subjects.ItemUpdated; }
#!/usr/bin/env bash # die on error set -e # https://gist.github.com/cjus/1047794 echo 'Retrieving latest deploy...' url=`curl -H "Authorization: Bearer $NETLIFY_PUBLISH_KEY" https://api.netlify.com/api/v1/sites/dsgndhat.me/deploys` temp=`echo $url | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0...
<reponame>KLisabeth/beauty_salon import React, { useEffect } from "react"; import { useDispatch, useSelector } from "react-redux"; import { listServiceCategories } from "../../actions/serviceActions"; import { Navbar, Nav, NavDropdown, Badge } from "react-bootstrap"; import { signout } from "../../actions/userActions";...
require "test_helper" class Madmin::FieldTest < ActiveSupport::TestCase test "required?" do assert PostResource.attributes[:title].field.required? refute PostResource.attributes[:id].field.required? end test "searchable?" do assert UserResource.attributes[:first_name].field.searchable? refute Us...
#!/bin/sh # SUMMARY: Test the wireguard example # LABELS: set -e # Source libraries. Uncomment if needed/defined #. "${RT_LIB}" . "${RT_PROJECT_ROOT}/_lib/lib.sh" NAME=wireguard clean_up() { rm -f ${NAME}* } trap clean_up EXIT # Test code goes here moby build "${LINUXKIT_EXAMPLES_DIR}/${NAME}.yml" exit 0
package com.mycompany.smartparkingmanagement.helper; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; public class Helper { public static boolean deleteFile(String path){ boolean f = false; try{ File file = new File(path); f = file...
#!/bin/bash # ################### # flash RW_LEGACY # ################### function flash_rwlegacy() { #set working dir cd /tmp # set dev mode legacy boot flag if [ "${isChromeOS}" = true ]; then crossystem dev_boot_legacy=1 > /dev/null 2>&1 crossystem dev_boot_altfw=1 > /dev/null 2>&1 fi echo_green "\nInst...
import { HttpClient, HttpEvent, HttpHandler, HttpHeaders, HttpInterceptor, HttpRequest, HttpResponse, HTTP_INTERCEPTORS } from '@angular/common/http'; import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; import { Component, NgModule, NgModuleFactoryLoader, Type ...
#!/bin/bash EZ_PATH=/home/ubuntu/ez-segway/src N="ez-segway" if [ $# -eq 0 ]; then echo "No arguments supplied" exit 1 fi tmux new-session -d -s $N tmux new-window -t $N:100 -n 'mininet' "sudo $EZ_PATH/topo.py --method central --topo $1" sleep 1 tmux send-keys -t $N:100 'h2 ping h3' Enter OFP_PORT=$((6733)) WS...
std::vector<std::pair<char, int>> getTop5Chars(const std::string &inputStr) { std::map<char, int> charCount; for (const char &c : inputStr) { if (charCount.find(c) == charCount.end()) { charCount.insert(std::make_pair(c, 1)); } else { charCount...
#!/usr/bin/env bats # This file is used to test the installation and removal # of a Debian package. # WARNING: This testing file must be executed as root and can # dramatically change your system. It removes the 'elasticsearch' # user/group and also many directories. Do not execute this file # unless you know exactly...
function fibonacci(n) { if (n <= 1) { return n; } return fibonacci(n-1) + fibonacci(n-2); } console.log(fibonacci(10));
parallel --jobs 6 < ./results/exp_lustre/run-4/lustre_1n_6t_6d_1000f_617m_5i/jobs/jobs_n0.txt
from oeqa.oetest import oeRuntimeTest class OpenCVDNN1Test(oeRuntimeTest): def test_opencv_dnn_1(self): # Classify an image using opencv-dnn (status, output) = self.target.run('dnn-test.py /usr/share/Caffe/data/deploy.prototxt /usr/share/Caffe/models/bvlc_reference_caffenet/bvlc_reference_caffenet....
#!/bin/bash dieharder -d 9 -g 28 -S 1991483480
// No5App.cpp: implementation of the CNo5App class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "no5app.h" #include "path.h" #include "imainframe.h" #include "no5options.h" #include "ignorelist.h" #include "resource.h" #include "recentrooms.h" #inc...
const InputGroup = require('./inputGroup'); module.exports = class DashBoard { constructor(name, nbmrInputs, path, description) { this.name; this.inputGroup; this.blocks = []; this.blocksLog = []; this.path; this.description; this.saved; if (arguments.length === 1) { this.constructFromJson(name...
package IPRepository.SAXIBridgeComponent import chisel3._ class WriteCounterAct extends Module { val io = IO(new Bundle { val wvalid = Input(Bool()) val wready = Input(Bool()) val bvalid = Input(Bool()) val bready = Input(Bool()) val counter = Output(UInt(8.W)) }) val counter = RegInit(0.U(...
<reponame>Urtzik/frontend import { ActionDetail } from "@material/mwc-list"; import "@material/mwc-list/mwc-list-item"; import { mdiDotsVertical } from "@mdi/js"; import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import { customElement, property, query, state } from "lit/decorators"; import {...
CREATE TABLE customers ( name varchar(255) NOT NULL, address varchar(255) NOT NULL, phone_number varchar(255) NOT NULL ); CREATE TABLE orders ( customer_id int NOT NULL, order_date datetime NOT NULL, total_amount decimal NOT NULL );
<filename>pkg/catalog/types.go<gh_stars>0 // Copyright 2019 Hewlett Packard Enterprise Development LP // 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/...
#!/bin/bash set -ex DBPath=".ci/ci.sqlite3" ScriptPath=$( cd "$(dirname "$0")" ; pwd -P ) WarningNumber=$($ScriptPath/XCPrettyJSONExtractNumberOfWarning.swift $logFile) envman add --key WARNING_NUMBER --value "$WarningNumber" $ScriptPath/relapse "warning_relapse_$BITRISE_SCHEME" "$WarningNumber" "<" $DBPath # updat...
str = "hello world" frequency_count = Hash.new(0) str.each_char do |char| frequency_count[char] += 1 end frequency_count.each do |key, value| puts "#{key} = #{value}" end # Output: # h = 1 # e = 1 # l = 3 # o = 2 # w = 1 # r = 1 # d = 1
def generate_ahok_table(ahok): table_html = "<table>" for index, message in enumerate(ahok): table_html += "<tr>" table_html += f"<td>{index + 1}</td>" table_html += f"<td>{message['From_User']}</td>" if not message['text']: table_html += "<td>N/A</td>" else: ...
""" The aiomysql integration instruments the aiomysql library to trace MySQL queries. Enabling ~~~~~~~~ The integration is enabled automatically when using :ref:`ddtrace-run<ddtracerun>` or :func:`patch_all()<ddtrace.patch_all>`. Or use :func:`patch()<ddtrace.patch>` to manually enable the integration:: from dd...
<reponame>prabhu-raja/gulp-app /* var gulp = require('gulp'), sass = require('gulp-sass'), autoprefixer = require('gulp-autoprefixer'), cssMin = require('gulp-cssmin'), sourcemaps = require('gulp-sourcemaps'); */ var gulp = require('gulp'), plugins = require('gulp-load-plugins')(); // our CSS Task gulp.task...
<filename>lib/js/src/rpc/structs/DisplayCapabilities.js /* * Copyright (c) 2019, Livio, 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 abov...
package com.jsgygujun.code.flink.chapter05 import org.apache.flink.streaming.api.scala._ /** * * @author <EMAIL> * @since 2020/8/20 2:44 下午 */ object RollingSum { def main(args: Array[String]): Unit = { val env = StreamExecutionEnvironment.getExecutionEnvironment val inputStream: DataStream[(Int, Int,...
#!/bin/bash sudo apt update if [[ `which java` == "" ]] then sudo apt-get install openjdk-11-jdk fi if [[ `which mvn` == "" ]] then sudo apt install maven fi if [[ `which ffmpeg` == "" ]] then sudo apt install ffmpeg fi java -jar install.jar
<reponame>DeIaube/YiXing package arouter.dawn.zju.edu.module_forum.adapter; import android.content.Context; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import androidx.appcompat.widget.SwitchCompat; import android.view.LayoutInflater; import android.view.View; import android.v...
<reponame>avidas/Github-Watchdog import os from github import GitHubClient from sendmail import send_email def main(): gh_client = GitHubClient.create() owner = os.environ.get('OWNER', None) events = gh_client.get_public_user_events(owner) latest_event = GitHubClient.get_latest_push_event(events) t...
#!/bin/sh #|| goto :windows_detected { # put the whole thing in a block so as not to behave weirdly if interrupted set -e #TODO command line parameter handling for non-interactive mode. # Do we already have a repo? if [ \( -d .git \) -a \( -f easyinstall.sh \) -a \( -f src/BlockArea.cpp \) ]; then # A good enough ind...
package io.api.etherscan.core.impl; import com.google.gson.Gson; import io.api.etherscan.error.ApiException; import io.api.etherscan.error.EtherScanException; import io.api.etherscan.error.ParseException; import io.api.etherscan.error.RateLimitException; import io.api.etherscan.executor.IHttpExecutor; import io.api.et...
class AddCurrencyAndCurrencyRateToOrders < ActiveRecord::Migration def change add_column :orders, :currency, :string, default: 'USD', null: false, after: :id add_column :orders, :currency_rate, :decimal, precision: 8, scale: 4, null: false, default: 1, after: :currency end end
<reponame>knkgun/curve25519-voi<filename>internal/scalar128/scalar128.go // Copyright (c) 2021 Oasis Labs 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: // // 1. Redistributions of sourc...
import random letters = 'abcdefghijklmnopqrstuvwxyz1234567890' def randomStr(stringLength=4): """Generate a random string of fixed length """ rand = ''.join(random.choice(letters) for i in range(stringLength)) return rand print(randomStr())
#!/bin/bash cd /darkstar /darkstar/dsgame
<html> <head> <title>Dynamic Time</title> <script> function updateTime() { let timeString = new Date().toLocaleTimeString(); document.querySelector("#time-display").innerHTML = timeString; } setInterval(updateTime, 1000); </script> </head>...
class User: def __init__(self, user_id, username): self.id = user_id self.username = username def __str__(self): return f"<User {self.id}: {self.username}>" def remove_data_from_db(users): """ Simulates the process of removing user data from a database. Args: users...
const Boom = require('boom'); const bcrypt = require('bcrypt'); const mongoose = require('mongoose'); const Group = require('../models/group'); const User = - require('../models/user'); const jwt = require('jsonwebtoken'); /** * Checks if a group share token is valid * If yes, return the group if not send erro...
#include <iostream> #include <boost/timer/timer.hpp> //configuration #define ST_ASIO_SERVER_PORT 9527 #define ST_ASIO_MAX_OBJECT_NUM 102400 #define ST_ASIO_REUSE_OBJECT //use objects pool #define ST_ASIO_DELAY_CLOSE 5 //define this to avoid hooks for async call (and slightly improve efficiency) #define ST_ASIO_MSG_...
<gh_stars>0 import {ElementFinder, element, by} from 'protractor'; export class CheckoutPage{ proceedToCheckoutBtn: ElementFinder; checkOutBtn: ElementFinder; cartQuantityEle: ElementFinder; deleteBtn: ElementFinder; emptyNotification: ElementFinder; constructor() { this.proceedToChec...
#!/bin/bash GRAY='\033[1;30m'; YELLOW='\033[1;33m' BLUE='\033[0;34m'; NC='\033[0m' BOLD='\e[1m' SCRIPTPATH="$( cd "$(dirname "$0")/" >/dev/null 2>&1 ; pwd -P )" stucked=() total=0 selected_file=$1 test_files=$(find $(pwd) | grep "test.*.cpp" | grep -v ".w.$") printf "" > test_output for test in $test_files; do ...
#!/usr/bin/env sh # Setup displays layout autorandr --change # Display wallpapers nitrogen --restore # cur_layout="$(autorandr --current)" # # Properly set DPI & keyboard layout # if [ "$cur_layout" = loftie ]; then # xrandr --dpi 120 # setxkbmap -layout us -variant altgr-intl # # Display sys tray on corre...
#!/bin/bash # Copyright 2018 The Knative 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 a...
def fibo(n): if n == 0: return 0 elif n == 1: return 1 else: return fibo(n-1) + fibo(n-2) n = 7 print(fibo(n))
<reponame>yamanakahirofumi/RogueInJava<filename>src/main/java/org/hiro/things/sticktype/Drain.java package org.hiro.things.sticktype; import org.hiro.Chase; import org.hiro.Const; import org.hiro.Fight; import org.hiro.Global; import org.hiro.IOUtil; import org.hiro.Room; import org.hiro.Util; import org.hiro.characte...
#!/bin/bash go build -ldflags "-s -w" -tags "prod forceposix" ./cmd/gjpush
package render import ( "errors" "fmt" "strange-secrets.com/mantra/algebra" "strange-secrets.com/mantra/render/sampling" "strange-secrets.com/mantra/scene" "strange-secrets.com/mantra/scene/shading" "time" ) const ( TestImageWidth = 1024 * 2 // 640 TestImageHeight = 1024 // 480 ) type Renderer struct { ...
<filename>src/model/SizingPeriod.cpp /*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in sourc...
def dic_to_query(dictionary): keys = [] values = [] for key, value in dictionary.items(): keys.append(key) values.append(value) return keys, values
<reponame>julisevla3/Checkpoint2_To-Do<gh_stars>0 //Capturando as informações let campoEmailLogin = document.getElementById("inputEmail"); let campoSenhaLogin = document.getElementById("inputPassword"); let botaoAcessar = document.getElementById("botaoAcessar"); let campoEmailLoginNormalizado; let campoSenhaLoginNorma...
#!/bin/bash echo "The current date is $(date '+%d-%m-%Y')"
package kr.co.gardener.util; import java.util.ArrayList; import java.util.List; import java.util.Properties; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; pub...
<filename>powershell-test-agent/src/test/java/jetbrains/buildServer/powershell/agent/CommandLineProviderTest.java /* * Copyright 2000-2022 JetBrains 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 ...
/* * 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 writing, software * distribut...
// https://open.kattis.com/problems/provincesandgold #include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); int g,s,c,t; cin>>g>>s>>c; t=g*3+s*2+c; if(t>=8)cout<<"Province or "; else if(t>=5)cout<<"Duchy or "; else if(t>=2)cout<<"Estate or "; if(t>=6)cout<<"Gold\...
<filename>src/ts-sliding-window.ts import * as moment from 'moment'; import BigNumber from 'bignumber.js'; export type TOptions = { tsProp?: string | 'timestamp', propsForId: string[], //Property Names used to create unique Id for sum targetProp: string, windowSize: number, refleshRate: number, } ...
#!/usr/bin/env bash set -u total_tests="$(cat test/test-* | grep -c "run_test")" echo "1..$total_tests" pushd test > /dev/null || exit 1 test_error="" for test_case in test-* ; do bash "$(basename "$test_case")" || test_error=1 done popd > /dev/null || true if [ -n "$test_error" ] ; then echo "# there a...
import os # Initialize an empty dictionary to store the registered platforms and their corresponding classes registry = {} class PlatformRegistry: def __call__(self, clazz): # Register the platform and its corresponding class in the registry dictionary registry[self.platform] = clazz def plat...
alias fs='foreman start' alias fdev='foreman start -f Procfile-dev'
#!/usr/bin/bash -l #SBATCH -p intel -N 1 -n 4 --mem 32gb --out logs/make_gvcf_subsample.%a.log --time 72:00:00 -a 4 module load htslib module load samtools module load picard module load gatk/4 module load bcftools MEM=32g SAMPFILE=samples.csv if [ -f config.txt ]; then source config.txt fi DICT=$(echo $REFGENO...
#!/bin/sh # Workaround to make sure dependency service is up and running sleep 60 branch=${NOZZLE_BRANCH:-master} # Build nozzle go get -d github.com/cloudfoundry-community/splunk-firehose-nozzle cd /go/src/github.com/cloudfoundry-community/splunk-firehose-nozzle git checkout ${branch} make build # Run proc_monito...
#!/usr/bin/env bash # download and install the latest Node Version Manager echo -e "\e[1;34mInstalling NVM...\e[0m" git clone https://github.com/creationix/nvm /home/vagrant/.nvm # append NVM script to /home/vagrant/.profile SOURCE_STR="\n[[ -s /home/vagrant/.nvm/nvm.sh ]] && . /home/vagrant/.nvm/nvm.sh # Add NVM to ...
// // YJNetworkManager.h // WYNews // // Created by Annabelle on 16/6/15. // Copyright © 2016年 annabelle. All rights reserved. // #import <AFNetworking.h> /// 网络管理器 - 统一管理所有网络请求 @interface YJNetworkManager : AFHTTPSessionManager // 建立全局访问点 + (instancetype)sharedManager; // 接口方法 - (void)newsListWithCategory:(NS...
<reponame>IgnacioZentenoSmith/proyectoFacturacion document.getElementById('inputPeriodo').addEventListener("change", getCurrentDate, false); function getCurrentDate() { //Saca el valor del formulario de la fecha let formAction = document.getElementById('inputPeriodoForm').action; //Elimina su fecha inicial ...
#!/usr/bin/env bash set -e "$(dirname "$0")/npm_install.sh" docker-langserver dockerfile-language-server-nodejs
#!/bin/bash # Copyright (c) 2014 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. EXECUTABLES="toybox" # Toybox wants to build in its current directory. BUILD_DIR=${SRC_DIR} NACLPORTS_CPPFLAGS+=" -DBYTE_ORDER=LITTLE_...
import traceback import tornado.gen try: print(response.body) # Corrected variable name from 'he.response.body' to 'response.body' except Exception as e: traceback.print_exc() # Moved the traceback print inside the except block to handle exceptions # Handle the exception or log the error as per the appli...
#!/bin/bash SOURCE_ARTI_CREDS="admin:password" TARGET_ARTI_CREDS="admin:password" SOURCE_ARTI_URL="http://<SOURCE>/artifactory" TARGET_ARTI_URL="http://<TARGET>/artifactory" # PUT will fail if the repository already exists. It will also fail for virtual creation if it references a virtual that has not been created yet....
### grep if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi alias grep="grep --color=always" # alias rgrep="grep --line-number --color=always --recursive --exclude-dir...
<filename>kernel-d-socket/socket-business-websocket/src/main/java/cn/stylefeng/roses/kernel/socket/business/websocket/server/WebSocketServer.java package cn.stylefeng.roses.kernel.socket.business.websocket.server; import cn.hutool.core.util.ObjectUtil; import cn.stylefeng.roses.kernel.jwt.api.context.JwtContext; impor...
#pragma once extern vector<string*> errors; void yyerror(const char*); void sem_error(int,const char*);
<gh_stars>10-100 // // Created by ooooo on 2020/1/14. // #ifndef CPP_0748__SOLUTION1_H_ #define CPP_0748__SOLUTION1_H_ #include <iostream> #include <vector> #include <unordered_map> using namespace std; class Solution { public: bool check(string word, unordered_map<char, int> &m) { unordered_map<char, int> w...
<filename>offer/src/main/java/com/java/study/algorithm/zuo/fsenior/class01/Code02_LeastOperatorsToExpressNumber.java package com.java.study.algorithm.zuo.fsenior.class01; public class Code02_LeastOperatorsToExpressNumber{ }
<reponame>coder-blog/satellite package com.satellite.agent; import com.alibaba.dubbo.container.Main; import java.io.IOException; /** * Unit test for simple App. */ public class AgentDubboStartup { public static void main(String[] args) throws IOException { // ClassPathXmlApplicationContext context = new...
<filename>app/src/main/java/com/cjy/flb/bean/BindingID.java<gh_stars>0 package com.cjy.flb.bean; /** * Created by Administrator on 2015/12/7 0007. */ public class BindingID { private String url; private String name; private String MedicId; public BindingID() { } public BindingID(String url,...
import sys # get user input user_input = input("Please enter something: ") # print the user input print(user_input)
/* * C compiler file arm/coff.c * Copyright (C) Codemist Ltd, 1988 * Copyright (C) Advanced Risc Machines Limited, 1993 * 'COFF' (system V unix) output routines * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ Codemist 13j * Checkin $Date$ * Revising $Author$ */ /* AM: Feb 90: add AUX items for ...
dropdb quizzing createdb quizzing -U postgres psql -U postgres -d quizzing -f /home/wbond/Documents/Projects/quizzing/datasource/src/main/sql/baseline.sql
SCRIPT_NAME=tic4xcoff OUTPUT_FORMAT="coff2-tic4x" OUTPUT_ARCH="tic3x" ARCH=tic3x TEMPLATE_NAME=ticoff OUTPUT_FORMAT_TEMPLATE=tic4x ONCHIP=yes
def start_vowel(input_string): vowel_list = ["a", "e", "i", "o", "u"] if input_string[0] in vowel_list: print("String starts with a vowel") else: print("String does not start with a vowel") start_vowel("abc")
import requests from bs4 import BeautifulSoup URL = "https://www.example.com" # Getting the webpage, creating a Response object. resp = requests.get(URL) # Extracting the source code of the page. data = resp.text # Passing the source code to BeautifulSoup to create a BeautifulSoup object for it. soup = BeautifulSou...
/* Copyright (c) 2005-2021 Intel Corporation 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 la...
<reponame>songlijiang/songlijiang.github.io<gh_stars>1-10 'use strict'; var sinon = require('sinon'); var expect = require('chai').expect; describe('Console list', function() { var Hexo = require('../../../lib/hexo'); var hexo = new Hexo(__dirname); var Post = hexo.model('Post'); var listPosts = require('../...
import { Component } from '@angular/core'; @Component({ selector: 'books-search', template: ` <h2>Books Search</h2> <input type="text" [(ngModel)]="searchTerm"> <button (click)="search()">Search</button> <ul *ngIf="results.length > 0"> <li *ngFor="let result of results">{{ result }}</li> ...
#!/bin/tcsh #!/bin/tcsh #PBS -A NTDD0005 #PBS -N testb #PBS -q regular #PBS -l walltime=12:00:00 #PBS -j oe #PBS -M apinard@ucar.edu #PBS -l select=1:ncpus=1 module load conda conda activate ldcpy_env s...
#!/bin/bash oc new-app --name todoapp -i nodejs:6 \ --context-dir todo-single --build-env npm_config_registry=\ http://nexus-common.apps.cluster.domain.example.com/repository/nodejs \ -e DATABASE_NAME=tododb \ -e DATABASE_USER=todoapp \ -e DATABASE_PASSWORD=redhat \ -e DATABASE_SVC=tododb \ ...
#!/bin/bash ./fizzbuzz.pl 1 100 > ../../src/test/resources/jp/vmi/indylisp/fizzbuzz-result.txt
<filename>token_manager.py import os CLIENT_ID = os.getenv('POL_ID', '') CLIENT_SECRET = os.getenv('POL_SECRET', '') ACCESS_TOKEN = os.getenv('ACCESS_TOKEN', 'NOT SPECIFIED') class FakeCursor: def execute(self, cmd): # storage of org,refresh_token,access_token sets not implemented yet raise Exception('Need...
<gh_stars>0 package weixin.liuliangbao.jsonbean.FlowCard; /** * Created by aa on 2015/12/21. */ public class extractionCodeBean implements java.io.Serializable { private java.lang.String id; private java.lang.String code; public String getId() { return id; } public void setId(String i...
#include"WeldedBeam.h" #define _USE_MATH_DEFINES #include<math.h> individual WB::WeldedBeam(individual ind) { //h=0, b=1, l=2, t=3 double h = ind.var[0], b = ind.var[1], l = ind.var[2], t = ind.var[3]; double tau_, delta_, pc_; double tau1_ = 6000.0 / sqrt(2) / h / l; double tau2_ = (6000.0 * (14.0 + 0.5*l)*sqrt...
case x in abc${a}) ;; esac