text stringlengths 1 1.05M |
|---|
import { FunctionComponent } from "react"
import * as React from "react"
import { css } from "@emotion/react"
export const Conclusion: FunctionComponent = ({ children }) => (
<div
className="f5 tc fw6"
css={css`
line-height: 1.5em;
font-family: "Playfair Display", serif;
margin-bottom: 1.45... |
#zcc +cpm -vn -SO3 -clib=sdcc_iy --max-allocs-per-node200000 sudoku.c -o sudoku -create-app
zcc +zx -vn -startup=1 -clib=sdcc_ix -SO3 --max-allocs-per-node200000 --reserve-regs-iy sudoku.c -o sudoku -create-app
|
<filename>src/test/java/seoul/democracy/features/E_06_์ ์/S_6_8_์ฌ์ฉ์๋_์ ์์๊ฒฌ์_์์ _๋ฐ_์ญ์ ํ _์_์๋ค.java
package seoul.democracy.features.E_06_์ ์;
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.bea... |
<filename>C2CRIBuildDir/projects/C2C-RI/src/RI_Utilities/src/org/fhwa/c2cri/utilities/ProgressReporter.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.fhwa.c2cri.utilities;
/**
* The Interface ProgressReporter supplies methods to report progress t... |
from .y import *
print('x')
|
package com.h8.nh.nhoodengine.matrix.workers;
import com.h8.nh.nhoodengine.core.DataResource;
import com.h8.nh.nhoodengine.core.DataResourceKey;
import com.h8.nh.nhoodengine.matrix.DataDoesNotExistException;
import com.h8.nh.nhoodengine.matrix.DataMatrixRepository;
import com.h8.nh.nhoodengine.matrix.DataMatrixReposit... |
#!/usr/local/bin/bash
(echo "Example Files"; ls -lah ~/.dzen2/knoxbug; sleep 20) | dzen2 -fn 'Roboto:Medium:15px' -x 550 -y 250 -tw 175 -w 775 -l 8
|
package cn.stylefeng.roses.kernel.auth.starter;
import cn.hutool.cache.CacheUtil;
import cn.hutool.cache.impl.TimedCache;
import cn.stylefeng.roses.kernel.auth.api.constants.LoginCacheConstants;
import cn.stylefeng.roses.kernel.auth.cache.LoginMemoryCache;
import cn.stylefeng.roses.kernel.cache.api.CacheOperatorApi;
i... |
#ifndef _BUTTON_H
#define _BUTTON_H
#include "commonassets.h"
#include "guibase.h"
struct Button
{
float x, y;
float w, h;
float color[4];
int depressed;
int clicked;
int focused;
struct GUIWindow * wp;
void (*Prerender)( struct Button * b );
void (*Render)( struct Button * b );
int (*CheckClick)( struct G... |
<gh_stars>0
import React from 'react';
import styled from 'styled-components';
const Styled = styled.div``;
const Templates = () => {
return <Styled />;
};
export default React.memo(Templates);
|
# Define a function to crawl a website
def web_crawler(url):
# Create the request object
request = Request(url)
# Make the request
response = urlopen(request)
# Extract the response text
html = response.read()
# Use regex to find the relevant data
data_regex = re.compile('<div class="data-it... |
CREATE PROCEDURE GetTotalNumberOfOrdersInPastThirtyDays()
BEGIN
SELECT COUNT(*) FROM Orders
WHERE order_date BETWEEN NOW() - INTERVAL 30 DAY AND NOW();
END |
#
# Copyright 2011-2016 Asakusa Framework Team.
#
# 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 agr... |
<gh_stars>0
import React from 'react';
import Layout from '../components/layout';
import { css } from 'emotion';
class IndexPage extends React.Component {
render() {
return (
<Layout>
<div
className={css`
min-height: 300vh;
`}
>
Hello
</div... |
#!/bin/bash -e
clear
RED='\033[1;31m'
WHITE='\033[1;37m'
ORANGE='\033[01;38;5;166m'
GREEN='\033[01;38;5;118m'
echo "Task Completed Thanks For Using"
printf "${ORANGE}"
echo -e " โโโโโโโโ โโโโโโโโ โโโโโโโ โโโ โโโ โโโโโโ โโโ"
echo -e " โโโโโโโโโ โโโโโโโโ โโโโโโโโ โโโ โโโโ โโโโโโโโ โโโ"
echo -e "${WHITE} โโโโ โโโ โโ... |
<filename>src/index.test.ts
import { Clock } from '.'
const TIME = 5 * 60_000
const UPDATE_INTERVAL = 100
jest.useFakeTimers()
const dateNow = jest.spyOn(Date, 'now')
let time = 0
dateNow.mockImplementation(() => (time += UPDATE_INTERVAL))
const callback = jest.fn()
const fischer = Clock.getConfig('Fischer Rapid 5|... |
from projectq import MainEngine
from projectq.ops import H, X, Y, Z, Measure, CNOT, Swap
class ProjectqQuantumSimulator:
def __init__(self, num_qubits):
self.num_qubits = num_qubits
self.engine = MainEngine()
def apply_single_qubit_gate(self, gate, target_qubit):
if gate == 'H':
... |
export { BaseStyle as Base } from './style';
|
<reponame>rebase-network/ckb-cache-layer<gh_stars>0
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ScheduleModule } from 'nest-schedule';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { configService } from './con... |
#!/bin/sh
# auto repeat command (for example xdotool command)
bname=$(basename "$0")
USAGE=$(printf "%s" "\
Usage: $bname [OPTION...]
OPTIONS
-c, --command Command to execute
-h, --help Display help
-s, --sleep Seconds to sleep between executions (default 0.5)
EXAMPLE
$bname -c 'xdotool clic... |
package com.example.opensorcerer.ui.signup.fragments;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.text.Editable;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... |
require File.dirname(__FILE__) + '/spec_helper'
describe ReconnectingPid do
extend MockDescribe
before(:each) do
@options = {
:max_backlog => 666,
:max_attempts => 666,
:timeout => 666,
:timer => Timers::NOOP
}
@connection = mock('connection')
@remote = mo... |
#!/bin/bash
set -e
function echoc {
echo -e "\033[1;30m$1\033[0m"
}
NETWORK=https://net.ton.dev
COMPILE_DIR=./build/compile
DEPLOY_DIR=./build/deploy
SERVICE_DISCOVERY_APP=App
# shellcheck disable=SC2002
SERVICE_DISCOVERY_ADDR=$(cat "$DEPLOY_DIR/${SERVICE_DISCOVERY_APP}_genaddr.log" | grep "Raw address:" | cut... |
#!/usr/bin/env bash
source .config
usage() {
cat << EOF
usage: $ aoc.sh <command> [<args>]
Commands:
help - display this help
$ aoc.sh help
gen - fetch input and generate boilerplate
$ aoc.sh gen [YEAR] [DAY]
if no YEAR or DAY are specified then today is used
$ aoc.sh gen
to fetch input and ... |
# Function to process audio file
process_audio() {
input_path=$1
output_path=$2
# Step 1: Convert input audio file to 16-bit raw audio with 8000 Hz sample rate
sox $input_path -t raw -r 8000 -e signed-integer -b 16 - - | \
# Step 2: Convert 16-bit raw audio to 16 kHz WAV file
sox -r 8000 -e signed-integer ... |
package com.waflo.cooltimediaplattform.backend.beans;
public enum MediaType {
MOVIE("Film"), AUDIO("Audio"), DOCUMENT("Dokument");
private MediaType(String l){this.label=l;}
private String label;
public String getLabel() {
return label;
}
public void setLabel(String label){
//n... |
<gh_stars>0
export default function handleChangeRowsPerPage(event) {
this.setState({ pageSize: +event.target.value, pageNumber: 1 }, () => {
this.getData();
});
}
|
import { Component,ViewContainerRef,OnInit, AfterViewInit } from '@angular/core';
import {ChangeService} from '../service/change.service';
import {AuthenticateService} from '../service/authenticate.service';
import { Modal } from 'ngx-modialog/plugins/bootstrap';
import {AngularFireDatabase} from 'angularfire2/data... |
#pragma once
#include <iostream>
#include <random>
#include <ctime>
#include <array>
#include <Windows.h>
#include <d3d11_1.h>
#include <directxcolors.h>
#include <D3DX11.h>
#include <xnamath.h>
#include <d3dcompiler.h>
#include "Effects.h"
#include <vector>
#include <SpriteBatch.h>
#include <SpriteFont.h... |
#!/bin/sh
. ./trace.sh
. ./sendtobitcoinnode.sh
. ./bitcoin.sh
createbatcher() {
trace "Entering createbatcher()..."
# POST http://192.168.111.152:8080/createbatcher
#
# Will UPDATE the batcher if it already exists (as per label)
#
# args:
# - batcherLabel, optional, id can be used to reference the bat... |
#!/bin/bash
set -e
BRANCH=${BRANCH:?'missing BRANCH env var'}
IMAGE="${REPO:?'missing REPO env var'}:latest"
unset major minor patch
if [[ "$BRANCH" == "master" ]]; then
TAG="latest"
elif [[ $BRANCH =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
major="${BASH_REMATCH[1]}"
minor="${BASH_REMATCH[2]}"
patch="${BAS... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.cloud = void 0;
var cloud = {
"viewBox": "0 0 512 512",
"children": [{
"name": "g",
"attribs": {},
"children": [{
"name": "path",
"attribs": {
"d": "M358.719,272.734C364.484,263.125,368,252.016,36... |
#!/bin/bash
help () {
printf "Script: 02-db-bootstrap.sh\n"
printf "Usage: 02-db-bootstrap.sh [ -s ] [ -r ] [ -d ]\n"
printf " -- \nWhere: \n"
printf " -s The inital AWS Stack name which is to create the vpc, subnet, and Aurora cluster. \n"
printf " Whatever value is set when running script 01-install_prereq... |
#!/bin/bash
curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1RvQZhjsn5EH6O8vXKy_8KIwr5i-s0ecE" > /dev/null
CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"
curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1RvQZhjsn5EH6O8vXKy_8KIwr5i-s0ecE" -o resources.tar.gz... |
#! /usr/bin/env bash
KERNEL_VER="5.14-rc5"
VER_STAND="5.14.0"
VER_STR="051400rc5"
while [[ $# -gt 0 ]]; do
PROG_ARGS+=("${1}")
case "${1}" in
-amd|--amd64)
mkdir /tmp/ubuntukernel$KERNEL_VER
cd /tmp/ubuntukernel$KERNEL_VER
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.14-rc5/amd64/l... |
import { push } from 'react-router-redux'
export const navigateTo = (path) => (dispatch) => {
dispatch(push(path))
}
|
echo 'call kill.sh'
get_pids() {
ps -f -U `whoami` | grep apis-main | grep java | while read _USER_ _PID_ _OTHERS_; do
echo $_PID_
done
}
while true; do
_PIDS_=`get_pids`
if [ -z "$_PIDS_" ] ; then
break
fi
echo kill -KILL $_PIDS_
kill -KILL $_PIDS_
sleep 1
done
echo '... done'
|
<reponame>bsnote/node-statvfs
// Copyright (c) 2012, <NAME>. All rights reserved.
var assert = require('assert');
var statvfs = require('../lib');
assert.ok(statvfs);
assert.equal(typeof (statvfs), 'function');
statvfs('/tmp', function (err, stats) {
assert.ifError(err);
assert.ok(stats.bsize);
... |
require(['jquery', 'layer', 'WebUploader', 'registLayer', 'forgetpw', 'validate', 'placeholders', 'cookie'], function($, layer, WebUploader, registLayer, forgetpw) {
//ๅฟ่ฎฐๅฏ็ ๅผน็ช
$("#forgetPw").on("click", function() {
forgetpw();
})
$(".main>.payChoice>.balance>.b2").hide();
/* ้่ฏฏไฟกๆฏๅผน็ช */
$(... |
#!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2010 <NAME>. All rights reserved.
#
"""Capture the output of a command and test its exit code at the same time.
"""
#end_pymotw_header
import subprocess
try:
output = subprocess.check_output(
'echo to stdout; echo to stderr 1>&2; exit 1',
... |
const { readFile } = require('fs').promises;
readLocalFile = async() => {
try {
let data;
try {
data = await readFile('microservices/products/src/call-backs/input.txt', { encoding: 'utf8' });
} catch (err) {
console.error("Error reading file", err);
}
... |
<filename>fbcnms-packages/fbcnms-alarms/hooks/useForm.js
/**
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distribute... |
const calculateTotalLandArea = (cities) => {
const totalLandArea = {};
cities.forEach(city => {
totalLandArea[city.name] = city.landArea;
});
return totalLandArea;
}; |
#!/bin/bash
# backup apt packages
# To restore:
# - 'dpkg --set-selections < selections.txt && apt-get dselect-upgrade'
hash dpkg 2>/dev/null || { echo >&2 "You need to install dpkg. Aborting."; exit 1; }
hash apt-key 2>/dev/null || { echo >&2 "You need to install apt. Aborting."; exit 1; }
if ! dpkg --get-selection... |
<filename>app/src/main/java/com/wyp/materialqqlite/FileUtils.java
package com.wyp.materialqqlite;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import android.content.Context;
import android.os.Environment;
public class FileUtils {
public static bo... |
package io.bhex.api.client.impl;
import io.bhex.api.client.BHexApiRestClient;
import io.bhex.api.client.constant.BHexConstants;
import io.bhex.api.client.domain.account.*;
import io.bhex.api.client.domain.account.request.*;
import io.bhex.api.client.domain.general.BrokerInfo;
import io.bhex.api.client.domain.market.*;... |
def map_response_to_value(response):
response = response.lower()
if response in ["yes", "y", "1"]:
return "1"
elif response in ["i", "idk", "i dont know", "i don't know", "2"]:
return "2"
elif response in ["probably", "p", "3"]:
return "3"
elif response in ["probably not", "p... |
<filename>docs/demo.js<gh_stars>1-10
const { watch, lastRun, series, parallel, src, dest } = require('gulp');
var clean = require('gulp-clean');
var FtpDeploy = require("ftp-deploy");
var ftpDeploy = new FtpDeploy();
var configDist = {
host: "o-pen.com.cn",
port: 21,
// this would upload everything except... |
echo "ะฃะดะฐะปะตะฝะธะต ััะฐััั
MogeneratorPONSO"
cd "${SRCROOT}/conferences/Classes/Models/GeneratedPONSO/"
rm *.*
echo " "
echo "ะะตัะตะธะผะตะฝะพะฒะฐะฝะธะต ponso c ะฝะฐัะตะน ะปะพะณะธะบะพะน ะดะปั ัะพะณะพ ััะพ ะฑั ะธั
ะฝะต ะฟะตัะตะณะตะฝะตัะธัะพะฒะฐะป mogenerator"
cd "${SRCROOT}/conferences/Classes/Models/PlainObjects/"
for file in *.*
do
filename="${file/PlainObject.*/}"... |
class Song:
def __init__(self, title, duration):
self.title = title
self.duration = duration
class Artist:
def __init__(self, name):
self.name = name
class MusicLibrary:
def __init__(self):
self.songs = []
self.artists = []
def add_song(self, title, duration):
... |
<filename>src/app/components/styles/procure/tender-item-info.ts
import { Component } from '@angular/core';
import { DescriptorBase } from '../../../model';
import * as moment from 'moment';
import { ProcureItemInfoComponent } from './procure-item-info';
const tooltips = require('./tooltips.json');
@Component({
sel... |
<gh_stars>1-10
const Chillastic = require('./index'); // Replace with 'require('chillastic')' if you're outside of this repo
const REDIS_HOST = 'localhost';
const REDIS_PORT = 6379;
const CHILL_PORT = 8080;
const chillastic = Chillastic(REDIS_HOST, REDIS_PORT, CHILL_PORT);
// Start it up!
chillastic.run(); |
def fibonacci(n):
if n == 0:
return 0
elif n == 1:
return 1
else:
return fibonacci(n - 1) + fibonacci(n - 2)
print(fibonacci(6)) // 8 |
#!/bin/sh
set -e
set -u
set -o pipefail
function on_error {
echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR
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... |
#!/bin/bash
OLD_PWD=$PWD
PACKAGE_DIR=$1
ARCH=$DUB_ARCH
PLATFORM=$DUB_PLATFORM
BUILD_TYPE=$DUB_BUILD_TYPE
if [ "$PLATFORM"="posix" ]; then
PLATFORM=linux
fi
DEST_DIR=$PACKAGE_DIR/c/build/$ARCH-$BUILD_TYPE
if [ ! -d "$DEST_DIR" ]; then
mkdir -p "$DEST_DIR"
fi
if [ -f "$DEST_DIR/liblua5.1.a" ] && [ -z $DUB_FOR... |
<filename>analytics-api/app/controllers/ExperimentController.scala
package controllers
import akka.actor.{ActorRef, ActorSystem}
import akka.pattern.ask
import javax.inject.{Inject, Named}
import org.ekstep.analytics.api._
import org.ekstep.analytics.api.service.ExperimentAPIService.{CreateExperimentRequest, _}
import... |
# Copyright 2019 Xilinx 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 writing, ... |
#!/usr/bin/env bash
#
#SBATCH --job-name=reddit_umap
#SBATCH --array=1-50
#SBATCH --time=02:00:00
#SBATCH -N 1
#SBATCH -c 8
#SBATCH --mem=5GB
#SBATCH -o ./../../datum/reddit/output/slurm/slurm-%A_%a.out
echo "now processing task id:: " ${SLURM_ARRAY_TASK_ID}
python3 reddit_cluster.py --job_array_task_id=${SLURM_ARRAY... |
<reponame>iyang0/DMI-frontend
/**
* Test sagas
*/
/* eslint-disable redux-saga/yield-effects */
import { put, takeLatest } from 'redux-saga/effects';
// global store actions and constants
import { LOAD_LIST } from 'containers/App/constants';
import { loadListSuccess, loadListError } from 'containers/App/actions';
... |
<filename>Vue/vue-source-code/webpack.config.js
var HtmlWebpackPlugin = require('html-webpack-plugin');
var path = require('path');
var FlowWebpackPlugin = require('flow-webpack-plugin');
module.exports = {
mode: 'development',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, './dist'),
f... |
<gh_stars>0
package models.SkillContainer;
import models.Skill.Skill;
import java.util.ArrayList;
/**
* Created by Matthew on 4/13/2016.
*/
public class ActiveSkillContianer extends SkillContainer {
public ActiveSkillContianer(SkillContainer basicSkillContianer, SkillContainer occupationSkillContainer){
... |
import { useEffect, useState } from 'react';
import {getTreesManifest} from '@utils/getTreesManifest'
import { ALL, SN, WAITING, WORKING } from '@common/constants';
export default function useSnRepoValidation({authentication, owner, server, languageId, refresh}) {
const [{snRepoTree,
snRepoTreeManifest,
... |
export function nested(flatArr: any, options?: {}): any[];
|
package com.metaring.springbootappexample.service.auth;
import java.util.concurrent.CompletableFuture;
public class VerifyIdentificationFunctionalityImpl extends VerifyIdentificationFunctionality {
@Override
protected CompletableFuture<Void> preConditionCheck(IdentificationDataModel input) throws Exception {... |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2740-1
#
# Security announcement date: 2013-08-23 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:38 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - python-django:1.4.5-1+deb7u1
#
# La... |
#!/bin/bash
# compress with maximum settings
# see https://superuser.com/questions/281573/what-are-the-best-options-to-use-when-compressing-files-using-7-zip
# for the all dataset, include also the metadata of the filtered ones
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on "all-binaries-metadata.7z" "all/" "all.pret... |
#!/bin/bash
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -ex
# This script makes use of the following environment variables defined
# in the Dockerfile:
# - ARCHES
# - DISTRIBUTION
main() {
... |
import React, { useEffect } from 'react';
import {
View,
Text,
StyleSheet
} from 'react-native';
import Geolocation from '@react-native-community/geolocation';
import axios from 'axios';
const Restaurants = () => {
const [location, setLocation] = useState(null);
const [restaurants, setRestaurants] = useState([])... |
import React from 'react';
import ReactDOM from 'react-dom'
import Dlzc from './module/dlzc/Dlzc'
ReactDOM.render(
<Dlzc/>,
document.getElementById('dlzc_wrapper')
); |
/*
* (C) Copyright 2016-2018, by <NAME> and Contributors.
*
* JGraphT : a free Java graph-theory library
*
* This program and the accompanying materials are dual-licensed under
* either
*
* (a) the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation, or (at... |
<filename>src/test/java/io/reactivex/observers/ObserverFusion.java
/**
* Copyright (c) 2016-present, RxJava Contributors.
*
* 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.ap... |
<filename>src/foam/lib/query/FooEnum.js
foam.ENUM({
package: 'foam.lib.query',
name: 'FooEnum',
values: [
'FOO',
'BAR'
]
});
|
package io.github.batizhao.service;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.batizhao.domain.RoleMenu;
import java.util.List;
/**
* @author batizhao
* @since 2020-09-14
**/
public interface RoleMenuService extends IService<RoleMenu> {
/**
* ๆดๆฐ่ง่ฒ่ๅ
* @param roleMe... |
import tempfile
import logging
# Set up logging
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
class TemporaryFile:
def __init__(self, params, name):
self.params = params
self.name = name
self.directory = tempfile.mkdtemp(prefix='dragons.')
def prepare(self... |
#!/bin/bash
cd ~/blis
make clean
make
echo "MAKE DONE"
|
import { ThemingProps, HTMLChakraProps } from "@chakra-ui/system";
export interface HeadingProps extends HTMLChakraProps<"h2">, ThemingProps<"Heading"> {
}
export declare const Heading: import("@chakra-ui/system").ComponentWithAs<"h2", HeadingProps>;
//# sourceMappingURL=heading.d.ts.map |
#!/bin/bash
source /root/entry-point.sh
pushd ${LI3DS_ROOT_PATH}
./scripts/create_overlay_ws.sh
./scripts/get_and_build_with_catkin.sh
popd |
#include <iostream>
int main()
{
int prev_num = 0;
int cur_num = 1;
int next_num;
std::cout << prev_num << " ";
for (int i = 0; i < 9; i++)
{
next_num = prev_num + cur_num;
std::cout << next_num << " ";
prev_num = cur_num;
cur_num = next_num;
}
std::cout... |
import nltk
from nltk.stem.wordnet import WordNetLemmatizer
from sklearn.feature_extraction.text import TfidfVectorizer
#List of questions and answers
qa_pairs = {
"What is a function in Python?": "In Python, a function is a block of code that can be reused multiple times with different input parameters t... |
<filename>test/src/components/molecules/Article/index.js
import React from 'react';
function Article(props) {
return <article>{props.children}</article>;
}
export default Article;
|
import unittest
from si import amp
class TestAmp(unittest.TestCase):
def test_no_key(self):
with self.assertRaises(amp.AmpError) as ex:
amp.Amp("", "amp_agents")
self.assertEqual("'key' can't not be empty", str(ex.exception))
def test_no_amp_agents(self):
with self.assertR... |
package testdemo.junit5demo;
import io.qameta.allure.Feature;
import io.qameta.allure.Owner;
import io.qameta.allure.Story;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;
import java.tex... |
package com.yin.springboot.user.center.server.service;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.yin.springboot.user.center.mapper.OauthAccessTokenMapper;
import com.yin.springboot.user.center.domain.OauthAccessToken;
import com.yin.springboot.us... |
fn try_find_cached<'a>(
&self,
id: impl AsRef<oid>,
buffer: &'a mut Vec<u8>,
pack_cache: &mut impl crate::cache::DecodeEntry,
) -> Result<Option<(git_object::Data<'a>, Option<crate::data::entry::Location>)>, Self::Error> {
// Search for the cached entry based on the provided ID
match pack_cache.... |
package com.imooc.scala.batch.transformation
import org.apache.flink.api.scala.ExecutionEnvironment
/**
* cross๏ผ่ทๅไธคไธชๆฐๆฎ้็็ฌๅกๅฐ็งฏ
* Created by xuwei
*/
object BatchCrossScala {
def main(args: Array[String]): Unit = {
val env = ExecutionEnvironment.getExecutionEnvironment
import org.apache.flink.api.scala._
... |
<gh_stars>1-10
#ifndef CORE_GRAPHICS_RAY_H_
#define CORE_GRAPHICS_RAY_H_
#include <core-math/matrix4x4.h>
#include <core-math/matrix3x3.h>
namespace ml {
template<class FloatType>
class Ray
{
public:
Ray()
{
}
inline Ray(const vec3<FloatType> &o, const vec3<FloatType> &d) {
m... |
<reponame>lananh265/social-network<filename>node_modules/react-icons-kit/feather/zapOff.js<gh_stars>1-10
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.zapOff = void 0;
var zapOff = {
"viewBox": "0 0 24 24",
"children": [{
"name": "polyline",
"attribs": {
"poin... |
#!/bin/sh
# Directory we run from: blah/contrast.app/Contents/MacOS
mydir=`dirname "$0"`
# Extra quoting required because $dirname may have spaces and double-quotes get
# eaten below.
scriptcmd="cd \\\"${mydir}/../../..\\\" ; \\\"${mydir}/contrast\\\" ; exit"
osascript \
-e 'tell application "Terminal"' \
-e 'activa... |
#!/bin/bash
#
# Copyright (c) 2010 Yahoo! Inc. 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 required by app... |
<reponame>PetukhovVictor/compiler2<filename>src/Compiler/VM/Deep/strings.py<gh_stars>1-10
# -*- coding: utf-8 -*-
from ..Helpers.types import Types
from ..Helpers.base import dbstore, dbload
from ..Helpers.loop import Loop
from ..Helpers.commands import Dup, Store, Push, Mul, DMalloc, Load, Compare, DBStore, Add, DBLo... |
#!/bin/sh
SCRIPT="$0"
echo "# START SCRIPT: $SCRIPT"
while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done
if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRI... |
#!/bin/bash
# update docsy
git submodule update --init --recursive
# get most recent changes of docsy
# git submodule update --remote --merge
# install npm dependencies
yarn install
# build
# HUGO_ENV="production", enables google Analytics
env HUGO_ENV="production" hugo -D
# container registry
REGISTRY='quay.io/myc... |
#!/bin/sh
curl -H "Content-Type: application/json" --data '{"build": true}' -X POST https://registry.hub.docker.com/u/classpip/classpip-services/trigger/$DOCKER_HUB_TOKEN/
|
#!/usr/bin/env bash
##
# @license Copyright 2017 Google Inc. 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 required by ap... |
# frozen_string_literal: true
RSpec.configure do |config|
config.disable_monkey_patching!
config.profile_examples = 10
config.order = :random
# Many RSpec users commonly either run the entire suite or an individual
# file, and it's useful to allow more verbose output when running an
# individual spec fil... |
<reponame>alekitto/atlante-js
import Decorator, { DecoratorInterface } from './DecoratorInterface';
import Request from '../Request';
export default
class UrlDecorator extends implementationOf(Decorator) implements DecoratorInterface {
private readonly _baseUrl: string;
/**
* Constructor.
*/
con... |
<filename>src/styles/buttons.js
import { css } from "@emotion/css";
const defaultBtn = css`
.color-scheme-light & {
--btn-background-color: #cfcfcf;
--btn-text-color: #000;
--btn-hover-background-color: #bcbcbc;
--btn-hover-text-color: #000;
--btn-focus-box-shadow-color: #90caf9;
--btn-select... |
module RomLoader::ScrapingError
class NoElementFound < StandardError
end
end |
const countOccurrences = (arr, find) => {
let count = 0;
arr.forEach((item) => {
if (item === find) {
count++;
}
});
return count;
}; |
#!/usr/bin/env bash
set -ex -o pipefail
echo 'travis_fold:start:BUILD'
# Setup environment
cd `dirname $0`
source ./env.sh
cd ../..
$(npm bin)/tsc -v
$(npm bin)/tsc -p tools
cp tools/@angular/tsc-wrapped/package.json dist/tools/@angular/tsc-wrapped
node dist/tools/@angular/tsc-wrapped/src/main -p modules
node dist/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.