text stringlengths 27 775k |
|---|
# -----------------------------------------------------------------------------
# ~/.config/bash/completion.bash
# -----------------------------------------------------------------------------
BASH_COMPLETION_DIR="$XDG_CONFIG_HOME/bash/bash_completion.d"
if [[ -n $HOMEBREW_PREFIX ]]; then
export HOMEBREW_COMPLETION... |
import 'package:example/models/document.dart';
import 'package:example/widgets/directory_widget.dart';
import 'package:example/widgets/file_widget.dart';
import 'package:flutter/material.dart';
import 'package:tree_view/tree_view.dart';
void main() => runApp(MainApplication());
class MainApplication extends Stateles... |
#!/bin/bash
#
# Does the standardized debian build
#
make -f debian/rules clean
make -f debian/rules build
make -f debian/rules package
|
-- Add a 'sortkey' field to page_props so pages can be efficiently
-- queried by the numeric value of a property.
ALTER TABLE /*_*/page_props
ADD pp_sortkey float DEFAULT NULL;
CREATE UNIQUE INDEX /*i*/pp_propname_sortkey_page
ON /*_*/page_props ( pp_propname, pp_sortkey, pp_page );
|
part of dartea;
const rootKey = const Key('dartea_root_widget');
class DarteaWidget<TModel, TMsg, TSub> extends StatefulWidget {
final Program<TModel, TMsg, TSub> program;
DarteaWidget(this.program, {Key key}) : super(key: key ?? rootKey);
@override
State<StatefulWidget> createState() =>
new _DrateaPro... |
#![feature(test)]
extern crate bit_field;
use bit_field::*;
pub trait BitOper {
const BIT_LEN: usize;
fn get_b(&self, idx: usize) -> bool;
fn set_b(&mut self, idx: usize, val: bool);
fn toggle(&mut self, idx: usize);
}
pub trait BitArrayOper<T: BitOper> {
fn get_blen(&self) -> usize;
fn get_... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// note only Yspeed was used in tutorial
// made edits because I wanted to
[ExecuteInEditMode]
public class SpinScript : MonoBehaviour
{
[Range(-100, 100)] public int Xspeed = 0; // creates sliders in edit
[Range(-100, 100)] pu... |
package us.mikeandwan.photos.domain.models
import java.util.*
data class SearchHistory(
val term: String,
val searchDate: Calendar
) |
<?php
declare(strict_types=1);
namespace Laminas\DependencyPlugin;
use Composer\Composer;
use Composer\Installer\PackageEvent;
use Composer\IO\IOInterface;
use Composer\Plugin\PreCommandRunEvent;
interface RewriterInterface
{
/**
* @return void
*/
public function activate(Composer $composer, IOInt... |
import { DateFormat, DateFormatFn, dateFormatFunctions } from './date-format';
import { IFormatter } from './iformatter';
export class DateFormatter implements IFormatter {
private readonly _locale: string;
private readonly _dateFormatFunc: DateFormatFn;
public constructor(dateFormat: DateFormat = 'yyyy-MM-dd', lo... |
/* Copyright (C) 2004 - 2011 Versant Inc. http://www.db4o.com */
using System;
using System.Collections;
using Db4objects.Db4o.Foundation;
using Db4objects.Db4o.Internal;
namespace Db4objects.Db4o.Internal
{
/// <exclude></exclude>
public class LockedTree
{
private Tree _tree;
private int _ver... |
CrunchBang Window Manager Hacks
===============================
Scripts for adding hot corners and aero style window snapping to
Openbox. Written for CrunchBang Linux (http://crunchbang.org/).
### cb-hotcorner usage:
This script is designed to be started automatically on login via
Openbox's autostart file:
# Sta... |
use prettytable::Table;
pub fn scripts(json: serde_json::Value) {
let scripts_result = get_scripts_from_json(json);
if scripts_result == None {
println!("No scripts in package.json");
return;
}
if scripts_result.iter().count() == 0 {
println!("No scripts found.");
return;
}
print_scrip... |
package io.ldavin.beltbraces.internal.transformation
import io.ldavin.beltbraces.internal.Property
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
class PropertyWriterTest {
private val writer = PropertyWriter()
@Test
fun `transform a nullity assertion`() {
// GIVEN
... |
<?php
/*
@author Leongchunwai<2546858999@qq.com> in 2013.8
*/
?>
<?php
class BodyOptionWidget extends CWidget
{
public $id = 'bodyOption';
public $setOptionUrl = "";
public $initFontFamily = '';
// public $width = "";
public function run()
{
if($this->setOptionUrl == "")
{
$... |
package kr.osam.admin.data.soldier
import io.reactivex.Flowable
import kr.osam.admin.data.SoldierItem
import kr.osam.admin.data.UnitItem
interface SoldierDataSource {
fun getSoldierList() : Flowable<List<SoldierItem>>
fun updateSoldierStatus(soldierItem: SoldierItem) : Flowable<SoldierItem>
} |
# encoding: UTF-8
#
# Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
require_relative 'base_middleware'
module GoodData
module Bricks
class FsProjectDownloadMiddl... |
<?php
namespace App\Http\Controllers;
use App\Models\Individu;
use App\Models\Groupe;
use App\Models\Salle;
use App\Models\Seance;
use App\Models\SeanceGroupe;
use App\Models\TypeSeance;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class SalleController extends Controller
{
public function in... |
#!/bin/bash
set -e
bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh) --dont-wait
systemctl restart docker
docker run -p 80:80 -d nginx
|
---
layout: default
date: 2010-5-25
title: 在了解共产极权邪恶的情况下入党
categories: 雅典学院
---
推荐 订阅 收藏
投票主题
# 在了解共产极权邪恶的情况下入党 算不算从恶?
欢迎写理由。
投票项目 ( 单选 ) 参与人数 312
247 (79.17%)
65 (20.83%)
提交
发起人
张书记
开始时间
2010-5-25 18:48
---
[Terminusbot]... |
// Copyright 2019 KagurazakaHanabi<i@yaerin.com>
//
// 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 l... |
import { Type } from '.';
import { createFnType } from './function-type';
import { createOptionalType } from './optional-type';
import { TypeInfo } from './type-info';
import { TypeKind } from './type-kind';
export const indexFnName = '[]';
/**
* The array type.
*/
export interface ArrayType extends TypeInfo {
ki... |
package net.olegg.aoc.year2020.day9
import net.olegg.aoc.someday.SomeDay
import net.olegg.aoc.utils.parseLongs
import net.olegg.aoc.year2020.DayOf2020
/**
* See [Year 2020, Day 9](https://adventofcode.com/2020/day/9)
*/
object Day9 : DayOf2020(9) {
override fun first(data: String): Any? {
val nums = data
... |
use std::borrow::Cow;
use std::fmt;
use std::str::FromStr;
use header::{Header, Raw};
use header::parsing::from_one_raw_str;
/// The `Host` header.
///
/// HTTP/1.1 requires that all requests include a `Host` header, and so hyper
/// client requests add one automatically.
///
/// # Examples
/// ```
/// use hyper::hea... |
require 'spec_helper'
describe Spree::Variant do
describe "#add_options_and_calc_price" do
it "has the same price like the master variant if no options given" do
variant = create(:base_variant)
variant.add_options_and_calc_price []
expect(variant.price).to eq(variant.product.master.price)
... |
class Game < ApplicationRecord
has_one :merchant
has_one :boss
has_one :enemy
has_many :characters
has_many :users, through: :characters
has_many :merchants
has_many :users, through: :merchants
# accepts_nested_attributes_for :merchants, :characters
# determines what enemy to create depending on t... |
require 'benchmark'
module Enumerable
# group_by
def group_by_1(&block)
h = k = e = nil
r = Hash.new
each{|e| (r[yield(e)] ||= []) << e}
r
end
def group_by_2(&block)
r = Hash.new{ |h,k| h[k]=[] }
each{|e| r[yield(e)] << e}
r
end
# cluster_by
def cluster_by_1(&block)
g... |
using System;
using MikhailKhalizev.Processor.x86.BinToCSharp;
namespace MikhailKhalizev.Max.Program
{
public partial class RawProgram
{
[MethodInfo("0x1014_79e4-18d1f005")]
public void Method_1014_79e4()
{
ii(0x1014_79e4, 5); push(0x24); ... |
<?php namespace Rtds\Shared;
use Rtds\Exception;
use Rtds\JsonHandler;
class Contributor extends JsonHandler {
protected $name;
protected $roles;
protected $images;
protected $urls;
public function getName(): String {
return $this->name;
}
public function setName(String $name) {
... |
class APIManager
BASE_URL = "https://api.yelp.com/v3"
def self.search_businesses(loc, query, pagenum=1, limit=20)
business_search_url = BASE_URL + "/businesses/search" + "?limit=#{limit}&offset=#{(pagenum-1)*limit}"
headers = {"Authorization": "Bearer #{ENV['API_KEY']}"}
... |
<?php declare(strict_types=1);
namespace App\Controller;
use App\Generator\RaceGenerator;
use App\Repository\RaceRepository;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Ses... |
#!/bin/sh
# Prepara jaula para ruby en /var/www
# Dominio público. 2016. vtamara@pasosdeJesus.org
# Referencias:
# http://web.archive.org/web/20100110060204/http://bsd.phoenix.az.us/faq/openbsd/rails-chroot-fastcgi
# proot
apenchroot=$1;
dchroot=$2;
if (test "$dchroot" = "") then {
dchroot="/var/www";
} fi;
jk=`ls /... |
import React from 'react';
import styled from 'styled-components/macro';
interface ColorItemProps {
title: string;
subtitle: string;
colors: string[];
}
const ColorItemContainer = styled.div`
display: flex;
align-items: flex-start;
margin-bottom: 30px;
`;
const ColorItemNames = styled.div`
flex: 0 0 30... |
package logging
import (
"log"
"testing"
)
func TestDefault(t *testing.T) {
logger, _ := NewDefault()
log.Printf("logger: %v", logger.Logger)
logger.Infof("info log")
}
|
/*
* Copyright (c) 2021 New Vector 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 law or agr... |
package net.ollie.maths.functions.angular
import net.ollie.maths.numbers.Precision._
import net.ollie.maths.numbers.constants.Zero
import org.scalatest.{FlatSpec, Matchers}
/**
* Created by Ollie on 09/02/14.
*/
class HyperbolicSinTest extends FlatSpec with Matchers {
"Sinh(0)" should "be empty" in {
H... |
import sys
from lxml.etree import QName
from tests.factories import AttrFactory
from tests.factories import AttrTypeFactory
from tests.factories import ClassFactory
from tests.factories import ExtensionFactory
from tests.factories import FactoryTestCase
from xsdata.models.elements import ComplexType
from xsdata.model... |
package com.xarixa.ehcache.aws;
import java.util.Set;
import net.sf.ehcache.distribution.CacheManagerPeerProvider;
/**
* A {@link CacheManagerPeerProvider} which can have the set of hosts updated from an external mechanism.
*
* @author Fabric WorldWide
*/
public interface UpdateableHostBasedCacheMana... |
<?php
namespace App\Repositories;
use App\Interfaces\BookInterface;
use App\Interfaces\CartInterface;
use App\Interfaces\OrderInterface;
use App\Models\Book;
use Auth;
use Cart;
use Illuminate\Http\Response;
class CartRepository implements CartInterface
{
protected $orderRepository;
protected $bookRepositor... |
!Функция поверхности
function sedlo(a,b) result(c)
implicit none
real,intent(in) :: a,b
real :: c
c = (a*a-b*b)/4
end function sedlo
program main
! Используем графическую библиотеку
USE Plotter
implicit none
! Тип, хранящий указатель
type(functions):: one_surface
! Указываем что мы используем функци... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
package tapir.server.http4s
import cats.Monad
import cats.effect.{ContextShift, Sync}
import cats.implicits._
import org.http4s.{EntityBody, HttpRoutes}
import tapir.Endpoint
import tapir.server.ServerEndpoint
import tapir.typelevel.ReplaceFirstInTuple
import scala.reflect.ClassTag
trait TapirHttp4sServer {
implic... |
package de.theunknownxy.mcdocs.docs.loader.xml.block
import de.theunknownxy.mcdocs.docs.ParagraphBlock
import de.theunknownxy.mcdocs.docs.ParagraphElement
import de.theunknownxy.mcdocs.docs.loader.xml.XMLParserHandler
import de.theunknownxy.mcdocs.docs.loader.xml.inline.InlineContainerState
class ParagraphState(handl... |
import { x } from "@xstyled/emotion";
import React, { FC } from "react";
import { TextLink, Container } from "anolis-ui";
const Footer: FC = () => {
return (
<Container>
<x.div
display="flex"
justifyContent="space-between"
flexDirection={{ _: "column", md: "row" }}
py="1.5re... |
const app = new Vue({
el: '#app',
data: {
NEW_SHORT_LINK: undefined,
inputAlias: '',
inputUrl: '',
HOST_BASE: this.location.origin + "/",
ERROR: undefined,
},
methods:{
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
sh... |
/**
* Copyright (C) 2011-2012 Turn, 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 agree... |
# frozen_string_literal: true
require 'sequel'
require 'uri'
RSpec.describe 'Sequel::Extensions::PrometheusInstrumentation' do
subject(:db) do
Sequel.connect(db_url).tap do |db|
db.extension(:prometheus_instrumentation)
db.prometheus_registry = registry
end
end
let(:db_host) { ENV.fetch('DB... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\User;
use App\Models\Video;
use App\Models\Like;
use App\Models\Dislike;
class LikeSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$users = User::al... |
package it.italia.developers.spid.integration.util;
import it.italia.developers.spid.integration.exception.IntegrationServiceException;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.Scanner;
public class IPMetadataExtractor ... |
package com.lumiomedical.vault.container.definition;
import com.lumiomedical.vault.container.Invocation;
import java.util.ArrayList;
import java.util.List;
/**
* @author Pierre Lecerf (pierre@noleme.com) on 21/08/2015.
*/
public abstract class ServiceDefinition
{
protected String identifier;
protected List... |
package edu.gemini.model.p1.immutable
import edu.gemini.model.p1.{mutable => M}
import scala.collection.JavaConverters._
object IrisBlueprint {
def apply(m: M.IrisBlueprint): IrisBlueprint = new IrisBlueprint(m)
}
case class IrisBlueprint(filters: List[IrisFilter]) extends GeminiBlueprintBase {
def name: Strin... |
package net.fehmicansaglam.tepkin.protocol
sealed trait ReadPreference
object ReadPreference {
case object Primary extends ReadPreference {
override def toString: String = "primary"
}
case object PrimaryPreferred extends ReadPreference {
override def toString: String = "primaryPreferred"
}
case o... |
using FluentMigrator;
namespace Migrations
{
[Migration(2)]
public class InsertData : Migration
{
public override void Up()
{
Insert.IntoTable("Test").Row(new { Alpha = "Test1", Bravo = "Test1", Charlie = "Test1", Delta = "Test1" });
Insert.IntoTable("Test").Row(new... |
<form action="process_create.blade.php" method="post">
<input type="text" name="title" placeholder="제목"></p>
<p><textarea name="description" placeholder="본문"></textarea></p>
<select name="category" >
<option value="0">- Select -</option>
@foreach($categories1 as $category)
<opti... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
#nullable disable
namespace Microsoft.Build.Shared.FileSystem
{... |
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {enableProdMode} from '@angular/core';
import {environment} from './environments/environment';
import {AppModule} from './app/';
import {unregisterServiceWorkers} from './unregister-service-workers';
// Unregister all installed service wo... |
# 下载
## 二进制
- [当前版本](https://github.com/M2Team/NSudo/releases/latest)
- [所有版本](https://github.com/M2Team/NSudo/releases)
- [AppVeyor CI](https://ci.appveyor.com/project/MouriNaruto/nsudo)
## 源代码
- [GitHub](https://github.com/M2Team/NSudo)
- [码云](https://gitee.com/M2-Team/NSudo)
## NSudo Installer (非官方)
- [源代码](h... |
const fetch = require('node-fetch');
const base64 = require('base-64');
async function genericRestAPI(method, url, userToken) {
/**
* Send Default API Request
*/
let user = base64.encode(userToken + ":")
let request = {
method: `${method}`,
'headers': {
'Authorization'... |
// Imports the Flutter Driver API.
import 'package:flutter_driver/flutter_driver.dart';
import 'package:integration_test/integration_test.dart';
import 'package:test/test.dart';
import 'integration_test_service.dart';
late FlutterDriver driver;
Future<void> main() async {
IntegrationTestWidgetsFlutterBin... |
### [Print Immutable Linked List in Reverse](https://leetcode.com/problems/print-immutable-linked-list-in-reverse)
|
package com.michaelwasher.bricker.views;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.View;
import com.michaelwasher.bricker.interfaces.DrawableObjectInt... |
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default function UnknownPreview({ field }) {
return <div className='nc-widgetPreview'>No preview for widget “{field.get('widget')}”.</div>;
}
UnknownPreview.propTypes = {
field: ImmutablePropTypes.map,
};
|
---
path: "/blog/first-blog-post"
title: "First Blog Post"
date: "2020-02-03"
description: "Hello"
---
`Hi, there`
|
import Loading from './index.vue';
const loading = (Vue) => {
Vue.component(Loading.name, Loading);
}
export default loading; |
package util
import (
"github.com/wavesplatform/gowaves/pkg/crypto"
"github.com/wavesplatform/gowaves/pkg/proto"
"time"
)
type TransferWithSigBuilder struct {
seed string
timestamp time.Time
}
func NewTransferWithSigBuilder() TransferWithSigBuilder {
return TransferWithSigBuilder{
seed: "test",
t... |
#!/usr/bin/env bash
mint run zweigraf/FakeBundle "fakebundle --input StdLib --output ./Sources/Sing/StdLib.swift"
|
---
layout: post
title: "阳光与鸡腿"
date: 2020-04-12 23:38:00
description: 河边野营、大鸡腿
comments: false
tags:
- 每日碎片
- 生活
---
今天去河边野营(其实就拿了一个折叠马扎和一块野餐布),风景甚好,拿去看的书选的也不错 ^-^
{:.center-image }
{:.center-image }
... |
<?php
namespace App\Http\Livewire\Customer\Tasks\Parts;
use Livewire\Component;
use App\Models\Task as TaskModel;
class Task extends Component
{
public TaskModel $task;
protected $rules = [
'task.is_done' => ['boolean'],
];
public function updatedTask()
{
$this->task->save();
... |
require 'spec_helper'
describe 'samba::service', :type => 'class' do
context "Should configures service" do
let(:params){{
'package' => 'samba',
'absent' => false,
'disable' => false,
'disableboot' => false,
'service' => 'samba',
}}
it do
shou... |
### NBA API Endpoint Mapping (1:1 Mappings)
Endpoint | NBA Endpoint | Status | Note |
--- | --- | --- | --- |
all_star_ballot_predictor | Untested | | Player Id 0 didnt work, try with real players |
league_game_log |leaguegamelog | OK | |
playoff_picture|playoffpicture| OK ||
team_roster |commonteamroster | OK | ... |
using UnityEngine;
using System.Collections;
using System;
public class FibonacciAI : ARPSPlayer {
private int num1, num2, count;
private System.Random rnd = new System.Random();
private Match.RPS curr = Match.RPS.Rock;
public override void startMatch(Match match)
{
base.startMatch(match);
num1 = 1;
num2... |
# vnew
Quickly create new files or folders (folders end with `/`).
Created using [the V programming language](https://github.com/vlang/v).
## Compile & Install
```
v .
sudo cp vnew /usr/local/bin
```
## Examples:
```
vnew abd/def/x.txt
```
... creates the abd/def/ folder if it does not exist already, and then add a n... |
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { NgxScrollTopComponent } from './ngx-scrolltop.component';
import { NgxScrollTopCoreService } from './ngx-scrolltop.core.service';
describe('NgxScrollTopComponent', () => {
let component: NgxScrollTopComponent;
let fixture: Co... |
module Admin
module Parsers
describe Workbook do
subject { Workbook.new(rubyxl_workbook) }
let(:headings) { ['First Name', 'Last Name'] }
let(:rubyxl_workbook) do
Support::Factories::Spreadsheet.build(headings, data, blacklist)
end
context 'normal data' do
let(:da... |
import { Observable, Subscription } from 'rxjs';
import * as uuid from 'uuid';
import { Collections, Nullable, Try } from 'javascriptutilities';
import * as API from './API';
import * as Config from './Config';
import * as Message from './Message';
import * as SID from './SuggestionId';
import { Participant } from './R... |
---
title: 给版本在git上打上 tag
---
## Tag 的增删
- `git tag <tagname>` 增加一个 tag
- `git tag -f <tagname>` 添加一个 tag
|
module.exports = {
"env": {
"commonjs": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-prototype-builtins": "warn",
"no-constant-condition": "off",
"no-unused-vars": "warn",
"... |
require 'spec_helper'
describe 'yum::config' do
context 'with no parameters' do
let(:title) { 'assumeyes' }
it { is_expected.to raise_error(Puppet::PreformattedError, %r{expects a value for parameter 'ensure'}) }
end
context 'when ensure is a Boolean' do
let(:title) { 'assumeyes' }
let(:params)... |
module Boundary
class OpenDataEmpty < Boundary::TerminableError
def initialize
super(<<~MSG.strip)
No data provided for export
MSG
end
end
end
|
# Curiously recurring template pattern
<!--
// Copyright (c) 2016 CNRS
// Author: Florent Lamiraux, Justin Carpentier, Florian Valenza
//
-->
Similarly to Eigen, Pinocchio library makes intensive use of the so called CRTP design
pattern. This pattern is used for performance reasons in the
implementation of static poly... |
/*
* tcp_client.c
*/
#include "ets_sys.h"
#include "os_type.h"
#include "osapi.h"
#include "mem.h"
#include "user_interface.h"
#include "espconn.h"
#include "tcp_client.h"
#include "user_config.h"
#define TCP_BUF_LEN 512
static u8 tcp_rev_buff[TCP_BUF_LEN];
static u16 rev_data_len;
static struct espconn tcp_clie... |
#include "../back.h"
#include "../draw.h"
#include "../comm.h"
#include "../luby.h"
#define WIDTH 640
#define HEIGHT 480
static drawing global_drawing;
void back_start(int argc, char** argv)
{
triangle t;
(void)argc;
(void)argv;
drawing_init(&global_drawing, WIDTH, HEIGHT);
if (comm_rank() == 0) {
t.a =... |
import {CSSPseudoPage, NodeBaseWithComments} from "@internal/ast";
import {createBuilder} from "../../utils";
export interface CSSPageSelector extends NodeBaseWithComments {
readonly type: "CSSPageSelector";
readonly ident?: string;
readonly pseudo?: CSSPseudoPage;
}
export const cssPageSelector = createBuilder<CS... |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-25 03:29
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('crowdclass', '0006_auto_20160425_0236'),
]
operations = [
migrations.RemoveField(
... |
;;----------------------------------------------------------------------------;;
;; Fix the position of the textboxes
;; Copyright 2015 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may ... |
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright © 2019-2022 Tensil AI Company */
package tensil.tools.emulator
import tensil.tools.compiler.{MemoryAddressRaw}
trait Executive {
def peekAccumulator(address: MemoryAddressRaw): Array[Float]
def peekLocal(address: MemoryAddressRaw): Array[Float]
def peekDRA... |
<?php
define("DB_SERVER", "localhost");
define("DB_USER", "anshul");
define("DB_PASS", "1234");
define("DB_NAME", "practice_project_db");
// Create connection
$conn = mysqli_connect(DB_SERVER, DB_USER, DB_PASS, DB_NAME);
// Check connection
if (!$conn)
{
die("Connection failed: " . mysqli_con... |
/*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (almaslvl@gmail.com).
* See LICENSE for details.
*/
package com.almasb.fxgl.time
import com.almasb.fxgl.core.serialization.Bundle
import javafx.util.Duration
import java.time.LocalDateTime
import java.time.temporal.ChronoUnit
/**
* C... |
User Interface Design
====================
User Interface Design is ... design for user interfaces.
## <a name='toc'>Table of Contents</a>
1. [Design Patterns](#designpatterns)
## [[⬆]](#toc) <a name='designpatterns'> Design Patterns</a>
|
#!/bin/bash
###############################################################################
# Author: Michael Frohlich
# Date: 2019
# Copyright: 2019 Michael Frohlich - Modified BSD License
###############################################################################
sudo xset s off
sudo xset -dpms
sudo xse... |
# encoding: utf-8
module Rubocop
module Cop
module Style
# This cops looks for uses of global variables.
# It does not report offences for built-in global variables.
# Built-in global variables are allowed by default. Additionally
# users can allow additional variables via the AllowedVari... |
require 'fileutils'
require 'bundler'
require 'tmpdir'
require 'digest'
module Yoda
module Store
class Project
# Find registry file for the current project settings.
class Files
attr_reader :project
# @param project [Project]
def initialize(project)
@project = proje... |
module Consent
RULES_FILE = "#{ RAILS_ROOT }/config/consent.rb"
DENIAL_RESPONSE = {:text => 'Access denied', :status => 403}
class DenyException < Exception; end
class AllowException < Exception; end
class RedirectException < Exception
attr_reader :params
def initialize(expression)
@... |
import {
HighLevelCompileOp,
HighLevelCompileOpcode,
StatementCompileActions,
DynamicComponentOp,
IfResolvedComponentOp,
TemplateCompilationContext,
} from '@glimmer/interfaces';
import { compilableBlock } from '../compilable-template';
import { InvokeDynamicComponent } from '../opcode-builder/helpers/compo... |
import * as React from 'react';
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface Props {}
const Footer: React.FC<Props> = (props: Props) => {
// const { } = props;
return <div>Footer</div>;
};
export default Footer;
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.IO;
using BuildXL.FrontEnd.JavaScript.ProjectGraph;
using BuildXL.FrontEnd.Yarn.ProjectGraph;
using N... |
package com.programmaticallyspeaking.ncd.nashorn
import com.sun.jdi.request.{BreakpointRequest, EventRequest, EventRequestManager}
import com.sun.jdi._
import com.sun.jdi.event.EventQueue
class XVirtualMachine(virtualMachine: VirtualMachine) {
import scala.collection.JavaConverters._
private var objectReferences... |
namespace DotnetRuntimeBootstrapper.AppHost.Prerequisites;
public interface IPrerequisiteInstaller
{
IPrerequisite Prerequisite { get; }
string FilePath { get; }
void Run();
} |
const loginRoute = '/login/';
const signUpRoute = '/sign-up/';
const mainScreenRoute = '/main-screen/';
|
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.