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/kalimuthu-selvaraj/aammii/blob/master/packages/Webkul/Mobikul/src/Http/Controllers/ShopController.php
Github Open Source
Open Source
MIT
null
aammii
kalimuthu-selvaraj
PHP
Code
67
231
<?php namespace Webkul\Mobikul\Http\Controllers; use Illuminate\Support\Facades\Event; class ShopController extends Controller { /** * Contains route related configuration * * @var array */ protected $_config; public function __construct() { $this->_config = requ...
45,078
https://github.com/evgreenhua/vertx-ui/blob/master/config/modules.js
Github Open Source
Open Source
Apache-2.0
2,020
vertx-ui
evgreenhua
JavaScript
Code
92
336
const path = require("path"); module.exports = { // Environment包:统一环境包 environment: path.resolve(__dirname, "../src", "environment"), // Entity包:模型包 entity: path.resolve(__dirname, "../src", "entity"), // Language:资源包 lang: path.resolve(__dirname, "../src", "cab"), // Control web: path.r...
6,992
https://github.com/lemonnader/LeetCode-Solution-Well-Formed/blob/master/dynamic-programming/Java/0091-decode-ways/src/Solution.java
Github Open Source
Open Source
Apache-2.0
2,020
LeetCode-Solution-Well-Formed
lemonnader
Java
Code
133
313
public class Solution { public int numDecodings(String s) { int len = s.length(); if (len == 0) { return 0; } int[] dp = new int[len]; dp[0] = s.charAt(0) == '0' ? 0 : 1; for (int i = 1; i < len; i++) { int res = 0; char cur = s.ch...
43,826
https://github.com/gladiusjs/gladius-core/blob/master/node_modules/qunit/test/fixtures/testrunner-code.js
Github Open Source
Open Source
BSD-3-Clause
2,021
gladius-core
gladiusjs
JavaScript
Code
17
51
exports.myMethod = function() { return 123; }; exports.myAsyncMethod = function(callback) { setTimeout(function() { callback(123); }, 100); }
26,111
https://github.com/SUNET/cnaas-front/blob/master/public/utils/checkJsonResponse.js
Github Open Source
Open Source
BSD-2-Clause-Views
2,023
cnaas-front
SUNET
JavaScript
Code
35
103
const checkJsonResponse = response => { return response.json() .then((json) => { if (!response.ok) { const error = Object.assign({}, json, { status: response.status, statusText: response.statusText, }); return Promise.reject(error); ...
42,471
https://github.com/aldore/typescript-documentation/blob/master/tests/cases/prototyping/fourslash/signatureHelpAnnonymousFunction.ts
Github Open Source
Open Source
Apache-2.0
2,016
typescript-documentation
aldore
TypeScript
Code
29
119
/// <reference path='fourslash.ts' /> ////var anonymousFunctionTest = function(n: number, s: string): (a: number, b: string) => string { //// return null; ////} ////anonymousFunctionTest(5, "")(1/*anonymousFunction*/, ""); goTo.marker('anonymousFunction'); verify.currentSignatureHelpReturnTypeIs("string"); verify....
24,377
https://github.com/amiteatech/fat_free_crm/blob/master/config/boot.rb
Github Open Source
Open Source
MIT
2,017
fat_free_crm
amiteatech
Ruby
Code
44
130
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Eatech CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ # Set up gems listed in the Gem...
42,216
https://github.com/pixdevelopers/americanmultilenders/blob/master/js/script.js
Github Open Source
Open Source
MIT
2,017
americanmultilenders
pixdevelopers
JavaScript
Code
6
13
// KEYHAN & Mamo JavaScript Document
51,829
https://github.com/yu-ichiko/plamo/blob/master/src/templates/form/array.hbs
Github Open Source
Open Source
MIT
null
plamo
yu-ichiko
null
Spoken
39
244
<div class="array_input_group"> <fieldset class="form-group"> <script type="application/javascript"> $("#array_add_btn_{{id}}").click(function(e) { e.preventDefault(); $("#array_{{id}}").append( '<div>{{form}}' + '<button ...
23,310
https://github.com/abuhassan/HnK-Store/blob/master/routes/panel.php
Github Open Source
Open Source
MIT
null
HnK-Store
abuhassan
PHP
Code
17
67
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Admin Panel Routes |-------------------------------------------------------------------------- | | */ Route::get('panel', 'PanelController@index')->name('panel'); Route::resource('products', '...
9,086
https://github.com/ForkGG/ForkCommon/blob/master/Model/Privileges/IPrivilege.cs
Github Open Source
Open Source
MIT
2,021
ForkCommon
ForkGG
C#
Code
23
59
using System.ComponentModel; namespace ForkCommon.Model.Privileges; [Description("Any privilege")] public interface IPrivilege { public string Name { get; } public string TranslationPath { get; } }
22,810
https://github.com/L0zenge/horaro/blob/master/src/horaro/WebApp/Controller/FrontendController.php
Github Open Source
Open Source
MIT, Apache-2.0
2,019
horaro
L0zenge
PHP
Code
1,267
4,107
<?php /* * Copyright (c) 2019, Sgt. Kabukiman, https://github.com/sgt-kabukiman * * This file is released under the terms of the MIT license. You can find the * complete text in the attached LICENSE file or online at: * * http://www.opensource.org/licenses/mit-license.php */ namespace horaro\WebApp\Controller; ...
34,994
https://github.com/elbjunge/Machine-Learning-with-BigQuery-ML/blob/master/Chapter06/06_nyc_trees.sql
Github Open Source
Open Source
MIT
2,021
Machine-Learning-with-BigQuery-ML
elbjunge
SQL
Code
632
2,034
--31 619 SELECT COUNT(*) FROM `bigquery-public-data.new_york_trees.tree_census_2015` WHERE spc_latin is NULL; --2 caused by NULL values in sidewalk and health SELECT COUNT(*) FROM `bigquery-public-data.new_york_trees.tree_census_2015` WHERE spc_latin is NOT NULL AND ( zip...
50,344
https://github.com/BaggaShivanshu2/hybris-bookstore-tutorial/blob/master/hybris/bin/ext-content/smartedit/smarteditcontainerJSTests/e2e/utils/components/ConfigurationNavigator.js
Github Open Source
Open Source
MIT
2,020
hybris-bookstore-tutorial
BaggaShivanshu2
JavaScript
Code
348
1,377
/* * [y] hybris Platform * * Copyright (c) 2000-2016 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * li...
16,821
https://github.com/lemonc2009/go-cms-d2-admin/blob/master/src/api/demo.business.table.1.js
Github Open Source
Open Source
MIT
2,021
go-cms-d2-admin
lemonc2009
JavaScript
Code
18
59
import request from '@/plugin/axios' export function businessTable1List (params) { return request({ url: '/demo/business/table/1/fetch', method: 'get', params }) }
23,386
https://github.com/nico-martin/yt-audio/blob/master/src/app/common/types.d.ts
Github Open Source
Open Source
MIT
2,023
yt-audio
nico-martin
TypeScript
Code
57
161
export interface Audio { id?: string; url: string; formats?: Record<string, string>; author: string; description?: string; title: string; images?: Array<{ width: number; height: number; url: string; }>; } export interface Video { url: string; formats: {}; author: string; title: stri...
41,220
https://github.com/benishor/delayed-queue/blob/master/Timer.h
Github Open Source
Open Source
MIT
null
delayed-queue
benishor
C
Code
12
28
#pragma once class Timer { public: static unsigned long long currentMicroseconds(); };
36,952
https://github.com/Asixa/Dragonfly/blob/master/src/AST/declarations/extern-decl.h
Github Open Source
Open Source
Apache-2.0
2,020
Dragonfly
Asixa
C
Code
78
307
#ifndef EXTERN_EXPR_H #define EXTERN_EXPR_H #include "frontend/lexer.h" #include "function-decl.h" namespace AST { namespace decl { /** * \brief Class for matching 'C' style extern functions.\n * ``extern XXX(..){...}``\n * ``extern XXX(..)=> STATEMENT``\n */ class Extern final : public Declaratio...
49,786
https://github.com/chromium/chromium/blob/master/ios/chrome/browser/ui/autofill/save_card_infobar_egtest.mm
Github Open Source
Open Source
BSD-3-Clause
2,023
chromium
chromium
Objective-C++
Code
1,559
6,846
// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import <memory> #import "base/test/ios/wait_util.h" #import "build/branding_buildflags.h" #import "components/autofill/core/common/autofill_features.h" #import "components/st...
10,953
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/美团-吃喝玩乐,尽在美团-9.0.0(越狱应用)_headers/WMActivityInfo.h
Github Open Source
Open Source
MIT
2,018
Just_a_dumper
i-gaven
Objective-C
Code
116
409
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <objc/NSObject.h> @class NSArray, NSString, WMHeavenFallContentViewInfo; @interface WMActivityInfo : NSObject { _Bool _ne...
14,575
https://github.com/FranklinChen/fuego-diff/blob/master/src/fuegocore/util/xas/EventList.java
Github Open Source
Open Source
MIT
2,015
fuego-diff
FranklinChen
Java
Code
1,301
2,863
/* * Copyright 2006 Helsinki Institute for Information Technology * * This file is a part of Fuego middleware. Fuego middleware is free software; you can redistribute * it and/or modify it under the terms of the MIT license, included as the file MIT-LICENSE in the * Fuego middleware source distribution. If you di...
32,717
https://github.com/frawi-mfa/QUICKSILVER/blob/master/src/drivers/drv_time.c
Github Open Source
Open Source
MIT
2,022
QUICKSILVER
frawi-mfa
C
Code
238
810
#include "drv_time.h" #include "project.h" void failloop(int val); #ifdef STM32F4 #define TICKS_PER_US (SYS_CLOCK_FREQ_HZ / 1000000) static volatile uint32_t systick_count = 0; static volatile uint32_t systick_val = 0; static volatile uint32_t systick_pending = 0; static void debug_time_init() { DWT->CTRL |= DW...
18,931
https://github.com/aminya/atom-typescript/blob/master/lib/utils.ts
Github Open Source
Open Source
MIT
2,021
atom-typescript
aminya
TypeScript
Code
58
202
export function handlePromise(promise: Promise<any> | undefined): void { if (promise === undefined) return // tslint:disable-next-line:strict-type-predicates no-unbound-method if (typeof promise.catch !== "function") { atom.notifications.addFatalError( "Atom-Typescript: non-promise passed to handlePromi...
22,684
https://github.com/GrieferAtWork/deemon/blob/master/include/deemon/cxx/set.h
Github Open Source
Open Source
Zlib
2,023
deemon
GrieferAtWork
C++
Code
456
1,720
/* Copyright (c) 2018-2023 Griefer@Work * * * * This software is provided 'as-is', without any express or implied * * warranty. In no event will the authors be held liable for any damages * ...
47,202
https://github.com/ahamlat/besu/blob/master/evm/src/main/java/org/hyperledger/besu/evm/gascalculator/SpuriousDragonGasCalculator.java
Github Open Source
Open Source
Apache-2.0
null
besu
ahamlat
Java
Code
256
778
/* * Copyright ConsenSys AG. * * 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...
27,806
https://github.com/sphairas/sphairas-desktop/blob/master/sphairas-messenger/remote-ui/src/org/thespheres/acer/remote/ui/AbstractMessage.java
Github Open Source
Open Source
Apache-2.0
2,021
sphairas-desktop
sphairas
Java
Code
322
881
/* * 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 org.thespheres.acer.remote.ui; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; import java....
17,288
https://github.com/Microsoft/psi/blob/master/Sources/MixedReality/Microsoft.Psi.MixedReality/MicrophoneConfiguration.cs
Github Open Source
Open Source
MIT
2,019
psi
Microsoft
C#
Code
86
218
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. namespace Microsoft.Psi.MixedReality { using System; using Microsoft.Psi.Audio; /// <summary> /// The configuration for the <see cref="Microphone"/> component. /// </summary> public class Microphon...
7,213
https://github.com/jai3232/eProfiling/blob/master/views/site/welcome.php
Github Open Source
Open Source
BSD-3-Clause
null
eProfiling
jai3232
PHP
Code
613
3,403
<?php use app\models\Personal; use app\models\PersonalBidang; use app\models\PersonalPerjawatan; use app\models\PenilaianProfil; use app\models\Agensi; use app\models\AgensiInstitut; use app\models\Bidang; use yii\helpers\Url; use yii\helpers\Html; /* @var $this yii\web\View */ $this->title = 'eProfiling'; ?> <?php...
7,558
https://github.com/cybernetics/nd4j/blob/master/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/linalg/cpu/nativecpu/ops/NativeOpExecutioner.java
Github Open Source
Open Source
Apache-2.0
2,016
nd4j
cybernetics
Java
Code
1,194
6,229
package org.nd4j.linalg.cpu.nativecpu.ops; import lombok.Getter; import org.apache.commons.math3.util.Pair; import org.bytedeco.javacpp.Pointer; import org.bytedeco.javacpp.PointerPointer; import org.nd4j.linalg.api.buffer.DataBuffer; import org.nd4j.linalg.api.complex.IComplexNDArray; import org.nd4j.linalg.api.ndar...
47,827
https://github.com/emmertex/openpilot/blob/master/phonelibs/zmq/build.sh
Github Open Source
Open Source
MIT, LicenseRef-scancode-warranty-disclaimer
2,019
openpilot
emmertex
Shell
Code
138
971
#!/bin/sh set -e # aarch64 is actually built natively and copied in... SED=gsed git clone --depth 1 -b v4.2.2 git://github.com/zeromq/libzmq.git libzmq git clone --depth 1 -b v4.0.2 git://github.com/zeromq/czmq.git czmq $SED -i 's/defined .HAVE_GETIFADDRS./0/' czmq/src/ziflist.c LIBZMQ_ROOT=$HOME/one/phonelibs/zmq...
22,087
https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks/blob/master/Engine/Source/Runtime/MovieScene/Public/MovieSceneBindingOverridesInterface.h
Github Open Source
Open Source
MIT, LicenseRef-scancode-proprietary-license
2,022
UnrealEngine_NVIDIAGameWorks
windystrife
C++
Code
109
294
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "UObject/Interface.h" #include "UObject/ObjectMacros.h" #include "MovieSceneSequenceID.h" #include "MovieSceneBindingOverridesInterface.generated.h" /** Movie scene binding overrides interface */ UINTERFACE() class MOVIESCENE_API UM...
22,862
https://github.com/evantorrie/opentelemetry-java-instrumentation/blob/master/testing-common/src/main/groovy/io/opentelemetry/instrumentation/test/AgentTestTrait.groovy
Github Open Source
Open Source
Apache-2.0
null
opentelemetry-java-instrumentation
evantorrie
Groovy
Code
61
175
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.instrumentation.test import io.opentelemetry.instrumentation.testing.AgentTestRunner import io.opentelemetry.instrumentation.testing.InstrumentationTestRunner /** * A trait which initializes agent tests, in...
46,489
https://github.com/KhanhPham2212/zf2-test/blob/master/library/My/Helper/ConvertField.php
Github Open Source
Open Source
BSD-3-Clause
null
zf2-test
KhanhPham2212
PHP
Code
13
59
<?php namespace Library\Helper; use Zend\View\Helper\AbstractHelper; class ConvertFieldtoPrettyName extends AbstractHelper{ function __invoke($fieldName){ } }
49,003
https://github.com/djencks/camel-quarkus/blob/master/integration-tests/azure/src/test/java/org/apache/camel/quarkus/component/azure/it/AzureTest.java
Github Open Source
Open Source
Apache-2.0
null
camel-quarkus
djencks
Java
Code
250
849
/* * 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 ...
19,552
https://github.com/RobertAcksel/UnrealCS/blob/master/Engine/Plugins/UnrealCS/UECSharpDomain/UnrealEngine/GeneratedScriptFile_Game_32bits/FBuildPromotionOpenAssetSettings.cs
Github Open Source
Open Source
MIT
2,017
UnrealCS
RobertAcksel
C#
Code
47
209
#if WITH_GAME #if PLATFORM_32BITS using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace UnrealEngine { [StructLayout(LayoutKind.Explicit,Size=72)] public partial struct FBuildPromotionOpenAssetSettings { [FieldOffset(0)] public FFilePath BlueprintAsset; [FieldOffs...
51,139
https://github.com/sapetnioc/capsul/blob/master/capsul/engine/test/test_capsul_engine.py
Github Open Source
Open Source
LicenseRef-scancode-cecill-b-en
2,019
capsul
sapetnioc
Python
Code
247
1,011
from __future__ import print_function import gc import unittest import tempfile import os import sys from capsul.api import capsul_engine class TestCapsulEngine(unittest.TestCase): def setUp(self): self.sqlite_file = str(tempfile.mktemp(suffix='.sqlite')) self.ce = capsul_engine(self.sql...
42,238
https://github.com/thanhtamtotaa/totaa-bfo/blob/master/resources/views/livewire/modal/set_bfo_info_modal.blade.php
Github Open Source
Open Source
MIT
null
totaa-bfo
thanhtamtotaa
PHP
Code
274
1,334
<div wire:ignore.self class="modal fade" id="set_bfo_info_modal" tabindex="-1" role="dialog" aria-labelledby="set_bfo_info_modal" aria-hidden="true" data-toggle="modal" data-backdrop="static" data-keyboard="false"> <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> <div class="modal...
6,745
https://github.com/lineCode/gecko-1/blob/master/libs/media/video_track.cpp
Github Open Source
Open Source
MIT
2,018
gecko-1
lineCode
C++
Code
104
256
// // Copyright (c) 2016 Kimball Thurston // All rights reserved. // Copyrights licensed under the MIT License. // See the accompanying LICENSE.txt file for terms // #include "video_track.h" //////////////////////////////////////// namespace media { //////////////////////////////////////// video_track::~video_tr...
5,399
https://github.com/shawnxz/hw3/blob/master/times/Part_II/stimt_seed3172_02_B.1D
Github Open Source
Open Source
MIT
2,018
hw3
shawnxz
null
Spoken
20
62
7.2 18.7 30.4 50.3 68.9 79.7 113.7 134.4 145.6 154.1 171.3 180.3 192.2 201.0 213.8 226.3 241.0 252.5 266.2 277.6
36,309
https://github.com/orkunkaraduman/zelus/blob/master/cmd/zelus-benchmark/cmdargs.go
Github Open Source
Open Source
BSD-3-Clause
2,019
zelus
orkunkaraduman
Go
Code
134
464
package main import ( "flag" "io" ) type cmdArgs struct { fs *flag.FlagSet help bool Hostname string Socket string Clients uint Requests uint Multi uint Datasize uint Prefix string Tests string Loop bool } func newCmdArgs(output io.Writer) (ca *cmdArgs) { ca = &cmdArgs{ fs: f...
33,712
https://github.com/fendaq/Object-Detection-Tensorflow2/blob/master/lossfs.py
Github Open Source
Open Source
BSD-3-Clause
null
Object-Detection-Tensorflow2
fendaq
Python
Code
320
1,187
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf def smooth_l1_loss(x): """ :param x: tensor of size n x m x k x ...... :return: tensor that has same size as input """ return tf.where(tf.abs(x) < 1., 0.5*x*x, tf.a...
34,880
https://github.com/chrisseto/obscene/blob/master/core/src/main/scala/utils/Point.scala
Github Open Source
Open Source
Apache-2.0
2,016
obscene
chrisseto
Scala
Code
121
311
package xyz.seto.obscene.utils class Point(val x: Float, val y: Float) { def this() = this(0, 0) def >(that: Point): Boolean = (that.x > this.x) || (that.y > this.y) def <(that: Point): Boolean = !(that > this) def +(that: Point): Point = new Point(that.x + this.x, that.y + this.y) def -(that: Point): P...
52,963
https://github.com/milindadpaiker/velocitylimits/blob/master/validate/internal/memory.go
Github Open Source
Open Source
MIT
2,020
velocitylimits
milindadpaiker
Go
Code
450
1,284
package dal import ( "fmt" ) var ( //Memory db model saves valid and invalid transactions in different maps validTxns, invalidTxns map[uint][]*Transaction ) func init() { validTxns = make(map[uint][]*Transaction) invalidTxns = make(map[uint][]*Transaction) } type memoryDataStore struct{} //NewMemoryDataStore ...
50,893
https://github.com/oguhpereira/gdgdivi.github.io/blob/master/src/layouts/index.js
Github Open Source
Open Source
MIT
null
gdgdivi.github.io
oguhpereira
JavaScript
Code
119
365
import React from 'react' import Helmet from 'react-helmet' import 'bulma' import './index.scss' const Index = ({ children }) => ( <div> <link rel="icon" href="./static/favicon/favicon.ico" type="image/x-icon"/> <link rel="shortcut icon" href="./static/favicon/favicon.ico" type="image/x-icon"/> <Helm...
22,594
https://github.com/cvwill90/GenIS/blob/master/libraries/js/jquery-validation-1.17.0/src/custom/custom.js
Github Open Source
Open Source
Apache-2.0
null
GenIS
cvwill90
JavaScript
Code
88
201
/* * 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. */ $.validator.addMethod('valid_option', function(value, element) { return this.optional(element) || parseInt(value) !== 0; }, "Veui...
18,147
https://github.com/Partikular/partikularnet/blob/master/src/lib/firebase.js
Github Open Source
Open Source
Apache-2.0
null
partikularnet
Partikular
JavaScript
Code
65
308
import firebase from "firebase/compat/app"; import "firebase/compat/auth"; import "firebase/compat/firestore"; import "firebase/compat/storage"; const firebaseConfig = { apiKey: "AIzaSyC_S8dRYbGIk_wfbs6c6BgdMgnHkyFPb6w", authDomain: "intranetpartikular.firebaseapp.com", projectId: "intranetpartikular", storag...
51,115
https://github.com/dn9090/Checs/blob/master/src/Checs/Chunk/ChunkIterator.cs
Github Open Source
Open Source
MIT
null
Checs
dn9090
C#
Code
121
478
using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; namespace Checs { internal unsafe struct ChunkIterator : IDisposable { public int capacity; public int count; public int index; public Chunk** chunks; public ChunkIterator(int capacity) ...
40,343
https://github.com/charlie-ava/avalanchego/blob/master/utils/formatting/hex_test.go
Github Open Source
Open Source
BSD-3-Clause
2,020
avalanchego
charlie-ava
Go
Code
352
1,149
// (c) 2019-2020, Ava Labs, Inc. All rights reserved. // See the file LICENSE for licensing terms. package formatting import ( "bytes" "testing" ) func TestHex(t *testing.T) { addr := []byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 255} result := Hex{addr}.String() expected := "0x00010203040506070809ff4482539c" if result...
1,974
https://github.com/psvenk/cocreate/blob/master/client/tools/image.coffee
Github Open Source
Open Source
MIT
null
cocreate
psvenk
CoffeeScript
Code
440
1,015
## See modes.coffee for the image mode that uses this. import {validUrl, proxyUrl} from '/lib/url' import {currentRoom, currentPage} from '../AppState' import {undoStack} from '../UndoStack' export tryAddImage = (items, options) -> ## HTML <img> tag (as from dragging images) or <a href> tag ## (without nested <a>...
53,349
https://github.com/BOesesZuhause/BOese-Distributor/blob/master/Boese/src/main/java/de/bo/aid/boese/hibernate/util/JPAUtil.java
Github Open Source
Open Source
MIT
2,016
BOese-Distributor
BOesesZuhause
Java
Code
158
516
package de.bo.aid.boese.hibernate.util; import java.util.Properties; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; public class JPAUtil { static Properties jpaProps = new Properties(); private static EntityManagerFactory emFactory;...
50,892
https://github.com/raquelgb/nixpkgs/blob/master/pkgs/development/python-modules/pyftpdlib/default.nix
Github Open Source
Open Source
MIT
2,019
nixpkgs
raquelgb
null
Spoken
81
273
{ stdenv , buildPythonPackage , fetchPypi , mock , psutil , pyopenssl , pysendfile , python }: buildPythonPackage rec { version = "1.5.4"; pname = "pyftpdlib"; src = fetchPypi { inherit pname version; sha256 = "e5fca613978743d41c3bfc68e25a811d646a3b8a9eee9eb07021daca89646a0f"; }; checkInputs = [ mo...
28,671
https://github.com/AR17HY/easyRun/blob/master/examples/5_Buttons/4_clickButton/2_Double_click/2_Double_click.ino
Github Open Source
Open Source
MIT
2,020
easyRun
AR17HY
C++
Code
39
122
#include "easyRun.h" //wire : pin---btn---GND const int pin = 2; // =D4 (ESP8266) void click1() { Serial.println("single click"); } void click2() { Serial.println("double click"); } click2Button btn(pin, click1, click2); void setup() { Serial.begin(115200); } void loop() { easyRun(); }
44,140
https://github.com/AEDA-Solutions/matweb/blob/master/frontend/app/Cadastraraluno/cadastraraluno.component.js
Github Open Source
Open Source
MIT
2,017
matweb
AEDA-Solutions
JavaScript
Code
36
272
angular. module('Cadastrarusuario'). component('registrarUsuario', { templateUrl: '/app/Cadastraraluno/cadastraraluno.template.html', controller: ['ApiUsuarioCadastrar','$http','$location', 'MatWebGlobals',function(ApiUsuarioCadastrar,$http,$location,MatWebGlobals) { var ctrl = this; this.formul...
35,493
https://github.com/haampie/SpFFT/blob/master/cmake/SpFFTSharedConfig.cmake
Github Open Source
Open Source
BSD-3-Clause
null
SpFFT
haampie
CMake
Code
29
202
# options used for building library set(SPFFT_OMP @SPFFT_OMP@) set(SPFFT_MPI @SPFFT_MPI@) set(SPFFT_STATIC @SPFFT_STATIC@) set(SPFFT_GPU_DIRECT @SPFFT_GPU_DIRECT@) set(SPFFT_SINGLE_PRECISION @SPFFT_SINGLE_PRECISION@) set(SPFFT_GPU_BACKEND @SPFFT_GPU_BACKEND@) # add version of package include("${CMAKE_CURRENT_LIST_DIR}...
20,347
https://github.com/anotheria/distributeme/blob/master/distributeme-registry/src/main/java/org/distributeme/registry/ui/bean/ServiceDescriptorFormBeanSortType.java
Github Open Source
Open Source
MIT
2,017
distributeme
anotheria
Java
Code
136
363
package org.distributeme.registry.ui.bean; import net.anotheria.util.sorter.SortType; /** * Sort type (helper class for StaticQuickSorter) for sorting of service descriptions. */ public class ServiceDescriptorFormBeanSortType extends SortType{ /** * By service id. */ public static final int SORT_BY_SERVICEID ...
38,989
https://github.com/YuxiLing/DLP-frontend/blob/master/mock/client.js
Github Open Source
Open Source
MIT
null
DLP-frontend
YuxiLing
JavaScript
Code
285
2,080
const groupList=[ { value: "001", label: "技术组" }, { value: "002", label: "销售组" } ] const groupInfo =[ {id:'001',name:'咸鱼组',comments:'*****',time:'2020-03-10 12:00:03',detail:'****'}, {id:'002',name:'销售组',comments:'*****',time:'2020-03-10 12:00:03',detail:'****'}, {id:'003',name:'后端技术组',comments:'*...
52,063
https://github.com/NTNU-IHB/FMI4j/blob/master/fmi-md/src/test/java/no/ntnu/ihb/fmi4j/modeldescription/util/FmiModelDescriptionUtilTest.java
Github Open Source
Open Source
MIT
2,022
FMI4j
NTNU-IHB
Java
Code
90
537
package no.ntnu.ihb.fmi4j.modeldescription.util; import no.ntnu.ihb.fmi4j.TestFMUs; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import java.io.File; import java.io.IOException; class FmiModelDescriptionUtilTest { @Test void extractFmiVersionFromFile() throws IOException { ...
30,016
https://github.com/fateevv85/Prog_school/blob/master/views/lesson/index.php
Github Open Source
Open Source
BSD-3-Clause
null
Prog_school
fateevv85
PHP
Code
988
3,593
<?php use yii\helpers\Html; use kartik\grid\GridView; use yii\helpers\Url; use app\components\WidgetHelper; use kartik\daterange\DateRangePicker; use app\models\Lesson; use \kartik\dropdown\DropdownX; use \app\models\tables\Product; /* @var $this yii\web\View */ /* @var $searchModel app\models\LessonSearch */ /* @var...
1,888
https://github.com/IHTSDO/snomed-release-service/blob/master/src/main/java/org/ihtsdo/buildcloud/core/service/NotificationService.java
Github Open Source
Open Source
Apache-2.0
2,023
snomed-release-service
IHTSDO
Java
Code
32
157
package org.ihtsdo.buildcloud.core.service; import org.ihtsdo.buildcloud.core.entity.Notification; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import java.util.List; public interface NotificationService { Notification create(Notification notification); Page<No...
30,737
https://github.com/antonydenyer/quorum/blob/master/internal/build/util_test.go
Github Open Source
Open Source
LGPL-3.0-only, LGPL-2.1-or-later, BSD-3-Clause, LicenseRef-scancode-generic-cla, GPL-3.0-only
2,023
quorum
antonydenyer
Go
Code
65
345
package build import ( "os" "testing" testifyassert "github.com/stretchr/testify/assert" ) func TestIgnorePackages_whenTypical(t *testing.T) { assert := testifyassert.New(t) arbitraryPackages := []string{"abc", "xyz/abc"} actual := IgnorePackages(arbitraryPackages) assert.Equal(arbitraryPackages, actual) }...
40,868
https://github.com/RULCSoft/cloudroast/blob/master/cloudroast/networking/networks/api/limits/test_limits.py
Github Open Source
Open Source
Apache-2.0
2,018
cloudroast
RULCSoft
Python
Code
130
333
""" Copyright 2015 Rackspace 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 dist...
34,707
https://github.com/ZTShao/NonContactHeartRateDetect/blob/master/app/src/main/java/com/yl/heartratedetectZTShao/DetectActivity.java
Github Open Source
Open Source
Apache-2.0
2,021
NonContactHeartRateDetect
ZTShao
Java
Code
695
3,233
package com.yl.heartratedetectZTShao; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.ActivityInfo; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.Hand...
8,848
https://github.com/bitgopatmcl/hedera-sdk-js/blob/master/packages/cryptography/src/PublicKey.js
Github Open Source
Open Source
Apache-2.0
2,022
hedera-sdk-js
bitgopatmcl
JavaScript
Code
344
1,001
import nacl from "tweetnacl"; import Key from "./Key.js"; import { arrayEqual, arrayStartsWith } from "./util/array.js"; import BadKeyError from "./BadKeyError.js"; import * as hex from "./encoding/hex.js"; /** * @typedef {import("./PrivateKey.js").Transaction} Transaction */ const derPrefix = "302a300506032b657003...
12,722
https://github.com/Dundj/Convex_Geomotry/blob/master/Sources/Shared/Cgns_Mod/Sequential/Write_Coordinate_Array.f90
Github Open Source
Open Source
MIT
2,022
Convex_Geomotry
Dundj
null
Spoken
240
650
!==============================================================================! subroutine Cgns_Mod_Write_Coordinate_Array(base, block, coord, grid) !------------------------------------------------------------------------------! ! Writes grid coordinates (RealDouble) [sequential vesion] ! !-----...
14,948
https://github.com/freebsd/freebsd-ports/blob/master/games/opensonic/Makefile
Github Open Source
Open Source
BSD-2-Clause
2,023
freebsd-ports
freebsd
Makefile
Code
85
587
PORTNAME= opensonic PORTVERSION= 0.1.4 PORTREVISION= 5 CATEGORIES= games MASTER_SITES= SF/opensnc/Open%20Sonic/${PORTVERSION} \ LOCAL/tobik:loggcompat DISTNAME= opensnc-src-${PORTVERSION} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ loggcompat-4.4.2${EXTRACT_SUFX}:loggcompat MAINTAINER= devel@stasyan.com COMMENT= Game ...
29,254
https://github.com/ngphban/grpc-spring-boot-starter/blob/master/grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/security/CallCredentialsHelper.java
Github Open Source
Open Source
MIT
2,022
grpc-spring-boot-starter
ngphban
Java
Code
2,108
4,984
/* * Copyright (c) 2016-2021 Michael Zhang <yidongnan@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the * rights to use, co...
33,463
https://github.com/zhawan/maro/blob/master/maro/data_lib/ecr/ecr_data_container_helpers.py
Github Open Source
Open Source
MIT
null
maro
zhawan
Python
Code
211
789
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import urllib.parse from .ecr_data_generator import EcrDataGenerator from .ecr_data_container import EcrDataContainer from .ecr_data_loader import load_from_folder from .ecr_data_dump import dump_from_config from maro.simulator.utils....
32,719
https://github.com/ww20081120/ui-lib/blob/master/JsLib/ud/HR-BASE/src/com/seagull/hr/lang/util/export/Exportor.java
Github Open Source
Open Source
Apache-2.0
2,014
ui-lib
ww20081120
Java
Code
126
524
/* * 文 件 名: Exportor.java * 版 权: Huawei Technologies Co., Ltd. Copyright YYYY-YYYY, All rights reserved * 描 述: <描述> * 修 改 人: wangwei-nj * 修改时间: 2013-1-18 * 跟踪单号: <跟踪单号> * 修改单号: <修改单号> * 修改内容: <修改内容> */ package com.seagull.hr.lang.util.export; import java.io.ByteArrayOutputStream; import java.ut...
25,598
https://github.com/jiyouliang/ApiDemoNew/blob/master/samplesApiDemos/build/generated/source/dataBinding/trigger/release/com/example/android/apis/DataBindingInfo.java
Github Open Source
Open Source
Apache-2.0
2,019
ApiDemoNew
jiyouliang
Java
Code
9
37
package com.example.android.apis; import android.databinding.BindingBuildInfo; @BindingBuildInfo public class DataBindingInfo {}
39,905
https://github.com/koitoror/challenge3/blob/master/Procfile
Github Open Source
Open Source
MIT
2,018
challenge3
koitoror
null
Spoken
20
37
web: gunicorn app:app init: flask db init migrate: flask db migrate upgrade: flask db upgrade stamp: flask db stamp head
19,055
https://github.com/UofT-HPRC/shoal/blob/master/include/deprecate/thegasnet_core.hpp
Github Open Source
Open Source
MIT
2,020
shoal
UofT-HPRC
C++
Code
320
1,309
#ifndef SHOAL_INCLUDE_THEGASNET_CORE_H_ #define SHOAL_INCLUDE_THEGASNET_CORE_H_ #include "platforms.hpp" // #include "thegasnet_globals.hpp" #include "config.hpp" #define PACKET_BUFFERS_PER_THREAD 128 #define MAX_HANDLER_FUNCTIONS 256 #define DEFINED_HANDLER_FUNCTIONS 3 #define GASNET_OK 0 #define PACKET_BUFFERS_FO...
14,603
https://github.com/sy3kic/nZEDb/blob/master/resources/db/patches/mysql/0095~tmux.sql
Github Open Source
Open Source
W3C, MIT
2,022
nZEDb
sy3kic
SQL
Code
66
134
UPDATE `tmux` SET `value` = '0' where setting = 'POST' and value = 'FALSE'; UPDATE `tmux` SET `value` = '3' where setting = 'POST' and value = 'TRUE'; UPDATE `tmux` SET `value` = '0' where setting = 'FIX_CRAP' and value = 'FALSE'; UPDATE `tmux` SET `value` = '1' where setting = 'FIX_CRAP' and value = 'TRUE'; UPDATE `s...
33,506
https://github.com/roman009/calendar/blob/master/src/Service/Calendar/Connector/Response/RegisterUserPasswordRequestResponse.php
Github Open Source
Open Source
MIT
2,022
calendar
roman009
PHP
Code
9
33
<?php namespace App\Service\Calendar\Connector\Response; class RegisterUserPasswordRequestResponse implements RegisterResponse { }
15,858
https://github.com/liumapp/servlet3-jsp-basic/blob/master/src/main/java/com/liumapp/servlet3jspbasic/servlet/AsyncServlet.java
Github Open Source
Open Source
MIT
null
servlet3-jsp-basic
liumapp
Java
Code
103
393
package com.liumapp.servlet3jspbasic.servlet; import javax.servlet.AsyncContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOExcept...
7,367
https://github.com/0ndorio/verify_me/blob/master/client/src/client.js
Github Open Source
Open Source
MIT
2,019
verify_me
0ndorio
JavaScript
Code
470
1,218
"use strict"; import { BigInteger, check, util } from "verifyme_utility" /// Constant element ids const server_public_key_element_id = "server_public_key"; const user_public_key_element_id = "public_key_textarea"; const user_token_element_id = "token_textarea"; /** * Extract users public key from the related texta...
23,541
https://github.com/vrsekdev/vrsekdev-framework/blob/master/src/Blazor.BlazorCommunicationFoundation.Server/DependencyInjection/ServiceCollectionExtensions.cs
Github Open Source
Open Source
MIT
2,021
vrsekdev-framework
vrsekdev
C#
Code
70
436
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using VrsekDev.Blazor.BlazorCommunicationFoundation.Abstractions; using VrsekDev.Blazor.BlazorCommuni...
31,594
https://github.com/ai4reason/mm-atp-benchmark/blob/master/mmsetthf_v2/_0ringdif.p
Github Open Source
Open Source
CC0-1.0
2,023
mm-atp-benchmark
ai4reason
OpenEdge ABL
Code
728
2,293
thf(ccfv_tp,type,(ccfv : (($i > $o) > (($i > $o) > ($i > $o))))). thf(ccbs_tp,type,(ccbs : ($i > $o))). thf(cc0g_tp,type,(cc0g : ($i > $o))). thf(cwcel_tp,type,(cwcel : (($i > $o) > (($i > $o) > $o)))). thf(ccdif_tp,type,(ccdif : (($i > $o) > (($i > $o) > ($i > $o))))). thf(ccrg_tp,type,(ccrg : ($i > $o))). thf(ccnzr_t...
22,269
https://github.com/ndkai/Hr-App/blob/master/lib/feature/account_page/component/header.dart
Github Open Source
Open Source
MIT
null
Hr-App
ndkai
Dart
Code
92
397
import 'package:fai_kul/feature/account_page/component/avatar.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class Header extends StatelessWidget { @override Widget build(BuildContext context) { Size size = MediaQuery.of(context).size; return Container( color:...
6,513
https://github.com/DayLogger/simpletidbits/blob/master/STMenuKit/STMenuFormViewController.h
Github Open Source
Open Source
Apache-2.0
2,015
simpletidbits
DayLogger
Objective-C
Code
154
352
// // STMenuFormViewController.h // STMenuKit // // Created by Jason Gregori on 12/3/09. // Copyright 2009 Jason Gregori. All rights reserved. // #import "STMenuFormattedTableViewController.h" /* STMenuFormViewController ======================== A form table view. This is designed to be like the settings a...
21,823
https://github.com/michcioperz/no-bullshit-onscreen/blob/master/onscreen.js
Github Open Source
Open Source
MIT
null
no-bullshit-onscreen
michcioperz
JavaScript
Code
24
63
function isElementOnScreen(elem) { let elemRect = elem.getBoundingClientRect() return elemRect.bottom >= 0 && elemRect.top <= window.innerHeight && elemRect.right >= 0 && elemRect.left <= window.innerWidth }
30,271
https://github.com/Javier-varez/Rumba/blob/master/src/lib.rs
Github Open Source
Open Source
MIT
2,021
Rumba
Javier-varez
Rust
Code
6
19
#![no_std] mod device; pub use device::*;
45,178
https://github.com/it8272/piral/blob/master/src/pages/docs/src/scripts/components/ImageCard.tsx
Github Open Source
Open Source
MIT
2,022
piral
it8272
TypeScript
Code
68
210
import * as React from 'react'; import { Link } from 'react-router-dom'; export interface ImageCardProps { image: string; title: string; description: React.ReactChild; details?: React.ReactChild; link: string; } export const ImageCard: React.FC<ImageCardProps> = ({ image, title, description, details, link }...
35,298
https://github.com/inasacu/thepista/blob/master/httparty/ruby/1.9.1/gems/moped-1.5.2/lib/moped/bson/code.rb
Github Open Source
Open Source
MIT
2,020
thepista
inasacu
Ruby
Code
363
900
module Moped module BSON # Object representation of a javascript expression. class Code attr_reader :code, :scope # Dump the code into it's raw bytes. # # @example Dump the code to raw bytes. # code.__bson_dump__(string, "expression") # # @param [ String ] io The...
38,783
https://github.com/miguel250/MZMailChimpBundle/blob/master/Services/HttpClient.php
Github Open Source
Open Source
MIT
2,016
MZMailChimpBundle
miguel250
PHP
Code
210
582
<?php /* * This file is part of the MZ\MailChimpBundle * * (c) Miguel Perez <miguel@mlpz.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace MZ\MailChimpBundle\Services; use Buzz\Browser, Buzz\Client\Curl; /** * HTTP client ...
35,752
https://github.com/LouisRenWeiWei/JXADF/blob/master/Source/JxADF/JxPlatform/src/main/java/com/jxtech/tag/comm/JxBaseUIBean.java
Github Open Source
Open Source
MIT
2,022
JXADF
LouisRenWeiWei
Java
Code
488
1,587
package com.jxtech.tag.comm; import com.jxtech.i18n.JxLangResourcesUtil; import com.jxtech.util.StrUtil; import com.opensymphony.xwork2.util.ValueStack; import org.apache.struts2.components.ClosingUIBean; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; import jav...
4,099
https://github.com/IAmAnubhavSaini/blog-posts/blob/master/linked lists/crude.c
Github Open Source
Open Source
MIT
null
blog-posts
IAmAnubhavSaini
C
Code
766
2,186
#include <stdio.h> #include <stdlib.h> struct linked_node{ int value; struct linked_node * next; }; typedef struct linked_node node; struct node_cache{ int count; node *cache; }; typedef struct node_cache cache; struct linked_list{ node * head; node * tail; int count; }; typedef struct linked_list linked_lis...
4,785
https://github.com/protechdm/CompareCloudware/blob/master/CompareCloudware.Web/Helpers/NewLabelExtensions.cs
Github Open Source
Open Source
MIT
null
CompareCloudware
protechdm
C#
Code
100
425
namespace CompareCloudware.Web.Helpers { using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Runtime.CompilerServices; using System.Web.Mvc; using System.Web.Routing; public static class NewLabelExtensions { public ...
44,884
https://github.com/mbxc/node-topsdk/blob/master/validator/validators/taobao.wlb.tradeorder.get.js
Github Open Source
Open Source
MIT
2,022
node-topsdk
mbxc
JavaScript
Code
19
68
'use strict' module.exports = function(args, check) { check(args, "sub_trade_id", "String"); check(args, "trade_id", "String", true); check(args, "trade_type", "String", true); }
22,238
https://github.com/osxhacker/smocs/blob/master/smocs-core/src/main/scala/com/tubros/constraints/core/spi/solver/PositionalEquationConstraint.scala
Github Open Source
Open Source
BSD-3-Clause
2,018
smocs
osxhacker
Scala
Code
125
412
/** * Created on: Feb 18, 2013 */ package com.tubros.constraints.core.spi.solver import com.tubros.constraints.api.problem.Equation /** * The '''PositionalEquationConstraint''' type is a ''type class'' which * provides a [[com.tubros.constraints.core.spi.solver.CanConstraint]] instance * capable of constraining...
45,674
https://github.com/XenoWarrior/FYPNet/blob/master/src/FYPNet/ChatServer.cpp
Github Open Source
Open Source
MIT
null
FYPNet
XenoWarrior
C++
Code
364
1,441
/** * ChatServer.cpp (Prototype) * * A prototype chat server implementation. */ #include "ChatServer.h" ChatServer::ChatServer() { } int ChatServer::Run() { socket_manager = std::make_shared<SocketManager>(); int unique_conns = 0; if (!socket_manager->Initialise()) { std::cout << "Could not initialise socke...
53,396
https://github.com/wikimedia/apps-android-wikipedia/blob/master/app/src/main/java/org/wikipedia/descriptions/DescriptionEditView.kt
Github Open Source
Open Source
Apache-2.0
2,023
apps-android-wikipedia
wikimedia
Kotlin
Code
1,178
5,639
package org.wikipedia.descriptions import android.app.Activity import android.content.Context import android.content.res.ColorStateList import android.graphics.Color import android.net.Uri import android.util.AttributeSet import android.view.LayoutInflater import android.view.inputmethod.EditorInfo import android.widg...
3,745
https://github.com/t0e/shopedia/blob/master/shopedia_customer/static/js/shop-locator.js
Github Open Source
Open Source
MIT
2,018
shopedia
t0e
JavaScript
Code
1,025
3,706
// This will let you use the .remove() function later on if (!('remove' in Element.prototype)) { Element.prototype.remove = function() { if (this.parentNode) { this.parentNode.removeChild(this); } }; } mapboxgl.accessToken = 'pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2lqbmpqazdlMDBsdnRva284cWd3bm11byJ9.V6Hg2o...
27,055
https://github.com/mnn/jaffas/blob/master/src/main/scala/monnef/jaffas/food/block/BlockBricks.scala
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,014
jaffas
mnn
Scala
Code
200
641
package monnef.jaffas.food.block import net.minecraft.block.material.Material import net.minecraft.world.IBlockAccess import net.minecraft.util.IIcon import net.minecraft.block.Block import monnef.core.utils.{ColorHelper, DyeHelper, DirectionHelper} import net.minecraft.item.{ItemStack, Item} import net.minecraft.crea...
36,069
https://github.com/invider/ludum-vitae.mix/blob/master/mod/dna/pod/collider.js
Github Open Source
Open Source
BSD-3-Clause
2,021
ludum-vitae.mix
invider
JavaScript
Code
127
346
const alias = 'collider' const df = { w: 64, h: 32, } function onInstall(st) { augment(this, df, st) } function collide() { const actor = this.__ const ls = actor.__._ls for (let i = 0; i < ls.length; ++i) { const target = ls[i] if (target !== actor && !target.dead && target....
10,331
https://github.com/eduprog/KnowledgeBase/blob/master/Modules/KB.PaSModule/ViewModels/PaSViewModel.cs
Github Open Source
Open Source
MIT
2,016
KnowledgeBase
eduprog
C#
Code
369
1,266
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Windows.Input; using DomainClasses.Models; using DomainClasses.ViewModels; using KnolwdgeBase.Infrastructure; using Prism.Commands; using Prism.Interactivity.InteractionRequest; using Prism.Regions; us...
49,169
https://github.com/rsudwahidinmojokerto/simanisv2/blob/master/application/views/v_bayarTunai/home.php
Github Open Source
Open Source
MIT
null
simanisv2
rsudwahidinmojokerto
PHP
Code
167
847
<div class="msg" style="display:none;"> <?php echo @$this->session->flashdata('msg'); ?> </div> <div class="box box-primary"> <div class="box-header"> <h3 style="text-align: center;"><b>Petunjuk Pembayaran</b></h3> </div> <!-- /.box-header --> <div class="box-body"> <div class="row"> <div class...
22,891
https://github.com/MasterKN48/Group_Video_Chat/blob/master/client/src/Component/Messages/style.scss
Github Open Source
Open Source
MIT
2,021
Group_Video_Chat
MasterKN48
SCSS
Code
46
167
.messages { overflow: auto; flex: auto; height: 300px; } .messages::-webkit-scrollbar { width: 4px; border-radius: 50px; } .messages::-webkit-scrollbar-track { box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); border-radius: 50px; } .messages::-webkit-scrollbar-thumb { background-color: darkgrey; outlin...
13,779
https://github.com/NitrofMtl/Arduino-Home-Thermostat/blob/master/app/src/ardThermostatApp/src/pages/schedule/alarm.ts
Github Open Source
Open Source
MIT
2,022
Arduino-Home-Thermostat
NitrofMtl
TypeScript
Code
24
71
export interface Alarm { switch: string; type: string; hour: number; minute: number; setpoints: number[]; } export interface AlarmData { chName: string[]; alarms: Alarm[]; }
31,660
https://github.com/glimones/RedyPagoProduccion/blob/master/web/js/map.js
Github Open Source
Open Source
BSD-3-Clause
null
RedyPagoProduccion
glimones
JavaScript
Code
93
477
var map; $(document).ready(function(){ map = new GMaps({ div: '#mapa_puntos', lat: -1.366163279696882, lng: -78.29461203363576, zoom: 7, minZoom: 7, maxZoom: 19 }); // google.maps.event.addListenerOnce(map.map, 'idle', function () { // var currentCenter = map.map.getCenter(); // ...
45,847
https://github.com/dvpnt/dvpntjs-scripts/blob/master/lib/version.js
Github Open Source
Open Source
MIT
2,020
dvpntjs-scripts
dvpnt
JavaScript
Code
211
710
const _ = require('underscore'); const fs = require('fs'); const semver = require('semver'); const exec = require('./exec'); const logger = require('./logger')('version'); function readPackageJson() { return JSON.parse(fs.readFileSync('./package.json', 'utf8')); } function savePackageJson(packageJson) { fs.writeFil...
18,163