text:
// Code generated by go generate; DO NOT EDIT.
package config

var AwsServices = map[string]AwsService{
	"acm": AwsService{Name: "ACM", Types: []string{"Certificate"}},
	"amazonmq": AwsService{Name: "AmazonMQ", Types: []string{"Broker"}},
	"apigateway": AwsService{Name: "ApiGateway", Types: []string{"RestApi","Stage"}},
	"apigatewayv2": AwsService{Name: "ApiGatewayV2", Types: []string{"Api","Stage"}},
	"appconfig": AwsService{Name: "AppConfig", Types: []string{"Application","ConfigurationProfile","DeploymentStrategy","Environment"}},
	"appstream": AwsService{Name: "AppStream", Types: []string{"DirectoryConfig"}},
	"autoscaling": AwsService{Name: "AutoScaling", Types: []string{"AutoScalingGroup","LaunchConfiguration","ScalingPolicy","ScheduledAction","WarmPool"}},
	"backup": AwsService{Name: "Backup", Types: []string{"BackupPlan","BackupSelection","BackupVault","RecoveryPoint"}},
	"budgets": AwsService{Name: "Budgets", Types: []string{"BudgetsAction"}},
	"cloud9": AwsService{Name: "Cloud9", Types: []string{"EnvironmentEC2"}},
	"cloudformation": AwsService{Name: "CloudFormation", Types: []string{"Stack"}},
	"cloudfront": AwsService{Name: "CloudFront", Types: []string{"Distribution","StreamingDistribution"}},
	"cloudtrail": AwsService{Name: "CloudTrail", Types: []string{"Trail"}},
	"cloudwatch": AwsService{Name: "CloudWatch", Types: []string{"Alarm","MetricStream"}},
	"codebuild": AwsService{Name: "CodeBuild", Types: []string{"Project"}},
	"codedeploy": AwsService{Name: "CodeDeploy", Types: []string{"Application","DeploymentConfig","DeploymentGroup"}},
	"codegurureviewer": AwsService{Name: "CodeGuruReviewer", Types: []string{"RepositoryAssociation"}},
	"codepipeline": AwsService{Name: "CodePipeline", Types: []string{"Pipeline"}},
	"config": AwsService{Name: "Config", Types: []string{"ConfigurationRecorder","ConformancePackCompliance","ResourceCompliance"}},
	"connect": AwsService{Name: "Connect", Types: []string{"PhoneNumber"}},
	"customerprofiles": AwsService{Name: "CustomerProfiles", Types: []string{"Domain"}},
	"dms": AwsService{Name: "DMS", Types: []string{"Certificate","EventSubscription","ReplicationInstance","ReplicationSubnetGroup","ReplicationTask"}},
	"datasync": AwsService{Name: "DataSync", Types: []string{"LocationSMB"}},
	"detective": AwsService{Name: "Detective", Types: []string{"Graph"}},
	"devicefarm": AwsService{Name: "DeviceFarm", Types: []string{"InstanceProfile","Project","TestGridProject"}},
	"dynamodb": AwsService{Name: "DynamoDB", Types: []string{"Table"}},
	"ec2": AwsService{Name: "EC2", Types: []string{"CustomerGateway","DHCPOptions","EC2Fleet","EIP","EgressOnlyInternetGateway","FlowLog","Host","IPAM","Instance","InternetGateway","NatGateway","NetworkAcl","NetworkInterface","RegisteredHAInstance","RouteTable","SecurityGroup","Subnet","SubnetRouteTableAssociation","TrafficMirrorFilter","TrafficMirrorSession","TrafficMirrorTarget","VPC","VPCEndpoint","VPCEndpointService","VPCPeeringConnection","VPNConnection","VPNGateway","Volume"}},
	"ecr": AwsService{Name: "ECR", Types: []string{"PublicRepository","PullThroughCacheRule","RegistryPolicy","Repository"}},
	"ecs": AwsService{Name: "ECS", Types: []string{"Cluster","Service","TaskDefinition"}},
	"efs": AwsService{Name: "EFS", Types: []string{"AccessPoint","FileSystem"}},
	"eks": AwsService{Name: "EKS", Types: []string{"Addon","Cluster","FargateProfile","IdentityProviderConfig"}},
	"emr": AwsService{Name: "EMR", Types: []string{"SecurityConfiguration"}},
	"elasticbeanstalk": AwsService{Name: "ElasticBeanstalk", Types: []string{"Application","ApplicationVersion","Environment"}},
	"elasticloadbalancing": AwsService{Name: "ElasticLoadBalancing", Types: []string{"LoadBalancer"}},
	"elasticloadbalancingv2": AwsService{Name: "ElasticLoadBalancingV2", Types: []string{"LoadBalancer"}},
	"elasticsearch": AwsService{Name: "Elasticsearch", Types: []string{"Domain"}},
	"eventschemas": AwsService{Name: "EventSchemas", Types: []string{"Discoverer","Registry","RegistryPolicy","Schema"}},
	"events": AwsService{Name: "Events", Types: []string{"Connection","Rule"}},
	"frauddetector": AwsService{Name: "FraudDetector", Types: []string{"EntityType","Label","Outcome","Variable"}},
	"globalaccelerator": AwsService{Name: "GlobalAccelerator", Types: []string{"Accelerator","EndpointGroup","Listener"}},
	"glue": AwsService{Name: "Glue", Types: []string{"MLTransform"}},
	"groundstation": AwsService{Name: "GroundStation", Types: []string{"Config"}},
	"iam": AwsService{Name: "IAM", Types: []string{"Group","Policy","Role","User"}},
	"ivs": AwsService{Name: "IVS", Types: []string{"Channel","PlaybackKeyPair","RecordingConfiguration"}},
	"imagebuilder": AwsService{Name: "ImageBuilder", Types: []string{"ContainerRecipe","DistributionConfiguration","ImagePipeline","InfrastructureConfiguration"}},
	"iot": AwsService{Name: "IoT", Types: []string{"AccountAuditConfiguration","Authorizer","CustomMetric","Dimension","MitigationAction","Policy","RoleAlias","ScheduledAudit","SecurityProfile"}},
	"iotanalytics": AwsService{Name: "IoTAnalytics", Types: []string{"Channel","Dataset","Datastore","Pipeline"}},
	"iotsitewise": AwsService{Name: "IoTSiteWise", Types: []string{"AssetModel","Dashboard","Portal","Project"}},
	"iottwinmaker": AwsService{Name: "IoTTwinMaker", Types: []string{"Entity","Scene","Workspace"}},
	"iotwireless": AwsService{Name: "IoTWireless", Types: []string{"ServiceProfile"}},
	"kms": AwsService{Name: "KMS", Types: []string{"Alias","Key"}},
	"kinesis": AwsService{Name: "Kinesis", Types: []string{"Stream","StreamConsumer"}},
	"kinesisanalyticsv2": AwsService{Name: "KinesisAnalyticsV2", Types: []string{"Application"}},
	"kinesisvideo": AwsService{Name: "KinesisVideo", Types: []string{"SignalingChannel"}},
	"lambda": AwsService{Name: "Lambda", Types: []string{"Alias","Function"}},
	"lex": AwsService{Name: "Lex", Types: []string{"Bot","BotAlias"}},
	"lightsail": AwsService{Name: "Lightsail", Types: []string{"Bucket","Certificate","Disk","StaticIp"}},
	"lookoutvision": AwsService{Name: "LookoutVision", Types: []string{"Project"}},
	"msk": AwsService{Name: "MSK", Types: []string{"Cluster"}},
	"mediapackage": AwsService{Name: "MediaPackage", Types: []string{"PackagingGroup"}},
	"networkfirewall": AwsService{Name: "NetworkFirewall", Types: []string{"Firewall","FirewallPolicy","RuleGroup"}},
	"networkmanager": AwsService{Name: "NetworkManager", Types: []string{"Device","GlobalNetwork","Link","Site","TransitGatewayRegistration"}},
	"opensearch": AwsService{Name: "OpenSearch", Types: []string{"Domain"}},
	"pinpoint": AwsService{Name: "Pinpoint", Types: []string{"App","ApplicationSettings","Segment"}},
	"qldb": AwsService{Name: "QLDB", Types: []string{"Ledger"}},
	"rds": AwsService{Name: "RDS", Types: []string{"DBCluster","DBClusterSnapshot","DBInstance","DBSecurityGroup","DBSnapshot","DBSubnetGroup","EventSubscription","GlobalCluster"}},
	"redshift": AwsService{Name: "Redshift", Types: []string{"Cluster","ClusterParameterGroup","ClusterSecurityGroup","ClusterSnapshot","ClusterSubnetGroup","EventSubscription","ScheduledAction"}},
	"resiliencehub": AwsService{Name: "ResilienceHub", Types: []string{"ResiliencyPolicy"}},
	"robomaker": AwsService{Name: "RoboMaker", Types: []string{"RobotApplication","RobotApplicationVersion","SimulationApplication"}},
	"route53": AwsService{Name: "Route53", Types: []string{"HealthCheck","HostedZone"}},
	"route53recoverycontrol": AwsService{Name: "Route53RecoveryControl", Types: []string{"Cluster","ControlPanel","RoutingControl","SafetyRule"}},
	"route53recoveryreadiness": AwsService{Name: "Route53RecoveryReadiness", Types: []string{"ReadinessCheck","RecoveryGroup","ResourceSet"}},
	"route53resolver": AwsService{Name: "Route53Resolver", Types: []string{"FirewallDomainList","FirewallRuleGroupAssociation","ResolverRule","ResolverRuleAssociation"}},
	"s3": AwsService{Name: "S3", Types: []string{"AccountPublicAccessBlock","Bucket","MultiRegionAccessPoint","StorageLens"}},
	"ses": AwsService{Name: "SES", Types: []string{"ConfigurationSet","ContactList","ReceiptFilter","ReceiptRuleSet","Template"}},
	"sns": AwsService{Name: "SNS", Types: []string{"Topic"}},
	"sqs": AwsService{Name: "SQS", Types: []string{"Queue"}},
	"ssm": AwsService{Name: "SSM", Types: []string{"AssociationCompliance","FileData","ManagedInstanceInventory","PatchCompliance"}},
	"sagemaker": AwsService{Name: "SageMaker", Types: []string{"AppImageConfig","CodeRepository","EndpointConfig","Image","Model","NotebookInstance","NotebookInstanceLifecycleConfig","Workteam"}},
	"secretsmanager": AwsService{Name: "SecretsManager", Types: []string{"Secret"}},
	"servicecatalog": AwsService{Name: "ServiceCatalog", Types: []string{"CloudFormationProduct","CloudFormationProvisionedProduct","Portfolio"}},
	"shield": AwsService{Name: "Shield", Types: []string{"Protection"}},
	"shieldregional": AwsService{Name: "ShieldRegional", Types: []string{"Protection"}},
	"transfer": AwsService{Name: "Transfer", Types: []string{"Workflow"}},
	"waf": AwsService{Name: "WAF", Types: []string{"RateBasedRule","Rule","RuleGroup","WebACL"}},
	"wafregional": AwsService{Name: "WAFRegional", Types: []string{"RateBasedRule","Rule","RuleGroup","WebACL"}},
	"wafv2": AwsService{Name: "WAFv2", Types: []string{"IPSet","RegexPatternSet","RuleGroup","WebACL"}},
	"xray": AwsService{Name: "XRay", Types: []string{"EncryptionConfig"}},
}

