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/gaufung/PDA/blob/master/src/test/java/org/iecas/pda/TestLp.java
Github Open Source
Open Source
MIT
null
PDA
gaufung
Java
Code
144
841
package org.iecas.pda; import junit.framework.TestCase; import org.iecas.pda.io.DmuReader; import org.iecas.pda.io.DmuReaderFactory; import org.iecas.pda.lp.Dea; import org.iecas.pda.lp.EtaMax; import org.iecas.pda.lp.PhiMin; import org.iecas.pda.lp.ReciprocalDea; import org.iecas.pda.model.Dmu; import org.junit.Befor...
1,506
https://github.com/yaronshahverdi/client-modules/blob/master/packages/gamut-labs/src/Testimonial/index.tsx
Github Open Source
Open Source
MIT
2,021
client-modules
yaronshahverdi
TSX
Code
420
1,333
import { Anchor, Box, FloatingCard, Text } from '@codecademy/gamut'; import { modeColorProps, system } from '@codecademy/gamut-styles'; import styled from '@emotion/styled'; import React, { ComponentProps, useMemo } from 'react'; import darkQuotes from '../assets/navyQuotes.svg'; const QuoteArt = styled.img` height...
19,232
https://github.com/thepechinator/eslint-plugin-react/blob/master/tests/lib/rules/no-new-styled-component-in-react-methods.js
Github Open Source
Open Source
MIT
2,019
eslint-plugin-react
thepechinator
JavaScript
Code
1,051
3,189
/** * @fileoverview Prevent instantiation of a styled-component in React component methods * @author Paul Pechin */ 'use strict'; // ------------------------------------------------------------------------------ // Requirements // ------------------------------------------------------------------------------ const...
12,212
https://github.com/vothanhkiet/terraform-eks-with-weave/blob/master/src/weave/setup-weave.sh
Github Open Source
Open Source
MIT
2,019
terraform-eks-with-weave
vothanhkiet
Shell
Code
83
252
#!/usr/bin/env bash daemonsets_array=($(kubectl -n=kube-system get daemonsets --no-headers=true -o custom-columns=:metadata.name)) if [[ " ${daemonsets_array[@]} " =~ " aws-node " ]]; then echo 'found the aws-node daemonset, deleting it...' kubectl -n=kube-system delete daemonset "aws-node" fi echo 'Applying...
15,522
https://github.com/pwerken/va-void/blob/master/src/Controller/GroupsController.php
Github Open Source
Open Source
0BSD
null
va-void
pwerken
PHP
Code
59
239
<?php namespace App\Controller; class GroupsController extends AppController { protected $searchFields = [ 'Groups.name' ]; public function initialize() { parent::initialize(); $this->mapMethod('add', [ 'referee' ]); $this->mapMethod('delete', [ 'super' ]); $this->mapMethod('edit', [ 'infobal...
50,616
https://github.com/adamkrupadev/adam-video-conferencing/blob/master/src/Services/ConferenceManagement/Strive.Core/Services/Chat/ParticipantTypingTimer.cs
Github Open Source
Open Source
Apache-2.0
2,022
adam-video-conferencing
adamkrupadev
C#
Code
285
1,020
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using MediatR; using Strive.Core.Services.Chat.Channels; using Strive.Core.Services.Chat.Requests; namespace Strive.Core.Services.Chat { public class ParticipantTypingTimer : IParticipantTypingT...
49,695
https://github.com/zing-dev/hello-shell/blob/master/command/string/7.sh
Github Open Source
Open Source
Apache-2.0
2,018
hello-shell
zing-dev
Shell
Code
99
588
#!/usr/bin/env bash #表达式 含义 #${#string} $string的长度 str1=123456789 echo ${str1} echo length is ${#str1} # #${string:position} 在$string中, 从位置$position开始提取子串 #6789 echo ${str1:5} #${string:position:length} 在$string中, 从位置$position开始提取长度为$length的子串 #67 echo ${str1:5:2} # #${string#substring} 从变量$string的开头, 删除最短匹配$substrin...
32,732
https://github.com/shoaibahmedqureshi/openwhyd-ios/blob/master/Whyd/Controllers/HotTracks/HotTracksViewController.h
Github Open Source
Open Source
MIT
2,016
openwhyd-ios
shoaibahmedqureshi
Objective-C
Code
33
103
// // HotTracksViewController.h // Whyd // // Created by Damien Romito on 13/03/2014. // Copyright (c) 2014 Damien Romito. All rights reserved. // #import "TracksListViewController.h" #import "GenresView.h" @interface HotTracksViewController : TracksListViewController <GenresViewDelegate> @end
21,818
https://github.com/chonkerboi/pantheon-hermes/blob/master/pantheon-hermes/pantheon/hermes/gpu/meta.py
Github Open Source
Open Source
MIT
2,018
pantheon-hermes
chonkerboi
Python
Code
24
78
class GPUMeta(type): registry = dict() def __new__(mcs, *args, **kwargs): obj = super().__new__(mcs, *args, **kwargs) if obj.model is not None: mcs.registry[obj.model] = obj return obj
3,319
https://github.com/marktimbol/alsbeef/blob/master/app/Menu.php
Github Open Source
Open Source
MIT
null
alsbeef
marktimbol
PHP
Code
53
186
<?php namespace App; use Illuminate\Database\Eloquent\Model; use AlgoliaSearch\Laravel\AlgoliaEloquentTrait; class Menu extends Model { use AlgoliaEloquentTrait; protected $fillable = ['name', 'slug', 'description']; public static $autoIndex = true; public static $autoDelete = true; public $ind...
26,537
https://github.com/dlannan/funLuaJit/blob/master/byt3d/ffi/win32.lua
Github Open Source
Open Source
MIT
2,021
funLuaJit
dlannan
Lua
Code
1,073
4,579
-- -- Created by David Lannan -- User: grover -- Date: 19/04/13 -- Time: 12:04 AM -- Copyright 2013 Developed for use with the byt3d engine. -- local ffi = require( "ffi" ) user32 = ffi.load( "USER32" ) kernel32 = ffi.load( "KERNEL32" ) ffi.cdef[[ typedef char* PCIDLIST_ABSOLUTE; typedef char* LPCTSTR; ...
15,552
https://github.com/tvst/streamlit/blob/master/component-lib/declarations/apache-arrow/Arrow.node.d.ts
Github Open Source
Open Source
Apache-2.0
2,021
streamlit
tvst
TypeScript
Code
4
11
export * from "./Arrow.dom";
11,771
https://github.com/littleeleventhwolf/datafuse/blob/master/common/datavalues/src/types/deserializations/variant.rs
Github Open Source
Open Source
Apache-2.0
null
datafuse
littleeleventhwolf
Rust
Code
306
1,047
// Copyright 2022 Datafuse Labs. // // 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 ...
4,755
https://github.com/anurjalal/accelbyte-go-sdk/blob/master/platform-sdk/pkg/platformclient/payment/list_ext_order_no_by_ext_tx_id_parameters.go
Github Open Source
Open Source
MIT
2,022
accelbyte-go-sdk
anurjalal
Go
Code
577
1,544
// Code generated by go-swagger; DO NOT EDIT. package payment // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/...
328
https://github.com/JannisRex/AppData-Roaming-SL3/blob/master/Packages/Material Theme/schemes/Material-Theme.tmTheme
Github Open Source
Open Source
MIT
2,020
AppData-Roaming-SL3
JannisRex
XML Property List
Code
20,000
136,123
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>author</key> <string>Mattia Astorino</string> <key>colorSpaceName</key> <string>sRGB</string> <key>name</key> <string>Material-Theme</string> <k...
21,384
https://github.com/esoha-nvidia/tpcx-bb/blob/master/tpcx_bb/queries/q05/tpcx_bb_query_05_sql.py
Github Open Source
Open Source
Apache-2.0
null
tpcx-bb
esoha-nvidia
Python
Code
588
1,844
# # Copyright (c) 2019-2020, NVIDIA CORPORATION. # Copyright (c) 2019-2020, BlazingSQL, 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...
34,112
https://github.com/abhijithvijayan/ts-utils/blob/master/tests/isBrowser.test.ts
Github Open Source
Open Source
MIT
2,021
ts-utils
abhijithvijayan
TypeScript
Code
22
56
import {isBrowser} from '../source'; describe('Tests for isBrowser()', () => { it('should return false for node.js runtime', () => { expect(isBrowser()).toEqual(false); }); });
44,190
https://github.com/Shivam010/slice/blob/master/templates/_SimpleType/last.go
Github Open Source
Open Source
MIT
2,022
slice
Shivam010
Go
Code
32
93
package __SimpleType func Last(slice []_SimpleType) (res _SimpleType) { if len(slice) == 0 { return } res = slice[len(slice) - 1] return } func (c *chain) Last() *chain { return &chain{value: []_SimpleType{Last(c.value)}} }
7,274
https://github.com/biobankinguk/biobankinguk/blob/master/lib/Core/Submissions/Types/CacheKeys.cs
Github Open Source
Open Source
MIT
2,023
biobankinguk
biobankinguk
C#
Code
70
166
namespace Biobanks.Submissions.Types { public static class CacheKeys { public static string MaterialTypes = "MaterialTypes"; public static string Organisations = "Organisations"; public static string SampleContentMethods = "SampleContentMethods"; public static string Sexes = "Se...
33,704
https://github.com/Nayed/jsonvalide/blob/master/main.js
Github Open Source
Open Source
MIT
null
jsonvalide
Nayed
JavaScript
Code
14
51
import React from 'react' import ReactDOM from 'react-dom' import ReactApp from './components/ReactApp.jsx' ReactDOM.render(<ReactApp/>, document.getElementById('app'))
2,513
https://github.com/tianjuan/focalboard/blob/master/webapp/src/widgets/editableDayPicker.tsx
Github Open Source
Open Source
Apache-2.0
2,021
focalboard
tianjuan
TypeScript
Code
170
585
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {useState} from 'react' import {useIntl} from 'react-intl' import DayPickerInput from 'react-day-picker/DayPickerInput' import MomentLocaleUtils from 'react-day-picker/moment' import 'react-day...
18,532
https://github.com/andmorefine/go-test/blob/master/test-7/p337/main.go
Github Open Source
Open Source
MIT
null
go-test
andmorefine
Go
Code
61
225
package main import ( "encoding/json" "fmt" "log" "time" ) type User struct { Id int Name string Email string Created time.Time } func main() { /* User型に対応したJSON文字列 */ src := ` { "Id":12, "Name":"田中花子", "Email":"tanaka@example.com", "Created":"2015-12-02T10:...
34,803
https://github.com/TaylanUB/scheme-srfis/blob/master/srfi/67.sld
Github Open Source
Open Source
MIT
2,021
scheme-srfis
TaylanUB
Scheme
Code
190
770
(define-library (srfi 67) (export </<=? </<? <=/<=? <=/<? <=? <? =? >/>=? >/>? >=/>=? >=/>? >=? >? boolean-compare chain<=? chain<? chain=? chain>=? chain>? char-compare char-compare-ci compare-by< compare-by<= compare-by=/< compare-by=/> c...
40,214
https://github.com/Syntheti/Justin/blob/master/commands/rate.js
Github Open Source
Open Source
MIT
2,021
Justin
Syntheti
JavaScript
Code
68
173
const Discord = require('discord.js'); exports.run = async (client, message, args) => { try { const rating = Math.floor(Math.random() * 11); return message.channel.send("I rate it a " + rating + "\10") } catch (err) { return message.channel.send(`Oh no, an error occurred: \`${err.message...
42,613
https://github.com/dbash/zerowaste/blob/master/taco_aug_scripts/analyze.py
Github Open Source
Open Source
MIT
2,022
zerowaste
dbash
Python
Code
157
576
import os from pathlib import Path import shutil from shutil import copyfile import sys # insert at 1, 0 is the script path (or '' in REPL) sys.path.insert(1, '/home/guest/mabdelfa/zerowaste/DRS/utils/transforms') from PIL import Image import imageio import numpy from numpy import asarray import numpy as np #/researc...
16,696
https://github.com/oualidktata/Okt.Portal.Api/blob/master/Portal.Api.Repositories/Repositories/AccountRepo/AccountRepoOptions.cs
Github Open Source
Open Source
MIT
null
Okt.Portal.Api
oualidktata
C#
Code
21
68
 using Portal.Api.Repositories.Contracts; namespace Portal.Api.Repositories.Repos { public class AccountRepoOptions : IAccountRepoOptions { public string CacheItemName { get; set; } } }
34,476
https://github.com/flowersteam/TeachMyAgent/blob/master/run.py
Github Open Source
Open Source
MIT
2,022
TeachMyAgent
flowersteam
Python
Code
101
412
import argparse import os from TeachMyAgent.run_utils.environment_args_handler import EnvironmentArgsHandler from TeachMyAgent.run_utils.teacher_args_handler import TeacherArgsHandler from TeachMyAgent.run_utils.student_args_handler import StudentArgsHandler if __name__ == '__main__': # Argument definition pr...
24,715
https://github.com/mstrkingdom/samples/blob/master/snippets/visualbasic/VS_Snippets_Wpf/ClockController_procedural_snip/visualbasic/sampleviewer.xaml.vb
Github Open Source
Open Source
CC-BY-4.0, MIT
null
samples
mstrkingdom
Visual Basic
Code
58
178
'This is a list of commonly used namespaces for a window. Imports Microsoft.VisualBasic Imports System.Windows Imports System.Windows.Controls Imports System.Windows.Documents Imports System.Windows.Navigation Imports System.Windows.Shapes Imports System.Windows.Data Imports System.Windows.Media.Media3D Imports Syste...
42,650
https://github.com/skyshe/artemis/blob/master/other/bgpstream_retrieve_prefix_records.py
Github Open Source
Open Source
TCL, BSD-3-Clause, PostgreSQL
null
artemis
skyshe
Python
Code
394
1,454
#!/usr/bin/env python import argparse import csv import os import sys import netaddr import ujson from _pybgpstream import BGPRecord from _pybgpstream import BGPStream # install as described in https://bgpstream.caida.org/docs/install/pybgpstream def is_valid_ip_prefix(pref_str=None): """ Check if given pre...
42,169
https://github.com/constellation-app/constellation/blob/master/CoreUtilities/src/au/gov/asd/tac/constellation/utilities/stream/ExtendedBuffer.java
Github Open Source
Open Source
Apache-2.0
2,023
constellation
constellation-app
Java
Code
1,723
3,342
/* * Copyright 2010-2021 Australian Signals Directorate * * 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 appl...
14,522
https://github.com/jiladahe1997/rt-thread/blob/master/components/drivers/ipc/waitqueue.c
Github Open Source
Open Source
Apache-2.0
null
rt-thread
jiladahe1997
C
Code
555
1,538
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018/06/26 Bernard Fix the wait queue issue when wakeup a soon * to blocked thread. * 2022-01-24 THEWON let rt_w...
39,628
https://github.com/hoverzheng/spark2.4.4_note/blob/master/delta/target/java/org/apache/spark/sql/delta/util/AnalysisHelper.java
Github Open Source
Open Source
PSF-2.0, BSD-2-Clause, Apache-2.0, CC0-1.0, MIT, MIT-0, ECL-2.0, BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
null
spark2.4.4_note
hoverzheng
Java
Code
132
594
package org.apache.spark.sql.delta.util; public interface AnalysisHelper { /** LogicalPlan to help resolve the given expression */ static public class FakeLogicalPlan extends org.apache.spark.sql.catalyst.plans.logical.LogicalPlan implements scala.Product, scala.Serializable { public org.apache.spark.sql.cat...
36,957
https://github.com/BlueLort/GameX-Engine/blob/master/Game X Engine/src/UI/GXUserInterface.h
Github Open Source
Open Source
MIT
2,021
GameX-Engine
BlueLort
C
Code
75
297
#pragma once #include "Config.h" #include "UI/ImGUI_SDLGL/ImGUI_SDLGL.h" namespace gx { #ifdef USING_OPENGL class GX_DLL GXUserInterface { public: GXUserInterface(const std::string& layerName) :imguiSDLGL(layerName){ } inline void init() { imguiSDLGL.init(); } inline void destroy() { imguiSDLGL.destroy(); }...
23,234
https://github.com/matrx-software/matrx/blob/master/matrx/defaults.py
Github Open Source
Open Source
MIT
2,021
matrx
matrx-software
Python
Code
106
428
# from matrx.goals.goals import LimitedTimeGoal ###################### # AgentBody defaults # ###################### AGENTBODY_IS_TRAVERSABLE = False AGENTBODY_IS_MOVABLE = False AGENTBODY_SPEED_IN_TICKS = 1 AGENTBODY_VIS_SIZE = 1.0 AGENTBODY_VIS_COLOUR = "#92f441" AGENTBODY_VIS_OPACITY = 1.0 AGENTBODY_VIS_SHAPE = 1 A...
6,713
https://github.com/MarimerLLC/CslaGenFork/blob/master/trunk/Samples/DeepLoad/DeepLoadUnitTests/SelfLoad/SelfLoadSoftDelete_ERLevel.cs
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
CslaGenFork
MarimerLLC
C#
Code
1,898
10,309
using System; using SelfLoadSoftDelete.Business.ERLevel; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DeepLoadUnitTests { /// <summary> /// Summary description for UnitTest1 /// </summary> [TestClass] public class SelfLoadSoftDelete_ERLevel { private const string Conti...
21,144
https://github.com/RickyC0626-archive/cisc3130-data-structures/blob/master/examples/Sorting/Sorting.java
Github Open Source
Open Source
MIT
2,021
cisc3130-data-structures
RickyC0626-archive
Java
Code
117
306
public class Sorting { public static void main(String[] args) { // Selection sort int arr[] = {3, 4, 6, 8, 2, 1}; int n = arr.length; for(int k = 0; k < n; k++) { int minidx = k; for(int i = k + 1; i < n; i++) { if(arr[i] < arr[minidx]) minidx = i; } if(minidx != k) { int temp = a...
20,162
https://github.com/arenadata/adcm/blob/master/web/src/app/adwp/lib/list/hover.directive.ts
Github Open Source
Open Source
Apache-2.0
2,023
adcm
arenadata
TypeScript
Code
46
186
import { Directive, ElementRef, HostListener } from '@angular/core'; @Directive({ selector: '[adwpHover]', }) export class HoverDirective { constructor(private el: ElementRef) {} @HostListener('mouseenter') onmouseenter(): void { this.el.nativeElement.style.backgroundColor = 'rgba(255, 255, 255, 0.12)';...
50,643
https://github.com/zags4life/read_only_collections/blob/master/__init__.py
Github Open Source
Open Source
Apache-2.0
null
read_only_collections
zags4life
Python
Code
10
28
# __init__.py from .readonlydict import ReadOnlyDict from .readonlylist import ReadOnlyList
36,613
https://github.com/soraismus/purescript-capstone/blob/master/src/Data/Argonaut/Decode/Record/Tolerant/Cross/DecodeJson.purs
Github Open Source
Open Source
MIT
null
purescript-capstone
soraismus
PureScript
Code
167
459
module Data.Argonaut.Decode.Record.Tolerant.Cross.Utils ( decodeJsonWith ) where import Prelude (class Bind, bind, ($)) import Data.Argonaut.Core (Json) import Data.Argonaut.Decode.Record.Tolerant.GDecodeJson ( class GDecodeJson , gDecodeJson ) import Data.Argonaut.Decode.Record.Cross.Class ( class Decode...
48,129
https://github.com/w0wka91/react-atomicus/blob/master/src/index.tsx
Github Open Source
Open Source
MIT
2,020
react-atomicus
w0wka91
TSX
Code
143
381
import { Breadcrumb } from './components/breadcrumb/Breadcrumb' import { Button } from './components/button/Button' import { Card } from './components/card/Card' import { Checkbox } from './components/checkbox/Checkbox' import { Input } from './components/input/Input' import { Modal } from './components/modal/Modal' im...
27,428
https://github.com/jiyulongxu/playwell/blob/master/playwell-activity/src/main/java/playwell/route/migration/DefaultMigrationOutputTask.java
Github Open Source
Open Source
Apache-2.0
2,022
playwell
jiyulongxu
Java
Code
382
1,540
package playwell.route.migration; import com.google.common.util.concurrent.ThreadFactoryBuilder; import java.util.Collection; import java.util.HashSet; import java.util.Optional; import java.util.Set; import java.util.concurrent.Executor; import java.util.concurrent.Executors; import org.apache.logging.log4j.LogManage...
1,646
https://github.com/seeliang/react-enzyme/blob/master/gulp-tasks/webpack.js
Github Open Source
Open Source
MIT
2,018
react-enzyme
seeliang
JavaScript
Code
24
105
const gulp = require('gulp'), webpack = require('webpack-stream'), paths = require('../task-sets/paths.js'); module.exports = () => { return gulp.src(paths.src + 'js/app.js') .pipe(webpack(require('../webpack.config.js'))) .pipe(gulp.dest(paths.dist + 'js/')); };
9,311
https://github.com/BillKalin/Algorithm/blob/master/src/com/billkalin/leetcode/LeetCode75.java
Github Open Source
Open Source
Apache-2.0
null
Algorithm
BillKalin
Java
Code
243
652
package com.billkalin.leetcode; public class LeetCode75 { //方法1:排序,最快排序时间复杂度也为O(nlongn) //方法2:分别统计0,1,2的个数,然后在改写数组元素 public void sortColors(int[] nums) { if (nums == null || nums.length <= 1) return; int num0 = 0, num1 = 0, num2 = 0; for (int num : nums) { ...
33,640
https://github.com/fallfromgrace/More.Net/blob/master/More.Net/Units/Dynamic/Unit.cs
Github Open Source
Open Source
MIT
null
More.Net
fallfromgrace
C#
Code
361
1,015
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace More.Net.Units.Experimental { /// <summary> /// Encapsulates base functionality for a unit of measure. /// </summary> public class Unit { /// <summary> /// ...
33,183
https://github.com/sandirr/MyClass/blob/master/models/absent.js
Github Open Source
Open Source
Beerware
null
MyClass
sandirr
JavaScript
Code
85
264
const db_con = require('../configs/mysql') module.exports = { absent: (data) => { return new Promise((resolve, reject) => { db_con.query(`INSERT INTO absent_recap SET ?`, data, (error, result) => { if (error) reject(new Error(error)) resolve(result) }...
22,533
https://github.com/ruesin/redis-utils/blob/master/src/Redis.php
Github Open Source
Open Source
Apache-2.0
null
redis-utils
ruesin
PHP
Code
348
1,083
<?php namespace Ruesin\Utils; /** * Class Redis * @see \Predis\Client */ class Redis { /** * All Configs * * @var array */ private static $configs = []; /** * All instance * @var array */ private static $instances = null; /** * Connection name * @v...
28,648
https://github.com/danielbarros24/KiCAD-Libraries/blob/master/SW-Wurth-Electronics.pretty/CP_ELEC_8.3x8.3x11.7mm_SMD.kicad_mod
Github Open Source
Open Source
MIT
2,020
KiCAD-Libraries
danielbarros24
KiCad Layout
Code
260
909
(module CP_ELEC_8.3x8.3x11.7mm_SMD (layer F.Cu) (tedit 5CCF374B) (descr "SMD Aluminum Electrolytic Polymer Capacitor 8.3x8.3x11.7mm") (tags "SMD Aluminum Electrolytic Polymer Capacitor 8.3x8.3x11.7mm") (attr smd) (fp_text reference REF** (at 0 -5.05) (layer F.SilkS) (effects (font (size 1 1) (thickness 0.15...
24,292
https://github.com/deaspo/SuperElastix/blob/master/CMakeLists.txt
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-warranty-disclaimer, Apache-2.0
2,018
SuperElastix
deaspo
CMake
Code
922
3,173
#========================================================================= # # Copyright Leiden University Medical Center, Erasmus University Medical # Center and contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Y...
43,162
https://github.com/fhoefling/useful_stuff/blob/master/plotting/defaults.py
Github Open Source
Open Source
BSD-2-Clause
null
useful_stuff
fhoefling
Python
Code
126
652
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright © 2020 Felix Höfling # def set_plot_defaults(): """ set matplotlib defaults """ from pylab import rc, cycler from palette import LondonUnderground_Colours # all possible keys are shown with matplotlib.rcParams.keys() rc('font', ...
39,520
https://github.com/yminsky/learn-ocaml-workshop/blob/master/02-exercises/23-mutable_records/problem.ml
Github Open Source
Open Source
Apache-2.0
2,018
learn-ocaml-workshop
yminsky
OCaml
Code
387
724
open! Base (* Sometimes rather than redefining the record you would like to have a field or a set of fields that you can modify on the fly. In OCaml if you want to have a field in a record that can be update in place you must use some additional syntax. The mutable keyword makes the field modifiable. ...
37,650
https://github.com/guogang81/threejsLearn/blob/master/src/pages/mixin/utils.js
Github Open Source
Open Source
MIT
2,020
threejsLearn
guogang81
JavaScript
Code
415
1,344
import * as THREE from 'three' // import TrackballControls from 'three-trackballcontrols-es6' import OrbitControls from 'threejs-orbit-controls' const TrackballControls = require('three-trackballcontrols') export function trackballControls(camera, rendererDom) { var trackballControls = new TrackballControls(camera, ...
29,203
https://github.com/WickrInc/wickrio-bot-web/blob/master/src/components/message/send.js
Github Open Source
Open Source
Apache-2.0
null
wickrio-bot-web
WickrInc
JavaScript
Code
928
3,543
import React, { useEffect, useContext } from "react" import InputLabel from "@material-ui/core/InputLabel" import MenuItem from "@material-ui/core/MenuItem" import FormHelperText from "@material-ui/core/FormHelperText" import FormControl from "@material-ui/core/FormControl" import Select from "@material-ui/core/Select"...
9,186
https://github.com/danieledangeli/meytip/blob/master/src/Meytip/UserBundle/Entity/User.php
Github Open Source
Open Source
BSD-3-Clause, MIT
2,013
meytip
danieledangeli
PHP
Code
153
544
<?php namespace Meytip\UserBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use FOS\UserBundle\Model\User as BaseUser; use Meytip\TournamentBundle\Model\BaseTournament; use Doctrine\ORM\Mapping as ORM; /** * Meytip Base User * @ORM\Entity * @ORM\Table(name="meytipuser") */ class User extends BaseUs...
8,914
https://github.com/CefasRepRes/ices_vms_logbook_datacall/blob/master/eflalo/metiers/psql_2nd_metiers_voyage_taxa.sql
Github Open Source
Open Source
Unlicense
2,020
ices_vms_logbook_datacall
CefasRepRes
SQL
Code
5,537
18,906
------- 2nd script to create metiers within SQL database -------- /* This script creates and update the table voyage_target_taxa that identify the TARGETED ASSAMBLAGE by fishing TRIP */ --- Dependencies : -- TABLE: eflalo_metiers.voyage_taxa_stats -- Contain the trip id, dcf gear code , division and ...
42,261
https://github.com/ThePrimeagen/nvim-treesitter/blob/master/autoload/health/nvim_treesitter.vim
Github Open Source
Open Source
Apache-2.0
2,021
nvim-treesitter
ThePrimeagen
Vim Script
Code
6
35
function! health#nvim_treesitter#check() lua require 'nvim-treesitter.health'.checkhealth() endfunction
10,293
https://github.com/nonameengineer/todo-app/blob/master/angular/src/app/ui/more-menu/more-menu.module.ts
Github Open Source
Open Source
Apache-2.0
null
todo-app
nonameengineer
TypeScript
Code
33
87
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MoreMenuComponent } from './more-menu.component'; @NgModule({ declarations: [MoreMenuComponent], imports: [ CommonModule ], exports: [MoreMenuComponent] }) export class MoreMenuModule { }
42,133
https://github.com/azmy60/minimal-ci4-ecommerce/blob/master/app/Views/admin/add_product.html.twig
Github Open Source
Open Source
MIT
null
minimal-ci4-ecommerce
azmy60
Twig
Code
589
2,205
{% extends "wrappers/base.html.twig" %} {% block head %} <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script> {% endblock head %} {% block title %}Tambah produk - {{ store.name }}{% endblock title %} {% block body %} {% include "dest/symbol/iconset.svg" %} <header class="flex items-center p...
31,233
https://github.com/sourav-majumder/qtlab/blob/master/scripts/test.py
Github Open Source
Open Source
MIT
null
qtlab
sourav-majumder
Python
Code
94
610
import sys import qt from constants import * center = 5*GHz span = 8*GHz num_points = 2001 znb = qt.instruments.create('ZNB20', 'RhodeSchwartz_ZNB20', address='TCPIP0::192.168.1.3::INSTR') znb.reset() znb.set_center_frequency(center) znb.set_span(span) znb.set_numpoints(num_points) filename='Soumya' data=qt.Data(name...
11,261
https://github.com/KirkBushman/ARAW/blob/master/lib/src/main/java/com/kirkbushman/araw/fetcher/Fetcher.kt
Github Open Source
Open Source
MIT
2,022
ARAW
KirkBushman
Kotlin
Code
444
1,005
package com.kirkbushman.araw.fetcher import androidx.annotation.IntRange import androidx.annotation.WorkerThread /** * The base class for fetching pages of items * in a listing return. * * @param limit the number of items to return per page. * The default is 25, and you can change this to a number from 0 to 100....
50,123
https://github.com/bogutskii/alphabet_for_kids/blob/master/src/Alphabet.js
Github Open Source
Open Source
MIT
2,021
alphabet_for_kids
bogutskii
JavaScript
Code
164
626
import React, {useState} from "react"; import "./alphabet-style.css"; import "bootstrap/dist/css/bootstrap.min.css"; import UpperLineAlph from "./Comonents/upperLineAlph" //import Stats from "./Comonents/test/test"; import Word from "./Comonents/word"; import {connect} from "react-redux"; const Alphabet = (props) => ...
4,055
https://github.com/Rexsunon/Tutemy/blob/master/app/src/main/java/com/atornel/tutemy/Model/PostModel/Item.java
Github Open Source
Open Source
OLDAP-2.6, OLDAP-2.5, OLDAP-2.3, OLDAP-2.8
2,021
Tutemy
Rexsunon
Java
Code
612
1,752
package com.atornel.tutemy.Model.PostModel; import java.util.List; public class Item { public int id; public String date; public String date_gmt; public Guid guid; public String modified; public String modified_gmt; public String slug; public String status; public String type; ...
3,218
https://github.com/KeimaShikai/online_currency_analyzer/blob/master/oca.py
Github Open Source
Open Source
Unlicense
2,019
online_currency_analyzer
KeimaShikai
Python
Code
730
2,618
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # autor: KeimaShikai # version: 0.3 from requests import get from re import findall from time import strftime from functools import wraps '''Online currency analyzer (Онлайн анализатор валют) This code is a script, the main task of which is to download certain pages o...
29,369
https://github.com/xinnicai/vueproject/blob/master/src/views/manager/userManage.vue
Github Open Source
Open Source
MIT
null
vueproject
xinnicai
Vue
Code
793
4,416
<!--用户管理==用户列表--> <style lang="less"> .userManage{ background-color: #fff; border-radius: 4px; border: none!important; padding:20px; } </style> <template> <div class="userManage"> <div style="margin-bottom: 15px;"> <h2 class="tableTitle" style="display: inline-block;">{{tableName}}...
14,558
https://github.com/4964rollapatriots/ftc_app/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/SeasonCode/RoverRuckus/OpModes/Autonomous/ParkDoubleCrater.java
Github Open Source
Open Source
BSD-3-Clause
2,019
ftc_app
4964rollapatriots
Java
Code
1,744
7,663
// This autonomous is intended for an initial setup where the robot is hanging from the lander facing the crater // The robot will detach and lower itself and then locate the position of the block using the phone // The robot will knock the block off and then drive to our teammate's side, where it will knock their bloc...
29,805
https://github.com/JosXa/GetAltsClient/blob/master/examples/quickstart.py
Github Open Source
Open Source
MIT
null
GetAltsClient
JosXa
Python
Code
28
79
""" This example script imports the getaltsclient package and prints out the version. """ import getaltsclient def main(): print( f"getaltsclient version: {getaltsclient.__version__}" ) if __name__ == "__main__": main()
13,042
https://github.com/GeoHealth/HAppi_backend/blob/master/db/migrate/20170414110520_add_columns_to_data_analysis_basis_analyses.rb
Github Open Source
Open Source
Apache-2.0
2,017
HAppi_backend
GeoHealth
Ruby
Code
16
70
class AddColumnsToDataAnalysisBasisAnalyses < ActiveRecord::Migration def change add_column :data_analysis_basis_analyses, :start_date, :timestamp add_column :data_analysis_basis_analyses, :end_date, :timestamp end end
17,867
https://github.com/DSCTIU/Flutter_hackathon/blob/master/lib/device.dart
Github Open Source
Open Source
Apache-2.0
2,018
Flutter_hackathon
DSCTIU
Dart
Code
487
1,799
import 'package:flutter/material.dart'; import 'package:flutter_app_hackathon/benifits.dart'; //ui import 'package:flutter_app_hackathon/drawback.dart'; //development and tools import 'package:flutter_app_hackathon/fluttermoredetails.dart'; // more details import 'package:flutter_app_hackathon/nextpage.dart'; // devi...
49,297
https://github.com/phenoscape/Phenex/blob/master/src/main/java/org/obo/annotation/view/PhenoteOntologyTreeEditorFactory.java
Github Open Source
Open Source
MIT
2,021
Phenex
phenoscape
Java
Code
54
150
package org.obo.annotation.view; import org.oboedit.gui.factory.TermPanelFactory; /** * This class is used only to provide a customized name for this OBO-Edit * component within Phenote. * @author Jim Balhoff */ public class PhenoteOntologyTreeEditorFactory extends TermPanelFactory { @Override public String...
46,962
https://github.com/Gramgramgram/DivineDefense/blob/master/core/src/ua/gram/model/actor/GameActor.java
Github Open Source
Open Source
WTFPL
2,021
DivineDefense
Gramgramgram
Java
Code
188
684
package ua.gram.model.actor; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.scenes.scene2d.Actor; import ua.gram.DDGame; import ua.gram.controller.Counters; import ua.gram.controller.Flags; import ua.gram.controller.state.StateManager; import ua.gram.model.Animator; i...
16,651
https://github.com/vinod827/casbin-dynamodb-adapter/blob/master/src/adapter.ts
Github Open Source
Open Source
Apache-2.0
2,020
casbin-dynamodb-adapter
vinod827
TypeScript
Code
177
331
// Copyright 2018 The Casbin Authors. 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 a...
21,685
https://github.com/slashdotted/dropboxQt/blob/master/src/dropbox/team/TeamMembersAddJobStatus.cpp
Github Open Source
Open Source
MIT
2,020
dropboxQt
slashdotted
C++
Code
153
694
/********************************************************** DO NOT EDIT This file was generated from stone specification "team" Part of "Ardi - the organizer" project. osoft4ardi@gmail.com www.prokarpaty.net ***********************************************************/ #include "dropbox/team/TeamMembersAddJobStatu...
30,340
https://github.com/minatani/OpenJSCAD.org/blob/master/packages/modeling/src/math/vec2/rotate.test.js
Github Open Source
Open Source
MIT
null
OpenJSCAD.org
minatani
JavaScript
Code
175
548
const test = require('ava') const { rotate, fromValues } = require('./index') const { compareVectors } = require('../../../test/helpers/index') test('vec2: rotate() called with two paramerters should return a vec2 with correct values', (t) => { const radians = 90 * Math.PI / 180 const obs1 = rotate(0, [0, 0]) ...
2,528
https://github.com/Johnnbass/laravel7/blob/master/app/Http/Controllers/ContatoController.php
Github Open Source
Open Source
MIT
2,021
laravel7
Johnnbass
PHP
Code
231
712
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\SiteContato; use App\MotivoContato; class ContatoController extends Controller { public function contato(Request $request) { $motivo_contatos = MotivoContato::all(); // echo '<pre>'; // print_r($request->all())...
19,916
https://github.com/XuanchenLin/NanUI/blob/master/src/NetDimension.NanUI/Runtime/ApplicationConfigurationBuilder.cs
Github Open Source
Open Source
MIT
2,023
NanUI
XuanchenLin
C#
Code
144
483
namespace NetDimension.NanUI; public enum ExtensionExecutePosition { MainProcessInitilized, SubProcessInitialized, BrowserProcessInitialized, Terminated } public sealed partial class ApplicationConfigurationBuilder { internal class ConfigurationInitializationAction { public Configuratio...
14,064
https://github.com/belzecue/DJV/blob/master/tests/djvSystemTest/FileIOTest.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
DJV
belzecue
C++
Code
646
2,882
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2004-2020 Darby Johnston // All rights reserved. #include <djvSystemTest/FileIOTest.h> #include <djvSystem/FileIO.h> #include <djvSystem/Path.h> #include <limits> #include <sstream> using namespace djv::Core; using namespace djv::System; namespace djv { ...
28,283
https://github.com/amanjaiswalofficial/infinity-reads-frontend/blob/master/src/containers/DeleteBlog/deleteBlog.js
Github Open Source
Open Source
MIT
null
infinity-reads-frontend
amanjaiswalofficial
JavaScript
Code
209
656
// Library imports import React, {useState, useEffect, useContext} from 'react' import { useMutation } from '@apollo/client'; // Custom imports import MessageDialog from 'components/MessageDialog/messageDialog' import {DELETE_BLOG} from 'utils/queries' import { REFRESH_STATE } from 'utils/constants' import {AppContex...
35,337
https://github.com/vsawchuk/CPDBv2_frontend/blob/master/src/js/components/common/carousel/arrow.sass
Github Open Source
Open Source
Apache-2.0
2,021
CPDBv2_frontend
vsawchuk
Sass
Code
52
204
@import 'variables' $arrow-width: 40px \:local(.arrow) width: $arrow-width background-image: url('/img/disclosure-indicator.svg') transform: none left: auto right: auto height: 100% position: absolute top: 0 margin-top: 0 border: 0 outline: 0 z-index: 10 background-color: rgba(255, 255, 255,...
20,559
https://github.com/SoupeDog/Xavier-Project/blob/master/util/util-define/src/main/java/org/xavier/common/util/enums/EncryptedAim.java
Github Open Source
Open Source
Apache-2.0
2,018
Xavier-Project
SoupeDog
Java
Code
91
291
package org.xavier.common.util.enums; import javax.crypto.Cipher; /** * 描述信息:<br/> * 编码目标 * * @author Xavier * @version 1.0 * @date 2018.04.10 * @since Jdk 1.8 */ public enum EncryptedAim { /** * 加密过程 */ ENCODE(Cipher.ENCRYPT_MODE, "加密过程"), /** * 解密过程 */ DECODE(Cipher.DECRY...
22,584
https://github.com/GotWoods/Fluent-Build/blob/master/src/FluentBuild/MessageLoggers/IMessageLogger.cs
Github Open Source
Open Source
Apache-2.0
2,020
Fluent-Build
GotWoods
C#
Code
78
243
using System; namespace FluentBuild.MessageLoggers { public interface IMessageLogger { void WriteHeader(string header); void WriteDebugMessage(string message); void Write(string type, string message, params string[] items); void WriteError(string type, string message); ...
39,031
https://github.com/baoduy/sm-react-service-fabric/blob/master/Web/EndpointProtocols.cs
Github Open Source
Open Source
MIT
2,019
sm-react-service-fabric
baoduy
C#
Code
23
57
using System; namespace Web { [Flags] public enum EndpointProtocols { Http = 0, Https = 1, Both = Http | Https } }
3,534
https://github.com/alosoft/bank_app/blob/master/bank_app.py
Github Open Source
Open Source
Apache-2.0
null
bank_app
alosoft
Python
Code
369
1,080
"""Bank App""" from bank_class import Account from exception import num_there, numb_warning, alpha_warning from read_write import read_file, save_file print('#' * 42) print('# Hello and Welcome to ALONSO RURAL BANK #') print('#' * 42) loop = True while loop: while True: ask_question = str(input('Please wo...
28,629
https://github.com/JanoCodes/Registry/blob/master/db/migrate/20180123165604_rename_domain_transfers_transfer_from_id_to_old_registrar_id.rb
Github Open Source
Open Source
X11
null
Registry
JanoCodes
Ruby
Code
12
57
class RenameDomainTransfersTransferFromIdToOldRegistrarId < ActiveRecord::Migration def change rename_column :domain_transfers, :transfer_from_id, :old_registrar_id end end
47,659
https://github.com/sameeranihathe/bccare_web/blob/master/backend/models/PublicChatMsgTbl.php
Github Open Source
Open Source
BSD-3-Clause
null
bccare_web
sameeranihathe
PHP
Code
171
622
<?php namespace backend\models; use Yii; /** * This is the model class for table "public_chat_msg_tbl". * * @property integer $pub_ch_msg_id * @property integer $pub_ch_id * @property string $pub_ch_msg * @property integer $pub_ch_msg_user_id * @property string $pub_ch_msg_date_time * @property string $pub_c...
37,199
https://github.com/Aury88/osmeditor4android/blob/master/src/main/java/de/blau/android/dialogs/ElementInfo.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,018
osmeditor4android
Aury88
Java
Code
763
3,016
package de.blau.android.dialogs; import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.net.URLEncoder; import java.text.SimpleDateFormat; import java.util.List; import java.util.Locale; import org.a...
22,455
https://github.com/nobusue/syndesis/blob/master/doc/connecting/topics/connecting_to_gmail.adoc
Github Open Source
Open Source
Apache-2.0
null
syndesis
nobusue
AsciiDoc
Code
165
353
[id='connecting-to-gmail'] = Connecting to Gmail :context: gmail To trigger an integration when a particular Gmail account receives an email, add a Gmail connection to an integration as its start connection. In an integration, to send an email from a particular Gmail account, add a Gmail connection as the integration'...
50,240
https://github.com/ralfkundel/amf/blob/master/util/path.go
Github Open Source
Open Source
Apache-2.0
2,020
amf
ralfkundel
Go
Code
24
157
//+build !debug package util import ( "free5gc/lib/path_util" ) var AmfLogPath = path_util.Gofree5gcPath("free5gc/amfsslkey.log") var AmfPemPath = path_util.Gofree5gcPath("free5gc/support/TLS/amf.pem") var AmfKeyPath = path_util.Gofree5gcPath("free5gc/support/TLS/amf.key") var DefaultAmfConfigPath = path_util.Gofre...
39,097
https://github.com/briangu/chapel/blob/master/third-party/gasnet/gasnet-src/other/amudp/amudp_cdefs.c
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
chapel
briangu
C
Code
218
633
/* $Source: bitbucket.org:berkeleylab/gasnet.git/other/amudp/amudp_cdefs.c $ * Description: AMUDP definitions that must be compiled in C mode * Copyright 2005, Dan Bonachea <bonachea@cs.berkeley.edu> */ #include <stddef.h> #include <amudp.h> #include <socket.h> #if AMUDP_DEBUG /* use the gasnet debug malloc fu...
32,582
https://github.com/Rishika-14/rapido_flutter/blob/master/lib/src/persistance_other_implementations.dart
Github Open Source
Open Source
BSD-2-Clause
null
rapido_flutter
Rishika-14
Dart
Code
655
1,419
// // // /// Default Persistence Provider. Saves all Documents locally on the user's // /// device. The documents are saved in json format, and are saved in clear // /// text. Is suitable for a medium-sized DocumentList. // class LocalFilePersistence implements PersistenceProvider { // const LocalFilePersistence(); /...
26,333
https://github.com/webimpress/http-middleware-compatibility/blob/master/test/MiddlewareInterfaceTest.php
Github Open Source
Open Source
BSD-2-Clause
2,017
http-middleware-compatibility
webimpress
PHP
Code
65
442
<?php namespace WebimpressTest\HttpMiddlewareCompatibility; use PHPUnit\Framework\TestCase; use Webimpress\HttpMiddlewareCompatibility\MiddlewareInterface; class MiddlewareInterfaceTest extends TestCase { public function testMiddlewareInterfaceIsDefined() { self::assertTrue(interface_exists(Middlewar...
30,403
https://github.com/cptechinc/provalley-dplus/blob/master/site/templates/twig/items/itm/warehouse/notes/notes.twig
Github Open Source
Open Source
MIT
null
provalley-dplus
cptechinc
Twig
Code
21
85
{# var Description / Instance of ------------------------------------------------- item WarehouseInventory qnotes module QnotesItemWhseOrder #} {% include 'items/itm/warehouse/notes/order/list.twig' %} {% include 'items/itm/warehouse/notes/order/modal.twig' %}
50,560
https://github.com/evolaric/image-processing-api/blob/master/src/tests/indexSpec.ts
Github Open Source
Open Source
MIT
null
image-processing-api
evolaric
TypeScript
Code
133
396
import supertest from 'supertest'; import app from '../index'; const request = supertest(app); describe('Endpoint responses', (): void => { it('redirects / to /api', () => { request.get('/').expect(302); }); it('returns 200 on /api', (): void => { request.get('/api').expect(200); }); it('returns 4...
43,326
https://github.com/RemiFusade2/RubberTheGame/blob/master/Rubber Game/Assets/Scripts/AttendezPlayersScript.cs
Github Open Source
Open Source
MIT
null
RubberTheGame
RemiFusade2
C#
Code
46
133
using UnityEngine; using System.Collections; public class AttendezPlayersScript : MonoBehaviour { public PlayersSoundEngineScript playersSoundEngine; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } void OnTriggerEnter(Collider col) { if (col.t...
19,106
https://github.com/eordano/explorer/blob/master/debugger/devtool/comms/LineChart.tsx
Github Open Source
Open Source
Apache-2.0
2,020
explorer
eordano
TypeScript
Code
272
853
import Chart from 'chart.js' import React, { useEffect, useLayoutEffect, useMemo, useState } from 'react' import { deepEqual } from '../../../jslibs/deepEqual/index' /** * Get a `2d` canvas out of an element, extracted by its id. */ function getContextFromCanvas(windowContext: Window, id: string = 'canvas') { cons...
11,538
https://github.com/Barteks2x/WoG-Android-Mod-Manager/blob/master/Core/src/main/java/com/github/barteks2x/wogmodmanager/ProgressData.java
Github Open Source
Open Source
Zlib, 0BSD
2,018
WoG-Android-Mod-Manager
Barteks2x
Java
Code
28
74
package com.github.barteks2x.wogmodmanager; public class ProgressData { public final String name; public final double progress; public ProgressData(String name, double val) { this.name = name; this.progress = val; } }
13,563
https://github.com/ArkEcosystem/desktop-wallet/blob/master/src/app/components/Amount/AmountCrypto.tsx
Github Open Source
Open Source
MIT
2,023
desktop-wallet
ArkEcosystem
TSX
Code
80
246
import React from "react"; import { AmountProperties } from "./Amount.contracts"; import { formatCrypto, formatWithSign } from "./Amount.helpers"; const AmountCrypto: React.FC<AmountProperties> = ({ className, isNegative = false, locale, showSign, showTicker = true, ticker, value, }: AmountProperties) => { co...
19,172
https://github.com/210503-Reston-NET/Fanner-Alex-P0/blob/master/DogStore/DSBL/IOrderBL.cs
Github Open Source
Open Source
MIT
null
Fanner-Alex-P0
210503-Reston-NET
C#
Code
28
89
using DSModels; using System.Collections.Generic; namespace DSBL { public interface IOrderBL { DogOrder AddOrder(DogOrder dogOrder); List<DogOrder> FindUserOrders(long phoneNumber, int option); List<DogOrder> FindStoreOrders(string address, string location, int option); } }
33,258
https://github.com/milen92sl/ASP.NET.Core-Project-Car-Renting-System2/blob/master/CarRentingSystem2/Views/Cars/Mine.cshtml
Github Open Source
Open Source
MIT
2,021
ASP.NET.Core-Project-Car-Renting-System2
milen92sl
C#
Code
27
92
@model IEnumerable<CarServiceModel> @{ ViewBag.Title = "All Cars"; ViewBag.AllowCarEdit = true; } @if (!Model.Any()) { <h1 class="text-center">You do not have any cars yet.</h1> } <partial name="_CarsPartial" model="@Model" />
16,708
https://github.com/amarinab/java_sdk/blob/master/riskified-sdk/src/main/java/com/riskified/notifications/AuthError.java
Github Open Source
Open Source
Apache-2.0
2,021
java_sdk
amarinab
Java
Code
26
69
package com.riskified.notifications; public class AuthError extends Exception { public AuthError(String AuthError, String calcAuth) { super(String.format("Auth Error, got hash: %s , expected: %s", AuthError, calcAuth)); } }
25,114
https://github.com/sake/bouncycastle-java/blob/master/jdk1.0/org/bouncycastle/crypto/test/RC6Test.java
Github Open Source
Open Source
MIT
2,013
bouncycastle-java
sake
Java
Code
124
672
package org.bouncycastle.crypto.test; import org.bouncycastle.crypto.engines.RC6Engine; import org.bouncycastle.crypto.params.KeyParameter; import org.bouncycastle.util.encoders.Hex; import org.bouncycastle.util.test.Test; import org.bouncycastle.util.test.TestResult; /** * RC6 Test - test vectors from AES Submitted...
26,291
https://github.com/good-ghost/PackageBuilder/blob/master/PackageBuilder/BuildProcess.Designer.vb
Github Open Source
Open Source
MIT
null
PackageBuilder
good-ghost
Visual Basic
Code
335
1,358
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class BuildProcess Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) T...
42,162