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/Hamaar/botberita/blob/master/config/config.env
Github Open Source
Open Source
Apache-2.0
2,020
botberita
Hamaar
Shell
Code
15
441
PORT=8080 TEXT_TO_SPEECH_IAM_APIKEY=8BiI4EU5okMh5J3-Peu9ypXd6Jox2DquVh9ByV-Iqnm7 TEXT_TO_SPEECH_URL=https://api.us-south.text-to-speech.watson.cloud.ibm.com/instances/6008c5df-cd4f-4861-beb8-e36b67615f84 SPEECH_TO_TEXT_IAM_APIKEY=aoLn_Ku5C0IwyngEQ8lJEXifPYH550QyIu2cxa_vEV5E SPEECH_TO_TEXT_URL=https://api.us-south.speec...
25,350
https://github.com/pviafore/AdventOfCode2021/blob/master/challenge2.py
Github Open Source
Open Source
MIT
null
AdventOfCode2021
pviafore
Python
Code
172
567
from common.file_input import read_multiline Move = tuple[str, int] Position = tuple[int, int] ImprovedPosition = tuple[int, int, int] def get_position_value(moves: list[Move]) -> int: position = (0,0) for move in moves: position = make_move(move, position) return position[0] * position[1] def ma...
26,586
https://github.com/bcreane/kubernetes/blob/master/test/e2e/ids/xpack.go
Github Open Source
Open Source
Apache-2.0
2,019
kubernetes
bcreane
Go
Code
942
3,075
package ids import ( "context" "encoding/json" "fmt" "github.com/olivere/elastic" "strings" "time" ) func GetDatafeeds(ctx context.Context, client *elastic.Client, feedIDs ...string) ([]DatafeedSpec, error) { params := strings.Join(feedIDs, ",") resp, err := client.PerformRequest(ctx, elastic.PerformRequestO...
51,146
https://github.com/nirenr/AndroLua-/blob/master/app/src/main/java/com/android/cglib/proxy/MethodFilter.java
Github Open Source
Open Source
MIT
2,022
AndroLua-
nirenr
Java
Code
22
63
package com.android.cglib.proxy; import java.lang.reflect.Method; /** * Created by nirenr on 2018/12/20. */ public interface MethodFilter { public boolean filter(Method mode,String name); }
1,199
https://github.com/gorootde/owncloud/blob/master/environment/owncloud_releases/OC60/apps/contacts/l10n/pt_PT.php
Github Open Source
Open Source
Apache-2.0
2,020
owncloud
gorootde
PHP
Code
2,024
4,269
<?php $TRANSLATIONS = array( "Contacts" => "Contactos", "Save" => "Guardar", "Uploading..." => "A enviar...", "Importing..." => "A importar...", "Imported {count} of {total} contacts" => "Importado {contagem} de {totais} contactos", "Imported {imported} contacts. {failed} failed." => "Importou {imported} contactos. Fal...
18,427
https://github.com/diegoavanzini/grafana/blob/master/packages/grafana-ui/src/components/Tooltip/Tooltip.tsx
Github Open Source
Open Source
Apache-2.0
2,019
grafana
diegoavanzini
TypeScript
Code
114
378
import React, { createRef } from 'react'; import * as PopperJS from 'popper.js'; import Popper from './Popper'; import PopperController, { UsingPopperProps } from './PopperController'; interface TooltipProps extends UsingPopperProps { theme?: 'info' | 'error'; } export const Tooltip = ({ children, theme, ...controll...
45,895
https://github.com/prafullkotecha/waltz/blob/master/waltz-ng/client/complexity/services/complexity-score-store.js
Github Open Source
Open Source
Apache-2.0
2,020
waltz
prafullkotecha
JavaScript
Code
252
683
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
2,148
https://github.com/DanielQSL/springboot-learning-sample/blob/master/springboot-redisson/src/main/java/com/qsl/springboot/config/RedissonConfig.java
Github Open Source
Open Source
Apache-2.0
null
springboot-learning-sample
DanielQSL
Java
Code
48
197
package com.qsl.springboot.config; import org.redisson.Redisson; import org.redisson.api.RedissonClient; import org.redisson.config.Config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * Redisson配置 * * @author qianshuailong * @date 2020/7/5 ...
35,907
https://github.com/Alex079/graphql-classes-maven-plugin/blob/master/src/main/java/com/github/alme/graphql/generator/io/creator/StructureFileCreator.java
Github Open Source
Open Source
MIT
2,023
graphql-classes-maven-plugin
Alex079
Java
Code
41
161
package com.github.alme.graphql.generator.io.creator; import com.github.alme.graphql.generator.dto.Structure; import com.github.alme.graphql.generator.io.WriterFactory; import freemarker.template.Configuration; public class StructureFileCreator extends FileCreator { private final Structure structure; public Stru...
18,043
https://github.com/FIyingIdeal/flavorwocky/blob/master/grails-app/conf/ApplicationResources.groovy
Github Open Source
Open Source
BSD-2-Clause
2,014
flavorwocky
FIyingIdeal
Groovy
Code
21
49
/* Copyright (c) 2012, Luanne Misquitta All rights reserved. See License.txt */ modules = { application { resource url:'js/application.js' } }
12,283
https://github.com/lostmsu/pink-trombone/blob/master/src/rng.rs
Github Open Source
Open Source
MIT
2,022
pink-trombone
lostmsu
Rust
Code
318
950
#[cfg(test)] pub mod xorshift { use crate::NoiseSource; // from https://gitlab.com/pomma89/troschuetz-random/-/blob/main/src/Troschuetz.Random/Generators/XorShift128Generator.cs struct BaseGenerator { bit_buffer: u32, bit_count: i32, seed: u32, } impl BaseGenerator { ...
27,524
https://github.com/bhomnick/tra-booker/blob/master/tests/test_accuracy.py
Github Open Source
Open Source
MIT
null
tra-booker
bhomnick
Python
Code
67
300
from decoder import Captcha EXPECTED = [ "775719", "101788", "91902", "70722", "439333", "56354", "298211", "300256", "364054", "399113", "80909", "35823", "56514", "103824", "650482", "77375", "30772", "626828", "03163", "910199", "2...
18,540
https://github.com/Alvecta/Sembium3/blob/master/Common/uInvoiceTypes.pas
Github Open Source
Open Source
Apache-2.0
2,020
Sembium3
Alvecta
Pascal
Code
27
130
unit uInvoiceTypes; interface const itFaktura= 1; itDebitnoIzvestie= 2; itKreditnoIzvestie= 3; itMitnicheskaDeklaracia= 7; itOtchetZaProdajbite= 8; itProtokol= 9; itKorigirashtProtokol = 10; type TInvoiceInOut = (iioNone, iioIn, iioOut); implementation end.
34,203
https://github.com/wgsyd/wgtf/blob/master/src/core/testing/plg_timeline_panel/plg_timeline_panel_main.cpp
Github Open Source
Open Source
BSD-3-Clause
2,019
wgtf
wgsyd
C++
Code
131
402
// Declaration of PluginMain #include "core_generic_plugin/generic_plugin.hpp" // Declaration of the Panel #include "timeline_panel.hpp" // Declaration of the type system #include "core_variant/variant.hpp" #include <memory> WGT_INIT_QRC_RESOURCE namespace wgt { /** * A plugin which creates a panel with a timeline...
12,956
https://github.com/wh201906/HDLBits/blob/master/Circuits/Sequential_Logic/Latches_and_Flip-Flops/Ece241_2013_q7.v
Github Open Source
Open Source
MIT
2,021
HDLBits
wh201906
Verilog
Code
23
116
module top_module ( input clk, input j, input k, output Q); always@(posedge clk) begin case({j,k}) 2'd0:Q=Q; 2'd1:Q=1'b0; 2'd2:Q=1'b1; 2'd3:Q=~Q; default:Q=1'b0; endcase end endmodule
43,610
https://github.com/alansnchz0/DomoSystems-2.0/blob/master/Doc/html/dir_f8ef85baf77110ae09b336ef4b1b87d9.js
Github Open Source
Open Source
MIT
2,018
DomoSystems-2.0
alansnchz0
JavaScript
Code
15
81
var dir_f8ef85baf77110ae09b336ef4b1b87d9 = [ [ "MainTemplate.c", "_main_template_8c.html", "_main_template_8c" ], [ "sa_mtb.c", "sa__mtb_8c.html", null ] ];
28,278
https://github.com/matt-bro/runner-mb/blob/master/runner-mb/Database.swift
Github Open Source
Open Source
MIT
2,021
runner-mb
matt-bro
Swift
Code
574
1,160
//MIT License // //Copyright (c) 2020 Matthias Brodalka // //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 //to use, copy, modify,...
32,716
https://github.com/Art4/php-redmine-api/blob/master/tests/Unit/Api/ProjectTest.php
Github Open Source
Open Source
MIT
2,022
php-redmine-api
Art4
PHP
Code
1,084
4,099
<?php namespace Redmine\Tests\Unit\Api; use Exception; use PHPUnit\Framework\TestCase; use Redmine\Api\Project; use Redmine\Client\Client; use Redmine\Exception\MissingParameterException; /** * @coversDefaultClass \Redmine\Api\Project * * @author Malte Gerth <mail@malte-gerth.de> */ class ProjectTest extends...
3,144
https://github.com/slackphp/components/blob/master/src/SIF/Components/Blocks/Section.php
Github Open Source
Open Source
MIT
null
components
slackphp
PHP
Code
307
1,097
<?php declare(strict_types=1); namespace SIF\Components\Blocks; use SIF\Components\Compositions\Text; use SIF\Components\Elements\Button; use SIF\Components\Elements\Checkboxes; use SIF\Components\Elements\Datepicker; use SIF\Components\Elements\Element; use SIF\Components\Elements\Image; use SIF\Components\Elements\...
30,058
https://github.com/ron7/ansible-boy/blob/master/lang/en.php
Github Open Source
Open Source
Apache-2.0
2,022
ansible-boy
ron7
PHP
Code
115
338
<?php // en function L($text){ static $l = array( 'Board' => 'Board', // menu 'Users' => 'Users', 'Menu' => 'Menu', 'Tables' => 'Tables', 'Logout' => 'Logout', 'Documentation' => 'Documentation', 'Main menu' => 'Main menu', 'System menu' => 'System menu', 'Name' => 'Name', // user...
41,320
https://github.com/calrissian/mango/blob/master/mango-json/src/test/java/org/calrissian/mango/json/deser/EntityDeserializerTest.java
Github Open Source
Open Source
Apache-2.0
2,021
mango
calrissian
Java
Code
166
484
/* * Copyright (C) 2019 The Calrissian Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
54,379
https://github.com/LefterisJP/rotkehlchen/blob/master/frontend/app/src/components/accounts/balances/AccountBalanceDetails.vue
Github Open Source
Open Source
AGPL-3.0-only, AGPL-3.0-or-later, LicenseRef-scancode-unknown-license-reference
2,023
rotkehlchen
LefterisJP
Vue
Code
81
298
<script setup lang="ts"> import { type Blockchain } from '@rotki/common/lib/blockchain'; const props = withDefaults( defineProps<{ blockchain: Blockchain; address: string; loopring?: boolean; }>(), { loopring: false } ); const { t } = useI18n(); const { blockchain, address } = toRefs(props); const {...
28,103
https://github.com/BrickworkSoftware/storybook/blob/master/addons/knobs/src/components/types/Object.js
Github Open Source
Open Source
MIT
2,020
storybook
BrickworkSoftware
JavaScript
Code
246
807
import PropTypes from 'prop-types'; import React from 'react'; import CodeMirror from 'react-codemirror'; import deepEqual from 'deep-equal'; import insertCss from 'insert-css'; import 'codemirror/mode/javascript/javascript'; import 'codemirror/lib/codemirror.css'; const customStyle = ` .CodeMirror__error { border:...
33,061
https://github.com/data2viz/data2viz/blob/master/voronoi/src/commonMain/kotlin/io/data2viz/voronoi/Circle.kt
Github Open Source
Open Source
Apache-2.0
2,023
data2viz
data2viz
Kotlin
Code
472
1,058
/* * Copyright (c) 2018-2021. data2viz sàrl. * * 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...
27,974
https://github.com/Distrotech/mod_perl/blob/master/docs/src/outstanding/success_stories/dslreports.com.pod
Github Open Source
Open Source
Apache-2.0
null
mod_perl
Distrotech
null
Spoken
224
421
################################################### # WARNING: Do not edit this file! # If you do the changes will be lost! # Instead edit the corresponding .txt file and run make.pl # # Don't forget to commit the changes to both .txt and the generated # .pod to svn, since others won't run the local make.pl ##...
37,753
https://github.com/lukmi15/Advent-Of-Code-2019/blob/master/06/code1.cpp
Github Open Source
Open Source
Unlicense
null
Advent-Of-Code-2019
lukmi15
C++
Code
223
687
/*Part 1 of day 6, AoC 2019 Author(s) : Lukas Mirow Date of creation : 9/28/2021 */ #include <iostream> #include <string> #include <map> #include <fstream> #include <cstdlib> #include <utility> #include <sstream> #include "tree.hpp" using namespace std; //Print error and abort void err(const char *msg) { cerr << ms...
32,964
https://github.com/schelleg/rfsoc_sam/blob/master/boards/ip/iprepo/SpectrumAnalyser_v1_1/hdl/vhdl/SpectrumAnalyser_src_Direct_Memory_Access_block.vhd
Github Open Source
Open Source
BSD-3-Clause
2,022
rfsoc_sam
schelleg
VHDL
Code
496
1,983
-- ------------------------------------------------------------- -- -- File Name: hdl_prj\hdlsrc\spectrum_analyser\SpectrumAnalyser_src_Direct_Memory_Access_block.vhd -- Created: 2021-03-09 14:00:46 -- -- Generated by MATLAB 9.8 and HDL Coder 3.16 -- -- ------------------------------------------------------------- ...
8,545
https://github.com/DavidArno/SuccincT/blob/master/tests/SuccincT.Tests/SuccincT/Unions/EitherMatchTests.cs
Github Open Source
Open Source
MIT
2,022
SuccincT
DavidArno
C#
Code
831
2,922
using NUnit.Framework; using SuccincT.PatternMatchers; using SuccincT.Unions; using static NUnit.Framework.Assert; using static SuccincT.Unions.EitherState; namespace SuccincTTests.SuccincT.Unions { public static class EitherMatchTests { [Test] public static void EitherWithTLeftAndNoLeftMatchW...
33,423
https://github.com/asgarimehdi/monitoring/blob/master/resources/js/components/Users.vue
Github Open Source
Open Source
MIT
2,021
monitoring
asgarimehdi
Vue
Code
1,044
4,823
<template> <!-- /.content-header --> <div class="container"> <div class="row" v-if="$gate.isAdmin()"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h3 class="card-title"> <button t...
48,951
https://github.com/zhcet-amu/zhcet-web/blob/master/src/main/java/amu/zhcet/data/user/student/HallCode.java
Github Open Source
Open Source
Apache-2.0
2,020
zhcet-web
zhcet-amu
Java
Code
25
69
package amu.zhcet.data.user.student; public enum HallCode { NR, // NRSC SU, // Suleiman NT, // Nadim Tarin BF, // Bibi Fatima, SN // Sarojini Naidu }
47,957
https://github.com/kpmeen/bl-gg/blob/master/_project/src/main/scala/net/scalytica/blaargh/pages/SearchResultsPage.scala
Github Open Source
Open Source
Apache-2.0
null
bl-gg
kpmeen
Scala
Code
149
669
/** * Copyright(c) 2019 Knut Petter Meen, all rights reserved. */ package net.scalytica.blaargh.pages import japgolly.scalajs.react._ import japgolly.scalajs.react.extra.router.RouterCtl import japgolly.scalajs.react.vdom.html_<^._ import net.scalytica.blaargh.components.ArticleCard import net.scalytica.blaargh.mode...
17,144
https://github.com/spgl/utopia/blob/master/editor/src/components/inspector/sections/layout-section/layout-section.spec.tsx
Github Open Source
Open Source
MIT
null
utopia
spgl
TypeScript
Code
172
619
import { act, render } from '@testing-library/react' import React from 'react' import { PropertyPath } from 'src/core/shared/project-file-types' import { LayoutSystem } from 'utopia-api/core' import { enableWhyDidYouRenderOnComponent, setupReactWhyDidYouRender, } from '../../../../utils/react-memoize.test-utils' im...
22,161
https://github.com/Helseatlas/helseatlas/blob/master/man/natural_breaks.Rd
Github Open Source
Open Source
MIT
2,020
helseatlas
Helseatlas
R
Code
56
131
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/natural_breaks.r \name{natural_breaks} \alias{natural_breaks} \title{Get the jenks natural breaks from a data set} \usage{ natural_breaks(data = NULL, num = 4) } \arguments{ \item{data}{Input data} \item{num}{Number of groups} } \value{ Natu...
24,345
https://github.com/hub-se/BugLoRD/blob/master/spectra-core/src/main/java/se/de/hu_berlin/informatik/spectra/core/hit/HitTrace.java
Github Open Source
Open Source
MIT
2,023
BugLoRD
hub-se
Java
Code
1,021
3,022
/* * This file is part of the "STARDUST" project. (c) Fabian Keller * <hello@fabian-keller.de> For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ package se.de.hu_berlin.informatik.spectra.core.hit; import se.de.hu_berlin.informatik.spectr...
35,885
https://github.com/googleapis/gax-php/blob/master/tests/Tests/Unit/GrpcSupportTraitTest.php
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
gax-php
googleapis
PHP
Code
161
391
<?php /** * Copyright 2018 Google 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 agr...
17,424
https://github.com/knowtheory/projectopenvault/blob/master/assets/javascripts/utilities.coffee
Github Open Source
Open Source
MIT
null
projectopenvault
knowtheory
CoffeeScript
Code
199
582
POV.Utilities = formatDollars: (value) -> characters = '' + value groups = [] group_count = Math.ceil characters.length / 3 end = characters.length while (end > 0) start = end - 3 start = 0 if start < 0 groups.push(characters.slice(start, end)) end -= 3 groups.reverse(...
39,028
https://github.com/mchudy/tapfinder/blob/master/app/src/main/java/tk/tapfinderapp/model/RatingDto.java
Github Open Source
Open Source
Apache-2.0
2,017
tapfinder
mchudy
Java
Code
14
42
package tk.tapfinderapp.model; import lombok.Value; @Value public class RatingDto { int id; int rating; }
21,846
https://github.com/kmasteryc/ciproject2/blob/master/application/helpers/custom_helper.php
Github Open Source
Open Source
MIT
null
ciproject2
kmasteryc
PHP
Code
195
626
<?php /* * 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. */ function success($str) { $x = '<div class="alert alert-success "><a href="#" class="close" data-dismiss="alert" aria-label="...
16,081
https://github.com/harshalaardekar/token-master/blob/master/admin/admin_functions.php
Github Open Source
Open Source
MIT
2,022
token-master
harshalaardekar
PHP
Code
623
3,261
<?php function encrypt_decrypt($action, $string) { $output = false; $encrypt_method = "AES-256-CBC"; $secret_key = 'specTambola2018'; $secret_iv = 'spec2018'; // hash $key = hash('sha256', $secret_key); // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning $iv = substr(hash('s...
34,934
https://github.com/dipeshrijal/laravel-lte/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
laravel-lte
dipeshrijal
PHP
Code
20
83
<?php $router->get('/', function () { return view('welcome'); }); $router->get('/dashboard', function () { return view('dashboard'); }); Auth::routes(); $router->get('/home', 'HomeController@index'); $router->resource('/pages', 'PagesController');
46,015
https://github.com/x00129265/project2017/blob/master/target/scala-2.11/twirl/main/views/html/admin/indexSlider/addIndexSlider.template.scala
Github Open Source
Open Source
Apache-2.0
null
project2017
x00129265
Scala
Code
231
1,919
package views.html.admin.indexSlider import play.twirl.api._ import play.twirl.api.TemplateMagic._ object addIndexSlider_Scope0 { import models._ import controllers._ import play.api.i18n._ import views.html._ import play.api.templates.PlayMagic._ import java.lang._ import java.util._ import scala.collection.J...
1,319
https://github.com/anukat2015/ontopia/blob/master/ontopia-engine/src/test/java/net/ontopia/utils/StringUtilsTest.java
Github Open Source
Open Source
Apache-2.0
2,016
ontopia
anukat2015
Java
Code
898
2,668
/* * #! * Ontopia Engine * #- * Copyright (C) 2001 - 2013 The Ontopia Project * #- * 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...
3,442
https://github.com/nagai0829/laravelpjt/blob/master/resources/views/bbs/index.blade.php
Github Open Source
Open Source
MIT
null
laravelpjt
nagai0829
PHP
Code
207
1,074
@extends('layout.bbslayout') @section('title', 'LaravelPjt BBS 投稿の一覧ページ') @section('keywords', 'キーワード1,キーワード2,キーワード3') @section('description', '投稿一覧ページの説明文') @section('pageCss') <link href="/css/bbs/style.css" rel="stylesheet"> @endsection @include('layout.bbsheader') @section('content') <div class="table-responsive...
24,324
https://github.com/tisnik/go-fedora/blob/master/article_38/02_http_server_with_mux.go
Github Open Source
Open Source
Apache-2.0
2,022
go-fedora
tisnik
Go
Code
116
430
// Seriál "Programovací jazyk Go" // https://www.root.cz/serialy/programovaci-jazyk-go/ // // Třicátá osmá část // Tvorba webových aplikací v Go s využitím projektu Gorilla web toolkit // https://www.root.cz/clanky/tvorba-webovych-aplikaci-v-go-s-vyuzitim-projektu-gorilla-web-toolkit/ package main import ( ...
6,919
https://github.com/mohdyasiralali/aia_library/blob/master/resources/js/components/Header.js
Github Open Source
Open Source
MIT
null
aia_library
mohdyasiralali
JavaScript
Code
279
1,230
import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faSearch, faGraduationCap, faGlobeAsia, faUniversalAccess, faPhoneAlt, faCaretDown } from "@fortawesome/free-solid-svg-icons"; class Header extends React.Component { constructor(props) { ...
50,574
https://github.com/yetanalytics/dave/blob/master/src/com/yetanalytics/dave/ui/views/workbook/data.cljs
Github Open Source
Open Source
Apache-2.0
2,020
dave
yetanalytics
null
Spoken
121
748
(ns com.yetanalytics.dave.ui.views.workbook.data (:require [re-frame.core :refer [dispatch subscribe]])) (defn details [?workbook-id] (let [{stamp-min :min stamp-max :max} @(subscribe [:workbook.data/timestamp-range ?workbook-id])] [:dl.details [:dt "Statements"] [:dd (str @(subscribe [:wor...
14,896
https://github.com/EvilRedHorse/sia-name-service/blob/master/src/main/java/com/georgemcarlson/sianameservice/servlet/api/IndexApi.java
Github Open Source
Open Source
MIT
2,020
sia-name-service
EvilRedHorse
Java
Code
110
412
package com.georgemcarlson.sianameservice.servlet.api; import com.georgemcarlson.sianameservice.util.Logger; import com.georgemcarlson.sianameservice.util.Settings; import java.io.File; import java.io.IOException; import java.nio.file.Files; import javax.servlet.ServletException; import javax.servlet.http.HttpServletR...
18,948
https://github.com/iqbalrevvin/FininsysStudent/blob/master/application/controllers/Icon.php
Github Open Source
Open Source
MIT
2,019
FininsysStudent
iqbalrevvin
PHP
Code
53
179
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Icon extends CI_Controller { public function __construct(){ parent::__construct(); $this->load->library('OutputView'); } public function index(){ $data['judul'] = 'List Icon'; $data['subJudul'] = 'Halaman List Icon'; $template...
39,322
https://github.com/javawolfpack/GPU-Test/blob/master/test.cpp
Github Open Source
Open Source
MIT
null
GPU-Test
javawolfpack
C++
Code
40
159
//Snippit found in answer here: https://stackoverflow.com/questions/44685568/how-do-i-use-the-gpu-available-with-openmp #include <cstdio> #include <omp.h> int main(){ int A[1] = {-1}; #pragma omp target { A[0] = omp_is_initial_device(); } if (!A[0]) { printf("Able to use offloading!\n"); } else{...
28,478
https://github.com/jussienko/build-recipes/blob/master/gpaw/setup/lrtdfft2.patch
Github Open Source
Open Source
MIT
2,020
build-recipes
jussienko
null
Spoken
33
198
diff --git a/gpaw/lrtddft2/__init__.py b/gpaw/lrtddft2/__init__.py index 41456be..00c86e6 100644 --- a/gpaw/lrtddft2/__init__.py +++ b/gpaw/lrtddft2/__init__.py @@ -406,6 +406,7 @@ class LrTDDFT2: os.remove(ready_file) for K_file in glob.glob(self.basefilename + '.K_matrix.*'): ...
50,394
https://github.com/viccrubs/VicBlog-Frontend/blob/master/src/app/components/ArticleListFilter/TitleSearchBar/index.tsx
Github Open Source
Open Source
Apache-2.0
2,017
VicBlog-Frontend
viccrubs
TypeScript
Code
143
514
import React, { KeyboardEvent } from "react"; import { observer } from "mobx-react"; import style from '../../style'; import { Localize } from "../../../internationalization/components"; import { action } from "mobx"; import FaSearch from 'react-icons/lib/fa/search'; import { ArticleListStore } from "../../../stores"; ...
18,600
https://github.com/XanderH-I/Test/blob/master/lib/main.dart
Github Open Source
Open Source
Apache-2.0
2,021
Test
XanderH-I
Dart
Code
168
652
import 'package:flutter/foundation.dart' show debugDefaultTargetPlatformOverride; import 'package:flutter/material.dart'; import 'package:joycon/bloc.dart'; import 'package:joycon/home.dart'; import 'package:joycon/widgets/color.dart'; import 'package:joycon/widgets/controller.dart'; import 'package:joycon/widgets/...
44,158
https://github.com/stuartpb/itwinjs-core/blob/master/full-stack-tests/rpc/src/frontend/Routing.test.ts
Github Open Source
Open Source
MIT
2,021
itwinjs-core
stuartpb
TypeScript
Code
79
219
import { assert } from "chai"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *------------------------------------------...
35,524
https://github.com/yukthitech/utils/blob/master/yukthi-autox/src/main/java/com/yukthitech/autox/test/ui/steps/CloseSessionStep.java
Github Open Source
Open Source
Apache-2.0
2,023
utils
yukthitech
Java
Code
286
792
/** * Copyright (c) 2022 "Yukthi Techsoft Pvt. Ltd." (http://yukthitech.com) * * 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 * * Un...
12,558
https://github.com/ZHK1024/Mathematics/blob/master/Example/Pods/Target Support Files/Pods-Mathematics_Example/Pods-Mathematics_Example-dummy.m
Github Open Source
Open Source
MIT
2,021
Mathematics
ZHK1024
Objective-C
Code
10
54
#import <Foundation/Foundation.h> @interface PodsDummy_Pods_Mathematics_Example : NSObject @end @implementation PodsDummy_Pods_Mathematics_Example @end
21,644
https://github.com/feral-diana/libcalc/blob/master/calc_impl.hh
Github Open Source
Open Source
MIT
null
libcalc
feral-diana
C++
Code
727
2,598
// Copyright Diana Feral 2018 // Distributed under the MIT License, see accompanying file LICENSE #pragma once #include <complex> namespace Calc { template<> std::optional<long double> StringToNumber<long double>(std::string_view str); template<> std::optional<int> StringToNumber<int>(std::string_view str...
47,238
https://github.com/bjjdkp/anti-app/blob/master/apktool/com.homelink.android_144115188476575598_9.0.1_9001/smali_classes2/com/tencent/ilivesdk/core/ILivePushOption$Encode.smali
Github Open Source
Open Source
Apache-2.0
2,018
anti-app
bjjdkp
Smali
Code
327
2,176
.class public final enum Lcom/tencent/ilivesdk/core/ILivePushOption$Encode; .super Ljava/lang/Enum; .source "ILivePushOption.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Enum<", "Lcom/tencent/ilivesdk/core/ILivePushOption$Encode;", ">;" } ....
9,927
https://github.com/luomus/finbif/blob/master/R/utils.R
Github Open Source
Open Source
MIT, MIT-0
2,023
finbif
luomus
R
Code
987
3,288
# misc ------------------------------------------------------------------------- #' @noRd get_next_lowest_factor <- function( x, y ) { x <- as.integer(x) y <- as.integer(y) if (identical(x %% y, 0L)) { return(y) } y <- y - 1L get_next_lowest_factor(x, y) } #' @noRd get_el_recurse <- func...
33,850
https://github.com/EvanMorcom/Software/blob/master/src/software/simulation/simulator_ball.cpp
Github Open Source
Open Source
MIT
null
Software
EvanMorcom
C++
Code
94
336
#include "software/simulation/simulator_ball.h" #include "software/logger/logger.h" SimulatorBall::SimulatorBall(std::weak_ptr<PhysicsBall> physics_ball) : physics_ball(physics_ball) { } Point SimulatorBall::checkValidAndReturnPoint( std::function<Point(const std::shared_ptr<PhysicsBall>)> func) const { ...
10,651
https://github.com/wildthink/Pipeline/blob/master/Sources/Pipeline/Database.swift
Github Open Source
Open Source
MIT
null
Pipeline
wildthink
Swift
Code
1,267
3,139
// // Copyright © 2015 - 2022 Stephen F. Booth <me@sbooth.org> // Part of https://github.com/sbooth/Pipeline // MIT license // import Foundation import CSQLite #if canImport(Combine) import Combine #endif /// An `sqlite3 *` object. /// /// - seealso: [SQLite Database Connection Handle](https://sqlite.org/c3ref/sqlit...
858
https://github.com/CloudWare-Co-Ltd/carbon-flutter/blob/master/lib/features/enable/index.dart
Github Open Source
Open Source
MIT
2,022
carbon-flutter
CloudWare-Co-Ltd
Dart
Code
4
19
export 'enable.widget.dart'; export 'enable.extension.dart';
31,894
https://github.com/tomadams-ssf/rcm_toolbox/blob/master/lib/+RCM/+Test/+Constants/TideTest.m
Github Open Source
Open Source
MIT
2,021
rcm_toolbox
tomadams-ssf
MATLAB
Code
77
326
classdef TideTest < matlab.unittest.TestCase % These tests are intended to test the functionality that is inherited % from the super class RCM.TimeSeries.Base properties end methods(TestMethodSetup) function setup(testCase) end end methods (Te...
33,676
https://github.com/rjw57/tiw-computer/blob/master/emulator/src/mame/drivers/cchance.cpp
Github Open Source
Open Source
MIT
2,022
tiw-computer
rjw57
C++
Code
953
4,425
// license:BSD-3-Clause // copyright-holders:David Haywood, Angelo Salese /*************************************************************************************************************************** Cherry Chance (c) 1987 Taito Corporation? driver by David Haywood & Angelo Salese A cherry-type game that uses the tnz...
21,043
https://github.com/vercel-support/bolt-test/blob/master/docs-site/.patches/faster-compile-times--docs--composer.json.patch
Github Open Source
Open Source
MIT
2,022
bolt-test
vercel-support
null
Spoken
35
176
diff --git a/composer.json b/composer.json index da40fa12e..b5dea1e43 100644 --- a/core/composer.json +++ b/core/composer.json @@ -49,6 +49,8 @@ "symfony/filesystem": "^3.0", "symfony/finder": "^3.0", "symfony/process": "^3.1", - "symfony/yaml": "^3.0" + "symfony/yaml": "^3.0", + "cebe/markdown"...
44,503
https://github.com/Ramki1999/project-umbrella/blob/master/Umbrella-Apps/User_app/umbrella/lib/IntroScreens/HomeScreen.dart
Github Open Source
Open Source
Apache-2.0
2,021
project-umbrella
Ramki1999
Dart
Code
803
2,930
import 'package:flutter/material.dart'; import 'package:page_transition/page_transition.dart'; import 'package:geolocator/geolocator.dart'; import 'package:umbrella/DrawerScreens/Account.dart'; import 'package:umbrella/DrawerScreens/Emergency/Contacts.dart'; import 'package:umbrella/DrawerScreens/Emergency/Maps.dart'; ...
18,693
https://github.com/amanciodiaz/robobo_control_panel/blob/master/src/main/java/es/udc/robot_control/gui/action/SensorModel.java
Github Open Source
Open Source
Apache-2.0
2,014
robobo_control_panel
amanciodiaz
Java
Code
97
257
package es.udc.robot_control.gui.action; /** * Created with IntelliJ IDEA. * User: kerry * Date: 9/08/13 * Time: 19:22 * * This class is a data model for the combo box. * Represents sensors in the robot * */ public class SensorModel { private int sensorValue; private String sensorName; public Se...
26,792
https://github.com/kaczmarj/grand-challenge.org/blob/master/app/grandchallenge/algorithms/exceptions.py
Github Open Source
Open Source
Apache-2.0
2,017
grand-challenge.org
kaczmarj
Python
Code
6
28
class ImageImportError(Exception): pass class TooManyJobsScheduled(Exception): pass
21,769
https://github.com/iscsi-osx/iSCSIInitiator/blob/master/Source/User/iSCSI Framework/iSCSIDaemonInterfaceShared.h
Github Open Source
Open Source
BSD-2-Clause
2,023
iSCSIInitiator
iscsi-osx
C
Code
2,066
6,264
/* * Copyright (c) 2016, Nareg Sinenian * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of c...
28,223
https://github.com/twgh/xcgui/blob/master/xc/adapter.go
Github Open Source
Open Source
MIT
2,022
xcgui
twgh
Go
Code
104
425
package xc // 数据适配器_增加引用计数. // // hAdapter: 数据适配器句柄. func XAd_AddRef(hAdapter int) int { r, _, _ := xAd_AddRef.Call(uintptr(hAdapter)) return int(r) } // 数据适配器_释放引用计数. // // hAdapter: 数据适配器句柄. func XAd_Release(hAdapter int) int { r, _, _ := xAd_Release.Call(uintptr(hAdapter)) return int(r) } // 数据适配器_取引用计数. // /...
3,168
https://github.com/rapidpro/dash/blob/master/dash/orgs/urls.py
Github Open Source
Open Source
BSD-3-Clause
2,023
dash
rapidpro
Python
Code
16
77
from . import views urlpatterns = views.OrgCRUDL().as_urlpatterns() urlpatterns += views.OrgBackgroundCRUDL().as_urlpatterns() urlpatterns += views.TaskCRUDL().as_urlpatterns() urlpatterns += views.OrgBackendCRUDL().as_urlpatterns()
46,867
https://github.com/ciaid-colombia/InsFEM/blob/master/Sources/master/SetupInterpolators.f90
Github Open Source
Open Source
MIT
2,021
InsFEM
ciaid-colombia
null
Spoken
114
421
subroutine SetupInterpolators use Mod_GeneralCase use Mod_DC_GeneralCase use Mod_DistributedContainer use Mod_DCHashCharSize use def_master implicit none class(DistributedContainer), pointer :: myDC => NULL() type(GeneralCase), pointer :: myCase => NULL() character(DCHashCharSize) :: myCa...
7,827
https://github.com/alchemy315/NoPFS/blob/master/torch-test/mpich-3.4.3/src/mpid/ch4/src/ch4_spawn.c
Github Open Source
Open Source
BSD-3-Clause
null
NoPFS
alchemy315
C
Code
543
2,644
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "mpidimpl.h" /* === BEGIN_MPI_T_CVAR_INFO_BLOCK === cvars: - name : MPIR_CVAR_CH4_COMM_CONNECT_TIMEOUT category : CH4 type : int default : 180 class : non...
33,249
https://github.com/douglasduteil/karma-json-reporter/blob/master/test/integration/dummy.spec.js
Github Open Source
Open Source
MIT
2,017
karma-json-reporter
douglasduteil
JavaScript
Code
10
22
describe('foo', function () { it('should succeed', function () {}) })
16,688
https://github.com/Hyper-Devil/learn-python3/blob/master/8.fx.py
Github Open Source
Open Source
MIT
2,020
learn-python3
Hyper-Devil
Python
Code
122
507
def print_hello(): # 冒号结尾 print('hello') print_hello() def print_str(s): print(s) return s * 2 # return代表函数的返回值 print(print_str('fuck')) def print_default(s='hello'): # print(s) # 如果不注释掉这一行,就会输出两个hello return s # 如果注释掉这一行,就会输出none print(print_default()) print(print_default(...
42,518
https://github.com/AjjNN/Rigel/blob/master/src/ch/epfl/rigel/gui/SkyCanvasManager.java
Github Open Source
Open Source
Unlicense, MIT
null
Rigel
AjjNN
Java
Code
1,881
5,789
package ch.epfl.rigel.gui; import ch.epfl.rigel.astronomy.CelestialObject; import ch.epfl.rigel.astronomy.CelestialObjectIdentifier; import ch.epfl.rigel.astronomy.CelestialObjectType; import ch.epfl.rigel.astronomy.ObservedSky; import ch.epfl.rigel.astronomy.StarCatalogue; import ch.epfl.rigel.coordinates.CartesianCo...
36,466
https://github.com/leandrorangel94/ioasys-tasks-challenge/blob/master/lib/todo_page.dart
Github Open Source
Open Source
MIT
null
ioasys-tasks-challenge
leandrorangel94
Dart
Code
122
468
import 'package:flutter/material.dart'; import 'todo_controller.dart'; import 'components/input_task_widget.dart'; import 'components/list_task_widget.dart'; class TodoPage extends StatefulWidget { const TodoPage({Key? key}) : super(key: key); @override State<TodoPage> createState() => _TodoPageState(); } clas...
32,367
https://github.com/TitansOrg/TitansEBPM/blob/master/src/main/java/org/titans/controller/device/DeviceApplyController.java
Github Open Source
Open Source
Apache-2.0
null
TitansEBPM
TitansOrg
Java
Code
149
658
package org.titans.controller.device; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework....
8,232
https://github.com/UCL/comp0037/blob/master/stdr_simulator/stdr_launchers/CMakeLists.txt
Github Open Source
Open Source
GPL-3.0-only, BSD-3-Clause
2,020
comp0037
UCL
CMake
Code
16
84
cmake_minimum_required(VERSION 2.8.3) project(stdr_launchers) find_package(catkin REQUIRED) catkin_package() # Install launch files install(DIRECTORY launch rviz DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} )
39,657
https://github.com/MarkRDavison/AdventOfCode/blob/master/test/2020/Day23PuzzleTests.cpp
Github Open Source
Open Source
MIT
null
AdventOfCode
MarkRDavison
C++
Code
53
231
#include <catch/catch.hpp> #include <2020/Day23Puzzle.hpp> namespace TwentyTwenty { TEST_CASE("Day 23 Examples work", "[2020][Day23][slow]") { const std::vector<std::string> input = { "389125467" }; const auto& parsed = Day23Puzzle::parse(input); const auto part1_10 = Day23Puzzle::doPart1(parsed, 10)...
26,217
https://github.com/tterb/language-rainmeter/blob/master/keymaps/language-rainmeter.cson
Github Open Source
Open Source
MIT
2,019
language-rainmeter
tterb
CoffeeScript
Code
5
31
'atom-workspace [data-grammar="source rainmeter"]': 'ctrl-b': 'rainmeter:refresh'
15,628
https://github.com/nongdenchet/Wonderist/blob/master/app/src/androidTest/java/apidez/com/doit/utils/MatcherUtils.java
Github Open Source
Open Source
Apache-2.0
2,017
Wonderist
nongdenchet
Java
Code
820
2,585
package apidez.com.doit.utils; import android.annotation.TargetApi; import android.os.Build; import android.support.test.espresso.matcher.BoundedMatcher; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.View; import android.widget.TextView; import org.hamcrest.Descript...
8,469
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/多玩饭盒-精彩游戏视频-4.3.4(越狱应用)_headers/MDWNewsRsp.h
Github Open Source
Open Source
MIT
2,018
Just_a_dumper
i-gaven
Objective-C
Code
65
359
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import "JceObjectV2.h" @class NSArray; @interface MDWNewsRsp : JceObjectV2 { NSArray *jcev2_p_0_o_vWordType__x_VOMDWNewsData; ...
30,143
https://github.com/EthanZhuang/Drop-A-Ball-From-Phone-To-Website-master/blob/master/smartphoneCam/visionRecognition.py
Github Open Source
Open Source
MIT
2,020
Drop-A-Ball-From-Phone-To-Website-master
EthanZhuang
Python
Code
1,016
3,188
import paho.mqtt.publish as publish import cv2 import numpy as np import math import urllib.request last_motion = 0 # 0: drop, 1: catch send_flag = 0 # 0: send, 1: unsend # smartphone's ip location, shot.jpg cannot be changed URL = "http://LAN_ip:8080/shot.jpg" def main(): # Check what kind of colors of hand's...
40,965
https://github.com/AlexYukikaze/JSONx.NET/blob/master/JSONx/AST/NullNode.cs
Github Open Source
Open Source
MIT
2,016
JSONx.NET
AlexYukikaze
C#
Code
28
83
using System; namespace JSONx.AST { public class NullNode : JSONxNode, IEquatable<NullNode> { public NullNode() : base(NodeType.Null) { } public bool Equals(NullNode other) { return true; } } }
26,730
https://github.com/jihonghe/datastructure-for-fun/blob/master/tree/heap/binary_heap.go
Github Open Source
Open Source
MIT
null
datastructure-for-fun
jihonghe
Go
Code
93
292
package heap /** 最大堆:任意非叶子节点值大于其左右孩子节点值 常见操作: 1. 构建二叉堆 2. 入堆 3. 出堆 */ type MaxHeap struct { maxSize int size int integers []int } func NewMaxHeap(maxSize int) *MaxHeap { heap := &MaxHeap{ maxSize: maxSize, size: 0, integers: []int{}, } return heap } // func (heap *MaxHeap) isLeaf(index int...
40,001
https://github.com/praewaa/ms4sf2/blob/master/app/User.php
Github Open Source
Open Source
MIT
null
ms4sf2
praewaa
PHP
Code
118
395
<?php namespace App; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; class User extends Mod...
7,585
https://github.com/zhujiang73/pytorch_mingw/blob/master/torch/csrc/autograd/utils/wrap_outputs.h
Github Open Source
Open Source
BSD-2-Clause
2,020
pytorch_mingw
zhujiang73
C++
Code
554
2,814
#pragma once // Wrap tensor operation outputs as PyObject* #include <ATen/ATen.h> #include <torch/csrc/python_headers.h> #include <tuple> #include <torch/csrc/Dtype.h> #include <torch/csrc/Layout.h> #include <torch/csrc/QScheme.h> #include <torch/csrc/autograd/python_variable.h> #include <torch/csrc/autograd/variabl...
40,038
https://github.com/sichaolong/guli-shop/blob/master/guli-shop-ware/src/main/java/henu/soft/xiaosi/ware/service/WareSkuService.java
Github Open Source
Open Source
Apache-2.0
2,022
guli-shop
sichaolong
Java
Code
89
432
package henu.soft.xiaosi.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import henu.soft.common.to.SkuHasStockTo; import henu.soft.common.to.mq.OrderTo; import henu.soft.common.to.mq.StockLockedTo; import henu.soft.common.utils.PageUtils; import henu.soft.xiaosi.ware.entity.WareSkuEntity; im...
25,094
https://github.com/SD1cr/KlikIGRweb/blob/master/app/asd1/Models123/Branch.php
Github Open Source
Open Source
MIT
2,020
KlikIGRweb
SD1cr
PHP
Code
98
466
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Branch extends Model { protected $table = 'branches'; public static function getBranches(){ $userid = \Auth::User()->id; return Branch::Distinct() ->Join('addresses', 'branches.id', '=', 'branch_id') ...
17,647
https://github.com/NTNUI/vote/blob/master/client/controllers/electionCtrl.js
Github Open Source
Open Source
MIT
2,020
vote
NTNUI
JavaScript
Code
196
696
module.exports = [ '$scope', '$window', 'electionService', 'alertService', 'voteService', 'socketIOService', 'localStorageService', function( $scope, $window, electionService, alertService, voteService, socketIOService, localStorageService ) { $scope.activeElection = nu...
44,168
https://github.com/xieyfGit/yfRepo/blob/master/hibernate/src/main/java/com/yf/dao/DaoFactory.java
Github Open Source
Open Source
Apache-2.0
null
yfRepo
xieyfGit
Java
Code
105
346
package com.yf.dao; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import java.util.Properties; public class DaoFactory { private static Properties properties = new Properties(); private static Map<String,Object> cache = new HashMap<>(); static { ...
25,411
https://github.com/glassdb/glass/blob/master/repository/OB-Monticello.package/MCRepositoryBrowser.class/instance/refresh.st
Github Open Source
Open Source
MIT
2,023
glass
glassdb
null
Spoken
5
11
updating refresh self root refresh
47,232
https://github.com/c965898749/Colyseus/blob/master/test/lib/test/utils/index.js
Github Open Source
Open Source
MIT
null
Colyseus
c965898749
JavaScript
Code
717
2,286
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
14,879
https://github.com/ivgtr/poupeteer/blob/master/packages/server/src/@types/twitter.d/quoted_status_permalink.d.ts
Github Open Source
Open Source
MIT
null
poupeteer
ivgtr
TypeScript
Code
11
28
export interface QuotedStatusPermalink { display: string expanded: string url: string }
2,407
https://github.com/juicetinliu/BEng-Project/blob/master/Initial-tests/hough_circle_transform/hough_circle_transform.pde
Github Open Source
Open Source
MIT
2,021
BEng-Project
juicetinliu
null
Spoken
529
1,269
import gab.opencv.*; import processing.video.*; import java.util.*; Capture cam; OpenCV opencv; PImage cannyFrame; ArrayList<Hough> houghs = new ArrayList<Hough>(); int[][][] hough; int minrad, maxrad, circn = 10; void setup() { size(640, 480); String[] cameras = Capture.list(); if (cameras == null) { pr...
51,557
https://github.com/joypupil/study/blob/master/study/src/main/java/com/joypupil/study/test/泛型继承/B.java
Github Open Source
Open Source
Apache-2.0
2,018
study
joypupil
Java
Code
7
30
package com.joypupil.study.test.泛型继承; public class B { }
11,352
https://github.com/Botzool/vegsci/blob/master/src/components/charts/useChart.js
Github Open Source
Open Source
MIT
null
vegsci
Botzool
JavaScript
Code
46
111
import { useEffect, useRef } from "react" import Chart from "chart.js" const useChart = chartOptions => { const canvasRef = useRef() useEffect(() => { const ctx = canvasRef.current.getContext("2d") const myChart = new Chart(ctx, chartOptions) return () => myChart.destroy() }, [chartOptio...
48,926
https://github.com/atwayne/rc-dropdown-ext/blob/master/src/index.js
Github Open Source
Open Source
MIT
2,020
rc-dropdown-ext
atwayne
JavaScript
Code
161
460
import PropTypes from 'prop-types' import React from 'react' import RCDropdown from 'rc-dropdown' import 'rc-dropdown/assets/index.css' /** * An wrapper of rc-dropdown * manage the visible state out of the internal dropdown component * so it works with elements other than rc-menu */ class Dropdown extends React.Pu...
23,447
https://github.com/ni/niinstrumentstudio-switchexecutive-hosted-application/blob/master/Source/SwitchExecutive.Plugin/source/Internal/DriverOperations/Internal/NISwitchExecutiveConfigurationManagement.cs
Github Open Source
Open Source
LicenseRef-scancode-proprietary-license, MIT, LicenseRef-scancode-unknown-license-reference
2,021
niinstrumentstudio-switchexecutive-hosted-application
ni
C#
Code
416
1,610
using System; using System.Collections.Generic; using System.Linq; namespace SwitchExecutive.Plugin.Internal.DriverOperations.Internal { internal interface NISwitchExecutiveConfigurationManagementInterface { IEnumerable<string> VirtualDeviceNames { get; } IEnumerable<string> Routes(string virtualDev...
37,982
https://github.com/yabaoer/CRMchat/blob/master/crmchat/crmeb/services/uniPush/OptionsBase.php
Github Open Source
Open Source
MIT
2,021
CRMchat
yabaoer
PHP
Code
129
402
<?php // +---------------------------------------------------------------------- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ] // +---------------------------------------------------------------------- // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved. // +-------------------------------------------------------...
23,095