identifier
stringlengths
42
383
collection
stringclasses
1 value
open_type
stringclasses
1 value
license
stringlengths
0
1.81k
date
float64
1.99k
2.02k
title
stringlengths
0
100
creator
stringlengths
1
39
language
stringclasses
157 values
language_type
stringclasses
2 values
word_count
int64
1
20k
token_count
int64
4
1.32M
text
stringlengths
5
1.53M
__index_level_0__
int64
0
57.5k
https://github.com/triviality-js/triviality/blob/master/packages/eventsourcing-redux/Testing/GateWayFactoryMock.ts
Github Open Source
Open Source
MIT
2,021
triviality
triviality-js
TypeScript
Code
222
696
import { Identity } from '@triviality/eventsourcing/ValueObject/Identity'; import { ProjectorGatewayFactory } from '../Gateway/Projector/ProjectorGatewayFactory'; import { hash, Map } from 'immutable'; import { GatewayMock } from './GatewayMock'; import { StoreRepositoryInterface } from '../ReadModel/StoreRepositoryInt...
46,083
https://github.com/digital-asset/canton/blob/master/community/domain/src/main/scala/com/digitalasset/canton/domain/mediator/MediatorEventsProcessor.scala
Github Open Source
Open Source
Apache-2.0
2,023
canton
digital-asset
Scala
Code
1,187
3,574
// Copyright (c) 2023 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package com.digitalasset.canton.domain.mediator import cats.kernel.Monoid import cats.syntax.alternative.* import cats.syntax.functorFilter.* import cats.syntax.parallel.* import c...
13,222
https://github.com/WeKode/vsv-24/blob/master/app/Http/Controllers/Web/NotificationController.php
Github Open Source
Open Source
MIT
null
vsv-24
WeKode
PHP
Code
24
92
<?php namespace App\Http\Controllers\Web; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class NotificationController extends Controller { public function index() { $notifications = auth()->user()->notifications()->paginate('5'); return view('front.notifications', compact('...
33,923
https://github.com/mohdanishh/Algorithms/blob/master/SearchAlgorithms/TernarySearchDiscrete.java
Github Open Source
Open Source
MIT
null
Algorithms
mohdanishh
Java
Code
304
585
/** * Ternary search is similar to binary search except that it * works on a function which decreases and then increases. * This implementation of ternary search works on discrete values * and returns the input value corresponding with the minimum * output value of the function you're searching on. * * Time ...
29,615
https://github.com/hunglq249/pixelmedia/blob/master/app/Models/Showcase.php
Github Open Source
Open Source
MIT
null
pixelmedia
hunglq249
PHP
Code
769
2,129
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Showcase extends Model { use HasFactory; public static function productType(){ $productTypes = [ 0 => 'Visual', 1 => 'Film', 2 => 'VFX'...
41,549
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/y/yegor256/threecopies/Dockerfile
Github Open Source
Open Source
MIT
2,018
dockerfiles-1
jsdelivrbot
Dockerfile
Code
416
997
# The MIT License (MIT) # # Copyright (c) 2017 Yegor Bugayenko # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights t...
34,221
https://github.com/amondit/c-woodstation/blob/master/woodstation.h
Github Open Source
Open Source
MIT
null
c-woodstation
amondit
C
Code
8
39
#include <stdio.h> #include <time.h> #include <stdlib.h> #include "ht1632c.h"
31,738
https://github.com/ONSdigital/br-api-test-common/blob/master/src/main/scala/uk/gov/ons/br/test/solr/WireMockSolr.scala
Github Open Source
Open Source
MIT
null
br-api-test-common
ONSdigital
Scala
Code
101
375
package uk.gov.ons.br.test.solr import com.github.tomakehurst.wiremock.client.MappingBuilder import org.slf4j.{Logger, LoggerFactory} import uk.gov.ons.br.test.wiremock.{ApiResponse, WireMockSupport} trait WireMockSolr extends ApiResponse { private lazy val logger: Logger = LoggerFactory.getLogger(this.getClass) ...
48,801
https://github.com/QH-CUSTOM-TFE/servkit/blob/master/src/load/index.ts
Github Open Source
Open Source
MIT
2,022
servkit
QH-CUSTOM-TFE
TypeScript
Code
8
15
export * from './script'; export * from './html';
3,165
https://github.com/zerkalica/mol/blob/master/app/supplies/enter/enter.view.ts
Github Open Source
Open Source
MIT
2,020
mol
zerkalica
TypeScript
Code
17
60
namespace $.$$ { export class $mol_app_supplies_enter extends $.$mol_app_supplies_enter { event_submit() { this.entered( true ) } } }
33,288
https://github.com/kncolitsys/FuseForum/blob/master/model/mForumAdmin/qry_categorylist.cfm
Github Open Source
Open Source
Apache-2.0
null
FuseForum
kncolitsys
ColdFusion
Code
267
954
<cfsilent> <!--- --> <?xml version="1.0" encoding="UTF-16"?> <fusedoc fuse="qry_categorylist.cfm"> <responsibilities> I get all forums other than the given one </responsibilities> <properties> <history author="Mike Oakes" email="mike@objectiveinternet.com" date="04-Feb-2005" role="Architect" type="Create" /> <...
41,941
https://github.com/callumcodes/tamc-frontend/blob/master/app/services/EligibilityCalculatorService.scala
Github Open Source
Open Source
Apache-2.0
2,018
tamc-frontend
callumcodes
Scala
Code
343
1,016
/* * Copyright 2018 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
12,168
https://github.com/yorilu/anime/blob/master/scene/scene13.js
Github Open Source
Open Source
MIT
null
anime
yorilu
JavaScript
Code
240
1,752
;require(['anole', 'zepto', 'TweenLite', 'EasePack','CSSPlugin', 'AttrPlugin', 'TimelineLite', 'BezierPlugin'], function (anole){ var scene = new anole.Scene(13, anole.canvas, false); var sceneW = anole.getSceneW(); var sceneH = anole.getSceneH(); scene.createDom = function() { anole.setBackgroundColor(...
2,738
https://github.com/wiltonlazary/korio/blob/master/korio/src/commonMain/kotlin/com/soywiz/korio/async/KlockExt.kt
Github Open Source
Open Source
MIT
2,021
korio
wiltonlazary
Kotlin
Code
47
201
package com.soywiz.korio.async import com.soywiz.klock.* import kotlinx.coroutines.* import kotlin.coroutines.* suspend fun delay(time: TimeSpan): Unit = kotlinx.coroutines.delay(time.millisecondsLong) suspend fun CoroutineContext.delay(time: TimeSpan) = kotlinx.coroutines.delay(time.millisecondsLong) suspend fun <T...
49,847
https://github.com/Patriotic-Robotics-6372/SkyStone/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Subsystemv2/tests/ToggleTestController.java
Github Open Source
Open Source
MIT
2,019
SkyStone
Patriotic-Robotics-6372
Java
Code
118
482
package org.firstinspires.ftc.teamcode.Subsystemv2.tests; import com.qualcomm.robotcore.eventloop.opmode.Disabled; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import org.firstinspires.ftc.teamcode.Subsystemv2.subsys.input.Controller; import org.f...
30,168
https://github.com/vzrenggamani/whatsapp-bot/blob/master/commands/datajudul.js
Github Open Source
Open Source
MIT
2,020
whatsapp-bot
vzrenggamani
JavaScript
Code
107
374
var axios = require('axios'); var config = { method: 'get', url: 'https://ejj-digital-platform.firebaseio.com/media/data-daftarjudul/.json', headers: { } }; exports.run = async (msg, bot) => { console.log("Sending Database Information") axios(config) .then(function (response) { var p = response.da...
2,081
https://github.com/sanguinelab/GGS/blob/master/ggs.py
Github Open Source
Open Source
BSD-2-Clause
2,022
GGS
sanguinelab
Python
Code
1,229
3,873
import numpy as np import numpy.linalg as alg import scipy as spy import matplotlib.pyplot as plt import time from itertools import * import sys import math import random import datetime as DT from matplotlib.dates import date2num import multiprocessing from sys import platform as _platform #Find K breakpoints on t...
43,339
https://github.com/salazarcode/nexos/blob/master/html/app/plugins/affiliate-wp-affiliate-groups/functions.php
Github Open Source
Open Source
MIT
2,021
nexos
salazarcode
PHP
Code
417
1,750
<?php ///////// Group Functions ///////// // Get all active Affiliate Groups function get_active_affiliate_groups() { require_once plugin_dir_path(__FILE__) . 'plugin_core/class-plugin-base.php'; return AffiliateWP_Affiliate_Groups_Base::get_all_active_affiliate_groups(); } // Get a group's settings function ...
10,581
https://github.com/ledgerleapllc/devxdao-compliance/blob/master/src/pages/Feature/Accounting/MainAccounting/index.js
Github Open Source
Open Source
Apache-2.0
null
devxdao-compliance
ledgerleapllc
JavaScript
Code
398
1,446
import { Card, CardHeader, CardBody, Button } from '@shared/partials'; import { useEffect, useState } from 'react'; import { useDispatch } from "react-redux"; import TextField from '@mui/material/TextField'; import AdapterDateFns from '@mui/lab/AdapterDateFns'; import { DatePicker, LocalizationProvider } from "@mui/lab...
890
https://github.com/wataamewatagashi/GeneticsReborn/blob/master/src/main/java/com/theundertaker11/geneticsreborn/util/ModUtils.java
Github Open Source
Open Source
MIT
2,021
GeneticsReborn
wataamewatagashi
Java
Code
721
2,211
package com.theundertaker11.geneticsreborn.util; import java.util.List; import javax.annotation.Nullable; import com.theundertaker11.geneticsreborn.api.capability.genes.EnumGenes; import com.theundertaker11.geneticsreborn.api.capability.genes.GeneCapabilityProvider; import com.theundertaker11.geneticsreborn.api.capa...
1,277
https://github.com/caneto/realm-kotlin/blob/master/test/src/macosTest/kotlin/io/realm/shared/RealmConfigurationTests.kt
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, Apache-2.0, LicenseRef-scancode-generic-export-compliance
2,021
realm-kotlin
caneto
Kotlin
Code
1
23
../../../../../androidTest/kotlin/io/realm/shared/RealmConfigurationTests.kt
17,702
https://github.com/m35/jcodec/blob/master/src/main/java/net/sourceforge/jaad/aac/transport/ADIFHeader.java
Github Open Source
Open Source
BSD-2-Clause
null
jcodec
m35
Java
Code
204
688
package net.sourceforge.jaad.aac.transport; import net.sourceforge.jaad.aac.AACException; import net.sourceforge.jaad.aac.syntax.IBitStream; import net.sourceforge.jaad.aac.syntax.PCE; /** * This class is part of JAAD ( jaadec.sourceforge.net ) that is distributed * under the Public Domain license. Code changes pro...
8,588
https://github.com/TsuKkoMiST/AbandonedRuins/blob/master/ruins/smallRuins/smeltery2.lua
Github Open Source
Open Source
MIT
null
AbandonedRuins
TsuKkoMiST
Lua
Code
221
648
return { entities = { {"wooden-chest", {x = -3.5, y = -3.5}, {items = {["iron-plate"] = {type = "random", min = 1, max = 50}}, }}, {"fast-inserter", {x = -3.5, y = -2.5}, {}}, {"fast-inserter", {x = -0.5, y = -2.5}, {}}, {"fast-inserter", {x = 2.5, y = -2.5}, {}}, {"fast-transport-belt", {x = -2...
41,988
https://github.com/ProductivityTu/SoSo-Taxi/blob/master/app/src/main/java/com/sosotaxi/ui/userInformation/order/OrderItemListAdapter.java
Github Open Source
Open Source
MIT
null
SoSo-Taxi
ProductivityTu
Java
Code
128
503
package com.sosotaxi.ui.userInformation.order; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import com.sosotaxi.R; public class OrderItemListAdapter extends BaseAdapter {...
10,434
https://github.com/nv-ksavaria/Uno/blob/master/src/Uno.UWP/Generated/3.0.0.0/Windows.Devices.Sms/SmsEncoding.cs
Github Open Source
Open Source
Apache-2.0
null
Uno
nv-ksavaria
C#
Code
154
495
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.Devices.Sms { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ #if __ANDROID__ || __IOS__ || NET46 || __WASM__ [global::Uno.NotImplemented] #endif public enum SmsEncoding { #if __ANDROID__ || ...
30,038
https://github.com/weekface/calico-containers/blob/master/tests/st/no_orchestrator/test_mainline_single_host.py
Github Open Source
Open Source
Apache-2.0
2,016
calico-containers
weekface
Python
Code
492
1,433
# Copyright (c) 2015-2016 Tigera, Inc. 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
9,214
https://github.com/paultyng/devstats/blob/master/grafana/containerd/docker_grafana_shell.sh
Github Open Source
Open Source
Apache-2.0
2,018
devstats
paultyng
Shell
Code
15
41
#!/bin/sh echo 'Bash into running containerd grafana container' sudo docker exec -i -t containerd_grafana /bin/bash
6,219
https://github.com/Terracotta-OSS/terracotta-platform/blob/master/common/structures/src/main/java/org/terracotta/common/struct/Version.java
Github Open Source
Open Source
Apache-2.0
2,023
terracotta-platform
Terracotta-OSS
Java
Code
659
1,673
/* * Copyright Terracotta, Inc. * * 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 ...
22,998
https://github.com/aternosorg/mclogs/blob/master/core/config/filesystem.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
mclogs
aternosorg
PHP
Code
26
58
<?php $config = [ /** * Path to store data in * * Relative to CORE_PATH, begins and ends with / */ "path" => "/../storage/logs/", ];
8,708
https://github.com/Hosch250/CheckersWPF/blob/master/CheckersWPF/CustomControls/MoveHistoryControl.xaml.cs
Github Open Source
Open Source
MIT
null
CheckersWPF
Hosch250
C#
Code
56
200
using System; namespace CheckersWPF.CustomControls { public sealed partial class MoveHistoryControl { public MoveHistoryControl() { InitializeComponent(); } public event EventHandler OnMoveSelection; private void MoveSelected() => OnMoveSelectio...
15,612
https://github.com/john-clark/rust-oxide-umod/blob/master/old/plugins/rust/PathFinding.cs
Github Open Source
Open Source
MIT
2,023
rust-oxide-umod
john-clark
C#
Code
1,698
5,293
using System; using System.Collections.Generic; using Oxide.Core.Plugins; using UnityEngine; using static UnityEngine.Vector3; namespace Oxide.Plugins { [Info("PathFinding", "Reneb / Nogrod", "1.1.3", ResourceId = 868)] [Description("Path finding API, used by other plugins only")] public class PathFinding ...
42,266
https://github.com/honeybeeSwinging/CMCollectionFlowLayouts/blob/master/CMCollectionFlowLayouts/CMCollectionFlowLayouts/Base/CMBaseViewController.m
Github Open Source
Open Source
MIT
2,018
CMCollectionFlowLayouts
honeybeeSwinging
Objective-C
Code
59
219
// // CMBaseViewController.m // CMCollectionWaterFall // // Created by CrabMan on 2017/6/7. // Copyright © 2017年 CrabMan. All rights reserved. // #import "CMBaseViewController.h" @interface CMBaseViewController () @end @implementation CMBaseViewController - (void)viewDidLoad { [super viewDidLoad]; ...
50,380
https://github.com/dominictarr/markembed/blob/master/bin.js
Github Open Source
Open Source
MIT
2,016
markembed
dominictarr
JavaScript
Code
26
101
#!/usr/bin/env electro var fs = require('fs') var XMarkdown = require('./x-markdown')() var embed = require('./') var d = new XMarkdown() d.setAttribute('src', process.argv[2]) //d.innerHTML = embed(fs.readFileSync(process.argv[2], 'utf8')) document.body.appendChild(d)
21,321
https://github.com/zak4u/ibrmsnew/blob/master/app/views/medical_pedia_add.php
Github Open Source
Open Source
MIT
null
ibrmsnew
zak4u
PHP
Code
509
2,391
<form action="<?php echo base_url('medical/add_pedia/' . $resid); ?>" method="post" name="pedia_form" class="validate"> <div class="row"> <div class="col-lg-12"> <div class="box box-primary"> <div class="box-header with-border"> <div class="col-lg-6"> ...
44,006
https://github.com/httpea/antlrl/blob/master/CUDAPTX/Ptx.g
Github Open Source
Open Source
MIT
2,022
antlrl
httpea
G-code
Code
6,970
25,651
/* Copyright 2010 Ken Domino 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 writ...
4,193
https://github.com/tobowers/mb-zookeeper/blob/master/ext/zookeeper_j/zookeeper.rb
Github Open Source
Open Source
Unlicense, MIT
2,019
mb-zookeeper
tobowers
Ruby
Code
3,023
6,619
include Java require 'zookeeper_j/zookeeper-3.3.1.jar' require 'zookeeper_j/log4j-1.2.15.jar' require 'zookeeper_j/extensions' JZooKeeper = org.apache.zookeeper.ZooKeeper ZooDefs = org.apache.zookeeper.ZooDefs class ZooKeeper < JZooKeeper class JavaSilentWatcher import org.apache.zookeeper.Watcher def proc...
24,228
https://github.com/Patatobeurre/DOTSprototypeV3/blob/master/Assets/Gestionnaire/RTSControler/RTSControllerV2/ECS_RTSControls.cs
Github Open Source
Open Source
MIT
null
DOTSprototypeV3
Patatobeurre
C#
Code
582
2,154
/* ------------------- Code Monkey ------------------- Thank you for downloading this package I hope you find it useful in your projects If you have any questions let me know Cheers! unitycodemonkey.com -------------------------------------------------- */ using System.Colle...
11,061
https://github.com/rjw57/tiw-computer/blob/master/emulator/src/devices/machine/ds128x.cpp
Github Open Source
Open Source
MIT
2,022
tiw-computer
rjw57
C++
Code
72
243
// license:BSD-3-Clause // copyright-holders:smf #include "emu.h" #include "ds128x.h" DEFINE_DEVICE_TYPE(DS12885, ds12885_device, "ds12885", "DS12885 RTC/NVRAM") //------------------------------------------------- // ds12885_device - constructor //------------------------------------------------- ds12885_device::ds...
5,256
https://github.com/HSCanada/US_Promo/blob/master/SourcePromo/reports/AdCntByMnNvndrQ.bas
Github Open Source
Open Source
MIT
2,021
US_Promo
HSCanada
Visual Basic
Code
3,879
12,993
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularFamily =48 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =14310 DatasheetFontHe...
46,824
https://github.com/uav4geo/GeographicLib/blob/master/dotnet/examples/VB/example-GeodesicLine.vb
Github Open Source
Open Source
MIT
null
GeographicLib
uav4geo
Visual Basic
Code
210
482
Imports NETGeographicLib Module example_GeodesicLine Sub Main() Try ' Print waypoints between JFK and SIN Dim geod As Geodesic = New Geodesic() ' WGS84 Dim lat1 As Double = 40.64, lon1 = -73.779 ' JFK Dim lat2 As Double = 1.359, lon2 = 103.989 ' SIN ...
15,518
https://github.com/mj-kong/TRReverse/blob/master/Source/ILABReverseVideoDefs.h
Github Open Source
Open Source
BSD-2-Clause
2,021
TRReverse
mj-kong
Objective-C
Code
204
619
// // ILABReverseVideoDefs.h // ILABReverseVideoExporter // // Created by Jon Gilkison on 8/15/17. // #import <Foundation/Foundation.h> extern NSString * const kILABReverseVideoExportSessionErrorDomain; typedef enum : NSInteger { ILABSessionErrorMissingOutputURL = -101, ILABSessionErrorAVAs...
37,486
https://github.com/zachatrocity/AOC/blob/master/aocday6.js
Github Open Source
Open Source
MIT
null
AOC
zachatrocity
JavaScript
Code
322
1,143
var input = document.getElementsByTagName("pre")[0].innerHTML.split('\n'); var initArray = function(){ var arr = new Array(1000); for(var k = 0; k < arr.length; k++){ arr[k] = new Array(y); }; for(i=0;i<1000;i++){ for(j=0;j<1000;j++){ arr[i][j] = 0; } } return arr; } var arr = initArray(); var ...
9,855
https://github.com/ashtishad/problem-solving/blob/master/ad_hoc/constructive_algorithm/codeforces/F1355D/Solution.cpp
Github Open Source
Open Source
MIT
2,021
problem-solving
ashtishad
C++
Code
172
379
// problem name: Game With Array // problem link: https://codeforces.com/contest/1355/problem/D // contest link: https://codeforces.com/contest/1355 // time: (?) // author: reyad // other_tags: math // difficulty_level: easy // solution idea: // observation-01: let avg = (S / N) // if avg < 2, then it...
45,259
https://github.com/etiennody/mutadi/blob/master/mutadi/members/urls.py
Github Open Source
Open Source
MIT
2,021
mutadi
etiennody
Python
Code
52
294
"""members URL Configuration """ from django.urls import include, path from .views import ( change_password_success, change_password_view, show_profile_page_view, user_profile_edit_view, user_register_view, user_settings_edit_view, ) urlpatterns = [ path("register/", user_register_view, na...
2,747
https://github.com/edisonwasoverrated/autoexechack/blob/master/Custom-enquiries/Ulyrn/1-5/autoexec.ash
Github Open Source
Open Source
MIT
null
autoexechack
edisonwasoverrated
AGS Script
Code
26
36
t app button shutter PR sleep 1.5 t app button shutter PR sleep 3 t app button power P sleep 3 t app button power R
26,219
https://github.com/itanaskovic/accounting/blob/master/accounting-core/src/de/tfsw/accounting/model/ExpenseTemplate.java
Github Open Source
Open Source
Apache-2.0
2,018
accounting
itanaskovic
Java
Code
1,732
4,154
/* * Copyright 2015 Thorsten Frank (accounting@tfsw.de). * * 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...
35,731
https://github.com/justinwwhuang/incubator-inlong/blob/master/inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/event/task/TaskEventListenerManager.java
Github Open Source
Open Source
Apache-2.0
null
incubator-inlong
justinwwhuang
Java
Code
284
885
/* * 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 n...
6,762
https://github.com/ita-social-projects/EPlast/blob/master/EPlast/EPlast.WebApi/CustomAttributes/AuthorizeRolesAttribute.cs
Github Open Source
Open Source
MIT
2,022
EPlast
ita-social-projects
C#
Code
27
88
using System; using Microsoft.AspNetCore.Authorization; namespace EPlast.WebApi.CustomAttributes { public class AuthorizeRolesAttribute : AuthorizeAttribute { public AuthorizeRolesAttribute(params string[] roles) : base() { Roles = String.Join(',', roles); } } }
2,608
https://github.com/wernerglinka/newWebsite/blob/master/src/components/site-icons/index.js
Github Open Source
Open Source
MIT
null
newWebsite
wernerglinka
JavaScript
Code
37
70
import Feather from "./feather"; import Coffee from "./coffee"; import Database from "./database"; import Film from "./film"; import Send from "./send"; export { Feather, Coffee, Database, Film, Send }; export default { Feather, Coffee, Database, Film, Send };
2,803
https://github.com/hejfelix/slinky-wrappers/blob/master/semantic-ui/src/main/scala/com/lambdaminute/slinkywrappers/semanticui/Divider.scala
Github Open Source
Open Source
MIT
2,020
slinky-wrappers
hejfelix
Scala
Code
15
61
package com.lambdaminute.slinkywrappers.semanticui import slinky.core.ExternalComponentNoProps object Divider extends ExternalComponentNoProps { override val component = SemanticUiReact.Divider }
15,533
https://github.com/llevitis/markello_transcriptome/blob/master/.gitignore
Github Open Source
Open Source
BSD-3-Clause
2,021
markello_transcriptome
llevitis
Ignore List
Code
7
27
data/ .vscode/ figs/ *.log *.out *.simg figures/
23,144
https://github.com/danylkaaa/couseWork_2/blob/master/server/database/models/block.js
Github Open Source
Open Source
MIT
2,018
couseWork_2
danylkaaa
JavaScript
Code
202
623
"use strict"; const Schema = require('mongoose').Schema; const mongoose = require('mongoose'); const Utils = require('@utils'); const validator = require('@validator'); const config = require('@config'); let Block = new Schema({ default: { type: Boolean }, primary: { type: Boolean, ...
23,853
https://github.com/BeastNeedsMoreTorque/Distribution/blob/master/s/sencha_touch/src/main/scala/typings/senchaTouch/Ext/field/IText.scala
Github Open Source
Open Source
MIT
2,020
Distribution
BeastNeedsMoreTorque
Scala
Code
736
2,535
package typings.senchaTouch.Ext.field import typings.senchaTouch.Ext.Array import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ trait IText extends IField { /** [Config Option] (Boolean) */ var autoCapitalize: js.UndefOr[Boolean] = js.undefined /** [Config Option] (Boolean) *...
25,981
https://github.com/smeenai/llvm-project/blob/master/cross-project-tests/debuginfo-tests/dexter/dex/debugger/dbgeng/symbols.py
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,023
llvm-project
smeenai
Python
Code
1,549
7,323
# DExTer : Debugging Experience Tester # ~~~~~~ ~ ~~ ~ ~~ # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception from collections import namedtuple from c...
12,529
https://github.com/ErwinYou/react-blog/blob/master/src/pages/Home/Aside/AccountCard/IcoBtn/index.scss
Github Open Source
Open Source
MIT
null
react-blog
ErwinYou
SCSS
Code
47
171
@import '../../../../../styles/base.scss'; @import '../../../../../styles/style.scss'; .socialBtn { color: $textColor; width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; border-radius: $midRadius; @extend .hover; } .socialBtn:hover { color: $textColor; } .card { ...
38,716
https://github.com/tokenchain/HQChart/blob/master/webhqchart.demo/demo/content/js/phone15.tools.js
Github Open Source
Open Source
Apache-2.0
2,022
HQChart
tokenchain
JavaScript
Code
281
840
var jsEditor; var Root = {}; var Tools = { init: function () { var _this = this; _this.bindModular(); }, bindModular: function () { var _this = this; Root.list = _this.getList(); }, getList: function () { return new Vue({ el: '#tools', ...
18,085
https://github.com/adambird/omniauth-cronofy/blob/master/lib/omniauth-cronofy/version.rb
Github Open Source
Open Source
MIT
2,018
omniauth-cronofy
adambird
Ruby
Code
9
32
module OmniAuth module Cronofy VERSION = '0.14.0'.freeze end end
36,664
https://github.com/baixuexue123/performance/blob/master/thrift/go/demo/go.mod
Github Open Source
Open Source
MIT
2,023
performance
baixuexue123
Go Module
Code
7
28
module demo go 1.17 require github.com/apache/thrift v0.16.0
46,914
https://github.com/PavelZX/console/blob/master/assets/js/components/search/pages.js
Github Open Source
Open Source
Apache-2.0
2,018
console
PavelZX
JavaScript
Code
331
999
import Fuse from "fuse.js" import take from 'lodash/take' const pages = [ { title: "Dashboard", description: "See everything at a glance", url: "/dashboard", id: "/dashboard", category: "dashboard", synonyms: "" }, { title: "Devices", description: "View and manage devices", ur...
34,914
https://github.com/VTimofeenko/nvim-config/blob/master/plugins/vimwiki-tag.py
Github Open Source
Open Source
Unlicense
null
nvim-config
VTimofeenko
Python
Code
262
855
#! /usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function import sys import re help_text = """ Extracts tags from Vimwiki files. Useful for the Tagbar plugin. Usage: Install Tagbar (http://majutsushi.github.io/tagbar/). Then, put this file anywhere and add the following to your .vimrc: l...
15,399
https://github.com/kamiazya/rdbms-inspection/blob/master/application.py
Github Open Source
Open Source
MIT
2,021
rdbms-inspection
kamiazya
Python
Code
37
118
"""Application context""" from contextlib import closing import click from MySQLdb.connections import Connection from libs.db.mysql import connect @click.group("items") @click.pass_context def app(ctx: click.Context = None) -> None: """App""" if ctx is not None: ctx.obj = ctx.with_resource(closing(c...
1,033
https://github.com/mikehunterson/bable/blob/master/assets/javascripts/discourse/routes/admin-chats.js.es6
Github Open Source
Open Source
MIT
null
bable
mikehunterson
JavaScript
Code
25
88
import Babble from "../../discourse/lib/babble" export default Discourse.Route.extend({ model: function() { return Babble.get('availableTopics') }, setupController: function(controller, model) { controller.setProperties({ model: model, disabled: Babble.disabled() }) } });
3,153
https://github.com/mimietti/Labyball/blob/master/Labyrint/Temp/il2cppOutput/il2cppOutput/mscorlib_System_Runtime_InteropServices_DllImportA2977516789MethodDeclarations.h
Github Open Source
Open Source
MIT
null
Labyball
mimietti
C
Code
62
313
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <assert.h> #include <exception> // System.Runtime.InteropServices.DllImportAttribute struct DllImportAttribute_t2977516789; // System.String struct String_t; #include "codeg...
49,642
https://github.com/RaussBlack/runelite/blob/master/runescape-client/src/main/java/NPC.java
Github Open Source
Open Source
BSD-2-Clause
2,022
runelite
RaussBlack
Java
Code
707
2,631
import java.applet.Applet; import java.net.URL; import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; import netscape.javascript.JSObject; @ObfuscatedName("cr") @Implements("NPC") public final class NPC e...
9,217
https://github.com/mastakrishna/sdk-android-2/blob/master/integration/src/main/java/com/playhaven/android/diagnostic/test/PushTest.java
Github Open Source
Open Source
Apache-2.0
2,014
sdk-android-2
mastakrishna
Java
Code
853
2,565
/** * Copyright 2013 Medium Entertainment, Inc. * * 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 o...
14,694
https://github.com/robertgrzonka/OriannaBot/blob/master/backend/src/riot/static-data.ts
Github Open Source
Open Source
MIT
2,022
OriannaBot
robertgrzonka
TypeScript
Code
761
2,527
import fetch from "node-fetch"; import { LeagueAccount } from "../database"; const ABBREVIATIONS: { [key: string]: string } = { "mumu": "Amumu", "ali": "Alistar", "sol": "AurelionSol", "aurelion": "AurelionSol", "asol": "AurelionSol", "blitz": "Blitzcrank", "cait": "Caitlyn", "cass": "C...
41,709
https://github.com/fikrimubarok26/hcis/blob/master/public/template/vendors/pdfJS/SettingPdf.js
Github Open Source
Open Source
MIT, Apache-2.0
2,021
hcis
fikrimubarok26
JavaScript
Code
171
469
// Loaded via <script> tag, create shortcut to access PDF.js exports. var pdfjsLib = window['pdfjs-dist/build/pdf']; // The workerSrc property shall be specified. pdfjsLib.GlobalWorkerOptions.workerSrc = `/template/vendors/pdfJS/build/pdf.worker.js`; var currPage = 1; //Pages are 1-based not 0-based var numPages = 0...
21,881
https://github.com/NeuraLegion/secbox-sdk-js/blob/master/packages/scan/src/ScanSettings.spec.ts
Github Open Source
Open Source
MIT
null
secbox-sdk-js
NeuraLegion
TypeScript
Code
457
1,224
import { AttackParamLocation, TestType } from './models'; import { ScanSettings, ScanSettingsOptions } from './ScanSettings'; import { randomBytes } from 'crypto'; describe('ScanSettings', () => { describe('constructor', () => { it.each([ { input: { tests: ['xxx' as unknown as TestType] }, ...
51,139
https://github.com/sphinxlogic/Singularity-RDK-2.0/blob/master/base/Kernel/Singularity/Hal/HalMemory.cs
Github Open Source
Open Source
MIT
null
Singularity-RDK-2.0
sphinxlogic
C#
Code
84
233
/////////////////////////////////////////////////////////////////////////////// // // Microsoft Research Singularity // // Copyright (c) Microsoft Corporation. All rights reserved. // // Note: // using System; namespace Microsoft.Singularity.Hal { [CLSCompliant(false)] public abstract class HalMemory ...
50,484
https://github.com/applicaster/-Zapp-Frameworks/blob/master/plugins/zapp-react-native-theo-player/android/src/main/java/com/theoplayerreactnative/drm/KeyOsDRMIntegration.java
Github Open Source
Open Source
Apache-2.0
2,022
-Zapp-Frameworks
applicaster
Java
Code
94
388
package com.theoplayerreactnative.drm; import androidx.annotation.NonNull; import com.applicaster.util.APLogger; import com.theoplayer.android.api.contentprotection.ContentProtectionIntegration; import com.theoplayer.android.api.contentprotection.LicenseRequestCallback; import com.theoplayer.android.api.contentprotec...
42,375
https://github.com/Jmeggesto/StringUtils/blob/master/Example/Pods/Target Support Files/Pods-StringUtils_Tests/Pods-StringUtils_Tests-dummy.m
Github Open Source
Open Source
MIT
2,016
StringUtils
Jmeggesto
Objective-C
Code
10
52
#import <Foundation/Foundation.h> @interface PodsDummy_Pods_StringUtils_Tests : NSObject @end @implementation PodsDummy_Pods_StringUtils_Tests @end
18,277
https://github.com/Evil1991/bitrixdock/blob/master/www/html/bitrix/modules/main/admin/quota.php
Github Open Source
Open Source
MIT
2,022
bitrixdock
Evil1991
PHP
Code
111
713
<? require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); if(!$USER->CanDoOperation('edit_other_settings')) $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); $res = false; if (isset($_REQUEST["id"]) && trim($_REQUEST["id"]) <> '' && check_bitrix_sessid()) { $quota = new C...
39,565
https://github.com/a07061625/swooleyaf/blob/master/libs_frame/SyAliPay/Zdatafront/DatatransferedFileuploadRequest.php
Github Open Source
Open Source
BSD-3-Clause
2,022
swooleyaf
a07061625
PHP
Code
358
1,508
<?php namespace SyAliPay\Zdatafront; /** * ALIPAY API: alipay.zdatafront.datatransfered.fileupload request * * @author auto create * * @since 1.0, 2019-03-08 15:29:11 */ class DatatransferedFileuploadRequest { /** * 合作伙伴上传文件中的各字段,使用英文半角","分隔,file_type为json_data时必选 */ private $columns; /** ...
23,863
https://github.com/JeffIrwin/pgh/blob/master/.gitignore
Github Open Source
Open Source
BSD-3-Clause
2,021
pgh
JeffIrwin
Ignore List
Code
22
38
# pgh makes updates here to not interfere with repos that you actually work out of auto-repos/ # Miscellaneous scratch dir scratch/
34,882
https://github.com/Guseyn/Mea/blob/master/test/pom/PomCookBookTest.java
Github Open Source
Open Source
MIT
2,020
Mea
Guseyn
Java
Code
32
152
package pom; import com.guseyn.broken_xml.ParsedXML; import fs.FsCookBook; import java.io.IOException; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; public class PomCookBookTest { @Test void pomDependenciesTest() throws IOException { String pomContent ...
28,743
https://github.com/claudiovaliense/visualizacao_covid/blob/master/app.py
Github Open Source
Open Source
MIT
null
visualizacao_covid
claudiovaliense
Python
Code
124
450
import dash import dash_html_components as html #import dash_bootstrap_components as dbc import os from capanema.graficos_capanema import GraficosCapanema from luiz_viana.graficos_luiz_viana import graficos_luiz_viana from veloso.days_until_vac import DaysUntilVacDash from veloso.population_chart import PopulationChart...
35,192
https://github.com/akjava/GWTModelWeight/blob/master/src/com/akjava/gwt/modelweight/client/animation/SkeletonUtils.java
Github Open Source
Open Source
Apache-2.0
2,017
GWTModelWeight
akjava
Java
Code
158
703
package com.akjava.gwt.modelweight.client.animation; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions.checkNotNull; import java.io.IOException; import java.util.List; import com.akjava.gwt.three.client.js.core.Geometry; import com.akjava.gwt.three.c...
3,869
https://github.com/zinuzoid/flyxc/blob/master/frontend/src/viewer/redux/airways-slice.ts
Github Open Source
Open Source
MIT
2,021
flyxc
zinuzoid
TypeScript
Code
70
198
import { createSlice, PayloadAction } from '@reduxjs/toolkit'; type AirwaysState = { show: boolean; opacity: number; }; const initialState: AirwaysState = { show: false, opacity: 100, }; const airwaysSlice = createSlice({ name: 'skyways', initialState, reducers: { setShow: (state, action: PayloadAc...
42,429
https://github.com/hungitptit/bhyt/blob/master/src/java/entity/Disease.java
Github Open Source
Open Source
Apache-2.0
null
bhyt
hungitptit
Java
Code
263
714
/* * 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 entity; import java.util.Objects; /** * * @author Lenovo */ public class Disease { private int disease_id; private...
40,579
https://github.com/stagingcodelingobot/semaphore/blob/master/cmd/semaphore/draft.go
Github Open Source
Open Source
MIT
null
semaphore
stagingcodelingobot
Go
Code
105
318
package main import ( "io" "os" platform "github.com/kamilsk/platform/cmd/cobra" "github.com/spf13/cobra" ) var ( commit = "none" date = "unknown" version = "dev" ) var tool cli = func(executor commander, output io.Writer, shutdown func(code int)) { defer func() { if r := recover(); r != nil { shut...
40,263
https://github.com/Manwe-fv/Aman-Quests/blob/master/halas/Teria_O-Danos.pl
Github Open Source
Open Source
MIT
2,021
Aman-Quests
Manwe-fv
Perl
Code
356
715
sub EVENT_SAY { if ($text=~/hail/i) { quest::say("Good day to ye! Ye look a wee bit hungrry. I sell many fine foods. Please have a look. Might I suggest the [lion roast]? It is a wee bit expensive, but well worth it."); } elsif ($text=~/lion roast/i) { quest::say("The lion roast is quite good. Tis me specialty. ...
26,042
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/w/wechat-miniprogram/src/main/scala/typingsSlinky/wechatMiniprogram/WechatMiniprogram/AuthPrivateMessageSuccessCallbackResult.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
137
671
package typingsSlinky.wechatMiniprogram.WechatMiniprogram import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait AuthPrivateMessageSuccessCallbackResult extends StObj...
20,375
https://github.com/almightynassar/almighty-rpg-manager/blob/master/src/assets/data/cities/citadel.js
Github Open Source
Open Source
MIT
2,020
almighty-rpg-manager
almightynassar
JavaScript
Code
26
71
export default { id: 'citadel', name: 'The Citadel', owner: 'drakalando', population: 1000, fluff: [ { title: 'Ruled by Dragons', description: 'Ruled by Dragons.' } ] }
1,604
https://github.com/paahdiego/FlutterDashboard/blob/master/lib/screens/dashboard/widgets/storage_usage_bar/storage_usage_bar.dart
Github Open Source
Open Source
MIT
2,021
FlutterDashboard
paahdiego
Dart
Code
80
272
import 'package:dashboardtemplate/core/core.dart'; import 'package:flutter/material.dart'; class StorageUsageBar extends StatelessWidget { const StorageUsageBar({ Key? key, required this.color, required this.percentage, }) : super(key: key); final Color color; final int percentage; @override ...
30,013
https://github.com/noblematt/noblematt.github.io/blob/master/football-maps/animate_world_cup_qualification_map.py
Github Open Source
Open Source
MIT
null
noblematt.github.io
noblematt
Python
Code
745
2,086
#! /usr/bin/env python3 ''' Generate animated SVG world map showing the timeline of countries qualifying / being eliminated from the 2022 FIFA Men's World Cup This is based on the revision history of the SVG image at https://commons.wikimedia.org/wiki/File:2022_world_cup_qualification.svg This tool makes certain ass...
40,550
https://github.com/githubfun/connect-kdb-q/blob/master/lib/c.coffee
Github Open Source
Open Source
MIT
2,016
connect-kdb-q
githubfun
CoffeeScript
Code
3,164
9,318
net = require 'net' {Buffer} = require 'buffer' npmLong = require 'long' ni = -2147483648 # i,m,v,t,d nw = 2147483647 # -nw = neg nw nj = npmLong.MIN_VALUE nwj = npmLong.MAX_VALUE nnwj = nwj.negate() attr = 'supg' i2 = (i) -> ('00'+i.toString()).slice(-2) i3 = (i) -> ('000'+i.toString()).slice(-3) i9 = (i) -> ('0000...
9,319
https://github.com/rubycas/rubycas-client-core/blob/master/spec/rubycas/client/config_spec.rb
Github Open Source
Open Source
MIT
2,012
rubycas-client-core
rubycas
Ruby
Code
120
371
require 'spec_helper' module RubyCas describe Client::Config do describe "#initialize" do context "call with nil" do let(:config) { nil } it "should raise an argument error" do expect { Client::Config.new(config) }.to raise_error(ArgumentError, /cas_base_url/) ...
45,130
https://github.com/bokko79/pdm/blob/master/common/models/PhaseVolumeInsets.php
Github Open Source
Open Source
BSD-3-Clause
null
pdm
bokko79
PHP
Code
218
728
<?php namespace common\models; use Yii; /** * This is the model class for table "phase_volume_insets". * * @property string $id * @property string $phase_volume_id * @property string $inset_id * @property string $info * @property string $file_id * @property integer $requirement * * @property PhaseVolumes $...
45,093
https://github.com/YNFYNYTY/rogersport/blob/master/blog/admin/kernel/db/db_pages.class.php
Github Open Source
Open Source
Artistic-2.0
null
rogersport
YNFYNYTY
PHP
Code
1,093
4,289
<?php /* * Nibbleblog - * http://www.nibbleblog.com * Author Diego Najar * All Nibbleblog code is released under the GNU General Public License. * See COPYRIGHT.txt and LICENSE.txt. */ class DB_PAGES { /* ======================================================================== VARIABLES ======================...
41,331
https://github.com/Libaier/ABC/blob/master/c++/翁恺c++笔记/wengkai/wengkai/8.cpp
Github Open Source
Open Source
MIT
2,017
ABC
Libaier
C++
Code
35
170
#include <stdio.h> class MyClass8 { public: MyClass8() { //a = 1; } void fun(){ printf("&(MyClass8.a):%p\n",&a); printf("&(MyClass8.a):%p\n", this); } ~MyClass8(){ } int a; }; void main8() { MyClass8 m; printf("&m:%p\n", &m); printf("&m.a:%p\n", &(m.a)); m.fun(); getchar(); }
28,532
https://github.com/Ahacad/terminal.sexy/blob/master/lib/formats/css.dot
Github Open Source
Open Source
MIT
2,021
terminal.sexy
Ahacad
Graphviz (DOT)
Code
401
1,727
/* ==== font ==== */ body, textarea, pre, h1, h2, h3, h4, h5, h6 { font-family: {{=c.name}} !important; font-size: {{=c.size}} !important; } pre { line-height: {{=c.line}}; } /* ==== background ==== */ .foreground-bg{color:{{=c.background}} !important;} .background-bg{background:{{=c.background}} !important;}...
8,143
https://github.com/timGRK/dewcloud/blob/master/web/web-business/src/main/java/com/iiot/business/vo/SwapDrumVo.java
Github Open Source
Open Source
Apache-2.0
2,022
dewcloud
timGRK
Java
Code
53
176
package com.iiot.business.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data @ApiModel(value = "油桶绑定") public class SwapDrumVo { @ApiModelProperty(name = "devCode", value = "设备id", required = true, dataType = "String", example = "XT365-000011") ...
4,893
https://github.com/PEM-FR/FreeTimeForHire/blob/master/src/Pem/MetaBundle/PemMetaBundle.php
Github Open Source
Open Source
MIT
2,015
FreeTimeForHire
PEM-FR
PHP
Code
11
44
<?php namespace Pem\MetaBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class PemMetaBundle extends Bundle { }
47,874
https://github.com/ConsensusJ/consensusj/blob/master/cj-btc-json/src/main/java/org/consensusj/bitcoin/json/conversion/ECKeySerializer.java
Github Open Source
Open Source
Apache-2.0
2,023
consensusj
ConsensusJ
Java
Code
43
191
package org.consensusj.bitcoin.json.conversion; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializerProvider; import org.bitcoinj.crypto.ECKey; import java.io.I...
22,045
https://github.com/thieu1995/mongo-market/blob/master/src/app/_web/product/product-relatives/product-relatives.component.ts
Github Open Source
Open Source
MIT
2,019
mongo-market
thieu1995
TypeScript
Code
34
115
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-product-relatives', templateUrl: './product-relatives.component.html', styleUrls: ['./product-relatives.component.css'] }) export class ProductRelativesComponent implements OnInit { listBoxRelative = [1, 2, 3, 4]; constructor() ...
152
https://github.com/ercole79/apple-passbook/blob/master/tests/Unit/MetaData/LocationTest.php
Github Open Source
Open Source
MIT
null
apple-passbook
ercole79
PHP
Code
114
468
<?php declare(strict_types=1); namespace LauLamanApps\ApplePassbook\Tests\Unit\MetaData; use LauLamanApps\ApplePassbook\MetaData\Location; use PHPUnit\Framework\TestCase; final class LocationTest extends TestCase { public function testToArray(): void { $location = new Location(52.3494545, 5.1514097)...
18,875
https://github.com/ajamaica/compositing/blob/master/generator/test_scripts/test.ipynb
Github Open Source
Open Source
MIT
2,021
compositing
ajamaica
Jupyter Notebook
Code
294
1,476
{ "cells": [ { "cell_type": "code", "execution_count": 2, "source": [ "import urllib\n", "\n", "from wand.image import Image\n", "from wand.display import display\n", "\n", "with Image(filename='image2.jpg') as bg_img:\n", " with Image(filename='image1.jpg') as fg_img:\n", ...
25,807
https://github.com/subaquatic-pierre/pixel-node-marketplace/blob/master/frontend/src/components/BrandLogo.tsx
Github Open Source
Open Source
MIT
null
pixel-node-marketplace
subaquatic-pierre
TypeScript
Code
36
113
import React from "react"; import Toolbar from "@mui/material/Toolbar"; import Typography from "@mui/material/Typography"; const BrandLogo: React.FC = () => { return ( <Toolbar sx={{ display: "flex", justifyContent: "center" }}> <Typography variant="h5">CoolBrand</Typography> </Toolbar> ); }; expor...
40,772
https://github.com/FDYdarmstadt/BoSSS/blob/master/doc/GridOfTomorrow-Testgrids/Ring_transfinite.geo
Github Open Source
Open Source
Apache-2.0
2,021
BoSSS
FDYdarmstadt
GLSL
Code
215
496
// Inner Radius ri = 1; //outer Radius of Ring ro = 2; // Number of Points in tangential direction nphi = 8; // Number of Points in radial direction nr = 2; // Generate Point on horizontal Line cl__1 = 1; Point(1) = {0, 0, 0, 1}; Point(2) = {ri, 0, 0, 1}; Point(3) = {ro, 0, 0, 1}; Point(4) = {-1*ri, 0, 0, 1}; Point...
34,666
https://github.com/utkarsh-dixit/crusher/blob/master/packages/runner-utils/src/actions/click.ts
Github Open Source
Open Source
MIT
2,021
crusher
utkarsh-dixit
TypeScript
Code
114
338
import { Page } from "playwright"; import { iAction } from "@crusher-shared/types/action"; import { iSelectorInfo } from "@crusher-shared/types/selectorInfo"; import { toCrusherSelectorsFormat } from '../utils/helper'; import { waitForSelectors } from '../functions'; import { setPageUrl } from '../utils/state'; export...
19,125