text stringlengths 27 775k |
|---|
@extends('layouts.admin')
@section('content')
<h1>Pagina admin.post.show</h1>
<p>Qui mostro il singolo post</p>
@dump($post)
<div class="post">
<h2>{{$post['title']}}</h2>
<p>{{$post['article']}}</p>
<h5>Autore: {{$post->user->name}}</h5>
<h5>Categoria: {{$post->category->name}}</h5>
<div class="... |
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter_firebaseauth/authentication/authentication_repository.dart';
class FirebaseAuthService {
FirebaseUser currentUser;
final UserRepository _userRepository;
FirebaseAuthService(this._userRepository);
Future<FirebaseUser> getInitialSignInS... |
---
title: "Don’t Stop Pretraining: Adapt Language Models to Domains and Tasks"
date: 2021-03-19
lastmod: 2021-03-19
draft: False
authors: ["Roymond Liao"]
categories:
- NLP
- Deep Learning
tags: ["BERT", "Fine-tune", "Pretraining"]
markup: goldmark
image:
placement: 2
caption: ""
focal_point: "Center"
... |
/****** Object: View [dbo].[V_Material_Location_Detail_Report] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[V_Material_Location_Detail_Report]
AS
SELECT ML.ID AS ID,
ML.Tag AS [Location],
MF.Freezer,
ML.Shelf,
ML.Rack,
ML.[Row],
ML... |
// =========================================================================
// Copyright 2020 EPAM Systems, 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.o... |
package net.optifine.shaders;
import java.util.ArrayDeque;
import java.util.Deque;
public class ProgramStack
{
private Deque<Program> stack = new ArrayDeque<>();
public void push(Program p)
{
this.stack.addLast(p);
}
public Program pop()
{
if (this.stack.isEmpty())
{
... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Hive Colony Framework
# Copyright (c) 2008-2020 Hive Solutions Lda.
#
# This file is part of Hive Colony Framework.
#
# Hive Colony Framework is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apach... |
var app = angular.module('app', ['socket.io']);
app.directive('ngShiftEnter', function () {
return function (scope, element, attrs) {
element.bind("keydown keypress", function (event) {
if(event.which === 13 && event.shiftKey) {
scope.$apply(function (){
scope... |
package ch.epfl.bluebrain.nexus.delta.sdk.model.projects
import ch.epfl.bluebrain.nexus.delta.rdf.Vocabulary._
import ch.epfl.bluebrain.nexus.delta.sdk.error.FormatError.{IllegalIRIFormatError, IllegalPrefixIRIFormatError}
import ch.epfl.bluebrain.nexus.testkit.EitherValuable
import io.circe.Json
import io.circe.parse... |
package com.iphayao.demo;
public interface Image {
String display();
}
|
<?php
namespace Amp\ByteStream\Test;
use Amp\ByteStream\IteratorStream;
use Amp\Iterator;
use Amp\PHPUnit\AsyncTestCase;
use function Amp\ByteStream\buffer;
class BufferTest extends AsyncTestCase
{
public function testBuffer()
{
$stream = new IteratorStream(Iterator\fromIterable(["abc", "def", "g"], ... |
#!/bin/bash
# Copyright (c) 2006-2013, 2016 Regents of the University of Minnesota.
# For licensing terms, see the file LICENSE.
# This script loads a database dump. No sanity checks. Use with care.
# Usage:
#
# ./db_load.sh my_ccpv2.dump sql_dest_db
# ./db_load.sh my_ccpv1.dump sql_dest_db v1
#
# To make a dump... |
# frozen_string_literal: true
require 'random_org/response/data'
module RandomOrg
module Response
# Usage response from Random.org API.
#
# @version 0.2.2
# @author Jan Lindblom <janlindblom@fastmail.fm>
# @!attribute [rw] status
# @return [String] a string indicating the API key's current... |
#!/usr/bin/env sh
# Copyright 2018 IBM Corporation
#
# 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 agre... |
package controller
import (
"github.com/GoAdminGroup/go-admin/context"
"github.com/GoAdminGroup/go-admin/modules/logger"
"github.com/GoAdminGroup/go-admin/plugins/admin/modules/guard"
"github.com/GoAdminGroup/go-admin/plugins/admin/modules/response"
)
// Delete delete the row from database.
// 透過id刪除資料後回傳code、dat... |
using System.Web.Hosting;
namespace Sdl.Web.Modules.Degrees51
{
/// <summary>
/// Degrees51PreloadClient
///
/// This class can be used by IIS with the autoStart settings (if available). If configured correctly
/// starting of the site through IIS should check/download the Lite version of the... |
package space.kscience.visionforge.examples
import kotlinx.html.*
import space.kscience.dataforge.context.Global
import space.kscience.dataforge.context.fetch
import space.kscience.visionforge.VisionManager
import space.kscience.visionforge.html.Page
import space.kscience.visionforge.html.formFragment
import space.ksc... |
import mongoose from 'mongoose';
import Hypergiant from 'hypergiant';
import Options from '../Options';
/**
* Handles database operations in mongodb or mysql.
*/
export default class Database {
/**
* The options passed to GameGuard on initialization.
*
* @property {Options}
*/
private _opt... |
<?php
namespace Komoju\Payments\Exception;
class KomojuExceptionBadServer extends \Magento\Framework\Exception\LocalizedException
{
public $httpCode;
public function __construct($msg, $httpCode = 400)
{
$this->httpCode = $httpCode;
if (is_string($msg)) {
parent::__construct(__... |
$NetBSD: patch-libraries_unix_System_Posix_Signals.hsc,v 1.2 2019/12/29 16:59:09 pho Exp $
Suppress linker warnings about compatibility syscall wrappers by using
"capi" instead of "ccall". In Haskell FFI, "ccall" is actually an
interface to C ABI rather than C API. That is, GHC generates direct
references to the symbo... |
# -*- coding: utf-8 -*-
import datetime as dt
from typing import Iterable, List, Any
from .expression import Variable, Expression
from ..span import FiniteSpan
from ..tag import Tag # , Category
from ..timespan import TimeSpan
DEFAULT_EVENT_DURATION = dt.timedelta(minutes=30)
class Event:
"""The purpose of th... |
class SearchController < ApplicationController
def find_objects_for_index
search_what = Group
if params[:project_uuid]
# Special case for "search all things in project":
@filters = @filters.select do |attr, operator, operand|
not (attr == 'owner_uuid' and operator == '=')
end
#... |
import { IsEmail, IsString } from 'class-validator';
import { IsNotEmpty } from '../../decorators/IsNotEmpty';
export class CreateTaskDto {
@IsNotEmpty()
username: string;
@IsString()
@IsEmail(undefined, { message: 'Невалидный email' })
@IsNotEmpty()
email: string;
@IsString()
@IsNotEmpty()
text: s... |
<?php
echo $this->element('design/header');
?>
<?php
echo $this->element('Acos/links');
?>
<?php
if ($run) {
if (count($logs) > 0) {
echo $this->Html->tag('p',__d('acl', 'The following actions ACOs have been pruned'));
echo $this->Html->nestedList($logs);
} else {
echo $this->Html->ta... |
import { extname } from 'path';
import { compile } from 'svelte';
import { createFilter } from 'rollup-pluginutils';
export default function svelte ( options = {} ) {
const filter = createFilter( options.include, options.exclude );
const extensions = options.extensions || [ '.html', '.svelte' ];
return {
name: ... |
var langData = langData || {};
langData['en'] = {
'帮助中心' : 'Help center',
'手机号如何绑定?' : 'How is the machine number bound?'
} |
# orgTASM
A repo to stash all TASM files that I've coded
* Use prepare.sh and specify file names to create files with boilerplate code
|
#!raku6
use v6;
use Test;
use HTTP::UserAgent;
use URI::Template;
use-ok('Sofa');
use Sofa;
ok(my $obj = Sofa.new, "create new object");
isa-ok($obj, Sofa, "right sort of thing");
ok($obj.^can('ua'), 'can ua');
isa-ok($obj.ua, HTTP::UserAgent, "ua is a HTTP::UserAgent");
isa-ok($obj.ua, Sofa::UserAgent, "ua is ... |
@{
}
<h2>@ViewBag.Title</h2>
<div>
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Left</button>
</div>
<div class="btn-group" role="group">
<button type=... |
using Newtonsoft.Json;
namespace Jojatekok.MoneroAPI.RpcUtilities
{
public class JsonError
{
[JsonProperty("code")]
public int Code { get; private set; }
[JsonProperty("message")]
public string Message { get; private set; }
}
}
|
var bipf = require('bipf')
var varint = require('varint')
var max_32bit = Math.pow(2, 32)
function abs(v) {
return v < 0 ? v + max_32bit : v
}
function update (v, string) {
v = v || 5381
v = (v * 33) ^ string.length
for(var i = 0; i < string.length; i++)
v = (v * 33) ^ string.charCodeAt(i)
return abs(v... |
// Copyright 2021 TiKV Project Authors. Licensed under Apache-2.0.
use crate::errors::Result;
pub trait FlowControlFactorsExt {
fn get_cf_num_files_at_level(&self, cf: &str, level: usize) -> Result<Option<u64>>;
fn get_cf_num_immutable_mem_table(&self, cf: &str) -> Result<Option<u64>>;
fn get_cf_pending_... |
require 'redlock'
# Cross-process locking using Redis.
class DistributedMutex
def self.synchronize(key, redis=nil, timeout=60, &blk)
self.new(key, redis, timeout).synchronize(&blk)
end
def initialize(key, redis=nil, timeout=60)
@key = key
@redis = redis || $redis
@lock_manager = Redlock::Client.... |
import 'dart:typed_data';
import 'package:dgtusb/dgtdecode.dart';
import 'package:dgtusb/protocol/Answer.dart';
import 'package:usb_serial/usb_serial.dart';
abstract class Command<T> {
int code;
Answer<T> answer;
Future<Uint8List> messageBuilder() async {
return Uint8List.fromList([code]);
}
Future<vo... |
/*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.widgets.factory
import dev.icerock.moko.widgets.FlatAlertWidget
import dev.icerock.moko.widgets.core.ViewBundle
import dev.icerock.moko.widgets.core.ViewFactoryContext
import dev.icerock.m... |
# Yolo series model
yolo v1 ~ v4 keras implement
# requirement
- tensorflow 2.4.1
- opencv-python
- numpy
|
import kotlin.reflect.KProperty
class Delegate<T>(val data: T) {
operator fun getValue(thisRef: Nothing?, prop: KProperty<*>): T = data
}
fun makeIntDelegate(t: Int): Delegate<Int> = Delegate(t)
fun <TT> makeDelegate(t: TT): Delegate<TT> = Delegate(t)
fun <M> materialize(): M = null!!
fun <M2> materialize2(): M2 ... |
---
layout: post
category: notes-effective-modern-c++
title: "Introduction"
---
C++11's most pervasive feature is probably **move semantics**,
and the foundation of it is **distinguishing expression that are rvalues from those that are lvalues**.
* To show how confusing rvalue vs lvalue could be, a parameter of rvalu... |
'''
Unittests/Exception/classes
___________________________
Unit tests for custom Exception classes.
:copyright: (c) 2015 The Regents of the University of California.
:license: GNU GPL, see licenses/GNU GPLv3.txt for more details.
'''
# load modules/submodules
import unittest
from xldlib.excepti... |
require 'spec_helper'
module VCAP::Services
module ServiceBrokers
module V2
module Errors
RSpec.describe 'ServiceBrokerConflict' do
let(:error_message) { 'error message' }
let(:response_body) { "{\"description\": \"#{error_message}\"}" }
let(:response) { double(code: 4... |
// Copyright (c) 2011, 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.
/// @assertion StreamController.broadcast({void onListen(), void onCancel(),
/// ... |
name 'chef-zephyr'
maintainer 'gsilantyev'
maintainer_email 'gsilantyev@griddynamics.com'
license 'Apache 2.0'
description 'Installs/Configures Zephyr plugin for JIRA'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.0.1'
recipe 'chef... |
package healthcheck
// EnableProvider enables the provider of healthcheck data
func EnableProvider(checker Checker, done <-chan struct{}) <-chan error {
return EnableHTTPProvider(checker, done)
}
|
require 'spec_helper'
RSpec.describe 'Trello::Notification#find' do
include IntegrationHelpers
before { setup_trello }
it 'find with notification string' do
VCR.use_cassette('notification_find_with_id') do
notification = Trello::Notification.find('5fa890adbf71bd13269ffdc5')
expect(notification)... |
using AutoMapper;
using Learn_FluentData.DTO;
using Learn_FluentData.Model;
namespace Learn_FluentData.Common
{
public class AutoMapperRegister
{
public static void Register()
{
AutoMapper.Mapper.Initialize(it =>
{
it.AddProfile<MapperProfile... |
module LambdaOmega.TypeCheck where
import LambdaOmega.Types
import Control.Monad (guard)
typeCheck :: (Eq a, Eq tv) => [(a, LamType tv)] -> Lam tv a -> Maybe (LamType tv)
typeCheck _ (Bool _) = pure BoolTy
typeCheck _ Unit = pure UnitTy
typeCheck cxt (Var v) = lookup v cxt
typeCheck cxt (Abs v ty e) = do
Proper <- ... |
<?php
class society_model extends CI_Model
{
public $SocietyName;
public $EmailId;
public $PASSWORD;
public $Address;
public $City;
public $State;
public $Pincode;
public $Modified;
public $Created;
function __construct(){
parent::__construct();
$this->load->model('EmailModel');
}
public function re... |
module XNI
module Types
ALLOWED_TYPES = [
:fixnum, :double,
:char, :uchar, :short, :ushort, :int, :uint, :long, :ulong,
:long_long, :ulong_long, :float, :bool, :cstring, :pointer
].freeze
end
CARRAY_DIRECTIONS = {
:in => Type::CArray::IN,
:out => Type::CA... |
package com.cleveroad.bootstrap.kotlin_rx_bus
import io.reactivex.Flowable
import io.reactivex.processors.PublishProcessor
object RxBus {
private val bus = PublishProcessor.create<Any>()
/**
* Send new event
*
* @param obj [Any]
*/
fun send(obj: Any) {
bus.onNext(obj)
}
... |
#!/usr/bin/env python
import rospy
from Phidget22.Phidget import *
from Phidget22.Devices.VoltageRatioInput import *
from std_msgs.msg import Float64
from geometry_msgs.msg import Vector3
import time
from threading import Thread
class force_sensor():
def __init__(self):
self.VR = [0.0, 0.0, 0.... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
---
date: "2019-02-18T00:00:00Z"
tags:
- Reading
title: 대체로 무해한 읽을거리 (2019-02-18)
---
- [Electron으로 데스크톱 앱을 개발한 경험](https://blog.outsider.ne.kr/1422)
조만간 익숙해질 것 같은 Electron 관련 시행착오를 조금은 덜어줄 것 같다.
- [동작하게 만들고, 제대로 만들고, 빠르게 만든다](http://jhrogue.blogspot.com/2019/01/b_19.html)
소프트웨어 개발의 기본 원칙이라는 걸 잘 알면서도 잘 안되는, 욕심 ... |
# frozen_string_literal: true
require 'fast_spec_helper'
require_relative '../../../../rubocop/cop/database/multiple_databases'
RSpec.describe RuboCop::Cop::Database::MultipleDatabases do
subject(:cop) { described_class.new }
it 'flags the use of ActiveRecord::Base.connection' do
expect_offense(<<~SOURCE)
... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
using Alword.Communigate.Logic.Command;
using Alword.Communigate.Logic.Utils;
namespace Alword.Communigate.Logic.Interop
{
public partial class CommunigateSender
{
public async Task<Mailbox[]> MailboxSync(MailboxSync sync)
{
var responses = await RequestHandler(sync);
if (responses.Any()) return Array.Emp... |
/*
* Copyright 2017-2020 Alfresco Software, Ltd.
*
* 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 ... |
import 'dart:async';
import 'package:flutter/cupertino.dart';
/// Handles commands, returns if command has been found.
typedef CommandHandler = Future<bool> Function(
TerminalController controller, String command, List<String> args);
enum TerminalMode { idle, waiting, requestInput }
class TerminalState {
fina... |
# DevRadar
Implementação do projeto da Semana Omnistack 10. Contendo um back-end Node.JS e um front-end com React.
|
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Builder.Luis;
using Microsoft.Bot.Builder.Luis.Models;
using Microsoft.Bot.Connector;
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
namespace ConversationFacadeBot.Dialogs
{
// Model Id == App Id that you'll f... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BStumbleMove : Behavior
{
public BStumbleMove()
{
Dependencies = new System.Type[]
{
typeof(FSMAction)
};
}
public Vector3 Vel { get; set; } = Vector3.zero;
public override void Init()
{
}
public void SetSt... |
RSpec.describe Spree::Product, type: :model do
it 'aliases :price= to :amount=' do
expect(subject).to respond_to :amount=
end
end
|
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that supp... |
---
templateKey: blog-post
tags: ['linux', 'bash', 'git']
title: Code Review from the comfort of vim | Diffurcate
date: 2021-12-04T11:34:47
status: published
---
I often review Pull requests from the browser as it just makes it so easy to see
the diffs and navigate through them, but there comes a time when the diffs ... |
*Life1D> mapM_ print . lahmahgaan $ "_###_##_#_#_#_#__#__"
"_###_##_#_#_#_#__#__"
"_#_#####_#_#_#______"
"__##___##_#_#_______"
"__##___###_#________"
"__##___#_##_________"
"__##____###_________"
"__##____#_#_________"
"__##_____#__________"
"__##________________"
*Life1D> main
"__##_##__#____###__#__#_______#_#_##"
... |
package frc.robot.devices.output;
import edu.wpi.first.wpilibj.Relay;
import frc.robot.devices.commands.DeviceOutputCommand;
import frc.robot.devices.commands.RelayCommand;
public class SpikeRelay extends DeviceOutput {
public enum Direction {
Forward(Relay.Direction.kForward), Backward(Relay.Direction.kReverse... |
/** @internal */
export function unboxedToBoxedMapper(value: unknown): unknown {
switch (typeof value) {
case 'boolean':
// tslint:disable-next-line:no-construct
return new Boolean(value);
case 'number':
// tslint:disable-next-line:no-construct
return new Number(value);
case 'strin... |
# XArray
## Seasonal Grouping
### Extract Time Series (from Location)
```python
time_series = data.isel(x=1000, y=1000).to_pandas().dropna()
```
### Mean Across Multiple Dimensions
```python
data.mean(dim=['lat', 'lon'])
``` |
package com.androidstudy.huaweihms.di
import android.content.Context
import androidx.room.Room
import com.androidstudy.huaweihms.BuildConfig
import com.androidstudy.huaweihms.data.HuaweiDatabase
import com.androidstudy.huaweihms.data.network.AuthInterceptor
import com.androidstudy.huaweihms.data.network.MapAPI
import ... |
module Kernel
def running_script
"#{ File.basename($0) } #{ ARGV.join " " }"
end
def running_script? script
Regexp.new(script) =~ running_script
end
# TODO: think about a 'else' method => x.then{}.else{}
# it could be done, when the 'then' return 'nil', we define an instance var in the singleton... |
-- file:prepared_xacts.sql ln:13 expect:true
INSERT INTO pxtest1 VALUES ('aaa')
|
#[derive(Debug)]
enum IPAddressKind {
V4(String),
V6(String),
}
#[derive(Debug)]
enum Message {
Quit,
Move {x:u32, y:u32}, // anonimous struct
Write (String),
ChangeColor(i32,i32,i32)
}
impl Message {
fn call(&self) {
println!("Inside call");
}
}
fn main() {
let v4 = IPAd... |
import {
Feature,
FeatureCollection,
LineString,
MultiLineString,
Polygon,
} from "geojson";
import { featureCollection } from "@turf/helpers";
import Graph from "./lib/Graph";
import EdgeRing from "./lib/EdgeRing";
/**
* Polygonizes {@link LineString|(Multi)LineString(s)} into {@link Polygons}.
*
* Imple... |
%% ---------------------------------------------------------------------
%% File: pingpong.erl
-module(pingpong).
-export([start/0, ping/2, pong/0]).
ping(N,PongPID) ->
io:format("Hi i have recieved this N with PONG PID ~p",[N,PongPID]).
pong() ->
io:format("Inside Pong").
% reciece
% io:format("recieved som... |
-module(mango_request_id).
-export([get/0]).
get() ->
ets:update_counter(mango, request_id, {2, 1, 16#7fffffff, 0}, {request_id, 0}).
|
<?php
namespace VGirol\JsonApi\Tests\Unit\Services;
use Illuminate\Support\Collection;
use PHPUnit\Framework\Assert as PHPUnit;
use VGirol\JsonApi\Services\AbstractService;
use VGirol\JsonApi\Tests\CanCreateRequest;
use VGirol\JsonApi\Tests\TestCase;
use VGirol\JsonApi\Tests\UsesTools;
class AbstractServiceTest exte... |
import dotenv from 'dotenv';
import { WakaTimeClient, RANGE } from '.';
dotenv.config();
jest.setTimeout(60000);
describe('WakaTimeClient Integration Test', () => {
let client;
const userId = process.env.USER_ID;
const startDate = new Date(new Date().setDate(new Date().getDate() - 6));
const endDate = new D... |
package edu.cnm.deepdive.smartcheff.controller.ui.ingredientinput;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app... |
import 'package:flutter/material.dart';
import 'package:circle_wheel_scroll/circle_wheel_scroll_view.dart';
class WheelExample extends StatelessWidget {
Widget _buildItem(int i) {
return Center(
child: ClipRRect(
borderRadius: BorderRadius.circular(40),
child: Container(
width: 8... |
# frozen_string_literal: true
class MoveContainerRegistryEnabledToProjectFeatures2 < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
BATCH_SIZE = 21_000
MIGRATION = 'MoveContainerRegistryEnabledToProjectFeature'
disable_ddl_transaction!
class Project < ActiveRec... |
package domain
import "github.com/op/go-logging"
var logger = logging.MustGetLogger("domain")
|
<?php
/*
* You can place your custom package configuration in here.
*/
return [
'server_url' => env('APP_URL', 'http://localhost'),
'proxy_server_host' => 'https://secure-it.herokuapp.com',
'prefix' => env('SECURE_PROXY_PREFIX', 'S3Cur3My4pPfR0mTh13f')
]; |
CREATE TABLE order_item (
id SERIAL PRIMARY KEY,
requester_id varchar(100),
description varchar(255),
deadline date,
money_value numeric (20, 2),
time_value numeric (20, 2)
); |
GITROOT="${GITROOT-$(readlink -f ./$(git rev-parse --show-cdup))}"
bitbake_setup()
{
local workdir="${1?}"
DL_DIR="/data/ngenetzky/yocto-downloads"
SSTATE_CACHE="/data/ngenetzky/yocto-sstate-cache"
WORKDIR=${workdir}
}
bitbake_setup_external()
{
local workdir="${1?}"
DL_DIR="/media/ngenetzk... |
Publication Instructions
-------------------------------
http://peterdowns.com/posts/first-time-with-pypi.html
Updating Instructions
----------------------------
First, release a new version and push to github repo.
Then update the setup.py file to reflect the new version.
adding a tag
-----------------
git tag -a ... |
mod disassemble_env;
mod instruction_hooking;
mod server;
mod server_types;
mod stddef;
pub(crate) use disassemble_env::DisassembleEnv;
use std::{
cell::UnsafeCell,
net::{IpAddr, Ipv4Addr, SocketAddr},
};
use auxtools::*;
pub static mut DEBUG_SERVER: UnsafeCell<Option<server::Server>> = UnsafeCell::new(None);
#[... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: NetWare Driver
FILE: resident.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 2/92 Initial version
Eric 8/92 Port... |
# -*- coding: utf-8 -*-
"""
============================================================================
Generating simple pulses and pulse trains
============================================================================
This example shows how to build and visualize basic types of stimuli such as
:py:class:`~pulse2p... |
package com.balanza.android.harrypotter.app.di.module
import com.balanza.android.harrypotter.data.character.CharacterDataSource
import com.balanza.android.harrypotter.domain.repository.character.CharacterRepository
import com.balanza.android.harrypotter.domain.repository.character.CharacterRepositoryImp
import dagger.... |
using Sandbox.Game.EntityComponents;
using Sandbox.ModAPI.Ingame;
using Sandbox.ModAPI.Interfaces;
using SpaceEngineers.Game.ModAPI.Ingame;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System;
using VRage.Collections;
using VRage.Game.Components;
using VRage.G... |
<?php
namespace App\Http\Controllers;
// use Illuminate\Http\Request;
use Auth;
use App\Http\Requests;
use Request;
use App\eventOffer;
class EventsController extends Controller
{
public function wedding() {
$texts = eventOffer::all();
return view('events.wedding', compact('texts'));
}
publi... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Brincolin;
use Faker\Generator as Faker;
$factory->define(Brincolin::class, function (Faker $faker) {
$title = $faker->sentence(2);
return [
'brincolin' => $title,
'detalles' => $faker->text(20),
'ancho' => rand(... |
INSTALLATION
============
* Step 1: Copy the supplied server.xml (after making necessary edits) to Tomcat.
What is modified in the supplied server.xml ?
--------------------------------------------
1. Optimized the thread settings.
2. Turned-off reverseDNS lookups.
3. Unwanted AJP connector is removed. |
class Coin {
String? symbol;
String? name;
String? image;
dynamic currentPrice;
int? marketCap;
int? marketCapRank;
dynamic high24h;
dynamic low24h;
dynamic priceChange24h;
dynamic priceChangePercentage24h;
dynamic ath;
dynamic athChangePercentage;
Coin({
required this.symbol,
required... |
package EntityFX.Core.Scimark2;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
public class MonteCarlo {
private static final int sEED = 113;
public static double num_flops(int num_samples) {
return (((double)num_samples)) * 4.0;
}
public static double integrate(int... |
# encoding: utf-8
class String
# convert windows path to cygwin path
#
# ==== Examples
#
# 'C:\hoge\hoge.txt'.winpath_to_cygwinpath # => '/cygdrive/c/hoge/hoge.txt'
#
def winpath_to_cygwinpath
return self unless match(/\w:\\/)
drive = scan(/(\w):\\/).first.first.downcase
dir_file = scan(/\w... |
# frozen_string_literal: true
# MAP CLASS WITH HELPERS
class RomanNumeralFactory
attr_reader :unit, :five, :next_place
def initialize(unit, five = '', next_place = '')
@unit = unit
@five = five
@next_place = next_place
end
def for_digit(digit)
return units(digit) if... |
/*
* Copyright 2016 DiffPlug
*
* 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 ... |
package ru.timakden.bank.handler
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebTestClient
import org... |
package com.theapache64.cs.servlets
import com.theapache64.cs.core.Scholar
import com.theapache64.cs.core.SecretConstants
import com.theapache64.cs.models.rest.telegram.SendMessageRequest
import com.theapache64.cs.models.rest.telegram.TelegramCallbackQuery
import com.theapache64.cs.models.rest.telegram.TelegramUpdate
... |
require 'test_helper'
class ActsAsDemopluginTest < ActiveSupport::TestCase
def test_a_hickwalls_demoplugin_text_field_should_be_last_squawk
assert_equal "last_squawk", Hickwall.demoplugin_text_field
end
def test_a_wickwalls_demoplugin_text_field_should_be_last_tweet
assert_equal "last_tweet", Wickwall... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.