text stringlengths 1 1.05M |
|---|
// A library/utility for generating GIF files
// Uses <NAME>'s omggif library
// and <NAME>'s NeuQuant quantizer (JS 0.3 version with many fixes)
//
// @author sole / http://soledadpenades.com
function Animated_GIF(options) {
'use strict';
var width = 160, height = 120, canvas = null, ctx = null, repeat = 0, d... |
"""Codewars: Sum of Digits / Digital Root
6 kyu
URL: https://www.codewars.com/kata/541c8630095125aba6000c00/
In this kata, you must create a digital root function.
A digital root is the recursive sum of all the digits in a number.
Given n, take the sum of the digits of n. If that value has more than one digit,
contin... |
<!DOCTYPE html>
<html>
<head>
<title>Navigation bar</title>
</head>
<body>
<nav>
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
</body>
</html> |
#!/bin/bash
if [ -z $1 ]
then
echo "Usage: build-ssl-credential /home/workspace/ssl_keys"
exit 1
fi
export EASY_RSA="`pwd`"
export KEY_CONFIG=`/usr/share/easy-rsa/whichopensslcnf /usr/share/easy-rsa/`
export OPENSSL="openssl"
export PKCS11TOOL="pkcs11-tool"
export GREP="grep"
export KEY_DIR="$EASY_RSA/keys"
e... |
public interface IAraObject
{
// Define the necessary methods and properties for interacting with an AraObject
}
public class AraObjectInstance
{
private string _InstanceID;
private IAraObject _araObject;
public AraObjectInstance(string vInstanceID)
{
_InstanceID = vInstanceID;
}
... |
<reponame>aurelijusb/webcam-games
#include <opencv/highgui.h>
#include "WebCamVJ.h"
#include "../Tracker/TrackerMotion.h"
#define INTESITY(x, y) { setIntensivity(x, y, getIntensity(x, y)); }
#define MAX_INTESITY(x, y) { setMaxIntensivity(x, y, getIntensity(x, y)); }
WebCamVJ::WebCamVJ(int webCamDevice): TrackerMotion... |
#!/bin/sh
exec 2>&1
#
# qmail-send and friends
#
QMAIL="%QMAIL%"
if [ -e $QMAIL/control/defaultdelivery ]; then
ALIASEMPTY=`cat $QMAIL/control/defaultdelivery 2> /dev/null`
else
ALIASEMPTY=`cat $QMAIL/control/aliasempty 2> /dev/null`
fi
ALIASEMPTY=${ALIASEMPTY:="./Maildir/"}
PATH="$QMAIL/bin:$PATH"
# limit to preve... |
# Compiler
cc65 -Or -v -t cx16 cballs.c
# Assembler
ca65 -v -t cx16 cballs.s
ca65 -v -t cx16 text.s
# Linker
ld65 -v -o cballs.prg \
-t cx16 \
-Ln cballs.lbl \
-m cballs.map \
cballs.o text.o \
c64.lib
# Emulator
x16emu -run -prg cballs.prg &
|
<filename>main.js<gh_stars>0
const btn = document.getElementById('button');
const rainbow = ['red', 'orange', 'yellow', 'green', 'blue', 'rebeccapurple', 'violet', 'pink', 'aqua', 'beige', 'crimson', 'cyan', 'gold', 'greenyellow', 'khaki', 'lightgreen', 'paleturquoise'];
function change() {
document.body.style.back... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ic_grain_twotone = void 0;
var ic_grain_twotone = {
"viewBox": "0 0 24 24",
"children": [{
"name": "path",
"attribs": {
"d": "M0 0h24v24H0V0z",
"fill": "none"
},
"children": []
}, {
"name": "pat... |
<gh_stars>10-100
export default class {
static initialize({people, adults, children}) {
Object.assign(people, {
entity: 'people',
types() {
return {
Adult: adults,
Child: children,
};
},
fields() {
return {
id: this.attr(null),
... |
#!/bin/sh
set -e
# Prep test environment
echo "#############################"
echo "# #"
echo "# PREPPING TEST ENVIRONMENT #"
echo "# #"
echo "#############################"
cd /app
pwd
yarn global add grunt-cli
gem install sass
gem update --system
gem install sc... |
<reponame>mr-xhz/summer-mis<gh_stars>0
package cn.cerc.jbean.form;
public interface IClient {
public void setForm(IForm form);
public IForm getForm();
public boolean isPhone();
// 返回设备Id
public String getId();
// 返回设备型号
public String getDevice();
// 返回设备语言
public String getLan... |
# 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"); you may not use t... |
import logging
import smtplib
from email.message import EmailMessage
class WindowLogHandler(logging.Handler):
def __init__(self):
super().__init__()
def emit(self, record):
if record.name == 'Window':
if record.levelno == logging.INFO:
print(f"Window log message (IN... |
#
# Command Line / Terminal Package Installer
# Author: Asura
# Created: 2021-06-06 2110H, Asura
# Modified:
# - 2021-06-06 2110H, Asura
# - 2021-06-06 2313H, Asura
# - 2021-06-06 2320H, Asura
# - 2021-06-07 0011H, Asura
# - 2021-06-10 1026H, Asura
# - 2021-06-15 0055H, Asura
# - 2021-06-26 1614H, Asura
# Features:
... |
#!/bin/sh
python3 /code/service.py &
/prototype -d -cluster default -service service -tags=env:development -prototype-url http://prototype:10000 |
var express = require('express');
var router = express.Router();
const fetch = require('node-fetch');
router.get('/*', function(req, res, next) {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
fetch('https://mobile-api.innovate.fresnostate.edu/channel')
.then((response)=>response.json())
.then((responseJSON)=... |
<gh_stars>0
var searchData=
[
['list_2ehpp_0',['list.hpp',['../list_8hpp.html',1,'']]]
];
|
#!/usr/bin/env bats
load helpers
function setup() {
teardown_running_container_inroot test_box1 "$HELLO_BUNDLE"
teardown_running_container_inroot test_box2 "$HELLO_BUNDLE"
teardown_running_container_inroot test_box3 "$HELLO_BUNDLE"
teardown_busybox
setup_busybox
}
function teardown() {
teardown_running_c... |
# views.py
from django.shortcuts import render
def team(request):
team_sisi = 'hello mates!'
return render(request, 'team.html', {'team_sisi': team_sisi}) |
<reponame>ch1huizong/learning
weekly_sales = itertools.imap(sum, windows(daily_sales, 7))
|
#!/bin/bash
ver="5.00"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # get cur dir of this script
progName=$(basename -- "$0")
cd $DIR
echo "INFO : $progName $ver written by Claude Pageau"
# makedailymovie.sh version 2.91 - written by Claude Pageau.
# To install/update avconv execute the following command... |
#!/usr/bin/env bats
load 'test_helper'
fixtures 'exist'
setup () {
touch ${TEST_FIXTURE_ROOT}/dir/file
ln -s ${TEST_FIXTURE_ROOT}/dir/file ${TEST_FIXTURE_ROOT}/dir/link
}
teardown () {
rm -f ${TEST_FIXTURE_ROOT}/dir/link ${TEST_FIXTURE_ROOT}/dir/file
}
# Correctness
@test 'assert_link_exists() <file>: retu... |
<reponame>beatrizmd/Aula-29-04
var tabela = document.querySelector("table")
// var linhas = document.querySelectorAll("tr")
// console.log(linhas[1])
var linhas = tabela.querySelectorAll("tr")
for (var i = 1; i < linhas.length; i++) {
linhas[i].addEventListener("dblclick",function(event) {
event.target.par... |
package database
import (
"context"
"log"
"os"
"github.com/go-pg/pg/v10"
)
// DB postgres db client
var DB *pg.DB
// Connect creates a connection to postgres
func Connect() error {
opt, err := pg.ParseURL(os.Getenv("DB_URI_HEROKU"))
if err != nil {
log.Printf("Error at Connect db.go : %v", err)
return er... |
def caesar_cipher_encrypt(message, shift):
encoded_message = ''
for c in message:
if c.isalpha():
num = ord(c)
num += shift
if c.isupper():
if num > ord('Z'):
num -= 26
elif num < ord('A'):
num +=... |
import { Graph } from '../../../../../Class/Graph'
import { Config } from '../../../../../Class/Unit/Config'
import { PO } from '../../../../../interface/PO'
import { Primitive } from '../../../../../Primitive'
import { GraphSpec } from '../../../../../types'
export interface I {
spec: GraphSpec
}
export interface ... |
<reponame>jamacanbacn/splits-io
require 'rails_helper'
RSpec.describe Api::V4::Races::EntriesController do
describe '#show' do
let(:user) { FactoryBot.create(:user) }
let(:race) { FactoryBot.create(:race) }
let(:entry) { FactoryBot.create(:entry, race: race, runner: user, creator: user) }
context ... |
import React from 'react';
import { Modal, Card, Descriptions, message } from 'antd';
import { ShopTableListItem } from '../../data';
interface ClearPointModalProps {
visible: boolean;
onCancel: () => void;
onOk: (id: string, val: number) => void;
confirmLoading: boolean;
shopData: ShopTableListItem | null;
... |
import { parseText } from 'markup'
import { cleanText, specialCharacters } from 'utils/text'
import { parseByline } from './byline.js'
const childTypes = [
// child types in story redux state
'images',
'videos',
'pullquotes',
'asides',
'inline_html_blocks',
]
const clean = R.when(
R.is(String),
R.pipe... |
import numpy as np
data = np.random.randn(100,5)
labels = np.random.choice([0,1],100) |
################################################################################
# Extension library for ../build-rpm-specs.sh
#
# Preconditions:
# * Declared before calling this code: confFileSettings, _globalSettingsRules
#
# Copyright 2001, 2018 William W. Kimball, Jr. MBA MSIS
#####################################... |
# platform = Red Hat Virtualization 4,multi_platform_ol,multi_platform_rhel,multi_platform_sle
find /root -xdev -type f -name ".rhosts" -exec rm -f {} \;
find /home -maxdepth 2 -xdev -type f -name ".rhosts" -exec rm -f {} \;
rm -f /etc/hosts.equiv
|
#!/bin/sh
# Copyright (c) 2015, Plume Design 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 source code must retain the above copyright
# notice, this list o... |
package git
import (
"bytes"
"fmt"
"io"
"os/exec"
"strconv"
"strings"
"time"
)
const Z40 = "0000000000000000000000000000000000000000"
func RevList(dir, old, new string) ([]string, error) {
cmd := exec.Command("git", "rev-list", fmt.Sprintf("%s..%s", old, new))
cmd.Dir = dir
cmd.Stdout = &bytes.Buffer{}
... |
<filename>ProjetOeuvreSpingBoot/src/main/java/com/epul/oeuvre/persistence/repositories/RepositoryEntityReservation.java
package com.epul.oeuvre.persistence.repositories;
import com.epul.oeuvre.domains.*;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modify... |
echo "@@@ LNT VirtualEnv @@@"
/usr/local/bin/virtualenv --python=python3 venv
set +u
. venv/bin/activate
set -u
echo "@@@@@@@"
|
package fr.syncrase.ecosyst.service.criteria;
import java.io.Serializable;
import java.util.Objects;
import tech.jhipster.service.Criteria;
import tech.jhipster.service.filter.BooleanFilter;
import tech.jhipster.service.filter.DoubleFilter;
import tech.jhipster.service.filter.Filter;
import tech.jhipster.service.filte... |
#!/bin/bash
scriptdir=`dirname "$BASH_SOURCE"`
if [[ -z "$SQLITE_NET_YEAR" ]]; then
SQLITE_NET_YEAR=2013
fi
pushd "$scriptdir/.."
mono Externals/Eagle/bin/netFramework40/EagleShell.exe -preInitialize "set root_path {$scriptdir/..}; set test_configuration Debug; set test_year {$SQLITE_NET_YEAR}; set build_directory... |
List<String> list = Arrays.asList("Apple", "Mango", "Banana");
for (String str : list) {
System.out.println("Length: " + str.length());
} |
package io.opensphere.mantle.data.impl;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import io.opensphere.mantle.data.ColumnTypeDetector;
import io.opensphere.mantle.data.MetaDataInfo;
import io.opensphere.mantle.data.SpecialColumnDetector;
import io.opensphere.mantle.data.SpecialK... |
<filename>reporter/logger_test.go
package reporter
import (
"bytes"
"log"
"testing"
"context"
"github.com/pkg/errors"
"github.com/remind101/pkg/logger"
)
func TestLogReporter(t *testing.T) {
tests := []struct {
err error
out string
}{
{errBoom, "request_id=1234 status=error error=\"boom\" line=0 file... |
const mongoose = require("mongoose");
const Event = require("../models/event");
const { check, validationResult } = require("express-validator");
const mongodb = require("mongodb");
const ObjectId = mongodb.ObjectID;
module.exports = {
showEditEvent: showEditEvent,
showAllEvents: showAllEvents,
// postEvent: p... |
#! /usr/bin/env bash
set -e
TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
source "${TOP_DIR}/scripts/apollo.bashrc"
source "${TOP_DIR}/scripts/apollo_base.sh"
BAZEL_OUT="${TOP_DIR}/bazel-out" # $(bazel info output_path)
COVERAGE_HTML="${TOP_DIR}/.cache/coverage"
COVERAGE_DAT="${BAZEL_OUT}/_coverage/_c... |
import tensorflow as tf
import pandas as pd
# Load the dataset into a DataFrame
df = pd.read_csv('tweet_sentiment.csv')
# Extract the data in feature and target vectors
X = df['tweet']
y = df['sentiment']
# Define a CountVectorizer for converting the text into feature vectors
cv = CountVectorizer()
# Extract featur... |
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"/..
set -euxo pipefail
# https://github.com/asdf-vm/asdf-nodejs#install
asdf plugin-add nodejs
~/.asdf/plugins/nodejs/bin/import-release-team-keyring
asdf plugin-add just https://github.com/ggilmore/asdf-just.git
asdf plugin-add ds-to-dhall https://github.com/s... |
#!/bin/bash
#
# Yet Another UserAgent Analyzer
# Copyright (C) 2013-2019 Niels Basjes
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unle... |
#!/bin/bash
mode="on-the-go"
# backup
echo "Creating backup"
sudo cp /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf ./backup/
sudo cp ~/.xinitrc ./backup/
# enable
echo "Enabling $mode"
sudo cp ./$mode/10-nvidia-drm-outputclass.conf /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
sudo cp ./$mode... |
import { CreateElement } from 'vue';
import { SetupContext } from '@vue/composition-api';
import {
TableRowData, PrimaryTableCellParams, TdPrimaryTableProps, PrimaryTableCol,
} from '../type';
import EditableCell from '../editable-cell';
export default function useEditableCell(props: TdPrimaryTableProps, context: Se... |
<reponame>aphearin/cosmojax
from setuptools import setup, find_packages
PACKAGENAME = "cosmojax"
VERSION = "0.0.dev"
setup(
name=PACKAGENAME,
version=VERSION,
author="<NAME>",
author_email="<EMAIL>",
description="Cosmology in JAX",
long_description="Cosmology in JAX",
install_requires=["... |
h1 {
font-family: 'Roboto', sans-serif;
font-size: 14px;
}
p {
font-family: 'Open Sans', sans-serif;
font-size: 14px;
} |
<reponame>xandjiji/Wordpress-Gatsby-prototype
import React from 'react';
import PostContent from './PostContent.styled';
import MaterialContainer from '../../common/MaterialContainer';
export default ({ title, content }) => {
return (
<PostContent>
<MaterialContainer container={true} labelTag=... |
import React, { useState } from 'react'
import { makeStyles } from '@material-ui/core/styles'
import PropTypes from 'prop-types'
import TextField from '@material-ui/core/TextField'
import Grid from '@material-ui/core/Grid'
import Button from '@material-ui/core/Button'
import Typography from '@material-ui/core/Typograph... |
<filename>src/shared/modules/ContextFilter/ContextFilterHandler.ts
import { cloneDeep } from "lodash";
import ModuleTable from "../ModuleTable";
import ContextFilterVO from "./vos/ContextFilterVO";
import ContextQueryFieldVO from "./vos/ContextQueryFieldVO";
import ContextQueryVO, { query } from "./vos/ContextQueryVO";... |
export default {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 20,
height: 20,
},
content: [
{
elem: 'path',
attrs: {
d:
'M24 20l-1.41 1.41L26.17 25H10a4 4 0 0 1 0-8h12a6 6 0 0 0 0-12H5.83l3.58-3.59L8 0 2 6l6 6 1.41-1.41... |
def containsSubstring(str, sub):
for i in range(len(str)-len(sub)+1):
j = 0
while j < len(sub) and sub[j] == str[i+j]:
j += 1
if j == len(sub):
return True
return False |
#include QMK_KEYBOARD_H
#ifdef AUDIO_ENABLE
#include "muse.h"
#endif
#include "enums.h"
#include "eeprom.h"
#include "keymap_canadian_multilingual.h"
#include "layer_with_mod_tap.h"
#define KC_MAC_UNDO LGUI(KC_Z)
#define KC_MAC_CUT LGUI(KC_X)
#define KC_MAC_COPY LGUI(KC_C)
#define KC_MAC_PASTE LGUI(KC_V)
#define KC_P... |
<reponame>khoadaxne15/LastProject<filename>src/redux/reducers/filterReducer.ts
import { AnyAction } from "typescript-fsa";
import {
applyFilter,
clearRecentSearch,
removeSelectedRecent,
resetFilter,
setBrandFilter,
setMaxPriceFilter,
setMinPriceFilter,
setTextFilter,
} from "../actions";
export interf... |
#!/bin/bash
curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER |
import os from 'os';
import buildAssets from './lib/builders/build-assets.js';
import Console from './lib/utils/console.js';
import findProjectRoot from './lib/utils/find-project-root.js';
import appImportTransformation from './lib/transpilers/app-import-transformation.js';
import parseCLIArguments from './lib/utils/pa... |
#!/bin/sh
ICON="📅 "
printf "$ICON%s" "$(date '+%b %d, %R')"
|
An algorithm for aggregating multiple conversation topics in a chatbot could involve using natural language processing techniques to identify the topics of conversation in each message sent by the user. The chatbot can then use a hierarchical clustering algorithm to group similar topics together. This will allow the ch... |
def quick_sort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quick_sort(left) + middle + quick_sort(right)
unsorted_list = [100, 200, 15, 25, 3, 2, 9]
print(quick_sort(uns... |
<reponame>xfyre/tapestry-5
// Copyright 2007-2013 The Apache Software Foundation
//
// 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
//
// Unl... |
<filename>src/commands/util/wiki.js<gh_stars>0
const wiki = require("wikijs").default();
const BaseEmbed = require("../../modules/BaseEmbed");
module.exports = {
name: "wiki",
aliases: ["wikipediasearch", "wikipedia"],
category: "util",
description: "Search something up on Wikipedia",
requiredArgs: ["query"],... |
/*
* Merlin
*
* API Guide for accessing Merlin's model management, deployment, and serving functionalities
*
* API version: 0.14.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
type EndpointStatus string
// List of EndpointStatus
const (
PENDING End... |
#!/bin/bash
home_dir=""
data_dir=$home_dir""
results_path=$home_dir""
pre_trained_model_name=$results_path""
cache_dir=""
echo "FEW-SHOT LEARNING ON ALL LANGUAGES JOINTLY"
for SEED in 42 44 40 163
do
for LANG in ar bn fi id ru sw te
do
python main_trans_ada_no_acc.py --train-langs en \
... |
#
#
#
export PROJECT_NAME="MulleObjCOSFoundation"
#
#
#
export PROJECT_IDENTIFIER="MulleObjCOSFoundation"
#
#
#
export PROJECT_DOWNCASE_IDENTIFIER="mulle_objc_os_foundation"
#
#
#
export PROJECT_UPCASE_IDENTIFIER="MULLE_OBJC_OS_FOUNDATION"
#
#
#
export PROJECT_TYPE="none"
#
#
#
export PROJECT_LANGUAGE="c"
#... |
package main;
/**
* @author <NAME>
*
*/
public class TestCircle2D
{
public static void main(String[] args)
{
Circle2D c1 = new Circle2D(2, 2, 5.5);
System.out.println("The area of this circle is " + c1.getArea() + ".");
System.out.println("The perimeter of this circle is " + c1.getPerimeter() + ".");
... |
#include <iostream>
class Node
{
public:
int data;
Node* left;
Node* right;
Node(int data): data(data), left(nullptr), right() { }
};
class BinarySearchTree
{
public:
Node* root;
BinarySearchTree(): root(nullptr) { }
void insert(int data)
{
if (root == nullptr)
... |
import time
import numpy as np
from scipy import stats
from pcit.IndependenceTest import PCIT
np.random.seed(1)
# with open('C:/Users/Sam/Dropbox/UniversityStuff/UCL/Project/Data/Wine.csv', 'rt') as f:
# Wine = np.loadtxt(f, delimiter=";")
# Download data set from https://archive.ics.uci.edu/ml/datasets/wine and... |
function extractComponentNames(filePaths: string[]): string[] {
const componentNames: string[] = [];
filePaths.forEach(filePath => {
const componentName = filePath.split('/').pop()?.replace('.component', '');
if (componentName) {
componentNames.push(componentName);
}
});
return Array.from(ne... |
#!/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"); y... |
/**
* Copyright 2021 Huawei Technologies 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... |
class UsersEstateIdNonUniqueIndex < ActiveRecord::Migration[4.2]
def change
remove_index :users, :estate_id
add_index :users, :estate_id
end
end
|
<reponame>hgySandy/springboot-flowable
package com.home.demo.bean;
import lombok.Data;
@Data
public class Msg {
private String title;
private String content;
private String etraInfo;
public Msg(String title, String content, String etraInfo) {
super();
this.title = title;
thi... |
#!/bin/bash
# MySQL Exporter Tool
# > vadb shortcut
#
# Package: net.ikigai.ops.mysql.tools
# Author: Narcis M PAP, Aug 2018
/bin/bash /tools/selection.sh
|
#!/usr/bin/env bash
# ----------------------------------------------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2018-2019 Ralph-Gordon Paul. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of thi... |
#!/bin/bash
#SBATCH --account=def-dkulic
#SBATCH --mem=8000M # memory per node
#SBATCH --time=24:00:00 # time (DD-HH:MM)
#SBATCH --output=/project/6001934/lingheng/Double_DDPG_Job_output/continuous_MountainCarContinuous-v0_doule_ddpg_softcopy_epsilon_greedy_seed4_run3_%N-%j.out # %N for node name,... |
#!/bin/sh
# (c) Copyright 2009 - 2010 Xilinx, Inc. All rights reserved.
#
# This file contains confidential and proprietary information
# of Xilinx, Inc. and is protected under U.S. and
# international copyright and other intellectual property
# laws.
#
# DISCLAIMER
# This disclaimer is not a license and does not gra... |
#!/bin/bash
source $HOME/qa.sh
cd $BLDWRAP_TOP/gpMgmt
make -f Makefile.behave behave $1 TAR=tar 2>&1
|
<reponame>smagill/opensphere-desktop<gh_stars>10-100
package com.bitsys.common.http.auth;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.Credentials;
import org.apache.http.client.CredentialsProvider;
/**
* Implementations of this interface have the ability to specifically clear
* entries from t... |
<reponame>SynthSys/BioDare2-BACK<gh_stars>0
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ed.biodare2.backend.features.tsdata.dataimport;
import ed.biodare2.backend.... |
#!/bin/bash
# Copyright (c) 2021 SUSE LLC
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 3 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WAR... |
#!/usr/bin/env bash
# This file is part of Plista Chimney.
#
# (c) plista GmbH
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
# ==================
# About this script:
# ==================
# This script is created to be used in the Debian... |
import {LiquidityRemoveReq} from '../cells/liquidityRemoveReq'
import {Sudt} from '../cells/sudt'
import {Ckb} from '../cells/ckb'
import {Transformation} from './interfaces/transformation'
/*
info_in_cell info_out_cell
pool_in_cell pool_out_cell
... |
#!/bin/bash
echo -e '\u001b[31m \nWARNING! Access to this device is restricted to those individuals with specific Permissions. If you are not an authorized user, disconnect now.
Any attempts to gain unauthorized access will be prosecuted to
the fullest extent of the law.\n\u001b[0m' | tee -a /etc/issue /etc/issue.net ... |
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
let path = req.url.toLowerCase();
switch(path) {
// Home page
case '/':
res.statusCode = 200;
res.setHeader('Content-Type', 'text/html');
res.end(`
<html>
<head>
<title>Home Page</... |
nvm use 8
npm i
npm run build-lib
npm publish ./dist/common-consumption |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.smallRight = void 0;
var smallRight = {
"viewBox": "0 0 20 20",
"children": [{
"name": "path",
"attribs": {
"d": "M11,10L7.859,6.58c-0.268-0.27-0.268-0.707,0-0.978c0.268-0.27,0.701-0.27,0.969,0l3.83,3.908\r\n\tc0.2... |
import tkinter as tk
from tkinter import messagebox
# Create the main application window
root = tk.Tk()
root.title("Text Display App")
# Create a label
lblText = tk.Label(root, text="Enter text:")
lblText.pack()
# Create a text entry field
txtText = tk.Entry(root)
txtText.pack()
# Function to update the label and d... |
<reponame>HMarzban/ep_headings2
'use strict';
const eejs = require('ep_etherpad-lite/node/eejs/');
const Changeset = require('ep_etherpad-lite/static/js/Changeset');
exports.eejsBlock_editbarMenuLeft = (hookName, args, cb) => {
args.content += eejs.require('ep_headings2/templates/editbarButtons.ejs');
return cb()... |
declare class HeapHandler {
private expiration;
private heapRootPath;
private heap;
private destructionTimeouts;
private scope;
constructor(expiration: number, heapRootPath?: string);
hasInstance(id: string): boolean;
getFromHeap(id: string): any;
insertIntoHeap(id: string, content: ... |
<gh_stars>0
const ava = require('ava')
ava("Dummy test", t => {
t.pass()
}) |
package com.symulakr.dinstar.smsserver.handlers;
import com.symulakr.dinstar.smsserver.message.Message;
import com.symulakr.dinstar.smsserver.message.body.ResponseBody;
import com.symulakr.dinstar.smsserver.message.body.SimpleResponseBody;
public abstract class SimpleResponseHandler extends Handler
{
@Override
... |
import { filter, map } from 'rxjs/operators';
import * as nanoid from 'nanoid/non-secure';
import { Subject } from 'rxjs';
const $subject = new Subject();
export const subscribeOnMessages = message => {
$subject.next(message);
};
type TMessagePromise = (value: any) => Promise<any>;
export const messagePromise: T... |
/*
* $Id: rpsl_commands.c,v 1.10 2002/10/17 20:02:31 ljb Exp $
* originally Id: rpsl_commands.c,v 1.22 1998/07/31 15:42:39 gerald Exp
*/
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <signal.h>
#include <ctype.h>
#include <fcn... |
#!/bin/bash -v
##### INSTALL PKGS
sudo pacman --noconfirm --needed -S \
dunst feh flameshot slock acpilight
xorg xorg-xinit xorg-xmessage \
xterm xclip xdo i3 picom
#### STOW THE PACKAGES
cd /data/dotfiles
stow dunst -t ~/
stow picom -t ~/
stow x -t ~/
stow i3 -t ~/
stow i3status -t ~/
#### Wallpaper
mkd... |
<reponame>andrefillypesilva/clever-weather<filename>src/app/shared/services/weather.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { pluck } from 'rxjs/operators';
// Interfaces
import { Place } from 'src/app/models/in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.