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/subpop/vm/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,021
vm
subpop
Ignore List
Code
6
32
/vm /.vscode/* /vm.bash /vm.fish /vm.1 /vm.1.gz
49,650
https://github.com/blakev/afjr-sprinklers/blob/master/sprink/ws_server.py
Github Open Source
Open Source
MIT
null
afjr-sprinklers
blakev
Python
Code
114
387
#!/usr/bin/env python # ~*~ coding: utf-8 ~*~ # >> # © Vivint, inc. 2017 # blake, afjr-sprinklers # << from gevent.monkey import patch_all patch_all() from flask import Flask, render_template, jsonify from geventwebsocket import WebSocketServer, WebSocketApplication, Resource HOST, PORT = 'localhost', 8000 DEBUG...
44,444
https://github.com/phase4ground/joco-2018-badge/blob/master/firmware/manbearpig/system.h
Github Open Source
Open Source
Apache-2.0
2,019
joco-2018-badge
phase4ground
C
Code
472
1,978
/***************************************************************************** * (C) Copyright 2017 AND!XOR LLC (http://andnxor.com/). * * PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 1ST, 2017 then, * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
14,766
https://github.com/IssacAlegre/chrome-ec/blob/master/test/genvif/genvif.sh
Github Open Source
Open Source
BSD-3-Clause
2,021
chrome-ec
IssacAlegre
Shell
Code
39
64
#!/bin/bash -e # Copyright 2020 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. cd test/genvif make clean make test
15,372
https://github.com/skyYaga/skdvin-api/blob/master/src/main/java/in/skdv/skdvinbackend/model/dto/TandemmasterInputDTO.java
Github Open Source
Open Source
MIT
2,023
skdvin-api
skyYaga
Java
Code
19
95
package in.skdv.skdvinbackend.model.dto; import in.skdv.skdvinbackend.model.common.AbstractTandemmaster; import lombok.Data; import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = true) public class TandemmasterInputDTO extends AbstractTandemmaster { }
45,572
https://github.com/mirfan899/MTTS/blob/master/sppas/sppas/scripts/audiofragmenter.py
Github Open Source
Open Source
MIT, GFDL-1.1-or-later, GPL-3.0-only, GPL-3.0-or-later
2,019
MTTS
mirfan899
Python
Code
403
1,116
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | ...
50,886
https://github.com/swsch/iowa/blob/master/external/windows-pr/lib/windows/pipe.rb
Github Open Source
Open Source
MIT
2,021
iowa
swsch
Ruby
Code
266
1,169
require 'Win32API' module Windows module Pipe NMPWAIT_NOWAIT = 0x00000001 NMPWAIT_WAIT_FOREVER = 0xffffffff NMPWAIT_USE_DEFAULT_WAIT = 0x00000000 PIPE_WAIT = 0x00000000 PIPE_NOWAIT = 0x00000001 PIPE_ACCESS_INBOUND = 0x00000001 PIPE_ACC...
36,674
https://github.com/seattlerb/ruby_to_c/blob/master/test/test_type.rb
Github Open Source
Open Source
MIT
2,022
ruby_to_c
seattlerb
Ruby
Code
376
1,430
#!/usr/local/bin/ruby -w $TESTING = true require 'minitest/autorun' if $0 == __FILE__ require 'minitest/test' require 'type' require 'sexp_processor' # for deep clone FIX ? class TestCType < Minitest::Test def setup @unknown = CType.unknown @unknown_list = CType.unknown_list @long = CType.long @lon...
44,594
https://github.com/skaronn/street-fighter-processing/blob/master/EclipseWorkspace/StreetFighterProcessing/SpritesHelper.java
Github Open Source
Open Source
MIT
null
street-fighter-processing
skaronn
Java
Code
162
532
import javax.swing.JFrame; import processing.core.PApplet; import processing.core.PImage; class SpritesHelper { private double coeff = 0.3; private int spriteW; private int spriteH; private SecondApplet s; private PImage sprite; private PFrame f; SpritesHelper(PImage img) { sprite = img; spriteW = Double...
47,023
https://github.com/Armatiek/xslweb/blob/master/docs/XSLWeb Developer Manual.adoc
Github Open Source
Open Source
Apache-2.0
2,022
xslweb
Armatiek
AsciiDoc
Code
18,969
47,107
:description: XSLWeb Developer Manual :keywords: XSLWeb XML, XSLT, XML Schema, Schematron, Web development :doctype: book :page-layout!: :toc: left :toclevels: 3 :sectanchors: :sectlinks: :sectnums: :icons: font :source-highlighter: highlightjs :highlightjs-theme: agate :highlightjsdir: highlight :source-language: asc...
8,012
https://github.com/corpix/clx/blob/master/vendor/quicklisp/dists/quicklisp/software/esrap-20211020-git/doc/Makefile
Github Open Source
Open Source
Unlicense
null
clx
corpix
Makefile
Code
79
277
.PHONY: clean html include doc doc: html clean: rm -rf include rm -f *.pdf *.html *.info rm -f *.aux *.cp *.fn *.fns *.ky *.log *.pg *.toc *.tp *.tps *.vr include: sbcl \ --noinform --disable-ldb --lose-on-corrup...
13,905
https://github.com/hajin-kim/TinyAda/blob/master/Parser.py
Github Open Source
Open Source
MIT
2,020
TinyAda
hajin-kim
Python
Code
2,868
8,842
from Token import Token from Chario import Chario from Scanner import Scanner from SymbolTable import SymbolTable from SymbolEntry import SymbolEntry class Parser: """ The Parser class uses a recursive descent strategy to recognize phrases in a stream of tokens. Unlike the scanner, which continues to generate tok...
795
https://github.com/xingpengfan/inpacker/blob/master/web/src/main/resources/application.properties
Github Open Source
Open Source
MIT
2,017
inpacker
xingpengfan
null
Spoken
12
114
spring.http.converters.preferred-json-mapper=gson spring.resources.static-locations=classpath:/public/ heroku.packs.dir.path=/tmp/inpacker local.packs.dir.path=${user.home}/INPACKER # zip or dir packs.type=zip instagram.max-pack-size=2000 500px.consumer-key=_ 500px.max-pack-size=500
15,397
https://github.com/laurovitor/social-api/blob/master/modules/awsBucket.js
Github Open Source
Open Source
MIT
null
social-api
laurovitor
JavaScript
Code
231
792
// Documentação // https://docs.aws.amazon.com/pt_br/sdk-for-javascript/v2/developer-guide/s3-example-configuring-buckets.html const AWS = require('aws-sdk'); const credentials = new AWS.SharedIniFileCredentials({ profile: { aws_access_key_id: process.env.AWS_ACCESS_KEY_ID || "", aws_secret_access_key: process.e...
40,226
https://github.com/RossBrunton/RThing/blob/master/rthing/__init__.py
Github Open Source
Open Source
MIT
null
RThing
RossBrunton
Python
Code
18
31
"""Project app for rthing Contains the root urlconfig and view for "/", as well as non-app-specific stuff """
32,462
https://github.com/mapeee/Accessibility_Tools/blob/master/Aufbereitung_MRH/HDF5_to_Shape.py
Github Open Source
Open Source
MIT
2,021
Accessibility_Tools
mapeee
Python
Code
510
4,643
# -*- coding: cp1252 -*- #!/usr/bin/python #Skript, mit dem der Datenaustausch mit HDF5-Datenbanken gelingt. #Marcus September 2015 #für Python 2.7.5 #------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: mape # # Created: 15/06/2017 # Cop...
5,587
https://github.com/AhmedSalem2020/Library-System-with-Entity-Framework/blob/master/EFProject/admin/BookStatus.aspx.designer.cs
Github Open Source
Open Source
MIT
2,018
Library-System-with-Entity-Framework
AhmedSalem2020
C#
Code
160
424
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //----------------------------------------...
24,727
https://github.com/DinoPHP/DinoPHP/blob/master/app/Middleware/User.php
Github Open Source
Open Source
MIT
2,021
DinoPHP
DinoPHP
PHP
Code
19
46
<?php namespace App\Middleware; class User { public function handle() { if (1 !== 1) { die('test'); } } }
27,169
https://github.com/LiquidatorCoder/fluentui-system-icons/blob/master/packages/react-icons/src/components/SkipForward1024Regular.tsx
Github Open Source
Open Source
MIT
null
fluentui-system-icons
LiquidatorCoder
TypeScript
Code
130
658
import * as React from "react"; import { JSX } from "react-jsx"; import { IFluentIconsProps } from '../IFluentIconsProps.types'; const SkipForward1024Regular = (iconProps: IFluentIconsProps, props: React.HTMLAttributes<HTMLElement>): JSX.Element => { const { primaryFill, className } = iconProps; return <...
5,692
https://github.com/MarcialRosales/reactor-rabbitmq-streams-getting-started/blob/master/routing/from-rest-to-stream/src/main/java/com/pivotal/rabbitmq/gettingstarted/RouterApplication.java
Github Open Source
Open Source
Apache-2.0
2,021
reactor-rabbitmq-streams-getting-started
MarcialRosales
Java
Code
198
1,017
package com.pivotal.rabbitmq.gettingstarted; import com.pivotal.rabbitmq.RabbitEndpointService; import com.pivotal.rabbitmq.ReactiveRabbit; import com.pivotal.rabbitmq.gettingstarted.schemas.Shipment; import com.pivotal.rabbitmq.source.OnDemandSource; import com.pivotal.rabbitmq.source.Sender; import com.pivotal.rabbi...
3,339
https://github.com/SkaceKamen/piskel/blob/master/test/casperjs/integration/settings/test-export-gif-scale.js
Github Open Source
Open Source
Apache-2.0
2,022
piskel
SkaceKamen
JavaScript
Code
427
1,575
/* globals casper, setPiskelFromGrid, isDrawerExpanded, getValue, isChecked, evalLine, waitForEvent, replaceFunction, piskelFrameEqualsGrid, setPiskelFromImageSrc */ casper.test.begin('Simple GIF (<256 colors) export test, with 2x scaling', 18, function(test) { test.timeout = test.fail.bind(test, ['Test timed out...
52,678
https://github.com/irekch/sk_jquery/blob/master/JQ_L07_06_tworz-wl_animmate/script.js
Github Open Source
Open Source
MIT
2,017
sk_jquery
irekch
JavaScript
Code
97
344
// JavaScript File /* global $ */ // TWORZENIE WLASNYCH ANIMACJI - METODA ANIMATE // plik: /JQ_L07_06_tworz-wlasnych_anim/script.js /* stworzymy wlasna animacje na podsatwie css. Korzystamy z dwoch przyciskow: id=an1 dotyczy animacji obrazka, a id=an2 animacji akapitu, Sam akapit ma id=akapit a obrazek id=ob...
5,755
https://github.com/chobocho/ImageMatch/blob/master/src/app/src/test/java/com/chobocho/mahjong/PlayStateTest.java
Github Open Source
Open Source
MIT
null
ImageMatch
chobocho
Java
Code
140
445
package com.chobocho.mahjong; import com.chobocho.mahjong.board.Board; import com.chobocho.mahjong.board.BoardImpl; import com.chobocho.mahjong.state.PlayState; import com.chobocho.util.CLog; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class PlayS...
30,684
https://github.com/charliea21/discord.js/blob/master/src/structures/shared/SendMessage.js
Github Open Source
Open Source
Apache-2.0
null
discord.js
charliea21
JavaScript
Code
303
799
const Util = require('../../util/Util'); const Embed = require('../MessageEmbed'); const { RangeError } = require('../../errors'); module.exports = function sendMessage(channel, options) { // eslint-disable-line complexity const User = require('../User'); const GuildMember = require('../GuildMember'); if (channe...
36,568
https://github.com/roshan92/spree_pickup/blob/master/app/controllers/spree/admin/orders/customer_details_controller_decorator.rb
Github Open Source
Open Source
BSD-3-Clause, MIT
2,019
spree_pickup
roshan92
Ruby
Code
16
96
Spree::Admin::Orders::CustomerDetailsController.class_eval do private def order_params params.require(:order).permit( :email, :use_billing, :pickup_location_id, bill_address_attributes: permitted_address_attributes, ship_address_attributes: permitted_address_attributes ...
19,311
https://github.com/chinedu2moses/LIRI-NODE-APP/blob/master/node_modules/liri-cli/commands/colors_theme.js
Github Open Source
Open Source
MIT
2,020
LIRI-NODE-APP
chinedu2moses
JavaScript
Code
40
114
// The theme settings the command modules will use to add color to the console logs. module.exports = { dowhatitsays:['magenta', 'bold'], help_title: ['red', 'bold', 'underline'], error: ['red','bold'], tweets: ['cyan', 'bold'], spotify: ['green', 'bold'], omdb: ['yellow', 'bold'], data: ['gray', 'italic'] }
35,736
https://github.com/zoffixznet/Audio-Hydrogen/blob/master/lib/Audio/Hydrogen/Instrument.pm
Github Open Source
Open Source
Artistic-2.0
null
Audio-Hydrogen
zoffixznet
Perl
Code
1,141
2,003
use v6.c; =begin pod =head1 NAME Audio::Hydrogen::Instrument - represent a hydrogen instrument =head1 DESCRIPTION Instruments are found primarily in L<Audio::Hydrogen::Drumkit> object from where they are used in songs. An instrument comprises at least one audio sample in WAV or FLAC format with various settings t...
1,551
https://github.com/nsavageJVM/logcat-utls/blob/master/display/src/main/java/com/fishbeans/service/impl/ADBServiceImpl.java
Github Open Source
Open Source
BSD-2-Clause
2,021
logcat-utls
nsavageJVM
Java
Code
902
3,507
package com.fishbeans.service.impl; import com.fishbeans.ConfigTrait; import com.fishbeans.producer.ADBProducer; import com.fishbeans.service.ADBService; import com.fishbeans.stream.LogCatDTO; import com.fishbeans.stream.StreamReceiver; import com.fishbeans.util.ADB_COMMANDS; import com.fishbeans.util.UsbDevice; impor...
2,763
https://github.com/alexander-schranz/phpcr-migrations-bundle/blob/master/Tests/Resources/Bundle/TwoTestBundle/Resources/phpcr-migrations/Version201401011300.php
Github Open Source
Open Source
MIT
2,022
phpcr-migrations-bundle
alexander-schranz
PHP
Code
100
285
<?php /* * This file is part of the PHPCR Migrations package * * (c) Daniel Leech <daniel@dantleech.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use PHPCR\Migrations\VersionInterface; use PHPCR\SessionInterface; use Symfo...
52,451
https://github.com/juglab/imglib2-trainable-segmentation/blob/master/src/test/java/sc/fiji/labkit/pixel_classification/Utils.java
Github Open Source
Open Source
BSD-2-Clause
null
imglib2-trainable-segmentation
juglab
Java
Code
1,504
4,883
/*- * #%L * The implementation of the pixel classification algorithm, that is used the Labkit image segmentation plugin for Fiji. * %% * Copyright (C) 2017 - 2021 Matthias Arzt * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
47,478
https://github.com/tlestang/PyBaMM/blob/master/tests/unit/test_models/test_full_battery_models/test_lithium_ion/test_basic_models.py
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-3-Clause
2,021
PyBaMM
tlestang
Python
Code
315
1,502
# # Tests for the basic lithium-ion models # import pybamm import unittest from pybamm.geometry import half_cell_spatial_vars class TestBasicModels(unittest.TestCase): def test_dfn_well_posed(self): model = pybamm.lithium_ion.BasicDFN() model.check_well_posedness() copy = model.new_copy()...
31,324
https://github.com/Open-IoT-Service-Platform/oisp-iot-agent/blob/master/examples/send_udp.js
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,023
oisp-iot-agent
Open-IoT-Service-Platform
JavaScript
Code
269
511
#!/usr/bin/env node /* Copyright (c) 2014, Intel Corporation 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, this list of conditions and the...
32,062
https://github.com/yibuw/osakakuma-blog/blob/master/scripts/js/blog-banner.ts
Github Open Source
Open Source
MIT
null
osakakuma-blog
yibuw
TypeScript
Code
200
654
/* eslint-disable no-console */ import fs from 'fs'; import path from 'path'; import { execSync, exec } from 'child_process'; import { chromium } from 'playwright'; const content = './contents/blogs'; (async () => { const generateBanners = []; const posts = fs.readdirSync(content).filter((elem) => !elem.startsWith(...
4,776
https://github.com/afshinakhgar/bonsai_raw/blob/master/kernel/App.php
Github Open Source
Open Source
MIT
null
bonsai_raw
afshinakhgar
PHP
Code
58
165
<?php namespace Kernel; /** * Class App * @package Kernel */ class App extends \Slim\App { /** * @var string */ protected $environment; /** * @var string */ protected $rootDir; /** * Constructor. * * @param string $environment */ public function __co...
31,368
https://github.com/daenoor/divergence/blob/master/divergence.gemspec
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,013
divergence
daenoor
Ruby
Code
106
387
# -*- encoding: utf-8 -*- lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'divergence/version' Gem::Specification.new do |gem| gem.name = "divergence" gem.version = Divergence::VERSION gem.authors = ["Ryan LeFevre"] gem.email ...
3,660
https://github.com/ecederstrand/exchangelib/blob/master/exchangelib/ewsdatetime.py
Github Open Source
Open Source
BSD-2-Clause
2,023
exchangelib
ecederstrand
Python
Code
1,105
3,425
import datetime import logging try: import zoneinfo except ImportError: from backports import zoneinfo import tzlocal from .errors import InvalidTypeError, NaiveDateTimeNotAllowed, UnknownTimeZone from .winzone import IANA_TO_MS_TIMEZONE_MAP, MS_TIMEZONE_TO_IANA_MAP log = logging.getLogger(__name__) class...
4,042
https://github.com/tylergreen/react-redux-express-app/blob/master/src/client/components/logo.jsx
Github Open Source
Open Source
MIT
2,016
react-redux-express-app
tylergreen
null
Spoken
42
129
import React from 'react' import reactCSS from 'reactcss' import LogoImage from '../images/octa-dragon-logo.png' export default class extends React.Component { render(){ const styles = reactCSS({ 'default': { logo: { width: '50px', height:...
13,999
https://github.com/Shyroe/itlogger/blob/master/client/src/App.js
Github Open Source
Open Source
MIT
null
itlogger
Shyroe
JavaScript
Code
890
3,385
import React, { useEffect, useState } from "react"; import { AppBar, IconButton, Toolbar, Typography, Button, TextField, Container, Fab, Modal, } from "@material-ui/core"; import SearchIcon from "@material-ui/icons/Search"; import AddIcon from "@material-ui/icons/Add"; import AccountCircleRoundedIcon ...
2,668
https://github.com/rsaenzi/MobileUnalChallenges/blob/master/Reto08/EMSRigobertoSaenz/app/src/main/java/com/example/rsaenz/emsrigobertosaenz/MainActivity.java
Github Open Source
Open Source
MIT
null
MobileUnalChallenges
rsaenzi
Java
Code
393
1,658
package com.example.rsaenz.emsrigobertosaenz; import android.content.Context; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.content.DialogInterface; import android.content.Intent; import android.support.v7.app.AlertDialog; import android.view.LayoutInflater; import android.v...
18,767
https://github.com/luisabfs/google-books/blob/master/frontend/src/components/Book/styles.ts
Github Open Source
Open Source
MIT
null
google-books
luisabfs
TypeScript
Code
40
133
import styled from 'styled-components'; export const Container = styled.div` display: flex; flex-direction: column; align-items: center; text-align: center; margin: 10px; padding: 10px; width: 200px; img { width: 100px; margin-bottom: 5px; border-radius: 4px; } span { font-size: 1...
35,076
https://github.com/Niyiojeyinka/Social-Media/blob/master/application/models/Auth_model.php
Github Open Source
Open Source
MIT
null
Social-Media
Niyiojeyinka
PHP
Code
36
116
<?php class Auth_model extends CI_Model { /** *Package : Auth_model *@Descriptions: A class to handle the page database operation *@Author : @niyiojeyinka(twitter,fiverr,freelancer) */ public $table; public function __construct() { parent::__construct(); $this->load->database(); $this->table = ...
34,758
https://github.com/israeljasmac/cv/blob/master/index.js
Github Open Source
Open Source
CC-BY-3.0
null
cv
israeljasmac
JavaScript
Code
378
1,334
const express = require('express'); const app = express(); const port = process.env.PORT || 80 const bodyParser = require('body-parser'); const mongoose = require('mongoose'); const Schema = mongoose.Schema; mongoose.connect('mongodb://localhost/productos', { useMongoClient: true }); var productosSchemaJSON = { ...
17,242
https://github.com/HappyFeedFriends/dota-data/blob/master/src/schemas/abilities/custom.ts
Github Open Source
Open Source
Apache-2.0
2,020
dota-data
HappyFeedFriends
TypeScript
Code
117
527
import * as s from '../../schema'; import { resourcePatterns } from '../resources'; import { baseAbility, baseItem } from './base'; const makeLuaCustomAbility = (item: boolean) => (item ? baseItem('LuaItem') : baseAbility('LuaAbility')) .field('BaseClass', s.literal(item ? 'item_lua' : 'ability_lua'), { require:...
37,377
https://github.com/MabbottLab/mri-recon/blob/master/structural/fastsurfer_batch.sh
Github Open Source
Open Source
MIT
null
mri-recon
MabbottLab
Shell
Code
73
323
#!/bin/bash ### set up job parameters #PBS -N fastsurfer #PBS -q gpu #PBS -n Singularity #PBS -l nodes=node2407-P40:ppn=4:gpus=1 #PBS -l vmem=24g,mem=24g #PBS -l walltime=2:00:00 #PBS -W group_list=imaginglab #PBS -m e ### load singularity module module load Singularity ### call fastsurfer singularity exec --nv --c...
39,311
https://github.com/6r1d/Arduino_archive/blob/master/STM32_F1_Blue_Pill/LED_blink/LED_blink.ino
Github Open Source
Open Source
MIT
null
Arduino_archive
6r1d
null
Spoken
19
71
#define LED_PIN PC13 void setup() { pinMode(LED_PIN, OUTPUT); } void loop() { digitalWrite(LED_PIN, HIGH); delay(1000); digitalWrite(LED_PIN, LOW); delay(1000); }
47,086
https://github.com/mznodev/celia-birthday-2022/blob/master/src/WaitingScreen.js
Github Open Source
Open Source
Unlicense
null
celia-birthday-2022
mznodev
JavaScript
Code
243
741
//import logo from "./logo.svg"; //import "./App.css"; import React from "react"; import Countdown from "react-countdown"; import styled, { keyframes } from "styled-components"; import waitingScreen from "assets/images/noche.gif"; import osoCoffee from "assets/images/osoGifLoop.gif"; function WaitingScreen() { //Sty...
30,366
https://github.com/HananeJB/e-commerce-project/blob/master/app/src/main/java/com/marknkamau/justjava/ui/login/SignInViewModel.kt
Github Open Source
Open Source
Apache-2.0
2,020
e-commerce-project
HananeJB
Kotlin
Code
136
549
package com.marknkamau.justjava.ui.login import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.marknjunge.core.data.model.ApiResponse import com.marknjunge.core.data.model.Resource import com.marknjunge.core....
10,833
https://github.com/apphost/ngx-amap/blob/master/src/app/components/search-items.ts
Github Open Source
Open Source
MIT
2,020
ngx-amap
apphost
TypeScript
Code
283
1,604
export const enum ITEM_TYPE { COMPONENT = 'component', SERVICE = 'service', DIRECTIVE = 'directive' } export const SEARCH_ITEMS = [ // ======= COMPONENTS ======= { type: ITEM_TYPE.COMPONENT, link: '/ngx-amap/simple', name: 'ngx-amap', zhCN: '地图' }, { type: ITEM_TYPE.COMPONENT, lin...
15,619
https://github.com/DaveCS1/GroupManagement/blob/master/src/CodingMilitia.PlayBall.GroupManagement.Domain/UseCases/DeleteGroup/DeleteGroupCommandHandler.cs
Github Open Source
Open Source
MIT
2,020
GroupManagement
DaveCS1
C#
Code
99
396
using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using CodingMilitia.PlayBall.GroupManagement.Domain.Data; using CodingMilitia.PlayBall.GroupManagement.Domain.Data.Queries; using CodingMilitia.PlayBall.GroupManagement.Domain.Entities; using MediatR; namespace CodingMilitia.PlayBal...
43,870
https://github.com/3ach/mattermost-webapp/blob/master/components/claim/components/ldap_to_email.jsx
Github Open Source
Open Source
Apache-2.0
null
mattermost-webapp
3ach
null
Spoken
524
2,144
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React from 'react'; import {FormattedMessage} from 'react-intl'; import * as Utils from 'utils/utils'; import {t} from 'utils/i18n'; import LoginMfa from 'componen...
22,524
https://github.com/alllex/ktor/blob/master/ktor-client/ktor-client-features/ktor-client-json/ktor-client-json-js/src/io/ktor/client/features/json/defaultSerializer.kt
Github Open Source
Open Source
Apache-2.0
2,019
ktor
alllex
Kotlin
Code
38
95
package io.ktor.client.features.json import io.ktor.client.features.json.serializer.* /** * Platform default serializer. * * Uses service loader on jvm. * Consider to add one of the following dependencies: * - ktor-client-gson * - ktor-client-json */ actual fun defaultSerializer(): JsonSerializer = KotlinxSeri...
5,843
https://github.com/Kicky13/suwarsuwir_master/blob/master/app/Http/Controllers/PermintaanController.php
Github Open Source
Open Source
MIT
2,018
suwarsuwir_master
Kicky13
PHP
Code
178
736
<?php namespace App\Http\Controllers; use App\DetailPermintaan; use App\Permintaan; use App\Produk; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; class PermintaanController extends Controller { public function index() { if (Aut...
26,150
https://github.com/jonsag/pi-heating/blob/master/piHeating/piHeatingHub/www/sensors-list.php
Github Open Source
Open Source
Apache-2.0
2,022
pi-heating
jonsag
PHP
Code
924
3,557
<!DOCTYPE HTML> <html> <head> <meta http-equiv="refresh" content="30"> <title>piHeatingHub - sensors</title> <style> .pbody { background-color: #080808; font-family: courier; color: red; font-size: small; } .debug { font-f...
40,843
https://github.com/icarephone/gcr.io/blob/master/gcr.io/google_containers/kube-scheduler-arm64/v1.3.1
Github Open Source
Open Source
Apache-2.0
2,019
gcr.io
icarephone
null
Spoken
1
28
gcr.io/google_containers/kube-scheduler-arm64:v1.3.1
50,156
https://github.com/Moatezz/brag/blob/master/client/src/components/Theme.js
Github Open Source
Open Source
MIT
null
brag
Moatezz
JavaScript
Code
22
61
import { createMuiTheme } from '@material-ui/core'; import { lightBlue } from '@material-ui/core/colors'; const theme = createMuiTheme({ palette: { primary: lightBlue, }, });
14,268
https://github.com/slevomat/coding-standard/blob/master/tests/Sniffs/TypeHints/data/returnTypeHintsCorrect.php
Github Open Source
Open Source
MIT
2,023
coding-standard
slevomat
PHP
Code
87
252
<?php // lint >= 8.0 function foo(): Foo { } $callback = function () use ($x, $y): Foo { }; function () { }; fn ($a) => $a; fn ($a): int => $a; interface Foo { public function doFoo($param): Foo; public function doBar($param): \Bar; public function doBaz($param): \Foo\Bar; public function noReturnTypeH...
36,116
https://github.com/ashish9718/Food-court/blob/master/src/com/javaproject/util/JDBCExample.java
Github Open Source
Open Source
Apache-2.0
null
Food-court
ashish9718
Java
Code
117
422
package com.javaproject.util; //STEP 1. Import required packages import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import com.mysql.jdbc.Statement; public class JDBCExample { public Connection getCon() { // JDBC driver name and database URL final String JDBC_DRIVER...
30,838
https://github.com/jiaoLLL/phaser/blob/master/v3/src/animation/frame/Stop.js
Github Open Source
Open Source
MIT
2,017
phaser
jiaoLLL
JavaScript
Code
15
35
var Stop = function () { this.isPlaying = false; return this; }; module.exports = Stop;
7,751
https://github.com/un33k/django-newapp/blob/master/newapp/forms.py
Github Open Source
Open Source
BSD-3-Clause
null
django-newapp
un33k
Python
Code
5
8
# Create your forms here.
5,479
https://github.com/yd-915/craft-dash/blob/master/server/routes/social-login-routes.js
Github Open Source
Open Source
MIT
2,021
craft-dash
yd-915
JavaScript
Code
118
378
const router = require('express').Router() const passport = require('passport') // JWT helper const { signToken } = require('../helpers/jwt-helper') const User = require('../models/user') // Google Authentication route router.get( '/google', passport.authenticate('google', { session: false, scope: ['profile', '...
50,442
https://github.com/eugeneilyin/mdi-norm/blob/master/src/TwoToneSignalCellularConnectedNoInternet1Bar.js
Github Open Source
Open Source
MIT
2,019
mdi-norm
eugeneilyin
JavaScript
Code
12
55
import { FilledSignalCellularConnectedNoInternet1Bar as TwoToneSignalCellularConnectedNoInternet1Bar } from './FilledSignalCellularConnectedNoInternet1Bar' export { TwoToneSignalCellularConnectedNoInternet1Bar }
16,240
https://github.com/2995090067/SSMShop/blob/master/src/com/shop/serviceImpl/UserServiceImpl.java
Github Open Source
Open Source
MIT
null
SSMShop
2995090067
Java
Code
234
971
package com.shop.serviceImpl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import com.shop.Utils.MailUtils; import com.shop.Utils.UUIDUtiils; import com.shop.mapper.AdminuserMapper; import com.shop.mapper.UserMapper; import com.shop.po.Adminuser; import com.shop.po.AdminuserE...
48,270
https://github.com/orolle/micro-service-rx/blob/master/core/src/main/java/microservicerx/function/Serializer.java
Github Open Source
Open Source
Apache-2.0
2,015
micro-service-rx
orolle
Java
Code
133
422
package microservicerx.function; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; public interface Serializer { public static final byte[] EMPTY...
28,895
https://github.com/SparkDevNetwork/Rock/blob/master/Rock/Plugin/HotFixes/010_FixGetSpouse.cs
Github Open Source
Open Source
ISC
2,023
Rock
SparkDevNetwork
C#
Code
550
1,317
// <copyright> // Copyright by the Spark Development Network // // Licensed under the Rock Community License (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.rockrms.com/license // // Unless required by applicable law or agr...
53,560
https://github.com/heartsucker/node-deb/blob/master/docker/fake-nodejs.sh
Github Open Source
Open Source
MIT
2,018
node-deb
heartsucker
Shell
Code
44
165
#!/bin/bash set -e set -u wrk_dir=$(mktemp -d) declare -r wrk_dir declare -r deb_dir="$wrk_dir/deb" cd "$wrk_dir" mkdir -p "$deb_dir/DEBIAN" cat > "$deb_dir/DEBIAN/control" <<-EOF Package: nodejs Version: 6.0.0 Section: base Priority: optional Architecture: all Maintainer: nodejs Description: nodejs EOF dpkg-deb --...
41,728
https://github.com/atull/purecloud_api_sdk_ios/blob/master/PureCloudApi/Classes/Models/ININUploadProgress.swift
Github Open Source
Open Source
MIT
2,016
purecloud_api_sdk_ios
atull
Swift
Code
211
505
// // ININUploadProgress.swift // // Generated by swagger-codegen // https://github.com/swagger-api/swagger-codegen // import Foundation public class ININUploadProgress: JSONEncodable { /** Carrier id associated with the ratesheet that was uploaded. */ public var carrierId: String? /** Human readable nam...
24,471
https://github.com/maxkferg/airbyte/blob/master/airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/postgres/test_nested_streams/models/generated/airbyte_ctes/test_normalization/nested_stream_with_c___names_partition_data_ab3.sql
Github Open Source
Open Source
MIT
null
airbyte
maxkferg
SQL
Code
61
226
{{ config( indexes = [{'columns':['_airbyte_emitted_at'],'type':'hash'}], schema = "_airbyte_test_normalization", tags = [ "nested-intermediate" ] ) }} -- SQL model to build a hash column based on the values of this record -- depends_on: {{ ref('nested_stream_with_c___names_partition_data_ab2') }} select ...
52,752
https://github.com/vivekrathi53/2020-21-Classes/blob/master/Java/2020_09_23_Java-Class-8/DatabaseConnectivity.java
Github Open Source
Open Source
MIT
2,022
2020-21-Classes
vivekrathi53
Java
Code
105
359
import java.io.BufferedReader; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.io.*; public class DatabaseConnectivity { public static void main(String[] args) throws ClassNotFoundException, SQLExcep...
9,302
https://github.com/JetBrains/kotlin/blob/master/compiler/testData/diagnostics/tests/resolve/invoke/avoidTypeCheckerRecursion.fir.kt
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
kotlin
JetBrains
Kotlin
Code
85
203
// ISSUE: KT-58940 // FILE: JavaIndex.java public class JavaIndex { public String getIndexer() { return ""; } } // FILE: main.kt abstract class KotlinIndex : JavaIndex() { fun indexer(x: Int): String = "" } class MyKotlinIndex : KotlinIndex() { // `indexer(1)` call should just request the member function...
16,897
https://github.com/slightlyfaulty/stylus-native-loader/blob/master/test/fixtures/alias.styl
Github Open Source
Open Source
MIT, LicenseRef-scancode-warranty-disclaimer
2,023
stylus-native-loader
slightlyfaulty
Stylus
Code
6
23
@require 'imp-a' @require '~b' @require 'imp/c'
7,930
https://github.com/tweak-com-public/tweak-api-client-php/blob/master/TweakApi/test/Api/DesignExportApiTest.php
Github Open Source
Open Source
Apache-2.0
null
tweak-api-client-php
tweak-com-public
PHP
Code
657
1,565
<?php /** * DesignExportApiTest * PHP version 5 * * @category Class * @package Tweak\Api * @author http://github.com/swagger-api/swagger-codegen * @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2 * @link https://github.com/swagger-api/swagger-codegen */ /** * tweak-api * * Tweak...
20,667
https://github.com/luismateo10/ElBotecito/blob/master/src/com/elbotecito/controlador/ControladorPuerto.java
Github Open Source
Open Source
MIT
null
ElBotecito
luismateo10
Java
Code
268
1,403
package com.elbotecito.controlador; import com.elbotecito.bsn.PuertoBsn; import com.elbotecito.bsn.exception.PuertoYaExisteException; import com.elbotecito.modelo.Puerto; import com.jfoenix.controls.JFXButton; import com.jfoenix.controls.JFXTextField; import javafx.event.ActionEvent; import javafx.fxml.Initializable; ...
54,197
https://github.com/iridium-browser/iridium-browser/blob/master/chrome/browser/ui/side_panel/companion/exps_registration_success_observer.cc
Github Open Source
Open Source
BSD-3-Clause
2,023
iridium-browser
iridium-browser
C++
Code
136
636
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/side_panel/companion/exps_registration_success_observer.h" #include "base/strings/string_split.h" #include "chrome/browser/companion/core/constants...
7,439
https://github.com/intouchfollowup/joda-time-jaxb/blob/master/src/main/java/org/joda/xmlAdapter/JodaLocalDateTimeAdapter.java
Github Open Source
Open Source
Apache-2.0
null
joda-time-jaxb
intouchfollowup
Java
Code
35
122
package org.joda.xmlAdapter; import javax.xml.bind.annotation.adapters.XmlAdapter; import org.joda.time.LocalDateTime; public class JodaLocalDateTimeAdapter extends XmlAdapter<String, LocalDateTime> { public LocalDateTime unmarshal(String v) throws Exception { return new LocalDateTime(v); } public String mar...
15,178
https://github.com/umairqadir97/invoice-parsing-and-discovery/blob/master/src/po_matching.py
Github Open Source
Open Source
MIT
null
invoice-parsing-and-discovery
umairqadir97
Python
Code
60
224
import json import os from config import * from src import fuzzy_match # # ENDPOINT: get PO and return matches results dc_data = {} keywords = json.load(open(KEYWORDS_FILE, 'r')) po_data = json.load(open(PURCHASE_ORDERS_JSON, 'r')) for filename in os.listdir(DATA_DIRECTORY): if filename.endswith(".txt"): ...
17,916
https://github.com/asiby/jQuerySpread/blob/master/less/styles.less
Github Open Source
Open Source
MIT
2,020
jQuerySpread
asiby
Less
Code
79
259
.box { position: absolute; display: block; border: 2px black solid; width: 200px; height: 100px; padding: 5px; &:before { content: attr(id); display: block; background: black; color: #fff; display: inline-block; padding: 5px; position: absolute; top: -30px; left: -2px...
3,395
https://github.com/raulccabreu/redukt/blob/master/core/src/main/java/com/github/raulccabreu/redukt/actions/Action.kt
Github Open Source
Open Source
MIT
2,019
redukt
raulccabreu
Kotlin
Code
13
37
package com.github.raulccabreu.redukt.actions data class Action<out T>(val name: String, val payload: T? = null)
4,922
https://github.com/yoloz/kstreamSample/blob/master/ksweb/src/container/generalInfoContainer.js
Github Open Source
Open Source
Apache-2.0
2,023
kstreamSample
yoloz
JavaScript
Code
458
1,419
import React, { Component } from 'react'; import { Table, Button, Badge, notification, } from 'antd'; import { getGeneralInfo, startTask, stopTask } from '../services/restApi'; class GeneralTable extends Component { constructor(props) { super(props); this.state = { data: [], };...
33,412
https://github.com/mativait/elm-maven-plugin/blob/master/src/test/java/com/github/eirslett/maven/plugins/frontend/lib/ElmInstallerTest.java
Github Open Source
Open Source
Apache-2.0
2,019
elm-maven-plugin
mativait
Java
Code
86
325
package com.github.eirslett.maven.plugins.frontend.lib; import org.junit.jupiter.api.Test; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import static org.junit.jupiter.api.Assertions.*; class ElmInstallerTest { private static final Platform defaultPlatfo...
5,158
https://github.com/imsardine/winappdriver/blob/master/src/WinAppDriver/Wrappers/SystemWrapper.Windows.Input/KeyInteropWrap.cs
Github Open Source
Open Source
MIT
2,018
winappdriver
imsardine
C#
Code
29
114
namespace WinAppDriver.SystemWrapper.Windows.Input { using System.Windows.Input; internal class KeyInteropWrap : IKeyInteropWrap { public Key KeyFromVirtualKey(int virtualKey) { return KeyInterop.KeyFromVirtualKey(virtualKey); } public int VirtualKeyFromKey(Key...
41,476
https://github.com/jmater/spring-boot-plus/blob/master/src/main/java/io/geekidea/springbootplus/test/param/AccountInfoQueryParam.java
Github Open Source
Open Source
Apache-2.0
null
spring-boot-plus
jmater
Java
Code
54
195
package io.geekidea.springbootplus.test.param; import io.swagger.annotations.ApiModel; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; import io.geekidea.springbootplus.common.param.OrderQueryParam; /** * <pre> * 查询参数对象 * </pre> * * @author test * @date 2019-11-05 *...
54,429
https://github.com/ssaha331/libtrading/blob/master/include/libtrading/proto/fast_book.h
Github Open Source
Open Source
BSD-2-Clause
2,022
libtrading
ssaha331
C
Code
431
1,582
#ifndef LIBTRADING_FAST_BOOK_H #define LIBTRADING_FAST_BOOK_H #ifdef __cplusplus extern "C" { #endif #include "libtrading/proto/fast_message.h" #include "libtrading/proto/fast_feed.h" #include "libtrading/order_book.h" #define FAST_FEED_NUM 2 #define FAST_BOOK_NUM 10 #define FAST_BOOK_SUBSCRIBED 0x00000001 #defin...
18,277
https://github.com/PolyOmica/jvarkit/blob/master/src/main/java/com/github/lindenb/jvarkit/tools/vcfvcf/VcfPeekAf.java
Github Open Source
Open Source
MIT
null
jvarkit
PolyOmica
Java
Code
1,580
7,281
/* The MIT License (MIT) Copyright (c) 2020 Pierre Lindenbaum 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, me...
13,168
https://github.com/Waiphyoaung24/PADC-5-P-WPA-Simple-Habit-Meditation/blob/master/app/src/main/java/xyz/waiphyoag/padc_5_p_wpa_simple_habit_meditate/activities/activities/events/RestApiEvent.java
Github Open Source
Open Source
Apache-2.0
null
PADC-5-P-WPA-Simple-Habit-Meditation
Waiphyoaung24
Java
Code
151
677
package xyz.waiphyoag.padc_5_p_wpa_simple_habit_meditate.activities.activities.events; import java.util.List; import xyz.waiphyoag.padc_5_p_wpa_simple_habit_meditate.activities.activities.components.SharedParent; import xyz.waiphyoag.padc_5_p_wpa_simple_habit_meditate.activities.activities.data.vo.CategoriesVO; impor...
21,412
https://github.com/sayed-mustafa-hussaini/laravel-donation-multi-language-payment-system/blob/master/resources/lang/ps/lang.php
Github Open Source
Open Source
MIT
2,021
laravel-donation-multi-language-payment-system
sayed-mustafa-hussaini
PHP
Code
52
305
<?php return [ 'backhome' => 'کورپاڼې ته راستون', 'card'=> 'کارت', 'dashboard'=> 'ډشبورډ', 'sponsorships'=>'سپانسرشپونه', 'login'=>' ننه کیدل', 'register'=>'ثبت کړئ', 'logout'=>'وتل', 'readmore'=>'نور یی ولوله', 'tomorrowshope'=>'پرداخت', 'address'=>'د اړیکې پته', 'newsletter'=>'خبرتیاوې', 'send'=>'وسپارئ...
55,045
https://github.com/yiliuTo/spring-boot-secure-communications-using-end-to-end-tls-ssl/blob/master/.scripts/deploy-external-service.sh
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT
2,021
spring-boot-secure-communications-using-end-to-end-tls-ssl
yiliuTo
Shell
Code
289
1,040
#!/usr/bin/env bash # ==== Create Azure Container Registry ==== az acr create --name ${CONTAINER_REGISTRY} \ --resource-group ${RESOURCE_GROUP} \ --sku basic --location ${REGION} \ --admin-enabled true export RESOURCE_GROUP_ID=$(az group show --name ${RESOURCE_GROUP} --query id --output tsv) # ==== Move ...
44,566
https://github.com/jcramer/rest.bitcoin.com/blob/master/src/routes/v1/rawtransactions.js
Github Open Source
Open Source
MIT
null
rest.bitcoin.com
jcramer
JavaScript
Code
1,075
3,884
"use strict" const express = require("express") const router = express.Router() const axios = require("axios") const RateLimit = require("express-rate-limit") //const BITBOXCli = require("bitbox-sdk/lib/bitbox-sdk").default; //const BITBOX = new BITBOXCli(); const BitboxHTTP = axios.create({ baseURL: process.env.R...
18,788
https://github.com/omaresmael/help_me/blob/master/app/Models/School.php
Github Open Source
Open Source
MIT
null
help_me
omaresmael
PHP
Code
444
1,630
<?php namespace App\Models; use App\Models\Teacher; use Illuminate\Database\Eloquent\Model; class School extends Model { /** TODO:: * refactor -> Use getSchoolTotalRowMoney In getSchoolRowMoney **/ protected $guarded = []; public function periods() { return $this->belongsToMa...
51,858
https://github.com/Andrew2432/github-finder/blob/master/src/components/Users/DisplayUser.jsx
Github Open Source
Open Source
MIT
null
github-finder
Andrew2432
null
Spoken
273
1,050
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Container, Button, Card, Row, Col, Badge } from 'react-bootstrap'; import Repos from '../Repos/Repos'; const DisplayUser = (props) => { const { name, avatar_url, company, location, bio...
9,336
https://github.com/ArcNyxx/utils/blob/master/rev.1
Github Open Source
Open Source
MIT
null
utils
ArcNyxx
null
Spoken
91
160
.\" rev - reverse characterwise .\" Copyright (C) 2022 ArcNyxx .\" see LICENCE file for licensing information .TH REV 1 utils\-VERSION .SH NAME rev \- reverse characterwise .SH SYNOPSIS .SY rev .RI [ file ...] .YS .SH DESCRIPTION .BR rev (1) copies each line in the specified files to standard output, reversing the orde...
49,319
https://github.com/shail-garmin/fitpay-android-sdk/blob/master/fitpay/src/main/java/com/fitpay/android/utils/ExpiredTokenException.java
Github Open Source
Open Source
MIT
2,022
fitpay-android-sdk
shail-garmin
Java
Code
24
71
package com.fitpay.android.utils; import java.io.IOException; public class ExpiredTokenException extends IOException { private static final long serialVersionUID = 1L; public ExpiredTokenException(String message) { super(message); } }
51,707
https://github.com/CoOwner/VisualPvP/blob/master/org/apache/maven/project/ProjectBuildingResult.java
Github Open Source
Open Source
MIT
null
VisualPvP
CoOwner
Java
Code
34
119
package org.apache.maven.project; import java.io.File; import java.util.List; import org.apache.maven.model.building.ModelProblem; public abstract interface ProjectBuildingResult { public abstract String getProjectId(); public abstract File getPomFile(); public abstract MavenProject getProject(); pub...
53,955
https://github.com/thiendwiananda/laravel-permission/blob/master/src/Gate.php
Github Open Source
Open Source
MIT
null
laravel-permission
thiendwiananda
PHP
Code
29
95
<?php namespace Anandalee\Permission; use Illuminate\Database\Eloquent\Model; class Gate { public function can(Model $model, String $guard) : bool { $permission = $model->permissions()->where('permissions.guard_name', $guard)->first(); return $permission ? true : false; } }
35,140
https://github.com/zalando/nakadi/blob/master/api-metastore/settings.gradle
Github Open Source
Open Source
MIT
2,023
nakadi
zalando
Gradle
Code
3
14
rootProject.name = 'api-metastore'
43,033
https://github.com/alexshpunt/py_practise/blob/master/algs/graphs/search.py
Github Open Source
Open Source
MIT
null
py_practise
alexshpunt
Python
Code
161
461
import networkx as nx import heapq import math def dijkstra_search(G : nx.DiGraph, source): T = nx.DiGraph() dist = { source: 0 } prev = { source: None } Q = [] for v in G.nodes(): if v != source: dist[v] = math.inf prev[v] = None heapq.heappush(Q, (dist...
40,867
https://github.com/strogo/pyobjc/blob/master/pyobjc-framework-ModelIO/PyObjCTest/test_mdltypes.py
Github Open Source
Open Source
MIT
2,021
pyobjc
strogo
Python
Code
94
730
from PyObjCTools.TestSupport import TestCase, min_os_level, expectedFailure import objc import ModelIO class TestMDLTypesHelper(ModelIO.NSObject): def objectAtIndexedSubscript_(self, i): return 1 class TestMDLTypes(TestCase): def testConstants(self): self.assertIsInstance(ModelIO.kUTTypeAlem...
56,401
https://github.com/gmanriqueUy/cotizaciones-bcu/blob/master/db/migrations/sqls/20170828031914-create-tables-up.sql
Github Open Source
Open Source
MIT
2,022
cotizaciones-bcu
gmanriqueUy
SQL
Code
70
212
CREATE TABLE `currency` ( `iso` varchar(3) NOT NULL, `name` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `currencyDay` ( `iso` varchar(3) NOT NULL, `date` date NOT NULL, `buy` float(5,2) DEFAULT NULL, `sell` float(5,2) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TAB...
34,253
https://github.com/senpl/Fit-workout-fast/blob/master/app/src/main/java/com/easyfitness/programs/SwipeDetectorListener.kt
Github Open Source
Open Source
BSD-3-Clause
2,022
Fit-workout-fast
senpl
Kotlin
Code
145
449
package com.easyfitness.programs import android.annotation.SuppressLint import android.view.MotionEvent import android.view.View import android.view.View.OnTouchListener import timber.log.Timber import kotlin.math.abs class SwipeDetectorListener(private val programRunner: ProgramRunner) : OnTouchListener { privat...
48,616
https://github.com/christianpatrick/beekeeper-studio/blob/master/dev/docker_sqlserver/entrypoint.sh
Github Open Source
Open Source
MIT
2,020
beekeeper-studio
christianpatrick
Shell
Code
2
17
/bin/bash /docker_init/data.sh
15,212
https://github.com/PlumTreeSystems/UserBundle/blob/master/src/Exception/UserException.php
Github Open Source
Open Source
MIT
2,020
UserBundle
PlumTreeSystems
PHP
Code
24
66
<?php /** * Created by PhpStorm. * User: matas * Date: 2017-01-17 * Time: 12:35 */ namespace PlumTreeSystems\UserBundle\Exception; class UserException extends \Exception { }
32,726