text stringlengths 27 775k |
|---|
use Data::Dump qw(dd);
dd my $str = "XXXXXABCDEFGHIoooooooooooooooooooooooooAAAAAA";
dd my $enc = encode($str);
dd decode($enc);
|
package controllers
import composition.TestConfig
import controllers.Common.PrototypeHtml
import helpers.TestWithApplication
import helpers.UnitSpec
import pages.vrm_retention.BeforeYouStartPage
import play.api.test.FakeRequest
import play.api.test.Helpers.contentAsString
import play.api.test.Helpers.defaultAwaitTimeo... |
import {CustomerComponent} from './components/+customer/customer.component';
import {ModuleWithProviders} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {AuthGuard} from './security/auth.guard';
import {AppComponent} from './app.component';
import {TemplateComponent} from 'app/compon... |
# 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.
from telemetry.internal.forwarders import do_nothing_forwarder
from telemetry.internal.platform import network_controller_backend
from telemetry.internal.pla... |
<?php
/**
* Created by PhpStorm.
* User: mayunfeng
* Date: 2018/2/27
* Time: 9:34
*/
namespace Mayunfeng\Pay;
use Yii;
use yii\base\Component;
use Yansongda\Pay\Pay as BasePay;
/**
* Class Pay
* @package Mayunfeng\Pay
*/
class Pay extends Component
{
public $alipay_config;
public $wechat_config;
... |
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 直播物料信息
*
* @author auto create
* @since 1.0, 2021-07-29 17:29:28
*/
public class LiveContentInfo ext... |
"""
This script is about augmented assignments
"""
X = 23
X += 1
print(X) # 24
X -= 4
print(X) # 20
X *= 5
print(X) # 100
X //= 4
print(X) # 25
X /= 5
print(X) # 5.0 - note conversion from int to float
X **= 2
print(X) # 25.0 - x still represents a float
X %= 5
print(X) # 0.0 - 25 is exactly divisible by ... |
%%
%% This file is a part of Durden released under the MIT licence.
%% See LICENCE file for more infromation
%%
%%%
%%% Helper module to work with AST-forms concerning cowboy request handling routines
%%%
-module(durden_pt_aux_cowboy).
-export([add_cowboy_handler_callbacks/1]).
-define(aux_ast, durden_pt_aux_ast).... |
export {makeSpy} from './make-spy';
export {default as BrowserDriver} from './browser-automation/browser-driver';
export {default as BrowserTestDriver} from './browser-automation/browser-test-driver';
export {callExposedFunction} from './browser-automation/call-exposed-function';
// EXPERIMENTAL TEST UTILS
// Image ... |
(ns bob-test
(:require [clojure.test :refer [deftest is]]
bob))
(deftest responds-to-something
(is (= "Whatever." (bob/response-for "Tom-ay-to, tom-aaaah-to."))))
(deftest responds-to-shouts
(is (= "Whoa, chill out!" (bob/response-for "WATCH OUT!"))))
(deftest responds-to-questions
(is (= "Sure."... |
import { Component, ElementRef, Input } from '@angular/core';
import { DimmableService, SegmentComponent } from '@mantic-ui/angular';
@Component({
selector: 'm-example-code',
templateUrl: './example-code.component.html',
styleUrls: ['./example-code.component.scss'],
providers: [DimmableService]
})
export class... |
"""
Faça um programa que receba 6 números inteiros e mostre:
- Os números pares digitados;
- A soma dos números pares digitados;
- Os números ímpares digitados;
- A quantidade de números ímpares digitados.
"""
from random import randint
vetor = []
pares = []
impares = []
for x in range(randint(6, 50)):... |
# Copyright 2020 Efabless Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#... |
import styled from 'styled-components';
const HeaderTitle = styled.h1`
color: ${(props) => (props.invert ? '#ffffff' : '#000000')};
font-size: 24px;
`;
export default HeaderTitle;
|
package harbor
import (
"context"
"github.com/ovh/configstore"
"github.com/pkg/errors"
"github.com/goharbor/harbor-operator/controllers/harbor"
)
const (
ConfigPrefix = "harbor-controller"
ReconciliationKey = ConfigPrefix + "-max-reconcile"
WatchChildrenKey = ConfigPrefix + "-watch-children"
HarborCla... |
#!/bin/bash
ZT_BASE_URL_HTTPS='https://download.zerotier.com/'
ZT_BASE_URL_HTTP='http://download.zerotier.com/'
SUDO=
if [ "$UID" != "0" ]; then
if [ -e /usr/bin/sudo -o -e /bin/sudo ]; then
SUDO=sudo
else
echo '*** This quick installer script requires root privileges.'
exit 0
fi
fi
rm -f /tmp/zt-gpg-key
ec... |
package recharts.shape.polygon
import recharts.kotlin.RechartsProps
import recharts.util.types.Coordinate
external interface PolygonProps : RechartsProps {
var className: String?
var points: Array<Coordinate>?
}
|
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import pandas as pd
from typing import Union, Tuple, List
from QUANTAXIS.QAFactor import plotting
from QUANTAXIS.QAFactor import performance as perf
from QUANTAXIS.QAFactor import utils
from QUANTAXIS.QAFactor.plotting_utils import GridFigure, cust... |
package main
import (
"github.com/gdamore/tcell"
"github.com/mattn/go-runewidth"
)
func initTcell() (s tcell.Screen, err error) {
if s, err = tcell.NewScreen(); err != nil {
return
}
if err = s.Init(); err != nil {
return
}
defStyle := tcell.StyleDefault
defStyle = defStyle.Background(tcell.ColorBlack)
d... |
using System;
using System.Collections.Generic;
using Lab3.Models;
namespace Lab3.Data
{
internal class UsuariosFake : IUsuariosFake
{
public IList<Usuario> Usuarios(int quantidade)
{
var resultado = new List<Usuario>();
Random rnd = new Random();
var pedidos... |
using RPGCore.Behaviour;
using RPGCore.Stats;
namespace RPGCore
{
[NodeInformation("Item/Grant Armour Stat", "Attribute")]
public class ArmourGrantStatsNode : StatCollectionWriteNode<ArmourStatFloatInputCollection,
ArmourStatInstanceCollection, ArmourStatEntry, ArmourInputNode>
{
}
}
|
module Main where
import qualified Data.ByteString.Lazy as BL
import Data.Csv
import Data.List
import qualified Data.Vector as V
import System.IO
import AlgoLib
import Lib
import YahooCSVLib
main :: IO ()
main = do
stockSummary <- convertCSVFil... |
"use strict";
function getCustomization(url, info, sessionID) {
return response_f.getBody(customization_f.getCustomization());
}
function getCustomizationStorage(url, info, sessionID) {
return json.read(customization_f.getPath(sessionID));
}
router.addStaticRoute("/client/customization", getCustomization);
r... |
<?php
namespace App\Repositories\Eloquents;
use App\Models\AdminGroupPermission;
use App\Repositories\Contracts\AdminGroupPermissionContract;
use Illuminate\Database\Eloquent\Model;
class AdminGroupPermissionRepositoryEloquent extends BaseRepositoryEloquent implements AdminGroupPermissionContract
{
public funct... |
# HTTP 实用指南
### 01 初始
**初识HTTP:**

- HTTP协议名为:超文本传输协议
- HTTP协议是应用层协议,在底层是基于TCP作为传输协议(传输层协议有TCP和UDP)
- 请求 响应
- 简单可扩展
- 无状态
---
### 02 协议分析
**02-1 协议发展:**
: Int = {
def check(s: String): Boolean = {
val len = s.length
(0 until len / 2).forall(x => s(x) == s(len - 1 - x))
}
val len = s.... |
%%% @doc This is a loose translation of the following link from ACM:
%%% http://queue.acm.org/appendices/codel.html
%%% http://pollere.net/CoDelnotes.html
%%% http://pollere.net/CoDel.html
%%%
%%% The document you want to read is
%%% "Controlling queue Delay" Kathleen Nichols, Van Jacobson, http://queue.acm.org/detail.... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
// +build docker
package docker
import (
"net"
"testing"
"github.co... |
// Package tr implements a small
package tr
import (
"net/http"
"strings"
)
// Redirect implements a redirect server that redirects all requests.
// It implements http.Handler.
type Redirect struct {
// Target is the target URL to redirect to.
Target string
// Absolute determines if the request path should be a... |
# Romi robots repository for Team 190

Students should use this repository as a base, once they receive their Romi robots.
|
package br.com.danielsan.jvm
import br.com.danielsan.data.Platform
import br.com.danielsan.data.datasources.GithubUserDataSource
import br.com.danielsan.domain.UserSearchUseCase
import br.com.danielsan.presentation.UserSearchPresenter
import br.com.danielsan.presentation.UserSearchView
import br.com.danielsan.presenta... |
from __future__ import print_function
import datetime
import Controllers.AuthenticationService as authController
import Controllers.TimetreeService as TTService
from googleapiclient.discovery import build
def getLastUpdatedEvents():
creds = authController.auth()
service = build('calendar', 'v3', credentials=c... |
import 'package:flutter/material.dart';
/// Wraps the [child] with a [Scaffold] and [ScaffoldMessenger] to show
/// [SnackBar]s from anywhere in the app using the [globalKey].
class HarpyMessage extends StatefulWidget {
HarpyMessage({
@required this.child,
}) : super(key: globalKey);
final Widget child;
... |
# Duyệt danh sách liên kết
Nhiệm vụ là duyệt danh sách liên kết đã cho theo đúng thứ tự.
Ví dụ :

Thứ tự duyệt đúng là :
```text
12 → 99 → 37
```
Độ phức tạp thời gian là `O(n)` bởi vì chúng ta đi qua tất cả các nút mộ... |
/**
* @author sunnz (https://github.com/sunnz)
* @license ISC
* @copyright 2021
*/
import { ImageData } from "./getDataOfImages";
import { getDateMapFromDataOfImages } from "./getDateMapFromDataOfImages";
test("for an android formatted date there's one or more corresponding src filepath in the date map", () => {
... |
package org.launchcode.water_garden_tour.models.garden;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;
@Entity
public class Feature extends AbstractEntity {... |
# Snapshot report for `tests/runners/where.test.ts`
The actual snapshot is saved in `where.test.ts.snap`.
Generated by [AVA](https://avajs.dev).
## where
> Snapshot 1
{
data: {
user: {
id: '3054a954-a53a-4cbb-9472-3017d886a4f4',
name: 'George Washington',
},
},
... |
---
title: Plik dyrektywy include
description: Plik dyrektywy include
services: functions
author: ggailey777
manager: jeconnoc
ms.service: azure-functions
ms.topic: include
ms.date: 05/14/2019
ms.author: glenga
ms.custom: include file
ms.openlocfilehash: 3610026c2e3acc7e5f45a22d28bebb9a00a3a31d
ms.sourcegitcommit: 040a... |
## Prompt
> Draw a line. Wrong answers only.
## Idea
|
# audit_aide
#
# Refer to Section(s) 1.3.1-2 Page(s) 34-5 CIS CentOS Linux 6 Benchmark v1.0.0
# Refer to Section(s) 1.3.1-2 Page(s) 39-40 CIS RHEL 5 Benchmark v2.1.0
# Refer to Section(s) 1.3.1-2 Page(s) 36-7 CIS RHEL 6 Benchmark v1.2.0
# Refer to Section(s) 1.3.1-2,1.5.4 Page(s) 54-6,66 CIS R... |
Connect-NVRAgentDVR -server "127.0.0.1:8090"
Get-NVRCamera 1 | New-NVRSnapshot -Pattern "{0}-{1}.jpg"
Get-NVRCamera 2 | New-NVRSnapshot -Pattern "{0}-{1}.jpg" |
---
title: Login
description: This tutorial demonstrates how to integrate Auth0 with Angular 2 to add user login to your app
budicon: 448
---
<%= include('../../_includes/_package', {
org: 'auth0-samples',
repo: 'auth0-angularjs2-systemjs-sample',
path: '01-Login',
requirements: [
'Angular 2.0.1'
]
}) %>... |
# NFTrees Website
Front-end for nftrees.com
## Getting Started
```sh
git clone https://github.com/singularity-capital/nftrees-website.git
cd nftrees-website
npm i
npm start
``` |
package com.truxall.everydayanimation
import android.content.Context
import android.os.Build
import java.io.File
import java.io.FileOutputStream
import java.io.IOException
class Utils {
companion object {
@Throws(IOException::class)
fun copyDataBase(context: Context, dbName: String) {
... |
//
// UIScrollView+XSState.h
// XSState
//
// Created by mac on 2019/11/1.
// Copyright © 2019 mac. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol UIScrollViewAnimate;
NS_ASSUME_NONNULL_BEGIN
// 状态
typedef NS_ENUM(NSInteger, XSScrollViewState) {
XSScrollViewStateNormal, // 正常
XSScroll... |
/*****************************************************
* Vista Controls for .NET 2.0
*
* http://www.codeplex.com/vistacontrols
*
* @author: Lorenz Cuno Klopfenstein
* Licensed under Microsoft Community License (Ms-CL)
*
*****************************************************/
using System;
using S... |
import Vue from 'vue'
import VueRouter from '../../../src/index'
Vue.use(VueRouter)
const delay = t => new Promise(resolve => setTimeout(resolve, t))
describe('abstract history', () => {
it('run afterEach after initial navigation', done => {
const router = new VueRouter({ mode: 'abstract' })
const afterEac... |
module Wigner.Expectations(
expectation, variance, deltaSquared,
wignerExpectation,
evaluateExpectations,
asExpectation
) where
import qualified Data.List as L
import qualified Wigner.DefineExpression as D
import qualified Wigner.Symbols as S
import Wigner.OperatorAlgebra
import Wigner.Expression
i... |
using JuliaDB, DataFrames, IterableTables, Gadfly
using JuliaDB: groupby
data = loadtable("results/bench.csv")
data = reindex(data, :Benchmark)
baseline = filter(x->x.Package=="Baseline", data)
data = filter(x->x.Package != "Baseline", data)
normalised = join(data, baseline) do a, b
(Package = a.Package, Time = a.... |
import create from 'zustand';
import { Web3Provider, JsonRpcSigner } from '@ethersproject/providers';
import { ETHEREUM_NETWORK_TO_ID, WALLET_PROVIDER } from 'src/api/provider';
type ProviderInfo = { loaded: boolean; account: string; name: string; networkId: ETHEREUM_NETWORK_TO_ID };
type ProviderState = ProviderInfo... |
// Copyright (c) 2016, 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.
import 'package:build/build.dart';
import 'package:angular_gallery_section/builder/component_api_builde... |
[CmdletBinding()]
param (
[Parameter(Mandatory)]
[string]$VersionNumber
)
$publishVersion = $VersionNumber
# Regular expression pattern to find the version in the build number
# and then apply it to the assemblies
$versionRegex = "\d+\.\d+\.\d+\.\d+"
$vsixManifestSearchPattern = "./source.extension.vsixmani... |
require 'fileutils'
require 'test/unit'
require 'jarvis'
WORKING_CODE = <<-END
class TestClass {
public static void main(String[] args) {
System.out.println("ho");
}
}
END
BROKEN_CODE = <<-END
class TestClass {
foo(x) {
12;
}
public static void main(String[] args) {
System.out.println("ho")
... |
interface ISplitedItem {
label: string
content: string
}
const splitStringByOffset = (str: string, offset: number): ISplitedItem => {
return {
content: str.slice(offset).trim(),
label: str.slice(0, offset).trim(),
}
}
export default splitStringByOffset
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace Kunicardus.Billboards.Core.Models.DTOs.Response
{
public class AdvertisementModel
{
[JsonProperty ("Id")]
public int AdvertismentId { get; set; }
[JsonProperty ("Images")]
public Lis... |
package main
import (
"fmt"
"github.com/shenwei356/pmap"
)
func main() {
// constructor
m := pmap.NewParallelMap()
// Set
m.Set("age", 26)
// Get
if age, ok := m.Get("age"); ok {
fmt.Printf("age: %d\n", age)
}
// Update
//
// To call this function, the UpdateValueFunc must be specified.
m.SetUpdat... |
package org.succlz123.blueboard.model.utils.danmaku;
import android.graphics.Color;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import master.flame.danmaku.danmaku.model.BaseDanmaku;
import master.flame.danmaku.danmaku.model.android.Danmakus;
import master.flame.danmaku.danm... |
package de.gessnerfl.auditedsqlconsole.config.security;
import javax.validation.constraints.NotNull;
public class AuthenticationConfig {
@NotNull
private AuthenticationType type = AuthenticationType.FILE;
private FileAuthenticationConfig file;
public AuthenticationType getType() {
return typ... |
const path = require('path');
const Email = require('./lib');
const email = new Email({
apiKey: process.env.SENDGRID_API_KEY,
prefix: 'your_app_name_',
});
email
.send({
to: 'user@tdev.app',
from: 'admin@tdev.app',
subject: `[Test] Sendgrid template helper`,
templatePath: path.resolve(__dirname,... |
<?php
/**
* Created by PhpStorm.
* User: Igor
* Date: 19/10/2015
* Time: 13:39
*/
namespace backend\actions\banner;
use common\models\Banner;
use common\models\CategoriaBanner;
use common\models\Subcategoria;
use Yii;
use yii\base\Action;
use yii\helpers\ArrayHelper;
use yii\web\UploadedFile;
... |
import '../models/fat.dart';
import '../models/trans_fat.dart';
extension StringExtension on String {
get ignoreNull {
if (this != null) {
return this;
} else {
return '';
}
}
}
extension FatExtension on Fat {
getValue(String unit) {
if (this != null) {
if (this.value != null) ... |
#!/bin/sh
while !(ping -c 1 -W 2 www.google.de); do
echo "computer offline"
sleep 3
done
echo "computer online"
exit 0
|
const findIndex = (arr, fn) => {
for (let i = 0; i < arr.length; i++) {
if (fn(arr[i])) {
return i;
}
}
return -1;
};
export const forEach = (obj, fn) => {
const hasOwn = Object.hasOwnProperty;
Object.keys(obj).forEach(key => {
if (hasOwn.call(obj, key)) {
fn(obj[key], key, obj);
... |
require 'spec_helper'
RSpec.describe Salesforce::SkillsRepository do
it_behaves_like "generic salesforce repository" do
let(:local_resource) do
Skill.new(
id: 42,
name: "Debugging",
description: "Squashing bugs",
rate_type: 'range',
ref_name: 'backend_debugging',
... |
<?php
namespace App\Admin\Controllers;
use App\MemberAnswer;
use App\Title;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Layout\Content;
use App\Http\Controllers\Controller;
use Encore\Admin\Controllers\ModelForm;
class AnswerTextCountController extends Controller
{... |
<?php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\Session\Container;
class CaptchaController extends AbstractActionController
{
public function indexAction()
{
$commonService=$this->getServiceLocator()->get('CommonServic... |
# Sistema de Login PHP
***
### Frameworks e Bibliotecas
Bootstrap 5<br>
PDO
|
function CCShopMenu() {
// Bật tắt Menu
$('.canhcam-header-9 .navbar-toggler').on("click", function () {
$('.canhcam-header-9').addClass('expand')
});
$('.canhcam-header-9 .navbar-closed').on("click", function () {
$('.canhcam-header-9').removeClass('expand')
});
};
$(document).ready(function () {
// Fixed ... |
#!/usr/bin/env bash
set -e
for name in BACKEND_PORT BACKEND_HOST VARNISH_SERVER
do
eval value=\$$name
sed -i "s|\${${name}}|${value}|g" /etc/varnish/default.vcl
done
echo "exec varnishd \
-a :$VARNISH_PORT \
-T localhost:6082 \
-F \
-f $VARNISH_CONFIG \
-s malloc,$CACHE_SIZE \
$VARNISH... |
/*-------------------------------------------------------------------------+
| |
| Copyright 2005-2011 The ConQAT Project |
| |
| Licensed u... |
# Feitify
Notify you using feishu custom bot by webhook.
## Usage
Create a `.feitifyrc` file in your home directory.
Append a JSON object like below.
```JSON
{
"hook_url": "https://open.feishu.cn/open-apis/bot/v2/hook/<blablabla>"
}
```
Then you can use feitify.notify to let the bot send text message.
```python
fr... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Vimeo;
use App\Delivery;
use App\Http\Requests;
use App\Http\Requests\StoreVimeoRequest;
use App\Http\Controllers\Controller;
class VimeoController extends Controller
{
/**
* Display a listing of the resource.
*
* @return ... |
import { Component, OnInit } from '@angular/core';
import { Card } from '../game_model/card-types/card';
import { MatDialogRef } from '@angular/material/dialog';
@Component({
selector: 'ccg-daily-dialog',
templateUrl: './daily-dialog.component.html',
styleUrls: ['./daily-dialog.component.scss']
})
export c... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
/*
* 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.
*/
package com.mycompany.nncloudrestservice.logic;
import com.mycompany.nncloudrestservice.pojo.Network;
import java.rmi.Remote;
... |
#!/bin/bash
awk -F'^' '{printf ("%s", "|-\n"); for (idx=1; idx<NF; idx++) {printf ("| %s", $idx "\n")}}' ../opentraveldata/optd_usdot_wac.csv
|
package ru.flowernetes.script.api.domain.usecase
import ru.flowernetes.entity.script.SourceScript
import ru.flowernetes.entity.team.Team
interface GetAllTeamSourceScriptsUseCase {
fun exec(team: Team): List<SourceScript>
} |
// All Rights Reserved, Muhammad A.Moniem (mamoniem) 2015 http://www.mamoniem.com
// v1.0
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
[RequireComponent(typeof(Text))]
public class uUIEmoticons : MonoBehaviour {
public bool isSupported;
Text mText;
string TheOldText;
string TheNewText;
... |
using Scriban.Functions;
using System;
using System.Collections.Generic;
using System.Text;
namespace ScribanExpress.Functions
{
public class StandardLibrary
{
public StandardLibrary()
{
Date = new DateFunctions();
String = new StringFunctions();
... |
# ExtraGCDTimer
### 由于NSTimer的精度问题 所以撸一个基于gcd的定时器
|
import contextlib
import logging
from datetime import timedelta
from django.conf import settings as django_settings
from django.contrib import messages
from django.contrib.admin.models import CHANGE, LogEntry
from django.contrib.auth import get_user_model, load_backend, login, logout
from django.contrib.auth.models im... |
---
layout: inner
position: right
title: 'Seed4.Me iOS'
date: 2014-06-09 00:00:00
categories: development
tags: iOS Objective-C CocoaPods C++ OpenVPN IPSec
featured_image: '/img/posts/seed4me-ios.png'
project_link: 'https://apps.apple.com/app/id860180339'
button_icon: 'apple'
button_text: 'Download'
lead_text: 'A fast ... |
package ru.raiffeisen.cibinternstesttask.operations;
import java.util.ArrayList;
import java.util.List;
import ru.raiffeisen.cibinternstesttask.socks.Color;
import ru.raiffeisen.cibinternstesttask.socks.Socks;
import ru.raiffeisen.cibinternstesttask.socks.SocksRepository;
/**
* Операция сравнения equal, возвращает с... |
<?php
use Illuminate\Database\Seeder;
use App\ProfilePost;
class ProfilePostsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
ProfilePost::truncate();
$profile_posts = [
['name' => 'Self'],
['name' =>... |
/**
* 实现表单提交和文件上传功能
* 1. 访问localhost:3000 时,返回 html 表单
* 2. 提交表单后,监听文件上传进度,文件上传之后,解析表单和文件,并将上传后的文件放在 uploads 文件夹中。
* 3. 上传功能借助于 formidable 插件, https://www.npmjs.com/package/formidable。
*/
const http = require('http');
const fs = require('fs');
const path = require('path');
const formidable = require('formidable')... |
package com.shopapp
import com.shopapp.di.component.AppComponent
import com.shopapp.di.component.DaggerTestAppComponent
import com.shopapp.di.component.TestAppComponent
import com.shopapp.data.dao.Dao
import com.shopapp.gateway.Api
class TestShopApplication : ShopApplication() {
companion object {
latein... |
/*
* 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 ... |
import logging
import requests
from django.conf import settings
from social.backends.oauth import BaseOAuth2
from account.connectors.idp_interface import get_user
GLUU_OAUTH2_SCOPE = ['openid', 'email', 'profile']
GLUU_OAUTH2_SERVER = 'seed.gluu.org'
GLUUAPIS_PROFILE = 'https://idp.gluu.org/oxauth/seam/res... |
#!/usr/bin/env bash
# fail on any command exiting non-zero
set -eo pipefail
if [[ -z $DOCKER_BUILD ]]; then
echo
echo "Note: this script is intended for use by the Dockerfile and not as a way to build zoopeeper locally"
echo
exit 1
fi
apt-get update && apt-get install -y curl
cd /tmp
mkdir -p /opt
curl -s... |
package etf.dotsandboxes.bb170011d.graphics;
import etf.dotsandboxes.bb170011d.Main;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
/**
* Represents an edge on the GameBoard which a player can play as a move
*/
public class Edge extends JComponent imp... |
using HL7Data.Contracts.Messages.QueryResponseForOrderStatusMessages;
using HL7Data.Models.Types;
namespace HL7Data.Models.Messages.QueryResponseForOrderStatusMessages
{
public class QueryResponseForOrderStatus : BaseQueryResponseForOrderStatusMessage, IQueryResponseForOrderStatus
{
public override Tri... |
#Monitor-Name: RedisVS
use strict;
use warnings;
########################################################################################################
# jetNEXUS custom health checking Copyright jetNEXUS 2015
########################################################################################################
... |
require 'test_helper'
require 'fixtures/blog'
class UndefinedRelationTest < Minitest::Test
def test_undefined_has_one_relation
resource = MotionJsonApi.parse(blog)
assert_equal(nil, resource.reference)
end
end
|
---
layout: watch
title: TLP2 - 28/07/2020 - M20200728_084620_TLP_2T.jpg
date: 2020-07-28 08:46:20
permalink: /2020/07/28/watch/M20200728_084620_TLP_2
capture: TLP2/2020/202007/20200727/M20200728_084620_TLP_2T.jpg
---
|
cd WebDriverAgent
# 解锁keychain以便正常签名应用
PASSWORD="123"
# just like this => PASSWORD= "123456789"
security unlock-keychain -p $PASSWORD ~/Library/Keychains/login.keychain
# 获取设备的UDID
UDID="ddd871b02775cdb6c3b40872d17d41f66436c56b"
#cd $(你的WebDriverAgent所在目录)
xcodebuild -project ./WebDriverAgent.xcodeproj -scheme WebDri... |
import fetch from "node-fetch";
import { ApolloClient } from "apollo-boost";
import { InMemoryCache } from "apollo-cache-inmemory";
import { HttpLink } from "apollo-link-http";
let defaultOptions;
let graphqlUri;
// this code can be run on either browser or ssr
// when location is defined we're
// running in the brow... |
unit Ports.RTTIGoogle4D;
interface
type
IRTTIGoogle4D<T: IInterface> = interface
['{D79057B7-A934-4DA9-9626-8E4EB3795165}']
function AsInstance: T;
function JsonToObject(AValue: String): T;
end;
implementation
end.
|
# Installation
> `npm install --save @types/utf8`
# Summary
This package contains type definitions for utf8 (https://github.com/mathiasbynens/utf8.js).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/utf8
Additional Details
* Last updated: Mon, 21 Aug 2017... |
<?php
//ob_start();
include("../inc/conf.php");
$link = $_POST['link'];
$file = $_POST['file'];
define('PATH','../mpdf/'); //mpdf directory
include(PATH . "mpdf.php");
$mpdf=new mPDF('utf-8', 'A4'); // Create new mPDF Document
$content = file_get_contents($link); //content
$stylesheet = file_get_contents('../css/pd... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.