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/zenas001/bankMaster/blob/master/server/src/main/java/com/zenas/WebConfiguration.java
Github Open Source
Open Source
Apache-2.0
null
bankMaster
zenas001
Java
Code
104
510
package com.zenas; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.Ordered; import org.springf...
16,228
https://github.com/Kautenja/CBOE-emulator/blob/master/docs/search/variables_e.js
Github Open Source
Open Source
MIT
null
CBOE-emulator
Kautenja
JavaScript
Code
6
225
var searchData= [ ['reason_507',['reason',['../struct_order_entry_1_1_messages_1_1_logout_response.html#a4e8ceaa80363d12e0aaaae84d8f8ba56',1,'OrderEntry::Messages::LogoutResponse']]], ['root_508',['root',['../struct_data_feed_1_1_l_o_b_1_1_limit_tree.html#aa5d78bfbf4d2d89b4a4a7e5a79d69d5b',1,'DataFeed::LOB::LimitTr...
10,767
https://github.com/ADCPD/cma/blob/master/src/Cma/CmaBundle/Resources/views/Default/Certificat/index.html.twig
Github Open Source
Open Source
MIT
2,018
cma
ADCPD
Twig
Code
120
523
{% extends 'CmaBundle:Administrator:index.html.twig' %} {% block body -%} <div class="row-fluid"> <div class="span12" style="margin-top: 5%;"> <div class="span12"> <section class="panel"><header class="panel-heading"> Liste des slides : ...
10,665
https://github.com/cts-randrid/WurmAssistant3/blob/master/src/Common/Essentials/Extensions/DotNet/TimeSpanExtensions.cs
Github Open Source
Open Source
MIT
2,022
WurmAssistant3
cts-randrid
C#
Code
302
957
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AldursLab.Essentials.Extensions.DotNet { public static class TimeSpanExtensions { public static TimeSpan StripMilliseconds(this TimeSpan timeSpan) ...
31,653
https://github.com/instructure/lti_codeshare_engine/blob/master/app/assets/javascripts/lti_codeshare_engine/app.js
Github Open Source
Open Source
MIT
2,014
lti_codeshare_engine
instructure
JavaScript
Code
166
650
App = Ember.Application.create(); App.Router.map(function() { this.route('index', { path: '/' }); this.route('embed', { path: '/embed' }); }); App.IndexController = Ember.Controller.extend({ needs: ['embed'], actions: { verify: function() { var _this = this; var postUrl = Ember.ENV['root_path...
39,195
https://github.com/andoriyu/material-design-icons-rs/blob/master/src/materialicons/image/icon_panorama_horizontal_select.rs
Github Open Source
Open Source
Apache-2.0
null
material-design-icons-rs
andoriyu
Rust
Code
113
620
pub struct IconPanoramaHorizontalSelect { props: crate::Props, } impl yew::Component for IconPanoramaHorizontalSelect { type Properties = crate::Props; type Message = (); fn create(props: Self::Properties, _: yew::prelude::ComponentLink<Self>) -> Self { Self { props } } fn update(&mut...
34,228
https://github.com/GabrielGhe/Connect4/blob/master/ConnectFourClient/src/cs543/project1/connectfour/C4ContentCardLayout.java
Github Open Source
Open Source
MIT
2,022
Connect4
GabrielGhe
Java
Code
1,142
3,438
package cs543.project1.connectfour; import java.awt.CardLayout; import java.awt.Color; import java.awt.Container; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionLi...
25,125
https://github.com/JasperBouwman/TPort/blob/master/src/com/spaceman/tport/commands/tport/tag/Create.java
Github Open Source
Open Source
MIT
null
TPort
JasperBouwman
Java
Code
119
503
package com.spaceman.tport.commands.tport.tag; import com.spaceman.tport.commandHander.ArgumentType; import com.spaceman.tport.commandHander.EmptyCommand; import com.spaceman.tport.commandHander.SubCommand; import com.spaceman.tport.commands.tport.Tag; import org.bukkit.entity.Player; import static com.spaceman.tport...
21,318
https://github.com/wdhif/daily-coding-problem/blob/master/14.py
Github Open Source
Open Source
Apache-2.0
null
daily-coding-problem
wdhif
Python
Code
130
334
#!/usr/bin/env python3 """ The area of a circle is defined as πr². Estimate π to 3 decimal places using a Monte Carlo method. Hint: The basic equation of a circle is x2 + y2 = r2. """ import unittest import math import random def generate_points(radius): x = random.randint(-radius, radius) y = random.randi...
9,716
https://github.com/ConnectBox/wifi-test-framework/blob/master/scripts/downloader.py
Github Open Source
Open Source
MIT
null
wifi-test-framework
ConnectBox
Python
Code
829
2,967
#!/usr/bin/env python3 import argparse from collections import Counter, OrderedDict import logging import math import pathlib import time import socket import sys import random import urllib.request import unittest # 1GB/sec UNLIMITED_SPEED = 1000000000 # TIMESLICE_SECS = 0.01 BYTES_TO_READ = 1024 LOGGER = logging.g...
32,277
https://github.com/toanleviet95/tweetme/blob/master/app/assets/javascripts/script.js
Github Open Source
Open Source
Apache-2.0
null
tweetme
toanleviet95
JavaScript
Code
41
266
$(document).ready(function(){ $('#your_mind').keydown(function(){ var length = $(this).val().length; var number = 140 - length; $('#character_number').text(number); if(number < 0){ $("#btn_tweet").css('opacity','0.3').css('cursor','default'); $('#character_number').css('color','red'); }else{ $("#btn...
50,459
https://github.com/ekapujiw2002/deco/blob/master/setup.py
Github Open Source
Open Source
MIT
2,022
deco
ekapujiw2002
Python
Code
26
103
#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.6.3", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco')
31,129
https://github.com/stanislavulrych/FreeCAD-Reporting/blob/master/report.py
Github Open Source
Open Source
MIT
2,020
FreeCAD-Reporting
stanislavulrych
Python
Code
1,281
5,236
import FreeCAD import FreeCADGui import string import json from FreeCAD import Units from pivy import coin from report_utils.resource_utils import uiPath from report_utils.resource_utils import iconPath from report_utils import logger from sql import freecad_sql_parser from sql.sql_parser import SqlStatementValidation...
46,365
https://github.com/liulinjie1990823/ArchitectureDemo/blob/master/lib-image-loader/src/main/java/com/llj/lib/image/loader/core/ImageConfig.java
Github Open Source
Open Source
Apache-2.0
2,022
ArchitectureDemo
liulinjie1990823
Java
Code
49
128
package com.llj.lib.image.loader.core; /** * describe 不写是傻逼 * * @author liulinjie * @date 2020/4/11 10:18 PM */ public class ImageConfig { public static final int FRESCO_ENGINE = 0; public static final int GLIDE_ENGINE = 1; public static final int PICASSO_ENGINE = 2; public static final int DEFAULT_E...
50,178
https://github.com/joseocampo/samples/blob/master/framework/wcf/Extensibility/DataContract/Surrogate/CS/Service/Service.cs
Github Open Source
Open Source
CC-BY-4.0, MIT
2,022
samples
joseocampo
C#
Code
169
476
 // Copyright (c) Microsoft Corporation. All Rights Reserved. using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.ServiceModel; namespace Microsoft.Samples.DCSurrogate { // Define a service contract. [ServiceContract(Namespace = "http://Microsoft.Samples.DCSurro...
5,715
https://github.com/b3cat/react-spectrum/blob/master/.github/actions/comment/index.js
Github Open Source
Open Source
Apache-2.0
2,022
react-spectrum
b3cat
JavaScript
Code
56
246
const core = require('@actions/core'); const github = require('@actions/github'); const octokit = new github.GitHub(process.env.GITHUB_TOKEN); run(); async function run() { try { let {data: prs} = await octokit.repos.listPullRequestsAssociatedWithCommit({ ...github.context.repo, commit_sha: github.c...
28,568
https://github.com/Bvdldf/ABP/blob/master/include/Zend/Gdata/Contacts/PaxHeader/Query.php
Github Open Source
Open Source
PHP-3.0, Apache-2.0, ECL-2.0
null
ABP
Bvdldf
PHP
Code
4
26
29 mtime=1556801615.12834084 24 SCHILY.fflags=extent
12,778
https://github.com/gmoralesc24/SpringXD/blob/master/spring-xd-dirt/src/main/java/org/springframework/xd/dirt/container/XDContainer.java
Github Open Source
Open Source
Apache-2.0
null
SpringXD
gmoralesc24
Java
Code
651
2,086
/* * Copyright 2013 the original author or authors. * * 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...
29,616
https://github.com/jjdelvalle/gradcafe_analysis/blob/master/app/parse_html.py
Github Open Source
Open Source
MIT
2,021
gradcafe_analysis
jjdelvalle
Python
Code
918
2,916
from bs4 import BeautifulSoup import datetime, time from IPython.core.debugger import Pdb import sys, re import os.path from collections import Counter import seaborn as sns import matplotlib.pyplot as plt import pandas PROGS = [ ('Computer Engineering', 'Electrical and Computer Engineering'), ('Computer Engi...
12,525
https://github.com/RonimaxTeam/maui/blob/master/src/Core/src/Layouts/ILayoutManager.cs
Github Open Source
Open Source
MIT
2,021
maui
RonimaxTeam
C#
Code
19
63
using Microsoft.Maui; namespace Microsoft.Maui.Layouts { public interface ILayoutManager { Size Measure(double widthConstraint, double heightConstraint); void ArrangeChildren(Rectangle childBounds); } }
19,303
https://github.com/Rinat-Suleymanov/cat-framework/blob/master/src/main/java/ru/cg/cat_framework/framework/configurator/InjectRandomValueObjectConfigurator.java
Github Open Source
Open Source
Apache-2.0
2,018
cat-framework
Rinat-Suleymanov
Java
Code
55
224
package ru.cg.cat_framework.framework.configurator; import java.lang.reflect.Field; import lombok.SneakyThrows; import org.fluttercode.datafactory.impl.DataFactory; import ru.cg.cat_framework.framework.annnotation.InjectRandomName; /** * @author Rinat Suleymanov */ public class InjectRandomValueObjectConfigurator...
6,118
https://github.com/bootstrap-vue/bootstrap-vue/blob/master/src/mixins/listen-on-document.spec.js
Github Open Source
Open Source
MIT
2,023
bootstrap-vue
bootstrap-vue
JavaScript
Code
207
1,062
import { mount } from '@vue/test-utils' import { listenOnDocumentMixin } from './listen-on-document' describe('mixins/listen-on-document', () => { it('works', async () => { const spyClick1 = jest.fn() const spyClick2 = jest.fn() const spyFocusin = jest.fn() const TestComponent = { mixins: [lis...
37,666
https://github.com/WEB3-Devs-Poland/web-page/blob/master/src/theme/ThemeProvider.tsx
Github Open Source
Open Source
MIT
null
web-page
WEB3-Devs-Poland
TypeScript
Code
114
300
import { createContext, useState } from 'react'; import * as SC from 'styled-components'; import GlobalStyle from './GlobalStyle'; import darkTheme from './theme.dark'; import lightTheme from './theme.light'; type ThemeType = 'light' | 'dark'; export type ThemeStateContextType = { currentTheme: ThemeType; change...
20,328
https://github.com/malloch/chronoviz/blob/master/Classes/Analysis Plugins/PluginManager.h
Github Open Source
Open Source
Apache-2.0
2,015
chronoviz
malloch
Objective-C
Code
64
321
// // PluginManager.h // Annotation // // Created by Adam Fouse on 9/23/09. // Copyright 2009 __MyCompanyName__. All rights reserved. // #import <Cocoa/Cocoa.h> @class PluginScript; @class AnnotationDataAnalysisPlugin; @class PluginDataSource; @interface PluginManager : NSObject { NSMutableArray *plugins; NSMu...
50,639
https://github.com/Yankee24/Alink/blob/master/core/src/main/java/com/alibaba/alink/operator/batch/source/ParquetSourceBatchOp.java
Github Open Source
Open Source
Apache-2.0
null
Alink
Yankee24
Java
Code
256
1,338
package com.alibaba.alink.operator.batch.source; import org.apache.flink.api.common.functions.FlatMapFunction; import org.apache.flink.api.common.functions.MapFunction; import org.apache.flink.api.common.io.RichInputFormat; import org.apache.flink.api.java.DataSet; import org.apache.flink.api.java.tuple.Tuple2; import...
24,059
https://github.com/winoutt/winoutt-django/blob/master/frontend/src/components/user/UserMutualConnections.vue
Github Open Source
Open Source
MIT
null
winoutt-django
winoutt
Vue
Code
94
394
<template lang="pug"> .user-mutualConnections .d-flex.align-items-center.cursor-pointer(@click.prevent="openModal()" v-if="user.end_user.mutual_connections_count") Icon.icon-connections.mr-1(name="connections") .count.mr-1.text-secondary.text-truncate( :style="fontSize ? `font-size: ${fontSize...
3,505
https://github.com/alkisg/glo/blob/master/modules/webapp/components/SymbolScope.vue
Github Open Source
Open Source
MIT
2,020
glo
alkisg
Vue
Code
295
1,114
<template lang="pug"> .symbol-scope(:class="darkmode ? 'darkmode': ''") div.scope-name span Όνομα εμβέλειας: span.name {{ scope.name }} div .constants(v-if="constants && constants.length") .title Σταθερες: .grid .cv-display(v-for="constant in constants") .name {{...
3,111
https://github.com/philippschmalen/Alternative-ESG-data-codebase/blob/master/src/data/google_trends.py
Github Open Source
Open Source
MIT
null
Alternative-ESG-data-codebase
philippschmalen
Python
Code
988
2,952
""" Extract data from Google trends with the pytrends package Methods take one keyword, call pytrends and return processed data as CSV or dataframe Main functions (1) get_related_queries_pipeline: Returns dataframe of trending searches for a given topic (2) get_interest_over_time: Returns CSV with interest ove...
22,919
https://github.com/clawpack/pyclaw/blob/master/src/pyclaw/util.py
Github Open Source
Open Source
BSD-3-Clause
2,023
pyclaw
clawpack
Python
Code
2,833
7,544
#!/usr/bin/env python # encoding: utf-8 r""" Pyclaw utility methods """ from __future__ import absolute_import from __future__ import print_function import time import os import sys import subprocess import logging import tempfile import inspect import warnings import numpy as np import contextlib from six.moves impo...
34,060
https://github.com/mindbender1/json-schema/blob/master/core/src/main/java/org/everit/json/schema/internal/URIReferenceFormatValidator.java
Github Open Source
Open Source
Apache-2.0
null
json-schema
mindbender1
Java
Code
64
206
package org.everit.json.schema.internal; import static java.lang.String.format; import java.net.URI; import java.net.URISyntaxException; import java8.util.Optional; import org.everit.json.schema.FormatValidator; public class URIReferenceFormatValidator extends AFormatValidator { @Override public Optional<Strin...
3,452
https://github.com/lagXkjy/yoga/blob/master/fc/src/main/java/com/fc/crm/service/impl/OrderServiceImpl.java
Github Open Source
Open Source
Apache-2.0
2,019
yoga
lagXkjy
Java
Code
145
888
package com.fc.crm.service.impl; import com.fc.business.service.MemberBaseInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; import com.fc.crm.dao.OrderDao; import com.fc.crm.domain.OrderDO; import co...
30,870
https://github.com/JHPDEVS/CheckMate-vue-laravel/blob/master/resources/js/Jetstream/NavLink.vue
Github Open Source
Open Source
MIT
null
CheckMate-vue-laravel
JHPDEVS
Vue
Code
57
237
<template> <inertia-link :href="href" :class="classes"> <slot></slot> </inertia-link> </template> <script> export default { props: ['href', 'active'], computed: { classes() { return this.active ? 'inline-flex items-center font...
35,156
https://github.com/northern/transmit-server/blob/master/src/app/Query/TemplateQuery.js
Github Open Source
Open Source
MIT
null
transmit-server
northern
JavaScript
Code
66
175
import Response from '../Response' import AppError from '../Error/AppError' import AbstractQuery from './AbstractQuery' export default class TemplateQuery extends AbstractQuery { setTemplateService(templateService) { this.templateService = templateService } getById(templateId) { const response = new Re...
21,978
https://github.com/fuzctc/PyAutoApiRoute/blob/master/sanic/app.py
Github Open Source
Open Source
Apache-2.0
2,021
PyAutoApiRoute
fuzctc
Python
Code
84
305
# !/usr/bin/python # -*- coding:utf-8 -*- # Author: Zhichang Fu # Created Time: 2018-12-14 14:12:31 ''' BEGIN function: sanic app return: code:0 success END ''' from sanic import Sanic import argparse import sys sys.path.append("..") from base import config, route parser = argparse.ArgumentParser() parser.add...
42,168
https://github.com/qiaw99/SS2020/blob/master/SWT/_U11/Grader.java
Github Open Source
Open Source
Apache-2.0
null
SS2020
qiaw99
Java
Code
113
213
package grading; /** * Grader for university courses. * * So far, this grader can only handle courses with two exams which follow an * 40-60 point distribution. * * @author fzieris * @version 0.5 */ public class Grader { public enum Grade { A, B, C, D, F } /** * Calculates the grade for a student gi...
42,736
https://github.com/microsoftgraph/msgraph-beta-sdk-php/blob/master/src/Generated/Models/AppIdentity.php
Github Open Source
Open Source
MIT
2,023
msgraph-beta-sdk-php
microsoftgraph
PHP
Code
807
2,171
<?php namespace Microsoft\Graph\Beta\Generated\Models; use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Microso...
16,881
https://github.com/GentlemanBrewing/ADCLibraries-MCP3424/blob/master/ADCPi/demo-logvoltage.py
Github Open Source
Open Source
MIT
null
ADCLibraries-MCP3424
GentlemanBrewing
Python
Code
157
488
#!/usr/bin/python3 from ABE_ADCPi import ADCPi from ABE_helpers import ABEHelpers import datetime import time """ ================================================ ABElectronics ADC Pi 8-Channel ADC data-logger demo Version 1.0 Created 29/02/2015 Requires python 3 smbus to be installed run with: python3 demo-read_vol...
37,048
https://github.com/KarpelesLab/static-opus/blob/master/opus/inc-src-opus-multistream.go
Github Open Source
Open Source
MIT
null
static-opus
KarpelesLab
Go
Code
8
35
package opus /* #include <opus-1.3.1/src/opus_multistream.c> */ import "C"
15,910
https://github.com/apereo/dotnet-cas-client-redis/blob/master/src/DotNetCasClient.Redis/Properties/AutoGeneratedAssemblyInfo.cs
Github Open Source
Open Source
Apache-2.0
2,020
dotnet-cas-client-redis
apereo
C#
Code
64
240
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by Cake. // </auto-generated> //------------------------------------------------------------------------------ using System.Reflection; [assembly: AssemblyTitle("Apereo .NET CAS Client R...
4,890
https://github.com/denisoed/Arial-gym/blob/master/dev/Blocks/Pages/About-us/features/features.sass
Github Open Source
Open Source
MIT
null
Arial-gym
denisoed
Sass
Code
50
186
.features padding: 50px 0 &__container +container() &__list width: 100% display: flex justify-content: space-around align-items: center flex-wrap: wrap .features-item display: flex flex-direction: column align-items: center margin: 15px 0 &__icon font-size: 52px color: $a...
45,335
https://github.com/lorenchorley/StrangeIoC-Updated/blob/master/Assets/scripts/StrangeIoC/dispatcher/eventdispatcher/impl/TmEvent.cs
Github Open Source
Open Source
Apache-2.0
2,022
StrangeIoC-Updated
lorenchorley
C#
Code
201
422
/* * Copyright 2013 ThirdMotion, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
27,173
https://github.com/godoggyo/AutoWordle/blob/master/UserWordle.py
Github Open Source
Open Source
Apache-2.0
null
AutoWordle
godoggyo
Python
Code
14
40
import _gamefunc as ws class UserWordle(): word = None def __init__(self) -> None: ws.establishWordPool
17,642
https://github.com/HeartCommunity/uiKit/blob/master/packages/people-and-teams/profilecard/src/styled/constants.js
Github Open Source
Open Source
Apache-2.0
2,020
uiKit
HeartCommunity
JavaScript
Code
129
401
// @flow import { colors, themed } from '@findable/theme'; export const bgColor = themed({ light: colors.N0, dark: colors.DN50, }); export const headerBgColor = themed({ light: colors.B500, dark: colors.B100, }); export const headerBgColorDisabledUser = themed({ light: colors.N30, dark: colors.B100, }); ...
21,586
https://github.com/Ariken6/localdairy/blob/master/public/mysite/code/model/Event.php
Github Open Source
Open Source
BSD-3-Clause
2,016
localdairy
Ariken6
PHP
Code
125
415
<?php /** * Created by PhpStorm. * User: haochen * Date: 8/6/2016 * Time: 4:45 PM */ //TODO think about if this class is needed or everything should go on group class Event extends DataObject { private static $db = array( 'Title' => 'Varchar(200)', 'Reoccurring' => 'Boolean', 'Date' =>...
9,899
https://github.com/OmArMouNir/interactive-spaces/blob/master/interactivespaces-master/src/main/java/interactivespaces/master/server/services/ControllerRepository.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,016
interactive-spaces
OmArMouNir
Java
Code
459
859
/* * Copyright (C) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
4,687
https://github.com/marclayson/Algorithms-CSharp-Translation/blob/master/Programming =++ Algorithms C#/Chapter 6/6.3.7. Побуквено превеждане/Translat.cs
Github Open Source
Open Source
MIT
2,014
Algorithms-CSharp-Translation
marclayson
C#
Code
441
1,512
using System; class Translat { /* Максимален брой съответствия между букви */ const int MAXN = 40; /* Максимална дължина на дума за превод */ const int MAXTL = 200; /* Брой съответствия */ const uint n = 38; /* Дума за превод */ static string str1 = "101001010"; struct transType...
22,350
https://github.com/sam-cms/fetch/blob/master/fetch/__init__.py
Github Open Source
Open Source
MIT
2,022
fetch
sam-cms
Python
Code
10
22
name = "fetch" __all__ = ['fetch','info'] from fetch import *
6,845
https://github.com/twilson63/nifty-generators/blob/master/rails_generators/nifty_nested_scaffold/templates/actions/new.rb
Github Open Source
Open Source
MIT
2,016
nifty-generators
twilson63
Ruby
Code
31
94
def new @<%= singular_name %> = @<%= parent_singular_name %>.<%= plural_name %>.build respond_to do |wants| wants.html <%- if options[:ajaxify] %> wants.js { render :action => "dialog" } <%- end %> end end
35,231
https://github.com/vitorbertti/event-registration/blob/master/resources/js/react/pages/Events/components/BatchesEdit.js
Github Open Source
Open Source
MIT
null
event-registration
vitorbertti
JavaScript
Code
338
1,324
import React, { useState, useEffect, useCallback } from 'react' import api from '../../../services/api' function ChildComponent(props) { const batch = props.data; const index = props.index; const [name, setName] = useState(''); const [quantity, setQuantity] = useState(''); const [price, setPrice] ...
26,694
https://github.com/dangdangdotcom/cymbal/blob/master/cymbal-portal/src/main/java/com/dangdang/cymbal/web/object/converter/ConfigConverter.java
Github Open Source
Open Source
Apache-2.0
2,022
cymbal
dangdangdotcom
Java
Code
47
175
package com.dangdang.cymbal.web.object.converter; import com.dangdang.cymbal.domain.po.Config; import com.dangdang.cymbal.web.object.dto.ConfigDTO; import org.springframework.stereotype.Component; /** * Converter for redis config PO and DTO. * * @auther GeZhen */ @Component public class ConfigConverter extends Ba...
41,310
https://github.com/isabella232/helix-harmonicabsorber-reports/blob/master/report_00015_2021-02-09T16-11-33.973Z/max-potential-fid/comparison/histogram/2_vs_3.gnuplot
Github Open Source
Open Source
W3C, Apache-2.0
2,021
helix-harmonicabsorber-reports
isabella232
Gnuplot
Code
84
299
reset $pagesCachedNoadtech <<EOF 273.6492529524727 68 0 8 820.9477588574181 4 547.2985059049454 19 1094.5970118098908 1 EOF $pagesCachedNoadtechNomedia <<EOF 273.6492529524727 79 547.2985059049454 12 0 9 EOF set key outside below set boxwidth 273.6492529524727 set xrange [111:1086.0000000000002] set yrange [0:100] s...
10,843
https://github.com/demigod19892012/jenkin_test/blob/master/sourcecode/api/bdsapi/app/Http/Controllers/Admin/Auth/AdminAuthController.php
Github Open Source
Open Source
MIT
2,017
jenkin_test
demigod19892012
PHP
Code
176
506
<?php /** * Created by PhpStorm. * User: quocviet * Date: 9/10/15 * Time: 10:47 PM */ namespace App\Http\Controllers\Admin\Auth; use App\Http\Controllers\Base; use ResponseHelper; use App; use App\Model; use Config; use App\Model\Table\UserTable; use Illuminate\Http\Request; use Auth; class AdminAuthController ...
44,442
https://github.com/neelkamath/omni-chat-web/blob/master/src/components/registration-page/RegistrationPage.tsx
Github Open Source
Open Source
MIT
2,021
omni-chat-web
neelkamath
TypeScript
Code
59
178
import React, { ReactElement } from 'react'; import { Divider, Row } from 'antd'; import HomeLayout from '../HomeLayout'; import SignUpSection from './SignUpSection'; import ResendEmailAddressVerificationCodeSection from './ResendEmailAddressVerificationCodeSection'; import VerifyYourEmailAddressSection from './VerifyY...
33,488
https://github.com/Proteanindustries/gaphor/blob/master/gaphor/UML/interactions/executionspecification.py
Github Open Source
Open Source
Apache-2.0
2,021
gaphor
Proteanindustries
Python
Code
394
1,388
"""An ExecutionSpecification is defined by a white recrange overlaying the lifeline. ,----------. | lifeline | `----------' | --- Lifeline ,+. -- ExecutionOccurrenceSpecification | | -- ExecutionSpecification `+' -- ExecutionOccurrentSpecification | ExecutionOccurrenceSpecifi...
25,502
https://github.com/TheRake66/Cody-PHP/blob/master/bases/base_projet/.kernel/js/communication/http.js
Github Open Source
Open Source
MIT
null
Cody-PHP
TheRake66
JavaScript
Code
264
618
/** * Librairie de communication via le protocole HTTP(S). * * @author Thibault Bustos (TheRake66) * @version 1.0 * @category Framework source * @license MIT License * @copyright © 2022 - Thibault BUSTOS (TheRake66) */ export default class Http { /** * @type {string} Les méthodes d'envoi. */ ...
20,862
https://github.com/Ascend/modelzoo/blob/master/built-in/PyTorch/Official/cv/image_object_detection/Faster_Mask_RCNN_for_PyTorch_Dynamic_Shape/detectron2/modeling/proposal_generator/proposal_utils.py
Github Open Source
Open Source
Apache-2.0
2,022
modelzoo
Ascend
Python
Code
716
2,157
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Copyright 2020 Huawei Technologies Co., Ltd # # 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....
50,071
https://github.com/JetBrains/kotlin/blob/master/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/typeParameters.kt
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
kotlin
JetBrains
Kotlin
Code
70
164
interface List<out T : Any> { operator fun get(index: Int): T infix fun concat(other: List<T>): List<T> } typealias StringList = List<out String> typealias AnyList = List<*> abstract class AbstractList<out T : Any> : List<T> class SomeList : AbstractList<Int>() { override fun get(index: Int): Int = 42 ...
29,062
https://github.com/RanaV25/AssessGo/blob/master/src/main/java/com/assessgo/frontend/util/css/Position.java
Github Open Source
Open Source
Unlicense
null
AssessGo
RanaV25
Java
Code
27
90
package com.assessgo.frontend.util.css; public enum Position { ABSOLUTE("absolute"), FIXED("fixed"), RELATIVE("relative"); private String value; Position(String value) { this.value = value; } public String getValue() { return value; } }
10,248
https://github.com/robindirksen1/freek.dev/blob/master/app/Http/ViewComposers/LazyViewComposer.php
Github Open Source
Open Source
MIT
2,022
freek.dev
robindirksen1
PHP
Code
54
205
<?php namespace App\Http\ViewComposers; use Illuminate\View\View; class LazyViewComposer { public function compose(View $view) { $view->with('usesInternetExplorer', $this->usesInternetExplorer()); } private function usesInternetExplorer(): bool { if (app()->runningInConsole()) { ...
10,384
https://github.com/menucha-de/Shared.REST/blob/master/src/main/java/havis/net/rest/shared/NetService.java
Github Open Source
Open Source
Apache-2.0
null
Shared.REST
menucha-de
Java
Code
130
544
package havis.net.rest.shared; import havis.net.rest.shared.data.Uri; import java.net.URI; import java.net.URISyntaxException; import javax.annotation.security.PermitAll; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws...
19,576
https://github.com/Cubix92/statistics-module/blob/master/module/Statistics/test/Application/Command/StatisticsCommandTest.php
Github Open Source
Open Source
BSD-3-Clause
null
statistics-module
Cubix92
PHP
Code
202
1,133
<?php declare(strict_types=1); namespace StatisticsTest\Application\Command; use PHPUnit\Framework\TestCase; use Prophecy\Argument; use Statistics\Application\Command\BannerNotFoundException; use Statistics\Application\Command\CreateStatisticsCommand; use Statistics\Application\Command\CreateStatisticsHandler; use S...
7,729
https://github.com/tdurieux/smartbugs-wild/blob/master/contracts/0xe0b8fce1183e31c995b40460e6cb6712fa929f59.sol
Github Open Source
Open Source
Apache-2.0
2,022
smartbugs-wild
tdurieux
Solidity
Code
68
151
contract AmIOnTheFork { bool public forked = false; address constant darkDAO = 0x304a554a310c7e546dfe434669c62820b7d83490; // Check the fork condition during creation of the contract. // This function should be called between block 1920000 and 1930000. // After that the status will be locked in. ...
40,364
https://github.com/AndiAkbar09/penggajian/blob/master/routes/web.php
Github Open Source
Open Source
MIT
2,021
penggajian
AndiAkbar09
PHP
Code
111
1,168
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
18,105
https://github.com/william-keller/hacker-rank/blob/master/algorithms/warmup/diagonal-difference/Solution.java
Github Open Source
Open Source
MIT
2,021
hacker-rank
william-keller
Java
Code
81
259
import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int a[][] = new int[n][n]; for(int a_i=0; a_i < n; a...
27,907
https://github.com/sanjeevan/nanoinvoice/blob/master/nano/static/src/sass/vendor/_facebox.scss
Github Open Source
Open Source
Apache-2.0
2,021
nanoinvoice
sanjeevan
SCSS
Code
96
359
#facebox { position: absolute; top: 0; left: 0; z-index: 100; text-align: left; } #facebox .popup{ position:relative; } #facebox .content-wrapper { @include box-sizing(border-box); width: 100%; display:table; } #facebox .close{ position:absolute; top:5px; right:5px; padding:2px; } #facebox ...
36,721
https://github.com/vvmnnnkv/PyGrid/blob/master/apps/node/src/deploy.py
Github Open Source
Open Source
Apache-2.0
2,021
PyGrid
vvmnnnkv
Python
Code
19
64
import os import sys # Add dependencies in EFS to python-path sys.path.append(os.environ.get("MOUNT_PATH")) from app import create_lambda_app app = create_lambda_app(node_id="bob")
44,336
https://github.com/salar-fs/deriv-com/blob/master/src/pages/trader-tools/_style.js
Github Open Source
Open Source
Apache-2.0
null
deriv-com
salar-fs
JavaScript
Code
902
3,085
import styled, { css } from 'styled-components' import { Form } from 'formik' import { Flex, SectionContainer } from 'components/containers' import { Header, Text, Dropdown } from 'components/elements' import { Button, LinkButton } from 'components/form' import device from 'themes/device' export const StyledText = sty...
39,690
https://github.com/makbash/ngmatkit-es6/blob/master/app/src/modules/signin/Module.js
Github Open Source
Open Source
MIT
2,019
ngmatkit-es6
makbash
JavaScript
Code
229
678
// Load the custom app ES6 modules 'use strict'; import angular from 'angular'; // Define the AngularJS 'home' module export default angular .module("signin", ['ngMaterial']) .component('signin', { templateUrl: './src/modules/signin/signin.html', controller: function ($scope, $rootScope, $sce...
35,754
https://github.com/imrafaelmerino/json-values/blob/master/src/main/java/jsonvalues/OpFilterObjKeys.java
Github Open Source
Open Source
Apache-2.0
2,021
json-values
imrafaelmerino
Java
Code
195
708
package jsonvalues; import io.vavr.Tuple2; import java.util.function.BiPredicate; import java.util.function.Predicate; final class OpFilterObjKeys { static JsObj filterAll(JsObj json, final JsPath startingPath, final BiPredicate<? super JsPath, ? super JsVa...
30,115
https://github.com/henlo-birb/lovepotion/blob/master/platform/switch/source/modules/joystick.cpp
Github Open Source
Open Source
0BSD
2,021
lovepotion
henlo-birb
C++
Code
124
516
#include "modules/joystick/joystick.h" #include "modules/timer/timer.h" using namespace love; static constexpr size_t MAX_GAMEPADS = 4; Joystick::VibrationThread::VibrationThread(VibrationPool* pool) : pool(pool), finish(false) { this->threadName = "VibrationPool"; } Joystick::VibrationThread::~VibrationThread...
11,740
https://github.com/ahanafi/travelly/blob/master/application/models/Product_model.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,018
travelly
ahanafi
PHP
Code
151
550
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Product_model extends CI_Model { protected $table = "produk"; public function all($limit = NULL) { if ($limit != NULL) { $sql = $this->db->limit($limit)->get($this->table); } else { $sql = $this->db->get($this->table); } ret...
3,095
https://github.com/PeterQu007/pidhomes3/blob/master/partials-twig/components/pid-map.twig
Github Open Source
Open Source
MIT
null
pidhomes3
PeterQu007
Twig
Code
63
233
{# {{ dump(pid_map_locations) }} #} {% block pid_map %} {% if show_map %} <img src="{{pid_map_image}}" style="display:none"></img> <div id="listing-map" class="acf-map" style="text-align:left; padding: 0 2px"> {% for location in pid_map_locations %} <div style="display:i...
18,452
https://github.com/ReactExpert918/Laravel-3geniusMarketing/blob/master/public/assets/templates/tmp2/front/sass/_layout/_footer.scss
Github Open Source
Open Source
MIT
2,022
Laravel-3geniusMarketing
ReactExpert918
SCSS
Code
243
814
/*Footer-Section Starts Here*/ .footer-top { border-bottom: 1px solid #271c3e; } .footer-widget { .widget-header { position: relative; .title { margin-bottom: 27px; text-transform: capitalize; margin-top: 0; @include breakpoint(sm) { ...
21,190
https://github.com/iconara/aws-doc-sdk-examples/blob/master/javav2/usecases/creating_photo_analyzer_async/src/main/java/com/example/photo/AnalyzePhotos.java
Github Open Source
Open Source
Apache-2.0
2,022
aws-doc-sdk-examples
iconara
Java
Code
193
704
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package com.example.photo; import software.amazon.awssdk.auth.credentials.EnvironmentVariableCredentialsProvider; import software.amazon.awssdk.core.SdkBytes; import software.amazon.awssdk.regions.Region...
41,151
https://github.com/opuslogica/oli_comments/blob/master/README.rdoc
Github Open Source
Open Source
MIT
null
oli_comments
opuslogica
RDoc
Code
209
415
# Oli Comments Oli Comments provides an easy-to-configure commenting system. ## Installation Add this line to your application's Gemfile: gem 'oli_comments' And then execute: $ bundle install Once you have bundled it, you should run the installation generator: $ rails g oli_comments:install Mig...
40,447
https://github.com/mgaidamak/cinema/blob/master/hall/src/main/kotlin/org/mgaidamak/dao/cinema/DbCinemaRepo.kt
Github Open Source
Open Source
MIT
null
cinema
mgaidamak
Kotlin
Code
302
902
package org.mgaidamak.dao.cinema import org.mgaidamak.dao.Cinema import org.mgaidamak.dao.DbRepo import org.mgaidamak.dao.Page import java.sql.DriverManager import java.sql.ResultSet import java.util.Properties /** * Production ready repository on PostgreSQL */ class DbCinemaRepo(url: String, pr...
28,963
https://github.com/HappyPorch/uSplit/blob/master/src/Endzone.uSplit/Commands/StopExperiment.cs
Github Open Source
Open Source
Unlicense
2,018
uSplit
HappyPorch
C#
Code
100
327
using System.Threading.Tasks; using Endzone.uSplit.GoogleApi; using Endzone.uSplit.Models; namespace Endzone.uSplit.Commands { public class StopExperiment : GoogleApiCommand<Experiment> { private readonly string _googleExperimentId; public StopExperiment(AnalyticsAccount config, string googleE...
50,210
https://github.com/Manchester-Central/2022-Rapid-React/blob/master/src/main/java/frc/robot/commands/DriveOverTime.java
Github Open Source
Open Source
BSD-3-Clause
2,022
2022-Rapid-React
Manchester-Central
Java
Code
185
480
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.commands; import edu.wpi.first.wpilibj.RobotController; import edu.wpi.first.wpilibj2.command.Command...
8,242
https://github.com/log2timeline/plaso/blob/master/tests/formatters/yaml_formatters_file.py
Github Open Source
Open Source
Apache-2.0
2,023
plaso
log2timeline
Python
Code
182
1,052
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the YAML-based formatters file.""" import io import unittest from plaso.formatters import yaml_formatters_file from plaso.lib import errors from tests import test_lib as shared_test_lib class YAMLFormattersFileTest(shared_test_lib.BaseTestCase): """Test...
18,613
https://github.com/nvander/incubator-rya/blob/master/extras/rya.geo/src/test/java/mvm/rya/geo/GeoRyaTypeResolverTest.java
Github Open Source
Open Source
Apache-2.0
2,015
incubator-rya
nvander
Java
Code
52
225
package mvm.rya.geo; import mvm.rya.api.domain.RyaType; import org.junit.Assert; import org.junit.Test; public class GeoRyaTypeResolverTest { private final GeoRyaTypeResolver resolver = new GeoRyaTypeResolver(); @Test public void testSerialization_andBack() throws Exception { String latLon = "20.00,30.00"; ...
37,391
https://github.com/rhinoSp/LibOkHttp/blob/master/libOkHttp/src/main/java/com/rhino/http/SSLUtils.java
Github Open Source
Open Source
Apache-2.0
2,020
LibOkHttp
rhinoSp
Java
Code
148
575
package com.rhino.http; import android.annotation.SuppressLint; import com.rhino.log.LogUtils; import java.security.SecureRandom; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLContext; import javax.net.ssl.SS...
14,316
https://github.com/NARUTONBM/ReserveClassroom/blob/master/App/src/main/java/com/naruto/reserveclassroom/activity/PostReservationActivity.java
Github Open Source
Open Source
Apache-2.0
null
ReserveClassroom
NARUTONBM
Java
Code
1,336
7,078
package com.naruto.reserveclassroom.activity; /* * Created by NARUTO on 2016/11/10. */ import android.content.Context; import android.content.Intent; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity;...
41,411
https://github.com/santoshvijapure/DS_with_hacktoberfest/blob/master/Data_Structures/hashing/Chain_Hashing.c
Github Open Source
Open Source
Apache-2.0
2,020
DS_with_hacktoberfest
santoshvijapure
C
Code
332
1,154
//Made by- Subhadeep Saha //program in c #include<stdio.h> #include<stdlib.h> //code for chain hashing struct node { int info; struct node *link; }; struct node *start[10]; void inserter(int value, int key) { key=key%10; struct node* ptr; struct node* newn=(struct node*)malloc(sizeof(struct node...
10,247
https://github.com/betajaen/gorilla/blob/master/examples/gorilla_3d.cpp
Github Open Source
Open Source
Unlicense
2,021
gorilla
betajaen
C++
Code
953
4,766
#include <OGRE/Ogre.h> #include <OIS/OIS.h> #include "Gorilla.h" #include <sstream> #pragma warning ( disable : 4244 ) struct Button { Button(Ogre::Real x, Ogre::Real y, const Ogre::String& text, Gorilla::Layer* layer) : hovered(false) { caption = layer->createCaption(14, x,y, text); caption->size(6...
46,829
https://github.com/sanatg/Three.js-Solar-Exploration/blob/master/js/index.js
Github Open Source
Open Source
MIT, Apache-2.0
2,018
Three.js-Solar-Exploration
sanatg
JavaScript
Code
396
1,769
/** * Created by ss on 2017/10/30. */ $(function () { googleEarth = false; infoBoard = false; renderer = SolarEPUtils.getDefaultRenderer(); solarSystemSceneController = new SolarSystemSceneController(renderer); solarSystemSceneController.initialFadeSceneIn(); activatedScene = solarSystemS...
45,134
https://github.com/pombredanne/olypy/blob/master/scripts/oid
Github Open Source
Open Source
Apache-2.0
2,018
olypy
pombredanne
Python
Code
25
97
#!/usr/bin/env python import sys from olypy.oid import to_oid, to_int for oid in sys.argv[1:]: if oid.isdigit(): oidint = int(oid) else: oidint = to_int(oid) print('{}: {}'.format(to_oid(oidint), oidint))
32,353
https://github.com/brvhjustice/donation_backend/blob/master/app.js
Github Open Source
Open Source
MIT
null
donation_backend
brvhjustice
JavaScript
Code
55
226
require('dotenv').config() const express = require('express'); const app = express(); app.set('view engine', 'ejs') app.use(express.static(__dirname + '/public')); app.use(express.static("public")); app.get("/", function(req, res){ res.sendFile(__dirname + "/index.html") }) app.get("/views/donate.html", functio...
19,691
https://github.com/PauloBarrantes/Tarea1-Redes/blob/master/NodeTCP.py
Github Open Source
Open Source
MIT
null
Tarea1-Redes
PauloBarrantes
Python
Code
1,116
3,391
import threading from Node import * from ReachabilityTables import * from TablaTCP import * from socket import * from texttable import * import time class BColors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' GG = '\033[96m' ENDC = '\0...
31,124
https://github.com/Utar94/skillcraft/blob/master/api/src/SkillCraft.Core/Languages/Payloads/UpdateLanguagePayload.cs
Github Open Source
Open Source
MIT
null
skillcraft
Utar94
C#
Code
11
37
namespace SkillCraft.Core.Languages.Payloads { public class UpdateLanguagePayload : SaveLanguagePayload { } }
13,261
https://github.com/yongHacker/tp5_baiduNM/blob/master/application/data/o2o.sql
Github Open Source
Open Source
Apache-2.0
null
tp5_baiduNM
yongHacker
SQL
Code
1,111
3,356
#生活服务分类表 CREATE TABLE `o2o_category`( `id` int(11) unsigned NOT NULL auto_increment, `name` VARCHAR(50) NOT NULL DEFAULT '', `parent_id` int(10) unsigned NOT NULL DEFAULT 0, `listorder` int(8) unsigned NOT NULL DEFAULT 0, `status` tinyint(1) NOT NULL DEFAULT 0, `create_time` int(11) unsigned NOT...
22,314
https://github.com/figroc/spotless/blob/master/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTaskImpl.java
Github Open Source
Open Source
Apache-2.0
null
spotless
figroc
Java
Code
409
1,255
/* * Copyright 2016-2021 DiffPlug * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
38,158
https://github.com/simeonpilgrim/opendct/blob/master/src/main/java/opendct/nanohttpd/client/api/Discovery.java
Github Open Source
Open Source
Apache-2.0
2,021
opendct
simeonpilgrim
Java
Code
1,050
3,107
/* * Copyright 2015-2016 The OpenDCT Authors. 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...
26,186
https://github.com/yyyyffqqqq/jianshuDemo-OC/blob/master/jianshuDemo/jianshuDemo/TopWindow.m
Github Open Source
Open Source
MIT
2,016
jianshuDemo-OC
yyyyffqqqq
Objective-C
Code
109
392
// // TopWindow.m // jianshuDemo // // Created by quan on 16/8/3. // Copyright © 2016年 quan. All rights reserved. // #import "TopWindow.h" #import <UIKit/UIKit.h> @implementation TopWindow + (void)scrollViewScrollToTop { UIWindow *window = [UIApplication sharedApplication].keyWindow; [self searchScrollV...
47,524
https://github.com/krudowicz/FriendlyBudget2/blob/master/FriendlyBudget2/DTO/Expenditure.cs
Github Open Source
Open Source
MIT
null
FriendlyBudget2
krudowicz
C#
Code
71
160
using FriendlyBudget2.Core.Abstracts; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FriendlyBudget2.DTO { class Expenditure : DataObject { public long Id { get; set; } public string Name { get; set; } publi...
18,953
https://github.com/PeroSar/termux-packages/blob/master/packages/aubio/build.sh
Github Open Source
Open Source
Apache-2.0
2,022
termux-packages
PeroSar
Shell
Code
42
359
TERMUX_PKG_HOMEPAGE=https://aubio.org/ TERMUX_PKG_DESCRIPTION="A library to label music and sounds" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=0.4.9 TERMUX_PKG_SRCURL=https://aubio.org/pub/aubio-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SHA256=d48282ae4dab83b3dc94c16cf011bcb63835c1c0...
40,756
https://github.com/Shofiul-Alam/magento-app/blob/master/src/vendor/magento/module-asynchronous-operations/Model/ResourceModel/System/Message/Collection/Synchronized/Plugin.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT, AFL-2.1, AFL-3.0, OSL-3.0
2,019
magento-app
Shofiul-Alam
PHP
Code
421
1,743
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\AsynchronousOperations\Model\ResourceModel\System\Message\Collection\Synchronized; /** * Class Plugin to add bulks related notification messages to Synchronized Collection */ class Plugin { /...
3,367
https://github.com/LuckyDmitry/KinoLenta/blob/master/KinoLenta/MovieDetail/CollectionViewCells/DetailMovieImageCollectionViewCell.swift
Github Open Source
Open Source
MIT
2,022
KinoLenta
LuckyDmitry
Swift
Code
79
291
// // DetailMovieImageItemCollectionViewCell.swift // KinoLenta // // Created by Dmitry Trifonov on 11.12.2021. // import UIKit final class DetailMovieImageCollectionViewCell: UICollectionViewCell { let imageView: UIImageView = { let imageView = UIImageView() imageView.contentMode = .scaleAspec...
44,123
https://github.com/jm-begon/randconv/blob/master/randconv/image/aggregator.py
Github Open Source
Open Source
BSD-3-Clause
2,016
randconv
jm-begon
Python
Code
1,520
3,955
# -*- coding: utf-8 -*- """ An :class:`Aggregator` maps a 2D or 3D numpy array to a smaller one by applying a function on a contiguous bloc of pixels. This module contains several predefined Aggregators. """ __author__ = "Begon Jean-Michel <jm.begon@gmail.com>" __copyright__ = "3-clause BSD License" __date__ = "20 Jan...
38,647
https://github.com/SwagSoftware/Kisak-Strike/blob/master/materialsystem/stdshaders/colorout.cpp
Github Open Source
Open Source
LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference
2,022
Kisak-Strike
SwagSoftware
C++
Code
343
1,845
//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======// // // Purpose: // // $Header: $ // $NoKeywords: $ //===========================================================================// #include "BaseVSShader.h" #include "colorout_vs20.inc" #include "colorout_ps20.inc" #include "colorout_ps20...
5,618
https://github.com/Jozwiaczek/smart-gate/blob/master/packages/client/src/pages/authorized/Dashboard/sections/CameraPreviewSection/index.tsx
Github Open Source
Open Source
MIT
2,022
smart-gate
Jozwiaczek
TypeScript
Code
152
574
import React, { useCallback, useLayoutEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { CircleLoader } from '../../../../../elements'; import { useAxios } from '../../../../../hooks'; import { isCameraPreviewEnabled } from '../../../../../utils'; import { CameraPreview...
43,102