text
stringlengths
27
775k
/bash if [ $# -ne 1 ]; then echo "Usage: $0 DEGREE" exit 1 fi SURVEY=2mass OBJ=m51 BAND=j DEGREE=$1 WORK_DIR=$2 TABLE=${DEGREE}_degree_images.tbl echo "Creating work directory..." if [ -e $DEGREE ]; then echo "Work dir already exists! ($DEGREE)" exit 1 fi mkdir -p $1 cd $DEGREE mkdir input workdir echo "Generat...
class DropItemsController < ApplicationController def create todo_list = TodoList.find params[:todo_list_id] @todo_item = TodoItem.find drop_params[:todo_item_id] after_todo_item = TodoItem.where(id: drop_params[:after_todo_item_id]).first todo_list.drop_item(@todo_item, after: after_todo_item) end ...
package tpsmon import "gopkg.in/urfave/cli.v1" var ( AwsMetricsEnabledFlag = cli.BoolFlag{ Name: "awsmetrics", Usage: `AWS metrics enabled`, } AwsRegionFlag = cli.StringFlag{ Name: "awsregion", Usage: `AWS region`, } AwsNwNameFlag = cli.StringFlag{ Name: "awsnetwork", Usage: `AWS network name`, ...
class Donor < User before_validation :set_default_role!, on: :create has_many :donations, foreign_key: "donor_id", class_name: "Donation" has_many :addresses, foreign_key: "donor_id", class_name: "DonorAddress" accepts_nested_attributes_for :addresses # Returns the first of addresses where default is true ...
mutable struct CRHCCache{M<:AbstractMatrix, V<:AbstractVector, C, IN} momentmatrix::M # nxm "For regression type" modelmatrix::M residuals::V "Scratch matrix" matscr::M "Factorization of X'X" crossx::C # Factorization of X'*X "Meat" Shat::M "The cluster indices ...
package com.example.design_pattern.builder; /** * 创建Builder类规范产品的组建。 * 商家组装计算机有一套组装方法的模板,就是一个抽象的Builder类, * 其里面提供了安装CPU、主板和内存的方法,以及组装成计算机的create方法。 */ public abstract class Builder { public abstract void buildCpu(String cpu); public abstract void buildMainBoard(String mainBoard); public abstract void b...
use std::fmt; use std::marker::PhantomData; use gccjit_sys; use context; use context::Context; use object; use object::{Object, ToObject}; use gccjit_sys::gcc_jit_types::*; /// A representation of a type, as it is known to the JIT compiler. /// Types can be created through the Typeable trait or they can /// be crea...
<?php namespace L1m2\PlatformBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * Transfo * * @ORM\Table() * @ORM\Entity(repositoryClass="L1m2\PlatformBundle\Entity\TransfoRepository") * @UniqueEntity(fields="mots", message="Une liste similaire a...
require 'pp' require_relative 'n3m2_strategy' module N3M3 class State NUM_STATES = 512 def self.make_from_id( id ) raise "invalid arg: #{id}" if id < 0 or id >= NUM_STATES c_1 = ( ((id >> 0) & 1) == 1 ) ? :d : :c c_2 = ( ((id >> 1) & 1) == 1 ) ? :d : :c c_3 = ( ((id >> 2) & 1) == 1 ) ? :d : :c ...
package gui.colorPicker; import util.LogBuffer; import javax.swing.*; import java.awt.*; import java.awt.MultipleGradientPaint.CycleMethod; import java.awt.geom.Rectangle2D; import java.util.List; /** A special JPanel that represents a gradient colored box. It has a * MouseListener attached (via the controller clas...
using Microsoft.VisualStudio.TestTools.UnitTesting; using Rank_Generator.Classes; using static Rank_Generator.RankGenerator; namespace RankGenerator.Tests { [TestClass] public class TestGeneration { private Rank_Generator.RankGenerator _testGenerator; [TestInitialize] public void ...
#![allow(non_camel_case_types)] #![allow(unused_imports)] #![allow(dead_code)] // CamelCase versions of the php names for all locations #[derive(Eq, PartialEq, PartialOrd, Ord, Hash, Copy, Clone, Debug)] pub enum Location { DesertPalaceBigChest, DesertPalaceMapChest, DesertPalaceTorch, DesertPalaceBigKeyChest,...
<?php namespace Project\Core\Provider; use Phalcon\DiInterface; use Phalcon\Db\Adapter\Pdo\Mysql; use Phalcon\Di\ServiceProviderInterface; /** * Class MysqlDatabaseProvider * @package Project\Core\Provider */ class MysqlDatabaseProvider implements ServiceProviderInterface { /** * @param DiInterface $di ...
import {Routes, RouterModule} from '@angular/router'; import {ModuleWithProviders} from '@angular/core'; import {DashboardComponent} from './dashboard/dashboard.component'; import {PersonEntry} from './person/person-entry'; import { PersonTable} from './person/person-table'; import { FacilityType } from './facility/fa...
package org.didcommx.didcomm.pack.encrypted import org.didcommx.didcomm.DIDComm import org.didcommx.didcomm.KeyAgreementCurveType import org.didcommx.didcomm.Person import org.didcommx.didcomm.cartesianProduct import org.didcommx.didcomm.common.AnonCryptAlg import org.didcommx.didcomm.common.AuthCryptAlg import org.di...
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies, FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TemplateHaskell #-} {-# OPTIONS -Wall #-} module FiniteStateMachine.State ( FSMState(FSMState), initialFSMState, FSMTrans, compile ) where import Basic.Types import Basic.Features import Control...
library asset_variant_chooser; import 'dart:collection'; import 'package:flutter/widgets.dart'; const double _kLowDprLimit = 2.0; class _AssetVariantChooser { static const assetName = ""; //copied from painting/image_resolution.dart static const double _naturalResolution = 1.0; static final RegExp _extract...
import {createContext, Dispatch, SetStateAction} from 'react'; export const SearchContext = createContext<{ text?: string; updateSearch: Dispatch<SetStateAction<string | undefined>>; }>({updateSearch: () => true});
use std::{collections::HashMap, ffi::OsString, path::PathBuf, time::Duration}; use nix::{ errno::Errno, sys::inotify::{AddWatchFlags, InitFlags, Inotify, WatchDescriptor}, }; use thiserror::Error; use tokio::io::Interest; use tokio::{ io::unix::{AsyncFd, AsyncFdReadyGuard}, select, sync::mpsc::Rece...
package org.memoro.auth @org.springframework.boot.autoconfigure.SpringBootApplication open class Application { companion object { @JvmStatic fun main(args: Array<String>) { org.springframework.boot.SpringApplication.run(org.memoro.auth.Application::class.java, *args) } } }
--- type: docs title: "服务分组" linkTitle: "服务分组" weight: 2 description: "使用服务分组区分服务接口的不同实现" --- 当一个接口有多种实现时,可以用 group 区分。 ## 服务 ```xml <dubbo:service group="feedback" interface="com.xxx.IndexService" /> <dubbo:service group="member" interface="com.xxx.IndexService" /> ``` ## 引用 ```xml <dubbo:reference id="feedbackIn...
import 'package:json_annotation/json_annotation.dart'; part 'cast.g.dart'; @JsonSerializable() class Cast { String character; String name; @JsonKey(name: 'profile_path') String profilePath; Cast(this.character, this.name, this.profilePath); factory Cast.fromJson(Map<String, dynamic> json) => _$CastFromJ...
<?php namespace common\models; use Yii; /** * This is the model class for table "marker". * * @property integer $marker_id * @property string $file_name * * @property Item[] $items */ class Marker extends \yii\db\ActiveRecord { /** * @inheritdoc */ public $file_img; public static functio...
import {error, readTextBuffer, splitLines} from "../common/util.ts"; import {Instruction, parseInstructions} from "./tas22-common.ts"; const data = readTextBuffer(import.meta.url); const lines = splitLines(data); const instructions = parseInstructions(lines); function getCommonRange(range1: [number, number], range2: ...
import createElement from '../../ui/dom/createelement'; import attachmentclient from '../../utils/attachmentclient'; /** * Creates complete HTML for the attachment edit form including eventhandlers and what not. Asynchronously populates its container when result is received from the server * @param {any} layer The l...
package models import org.joda.time.DateTime import models.CropMedia.CropMedia import models.FeedingType.FeedingType import play.api.libs.json._ import play.api.libs.functional.syntax._ import utils.Validators._ import scalaz.ValidationNel import scalaz.Scalaz._ object CropMedia extends Enumeration { type CropMedi...
package kota import android.annotation.SuppressLint import android.net.Uri import android.support.test.runner.AndroidJUnit4 import kota.isFile import kota.isNetwork import org.junit.Assert import org.junit.Assert.assertEquals import org.junit.Test import org.junit.runner.RunWith import java.io.File @RunWith(AndroidJU...
name := "harrsh" version := "1.0" scalaVersion := "2.12.2" scalacOptions ++= Seq("-Xmax-classfile-name","78") libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.6" libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.0.6" libraryDependencies += "ch.qos.logback" % "...
#!/usr/bin/env bash #创建数据表 #如果创建的表存在 加上了 [IF NOT EXISTS] 系统不提示错误 否则系统提示错误 CREATE TABLE [IF NOT EXISTS] `table_name` ( column_name data_type, ... ); #创建表tb1 #warn 工资应该使用decimal # FLOAT(8,2) 范围 000000.00 - 999999.99 CREATE TABLE `tb1` ( `username` VARCHAR(20), `age` TINYINT UNSIGNED, `salary` FLOAT(...
# frozen_string_literal: false require_relative "rating_stars_generator/identity" require_relative "rating_stars_generator/helpers" class RatingStarsGenerator include Helpers def initialize(mark, css_class: "rating-stars", data: true, wrapper_tag: "span") @mark = mark @css_class = css_class @data = ...
package contact.controller; import contact.model.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.*; import org.springframewo...
using System; namespace HWI.Integrations { public class MessageProcessorInstrumentation { public string MessageProcessor { get; set; } public long ExecutionTime { get; set; } public long SessionMessages { get; set; } public long SessionExceptions { get; set; } ...
import 'dart:typed_data'; import 'dart:convert'; mixin ConversionHelper { // Due to the javascript have limit on the integer, some of the numbers // are in String format // https://github.com/EOSIO/eos/issues/6820 static int? getIntFromJson(dynamic value) { switch (value.runtimeType) { case String: ...
#if defined(NDEBUG) #undef NDEBUG #endif #include <cassert> /************************************************************************ Author: Stephan Beal (http://wanderinghorse.net/home/stephan) License: Public Domain ************************************************************************/ #include <v8.h> #include ...
module FPCourse.Tree where data Tree = Leaf | Node Int Tree Tree deriving Show treeDepth :: Tree -> Int treeDepth Leaf = 0 treeDepth (Node _ leftTree rightTree) = 1 + max (treeDepth leftTree) (treeDepth rightTree) treeSum :: Tree -> Int treeSum Leaf = 0 treeSum (Node value leftTree rightT...
package com.litong.utils.table; import java.io.IOException; import org.junit.Test; import com.litongjava.utils.table.TableUtils; import lombok.Data; /** * @author bill robot * @date 2020年6月12日_下午5:58:38 * @version 1.0 * @desc */ public class TableUtilsTest { @Test public void test() { try { T...
use reqwest; use std::fmt; #[derive(Debug)] pub enum Error { TokenNotFound, FileIOError(::std::io::Error), NetworkError(reqwest::Error), JsonParseError(reqwest::Error), } impl From<::std::io::Error> for Error { fn from(t: ::std::io::Error) -> Self { Error::FileIOError(t) } } impl From...
//using System.Threading.Tasks; //using SpotifyApi.NetCore; //namespace RingoBotNet //{ // internal class AccountsService : IAccountsService // { // protected readonly BearerAccessToken _token; // public AccountsService(string token) // { // _token = new BearerAccessToken{AccessTo...
using System; using System.IO; using System.Reflection; using FluentAssertions; using Imagini.Drawing; using Imagini.ImageSharp; using SixLabors.ImageSharp; using SixLabors.ImageSharp.Formats.Png; using SixLabors.ImageSharp.PixelFormats; namespace Tests { public static class Util { public static string...
set -e set -x python -m pytest Test --cov=pycm --cov-report=term python Otherfiles/version_check.py if [ "$TRAVIS_PYTHON_VERSION" = '3.6' ] then python -m vulture --min-confidence 80 --exclude=pycm,build,.eggs --sort-by-size . python -m bandit -r pycm -s B311 python -m pydocstyle --match-dir=...
using System.Linq; using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Beatmaps; using osu.Game.Overlays.Music; namespace LazerPlayer.Music { public class PlaylistSection : Container { public IBindableList<...
from .base import * DEBUG = True ALLOWED_HOSTS = [] INSTALLED_APPS += [ 'django_extensions', 'debug_toolbar', ] WSGI_APPLICATION = 'config.wsgi.dev.application' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'baeminchan_db', 'USER': 'yeojin', ...
# call apply bind > call() 方法调用一个函数,其具有一个指定的 this 值和分别地提供的参数(参数的列表)。 > > apply() 方法调用一个具有给定 this 值的函数,以及作为一个数组(或类似数组对象)提供的参数。 > > Bind() 方法创建一个新的函数, 当这个新函数被调用时其 this 置为提供的值,其参数列表前几项置为创建时指定的参数序列。 举个栗子 ```javascript var foo = { value: true }; function bar() { console.log(this.value); } bar.call(foo); // true...
#!/bin/sh # TODO: for automatic checks, run this against predefined # setup, store the output to a file and compare it to # a file with pre-recorded expected output. #: Test the logging lib. Except for the `test_logging_unknown_level` #: test case, the rest of the functionality is tested via a call to #: the logg...
/* * Copyright (c) 2017-2018 The Typelevel Cats-effect Project Developers * * 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 * * Unles...
package org.jetbrains.kotlin.js.common private fun Char.isAllowedLatinLetterOrSpecial(): Boolean { return this in 'a'..'z' || this in 'A'..'Z' || this == '_' || this == '$' } private fun Char.isAllowedSimpleDigit() = this in '0'..'9' private fun Char.isNotAllowedSimpleCharacter() = when (this) { ' ', '<'...
package com.example.android.pathfinderassistant.database import com.example.android.pathfinderassistant.characters.* object CharacterDatabaseUtils { fun characterEntryToCharacter(characterEntry: CharacterEntry): BaseCharacter? { return when (characterEntry.characterId) { SeoniConstants.SEONI_K...
class Status < ApplicationRecord READY = 1 PRODUCTION = 2 CLOSING = 3 SENT = 4 end
package com.stratagile.qlink.ui.activity.defi.module import com.stratagile.qlink.data.api.HttpAPIWrapper import com.stratagile.qlink.ui.activity.base.ActivityScope import com.stratagile.qlink.ui.activity.defi.EthTransformActivity import com.stratagile.qlink.ui.activity.defi.contract.EthTransformContract import com.str...
# Query Algebra In this section, we sketch the design and implementation of the query algebra. We will need the following definitions. using DataKnots: @VectorTree, @query, Collect, Count, DataKnot, Drop, Each, Environment, Exists, Fi...
import stainless.annotation.{ghost => ghostAnnot} import stainless.lang._ import stainless.collection._ object GhostFlow2 { case class Ghost(@ghostAnnot var l: List[BigInt]) { def f(x: BigInt) = { ghost { l = x :: l // Argument to ghost parameter `value` of `ghost` must only have effects on ghost f...
import debug = require('debug'); import express = require('express'); import path = require('path'); import fileUpload = require('express-fileupload'); import cors = require('cors'); import bodyParser = require('body-parser'); import morgan = require('morgan'); import _ = require('lodash'); import routes from './rout...
I don't know a lot about git, so I will add to this later -Kostis Perros
# frozen_string_literal: true require "dependabot/utils/elm/version" require "dependabot/update_checkers/elm/elm_package" module Dependabot module UpdateCheckers module Elm class ElmPackage class CliParser INSTALL_DEPENDENCY_REGEX = %r{([^\s]+\/[^\s]+)\s+(\d+\.\d+\.\d+)} UPGRAD...
package app class DataClass( var stuff: Int )
## [3.5.1] - 2020/7/5 * fix(ViewModel): Calling the "View.registerVM" multiple times will not repeat the registration; see: main4x1.dart ## [3.5.0] - 2020/7/4 * remove : freezed_annotation package * feat(ViewModel): ViewModel.vmUpdate()add"bool forceUpdate"param ## [3.4.0] - 2020/6/24 * feat: View level VM register, ...
SUBROUTINE TM_RCHR ( string, iret ) C************************************************************************ C* TM_RCHR * C* * C* This subroutine reads a character string from the terminal and * C* checks for <CR> or EXIT. * C* * C* TM_RCHR ( STRING, IRET ) * C* * C* Output...
package org.hexworks.cavesofzircon.view.dialog import org.hexworks.cavesofzircon.attributes.types.iconTile import org.hexworks.cavesofzircon.extensions.GameItem import org.hexworks.zircon.api.Components import org.hexworks.zircon.api.GraphicalTilesetResources import org.hexworks.zircon.api.graphics.BoxType import org....
/** @jsx jsx */ import React from 'react' import { jsx, Styled, Box, Flex } from 'theme-ui' import logoActivision from '@src/images/logo--activision.svg' import logoBlackberry from '@src/images/logo--blackberry.svg' import logoCarecar from '@src/images/logo--carecar.svg' import logoPg from '@src/images/logo--pg.svg' ...
# This file is only for testing on localhost!! $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/lib') require 'git-api.rb' # Setup git api # -------------------------------------------------------- GitApi::App.set :git_path => "/vagrant/tmp/repos" map '/gitapi' do run GitApi::App end
# frozen_string_literal: true class ThinkingSphinx::Interfaces::RealTime < ThinkingSphinx::Interfaces::Base def initialize(configuration, options, stream = STDOUT) super configuration.preload_indices command :prepare end def clear command :clear_real_time, :indices => indices end def inde...
package cipher import ( "encoding/base64" "testing" ) // TestPrpCrypt_Encrypt ... func TestPrpCrypt_Encrypt(t *testing.T) { k, _ := base64.RawStdEncoding.DecodeString(encodingAesKey) prp := NewPrp([]byte(k)) b, e := prp.Encrypt(text, appID) t.Log(string(b), e) b, e = prp.Decrypt(b, appID) t.Log(string(b), e)...
using System; using System.Collections.Generic; using System.Text; using System.IO; namespace Shared.Common.Protocal.PacketDatas { public class PacketData { public byte[] Pack<T>(T data) { MemoryStream ms = new MemoryStream(); foreach (var prop in typeof(T).GetProperti...
#include <iostream> #include <cxxopts.hpp> #include <onmt/Tokenizer.h> int main(int argc, char* argv[]) { cxxopts::Options cmd_options("detokenize"); cmd_options.add_options() ("h,help", "Show this help") ("lang", "ISO language code of the input", cxxopts::value<std::string>()->default_value("")) ...
INSERT INTO OPTION (name, possession, zone, category, duel, pass, shoot, duel_def, pass_def, shoot_def, risk, win, win_chance, loss, loss_chance, card_risk) VALUES ('Pass', TRUE, 4, NULL, 10, 75, 10, NULL, NULL, NULL, NULL, 'ZONES_1', 75, 'BALL_LOSE', NULL, NULL), ('Pass', TRUE, 3, NU...
module PigeonBand VERSION = "1.0.3" COUNTRY = "DV" HOMEPAGE = "https://github.com/volkerwiegand/pigeon_band" end
--- title: 出错啦 route: /error layout: error --- <p>404 NOT FOUND</p>
package bz.stew.bracken.ui.pages.singlebill.model import bz.stew.bracken.ui.common.bill.BillData import bz.stew.bracken.ui.common.model.Model class SingleBillModel : Model<BillData> { private var singleBill: BillData? = null override fun loadBillData(data: Collection<BillData>, append: Boolean) { if (da...
import { Component, Input, OnInit } from "@angular/core"; import { HttpClient } from "@angular/common/http"; @Component({ selector: 'icv', templateUrl: 'icv.html', styleUrls : ['icv.css'] }) export class ICVComponent implements OnInit { @Input() config; dataList: any[]; selectedItemId: {}; ...
import fileinput # W = 0 # N = 0 # row = [] wordsLeft = -1 max = 0 for line in fileinput.input(): data = line.rstrip('\n').split(' ') if wordsLeft == -1: max = data[0] wordsLeft = data[1] else: for word in data: # W = data[0] # if N: # N = data[1] # ...
# frozen_string_literal: true require 'noise/notification' require 'support/fixtures' require 'support/sleanup_notification' RSpec.describe Noise::Notification do describe '.register' do let(:severity) { described_class::ERROR } def register_error described_class.register(TestError, severity: severity...
package com.github.ac31007_group_8.quiz.staff.models; import com.github.ac31007_group_8.quiz.Database; import com.github.ac31007_group_8.quiz.generated.tables.pojos.Quiz; import com.github.ac31007_group_8.quiz.generated.tables.pojos.Student; import org.jooq.DSLContext; import org.jooq.Record; import org.jooq.Result; ...
package com.nao20010128nao.DroidComplex import android.content.Context import android.support.annotation.* import android.support.v4.app.* import android.view.* /** * Created by lesmi on 17/10/22. */ abstract class BaseFragment : Fragment() { /** Get its title */ abstract val name: String val nonNullC...
{-# LANGUAGE LambdaCase #-} {-# LANGUAGE GeneralisedNewtypeDeriving #-} {-# LANGUAGE DerivingStrategies #-} -- | Functions to parse and display Haddock HTML module Docs.CLI.Haddock ( Html , HtmlPage , Declaration(..) , Module(..) , Package(..) , parseHtmlDocument , parseModuleDocs , parsePackageDocs ...
// Copyright (c) 2016 Arav Singhal. // Span #[derive(Default)] pub struct Span { pub start: Position, pub end: Position, pub file: String } // Position // Copyright 2012-2013 The Rust Project Developers. use std::ops::{Add, Sub}; #[derive(Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Debug, Defau...
import telethon as te from telethon import TelegramClient, events from telethon.utils import get_display_name api_id = <api_id> api_hash = <api_hash> client = te.TelegramClient('anon', api_id, api_hash) @client.on(events.NewMessage()) async def my_event_handler(event): await client.get_dialogs() se...
--- layout: post comments: true categories: paracraft --- ## Empty diary template Empty post template
USE e_store; SELECT products.id, SUM(reviews.stars)/COUNT(reviews.stars) AS avg_rating FROM products JOIN reviews ON products.id = reviews.product_id WHERE products.id = 4;
# Submit a deploy to a production instance. # usage: aws/rails/deploy.sh INSTANCE_NAME=$1 POSTGRES_USER=postgres # TODO(kr) password POSTGRES_PASSWORD= source aws/config.sh echo "Deploying $INSTANCE_NAME..." echo "Looking up Postgres IP..." POSTGRES_IP_ADDRESS=$(aws/postgres/lookup_primary_ip.sh) echo "Found: $POSTG...
package com.knight.wanandroid.library_util; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonParser; import com.google.gson.reflect.TypeToken; import org.json.JSONArray; import org.json.JSONException; impo...
# frozen_string_literal: true module ProjectValidation extend ActiveSupport::Concern included do validates :owner_id, presence: true, numericality: true validates :name, presence: true validates :closed, inclusion: [true, false] end end
// // OpenPathsController.h // SpriteBuilder // // Created by Nicky Weber on 19.11.14. // // #import <Foundation/Foundation.h> @class ProjectSettings; @interface SBOpenPathsController : NSObject @property (nonatomic, weak) IBOutlet NSMenuItem *openPathsMenuItem; @property (nonatomic, weak) ProjectSettings *proje...
package com.drake.net.sample.ui.fragment import android.view.View import com.drake.engine.base.EngineFragment import com.drake.net.Get import com.drake.net.okhttp.setSSLCertificate import com.drake.net.sample.R import com.drake.net.sample.databinding.FragmentHttpsCertificateBinding import com.drake.net.utils.scopeNetL...
using System; using System.IO; using System.Linq; namespace MasterLinq { public class WhyLinq { public static void Demo() { var location = Path.Combine(Directory.GetCurrentDirectory(), "StudentStats"); DisplayLargestStatFilesWithoutLinq(location); Console.W...
package com.xiaoruiit.interview; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * @author hxr * @Classname Log * @Description ToDo */ public class Log { public static void main(String[] args) { List<Logg> loginLog = new ArrayList<>(); // 1-2 // 0-2 登录...
{-# LANGUAGE FlexibleContexts #-} module Reflex.Cocos2d.Misc.Audio ( AudioStateCommand(..) , AudioInstance , playAudio , getAudioFinishedEvent , preloadAudio -- attrs , audioState , loop , volume , currentTime ) where import Control.Monad.Trans import Graphics.UI.Cocos2d.Audio import Reflex im...
import { UserInterface, SourceInterface } from "../../.."; export interface BaseAdapterInterface { onUser?(user: UserInterface): void; onSource?(source: SourceInterface, descendents: SourceInterface[]): void; }
#!/bin/sh i3-msg -t command "exec discord" sleep 10 i3-msg -t command "[class = "discord"] focus , split vertical" i3-msg -t command "exec discord-canary"
@extends('layout') @section('cabecalho') Novo Reu @endsection @section('conteudo') <form method="POST" id="createcliente"> @csrf <div class="form-group row"> <label for="name" class="col-sm-2 col-form-label">Nome</label> <div class="col-sm-10"> <input type="text" class="form-control" id="no...
require './spec/helpers/r_geo_spec_helpers' include RGeoSpecHelpers FactoryBot.define do factory :zipcode, class: 'Zipcode' do name "00000" geom RGeoSpecHelper.new.multi_polygon([1,1]) initialize_with { Zipcode.find_or_create_by(name: name)} end factory :county, class: 'County' do name "Fakecou...
(use arcbase simple-equals literal-value) (equals (literal-value 3) 3) (equals (literal-value car) car) (equals (literal-value "abc") "abc") (equals (literal-value 'nil) nil) (equals (literal-value '(quote 3)) 3) (equals (literal-value (list quote 3)) 3)
//! core module pub mod types; pub mod enc; pub mod dec; pub mod utils; #[cfg(feature = "use_alloc")] use crate::alloc::{ vec::Vec, boxed::Box, string::String }; /// Major type pub mod major { pub const UNSIGNED: u8 = 0; pub const NEGATIVE: u8 = 1; pub const BYTES: u8 = 2; pub const STRING: u8 ...
## # This module requires Metasploit: http://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## class MetasploitModule < Msf::Exploit::Local Rank = ExcellentRanking def initialize(info = {}) super(update_info(info, 'Name' => 'Exim "perl_startup" Privil...
# Augpier Connect Augur repo analytics to any other app via Zapier ## Setup `npm install -g zapier-platform-cli` `zapier login` `npm install` Further instructions can be found here: https://platform.zapier.com/cli_tutorials/getting-started
const styles = { global: { body: { color: "gray.300", bg: "gray.900", fontSize: "sm" }, '*::-webkit-scrollbar': { width: '8px', backgroundColor: 'gray.900', }, '*::-webkit-scrollbar-thumb': { backgroundColor: 'gray.700', } }...
using PurpleCable; public class MoveAndPool2 : MoveAndWrapUp { protected override float Speed => 1.5f + GameManager.Speed; protected override void OnLimitReached() { GetComponent<IPoolable>()?.SetAsAvailable(); } }
<% @path = "/mnt/db-backup-tools/rubber-xtrabackup.sh" @perms = 0755 @backup = false %>#!/bin/bash # # Run innobackupex for databases, ensure it succeeded, and put file in place for S3 upload by Rubber. # First, set up some variables. INNOBACKUP="/usr/bin/innobackupex" LOGFILE="/tmp/rubber-xtrabackup-log" MEMORY="...
# Summary * [소개](README.md) ## 튜토리얼 * [5분 안에 보는 TypeScript](pages/tutorials/TypeScript in 5 minutes.md) * [ASP.NET Core](pages/tutorials/ASP.NET Core.md) * [걸프](pages/tutorials/Gulp.md) * [JavaScript에서 마이그레이션](pages/tutorials/Migrating from JavaScript.md) * [리액트 & 웹팩](pages/tutorials/React & Webpack.md) ## 핸드북 * [...
INSERT INTO `cms`.`cities` (`id`, `company_id`, `name`, `code`, `countries_id`, `create_date`, `edit_date`, `status`) VALUES ('1', '10', '港島', 'HONG KONG', '1', '2020-03-12 03:05:42', '2020-03-12 03:05:42', 'active'), ('2', '10', '九龍', 'KOWLOON', '1', '2020-03-12 03:05:42', '2020-03-12 03:05:42', 'active'), ('3', '1...
/* * Copyright 2016 Richard Cartwright * * 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...