text stringlengths 1 1.05M |
|---|
def reverse_words(sentence):
words = sentence.split()
reversed_words = words[::-1]
return ' '.join(reversed_words)
sentence = "Hello World"
reversed_sentence = reverse_words(sentence)
print(reversed_sentence) |
<gh_stars>1-10
export enum LogLevel {
INFO = "INFO",
WARN = "WARN",
ERROR = "ERROR",
DEBUG = "DEBUG",
UNKNOWN = "UNKNOWN",
}
export function logLevelColor(logLevel: LogLevel): string {
switch (logLevel) {
case LogLevel.INFO:
return "#73BD15";
case LogLevel.WARN:
return "#E0A903";
ca... |
export default {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 32,
height: 32,
},
content: [
{
elem: 'path',
attrs: {
d:
'M28 26H4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2zM4 10v14h24V10z',
... |
<reponame>Site-Command/gravitee-management-rest-api
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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://w... |
angular.module('myApp').service('ConfigService', ['$http', '$q', 'baseApi', function ($http, $q, baseApi) {
var ConfigService = {};
var resourceUrl = '/api/admin-config';
function buildBaucisQuery(opts) {
var q ='?';
var prefix='';
if (opts.page === null && opts.blockSize === null) {
opts.pa... |
/*
* @Date: 2022-03-30 16:34:56
* @LastEditors: huangzh873
* @LastEditTime: 2022-04-02 10:47:18
* @FilePath: /vt-cesium2.0/src/store/modules/jt-cesium-vue/modules/locationbar/actions.ts
*/
import { ActionTree } from 'vuex'
import { RootState } from '@/store'
import type { State } from './state'
import { Locationb... |
export {default as configureCompression} from './configureCompression';
|
import React, { useState } from "react";
import { useDispatch } from "react-redux";
import tradeApi from "../../../../services/tradeApiClient";
import { showErrorAlert } from "../../../../store/actions/ui";
import useInterval from "../../../../hooks/useInterval";
import { Box, CircularProgress } from "@material-ui/core... |
docker build . -t 2022_terra_group1 |
<gh_stars>1-10
import App from "next/app";
import Head from "next/head";
import Router from "next/router";
import styles from "~/components/styles.module.scss";
import { inc, dec } from "~/components/hooks/use-nprogress";
import Header from "~/components/header";
import Footer from "~/components/footer";
Router.event... |
<filename>userdoc/html/search/defines_1.js
var searchData=
[
['error',['error',['../Misc_8h.html#a5924a4a2ac1a09a8c6679579dc22249e',1,'Misc.h']]]
];
|
#!/bin/bash
set -e
usage() {
cat <<EOF
Generate certificate suitable for use with an sidecar-injector webhook service.
This script uses k8s' CertificateSigningRequest API to a generate a
certificate signed by k8s CA suitable for use with sidecar-injector webhook
services. This requires permissions to create and a... |
#!/bin/bash
echo "Monosodium Glutamate version $MSG_VERSION" |
$(document).ready(function () {
"use strict";
var av_name = "RegularLangQuestionsFF";
var av = new JSAV(av_name);
var Frames = PIFRAMES.init(av_name);
// Load the config object with interpreter and code created by odsaUtils.js
var config = ODSA.UTILS.loadConfig({ av_name: av_name }),
interpret = confi... |
<filename>src/components/home/sections/characterisitcs.js
import React from 'react'
import { StaticQuery, graphql } from 'gatsby'
import Img from 'gatsby-image'
import { Title } from '../../utils'
const chars = [
{
imgIndex : 1,
title : 'Подхоящ за всеки тип кожа и косъм',
text : 'Сигурен и бърз, необхо... |
#!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")"; cd .. ; pwd -P )"
version=ds001705
nrm=${version}-download
####################
# Default Settings #
####################
appian_dir="/opt/APPIAN/"
source_dir="/opt/APPIAN/Test/$nrm"
target_dir="/opt/APPIAN/Test/out_${nrm}"
threads=1
use_docker=0
docker_image="tffunc... |
#!/bin/sh
sudo rm -rf /etc/goxlr
sudo mkdir /etc/goxlr
cd /etc/goxlr || exit 1
sudo git clone https://github.com/GoXLR-on-Linux/goxlr-on-linux.git || skip
cd goxlr-on-linux || exit 1
#Config location
CONFIG="$HOME/GoXLR.cfg"
#Create config if it doesn't exist
if [ ! -e $CONFIG ]; then
sudo cp "/etc/goxlr/goxlr-o... |
# Generated by Powerlevel10k configuration wizard on 2021-04-21 at 23:04 CDT.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 23931.
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
# 12h time, angled separators, sharp heads, blurred tails, 2 lines, dotted, full frame,
... |
import { Component, OnInit, Input, Inject, OnDestroy, ViewChild, TemplateRef } from "@angular/core";
import { TableColumn } from "@swimlane/ngx-datatable";
import { SparqlQueryResult } from "../sparql-models";
import { ISparqlServiceInjectionToken, ISparqlService } from "../sparql.service.contract";
import { Subscripti... |
package au.gov.ga.geodesy.igssitelog.domain.model;
import java.time.Instant;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import org.apache.commons.lang.builder.EqualsBuilder;
/**
* http://sopac.ucsd.edu/ns/geodesy/doc/igsSiteLog/equipment/2004/baseEquipmentLib.xsd:baseSensorEquipmentType.... |
#!/bin/bash
usage() {
echo "Usage: $0 [-c <channel name>] [-g <orgs of peers>] [-n <chaincode name>] [-v <chaincode version>]" 1>&2
exit 1
}
while getopts ":c:n:v:g:" o; do
case "${o}" in
c)
c=${OPTARG}
;;
n)
n=${OPTARG}
;;
v)
v=${OPTARG}
;;
g)
g=${OPTARG}
;;
*)
usage
;;
esac
done
shift $((... |
package com.wyp.materialqqlite.qqclient.protocol.protocoldata;
public class MessageSender {
public static final int BUDDY = 0;
public static final int GROUP = 1;
public static final int SESS = 2;
public static final int SYSTEM = 3;
public int m_nType; // 消息发送者类型
public int m_nGroupCode; // 群代码
public int ... |
#!/bin/bash
# Run MODE within singularity container
outdir=$1
mode PYTHON_NUMPY PYTHON_NUMPY ${outdir}/MODEConfig -outdir ${outdir} |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR && COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -p datahub up --build |
print('hello world this is my first program !', end='****')
print('i am batman')
print('this is so amazing !!!', end='______')
print('hello !!!!', end='\n')
print('this is in next line ')
|
'use strict';
const webpack = require('webpack');
const path = require('path');
module.exports = {
mode: 'production',
entry: {
Web3Controller: './dist/Web3Controller.js',
Web3UITools: './dist/UITools.js',
Web3Bundle: './dist/bundle.js'
},
output: {
path: path.resolve(_... |
#!/usr/bin/env bash
cp ../README.md docs/index.md
cp -r ../_readme docs/
cp ../CONTRIBUTING.md docs/CONTRIBUTING.md
cp ../LICENSE docs/LICENSE.md
python autogen.py
mkdocs serve |
DOCKER_CONTENTS = """
#################################### CATKIN ####################################
RUN mkdir -p ${HOME}/catkin_ws/src && ln -s ${HOME}/%s ${HOME}/catkin_ws/src/.
RUN cd ${HOME}/catkin_ws \\
&& apt-get -o Acquire::ForceIPv4=true update \\
&& /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash ... |
package com.limpoxe.fairy.manager;
/**
*use PluginStatusChangeListener instead
*/
@Deprecated
public interface PluginCallback {
public static final String ACTION_PLUGIN_CHANGED = "com.limpoxe.fairy.action_plugin_changed";
public static final String EXTRA_TYPE = "type";
public static final String EXTRA_ID ... |
import json
import logging
from copy import deepcopy
from urllib3 import Retry
from binascii import unhexlify
try:
from json.decoder import JSONDecodeError
except ImportError:
JSONDecodeError = ValueError
import requests
import datetime as dt
from dateutil import parser
from future.utils import raise_from
from... |
#!/bin/sh
set -e
wget -c http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar -O codegen.jar
rm -rf src/app/swagger
java -jar codegen.jar generate \
-l typescript-angular \
-o src/app/swagger \
-i swagger.yaml
|
import { DefineEvent } from "../utils/decorators/DefineEvent";
import { BaseEvent } from "../structures/BaseEvent";
@DefineEvent("ready")
export class ReadyEvent extends BaseEvent {
public execute(): void {
this.client.logger.info(
`${this.client.shard ? `[Shard #${this.client.shard.ids[0]}]` :... |
import UIKit
import Photos
class ViewController: UIViewController {
private let imagePicker = UIImagePickerController()
private var timelineView = UIScrollView()
override func viewDidLoad() {
super.viewDidLoad()
setupImagePicker()
setupTimelineView()
}
... |
package org.mnode.jot4j.dynamodb.command;
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMapper;
import net.fortuna.ical4j.vcard.Property;
import net.fortuna.ical4j.vcard.VCard;
import org.mnode.jot4j.dynamodb.mapper.Card;
import org.mnode.jot4j.dynamodb.mapper.CardOrg;
import java.util.ArrayList;
impo... |
def binary_search(arr, target):
lower_bound = 0
upper_bound = len(arr) - 1
while lower_bound <= upper_bound:
mid = ( lower_bound + upper_bound ) // 2
if arr[mid] < target:
lower_bound = mid + 1
elif arr[mid] > target:
upper_bound = mid -1
else:
... |
#!/bin/bash
# Docunment : https://kubernetes.github.io/ingress-nginx/deploy/#bare-metal
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install ingress-nginx ingress-nginx/ingress-nginx
|
#!/bin/bash
SEED=$1
N=$2
OUTPUT_DIR=$3
EXTRA_ARGS=$4
for i in $(seq 1 "$N") ; do
# shellcheck disable=SC2086
python3 -m simulation.utils.machine_learning.data.extract_simulated_images \
--seed "$SEED$i" \
--output_dir "$OUTPUT_DIR" \
--image_topic /camera/image_raw $EXTRA_ARGS;
done
# Remove dupl... |
<filename>chest/gui/swing/src/main/java/net/community/chest/swing/component/label/JLabelReflectiveProxy.java<gh_stars>1-10
package net.community.chest.swing.component.label;
import java.lang.reflect.Method;
import javax.swing.JLabel;
import net.community.chest.awt.dom.converter.KeyCodeValueInstantiator;
import net.c... |
public class GraphicalObject {
private float x;
private float y;
private float width;
private float height;
private Text text;
public boolean hasText() {
return text != null;
}
public void setPosition(float x, float y) {
this.x = x;
this.y = y;
if (hasTe... |
<gh_stars>0
def solve_9_keypad(steps):
code = []
position = 5
for step in steps:
for c in step:
if c.upper() == "L":
if ((position - 1) % 3) != 0:
position -= 1
elif c.upper() == "R":
if(position % 3) != 0:
... |
install_dir=$1
if [ -d "$install_dir" ] ; then
echo "Cleaning ${install_dir}..."
# Delete files what we don't want
# rm -rf "$install_dir/bin"
rm -rf "$install_dir/share"
rm -rf "$install_dir/lib/cmake"
rm -rf "$install_dir/lib/pkgconfig"
fi
|
def install_recovery_hd(existing_partitions: list) -> list:
existing_partitions.append('Recovery HD')
return existing_partitions |
#!/bin/bash
# ------------------------------------------------------------------------------------
# Tutorial: How using if-else work
# ------------------------------------------------------------------------------------
# You can write condition same as in real life
# For example, if the person in front of me is Sara... |
from django.contrib import admin
from .models import Toy
class ToyAdmin(admin.ModelAdmin):
list_display = ['title', 'location']
admin.site.register(Toy, ToyAdmin)
|
<filename>src/genie/libs/parser/nxos/tests/test_show_arp.py<gh_stars>0
# Python
import unittest
from unittest.mock import Mock
# ATS
from ats.topology import Device
# Metaparset
from genie.metaparser.util.exceptions import SchemaEmptyParserError, \
SchemaMissingKeyError
# Parser
from genie.libs.parser.nx... |
awk -F"|" '{print$7}' log_terminal_CDG.csv > ssh_infected_keys.txt
|
#!/bin/bash
DISABLE_FILE=/home/pi/scripts/github/media_frame/data/disable
if [ ! -f $DISABLE_FILE ]; then
touch /home/pi/scripts/github/media_frame/data/music/is_active
###
mosquitto_pub -h localhost -t "frame/fade_time" -m "3"
mosquitto_pub -h localhost -t "frame/time_delay" -m "10800"
mosquitt... |
<reponame>orz365/http-mpcloud
const Collection = require('./Collection')
const Storage = require('./other/Storage')
const Collections = require('./Collections')
const logger = require('./utils/logger')
const {getToken, getNewToken} = require('./utils/token')
const HttpService = require('./utils/HttpService')
const Img ... |
def countComments(code_snippet):
count = 0
in_comment = False
i = 0
while i < len(code_snippet):
if code_snippet[i:i+2] == "/*" and not in_comment:
in_comment = True
count += 1
i += 1 # Skip the next character to avoid counting nested comments
elif co... |
from flask_restful import Api
from .routes import (
VmachineEvent,
VnicEvent,
VdiskEvent,
VmachineControl,
AttachDevice,
VmachineEventItem,
VmachineCallbackEvent,
)
def init_api(api: Api):
api.add_resource(VmachineEvent, "/api/v1/vmachine")
api.add_resource(VmachineEventItem, "/api/v... |
from SimpleITK import ReadImage, WriteImage, GetArrayFromImage
from SimpleElastix import SimpleElastix
def perform_rigid_registration(fixed_image_path, moving_image_path):
# Load the input images
fixed_image = ReadImage(fixed_image_path)
moving_image = ReadImage(moving_image_path)
# Create a SimpleEla... |
#!/bin/sh
echo "Fixing permissions (just in case)"
chown -R xcauth:xcauth /etc/xcauth.conf /var/*/xcauth
echo "Stopping xcauth.service, if running"
systemctl -q stop xcauth.service
echo "(Re-)starting listening sockets"
cd /etc/systemd/system && for i in xc*.socket; do
systemctl start $i
done
|
<reponame>leongaban/redux-saga-exchange
import * as React from 'react';
import block from 'bem-cn';
import { ITab } from 'shared/types/ui';
import './Tabs.scss';
interface IProps {
tabs: ITab[];
}
const b = block('tabs');
class Tabs extends React.PureComponent<IProps> {
public render() {
const { tabs } = t... |
from dateutil.rrule import *
from prometheus_client import Histogram
from company_jira import jira
from util import *
from jira_util import *
PROJECT_TIME_HISTOGRAM = Histogram(
'project_time_days',
'Lead time in days.',
['project', 'metric'],
buckets=[
0.5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12,... |
import {
GraphQLSchema,
GraphQLObjectType,
GraphQLString,
} from 'graphql';
const PostType = new GraphQLObjectType({
name: 'Post',
fields: {
id: { type: GraphQLString },
title: { type: GraphQLString },
content: { type: GraphQLString },
}
});
const QueryType = new GraphQLObjectType({
name: 'Query',
fields: ... |
<reponame>opentaps/opentaps-1
/*******************************************************************************
* 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 own... |
<reponame>hofman-p/alenvi-api<gh_stars>1-10
const Boom = require('@hapi/boom');
const get = require('lodash/get');
const AttendanceHelper = require('../helpers/attendances');
const translate = require('../helpers/translate');
const { language } = translate;
const list = async (req) => {
try {
const { courseSlot... |
# shellcheck shell=bash
# OUT/ERR/DBG
#UseFD 97
#UseFD 99
Describe "string.lib:"
Include "../ammlib"
Before "ammLib::Require string"
UseFD 98
typeset -a _demoArrayWords=(hello world pouet coin lol rofl mao)
Describe "pattern matching:"
Describe "ammString::Contains"
It "returns success if a simple strin... |
// Java code
public int multiply(int a, int b)
{
int c = a * b;
return c;
} |
package com.yxyhail.rn.baserlib.openapi;
import android.app.Application;
import android.content.Context;
import androidx.multidex.MultiDexApplication;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.yxyhail.rn.baserlib.BuildCon... |
#!/bin/bash
./he_base test.eqn 1
./he_base test.eqn 6
./he_base test.eqn 11
./he_base test.eqn 16
./he_base test.eqn 21
./he_base test.eqn 26
./he_base test.eqn 31
./he_base test.eqn 36
./he_base test.eqn 41
|
#!/bin/bash
echo $*
sdfgfdgfdgfdgdg |
import asyncio
import websockets
async def hello(websocket, path):
greeting = await websocket.recv()
print(f"< {greeting}")
async def hello_server():
server = await websockets.serve(hello, '127.0.0.1', 8765)
await server.wait_closed()
asyncio.get_event_loop().run_until_complete(hello_server())
asyncio.get_event_... |
package com.atguigu.gmall.pms.service;
import com.atguigu.gmall.pms.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gmall.pms.entity.AttrEntity;
import com.atguigu.core.bean.PageVo;
import com.atguigu.core.bean.QueryCondition;
/**
* 商品属性
*
* @author lixianfeng
* @email <... |
import React, { Component } from "react";
import * as styles from "./uploadButton.scss";
export default class uploadButton extends React.Component {
render() {
return <div className={styles.purple}>upload</div>;
}
}
|
# Implementation of the post method in the Tornado web handler class
@tornado.web.authenticated
def post(self):
topic_id = self.get_argument('topic_id')
hashtag = self.get_argument('hashtag')
save_type = self.get_argument('save_type')
save_type = True if save_type == 'true' else False
topic_hashtag(... |
var add = function(n1, n2) {
return n1 + n2;
}
var divide = function(n1, n2) {
return n1 / n2;
}
var subtract = function(n1, n2) {
return n1 - n2;
}
var multiply = function(n1, n2) {
return n1 * n2;
}
var PI = 3.1415;
export {
add,
divide,
subtract,
multiply,
PI
}
|
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
#!/bin/bash
kubeadm init \
--apiserver-advertise-address="192.168.50.10" \
--apiserver-cert-extra-sans="192.168.50.10" \
--node-name master \
--pod-network-cidr=192.168.51.0/16
mkdir -p /root/.kube
cp -i /etc/kubernetes/admin.conf /root/.kube/config
kubectl get nodes
#kubectl create -f https://docs.p... |
cp index.html public
cp main.js public
cp *.svg public
cp style.css public
firebase deploy
|
#!/bin/bash
source $ROSWSS_BASE_SCRIPTS/helper/helper.sh
if [ "$#" -eq 0 ]; then
echo "Usage: broadcast <Command>"
exit 1
fi
command=$@;
if [[ -z "$SINGLE_ROBOT_HOSTNAMES" || -z "$SINGLE_ROBOT_USERS" ]]; then
hosts=($ROBOT_HOSTNAMES)
users=($ROBOT_USERS)
else
hosts=($SINGLE_ROBOT_HOSTNAMES)
users=($S... |
<gh_stars>10-100
src = Split('''
utils_httpc.c
utils_epoch_time.c
utils_list.c
utils_net.c
utils_timer.c
''')
component = aos_component('libmisc', src)
component.add_macro('DEBUG')
component.add_includes('.', '../sdk-impl', '../LITE-log', '../LITE-utils')
component.add_component_depe... |
import pandas as pd
def dummy_variable_encoding(data, variable_name):
# Convert the specified categorical variable to a pandas Categorical type
data[variable_name] = pd.Categorical(data[variable_name])
# Encode the categorical variable into dummy variables
dummy_vars = pd.get_dummies(data[variable... |
import { expect } from 'chai';
import {
addEventListenersToPuppeteerPage, EventName, loadCachedTestBed,
takeScreenshot, TestBed
} from '../../../puppeteer-tests/util';
import { ElementHandle } from 'puppeteer';
import { positiveDigest, negativeDigest, untriagedDigest } from '../cluster-page-sk/test_data';
impor... |
#!/bin/sh
export CVMFS_PLATFORM_NAME="slc6-i386"
export CVMFS_TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
# source the common platform independent functionality and option parsing
script_location=$(cd "$(dirname "$0")"; pwd)
. ${script_location}/common_test.sh
# reset SELinux context
echo -n "restoring SELinux contex... |
<reponame>dadeke/alexa-skill-onibus-bh<gh_stars>1-10
const speaks = require('../speakStrings');
const { setLastAccess } = require('../util');
/* *
* Tratamento de erros genéricos para capturar qualquer sintaxe ou erros
* de roteamento.
* Se você receber um erro informando que a cadeia do manipulador de solicitação
... |
class IndexOutOfBoundsError(LookupError):
def __init__(self, index):
super().__init__(f'Index {index} is out of bounds')
class CustomList:
def __init__(self, size):
self.size = size
self.data = [None] * size
def set_value(self, index, value):
if index < 0 or index >= self.s... |
<reponame>Sensis/text-field-suggester
$(document).ready(function () {
describe('TextFieldSuggester', function () {
var textField,
maxSuggestions = 4,
suggester,
currentValue = '';
function arrowDown() {
textField.trigger(new jQuery.Event('keydown', { keyCode: 40 }));
textField.trigger(new jQuer... |
#!/usr/bin/env bash
start_sender(){
/app/sendmsg/sender start &
}
start_receiver(){
/app/sendmsg/receiver start --addr-jaeger=$JAEGER_ADDR --addr-monitor=$MONITOR_ADDR
}
start_sender
sleep 1
start_receiver
|
cfg_name=cfg_train_lgcn_fashion
config=lgcn/configs/$cfg_name.py
export CUDA_VISIBLE_DEVICES=0
export PYTHONPATH=.
# train
python lgcn/main.py \
--config $config \
--phase 'train'
# test
load_from=data/work_dir/$cfg_name/latest.pth
python lgcn/main.py \
--config $config \
--phase 'test' \
--load_... |
/**
* Created by yanbo.ai on 2014/9/25.
* Player scripts
*/
function Player(options) {
// check jquery APIs
if (typeof $ === "undefined") {
console.error("Jquery can't found.")
}
// check file APIs support.
if (!(window.File && window.FileReader && window.FileList && window.Blob)) {
... |
<reponame>Project-XPolaris/YouComuic-Studio<gh_stars>1-10
import React, { useEffect, useState } from 'react';
import { GridContextProvider, GridDropZone, GridItem, swap } from 'react-grid-dnd';
import PageItem from '@/pages/Create/components/PageItem';
import { Page } from '@/pages/Create/model';
interface PageCollec... |
#!/bin/bash
if [ ! -f /apps/hostpath/hive/.already_setup ]; then
${HADOOP_HOME}/bin/hdfs dfs -mkdir /tmp
${HADOOP_HOME}/bin/hdfs dfs -mkdir -p /user/hive/warehouse
echo "HDFS dirs for hive successfully created ."
${HADOOP_HOME}/bin/hdfs dfs -mkdir g+w /tmp
${HADOOP_HOME}/bin/hdfs dfs -chmod g+w... |
/**
* @author <NAME>
*
* @module model/User
* @description This module contains the Javascript class representation of the User table
* in the database.
* @requires module:model/database
* @requires module:sequelize
*/
'use strict';
const Sequelize = require('sequelize');
const { sequelize } = require('./data... |
<reponame>martijnvandijk/th06<gh_stars>0
var searchData=
[
['debug_20logging_20support',['Debug logging support',['../debug.html',1,'']]],
['display_5fstatistics',['display_statistics',['../class_r_t_o_s.html#ace9fc0f1b35c1383b1050222706f3b70',1,'RTOS']]]
];
|
#!/bin/bash
##==============================================================================
#title :remove-api-gateway.sh
#description :This script will execute Ansible playbook to remove API Gateway
#author :jakub.marciniak@makemycloud.eu
#date :02272019
#version :0.1
#usage ... |
<gh_stars>100-1000
import { css, keyframes } from 'styled-components';
export const heartbeat = keyframes`
0%, 100% { opacity: 0.1; }
50% { opacity: 0.25; }
`;
export default {
heartbeat: css`
1.5s ${heartbeat} ease infinite;
`,
};
|
export const SELECT_CITY = 'SELECT_CITY';
export const REQUEST_CITY = 'REQUEST_CITY';
export const RECEIVE_CITY = 'RECEIVE_CITY';
export const REQUEST_CITY_FAIL = 'REQUEST_CITY_FAIL';
export const selectCity = (city) => {
return {type: SELECT_CITY, city};
};
export const requestCity = (userId) => {
return {ty... |
<filename>onecms.sql
/*
Navicat MySQL Data Transfer
Source Server : vagrant
Source Server Version : 50546
Source Host : localhost:33066
Source Database : onecms
Target Server Type : MYSQL
Target Server Version : 50546
File Encoding : 65001
Date: 2015-12-22 18:54:46
*/
... |
<reponame>Slaying-Gitcoin/graphology
/**
* Graphology Simple Size Unit Tests
* ==================================
*/
var assert = require('assert');
var Graph = require('graphology');
var simpleSize = require('../../graph/simple-size.js');
describe('simpleSize', function () {
it('should throw if given wrong argum... |
package chylex.hee.entity.technical;
import java.util.List;
import java.util.Random;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import chylex.hee.system.abstractions.Vec;
import chylex.hee.system.a... |
<reponame>tuanalumi/vue-reactive-provide
import { mount, createLocalVue } from '@vue/test-utils'
import { createGlobalMixin } from '../../lib/mixins/GlobalMixin'
const testProd = !!process.env.VUE_APP_TEST_PROD
const ReactiveProvide = testProd
? require('../../dist/VueReactiveProvide.common').default
: require('..... |
<gh_stars>0
package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.DriveSubsystem;
public class TurnDegrees extends CommandBase {
private final double degrees;
private final double speed;
private final DriveSubsystem drive;
public TurnDegrees(double degrees... |
<filename>lib/discovery/client-discovery.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, rej... |
#!/bin/bash
current_script_path=$(dirname $0)
export N_FOLDS="2"
export DATA="$current_script_path/../data/train/"
export RESULTS="$current_script_path/../results/config/"
python -O $current_script_path/../scripts/generate_experiments.py
|
def intersection(list1, list2):
result = []
for element in list1:
if element in list2:
result.append(element)
return result
intersection(list1, list2) // Output: [3, 5] |
package types
type SetPinCommentRequestBody struct {
PinComment string `json:"pin_comment"`
}
|
// SPDX-License-Identifier: MIT
//
// Copyright (C) 2021 <NAME>. All Rights Reserved.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree or at
// https://spdx.org/licenses/MIT.html
// Package tag provides the static tag strings to OPAQUE.
pac... |
<reponame>xNerhu/class-bot
import { config } from 'dotenv';
import * as express from 'express';
import { WolframClient } from 'node-wolfram-alpha';
import { ChatButtons } from 'fb-chat-api-buttons';
config();
import { init as initApi, listen, setOptions } from './api';
import { handleMessage } from './handler';
impor... |
<reponame>AndroidKitKat/sneedacity
/**********************************************************************
Sneedacity: A Digital Audio Editor
Benchmark.h
<NAME>
**********************************************************************/
#ifndef __SNEEDACITY_BENCHMARK__
#define __SNEEDACITY_BENCHMARK__
class wxW... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.