text stringlengths 27 775k |
|---|
<?php
namespace frontend\controllers;
use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use frontend\models\SignupForm;;
use yii\web\UploadedFile;
/**
* Site controller
*/
class ContactController ext... |
require 'effective_resources'
require 'effective_datatables'
require 'effective_products/engine'
require 'effective_products/version'
module EffectiveProducts
def self.config_keys
[
:rings_table_name, :ring_wizards_table_name, :ring_wizard_class_name,
:stamps_table_name, :stamp_wizards_table_name, :... |
module RailsParamProtection
module Sanitizer
def sanitize!(*args)
args.each do |arg|
case arg
when Hash
array = arg.to_a.first
key,value = array
if value.is_a? Array
self[key].sanitize!(*value)
else
self[key].sanitize!(value)
... |
const App = require('../../models/app')
const normalizeApp = require('./normalizeApp')
module.exports = async (profile)=>{
if(!profile || typeof(profile) != 'object') return profile
const removeFromProfile = ['__v', '_id']
const app = await normalizeApp(await App.findOne({_id: profile.app}))
profile = ... |
package com.eshevtsov.android.crypto.feature.currency.converter.domain
import com.eshevtsov.android.crypto.core.feature.format
import com.eshevtsov.android.crypto.data.dto.CoinIdDto
class FormatConversionUseCase {
operator fun invoke(
fromAmount: Double,
from: CoinIdDto,
toAmount: Double,
... |
(in-package #:virality)
(defmethod resource-cache-layout (entry-type)
'(eql))
(defmethod resource-cache-peek (context (entry-type symbol) &rest keys)
(with-slots (%resource-cache) (core context)
;; NOTE: 'eq is for the resource-cache table ;; itself.
(ensure-nested-hash-table %resource-cache
... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AdminController;
use App\Http\Controllers\PlayerController;
use App\Http\Controllers\GroupController;
/*
|--------------------------------------------------------------------------
| Web Routes
|------------------------------------------------------... |
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Media3D;
using System.Diagnostics;
namespace GraphicsBook
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
... |
/**
* This file is part of Erjang - A JVM-based Erlang VM
*
* Copyright (c) 2009 by Trifork
*
* 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/L... |
namespace :db do
desc 'Dump database'
task :dump do
#config = YAML.load(File.new(File.join(Rails.root, '/config/database.yml')))
# if config.keys.count == 1
# config = config[config.keys.first]
# else
# config = config[Rails.env]
# end
#db = config["database"]
db = Rails.root.... |
package org.squeryl.test
import org.squeryl.framework._
abstract class LeftJoinTest extends SchemaTester with RunTestsInsideTransaction {
self: DBConnector =>
import org.squeryl.test.PrimitiveTypeModeForTests._
val schema = LeftJoinSchema
import LeftJoinSchema._
override def prePopulate(): Unit... |
import { KutChild } from './element';
import { KutInstance } from './instance';
export declare class Reconciler {
private readonly _dirtyInstanceSet;
private _isBatchUpdating;
enqueueUpdate(instance: KutInstance, element?: KutChild, didUpdate?: () => void): void;
private _runBatchUpdate();
}
export decl... |
---
layout: single
classes: wide
author_profile: true
read_time: true
share: true
related: true
title: "ATM/Kiosk Machine Hacking - Captive Portal Breakout"
date: 2019-06-14 21:08:57 +1000
categories:
- ATM Hacking
- Kiosk Hacking
tags:
- ATM pentesting
- ATM hacking
- Kiosk Hacking
---
- Visit http://ik... |
package main
import (
"fmt"
"os"
"os/exec"
"path"
"path/filepath"
"golang.org/x/tools/go/packages"
)
var cmdBuild2 = &command{
run: runBuild2,
Name: "build2",
Usage: "[-target android|ios] [-o output] [build flags] [package]",
Short: "compile android shared library and iOS static library",
Long: fmt.Sp... |
#=
From BLOG example/mixture-of-gaussian.blog
"""
A model for mixture of Gaussian distribution.
The latent variable \verb|z| determines the mixture component of \verb|x|.
The program asks the possible value of \verb|z| given the evidence of \verb|x| being 0.2.
@author leili
@since 2014-06-16
... |
module Lib (module Kata) where
import Kata.DigitalRoot.Solution as Kata
import Kata.DoubleCola.Solution as Kata
import Kata.GetMiddle.Solution as Kata
import Kata.Likes.Solution as Kata
import Kata.UniqueInOrder.Solution as Kata
|
using System.ComponentModel;
using System.Reflection;
using Moq;
using MvvmBlazor.Internal.Bindings;
using MvvmBlazor.Internal.WeakEventListener;
using Shouldly;
using Xunit;
namespace MvvmBlazor.Tests.Internal.Bindings
{
public class BindingFactoryTests
{
[Fact]
public void Create_ReturnsBind... |
# Changlog
## v1.2.5
* Fix grade calculation and presentation
* Change `Classes` to `Courses` to hide conflict with native Class keyword
* Change variables and function names to camelCase
* Add log() function for logging
* Use for..of loops
* Utilize CSS for supplying assignment icons rather than `img` tag
... |
package com.feihong.ldap.exceptions;
public class UnSupportedActionTypeException extends RuntimeException{
public UnSupportedActionTypeException(){
super();
}
public UnSupportedActionTypeException(String message){
super(message);
}
}
|
package com.synopsys.integration.detectable.detectables.git.parsing.model;
import org.jetbrains.annotations.NotNull;
public class GitConfigBranch {
@NotNull
private final String name;
@NotNull
private final String remoteName;
@NotNull
private final String merge;
public GitConfigBranch(@No... |
package com.github.kerubistan.kerub.planner.steps.storage.lvm.base
import com.github.kerubistan.kerub.data.dynamic.VirtualStorageDeviceDynamicDao
import com.github.kerubistan.kerub.planner.execution.AbstractStepExecutor
import com.github.kerubistan.kerub.planner.steps.AbstractOperationalStep
abstract class AbstractAl... |
module Language.Haskell.GhciDaemon.Client
( Settings(..)
, Client(..)
, mkClient
, runClient
, closeClient
, exec
, ghciClient
) where
import Control.Monad (when)
import Control.Monad.Loops (untilM_)
import Control.Exception (bracket)
import qualified Data.... |
"""Easy to use ETA calculation. Used by etaprogress.progress.
taken from:
https://github.com/Robpol86/etaprogress
https://pypi.python.org/pypi/etaprogress
"""
from __future__ import absolute_import
from __future__ import division
from collections import deque
from math import sqrt, ceil
import time
import datetime
i... |
$(function () {
// let cidadeId = $('#cidadeId').val();
// let cidadeCobrancaId = $('#cidadeCobrancaId').val();
// getCidades(function(data){
// $('input.autocomplete-cidade').autocomplete({
// data: data,
// limit: 20,
// onAutocomplete: function(val) {
// var cliente = $('#autocomple... |
import { IRoute } from "@bluelibs/x-ui-router";
export const Home: IRoute = {
name: "Home",
path: "/",
};
|
#region << 版 本 注 释 >>
/*----------------------------------------------------------------
* 项目名称 :NPlatform.Domain
* 类 名 称 :IAggregation
* 类 描 述 : 聚合根接口
* 命名空间 :NPlatform.Domain
* CLR 版本 :4.0.30319.42000
* 作 者 :DongliangYi
* 创建时间 :2018-11-19 17:10:23
* 更新时间 :2018-11-19 17:10:23
* 版 本 号 :v1.0.0.0
//-----------------... |
import {
domainUrl, readWatchPageApi, deleteWatchPetApi, createWatchPetApi,
readWatchMomentsApi
} from '../../helpers/config';
import processError from '../../helpers/processError';
export const BUILD_WATCH_PAGE = "watch/BUILD_WATCH_PAGE";
export const CHANGE_WATCH_PET = "watch/CHANGE_WATCH_PET";
export const CHANG... |
using System;
using System.Runtime.InteropServices;
namespace Meziantou.Framework.Win32.Natives
{
[ComImport]
[Guid(IIDGuid.IShellItemArray)]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
internal interface IShellItemArray
{
// Not supported: IBindCtx
void BindToHandler([I... |
/*!
* React Native Globalize
*
* Copyright 2015-2020 Josh Swan
* Released under the MIT license
* https://github.com/joshswan/react-native-globalize/blob/master/LICENSE
*/
import { DateFormatterOptions, Formatters, GlobalizeConfig } from '../types';
export function formatDate(
config: GlobalizeConfig,
getDa... |
import { remapCharactersTransformer } from '../remap-characters';
import { dictionary } from './dictionary';
/**
* Creates a transformer that maps leet-speak characters to their normalized
* equivalent. For example, `$` becomes `s` when using this transformer.
*
* **Application order**
*
* It is recommended that... |
package dev.frederik.dramatispersonae.model
import org.springframework.data.repository.CrudRepository
import java.util.*
import javax.persistence.*
@Entity
data class Label(
var name: String,
var isVisible: Boolean,
@ManyToOne var campaign: Campaign,
@ManyToMany(mappedBy = "labels") var cha... |
'use strict';
var path = require('path');
var config = require('./');
var root = config.root;
module.exports = {
src: [path.join(root, 'package.json'), path.join(root, 'bower.json')],
dest: root,
knownOptions: {
string: ['t', 'type']
}
};
|
using System;
using System.Collections.Generic;
using System.Text;
namespace AntDesign
{
internal class MessageAnimationType
{
public const string Enter = "ant-move-up-enter ant-move-up-enter-active ant-move-up";
public const string Leave = "ant-move-up-leave ant-move-up-leave-active ant-move-... |
<?php
/**
* Class AbstractHelper provides standard functionality for use by the various Entity helpers (Saver/Loader/Querier)
* @package Entity\Helper
* @author Matt Johnston
* @author Andreas Gerhards <andreas@lero9.co.nz>
* @copyright Copyright (c) 2014 LERO9 Ltd.
* @license http://opensource.org/licenses/BSD-3... |
#!/usr/bin/env bash
# This script was partially taken from:
# https://github.com/AmazonWebServices-Projects/ec2-spot-labs/blob/master/ec2-spot-interruption-handler/wait_x_seconds_before_interruption.sh
# This IP address comes from:
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#spot... |
# frozen_string_literal: true
require "rspec"
require "chapter2/linked_lists"
describe "SingleLinkedList#partition!" do
context "given a list {3, 5, 8, 5, 10, 2, 1} and x = 5" do
it "maintains the size of the list" do
list = ADT::SingleLinkedList.create_from_array [3, 5, 8, 5, 10, 2, 1]
expect(list.... |
using System;
using System.Text.RegularExpressions;
using Windows.Devices.Bluetooth;
using Windows.Devices.Enumeration;
namespace BluetoothDevicePairing.Bluetooth
{
internal enum DeviceType
{
Bluetooth,
BluetoothLE
}
internal sealed class Device
{
public Device(DeviceInform... |
package com.atguigu.reflect
// 反射
//scala.reflect.api.Mirrors#InstanceMirror
//scala.reflect.api.Mirrors#MethodMirror
//scala.reflect.api.Mirrors#FieldMirror
//scala.reflect.api.Mirrors#ClassMirror
//scala.reflect.api.Mirrors#ModuleMirror
case class Employee(name:String){
def showName ... |
{-# LANGUAGE TemplateHaskell #-}
module System.DirWatch.Logging (
Priority (..)
, logM
, logDebug
, logInfo
, logWarn
, logError
, logCritical
, setupLogging
) where
import System.Log.Logger (
updateGlobalLogger, rootLoggerName, removeAllHandlers, addHandler, setLevel
, Priority(..))
import Sy... |
# Salmon-cookies
This is a project about us creating for our friend Pat salmon cookie counter
My name is Sara , and im a junior sofware developer -- tell me how you like my work!
|
const { init } = require('../dbConfig');
const { ObjectId } = require('mongodb');
class Room {
constructor(data) {
this.id = data.id;
this.name = data.name;
this.owner = data.owner;
this.max_room_size = data.max_room_size;
this.public_room = data.public_room;
this.entry_pass = data.entry_pass;
}
static... |
#!/usr/bin/env bash
CONFIG_HOME="${HOME}/.kube"
CONFIG="${CONFIG_HOME}/config"
function usage(){
printf "Usage
[overview]
Switch between Kubernetes configurations using a symbolic link ~/.kube/config
[command]
kubeswitch [options]
[options]
-s|--switch [name] Switch to the given conf... |
import { string_file_relative_path, string_folder_relative_path } from '../../types';
export interface IColldevOptions {
workingDir: string_folder_relative_path;
entryPath: string_file_relative_path;
output: 'human' | 'compact' | 'minimal' | 'json' | 'json-raw';
}
/**
* TODO: Allow multiple entryPath
*/... |
import { RouteConfig } from '@bluebase/components';
import { getComponent } from '@bluebase/core';
import get from 'lodash.get';
import React from 'react';
import { SettingsPageProps } from '../layouts/SettingsPage';
import { SettingsPageListProps } from '../layouts/SettingsPageList';
import { CreateSettingsRoutesOpti... |
(ns raindrops)
(def ^:private n->P
{3 "Pling"
5 "Plang"
7 "Plong"})
(defn- factors-of [n]
(filter integer? (map (partial / n) (range 1 (inc (/ n 2))))))
(defn- one-of-them [nsq them]
(filter them nsq))
(defn- P-of-nsq [nsq]
(apply str (map n->P (reverse nsq))))
(defn- if-there-is-no-P [r n]
(if (em... |
Pod::Spec.new do |spec|
spec.name = 'FileMD5Hash'
spec.version = '2.0.0'
spec.license = 'Apache License, Version 2.0'
spec.summary = 'Library for computing MD5 hashes of files with small memory usage.'
spec.homepage = 'https://github.com/JoeKun/FileMD5Hash'
spec.author = { 'Joel Lopes D... |
#! /bin/bash
if [ "${VAULT_USE_SECRET_NAMES_AS_KEYS}" = "true" ]; then
echo "testing subtree each path as key name with a single value"
[ -n "$API_KEY" ] && echo "API_KEY: $API_KEY"
[ -n "$DATABASE_URL" ] && echo "DATABASE_URL: $DATABASE_URL"
[ -n "$DB_PASSWORD" ] && echo "DB_PASSWORD: $DB_PASSWORD"
... |
# encoding: UTF-8
module Avalara
module Response
class Message < Avalara::Types::Stash
property :summary, :from => :Summary
property :details, :from => :Details
property :refers_to, :from => :RefersTo
property :severity, :from => :Severity
property :source, :from => :Source
end
... |
package com.example.mazena.quicknotes.editNote
import com.example.mazena.quicknotes.data.Note
interface EditNoteContract {
interface View {
fun displayNote(note: Note)
}
interface Presenter {
fun loadNote(id: Int)
fun saveNote(updatedTitle: String, updatedDescription: String)
... |
package com.babel.marvel.domain.usecase
import com.babel.marvel.domain.datastate.DataState
import com.babel.marvel.domain.repository.MarvelRepository
import com.babel.marvel.domain.viewstate.CharactersListViewState
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow... |
package io.udash.wrappers.jquery_test
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
class TraversingTest extends AnyWordSpec with Matchers {
import io.udash.wrappers.jquery._
import scalatags.JsDom.all._
"jQuery" should {
"add elements to selection" in {
val... |
require 'rails_helper'
RSpec.describe Cmor::MultiTenancy::CreateClientService do
describe 'basic usage' do
it { expect(described_class.call).to be_a(Cmor::MultiTenancy::CreateClientService::Result) }
describe 'changes' do
it { expect{ described_class.call }.to change { Cmor::MultiTenancy::Client.c... |
package com.cdsap.talaiot
import com.cdsap.talaiot.configuration.IgnoreWhenConfiguration
import com.nhaarman.mockitokotlin2.*
import io.kotlintest.specs.BehaviorSpec
import org.gradle.api.Project
import org.gradle.api.invocation.Gradle
import org.gradle.api.plugins.ExtensionContainer
class TalaiotPluginTest : Behavio... |
/*
* Copyright (C) 2013, 2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
//go:generate go test -run TestGenerateDatastore
package datastore_test
import (
"encoding/gob"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"runtime"
"strings"
"testing"
"git.stormbase.io/cbednarski/datastore"
)
const (
ExpectedName = "testeroonie"
TestdataSignature = "datastore-test-format"
Names ... |
/*
* Copyright <2021> Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or i... |
#!/usr/bin/env bash
set -euo pipefail
readonly FACTORIO_ROOT="$(cd "$(dirname "${BASH_SOURCE[-1]}")" &> /dev/null && git rev-parse --show-toplevel)"
for lib in "$FACTORIO_ROOT"/lib/*.sh; do
# shellcheck disable=SC1090
source "$lib"
done
mkdir -pv "$FACTORIO_ROOT/gs/${CLOUDSDK_CORE_PROJECT:?}-storage/"
gsutil -m... |
## Portfolio
---
### Water Management
<img src="images/YanceyKo_WorkExample.GIF?raw=true"/>
---
### Pipe Risk Level
<img src="images/FinalProject.jpg?raw=true"/>
---
### I&I Statistical Trend
<img src="images/Stat.JPG?raw=true"/>
---
### Flow Monitoring for Inflow and Infiltration Story Maps
<a href="https://stor... |
Given(/^an \[asset_group\] exists$/) do
FactoryBot.create(:asset_group, :name => "Test Group 1", :code => "TG1", :organization => Organization.last)
end
|
/* Copyright (C) 2015 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 2012 DJ Delorie, see COPYING.DJ for details */
#ifndef __dj_include_dlfcn_h_
#define __dj_include_dlfcn_h_
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ ... |
'''
spiral matrix problem (aka onion ring problem)
key point is how to control the boundary and handle even/odd size
Some people prefer iterative way, some prefer recursive.
Iterative way looks more intuitive for me.
Invariants:
Given a matrix, print it spirally.
https://leetcode.com/problems/spiral-matrix/#/descripti... |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>
@stack('scripts') |
package com.zhangteng.baselibrary.ui.mvvmdb
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.zhangteng.base.base.BaseAdapter
import com.zhangteng.mvvm.mvvm.BaseMvvmDbFragment
import com.zhangteng.baselibrary.MainActivity
import com.zhangt... |
#!/bin/bash
git clone https://github.com/hollygrimm/art-composition-cnn.git
cd art-composition-cnn/
cd data
# download wikiart 256 test and train examples and untar
wget https://github.com/zo7/painter-by-numbers/releases/download/data-v1.0/train.tgz
wget https://github.com/zo7/painter-by-numbers/releases/download/data... |
# badge()
Show extra information like counts or labels.
---
```php {.function-name}
badge( string $text [, string $color = 'default', array $options = [] ] ) : string
```
## Parameters
$text (string) (Required) Badge text.
$color (string) (Optional) Badge color. Possible value: default|primary|success|warning|err... |
import Builder from "./Builder";
import ComponentFromValue from "./ComponentFromValue";
import ComponentFromClass from "./ComponentFromClass";
export { Builder, ComponentFromValue, ComponentFromClass };
|
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
ob_start();
define('PASSWORD_MANAGER', true);
define('APPID', 'passman');
define('VERSION', '1.0');
require_once './configlink.php';
@date_default_timezone_set(date_default_timezone_get());
spl_autoload_register(... |
using Affected.Cli.Commands;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace Affected.Cli
{
internal class DirectoryProjectDiscoverer : IProjectDiscoverer
{
public IEnumerable<string> DiscoverProjects(CommandExecutionData data)
{
// TODO: Find *.*pro... |
---
title: 'Mobile carrier'
i18n-key: mobile-carrier
translations:
fr: operateur
---
The eldest discovered the theatre a few weeks ago. He's spending his time acting
and playing us.
<!-- more -->
> – I called Mom. She'll be here in an hour.
> – What phone did you call her with?
> – With mine! Because I have ... |
using CustomerOrderManagement.Core.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;
namespace CustomerOrderManagement.Core.EF.DataContext
{
public class OrderConfig : IEntityTypeConfiguration<Or... |
import 'reflect-metadata';
import { Account } from '@entities/Account';
import { IAccountRepository } from '@repositories/IAccountRepository';
import { AccountRepositoryMemory } from '@repositories/in-memory/AccountRepositoryMemory';
import { AppError } from '@shared/errors/AppError';
import { CreateAccountService } ... |
Ensembl symbol GeneOntology
LOCMI01737 LOCMI01737 GO:0004252
LOCMI03898 LOCMI03898 GO:0004252
LOCMI00045 LOCMI00045 GO:0004252
LOCMI15075 LOCMI15075 GO:0004252
LOCMI01848 LOCMI01848 GO:0004252
LOCMI07234 LOCMI07234 GO:0004252
LOCMI07236 LOCMI07236 GO:0004252
LOCMI06649 LOCMI06649 GO:0004252
LOCMI12294 LOCMI12294 GO:000... |
package es.sublimestudio.kotlinquiz.models
data class Question(
val answers: List<Answer>,
val title: String
) |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using WUPC2020.Extensions;
using WUPC2020.Questions;
namespace WUPC2020.Questions
{
public class QuestionB : AtCoderQuestionBase
{... |
FactoryBot.define do
factory :feedback_file do
association :submission
filename { "#{Faker::Lorem.word}.txt" }
mime_type { 'text/plain' }
file_content { Faker::Lorem.sentence }
end
factory :feedback_file_with_test_run, class: FeedbackFile do
association :test_group_result
filename { "#{Fa... |
module Metacontext where
import Data.IORef
import System.IO.Unsafe
import qualified Data.IntMap as IM
import qualified Data.IntSet as IS
import qualified Presyntax as P
import Cxt.Type
import Common
import Value
import Syntax
--------------------------------------------------------------------------------
-- The c... |
---
layout: post
title: Django Create App
subtitle : django create app
author: Seongmin Kim
comments : False
---
이전 포스팅에서 django 프로젝트를 생성하고 서버를 돌려 django의 기본 화면을 띄우는데 까지 진행하였습니다.
이번 포스팅에서는 첫 화면을 띄우는데 까지 진행하겠습니다.
django 프로젝트 내부에는 여러개의 app이 존재합니다. app은 각 기능별로 구현된다고 생각하시면 될 것 같습니다.
제 프로젝트는 django를 활용하여 bootstrap을 연결하고 소셜... |
class PgQuery
def param_refs # rubocop:disable Metrics/CyclomaticComplexity
results = []
treewalker! parsetree do |_, _, v|
next unless v.is_a?(Hash)
if v['PARAMREF']
results << { 'location' => v['PARAMREF']['location'],
'length' => param_ref_length(v['PARAMREF']) }
... |
package gh
private [gh] trait GhLogging {
def issueListing(issue: Issue): Unit
def issueDetail(issue: Issue): Unit
def commentListing(comment: Comment): Unit
def labelListing(label: String): Unit
def repoListing(user: String, repo: String): Unit
}
trait Colors {
def resetColor[T](f: => T) = {
print(Co... |
using DbStatute.Enumerations;
using DbStatute.Interfaces;
using DbStatute.Interfaces.Fundamentals.Multiples;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
namespace DbStatute.Fundamentals.Multiples
{
public abstract class MultipleInsertBase<TModel> : InsertB... |
import React, { useState, useEffect } from "react";
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
ResponsiveContainer
} from "recharts";
import CheckBox from "../CheckBox";
import { getHighestSelected } from "../LineGraphHelpers/selectedCheckboxes";
import "../../Components/... |
<?php
namespace App\Models\Validator;
use App\Models\Transport\Transport;
interface ValidatorInterface
{
public function isAvailable(Transport $transport, $date): bool;
}
|
module TestExercise5 where
import Exercise5 (hanoi)
import Test.Tasty
import Test.Tasty.HUnit
import Test.Tasty.QuickCheck as QC
test_all :: TestTree
test_all = testGroup "TestExercise5" [qcProps, unitTests]
prop1 :: Integer -> Bool
prop1 n = length (hanoi n "a" "b" "c") == 2 ^ n - 1
qcProps :: TestTree
qcProps =
... |
import 'package:flutter/material.dart';
import '../model/post.dart';
class SliverDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: CustomScrollView(
slivers: <Widget>[
SliverAppBar(
// title: Text('YUN.KOU'),
flo... |
/*!
* util.js - util functions for hstratum server
* Copyright (c) 2017-2018, Christopher Jeffrey (MIT License).
* Copyright (c) 2019, Handshake Alliance (MIT License).
* https://github.com/handshake-org/hsd
*/
"use strict";
const assert = require("bsert");
const BN = require('bn.js');
const { consensus } = requ... |
using System.ComponentModel.DataAnnotations.Schema;
using Chikatto.Enums;
namespace Chikatto.Database.Models
{
public class User
{
[Column("id")] public int Id { get; set; }
[Column("username")] public string Name { get; set; }
[Column("username_safe")] public string SafeName { get; se... |
#![deny(bare_trait_objects)]
#![deny(unused_results)]
#[macro_use]
extern crate log;
#[macro_use]
extern crate serde_json;
#[macro_use]
extern crate failure;
pub mod command;
pub mod externs;
use crate::command::{commands, process, CommandContext};
use failure::Error;
use rustyline::Editor;
fn print_help() {
pr... |
package me.ykrank.s1next.data.pref
import android.content.Context
import android.content.SharedPreferences
import android.text.TextUtils
import com.fasterxml.jackson.core.JsonProcessingException
import com.fasterxml.jackson.databind.ObjectMapper
import com.github.ykrank.androidtools.data.BasePreferences
import com.git... |
<?php
namespace lib\db;
class lm_audiomistake
{
public static function insert()
{
\dash\db\config::public_insert('lm_audiomistake', ...func_get_args());
return \dash\db::insert_id();
}
public static function multi_insert()
{
return \dash\db\config::public_multi_insert('lm_audiomistake', ...func_get_args... |
#!/usr/bin/env bats
. ../nextfreeport
@test "should print the next free port to stdout" {
run nextfreeport 21000
[ "$output" == "21000" ]
run nc -l 21000&
run nextfreeport 21000
[ "$output" == "21001" ]
}
|
SUBROUTINE PLXA
IMPLICIT None
C
C 1. PLXA
C
C 1.1 PLXA PROGRAM SPECIFICATION
C
C 1.1.1 PLXA ADDS ENTRIES TO THE TABLE OF CONTENTS FOR THE PARALLAX MODULE TEXT
C MESSAGE, AND PARTIAL DERIVATIVE AND CONTRIBUTION ARRAYS. IT ALSO ADDS
C ENTRIES TO THE TABLE OF CONTENTS FOR THE FLOW CONTROL M... |
module Lib.Polysemy.Storage.Interpreters (
module Lib.Polysemy.Storage.Interpreters.InMemory,
) where
import Lib.Polysemy.Storage.Interpreters.InMemory |
# Camera
Holds a projection matrix that is positioned in a scenegraph so that it can follow parent transformations.
Inherits from `ScenegraphNode`.
## Fields
### projectionMatrix
## Methods
### constructor(props : Object)
Creates a new `Camera` instance.
* `props` - See `Camera.setProps` for valid props.
###... |
namespace GVDCore.Common.Rotator
{
public abstract class Rotator
{
//-------------------------------------------------------------------------
// Abstract methods.
// Called to update object's state.
public abstract void Update( double deltaTime );
// Called to apply a force on the object at ... |
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:material_widgets/material_widgets.dart';
import 'package:provider/provider.dart';
import 'package:sudoku/reposi... |
import flask
import os
import json
import requests
import ipaddress
import redis
application = flask.Flask(__name__)
application.config['TEMPLATES_AUTO_RELOAD'] = True
ip2location_api_base_url = "https://api.ip2location.com/v2/?ip={query_ip}&key={api_key}&package=WS24"
@application.route('/')
def index():
"""
... |
@extends('landing.mainLanding')
@section('title','Berita DPR RI')
@section('content')
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="news-post-wrapper">
<div class="news-post-wrapper-sm ">
<h1 class="text-center">
{{ $newsind->title }}
... |
using UnityEditor;
using UnityEngine;
using static DSS.CoreUtils.EditorUtilities.GUIUtilities;
namespace DSS.CoreUtils.ApplicationUtilities
{
[CustomEditor(typeof(PlatformConditional), true)]
public class PlatformConditionalEditor : Editor
{
SerializedProperty platforms;
SerializedProperty behaviour;
pr... |
using Android.Content.PM;
namespace MonoGame.Framework.Input.Touch
{
public readonly partial struct TouchPanelCapabilities
{
internal static bool PlatformGetIsConnected(GameWindow window)
{
// http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_TOU... |
#!/bin/sh
echo 'clear apt cache...'
sudo apt-get -y clean
echo 'apt-get update and upgrade...'
sudo apt-get -y update
sudo apt-get -y upgrade
echo 'installing build tools...'
sudo apt-get -y install git build-essential ruby-dev wget lsb-release
echo 'installing puppet...'
wget https://apt.puppetlabs.com/puppetlabs-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.