text
stringlengths
27
775k
# [Bygone project](https://github.com/setnemo/bygone) Save your old buggy code as a souvenir (git history included) ## How it work? 0. Create new repository for arhive your projects. 1. Create a personal access token (not the default GitHub Actions token) using the instructions [here](https://docs.github.com/...
class Pickle < Formula desc "PHP Extension installer" homepage "https://github.com/FriendsOfPHP/pickle" url "https://github.com/FriendsOfPHP/pickle/releases/download/v0.7.7/pickle.phar" sha256 "a1c02bee3a364f1f9bf53a41cb355e450b3df0c89de0e75a20a89e9d7ac7069b" license "BSD-3-Clause" bottle do sha256 cel...
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Mitternacht.Common.Replacements { public class Replacer { private readonly IEnumerable<(string Key, Func<string> Text)> _replacements; private readonly IEnumerable<(Regex Regex, Func<...
require "spec_helper" appid = '' appsecret = '' token_file = '/tmp/weapp_access_token' tk = WxOpendata::Token.new(appid, appsecret, token_file) service = WxOpendata::Service.new RSpec.describe WxOpendata do it "1. should return corrent length access_token" do token = tk.token expect(token.size).to be > 120 ...
// Copyright (c) 2012 jareiko. All rights reserved. // Utilities to load database objects. var _ = require('underscore'); var crypto = require('crypto'); var mongodb = require('mongodb'); var mongoose = require('mongoose'); var Schema = mongoose.Schema; var common = require('./common'); var validate = require('./val...
fun hello(): Unit { println("Hola a todos") } fun suma(a: Int, b: Int) { println("la suma de $a y $b es igual a ${a + b}") } //fun max(a:Int, b:Int):Int{ // return if (a > b) // a // else // b //} fun max(a: Int, b: Int) = if (a > b) a else b fun main(args: Array<String>) { println(m...
% % eres_agenda.erl % % ---------------------------------------------------------------------- % %% %% ERESYE, an ERlang Expert SYstem Engine %% %% Copyright (c) 2005-2010, Francesca Gangemi, Corrado Santoro %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modificatio...
%% @author Couchbase <info@couchbase.com> %% @copyright 2019-Present Couchbase, Inc. %% %% Use of this software is governed by the Business Source License included %% in the file licenses/BSL-Couchbase.txt. As of the Change Date specified %% in that file, in accordance with the Business Source License, use of this %% ...
export default { install: (Vue, options) => { Vue.directive("ant-ref", { bind: function (el, binding, vnode) { binding.value( vnode.componentInstance ? vnode.componentInstance : vnode.elm ); }, update: function (el, binding, vnode) { binding.value( ...
class Flavours < Cask url 'http://flavours-updates.interacto.net/Flavours.dmg' homepage 'http://flavours.interacto.net/' version 'latest' sha256 :no_check link 'Flavours.app' caveats <<-EOS.undent Do not use an uninstaller like AppCleaner. Instead, launch Flavours.app and use the menu Flavours > Uni...
# **Лабораторная работа №3** ## Задание * Установить библиотеки sklearn, h5py, mahotas * Скачать датасет (https://www.kaggle.com/thedagger/pokemon-generation-one) с покемонами по варианту (для каждого покемона отдельная папка). * Выбрать фичи («признаки»), для сравнения изображений (цвет, размер, форма, наличие хвост...
package dev.manusaurio.raycast import kotlin.math.abs typealias World<T> = Array<out Array<out T>> class BasicCamera <T : Wall> private constructor( private var position: Point, direction: Point, plane: Point, private val worldMap: World<T>, val columns: Int ) : Camera<T> { val x: Double ...
import React, { useEffect, useState } from 'react'; import socketIOClient from 'socket.io-client'; import { config } from '../../config'; import { Box, Typography, LogBox } from '../../ui'; import { ServerByIdQuery } from '../../generated/graphql'; import { serverTypeReadableName } from '../../utils'; interface Realti...
#!/bin/sh mkdir bios cd bios wget "https://github.com/retrage/edk2-nightly/raw/master/bin/RELEASEX64_OVMF.fd"
namespace Apollo.Core.Services.Common { public enum FeedGeneratorType { Google = 0, AffilicateWindow = 1 } }
using System; using System.Reflection; namespace Pose.Extensions { internal static class MethodBaseExtensions { public static bool InCoreLibrary(this MethodBase methodBase) { return methodBase.DeclaringType.Assembly == typeof(Exception).Assembly; } public static boo...
CREATE TABLE [dbo].[Angebot] ( [AngebotId] INT NOT NULL IDENTITY(1,1), [ErstelltAm] DATETIME NOT NULL DEFAULT GETDATE(), [Status] INT NOT NULL DEFAULT 0, --0 = Offen; 1 = Akzeptiert; 2 = Abgelehnt [PreisProTeil] DECIMAL (18,2) NOT NULL, [AnbieterId] INT ...
<?php namespace Symbiote\DataTransfer; use SilverStripe\Admin\ModelAdmin; class DataTransferAdmin extends ModelAdmin { private static $url_segment = 'data-transfer'; private static $menu_title = 'Data transfer'; private static $managed_models = [ DataExport::class, DataImport::class, ...
import 'package:bloc_flux/bloc_flux.dart'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:mockito/mockito.dart'; import 'package:quiver/core.dart'; //TODO: built_value is trying to build these classes and there is no way to tell it //to ignore th...
import { // KeycloakInstance, KeycloakLoginOptions, KeycloakLogoutOptions, KeycloakRegisterOptions, } from 'keycloak-js'; export interface INextKeycloakAuthContext { loading: boolean; authenticated: boolean; token?: string; userInfo?: INextKeycloakUser; login(options?: KeycloakLoginOptions): void; ...
--Postgres database structure for spotlipy --songs CREATE TABLE songs( id bigserial PRIMARY KEY, channel text NOT NULL, artist text NOT NULL, title text NOT NULL, played timestamp without time zone NOT NULL, found timestamp without time zone NOT NULL, status smallint NOT NULL DEFAULT 0, sp...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class paginasController extends Controller { public function index() { return view('nosotros'); } public function servicios() { return view('servicios'); } public function proyectos() { return...
with start_mfa as ( select user_name, max(event_timestamp) event_timestamp from admin.SNOWFLAKE_LOGIN_HISTORY lh inner join admin.SNOWFLAKE_USER_NETWORK_POLICY np on lh.user_name = np.name where len(np.value) = 0 group by lh.user_name ) select logins.USER_NAME, logins.event_timest...
package com.dupont.midi.output import com.dupont.midi.message.ChanneledMessage import com.dupont.midi.message.MidiMessage import com.dupont.util.findAt import kotlin.test.BeforeTest import kotlin.test.Test import kotlin.test.assertNotNull class SenderTest { lateinit var mpeSender: MpeSender lateinit var midiS...
--- layout: post title: "HashSet 排重" date: 2019-08-18 17:52:3 +0800 categories: Java tag: Java --- * content {:toc} 在**HashSet**中不能存储形同的值,但是在存入自定义对象的时候却会重复然后截取了String类中`hashCode`和`equals`实现方法 ```java public int hashCode() { int h = hash; if (h == 0 && value.length > 0) { char val[] = value; ...
Puppet::Type.newtype(:yumgroup) do @doc = "Manage Yum groups A typical rule will look like this: yumgroup { 'Development tools': ensure => present, } " ensurable newparam(:name) do isnamevar desc 'The name of the group' end end
## kube-controller-manager ### 生成 kube-controller-manager 的 kubeconfig 文件 #### 设置集群参数 ```shell kubectl config set-cluster kubernetes \ --certificate-authority=/etc/kubernetes/ssl/ca.pem \ --server=$api_server \ --kubeconfig=kube-controller-manager.kubeconfig ``` #### 设置客户端认证参数 ```shell ku...
#!/bin/sh #SBATCH --job-name=ThisIsGarbage ##SBATCH --nodes=60 #SBATCH --ntasks=50 #SBATCH --mem=5gb #SBATCH --time=08:00:00 #SBATCH --output=out/%j.log module load mpi/mpich-3.2-x86_64 ##mpicc ~/cmurrer1/COSC/University/Cosc420/Project-1 mpirun ~/cmurrer1/COSC/University/Cosc420/Project-1/main
#[macro_use] pub mod instructions; pub mod csr; pub mod bits; pub mod sbi; pub use instructions::*; pub const CAUSE_STRINGS: [&str; 16] = [ "Instruction address misaligned", "Instruction access fault", "Illegal instruction", "Breakpoint", "Load address misaligned", "Load access fault", "S...
# Use vi mode bindkey -v # Normal kwys work bindkey '^[[3~' delete-char # delete key (delete to the right) bindkey '^?' backward-delete-char # backspace (delete to the left) bindkey '^H' backward-delete-char # backspace (delete to the left) on mac # Better history # Credits to https://coderwall.com/p/jpj_6q/zsh-bette...
package com.rgallego.web.kafka.bean; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter @NoArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnore...
import BaseServer from './base' class SuperServer extends BaseServer { constructor (URL) { super() this.baseUrl = this.baseurl + URL } // get article list by query getArticleList (obj) { return this.Post(obj, this.baseUrl + '/articleList') } // get detail list by query getArticleDetail (obj) ...
namespace NET6.Api.Controllers; /// <summary> /// 地址相关 /// </summary> [Route("address")] public class AddressController : BaseController { readonly AddressRepository _addressRep; public AddressController(AddressRepository addressRep) { _addressRep = addressRep; } /// <summary> /// 默认地...
require 'rails_helper' module Door RSpec.describe StatusNotification, type: :model do it_behaves_like 'loggable' it 'has a door attribute' do expect(build(:door_status_notification, door: 'foo').door).to eq 'foo' end it 'has a latch attribute' do expect(build(:door_status_notification, ...
/** * Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com> */ package akka.japi.pf; import scala.PartialFunction; import scala.runtime.BoxedUnit; import akka.actor.AbstractActor; import akka.actor.AbstractActor.Receive; /** * Used for building a partial function for {@link akka.actor.Actor#receive()...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { elasticsearchServiceMock, savedObjectsClientMock, } from '../../...
namespace CarShop.Web.Data.Models { using System.ComponentModel.DataAnnotations; public class DealerRequest { public int Id { get; set; } [Required] public string UserId { get; set; } public bool Pending { get; set; } public bool IsAccepted { get; set; } } }
/*Problem 7. The biggest of five numbers Write a script that finds the greatest of given 5 variables. Use nested if statements.*/ console.log(getBiggest(5, 2, 2, 4, 1)); console.log(getBiggest(-2, -22, 1, 0, 0)); console.log(getBiggest(-2, 2, 3, 2, 0)); console.log(getBiggest(0, -2.5, 0, 5, 5)); console.log(getBigge...
import io import os from configparser import ConfigParser from typing import Dict, Any, Callable from datetime import datetime, timezone CONFIG_DIR = os.path.expanduser("~/.recept") # Timestamp format used in configuration TIMESTAMP_FORMAT = "%Y.%m.%dT%H:%M:%S" # Converter that convert a value from configuration s...
#!/bin/bash if [[ -z "$1" ]]; then echo "Provide a target directory to store downloaded files as argument. E.g.: /data/kraken-download/datasets" exit 1 fi mkdir -p $1 cd $1 wget -N -a download.log http://rdf.disgenet.org/download/v5.0.0/void-disgenet.ttl # TODO: sort dir from download and take the latest version...
# This script is for installing dependencies in Linux for testing sudo apt-get update && sudo apt-get install -y python-software-properties python g++ make clang build-essential && # sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y && # sudo apt-get update && # sudo apt-get install -y postgresql-9.1 postgre...
// Copyright (c) 2013, 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. // // VMOptions= // VMOptions=--short_socket_read // VMOptions=--short_socket_write // VMOptions=--short...
package com.jahirfiquitiva.paperboard.iconfragments; import android.content.Context; import android.content.res.Resources; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; im...
<?php declare(strict_types=1); namespace BankID\SDK\Responses\Interfaces; use BankID\SDK\Responses\DTO\Envelope; use Psr\Http\Message\ResponseInterface as HttpResponseInterface; /** * Interface SerializerInterface * * @package BankID\SDK\Responses\Interfaces */ interface SerializerInterface { /** * De...
import { body } from 'express-validator'; export const postUsersValidation = [ body().isArray().notEmpty(), body('*.name', 'name must be a string') .exists() .notEmpty() .isString() .trim() .escape(), // Sanitization body('*.email', 'email field must be an email').exists().trim...
// // Created by An Guangyan on 2/23/22. // #include <ros/ros.h> #include <std_srvs/Empty.h> int main(int argc, char **argv) { using namespace ros; using Empty = std_srvs::Empty; using namespace ros::param; init(argc, argv, "parameter_config", init_options::AnonymousName); int r, g, b, rn, gn, b...
# Examples ```@setup ENV["DATADEPS_ALWAYS_ACCEPT"] = true ``` ## MNIST ### Traning & Testing ```@example mnist using WiSARD using MLDatasets wnn = WNN{Int, UInt}(28, 28; seed=0) train_x, train_y = MNIST.traindata( Float64; dir=joinpath(@__DIR__, "data", "mnist") ) train_x = Array{Bool}[train_x[:, :, i] .>...
{-# LANGUAGE OverloadedStrings #-} module Parser.Irssi.Log.JSON ( ) where import Control.Applicative (empty) import Data.Aeson import qualified Data.HashMap.Lazy as HML import Data.Text (Text) import Parser.Irssi.Log.Types instance FromJSON LogType wher...
INSERT INTO visits VALUES (1, 7, '2013-01-01', 'rabies shot'); INSERT INTO visits VALUES (2, 8, '2013-01-02', 'rabies shot'); INSERT INTO visits VALUES (3, 8, '2013-01-03', 'neutered'); INSERT INTO visits VALUES (4, 7, '2013-01-04', 'spayed');
import Vue from 'vue' import App from './App.vue' import Back from "vue-material-design-icons/ArrowLeft"; import LoginIcon from 'vue-material-design-icons/LoginVariant.vue'; import PencilOutlineIcon from 'vue-material-design-icons/PencilOutline.vue'; import ListCampaingsIcon from 'vue-material-design-icons/FormatListTe...
/* * creations_ecosystem_server.js */ 'use strict' // Path and paths: needs to be at the top var path = require('../libraries/path'); var paths = require('../paths/paths'); // Babel ES6/JSX Compiler: needs to be before ES6/JSX components require(path.join(paths.libraries, '/babel-register')); // Core Node.js modu...
# ragel-go [![godocb]][godoc] [![goreportb]][goreport] This package provides a driver for [ragel] based scanners in Go for streamed input. It takes care of all the boilerplate code, letting the user focus on the ragel state machine definition. It is only intended for use with ragel machines defined as scanners. See ...
package com.axonvibe.challenge.shared.viewModel.profile import com.axonvibe.challenge.shared.base.Response import com.axonvibe.challenge.shared.data.enum.PlayerStatus import com.axonvibe.challenge.shared.data.firebaseCloud.FirebaseCloud import com.axonvibe.challenge.shared.data.preferences.SessionPreference import com...
# frozen_string_literal: true module AWS module SQS module Configurator class Package GENERAL_DEFAULT_OPTIONS = %i[region prefix suffix environment metadata].freeze TOPIC_DEFAULT_OPTIONS = %i[region prefix suffix environment metadata].freeze QUEUE_DEFAULT_OPTIONS = %i[region prefix ...
import { Box3, Matrix3, Matrix4, Plane, Ray, Sphere, Vector3 } from '../../../src/Three'; export class OBB { center: Vector3; halfSize: Vector3; rotation: Matrix3; constructor(center?: Vector3, halfSize?: Vector3, rotation?: Matrix3); set(center: Vector3, halfSize: Vector3, rotation: Matrix3): thi...
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ import { interfaces } from 'ask-sdk-model'; import SendRequestDirective = interfaces.connections.SendRequestDirective; export abstract class AbstractDirectiveBuilder<T, V> { protected type: string = 'Connec...
using System; using System.Drawing; using OpenTK; using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; namespace Smash_Forge { public class RenderTools { // Taken from Brawllib render TKContext.cs public static void drawSphere(Vector3 center, float radius, uint precision) { ...
--- layout: post title: "[learning javascript] chapter 15. 날짜와 시간" description: " " date: 2021-06-18 tags: [javascript] comments: true share: true --- # 날짜와 시간 - 자바스크립트의 `Date`객체는 잘 만들어졌다고 볼 수 없음 - 여기서는 `Moment.js`를 사용 ## 날짜, 타임존, 타임스탬프, 유닉스 시간 - 자바스크립트에서 Date인스턴스는 모두 유닉스 시간 원점(Unix Epoch)으로부터 몇 밀리초가 지났는지 나타내는 숫자 - ...
# Installation with Docker ## About swarm-cronjob provides automatically updated Docker :whale: images within several registries: | Registry | Image | |---------------------------------------------------...
{-# LANGUAGE RankNTypes #-} module Main where import Criterion.Main import System.IO.Silently (silence) import Text.Megaparsec import Text.Megaparsec.Char import qualified Text.Megaparsec.Char.Lexer as L import AoC import Control.Monad (guard) import qualified Data.List as L import qualified Data.Map as M import qua...
/** * @file 系统主入口 * @author zhanglili */ import {establishGlobal} from '@/regions'; import Todo from '../Todo'; import Note from '../Note'; import Counter from '../Counter'; import Food from '../Food'; const App = () => ( <div> <Todo /> <Note v={1} /> <Counter /> <Food /> </...
/** * Copyright (C) 2010-2012 LShift 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...
interface TileArguments { x: number; y: number; size: number; color: string; };
# HealthBot Microburst KPI rules and playbooks ## Microburst playbooks ### Playbook name: microburst-playbook > Description: "Playbook detects microbursts on interface egress queues" > Synopsis: "Microburst detector" > Playbook file name: microburst.playbook > Detals: Detects microburst in all monitored in...
# Ansible role: zsh ![Molecule Test](https://github.com/crgwilson/ansible-role-zsh/workflows/Molecule%20Test/badge.svg) Install [zsh](https://www.zsh.org/) * Install the requisite `zsh` package * Optionally install [oh-my-zsh](https://ohmyz.sh/) ## Variables The variables for this role are pretty straight forward ...
using UnityEngine; namespace Voxell.Rasa { public static class EdgeColor { public static Color flow = new Color(0.80f, 0.33f, 0.50f, 1.0f); public static Color obj = new Color(0.70f, 0.70f, 0.70f, 1.0f); public static Color str = new Color(0.47f, 0.75f, 0.02f, 1.0f); public static Color strList = ...
using System.Diagnostics; using System.Globalization; using System.Threading; using Cassandra.IntegrationTests.TestBase; using Cassandra.IntegrationTests.TestClusterManagement; using NUnit.Framework; namespace Cassandra.IntegrationTests { [SetUpFixture] public class CommonFixtureSetup : TestGlobals { ...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Http\Event; use Symfony\Component\HttpFounda...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdio.h> #include <string> #include "mojo/examples/sample_app/gles2_client_impl.h" #include "mojo/public/bindings/allocation_scope.h" #include ...
using Cortlex.Rescope.Abstractions; using Microsoft.Extensions.DependencyInjection; namespace Cortlex.Rescope.NETCore { public class CoreInjectionScopeFactory: IInjectionScopeFactory { private readonly IServiceScopeFactory _serviceScopeFactory; public CoreInjectionScopeFactory(IServiceScopeFa...
inThisBuild( List( organization := "io.github.streetcontxt", homepage := Some(url("https://github.com/streetcontxt/kcl-akka-stream")), licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")), developers := List( Developer( "agenovese", "Angelo Gerard G...
#!/bin/bash apt-get install python3 apt-get install pip pip install pynput echo "" python3 InitLod.py
using System; using System.Runtime.Serialization; using FD.Simple.DB; namespace M.WorkFlow.Model { [Serializable] public partial class WFServiceEntity : DBEntity { public const string TableCode = "WFSERVICE"; public override string _TableCode { get { return TableCode; } } private D...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Validator,Redirect,Response,File; use Socialite; use App\User; class SocialController extends Controller { public function redirect($provider) { return Socialite::driver($provider)->redirect(); } public function ca...
unit UCheckCountry; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, UCheckWin, StdCtrls, ExtCtrls, UWWMulti, UMultipliers, UzLogConst, UzLogGlobal, UzLogQSO; type TCheckCountry = class(TCheckWin) procedure FormCreate(Sender: TObject); private { Private decla...
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Timers; namespace CacheSharp.Console { public sealed class LoadRunner<TCache> wher...
package io.kommons.designpatterns.singleton /** * Kotlin lazy delegator를 이용하여 singleton 을 생성합니다. * * @author debop */ class KotlinSingleton { companion object { @JvmStatic val INSTANCE: KotlinSingleton by lazy { KotlinSingleton() } } }
package bn256 import ( "bytes" "github.com/wavesplatform/gowaves/pkg/crypto/internal/groth16/bn256/utils/bn254" //nolint ) type Proof struct { A *bn254.PointG1 B *bn254.PointG2 C *bn254.PointG1 } func GetProofFromCompressed(proof []byte) (*Proof, error) { reader := bytes.NewReader(proof) var g1Repr = make([]...
# gasthe.lgbt ***Last updated 2019.01.12*** ***thanks to @rummik for sending this one!*** Kinda obvious from the domain name. Evidence points to [gameliberty.club](../gameliberty_club/gameliberty_club.md)'s admin being responsible for it, with [feminism.lgbt](../feminism_lgbt/feminism_lgbt.md)'s admin joining in the...
/* 方法1:滑动窗口(从右往左滑动) 时间复杂度:O(n) 空间复杂度:O(1) 方法2和3:滑动窗口(从左往右滑动) 时间复杂度:O(n) 空间复杂度:O(1) 方法4:滑动窗口+前缀和(空间复杂度比较高,暂不写) 时间复杂度:O(n) 空间复杂度:O(n) case1: r: */ package medium import "math" func MaxScore(cardPoints []int, k int) int { if cardPoints == nil || len(cardPoints) == 0 || k == 0 { return 0 } sum := 0 for i := 0...
<?php include 'db.php'; mysqli_set_charset($c, "utf8"); $id = intval($_POST["id"]); $items = []; $sql = "SELECT * FROM articles WHERE id=" . $id; $results = $c->query($sql); if ($results->num_rows > 0) { while ($row = $results->fetch_assoc()) { $writers = $c->query("SELECT * FROM admins WHERE id=" . $row["w...
package com.arman.sokoban.view.gamestate; import com.arman.sokoban.controller.Stopwatch; import com.arman.sokoban.model.level.LevelManager; import com.arman.sokoban.view.GamePanel; import java.awt.*; import java.util.Stack; public class GameStateManager { public static final int MENU_STATE = 0; public stati...
import {ComponentInterface} from '../../ECS_lib/types'; import {SpriteType} from './Sprite'; export type AnimationType = SpriteType; export class Animation implements ComponentInterface{ type: AnimationType; constructor(type: AnimationType = 'idle') { this.type = type; } }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Crud * * @author JuvenaL */ class Crud...
import { Component, OnInit } from '@angular/core'; import { AppState } from '../../store'; import { select, Store } from '@ngrx/store'; import { Observable } from 'rxjs'; import { Debt } from '../../store/debts/models'; import { SubscriptionComponent } from '../../core/models'; import { selectDebts, selectDebtsLoadedSt...
#!/bin/bash # ------------------------------------------------------------------- # Description : Installation and basic configuration of web2py, # uWSGI, andNGINX. # in CentOS 5.x GNU/Linux # Usage : Copy the script in /home/username and run it as root, # you may need t...
# -*- coding: utf-8 -*- """ created by 'huangshuangquan' at 2015/9/3 18:12 Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is not ugly since it includes another prime factor 7. Note th...
# Setup By Steffen Prohaska <!--@@VERSIONINC@@--> Unless you are already in a separate directory, create one: ```bash mkdir nog-fso-the-hard-way-k8s cd nog-fso-the-hard-way-k8s ``` The tutorials use Kubernetes to run several services and simulate hosts that might be run as physical or virtual machines in a productio...
$(document).ready(function () { TweenMax.from(".navbar-brand", 2, { delay: 0.3, opacity: 0, x: -200, ease: Expo.easeInOut, }); TweenMax.staggerFrom( ".navbar .nav-item", 1, { delay: 0.9, opacity: 0, x: -60, ease: Power2.easeInOut, }, 0.2 ); // cust...
using System.Collections; using System.Collections.Generic; public interface IQueryableData { string GetID(); }
--- layout: about.njk name: Homebrew image: '/images/logo-small-white.svg' --- ## What is Homebrew? Homebrew aims to be a community of FOSS enthusiasts, as well as the one-stop shop for those curious about and interested in FOSS. It aims to be a forum where enthusiasts can discuss their favorite open source technolog...
import styled from 'styled-components'; export const TooltipContainer = styled.rect` fill: #e8e8e8; `;
# frozen_string_literal: true module Gitlab class GlRepository include Singleton PROJECT = RepoType.new( name: :project, access_checker_class: Gitlab::GitAccess, repository_resolver: -> (project) { project.repository } ).freeze WIKI = RepoType.new( name: :wiki, access_c...
#!/bin/bash yum install -y libtool yum install -y gcc make gcc-c++ openssl openssl-devel src_dir=/usr/local/src work_dir=/usr/local/redis cur_dir=$(cd "$(dirname "$0")"; pwd) # cd /usr/local/src red_version=3.2.0 if [ ! -e $src_dir/redis-$red_version.tar.gz ]; then cd /usr/local/src wget http://download.redis.io/r...
class Notification < ApplicationRecord validates_presence_of :message scope :active, -> { where('hidden = ? AND created_at >= ?', false, 7.days.ago) } end
--- layout: redirect category: redirect permalink: /docs/tutorials/tooltips/ redirect: /docs/crashcourse/tooltips/ ---
import Vue from 'vue' export interface FilingData extends Vue { filingTypeCode: string, entityType: string }
using System; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Threading.Tasks; namespace Orleans.Bus { static class AggregateExceptionExtensions { public static async Task UnwrapExceptions(this Task task) { try { ...
--- id: 240 title: Links author: Mathew layout: single guid: https://www.headfullofair.com/?p=240 permalink: /2010/02/18/links/ categories: - post tags: - injection molding --- Updated the books I&#8217;ve been reading section.  Check out Inter Ice Age 4. LINKS: An **[injection molding sim][1]**, brought to you ...
<?php namespace Midi\Plugin; /** * The Plugin Events. * * @author tanmingliang */ class PluginEvents { /** * The INIT event occurs after a Midi instance is done being initialized * * @var string */ const INIT = 'init'; /** * The COMMAND_CONFIGURE event occurs command is confi...