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/chfanghr/backend/blob/master/raspi/arduinostyle.go
Github Open Source
Open Source
MIT
2,018
backend
chfanghr
Go
Code
146
339
package raspi //ArduinoInterface Just a Interface,please use Raspi if your project is not single-routine. var ArduinoInterface arduino type arduino struct{} //DigitalWrite Just like you are using arduino. func (arduino) DigitalWrite(pin, value uint8) { ptr, err := ExportPin(pin) if err != nil { return } ptr.Di...
2,540
https://github.com/xuanthoiqn44/journal/blob/master/models/UserSearchAdmin.php
Github Open Source
Open Source
BSD-3-Clause
null
journal
xuanthoiqn44
PHP
Code
190
731
<?php /** * Created by PhpStorm. * User: xuant * Date: 10/23/2018 * Time: 11:47 PM */ namespace app\models; use yii\data\ActiveDataProvider; use yii\data\Pagination; class UserSearchAdmin extends Editor { public $id; public $Status; public $Date_Create; public $Role; public $Email; publi...
42,315
https://github.com/fxbin/design-patterns/blob/master/chain-of-responsibility-pattern/src/main/java/cn/fxbin/learn/chain/lambda/HeaderTextProcessing.java
Github Open Source
Open Source
Apache-2.0
null
design-patterns
fxbin
Java
Code
40
109
package cn.fxbin.learn.chain.lambda; /** * HeaderTextProcessing * * @author fxbin * @version v1.0 * @since 2020/10/22 17:20 */ public class HeaderTextProcessing extends ProcessingObject<String> { @Override protected String handleWork(String text) { return "From Raoul, Mario and Alan: " + text; ...
28,009
https://github.com/wpreimes/qa4sm/blob/master/UI/src/app/modules/validation-result/components/publishing/publishing.component.ts
Github Open Source
Open Source
MIT
2,022
qa4sm
wpreimes
TypeScript
Code
165
754
import {Component, Input, OnInit} from '@angular/core'; import {Observable} from 'rxjs'; import {ModalWindowService} from '../../../core/services/global/modal-window.service'; import {ValidationrunService} from '../../../core/services/validation-run/validationrun.service'; import {HttpParams} from '@angular/common/http...
21,068
https://github.com/holmes07/pulsar-beat-output/blob/master/vendor/github.com/aws/aws-sdk-go-v2/service/mediaconvert/api_op_DeletePreset.go
Github Open Source
Open Source
Apache-2.0
null
pulsar-beat-output
holmes07
Go
Code
440
1,262
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package mediaconvert import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" "github.com/aws/aws-sdk-go-v2/private/protocol" ) // Delete a preset by sending a request with the preset name // Please...
47,767
https://github.com/artzlt/top52/blob/master/engines/support/app/views/support/admin/reply_templates/_form.html.slim
Github Open Source
Open Source
MIT
2,021
top52
artzlt
null
Spoken
22
72
= bootstrap_form_for [:admin, @reply_template], layout: :horizontal do |f| = f.text_field :subject = f.text_area :message, rows: 5 = f.form_group do = f.submit t("actions.save")
51,191
https://github.com/gchumillas-dev/CRUD/blob/master/src/components/ProtectedRoute.tsx
Github Open Source
Open Source
MIT
null
CRUD
gchumillas-dev
TypeScript
Code
68
152
import React from 'react' import { Route, Redirect, RouteProps } from 'react-router-dom' type Props = RouteProps & { token: string } export default ({ component: Component, token, ...rest }: Props) => { if (!Component) return null return ( <Route {...rest} render={props => { const refer...
20,058
https://github.com/ashokponkumar/mig-controller/blob/master/vendor/google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta/web_security_scanner.pb.go
Github Open Source
Open Source
Apache-2.0
2,022
mig-controller
ashokponkumar
Go
Code
6,445
23,864
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package websecurityscanner import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" empty "github.com/golang/protobuf/ptypes/empty" _ "google.golang.org...
23,325
https://github.com/bendewey/posm-build/blob/master/kickstart/etc/systemd/system/clusterodm.service.hbs
Github Open Source
Open Source
BSD-3-Clause
null
posm-build
bendewey
null
Spoken
45
211
[Unit] Description=ClusterODM After=docker.service Requires=docker.service [Service] Restart=always ExecStartPre=-/usr/bin/docker kill %n ExecStartPre=-/usr/bin/docker rm %n ExecStart=/bin/bash -c "docker run \ --init \ --rm \ --name %n \ --tmpfs /tmp \ --network host \ -v /etc/clusterodm.json:...
2,952
https://github.com/caprowsky/cosmomed/blob/master/web/wp-content/themes/septera/functions.php
Github Open Source
Open Source
MIT
2,019
cosmomed
caprowsky
PHP
Code
182
471
<?php /** * Functions file - Calls all other required files * * PLEASE DO NOT EDIT THEME FILES DIRECTLY * unless you are prepared to lose all changes on the next update * * @package Septera */ // theme identification and options management - do NOT edit unless you know what you are doing define ( "_CRYOUT_THEME...
27,680
https://github.com/brianadam18/e-learing/blob/master/application/modules/akademik/models/Mcourse.php
Github Open Source
Open Source
Apache-2.0
null
e-learing
brianadam18
PHP
Code
366
1,652
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Mata Kuliah Crud Model * * @package Bag. Akademik * @category Akademik or Super Admin * @see https://github.com/nitinegoro/siakad-terpadu * @author Vicky Nitinegoro **/ class Mcourse extends CI_Model { public function __construct() ...
22,952
https://github.com/idf/RecipeIngredients/blob/master/data_cleaning/raw_data/Healthyrecipevideos/Healthy Recipes-Lettuce Wrapped Turkey Muffins [English] (1).srt
Github Open Source
Open Source
Apache-2.0, MIT
2,015
RecipeIngredients
idf
null
Spoken
618
2,031
https://www.youtube.com/watch?v=Qt5sv0nfyZE 1 00:00:02,029 --> 00:00:05,034 how help 2 00:00:05,079 --> 00:00:08,468 with today shop 3 00:00:09,179 --> 00:00:13,570 I know there are a lot 4 00:00:13,057 --> 00:00:17,091 this is just my it's pretty simple 5 00:00:17,091 --> 00:00:21,188 very versatile sums show you ...
35,962
https://github.com/guled-flutter/pisp-demo-app-flutter/blob/master/lib/controllers/ephemeral/dashboard/account_dashboard_controller.dart
Github Open Source
Open Source
Apache-2.0
2,021
pisp-demo-app-flutter
guled-flutter
Dart
Code
107
501
import 'package:get/get.dart'; import 'package:pispapp/controllers/app/account_controller.dart'; import 'package:pispapp/controllers/app/auth_controller.dart'; import 'package:pispapp/models/account.dart'; import 'package:pispapp/models/transaction.dart'; import 'package:pispapp/repositories/interfaces/i_transaction_re...
47,103
https://github.com/fastfishio/camel/blob/master/components/camel-mllp/src/test/java/org/apache/camel/component/mllp/impl/MllpSocketUtilExceptionHandlingTest.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-unknown, Apache-2.0
2,020
camel
fastfishio
Java
Code
389
973
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
23,143
https://github.com/seanmcelroy/McNNTP/blob/master/McNNTP.Core/Server/NNTP/NntpConnection.cs
Github Open Source
Open Source
MIT
2,022
McNNTP
seanmcelroy
C#
Code
10,069
33,179
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Connection.cs" company="Sean McElroy"> // Copyright Sean McElroy, 2014. All rights reserved. // </copyright> // <summary> // A connection from a client to the server // </sum...
30,032
https://github.com/lindig/manual-ocamlbuild/blob/master/ocamlbuild.1
Github Open Source
Open Source
LicenseRef-scancode-public-domain, CC0-1.0
2,016
manual-ocamlbuild
lindig
null
Spoken
623
1,597
.\" .\" Alternative Unix manual page for ocamlbuild(1) .\" written by Christian Lindig <lindig@gmail.com> .\" This file is in the Public Domain 02. October 2015 .\" .\" nroff -man ocamlbuild.1 .\" groff -man -Tps ocamlbuild.1 > ocamlbuild.ps .\" .TH OCAMLBUILD 1 .SH "NAME" ocamlbuild \- compilation manager for OCaml...
36,388
https://github.com/jhu-lcsr/good_robot/blob/master/learning/modules/dbg_writer.py
Github Open Source
Open Source
BSD-2-Clause
2,022
good_robot
jhu-lcsr
Python
Code
357
1,296
from data_io.results import save_results_extra_image, save_results_extra_gif from torch.autograd import Variable from learning.inputs.vision import torch_to_np from data_io.env import load_env_img from visualization import Presenter def get_map_overlaid(img, env_id): env_img = load_env_img(env_id, width=256, hei...
43,968
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/apollo-env/src/main/scala/typingsSlinky/apolloEnv/objectMod.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
95
370
package typingsSlinky.apolloEnv import typingsSlinky.apolloEnv.arrayMod.global.Array import typingsSlinky.std.Record import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object obje...
11,929
https://github.com/rexlee8776/mep-plugtest-robot-test/blob/master/SRV/UEAREASUB/PlatUeAreaSubscription.robot
Github Open Source
Open Source
BSD-3-Clause
null
mep-plugtest-robot-test
rexlee8776
null
Spoken
316
956
*** Settings *** Documentation ... A test suite for validating UE Area Subscribe (UEAREASUB) operations. Resource ../../GenericKeywords.robot Resource environment/variables.txt Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false Library OperatingSystem Default Tags TC_MEC_SRV_UEAREAS...
8,678
https://github.com/zaaack/mongo-tx/blob/master/lib/errors/index.js
Github Open Source
Open Source
MIT
2,017
mongo-tx
zaaack
JavaScript
Code
291
1,305
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.RollbackError = exports.CommitError = exports.RetryableError = exports.LockedWaitTimeoutError = exports.LockedError = undefined; var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 ...
30,326
https://github.com/deanvhin2/KELURAHAN/blob/master/themes/klasik/partials/analisis.php
Github Open Source
Open Source
Apache-2.0
2,021
KELURAHAN
deanvhin2
PHP
Code
206
891
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); ?> <script type="text/javascript"> $(document).ready(function() { hiRes (); }); var chart; function hiRes () { chart = new Highcharts.Chart({ chart: { renderTo: 'chart', border:0, defaultSeriesType: 'column' }, title:...
25,076
https://github.com/cash0202/SparkMultiTool/blob/master/src/test/scala/ru/retailrocket/spark/multitool/FunctionsSuite.scala
Github Open Source
Open Source
MIT
2,020
SparkMultiTool
cash0202
Scala
Code
361
1,500
package ru.retailrocket.spark.multitool import org.scalatest._ import java.nio.file.FileAlreadyExistsException import org.apache.spark.SparkContext import org.apache.spark.SparkContext._ import org.apache.spark.SparkConf import org.apache.spark.rdd._ import scala.util._ import Implicits._ object Helpers { def f(...
2,727
https://github.com/Yoshi-islands/SortingVisualizer/blob/master/src/Sorting/Merge.js
Github Open Source
Open Source
MIT
2,021
SortingVisualizer
Yoshi-islands
JavaScript
Code
372
834
import {sleep} from './Timer'; import timerScale from './TimerScale'; import sortValidation from './SortValidation'; //This function will merge the arrays const merge = async (left, right, leftLimit, rightLimit, sorted, buffer, setIndex, setFollowingIndex) => { let i = left; //Compare the two sub arrays and mer...
53,490
https://github.com/anthill-gaming/anthill-admin/blob/master/ui/themes/limitless/static/less/components/plugins/forms/wizards/form.less
Github Open Source
Open Source
MIT
2,018
anthill-admin
anthill-gaming
Less
Code
127
381
/* ------------------------------------------------------------------------------ * * # Form wizard * * jQuery plugin which turns a form into a multistep wizard * * Version: 1.1 * Latest update: Mar 10, 2016 * * ---------------------------------------------------------------------------- */ // Core // ------------...
54,535
https://github.com/mba811/quicklook-rest-with-nim/blob/master/external/lazy_rest-0.2.0-c-sources-macosx-amd64-release/cgi.c
Github Open Source
Open Source
MIT
2,015
quicklook-rest-with-nim
mba811
C
Code
361
1,423
/* Generated by Nimrod Compiler v0.9.6 */ /* (c) 2014 Andreas Rumpf */ /* The generated code is subject to the original license. */ #define NIM_INTBITS 64 #include "nimbase.h" #include <string.h> typedef struct tstringtable127812 tstringtable127812; typedef struct NimStringDesc NimStringDesc; typedef struct TGeneric...
3,161
https://github.com/mikiec84/OpenSPIFe/blob/master/gov.nasa.ensemble.core.plan/src/gov/nasa/ensemble/core/plan/parameters/DoubleParameterSerializer.java
Github Open Source
Open Source
Apache-2.0
2,022
OpenSPIFe
mikiec84
Java
Code
198
457
/******************************************************************************* * Copyright 2014 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
11,116
https://github.com/aryankarim/react-hooks-redux-combine-reducers/blob/master/src/features/authors/authorsSlice.js
Github Open Source
Open Source
LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference
2,021
react-hooks-redux-combine-reducers
aryankarim
JavaScript
Code
102
274
import { v4 as uuid } from "uuid"; export const addAuthor = (author) => { return { type: "authors/add", payload: author, }; }; export const removeAuthor = (id) => { return { type: "authors/remove", payload: id, }; }; // Reducers const initialState = []; export defa...
5,780
https://github.com/University-of-Petroleum-Energy-Studies/Hackathon_5.0/blob/master/T107/COVIFY/lib/ui/faq/faq_screen.dart
Github Open Source
Open Source
MIT
2,021
Hackathon_5.0
University-of-Petroleum-Energy-Studies
Dart
Code
36
161
import 'package:flutter/material.dart'; import 'package:responsive_builder/responsive_builder.dart'; import 'package:covid19/ui/faq/faq_screen_mobile.dart'; import 'package:covid19/ui/faq/faq_screen_desktop.dart'; class FAQScreen extends StatelessWidget { @override Widget build(BuildContext context) { return ...
29,948
https://github.com/Ash-K/trex-stateless-gui/blob/master/src/test/java/com/exalttech/trex/ui/matchers/ComboBoxMatchers.java
Github Open Source
Open Source
Apache-2.0
2,018
trex-stateless-gui
Ash-K
Java
Code
116
320
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.exalttech.trex.ui.matchers; import javafx.scene.Node; import javafx.scene.control.ComboBox; import org.hamcrest.Matcher; i...
38,166
https://github.com/massi-ang/CfnCustomCertificateResource/blob/master/cmd/resource/resource.go
Github Open Source
Open Source
Apache-2.0
null
CfnCustomCertificateResource
massi-ang
Go
Code
809
2,413
// Copyright 2020 Amazon.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 // // Unless required by applicable law or agreed to in w...
46,013
https://github.com/aabarmin/epam-microservices-training-2021/blob/master/microservices/microservice-drugs/src/main/java/com/epam/training/miservices/services/drugs/model/DrugCreation.java
Github Open Source
Open Source
Apache-2.0
2,022
epam-microservices-training-2021
aabarmin
Java
Code
126
400
package com.epam.training.miservices.services.drugs.model; import com.google.common.collect.Sets; import lombok.Data; import javax.persistence.*; import java.util.Set; /** * An information about creation of the drug for the particular disease. */ @Data @Entity @Table(name = "drug_creation") public class DrugCreat...
14,844
https://github.com/stpsomad/thesis/blob/master/pointcloud/run/queryCplusplus.py
Github Open Source
Open Source
0BSD
2,019
thesis
stpsomad
Python
Code
159
536
# -*- coding: utf-8 -*- """ Created on Fri May 06 14:11:41 2016 @author: Stella Psomadaki """ import os import time from tabulate import tabulate from pointcloud.cppQuerierOnlySFC import Querier import pointcloud.oracleTools as ora ########################### ### Setup Variables ### ########################### d...
9,506
https://github.com/felipecsl/saasquatch/blob/master/app/models/ability.rb
Github Open Source
Open Source
MIT
2,011
saasquatch
felipecsl
Ruby
Code
68
168
class Ability include CanCan::Ability def initialize(user) user ||= User.new # guest user (not logged in) if user.role.name == Role::ROLES[:admin] can :manage, Account, id: user.account.id # admin can manage only his own account can :manage, User, account_id: user.account.id # admin can manage...
412
https://github.com/maxgaurav/kafka-php/blob/master/src/SocketSync.php
Github Open Source
Open Source
Apache-2.0
2,022
kafka-php
maxgaurav
PHP
Code
117
362
<?php declare(strict_types=1); namespace Kafka; use function fclose; use function is_resource; use function rewind; use function stream_set_blocking; class SocketSync extends CommonSocket { public function connect(): void { if (is_resource($this->stream)) { return; } $thi...
18,416
https://github.com/fulcrumgenomics/fgbio/blob/master/src/test/scala/com/fulcrumgenomics/vcf/MakeMixtureVcfTest.scala
Github Open Source
Open Source
MIT
2,023
fgbio
fulcrumgenomics
Scala
Code
1,191
4,470
/* * The MIT License * * Copyright (c) 2017 Fulcrum Genomics LLC * * 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 us...
40,053
https://github.com/emilybache/texttest-runner/blob/master/src/main/python/lib/default/runtest.py
Github Open Source
Open Source
MIT
null
texttest-runner
emilybache
Python
Code
1,516
5,127
""" Action for running a test locally or on a remote machine """ import plugins, os, logging, subprocess, sys, signal, pipes from time import sleep from threading import Lock, Timer from jobprocess import killSubProcessAndChildren plugins.addCategory("killed", "killed", "were terminated before completion") class Ru...
27,133
https://github.com/mal90/mal90.github.io/blob/master/src/components/menu-item.js
Github Open Source
Open Source
MIT
null
mal90.github.io
mal90
JavaScript
Code
30
93
import React from "react"; import { Link } from "react-router-dom"; class MenuItem extends React.Component { render() { return ( <li className="menu-item"> <Link to={this.props.redirect}>{this.props.name}</Link> </li> ); } } export default MenuItem;
23,970
https://github.com/161710168/pkl1/blob/master/resources/views/frontend/kontak.blade.php
Github Open Source
Open Source
MIT
null
pkl1
161710168
PHP
Code
845
4,501
<!DOCTYPE html> <html lang="en"> <head> <title>Contact</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="Elearn project"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="{{ asset('style...
3,703
https://github.com/Ashikur37/easy_ashik/blob/master/database/migrations/2020_11_21_070804_create_notification_settings_table.php
Github Open Source
Open Source
MIT
2,021
easy_ashik
Ashikur37
PHP
Code
88
735
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateNotificationSettingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('no...
13,994
https://github.com/k-water/N3-components/blob/master/src/style/close.less
Github Open Source
Open Source
MIT
2,022
N3-components
k-water
Less
Code
47
172
.@{prefix-cls}-close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: @blackColor; text-shadow: 0 1px 0 @whiteColor; opacity: .2; outline: none; &:hover, &:focus { color: @blackColor; text-decoration: none; cursor: pointer; opacity: .5; } } button.@{pre...
31,648
https://github.com/iantal/AndroidPermissions/blob/master/apks/comparison_androart/ro.btrl.pay/app/smali/o/s.smali
Github Open Source
Open Source
Apache-2.0
2,019
AndroidPermissions
iantal
Smali
Code
51
230
.class public final Lo/s; .super Ljava/lang/Object; .source "" # direct methods .method public static ˏ(Landroid/view/View;I)V .locals 2 .line 30 invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 move-object v1, v0 check-...
11,661
https://github.com/saloob/Scalastica/blob/master/api/classes/controllers/CategoriesController.php
Github Open Source
Open Source
MIT
2,019
Scalastica
saloob
PHP
Code
1,040
4,839
<?php ############################################## # Scalastica # Author: Matthew Edmond, Saloob # Date: 2014-12-08 # Page: api.php ########################################################## # case 'CategoriesController': mb_language('uni'); mb_internal_encoding('UTF-8'); class CategoriesController extends Abstrac...
53,135
https://github.com/GlebMaca/olso-vue/blob/master/styles/layouts/signUp.scss
Github Open Source
Open Source
Apache-2.0
2,021
olso-vue
GlebMaca
SCSS
Code
191
706
@import '~foundation-sites/scss/foundation'; [type='text'] { background-color: #fff; } .newsletter { padding: 3% 0; background-size: cover; .call-to-action { margin: 0 3% auto 3%; text-align: center; h4 { font-size: 18px; font-weight: 800; color: #fff; text-transform: uppercase; transiti...
24,493
https://github.com/tapika/ILSpy/blob/master/ILSpy/ViewModels/LegacyToolPaneModel.cs
Github Open Source
Open Source
MIT
2,021
ILSpy
tapika
C#
Code
71
212
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace ICSharpCode.ILSpy.ViewModels { internal enum LegacyToolPaneLocation { Top, Bottom } internal class LegacyToolPaneModel : ToolPaneModel { public LegacyToolPane...
24,434
https://github.com/shangsandalaohu123/vscode-live-server-plus-plus/blob/master/src/core/types/IApplyMiddlware.ts
Github Open Source
Open Source
MIT
2,021
vscode-live-server-plus-plus
shangsandalaohu123
TypeScript
Code
19
45
import { IncomingMessage, ServerResponse } from 'http'; export type IMiddlewareTypes = ( req: IncomingMessage, res: ServerResponse ) => any;
43,748
https://github.com/tenhsor1/jukebuzz-front/blob/master/app/app.js
Github Open Source
Open Source
MIT
null
jukebuzz-front
tenhsor1
JavaScript
Code
306
1,293
'use strict'; // Declare app level module which depends on views, and components angular.module('jukebuzz', [ 'ngStorage', 'ngRoute', 'ngMessages', 'ui.router', 'jukebuzz.home', 'jukebuzz.signup', 'jukebuzz.panel', ]) .constant('urls', { BASE: 'http://localhost:9001/app', BASE_API: 'http://...
15,858
https://github.com/shishupal082/project/blob/master/java/Communication/src/main/java/com/project/communication/obj/ProtocolConfig.java
Github Open Source
Open Source
Unlicense
2,022
project
shishupal082
Java
Code
199
528
package com.project.communication.obj; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.ArrayList; @JsonIgnoreProperties(ignoreUnknown = true) public class ProtocolConfig { private String name; private String application; private String type; private int clientPort; ...
7,337
https://github.com/i2xzy/phylogeny-graphql-server/blob/master/src/data/tree.ts
Github Open Source
Open Source
MIT
null
phylogeny-graphql-server
i2xzy
TypeScript
Code
221
874
import { RESTDataSource } from 'apollo-datasource-rest'; class TreeAPI extends RESTDataSource { constructor() { super(); this.baseURL = 'https://api.opentreeoflife.org/v3/'; } async getTree({ id, depth }) { const response = await this.post('tree_of_life/subtree', { node_id: id, format: '...
16,322
https://github.com/gradle/perf-native-large/blob/master/project860/src/component1078/headers/component1078/lib223.h
Github Open Source
Open Source
Apache-2.0
2,016
perf-native-large
gradle
C
Code
9
61
#ifndef PROJECT_HEADER_component1078_223_H #define PROJECT_HEADER_component1078_223_H int component1078_223(); #endif // PROJECT_HEADER_component1078_223_H
24,604
https://github.com/victorhgoli/hifood-api/blob/master/src/main/java/com/hifood/infrastructure/repository/service/email/FakeEnvioEmailService.java
Github Open Source
Open Source
MIT
null
hifood-api
victorhgoli
Java
Code
29
130
package com.hifood.infrastructure.repository.service.email; import lombok.extern.slf4j.Slf4j; @Slf4j public class FakeEnvioEmailService extends SmtpEnvioEmailService { @Override public void enviar(Mensagem mensagem) { String corpo = processarTemplate(mensagem); log.info("[FAKE E-MAIL] Para: {}\n{}", mensagem....
124
https://github.com/chogba6/ONE/blob/master/compute/ARMComputeEx/arm_compute/runtime/CL/functions/CLSplitVEx.h
Github Open Source
Open Source
Apache-2.0
2,022
ONE
chogba6
C
Code
475
963
/* * Copyright (c) 2020 Samsung Electronics 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 * * Unle...
3,543
https://github.com/Lisaveta-K/lisaveta-k.github.io/blob/master/_site/tomat/static/less/components/entities/delivery.less
Github Open Source
Open Source
MIT
null
lisaveta-k.github.io
Lisaveta-K
Less
Code
48
213
.delivery-list { section { h1 { margin-bottom: 26px; } ul { .list-unstyled; } li { .row; border-bottom: 1px solid @gray-lighter; padding-top: 20px; padding-bottom: 20px; &:last-child { border-bottom: 0; } } div.image { .col-2; text-align: center; padding-top: 10p...
9,465
https://github.com/EGA-archive/ega-htsjdk/blob/master/src/main/java/htsjdk/samtools/seekablestream/FakeSeekableStream.java
Github Open Source
Open Source
LGPL-2.0-or-later, Apache-2.0, MIT, LicenseRef-scancode-public-domain
2,020
ega-htsjdk
EGA-archive
Java
Code
274
612
/* * Copyright 2016 ELIXIR EGA * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
31,659
https://github.com/HondryTravis/TinyDB/blob/master/src/core/TinyDB.ts
Github Open Source
Open Source
MIT
2,021
TinyDB
HondryTravis
TypeScript
Code
794
2,517
import Table from "./Table"; import { ITinyDB } from "./types/index"; const win = (typeof window == "undefined" ? global : window); const IN_DB = win.indexedDB export default class TinyDB { private dbName: string; private version: number; private db: IDBDatabase static of() { return new TinyDB } con...
48,938
https://github.com/ttay24/HiveWE/blob/master/Camera.cpp
Github Open Source
Open Source
MIT
null
HiveWE
ttay24
C++
Code
531
1,792
#include "Camera.h" #include "HiveWE.h" #include "InputHandler.h" void Camera::reset() { position = glm::vec3(map->terrain.width / 2, map->terrain.height / 2, 0); position.z = map->terrain.interpolated_height(position.x, position.y); distance = 20; horizontal_angle = 0.0; vertical_angle = -0.977; update(0); } ...
51,133
https://github.com/stawi/cobol85parser/blob/master/src/main/java/io/proleap/cobol/asg/metamodel/call/impl/TableCallImpl.java
Github Open Source
Open Source
MIT
null
cobol85parser
stawi
Java
Code
166
677
/* * Copyright (C) 2017, Ulrich Wolffgang <ulrich.wolffgang@proleap.io> * All rights reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ package io.proleap.cobol.asg.metamodel.call.impl; import java.util.ArrayList; import java.ut...
3,095
https://github.com/niexiaofei1988/hello/blob/master/examples/charts/src/components/GanttTree/ScaleLine/index.less
Github Open Source
Open Source
MIT
null
hello
niexiaofei1988
Less
Code
53
184
.wrapper { display: inline-flex; width: 100%; margin-top: 5px; border-top: 1px red solid; .tick { font-size: 12px; color: #999; display: inline-block; padding-top: 8px; flex: 1; transform: scale(0.75) translateY(-3px); position: relative; user-select: none; text-align: cen...
32,597
https://github.com/ferreiramarcelo/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/NewCopyWithDefaultVersion.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown, BSD-3-Clause, ICU, LicenseRef-scancode-free-unknown, LGPL-2.1-only, CDDL-1.0, MIT, EPL-1.0, Classpath-exception-2.0, MPL-1.0, LGPL-2.1-or-later, LicenseRef-scancode-unknown-license-reference, GPL-2.0-only, LGPL-2.0-only
2,021
product-apim
ferreiramarcelo
Java
Code
466
2,206
/* * * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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....
25,792
https://github.com/wook1982/aFox/blob/master/module/page/tpl/default.php
Github Open Source
Open Source
MIT
2,018
aFox
wook1982
PHP
Code
50
223
<?php if(!defined('__AFOX__')) exit(); $pg_content = toHTML($PAGE['pg_content'], $PAGE['pg_type']); echo preg_replace('/(<img[^>]*\s+)(src)(\s*=[^>]*>)/is', '\\1data-scroll-src\\3', $pg_content); ?> <?php if(isAdmin(__MID__)) { ?> <div class="clearfix"> <div class="pull-right"> <a href="<?php echo getUrl('disp','se...
34,519
https://github.com/EkkoZ7/easy-buy/blob/master/src/main/java/com/ekko/easy/buy/service/impl/OrderServiceImpl.java
Github Open Source
Open Source
Apache-2.0
null
easy-buy
EkkoZ7
Java
Code
84
393
package com.ekko.easy.buy.service.impl; import com.ekko.easy.buy.domain.Order; import com.ekko.easy.buy.domain.OrderDetail; import com.ekko.easy.buy.mapper.OrderDetailMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; import com.ekko.easy.buy.mapper.OrderMapper; import com.ekko.ea...
38,770
https://github.com/eric1338/ThesisCode/blob/master/Game/Muell/Hitboxes.cs
Github Open Source
Open Source
MS-PL
null
ThesisCode
eric1338
C#
Code
139
534
using GameApp.Levels; using OpenTK; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GameApp.Physics { class Hitboxes { // TODO: Werte auslagern public static List<Tuple<Collectible, Hitbox>> GetCollectiblesWithHitboxes(Level level) ...
28,201
https://github.com/xxg1413/oneflow/blob/master/oneflow/python/benchmarks/bert_benchmark/run_pretraining.py
Github Open Source
Open Source
Apache-2.0
2,021
oneflow
xxg1413
Python
Code
708
3,678
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
35,418
https://github.com/Catfeeds/wanwan/blob/master/application/home/controller/Index.php
Github Open Source
Open Source
Apache-2.0
2,018
wanwan
Catfeeds
PHP
Code
37
136
<?php namespace app\home\controller; use app\home\logic\GoodsLogic; use think\Session; class Index extends Base { public function index() { // 如果是手机跳转到 手机模块 if(true == request()->isMobile()){ header("Location: ".url('mobile/activity/new_activity')); exit; } ...
17,755
https://github.com/rongjiecomputer/BuildXL/blob/master/Public/Src/Cache/ContentStore/Library/Stores/ContentStoreSettings.cs
Github Open Source
Open Source
MIT
null
BuildXL
rongjiecomputer
C#
Code
443
900
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; namespace BuildXL.Cache.ContentStore.Stores { /// <summary> /// Configuration object for <see cref="FileSystemContentStore"/> and <see cref="Fil...
44,377
https://github.com/Yiniau/alist/blob/master/packages/next-components/src/components/ExpandTrigger.tsx
Github Open Source
Open Source
MIT
2,018
alist
Yiniau
TypeScript
Code
114
319
import React from 'react' import { ExpandTrigger } from '@alist/react' import { createVirtualBox, createControllerBox, FormSpy } from '@formily/next' import { Button } from '@alifd/next' const InternalExpandTrigger = (props) => { const { render, expandText, unExpandText, ...others } = props return <FormSpy se...
17,784
https://github.com/RyanTorant/simple-physx/blob/master/PhysX_3.4/Source/LowLevelParticles/include/PtParticleContactManagerStream.h
Github Open Source
Open Source
Unlicense
2,019
simple-physx
RyanTorant
C
Code
670
2,166
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
23,709
https://github.com/Slack-ZooMass/songgen-iOS/blob/master/Spotify.framework/Versions/A/Headers/SPTSavedTrack.h
Github Open Source
Open Source
MIT
2,022
songgen-iOS
Slack-ZooMass
C
Code
129
260
/* Copyright 2015 Spotify AB Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
16,197
https://github.com/Jatinder-Luthra/dxtoolkit/blob/master/test/test_dsource_mssql_1/sourceconfig/MSSQL_SINGLE_CONFIG-24/validateCredentials.json.1
Github Open Source
Open Source
Apache-2.0
2,021
dxtoolkit
Jatinder-Luthra
null
Spoken
17
47
{ "status" : "OK", "job" : null, "type" : "OKResult", "action" : null, "result" : "" }
45,084
https://github.com/thorlaguna/proyectoEDD/blob/master/.import/Player_Idle_Axe_Defence1_1.png-cb0e354f3bff2e01e479246790d05faf.md5
Github Open Source
Open Source
CC0-1.0
2,019
proyectoEDD
thorlaguna
null
Spoken
2
50
source_md5="136cfd15928ec2869a649fbe707e9a35" dest_md5="4709a380001bcba4ee8057278c78b64b"
16,352
https://github.com/luo532046043/skywalking/blob/master/apm-collector/apm-collector-boot/bin/startup.sh
Github Open Source
Open Source
Apache-2.0
2,019
skywalking
luo532046043
Shell
Code
9
55
#!/usr/bin/env sh PRG="$0" PRGDIR=`dirname "$PRG"` EXECUTABLE=collectorService.sh exec "$PRGDIR"/"$EXECUTABLE" start
35,011
https://github.com/aconstlink/natus/blob/master/format/stb/stb_module.cpp
Github Open Source
Open Source
MIT
null
natus
aconstlink
C++
Code
1,162
3,906
#include "stb_module.h" #include "../future_items.hpp" #include <natus/font/structs.h> #include <natus/io/database.h> #include <natus/memory/guards/malloc_guard.hpp> #include <natus/graphics/texture/image.hpp> #include <natus/math/vector/vector4.hpp> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #includ...
48,715
https://github.com/krishnakpandian/CSE-115/blob/master/src/components/Signup/firebaseConfig.tsx
Github Open Source
Open Source
Apache-2.0
null
CSE-115
krishnakpandian
TypeScript
Code
33
186
import firebase from 'firebase'; export const firebaseConfig = { apiKey: process.env.REACT_APP_APIKEY, authDomain: process.env.REACT_APP_AUTHDOMAIN, projectId: process.env.REACT_APP_PROJECTID, storageBucket: process.env.REACT_APP_STORAGEBUCKET, messagingSenderId: process.env.REACT_APP_MESSAGINGSENDERID, ap...
45,127
https://github.com/okumakito/dnb-tsod/blob/master/scripts/plot_figS2.py
Github Open Source
Open Source
MIT
null
dnb-tsod
okumakito
Python
Code
105
446
def plot_figS2(file_name, width=6, height=6): df = pd.read_csv(file_name, sep='\t', usecols=['Category', 'Term', 'Count']) df = df.sort_values(by='Count', ascending=False).iloc[:10] category = df['Category'].iat[0] if 'GO' in category: df['Term'] = df['Term'].str.split('~').str[1] la...
52,815
https://github.com/m-laniakea/st_spin/blob/master/stspin/constants/register.py
Github Open Source
Open Source
MIT
2,022
st_spin
m-laniakea
Python
Code
198
664
from typing import ( Dict, ) from typing_extensions import ( Final, ) class Register: Acc: Final = 0x05 AdcOut: Final = 0x12 AlarmEn: Final = 0x17 Dec: Final = 0x06 Config: Final = 0x18 KTherm: Final = 0x11 KvalAcc: Fi...
34,797
https://github.com/charmaineleehc/addressbook-level4/blob/master/src/main/java/seedu/address/model/job/JobNumber.java
Github Open Source
Open Source
MIT, LicenseRef-scancode-other-permissive
2,018
addressbook-level4
charmaineleehc
Java
Code
113
270
package seedu.address.model.job; //@@author whenzei /** * Represent a job number in the servicing manager */ public class JobNumber { private static int nextJobNumber; public final String jobNumber; public JobNumber() { jobNumber = Integer.toString(nextJobNumber); incrementNextJobNumber...
31,132
https://github.com/lamter/holygrail/blob/master/tests/conftest.py
Github Open Source
Open Source
Apache-2.0
null
holygrail
lamter
Python
Code
112
542
# codint:utf-8 import pymongo import pytest import logging.config logging.config.fileConfig('../tmp/logging.ini') from configparser import ConfigParser @pytest.fixture(scope='session', autouse=True) def config(): config = ConfigParser() config.read('../tmp/config.ini') return config @pytest.fixture(scop...
39,621
https://github.com/flyghost/OneOS-V2.1.0/blob/master/thirdparty/MicroPython/user/machine/device_bus_model/model_def.h
Github Open Source
Open Source
Apache-2.0
null
OneOS-V2.1.0
flyghost
C
Code
300
969
#ifndef __MODEL_DEF_H__ #define __MODEL_DEF_H__ #if defined(__CC_ARM) || defined(__CLANG_ARM) /* ARM Compiler */ #include <stdarg.h> #define SECTION(x) __attribute__((section(x))) #define OS_UNUSED __attribute__((unused)) #define OS_USED __attribute__((used)) #define ALIGN(n) __attribute__((aligned(n))) #defin...
51,047
https://github.com/Zz-m/algorithmWorks/blob/master/src/main/java/cn/denghanxi/leetcode/q8/Solution.java
Github Open Source
Open Source
MIT
2,022
algorithmWorks
Zz-m
Java
Code
173
386
package cn.denghanxi.leetcode.q8; public class Solution { public int myAtoi(String s) { if (s == null) return 0; s = s.trim(); //removes leading spaces. if (s.length() == 0) return 0; int sign = 1; long ans = 0; //Take long here because ans might exceed MAX/MIN. in...
10,129
https://github.com/utopios/CSharpSofTeam/blob/master/Heritage/Classes/Chien.cs
Github Open Source
Open Source
MIT
null
CSharpSofTeam
utopios
C#
Code
82
229
using System; using System.Collections.Generic; using System.Text; namespace Heritage.Classes { class Chien : Mammifere { private string nomChien; private string typeChien; public Chien(string nomChien, string typeChien) : base(nomChien, typeChien) { this.nomChien ...
38,564
https://github.com/fsuipc-node/api/blob/master/src/lib/convert/mappings/lights.ts
Github Open Source
Open Source
MIT
2,022
api
fsuipc-node
TypeScript
Code
56
145
const Lights = ['nav', 'beacon', 'land', 'taxi', 'strobe', 'panel', 'recognition', 'wing', 'logo', 'cabin']; export const lightsMapping = (values: number[]): { [key: string]: boolean } => { const lights: { [key: string]: boolean } = {}; values.forEach((value, index) => { const lightName: string = Lights[index...
32,929
https://github.com/inveniosoftware/invenio-formatter/blob/master/invenio_formatter/ext.py
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
invenio-formatter
inveniosoftware
Python
Code
191
699
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Jinja utilities for Invenio.""" from __future__ import absolute_import, print_fun...
28,757
https://github.com/sinksmell/loadbalancer-provider/blob/master/core/pkg/arp/cache_darwin.go
Github Open Source
Open Source
Apache-2.0
2,019
loadbalancer-provider
sinksmell
Go
Code
261
665
/* Copyright 2017 Caicloud authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
16,317
https://github.com/neoplacer/Core/blob/master/core/default/admin/themes.php
Github Open Source
Open Source
MIT
2,017
Core
neoplacer
PHP
Code
25
145
<?php $template->getAdminHeader(); ?> <div class="container"> <div class="row"> <div class="col-md-12"> <h3>Themes</h3> </div> </div> <div class="row"> <div class="col-md-12"> <?php print_r($themes); ?> </div> </div> </div> <?php $template->getAdminFooter(); ?>
9,722
https://github.com/vwasm/hera/blob/master/cmake/ProjectWabt.cmake
Github Open Source
Open Source
Apache-2.0
null
hera
vwasm
CMake
Code
58
499
if(ProjectWabtIncluded) return() endif() set(ProjectWabtIncluded TRUE) include(ExternalProject) set(prefix ${CMAKE_BINARY_DIR}/deps) set(source_dir ${prefix}/src/wabt) set(binary_dir ${prefix}/src/wabt-build) set(include_dir ${source_dir}) set(wabt_library ${binary_dir}/${CMAKE_STATIC_LIBRARY_PREFIX}wabt${CMAKE_S...
37,250
https://github.com/BrainWiggans/Ellie-Language/blob/master/parser/src/processors/class_processor.rs
Github Open Source
Open Source
MIT
2,021
Ellie-Language
BrainWiggans
Rust
Code
911
4,944
/* DEPRECATED */ use crate::syntax::class; use crate::{parser, parser::Collecting, syntax}; use ellie_core::{defs, error, utils}; use crate::alloc::string::{String, ToString}; use crate::alloc::boxed::Box; use crate::alloc::vec; use crate::alloc::vec::Vec; pub fn collect_class( parser: &mut parser::Parse...
25,528
https://github.com/mandev/filenotifier/blob/master/src/main/java/com/adlitteram/filenotifier/log/LineFormatter.java
Github Open Source
Open Source
Apache-2.0
null
filenotifier
mandev
Java
Code
305
775
/* * Copyright 2017 Emmanuel Deviller. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
1,913
https://github.com/SinsofSloth/RF5-global-metadata/blob/master/UnityEngine/Timeline/ScheduleRuntimeClip.cs
Github Open Source
Open Source
MIT
2,021
RF5-global-metadata
SinsofSloth
C#
Code
244
690
internal class ScheduleRuntimeClip : RuntimeClipBase // TypeDefIndex: 4585 { // Fields private TimelineClip m_Clip; // 0x18 private Playable m_Playable; // 0x20 private Playable m_ParentMixer; // 0x30 private double m_StartDelay; // 0x40 private double m_FinishTail; // 0x48 private bool m_Started; // 0x50 // P...
43,544
https://github.com/feirari/ITS484Project/blob/master/ReactApp/util.js
Github Open Source
Open Source
MIT
null
ITS484Project
feirari
JavaScript
Code
93
225
/** * Global Util Functions * * React Native Starter App * // */ 'use strict'; const UTIL = { /** * Test if Obj is empty */ objIsEmpty: function(obj) { for(let prop in obj) { if(obj.hasOwnProperty(prop)) return false; } return true; }, /** * Convert Obj to Arr */ objToArr: f...
14,688
https://github.com/nblumhardt/seq-api/blob/master/src/Seq.Api/Api/ResourceGroups/PinsResourceGroup.cs
Github Open Source
Open Source
Apache-2.0
2,016
seq-api
nblumhardt
C#
Code
154
525
using System; using System.Collections.Generic; using System.Threading.Tasks; using Seq.Api.Model.Pins; namespace Seq.Api.ResourceGroups { public class PinsResourceGroup : ApiResourceGroup { internal PinsResourceGroup(ISeqConnection connection) : base("Pins", connection) { ...
47,065
https://github.com/jsejcksn/title-sorting-exercise/blob/master/.meta/jsonc.ts
Github Open Source
Open Source
MIT
null
title-sorting-exercise
jsejcksn
TypeScript
Code
94
245
import {jsonc as modJsonC} from './deps.ts'; export type ParseOptions = modJsonC.ParseOptions; export class ParseError extends Error { name = 'ParseError'; static createFromObject (parseError: modJsonC.ParseError) { return new this(modJsonC.printParseErrorCode(parseError.error)); } } export type JsonSeria...
12,774
https://github.com/lotharthesavior/command/blob/master/src/Config/Config.php
Github Open Source
Open Source
MIT
2,021
command
lotharthesavior
PHP
Code
97
254
<?php namespace Tarsana\Command\Config; use Tarsana\Command\Interfaces\Config\ConfigInterface; /** * Stores and gets configuration. */ class Config implements ConfigInterface { /** * The raw configuration data. * * @var array */ protected $data; public function __construct(array $da...
14,218
https://github.com/icql/icql-archive/blob/master/11_ithome/icql-ithome-spit/src/main/java/work/icql/ithome/spit/controller/SpitController.java
Github Open Source
Open Source
Apache-2.0
2,019
icql-archive
icql
Java
Code
163
678
package work.icql.ithome.spit.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.web.bind.annotation.*; import work.icql.ithome.common.entity.PageResult; import work.icql.ithome.common.entity.Result; import work.icql.ithome...
26,220
https://github.com/iml1111/IMFlask/blob/master/IMFlask/app/models/mysql/tables.py
Github Open Source
Open Source
MIT
2,020
IMFlask
iml1111
Python
Code
55
133
''' Mysql Table Create Queries ''' tables = [ # master_config Table ''' CREATE TABLE IF NOT EXISTS master_config ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, author VARCHAR(20) NOT NULL, PRIMARY KEY(id) ); ''', ''' CREATE TABLE IF NOT EXISTS user ( id VARCHAR(200) NOT NULL, ...
2,030
https://github.com/ScalablyTyped/Distribution/blob/master/m/maxim_mazurok__gapi_dot_client_dot_clouddebugger/src/main/scala/typings/maximMazurokGapiClientClouddebugger/anon.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
5,073
15,193
package typings.maximMazurokGapiClientClouddebugger import typings.maximMazurokGapiClientClouddebugger.gapi.client.clouddebugger.Breakpoint import typings.maximMazurokGapiClientClouddebugger.gapi.client.clouddebugger.RegisterDebuggeeRequest import typings.maximMazurokGapiClientClouddebugger.gapi.client.clouddebugger.U...
1,514
https://github.com/ReSource-Network/royalties/blob/master/test/Royalties.js
Github Open Source
Open Source
Apache-2.0
2,022
royalties
ReSource-Network
JavaScript
Code
909
2,522
const BigNumber = require('bignumber.js'); const { assert } = require('chai'); const chai = require('chai'); const truffleAssert = require('truffle-assertions'); const Royalties = artifacts.require('./Royalties.sol'); const WETH = artifacts.require('./WETH.sol'); const NFT = artifacts.require('./NFT.sol'); const { ad...
51,498
https://github.com/chickendude/c64-avalanche/blob/master/icicles.asm
Github Open Source
Open Source
Unlicense
2,021
c64-avalanche
chickendude
Assembly
Code
375
892
; draws the icicle array to the screen draw_icicles: ldx #0 draw_icicles_loop: stx $89 lda icicle_frame, x ; Check if frame is < 0 bmi .1 ; Skip if < 0 jsr draw_icicle ; If frame >= 0, we should erase it before drawing the next one .1: ldx $89 ; Save X since it gets overwritten in some subrout...
1,528
https://github.com/Jackojc/community/blob/master/community/gmp/build
Github Open Source
Open Source
MIT
2,020
community
Jackojc
Shell
Code
17
72
#!/bin/sh -e ./configure \ --prefix=/usr \ --localstatedir=/var/state/gmp \ --enable-cxx \ --enable-fat \ --with-pic make make DESTDIR="$1" install
15,132
https://github.com/bobboteck/Followino/blob/master/circuito/gerber-lfalpfha/lfalpha-B.Paste.gbr
Github Open Source
Open Source
MIT
2,019
Followino
bobboteck
Gerber Image
Code
414
4,584
G04 #@! TF.FileFunction,Paste,Bot* %FSLAX46Y46*% G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* G04 Created by KiCad (PCBNEW 4.0.7-e2-6376~58~ubuntu14.04.1) date Tue Oct 3 22:56:20 2017* %MOMM*% %LPD*% G01* G04 APERTURE LIST* %ADD10C,0.100000*% %ADD11C,0.200000*% %ADD12C,0.381000*% %ADD13R,1.000000X1....
3,136
https://github.com/tomchapin/orchestra-client/blob/master/src/components/welcome.js
Github Open Source
Open Source
MIT
2,015
orchestra-client
tomchapin
JavaScript
Code
42
139
var React = require('react'); var Welcome = React.createClass({ getDefaultProps: function() { return { className: 'l-content' }; } , render: function() { /* jshint ignore:start */ return( <div className={ this.props.className }> <h2>Orchestra</h2> </div> ); /* jshint ignore:end */ } })...
13,979
https://github.com/longde123/Luch/blob/master/src/common/Luch/Render/Passes/DepthOnlyRenderPass.cpp
Github Open Source
Open Source
MIT
2,019
Luch
longde123
C++
Code
916
4,811
#include <Luch/Render/Passes/DepthOnlyRenderPass.h> #include <Luch/Render/ShaderDefines.h> #include <Luch/Render/CameraResources.h> #include <Luch/Render/MaterialResources.h> #include <Luch/Render/ShaderDefines.h> #include <Luch/Render/RenderUtils.h> #include <Luch/Render/SharedBuffer.h> #include <Luch/Render/Graph/Ren...
42,911