repository: AndreZiviani/aws-fuzzy

repo_name: AndreZiviani/aws-fuzzy


text:
include (FindPackageHandleStandardArgs)
include (CheckFunctionExists)

find_path(PTHREAD_WORKQUEUE_INCLUDE_DIRS pthread_workqueue.h)

check_function_exists(PTHREAD_WORKQUEUE_IN_LIBC pthread_workqueue_create_np)

if (PTHREAD_WORKQUEUE_IN_LIBC)
  set (PTHREAD_WORKQUEUE_LIBRARIES " ")
else ()
  find_library(PTHREAD_WORKQUEUE_LIBRARIES "pthread_workqueue")
endif ()

find_package_handle_standard_args(pthread_workqueue DEFAULT_MSG
  PTHREAD_WORKQUEUE_LIBRARIES
  PTHREAD_WORKQUEUE_INCLUDE_DIRS
)

license_type: permissive

branch_name: refs/heads/master

extension: cmake


text:
package faketime

import (
	"time"

	"github.com/procodr/monkey"
)

type faketime struct {
	nowPatch *monkey.PatchGuard
	year     int
	month    time.Month
	day      int
	hour     int
	min      int
	sec      int
	nsec     int
	loc      *time.Location
	time     time.Time
}

func NewFaketime(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) *faketime {
	return &faketime{
		year:  year,
		month: month,
		day:   day,
		hour:  hour,
		min:   min,
		sec:   sec,
		nsec:  nsec,
		loc:   loc,
	}
}

