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/fanruan/fineui/blob/master/src/less/base/loader/sort.list.less
Github Open Source
Open Source
Apache-2.0
2,022
fineui
fanruan
Less
Code
9
41
@import "../../index.less"; .bi-sortable-holder { border: 1px dashed @color-bi-border-sortable-holder; }
19,407
https://github.com/dajjwwx/YKLIBS/blob/master/Util/UtilSearch.php
Github Open Source
Open Source
Apache-2.0
null
YKLIBS
dajjwwx
PHP
Code
179
1,623
<?php class UtilSearch { public static function phpAnalysis($string, $size = 5, $do_fork = true, $do_unit = true, $do_prop = true, $do_multi = true, $pri_dict = true) { // Yii::import('application.components.phpanalysis.*'); // header('Content-Type: text/html; charset=utf-8'); // $str = <<<DOM //九十年代初,刘德...
47,510
https://github.com/nathanael79/xendit-payment/blob/master/app/Http/Controllers/XenditController.php
Github Open Source
Open Source
MIT
null
xendit-payment
nathanael79
PHP
Code
72
279
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Xendit\Balance; use Xendit\Cards; use Xendit\Xendit; class XenditController extends Controller { private $initXendit; public function __construct() { $this->initXendit = $this->initXenditPaymentGateway(); } public fu...
30,108
https://github.com/hispindia/HARYANA-2.20/blob/master/local/in/dhis-web-maintenance-ccem/src/main/java/org/hisp/dhis/ccem/model/action/RemoveModelAction.java
Github Open Source
Open Source
BSD-3-Clause
null
HARYANA-2.20
hispindia
Java
Code
185
654
package org.hisp.dhis.ccem.model.action; import org.hisp.dhis.coldchain.model.Model; import org.hisp.dhis.coldchain.model.ModelService; import org.hisp.dhis.common.DeleteNotAllowedException; import org.hisp.dhis.i18n.I18n; import com.opensymphony.xwork2.Action; public class RemoveModelAction implements Action { ...
36,216
https://github.com/kaitsuks/White-Knight/blob/master/WhiteKnight2D/Assets/Scripts/SceneByName.cs
Github Open Source
Open Source
MIT
null
White-Knight
kaitsuks
C#
Code
308
976
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class SceneByName : MonoBehaviour { public string sceneName = "MiekkaTaistelu"; //This is Main Camera in the Scene //public Camera m_MainCamera; //public GameObject myCamera; ...
50,289
https://github.com/abhinavmishra14/alfresco-utility/blob/master/full/repository/src/main/java/de/acosix/alfresco/utility/repo/email/server/ImprovedSubethaEmailMessage.java
Github Open Source
Open Source
Apache-2.0
2,022
alfresco-utility
abhinavmishra14
Java
Code
206
605
/* * Copyright 2016 - 2021 Acosix GmbH * * 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 ...
43,810
https://github.com/Steffy-zxf/HubModule/blob/master/modules/text/semantic_model/test.sh
Github Open Source
Open Source
Apache-2.0
2,020
HubModule
Steffy-zxf
Shell
Code
31
311
#!/bin/bash for name in roberta_wwm_ext_chinese_L_3_H_768_A_12 roberta_wwm_ext_chinese_L_3_H_1024_A_16 \ bert_cased_L_12_H_768_A_12 bert_cased_L_24_H_1024_A_16 bert_chinese_L_12_H_768_A_12 bert_multi_cased_L_12_H_768_A_12 \ bert_multi_uncased_L_12_H_768_A_12 bert_uncased_L_12_H_768_A_12 bert_uncased_L_24_H_1024_A_16 be...
22,888
https://github.com/jwfh/dotfiles/blob/master/.local/share/fish/generated_completions/lftp.fish
Github Open Source
Open Source
Apache-2.0
null
dotfiles
jwfh
Fish
Code
562
1,138
# lftp # Autogenerated from man page /usr/local/share/man/man1/lftp.1 complete -c lftp -s d --description 'Switch on debugging mode.' complete -c lftp -s e --description 'Execute given commands and don\'t exit.' complete -c lftp -s p --description 'Use the given port to connect.' complete -c lftp -s u --description 'Us...
37,319
https://github.com/Lyrositor/BlablLauncher/blob/master/src/Process.cpp
Github Open Source
Open Source
WTFPL
null
BlablLauncher
Lyrositor
C++
Code
55
173
#include "process.h" Process::Process() { ZeroMemory(&si, sizeof(si)); si.cb = sizeof(si); ZeroMemory(&pi, sizeof(pi)); } bool Process::Launch(const char* program, const char* workingDirectory) { if (CreateProcess(program, NULL, NULL, NULL, false, 0, NULL, workingDirectory, &si, &pi)) ...
37,273
https://github.com/xjn19940305/C43COOL/blob/master/Database/C43COOL.Domain/Base/Relevance.cs
Github Open Source
Open Source
MIT
null
C43COOL
xjn19940305
C#
Code
104
289
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace C43COOL.Domain.Base { /// <summary> /// 多对多映射表 比如用户角色 角色模块 /// </summary> public class Relevance { public string Id { get; set; } = Guid.NewGuid().ToString(); ...
24,446
https://github.com/psPablo/Wtec/blob/master/mysql-connector-java-5.1.37/src/com/mysql/jdbc/MultiHostConnectionProxy.java
Github Open Source
Open Source
Apache-2.0
null
Wtec
psPablo
Java
Code
1,482
3,985
/* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. The MySQL Connector/J is licensed under the terms of the GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors. There are special exceptions to the terms and conditions of the GPLv2 as it is applied to...
18,933
https://github.com/matleg/prelimi_nn/blob/master/reader.py
Github Open Source
Open Source
Unlicense
null
prelimi_nn
matleg
Python
Code
64
249
import os import numpy as np import struct import matplotlib.pyplot as plt cwd = os.getcwd() list_files = os.listdir(cwd) with open(os.path.join(cwd, "data", "t10k-images-idx3-ubyte"), 'rb') as f: magic, size = struct.unpack(">II", f.read(8)) # ">":big endian, "I": unsigned int (4bytes by default) nrows, nco...
32,285
https://github.com/AdamBraden/CouponReaderDemo/blob/master/CouponReader.Forms/ViewModels/CouponViewModel.cs
Github Open Source
Open Source
MIT
null
CouponReaderDemo
AdamBraden
C#
Code
65
225
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CouponReaderDemo.Forms { public class CouponViewModel { private List<CouponsHistoryList> _c; public CouponViewModel(Coupon coupon) { var qry = from ...
35,689
https://github.com/hex337/alex-koin-go/blob/master/sql/create_database.sql
Github Open Source
Open Source
MIT
2,021
alex-koin-go
hex337
SQL
Code
11
32
CREATE DATABASE akc; \connect akc; CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
18,585
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/j/jupyterlab__launcher-extension/src/main/scala/typingsSlinky/jupyterlabLauncherExtension/mod.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
72
291
package typingsSlinky.jupyterlabLauncherExtension import org.scalablytyped.runtime.Shortcut import typingsSlinky.jupyterlabApplication.frontendMod.JupyterFrontEndPlugin import typingsSlinky.jupyterlabLauncher.mod.ILauncher import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` im...
46,789
https://github.com/juju4/ansible-memcapture/blob/master/test/vagrant/Vagrantfile
Github Open Source
Open Source
BSD-2-Clause
2,023
ansible-memcapture
juju4
Ruby
Code
163
815
# -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = "2" ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox' Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/jammy64" #config.vm.box = "generic/centos9s" config.vm.provision :ansible do |ansible| ansible.playbo...
46,607
https://github.com/RallerenP/nordic-motorhome-project/blob/master/src/main/java/com/nordicmotorhome/motorhomerentals/domain/mappers/RentalEntityModelMapper.java
Github Open Source
Open Source
MIT
null
nordic-motorhome-project
RallerenP
Java
Code
110
505
package com.nordicmotorhome.motorhomerentals.domain.mappers; import com.nordicmotorhome.motorhomerentals.UI.model.*; import com.nordicmotorhome.motorhomerentals.domain.entities.RentalAccessoryEntity; import com.nordicmotorhome.motorhomerentals.domain.entities.RentalEntity; import java.util.ArrayList; import java.util...
29,951
https://github.com/Ultz/Spirit/blob/master/src/Extensions/Ultz.Extensions.Spirit.Handlers/FileHandler.cs
Github Open Source
Open Source
MIT
2,021
Spirit
Ultz
C#
Code
171
549
// // Class1.cs // // Copyright (C) 2019 Ultz Limited // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. // #region using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Ultz.Spirit; using Ult...
13,018
https://github.com/ContentValues/M_Mvp/blob/master/app/src/main/java/cn/love/demo/ui/mainfragment/BasePagerFragment.java
Github Open Source
Open Source
MIT
null
M_Mvp
ContentValues
Java
Code
456
1,767
package cn.love.demo.ui.mainfragment; import android.view.View; import android.widget.TextView; import com.example.abshttp.simple4.OKhttpRequest; import java.io.IOException; import butterknife.BindView; import cn.love.base.BaseFragment; import cn.love.base.SimpleRecAdapter; import cn.love.demo.MainDataManager; impo...
47,126
https://github.com/pepstock-org/Charba/blob/master/src/org/pepstock/charba/client/configuration/Point.java
Github Open Source
Open Source
Apache-2.0
2,022
Charba
pepstock-org
Java
Code
1,461
4,234
/** Copyright 2017 Andrea "Stock" Stocchero 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 ...
6,668
https://github.com/JetBrains/intellij-community/blob/master/plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/processors/inference/TypeConstraint.kt
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Kotlin
Code
130
582
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.groovy.lang.resolve.processors.inference import com.intellij.psi.CommonClassNames import com.intellij.psi.PsiElement import com.intellij.psi.PsiType...
29,935
https://github.com/bobclemmons/app-ios/blob/master/CoEpi/repo/SymptomRepo.swift
Github Open Source
Open Source
MIT
null
app-ios
bobclemmons
Swift
Code
181
572
import Foundation import RxSwift import os.log protocol SymptomRepo { func symptoms() -> [Symptom] func submitSymptoms(symptoms: [Symptom]) -> Completable } class SymptomRepoImpl: SymptomRepo { private let coEpiRepo: CoEpiRepo init(coEpiRepo: CoEpiRepo) { self.coEpiRepo = coEpiRepo } ...
25,547
https://github.com/penggle/xmodule3/blob/master/xmodule3-common/xmodule3-common-codegen2/src/main/java/com/penglecode/xmodule/common/codegen/config/DomainAggregateSlaveConfig.java
Github Open Source
Open Source
Apache-2.0
null
xmodule3
penggle
Java
Code
212
968
package com.penglecode.xmodule.common.codegen.config; import com.penglecode.xmodule.common.codegen.support.DomainMasterSlaveMapping; import java.util.Objects; /** * 领域聚合对象的从属实体对象配置 * * @author pengpeng * @version 1.0 * @created 2021/1/22 14:05 */ public class DomainAggregateSlaveConfig { /** 领域聚合对象的从属实体对象...
2,285
https://github.com/oleitao/ScriptsMegaCollection/blob/master/PowerShell/Scripts/enable-ssh-client.ps1
Github Open Source
Open Source
CC0-1.0
null
ScriptsMegaCollection
oleitao
PowerShell
Code
52
172
<# .SYNTAX enable-ssh-client.ps1 .DESCRIPTION enables the SSH client (needs admin rights) .LINK https://github.com/fleschutz/PowerShell .NOTES Author: Markus Fleschutz / License: CC0 #> #Requires -RunAsAdministrator try { Add-WindowsCapability -Online -Name OpenSSH.Client* write-host -foregro...
11,092
https://github.com/TackleboxBeta/betabox-seed/blob/master/src/containers/App/App.scss
Github Open Source
Open Source
MIT
2,017
betabox-seed
TackleboxBeta
SCSS
Code
30
97
@import "../../theme/variables.scss"; .appContainer { } .pageContainer { min-height: 500px; margin: 50px 0; // for fixed navbar position: relative; } .notifications { margin: 15px 0; } :global(.form-control-feedback) { text-align: inherit; }
29,545
https://github.com/sandeepchowdary7/Php-Laravel-5.5.25/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
Php-Laravel-5.5.25
sandeepchowdary7
PHP
Code
73
287
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
21,161
https://github.com/Adloya/Toaster/blob/master/src/events/guilds/guildCreate.js
Github Open Source
Open Source
MIT
2,022
Toaster
Adloya
JavaScript
Code
95
346
const Discord = require('discord.js'); // const client = new Discord.Client(); const client = new Discord.Client({ intents: 32767 }); const db = require("../../db.json"); const emojis = require("../../lists/emojis.json") const colors = require("../../lists/colors.json") const default_embeds_color = colors["default_embe...
33,879
https://github.com/ewwgit/weavesme/blob/master/frontend/config/main.php
Github Open Source
Open Source
BSD-3-Clause
null
weavesme
ewwgit
PHP
Code
333
1,371
<?php use \yii\web\Request; $params = array_merge( require(__DIR__ . '/../../common/config/params.php'), require(__DIR__ . '/../../common/config/params-local.php'), require(__DIR__ . '/params.php'), require(__DIR__ . '/params-local.php') ); $baseUrl = str_replace('/frontend/web', '', (new Request)->getB...
47,620
https://github.com/Spitzbube/lpc2148_demo/blob/master/lcd/lcd.h
Github Open Source
Open Source
Unlicense
null
lpc2148_demo
Spitzbube
C
Code
68
227
// // $Id: lcd.h 283 2008-11-06 01:22:02Z jcw $ // $Revision: 283 $ // $Author: jcw $ // $Date: 2008-11-05 20:22:02 -0500 (Wed, 05 Nov 2008) $ // $HeadURL: http://tinymicros.com/svn_public/arm/lpc2148_demo/trunk/lcd/lcd.h $ // #ifndef _LCD_H_ #define _LCD_H_ #include "FreeRTOS.h" // // // void lcdWriteChar (cha...
28,776
https://github.com/patrickboehnke/productizebayes.jl/blob/master/src/versionmodels/VersionedFile.jl
Github Open Source
Open Source
BSD-3-Clause
null
productizebayes.jl
patrickboehnke
Julia
Code
123
468
import Base: show using Parquet using DataFrames mutable struct VersionedFile # Versioned Model Data versionstoredf::DataFrame # Versioning Detail Fields # Storage Information version_store_file::AbstractString end function VersionedFile(version_store_file::AbstractString) if isfile(version_...
44,297
https://github.com/MaryiaBond/basic-js/blob/master/src/carbon-dating.js
Github Open Source
Open Source
MIT
null
basic-js
MaryiaBond
JavaScript
Code
44
160
const MODERN_ACTIVITY= 15; const HALF_LIFE_PERIOD= 5730; module.exports = function dateSample(sampleActivity) { let x if ((typeof sampleActivity) === "string") x = Math.ceil(-(HALF_LIFE_PERIOD/0.693) * Math.log(parseFloat(sampleActivity)/MODERN_ACTIVITY)) return (x > 0 && x < 60000) ? x : false // -(T1/2/...
16,707
https://github.com/zzc-tongji/tongji-10021501-high-level-language-programming/blob/master/第09周/6-b4.cpp
Github Open Source
Open Source
MIT
2,020
tongji-10021501-high-level-language-programming
zzc-tongji
C++
Code
142
757
#include <iostream> using namespace std; void handle(int *in1,int *in2,int *out); //解题函数 void read(int *receive,int *give,int start_num); //读值函数 void display(int *p); //显示函数,读到小于0终止 void arrange(int *p); //排列函数 void exchange(int *x1,int *x2); //换值函数 void no_repeat(int *p); //去重算法(结合arrange函...
49,594
https://github.com/nagyist/WinDesktop-FlashAir-SnowyImageCopy/blob/master/Source/SnowyImageCopy.Shared/Models/ImageFile/HashItem.cs
Github Open Source
Open Source
MIT
2,022
WinDesktop-FlashAir-SnowyImageCopy
nagyist
C#
Code
265
826
using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace SnowyImageCopy.Models.ImageFile { /// <summary> /// Container for hash /// </summary> /// <remarks>This class should be immutable.</remarks> internal c...
49,435
https://github.com/bugbit/CASSharp/blob/master/CASSharp/CASSharp.Console/App/CASConsoleApp.cs
Github Open Source
Open Source
MIT
null
CASSharp
bugbit
C#
Code
545
1,507
#region LICENSE /* MIT License Copyright (c) 2018 Software free CAS Sharp 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 th...
18,197
https://github.com/lulzzz/CaseManagement/blob/master/src/CaseManagement.Website/angularApp/app/stores/cmmnplans/models/cmmn-plan.model.js
Github Open Source
Open Source
Apache-2.0
2,022
CaseManagement
lulzzz
JavaScript
Code
19
60
var CmmnPlan = (function () { function CmmnPlan() { } return CmmnPlan; }()); export { CmmnPlan }; //# sourceMappingURL=cmmn-plan.model.js.map
16,226
https://github.com/muz1kand/quiz/blob/master/src/routes/PlayerScreen/components/Player/components/Play/components/FeedbackForm/FeedbackForm.scss
Github Open Source
Open Source
MIT
2,019
quiz
muz1kand
SCSS
Code
12
32
.row { margin: 0 0 20px; } .thank { text-align: center; }
41,302
https://github.com/LORD-MicroStrain/MSCL/blob/master/MSCL/source/mscl/MicroStrain/Wireless/Features/NodeFeatures_sglinkoemHermetic.cpp
Github Open Source
Open Source
OpenSSL, MIT, BSL-1.0
2,023
MSCL
LORD-MicroStrain
C++
Code
114
740
/***************************************************************************************** ** Copyright(c) 2015-2022 Parker Hannifin Corp. All rights reserved. ** ** ** ** MIT Licensed. See the included LICENSE.tx...
3,190
https://github.com/metayan/cl-glfw3/blob/master/glfw-bindings.lisp
Github Open Source
Open Source
BSD-2-Clause
null
cl-glfw3
metayan
Common Lisp
Code
2,132
7,975
;;;; glfw-bindings.lisp ;;;; # GLFW Bindings ;;;; Bindings to the GLFW 3.x library. The functions defined in this file attempt to provide the canonical library with minimal conveniences. Full documentation for the library can be found at http://www.glfw.org/docs/3.0/index.html (in-package #:%glfw) (export '(+dont-ca...
45,383
https://github.com/mbilokonsky/rosalind/blob/master/config/webpack/development.js
Github Open Source
Open Source
MIT
2,021
rosalind
mbilokonsky
JavaScript
Code
17
71
process.env.NODE_ENV = process.env.NODE_ENV || 'development' const environment = require('./environment') const customModuleResolutionConfig = require('./module-resolution.js') environment.config.merge(customModuleResolutionConfig) module.exports = environment.toWebpackConfig()
25,033
https://github.com/starius/luaprompt/blob/master/luap.c
Github Open Source
Open Source
X11, MIT
null
luaprompt
starius
C
Code
785
2,027
/* Copyright (C) 2013 Papavasileiou Dimitris * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, mer...
24,372
https://github.com/adarshgumashta/stack/blob/master/markdown-compose/src/main/kotlin/me/tylerbwong/markdown/compose/visitors/ImageVisitor.kt
Github Open Source
Open Source
Apache-2.0
2,020
stack
adarshgumashta
Kotlin
Code
111
499
package me.tylerbwong.markdown.compose.visitors import androidx.compose.foundation.text.InlineTextContent import androidx.compose.foundation.text.appendInlineContent import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.Placeholder import android...
49,174
https://github.com/reasonerjt/registry-factory/blob/master/lib/scheduler.go
Github Open Source
Open Source
Apache-2.0
2,018
registry-factory
reasonerjt
Go
Code
756
2,574
package lib import ( "context" "crypto/tls" "encoding/base64" "encoding/json" "errors" "fmt" "log" "net/http" "strings" "time" ) //ProxyTarget ... type ProxyTarget string //SchedulerConfig ... type SchedulerConfig struct { DockerHost string HPort int Harbor string Namespace string //use '...
18,106
https://github.com/pagarme/pagarme-magento/blob/master/app/code/community/PagarMe/CreditCard/Model/Creditcard.php
Github Open Source
Open Source
MIT
2,021
pagarme-magento
pagarme
PHP
Code
1,521
6,402
<?php use \PagarMe\Sdk\PagarMe as PagarMeSdk; use \PagarMe\Sdk\Card\Card as PagarmeCard; use \PagarMe\Sdk\Transaction\AbstractTransaction; use \PagarMe\Sdk\Transaction\CreditCardTransaction; use \PagarMe\Sdk\Customer\Customer as PagarmeCustomer; use \PagarMe\Sdk\PagarMeException; use PagarMe_CreditCard_Model_Exception_...
43,556
https://github.com/Kittyfisto/IsabelDb/blob/master/IsabelDb/TypeModels/TypeResolver.cs
Github Open Source
Open Source
MIT
null
IsabelDb
Kittyfisto
C#
Code
146
513
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; namespace IsabelDb.TypeModels { /// <summary> /// Responsible for providing fast lookups between .NET types and their names /// (in both directions). /// </summary> internal sealed class TypeResolver { private readonly...
28,517
https://github.com/B-ROY/TESTGIT/blob/master/app/customer/models/hold.py
Github Open Source
Open Source
Apache-2.0
2,018
TESTGIT
B-ROY
Python
Code
273
1,128
# coding=utf-8 from django.db import models import logging from app.customer.models.user import User from wi_model_util.imodel import * from django.db.models import Q import time import datetime from mongoengine import * from base.settings import CHATPAMONGO connect(CHATPAMONGO.db, host=CHATPAMONGO.host, port=CHATPAM...
19,128
https://github.com/RichTeaMan/Draughts/blob/master/Draughts.Service/GameState.cs
Github Open Source
Open Source
MIT
null
Draughts
RichTeaMan
C#
Code
781
2,457
using RichTea.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Draughts.Service { /// <summary> /// An immutable representation of the game. /// </summary> public class GameState { /// <summary> //...
40,934
https://github.com/yikliu/DynamicConfig/blob/master/DynamicConfig/Crypt/CipherFactory.cs
Github Open Source
Open Source
MIT
null
DynamicConfig
yikliu
C#
Code
120
385
using System; using System.Collections.Generic; namespace DynamicConfig.ConfigTray.Crypt { /// <summary> /// Enum of encryption method used /// </summary> public enum EncryptionMethod { // ReSharper disable InconsistentNaming NONE, // ReSharper restore InconsistentNaming /...
20,932
https://github.com/appotry/blog_demos/blob/master/junitpractice/simplebean/src/test/java/com/bolingcavalry/simplebean/service/impl/HelloServiceImplTest.java
Github Open Source
Open Source
Apache-2.0
2,022
blog_demos
appotry
Java
Code
61
284
package com.bolingcavalry.simplebean.service.impl; import com.bolingcavalry.simplebean.service.HelloService; import junit.framework.TestCase; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springf...
18,818
https://github.com/radiodiodi/radiodiodi2018/blob/master/frontend/src/components/calendar/Calendar.js
Github Open Source
Open Source
Apache-2.0
2,018
radiodiodi2018
radiodiodi
JavaScript
Code
404
1,368
import React from 'react'; import styled from 'styled-components' import { groupBy } from 'lodash'; import Program from './Program' import PropTypes from 'prop-types'; import dotenv from 'dotenv'; dotenv.config(); const Button = styled.button` background-color: ${p => p.theme.color.yellow}; color: ${p => p.theme....
37,028
https://github.com/leestonefly/Vuelearn/blob/master/src/pages/button.js
Github Open Source
Open Source
MIT
null
Vuelearn
leestonefly
JavaScript
Code
16
67
Vue.component('g-button', { template: `<button class="g-button">按钮</button>` }); new Vue({ el: '#app', data: { message: 'hi' }, });
24,801
https://github.com/dimitar-pechev/TravelGuide/blob/master/TravelGuide/Articles/AddArticle.aspx.cs
Github Open Source
Open Source
MIT
null
TravelGuide
dimitar-pechev
C#
Code
120
456
using Microsoft.AspNet.Identity; using Ninject; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using TravelGuide.App_Start; using TravelGuide.Services.Contracts; namespace TravelGuide { public partial class AddArticle : Pa...
35,294
https://github.com/cake-contrib/Cake.Flutter/blob/master/src/Cake.Flutter/FlutterAliases.cs
Github Open Source
Open Source
MIT
null
Cake.Flutter
cake-contrib
C#
Code
26
76
using Cake.Core.Annotations; namespace Cake.Flutter { /// <summary> /// Contains functionality for working with flutter commands. /// </summary> [CakeAliasCategory("Flutter")] public static partial class FlutterAliases { } }
21,722
https://github.com/merrillrudd/VASTPlotUtils/blob/master/R/plot_residuals.R
Github Open Source
Open Source
MIT
2,020
VASTPlotUtils
merrillrudd
R
Code
811
2,928
#' @title #' Plot Pearson residuals on map #' #' @description #' \code{plot_residuals} shows average Pearson residual for every knot for encounter probability and positive catch rate components #' #' @param ObsModel #' @param fit model fit from fit_model #' @param Data input data in format of Data_Geostat #' @param Net...
17,488
https://github.com/bhumikasinghrk/python-ds-algorithms/blob/master/singly_linked_lists/tests/test_odd_even_linked_list.py
Github Open Source
Open Source
MIT
2,020
python-ds-algorithms
bhumikasinghrk
Python
Code
41
174
from data_structures.list_node import ListNode from singly_linked_lists.odd_even_linked_list import odd_even_list from test_helpers.test_helpers import get_list_values def test_odd_even_linked_list(): head = ListNode(1) assert odd_even_list(head) == head head.next = ListNode(2) head.next.next = ListN...
489
https://github.com/fsaibene/campitoTP/blob/master/scripts/services/data.js
Github Open Source
Open Source
MIT
2,016
campitoTP
fsaibene
JavaScript
Code
37
154
angular .module('miApp') .service('data', function ($http) { function extraerData (data){ return data.data; } this.data = function () { return $http.get('./data/MOCK_DATA.json').then(extraerData); } this.data100 = function () { return $http.get('./data/100datosUIGrid.json').t...
52,087
https://github.com/Brian-Pho/RVST598_Speech-Emotion-Recognition/blob/master/src/database_processor/processed_db_stats.py
Github Open Source
Open Source
MIT
2,020
RVST598_Speech-Emotion-Recognition
Brian-Pho
Python
Code
347
1,025
""" This file holds functions to calculate the final processed database statistics such as how many times an emotion is present and how many files came from each database. """ import os import numpy as np from src import em_constants as emc from src.database_processor import db_constants as dbc from src.neural_netwo...
27,371
https://github.com/BclEx/object-assets/blob/master/src/ObjectManager/Other/Windows/Message.cs
Github Open Source
Open Source
MIT
2,018
object-assets
BclEx
C#
Code
234
676
using System; using System.Runtime.InteropServices; using UnityEngine; namespace OA.Core.Windows { [StructLayout(LayoutKind.Sequential)] public struct Message { public UInt32 Id; public IntPtr WParam; public IntPtr LParam; public Vector2Int Point; public Message(ui...
33,120
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/pos/P104/P104677.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
69
328
#new_text=P104677 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC o.1.1 2(ban2) 2(ban)[unit] NU o.1.2 {gesz}haszhur _ N o.1.3 duru5 _ V o.2.1 gibil gibil[new][-ø] V o.2.2 szu szu[hand][-e] N o.3.1 ki ki[place] N o.3.2 ur-li-ta Urli[1]-ta GN o.4.1 kiszib3 kiszib[seal] N o.4.2 lugal-ba-ta-ab-e3 _ PN r.1.1 mu mu[year] N r.1.2 si-...
3,194
https://github.com/jamierytlewski/gitlabhq/blob/master/app/assets/javascripts/profile.js.coffee
Github Open Source
Open Source
MIT
2,012
gitlabhq
jamierytlewski
CoffeeScript
Code
38
121
$ -> $('.edit_user .application-theme input, .edit_user .code-preview-theme input').click -> # Hide any previous submission feedback $('.edit_user .update-feedback').hide() # Submit the form $('.edit_user').submit() # Go up the hierarchy and show the corresponding submission feedback element ...
13,093
https://github.com/zxsean/DCET/blob/master/Unity/Packages/DCET/Core/Runtime/Base/Object/HideInHierarchy.cs
Github Open Source
Open Source
MIT
2,021
DCET
zxsean
C#
Code
12
31
using System; namespace DCET.Model { public class HideInHierarchy: Attribute { } }
50,412
https://github.com/bitrasruthi/vlight/blob/master/src/components/Admin Files/orgProfile.jsx
Github Open Source
Open Source
MIT
null
vlight
bitrasruthi
null
Spoken
313
1,099
import Sidebar from 'components/Sidebar/Sidebar'; import React from 'react'; import Joi from "joi-browser"; import { toast } from "react-toastify"; import { addcompdet, getcomdet } from '../../services/settings' import Forms from 'components/Common/form'; import { Button, Card, CardHeader, CardBody, ...
7,370
https://github.com/p3g4asus/orvdroid/blob/master/app/src/main/java/com/orvdroid/gui/app/CA.java
Github Open Source
Open Source
MIT
null
orvdroid
p3g4asus
Java
Code
63
153
package com.orvdroid.gui.app; import android.app.Application; import android.support.v4.content.LocalBroadcastManager; public class CA extends Application { public static LocalBroadcastManager lbm = null; public CA() { // this method fires only once per application start. // getApplicationConte...
37,930
https://github.com/AngelofWoe/arkos/blob/master/RG351P-M/Ubuntu OS Partition/usr/bin/dpkg-buildpackage
Github Open Source
Open Source
MIT
2,021
arkos
AngelofWoe
Perl
Code
3,376
10,721
#!/usr/bin/perl # # dpkg-buildpackage # # Copyright © 1996 Ian Jackson # Copyright © 2000 Wichert Akkerman # Copyright © 2006-2010, 2012-2015 Guillem Jover <guillem@debian.org> # Copyright © 2007 Frank Lichtenheld # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU G...
6,861
https://github.com/yfxiarigit/HHRefresh/blob/master/HHRefreshView/HHRefresh/HHRefreshHeader.h
Github Open Source
Open Source
MIT
null
HHRefresh
yfxiarigit
C
Code
33
126
// // HHRefreshHeader.h // net // // Created by yfxiari on 2018/5/18. // Copyright © 2018年 Qingchifan. All rights reserved. // #import "HHRefreshComponent.h" @interface HHRefreshHeader : HHRefreshComponent + (instancetype)headerWithRefreshingBlock:(HHRefreshComponentRefreshingBlock)block; + (instancetype)headerWi...
49,077
https://github.com/nicholasdille/PowerShell-Helper/blob/master/Helpers/Public/Get-HttpAccessLogStats.ps1
Github Open Source
Open Source
Apache-2.0
2,021
PowerShell-Helper
nicholasdille
PowerShell
Code
58
169
function Get-HttpAccessLogStats { [Diagnostics.CodeAnalysis.SuppressMessageAttribute( "PSUseSingularNouns", "", Justification = "It will return several stats which only make sense as a whole" )] [Cmdletbinding()] param( [Parameter(Mandatory, ValueFromPipeline)] [V...
18,687
https://github.com/Gavrilo-Princip/bodymedia/blob/master/spec/client_spec.rb
Github Open Source
Open Source
MIT
2,013
bodymedia
Gavrilo-Princip
Ruby
Code
63
272
require "spec_helper" CONFIG = YAML.load_file("lib/bodymedia/config.yml") unless defined? CONFIG describe Bodymedia::Client do let(:valid_client){Bodymedia::Client.new( :consumer_key => CONFIG['KEY'], :consumer_secret => CONFIG['SECRET'], :access_token => CONFIG['ACCESS_KEY'], :access_token_...
4,929
https://github.com/its-Marvin/weak2fa-for-ctf/blob/master/scripts/forms.py
Github Open Source
Open Source
MIT
2,021
weak2fa-for-ctf
its-Marvin
Python
Code
53
245
# -*- coding: utf-8 -*- from wtforms import Form, StringField, validators, IntegerField class LoginForm(Form): username = StringField('Username:', validators=[validators.required(), validators.Length(min=1, max=30)]) password = StringField('Password:', validators=[validators.required(), validators.Length(min...
936
https://github.com/frenzyfunky/react-auth-kit/blob/master/src/utils/hooks.ts
Github Open Source
Open Source
Apache-2.0
2,021
react-auth-kit
frenzyfunky
TypeScript
Code
224
435
/* * Copyright 2020 Arkadip Bhattacharya * * 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...
35,170
https://github.com/daicang/Euler/blob/master/p44.py
Github Open Source
Open Source
MIT
null
Euler
daicang
Python
Code
161
350
# 44 import math import itertools class Solve(object): def __init__(self): pass def solve(self): """ Solve: find pentagon number small, big (small < big), s.t.: delta = big - small (assume delta < small), sum = small + big are also pentagon numbers We loop big_...
40,941
https://github.com/linkvt/OntoBench/blob/master/src/main/java/de/linkvt/ontobench/web/dtos/FeatureCategoryDto.java
Github Open Source
Open Source
MIT
2,021
OntoBench
linkvt
Java
Code
96
273
package de.linkvt.ontobench.web.dtos; import de.linkvt.ontobench.features.FeatureCategory; /** * Contains all category informations the REST api consumers need. */ public class FeatureCategoryDto { private String name; private int index; private boolean owlSpecific; public FeatureCategoryDto() { } pub...
41,744
https://github.com/CampfyreApp/Main/blob/master/scripts/setup-db.ts
Github Open Source
Open Source
MIT
2,021
Main
CampfyreApp
TypeScript
Code
470
1,720
import { mdb } from "../src/db"; import { Invite, Server, User } from "../src/db/models"; import { USER_FLAGS } from "../src/util/Constants/General"; const drop = true; async function setupChannels() { const col = mdb.collection("channels"); if (!drop) await col.dropIndexes().then(() => console.log(`Dropped all of ...
9,770
https://github.com/bincrafters/bincrafters-conventions/blob/master/tests/test_check_for_deprecation.py
Github Open Source
Open Source
MIT
2,023
bincrafters-conventions
bincrafters
Python
Code
229
1,030
#!/usr/bin/env python import os import tempfile from conan.tools import files from bincrafters_conventions.actions.check_for_deprecated_generators import check_for_deprecated_generators from bincrafters_conventions.actions.check_for_deprecated_methods import check_for_deprecated_methods from bincrafters_conventions....
43,925
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/猫眼-娱乐看猫眼-8.3.3(越狱应用)_headers/MAYUgcEntryUrls.h
Github Open Source
Open Source
MIT
2,018
Just_a_dumper
i-gaven
Objective-C
Code
68
248
// // 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 "MTLModel.h" #import "MTLJSONSerializing-Protocol.h" @class NSArray; @interface MAYUgcEntryUrls : MTLModel <MTLJSONSerializi...
6,007
https://github.com/monkeychen/ovirt-engine/blob/master/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/repoimage/ImportRepoImageCommand.java
Github Open Source
Open Source
Apache-2.0
2,018
ovirt-engine
monkeychen
Java
Code
988
5,324
package org.ovirt.engine.core.bll.storage.repoimage; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import javax.enterprise.inject.Instance; import javax.enterprise.inject.Typed; import javax.inject.Inject; import org.ovirt.engine.core.bll.SerialChildCommandsEx...
37,137
https://github.com/yvs314/dp-monster/blob/master/src/RTDP.h
Github Open Source
Open Source
MIT
null
dp-monster
yvs314
C
Code
2,025
7,200
/* (c) Yaroslav Salii & the Parliament of Owls, 2017+ License:sort of CC---if you go commercial, contact me RTDP v.1.0 2017-01-30; RTDP v.1.1 2018-02-14; adding tie-breaking code (less bit mask is better &c) to cacheRtBF RTDP v.1.2 2019-02-06; added states' counter to DP code & its logging (only exact DP, not hRtDP) R...
15,599
https://github.com/PrakulSmarty/Code/blob/master/machinelearning/rackspacemachinelearning/rackspacemachinelearning.go
Github Open Source
Open Source
Apache-2.0
2,020
Code
PrakulSmarty
Go
Code
70
233
package rackspacemachinelearning //CreateMLModel creates model. func (rackspacemachinelearning *Rackspacemachinelearning) CreateMLModel(request interface{}) (resp interface{}, err error) { return resp, err } //DeleteMLModel delete model. func (rackspacemachinelearning *Rackspacemachinelearning) DeleteMLModel(reques...
35,721
https://github.com/aelyseev/react-scaffolding-app/blob/master/app/modules/request/index.jsx
Github Open Source
Open Source
MIT
null
react-scaffolding-app
aelyseev
null
Spoken
99
305
import {credentials, user} from 'stubs/user.yml'; const HOST = 'http://api-url'; const LOGIN_USER = `${HOST}/api/login/`; const OK_STATUS = 'ok'; const ERROR_STATUS = 'error'; function post(url, data) { if (url === LOGIN_USER) { const {login, password} = data; if ((login === credentials.login) &&...
42,165
https://github.com/arvystate/Emotion/blob/master/Framework/application/controller/sample.php
Github Open Source
Open Source
MIT
2,015
Emotion
arvystate
PHP
Code
524
1,509
<?php class Sample extends EmotionController { public function index () { $this->View ('404'); } public function show ($sample = '') { $sample = str_replace ('.', '', $sample); $sample = explode ('_', $sample); $this->View ('header_no_menu'); echo ('<div id="main_content"> <div id="conte...
2,818
https://github.com/LuxCore/dkitrish/blob/master/1.Trainee/002.OOP/src/test/java/ru/job4j/professions/EngineerTest.java
Github Open Source
Open Source
Apache-2.0
2,018
dkitrish
LuxCore
Java
Code
138
422
package ru.job4j.professions; import java.time.Period; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Тестируем умения инженера. * * @author Denis.Kitrish (Denis.Kitrish@Yandex.ua) * @since 05.11.2017 * @version 1.0 */ public class EngineerTest { ...
25,894
https://github.com/cssence/trinnconsulting-website/blob/master/routes.js
Github Open Source
Open Source
CC-BY-4.0
2,016
trinnconsulting-website
cssence
JavaScript
Code
62
218
module.exports = function (pkg, data) { "use strict"; var path = require("path"); return { log: function (req, res, next) { console.info(req.method, req.path); next(); }, render: function (req, res) { var result = data.get(req.path); if (result.template) { res.status(result.error || 200).render...
15,319
https://github.com/NiFiLocal/nifi-minifi-cpp/blob/master/libminifi/src/utils/Id.cpp
Github Open Source
Open Source
Apache-2.0
2,021
nifi-minifi-cpp
NiFiLocal
C++
Code
652
1,772
/** * * 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 ...
8,568
https://github.com/malcock/childrensar/blob/master/Assets/Prefabs/Penguin.prefab
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,020
childrensar
malcock
Unity3D Asset
Code
4,850
22,177
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 1049191188943148} m_IsPrefabParent: ...
32,779
https://github.com/gitpan/Google-Adwords/blob/master/lib/Google/Adwords/ApiError.pm
Github Open Source
Open Source
Artistic-1.0-Perl
2,009
Google-Adwords
gitpan
Perl
Code
308
584
package Google::Adwords::ApiError; use strict; use warnings; use version; our $VERSION = qv('0.1'); use base 'Google::Adwords::Data'; my @fields = qw/ code detail isExemptable field index textIndex textLength trigger /; __PACKAGE__->mk_accessors(@fields); 1; =pod =head1 NAME ...
45,441
https://github.com/scitokens/scitokens-java/blob/master/scitokens-server/src/main/java/org/scitokens/loader/STLoader.java
Github Open Source
Open Source
Apache-2.0
2,021
scitokens-java
scitokens
Java
Code
362
1,644
package org.scitokens.loader; import edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl; import edu.uiuc.ncsa.myproxy.oa4mp.oauth2.loader.OA2ConfigurationLoader; import edu.uiuc.ncsa.myproxy.oa4mp.oauth2.storage.clients.OA2Client; import edu.uiuc.ncsa.myproxy.oa4mp.oauth2.storage.clients.OA2ClientProvider...
31,066
https://github.com/brombal/stylix-docs/blob/master/src/Home.tsx
Github Open Source
Open Source
MIT
2,021
stylix-docs
brombal
TSX
Code
347
1,144
import { faLevelDownAlt } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import $, { StylixProps } from '@stylix/core'; import * as React from 'react'; import { useRef } from 'react'; import { Link } from 'react-router-dom'; import CodeSample from './CodeSam...
26,500
https://github.com/dcjulian29/ElasticsearchPOC/blob/master/miniblog/wwwroot/css/admin.scss
Github Open Source
Open Source
MIT
2,023
ElasticsearchPOC
dcjulian29
SCSS
Code
110
393
.delete { color: crimson; float: right; } a.noline { text-decoration: none; } #edit { padding-bottom: 2em; .label { display: inline-block; margin-right: .3em; font-weight: bold; min-width: 50px; } input { font: inherit; &[type=text] { ...
11,871
https://github.com/BeastNeedsMoreTorque/Distribution/blob/master/m/mfiles/src/main/scala/typings/mfiles/global/MFiles/BooleanValue.scala
Github Open Source
Open Source
MIT
2,020
Distribution
BeastNeedsMoreTorque
Scala
Code
45
173
package typings.mfiles.global.MFiles import org.scalablytyped.runtime.Instantiable0 import typings.mfiles.IBooleanValue import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ @JSGlobal("MFiles.BooleanValue") @js.native class BooleanValue () extends IBooleanValue { /* CompleteClass ...
22,238
https://github.com/coklat0202/pa-telkom/blob/master/application/controllers/cms/c_notifikasi_manajemen.php
Github Open Source
Open Source
MIT
2,019
pa-telkom
coklat0202
PHP
Code
418
1,675
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class c_notifikasi_manajemen extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('m_notifikasi', 'notifications'); $user = $this->session->userdata('user'); if (empt...
18,062
https://github.com/arnozhang/phoenix_blog/blob/master/sources/src/client/base/BlogBaseFrame.tsx
Github Open Source
Open Source
Apache-2.0
2,022
phoenix_blog
arnozhang
TypeScript
Code
468
1,456
/** * Phoenix blog project. * * Copyright 2016-2016 Arno Zhang <zyfgood12@163.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0...
17,125
https://github.com/Nyarlana/Tactical-RPG/blob/master/doxygen/html/search/classes_2.js
Github Open Source
Open Source
MIT
null
Tactical-RPG
Nyarlana
JavaScript
Code
6
59
var searchData= [ ['entity_106',['Entity',['../class_entity.html',1,'']]], ['explorer_107',['Explorer',['../class_explorer.html',1,'']]] ];
3,319
https://github.com/kwekke/main/blob/master/src/main/java/seedu/exercise/storage/bookstorage/JsonRegimeBookStorage.java
Github Open Source
Open Source
MIT
null
main
kwekke
Java
Code
168
714
package seedu.exercise.storage.bookstorage; import static java.util.Objects.requireNonNull; import static seedu.exercise.model.resource.ResourceComparator.DEFAULT_REGIME_COMPARATOR; import java.io.IOException; import java.nio.file.Path; import java.util.Optional; import java.util.logging.Logger; import seedu.exercis...
44,273
https://github.com/daithiocrualaoich/euler/blob/master/scala/028.scala
Github Open Source
Open Source
Apache-2.0
null
euler
daithiocrualaoich
Scala
Code
245
426
/* * Number Spiral Diagonals * ======================= * Starting with the number 1 and moving to the right in a clockwise direction * a 5 by 5 spiral is formed as follows: * * 21 22 23 24 25 * 20 7 8 9 10 * 19 6 1 2 11 * 18 5 4 3 12 * 17 16 15 14 13 * * It can be verified that ...
32,546
https://github.com/theutmost/highsnobeityreact/blob/master/src/NavBar.jsx
Github Open Source
Open Source
MIT
2,017
highsnobeityreact
theutmost
JavaScript
Code
99
575
import React, { Component } from 'react'; class NavBar extends Component { render() { const navStyle = { position: "sticky", top: "0px", zIndex: "2" } return ( <nav className="navbar navbar-inverse" style={navStyle}> <div className="containe...
21,386
https://github.com/mrFrolic/Gallerie/blob/master/fr/contact.php
Github Open Source
Open Source
MIT
2,012
Gallerie
mrFrolic
PHP
Code
75
466
<?php include '../inc/head.inc.php' ?> <div class="contact"> <?php include './menu.inc.php' ?> <div class="container"> <iframe width='500' height='350' frameBorder='0' src='http://a.tiles.mapbox.com/v3/denav.map-bd8omxc6.html#15/48.85044698452589/2.340707239297078'></iframe> <article> <h4>GALERI...
19,221
https://github.com/williampaciaroni/SpringWeather/blob/master/src/main/java/com/example/demo/Models/ThreeHoursElement.java
Github Open Source
Open Source
MIT
null
SpringWeather
williampaciaroni
Java
Code
50
213
package com.example.demo.Models; import java.util.Date; import java.util.Map; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonProperty; public class ThreeHoursElement { @JsonProperty(value="dt_txt") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss") public Date date; pub...
1,984
https://github.com/ron-shaw/demo/blob/master/demo-springboot/src/main/java/com/jzg/demo/springboot/exception/GlobalDefaultExceptionHandler.java
Github Open Source
Open Source
Apache-2.0
null
demo
ron-shaw
Java
Code
89
391
package com.jzg.demo.springboot.exception; import org.apache.catalina.servlet4preview.http.HttpServletRequest; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.servlet.ModelAndView; import java.util.Date; ...
734
https://github.com/JupiterSmalltalk/Pillar/blob/master/repository/Pillar-Tests-ExporterCore.package/PRDocumentWriterTest.class/instance/configuration.st
Github Open Source
Open Source
MIT
2,017
Pillar
JupiterSmalltalk
null
Spoken
11
21
helpers configuration ^ configuration ifNil: [ configuration := PRPillarConfiguration new ]
33,449
https://github.com/Malinoski/telecon-docnet/blob/master/docnet-webclient/app/modules/addresses/addresses.js
Github Open Source
Open Source
MIT
2,019
telecon-docnet
Malinoski
JavaScript
Code
441
2,079
'use strict'; angular.module('myApp.addresses', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider .when('/addresses/:networkId', { templateUrl: 'modules/addresses/addresses.html', controller: 'AddressesCtrl' }); }]) .controller('AddressesCtrl', ['$rootScope', '$scope', '$http...
37,002
https://github.com/duke009/caasiope-blockchain/blob/master/Caasiope.Explorer.JSON.API/Requests/GetLedgerRequest.cs
Github Open Source
Open Source
MIT
2,020
caasiope-blockchain
duke009
C#
Code
29
126
using Caasiope.Explorer.JSON.API.Responses; using Helios.JSON; using Newtonsoft.Json; namespace Caasiope.Explorer.JSON.API.Requests { public class GetLedgerRequest : Request<GetLedgerResponse> { [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public long? Height; [JsonProp...
47,263
https://github.com/chencai01/scada-v6/blob/master/ScadaServer/OpenModules/ModArcPostgreSql.Common/ModuleUtils.cs
Github Open Source
Open Source
Apache-2.0
2,022
scada-v6
chencai01
C#
Code
87
202
// Copyright (c) Rapid Software LLC. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Scada.Config; namespace Scada.Server.Modules.ModArcPostgreSql { /// <summary> /// The class provides helper methods for the module. ...
40,824