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/Violet26/msdn-code-gallery-microsoft/blob/master/Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.0 Samples/[C++]-Windows Driver Kit (WDK) 8.0 Samples/C++/WDK 8.0 Samples/StorAhci StorPort Miniport Driver/Solution/src/util.h
Github Open Source
Open Source
MIT
2,020
msdn-code-gallery-microsoft
Violet26
C
Code
2,241
8,317
/*++ Copyright (C) Microsoft Corporation, 2009 Module Name: util.h Abstract: Internal support routines used in STORAHCI Notes: Revision History: Nathan Obr (natobr), February 2005 Michael Xing (xiaoxing), December 2009 --*/ #pragma once _At_buffer_(Buffer, _I_, BufferSize, _Post_equ...
50,997
https://github.com/bootgo/goploy/blob/master/model/SystemConfigModel.go
Github Open Source
Open Source
MIT
2,021
goploy
bootgo
Go
Code
94
326
package model import ( sq "github.com/Masterminds/squirrel" ) const systemConfigTable = "`system_config`" // SystemConfig - type SystemConfig struct { ID int64 `json:"id"` Key string `json:"key"` Value string `json:"value"` } // GetDataByKey - func (sc SystemConfig) GetDataByKey() (SystemConfig, error) { ...
22,635
https://github.com/mk12/mycraft/blob/master/lib/LWJGL/lwjgl-source-2/src/generated/org/lwjgl/opengl/GL14.java
Github Open Source
Open Source
MIT
2,022
mycraft
mk12
Java
Code
1,098
4,533
/* MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opengl; import org.lwjgl.*; import java.nio.*; /** * <p/> * The core OpenGL1.4 API. * <p> * @author cix_foo <cix_foo@users.sourceforge.net> * @version $Revision: 3460 $ * $Id: GL14.java 3460 2010-11-29 18:25:28Z spasi $ */ public final class GL1...
27,282
https://github.com/deniscampos/poor-java/blob/master/src/anagrama/Anagrama.java
Github Open Source
Open Source
MIT
null
poor-java
deniscampos
Java
Code
56
223
package anagrama; import java.util.ArrayList; import java.util.List; public class Anagrama { public static boolean comparar(String palavra1, String palavra2) { palavra1 = palavra1.toLowerCase().replaceAll(" ", ""); palavra2 = palavra2.toLowerCase().replaceAll(" ", ""); List<Character> primeiraLista = new...
31,414
https://github.com/TsvetanNikolov123/JS-Web--ExpressJS/blob/master/ExpressJS Fundamentals - January 2019/14 EXERCISE ARCHITECTURE AND CODE STYLING/softuni blog/controllers/article.js
Github Open Source
Open Source
MIT
2,020
JS-Web--ExpressJS
TsvetanNikolov123
JavaScript
Code
137
457
const Article = require('../models/Article'); module.exports = { createGet: (req, res) => { res.render('article/create'); }, createPost: (req, res) => { const {title, content} = req.body; const author = req.user.id; const user = req.user; const article = new Article(...
44,352
https://github.com/congriholdplantains/moodle-onelogin/blob/master/auth/onelogin_saml/index.php
Github Open Source
Open Source
MIT
2,021
moodle-onelogin
congriholdplantains
PHP
Code
1,010
3,075
<?php /* * * * * * * * * * The OneLogin SAML authentication module for Moodle * * * * * * * * * * * index.php - landing page for auth/onelogin_saml * * @originalauthor OneLogin, Inc * @author Harrison Horowitz, Sixto Martin * @version 2.8.0 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License * ...
23,529
https://github.com/chozen2see/terria/blob/master/node_modules/@visx/text/lib/Text.d.ts
Github Open Source
Open Source
Apache-2.0
null
terria
chozen2see
TypeScript
Code
27
65
/// <reference types="react" /> import type { TextProps as TxtProps } from './types'; export declare type TextProps = TxtProps; export default function Text(props: TextProps): JSX.Element; //# sourceMappingURL=Text.d.ts.map
48,255
https://github.com/BeastNeedsMoreTorque/Distribution/blob/master/a/aws-sdk/src/main/scala/typings/awsSdk/codeartifactMod/PutDomainPermissionsPolicyRequest.scala
Github Open Source
Open Source
MIT
2,020
Distribution
BeastNeedsMoreTorque
Scala
Code
171
444
package typings.awsSdk.codeartifactMod import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ @js.native trait PutDomainPermissionsPolicyRequest extends js.Object { /** * The name of the domain on which to set the resource policy. */ var domain: DomainName = js.native ...
41,082
https://github.com/ITSaninho/php_academy_shop/blob/master/migrations/m170314_110628_create_table_order_items.php
Github Open Source
Open Source
BSD-3-Clause
null
php_academy_shop
ITSaninho
PHP
Code
66
262
<?php use yii\db\Migration; class m170314_110628_create_table_order_items extends Migration { public function safeUp() { $this->createTable('{{order_items}}', [ 'id' => $this->primaryKey(), 'order_id' => $this->int(11)->notNull(), 'product_id' => $this->int(11)->not...
13,410
https://github.com/ukbe/emarketturkey/blob/master/apps/myemt/modules/contacts/templates/indexSuccess.php
Github Open Source
Open Source
MIT
null
emarketturkey
ukbe
PHP
Code
177
686
<?php slot('subNav') ?> <?php include_partial('profile/subNav', array('sesuser' => $sesuser)) ?> <?php end_slot() ?> <div class="col_948"> <div class="box_948" style="overflow: visible;"> <h4 class="margin-t1"> <div class="_right" style="margin-top: -5px;"> <div class="select margin-b1"> ...
21,736
https://github.com/kkorsakov/EDDI/blob/master/staticresourceprovider-impl/src/main/java/ai/labs/staticresources/impl/interceptor/ContentTypeInterceptor.java
Github Open Source
Open Source
Apache-2.0
2,019
EDDI
kkorsakov
Java
Code
149
677
package ai.labs.staticresources.impl.interceptor; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerResponseContext; import javax.ws.rs.container.ContainerResponseFilter; import javax.ws.rs.ext.Provider; import java.io.IOException; import java.util.HashMap; import java.util.Li...
37,051
https://github.com/blzn50/hackernews-clone/blob/master/src/components/ContentPage.js
Github Open Source
Open Source
MIT
2,020
hackernews-clone
blzn50
JavaScript
Code
405
1,495
import React, { useEffect } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { useParams } from 'react-router-dom'; import { makeStyles } from '@material-ui/core/styles'; import Link from '@material-ui/core/Link'; import Card from '@material-ui/core/Card'; import CardContent from '@material-...
24,663
https://github.com/CantoLang/canto/blob/master/src/canto/lang/DefinitionTable.java
Github Open Source
Open Source
MIT
2,020
canto
CantoLang
Java
Code
230
420
/* Canto Compiler and Runtime Engine * * DefinitionTable.java * * Copyright (c) 2018, 2019 by cantolang.org * All rights reserved. */ package canto.lang; /** * A DefinitionTable supports the lookup of definitions by name. * * @author Michael St. Hippolyte * @version $Revision: 1.10 $ */ public interface Defini...
14,652
https://github.com/TetraInsights/ngx-scroll-to/blob/master/projects/ngx-scroll-to/src/test/test-helpers.ts
Github Open Source
Open Source
MIT
null
ngx-scroll-to
TetraInsights
TypeScript
Code
87
294
import { Type } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ScrollToConfigOptionsTarget } from '../lib/scroll-to-config.interface'; import { ScrollToEvent } from '../lib/scroll-to-event.interface'; import { BUTTON_ID } from './test-dummy.component'; export interfac...
6,324
https://github.com/kennethlorrell/Forum/blob/master/tests/Feature/SubscribeToThreadsTest.php
Github Open Source
Open Source
MIT
2,020
Forum
kennethlorrell
PHP
Code
49
286
<?php namespace Tests\Feature; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class SubscribeToThreadsTest extends TestCase { use RefreshDatabase; /** @test */ public function a_user_can_subscribe_to_threads() { $this->sign...
7,979
https://github.com/vcgato29/CitizenPortal/blob/master/CitizenPortal/Views/Shared/_Aside.cshtml
Github Open Source
Open Source
MS-PL
2,014
CitizenPortal
vcgato29
HTML+Razor
Code
127
602
@model CitizenPortal.Models.Aside @using CitizenPortal.Models @using CitizenPortal.Resources.Views.Shared @{ Layout = null; } @if (Model.Tweets != null && Model.Tweets.Count > 0) { <div id="asideBlockTwitter" class="asideBlock"> <div class="icon"></div> <div class="title"> <h5>@_...
7,918
https://github.com/wandererwillow/COVID2019/blob/master/node_modules/mapbox-gl/src/gl/types.js
Github Open Source
Open Source
MIT, BSD-3-Clause
2,020
COVID2019
wandererwillow
JavaScript
Code
236
1,007
// @flow type BlendFuncConstant = | $PropertyType<WebGLRenderingContext, 'ZERO'> | $PropertyType<WebGLRenderingContext, 'ONE'> | $PropertyType<WebGLRenderingContext, 'SRC_COLOR'> | $PropertyType<WebGLRenderingContext, 'ONE_MINUS_SRC_COLOR'> | $PropertyType<WebGLRenderingContext, 'DST_COLOR'> | ...
31,799
https://github.com/ViridescentGrizzly/beer-tab/blob/master/client/app/app.js
Github Open Source
Open Source
MIT
2,015
beer-tab
ViridescentGrizzly
JavaScript
Code
140
446
var app = angular.module('app', ['beer-tab.auth', 'beer-tab.main', 'beer-tab.services', 'ui.router']); app.config(function ($stateProvider, $httpProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/login'); $stateProvider .state('main', { url: '/main', templateUrl: 'app/main/main.html',...
36,498
https://github.com/tng2903/ScreenManager/blob/master/Assets/ScreenManager/Screens/SimpleTweenScreen.cs
Github Open Source
Open Source
MIT
2,022
ScreenManager
tng2903
C#
Code
54
222
using UnityEngine; using System.Collections; using UnityEngine.EventSystems; using UnityEngine.UI; using System.Collections.Generic; namespace ScreenMgr { /// <summary> /// A simple class to demonstrate how to make simple tweened screen /// </summary> public class SimpleTweenScreen: BaseScreen { ...
55,047
https://github.com/Chinmoy-Prasad-Dutta/scrapy_scraper/blob/master/SCRAPE/Lib/site-packages/scrapy/settings/__init__.py
Github Open Source
Open Source
MIT
2,019
scrapy_scraper
Chinmoy-Prasad-Dutta
Python
Code
1,704
4,164
import json import copy from collections.abc import MutableMapping from importlib import import_module from pprint import pformat from scrapy.settings import default_settings SETTINGS_PRIORITIES = { 'default': 0, 'command': 10, 'project': 20, 'spider': 30, 'cmdline': 40, } def get_settings_prio...
27,416
https://github.com/Foso/Sheasy/blob/master/web/src/jsMain/kotlin/de/jensklingenberg/sheasy/web/ui/common/LinkItem.kt
Github Open Source
Open Source
Apache-2.0
2,021
Sheasy
Foso
Kotlin
Code
13
41
package de.jensklingenberg.sheasy.web.ui.common data class LinkItem(val title: String, val href: String, val target: String)
12,434
https://github.com/cartologic/cartoview_heatmap_styler/blob/master/static/cartoview_heatmap_styler/src/components/GeneralSymbolizer/PointSymbolizer.jsx
Github Open Source
Open Source
BSD-2-Clause
2,021
cartoview_heatmap_styler
cartologic
JavaScript
Code
87
339
import React, { Component } from 'react'; import PolygonSymbolizer from "./PolygonSymbolizer.jsx"; export default class PointSymbolizer extends Component { render() { var { config, onChange } = this.props; return ( <div> <div className="form-group"> ...
42,209
https://github.com/zensezz/lingxiao/blob/master/lingxiao-client/lingxiao-client-core/src/main/java/cn/zensezz/lingxiao/client/core/disruptor/subcriber/LingxiaoClientMetadataExecutorSubscriber.java
Github Open Source
Open Source
Apache-2.0
2,021
lingxiao
zensezz
Java
Code
221
692
package cn.zensezz.lingxiao.client.core.disruptor.subcriber;/* * 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 ...
25,346
https://github.com/scala-steward/joern/blob/master/joern-cli/frontends/jssrc2cpg/src/main/scala/io/joern/jssrc2cpg/astcreation/AstForDeclarationsCreator.scala
Github Open Source
Open Source
Apache-2.0
null
joern
scala-steward
Scala
Code
954
4,410
package io.joern.jssrc2cpg.astcreation import io.joern.jssrc2cpg.datastructures.BlockScope import io.joern.jssrc2cpg.datastructures.MethodScope import io.joern.jssrc2cpg.datastructures.ScopeType import io.joern.jssrc2cpg.parser.BabelAst import io.joern.jssrc2cpg.parser.BabelNodeInfo import io.joern.jssrc2cpg.passes.De...
35,283
https://github.com/miaoski/amis-safolu/blob/master/db/migrate/20180707171303_create_terms.rb
Github Open Source
Open Source
RSA-MD
2,021
amis-safolu
miaoski
Ruby
Code
26
91
class CreateTerms < ActiveRecord::Migration[6.0] def up create_table :terms do |t| t.string :name t.integer :stem_id t.timestamps end add_index :terms, :stem_id end def down drop_table :terms end end
49,030
https://github.com/cantstopthesignal/backups_lib/blob/master/checksums_main.py
Github Open Source
Open Source
Apache-2.0
null
backups_lib
cantstopthesignal
Python
Code
71
323
import argparse import sys from . import checksums_lib from . import checksums_oneoff_lib from . import lib COMMANDS = (checksums_lib.COMMANDS + lib.COMMANDS + checksums_oneoff_lib.COMMANDS) def Main(main_args=sys.argv[1:], output=sys.stdout): parser = argparse.ArgumentParser() parser.a...
30,658
https://github.com/lkathke/NGitLab/blob/master/NGitLab/NGitLab.Tests/Config.cs
Github Open Source
Open Source
MIT
null
NGitLab
lkathke
C#
Code
31
110
namespace NGitLab.Tests { public static class Config { public const string ServiceUrl = "https://gitee.com/"; public const string Secret = "y1ZcmHSidM4bqwYzjFPU"; public static GitLabClient Connect() { return GitLabClient.Connect(ServiceUrl,"maikebing","kissme", Impl.Api.ApiVer...
24,483
https://github.com/spongebob03/PyTorch-tutorials-kr/blob/master/intermediate_source/fx_conv_bn_fuser.py
Github Open Source
Open Source
BSD-3-Clause
2,022
PyTorch-tutorials-kr
spongebob03
Python
Code
1,064
4,537
# -*- coding: utf-8 -*- """ (베타) FX에서 합성곱/배치 정규화(Convolution/Batch Norm) 결합기(Fuser) 만들기 **************************************************************************** **저자**: `Horace He <https://github.com/chillee>`_ **번역:** `오찬희 <https://github.com/kozeldark>`_ 이 튜토리얼에서는 PyTorch의 구성 가능한 함수의 변환을 위한 툴킷인 FX를 사용하여 다음을 수행하...
47,425
https://github.com/alessio-alfonsetti/rest-java/blob/master/src/main/java/com/porterhead/rest/user/exception/DuplicateUserException.java
Github Open Source
Open Source
Apache-2.0
2,021
rest-java
alessio-alfonsetti
Java
Code
42
113
package com.porterhead.rest.user.exception; import com.porterhead.rest.exception.BaseWebApplicationException; /** * User: porter * Date: 12/03/2012 * Time: 15:10 */ public class DuplicateUserException extends BaseWebApplicationException { public DuplicateUserException() { super(409, "40901", "User al...
16,527
https://github.com/ivan-petrovic/pk/blob/master/EPOLINNN.PRG
Github Open Source
Open Source
MIT
2,017
pk
ivan-petrovic
null
Spoken
304
820
* - nije pregledano - * ********************************************* * GKLDD program za listanje knjige prihoda ********************************************* SET WRAP ON SET MESSAGE TO 24 CENTER SET PROCEDURE TO FUNKCIJE set date german DO WHILE .T. CLEAR SCREEN WOD = DATE() SELECT 0 USE EPODAT INDEX EPOI...
9,627
https://github.com/supmir/Zikir/blob/master/zikir/lib/utils/data.g.dart
Github Open Source
Open Source
2,020
Zikir
supmir
Dart
Code
162
535
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'data.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Data _$DataFromJson(Map<String, dynamic> json) { return Data( j...
36,311
https://github.com/lachlanmcdonald/magicavoxel-shaders/blob/master/.editorconfig
Github Open Source
Open Source
MIT
2,023
magicavoxel-shaders
lachlanmcdonald
null
Spoken
33
96
root = true [*] end_of_line = lf trim_trailing_whitespace = true insert_final_newline = true charset = utf-8 indent_style = tab tab_width = 4 [*.md] trim_trailing_whitespace = false [*.yml] indent_style = space tab_width = 2
38,214
https://github.com/IvoIvanov77/JavaWebDevelopmentBasics/blob/master/00_OldInstance/06_java_ee_java_server_faces/jsf_exercises/src/main/java/repositories/CatRepository.java
Github Open Source
Open Source
MIT
2,019
JavaWebDevelopmentBasics
IvoIvanov77
Java
Code
70
258
package repositories; import data.Cat; import java.util.Collection; import java.util.HashMap; import java.util.Map; public class CatRepository implements Repository<Cat>{ private Map<String, Cat> cats; public CatRepository() { this.cats = new HashMap<>(); } @Override public boolean add(...
50,475
https://github.com/mishkov/string_scanner/blob/master/lib/src/charcode.dart
Github Open Source
Open Source
BSD-Source-Code
null
string_scanner
mishkov
Dart
Code
99
186
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. /// Character '\'. const int $backslash = 0x5C; /// "Carriage return" control character. const int $cr...
45,088
https://github.com/XYGDeveloper/Chinese-currency/blob/master/HuaBi/ViewControllers/TopUpAndWithdraw/HBTokenTopUpTableViewController.h
Github Open Source
Open Source
MIT
2,019
Chinese-currency
XYGDeveloper
C
Code
38
169
// // HBTokenTopUpTableViewController.h // HuaBi // // Created by 前海数交(ZJ) on 2019/2/18. // Copyright © 2019 前海数交平台运营. All rights reserved. // #import "HBBaseTableViewController.h" NS_ASSUME_NONNULL_BEGIN @interface HBTokenTopUpTableViewController : HBBaseTableViewController @property (nonatomic,strong)NSString...
14,195
https://github.com/dennisalejandro/DennisChirinos_Lab9/blob/master/LAB9/src/lab9/LAB9.java
Github Open Source
Open Source
MIT
null
DennisChirinos_Lab9
dennisalejandro
Java
Code
73
160
/* * 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 lab9; import java.util.Date; /** * * @author denni */ public class LAB9 { /** * @param args the command line arg...
51,054
https://github.com/Marguelgtz/explorer/blob/master/unity-client/Assets/ABConverter/Wrappers/Interfaces/IFile.cs.meta
Github Open Source
Open Source
Apache-2.0
2,021
explorer
Marguelgtz
Unity3D Asset
Code
6
35
fileFormatVersion: 2 guid: b307bdae35734f569246225d9167cdfb timeCreated: 1600228576
14,880
https://github.com/stassmoke/bg-viva/blob/master/app/Repository/MovablesRepository.php
Github Open Source
Open Source
MIT
null
bg-viva
stassmoke
PHP
Code
73
265
<?php namespace App\Repository; use App\Models\Individual; use App\Models\Movables; class MovablesRepository implements MovablesRepositoryInterface { /** * @inheritdoc */ public function create(array $data): Movables { $movables = new Movables(); $movables->individual_id = $dat...
12,260
https://github.com/pmu2022/lsms/blob/master/src/Communication/REWLCommunication.hpp
Github Open Source
Open Source
BSD-3-Clause
2,022
lsms
pmu2022
C++
Code
150
513
#ifndef REWLCOMMUNICATION_H #define REWLCOMMUNICATION_H #include <stdio.h> #include <stdlib.h> #include <mpi.h> #include "Real.hpp" #include "TypeTraits.hpp" class REWLCommunication { public : MPI_Comm comm; int rank; int size; // member functions void initializeCommunication(MPI_Comm mpiCommunicator);...
19,590
https://github.com/mirko-codeplicity/value-object/blob/master/tests/unit/src/Sha1Test.php
Github Open Source
Open Source
MIT
2,022
value-object
mirko-codeplicity
PHP
Code
97
603
<?php use G4\ValueObject\Sha1; use G4\ValueObject\Exception\InvalidSha1Exception; use G4\ValueObject\Exception\MissingSha1ValueException; class Sha1Test extends PHPUnit_Framework_TestCase { public function testToString() { $value1 = 'a94a8fe5ccb19ba61c4c0873d391e987982fbbd3'; $value2 = sha1('t...
12,290
https://github.com/FriendlyJesse/library/blob/master/src/core/isEmail.ts
Github Open Source
Open Source
MIT
null
library
FriendlyJesse
TypeScript
Code
22
93
/** * 判断是否为邮箱地址 * @category Validate * @param str */ function isEmail (str: string): boolean { return /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(str) } export default isEmail
56,576
https://github.com/MaDooSan/mkono/blob/master/handy1D/handy.ino
Github Open Source
Open Source
MIT
2,016
mkono
MaDooSan
null
Spoken
2,104
7,522
#include <vector> #include <cstdlib> #include <cassert> #include <cmath> using namespace std; //#define DEBUG #define N_SMOOTHING_SAMPLES 100 #define N_MAX_TRIALS 10000 #define N_TRAINING_SAMPLES 100 #define OUTPUT_SCALER 10.0 #define REST_ADC 200.0 #define N_SENSORS 5 #define LOGGING_WAIT_TIME 100 //ms #define ACT...
41,910
https://github.com/mehrsa93/checkdigit/blob/master/src/CheckDigit/Format/FormatAbstract.php
Github Open Source
Open Source
MIT
2,012
checkdigit
mehrsa93
PHP
Code
295
739
<?php /** * @author Matthew Wheeler <matt@yurisko.net> * @copyright Copyright 2011 Matthew Wheeler * @license MIT - See LICENSE file supplied with this source code */ namespace CheckDigit\Format; abstract class FormatAbstract implements FormatInterface { /** * @var array the error stack for this form...
28,047
https://github.com/barees63/MediaPickerInstagram/blob/master/app/src/main/java/io/freshdroid/mediapickerinstagram/lib/Build.kt
Github Open Source
Open Source
Apache-2.0
2,018
MediaPickerInstagram
barees63
Kotlin
Code
51
165
package io.freshdroid.mediapickerinstagram.lib import android.content.pm.PackageInfo import io.freshdroid.mediapickerinstagram.BuildConfig open class Build( private val packageInfo: PackageInfo ) { fun applicationId(): String { return packageInfo.packageName } fun isDebug(): Boolean { ...
30,324
https://github.com/rbmathis/AdventureWorksCosmos/blob/master/AdventureWorksCosmos.Dispatcher/SagaDocumentMessageHandler.cs
Github Open Source
Open Source
MIT
null
AdventureWorksCosmos
rbmathis
C#
Code
38
149
using System.Threading.Tasks; using AdventureWorksCosmos.Core.Commands; using AdventureWorksCosmos.Core.Infrastructure; using NServiceBus; namespace AdventureWorksCosmos.Dispatcher { public class SagaDocumentMessageHandler : IHandleMessages<SagaCommand> { private readonly IDocumentMessageDispatcher _d...
50,360
https://github.com/raphaelhetzel/local-campus-app/blob/master/commentsExtensionModule/src/main/java/de/tum/in/commentsextensionmodule/Fragments/PostAddFragment.java
Github Open Source
Open Source
MIT
null
local-campus-app
raphaelhetzel
Java
Code
141
648
package de.tum.in.commentsextensionmodule.Fragments; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.RelativeLayout; import android.widget.TextView; import android....
6,664
https://github.com/kcjk/tap/blob/master/core/src/main/java/com/nemosw/spigot/tap/math/BoundingBox.java
Github Open Source
Open Source
MIT
null
tap
kcjk
Java
Code
103
355
package com.nemosw.spigot.tap.math; import com.github.noonmaru.math.Vector; import org.bukkit.World; import org.bukkit.entity.Entity; import java.util.List; import java.util.function.Predicate; public interface BoundingBox { double getMaxX(); double getMaxY(); double getMaxZ(); double getMinX(); ...
42,374
https://github.com/haku/Lookfar/blob/master/client.android/src/main/java/com/vaguehope/lookfar/android/util/StringHelper.java
Github Open Source
Open Source
Apache-2.0
2,017
Lookfar
haku
Java
Code
154
451
package com.vaguehope.lookfar.android.util; import java.util.Locale; import java.util.regex.Pattern; public final class StringHelper { public static final Pattern URL_PATTERN = Pattern.compile("\\(?\\b(https?://|www[.])[-A-Za-z0-9+&@#/%?=~_()|!:,.;]*[-A-Za-z0-9+&@#/%=~_()|]"); private static final String ELIPSE =...
55,648
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Health_com.huawei.health/smali_classes9/o/ewh.smali
Github Open Source
Open Source
MIT
2,019
AndroidPolicyAutomation
Andreas237
Smali
Code
553
2,615
.class public Lo/ewh; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lo/ewh$a; } .end annotation # instance fields .field private a:Landroid/content/Intent; .field private b:Landroid/content/Context; .field public c:Landr...
46,701
https://github.com/simomarsili/fmpl/blob/master/src/Makefile
Github Open Source
Open Source
BSD-3-Clause
null
fmpl
simomarsili
Makefile
Code
189
675
PROG = fmpl FC = gfortran FFLAGS = -O3 -fno-automatic #FFLAGS = -g -Wall -Wextra -Warray-temporaries -Wconversion -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=zero,overflow,underflow -finit-real=nan #FFLAGS = -O3 LDFLAGS = SRCS = kinds.f90 dvmlm.f constants.f90 parser.f90 command_line.f90 d...
53,427
https://github.com/dependon/x11opacitytool/blob/master/trayicon.h
Github Open Source
Open Source
MIT
2,022
x11opacitytool
dependon
C
Code
34
131
#ifndef TRAYICON_H #define TRAYICON_H #include <QSystemTrayIcon> class MainWindow; class QMenu; class TrayIcon : public QSystemTrayIcon { Q_OBJECT public: TrayIcon(QObject *parent = nullptr); ~TrayIcon(); void quitApp(); private: MainWindow *m_window{nullptr}; QMenu *m_traymenu{nullptr}; }; #...
38,862
https://github.com/acrossoffwest/deploy-handler/blob/master/config/deploy-aliases.php
Github Open Source
Open Source
MIT
null
deploy-handler
acrossoffwest
PHP
Code
35
157
<?php $aliasesString = env('DEPLOY_ALIASES_TO_SSH_CREDS', 'acrossoffwest\/(.*):aow,acrossoffwest/task-manager:aow'); $aliases = array_map('trim', explode(',', $aliasesString)); $result = []; foreach ($aliases as $alias) { $aliasExploded = explode(':', $alias); if (count($aliasExploded) < 2) { continu...
32,849
https://github.com/juanjosevega99/practicing-nest/blob/master/src/users/interfaces/user.interface.ts
Github Open Source
Open Source
MIT
null
practicing-nest
juanjosevega99
TypeScript
Code
17
32
import { Document } from 'mongoose' export interface User extends Document { name: string, problem: object }
37,248
https://github.com/rikapsu2018/dracoon-swift-sdk/blob/master/Example/oauth2.example/Carthage/Checkouts/dracoon-swift-sdk/dracoon-sdk/OAuth/OAuthHelper.swift
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,019
dracoon-swift-sdk
rikapsu2018
Swift
Code
152
439
// // OAuthHelper.swift // dracoon-sdk // // Copyright © 2018 Dracoon. All rights reserved. // import Foundation public class OAuthHelper { public static func createAuthorizationUrl(serverUrl: URL, clientId: String, state: String) -> URL { ValidatorUtils.validate(serverUrl: serverUrl) prec...
37,387
https://github.com/recyclebin5385/webpage2image/blob/master/test/test.js
Github Open Source
Open Source
BSD-3-Clause, BSD-2-Clause
2,020
webpage2image
recyclebin5385
JavaScript
Code
27
75
/* eslint-env mocha */ const assert = require('assert') const targetModule = require('../dist/index.js') describe('dummy', () => { it('dummy', () => { assert.ok(targetModule, 'TODO: implement test script') }) })
19,445
https://github.com/melansonwrites/hyperview/blob/master/scripts/generate/stories.js
Github Open Source
Open Source
MIT
2,022
hyperview
melansonwrites
JavaScript
Code
102
266
// @flow /** * Copyright (c) Garuda Labs, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import * as Files from './files'; import glob from 'glob'; import path from 'path'; const targetFilePath = path.join(__dirname, '../....
31,047
https://github.com/hkgumbs/elm-beam/blob/master/src/Generate/Beam/BuiltIn.hs
Github Open Source
Open Source
BSD-3-Clause
2,020
elm-beam
hkgumbs
Haskell
Code
244
664
{-# LANGUAGE OverloadedStrings #-} module Generate.Beam.BuiltIn (init, handleCall, server) where import qualified Codec.Beam as Beam import qualified Codec.Beam.Instructions as I import qualified Data.Text as Text import Reporting.Bag (Bag, fromList) import Prelude hiding (init) init :: Beam.Label -> Beam.Label ->...
17,005
https://github.com/mmccoo/python_swig_mmccoo/blob/master/python_from_cxx/Makefile
Github Open Source
Open Source
Apache-2.0
null
python_swig_mmccoo
mmccoo
Makefile
Code
70
248
CFLAGS +=$(subst -Wstrict-prototypes,,$(shell python3.5-config --cflags)) LDFLAGS+=$(subst -Wstrict-prototypes,,$(shell python3.5-config --ldflags)) # the so file has to be _example.so. otherwise, you'll get the error: # ImportError: dynamic module does not define module export function (PyInit_example) _cb.so: O...
27,502
https://github.com/strange-eagle/RFToolsControl/blob/master/src/main/java/mcjty/rftoolscontrol/network/PacketItemNBTToServer.java
Github Open Source
Open Source
MIT
2,021
RFToolsControl
strange-eagle
Java
Code
129
527
package mcjty.rftoolscontrol.network; import io.netty.buffer.ByteBuf; import mcjty.lib.network.NetworkTools; import mcjty.lib.thirteen.Context; import mcjty.rftoolscontrol.items.ProgramCardItem; import mcjty.rftoolscontrol.items.craftingcard.CraftingCardItem; import net.minecraft.entity.player.EntityPlayerMP; import n...
32,806
https://github.com/RomainClaret/CONVEX/blob/master/library/telegram_api.py
Github Open Source
Open Source
MIT
2,021
CONVEX
RomainClaret
Python
Code
33
222
import requests import json telegram_bot_token = "" def send_message(message, telegram_chat_id): requests.post("https://api.telegram.org/bot" + str(telegram_bot_token) + "/sendMessage?chat_id="+str(telegram_chat_id)+"&text="+message).json() def get_updates(): updates = requests.post("https://api.telegram.org/bot"...
1,088
https://github.com/pluralsight/hydra/blob/master/core/src/test/scala/hydra/core/ingest/IngestorSpec.scala
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
hydra
pluralsight
Scala
Code
403
1,370
package hydra.core.ingest import akka.actor.{ActorSystem, Props} import akka.testkit.{ImplicitSender, TestKit, TestProbe} import com.pluralsight.hydra.reflect.DoNotScan import hydra.core.akka.ActorInitializationException import hydra.core.akka.InitializingActor.{InitializationError, Initialized} import hydra.core.prot...
56,826
https://github.com/tangjz/acm-icpc/blob/master/uvalive/5877.cpp
Github Open Source
Open Source
Apache-2.0
2,022
acm-icpc
tangjz
C++
Code
197
610
#include <cmath> #include <cstdio> #include <cstring> const int maxn = 1010, INF = 0x3f3f3f3f; const double eps = 1e-8; int t, n, s, f, e[maxn][maxn], dis[maxn], que[maxn], L, R; long long x[maxn], y[maxn]; double l1, l2; bool vis[maxn]; int dcmp(double x) { return (x > eps) - (x < -eps); } int main() { scanf("%d", &...
39,425
https://github.com/ticktackk/UpdateAnyResourceForXF2/blob/master/XFRM/Service/ResourceUpdate/Create.php
Github Open Source
Open Source
MIT
null
UpdateAnyResourceForXF2
ticktackk
PHP
Code
128
524
<?php namespace TickTackk\UpdateAnyResource\XFRM\Service\ResourceUpdate; use XF\App as BaseApp; use XFRM\Entity\ResourceItem as ResourceItemEntity; use TickTackk\UpdateAnyResource\XFRM\Entity\ResourceUpdate as ExtendedResourceUpdateEntity; /** * @method ExtendedResourceUpdateEntity getUpdate() */ class Create exte...
41,400
https://github.com/htjia/vueYrProject/blob/master/src/views/extensionManage/wyBasicInfoManage/substrateBasicInfo/decideTo/index.vue
Github Open Source
Open Source
MIT
null
vueYrProject
htjia
Vue
Code
67
362
<template> <PageHeaderLayout > <div class="app-container"> <el-table :data="list" element-loading-text="拼命加载中" border fit> <el-table-column align="center" label="序号" width="50"> <template slot-scope="scope"> {{ scope.$index+1 }} </templ...
30,443
https://github.com/uniaodalua/lavamusic/blob/master/src/commands/Information/invite.js
Github Open Source
Open Source
MIT
null
lavamusic
uniaodalua
JavaScript
Code
119
431
const { MessageEmbed, MessageActionRow, MessageButton } = require("discord.js"); module.exports = { name: "invite", category: "informação", aliases: [ "addme" ], description: "convide o Bot LuxMusic", args: false, usage: "", permission: [], owner: false, execute: async (message, args...
53,693
https://github.com/qiquanzhijia/gryphon/blob/master/gryphon/lib/retry_request.py
Github Open Source
Open Source
Apache-2.0
2,022
gryphon
qiquanzhijia
Python
Code
96
316
# -*- coding: utf-8 -*- from gryphon.lib.logger import get_logger logger = get_logger(__name__) import requests import time class RetryRequest(object): @staticmethod def get(url, retry_attempts=0, **kwargs): RetryRequest._req('GET', url, retry_attempts, **kwargs) @staticmethod ...
32,379
https://github.com/cygnine/shapelab/blob/master/welding/normalize_fingerprint.m
Github Open Source
Open Source
MIT
2,012
shapelab
cygnine
MATLAB
Code
105
281
function[tin,tout] = normalize_fingerprint(tin,tout,varargin) % [theta_int,theta_ext] = normalize_fingerprint(theta_int,theta_ext,{norm_point=1}) % % A very simple function: all zipper-type conformal maps are normalized so % that (theta_int, theta_ext) = (0,0) is a point on the fingerprint. This % function ...
45,353
https://github.com/Khairulazwan/ecommerce/blob/master/apps/wordpress/htdocs/wp-content/plugins/import-users-from-csv-with-meta/classes/rest-api.php
Github Open Source
Open Source
Apache-2.0
null
ecommerce
Khairulazwan
PHP
Code
74
281
<?php if ( ! defined( 'ABSPATH' ) ) exit; class ACUI_REST_API{ function __construct(){ add_action( 'rest_api_init', array( $this, 'init' ) ); add_filter( 'acui_rest_api_permission_callback', function(){ return true; } ); } function init() { register_rest_route( 'import-users-from-csv-with-meta/v1', '...
36,838
https://github.com/aSoft-Ltd/kotlin/blob/master/firebase/firebase-firestore/src/jvmMain/kotlin/tz/co/asoft/FirestoreQuerySnapshot.kt
Github Open Source
Open Source
MIT
2,021
kotlin
aSoft-Ltd
Kotlin
Code
35
108
@file:JvmName("QuerySnapshotAndroid") package tz.co.asoft actual class FirestoreQuerySnapshot actual val FirestoreQuerySnapshot.documents: List<FirestoreQueryDocumentSnapshot> get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates. actual fun Firestore...
54,001
https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/yui/3.18.0/calendar-base/lang/calendar-base_nl.js
Github Open Source
Open Source
MIT
2,023
cdnjs
cdnjs
JavaScript
Code
1
80
YUI.add("lang/calendar-base_nl",function(e){e.Intl.add("calendar-base","nl",{very_short_weekdays:["zo","ma","di","woe","do","vr","za"],first_weekday:1,weekends:[0,6]})},"3.18.0");
20,642
https://github.com/awakecoding/FreeRDP/blob/master/winpr/libwinpr/utils/collections/LinkedList.c
Github Open Source
Open Source
Apache-2.0
2,023
FreeRDP
awakecoding
C
Code
794
2,480
/** * WinPR: Windows Portable Runtime * System.Collections.Generic.LinkedList<T> * * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.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...
16,560
https://github.com/HaTu98/laravel_quanly/blob/master/resources/views/action/profileLog.blade.php
Github Open Source
Open Source
MIT
2,018
laravel_quanly
HaTu98
Blade
Code
90
478
@extends('layouts.templates') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header"> <span style="color: red; font-size: 32px"> Profile...
13,481
https://github.com/pakoito/imgui/blob/master/src/main/kotlin/imgui/imgui/widgets inputKeyboard.kt
Github Open Source
Open Source
MIT
2,018
imgui
pakoito
Kotlin
Code
1,209
3,291
package imgui.imgui import gli_.hasnt import glm_.vec2.Vec2 import glm_.vec2.Vec2i import glm_.vec3.Vec3 import glm_.vec3.Vec3i import glm_.vec4.Vec4 import glm_.vec4.Vec4i import imgui.* import imgui.ImGui.beginGroup import imgui.ImGui.buttonEx import imgui.ImGui.calcItemWidth import imgui.ImGui.currentWindow import ...
43,858
https://github.com/DonKult/dotPageMod/blob/master/background/panel-info.js
Github Open Source
Open Source
MIT
2,018
dotPageMod
DonKult
JavaScript
Code
282
954
"use strict"; let tabInfo = {}; const UPDATE_TAB = { GOOD: '1', BAD: '2', REMOVE: '3' }; const updateTabInfo = (tabId, file, type) => { if (file !== null) { if (tabInfo[tabId] === undefined) tabInfo[tabId] = {}; if (type === UPDATE_TAB.GOOD) tabInfo[tabId][file] = true; else if (type === UPDATE_TAB.BAD) ...
47,660
https://github.com/apache/openoffice/blob/master/main/sw/source/ui/index/toxmgr.cxx
Github Open Source
Open Source
Apache-2.0, CPL-1.0, bzip2-1.0.6, LicenseRef-scancode-other-permissive, Zlib, LZMA-exception, LGPL-2.0-or-later, LicenseRef-scancode-free-unknown, LicenseRef-scancode-philippe-de-muyter, OFL-1.1, LGPL-2.1-only, MPL-1.1, X11, LGPL-2.1-or-later, GPL-2.0-only, OpenSSL, LicenseRef-scancode-cpl-0.5, GPL-1.0-or-later, NPL-1....
2,023
openoffice
apache
C++
Code
1,185
5,851
/************************************************************** * * 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 y...
44,859
https://github.com/bluewaysw/pcgeos/blob/master/Library/Math/Format/formatMain.asm
Github Open Source
Open Source
Apache-2.0
2,023
pcgeos
bluewaysw
Assembly
Code
889
2,736
COMMENT @----------------------------------------------------------------------- Copyright (c) Geoworks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: formatMain.asm AUTHOR: Cheng, 4/92 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ------...
21,583
https://github.com/AnuragAnalog/Socket-Programming/blob/master/threads/threads.c
Github Open Source
Open Source
MIT
null
Socket-Programming
AnuragAnalog
C
Code
61
223
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h> /********* FUNCTION DECLARATION *********/ void *my_thread(void *args); /********* MAIN STARTS HERE *********/ int main(void) { pthread_t thread_id; printf("This is before creating thread......\n"); pthread_create(&t...
2,556
https://github.com/SigmaSeries/ION/blob/master/Makefile
Github Open Source
Open Source
Unlicense
null
ION
SigmaSeries
Makefile
Code
100
372
all: gmake -C ici $@ gmake -C ici install gmake -C ltp $@ gmake -C ltp install gmake -C dgr $@ gmake -C dgr install gmake -C bp $@ gmake -C bp install gmake -C ams $@ gmake -C ams install gmake -C cfdp $@ gmake -C cfdp install clean: gmake -C ici $@ gmake -C ltp $@ gmake -C dgr $@ gmake -C bp $@ gmake...
1,767
https://github.com/madvagabond/ocaml-bdsm/blob/master/test/header_suite.ml
Github Open Source
Open Source
MIT
2,018
ocaml-bdsm
madvagabond
OCaml
Code
272
649
open Mux.Headers let gen () = let open Generators in list 10 ( pair (string 100) (string 100) ) () let pp_headers = let kv = Fmt.pair Fmt.string Fmt.string in Fmt.list kv let eq l r = l = r let headers_t = Alcotest.of_pp pp_headers let test_codec () = let headers = [("test", "123")] in l...
43,977
https://github.com/gfdac/AudioTK/blob/master/Python/ATK/Core/CMakeLists.txt
Github Open Source
Open Source
BSD-3-Clause
2,020
AudioTK
gfdac
CMake
Code
18
172
FILE(GLOB_RECURSE PYTHON_MODULE_CORE_SRC *.cpp ) FILE(GLOB_RECURSE PYTHON_MODULE_CORE_HEADERS *.h ) SET(PYTHON_MODULE_CORE_DEFINITIONS) SET(PYTHON_MODULE_CORE_INCLUDE) SET(PYTHON_MODULE_CORE_LIBRARIES ATKCore ATKUtility) SET(PYTHON_MODULE_CORE_NAME PythonCore) SET(PYTHON_MODULE_CORE_FOLDER Core) ATK_add_py...
7,473
https://github.com/thomasmarsh/monkey/blob/master/src/moves.h
Github Open Source
Open Source
MIT
2,022
monkey
thomasmarsh
C
Code
1,100
3,521
#pragma once #include "state.h" #include "util.h" #include <vector> #include <map> #include <cassert> struct Moves { using MoveSet = std::vector<Move>; static size_t call_count; static size_t moves_count; MoveSet moves; const State &state; const Player &player; Player::Aggregate expos...
3,800
https://github.com/ScalablyTyped/Distribution/blob/master/d/devextreme/src/main/scala/typings/devextreme/mod/DevExpress/ui/dxTileViewItem.scala
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,023
Distribution
ScalablyTyped
Scala
Code
134
397
package typings.devextreme.mod.DevExpress.ui import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} trait dxTileViewItem extends StObject with CollectionWidgetItem { /** * Specifies a multiplier ...
44,515
https://github.com/370937607/SpringStudy/blob/master/vhrend/src/main/java/com/niit/vhrend/mapper/PoliticsstatusMapper.java
Github Open Source
Open Source
MIT
null
SpringStudy
370937607
Java
Code
27
126
package com.niit.vhrend.mapper; import com.niit.vhrend.model.Politicsstatus; public interface PoliticsstatusMapper { int deleteByPrimaryKey(Integer id); int insert(Politicsstatus record); int insertSelective(Politicsstatus record); Politicsstatus selectByPrimaryKey(Integer id); int updateByPr...
52,962
https://github.com/Okinet/OkiWidgets/blob/master/src/OkiScrollBar.js
Github Open Source
Open Source
MIT
2,023
OkiWidgets
Okinet
JavaScript
Code
582
1,890
(function ($) { $.fn.OkiScrollBar = function(param) { function OkiScrollBarClass() { /* -------------------------------------------------------------- */ /* public: */ this.api = { changePosition : function(newPosition) { changePosition(ne...
37,170
https://github.com/gaurav9825/to-Do/blob/master/app/controllers/UserController.js
Github Open Source
Open Source
MIT
null
to-Do
gaurav9825
JavaScript
Code
71
310
const Promise = require('bluebird') const models = require('../models') const UsersHelper = require('../helpers/UsersHelper') exports.registerUser = (req,res) =>{ models.User.create({ name: req.body.name, email: req.body.email, password: UsersHelper.hashPassword(req.body.password) ...
14,851
https://github.com/ASR-Engineering-Consulting/V3DLib/blob/master/Lib/Target/Subst.cpp
Github Open Source
Open Source
MIT
2,021
V3DLib
ASR-Engineering-Consulting
C++
Code
253
756
#include "Target/Subst.h" namespace V3DLib { /** * Rename a destination register in an instruction * * @return true if anything replaced, false otherwise */ bool renameDest(Instr &instr, Reg const &current, Reg const &replace_with) { bool replaced = false; switch (instr.tag) { case LI: // Load immediate...
21,169
https://github.com/Occator/DripMatic/blob/master/src/lcd_module.cpp
Github Open Source
Open Source
MIT
null
DripMatic
Occator
C++
Code
432
1,835
#include <util/delay.h> #include "lcd_module.h" cLCD::cLCD(cTWI *twiDevice) : _twiLCD(twiDevice) { _Init(); } cLCD::~cLCD() {} void cLCD::Clear() { _Command(LCD_CLEARDISPLAY); _delay_ms(64); } void cLCD::Home() { _Command(LCD_RETURNHOME); _delay_ms(64); } void cLCD::Display() { _Command(LCD_DISPLAYCONTROL | ...
13,366
https://github.com/ca0v/ol3-lab/blob/master/ol3-lab/labs/google-identity.ts
Github Open Source
Open Source
MIT
2,020
ol3-lab
ca0v
TypeScript
Code
399
1,509
// see https://developers.google.com/identity/sign-in/web/reference import $ = require("jquery"); import ol = require("openlayers"); declare var gapi: any; declare var window: any; const client_id = "987911803084-a6cafnu52d7lkr8vfrtl4modrpinr1os.apps.googleusercontent.com"; const api_key = "AIzaSyCfuluThuQ0j7tCHg9GR...
32,373
https://github.com/h0tbird/clusterawsadm/blob/master/providers/terraform-provider-aws/aws/resource_aws_appmesh_test.go
Github Open Source
Open Source
MIT
null
clusterawsadm
h0tbird
Go
Code
166
1,262
package aws import ( "testing" ) func TestAccAWSAppmesh_serial(t *testing.T) { testCases := map[string]map[string]func(t *testing.T){ "GatewayRoute": { "basic": testAccAwsAppmeshGatewayRoute_basic, "disappears": testAccAwsAppmeshGatewayRoute_disappears, "grpcRoute": testAccAwsAppmeshGatewayRoute_Gr...
44,292
https://github.com/RaulBBrito/siteRaulBrito/blob/master/blog/wp-content/plugins/litespeed-cache/tpl/cache/settings-purge.tpl.php
Github Open Source
Open Source
CC-BY-3.0
null
siteRaulBrito
RaulBBrito
PHP
Code
573
2,049
<?php namespace LiteSpeed; defined( 'WPINC' ) || exit; ?> <h3 class="litespeed-title-short"> <?php echo __( 'Purge Settings', 'litespeed-cache' ); ?> <?php $this->learn_more( 'https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:configuration:purge', false, 'litespeed-learn-more' ); ?> </h3...
20,623
https://github.com/Sh4dow8080/DevoNetwork-Filer/blob/master/resources/[vrp]/vrp_register/client.lua
Github Open Source
Open Source
MIT
null
DevoNetwork-Filer
Sh4dow8080
Lua
Code
354
1,186
--[[ / \ _____ __| _/ ____ \______ \ ___.__. ____ / \ _____ _______ | | __ ____ ________ / \ / \ \__ \ / __ | _/ __ \ | | _/< | | / _ \ / \ / \ \__ \ \_ __ \| |/ /_/ __ \ \___ / / Y \ / __ \_/ /_/ | \ ___/ | | \ \___ | ( <_> )/ Y ...
7,978
https://github.com/beerent/commonheart/blob/master/src/main.ts
Github Open Source
Open Source
MIT
null
commonheart
beerent
TypeScript
Code
44
145
import Phaser from 'phaser' import HelloWorldScene from './scenes/HelloWorldScene' const config: Phaser.Types.Core.GameConfig = { type: Phaser.AUTO, width: 480, height: 270, physics: { default: 'arcade', arcade: { gravity: { y: 20000 }, }, }, scene: [HelloWorldScene], scale: { zoom: 3.6 } } export...
22,856
https://github.com/CorradoLanera/PirplePythonIsEasy/blob/master/hw8-Input_and_Output_(IO)/main.py
Github Open Source
Open Source
MIT
2,021
PirplePythonIsEasy
CorradoLanera
Python
Code
883
2,450
# -*- coding: utf-8 -*- """ main.py: Homework #8: Input and Output (I/O) (Python Is Easy course by Pirple) Details: Create a note-taking program. When a user starts it up, it should prompt them for a filename. If they enter a file name that doesn't exist, it should prompt them to enter the text they want to write t...
4,052
https://github.com/allen-garvey/php-base-project/blob/master/sass/base/_constants.scss
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,016
php-base-project
allen-garvey
SCSS
Code
97
324
/** * Constants */ //type scale descriptive names $type_scale_min3 : 1.20; $type_scale_maj3 : 1.25; $type_scale_p4 : 1.333; $type_scale_aug4 : 1.414; $type_scale_p5 : 1.5; //type scale $type_scale : $type_scale_p4; $rem_base : 16px; //fonts $font_brand : 'Helvetica Neue', Helvetica, Arial, sans-serif; $font_headi...
32,529
https://github.com/kankungyip/mpui/blob/master/example/pages/loadingbar/index.vue
Github Open Source
Open Source
MIT
2,018
mpui
kankungyip
Vue
Code
95
403
<template> <div class="page"> <div class="page__hd"> <div class="page__title">LoadingBar</div> <div class="page__desc">载入条</div> </div> <div class="page__bd"> <ui-loadingbar /> <div class="weui-btn-area"> <ui-button text="开始载入" @click="start" /> <ui-button text="...
17,644
https://github.com/marc-s-heinz/PAM-SRV/blob/master/PAMSRV_client/src/client_PAMSRV/DummyPanel.java
Github Open Source
Open Source
MIT
null
PAM-SRV
marc-s-heinz
Java
Code
68
242
package client_PAMSRV; import java.awt.BorderLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.border.EtchedBorder; import javax.swing.border.TitledBorder; /****************************************************************** * Erstellt einen Platzhalter * *************************...
23,705
https://github.com/jsrj78/gwda-ext-opencv/blob/master/examples/main.go
Github Open Source
Open Source
MIT
2,021
gwda-ext-opencv
jsrj78
Go
Code
328
1,945
package main import ( "fmt" . "github.com/electricbubble/gwda" extOpenCV "github.com/electricbubble/gwda-ext-opencv" "log" ) func main() { driver, err := NewUSBDriver(nil) checkErr(err) driverExt, err := extOpenCV.Extend(driver, 0.95) checkErr(err, "扩展 driver ,指定匹配阀值为 95%(在不修改或者使用 `OnlyOnceThreshold` 的情况下)")...
5,144
https://github.com/Fahad-Hafeez/Ruby-Project---Tutorial/blob/master/tutorial files/readingfiles.rb
Github Open Source
Open Source
MIT
null
Ruby-Project---Tutorial
Fahad-Hafeez
Ruby
Code
82
140
# to open file (if in another directory add full path in brackets), example below File.open("arrays.rb", "r") do |file| # then add puts and file in a line to print whatever is in the file puts file # then to read file puts file.read() # to check if sumthing is in the file or not puts file.read().include?...
29,517
https://github.com/cosmicray001/Online_judge_Solutions/blob/master/uri/1555.cpp
Github Open Source
Open Source
MIT
2,022
Online_judge_Solutions
cosmicray001
C++
Code
119
282
#include <bits/stdc++.h> using namespace std; int fnc(int a, int b) { return ((9 * a * a) + b * b); } int fnc1(int a, int b) { return ((2 * a * a) + (25 * b * b)); } int fnc2(int a, int b) { return (- 100 * a + pow(b, 3)); } int main() { int t; int a, b; scanf("%d", &t); while(t--){ scanf("%d %d"...
1,862
https://github.com/f1soft/gf-vue-admin/blob/master/server/router/system/workflow.go
Github Open Source
Open Source
Apache-2.0
2,022
gf-vue-admin
f1soft
Go
Code
25
144
package system import ( v1 "server/app/api/v1" "server/app/middleware" "server/library/global" ) // InitWorkflowRouter 注册功能api路由 func InitWorkflowRouter() { WorkflowRouter := global.GFVA_SERVER.Group("workflow").Middleware(middleware.JwtAuth).Middleware(middleware.CasbinMiddleware) { WorkflowRouter.POST("creat...
28,338