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/fomenkoyegor/rgarage/blob/master/resources/js/components/Task.vue
Github Open Source
Open Source
MIT
null
rgarage
fomenkoyegor
Vue
Code
442
2,123
<template> <div class="col-12 task bg-white" :class="{'complite':task.status}" style="width: 100%"> <div> <div class="title row align-content-center"> <div class="col-1 row justify-content-center align-content-center"> <input type="checkbox" :checked="task.st...
15,606
https://github.com/yy406961/vue-typescript-test/blob/master/src/components/Table/pagination.vue
Github Open Source
Open Source
MIT
null
vue-typescript-test
yy406961
Vue
Code
80
306
<template> <div :class="pagerStyles.pagination"> <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="option.currentPage" :page-sizes="option.pageSizes" :page-size.sync="option.pageSize" ...
49,747
https://github.com/apple/swift/blob/master/test/SILOptimizer/zeroInitializer.swift
Github Open Source
Open Source
Apache-2.0, Swift-exception
2,023
swift
apple
Swift
Code
128
426
// RUN: %target-swift-frontend -O -parse-stdlib -emit-ir -module-name ZeroInit -verify %s | %FileCheck %s // REQUIRES: swift_in_compiler import Swift @frozen public struct TestInt { @usableFromInline var _value : Builtin.Int32 @_transparent public init() { _value = Builtin.zeroInitializer() } } @froze...
18,832
https://github.com/inthiyazbasha9876/obs_v2/blob/master/zuul-auth-ojas-parent/ojas-obs-interview-mode/src/main/java/com/ojas/obs/interviewmode/repository/InterviewModeRepository.java
Github Open Source
Open Source
MIT
2,020
obs_v2
inthiyazbasha9876
Java
Code
17
88
package com.ojas.obs.interviewmode.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.ojas.obs.interviewmode.model.InterviewMode; @Repository public interface InterviewModeRepository extends JpaRepository<InterviewMode, Integer> { }
5,243
https://github.com/schoetty/pageflow/blob/master/app/assets/javascripts/pageflow/page_transitions.js
Github Open Source
Open Source
MIT
null
pageflow
schoetty
JavaScript
Code
60
250
pageflow.pageTransitions = { repository: {}, register: function(name, options) { this.repository[name] = options; }, get: function(name) { if (!this.repository.hasOwnProperty(name)) { throw 'Unknown page transition "' + name + '"'; } return this.repository[name]; }, names: function...
31,941
https://github.com/moinnn/laravel-dbsim/blob/master/static/dbsim.js
Github Open Source
Open Source
MIT
2,014
laravel-dbsim
moinnn
JavaScript
Code
48
227
var doSubmit = function() { $.ajax({ url: './', dataType: 'json', type: 'POST', data: { q: $('#q').val() } }).done(function(data) { data.query = $('<div />').text(data.query).html(); data.query = hljs.highlightAuto(data.query).value; $('#query_target').ht...
41,176
https://github.com/sol/doctest/blob/master/test/PropertySpec.hs
Github Open Source
Open Source
MIT
2,023
doctest
sol
Haskell
Code
750
1,544
{-# LANGUAGE OverloadedStrings #-} module PropertySpec (main, spec) where import Test.Hspec import Data.String.Builder import Property import Interpreter (withInterpreter) main :: IO () main = hspec spec isFailure :: PropertyResult -> Bool isFailure (Failure _) = True isFailu...
15,562
https://github.com/Weird-Street/spectrum/blob/master/mercury/queues/processReputationEvent.js
Github Open Source
Open Source
BSD-3-Clause
null
spectrum
Weird-Street
JavaScript
Code
203
759
// flow const debug = require('debug')('mercury:queue:process-reputation-event'); import processThreadCreated from '../functions/processThreadCreated'; import processThreadDeleted from '../functions/processThreadDeleted'; import processMessageCreated from '../functions/processMessageCreated'; import processReactionCrea...
24,501
https://github.com/Chronostasys/LimFx.Common/blob/master/src/LimFx.Common/Services/LimFxRateLimitAttribute.cs
Github Open Source
Open Source
MIT
null
LimFx.Common
Chronostasys
C#
Code
155
591
using AbotEsge.Util; using LimFx.Business.Exceptions; using Microsoft.AspNetCore.Mvc.Filters; using System; using System.Collections.Concurrent; using System.Net; using System.Timers; namespace LimFx.Business.Services { public class LimFxRateLimitAttribute : ActionFilterAttribute, IDisposable { static...
45,470
https://github.com/MiniProfiler/dotnet/blob/master/src/MiniProfiler.Shared/Storage/DatabaseStorageBase.cs
Github Open Source
Open Source
MIT
2,023
dotnet
MiniProfiler
C#
Code
1,160
3,114
using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Threading.Tasks; namespace StackExchange.Profiling.Storage { /// <summary> /// Understands how to save MiniProfiler results to a MSSQL database, allowing more permanent storage and querying of slow result...
48,847
https://github.com/rmjohn08/angular2-learning/blob/master/app/register/register-taker.component.ts
Github Open Source
Open Source
MIT
null
angular2-learning
rmjohn08
TypeScript
Code
97
426
import {Component, Output, EventEmitter, OnInit} from 'angular2/core'; import {Router} from 'angular2/router'; import {UserService, RegisteredUser} from '../services/user.service'; import {FORM_DIRECTIVES, NgForm} from 'angular2/common'; @Component({ selector:'register-taker', directives: [FORM_DIRECTIVES], tem...
568
https://github.com/shizhuoye/XREngine/blob/master/packages/server-core/src/types/WebRtcTransportParams.ts
Github Open Source
Open Source
MIT
2,021
XREngine
shizhuoye
TypeScript
Code
58
148
// Types borrowed from Mediasoup type NumSctpStreams = { /** * Initially requested number of outgoing SCTP streams. */ OS: number /** * Maximum number of incoming SCTP streams. */ MIS: number } type SctpCapabilities = { numStreams: NumSctpStreams } export type WebRtcTransportParams = { peerId?:...
2,023
https://github.com/KimNeutral/SSSS/blob/master/resources/views/errors/notfound.blade.php
Github Open Source
Open Source
MIT
null
SSSS
KimNeutral
PHP
Code
11
78
@extends('layouts.app') @section('content') <p style="font-size: 60px">404!</p> <p style="font-size: 30px">존재하지 않는 페이지입니다!</p> @endsection
28,341
https://github.com/knockdata/spark-highcharts/blob/master/src/main/scala/com/knockdata/spark/highcharts/CustomOutputMode.scala
Github Open Source
Open Source
Apache-2.0
2,022
spark-highcharts
knockdata
Scala
Code
179
649
package com.knockdata.spark.highcharts import com.knockdata.spark.highcharts.model.{Drilldown, Series} import org.apache.spark.sql.streaming.OutputMode import org.apache.zeppelin.spark.ZeppelinContext import scala.collection.mutable abstract class CustomOutputMode() extends OutputMode { val values = mutable.Map[St...
50,789
https://github.com/wya-team/wya-vc/blob/master/src/transition/transition-fade.vue
Github Open Source
Open Source
MIT
2,023
wya-vc
wya-team
Vue
Code
127
549
<template> <component :is="componentType" :tag="tag" :enter-active-class="`${prefix} is-in`" :move-class="`${prefix} is-move`" :leave-active-class="`${prefix} is-out`" v-bind="$attrs" v-on="hooks" > <slot /> </component> </template> <script> import basicMixin from './basic-mixin'; export default { ...
47,327
https://github.com/hvydya/kuma/blob/master/api/mesh/v1alpha1/dataplane_overview.pb.go
Github Open Source
Open Source
Apache-2.0
null
kuma
hvydya
Go
Code
487
1,801
// Code generated by protoc-gen-go. DO NOT EDIT. // source: mesh/v1alpha1/dataplane_overview.proto package v1alpha1 import ( fmt "fmt" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise us...
26,039
https://github.com/iotconnect-apps/AppConnect-SmartGreenHouse/blob/master/iot.solution.eventbus/CustomAttribute/ConfigureAttribute.cs
Github Open Source
Open Source
MIT
2,020
AppConnect-SmartGreenHouse
iotconnect-apps
C#
Code
301
719
using System; namespace component.eventbus.CustomAttribute { /// <summary> /// ConfigureAttribute /// </summary> /// <seealso cref="System.Attribute" /> [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)] public class ConfigureAttribute : Attribute { ...
22,659
https://github.com/nileshpatra/plast-library/blob/master/src/database/impl/BufferedCachedSequenceDatabase.cpp
Github Open Source
Open Source
Intel, DOC
2,020
plast-library
nileshpatra
C++
Code
308
832
/***************************************************************************** * * * PLAST : Parallel Local Alignment Search Tool * * Version 2.3, released November 2015 * * ...
44,019
https://github.com/iangle/UKG-Ready-API/blob/master/venv/Lib/site-packages/pathy/gcs.py
Github Open Source
Open Source
Apache-2.0
2,021
UKG-Ready-API
iangle
Python
Code
631
2,232
from dataclasses import dataclass from typing import Any, Dict, Generator, List, Optional try: from google.api_core.exceptions import BadRequest # type:ignore from google.cloud.storage import Blob as GCSNativeBlob # type:ignore from google.cloud.storage import Bucket as GCSNativeBucket # type:ignore ...
2,359
https://github.com/YangYafei1998/main/blob/master/src/test/java/seedu/address/logic/commands/DeleteMedicalHistoryCommandTest.java
Github Open Source
Open Source
MIT
null
main
YangYafei1998
Java
Code
553
2,686
package seedu.address.logic.commands; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.address.logic.commands.CommandTestUtil.NON_EXIST_ALLERGY; import static seedu.address.logic.commands.CommandTestUtil.NON_EXIST_CONDITION; import static seedu.address.logic.co...
3,514
https://github.com/MrCull/dtrace-utils/blob/master/test/unittest/sizeof/tst.SizeofString2.r
Github Open Source
Open Source
UPL-1.0
2,021
dtrace-utils
MrCull
R
Code
3
8
sizeof (var): 256
40,437
https://github.com/WillyWunderdog/More-Recipes-Gbenga/blob/master/server/routes/recipes.js
Github Open Source
Open Source
MIT
null
More-Recipes-Gbenga
WillyWunderdog
JavaScript
Code
94
406
import express from 'express'; import auth from '../middlewares/auth'; import controllers from '../controllers'; import validateRecipe from '../middlewares/recipeValidation'; import validateParams from '../middlewares/validateParams'; import validateOwnership from '../helpers/checkOwner'; const router = express.Router...
8,830
https://github.com/utdcometsoccer/basiclandingpage/blob/master/starters/product-landing-page/index.d.ts
Github Open Source
Open Source
MIT
null
basiclandingpage
utdcometsoccer
TypeScript
Code
36
188
import { IDarkProductHeadlineProps, IProductHeadlineContainerProps, IProductHeadlineProps, DarkProductHeadline, LightProductHeadline, ProductHeadline, ProductHeadlineContainer, } from "@idahoedokpayi/basic-landing-page-components"; import { IProductLayoutProps, ProductLayout } from "./src/components/prod...
38,056
https://github.com/MILL5/yocto/blob/master/src/yocto/ContainerBuilder.cs
Github Open Source
Open Source
Apache-2.0
2,023
yocto
MILL5
C#
Code
168
478
using System; // ReSharper disable InconsistentNaming namespace yocto { public class ContainerBuilder : IRegisterType, IDisposable { private readonly object _syncLock = new object(); private IContainer _container; private bool _disposed; public ContainerBuilder() { ...
5,036
https://github.com/JoelRocaMartinez/immudb-webconsole/blob/master/src/components/the/Banner.vue
Github Open Source
Open Source
Apache-2.0
2,021
immudb-webconsole
JoelRocaMartinez
Vue
Code
237
924
<template> <v-system-bar v-if="value" id="TheBanner" class="ma-0 pa-0 d-flex justify-center align-center" :height="32" :color="color" fixed app > <v-spacer v-if="!persistent" class="ml-4" /> <slot> <v-icon class="ma-0 pa-0 white--text" :size="18" > {{ icon }} </v-icon> ...
9,196
https://github.com/daimoonis/ngx-color/blob/master/projects/ngx-color/src/lib/common/raised/raised.component.scss
Github Open Source
Open Source
MIT
2,019
ngx-color
daimoonis
SCSS
Code
33
133
.ngx-color-raised { .ngx-color-raised-wrap { position: relative; display: inline-block; .ngx-color-raised-bg { position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; } .ngx-color-raised-content { ...
32,952
https://github.com/sudhakar52621/cm/blob/master/modules/configuration/webSrc/ts/build/types/core/inputs/gwAutocomplete.d.ts
Github Open Source
Open Source
MIT, BSD-2-Clause, Apache-1.1, Apache-2.0
null
cm
sudhakar52621
TypeScript
Code
984
2,063
import { GwDomNode, GwEventType, GwKeyboardNavigation, GwMap, HTMLTextInputElement } from "../../types/gwTypes"; import { GwInitializableSystem } from "../util/GwInitializableSystem"; import { GwEventDescription } from "../events/GwEventDescription"; /** * Guidewire's TypeScript APIs are an early-stage feature and are...
17,607
https://github.com/Seongkyun-Yu/TIL/blob/master/algorithm-study/programers/level1/findKim.js
Github Open Source
Open Source
MIT
2,020
TIL
Seongkyun-Yu
JavaScript
Code
88
315
// 서울에서 김서방 찾기 // https://programmers.co.kr/learn/courses/30/lessons/12919 // 문제 설명 // String형 배열 seoul의 element중 Kim의 위치 x를 찾아, 김서방은 x에 있다는 String을 반환하는 함수, solution을 완성하세요. seoul에 Kim은 오직 한 번만 나타나며 잘못된 값이 입력되는 경우는 없습니다. // 제한 사항 // seoul은 길이 1 이상, 1000 이하인 배열입니다. // seoul의 원소는 길이 1 이상, 20 이하인 문자열입니다. // Kim은 반드시 se...
47,958
https://github.com/grecosoft/NetFusion/blob/master/netfusion/src/Integration/IntegrationTests/RabbitMQ/PublisherModuleTests.cs
Github Open Source
Open Source
MIT
2,023
NetFusion
grecosoft
C#
Code
543
2,162
using System; using NetFusion.Bootstrap.Exceptions; using NetFusion.Messaging.Plugin.Configs; using NetFusion.Messaging.Types; using NetFusion.RabbitMQ.Publisher; using NetFusion.Test.Container; using Xunit; namespace IntegrationTests.RabbitMQ { /// <summary> /// The publisher module contains the logic specifi...
31,471
https://github.com/Matyrobbrt/MatyBot/blob/master/src/main/java/io/github/matyrobbrt/matybot/reimpl/BetterMember.java
Github Open Source
Open Source
MIT
null
MatyBot
Matyrobbrt
Java
Code
53
320
package io.github.matyrobbrt.matybot.reimpl; import java.util.List; import javax.annotation.Nonnull; import io.github.matyrobbrt.matybot.MatyBot; import io.github.matyrobbrt.matybot.managers.CustomPingManager.CustomPing; import io.github.matyrobbrt.matybot.util.database.dao.nbt.LevelData; import io.github.matyrobbrt...
5,031
https://github.com/wd1212/mip-extensions-platform/blob/master/mip-zlw/mip-zlw.js
Github Open Source
Open Source
MIT
2,020
mip-extensions-platform
wd1212
JavaScript
Code
13
45
/** * @file mip-zlw 组件 * @author */ define(function (require) { 'alert("张良伟")'; });
4,685
https://github.com/elsa-workflows/elsa-core/blob/master/src/activities/Elsa.Activities.Telnyx/Models/ClientStatePayload.cs
Github Open Source
Open Source
MIT
2,023
elsa-core
elsa-workflows
C#
Code
48
182
using System; using System.Text; using Newtonsoft.Json; namespace Elsa.Activities.Telnyx.Models { public record ClientStatePayload(string CorrelationId) { public static ClientStatePayload FromBase64(string base64) { var bytes = Convert.FromBase64String(base64); var json...
9,648
https://github.com/Ekevin/kazi_app/blob/master/application/views/home_page.php
Github Open Source
Open Source
MIT
null
kazi_app
Ekevin
PHP
Code
95
465
<pre> <?php //print_r($this->session->userdata); ?> </pre> <hr> <pre> <?php //var_dump($employee_tasks) ?> </pre> <div class="col-md-8 col-md-offset-2"> <div> <h1>Tasks</h1> <a href="tasks/tasks" title=""><button class="btn btn-success pull-right" name="add task" value="Add Task">Add Task</button></a> </div> <ta...
11,249
https://github.com/hiqdev/hipanel-module-client/blob/master/tests/acceptance/manager/AssignmentsCest.php
Github Open Source
Open Source
BSD-3-Clause
2,019
hipanel-module-client
hiqdev
PHP
Code
109
638
<?php declare(strict_types=1); namespace hipanel\modules\client\tests\acceptance\manager; use hipanel\helpers\Url; use hipanel\tests\_support\Page\IndexPage; use hipanel\tests\_support\Page\Widget\Input\Input; use hipanel\tests\_support\Page\Widget\Input\Select2; use hipanel\tests\_support\Step\Acceptance\Manager; c...
32,633
https://github.com/GauriChandaDattatray/Leetcode-June-Challenge/blob/master/Day_28.cpp
Github Open Source
Open Source
MIT
2,020
Leetcode-June-Challenge
GauriChandaDattatray
C++
Code
71
292
// Time Complexity : O(E) // Space Complexity : O(E) // E = # of Edges in Graph class Solution { public: void dfs(string s,unordered_map<string, priority_queue <string, vector<string>, greater<string>>> &m,vector<string> &ans){ if(m[s].empty()) return; while(!m[s].empty()){ strin...
15,422
https://github.com/Bagerian/gamebrary/blob/master/src/pages/Settings.vue
Github Open Source
Open Source
MIT
null
gamebrary
Bagerian
Vue
Code
403
1,523
<template lang="html"> <modal title="Settings"> <gravatar :email="user.email" class="avatar" v-if="user && user.email" /> <div slot="content" class="settings" > <game-board-settings v-model="localSettings" @save="save" v-if="isGameBoard" /> <h3>Global</h3> <tags-settings v-...
16,229
https://github.com/liftchampion/nativejson-benchmark/blob/master/thirdparty/ccan/web/staticmoduleinfo.php
Github Open Source
Open Source
MIT
null
nativejson-benchmark
liftchampion
PHP
Code
176
986
<?php session_start(); include('logo.html'); include('menulist.html'); include('static-configuration'); $module_path=$argv[1]; $module=$argv[2]; $maintainer=extract_field('maintainer',$module_path); $author=extract_field('author',$module_path); $summary=extract_field('summary',$module_path); $see_also=extract_field('se...
48,280
https://github.com/amedama41/bulb/blob/master/include/canard/net/ofp/v10/flow_entry.hpp
Github Open Source
Open Source
BSL-1.0
null
bulb
amedama41
C++
Code
496
1,745
#ifndef CANARD_NET_OFP_V10_FLOW_ENTRY_HPP #define CANARD_NET_OFP_V10_FLOW_ENTRY_HPP #include <cstdint> #include <utility> #include <boost/operators.hpp> #include <canard/net/ofp/v10/action_list.hpp> #include <canard/net/ofp/v10/common/match.hpp> namespace canard { namespace net { namespace ofp { namespace v10 { cl...
18,222
https://github.com/arushanovanz/java_automation/blob/master/sandbox/src/test/java/ru/stqa/pft/sandbox/catalog/MobilePhonesPage.java
Github Open Source
Open Source
Apache-2.0
null
java_automation
arushanovanz
Java
Code
21
109
package ru.stqa.pft.sandbox.catalog; import com.codeborne.selenide.SelenideElement; import org.testng.annotations.Listeners; import static com.codeborne.selenide.Selenide.$; public class MobilePhonesPage { public void addMobilePhoneToCompareList(SelenideElement locator) { $(locator).click(); } }
32,700
https://github.com/eclipse-ee4j/metro-jwsdp-samples/blob/master/jamazon/src/com/sun/jamazon/DetailsTableModel.java
Github Open Source
Open Source
BSD-3-Clause
null
metro-jwsdp-samples
eclipse-ee4j
Java
Code
1,119
3,368
/* * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: BSD-3-...
9,705
https://github.com/yshalabi/VMExit-Delay/blob/master/timeExit.c
Github Open Source
Open Source
MIT
2,022
VMExit-Delay
yshalabi
C
Code
219
693
#include "stdio.h" #include "unistd.h" #include "assert.h" #include "stdlib.h" #include <sys/syscall.h> #define __USE_GNU #include "sched.h" #include <inttypes.h> void usage(){ printf("use -v to specify number of vm exits to cause\n"); } __inline__ uint64_t get_tsc(void) { uint32_t lo, hi; //if rdtscp is not availab...
25,764
https://github.com/dodolica/covernews-copil/blob/master/inc/hooks/hook-blocks.php
Github Open Source
Open Source
MIT
null
covernews-copil
dodolica
PHP
Code
39
159
<?php if (!function_exists('covernews_page_layout_blocks')) : /** * * @since CoverNews 1.0.0 * * @param null * @return null * */ function covernews_page_layout_blocks( $archive_layout='full' ) { $archive_layout = covernews_get_option('archive_layout'); switch...
43,167
https://github.com/HITS-MBM/gromacs-developments/blob/master/src/programs/mdrun/tests/simulatorcomparison.cpp
Github Open Source
Open Source
BSD-2-Clause
2,022
gromacs-developments
HITS-MBM
C++
Code
528
1,284
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2019,2020, by the GROMACS development team, led by * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, * and including many others, as listed in the AUTHORS file in the * top-level source directory and at http://ww...
14,756
https://github.com/lai-nam/NLP/blob/master/client/js/index.js
Github Open Source
Open Source
MIT
2,014
NLP
lai-nam
JavaScript
Code
32
119
function POST() { var category = document.getElementById("nlp_category").value; var content = document.getElementById("nlp_content").value; $.ajax({ url: "/api/documents/", dataType: "application/json", data: JSON.stringify({ category: category, content: cont...
28,897
https://github.com/RepoCamp/Duke-B/blob/master/spec/forms/hyrax/image_form_spec.rb
Github Open Source
Open Source
Apache-2.0
null
Duke-B
RepoCamp
Ruby
Code
47
143
# Generated via # `rails generate hyrax:work Image` require 'rails_helper' RSpec.describe Hyrax::ImageForm do subject { form } let(:image) { Image.new } let(:ability) { Ability.new(nil) } let(:request) { nil } let(:form) { described_class.new(image, ability, request) } it "has the expected term...
29,493
https://github.com/ToastBuster/BlockQuest/blob/master/src/main/java/me/robifoxx/blockquest/command/sub/GuideCommand.java
Github Open Source
Open Source
MIT
2,022
BlockQuest
ToastBuster
Java
Code
189
563
package me.robifoxx.blockquest.command.sub; import me.robifoxx.blockquest.BlockQuest; import me.robifoxx.blockquest.api.BlockQuestAPI; import me.robifoxx.blockquest.api.BlockQuestSeries; import me.robifoxx.blockquest.command.SubCommand; import org.bukkit.command.CommandSender; public class GuideCommand extends SubCom...
25,370
https://github.com/Mikhail-Aoun/netcdf-java/blob/master/cdm-test/src/timing/java/ucar/nc2/util/xml/TimeJdomReading.java
Github Open Source
Open Source
BSD-3-Clause
2,021
netcdf-java
Mikhail-Aoun
Java
Code
189
547
/* * Copyright (c) 1998-2018 University Corporation for Atmospheric Research/Unidata * See LICENSE for license information. */ package ucar.nc2.internal.util.xml; import org.jdom2.input.SAXBuilder; import org.jdom2.*; import ucar.unidata.util.Format; import java.io.IOException; import java.util.List; public class ...
34,005
https://github.com/jocimar-dev/orange-talents-01-template-casa-do-codigo/blob/master/src/main/java/com/br/zup/casadocodigo/compras/ItemPedido.java
Github Open Source
Open Source
Apache-2.0
null
orange-talents-01-template-casa-do-codigo
jocimar-dev
Java
Code
166
527
package com.br.zup.casadocodigo.compras; import com.br.zup.casadocodigo.cadastrolivro.Livro; import javax.persistence.Embeddable; import javax.persistence.ManyToOne; import javax.validation.constraints.NotNull; import javax.validation.constraints.Positive; import java.math.BigDecimal; @Embeddable public class ItemPe...
38,530
https://github.com/toni-moreno/resistor/blob/master/src/app/core/http.service.ts
Github Open Source
Open Source
MIT
2,020
resistor
toni-moreno
TypeScript
Code
363
1,261
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import 'rxjs/Rx'; import { Http, RequestOptions, RequestOptionsArgs, Response, Request, Headers, XHRBackend } from '@angular/http'; import { Router } from '@angular/router'; import { DefaultRequestOpti...
26,255
https://github.com/urbanvas/GIPHY_API/blob/master/src/actions/userActions.js
Github Open Source
Open Source
MIT
2,019
GIPHY_API
urbanvas
JavaScript
Code
56
106
import userTypes from '../constants/userConstants'; // favroites are taken directly from the search results so they dont ahve to be reloaded/ refetched // after users add favorites it is stored into the redux store and saved there even after new // fetchs to the GIPHY API export const addFavorite = (favorite) => ({ t...
37,692
https://github.com/winfred958/kylin-operation/blob/master/kylin_cmd.py
Github Open Source
Open Source
Apache-2.0
2,021
kylin-operation
winfred958
Python
Code
57
221
# encoding: utf-8 """ @author: kevin @contact: kevin_678@126.com @file: kylin_cmd.py @time: 2018/3/23 15:28 @desc: """ from core import parameter_handle from service import kylin_handler from utils.logging_util import LogUtil if __name__ == '__main__': log = LogUtil() parameter = parameter_handle.get_p...
47,239
https://github.com/sqf-ice/meshNetwork/blob/master/python/mesh/generic/serialComm.py
Github Open Source
Open Source
NASA-1.3
null
meshNetwork
sqf-ice
Python
Code
327
763
import time import crcmod.predefined class SerialComm(object): """Serial communication wrapper class that provides for serializing data to send over serial data links. This class is the base class for serial communication and provides reading and writing functionality over the provided serial connection. Mes...
37,138
https://github.com/ccbabi/vue-component-toast/blob/master/src/toast.vue
Github Open Source
Open Source
MIT
2,018
vue-component-toast
ccbabi
Vue
Code
117
418
<template> <div :class="className"> <div v-if="mask" class="vc-toast-mask" @touchmove="touchmove" /> <transition name="vc-toast" @after-leave="afterLeave"> <div v-show="show" :class="['vc-toast', `is-${this.position}`]" :style="styles"> <i v-if="iconClass !== ''" class="vc-toast-icon" :class="ic...
49,588
https://github.com/retropipes/older-java-games/blob/master/LaserTank/src/com/puttysoftware/lasertank/utilities/IDGenerator.java
Github Open Source
Open Source
Unlicense
2,021
older-java-games
retropipes
Java
Code
52
148
/* LaserTank: An Arena-Solving Game Copyright (C) 2008-2013 Eric Ahnell Any questions should be directed to the author via email at: products@puttysoftware.com */ package com.puttysoftware.lasertank.utilities; import com.puttysoftware.randomrange.RandomLongRange; public class IDGenerator { // Constructor ...
17,327
https://github.com/RCCRAFT1/Scamming-Scammers/blob/master/devtools_java/commands/Intsakill.java
Github Open Source
Open Source
Apache-2.0
null
Scamming-Scammers
RCCRAFT1
Java
Code
121
494
package devtools_java.commands; import prodigy_hack.appendPacket.PacketSend; import prodigy_hack.event.Event; import prodigy_hack.packet.*; public class Intsakill { public static String killCommand; public int killEntity; public int killEntityStatement; public void killCommand() { return; ...
48,911
https://github.com/kabartay/gammapy/blob/master/gammapy/modeling/models/tests/test_management.py
Github Open Source
Open Source
BSD-3-Clause
2,021
gammapy
kabartay
Python
Code
629
3,009
import pytest import numpy as np import astropy.units as u from numpy.testing import assert_allclose from gammapy.modeling import Covariance from gammapy.modeling.models import ( BackgroundModel, GaussianSpatialModel, Models, PointSpatialModel, PowerLawSpectralModel, SkyModel, FoVBackgroundM...
9,775
https://github.com/karlwnw/adventofcode2019/blob/master/python/day11.py
Github Open Source
Open Source
MIT
2,020
adventofcode2019
karlwnw
Python
Code
224
625
from day5 import parse from intcode import IntCode BLACK = 0 WHITE = 1 N = 1j LEFT, RIGHT = -1j, 1j def loop_run(program, current_color=BLACK): heading = N position = 0 painted_panels = {position: current_color} intcode = IntCode(program) while current_color is not None: input_value = ...
16,469
https://github.com/FHedin/FittingWizard/blob/master/src/ch/unibas/fittingwizard/application/fitting/FitRepository.java
Github Open Source
Open Source
BSD-3-Clause
2,017
FittingWizard
FHedin
Java
Code
311
953
/* * Copyright (c) 2015, Florent Hedin, Markus Meuwly, and the University of Basel * All rights reserved. * * The 3-clause BSD license is applied to this software. * see LICENSE.txt * */ package ch.unibas.fittingwizard.application.fitting; import ch.unibas.fittingwizard.application.base.MemoryRepository; import...
10,282
https://github.com/b2220333/pybind/blob/master/pybind/nos/v7_2_0/rbridge_id/router/router_bgp/address_family/ipv4/ipv4_unicast/af_vrf/listen_range/__init__.py
Github Open Source
Open Source
Apache-2.0
2,018
pybind
b2220333
Python
Code
945
5,253
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
12,434
https://github.com/laoyigrace/files/blob/master/yibo/tempest/tempest/api/network/test_sf_router_update.py
Github Open Source
Open Source
Apache-2.0
2,017
files
laoyigrace
Python
Code
340
1,463
# Copyright 2013 OpenStack Foundation # 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 requ...
18,621
https://github.com/CapsicumCorp/iOmy/blob/master/watchinputs/watch_inputs/src/modules/tizigbeelib/tizigbeelibpriv.hpp
Github Open Source
Open Source
Apache-2.0, libpng-2.0
2,018
iOmy
CapsicumCorp
C++
Code
4,296
13,632
/* Title: Texas Instruments Z-Stack Library Header for Watch Inputs Author: Matthew Stapleton (Capsicum Corporation) <matthew@capsicumcorp.com> Description: Header File for tizigbeelib.c Copyright: Capsicum Corporation 2017 This file is part of Watch Inputs which is part of the iOmy project. iOmy is free software: yo...
21,433
https://github.com/GitHubMaxwell/food_suite/blob/master/src/components/UHF/Header.js
Github Open Source
Open Source
MIT
null
food_suite
GitHubMaxwell
JavaScript
Code
5
7
// a simple navigation menu
4,555
https://github.com/chromium/chromium/blob/master/ash/calendar/DEPS
Github Open Source
Open Source
BSD-3-Clause
2,023
chromium
chromium
Python
Code
5
19
include_rules = [ "+google_apis/calendar", ]
42,244
https://github.com/mmagnuski/mne-python/blob/master/mne/io/cnt/__init__.py
Github Open Source
Open Source
BSD-3-Clause
2,019
mne-python
mmagnuski
Python
Code
4
11
from .cnt import read_raw_cnt
38,111
https://github.com/Trainmaster/Vision/blob/master/src/Form/Control/Text.php
Github Open Source
Open Source
MIT
2,017
Vision
Trainmaster
PHP
Code
21
56
<?php declare(strict_types=1); namespace Vision\Form\Control; class Text extends AbstractInput { /** @var array $attributes */ protected $attributes = ['type' => 'text']; }
8,493
https://github.com/FNSOIDATHQ/localization-tool-for-Men-of-War/blob/master/localization-tool-for-Men-of-War_v0_1/setting.cpp
Github Open Source
Open Source
MIT
null
localization-tool-for-Men-of-War
FNSOIDATHQ
C++
Code
77
509
#include "setting.h" #include "ui_setting.h" #include <QFileDialog> Setting::Setting(QWidget *parent) : QDialog(parent), ui(new Ui::Setting) { ui->setupUi(this); setWindowTitle("Setting"); } Setting::~Setting() { delete ui; } void Setting::quick_type_local() { QString in=QFileDialog::getExi...
25,617
https://github.com/seatonullberg/PyPPA/blob/master/Scripts/build_identity_profile.py
Github Open Source
Open Source
BSD-2-Clause
2,017
PyPPA
seatonullberg
Python
Code
237
738
import dlib import pickle import numpy as np import os import argparse from utils import path_utils from utils import identity_profile_utils def main(path=None): """ Creates an IdentityProfile :param path: (str) absolute path to a directory containing training images - the end of the path...
2,181
https://github.com/Leeway213/BSP_AW1689_src/blob/master/src/drivers/Audio/VirtualI2S/I2SInterface.cpp
Github Open Source
Open Source
Apache-2.0
2,019
BSP_AW1689_src
Leeway213
C++
Code
802
2,936
/** @file * * Copyright (c) 2007-2016, Allwinner Technology Co., Ltd. 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...
25,228
https://github.com/sardjv/murfin_method/blob/master/app/javascript/stylesheets/graph_tabs.scss
Github Open Source
Open Source
MIT
2,021
murfin_method
sardjv
SCSS
Code
35
120
.thin-tabs { .nav { .nav-item { font-weight: bold; .nav-link { border: none; color: $black; font-size: 80%; padding: 4px; padding-right: 8px; margin-right: 8px; &.active { color: $primary; border-bottom: 4px solid $primary; ...
2,382
https://github.com/RustPython/RustPython/blob/master/wasm/demo/snippets/fetch.py
Github Open Source
Open Source
CC-BY-4.0, MIT
2,023
RustPython
RustPython
Python
Code
22
97
from browser import fetch def fetch_handler(res): print(f"headers: {res['headers']}") fetch( "https://httpbin.org/get", response_format="json", headers={ "X-Header-Thing": "rustpython is neat!" }, ).then(fetch_handler, lambda err: print(f"error: {err}"))
41,844
https://github.com/hashier/NewsBlur/blob/master/clients/android/NewsBlur/build.gradle
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
NewsBlur
hashier
Gradle
Code
142
749
buildscript { ext.kotlin_version = '1.5.30' repositories { mavenCentral() maven { url 'https://maven.google.com' } jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:7.0.0' classpath "org.jetbrains.kotlin:kotl...
28,540
https://github.com/DJC-1984/DJC-1984.github.io/blob/master/widgets/Infographic/VersionManager.js
Github Open Source
Open Source
Apache-2.0
2,019
DJC-1984.github.io
DJC-1984
JavaScript
Code
827
2,691
define(['jimu/shared/BaseVersionManager'], function(BaseVersionManager) { function VersionManager() { this.versions = [{ version: '1.0', upgrader: function(oldConfig) { return oldConfig; } }, { version: '1.1', upgrader: function(oldConfig) { ...
37,523
https://github.com/samiz/engage-fork/blob/master/takmela-lexer/RExpr.cs
Github Open Source
Open Source
MIT
2,019
engage-fork
samiz
C#
Code
524
1,775
using System; using System.Collections.Generic; namespace takmelalexer { public interface CharClassPart { } public class CharPartRange : CharClassPart { public char From, To; public CharPartRange(char _From, char _To) { From = _From; To = _To; } public override string ToString() { return...
13,703
https://github.com/JacoboGallardo/builder/blob/master/packages/shopify/src/functions/fast-clone.ts
Github Open Source
Open Source
MIT
2,020
builder
JacoboGallardo
TypeScript
Code
11
29
export const fastClone = <T extends object>(object: T): T => JSON.parse(JSON.stringify(object));
32,137
https://github.com/TUHH-ICS/2022-code-real-time-model-predictive-control-for-wind-farms-a-koopman-dynamic-mode-decomposition-app/blob/master/WFSimCode/bin/Kmpc/test run/testQuadProg.m
Github Open Source
Open Source
MIT
2,022
2022-code-real-time-model-predictive-control-for-wind-farms-a-koopman-dynamic-mode-decomposition-app
TUHH-ICS
MATLAB
Code
634
2,844
%% Toy example clear; close all; clc; addpath(genpath(pwd)) N = 9; Wp.turbine.N = N; % Number windturbines Nh = 10; mpc.Nh = Nh; % Number time steps prediction trajectory noRun = 10; mpc.A = 0.1*eye(N); mpc.B = 0.9*eye(N); mpc.C = 1*eye(N); xinit = 0*ones(N,1); mpc.MP = true(mpc.Nh,length(xinit)); sol.k = 1; mpc.Pr...
24,246
https://github.com/Peshino/futsal-hlinsko/blob/master/app/Player.php
Github Open Source
Open Source
MIT
null
futsal-hlinsko
Peshino
PHP
Code
64
237
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Player extends Model { protected $fillable = [ 'firstname', 'lastname', 'history_code', 'jersey_number', 'birthdate', 'position', 'photo', 'futis_code', 'height', 'nationality', 'team_id', 'user_id', 'competition_id' ]; public fu...
48,872
https://github.com/lalongooo/POSSpring/blob/master/src/main/java/com/puntodeventa/global/Entity/CredAmort.java
Github Open Source
Open Source
MIT
null
POSSpring
lalongooo
Java
Code
444
1,393
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.puntodeventa.global.Entity; import java.io.Serializable; import java.math.BigInteger; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Embedded...
29,715
https://github.com/2zqa/project-2.3/blob/master/src/main/java/project23/gui/model/GameLobbyModel.java
Github Open Source
Open Source
MIT
2,021
project-2.3
2zqa
Java
Code
402
1,136
package project23.gui.model; import javafx.application.Platform; import project23.framework.*; import project23.gui.MainWindow; import java.util.List; public class GameLobbyModel extends Model implements ConnectedGameManagerObserver { private List<String> currentlyShowingPlayers; private ChallengeRequest l...
50,484
https://github.com/Texera/texera/blob/master/core/amber/src/main/scala/edu/uci/ics/amber/engine/common/ambermessage/RecoveryPayload.scala
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, Apache-2.0
2,023
texera
Texera
Scala
Code
65
170
package edu.uci.ics.amber.engine.common.ambermessage import akka.actor.{ActorRef, Address} import edu.uci.ics.amber.engine.common.virtualidentity.ActorVirtualIdentity sealed trait RecoveryPayload extends Serializable {} // Notify controller on worker recovery starts/ends final case class UpdateRecoveryStatus(isRecov...
44,462
https://github.com/ting11222001/Weather-At-Where-You-Are/blob/master/find_nearest.py
Github Open Source
Open Source
Apache-2.0
2,020
Weather-At-Where-You-Are
ting11222001
Python
Code
293
787
# Libraries for below main construction block - index function. # Allow users to make a request to a web page e.g. an external API to get data. import requests # Transform a description of a location into such as a pair of coordinates. import geocoder # Use math module to access different mathematical functions. import...
5,604
https://github.com/dsrour/DSX2/blob/master/Samples/UWP/D3D12PipelineStateCache/src/UberPixelShader.hlsl.h
Github Open Source
Open Source
MIT
2,022
DSX2
dsrour
C
Code
4,773
15,712
#if 0 // // Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.0 // // // Buffer Definitions: // // cbuffer cb // { // // uint shaderType; // Offset: 0 Size: 4 // // } // // // Resource Bindings: // // Name Type Format Dim HLSL Bind Coun...
34,167
https://github.com/laionazeredo/econnessione/blob/master/services/admin-web/src/index.tsx
Github Open Source
Open Source
MIT
2,021
econnessione
laionazeredo
TSX
Code
81
323
import React from "react"; import ReactDOM from "react-dom"; import Helmet from "react-helmet"; import AdminPage from "./AdminPage"; import reportWebVitals from "./reportWebVitals"; import "ol/ol.css"; ReactDOM.render( <React.StrictMode> <Helmet link={[ { rel: "stylesheet", type...
3,851
https://github.com/don66/home-assistant/blob/master/homeassistant/components/sensor/version.py
Github Open Source
Open Source
Apache-2.0
2,020
home-assistant
don66
Python
Code
130
390
""" Support for displaying the current version of Home Assistant. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.version/ """ import logging import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.compone...
12,370
https://github.com/SkewerSpot/ss-orders-app/blob/master/lib/models/unique_code_meta.dart
Github Open Source
Open Source
MIT
2,020
ss-orders-app
SkewerSpot
Dart
Code
140
352
import 'package:flutter/foundation.dart'; /// Metadata about a unique code. class UniqueCodeMeta { /// Firebase path for the code's associated order. final String orderPath; /// Whether the code has been redeemed. final bool isRedeemed; /// Timestamp of date and time when the code was redeemed. /// Must ...
39,435
https://github.com/cuihq/term/blob/master/examples/window_example.rb
Github Open Source
Open Source
MIT
2,019
term
cuihq
Ruby
Code
20
73
# cording: utf-8 railties_path = File.expand_path('../../lib', __FILE__) $:.unshift(railties_path) require 'term/window' IO.window_title = 'window title' IO.icon_name = 'icon name' sleep 3
23,838
https://github.com/rontech/Ribenyan/blob/master/client/dashBoard/second/template/contentLeft/adv_left_cell.js
Github Open Source
Open Source
MIT
null
Ribenyan
rontech
JavaScript
Code
57
252
// 广告集成cell Template.advLeftCell.helpers({ "templateName" : function(){//显示模板 var advInfo = getAdvInfoById(this.advID); var type = advInfo.showRule; var templateName = ""; switch(type){ case "1" : case "2" : templateName = "advHouseLeftCell";//房屋广告显示模板 break; case "3" : templateName = "a...
16,206
https://github.com/johnnywang1994/axios-mock-shim/blob/master/index.js
Github Open Source
Open Source
MIT
null
axios-mock-shim
johnnywang1994
JavaScript
Code
3
19
module.exports = require('./dist/axios-mock-shim.min');
17,783
https://github.com/HaronK/aoc2019/blob/master/task23_2/src/network.rs
Github Open Source
Open Source
MIT
2,019
aoc2019
HaronK
Rust
Code
263
837
use anyhow::{bail, ensure, Result}; use common::intcode_comp::*; use common::log::*; pub struct Network<'l> { comps: Vec<IntcodeComp<'l>>, is_running: bool, nat: (DataType, DataType), last_y: Option<DataType>, } impl<'l> Network<'l> { pub fn new(prog: &str, count: usize, log: &'l Log) -> Result<Se...
31,882
https://github.com/idiocc/http/blob/master/example/src/index.js
Github Open Source
Open Source
MIT
2,019
http
idiocc
JavaScript
Code
71
196
const users = { 'secret-token': 'ExampleUser', } /** * User Authentication Route. * @param {http.IncomingMessage} req * @param {http.ServerResponse} res */ const middleware = (req, res) => { const token = req.headers['x-auth'] if (!token) throw new Error('The authentication is required.') const user = user...
14,560
https://github.com/ts-upgrade-bot/gif-generator/blob/master/src/app/util/gif.ts
Github Open Source
Open Source
MIT
2,021
gif-generator
ts-upgrade-bot
TypeScript
Code
280
863
import { TemplateContent } from '../models/template'; import { from } from 'rxjs'; declare var GIF: any; export declare class GifReader { width: number; height: number; numFrames: (() => number); loopCount: (() => any); frameInfo: ((frame_num: any) => any); decodeAndBlitFrameBGRA: ((frame_num: any, pixels:...
6,300
https://github.com/Fish-Roaly-D/JavaBase/blob/master/mybatisplus/mp-01/src/main/java/com/roily/codemake/codeMakeTest/controller/DepartmentController.java
Github Open Source
Open Source
MulanPSL-1.0
2,022
JavaBase
Fish-Roaly-D
Java
Code
28
115
package com.roily.codemake.codeMakeTest.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.stereotype.Controller; /** * <p> * 前端控制器 * </p> * * @author roilyFish * @since 2022-04-04 */ @Controller @RequestMapping("/codeMakeTest/department") public class Depart...
273
https://github.com/geekpius/NewOshelter/blob/master/app/Http/Controllers/UserProfileController.php
Github Open Source
Open Source
MIT
null
NewOshelter
geekpius
PHP
Code
507
2,140
<?php namespace App\Http\Controllers; use DB; use Image; use App\User; use Illuminate\Http\Request; use App\UserModel\UserProfile; use App\UserModel\UserCurrency; use App\Currency; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; class UserProfileController extends Controller { public fu...
24,008
https://github.com/Rume7/Data-Structures-and-Algorithms-in-Java/blob/master/src/main/java/com/packt/datastructuresandalg/lesson2/stack/StringReverse.java
Github Open Source
Open Source
MIT
2,021
Data-Structures-and-Algorithms-in-Java
Rume7
Java
Code
57
189
package com.packt.datastructuresandalg.lesson2.stack; import java.util.Optional; public class StringReverse { public String reverse(String str) { StringBuilder result = new StringBuilder(); StackArray<Character> stack = new StackArray<>(100); for (char c : str.toCharArray()) s...
49,162
https://github.com/MDsolucoesTI/TesteIdoso/blob/master/BACI.Desk/BaseCadasView.Designer.cs
Github Open Source
Open Source
MIT
null
TesteIdoso
MDsolucoesTI
C#
Code
770
3,764
////////////////////////////////////////////////////////////////////////// // Criacao...........: 02/2018 // Sistema...........: Bateria de Avaliação Computadorizada para Idosos // Analistas.........: Marilene Esquiavoni & Denny Paulista Azevedo Filho // Desenvolvedores...: Marilene Esquiavoni & Denny Paulista Azevedo ...
36,444
https://github.com/ThomasDre/TicTacToe-0.1-RL/blob/master/src/Server.py
Github Open Source
Open Source
MIT
2,020
TicTacToe-0.1-RL
ThomasDre
Python
Code
342
1,055
""" A simple server that connects the reinforcement learning agent with a hosted (e.g. templates) representation of the game. A user can play the game in the browser and can -) provide samples for learning (TRAIN MODE) -) play a competitive game on the best level the agent is capable of (EVAL MODE) -) control and obse...
23,467
https://github.com/AutomotiveDevOps/mdf4-converters/blob/master/Library/Source/Blocks/DTBlock.cpp
Github Open Source
Open Source
MIT
null
mdf4-converters
AutomotiveDevOps
C++
Code
48
142
#include "DTBlock.h" namespace mdf { constexpr MdfHeader DTBlockHeader = { .blockType = MdfBlockType_DT, .blockSize = 24, .linkCount = 0 }; DTBlock::DTBlock() { header = DTBlockHeader; dataPtr = nullptr; } bool DTBlock::load(uint8_t const* dataPtr_) { ...
23,239
https://github.com/bartnie/wormhole/blob/master/internal/tlsutil/tlsutil.go
Github Open Source
Open Source
Apache-2.0
2,021
wormhole
bartnie
Go
Code
159
425
// Copyright © 2018 The wormhole-connector 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...
42,753
https://github.com/v0idv0id/PerspectiveTexture/blob/master/shaders/point_fs.glsl
Github Open Source
Open Source
MIT
2,021
PerspectiveTexture
v0idv0id
GLSL
Code
35
104
#version 330 core void main() { // Very simple GL_POINTS (which are squares) to circle shader. float diameter=0.8; //1.0 is max if (length(gl_PointCoord - vec2(0.5)) > diameter/2) discard; gl_FragColor = vec4(1.0, 0.0, 1.0, 0.1); }
30,545
https://github.com/guilleminio/paseoscaninos/blob/master/codigo/turnos.php
Github Open Source
Open Source
MIT
null
paseoscaninos
guilleminio
PHP
Code
260
1,480
<?php session_start(); if ( !isset($_SESSION['cliente_actual'])){ header('Location:login.php'); exit(); } include('backend/funcionesBD.php'); include('backend/config.php'); $conexion = conectarBD(); $turnos = null; $totalTurnos = 0; if ( $conexion['resultado']!=null){ $turnos = obtenerTurnos($conexion['resultado']...
50,249
https://github.com/pablogalve/Edu-Game-Engine/blob/master/Source/Imgui/imgui_color_gradient.h
Github Open Source
Open Source
Unlicense
null
Edu-Game-Engine
pablogalve
C
Code
230
887
// // imgui_color_gradient.h // imgui extension // // Created by David Gallardo on 11/06/16. /* Usage: ::GRADIENT DATA:: ImGradient gradient; ::BUTTON:: if(ImGui::GradientButton(&gradient)) { //set show editor flag to true/false } ::EDITOR:: static ImGradientMark* draggingMark = nullptr; static I...
11,394