text stringlengths 27 775k |
|---|
/*
* Copyright (c) 2003-2015 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
#include "... |
Rails.application.routes.draw do
get 'pages/home'
resources :posts
root 'pages#home'
end
|
class AddSubmissionCountToCommodityPrices < ActiveRecord::Migration[6.1]
def up
add_column :commodity_prices, :submission_count, :integer, default: 0
CommodityPrice.where.not(submitted_by: nil).find_each do |price|
price.update(submission_count: 1)
end
end
def down
remove_column :commodity... |
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Added
### Fixed
### Changed
### Deprecated
## [0.10.3]
### Fixed
- ProcState.Get() doesn't fail under Windows when it cannot obtain process owne... |
"""
Author: nplan
https://github.com/nplan/gym-line-follower
"""
import numpy as np
from shapely.geometry import LineString
def interpolate_points(points, nb_out_points=None, segment_length=None):
"""
Interpolate points in equal intervals over a line string defined with input points.
Exactly one out of n... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System;
using ValidateTransformDerive.Framework.Transformation;
namespace ValidateTransformDerive.Framework.Tests.Transformation
{
[TestClass]
public class TransformationServiceTests
{
protected readonly Exception GeneralExceptio... |
require 'closure-compiler'
module JBundle
class Compiler
BUILDABLE_FILES = ['.js']
attr_reader :name, :src_dir, :dir
def initialize(name, file_list, config)
@config, @file_list, @src_dir = config, file_list, config.src_dir
@name, @dir = parse_name(name)
end
def ... |
// Package script is just here so that we can keep binary dependencies out of vendor.
// There needs to be at least one go file in script for dep to work here.
package script
|
const {
DependentTypes,
} = require('enterprise-edition');
console.log('DependentTypes:', Object.keys(DependentTypes));
console.log('Works fine!');
|
{"timestamp": 1565672265.0, "score_count": 108391, "score": 8.11}
{"timestamp": 1565143950.0, "score_count": 108079, "score": 8.11}
{"timestamp": 1565141748.0, "score_count": 108079, "score": 8.11}
{"timestamp": 1565136449.0, "score_count": 108079, "score": 8.11}
{"timestamp": 1564529832.0, "score_count": 107878, "scor... |
import 'model.dart';
import 'objectbox.g.dart'; // created by `flutter pub run build_runner build`
/// Provides access to the ObjectBox Store throughout the app.
///
/// Create this in the apps main function.
class ObjectBox {
/// The Store of this app.
late final Store store;
/// Two Boxes: one for Tasks, one ... |
import ctypes
FILE_ATTRIBUTE_HIDDEN = 0x02
def hideFiles(folderPath):
print '[*] Hiding files'
try:
ctypes.windll.kernel32.SetFileAttributesW.argtypes = (ctypes.c_wchar_p, ctypes.c_uint32)
ret = ctypes.windll.kernel32.SetFileAttributesW(folderPath.encode('string-escape'), FILE_ATTRIBUTE_HIDDEN)... |
---
title: Perseus Library
description: Jedná se o databázi obsahující na 2356 antických děl a 3145 edicí a
překladů řeckých a latinských textů.
tags:
- 2021-11-13_zdroje
- 2021-11-14_historie
- antika
website: https://scaife.perseus.org/
cover: /images/perseus-cover.jpg
---
|
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
readonly PID="$1"
sudo cat "/proc/${PID}/environ" | tr '\000' '\n'
|
; stack64.asm - Implements jmp_stack and init_stack for the x86-64 architecture
.CODE
; Overview of MS x64 calling convention
; Parameters:
; Integer Params:
; rcx, rdx, r8, r9
; Floating Point Params:
; xmm0, xmm1, xmm2, xmm3
; Volatile Registers:
; rax, r10, r11, xmm4, xmm5
; Non-v... |
#==============================================================================
# Copyright (C) 2019-present Alces Flight Ltd.
#
# This file is part of FlightConfig.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which is available at
# <https://ww... |
# Summary
The Lua 5.1 standard library, abridged.
# Description
The **base** library is loaded directly into the global environment. It contains
the following items from the [Lua 5.1 standard
library](https://www.lua.org/manual/5.1/manual.html#5):
$FIELDS
# Fields
## \_G
### Summary
The global environment.
### Des... |
package ch.leadrian.samp.kamp.core.api.entity
import ch.leadrian.samp.kamp.core.api.entity.id.MenuId
import ch.leadrian.samp.kamp.core.runtime.SAMPNativeFunctionExecutor
import ch.leadrian.samp.kamp.core.runtime.callback.OnPlayerSelectedMenuRowReceiverDelegate
import io.mockk.Runs
import io.mockk.every
import io.mockk... |
const getters = {
userName: state => state.app.userName,
isOpen: state => state.app.isOpen,
routeMatched: state => state.app.routeMatched
}
export default getters
|
/* See LICENSE file for license and copyright information */
#include <libzathura/plugin-api.h>
#define _STR(x) #x
#define STR(x) _STR(x)
#define TEST_PLUGIN_DIR_PATH STR(_TEST_PLUGIN_DIR_PATH)
#define TEST_PLUGIN_FILE_PATH STR(_TEST_PLUGIN_FILE_PATH)
#define TEST_FILE_PATH STR(_TEST_FILE_PATH)
const char* get_plugi... |
package com.airwallex.android.redirect
import android.app.Activity
import android.content.Context
import android.content.Intent
import com.airwallex.android.core.*
import com.airwallex.android.core.exception.AirwallexCheckoutException
import com.airwallex.android.core.model.NextAction
import com.airwallex.android.redi... |
var table = d3.select('body').append('table')
.style("border-collapse", "collapse")
.style("border", "2px black solid");
var rows = ["put your rows here"]
// headers
table.append("thead").append("tr")
.selectAll("th")
.data(rows[0])
.enter().append("th")
.text... |
package io.github.project_travel_mate.utilities.helper
import com.blongho.country_data.Country
import com.blongho.country_data.World
class FlagHelper {
companion object {
fun retrieveFlagDrawable(country: String) : Int {
return World.getCountryFrom(country).flagResource
}
}
} |
-- hcullide -- simple test program
-- Author: Matthew Danish. License: BSD3 (see LICENSE file)
--
-- Simple test of the Cullide library. There is a bunch of spheres
-- bouncing around an enclosed space. They turn red when they
-- collide. You can change direction of orthographic projection using
-- x, y, and z keys... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace LoRaWan.Tests.Unit.LoRaTools.Regions
{
using System.Collections.Generic;
using System.Linq;
using global::LoRaTools.Regions;
using static LoRa... |
require 'spec_helper'
describe "Quill" do
it "is at release 0.0.1" do
Quill::VERSION.should == "0.0.1"
end
end
|
#!/usr/bin/env ruby
#
# Put description here
#
#
#
#
#
require 'swig_assert'
require 'primitive_types'
include Primitive_types
raise RuntimeError if val_uchar(255) != 255
fail = 0
begin
val_uchar(-1)
rescue RangeError
fail = 1
end
fail = 0
begin
val_uchar(256)
rescue RangeError
fail = 1
end
raise Run... |
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
namespace FoxTunes
{
public class DraggableSlider : Slider
{
public DraggableSlider()
{
this.IsMoveToPointEnabled = true;
}
publ... |
/*
* Copyright 2013 Google 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... |
SELECT mov.id, mov.name
FROM movies mov
INNER JOIN genres gen ON mov.id_genres = gen.id
WHERE gen.description = 'Action'; |
package edu.galileo.android.photofeed.photolist.ui;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.design.widget.Snackbar;
import android.support.v4.app.Fragment;
import android.support.v7.widge... |
remote_directory '/tmp/remote_test_dir' do
source 'remote_dir'
owner 'root'
group 'root'
mode '0755'
action :create
end
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
namespace FolderSize
{
class FolderSize
{
static void Main(string[] args)
{
using(StreamWriter writer = new StreamWriter("output.txt"))
{... |
import { useQuasar } from 'quasar'
import { Ref } from '@vue/runtime-core/dist/runtime-core'
import AltSourceDialog from '../components/AltSourceDialog.vue'
export default function useAltSources (
altSources: Ref<Record<string, string>>,
title: Ref<string>,
newSources: Ref<Record<string, string> | undefined>
) {... |
package es.joseluisgs.kotlinspringbootrestservice.controllers.categorias
import es.joseluisgs.kotlinspringbootrestservice.config.APIConfig
import es.joseluisgs.kotlinspringbootrestservice.dto.categorias.CategoriaCreateDTO
import es.joseluisgs.kotlinspringbootrestservice.dto.categorias.CategoriaProductosDTO
import es.j... |
// Copyright 2017, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package tabletenv
import (
"golang.org/x/net/context"
)
type localContextKey int
// LocalContext returns a context that's local to the process.
func LocalConte... |
package com.example.plugins.koin
import com.example.plugins.koin.modules.defaultModules
import io.ktor.server.application.Application
import io.ktor.server.application.install
import org.koin.ktor.ext.Koin
/**
* Installs and configures the [Koin] plugin.
*/
fun Application.configureKoin() {
install(KoinPlugin) ... |
## Example implementation personal user settings
Application with an example of implementing personal user settings via json 'settings' field.
|
# -*- encoding: utf-8 -*-
# 2016/01/23
# ・公開
# agi1, agi2が指定されてない場合
if ARGV.size < 2
puts "Usage: #{File.basename(__FILE__, ".*")} agi1 agi2 [number=100000]"
exit
end
$option = {
agi1: ARGV[0].to_i,
agi2: ARGV[1].to_i,
number: ARGV.size > 2 ? ARGV[2].to_i : 100000,
}
# $psdq7rnd_state = 0
... |
using NHibernate;
using System;
using TauCode.Domain.NHibernate.Tests.Domain.Users;
namespace TauCode.Domain.NHibernate.Tests.Base
{
public static class TestHelper
{
public static readonly UserId AkId = new UserId("ca2c8f0a-00eb-49a3-b495-cd14fe830b0f");
public static readonly UserId OliaId = ... |
package httpserver
import (
"log"
"os"
"github.com/ilgooz/service-http-server/httpserver/server"
"github.com/ilgooz/service-http-server/x/xhttp"
"github.com/sirupsen/logrus"
)
// requestEventData is request event's data.
type requestEventData struct {
// SessionID is the of corresponding request..
SessionID s... |
--26. Write a SQL query to display the minimal employee salary by department and job title
-- along with the name of some of the employees that take it.
USE TelerikAcademy
GO
SELECT empl.FirstName + ' ' + empl.LastName AS 'Employee Name',
empl.Salary,
dep.Name AS 'Department',
empl.JobTitle
FROM Employees empl... |
#!/usr/bin/python
""" CstrikeRCON: An HLDS1-based Cstrike servers RCON querying library """
""" fully tested with Counter-Strike 1.6 (unit test included [test.py]) """
__author__ = "Alex Vanyan"
__copyright__ = "Copyright 2013 alex-v.net"
__version__ = "1.0.1"
__status__ = "First Release"
# exceptions...
#... |
import { Route, Switch, Redirect } from "react-router-dom";
import AboutPage from "../components/AboutPage";
import LoginPage from "./LoginPage";
import NotFoundPage from "../components/NotFoundPage";
import React from "react";
import { hot } from "react-hot-loader";
import { Dashboard } from "./Dashboard";
import Proj... |
package kekmech.ru.feed
import android.content.Context
import androidx.appcompat.app.AlertDialog
import androidx.lifecycle.LifecycleOwner
import kekmech.ru.coreui.adapter.BaseAdapter
interface IFeedFragment : LifecycleOwner {
var requiredAction: String
var onEditListener: () -> Unit
var bottomReachList... |
Write-Host '----> pwsh.ps1' -ForegroundColor Green
##
## Azure PowerShell Modules for PowerShell Core
##
# https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azurermps-6.13.0
Install-Module -Verbose -AllowClobber -Force Az
# To uninstall, see here:
# https://docs.microsoft.com/en-us/powershell/azur... |
# compile closure test source file
$(npm bin)/tsc -p .
# Run the Google Closure compiler java runnable with zone externs
java -jar node_modules/google-closure-compiler/compiler.jar --flagfile 'scripts/closure/closure_flagfile' --externs 'lib/closure/zone_externs.js'
# the names of Zone exposed API should be kept corre... |
package com.airbnb.common.ml.strategy.params
import org.apache.spark.sql.Row
import com.airbnb.common.ml.strategy.config.TrainingOptions
trait StrategyParams [T] extends Serializable {
def apply(update: Array[Double]): StrategyParams[T]
def params: Array[Double]
def getDefaultParams(trainingOptions: Training... |
namespace Microsoft.Extensions.DependencyInjection
{
internal record KeyedBridge<T> (T Target, string Key) : IKeyedBridge<T> where T : class;
}
|
<?php
namespace App\Services;
use App\Serie;
use Illuminate\Support\Facades\DB;
use App\Season;
class CreatorSerie
{
public function createSerie(string $nameSerie,
int $qtdSeasons,
int $epBySeason): Serie
{
DB::beginTransaction();
$serie = Serie::create(['name' =... |
-- ToMidi2: a module for allowing multiple tracks with the same GM instrument.
-- Author: Donya Quick
--
-- The writeMidi2 function allows use of the CustomInstrument constructor
-- in a very specific way to permit two tracks that have the same instrument.
-- The expected format is:
--
-- CustomInstrument "GMInstrument... |
// JS
import Ajv from 'ajv'
import { readFileSync } from 'fs'
import { location, jsonSchema } from '@pixelpony/shared'
// Type
import { Share } from '@pixelpony/shared'
let ajv = new Ajv()
let schemaToValidator = <T>(schema: () => object | boolean) => {
let validFunc: Ajv.ValidateFunction | undefined
let valid... |
import { expect, fixture, html, waitUntil } from '@open-wc/testing';
import sinon from 'sinon';
// eslint-disable-next-line no-restricted-imports
import { serialize } from '../../utilities/form';
import type SlTextarea from './textarea';
describe('<sl-textarea>', () => {
it('should pass accessibility tests', async (... |
package edu.utexas.clm.reconstructreader.reconstruct;
import edu.utexas.clm.reconstructreader.Utils;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import java.awt.geom.AffineTransform;
import java.util.ArrayList;
public class ReconstructSection {
private final int index, ... |
# TypeScript React MobX Inversify example
## Installation
```
git clone https://github.com/Corey-Maler/mobx-inversify-example
cd mobx-inversify-example
npm i
node server.js
```
Open http://localhost:8888
## Preview
 |
import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter_mentions/flutter_mentions.dart';
import 'package:flutter_progress_hud/flutter_progress_hud.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:pattern_formatter/pattern_formatter.dart';
... |
require 'concurrent'
require 'dry/configurable/config'
require 'dry/configurable/error'
require 'dry/configurable/nested_config'
require 'dry/configurable/argument_parser'
require 'dry/configurable/config/value'
require 'dry/configurable/version'
# A collection of micro-libraries, each intended to encapsulate
# a comm... |
import React from 'react';
import { styled, withTheme } from '@storybook/theming';
import { StorybookLogo } from '@storybook/components';
export const StorybookLogoStyled = styled(StorybookLogo)({
width: 'auto',
height: '22px !important',
display: 'block'
});
export const Img = styled.img({
width: 'auto',
hei... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BookStore.UI.Forms;
using BookStore.Entity.Concrete;
using BookStore.Business.Functions;
namespace... |
# -*- coding: utf-8 -*- #
module Rouge
module Lexers
class Velocity < TemplateLexer
title 'Velocity'
desc 'Velocity is a Java-based template engine (velocity.apache.org)'
tag 'velocity'
filenames '*.vm', '*.velocity', '*.fhtml'
mimetypes 'text/html+velocity'
id = /[a-z_]\w*/i... |
from thehive4pyextended import TheHiveApiExtended
from st2common.runners.base_action import Action
from thehive4py.models import CaseTask
__all__ = [
'ChangeStatusTaskByJobIdAction'
]
class ChangeStatusTaskByJobIdAction(Action):
def run(self, job_id, status):
task_id = self.action_service.get_value(n... |
-- | Binary relational operations on 'S.Select's, that is, operations
-- which take two 'S.Select's as arguments and return a single 'S.Select'.
--
-- All the binary relational operations have the same type
-- specializations. For example:
--
-- @
-- unionAll :: S.Select (Field a, Field b)
-- -> S.Select (Fie... |
$(function() {
$('#mainLoadingDiv').prepend(disabledDiv);
sendJSONAjaxRequest(false, 'getData/getAllApprovedRequests.html', null, fnViewRequestSuccess, null);
});
function fnViewRequestSuccess(responseJSON) {
$('#disabledDiv').remove();
if (responseJSON.result) {
$('#viewRequestTable').show();
... |
# Define constants for program, PS way of doing this to make the real constants??
$CONFIG_FILE_NAME="counters.json"
$PARAM_FILE_NAME="param.json"
# Read configuration file which is encoded in JSON into PSObject
# How to handle if the JSON is not properly formed. What is returned, null?
$config = (Get-Content $CONF... |
package Crixa::Channel;
$Crixa::Channel::VERSION = '0.10';
# ABSTRACT: A Crixa Channel
use Moose;
use namespace::autoclean;
use Crixa::Queue;
use Crixa::Exchange;
with qw(Crixa::HasMQ);
has id => ( isa => 'Str', is => 'ro', required => 1 );
sub BUILD { $_[0]->_mq->channel_open( $_[0]->id ); }
sub exchange {
m... |
package com.sandoval.besttodoapp.ui.fragments
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.NavController
import androidx.navigation.fragment.findNavController
import com.sandoval.besttodoapp.R
import com.sandova... |
from libgenget import *
book_name = input("Enter book name\n")
get_book(book_name) |
#pragma once
#include "StateMachine.h"
#include "EndState.h"
#include "SpritesManager.h"
#include "AudioManager.h"
#include "MilkShakeCookie.h"
#include "Tools.h"
#include <LibSchedule>
#include <LibLOG>
using PC = Pokitto::Core;
using PD = Pokitto::Display;
using PB = Pokitto::Buttons;
constexpr int FOOD_FOR_LEVELU... |
package com.ficture7.aasexplorer;
import android.os.AsyncTask;
import com.ficture7.aasexplorer.model.Subject;
import java.util.HashMap;
import java.util.Map;
public class AppExplorerSaver extends ExplorerSaver {
private Map<Subject, SaveResourcesAsyncTask> saveResourcesAsyncTaskMap;
private Sav... |
#!/usr/bin/env bash
# Prepares the app archive and manifest for upload:
# - removes previous app archive
# - creates app archive from core files
# - copies the archive and manifest to the accessible Chrome OS
# download folder, ready for upload via the Cockpit
# Then uses 'cf push' to deploy directly.
appname=$(yq... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... |
#!/bin/bash
# trap "kill 0" EXIT
if [ -z "$2" ]
then
gpu=0
else
gpu=$2
fi
echo Running on GPU$gpu
export PHYSX_GPU_DEVICE=$gpu
let gpu_port=$gpu+5
# echo "Port:" "$gpu_port"00x
sleep 1
counter=0
amount=$1
while [ $counter -lt $amount ]
do
# echo $counter
echo Connecting server to port "$gpu_port"00$counter ... |
<?php
namespace App\Models;
use App\Events\DepositStatusUpdate;
use Illuminate\Database\Eloquent\Model;
class Deposit extends BaseModel
{
//
protected $table = 'deposits';
public function type()
{
return $this->belongsTo(DepositType::class, 'deposit_type_id');
}
public function stat... |
#ifndef LUPS_COMPILER_H
#define LUPS_COMPILER_H
#include "builtins.h"
#include "code.h"
#include "object.h"
#include <optional>
#include <unordered_map>
typedef std::string SymbolScope;
namespace scopes {
static const SymbolScope GlobalScope = "GLOBAL";
static const SymbolScope LocalScope = "LOCAL";
static const Sym... |
; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=pic -mtriple=armv7-pc-linux-gnueabi | FileCheck %s
@var = dso_local global i32 42
define dso_local i32* @foo() {
; CHECK: foo:
; CHECK: ldr r0, .L[[POOL:.*]]
; CHECK-NEXT: .L[[ADDR:.*]]:
; CHECK-NEXT: add r0, pc, r0
; CHECK-NEXT: bx lr
;... |
require 'rails_helper'
describe Item do
describe '#create' do
context 'can save' do
it "全てのバリデーションをクリアする場合は登録できること" do
item = build(:item)
expect(item).to be_valid
end
end
context 'can not save nil test' do
it "item_nameがない場合は登録できないこと" do
item = build(:item, ... |
//===--- BPF.cpp - Implement BPF target feature support -------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
```js
import { DOMHelper } from 'rsuite';
// or
import DOMHelper from 'rsuite/lib/DOMHelper';
```
|
package com.apps.pu.hibah.services;
import com.apps.pu.hibah.entity.Log;
import java.util.List;
public interface MyService {
Log addLog(Log log);
List<Log> getLogs();
void deleteLog(Log log);
}
|
---
template: page
title: Form
slug: form
socialImage: /media/icon.jpeg
draft: true
---
<style>
label{
padding:10px;
margin: -5px;
}
input[type=text] {
width: 100%;
padding: 10px 10px;
margin: 4px;
display: inline-block;
border: 1px solid #ccc;
border-radius: 8px;
box-sizing: border-box;
}
input[type... |
Puppet::Type.newtype(:vnx_nqm) do
@doc = "Manage EMC VNX Qos Settings."
ensurable
newparam(:name, :namevar => true) do
desc "The IOclass name"
validate do |value|
fail("IOclass name cannot exceed 64 characters") unless value.length <= 64
end
end
newproperty(:ioclass) do
d... |
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?='<?xml version="1.0" encoding="'.SITE_CHARSET.'"?>'?>
<rss version="2.0">
<channel>
<title><?=$arResult["NAME"]?></title>
<link><?=$arResult["URL"]?></link>
<description><?=$arResult["DESCRIPTION"]?></description>
<lastBuildDate><?=date("r")?></... |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... |
@include('admin.layouts.header')
<div class="container">
<title>Cập nhật lớp</title>
<h2 class="text-center" >Cập nhật lớp</h2>
<form style="margin:auto; text-align:center" method="POST" enctype="multipart/form-data">
@if(Session::has('error'))
<h3 align="center" style="color: #FF0000">{{Session::get('error')}... |
package openstack
import "github.com/consensusnetworks/go-diagrams/diagram"
type lifecyclemanagementContainer struct {
path string
opts []diagram.NodeOption
}
var Lifecyclemanagement = &lifecyclemanagementContainer{
opts: diagram.OptionSet{diagram.Provider("openstack"), diagram.NodeShape("none")},
path: "assets/... |
package com.sample.marvelgallery.data.network.dto
class DataWrapper<T> {
var data: DataContainer<T>? = null
} |
<?php
if(!empty($_POST['nom'])) {
session_start();
if (is_file("tournois.txt")) {
$tableauTournois = file('tournois.txt');
$tournoisAVerifier = [];
foreach ($tableauTournois as $index => $value) {
$tournoisAVerifier[$index] = explode('|', $value);
}
$c = 0... |
# we create a connection
(setq client (socket_connect "mulakus-MacBook-Pro.local" 2654))
# We then write something on the socket
(socket_write client "Ceci est un test")
|
#ifndef DEMO_PLF_DEMO_H
#define DEMO_PLF_DEMO_H
#include "GL/glew.h"
#include "ApplicationInterface.h"
class AnimatedModel;
class NavMeshAStar;
class SceneManager;
class Player;
class Frustrum;
class Entity;
class Material;
class Cube;
class Terrain;
class Monster;
class SceneNode;
class NavigationMe... |
#!/usr/bin/env node
/**
* © 2013 Liferay, Inc. <https://liferay.com> and Node GH contributors
* (see file: README.md)
* SPDX-License-Identifier: BSD-3-Clause
*/
import { run } from './cmd'
const verbose = process.argv.indexOf('--verbose') !== -1
const insane = process.argv.indexOf('--insane') !== -1
process.on(... |
#!/bin/bash
sudo yum install httpd -y
sudo chown vagrant:vagrant -R /var/www
sudo rpm -ivh https://artifacts.elastic.co/downloads/kibana/kibana-5.1.2-x86_64.rpm
sudo service kibana start
|
---
layout: post
title: My 2010 New Year's Resolutions
tags: Dreams And Thoughts,New Year'S Resolutions
---
I hear that it helps to sometimes write down your New Year's
resolutions. Because I usually fail to complete most of my resolutions
I figure that I should receive all and any the help that I can get.
1. Exercise... |
/*
* Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
*/
package play.api.db
import javax.inject.{ Inject, Provider, Singleton }
import scala.util.control.NonFatal
import play.api.{ Configuration, Logger }
/**
* DB API for managing application databases.
*/
trait DBApi {
/**
* All configure... |
import { Injectable } from '@nestjs/common';
import { S3 } from 'aws-sdk';
import { Readable } from 'stream';
import { ConfigService } from './config.service';
@Injectable()
export class AppService {
static get CONTENT_DISPOSITION(): string {
return 'inline';
}
static get ACL(): string {
... |
/** @jsx jsx */
import { jsx } from "theme-ui"
import { useTranslation } from "react-i18next"
import Layout from "../components/layout"
import SEO from "../components/seo"
export default () => {
const { t } = useTranslation("404")
return (
<Layout>
<SEO title={`404: ${t("notFound")}`} />
<div sx={... |
export default class FragmentKind {
public static readonly PREFIX = "PREFIX";
public static readonly SUFFIX = "SUFFIX";
public static readonly NGRAM = "NGRAM";
public static readonly TIME_INTERVAL = "TIME_INTERVAL";
public static readonly XYZ_TILE = "XYZ_TILE";
public static readonly IDENTITY = ... |
$version = (git describe --tags --dirty)
$date = Get-Date -UFormat "%m-%d-%Y"
$version_cpp = @"
#include "Version.h"
const char * Version::build_git_version = "$version";
const char * Version::build_date = "$date";
"@
$version_cpp > "Version.cpp"
|
#![allow(unused_variables, unused_must_use)]
extern crate sciter;
use sciter::dom::event::*;
use sciter::{Element, HELEMENT};
use sciter::video::{fragmented_video_destination, AssetPtr};
struct VideoGen {
thread: Option<std::thread::JoinHandle<()>>,
}
impl Drop for VideoGen {
fn drop(&mut self) {
println!(... |
package com.example.mp.retrofit
import com.subscribe.snpa.SNPA.models.*
import io.reactivex.Observable
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POS... |
import { WECUIComponent } from './component'
export type PickerSlotItem = {
slotIndex: number,
divider: boolean,
options?: any[]
}
export declare class WECPicker extends WECUIComponent {
title: string
slots: PickerSlotItem
onModalClose: boolean
itemCount?: number
itemHeight?: number
value?: any[]
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.