text stringlengths 27 775k |
|---|
---
title: "[javascript] 기초"
excerpt: "html과 css를 배우고나서."
categories:
- javascript
tags:
- [javascript, js]
toc: true
toc_sticky: true
date: 2021-10-01
last_modified_at: 2021-10-01
---
# javascript란
객체기반의 스크립트 언어.
웹 문서에서 사용자와 다양한 상호작용 위한 언어이다.
백엔드 프로그램인 node.js등을 통해 다양한 프로그래밍에 응용되고있다.
javascript와 ecmasc... |
---
layout: post
title: 2908. 상수
categories: [string]
---
[백준 2908번 문제보러가기](https://www.acmicpc.net/problem/2908)
```cpp
#include<iostream>
#include<string>
using namespace std;
int change(int x) {
string change = to_string(x);
string temp = change;
for (int i = 0; i < change.length(); i++) {
temp[change.le... |
#!/bin/sh
echo To: dummy@example.com
echo From: dummy@example.com
echo "Subject: Raspberry Pi [$HOSTNAME] - Rootkit-detection-log: $(date)"
echo
echo "Raspberry Pi [$HOSTNAME] - Rootkit-detection-log: $(date)"
echo
echo
echo ✓ Initiating packages update...........
echo ---------------------------------------
nice -n 19... |
type XPTInfo
sasversion::String
operatingsystem::String
dtcreated::DateTime
dtmodified::DateTime
end
function Base.show(io::IO, x::XPTInfo)
println(io, " SAS Version: ", x.sasversion)
println(io, "Operating system: ", x.operatingsystem)
println(io, " Created: ", x.dtcreated)
... |
<?php
namespace Tests\Feature\Backstage;
use App\Http\Livewire\Backstage\PostShow;
use App\Post;
use App\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Livewire\Livewire;
use Tests\TestCase;
class PostRemovalTest extends TestCase
{
use RefreshDatabase;
/** @test */
public function users_ca... |
using SteganographyApp.Commands;
using System.Windows.Input;
namespace SteganographyApp.ViewModel
{
public class MainWindowVM : BaseVM
{
private BaseVM _selectedViewModel = new EncryptionVM();
public BaseVM SelectedViewModel
{
get { return _selectedViewModel; }
... |
# frozen_string_literal: true
require './lib/settings'
# Help with Settings during tests by creating a default configuration file
module SettingsHelper
attr_reader :config_file
def create_test_settings_file(parent = '.')
remove_test_settings_file
@config_file = File.join parent, Settings.config_file
... |
(in-package :litterae)
;; Enable lsx syntax in compile time
(eval-when (:compile-toplevel)
(lsx:enable-lsx-syntax))
(defun has-attr? (attr)
"Return true if the attribute `attr' holds a value, false otherwise."
(not (str:empty? (funcall attr))))
(lsx:deftag seo-head (&key title
(descr... |
dotnet publish
$currentDir = Get-Location
$source = "$currentDir\bin\Debug\netcoreapp2.0\publish"
$destination = "$currentDir\bin\publish.zip"
$subscriptionName = "Visual Studio Premium with MSDN"
$websitename = "bigsby-sp-core"
if (Test-Path $destination) {
Remove-Item $destination
}
Add-Type -assembl... |
(ns price-watcher.history-test
(:require [clojure.test :refer :all]
[price-watcher.history :as history])
(:import (java.util UUID)))
(defn uuid [] (str (UUID/randomUUID)))
(def empty-store (history/init))
(deftest creates-empty-store
(is (empty? (:recent empty-store))))
(deftest stores-price-by-ti... |
@extends('layouts.app')
@section('main-content')
@section('contentheader_title')
Crear Grupo
@endsection
<div class="container">
@include('common.errors')
{!! Form::open(['route' => 'groups.store']) !!}
@include('groups.fields')
{!! Form::close() !!}
</div>
@endsection
|
#!/bin/bash
yum -y update
yum -y install centos-release-openshift-origin39 epel-release
yum -y install origin-clients nfs-utils python36 python36-tools nano python-passlib python2-passlib
reboot |
<?php
session_start();
unset($_SESSION['sanpham'][$_GET['id']]);
header('Location: giohang.php');
?> |
package it.be.energy.util;
import java.io.FileReader;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import com.opencsv.CSVReader;
import it.be.energy.model.Comune;
import i... |
from datetime import datetime, time
import numpy as np
from rqalpha.environment import Environment
from rqalpha.utils.datetime_func import convert_dt_to_int, convert_date_to_date_int
from rqalpha.mod.rqalpha_mod_fxdayu_source.data_source.common import OddFrequencyDataSource
from rqalpha.mod.rqalpha_mod_fxdayu_source.... |
part of 'calculator_bloc.dart';
@immutable
abstract class CalculatorEvent extends Equatable{}
class AgeCalculatorDataAdded extends CalculatorEvent{
final DateTime fromDate;
final DateTime toDate;
AgeCalculatorDataAdded(this.fromDate, this.toDate);
@override
// TODO: implement props
List<Object> get prop... |
package org.nakedobjects.plugins.hibernate.objectstore.persistence.oidgenerator;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import org.junit.Test;
public class HibernateOidEquals {
@Test
public void testEqualsObject() {
final HibernateOid one ... |
/* GdkPixbuf RGBA C-Source image dump 1-byte-run-length-encoded */
#define POKY_IMG_ROWSTRIDE (1024)
#define POKY_IMG_WIDTH (256)
#define POKY_IMG_HEIGHT (58)
#define POKY_IMG_BYTES_PER_PIXEL (4) /* 3:RGB, 4:RGBA */
#define POKY_IMG_RLE_PIXEL_DATA ((uint8*) \
"\222\377\377\377\330\10\377\377\377\327\377\377\377\312\... |
# frozen_string_literal: true
require 'spec_helper'
describe EventsHelper, type: :helper do
let(:conference) { create(:conference) }
let(:event) { create(:event_full, program: conference.program) }
let(:my_vote) { 3 }
let(:max_rating) { 5 }
let(:fraction) { my_vote.to_s + '/' + max_rating.to_s }
setup do... |
#!/usr/local/bin/bash
#
# $Id: mk_flux_menu.sh 18 2011-03-09 21:47:56Z mjeffe $
#
# Another bug-ugly utility from Matt's code archive.
#
# Add an entry for each server found in ~/.wmx/servers/ to the fluxbox menu
#
#set -x
basedir=$HOME/.wmx/servers
out=$basedir/fluxbox_servers.menu
all=$basedir/fluxbox_servers.menu.... |
# Milkdown

> Milkdown is a WYSIWYG markdown editor framework.
>
> :baby_bottle: Here is the [repo] (right click to open link). \
> We ~~only support commonmark~~. GFM is also supported!
You can check the output markdown text in **two columns editing**.
- Features
- [x] 📝 **WYS... |
# prints the number of MB written to disks over the uptime
function checkDiskWrite() {
awk '/sd/ {print $3"\t"$10 / 2 / 1024}' /proc/diskstats
}
clessFunc() {
pygmentize -g $1 | less -R
}
clessFunc_lnr() {
pygmentize -g -O style=colorful,linenos=1 $1 | less -R
}
a() {
awk "{print \$$1}"
}
alias g='grep'
a... |
package model
import "go-common/library/time"
// TvPriceConfig is tv vip pay order
type TvPriceConfig struct {
ID int64 `form:"id" json:"id"`
PID int64 `form:"pid" json:"pid" gorm:"column:pid"`
Platform int8 `form:"platform" json:"platform" validate:"required"`
ProductName string ... |
# Basics
This section will get you started with using Python and you'll be able
to learn more about whatever you want after studying it.
1. [What is programming?](/basics/what-is-programming )
2. [Installing Python](/basics/installing-python )
3. [Getting started with Python](/basics/getting-started )
4. [ThinkPyth... |
import 'package:meta/meta.dart';
import 'package:redux_undo/redux_undo.dart';
/// Test-Data: Variables
final int INITIAL_COUNTER = 0;
final String INITIAL_TITLE = 'initial Title';
/// Test-Data: Reducer function
int intReducer(int state, dynamic action) {
if (action is IncrementTestAction) {
return state + 1;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Page297
{
internal class Venus : PlanetMission
{
public Venus()
{
MilesToPlanet = 40000000;
RocketFuelPerMile = 100000;
RocketSpeedM... |
import { FunctionCov, ProcessCov, RangeCov, ScriptCov } from "./types";
/**
* Creates a deep copy of a process coverage.
*
* @param processCov Process coverage to clone.
* @return Cloned process coverage.
*/
export function cloneProcessCov(processCov: Readonly<ProcessCov>): ProcessCov {
const result: ScriptCov[... |
package org.jzy3d.demos.multiview2;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import org.jzy3d.chart.controllers.mouse.MouseUtilities;
import org.jzy3d.char... |
package ice
import (
"errors"
"testing"
"github.com/pion/stun"
)
func TestControlled_GetFrom(t *testing.T) { //nolint:dupl
m := new(stun.Message)
var c AttrControlled
if err := c.GetFrom(m); !errors.Is(err, stun.ErrAttributeNotFound) {
t.Error("unexpected error")
}
if err := m.Build(stun.BindingRequest, &c... |
for run in 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8344 8395 8396 8397 8398
do
cp /data1/dropbox/iceberg_r00${run}_sr01*.root .
done
|
# Kubeless UI
You can find the latest manifest for deploying the UI in the releases page of the kubeless-ui repository:
https://github.com/kubeless/kubeless-ui/releases
|
package com.github.satoshun.reactivex.webkit
import android.graphics.Bitmap
import android.net.http.SslError
import android.os.Build
import android.os.Message
import android.view.KeyEvent
import android.webkit.ClientCertRequest
import android.webkit.HttpAuthHandler
import android.webkit.SslErrorHandler
import android.... |
package com.sunny.grokkingalgorithms.fasttrack.treesandgraphs;
import com.sunny.grokkingalgorithms.ctci.c4.util.BinaryTreeNode;
import com.sunny.grokkingalgorithms.ctci.c4.util.TreeUtils;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;
/**
* Created by sundas on 6/9/2018.
*/
class ... |
import { constants, promises } from "fs";
import { relative, resolve } from "path";
import send from "send";
import { Config } from "../../../config";
import { logger } from "../../../lib/logger";
import { IApiContext } from "../../../types/App";
/** Streams a file from the Glacier content directory */
export async f... |
#!/usr/bin/env python
import sys
import os
from pyhocon import ConfigFactory as Cf
from wielder.util.util import replace_last
from data_common.dictionary import dictionary as d
companion_conf_function = """f'{os.path.realpath(__file__).replace(".py", ".conf")}'"""
def get_conf_root_dir():
print(sys.path)
... |
require 'datacraft/tools/version'
require 'datacraft/tools/basic/required'
require 'datacraft/tools/qa/required'
module Datacraft
module Tools
include Datacraft::Tools::Basic
include Datacraft::Tools::QA
end
end
|
package co.eventbox.event.listener
/**
* Created by Mahdi Darvishi.
* TEDxTehran | Copyrights 11/20/20.
*/
interface NewsOnClickListener {
fun onSelected(position: Int, url: String)
} |
// Copyright 2020 Anapaya Systems
//
// 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 i... |
<nav class="sidebar sidebar-offcanvas" id="sidebar">
<div class="user-info">
<div class="profile">
<img src="{{asset('images/user/'.$user->image)}}" alt="">
</div>
<div class="details">
<p class="user-name">{{Auth::user()->name}}</p>
<p class="designation">{{Auth::user()->u... |
class Record {
String name;
String address;
String contact;
String photo;
String url;
Record({this.name, this.address, this.contact, this.photo, this.url});
factory Record.fromJson(Map<String, dynamic> json) {
var record = Record(
name: json['name'],
address: json['address'],
... |
package com.assign.gen
import akka.actor.{AbstractLoggingActor, ActorRef, PoisonPill, Props}
import akka.event.LoggingReceive
import akka.routing.RoundRobinPool
import play.api.libs.json.JsValue
/**
* Created by Rahul Shukla on 2/4/17.
*/
case class Init(users: Int, freq: Int, duration: Double, video: String)
c... |
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import '../ast.dart';
import '../charcode.dart';
import '../inline_parser.dart';
import '../util.dart';... |
/// An error type which can represent multiple errors.
use std::{
any::Any,
error::Error as StdError,
fmt,
iter::FromIterator,
ops::{Index, IndexMut},
slice, vec,
};
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
pub struct Errors<T> {
errors: Vec<T>,
}
impl<T> Default for Errors<T> {
fn... |
import Translator from './Translator';
import { TranslatorConfig, Translations, LocaleData } from './types';
declare function configure(config?: TranslatorConfig): Translator;
declare function addTranslation(key: string, translations: string[]): void;
declare function addTranslations(translations: Translations): void;
... |
/*
* sum -- generate checksum
*/
#include <errno.h>
#include <stdio.h>
#define BUFSZ (20*512)
int err;
char *filename; /* used by error( ) */
extern errno;
main( argc, argv)
register char **argv;
{
register int fd;
if (*++argv == NULL) {
filename = "[stdin]";
sum( 0, (char *)0);
}
else
while (file... |
<?php
/**
* @package Yii2-Menu
* @author José Peña <joepa37@gmail.com>
* @link https://plus.google.com/+joepa37/
* @copyright Copyright (c) 2018 José Peña
* @license http://www.apache.org/licenses/LICENSE-2.0
* @version 1.0.0
*/
namespace gearsoftware\menu\controllers;
use gearsoftware\controllers\Base... |
import 'dart:io';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:huntapp/addlocation.dart';
import 'package:huntapp/containers/eventcontainer.dart';
import 'package:huntapp/conta... |
from django.views.generic import DetailView
from django.shortcuts import get_object_or_404
from .models import Page
class PageView(DetailView):
model = Page
def get_object(self, queryset=None):
slug = self.kwargs.get('slug')
if not slug:
slug = 'index'
return get_object... |
#include <stdio.h>
#include <stdlib.h>
typedef struct _nodo
{
int chiave;
struct _nodo* sx;
struct _nodo* dx;
struct _nodo* padre;
int P;
int A;
} nodo;
nodo* Inserisci(nodo* radice, int input)
{
if(radice == NULL)
{
nodo* nuovo = malloc(sizeof(nodo));
(*nuovo).chiave = input;
(*nuovo).sx = NULL;
(*nu... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Behat\Page\Checkout;
use Sylius\Behat\Page\SymfonyPage;
/**
* @author Arkadiusz Kr... |
#!/usr/bin/env ruby
require 'json'
STDOUT.sync = true
STDIN.each_line do |l|
begin
l = JSON(l.chomp)
puts({greetings: "from incrementer", msg: l["msg"], prev: l["num"], num: l["num"]+1}.to_json)
rescue StandardError => e
STDERR.puts e
end
end |
import type { NextPage } from 'next';
import PageTitle from 'ui/components/topo/topo';
import Biography from 'ui/components/information/biography/biography';
import Skills from 'ui/components/information/skills/Skills';
import Portfolio from 'ui/components/Portfolio/Portifolio';
import Contact from 'ui/components/cont... |
package ru.scoltech.openran.speedtest.parser
import java.io.IOException
import kotlin.jvm.Throws
class MultithreadedIperfOutputParser : IperfOutputParser {
@Throws(BadFormatException::class)
override fun parseSpeed(line: String): Long {
return regex.matchEntire(line)?.let {
it.groupValues[... |
git clone https://github.com/BES-QSIG/fge.git ./
git clone https://github.com/BES-QSIG/docs.git _docs_repo/
python script/build.py
jekyll build
htmlproof ./_site --only-4xx --disable-external
|
/*
* Copyright 2021 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
# Exercício 093:
'''Crie um programa que gerencie o aproveitamento de um jogador de futebol. O programa vai ler o nome
do jogador e quantas partidas ele jogou. Depois vai ler a quantidade de gols feitos em cada partida.
No final, tudo isso será guardado em um dicionário, incluindo o total de gols feitos durante o camp... |
--TEST--
PostgreSQL fetching default link automatically is deprecated
--EXTENSIONS--
pgsql
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
include('config.inc');
$db = pg_connect($conn_str);
// We don't care about warnings
ini_set('error_reporting', E_ALL&~E_WARNING);
// Special cases
pg_set_error_verbosit... |
using System;
namespace ClassLib.Interface
{
public class BillingDto
{
public int billingId { get; set; }
public int flightId { get; set; }
public int customerId { get; set; }
public int ticketId { get; set; }
public string arrivalCountry { get; set; }
public st... |
import { Component, Input, OnInit } from '@angular/core';
import { Comment } from '../../models/comment';
@Component({
selector: 'app-comment',
templateUrl: './comment.component.html',
styleUrls: ['./comment.component.css'],
})
export class CommentComponent {
@Input() comment: Comment;
@Input() post: strin... |
import Knex from "knex";
import { connectionConfig } from "./knexConfig";
(async () => {
const knex = Knex(connectionConfig);
try {
await knex.migrate.forceFreeMigrationsLock();
} catch (err) {
console.error(err);
process.exit(1);
}
process.exit();
})();
|
// Developed by Softeq Development Corporation
// http://www.softeq.com
using System.Collections.Generic;
using System.Text;
namespace Softeq.XToolkit.Common.Tests.Commands
{
public static class CommandsDataProvider
{
public const string DefaultParameter = "CanExecute";
public static IEnumera... |
/* eslint-disable react/prop-types */
import React, { useState } from "react";
import clsx from "clsx";
import { withStyles } from "@material-ui/core";
import { HvBaseDropdown, HvSelectionList, HvListItem, HvPanel, HvTypography } from "..";
const styles = (theme) => ({
base: {
"&$root": {
borderRadius: 2,... |
import 'package:flutter_postman_application/src/events/method_event.dart';
class MethodFactory {
static getMethod(MethodEvent method) {
switch (method) {
case MethodEvent.methodGet:
break;
case MethodEvent.methodPost:
break;
case MethodEvent.methodPut:
break;
case ... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace MedicationMngApp.Models
{
#region API Helpers
public class LoginAccountResult
{
[JsonProperty(PropertyName = "LoginAccountResult")]
public int result { get; set; }
}
#endregion //END... |
// This file was automatically generated from Atomic.kt by Knit tool. Do not edit.
package arrow.fx.coroutines.examples.exampleAtomic01
import arrow.fx.coroutines.*
suspend fun main() {
val count = Atomic(0)
(0 until 20_000).parTraverse {
count.update(Int::inc)
}
println(count.get())
}
|
// Copyright 2020 Fugue, 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 ... |
---
pid: '4753'
object_pid: '2995'
label: Bouquet of Flowers in a Chinese Vase (The Hague)
artist: janbrueghel
provenance_date: '1934'
provenance_location: Amsterdam
provenance_text: Galerie de Boer
collection: provenance
order: '0220'
---
|
package ru.r2cloud.jradio.dslwp;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.NoSuchElementException;
import org.junit.Test;
import ru.r2cloud.jradio.jy1sat.Jy1satSsdvPacketSourceTest;
impor... |
/* eslint-disable jsx-a11y/no-autofocus */
import React, { useRef, useEffect, useState, Dispatch, SetStateAction } from 'react';
import { RouteComponentProps } from 'react-router-dom';
import { AnimatePresence } from 'framer-motion';
import PayWithBitpay from '../../components/pay-with-bitpay/pay-with-bitpay';
import {... |
<?php
declare(strict_types=1);
namespace App\Entities\Prize;
class PrizeBonuses extends PrizeResource
{
public function __construct(private int $fromPoints, private int $toPoints)
{
parent::__construct();
}
public function getFromPoints(): int
{
return $this->fromPoints;
}
... |
This is a backup of Perl script from [old plugin wiki](https://wiki.jenkins.io/display/JENKINS/Plot+Plugin).
### Example Usage to generate detailed PMD reports
Following perl script generates more detailed "summaries" out of PMD report files.
```perl
#!/usr/bin/perl
my ($workspace, $baseDir, $prefix, $cyclomaticComp... |
# DayPicker
## Usage
```js
...
import { DayPicker } from '@panenco/ui';
const render = () => {
const [value, setValue] = React.useState(new Date());
const handleChange = (val) => {
setValue(val);
};
return (
<DayPicker
subTitle="Start date"
value={value}
onChange={handleCh... |
# frozen_string_literal: true
module DiscoursePostEvent
class EventsController < DiscoursePostEventController
skip_before_action :check_xhr, only: [ :index ], if: :ics_request?
def index
@events = DiscoursePostEvent::EventFinder.search(current_user, filtered_events_params)
respond_to do |format... |
/**
*
*/
package org.iman.Heimdallr.constants;
/**
* @author ey
*
*/
public class Parameters {
public static final String ID = "id";
public static final String IDS = "ids";
public static final String APP_ID = "appId";
public static final String APP_NAME = "appName";
public static final String... |
module MTLibcouchbase::Ext
# (Not documented)
#
# ## Fields:
# :cmdflags ::
# (Integer)
# :exptime ::
# (Integer)
# :cas ::
# (Integer)
# :key ::
# (KEYBUF)
# :hashkey ::
# (KEYBUF)
# :type ::
# (HttpTypeT) Type of request to issue. LCB_HTTP_TYPE_VIEW will issue a request
# ... |
setopt prompt_subst
ZPREZTODIR=${ZPREZTODIR:-${ZDOTDIR:-$HOME}/.zprezto}
if [[ ! -d $ZPREZTODIR/modules/prompt ]]; then
>&2 echo "Prezto module not found 'prompt'."
return 1
fi
# use the prezto built-in prompts as well
fpath=($ZPREZTODIR/modules/prompt/functions $fpath)
function {
setopt local_options extended_... |
package spinal.lib.misc
import spinal.core._
import scala.collection.mutable.ArrayBuffer
object HexTools{
def readHexFile(path : String, hexOffset : Int, callback : (Int, Int) => Unit) : Unit ={
import scala.io.Source
def hToI(that : String, start : Int, size : Int) = Integer.parseInt(that.substring(start,... |
//==================================================================
/// DVecOwn.h
///
/// Created by Davide Pasca - 2018/03/16
/// See the file "license.txt" that comes with this project for
/// copyright info.
//==================================================================
#ifndef DVECOWN_H
#define DVECOWN_H
#... |
#!/bin/bash
# If failed, try again!
# Repeat it at least three times.
rm -rf /tmp/PredictionDaemon
rm -f /tmp/PredictionDaemon.err
worker=$1
echo "Make sure your environment variable are properly set. e.g. $LLVM_THESIS_HOME"
function RestartDaemon {
rm -f /tmp/PredictionDaemon-Clang-$1.log
rm -f /tmp/PredictionDa... |
using UnityEngine;
public class PlayerSpawner : MonoBehaviour
{
public Settings gameSettings;
public PlayerInfo playerInfo;
public CameraController cam;
public Transform playerOneSpawnPos;
public Transform playerTwoSpawnPos;
[SerializeField] private GameObject CharacterWaterPrefab = null;
... |
import React, { Component } from 'react'
import {
Col, FormGroup, ControlLabel, Checkbox
} from 'react-bootstrap'
import Client from '../../ApiClient.js'
import Select from 'react-select'
import 'react-select/dist/react-select.css'
import '../Forms.css'
function AllPointsCheckbox(props) {
return (
<... |
# frozen_string_literal: true
require "fileutils"
require "yaml"
RESULT = "result/result.yml"
RESULT_DIR = "result"
RULES = "#{__dir__}/lib/codebreaker/rules.txt"
PLUS = "+"
MINUS = "-"
ARRAY_FOR_STATS = %w[hell medium easy].freeze
|
package org.runestar.client.api.overlay
import io.reactivex.disposables.Disposable
enum class Anchor {
TOP_LEFT,
TOP_RIGHT,
BOTTOM_LEFT,
BOTTOM_RIGHT,
;
fun add(overlay: Overlay): Disposable = Overlays.add(this, overlay)
} |
<?php
/**
* Copyright (c) 2015 · Kerem Güneş
* Apache License 2.0 · http://github.com/froq/froq-http
*/
declare(strict_types=1);
namespace froq\http;
use froq\common\object\StaticClass;
/**
* Util.
*
* @package froq\http
* @object froq\http\Util
* @author Kerem Güneş
* @since 4.0
* @static
*/
final cl... |
// Copyright 2018 Huan Du. All rights reserved.
// Copyright 2022 OOO SuperJob. All rights reserved.
// Licensed under the MIT license that can be found in the LICENSE file.
package sphinxql
import (
"fmt"
"testing"
"github.com/huandu/go-assert"
)
func TestFlavor(t *testing.T) {
a := assert.New(t)
cases := map... |
# frozen_string_literal: true
module Views
module Datatables
class DatatablesReport < ApplicationRecord
belongs_to :team
# this isn't strictly necessary, but it will prevent
# rails from calling save, which would fail anyway.
def readonly?
true
end
class << self
... |
declare float @llvm.minnum.f32(float %Val0, float %Val1l)
declare double @llvm.minnum.f64(double %Val0, double %Val1)
define float @foo(float %0) {
%2 = fadd float %0, 2.0
%3 = call float @llvm.minnum.f32(float %0, float %2)
ret float %3
}
; CHECK: ConcreteVal(poison=0, 32b, 3F)
define double @bar(double %0... |
package simplepool.base.abstracts;
/**
* @author XingGu_Liu
*
* All public methods should be thread safe
*
*/
public interface IObjPool<T> {
/**
* Take an object from idle queue.
* @return null if there is no idle object.
*/
T borrowObject();
/**
* Return object to idle queue
* @param obj
*/
... |
# frozen_string_literal: true
root = File.expand_path '..', __dir__
# Require the test object.
require 'bitaculous/thorify'
# Require the spec helper.
require 'spec_helper'
# Add additional requires below this line.
# Requires supporting Ruby files with custom matchers, macros etc. in `spec/support` and its subdir... |
import path from 'path';
export const EventName = {
push: 'push',
pullRequest: 'pull_request',
};
export const VersionFilepath = path.join(__dirname, '../VERSION.txt');
|
import { Test, TestingModule } from '@nestjs/testing';
import { PlayersService } from './players.service';
import { Environment } from '@/environment/environment';
import { Etf2lProfileService } from './etf2l-profile.service';
import { SteamProfile } from '../steam-profile';
import { GamesService } from '@/games/servic... |
SELECT min_val, max_val FROM pg_settings WHERE name = 'gp_resqueue_priority_cpucores_per_segment';
--
-- Test GUC if cursor is opened
--
-- start_ignore
drop table if exists test_cursor_set_table;
drop function if exists test_set_in_loop();
drop function if exists test_call_set_command();
-- end_ignore
create table t... |
package com.yourssu.storybook
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import com.yourssu.storybook.databinding.Activit... |
require('spec_helper')
describe('site to add and manage a venues and bands', :type => :feature) do
it('properly loads index page') do
visit('/')
expect(page).to have_content("Venues And Bands")
end
it('path to add a team') do
visit('/')
click_on('Add a new Venue')
expect(page).to have_conten... |
enum class E {
Foo, Bar, Baz
}
fun test(e: E) {
e.when<caret>
} |
<?php
/*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Manu Garcia <manugarciaes@gmail.com>
*/
namespace manugarciaes\SearchBundle\Repository;
use Elastica\Aggregation\A... |
/*********************************************************************************
* Copyright: (C) 2021 9305
* All rights reserved.
*
* Filename: transfer.h
* Description: The function of the file is realized by calling rc522 function
*
* Version: 1.0.0(04/16/2021)
* ... |
abstract type AbstractBlock{T<:Real} <: AbstractMatrix{T} end
const ZIGZAG = @SMatrix [
1 2 6 7 15 16 28 29
3 5 8 14 17 27 30 43
4 9 13 18 26 31 42 44
10 12 19 25 32 41 45 54
11 20 24 33 40 46 53 55
21 23 34 39 47 52 56 61
22 35 38 48 51 57 60 62
36 37 49 50 58 59 63 64
]
con... |
# CS20-S16-Lecture-04-14-Koc
Code from Guest lecture by Çetin Kaya Koç for CCS "Intro to CS for non
majors" course, April 14, 2016
|
/* Copyright 2019-2021 The MLPerf Authors. 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 applicable law or ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.