text stringlengths 27 775k |
|---|
<?php
declare(strict_types=1);
namespace Database\Tests;
use Database\Driver;
/**
* @coversDefaultClass \Database\Connection
*/
class ModelInsertTest extends ModelTestCase
{
/**
* @covers ::insert()
* @covers ::typeMap()
* @dataProvider typesProvider
*/
public function testInsert($type)... |
import csv
# "query.csv" is a export from wikidata listing settlements with
# itemLabel and article's
def main():
prevletter = "A"
print ("=="+prevletter+"==")
with open('query.csv', newline='') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
article = row['art... |
#Using GCC to Compile and Run C Programs
To see all `gcc` features:
```
gcc --help
```
To compile with gcc:
```
gcc file_name.c -o executable_name`
```
To run the program (in Mac):
```
./executable_name
```
To do both in the same step:
```
gcc file_name.c -o executable_name && ./executable_name
```
[GCC Documenta... |
package ObjectTracker;
import java.awt.*;
import java.util.*;
/**
* This class represents a class that has been used
* by the target program.
*
* @author Eoin O'Connor
* @see SequencePanel
* @see ClassPanel
* @see RunTimePanel
* @see MethodClass
* @see Tree
*/
public class ObjectClass implements Co... |
current_path = File.expand_path(File.dirname(__FILE__))
adapter = ENV['ADAPTER'] || 'mongomapper'
require current_path + "/#{adapter}"
require current_path + '/demo_data'
require current_path + '/../lib/bowtie'
add_demo_data!
map "/admin" do
# BOWTIE_AUTH = {:user => 'admin', :pass => 'secret'}
run Bowtie::Admin
... |
# frozen_string_literal: true
require_relative 'song'
module MusicShare
# playlist class
class Playlist
attr_reader :id, :title, :description, :songs, :policies, :creator,
:is_private
def initialize(playlist_info)
process_attributes playlist_info['attributes']
process_relation... |
@extends('layouts.myapp')
@section('title', 'Data Mahasiswa')
@section('header')
<h1 class="display-4 text-center">Detail Mahasiswa</h1>
@endsection
@section('sidebar')
@parent
@endsection
@section('content')
<div class="card border-0 ml-3 col shadow-lg">
<div class="card-body" style="font-size: 30px">
... |
sudo vim /etc/pacman.d/mirrorlist
sudo vim /etc/pacman.conf
sudo pacman -Sy archlinuxcn-keyring neovim
sudo ln -sf /usr/bin/nvim /usr/bin/vim
sudo ln -sf /usr/bin/nvim /usr/bin/vi
sudo pacman -Syyu
mkdir old-arch
sudo mount /dev/sda2 old-arch/
cd old-arch/home/xc/
cp -r .dotfiles/ doc/ .m2/ .oh-my-zsh/ .ssh/ workspace... |
<?php
/**
* Copyright (c) BrownBear, 2017 - Present. All Rights Reserved.
*
* This file is a part of Tuleap.
*
* Tuleap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, o... |
import {
Body,
Controller,
Delete,
Get,
Param,
Patch,
Post,
} from '@nestjs/common';
const todo = {
id: '1',
title: 'Todo One',
description: 'Todo one description',
};
@Controller('todos')
export class TodosController {
@Get('/:id')
getTodo(@Param('id') id: string): any {
console.log('get'... |
package io.github.mattpvaughn.pixelly.view
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Paint
/**
* Method allowing drawing of rects with coordinates + size. Draws a rectangle of dimens [width]
* by [height] which is [x] pixels from the left of the canvas and [y] pixels from... |
package com.example.jetpackdemo.viewmodel.fragment
import androidx.lifecycle.MutableLiveData
import com.example.jetpackdemo.data.model.bean.MovieTechnicals
import com.example.jetpackdemo.network.apiService
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.callback.livedata.IntLiveData
im... |
# react-boilerplate
This is a personal boilerplate for react.js using webpack and npm.
It includes redux and ES6 syntax.
Feel free to use it as boilerplate.
|
package org.openstack.android.summit.modules.venues_map.user_interface;
import org.openstack.android.summit.common.user_interface.IBasePresenter;
/**
* Created by Claudio Redi on 2/11/2016.
*/
public interface IVenuesMapPresenter extends IBasePresenter<IVenuesMapView> {
void showVenueDetail(int venueId);
}
|
import { getPosition } from './getPosition'
import { CompositionType, ElementRefType, SelectionType } from './types'
export const SMALLEST_PATH = [ -1, -1, -1 ]
export const BIGGEST_PATH = [ Infinity, Infinity, Infinity ]
// Given positions as array for each level [1, 0, 3], return elements
// in given range.
export ... |
# pcb_laminator v1.5
Designed June 2019
https://matthewtran.dev/2019/06/pcb-laminator/
|
#!/bin/sh
docker run -i --rm alpine:3.2 /bin/sh > rootfs.tar.xz <<SCRIPT
set -e
sh >&2 <<INSTALL
set -e
export GOPATH=/tmp
apk add --update go git tar xz
go get -v github.com/pwaller/https-redirect
mkdir /tmp/lib
ls /tmp/bin
ldd /tmp/bin/https-redirect
cp /lib/ld-musl-x86_64.so.1 /tmp/lib
tar cJf rootfs.tar.xz -C /tm... |
---
name: Tehtävä
about: Projektin tehtävä
title: ''
labels: Tehtävä
assignees: ''
---
**Kuvaus**
|
---
date: '2019-05-26'
title: 'Ride Operator'
company: 'Calaway Park'
location: 'Calgary, AB'
range: 'May 2019 - Jun 2021'
url: 'https://www.calawaypark.com/'
---
- Problem solved and provided decisions in fast paced environment based on safety and well-being for +2000 Guests
- Directly responsible for keeping guests ... |
/*Copyright (c) 2018 Annika Ryll License: MIT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... |
# csv-stuff
Just a quick hack to convert a csv from table to flat structure.
##Example
See git@github.com:paul-at-nangalan/csv-reform.git for an example converting a table to a list
|
#!/bin/sh
battery_level="$(pmset -g batt | grep -Eo "\d+%" | cut -d% -f1)"
date="$(date +'%a %d %b %H:%M')"
echo "♥ $battery_level% | $date"
|
(in-package "ACL2")
(include-book "alloy-support")
(include-book "acl2s/cgen/top" :dir :system)
;;(acl2::in-package "ACL2S")
(acl2s-defaults :set :use-fixers nil)
(acl2s-defaults :set :search-strategy :incremental)
(acl2s-defaults :set :backtrack-limit 2)
;Address Book example
;Fig 2.14 from Alloy Book
;(defdata... |
require 'mime/types'
require 'base64'
class Synapsis::User < Synapsis::APIResource
extend Synapsis::APIOperations::Create
module DocumentStatus
MISSING_INVALID = 'MISSING|INVALID'
RESUBMIT_INVALID = 'RESUBMIT|INVALID'
SUBMITTED = 'SUBMITTED'
SUBMITTED_REVIEWING = 'SUBMITTED|REVIEWING'
SUBMITTE... |
infiniteScroll = function() {
var didScroll = false,
windowDom = $(window),
documentDom = $(document)
bufferBottom = 125;
if (windowDom.width() <= 400) {
bufferBottom = windowDom.height() * 0.75;
}
$(window).scroll(function() {
didScroll = true;
});
setInterval(function() {
... |
// Comentário de uma linha
console.log('Linha 1')
/*
Comentário
de Múltiplas
linhas
*/
console.log('Linha 2')
/*
* Comentário de
* múltiplas
* linhas
*/
console.log('Linha 3') |
//! A module that contains the core
//! of rume's graph system, including
//! Processors, IOs and SignalChains.
mod sort;
#[macro_use]
pub mod io;
pub use io::*;
pub mod proc;
pub use proc::*;
#[macro_use]
pub mod chain;
pub use chain::*;
pub mod endpoints;
pub use endpoints::*;
|
<?php
/*
* This file is part of the Mobile Cart package.
*
* (c) Jesse Hanson <jesse@mobilecart.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace MobileCart\CoreBundle\Command;
use Symfony\Component\Console\Command\C... |
---
company-name: Leady
domain: leady.com
home: https://leady.com/
privacy-policy: https://leady.com/privacy/
email: info@leady.com
---
|
package com.yo1000.keycloak.authenticator.verifynewbrowser
import com.fasterxml.jackson.annotation.JsonProperty
import org.keycloak.authentication.actiontoken.DefaultActionToken
import java.util.*
class VerifyNewBrowserActionToken(
userId: String?,
absoluteExpirationInSecs: Int,
@field:JsonPro... |
---
title: Resume
layout: post
permalink: /resume/
published: true
---
<hr>
## Professional History
<hr>
### Technical Writer
**Image Technology Systems • Richardson, Texas**
<br>
*May 2016 - Present*
Write, edit, publish, and maintain documentation and training materials for Visual Matrix, a property
management syste... |
package com.dividezero.stubby.test
import com.dividezero.stubby.test.support.StubbyTest
import com.dividezero.stubby.core.util.OptionUtils
import org.scalatest.FunSuite
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class ScriptTest extends FunSuite with StubbyT... |
<img src="_media/logo.png" data-origin="_media/logo.png" alt="logo" height="300">
# TLS map
> CLI & library for TLS cipher suites manipulation
[GitHub](https://github.com/noraj/tls-map)
[Get Started](pages/quick-start?id=quick-start)

|
export default interface Diagnostic {
message: string;
position: number;
length: number;
} |
use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestRequest;
plan tests => 1, need_php;
my $expected = <<EXPECT;
<html>
<head>
*** Testing assignments and variable aliasing: ***
This should read "blah": blah
This should read "this is nifty": this is nifty
**************************************... |
import 'package:shared_preferences/shared_preferences.dart';
import '../models/user_params.dart';
class PreferencesProvider {
static const _userParamsKey = 'userParams';
PreferencesProvider._();
static Future<UserParams> fetch() async {
final prefs = await SharedPreferences.getInstance();
... |
2020年12月19日20时数据
Status: 200
1.鹿晗兑现医护粉丝承诺
微博热度:2862118
2.钟南山称新冠病毒出现环境传人
微博热度:2194421
3.大牌成分百元价格
微博热度:2018063
4.青春有你3初C
微博热度:1873770
5.胖虎斥易烊千玺私生饭
微博热度:1685373
6.马龙的2020
微博热度:1658804
7.国美27岁猝死员工家属发声
微博热度:1607226
8.108岁糖果奶奶去世
微博热度:1042660
9.赵丽颖年度影响力艺人
微博热度:885049
10.中国已为全球提供超2000亿只口罩
微博热度:811119
11.官方... |
#include <iostream>
#include <iomanip>
#include <algorithm>
using namespace std;
typedef long long ll;
int main()
{
int num;
cout << "PERFECTION OUTPUT" << endl;
while (cin >> num) {
if (num == 0) {
cout << "END OF OUTPUT" << endl;
break;
}
ll cnt = 0;
for (int i = 1; i <= num / 2; i++) {
if (num %... |
module ClientApi
class UserTeamService
include NotificationsHelper
include InputSanitizeHelper
def initialize(args)
parsed_args = validate_params(args)
@team = Team.find_by_id(parsed_args.fetch(:team_id))
@user = parsed_args.fetch(:user)
@user_team = UserTeam.find_by_id(parsed_arg... |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using JetBrains.Annotations;
using Microsoft.Data.Entity.AzureTableStorage.Metadata;
using Microsoft.Data.Entity.AzureTableStorage.Uti... |
import React from 'react'
import { Flag, theme } from '..'
describe('Flag', () => {
let consoleError
beforeEach(() => {
consoleError = console.error
console.error = jest.fn()
})
afterEach(() => (console.error = consoleError))
test('renders', () => {
const json = rendererCreateWithTheme(<Flag />... |
package io.github.sofiapl.ast.expr
import io.github.sofiapl.ast.Expr
// <expr> "." <name>
data class MemberFetch(
val expr: Expr,
val name: String
): Expr
|
unit tests;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Controls, LCLType, MouseAndKeyInput,
Windows, //VkKeyScanA
Dialogs; //debug with ShowMessage
procedure TestKeyInput;
procedure TestKeyInputTranslate;
procedure TestKeyInputTranslateAllKeys;
procedure NewSend(const VK1: Byte; const VK2: Byte;... |
using UnityEngine;
using System.Collections;
using Mono.Data.Sqlite;
using System.Data;
using System;
public class test : MonoBehaviour {
void Start() {
string conn = "URI=file:" + Application.dataPath + "/testDB"; //Path to database.
IDbConnection dbconn;
dbconn = (IDbConnection) new SqliteConnection(conn);
... |
package ethanjones.mcpacker;
import ethanjones.mcpack.util.Version;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class MCPackerWindow extends Frame {
private Label labelInput;
private Label labelOutput;
private Label labelDiff;
private Label labelManagedF... |
using Mind.MVC.Impl;
using Mind.Utils;
public class RoleEvent
{
public static string EVENT_GAME_START = "EVENT_GAME_START";
public static string EVENT_ROLE_SHOW_INFO = "EVENT_ROLE_SHOW_INFO";
}
public class RoleModel : BaseModel
{
public RoleModel()
{
}
// 使用单体模式
public static RoleModel... |
import { Command, Option } from 'commander';
import add from './add';
import { colorDistanceFormulas, imageQuantizations, PLAN_FILE } from './constants';
import MotakiError from './error';
import info from './info';
import merge from './merge';
import move from './move';
import rename from './rename';
import rm from '.... |
<?php
error_reporting(-1);
require_once('generateGlobalConfig.php');
function addQuote($word)
{
return(" '".$word."'");
}
function addQuote2($word)
{
return(" '".$word.":'");
}
function convertNewGherkinLanguagesToOldi18n($i18nFilePath)
{
$fileContent = file_get_contents($i18nFilePath);
$json... |
use std::net::SocketAddr;
use std::sync::Arc;
use hyper::server::Server;
use hyper::service::{make_service_fn, service_fn};
use log::{error, info};
use crate::runtime;
use crate::server::github_handler::GithubHandlerState;
use crate::server::octobot_service::OctobotService;
use crate::server::sessions::Sessions;
use ... |
using System;
namespace ServiceStack.Validation.Validators
{
public abstract class ValidationAttributeBase : Attribute
{
public string ErrorCode { get; set; }
public string ErrorMessage { get; set; }
public string ValidationGroup { get; set; }
public virtual ValidationError ValidationError
{
get { retu... |
# This is the first example
---
# WTF
* Hacker-slides creates HTML presentations from Markdown files
* Original Source: https://github.com/msoedov/hacker-slides
---
# Source code highlighting
```bash
#!/bin/bash
scriptPos=${0%/*}
source $scriptPos/stackConf.sh
if [ -z "$REMOTE_SSH_SERVER" ]; then
read -r "S... |
#!/bin/bash
#simple script using ImageMagick to create cross-correlations between plotimages
#takes no arguments, and results in n^2 images from the /files directory
#requires PNG input files and ignores other files
#note: as of v6.9.7, imagemagick blacklists ghostscript due to a security bug which
# has been resolv... |
// Create a new benchmark by extending BenchmarkBase
import 'package:benchmark_harness/benchmark_harness.dart';
import 'constant.dart';
class BaseBenchmark extends BenchmarkBase {
var bytes;
var digest;
BaseBenchmark(String name) : super(name);
@override
void setup() {
print('$name: $dataToEncrypt');... |
#!/bin/bash
# run as root
if [ "$EUID" -ne 0 ]
then
sudo ./clear.sh $@
exit 0
fi
echo "Killing old background jobs"
pkill -f readmax.sh
pkill -f max.sh
echo "Deleting tmp files"
rm -rf "tmp_ch_values"
if [ -f nohop.out ]
then
echo "Deleting output file"
rm nohup.out
fi
echo "Done!"
exit 0
|
package russian
var (
rublesNumberCase = [3]string{"рубль", "рубля", "рублей"}
kopecksNumberCase = [3]string{"копейка", "копейки", "копеек"}
)
// Rubles returns russian for "ruble" corresponding to 'n'.
func Rubles(n int64) string {
return rublesNumberCase[getNumeralNumberCase(n)]
}
// NRubles returns string con... |
/*
* Copyright (c) 2014-2015 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* 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/LICE... |
class MembersController < ApplicationController
before_action :authorize_admin!
layout 'office'
def new
@member = current_office.members.new member_role: :regular
@users = User.all.where.not(id: current_office.members.pluck(:user_id))
respond_to do |format|
format.js
end
end
def creat... |
#!/bin/sh
#
if [ "$#" -ne 0 ]; then
echo "Run this script to relocate the buildroot SDK at that location"
exit 1
fi
LOCFILE="share/buildroot/sdk-location"
FILEPATH="$(readlink -f "$0")"
NEWPATH="$(dirname "${FILEPATH}")"
cd "${NEWPATH}"
if [ ! -r "${LOCFILE}" ]; then
echo "Previous location of the buildro... |
#include "device.h"
#include "driver/ixgbe.h"
#include "driver/virtio.h"
#include "pci.h"
struct ixy_device* ixy_init(const char* pci_addr, uint16_t rx_queues, uint16_t tx_queues) {
// Read PCI configuration space
int config = pci_open_resource(pci_addr, "config");
uint16_t vendor_id = read_io16(config, 0);
uint16... |
---
title: _variant_t (Operadores)
ms.date: 11/04/2016
helpviewer_keywords:
- _variant_t class [C++], operators
ms.assetid: 43ac645c-2499-4726-bda1-8c77677abe1a
ms.openlocfilehash: e21658eb722986fa3019fee943ce769bb444629a
ms.sourcegitcommit: 6052185696adca270bc9bdbec45a626dd89cdcdd
ms.translationtype: MT
ms.contentloca... |
create table failed_container_state (
container_name varchar(255) not null,
container_run_unique_id varchar(100),
container_started_unique_id varchar(100),
image_unique_id varchar(100),
last_state varchar(255),
primary key (container_name)
);
create table in... |
package com.company.interfaces;
public interface Mammal {
boolean isWarm();
}
|
package com.zsw.orm.redis.utils;
import org.apache.commons.lang3.StringUtils;
import java.util.Arrays;
/**
* 描 述 :
*
* @author zhangshaowei
*/
public final class RedisKeyUtils {
/**
* 工具类
*/
private RedisKeyUtils() {
}
/**
* 描述:redis key计算方法---目前使用原始拼接
* <p>
*... |
//
// Created by Ville Välimaa on 31/10/2017.
//
#ifndef UNTITLED_RENDERER_H
#define UNTITLED_RENDERER_H
#include "SDL.h"
class gpu_renderer {
private:
SDL_Event event;
SDL_Renderer *renderer;
SDL_Window *window;
void drawPixel(int location);
public:
virtual ~gpu_renderer();
void init();
... |
package ch.ayedo.ktsgenerator
import com.google.common.reflect.ClassPath
import me.ntrrgc.tsGenerator.TypeScriptGenerator
import me.ntrrgc.tsGenerator.VoidType
import org.gradle.api.DefaultTask
import org.gradle.api.file.FileCollection
import org.gradle.api.tasks.CompileClasspath
import org.gradle.api.tasks.Input
impo... |
<!-- Header template -->
<?php
include('assets/php/functions.php');
genMetaAndHeader('Brisbane Connected');
?>
<!-- End Header template -->
<!-- Adds a spinner loading animation during page load -->
<div id='overlay' class='onLoad'>
<h5 class='font spinnerText'>Loading</h5>
<div class='spinner spi... |
// Code generated by github.com/fjl/gencodec. DO NOT EDIT.
package catalyst
import (
"encoding/json"
"errors"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
)
var _ = (*payloadAttributesMarshaling)(nil)
// MarshalJSON marshals as JSON.
func (p PayloadAttributesV1) Mar... |
# @lwce/router
[](https://www.npmjs.com/package/@lwce/router)
A lightning web component for building declarative routing within single-page applications.
Learn more about from the [API documentation](./packages/router/README.md).
Or start the examp... |
module T7173 where
-- se and sb are mutually recursive
-- se takes a numeric parameter (which it ignores)
-- sb passes it a constant 10
--
-- so sb :: Num a => ...type not involving a...
--
-- So the ambiguity check must default ambiguous p,
-- rather than complaining that sb is ambiguous.
showEnv' env t = se 1... |
include(":")
include(":one")
include(":two")
|
import EventListener from './EventListener';
export default class EventEmitter {
private readonly eventListeners: Map<string, EventListener[]>;
constructor() {
this.eventListeners = new Map();
}
/**
* Returns the number of listeners listening to the event named eventName.
*/
listenerCount(eventNa... |
FALLBACK FUN4 FALLBACK 2 FW NULL
FUN2 VAR0 FUN2 2 IF NULL
FUN3 VAR1 FUN3 2 FW NULL
FUN4 VAR2 FUN4 2 IF NULL
FUN5 VAR3 FUN5 2 FW NULL
FUN6 VAR4 FUN6 2 IF NULL
|
#!/bin/bash
set -e
# Convert the terraform outputs (for string values) to env files
# prefixing the key names with TF_VAR_
# values are formatted as KEY=$'VALUE' with any single quotes escaped as \'
# e.g. a value of (MY'VALUE) would result in: KEY=$'MY\'VALUE'
jq -r "to_entries | .[] | select(.value.type == \"string... |
module Policies
class NonAudited
def self.call(scope)
unless scope.joins_values.include?(:audit)
scope = scope.left_outer_joins(:audit)
end
scope.where(audits: { content_id: nil })
end
end
end
|
import { AppProps } from 'next/app';
import Script from 'next/script';
import '../styles/layout.css';
/**
* Root level component for all pages
* @param {ReactComponentElement} Component Page component to be rendered
* @param {object} pageProps All props for the page
*/
function MyApp({ Component, pageProps }: App... |
import JSBI from 'jsbi';
import { Rebase } from '../interfaces';
export declare function rebase(value: JSBI, from: JSBI, to: JSBI): JSBI;
export declare function toElastic(total: Rebase, base: JSBI, roundUp: boolean): JSBI;
|
// Copyright (c) 2020 Huawei Technologies Co.,Ltd. All rights reserved.
//
// StratoVirt is licensed under Mulan PSL v2.
// You can use this software according to the terms and conditions of the Mulan
// PSL v2.
// You may obtain a copy of Mulan PSL v2 at:
// http://license.coscl.org.cn/MulanPSL2
// THIS SOFTWA... |
#!/bin/bash
cd ~
sudo apt-get update
sudo apt-get -y install python-virtualenv
sudo locale-gen "en_US.UTF-8"
export LC_ALL="en_US.UTF-8" && export LC_CTYPE="en_US.UTF-8"
git clone https://github.com/zocteam/sentinel.git zoc_sentinel
cd zoc_sentinel
virtualenv ./venv
./venv/bin/pip install -r requirements.txt
echo "... |
<?php
class Resque_Redis extends \Predis\Client
{
/**
* Resque_Redis constructor.
*
* @param $params
* @param array $options
*/
public function __construct($params, $options = [])
{
parent::__construct($params, $options);
}
/**
* Set Redis prefix
*
... |
module Network.API.Mandrill.Users where
import Network.API.Mandrill.Settings
import Network.API.Mandrill.HTTP
import Network.API.Mandrill.Types
import Network.API.Mandrill.Users.Types
import Network.HTTP.Client
-------------------------------------------------------... |
cd
shopt -s expand_aliases
alias config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME"
echo ".cfg" >> .gitignore
read -e -p "Please paste a HTTPS link to your dotfiles repository (or press enter to use defaults): " DOTFILES_URL
[[ -z $DOTFILES_URL ]] && DOTFILES_URL=https://github.com/fastai/dotfiles.git
git c... |
# Java Arrays, Lists, data wrangling
> This repo contains a few examples of how to manipulate a arrays and lists using Java.
## Prerequisites
- Download and install BlueJ Java Environment (http://www.dukelearntoprogram.com/downloads/bluej.php?course=2)
## How to use
- Clone this repo locally
- Open the project fi... |
namespace BinaryKits.Zpl.Protocol.Commands
{
/// <summary>
/// Recall Graphic<br/>
/// The ^XG command is used to recall one or more graphic images for printing. This command is
/// used in a label format to merge graphics, such as company logos and piece parts, with text data to form a
/// complet... |
// common libs
val jacksonVersion = "2.13.0"
val jacksonDatabindVersion = "2.13.0"
val janinoVersion = "3.1.6"
val logbackVersion = "1.2.6"
val slf4jVersion = "1.7.32"
val snakeYamlVersion = "1.29"
val undertowVersion = "2.2.12.Final"
plugins {
java
application
id("com.github.johnrengelman.shadow") version... |
enablePlugins(ScalaJSPlugin, ScalaJSJUnitPlugin)
scalaVersion := "3.0.0-M1"
// Work around #4368
ThisBuild / useCoursier := false
|
function ω_weights(z_ex, θ, ξ)
z_0 = z_ex[1]
z_bar = z_ex[end]
Δ_ex = diff(z_ex)
Δ₋ = [0; Δ_ex] # (21)
Δ₊ = [Δ_ex; 0] # (22)
z = z_ex[2:end-1] # i.e., interior of z_ex
P = length(z)
ω_bar = 1/2 * (Δ₋ + Δ₊) # (23)
Ξ₁ = 1/(1 - ξ * Δ₊[1]) # (24)
Ξₚ = 1/(1 + ξ * Δ₋[end]) # (25)
... |
package com.trifork.hotruby.ast;
import com.trifork.hotruby.interp.CompileContext;
public class TrueExpression extends VariableExpression {
public static Expression instance = new TrueExpression();
private TrueExpression() {
super(-1, "true");
// TODO Auto-generated constructor stub
}
@Override
void compi... |
import prettyBytes from 'pretty-bytes';
import { DescribeImagesCommand } from '@aws-sdk/client-ecr';
import getBaseUrl from '../getBaseUrl';
export default async function (provider, name, { $axios, $aws }, store) {
switch (provider) {
case 'aws-ecr': {
const { imageDetails } = await $aws.send(new DescribeI... |
// Copyright (c) Facebook, Inc. and its affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#ifndef ESP_METADATA_MANAGERS_ASSETATTRIBUTEMANAGER_H_
#define ESP_METADATA_MANAGERS_ASSETATTRIBUTEMANAGER_H_
/** @file
* @brief Class Temp... |
pub mod fp_32_lazy;
pub mod fp_32;
pub use self::fp_32::*;
pub mod fp_64;
pub use self::fp_64::*;
pub mod fp_256;
pub use self::fp_256::*;
pub mod fp_384;
pub use self::fp_384::*;
|
(ns workshop.react-dnd
(:require [devcards.core :as dc :include-macros true]
[hx.react :as hx]
[goog.object :as gobj]
["react-dnd" :as dnd]
["react-dnd-html5-backend" :default html5-backend]))
;;
;; Based on the "naive" react-dnd example
;; https://github.com/react-dnd... |
To dump a trace from a Mirage unikernel running Xen domain `my-domain`:
```bash
mirage-trace-dump-xen my-domain out.ctf
```
The trace can then be viewed using [mirage-trace-viewer][].
Note: this code was extracted from mirage-trace-viewer to prevent it from being lost.
It has not been tested in its current form.
Se... |
---
---
_Welcome,_
_You have been invited to join the prestigious Nickel club!_
### What is the Nickel Club?
The Nickel Club is a group of Nick Wolf's friends who can earn, spend and wager
_Nickels_.
_Nickels_ are a fictional currency you can earn from Nick Wolf that you can then
spend for Nick to buy you fabulous... |
export class Test {
idTest!:number;
description!:string;
resutat!:string;
}
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Follow;
class FollowController extends Controller
{
public function follow ($follow_id){
$user_id = auth()->user()->id;
//para las consultas no hacee falta instanciar pero cuando tenemos que acceder a las propiedad... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 饿了么关系绑定审核流水回流接口
*
* @author auto create
* @since 1.0, 2018-11-13 16:07:12
*/
public class KoubeiSalesKbsalesShopSyncModel extends AlipayObject {
private static final long seria... |
package com.bin.test_11;
public class Stick {
private String name;
private Joint start;
private Joint end;
public String getName() {
return name;
}
public Stick(String inputName, Joint inputStart, Joint inputEnd) {
this.name =inputName;
this.start = inputStart;
... |
import { fetch } from "cross-fetch"
import { HttpResponse } from "./interfaces"
/**
* The base class to build the API client from
*/
export abstract class Base {
public readonly baseURL: string
public readonly apiKey: string
/** Checks if the IP address is a valid format before creating an instance of the client... |
###############################################
# Azure Container Instances with Azure CLI
#
# Tested with zsh (if run with bash there are probably A LOT of missing "")
#
# Jose Moreno, January 2021
###############################################
# Variables
base_dir='.'
repo_name='acilab'
# Argument parsing (can ove... |
//
// UINavigationController+ADExtension.h
// ADNavigationBar_Example
//
// Created by zhongaidong on 2019/12/30.
// Copyright © 2019 goodswifter. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UINavigationController (ADExtension)
- (void)setNeedsNavigationBarUpdateForBarTint... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.