text stringlengths 27 775k |
|---|
/*
* Copyright 2021 Shreyas Patil
*
* 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 t... |
using System.Collections.Generic;
namespace DotVVM.Framework.Controls
{
public class PostBackHandlerCollection : List<PostBackHandler>
{
}
} |
namespace SyZero.Web.Common
{
public class WxTicketResult : WxOpenJsonResult
{
public string ticket { get; set; }
}
}
|
# frozen_string_literal: true
module PgPartitioned
module Model
class Decorator < SimpleDelegator
def partitions
PgPartitioned.cache.fetch_partitions(cache_key) do
connection.select_values(<<-SQL)
SELECT pg_inherits.inhrelid::regclass::text
FROM pg_tables
... |
using AppService.Contracts;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ApplicationModels;
using Microsoft.AspNetCore.Routing;
using System.Reflection;
namespace App.Service.AspDotNetDistributor
{
public class GenericControllerRouteConvention : IControllerModelConvention
{
public vo... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright 2012 The MITRE Corporation *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* y... |
#!/usr/bin/env python3
import hashlib
import codecs
import time
import random
import os
# declare beginning and end of byte values
version_position = { "begin" : 0, "end" : 8 }
prev_block_position = { "begin" : 8, "end" : 72 }
merkle_root_position = { "begin" : 72, "end" : 136 }
timestamp_position = { ... |
package benchmark
import (
"github.com/stretchr/testify/require"
"os"
"os/exec"
"testing"
"time"
)
func TestBenchDuration(t *testing.T) {
r := require.New(t)
dataCmd, _ := os.LookupEnv("DATA")
cmd := exec.Command(dataCmd)
start := time.Now()
out, err := cmd.Output()
r.NoError(err)
r.Greater(int64(time... |
<?php
namespace console\controllers;
use Yii;
use yii\console\Controller;
class RbacController extends Controller
{
/**
* Creates the roles
*/
public function actionInit()
{
$auth = Yii::$app->authManager;
$createAlbum = $auth->createPermission('createAlbum');
... |
export { default as GithubLink } from './GithubLink'
export { default as OtherLink } from './OtherLink'
|
import 'dart:convert';
import 'package:http/http.dart' as http;
import '/model/ticket.dart';
late TicketService ticketService = TicketService();
class TicketService {
TicketService._();
static late final TicketService _ticketService = TicketService._();
factory TicketService() => _ticketService;
Future<L... |
import { match } from './match';
/**
* A Type Guard that checks if the given value is equal to undefined
*
* @category Type Guard
*/
const isUndefined = match(undefined);
export { isUndefined };
|
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
module Common.Json
( ToJSON (..),
FromJSON (..),
Value (..),
toJsonDrop,
toJson,
parseJsonDrop,
parseJson,
encodeBs,
decodeBs,
)
where
import Data.Aeson
( FromJSON,
GFromJSON,
GToJSON,
Options (fieldLabelMo... |
package shortid
// GenerateID 生成短ID算法 generate a id with prefix
func GenerateID(prefix string) string {
id, _ := Generate()
return prefix + "-" + id
}
|
package com.buysmart.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Supplier {
@Id
@GeneratedValue(strategy=GenerationType.AUTO) // to genera... |
<?php
class SessionsController extends BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
//public $errorlog="Ningun error";
public function index()
{
return View::make('sessions.index');
}
/**
* Show the form for creating a new resource.
*
* @return Respon... |
SELECT DISTINCT
s.umpire_type,
s.age_group,
s.short_league_name
FROM dw_mv_report_04 s
WHERE s.region_name = :pRegion
AND season_year = :pSeasonYear
GROUP BY s.umpire_type, s.age_group, s.short_league_name
ORDER BY s.umpire_type, MIN(s.age_sort_order), MIN(s.league_sort_order); |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Carbon\Carbon;
class Item extends Model
{
public function sumPrice()
{
return $this->price->sum();
}
public function date($value)
{
return Carbon::createFromFormat('Y-m-d H:i:s', $value )->format('d M Y');
}
publ... |
<?php
use Illuminate\Database\Seeder;
use App\ProductsImage;
class ProductsImagesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$productImageRecorcds = [
['id'=> 1, 'product_id'=> 1, 'image'=> 'plain-blue-tshir... |
#ifndef LM_MATRIX_3X3_H
#define LM_MATRIX_3X3_H
#include "lmMatrixNxN.hpp"
/** \brief Egy 3x3-as mátrixot definiáló osztály
*
* \todo Néhány transzformáció nincs dokumentálva.
*
* \author Seres Lóránt Gábor
*
*/
typedef lmMatrixNxN<lmScalar,3> lmMatrix3x3;
template<class T>
T lmDeterminant(const lmMatrixNxN<T,... |
# ShowWork
HLS final project is a simple image processing program in vivado HLS written in C/C++.
each file consists of the main source code, a header and a test bench.
the algorithms featured are:
-Average
-Binary Image
-Image Invertion
-Image Scaling
-Compression and Decompression
|
import { Controller, Delete, Get, Post, Put,Query,Res,Body, NotFoundException,HttpStatus } from '@nestjs/common';
import { ProductsService } from "./products.service";
import { CreateProductDTO } from "./dto/products.dto";
@Controller('products')
export class ProductsController {
constructor(private productsServic... |
#!/bin/sh
set -e
# Check if there are unexpected changes. Changes to CHANGELOG.md and the
# package.json file are expected as part of the normal release process.
changes="$(git status --porcelain -- ':!CHANGELOG.md' ':!package/package.json')"
if [[ -n $changes ]]; then
echo "⚠ Unexpected changes in your working dire... |
JSValue = BRubyBridge::JSValue
puts "start-rb-java_script-object"
test("JavaScript::Object#[]")
#
js_eval("global.a = 'abc'")
ensure_result( JavaScript.global['a'] == 'abc' )
js_eval('delete global.a')
test("JavaScript::Object#[]=")
#
ensure_js_result('global.a === undefined')
ensure_result( (JavaScript.global['a... |
/*
* Copyright (c) Aleksey Fedotov
* MIT license
*/
#include "SoloPhysics.h"
#include "bullet/SoloBulletPhysics.h"
using namespace solo;
auto Physics::fromDevice(Device *device) -> sptr<Physics>
{
return std::make_shared<BulletPhysics>(device);
}
Physics::Physics(Device *device):
devic... |
using System;
using AlkaronEngine.Input;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace AlkaronEngine.Components
{
public class CameraComponent : BaseComponent
{
public Vector3 UpVector { get; set; }
public Vector3 LookAt { get; set; }
public... |
---
to: src/Business/<%= Domain %>/Usecases/<%= Name %>/__tests__/<%= Name %>Usecase.unit.test.ts/
---
import { <%= Name %>Presenter } from "../<%= Name %>Presenter";
import { <%= Name %>Request } from "../<%= Name %>Request";
import { <%= Name %>Usecase } from "../<%= Name %>Usecase";
class Presenter implements <%= N... |
/**
* @flow
*/
import path from 'path';
import type {PlatformsT} from './types.flow';
import findPlugins from './findPlugins';
/**
* Support for `ios` and `android` platforms is built-in
*
* @todo(grabbou): Move this out of the core to increase "interoperability"
* with other platforms
*/
const builtInPlatfor... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from GoogleScraper import scrape_with_config, GoogleSearchError
# See in the config.cfg file for possible values
config = {
'use_own_ip': True,
'keyword': 'Let\'s go bubbles!',
'search_engines': ['yandex', 'bing'],
'num_pages_for_keyword': 1,
'scrape_... |
import { ReactNode } from 'react'
export function withDivider(
elements: ReactNode[] | undefined,
divider: ReactNode,
) {
return elements?.reduce((acc, cur) => (
<>
{acc} {divider} {cur}
</>
))
}
|
from django.db import models
from .page import Page
class RepoLink(models.Model):
repo = models.CharField(max_length=100)
folder = models.CharField(max_length=100)
user = models.CharField(max_length=100)
page = models.OneToOneField(Page)
created_at = models.DateTimeField(auto_now_add=True)
up... |
require "spec_helper"
describe Cassie::Subscribers do
it "should be able to add and remove a subscriber" do
subscribers = Cassie::Subscribers.new
expect(subscribers.empty?).to eq true
data_1 = []
data_2 = []
subscriber_1 = lambda { |info| data_1 << info }
subscriber_2 = lambda { |info| data_2... |
package com.github.jacklt.gae.ktor.tg.utils
import com.github.jacklt.gae.ktor.tg.appengine.telegram.TelegramApi
class TelegramHelper(
val chatId: String,
val maxNew: Int = 10
) {
val response: StringBuilder = StringBuilder()
var idsMsgSends = emptyList<Int>()
private set
fun send(vararg ... |
export * from './itokens.service';
export * from './tokens.service';
|
#! /bin/bash
# checks which shell the user is running
# currently supports zsh and bash
function SHELL_CHECK {
if [[ $SHELL == "/bin/bash" ]]; then CONFIG_FILE=("$HOME/.bashrc")
elif [[ $SHELL == "/bin/zsh" ]]; then CONFIG_FILE=("$HOME/.zshrc")
else
echo "Unsupported shell detected, please repor... |
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// SAM_CONVERSIONS: INDY
// WITH_RUNTIME
// FULL_JDK
// CHECK_BYTECODE_TEXT
// JVM_IR_TEMPLATES
// 1 java/lang/invoke/LambdaMetafactory
// FILE: inlineFunWithReifiedTypeParameterRef.kt
inline fun <reified T> oPlus(x: T) = "O" + T::class.java.simpleName
class K
fun box() = ... |
import 'package:flutter/material.dart';
import 'package:pizza_restaurant/theme/style.dart' as style;
import 'package:pizza_restaurant/screens/food_item_details/food_item_details.dart';
import 'package:auto_size_text/auto_size_text.dart';
class PizzaCardList extends StatelessWidget {
const PizzaCardList({
Key key... |
module.exports = {
env: 'production',
database: {
connection: 'mongodb://mongo:27017/production',
transactions: false,
},
email: {
comment: 'See https://nodemailer.com',
from: '<insert your email here>',
host: null,
auth: {
user: null,
pass: null,
},
},
graphiql: f... |
#pragma once
#include <flexlib/ToolPlugin.hpp>
#include <base/sequence_checker.h>
#include <base/files/file_path.h>
#include <base/macros.h>
#include <basis/PluginManager.hpp>
#include <vector>
namespace entt { class dispatcher; }
namespace flextool {
/// \note must store data related to base and basis libs
/// ... |
import React, {useEffect} from 'react';
import {render} from 'react-dom';
import {createActionCreator, createReducer, createReduxContext} from './src';
const initialize = createActionCreator('first', () => 1);
const secondAction = createActionCreator('second', (prev: number) => {
if (prev === 10) {
throw new Er... |
elxml
=====
A minimalistic Excel OOXML writer.
[](https://npmjs.com/package/elxml)
[](http://opensource.org/licenses/MIT)
The main purpose is to create simple Excel files via Java... |
Requirements:
* Python 3.5.8 or higher
* Qt5
* Python packages: PyQt5 pymysql pyserial xmodem crcmod pywifi xlwt pyqtgraph PyOpenGL
[WAYV Air User Manual](https://ainstein.ai/getting-started-with-wayv-air-tutorial-and-user-manual/#usermanual)
|
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Artist;
class Genre extends Model
{
use HasFactory;
protected $fillable = [
'genre_name',
];
//relaton with artist
public function artist(){
r... |
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:iRYDE/components/drawer.dart';
import 'package:iRYDE/screens/home/serviceProviders.dart';
class HomePage extends StatefulWidget {
static const String id = 'home_page';
@override
_HomePageStat... |
class Operations::ComponentsController < Base::ComponentsController
def show
respond_to do |format|
format.html do
instances = Cms::Relation.all(:params => {:ciId => @component.ciId,
:direction => 'from',
... |
/*
Copyright 2019 Bryan Frimin.
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 writing, software
d... |
# Copyright 2019 Quantapix Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... |
class OmniauthCallbacksController < Devise::OmniauthCallbacksController
def github
user = User.from_omniauth(request.env["omniauth.auth"])
sign_in_and_redirect user
end
def facebook
user = User.from_omniauth(request.env["omniauth.auth"])
sign_in_and_redirect user
end
def twitter
user = U... |
import {
ApolloClient,
InMemoryCache,
createHttpLink,
ApolloLink,
Observable,
} from '@apollo/client'
import { setContext } from '@apollo/client/link/context'
import { onError } from '@apollo/client/link/error'
import { REFRESH_TOKEN } from './graphql/queries'
import { refreshToken } from './redux/reducers/authRed... |
window.openVideoInBrowser = function(video_src){
cordova.ThemeableBrowser.open(video_src, '_blank', {
statusbar: {
color: '#00000000'
},
toolbar: {
height: 44,
color: '#f0f0f0ff'
},
title: {
color: '#ff000000', ... |
package kLoops.examples
import kLoops.music.*
fun main() {
setPulsePeriod(9 o 8)
val runBackgroundTasks = startBackgroundTasks()
loop("drums") {
sequencer(_8th) {
"k . k k . k k k ch".play(track("drums"), 0.5)
listOf("kick 4", ".", ".", "kick 4", ".", ".", "kick 4", ".", ".... |
Compass is a sample android application which implements trivial compass functionality.
It was created just as a code snippet reuse in some of my projects.
The main feature of the compass is noise filter (Low-pass filter) which make the arrow
more stable in comparison to other similar applications where arrow always t... |
export interface BotResult {
name: string;
category: string;
url: string;
producer: {
name: string;
url: string;
};
}
|
namespace :game_data do
desc "TODO"
task generate: :environment do
path = Rails.root.join('lib', 'tasks', 'data.yml')
games = YAML.load_file path
games.each do |game|
g = Game.create(
img: game[:img],
url: game[:url],
name: game[:name]
)
game[:scenarios].each do... |
from my_evaluation import my_evaluation
import pandas as pd
from sklearn.tree import DecisionTreeClassifier
##################################################
if __name__ == "__main__":
# Load training data
data_train = pd.read_csv("../data/Iris_train.csv")
# Separate independent variables and dependent v... |
class TopicsController < BaseController
authenticates_anonymous_user
helper :forum
before_filter :set_section
before_filter :set_topic, :only => [:show, :edit, :update, :destroy, :previous, :next]
before_filter :set_posts, :only => :show
before_filter :set_board, :only => [:new, :update]
cache_sweeper :t... |
Cucumber Build
==============
Docker image used to build and release projects in the Cucumber organization.
# Usage
In a cucumber project use the `cucumber/cucumber-build:latest` image to build
and or release.
The secrets needed to make a release can be found in keybase
and should be mounted into the docker image. ... |
Ao utilizar esta aplicação está a concordar com os termos de Licença em LICENSE
Instruções:
<ol>
<li>Colocar os Ficheiros ssl.crt/ssl.key em client/docker/ssl ou guias a baixo</li>
<li>Iniciar o Servidor Execute o Comando: ./scripts/start.sh</li>
<li>Para Parar o Servidor Execute o Comando: ./scripts/stop... |
<?php declare(strict_types=1);
namespace Frosh\Varnish\DependencyInjection;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class EnableAjaxCsrfCompilerPass implements CompilerPassInterface
{
public function process(ContainerBu... |
package net.bnb1.kradle.features
import io.kotest.matchers.file.shouldExist
import io.kotest.matchers.string.shouldContain
import net.bnb1.kradle.PluginSpec
class DokkaBlueprintTests : PluginSpec({
test("Generate documentation") {
bootstrapCompatAppProject()
writeAppKt("println(\"Hello World\")")... |
using System;
namespace GameWarriors.AdDomain.Abstraction
{
public interface IAdVideoHandler
{
bool IsVideoAvailable { get; }
void Initialization(Action onInitializeDone,Action onVideoAvailable, Action<EVideoAdState> onVideoUnavailable);
void LoadVideoAd();
EVideoAdState ShowVi... |
// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
export func... |
#!/bin/bash
RESOLUTION=$(xrandr | grep \* | awk '{print $1}')
case $RESOLUTION in
3440x1440)
xrandr --output HDMI-A-0 --mode 1720x1440 --rate 60
;;
1720x1440)
xrandr --output HDMI-A-0 --mode 3440x1440 --rate 100
;;
esac
|
interface Player {
playerId: number; // Unique player id from the db
teamId: number; // Unique team id from the db
firstName: string;
lastName: string;
jerseyNum: number; // Jersey number
}
export default Player;
|
package com.lizhenhua.fast.plugin
import com.android.build.gradle.BaseExtension
import com.lizhenhua.fast.plugin.core.FastTransformer
import org.gradle.api.Plugin
import org.gradle.api.Project
class Fast : Plugin<Project> {
override fun apply(project: Project) {
project.extensions.create("fast", FastExten... |
/*
* MIT License
*
* Copyright (c) 2017 Anders Mikkelsen
*
* 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,... |
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
import {VersionService} from './version.service';
import {DefaultVersionNotesComponent} from './default-version-notes.component';
import {JTBCoreGamesUI} from 'jtb-core-... |
use std::rand::{task_rng, Rng};
use std::str;
pub struct Robot {
name: ~str
}
fn generateName() -> ~str {
let mut rng = task_rng();
let mut s = str::with_capacity(6);
static LETTERS: &'static [u8] = bytes!("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
static NUMBERS: &'static [u8] = bytes!("0123456789");
for... |
/* global getPluginParameter, fieldProperties, setAnswer */
var whatsAppNumber = getPluginParameter('number')
var whatsAppRecipientName = getPluginParameter('name')
var whatsAppMessage = getPluginParameter('message')
var whatsAppURL = 'https://wa.me/'
var buttonLabel = getPluginParameter('button_label')
var previewNum... |
import { transformSync, TransformOptions as BabelTransformOptions } from '@babel/core'
import { TransformOptions, TRANSFORM_RESULT } from './types'
export default function transform (opts: TransformOptions): TRANSFORM_RESULT {
const _opts: BabelTransformOptions = {
babelrc: false,
configFile: false,
comp... |
export function getAverage(list: number[]): number {
if (list == null || list.length === 0) {
return 0
}
let avg = list.reduce((val1, val2) => val1 + val2) / list.length
return avg
}
export function round(value: number, decimals: number = 2): number {
return Number(value.toFixed(decimals))
}
export ... |
//! Type aliases for common uses
use crate::duration::Duration;
/// Alias for microsecond duration
pub type MicrosDuration<T> = Duration<T, 1, 1_000_000>;
/// Alias for microsecond duration (`u32` backing storage)
pub type MicrosDurationU32 = Duration<u32, 1, 1_000_000>;
/// Alias for microsecond duration (`u64` ba... |
// FIR_IDENTICAL
@SuppressWarnings class TheClass : Runnable, Thread() {
val x = id
}
|
package interfaces
import (
"fmt"
"net/http"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
"github.com/spf13/cobra"
"github.com/wassan128/meltdowner/meltdowner/build"
"github.com/wassan128/meltdowner/meltdowner/config"
"github.com/wassan128/meltdowner/meltdowner/file"
"github.com/wassan128/meltdowner/me... |
import * as core from "@core";
import { text } from "@core";
import * as modules from "@modules";
import { computed, observable } from "mobx";
import { observer } from "mobx-react";
import { PrimaryButton } from "office-ui-fabric-react";
import * as React from "react";
import * as loadable from "react-loadable";
import... |
module TypecheckStructuredProgram (typecheckStructuredProgram) where
import Control.Monad (foldM, liftM, mapM, when)
import Control.Monad.Writer (Writer, runWriter, tell)
import Data.Either
import Data.Maybe (isNothing)
import qualified Data.Map as M
import Types
import Message
import Compile
import Expression
import ... |
#!/bin/bash
set -o pipefail
set -x
set -e
echo "+) Installing extra packages"
dnf -y install deltarpm \
mlocate \
cloud-init \
cloud-utils-growpart \
ntp \
gdisk \
vim \
net-tools \
bind-utils \
curl \
wget \
rsync \
git \
telnet \
traceroute \
bridge-utils \... |
var metify = {
version: '2.0.0'
,appInit: function(){
this.runApp();
}
,appData: {
//remove or hide
hideMode: 'remove'
}
,mfClass: 'metify'
,mfRawContent: 'mf-content-raw'
,mfMetaKeys: 'mf-meta-key'
,runApp: function(){
var _this = this;
//see if we should do anything.
if(this.metifyCheck()>0){
... |
@if(count($animal['references']) > 0)
<div class="block block-center references" id="references">
<div class="block-content block-content-full">
<h2>References</h2>
<ol>
@foreach($animal['references'] as $reference)
<li >
<div class="name">{{ $reference['name'] }}</div>
... |
#!/usr/bin/env bash
# **cleanup-nodes**
# Cleans up baremetal poseur nodes and volumes created during ironic setup
# Assumes calling user has proper libvirt group membership and access.
set -exu
# Make tracing more educational
export PS4='+ ${BASH_SOURCE:-}:${FUNCNAME[0]:-}:L${LINENO:-}: '
LIBVIRT_STORAGE_POOL=$... |
package com.haizhi.kafkaimportdata.thirddata.repo;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
/**
* TODO
*
* @author dongliangqiong 2021-11-02 15:41
... |
package ca.vgorcinschi.qandauser.impl.entities
import ca.vgorcinschi.qandauser.impl.commands.{LogOutCommand, LogInCommand, LoginCommandDone, UserCommand}
import ca.vgorcinschi.qandauser.impl.events.{LoggedIn, LoggedOut, UserEvent}
import ca.vgorcinschi.qandauser.impl.states.UserState
import com.lightbend.lagom.scalads... |
-- CreateTable
CREATE TABLE "Marriage" (
"marriageId" SERIAL NOT NULL,
"maleId" INTEGER NOT NULL,
"femaleId" INTEGER NOT NULL,
"marriageDate" TIMESTAMP(3) NOT NULL,
"remark" TEXT NOT NULL,
PRIMARY KEY ("marriageId")
);
|
import * as fs from 'fs'
import * as path from 'path'
export const getAllSecretFiles = (projectRoot) => {
const filesInDirectory = fs.readdirSync(projectRoot, { withFileTypes: true })
const files = filesInDirectory.map((file) => {
if (file.name === 'status') {
return false
}
const res = path.re... |
/****************************************************************************
**
** Copyright (C) 2015 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2016 Pelagicore AG
** Contact: https://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt ... |
# Speed Snake
:grey_exclamation: Outdated repository
Snake game, made for a challenge.
Find this project on [Planet Casio](http://www.planet-casio.com/Fr/programmes/voir_un_programme_casio.php?showid=851).
|
---
layout: watch
title: TLP1 - 31/08/2018 - M20180831_025558_TLP_1T.jpg
date: 2018-08-31 02:55:58
permalink: /2018/08/31/watch/M20180831_025558_TLP_1
capture: TLP1/2018/201808/20180830/M20180831_025558_TLP_1T.jpg
---
|
/*****************************************************
* WindowsFormsAero
* https://github.com/LorenzCK/WindowsFormsAero
* http://windowsformsaero.codeplex.com
*
* Author: Lorenz Cuno Klopfenstein <lck@klopfenstein.net>
*****************************************************/
namespace WindowsFormsAero.Native {
... |
//! AES block cipher constant-time implementation.
//!
//! The implementation uses a technique called [fixslicing][1], an improved
//! form of bitslicing which represents ciphers in a way which enables
//! very efficient constant-time implementations in software.
//!
//! [1]: https://eprint.iacr.org/2020/1123.pdf
#![d... |
#pragma once
#include "synthizer/cells.hpp"
#include "synthizer/config.hpp"
#include "synthizer/generation_thread.hpp"
#include "synthizer/generator.hpp"
#include "synthizer/memory.hpp"
#include "synthizer/property_internals.hpp"
#include "synthizer/types.hpp"
#include <atomic>
#include <memory>
#include <optional>
#... |
push!(LOAD_PATH, ".")
module GAInitialization
using Population
abstract type InitRandom end
function initializePopulation!(pop::Population.AbstractPopulation, pop_size::Integer, ::Type{InitRandom})
Population.populateRandom!(pop, pop_size)
Population.evalFitness!(pop)
end
end |
require 'travis/build/appliances/base'
module Travis
module Build
module Appliances
class WaitForNetwork < Base
def apply
sh.raw <<~BASHSNIP
travis_wait_for_network() {
local wait_retries="${1}"
local count=0
shift
local... |
<?php
/**
* User Pending Posts
*
* @package snax 1.11
* @subpackage Templates
*/
$is_current_user = get_current_user_id() === bp_displayed_user_id();
?>
<div class="snax">
<?php do_action( 'snax_template_before_user_draft_posts' ); ?>
<div id="snax-user-draft-posts" class="snax-user-draft-posts">
<div class="... |
import * as mongoose from 'mongoose';
let SubscriptionPlan = mongoose.model('SubscriptionPlan');
export default {
getSubscriptionPlanById,
getAllSubscriptionPlans,
getPlanByName
};
async function getSubscriptionPlanById(id) {
return await SubscriptionPlan.findById(id);
}
async function getAllSubscri... |
#!/bin/bash
# Clear out the old compiled TS files
rm -rf out/
# Run tsc -p ./
yarn run compile
# Copy over the syntaxes folder (JSON files) to the out
cp -a src/syntaxes out/src/syntaxes
# Copy over the App.java used for testing
mkdir -p "out/src/test/suite/java"
cp -r src/test/suite/java/. out/src/test/suite/java
... |
#!/bin/bash
echo "Please enter the search keywords for this entry:"
read keywords
echo "Please enter the content for this entry:"
read content
SCRIPT=$(realpath $0)
SCRIPTPATH=$(dirname $SCRIPT)
completeWord=""
for word in ${keywords}
do
if [[ ${completeWord} = "" ]]
then
completeWord="${word}"
else
compl... |
SndC8_Burning_Header:
smpsHeaderStartSong 1
smpsHeaderVoice SndC8_Burning_Voices
smpsHeaderTempoSFX $01
smpsHeaderChanSFX $01
smpsHeaderSFXChannel cPSG3, SndC8_Burning_PSG3, $00, $00
; PSG3 Data
SndC8_Burning_PSG3:
smpsPSGvoice $00
smpsPSGform $E7
dc.b nD3, $25
smpsStop
; Song seems to... |
# WMScheduler
活用category的组件通信框架
对组件通信的思考。 使用category的方式实现 方法粒度的组件通信方,
主要内容是demo + 框架代码。 更想突出的是demo的实际操作。
**建议将仓库克隆后,分别打开两个文件夹下的workspace来查看两种组件通信代码的具体使用方法。**
### iOS Category功能简介
Category 是 Objective-C 2.0之后添加的语言特性。
> Category 就是对装饰模式的一种具体实现。它的主要作用是在不改变原有类的前提下,动态地给这个类添加一些方法。在 Objective-C(iOS 的开发语言,下文用 OC 代替)中的具体... |
---
date: 2020-04-28T12:14:26.106Z
title: Lilis Kiosque
featuredimage: /assets/screenshotpreviewlilis.png
---

Sitio web para la diseñadora [Lili Piazza](https://www.liliskiosque.com/)
|
require 'spec_helper'
describe "requesting '/en/contact' renders a template from database" do
it "displays the '/contact/index.html.erb' page content" do
record = Ecm::Cms::Template.create! do |record|
record.pathname = '/contact/'
record.basename = 'index'
record.locale = ''
record.for... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.