text stringlengths 1 1.05M |
|---|
python -m bertviz.classifier -c confs/qqp_export.json --no_train --do_test_only
|
#include "mlir/Dialect/StandardOps/IR/Ops.h"
#include "mlir/Dialect/StandardOps/IR/OpsBase.td"
#include "mlir/IR/Builders.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/IR/Types.h"
using namespace mlir;
class CustomOp : public Op<CustomOp, OpTrait::VariadicOperands, OpTrait::OneResult> {
public:
using Op::... |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const meetingsSchema = new Schema({
place: String,
location: { type: { type: String }, coordinates: [Number] },
date: Date,
time: String,
name: String,
description: String,
category: {type: String, enum: ["Drawing", "Painting", "Phot... |
import matplotlib.pyplot as plt
data = [2, 4, 5, 3, 5, 6, 8, 2]
plt.hist(data, bins = 5)
plt.title("Histogram")
plt.xlabel("Values")
plt.ylabel("Frequency")
plt.show() |
<filename>api/v1/flinksession_types_generate_test.go
package v1
import (
"github.com/stretchr/testify/assert"
apiv1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"testing"
)
const (
Expected1 = `apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
spec:
affinity:
podAntiAffinit... |
<reponame>tsekhan/true-component
import nodeRegistry from './nodeRegistry';
/**
* Add provided class to internal register to associate with HTML custom component tag.
*
* @global
* @name registerClass
* @param Class - Class to be associated with tag.
* @param [tag] - Tag name. Should meet custom element name spe... |
module.exports = function(Blockly) {
"use strict";
Blockly.Blocks["adc_pin_dummy_input"] = {
init: function() {
this.setOutput(true, null);
this.setColour(230);
this.setTooltip("");
this.setHelpUrl("");
}
};
Blockly.Blocks["io_pin_dummy_input"] = {
init: function() {
... |
import {apBasePath} from "./_base";
export const apPathPayments = apBasePath.appendPathSegment<{}>("/payments"); |
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the script phase was successful).
exit 0
fi
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_P... |
package io.opensphere.core.image;
/**
* A service that provides images and can be observed for new images.
*
* @param <T> The type of object to be used to look up the images.
*/
public interface ObservableImageProvider<T> extends ImageProvider<T>
{
/**
* Add an observer to be notified when a new... |
var platform;
var applyDelta, pushToPull, parse, sha1, bops, trace;
module.exports = function (imports) {
if (platform) return newRepo;
platform = imports;
applyDelta = require('git-pack-codec/apply-delta.js')(platform);
pushToPull = require('push-to-pull');
parse = pushToPull(require('git-pack-codec/decode... |
<reponame>cxh1378/vue-cli-config
import http from '../utils/http'
//
/**
* @parms resquest 请求地址 例如:http://172.16.17.32:8088/request/...
* @param '/testIp'代表vue.config.js中配置的代理
*/
let resquest = "/testIp/request"
// get请求
export function getListAPI(params){
return http.get(`${resquest}/getList.json`,params)
}... |
def evaluate_postfix(expression):
stack = []
for token in expression:
if token.isdigit():
stack.append(int(token))
else:
operand2 = stack.pop()
operand1 = stack.pop()
if token == '+':
stack.append(operand1 + operand2)
el... |
package seedu.address.logic.parser.appointment;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_DATE_OF_APPT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_DOCTOR_ID;
import static seedu.address.logic.parser.CliSynt... |
# Ensures passed in version values are supported.
function check-version-numbers() {
CHECK_VERSION_MAJOR=$1
CHECK_VERSION_MINOR=$0
if [[ $CHECK_VERSION_MAJOR -lt $EOSIO_MIN_VERSION_MAJOR ]]; then
exit 1
fi
if [[ $CHECK_VERSION_MAJOR -gt $EOSIO_MAX_VERSION_MAJOR ]]; then
exit 1
fi
if [[ $CHECK_VER... |
/**
* This file is the part of NChart3D Framework
* http://www.nchart3d.com
*
* File: NChartDataSmootherSBezier.h
* Version: "2.9.1"
*
* Copyright (C) 2017 Nulana LTD. All Rights Reserved.
*/
#import "NChartDataSmoother.h"
/**
* The NChartDataSmootherSBezier class provides data smoother based on bezier inte... |
export default `
vec2 getCenterPixel(vec2 calculatedPixel) {
float squareSize = 5.0;
float halfSquare = squareSize / 2.0;
float centerX = floor(calculatedPixel[0] / squareSize) * squareSize + halfSquare;
float centerY = floor(calculatedPixel[1] / squareSize) * squareSize + halfSquare;
return vec2(centerX, c... |
#!/bin/bash
# Script to run Lattice Diamond on a Verilog source file and LPF constraints file, then run some extra commands
# to create debug/dump output for the design
# Based on Clifford Wolf's icecube.sh from Project Icestorm
# Usage:
# ./diamond.sh part design.v
# Currently supported parts:
# - lfe5u-85
# - lf... |
import itertools
def process_data(active, uids, task_name, output_dict, Y_dict, label_name, loss_funcs, device):
uid_dict = {}
loss_dict = {}
if active.any():
uid_dict[task_name] = [*itertools.compress(uids, active)]
loss_dict[task_name] = loss_funcs[task_name](
output_dict,
... |
# coding: utf-8
Gem::Specification.new do |spec|
spec.name = 'riq'
spec.version = '1.2.3'
spec.authors = ['<NAME>']
spec.email = ['<EMAIL>']
spec.homepage = "https://github.com/relateiq/ruby-sdk"
spec.summary = 'Ruby SalesforceIQ API client'
spec.description = 'F... |
#!/bin/bash
echo 123456789 > $1/src_2_2
echo precompile.sh execited
|
<filename>tizen/renderer/media/mediaplayer_impl.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/tizen/renderer/media/... |
#!/usr/bin/env bash
# by default, with cleanup
# please note that the language(s) was not selected for any particular reason (other to represent the various sizes of babel datasets)
# 304-lithuanian | %WER 41.7 | 20041 61492 | 61.4 29.0 9.6 3.1 41.7 29.0 | -0.414 | exp/chain_cleaned/tdnn_lstm_bab2_sp/decode_dev10h.... |
#! /bin/sh
# $Id: mixedgauge,v 1.7 2010/01/13 10:20:03 tom Exp $
#. ./setup-vars
#background="An Example of --mixedgauge usage"
for i in 5 10 20 30 40 50 60 70 80 90 100
do
dialog --backtitle "Mixedgauge sample" \
--title "Mixed gauge demonstration" "$@" \
--mixedgauge "This is a prompt message,\nand this is the s... |
#!/bin/bash
sudo chmod 666 /var/run/docker.sock
././config.sh --url $REPO --token $TOKEN
./run.sh |
<reponame>rpatil524/COLID-Data-Marketplace-Frontend<filename>src/app/modules/authentication/azure-authentication.module.ts
import { NgModule, ModuleWithProviders, Provider } from '@angular/core';
import { CommonModule } from '@angular/common';
import { environment } from 'src/environments/environment';
import { HTTP_IN... |
<reponame>elliotsegler/altimeter
"""V1 API router"""
from fastapi import APIRouter
from altimeter.qj.api.v1.endpoints.jobs import JOBS_ROUTER
from altimeter.qj.api.v1.endpoints.result_sets import RESULT_SETS_ROUTER
V1_ROUTER = APIRouter()
V1_ROUTER.include_router(JOBS_ROUTER, prefix="/jobs", tags=["jobs"])
V1_ROUTER.... |
#!/usr/bin/env bash
xfconf-query -c 'xfwm4' -p '/general/theme' -s 'NumixBlue'
|
#! /bin/bash
# Copyright (c) 2019-2021, NVIDIA CORPORATION. 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 License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... |
document.addEventListener("DOMContentLoaded", function() {
//Simulator options below - some amounts are changed based on screen width see below.
//If you want to set the settings mark mediaQueryOveride = true;
const mediaQueryOveride = true;
let fps = 60;
let drawInterval = 1000 / fps;
let xVelM... |
#!/usr/bin/env bash
# This script automatically download ray and run the sanity check (sanity_check.py)
# in various Python version. This script requires conda command to exist.
unset RAY_ADDRESS
export RAY_HASH=$RAY_HASH
export RAY_VERSION=$RAY_VERSION
if [[ -z "$RAY_HASH" ]]; then
echo "RAY_HASH env var should... |
import React from 'react';
const BookList = ({ books }) => {
return (
<div>
{books.map(book => (
<div key={book.isbn}>
<h3>{book.title}</h3>
<span>{book.author}</span> | <span>{book.isbn}</span>
</div>
))}
</div>
);
};
export default BookList; |
package org.slos.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slos.Team;
import org.slos.rating.ColorVsColorRatingResults;
import org.slos.util.ToJson;
import java.util.ArrayList;
import java.util.List;
public class TeamResponse implemen... |
const Discord = require('discord.js')
const client = new Discord.Client()
module.exports = {
category: 'Fun',
aliases: ['ask', 'question', 'trickedbot'],
minArgs: 1,
maxArgs: -1,
expectedArgs: "<question>",
description: 'Ask maybe he will know',
callback: ({message, args, text, client, ... |
SELECT
COUNT(*)
FROM
users
WHERE
DATEDIFF(NOW(), login_date) > 15; |
#! /bin/sh
export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/share/man:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
DIR=$(cd "$(dirname "$0")"; pwd)
DIR_PWD=$DIR
DIR=$(dirname "$DIR")
DIR=$(dirname "$DIR")
DIR=$(dirname "$DIR")
DIR=$(dirname "$DIR")
DIR=$(dirname "$DIR")
MDIR=$(dirname "$DIR")
... |
<gh_stars>0
SELECT 1 FROM save WHERE id=$1 LIMIT 1;
|
<gh_stars>1-10
import argparse, os, sys, math, time
import numpy as np
from DenseNet import DenseNet
from DenseNet2 import DenseNet2
from utils import readData, getDateTime, print_and_write
import evaluation.eval_segm as eval
from scipy.misc.pilutil import imread, imsave
import tensorflow as tf
import itertools
import ... |
#!/usr/bin/env -S bash -euET -o pipefail -O inherit_errexit
SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT")
# --- Script Init ---
mkdir -p log
rm -R -f log/*
# --- Setup run dirs ---
find output -type f -not -name '*summary-info*' -not -name '*.json' -exec rm -R -f {} +
mkdir output/full_correlation/
rm -R -... |
// Boost.Geometry
// Unit Test
// Copyright (c) 2018 <NAME>, Islamabad, Pakistan.
// Contributed and/or modified by <NAME>, as part of Google Summer of Code 2018 program.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
... |
#include "Config.h"
#include "Storage.h"
#include "StorageSqlite.h"
#include "utils/Memory.h"
namespace Storage
{
Storage * storage = NULL;
void Storage::SetEngine( const char * name )
{
if(_STR.strcmpi(name, "sqlite") == 0)
{
storage = &storageSqlite.GetSingleton();
}
}
}
|
/*
* Gdańsk University of Technology - Engineering Thesis
* Malicious Module for Netbeans
*
* <NAME>, <NAME>, <NAME>
*/
package pl.gda.pg.eti.kio.malicious.entity;
import java.awt.EventQueue;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import pl.gda.pg.eti.kio.malicious.ann... |
// ------------------------------
// Automated code formatter before compilaion
// Disabled by default because this is confusing for beginners
//scalariformSettings
// ------------------------------
// for ./skinnny console
initialCommands := """
import skinny._
import _root_.controller._, model._
import org.joda.time... |
#!/bin/sh
pdflatex FIR-system-lattice.tex
|
#!/bin/bash
dieharder -d 2 -g 27 -S 1951719681
|
public class TestMenuItem implements MenuItem {
private String labelText;
public TestMenuItem(String labelText) {
this.labelText = labelText;
}
@Override
public void labelShouldHave(String text) {
if (!labelText.equals(text)) {
throw new AssertionError("Label text does ... |
source activate icu-benchmark
python -m icu_benchmarks.run evaluate \
-c configs/hirid/Classification/LGBM_w_feat.gin \
-l files/pretrained_weights/LGBM_w_feat/ \
-t Phenotyping_APACHEGroup \
--loss-weigh... |
package com.inner.lovetao.mineassets.di.component;
import com.inner.lovetao.mineassets.di.module.EarningsDetailModule;
import com.inner.lovetao.mineassets.mvp.contract.EarningsDetailContract;
import com.inner.lovetao.mineassets.mvp.ui.activity.EarningsDetailActivity;
import com.jess.arms.di.component.AppComponent;
imp... |
<gh_stars>10-100
/**
* Utility classes related to security functions.
*/
package io.opensphere.core.util.security;
|
package com.abubusoft.kripton.examplea0.recipes.v3.model;
import com.abubusoft.kripton.android.annotation.BindColumn;
import com.abubusoft.kripton.android.annotation.BindTable;
import com.abubusoft.kripton.annotation.BindType;
/**
* Created by xcesco on 01/09/2017.
*/
@BindType
@BindTable(name="authors", uniqueInde... |
import * as fs from 'fs/promises';
import * as p from 'path';
import { exists, getFiles } from './utils/fs';
import { config } from './config';
const mergeObjects = (src: any, dist: any) => {
const distKeys = Object.keys(dist);
const srcKeys = Object.keys(src);
const missingDistKeys = srcKeys.filter((l) => !dis... |
<reponame>matt-tingen/userscripts
(function() {
const { css } = window.__MJT_USERSCRIPTS__.utils;
css`
:root {
--mjt-toggle-height: 0.9rem;
--mjt-toggle-width: 2rem;
}
.togg {
position: relative;
}
.togg:after {
content: '';
position: absolute;
padding: var... |
<filename>.local/share/Trash/files/ch1/2helloname.rb
print('Enter your name: ' )
name = gets()
puts( "Hello #{name}" ) |
<filename>src/utils/control/data-handlers/should-locking-submit-btn/types.ts<gh_stars>0
import {CurrentControlData, FormProps} from "@common-types"
export type ShouldLockingSubmitBtn = (currentControl: CurrentControlData, form: FormProps) => boolean |
<html>
<head>
<title> Chess Game </title>
<script type="text/javascript">
// Global Variables
var row_one = ["rnbqkbnr", 8];
var row_two = ["pppppppp", 7];
var row_three = ["........", 6];
var row_four = ["........", 5];
var row_five = ["........", 4];
var row_six = ["........", 3];
var row_seven ... |
#! /bin/sh
chown -R mini-buildd:mini-buildd /var/mini-buildd
su mini-buildd -c "/usr/sbin/mini-buildd --loggers console --verbose --dedicated-user mini-buildd --home /var/mini-buildd --foreground --set-admin-password $PASSWORD"
su mini-buildd -c "/usr/sbin/mini-buildd --loggers console --verbose --dedicated-user mini-b... |
#!/usr/local/bin/lsc -cj
name: 'latex.js'
description: 'JavaScript LaTeX to HTML5 translator'
version: '0.12.1'
author:
'name': 'Michael Brade'
'email': 'brade@kde.org'
keywords:
'pegjs'
'latex'
'parser'
'html5'
bin:
'latex.js': './bin/latex.js'
main:
'dist/latex.esm.js'
browser:
... |
Eric is a brave knight who embarks on dangerous journeys and is unafraid of challenges. He fights fierce enemies and is determined to live a life of risk-taking and adventure. |
const person = {
name: "John Doe",
age: 25,
phoneNumber: "99-11-22-33"
}; |
public static boolean hasSum(int[] A, int k) {
// Set to store the values
Set<Integer> set = new HashSet<>();
// Loop through the array to find the pairs
for (int x : A) {
if (set.contains(k - x)) {
return true;
}
set.add(x);
}
// Return false if no matching pairs are found
return false;
}
// Usage examp... |
<gh_stars>0
//functions shows the genome or qtl search box and chromosome viewer if there is a reference genome
function showReferenceGenome(){
if (reference_genome == true) {
$('#genomeorqtlsearchbox').show();
if (typeof gviewer != "undefined" && gviewer == false) {
activateButton('resul... |
#!/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"); you ... |
#!/bin/bash
# Read .env
if [ -f .env ]
then
export $(cat .env | sed 's/#.*//g' | xargs)
else
echo ".env file not found!"
exit 0
fi
# Install via helm
helm repo add portainer https://portainer.github.io/k8s/
helm repo update
helm install ${NAME} portainer/portainer -n ${NAMESPACE} --create-namespace \
--... |
<reponame>juniorjavadeveloper-pl/java-first-class-crud-service
package pl.juniorjavadeveloper.java.crud.model;
import java.math.BigDecimal;
public class Car {
private int id;
private Integer year;
private String model;
private String manufacturer;
private BigDecimal price;
public Car() {
... |
#!/bin/bash
#SBATCH --job-name=lstmscan
#SBATCH --time=48:00:00
#SBATCH --cpus-per-task=5
#SBATCH --ntasks-per-node=1
#SBATCH --nodes=1
#SBATCH --qos=high
#SBATCH --constrain=xeon-g6
#SBATCH --gres=gpu:volta:1
#SBATCH --array=1-20
lr=1.0
warmup_steps=4000
max_steps=8000
batch_size=128
home="../../../"
k=0
for split in... |
class Square:
def __init__(self, width, height):
self.width = width
self.height = height
def area(self):
return self.width * self.height
square = Square(10, 20)
print(square.area()) # prints 200 |
<filename>src/hooks/useRockets.ts
import { useQuery } from 'react-query';
import { spacexApi } from '@config/api';
import type { RocketProps } from '@types';
const getRockets = async (): Promise<RocketProps[]> => {
const { data } = await spacexApi.get('/rockets');
return data;
};
export function useRockets() {
... |
# You are expected to run the commands in this script from inside the bin directory in your DBpedia Spotlight installation
# Adjust the paths here if you don't. This script is meant more as a step-by-step guidance than a real automated run-all.
# If this is your first time running the script, we advise you to copy/past... |
<reponame>iranathan/Pyblox<gh_stars>10-100
#
# group.py
# pyblox
#
# By Sanjay-B(<NAME>)
# Copyright © 2017 Sanjay-B(<NAME>). All rights reserved.
#
from .http import Http
import json
# Group Object
class Group:
Name = None
Id = None
Owner = None
OwnerName = None
OwnerId = None
EmblemUrl =... |
#include <flowi_core/font.h>
#include "../src/internal.h"
#include "../src/linear_allocator.h"
#include "utest.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Malloc based allocator. We should use tslf or similar in a sandbox, but this is at... |
<reponame>officialrajdeepsingh/Array<filename>src/Component/Icon/Icon.js
import React, { Component } from 'react';
// read about icon plz goto here find all icon https://icons.getbootstrap.com
// make sure bootstrop use svg icon
import Iconlist from './Iconlist';
// React-bootstrap component
import Container from 'r... |
<filename>src/Helper/tryParseJSON.js
export const tryParseJSON = (x, fallback = null) => {
try {
return JSON.parse(x);
} catch (e) {
// console.log(x);
// console.warn(e);
return fallback;
}
};
|
<gh_stars>1-10
import React, { useState } from 'react';
import { Steps, Step, StatusTypes } from 'algae-ui';
export default () => {
const [current, setCurrent] = useState<number>(1);
const [status, setStatus] = useState<StatusTypes>('process');
return (
<div className="steps-example-list">
<Steps curr... |
export PS1=${debian_chroot:+($debian_chroot)}'\[\033[01;31m\]\u@\h\[\033[00m\]:\w\n\$ '
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
function e() {
# emacs -g 80x80 ${1} &
emacs ${1... |
<reponame>wkma/bk-sops
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use... |
<filename>src/app/shared/models/versioning.model.ts
import {Auditable} from './auditable.model';
/**
* Objects that can be versioned use this
*/
export class Versioning extends Auditable {
/**
* The version
*/
version: string;
/**
* Associated Approval
*/
approvalId: number;
/**
* Status ... |
#!/bin/bash
useradd -ms /bin/bash bitnami
mkdir -p /opt/bitnami && chown bitnami:bitnami /opt/bitnami
sed -i -e 's/\s*Defaults\s*secure_path\s*=/# Defaults secure_path=/' /etc/sudoers
echo 'bitnami ALL=NOPASSWD: ALL' >> /etc/sudoers
|
#!/bin/bash
set -xeu
readonly MY_PATH=$(cd $(dirname $0) && pwd)
readonly LODGE_ROOT_PATH=$(cd $MY_PATH/../../ && pwd)
readonly EXEC='bundle exec'
# Setup for sunspot & solr.
(
cd $LODGE_ROOT_PATH
$EXEC rails generate sunspot_rails:install
# Initialize solr.
$EXEC rake sunspot:solr:start RAILS_ENV=production
... |
class P1
{
public static void main(String[] args)
{
int i=0;
while (i<=10)
{
System.out.println(i++);
}
}
}
|
#!/bin/bash
#
#
#
specPackageName="csap-monitoring-specs" ;
#kubePrometheseus="kube-prometheus@release-0.8" ;
kubePrometheseus="kube-prometheus@release-0.9" ;
#specVersion=${specVersion:-2-SNAPSHOT} ;
specVersion=${specVersion:-21.10} ;
ui_anonymous=${ui_anonymous:-false} ;
templateVariables="data_retention data_... |
#include <boost/test/unit_test.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <eosio/testing/tester.hpp>
#include <eosio/chain/contracts/abi_serializer.hpp>
#include <currency/currency.wast.hpp>
#include <currency/currency.abi.hpp>
#include <Runtime/Runtime.h>
#include <fc/variant_object.hpp>
using n... |
#!/bin/bash
./sbt -J-Xmx2G "project accumulo" test || { exit 1; }
./sbt -J-Xmx2G "project cassandra" test || { exit 1; }
./sbt -J-Xmx2G "project doc-examples" compile || { exit 1; }
./sbt -J-Xmx2G "project geomesa" test || { exit 1; }
./sbt -J-Xmx2G "project geotools" test || { exit 1; }
HOSTALIASES=/tmp/hostaliases... |
/////////////////////////////////////////////////////////////////////////
//// GLCD.C ////
//// ////
//// This file contains drivers for using a Hantronix HDM64GS12 with ////
//// an LED backligh... |
#!/bin/sh
update () {
ncu --packageManager npm --packageFile "$1/package.json" -u -x path-to-regexp
ncu --packageManager npm --packageFile "$1/package.json" -u --dep dev -x path-to-regexp
}
yarn workspaces list --json | while read package; do
package="${package/\{\"location\":\"/}"
package=$(sed "s/\"... |
<reponame>OmicsDataAutomation/TileDB<filename>test/src/storage_manager/test_azure_blob_storage.cc
/**
* @file test_azure_blob_storage.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2021 Omics Data Automation, Inc.
*
* Permission is hereby granted, free of charge, to any person obtai... |
package se.sundsvall.messaging.integration.smssender;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.client.HttpStatusCodeException;
import org.springframework.web.client.Rest... |
<reponame>StuntsPT/BangleApps
var Math2 = require("solar_math_utils.js");
const _MIN_MILLIS = 1000 * 60 ;
const _HOUR_MILLIS = _MIN_MILLIS * 60;
const _DAY_MILLIS = _HOUR_MILLIS * 24;
function _start_of_julian_day(now){
var sod_of_day = new Date(now.getTime());
var local_offset_hours = sod_of_day.getTimezoneO... |
// officialAccount.js
const OfficialAccount = {
name: "ExampleOfficialAccount",
followers: 0,
follow() {
this.followers++;
},
unfollow() {
this.followers = Math.max(0, this.followers - 1);
}
};
export { OfficialAccount };
export default OfficialAccount; |
class Pairsum:
def __init__(self):
pass
def pair_sum_count(self, arr, target):
seen = {}
count = 0
for num in arr:
complement = target - num
if complement in seen:
count += seen[complement]
if num in seen:
seen[... |
<gh_stars>0
L[:] = [min(x,100) for x in L]
|
/* Copyright 2014 <NAME>
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, so... |
/**
* 弹窗高度自动管理
*/
define(['jquery', 'ractive'], function($, Ractive) {
var resize = function(node, offset) {
var el = $(node)
var height = el.outerHeight() + (offset || 0)
el.css({
'height': (height + offset) + 'px',
'margin-top': (-1 * height / 2) + 'px'
})
return {
teardown... |
#!/usr/bin/env bash
set -e
# Use .bin outside of schema since schema dir is watched by watchman.
export GOBIN="$PWD/../.bin"
export GO111MODULE=on
go install github.com/sourcegraph/go-jsonschema/cmd/go-jsonschema-compiler
go build -o "$GOBIN"/stringdata stringdata.go
# shellcheck disable=SC2010
schemas="$(ls -- *.s... |
<filename>src/main/java/com/cc/mybatis/common/DataSources.java<gh_stars>0
package com.cc.mybatis.common;
import org.apache.ibatis.datasource.unpooled.UnpooledDataSource;
import org.apache.ibatis.io.Resources;
import java.io.IOException;
import java.util.Optional;
import java.util.Properties;
/**
* @author chenchong... |
<filename>project/gardener/src/main/java/kr/co/gardener/admin/model/user/Bookmark.java
package kr.co.gardener.admin.model.user;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import kr.co.gardener.util.GridSystem;
public class... |
import platform
from oleparser import OleParser
from hwpparser import HWPParser # Assuming the HWPParser class is provided
class HWPScanner:
def __init__(self) -> None:
self.__platform__ = platform.platform()
self.hwpx_flag = False
self.ole_parser = OleParser()
self.hwp_parser = No... |
(function($) {
'use strict';
$('audio[controls]').before(function(){
var song = this;
song.controls=false;
var player_box = document.createElement('div');
$(player_box).addClass($(song).attr('class') + ' well container-fluid playa');
var data_sec = document.createElement('section');
$(data_sec).addClas... |
#!/bin/sh
node build/app.js &
cd static
python3 -m http.server --bind 127.0.0.1 8081
|
/** @module ext/CanvasRenderingContext2D/all */
export * from "./Color.js"
export * from "./draw.js"
export * from "./Vec2.js"
|
<filename>src/fns/index.js
export { $ } from './$';
export { add } from './add';
export { and } from './and';
export { cat } from './cat';
export { ceil } from './ceil';
export { div } from './div';
export { eq } from './eq';
export { flr } from './flr';
export { fix } from './fix';
export { get } from './get';
export ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.