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/dmarkrollins/pairity/blob/master/imports/client/organizations/editOrganization.js
Github Open Source
Open Source
Apache-2.0
2,018
pairity
dmarkrollins
JavaScript
Code
122
383
import { Meteor } from 'meteor/meteor' import { Template } from 'meteor/templating' import { FlowRouter } from 'meteor/kadira:flow-router' import { Pairity, Organizations } from '../../lib/pairity' import { Toast } from '../../../imports/client/common/toast' Template.editOrganization.onCreated(function () { const ...
25,294
https://github.com/zwlsky/OnlineExamSystem/blob/master/onlineExam/src/main/java/com/nenusoftware/onlineexam/entity/paper/Paper.java
Github Open Source
Open Source
Apache-2.0
2,020
OnlineExamSystem
zwlsky
Java
Code
85
259
package com.nenusoftware.onlineexam.entity.paper; /** * @Author:Liangll * @Description: 试卷实体 * @Date: 16:17 2019/4/27 */ public class Paper { /** * 试卷编号 */ private Integer paperId; /** * 试卷名称 */ private String paperName; public Integer getPaperId() { return paperI...
4,014
https://github.com/Stanek-K/EvilWithin/blob/master/src/main/java/gremlin/relics/GremlinGravestone.java
Github Open Source
Open Source
MIT
2,022
EvilWithin
Stanek-K
Java
Code
66
269
package gremlin.relics; import com.megacrit.cardcrawl.core.CardCrawlGame; import com.megacrit.cardcrawl.localization.RelicStrings; import com.megacrit.cardcrawl.relics.AbstractRelic; public class GremlinGravestone extends AbstractGremlinRelic { public static final String ID = getID("GremlinGravestone"); priva...
8,342
https://github.com/bbolen/zephyr/blob/master/include/zephyr/drivers/gpio/gpio_esp32.h
Github Open Source
Open Source
Apache-2.0
2,021
zephyr
bbolen
C
Code
48
274
/* * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/devicetree.h> #ifndef ZEPHYR_INCLUDE_DRIVERS_GPIO_GPIO_ESP32_H_ #define ZEPHYR_INCLUDE_DRIVERS_GPIO_GPIO_ESP32_H_ static const char *gpio_esp32_get_gpio_for_pin(int pin) { if (pin < 32) { #if DT_NODE_HAS_STATUS(DT_NODELABEL(gpio0), okay) return DT_LAB...
17,924
https://github.com/mrf552/hydrafw_hydranfc_shield_v2/blob/master/src/hydranfc_v2/rfal/src/st25r3916/st25r3916_irq.h
Github Open Source
Open Source
Apache-2.0
2,021
hydrafw_hydranfc_shield_v2
mrf552
C
Code
1,054
3,033
/****************************************************************************** * @attention * * COPYRIGHT 2016 STMicroelectronics, all rights reserved * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WAR...
49,368
https://github.com/d-hrytsenko/virgil-iotkit/blob/master/iot-sandbox/sandbox-ui/src/connection/request.js
Github Open Source
Open Source
BSD-3-Clause
null
virgil-iotkit
d-hrytsenko
JavaScript
Code
117
406
export class Request { headers = new Headers() isEmptyResponse = true successHandlers = [] errorHandler = [] getOptions() { const options = { method: this.method } if (this.params) { options.body = JSON.stringify(this.params) this.headers.set('Content-Type', 'application/json') } if (this.cache)...
45,723
https://github.com/Sven65/FileManager/blob/master/index.php
Github Open Source
Open Source
Apache-2.0
null
FileManager
Sven65
PHP
Code
27
145
<html> <head> <title>FMS</title> <link rel="stylesheet" type="text/css" href="assets/style.css"> </head> <body> <span id="error"></span> <form action="main.php" method="post"> <input type="text" name="name" placeholder="Username"> <input type="password" name="pass" placeholder="Password"> <button ty...
5,894
https://github.com/PowerDG/Hundred-Micro/blob/master/DgIdentityServer/Role.cs
Github Open Source
Open Source
MIT
2,019
Hundred-Micro
PowerDG
C#
Code
199
556
using Abp.Authorization.Roles; using Research.Authorization.Users; using System; using System.ComponentModel.DataAnnotations.Schema; namespace Research.Authorization.Roles { public class Role : AbpRole<User> { //Can add application specific role properties here public Role() { ...
25,222
https://github.com/GopherJ/UIConsult/blob/master/src/subcmds/topwords.js
Github Open Source
Open Source
MIT
2,018
UIConsult
GopherJ
JavaScript
Code
467
1,251
/** * SPEC_5 * * @author Cherchour Liece * * Edit: Cheng JIANG */ const cli = require('caporal'); const chalk = require('chalk'); const ora = require('ora'); const FileWalker = require('../lib/FileWalker'); const EmailParser = require('../lib/EmailParser'); const Table = require('../lib/Table'); const ErrMsg = re...
16,101
https://github.com/kentprojects/web/blob/master/public/includes/php/footer.php
Github Open Source
Open Source
MIT
null
web
kentprojects
PHP
Code
74
424
</div> <footer class="container"> <div class="row"> <hr/> <p class="bigMargin softenText text-center"> &copy; 2014-2015. James Dryden, Matt House, Matt Weeks </p> </div> </footer> <!-- Cheet -- <script src="/incl...
29,449
https://github.com/satks/screen-recording/blob/master/.gitignore
Github Open Source
Open Source
Apache-2.0
2,015
screen-recording
satks
Ignore List
Code
7
32
/build/ /app/build/ /.gradle/ local.properties *.swp .idea/ *.iml
14,874
https://github.com/digikar99/ccl/blob/master/library/cover.lisp
Github Open Source
Open Source
Apache-2.0
2,022
ccl
digikar99
Common Lisp
Code
6,907
21,931
;;;-*-Mode: LISP; Package: CCL -*- ;;; ;;; Copyright 2008-2009 Clozure Associates ;;; ;;; 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....
6,217
https://github.com/conan-io/conan-docker-tools/blob/master/modern/tests/test_installed/test_conan.py
Github Open Source
Open Source
MIT
2,023
conan-docker-tools
conan-io
Python
Code
95
297
import pytest def test_conan_version(container, expected): out, err = container.exec(['conan', '--version']) assert out.strip() == f'Conan version {expected.conan}', f"out: '{out}' err: '{err}'" @pytest.mark.service('deploy', 'jenkins') def test_revisions_enabled(container): out, _ = container.exec(['con...
43,986
https://github.com/SmarterEye/libsmartereye2/blob/master/src/gemini/gemini_info.cc
Github Open Source
Open Source
Apache-2.0
2,021
libsmartereye2
SmarterEye
C++
Code
191
624
// Copyright 2020 Smarter Eye Co.,Ltd. All Rights Reserved. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applica...
13,669
https://github.com/TinyChou/react-simple-boilerplate/blob/master/styles/home.scss
Github Open Source
Open Source
MIT
2,017
react-simple-boilerplate
TinyChou
SCSS
Code
86
223
h1 { color: tomato; } body, html { margin: 0 } @keyframes splash_slogan_one { 0% { top: -10rem; } 100% { top: 40rem; } } @keyframes splash_slogan_two { 0% { top: -5rem; } 100% { top: 50rem; } } @keyframes splash_paper { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes splash_pen { 0% { opacit...
43,745
https://github.com/MKindy/hb-downloader/blob/master/hb_downloader/humble_api/humble_hash.py
Github Open Source
Open Source
MIT
2,021
hb-downloader
MKindy
Python
Code
688
1,802
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import hashlib import os from .events import Events __author__ = "Brian Schkerke" __copyright__ = "Copyright 2016 Brian Schkerke" __license__ = "MIT" __all__ = ["HumbleHash"] class HumbleHash(object): """ HumbleHash is the central repository for all code re...
52,542
https://github.com/Gurupradeep/Codes/blob/master/Hackerrank/three-loops.cpp
Github Open Source
Open Source
MIT
null
Codes
Gurupradeep
C++
Code
31
142
#include<iostream> using namespace std; int main() { int n,sum; cin>>n>>sum; int ans=0; for(int a=1;a<=n;a++) { for(int b=1;b<=n;b++) { for(int c=1;c<=n;c++) { if(a+b+c==sum){ ans++; } } } } cout<<ans<<endl; ...
39,274
https://github.com/wuxiaod1987/WCAE/blob/master/WCAE/GUI/WGUIs/Controls/WTextBox_Under.cs
Github Open Source
Open Source
Apache-2.0
null
WCAE
wuxiaod1987
C#
Code
316
1,133
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace WGUIs.Controls { public partial class WTextBox_Under : Control { public WTextBox_Under() { ...
42,443
https://github.com/gif-hara/GL/blob/master/Assets/GL/Scripts/Battle/AI/Event/Counter.cs
Github Open Source
Open Source
MIT
2,019
GL
gif-hara
C#
Code
135
594
using System.Collections.Generic; using GL.Battle.CharacterControllers; using GL.Database; using GL.Events.Battle; using GL.Extensions; using HK.Framework.EventSystems; using UnityEngine; using UnityEngine.Assertions; namespace GL.Battle.AIControllers { /// <summary> /// カウンター攻撃を行うイベント /// </summary> ...
14,548
https://github.com/hilmarm/giessdenkiez-de/blob/master/src/Providers/index.tsx
Github Open Source
Open Source
MIT
2,022
giessdenkiez-de
hilmarm
TypeScript
Code
117
379
import React, { FC } from 'react'; import { Provider } from 'unistore/react'; import { QueryClientProvider, QueryClient } from 'react-query'; import { ReactQueryDevtools } from 'react-query/devtools'; import { Router } from 'react-router-dom'; import { ThemeProvider } from 'styled-components'; import store from '../st...
20,855
https://github.com/zemekoule/netis/blob/master/app/modules/base/conf.neon
Github Open Source
Open Source
MIT
2,018
netis
zemekoule
null
Spoken
8
30
# Base module. services: - Base\Repository\Website - Drago\Application\UI\Factory
47,196
https://github.com/Katrix/Ore/blob/master/app/db/impl/schema.scala
Github Open Source
Open Source
MIT
null
Ore
Katrix
Scala
Code
1,873
7,079
package db.impl import java.sql.Timestamp import com.github.tminglei.slickpg.InetString import cats.data.NonEmptyList import db.{ObjectId, ObjectReference, ObjectTimestamp} import db.impl.OrePostgresDriver.api._ import db.impl.schema._ import db.impl.table.StatTable import db.impl.table.common.{DescriptionColumn, Do...
36,801
https://github.com/om3n07/namrly-core/blob/master/Namrly.Services/WorknikResponse.cs
Github Open Source
Open Source
MIT
2,019
namrly-core
om3n07
C#
Code
78
169
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; namespace Namrly.Services { public class WordnikResponse { public string relationshipType { get; set; } public string[] words { get; set; } } public class WordnikSingleResponse ...
11,257
https://github.com/MisaZhu/qemu_raspi/blob/master/qemu-4.2.0/slirp/src/libslirp.h
Github Open Source
Open Source
Apache-2.0
null
qemu_raspi
MisaZhu
C
Code
480
1,509
/* SPDX-License-Identifier: BSD-3-Clause */ #ifndef LIBSLIRP_H #define LIBSLIRP_H #include <stdint.h> #include <stdbool.h> #include <sys/types.h> #ifdef _WIN32 #include <winsock2.h> #include <in6addr.h> #else #include <netinet/in.h> #include <arpa/inet.h> #endif #include "libslirp-version.h" #ifdef __cplusplus exte...
35,619
https://github.com/vaniazer/Sertifikasi-KP-Blog/blob/master/application/models/M_tambah.php
Github Open Source
Open Source
MIT
null
Sertifikasi-KP-Blog
vaniazer
PHP
Code
66
322
<?php class M_tambah extends CI_Model { public function get() { return $this->db->get('tambah'); } public function get_where($id_resep) { return $this->db->get_where('tambah', array('id_resep' => $id_resep)); } public function get_join($table) { $this->db->selec...
24,568
https://github.com/einari/Forseti/blob/master/Source/Forseti.Specs/Configuration/for_ConfigurationFileReader/given/a_configuration_file_reader_and_a_configure_instance.cs
Github Open Source
Open Source
MIT
2,015
Forseti
einari
C#
Code
17
80
using Forseti.Configuration; using Moq; using Machine.Specifications; namespace Forseti.Specs.Configuration.for_ConfigurationFileReader.given { public class a_configuration_file_reader_and_a_configure_instance : a_configuration_file_reader { } }
38,390
https://github.com/uk-gov-mirror/hmcts.bulk-scan-processor/blob/master/src/main/java/uk/gov/hmcts/reform/bulkscanprocessor/entity/reports/ZipFilesSummaryRepository.java
Github Open Source
Open Source
MIT
null
hmcts.bulk-scan-processor
uk-gov-mirror
Java
Code
255
695
package uk.gov.hmcts.reform.bulkscanprocessor.entity.reports; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import uk.gov.hmcts.reform.bulkscanprocessor.entity.Envelope; import java.time.Local...
26,589
https://github.com/iamrxheem/cxcstudyguide.com/blob/master/src/components/pastPaperSlider.js
Github Open Source
Open Source
MIT
null
cxcstudyguide.com
iamrxheem
JavaScript
Code
329
2,381
import React from "react" import { Alert, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, NavLink, Dropdown, DropdownToggle, DropdownMenu, DropdownItem, InputGroup, InputGroupAddon, InputGroupText, FormInput, Collapse, Breadcrumb, BreadcrumbItem, Row, Col, Container, Butto...
10,414
https://github.com/mpol/iis/blob/master/iis-wf/iis-wf-import/src/main/java/eu/dnetlib/iis/wf/importer/infospace/converter/OrganizationConverter.java
Github Open Source
Open Source
Apache-2.0
2,022
iis
mpol
Java
Code
135
617
package eu.dnetlib.iis.wf.importer.infospace.converter; import org.apache.commons.lang3.StringUtils; import org.apache.log4j.Logger; import com.google.common.base.Preconditions; import eu.dnetlib.iis.importer.schemas.Organization; /** * Converter of {@link eu.dnetlib.dhp.schema.oaf.Organization} object into {@link...
23,953
https://github.com/jogster/Honeycomb/blob/master/src/common/Honey/Object/Property.h
Github Open Source
Open Source
CC0-1.0, ISC, BSL-1.0
2,015
Honeycomb
jogster
C++
Code
321
746
// Honeycomb, Copyright (C) 2015 NewGamePlus Inc. Distributed under the Boost Software License v1.0. #pragma once #include "Honey/String/Id.h" #include "Honey/Math/Real.h" namespace honey { /// \addtogroup Component /// @{ /// Base class for all properties class PropertyBase : public Object { public: typedef S...
7,220
https://github.com/Marcos237/MMSystrade/blob/master/SYSTRADE_AGENCIA/Systrade_Agencia/Systrade.Infra.Data/EntityConfiguration/UsuarioIdentityConfiguration.cs
Github Open Source
Open Source
MIT
null
MMSystrade
Marcos237
C#
Code
38
189
using System.Data.Entity.ModelConfiguration; using Systrade.Dominio.Entidade; using Systrade.Dominio.Entidade.Usuarios; namespace Systrade.Infra.Data.EntityConfiguration { public class UsuarioIdentityConfiguration: EntityTypeConfiguration<UsuarioIdentity> { public UsuarioIdentityConfiguration() ...
44,888
https://github.com/captkirk88/monkeyspeak/blob/master/Monkeyspeak.Editor.Interfaces/Plugins/IPlugin.cs
Github Open Source
Open Source
MIT
2,019
monkeyspeak
captkirk88
C#
Code
152
425
using Monkeyspeak.Editor.Interfaces.Notifications; using Monkeyspeak.Editor.Interfaces.Plugins; namespace Monkeyspeak.Editor.Interfaces.Plugins { public interface IPlugin { /// <summary> /// Initializes this plugin. /// </summary> /// <param name="notificationManager"> ...
48,583
https://github.com/shipwebdotjp/Inertiajs-tutorial/blob/master/backend/resources/js/Pages/Contact/Confirm.vue
Github Open Source
Open Source
MIT
2,021
Inertiajs-tutorial
shipwebdotjp
Vue
Code
149
692
<template> <layout> <h2 class="text-lg border-b p-1"> <inertia-link :href="route('contact.index')" class="text-blue-700 underline"> お問い合わせ </inertia-link> </h2> <form @submit.prevent="submit"> <h3 class="border-l-4 p-1">ご入力いただいた内容をご確認ください</h3>...
23,966
https://github.com/Kngfhrr/petnamegeneration/blob/master/src/server.js
Github Open Source
Open Source
MIT
2,021
petnamegeneration
Kngfhrr
JavaScript
Code
57
168
require('dotenv').config() import sirv from 'sirv'; import polka from 'polka' import compression from 'compression' import * as sapper from '@sapper/server' const { PORT, NODE_ENV} = process.env const dev = NODE_ENV === 'development' polka() .use( compression({threshold: 0}), sirv('static', {dev}), (re...
10,560
https://github.com/leonarpv/frontpage/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,020
frontpage
leonarpv
Ignore List
Code
38
112
# Project dependencies .cache node_modules yarn-error.log # We use yarn.lock package-lock.json # Build directory /public storybook-static .DS_Store .idea monorepo # Pulled from monorepo src/content/docs # Env vars .env.production .env.development # Netlify functions /functions # Local Netlify folder .netlify/
20,026
https://github.com/vpachkov/Beelder/blob/master/Sources/Config.cpp
Github Open Source
Open Source
MIT
2,022
Beelder
vpachkov
C++
Code
60
203
#include "Config.h" #include <string> #include <iostream> void Config::process_arguments(int argc, char** argv) { if (argc > 0) { m_filename = std::string(argv[0]); m_arguments.reserve(argc); for (size_t at = 1; at < argc; at++) { m_arguments.emplace_back(argv[at]); } ...
42,701
https://github.com/Think-Build/hackMap/blob/master/hackMapTB/www/js/controllers/infoController.js
Github Open Source
Open Source
Apache-2.0
null
hackMap
Think-Build
JavaScript
Code
286
1,204
angular.module('starter').controller('InfoController', [ '$scope', '$state', '$log', '$stateParams', 'LocationsService', 'pouchCollection', 'OrganitationService', 'InterviewerService', 'HitosService', 'GeneralService', function( $scope, $state, $log, $st...
14,720
https://github.com/alexcardoso2020/tkinter_requests/blob/master/gui/response_tab.py
Github Open Source
Open Source
MIT
2,020
tkinter_requests
alexcardoso2020
Python
Code
112
514
import json from gui.main_window import MainWindow from gui.tk_frame import TkFrame from gui.tkinter_helpers import grid_element # from infra.requests_adapter import RequestsAdapter # import tkinter.messagebox class ResponseTab: def __init__(self, main_window: MainWindow): self.main_window = main_window ...
20,734
https://github.com/colour-science/colour-datasets/blob/master/colour_datasets/utilities/tests/test_spreadsheet.py
Github Open Source
Open Source
BSD-3-Clause
2,022
colour-datasets
colour-science
Python
Code
226
1,234
# -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour_datasets.utilities.spreadsheet` module. """ import os import unittest import xlrd from colour_datasets.utilities import (row_to_index, index_to_row, column_to_index, index_to_column, ...
28,672
https://github.com/aidalgol/nixpkgs/blob/master/pkgs/applications/audio/jellycli/fix-test-dir.patch
Github Open Source
Open Source
MIT
2,021
nixpkgs
aidalgol
null
Spoken
37
181
diff --git a/config/config_test.go b/config/config_test.go index 9f63a7e..7e790b8 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -110,7 +110,7 @@ func TestInitEmptyConfig(t *testing.T) { Subsonic: Subsonic{}, Player: Player{ Server: "jellyfin", - LogFile: "/tm...
27,348
https://github.com/touchlyh/k/blob/master/K/Other/KBaseViewModel.m
Github Open Source
Open Source
MIT
2,019
k
touchlyh
Objective-C
Code
49
160
// // KSongDownloadVC.h // K // // Created by TION126 on 2019/1/15. // Copyright © 2019 com.tion126. All rights reserved. // #import "KBaseViewModel.h" @implementation KBaseViewModel - (instancetype)init { self = [super init]; if (self) { [self initialize]; } return self; } -(...
22,393
https://github.com/Shonov/instagram-analytics/blob/master/database/migrations/2018_08_09_093344_create_instagram_account_medias_table.php
Github Open Source
Open Source
MIT
null
instagram-analytics
Shonov
PHP
Code
59
325
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateInstagramAccountMediasTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('...
9,385
https://github.com/erikadoyle/service-fabric-dotnet-data-aggregation/blob/master/HealthMetrics.Common/NationalStatsViewModel.cs
Github Open Source
Open Source
MIT
2,021
service-fabric-dotnet-data-aggregation
erikadoyle
C#
Code
115
291
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ namespace HealthMetrics.Com...
49,357
https://github.com/Excloudx6/dynosaur/blob/master/lib/dynosaur/success/cronut.rb
Github Open Source
Open Source
MIT
2,019
dynosaur
Excloudx6
Ruby
Code
112
426
require 'faraday' module Dynosaur::Success class Cronut CRONUT_API_TOKEN_HEADER = 'X-CRONUT-API-TOKEN' PING_INTERVAL = 60 def initialize(config) @host = config["host"] @api_token = config["api_token"] @public_key = OpenSSL::PKey::RSA.new(config["public_key"].gsub("|", "\n")) @cro...
15,294
https://github.com/RG2N/Spigot-BT/blob/master/CraftBukkit/src/main/java/org/bukkit/craftbukkit/block/CraftTNT.java
Github Open Source
Open Source
GPL-3.0-only, LGPL-3.0-only, Apache-2.0
2,021
Spigot-BT
RG2N
Java
Code
60
265
/** * Automatically generated file, changes will be lost. */ package org.bukkit.craftbukkit.block.impl; public final class CraftTNT extends org.bukkit.craftbukkit.block.data.CraftBlockData implements org.bukkit.block.data.type.TNT { public CraftTNT() { super(); } public CraftTNT(net.minecraft.w...
50,006
https://github.com/cosiitoypg1/apphercules-filtros-mejoras/blob/master/app/Http/Controllers/NotPaymentController.php
Github Open Source
Open Source
Apache-2.0
2,021
apphercules-filtros-mejoras
cosiitoypg1
PHP
Code
348
1,243
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\db_credit; use App\db_not_pay; use App\db_summary; use App\Exports\NotPayExport; use Carbon\Carbon; use Carbon\CarbonPeriod; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Cookie; use Maatwebsite\Excel\Facades\Excel; clas...
33,128
https://github.com/baraaofficial/refae/blob/master/resources/views/cart.blade.php
Github Open Source
Open Source
MIT
null
refae
baraaofficial
PHP
Code
180
916
@extends('layouts.main') @section('content') <div class="page-title-area ptb-100"> <div class="container"> <div class="page-title-content"> <h1>Cart</h1> <ul> <li class="item"><a href="{{ url('/') }}">Home</a></li> <li cl...
21,040
https://github.com/clumsy456/huaweicloud-sdk-go-v3/blob/master/services/dgc/v1/model/model_show_script_response.go
Github Open Source
Open Source
Apache-2.0, BSD-2-Clause
2,022
huaweicloud-sdk-go-v3
clumsy456
Go
Code
200
786
package model import ( "encoding/json" "errors" "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter" "strings" ) // Response Object type ShowScriptResponse struct { Name *string `json:"name,omitempty"` // 脚本类型 Type *ShowScriptResponseType `json:"type,omitempty"` // 脚本关联的目录 Directory *string `jso...
52,192
https://github.com/josetom/go-chain/blob/master/test_helper/test_helper_db/test_helper_db.go
Github Open Source
Open Source
MIT
null
go-chain
josetom
Go
Code
36
165
package test_helper_db import ( "os" "testing" "github.com/josetom/go-chain/db" "github.com/josetom/go-chain/db/types" ) func NewTestDatabase(t *testing.T) types.Database { t_db, err := db.NewDatabase("__test") if err != nil { t.Error(err) } cleanup := func() { t_db.Close() os.RemoveAll("__test") } ...
51,029
https://github.com/Phillistan16/sigpy/blob/master/tests/mri/test_samp.py
Github Open Source
Open Source
BSD-3-Clause
null
sigpy
Phillistan16
Python
Code
88
317
import unittest import numpy as np import numpy.testing as npt from sigpy.mri import samp if __name__ == '__main__': unittest.main() class TestPoisson(unittest.TestCase): """Test poisson undersampling defined in `sigpy.mri.samp.poisson`.""" def test_numpy_random_state(self): """Verify that rand...
23,690
https://github.com/animatedmax/geode/blob/master/geode-pulse/geode-pulse-test/src/main/java/org/apache/geode/tools/pulse/tests/rules/WebDriverRule.java
Github Open Source
Open Source
Apache-2.0
null
geode
animatedmax
Java
Code
375
1,154
/* * 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 not ...
533
https://github.com/ludolatin/ludolatin/blob/master/app/quiz/common.py
Github Open Source
Open Source
MIT
2,022
ludolatin
ludolatin
Python
Code
176
492
from flask import session from flask_login import current_user from app.models import Answer, Sentence def _get_user(): return current_user if current_user.is_authenticated else None def correct_answers(id): attempt = session.get('attempt') # Collection of correct answers previously given, returning j...
33,157
https://github.com/lorensr/mysqlplus/blob/master/README.rdoc
Github Open Source
Open Source
Ruby
2,011
mysqlplus
lorensr
RDoc
Code
232
664
== MySQLPlus An enhanced MySQL database driver. With support for async operations and threaded database access. == Building gem build mysqlplus.gemspec === OS X with the default mysql installed: sudo gem install mysqlplus-0.1.0.gem -- --with-mysql-config with mysql installed by macports: sudo ge...
34,287
https://github.com/UnofficialJuliaMirror/ClinicalTrialSampleSize.jl-de03306e-617a-5495-a07b-a6b7842ad19f/blob/master/test/TwoSampleTest.jl
Github Open Source
Open Source
MIT
2,017
ClinicalTrialSampleSize.jl-de03306e-617a-5495-a07b-a6b7842ad19f
UnofficialJuliaMirror
Julia
Code
914
2,938
using ClinicalTrialSampleSize using Base.Test # TwoSampleMean # Constructor: TwoSampleMean() @test_throws ErrorException TwoSampleMean(-Inf, Inf, 1) @test_throws ErrorException TwoSampleMean(25, 20, 0) params = ( (TwoSampleMean(3, 2, 1, true), 16.722, 0.8, 1, 0.05, "two"), (TwoSampleMean(10, 7, 2), 43.780, 0....
24,738
https://github.com/owulveryck/gozw/blob/master/cc/version-v3/command-class-report.gen.go
Github Open Source
Open Source
MIT
2,020
gozw
owulveryck
Go
Code
191
582
// THIS FILE IS AUTO-GENERATED BY ZWGEN // DO NOT MODIFY package versionv3 import ( "encoding/gob" "errors" "github.com/gozwave/gozw/cc" ) const CommandCommandClassReport cc.CommandID = 0x14 func init() { gob.Register(CommandClassReport{}) cc.Register(cc.CommandIdentifier{ CommandClass: cc.CommandClassID(0x...
9,939
https://github.com/phisn/DigitalDetectivesCore/blob/master/DigitalDetectivesCore/Client/src/app/models/tickets-for-player.ts
Github Open Source
Open Source
MIT
2,022
DigitalDetectivesCore
phisn
TypeScript
Code
21
59
import { PlayerColor } from "./game/player-color.enum"; import { TicketBag } from "./game/ticket-bag"; export interface TicketsForPlayer { tickets: TicketBag; color: PlayerColor; }
13,643
https://github.com/FebriTahta/NEW_NURUL_FALAH_WEBSITE/blob/master/resources/views/page/detail_post.blade.php
Github Open Source
Open Source
MIT
null
NEW_NURUL_FALAH_WEBSITE
FebriTahta
PHP
Code
554
2,701
@extends('layouts.master') @section('head') <meta property="og:title" content="{{$post->judul}}" /> <meta property="og:type" content="website" /> <meta property="og:image" content="{{asset('img_thumbnail/'.$post->thumbnail)}}" /> <meta property="og:description" content="{{substr($post->deskripsi,0,250...
52,119
https://github.com/ThomasBury/scicomap/blob/master/scicomap/utils.py
Github Open Source
Open Source
MIT
2,022
scicomap
ThomasBury
Python
Code
1,091
3,718
import itertools import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.image as mpimg from matplotlib.colors import ListedColormap from matplotlib.patches import Circle from mpl_toolkits.axes_grid1 import make_axes_locatable from os.path import dirname, join # internal import fro...
39,861
https://github.com/tallseth/FSharpKatas/blob/master/Katas/Kata3/Elevator.fs
Github Open Source
Open Source
Unlicense
null
FSharpKatas
tallseth
null
Spoken
247
822
module Katas.Kata3.Elevator type Direction = Up | Down | Stay type Floor = int type Elevator = Left | Right type ElevatorCall = Floor * Direction type ElevatorState = Floor * Floor type Route = { Distance:int; Direction:Direction } type CallRoutes = { RouteToCallOne:Route; RouteToCallTwo:Route;} let determine...
41,992
https://github.com/vstdio/ood/blob/master/State/GumballMachine/SoldState.cpp
Github Open Source
Open Source
MIT
2,018
ood
vstdio
C++
Code
121
421
#include "stdafx.h" #include "SoldState.h" using namespace with_state; SoldState::SoldState(IGumballMachineContext& machine, std::ostream& output) : m_machine(machine) , m_output(output) { } void SoldState::InsertCoin() { m_output << "Please wait, we're already giving you a gumball\n"; } void SoldState::EjectCoi...
51,195
https://github.com/charlesbjohnson/super_happy_interview_time/blob/master/rb/lib/data_structures/linked_list.rb
Github Open Source
Open Source
MIT
null
super_happy_interview_time
charlesbjohnson
Ruby
Code
190
515
# frozen_string_literal: true require_relative("single_node") module DataStructures class LinkedList include(Enumerable) def initialize @head = SingleNode.new @tail = @head end def size to_a.size end def empty? size.zero? end def [](index) cursor = @...
39,010
https://github.com/anggawasita/aeon-engine/blob/master/engine/mono/src/managed_interface/core/types_conversion.h
Github Open Source
Open Source
MIT
2,019
aeon-engine
anggawasita
C++
Code
566
1,746
/* * Copyright (c) 2012-2018 Robin Degen * * 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, merge,...
11,788
https://github.com/zhangzhen886/PaddleRobotics/blob/master/QuadrupedalRobots/ETGRL/eval_real_robot.py
Github Open Source
Open Source
Apache-2.0
2,022
PaddleRobotics
zhangzhen886
Python
Code
1,629
7,057
import argparse import json import logging import os import threading import time from copy import copy # from concurrent.futures import ThreadPoolExecutor # from queue import Queue import numpy as np import rospy from matplotlib import pyplot as plt from sensor_msgs.msg import JointState from std_msgs.msg import Floa...
32,272
https://github.com/grahaml/next-firebase-auth/blob/master/src/__tests__/withAuthUserTokenSSR.test.js
Github Open Source
Open Source
MIT
2,022
next-firebase-auth
grahaml
JavaScript
Code
2,371
8,392
import { setConfig } from 'src/config' import getMockConfig from 'src/testHelpers/createMockConfig' import { createMockFirebaseUserAdminSDK } from 'src/testHelpers/authUserInputs' import createAuthUser from 'src/createAuthUser' import { getCookie } from 'src/cookies' import { verifyIdToken } from 'src/firebaseAdmin' im...
3,891
https://github.com/fathonir/simpresnas/blob/master/applications/frontend/views/expo/add.tpl
Github Open Source
Open Source
MIT
null
simpresnas
fathonir
null
Spoken
264
1,604
{extends file='site_layout.tpl'} {block name='head'} <style>.table { font-size: 14px; }</style> {/block} {block name='content'} <h2 class="page-header">Tambah usulan untuk ikut Expo KMI</h2> <div class="row"> <div class="col-lg-12"> <p> <a href="{site_url('expo')}">Kembali ke daftar usulan Expo</a> </p>...
12,801
https://github.com/exozet/ExozetGruntBundle/blob/master/DependencyInjection/Configuration.php
Github Open Source
Open Source
MIT
2,016
ExozetGruntBundle
exozet
PHP
Code
133
571
<?php namespace Exozet\GruntBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files. * * To learn more see {@link http://symfo...
26,637
https://github.com/lucasgelfond/eth-summer-project/blob/master/scaffold-eth/packages/services/arbitrum/packages/arb-evm/arboscontracts/abigen.sh
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,021
eth-summer-project
lucasgelfond
Shell
Code
36
264
#!/bin/bash PREFIX=../../arb-os/contracts/arbos/builtin PREFIX2=../../arb-bridge-peripherals/contracts/rpc-utils PACKAGE=arboscontracts abigen --sol=$PREFIX/ArbInfo.sol --pkg=$PACKAGE --out=arbinfo.go abigen --sol=$PREFIX/ArbSys.sol --pkg=$PACKAGE --out=arbsys.go abigen --sol=$PREFIX/ArbAddressTable.sol --pkg=$PACKAGE...
38,740
https://github.com/zhurongjun/UnrealEvent/blob/master/Source/UnrealEventEditor/Private/EventBinderWidgets/SEventItem.cpp
Github Open Source
Open Source
MIT
2,020
UnrealEvent
zhurongjun
C++
Code
390
2,357
#include "EventBinderWidgets/SEventItem.h" #include "EventBinderLibrary.h" #include "EventBinderWidgets/SDelegateItem.h" void SEventItem::Construct(const FArguments& InArgs) { TargetSignature = InArgs._TargetSignature; EventBindInfoSource = InArgs._Source; EventName = InArgs._EventName; OnEventModify = InArgs._On...
8,098
https://github.com/earizon/Nethereum/blob/master/src/Nethereum.Geth.IntegrationTests/Testers/MinerStopTester.cs
Github Open Source
Open Source
MIT
2,019
Nethereum
earizon
C#
Code
61
219
using System; using System.Threading.Tasks; using Nethereum.Geth.RPC.Miner; using Nethereum.JsonRpc.Client; using Nethereum.RPC.Tests.Testers; using Xunit; namespace Nethereum.Geth.Tests.Testers { public class MinerStopTester : RPCRequestTester<bool>, IRPCRequestTester { public override async Task<bool...
22,128
https://github.com/lxhmm921/mip-extensions-platform/blob/master/mip-jdd-platwrapper/mip-jdd-platwrapper.js
Github Open Source
Open Source
MIT
2,020
mip-extensions-platform
lxhmm921
JavaScript
Code
90
317
/** * @author:JDDFE * @date: 2018-05-17 * @file mip-jdd-platwrapper.js * */ define(function (require) { var util = require('util'); var customElement = require('customElement').create(); var viewer = require('viewer'); // createdCallback说明:在创建元素,及时隐藏头部避免页面抖动(判断是否百度mip环境,是隐藏、否显示) customElemen...
45,154
https://github.com/okulik/heroku-true-relic/blob/master/lib/heroku-true-relic/queue_time_logger.rb
Github Open Source
Open Source
MIT
2,020
heroku-true-relic
okulik
Ruby
Code
91
352
module HerokuTrueRelic # combination of https://gist.github.com/daveyeu/4960893 # and https://gist.github.com/jasonrclark/d82a1ea7695daac0b9ee class QueueTimeLogger attr_reader :app def initialize(app, options = {}) @app = app end def call(env) now = Time.now.to_f # Delete Her...
44,751
https://github.com/gdincu/UBB_PostUni/blob/master/Sem2/Programare orientată obiect (Java)/Examen/Simulare/src/Domain/DieselValidator.java
Github Open Source
Open Source
MIT
2,020
UBB_PostUni
gdincu
Java
Code
28
80
package Domain; import Service.DieselService; public class DieselValidator implements IValidator<DieselCar> { @Override public void validate(DieselCar A) { if(A.getPret() <= 0) throw new RuntimeException("PRetul trebuie sa fie pozitiv!"); } }
14,490
https://github.com/mehalick/Meadow.CLI/blob/master/Meadow.CLI/Commands/FileSystem/FormatFileSystemCommand.cs
Github Open Source
Open Source
Apache-2.0
null
Meadow.CLI
mehalick
C#
Code
98
329
using System.Threading.Tasks; using CliFx.Attributes; using CliFx.Infrastructure; using Meadow.CLI.Core.DeviceManagement; using Microsoft.Extensions.Logging; namespace Meadow.CLI.Commands.FileSystem { [Command("fs format", Description = "Format a File System on the Meadow Board")] public class FormatFileSyste...
5,357
https://github.com/FriOne/angular-universal-starter/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,017
angular-universal-starter
FriOne
Ignore List
Code
10
46
dist-server node_modules dist server.js package-lock.json yarn.lock prerender.js prerender.js .DS_Store static/
11,049
https://github.com/nagineni/chromium-crosswalk/blob/master/chrome/browser/ui/gtk/gtk_chrome_button.cc
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,021
chromium-crosswalk
nagineni
C++
Code
459
2,173
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/gtk/gtk_chrome_button.h" #include "base/basictypes.h" #include "chrome/browser/ui/gtk/nine_box.h" #include "grit/ui_resou...
24,471
https://github.com/apache/netbeans/blob/master/platform/openide.actions/src/org/openide/actions/UndoRedoAction.java
Github Open Source
Open Source
Apache-2.0
2,023
netbeans
apache
Java
Code
743
2,465
/* * 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 ...
20,786
https://github.com/LunarG/gfxreconstruct/blob/master/framework/util/test/dx12_utils.cpp
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference, BSL-1.0, Apache-2.0, BSD-2-Clause, BSD-3-Clause, LicenseRef-scancode-warranty-disclaimer, Zlib
2,023
gfxreconstruct
LunarG
C++
Code
728
2,967
/* ** Copyright (c) 2018-2021 Advanced Micro Devices, Inc. All rights reserved. ** ** 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 ...
39,590
https://github.com/OpenMPT/openmpt/blob/master/include/cryptopp/threefish.h
Github Open Source
Open Source
BSL-1.0, LicenseRef-scancode-public-domain, BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
openmpt
OpenMPT
C++
Code
795
2,359
// threefish.h - written and placed in the public domain by Jeffrey Walton // Based on public domain code by Keru Kuro. Kuro's code is // available at http://cppcrypto.sourceforge.net/. /// \file Threefish.h /// \brief Classes for the Threefish block cipher /// \since Crypto++ 6.0 #ifndef ...
23,031
https://github.com/scilla0531/kuryr-kubernetes/blob/master/kuryr_kubernetes/tests/unit/controller/drivers/test_namespace_subnet.py
Github Open Source
Open Source
Apache-2.0
null
kuryr-kubernetes
scilla0531
Python
Code
623
3,460
# Copyright (c) 2018 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
44,291
https://github.com/saltstack/salt/blob/master/tests/unit/states/test_ipset.py
Github Open Source
Open Source
Apache-2.0, MIT, BSD-2-Clause
2,023
salt
saltstack
Python
Code
1,127
4,670
""" :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> """ import salt.states.ipset as ipset from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock, call, patch from tests.support.unit import TestCase class IpsetSetPresentTestCase(TestCase, LoaderModuleMockMixin): """...
36,962
https://github.com/vitahlin/corki/blob/master/apue_old/src/11/08-pthread_rwlock.c
Github Open Source
Open Source
MIT
null
corki
vitahlin
C
Code
114
444
/** * 读写锁的使用 */ #include "./../lib/apue.h" pthread_rwlock_t rwlock; int count = 0; void* ReadFunc(void* ptr) { while (1) { pthread_rwlock_rdlock(&rwlock); printf("Thread %x read, count %d\n", (int)pthread_self(), count); pthread_rwlock_unlock(&rwlock); sleep(1); } pth...
2,948
https://github.com/Will03/xv6-public/blob/master/ps.c
Github Open Source
Open Source
MIT-0
null
xv6-public
Will03
C
Code
15
50
#include "types.h" #include "stat.h" #include "user.h" int main() { ps(); wait(); exit(); return 0; }
7,779
https://github.com/FrauBluher/ShR2/blob/master/F28377D/adc_sample/adc_sample_cpu1/main.c
Github Open Source
Open Source
MIT
2,015
ShR2
FrauBluher
C
Code
1,487
5,665
/* * main.c */ #include "F28x_Project.h" #include "driverlib/interrupt.h" #include "driverlib/sysctl.h" #include "utils/uartstdio.h" #include "inc/hw_memmap.h" #include "driverlib/uart.h" void ConfigureADC(void); void SetupADCContinuous(Uint16 channel); //buffer for storing conversion results (size must be multipl...
50,415
https://github.com/NCAR/lrose-core/blob/master/codebase/apps/radar/src/Dsr2Rapic/rapicDataServer/signals.C
Github Open Source
Open Source
BSD-3-Clause
2,023
lrose-core
NCAR
C
Code
383
1,527
/* signals.c Signal Handler for 3D-Rapic */ #define _BSD_SIGNALS #include <signal.h> #include <stdio.h> #include "bool.h" bool signals_handled = false; #ifdef USE_SIGACTION extern void HandleSignal(int signo, siginfo_t *siginfo, void *ptr); void init_signals() { struct sigaction sa; sa.sa_sigaction = Handle...
32,409
https://github.com/bogdangvr/teme-fmi/blob/master/pao/laboratoare/lab6/Exerciții/src/exceptions/vectors/Main.java
Github Open Source
Open Source
MIT
2,020
teme-fmi
bogdangvr
Java
Code
194
568
package exceptions.vectors; import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { String testFilePath = "exceptions.vectors.txt"; try { createTestFile(testFilePath); Vector<Integer> intVector = new Vector<>(); Vecto...
5,502
https://github.com/chrishelgert/wintersmith-pattern-library/blob/master/templates/layout.jade
Github Open Source
Open Source
MIT
2,020
wintersmith-pattern-library
chrishelgert
null
Spoken
90
592
doctype html html(lang='en') head meta(charset='utf-8') meta(name='viewport', content='width=device-width, minimum-scale=1.0') block headTitle title #{locals.title} | #{page.title} link(rel='stylesheet', href='https://code.getmdl.io/1.3.0/material.teal-red.min.css') link(rel='stylesheet', hr...
32,171
https://github.com/peedroca/alura-courses-exercises/blob/master/source/design-patterns-II/Peedroca.DesignPatternsII/DesignPattersII.Exercise/Models/Estado.cs
Github Open Source
Open Source
MIT
null
alura-courses-exercises
peedroca
C#
Code
36
98
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignPattersII.Exercise.Models { public sealed class Estado { public Contrato Contrato { get; private set; } public Estado(Contrato contrato) { Co...
25,594
https://github.com/LillteZheng/AriesUI/blob/master/app/src/main/java/com/zhengsr/ariesui/activity/bottom/TestFragment.java
Github Open Source
Open Source
Apache-2.0
2,019
AriesUI
LillteZheng
Java
Code
97
339
package com.zhengsr.ariesui.activity.bottom; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import me.yokeyword.fragmentation.SupportFragment...
2,156
https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Services/MediaConvert/Generated/Model/XavcSettings.cs
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-public-domain, MIT, LicenseRef-scancode-unknown-license-reference
2,023
aws-sdk-net
aws
C#
Code
2,159
4,573
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
2,185
https://github.com/falon/cyr_scripts/blob/master/travis/test_suite.sh
Github Open Source
Open Source
Apache-2.0
2,022
cyr_scripts
falon
Shell
Code
170
610
#!/bin/bash function travis_test { local ARGUMENTS= echo -en "=======\n\n\e[96m$@\e[0m\n\n" >> $LDIR/test.log if [ "$1" = "sudo" ]; then PROGNAME="$4 $5" PROG="$1 $2 $3 $4" for (( i=5; i <= "$#"; i++ )); do ARGUMENTS="$ARGUMENTS ${!i}" done else PROGNAME="$1 $2" PROG=$1 for (( i=2; i <= "$#"; ...
4,227
https://github.com/whatTheDuck101/cabinet/blob/master/app/assets/stylesheets/docs.scss
Github Open Source
Open Source
MIT
null
cabinet
whatTheDuck101
SCSS
Code
157
577
#docs { .doc { background: #545e75; width: 90%; min-height: 100px; margin: 1rem 1%; padding: 1.5rem 2.5%; float: left; border-radius: 2.9rem; position: relative; text-align: center; .title { @include bold_font; color: white; margin: 0; left: 4.5%; ...
32,274
https://github.com/robertocapuano/crmi/blob/master/crmi/src/main/java/rio/registry/Out.java
Github Open Source
Open Source
BSD-2-Clause
2,014
crmi
robertocapuano
Java
Code
655
1,600
/* * Copyright (c) 2014, Roberto Capuano <roberto@2think.it> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, t...
30,295
https://github.com/lemonhall/p/blob/master/examples/party/charlie.js
Github Open Source
Open Source
Apache-2.0
2,013
p
lemonhall
JavaScript
Code
122
268
// Create the root node var charlie = P.create(); // Establish a WebSocket connection to the onramp server var onramp = charlie.to('ws://' + location.hostname + ':20400/'); // This is purely for logging so we can see when the onramp connection opened onramp.on('open', function(){ console.log('I connected to the onra...
30,094
https://github.com/feer56/Kitsune2/blob/master/kitsune/sumo/static/sumo/js/utils/apiFetch.es6.js
Github Open Source
Open Source
BSD-3-Clause
null
Kitsune2
feer56
JavaScript
Code
152
399
/* globals k:false */ export default function apiFetch(url, options={}) { return apiFetchRaw(url, options) .then(res => { if (res.status >= 400) { throw new Error(res.statusText); } else { return res.text() .then(text => { if (text === '') { return {}; } else { ...
45,180
https://github.com/hernanmd/pharo/blob/master/src/GT-SpotterExtensions-Core.package/Dictionary.extension/instance/spotterForKeysFor..st
Github Open Source
Open Source
MIT
2,019
pharo
hernanmd
null
Spoken
18
73
*GT-SpotterExtensions-Core spotterForKeysFor: aStep <spotterOrder: 15> aStep listProcessor title: 'Keys'; allCandidates: [ self keys ]; candidatesLimit: 5; filter: GTFilterSubstring
50,231
https://github.com/qawbecrdtey/BOJ-sol/blob/master/problems/acmicpc_23977.cpp
Github Open Source
Open Source
MIT
2,023
BOJ-sol
qawbecrdtey
C++
Code
72
158
#include <iostream> #include <numeric> using namespace std; using ll = long long; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); ll k, n; cin >> k >> n; ll x; cin >> x; ll res = x - k; ll mul = x; for(int i = 1; i < n; i++) { cin >> x; whi...
34,897
https://github.com/miquelrossello/lumen-doctrine/blob/master/config/doctrine.php
Github Open Source
Open Source
MIT
2,020
lumen-doctrine
miquelrossello
PHP
Code
318
1,044
<?php return [ 'managers' => [ 'default' => [ 'dev' => env('APP_DEBUG', true), 'connection' => env('DB_CONNECTION', 'mysql'), 'meta' => 'xml', 'namespaces' => [ 'User' => 'App\Domain\User\User' ], 'paths' => [ base_p...
8,159
https://github.com/Wonder-Technology/Wonder-Editor/blob/master/lib/es6_global/src/service/state/inspectorEngine/StateDataInspectorEngineService.js
Github Open Source
Open Source
Apache-2.0
2,023
Wonder-Editor
Wonder-Technology
JavaScript
Code
22
77
import * as InspectorStateDataEngine$WonderEditor from "../data/InspectorStateDataEngine.js"; function getStateData(param) { return InspectorStateDataEngine$WonderEditor.inspectorEngineStateData; } export { getStateData , } /* No side effect */
42,057
https://github.com/TheoKah/CarrotShop/blob/master/src/main/java/com/carrot/carrotshop/listener/BlockBreakListener.java
Github Open Source
Open Source
MIT
2,021
CarrotShop
TheoKah
Java
Code
230
1,078
package com.carrot.carrotshop.listener; import java.util.ArrayList; import java.util.List; import java.util.Optional; import org.spongepowered.api.Sponge; import org.spongepowered.api.block.BlockTypes; import org.spongepowered.api.data.key.Keys; import org.spongepowered.api.entity.living.player.Player; import org.spo...
13,721
https://github.com/gomgomgit/cafe/blob/master/app/Http/Controllers/AuthController.php
Github Open Source
Open Source
MIT
null
cafe
gomgomgit
PHP
Code
113
415
<?php namespace App\Http\Controllers; use App\Model\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class AuthController extends Controller { public function __construct() { $this->middleware('auth')->only('logout'); $this->middleware('guest')->except('logout'); } ...
32,326