func NewFaketimeWithTime(t time.Time) *faketime {
	return &faketime{
		time: t,
	}
}

func (f *faketime) Do() {
	f.nowPatch = monkey.Patch(time.Now, func() time.Time {
		if f.time.IsZero() {
			return time.Date(f.year, f.month, f.day, f.hour, f.min, f.sec, f.nsec, f.loc)
		}

		return f.time
	})
}

func (f *faketime) Undo() {
	f.nowPatch.Unpatch()
}

license: MIT

repository: marssis/faketime

repo_name: marssis/faketime

gha_license_id: MIT

extension: go


text:
#-------------------------------------------------------------------------------
# nest in situ vis
#
# Copyright (c) 2017-2018 RWTH Aachen University, Germany,
# Virtual Reality & Immersive Visualisation Group.
#-------------------------------------------------------------------------------
#                                  License
#
# 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 writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------

include(FindPythonInterp)
if(NOT PYTHON_EXECUTABLE)
  message(SEND_ERROR
    " ERROR: Could not find any python interpreter.
        Having a python interpreter is a mandatory requirement for cpplint.
        CMake will not generate the project without it. ")
endif()

find_file(CPPLINT_COMMAND cpplint.py cpplint
  PATHS $ENV{PATH} $ENV{CPPLINT_DIR}
)
if(NOT CPPLINT_COMMAND)
  message(SEND_ERROR
    " ERROR: Could not find cpplint.py.
        Having cpplint.py is a mandatory requirement.
        CMake will not generate the project without it.
        Add its location to the environments variables PATH or CPPLINT_DIR.")
endif()

function(ADD_TEST_CPPLINT)
  set(options )
  set(oneValueArgs NAME)
  set(multiValueArgs )
  cmake_parse_arguments(ADD_TEST_CPPLINT
    "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )

  if(MSVC)
    set(CPPLINT_OUTPUT "--output=vs7")
  else()
    set(CPPLINT_OUTPUT "")
  endif()

  add_test(NAME "${ADD_TEST_CPPLINT_NAME}"
    COMMAND ${PYTHON_EXECUTABLE} ${CPPLINT_COMMAND} ${CPPLINT_OUTPUT}
    ${ADD_TEST_CPPLINT_UNPARSED_ARGUMENTS}
  )
endfunction()

repository: HBPVIS/nest-in-situ-vis

repo_name: HBPVIS/nest-in-situ-vis


text:
require gpe-timesheet.inc

PR = "r1"
PV = "0.31+svn-${SRCDATE}"

SRC_URI = "${GPE_SVN}"

S = "${WORKDIR}/${PN}"

DEFAULT_PREFERENCE = "-1"

repository: overo/overo-oe-natty

repo_name: overo/overo-oe-natty

branch_name: HEAD

extension: bb


text:
package mjd

import (
	"math"
	"testing"
	"time"
)

func TestMJD(t *testing.T) {
	result := Now()
	if result.Day() < unix_epoch+365*(2020-1970) {
		t.Fatal("Day seems wrong")
	}

	nowMjd := Now()
	nowTime := time.Now()
	nowUnix := nowMjd.Unix()
	drift := nowTime.Sub(nowUnix)
	if math.Abs(float64(drift)) > 1_000_000 {
		t.Fatalf("Times: %s and %s differ", nowTime, nowUnix)
	}
	example := Mjd{day: 0xadbeef, µs: 1337.00}
	res := RoughtimeVal(example.RoughtimeEncoding())
	if res.day != example.day {
		t.Fatal("day mismatch")
	}
	if res.µs-example.µs != 0 {
		t.Fatal("micros mismatch")
	}

}

repository: cloudflare/roughtime

repo_name: cloudflare/roughtime

gha_language: Go


text:
package lister

import (
	"fmt"

	"github.com/aws/aws-sdk-go-v2/service/wafregional"
	"github.com/trek10inc/awsets/context"
	"github.com/trek10inc/awsets/resource"
)

type AWSWafRegionalIpSet struct {
}

func init() {
	i := AWSWafRegionalIpSet{}
	listers = append(listers, i)
}

func (l AWSWafRegionalIpSet) Types() []resource.ResourceType {
	return []resource.ResourceType{resource.WafRegionalIpSet}
}

func (l AWSWafRegionalIpSet) List(ctx context.AWSetsCtx) (*resource.Group, error) {
	svc := wafregional.NewFromConfig(ctx.AWSCfg)
	rg := resource.NewGroup()
	err := Paginator(func(nt *string) (*string, error) {
		res, err := svc.ListIPSets(ctx.Context, &wafregional.ListIPSetsInput{
			Limit:      100,
			NextMarker: nt,
		})
		if err != nil {
			return nil, fmt.Errorf("failed to list ip sets: %w", err)
		}
		for _, id := range res.IPSets {
			ipset, err := svc.GetIPSet(ctx.Context, &wafregional.GetIPSetInput{
				IPSetId: id.IPSetId,
			})
			if err != nil {
				return nil, fmt.Errorf("failed to get ipset %s: %w", *id.IPSetId, err)
			}
			if v := ipset.IPSet; v != nil {
				r := resource.New(ctx, resource.WafRegionalIpSet, v.IPSetId, v.Name, v)
				rg.AddResource(r)
			}
		}
		return res.NextMarker, nil
	})
	return rg, err
}

repository: fulldeck/awsets

repo_name: fulldeck/awsets


text:
// Copyright 2017 The Kubernetes Authors.
//
// 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 writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package service

import (
	"context"
	"log"

	v1 "k8s.io/api/core/v1"
	metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	k8sClient "k8s.io/client-go/kubernetes"
	"k8s.io/dashboard/api/pkg/errors"
	"k8s.io/dashboard/api/pkg/resource/endpoint"
)

// Service is a representation of a service.
type ServiceDetail struct {
	// Extends list item structure.
	Service `json:",inline"`

	// List of Endpoint obj. that are endpoints of this Service.
	EndpointList endpoint.EndpointList `json:"endpointList"`

	// Show the value of the SessionAffinity of the Service.
	SessionAffinity v1.ServiceAffinity `json:"sessionAffinity"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

// GetServiceDetail gets service details.
func GetServiceDetail(client k8sClient.Interface, namespace, name string) (*ServiceDetail, error) {
	log.Printf("Getting details of %s service in %s namespace", name, namespace)
	serviceData, err := client.CoreV1().Services(namespace).Get(context.TODO(), name, metaV1.GetOptions{})
	if err != nil {
		return nil, err
	}

	endpointList, err := endpoint.GetServiceEndpoints(client, namespace, name)
	nonCriticalErrors, criticalError := errors.HandleError(err)
	if criticalError != nil {
		return nil, criticalError
	}

	service := toServiceDetail(serviceData, *endpointList, nonCriticalErrors)
	return &service, nil
}

func toServiceDetail(service *v1.Service, endpointList endpoint.EndpointList, nonCriticalErrors []error) ServiceDetail {
	return ServiceDetail{
		Service:         toService(service),
		EndpointList:    endpointList,
		SessionAffinity: service.Spec.SessionAffinity,
		Errors:          nonCriticalErrors,
	}
}

repository: kubernetes/dashboard

repo_name: kubernetes/dashboard


text:
@article{Lee2018,
  doi = {10.1093/bioinformatics/bty807},
  url = {https://doi.org/10.1093/bioinformatics/bty807},
  year  = {2018},
  month = {sep},
  publisher = {Oxford University Press ({OUP})},
  author = {Benjamin D Lee},
  editor = {John Hancock},
  title = {Squiggle: a user-friendly two-dimensional {DNA} sequence visualization tool},
  journal = {Bioinformatics}
}

repository: Benjamin-Lee/cookiecutter-pandoc-paper

repo_name: Benjamin-Lee/cookiecutter-pandoc-paper

extension: bib


text:
package source

import (
	"encoding/json"
)

type TypeStruct struct {
	Type        string     `json:"type"`
	TypeString  string     `json:"type_string"`
	TypeMapping [][]string `json:"type_mapping,omitempty"`
	ValueList   []string   `json:"value_list,omitempty"`
	BitLength   int        `json:"bit_length,omitempty"`
	V14         bool       `json:"-"`
}

//go:generate go run ../tools/merge.go
func LoadTypeRegistry(source []byte) map[string]TypeStruct {
	var original map[string]interface{}
	err := json.Unmarshal(source, &original)
	if err != nil {
		panic(err)
	}
	ts := make(map[string]TypeStruct)
	for key, value := range original {
		switch v := value.(type) {
		case string:
			ts[key] = TypeStruct{Type: "string", TypeString: v}
		default:
			b, _ := json.Marshal(value)
			var t TypeStruct
			_ = json.Unmarshal(b, &t)
			ts[key] = t
		}
	}
	// check inherit
	for key, value := range ts {
		if value.Type == "string" {
			if instant, ok := ts[value.TypeString]; ok {
				ts[key] = instant
			}
		}
	}

	return ts
}


text:
@incollection{bleilafferty09,
  author      = "David M. Blei and John D. Lafferty",
  title       = "Topic Models",
  editor      = "Ashok N. Srivastava and Mehran Sahami",
  booktitle   = "Text Mining: Classification, Clustering, and Applications",
  publisher   = "Chapman and Hall/CRC",
  year        = 2009,
  pages       = "71-94",
  chapter     = 4,
}

@article{mimnoetal11,
    author      = "David Mimno and Hanna M. Wallach and Edmund Talley and Mirian Leenders and Andrew McCallum",
    title       = "Optimizing Semantic Coherence in Topic Models",
    year        = "2011",
    journal     = "Proceedings of the Conference on Empirical Methods in Natural Language Processing",
    pages       = "262-272",
}

@article{newmanetal11,
    author      = "David Newman and Jey Han Lau and Karl Grieser and Timothy Baldwin",
    title       = "Automatic Evaluation of Topic Coherence",
    year        = "2010",
    journal     = "Human Language Technologies: The Annual Conference of the North American Chapter of the Association for Computational Linguistics",
    pages       = "100-108",
}


text:
package data_transformer

import (
	"github.com/gol4ng/skeleton/pkg/my_package"
	protos "github.com/gol4ng/skeleton/pkg/my_package/protos"
)

func TransformDocument(document *my_package.Document) *protos.Document {
	return &protos.Document{
		Title:       document.Title,
		Type:        TransformType(document.Type),
		Description: document.Description,
	}
}

func ReverseTransformDocument(document *protos.Document) *my_package.Document {
	return &my_package.Document{
		Title:       document.Title,
		Type:        ReverseTransformType(document.Type),
		Description: document.Description,
	}
}


text:
DESCRIPTION = "Control application for B.A.T.M.A.N. routing protocol kernel module for multi-hop ad-hoc mesh networks."
HOMEPAGE = "http://www.open-mesh.net/"
SECTION = "console/network"
PRIORITY = "optional"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://../COPYING;md5=d32239bcb673463ab874e80d47fae504"

EXTRA_OEMAKE += "V=1"

inherit pkgconfig

DEPENDS += " libnl"
S = "${WORKDIR}/git"

SRCREV = "fec077f0165b13019d7019d00c1846ead8f45e86"
SRC_URI = "git://git.open-mesh.org/batctl.git \
           file://COPYING \
          "

PV = "_git${SRCREV}"

do_compile() {
  oe_runmake
}

do_install() {
  install -d ${D}${bindir}
  install -m 0755 batctl ${D}${bindir}
}

gha_language: BitBake


text:
// Copyright © 2015 - Rémy MATHIEU

package app

import (
	"github.com/vrischmann/envconfig"
)

type Config struct {
	Addr      string `envconfig:"ADDR,default=:9000,optional"`
	Key       string `envconfig:"KEY,optional"`
	PublicDir string `envconfig:"DIR,default=public/,optional"`
	Conn      string `envconfig:"CONN,default=host=/var/run/postgresql sslmode=disable user=hss dbname=hss password=hss,optional"`
}

func ReadConfig() Config {
	var conf Config
	envconfig.Init(&conf)
	return conf
}

repository: remeh/home-sensors-server

repo_name: remeh/home-sensors-server


text:
import { SEND_MESSAGE } from '../actions/messageActions';

export default store => next =>(action) => {

  // const date = Date.now();

  // switch (action.type) {
  //   case SEND_MESSAGE:
  //     if (action.sender === 'me') {
  //       setTimeout(() => store.dispatch(
  //         sendMessage(Object.keys(store.getState().messageReducer.messages).length + 1,
  //         'Не приставай ко мне, я робот!', 'bot', date, action.chatId)
  //       ), 1000);
  //     }
  // }
  return next(action)
}

// function sendMessage( message, sender, date ) {
//   const { messages } = this.state;
//   const { chatId } = this.props;

//   const messageId = Object.keys(messages).length + 1;
//     this.setState({
//       messages: { ...messages, [messageId]: { text: message, sender: sender, created: date }},
//     });
//     this.props.sendMessage(messageId, message, sender, chatId, date);
// };

gha_language: JavaScript

extension: js


text:
@charset "UTF-8";
/* Главная часть сайта */
/* Адаптив */
/* login */
/* HEADER */
/* BLOCK1 */
/* BLOCK2 */
/* BLOCK3 */
/* BLOCK4 */
/* BLOCK5 */
/* BLOCK6 */
/* BLOCK7 */
/* FOOTER */
/* New heights */
/* Img logo */
/* ОФФЕРЫ !!! */
.container-2 {
  width: 693px;
  margin: 0 auto; }

.block2 {
  position: relative;
  top: -100px; }

.wrapper {
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 15px 35px 0 rgba(78, 49, 177, 0.05);
  padding: 70px;
  color: #000;
  position: relative; }
  .wrapper:after {
    content: '';
    display: block;
    height: 200px;
    width: 200px;
    background-image: linear-gradient(to right, #983893, #473fa9);
    box-shadow: 0 40px 70px 0 rgba(125, 70, 211, 0.3);
    border-radius: 50%;
    position: absolute;
    left: -100px;
    bottom: 70px;
    z-index: -1; }
  .wrapper:before {
    content: '';
    display: block;
    height: 280px;
    width: 280px;
    background-image: linear-gradient(143deg, #fd9e4c, #f60d45);
    box-shadow: 0 40px 70px 0 rgba(212, 34, 31, 0.3);
    border-radius: 50%;
    position: absolute;
    right: -140px;
    top: 170px;
    z-index: -1; }

.form-item {
  width: 100%;
  margin-bottom: 25px;
  vertical-align: top; }
  .form-item_1 {
    width: 259px;
    display: inline-block; }
  .form-item_2 {
    width: 383px;
    display: inline-block; }

.label {
  font-size: 14px;
  line-height: 9px;
  margin-bottom: 15px;
  display: block;
  color: rgba(0, 0, 0, 0.4);
  vertical-align: middle; }
  .label_r:after {
    content: '*';
    margin-left: 6px;
    display: inline-block;
    color: #f73446;
    font-size: 24px;
    line-height: 9px;
    vertical-align: top;
    position: relative;
    top: 5px; }

.input {
  height: 50px;
  width: 100%;
  outline: 0;
  border-radius: 5px;
  background-color: #fff;
  border: solid 1px rgba(0, 0, 0, 0.1);
  padding: 0 22px;
  font-size: 18px;
  line-height: 12px; }
  .input:focus {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); }

textarea.input {
  resize: vertical;
  padding-top: 13px; }

.form-inline {
  text-align: justify;
  font-size: 0; }
  .form-inline:after {
    content: '';
    display: inline-block;
    width: 100%; }

.captcha {
  margin-bottom: 40px; }
  .captcha .form-item {
    margin-bottom: 0; }

.form-checkbox {
  margin-bottom: 40px;
  display: block; }
  .form-checkbox input {
    display: none; }
  .form-checkbox input:checked + .custom-checkbox {
    background-image: url("../img/check.svg"); }
  .form-checkbox label {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    vertical-align: middle;
    display: inline-block; }

.custom-checkbox {
  height: 18px;
  width: 18px;
  border-radius: 5px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  background: center no-repeat; }

.form-btn {
  height: 60px;
  width: 100%;
  border-radius: 5px;
  background-image: linear-gradient(100deg, #fd9e4c, #f60d45);
  box-shadow: 0 10px 25px 0 rgba(212, 34, 31, 0.3);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 3px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 60px;
  border: none;
  outline: none;
  cursor: pointer; }

gha_language: HTML

extension: css