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/hkurhinen/esmap/blob/master/assets/js/app.js
Github Open Source
Open Source
MIT
2,015
esmap
hkurhinen
JavaScript
Code
236
962
(function(){ var app = angular.module('esMap', []); app.controller('SidebarController',['$http', function($http){ var sbitems = this; sbitems.items = categories; $http.get('php/activity.php?getdata=1').success(function(data){ for(var i = 0; i < data.length;i++){ var place = data[i]; for(var j = 0; ...
876
https://github.com/pierreozoux/coreos-cluster/blob/master/service/wordpress.1.service
Github Open Source
Open Source
CC0-1.0
2,014
coreos-cluster
pierreozoux
null
Spoken
28
156
[Unit] Description=wordpress1 [Service] ExecStartPre=-/usr/bin/docker kill wordpress1 ExecStartPre=-/usr/bin/docker rm wordpress1 ExecStartPre=/usr/bin/docker pull wordpress ExecStart=/usr/bin/docker run --name wordpress1 --link mysql1:mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -d wordpress ExecStop=/usr/bin/docker...
26,114
https://github.com/mkinsner/llvm/blob/master/llvm/test/Transforms/FunctionSpecialization/function-specialization-always-inline.ll
Github Open Source
Open Source
Apache-2.0
2,022
llvm
mkinsner
LLVM
Code
216
637
; RUN: opt -function-specialization -func-specialization-avg-iters-cost=3 -func-specialization-size-threshold=10 -S < %s | FileCheck %s ; CHECK-NOT: foo.{{[0-9]+}} target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" @A = external dso_local constant i32, align 4 @B = external dso_local constant ...
6,421
https://github.com/cbordeman/ReSharper.Xao/blob/master/src/ReSharper.Xao.sln
Github Open Source
Open Source
CC-BY-3.0, MIT
2,014
ReSharper.Xao
cbordeman
null
Spoken
98
679
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 VisualStudioVersion = 12.0.30219.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReSharper.Xao.8.2", "ReSharper.Xao\ReSharper.Xao.8.2.csproj", "{E2B6A67E-A4FC-4C00-8046-FC1832F21962}" EndP...
45,169
https://github.com/odoe/describe-models/blob/master/addon/mixins/base-urls.js
Github Open Source
Open Source
MIT
2,015
describe-models
odoe
JavaScript
Code
45
148
import Ember from 'ember'; export default Ember.Mixin.create({ baseApi: function() { var adapter = this.store.adapterFor(this.constructor); return adapter.buildURL(); }, baseUrl: function() { var adapter = this.store.adapterFor(this.constructor); var url = adapter.buildURL(this.constructor.typeK...
56,612
https://github.com/hydra1983/nger/blob/master/packages/nger-platform-node/__tests__/nger-platform-node.test.js
Github Open Source
Open Source
MIT
2,019
nger
hydra1983
JavaScript
Code
13
42
'use strict'; const ngerPlatformNode = require('..'); describe('nger-platform-node', () => { it('needs tests'); });
20,059
https://github.com/prasannadeshappriya/MyBlog/blob/master/app/Http/Controllers/ContactController.php
Github Open Source
Open Source
MIT
null
MyBlog
prasannadeshappriya
PHP
Code
274
758
<?php namespace App\Http\Controllers; use App\Http\Requests\ContactRequest; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class ContactController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(...
35,148
https://github.com/brainoverflow98/bandit-wars/blob/master/src/Assets/AllObjects/Fences.prefab
Github Open Source
Open Source
CC0-1.0
2,020
bandit-wars
brainoverflow98
Unity3D Asset
Code
3,985
18,925
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_SourcePrefab: {fileID: 0} m_RootGameObject: {fileID: 1890180852691940} m_IsPrefabAsset: 1...
24,117
https://github.com/lulzzz/ru.challenge/blob/master/tests/Domain.Tests/Entities/SubscriptionTests.cs
Github Open Source
Open Source
MIT
2,018
ru.challenge
lulzzz
C#
Code
110
407
using FluentAssertions; using RU.Challenge.Fixtures.Attributes; using System; using Xunit; namespace RU.Challenge.Domain.Entities { public class SubscriptionTests { [Theory(DisplayName = "Subscription should be created with expected params")] [DefaultData] public void SubscriptionShoul...
55,704
https://github.com/eurofurence/ef-app_ios/blob/master/Packages/EurofurenceModel/Sources/EurofurenceModel/Public/Default Dependency Implementations/Core Data Store/Model Adaptation/ImageModelEntity+Adaptation.swift
Github Open Source
Open Source
MIT
2,023
ef-app_ios
eurofurence
Swift
Code
73
229
import Foundation extension ImageModelEntity: EntityAdapting { typealias AdaptedType = ImageCharacteristics static func makeIdentifyingPredicate(for model: ImageCharacteristics) -> NSPredicate { return NSPredicate(format: "identifier == %@", model.identifier) } func asAdaptedType() -> ImageC...
25,855
https://github.com/bergie/upndown/blob/master/index.js
Github Open Source
Open Source
MIT
2,015
upndown
bergie
JavaScript
Code
3
13
module.exports = require('./lib/upndown');
29,960
https://github.com/Iovedw/ByteV/blob/master/src/views/project-manager/ProjectPage.vue
Github Open Source
Open Source
MIT
null
ByteV
Iovedw
Vue
Code
1,147
5,294
<template> <div class="page-content"> <div class="breadcrumb"> <a-breadcrumb separator=">"> <a-breadcrumb-item :class="breadList.length === 1 ? 'border-line':''" :key="item.name" v-for="(item) in breadList"> <router-link :to="{ path: item.path === '' ? '...
31,965
https://github.com/twarne/lds-trivia-skill/blob/master/src/lib/resources.js
Github Open Source
Open Source
Apache-2.0
null
lds-trivia-skill
twarne
JavaScript
Code
277
660
var questions = require('../lib/questions.js'); /** * When editing your questions pay attention to your punctuation. Make sure you use question marks or periods. * Make sure the first answer is the correct one. Set at least ANSWER_COUNT answers, any extras will be shuffled in. */ module.exports = { en: { translat...
9,729
https://github.com/philjrenaud/biomechZoo/blob/master/Toolbox/Support Functions/labelledmarkers.m
Github Open Source
Open Source
Apache-2.0, BSD-2-Clause
2,021
biomechZoo
philjrenaud
MATLAB
Code
47
311
function r = labelledmarkers; r = {'LFHD';... 'RFHD';... 'LBHD';... 'RBHD';... 'C7';... 'T10';... 'CLAV';... 'STRN';... 'LBAK';... 'RBAK';... 'LSHO';... 'LUPA';... 'LELB';... 'LFRA';... 'LWRA';... 'LWRB';... 'LFIN';... 'RSHO';... 'RUPA';... 'RE...
8,417
https://github.com/PaulCapestany/lnd/blob/master/lnwire/htlc_timeoutaccept.go
Github Open Source
Open Source
MIT
2,016
lnd
PaulCapestany
Go
Code
215
592
package lnwire import ( "fmt" "io" ) // HTLCTimeoutAccept ... // Multiple Clearing Requests are possible by putting this inside an array of // clearing requests type HTLCTimeoutAccept struct { // We can use a different data type for this if necessary... ChannelID uint64 // ID of this request HTLCKey HTLCKey } ...
2,402
https://github.com/friendoye/RecyclerXRay/blob/master/library/src/test/java/com/friendoye/recyclerxray/RealRecyclerXRayApiTest.kt
Github Open Source
Open Source
MIT
2,021
RecyclerXRay
friendoye
Kotlin
Code
314
1,452
package com.friendoye.recyclerxray import androidx.recyclerview.widget.RecyclerView import com.friendoye.recyclerxray.internal.RealRecyclerXRayApi import com.friendoye.recyclerxray.stubs.CountableAdapterDataObserver import com.friendoye.recyclerxray.stubs.StubRecyclerAdapter import org.junit.Assert import org.junit.Be...
50,704
https://github.com/alidiyab/ruby-objects-belong-to-lab-re-coded-000/blob/master/lib/artist.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,017
ruby-objects-belong-to-lab-re-coded-000
alidiyab
Ruby
Code
13
53
class Artist attr_accessor :name def initialize @name=name end end adele=Artist.new adele.name="Adele" puts adele.name
43,113
https://github.com/th92rodr/rainy-day/blob/master/api/src/app.ts
Github Open Source
Open Source
MIT
2,020
rainy-day
th92rodr
TypeScript
Code
30
99
require('dotenv').config(); import express from 'express'; import { errors } from 'celebrate'; import routes from './routes'; import loggerMiddleware from './middlewares/logger'; const app = express(); app.use(express.json()); app.use(loggerMiddleware); app.use(routes); app.use(errors()); export default app;
2,776
https://github.com/truthiswill/intellij-community/blob/master/java/java-tests/testData/inspection/quickFix/SameParameterValue/afterOverridingMethod.java
Github Open Source
Open Source
Apache-2.0
2,020
intellij-community
truthiswill
Java
Code
31
85
// "f false" "true" public class Test { void foo(){ if (false) { System.out.println(false); } } void bar(){foo();} } class Test1 extends Test { @Override void foo() { System.out.println(false); } }
27,524
https://github.com/lpk-py/gimli/blob/master/doc/tutorial/code/joint/dcem.py
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,017
gimli
lpk-py
Python
Code
517
2,024
#!/usr/bin/env python # -*- coding: utf-8 -*- # this is a redundant file but it will be recycled for the examples import numpy as np import matplotlib.pyplot as plt import pygimli as pg from pygimli.mplviewer import drawModel1D class DCEM1dModelling(pg.ModellingBase): """Modelling jointing DC and EM 1Dforward op...
47,466
https://github.com/kyletanyag/LL-Smartcard/blob/master/cacreader/swig-4.0.2/Source/DOH/hash.c
Github Open Source
Open Source
BSD-3-Clause
2,022
LL-Smartcard
kyletanyag
C
Code
1,865
4,860
/* ----------------------------------------------------------------------------- * This file is part of SWIG, which is licensed as a whole under version 3 * (or any later version) of the GNU General Public License. Some additional * terms also apply to certain portions of SWIG. The full details of the SWIG * licen...
21,812
https://github.com/P-Kalin/kit26a/blob/master/malokhvii-eduard/malokhvii05/src/main/java/ua/khpi/oop/malokhvii05/util/algorithms/sort/SelectionSort.java
Github Open Source
Open Source
MIT
2,017
kit26a
P-Kalin
Java
Code
239
826
package ua.khpi.oop.malokhvii05.util.algorithms.sort; import java.util.Comparator; import ua.khpi.oop.malokhvii05.util.Array; /** * Призначений, для реалізації алгоритму сортування вхідного масиву. Ключ у * фабриці алгоритмів - "selection-sort". * <p> * Сортування вибором — простий алгоритм сортування лінійного ...
33,088
https://github.com/newrelic/newrelic-ruby-agent/blob/master/test/multiverse/suites/active_record_pg/ar_method_aliasing.rb
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference
2,023
newrelic-ruby-agent
newrelic
Ruby
Code
98
414
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true require 'rubygems' require 'active_record' require 'active_support/multibyte' require_relative '../../lib/multiverse/color' require_rel...
3,564
https://github.com/mmhat/grace/blob/master/grace-core/src/Grace/Input.hs
Github Open Source
Open Source
BSD-3-Clause
2,022
grace
mmhat
Haskell
Code
247
484
-- | This module contains the functions and types that power to URI-base imports module Grace.Input ( -- * Input Input(..) ) where import Data.List.NonEmpty (NonEmpty(..)) import Data.Text (Text) import Grace.Pretty (Pretty(..)) import System.FilePath ((</>)) import qualified Data.Text as Text import qu...
52,333
https://github.com/blitz-research/monkey2/blob/master/modules/mojo/app/native/app.cpp
Github Open Source
Open Source
Zlib
2,020
monkey2
blitz-research
C++
Code
43
247
#include "app.h" #include "../../../std/async/native/async.h" #include <SDL.h> namespace bbApp{ void postEventFilter( bbAsync::Event *event ){ SDL_UserEvent uevent; uevent.type=SDL_USEREVENT; uevent.code=0; uevent.data1=event; uevent.data2=0; if( SDL_PeepEvents( (SDL_Event*)&uevent,1,SDL_ADDEVENT,S...
9,378
https://github.com/mccbryan3/falconpy/blob/master/src/falconpy/response_policies.py
Github Open Source
Open Source
Unlicense
null
falconpy
mccbryan3
Python
Code
1,043
3,223
""" _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | |: 1 | |::.. ...
45,367
https://github.com/fjuriolli/nulus/blob/master/node_modules/quasar-framework/src/components/btn/QBtnDropdown.js
Github Open Source
Open Source
MIT
2,019
nulus
fjuriolli
JavaScript
Code
334
1,132
import BtnMixin from './btn-mixin.js' import QIcon from '../icon/QIcon.js' import QBtn from './QBtn.js' import QBtnGroup from './QBtnGroup.js' import QPopover from '../popover/QPopover.js' export default { name: 'QBtnDropdown', mixins: [BtnMixin], props: { value: Boolean, split: Boolean, contentClass...
52,060
https://github.com/paulojeronimo/kafka-tutorial/blob/master/final/lab4/user-tracking-producer/src/main/java/com/example/kafka/producer/EventGenerator.java
Github Open Source
Open Source
MIT
null
kafka-tutorial
paulojeronimo
Java
Code
61
358
package com.example.kafka.producer; import com.example.kafka.producer.enums.UserId; import com.example.kafka.producer.model.Event; import com.example.kafka.producer.model.Product; import com.example.kafka.producer.model.User; import com.github.javafaker.Faker; import com.example.kafka.producer.enums.Color; import com....
34,680
https://github.com/jogianotti/RegistroEventosIntendencia/blob/master/src/RegistroEventos/CoreBundle/Repository/DetalleRepository.php
Github Open Source
Open Source
MIT
2,018
RegistroEventosIntendencia
jogianotti
PHP
Code
47
144
<?php namespace RegistroEventos\CoreBundle\Repository; use Doctrine\ORM\EntityRepository; /** * DetalleRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class DetalleRepository extends EntityRepository { public function listarPara($evento) {...
31,125
https://github.com/DanIverson/OpenVnmrJ/blob/master/src/vnmr/ft2d.c
Github Open Source
Open Source
Apache-2.0
2,022
OpenVnmrJ
DanIverson
C
Code
8,150
28,372
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /****************************************************************/ /* ft2d.c...
13,913
https://github.com/eea/volto-slate/blob/master/src/editor/plugins/SimpleLink/extensions.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,022
volto-slate
eea
JavaScript
Code
165
435
import { SIMPLELINK } from 'volto-slate/constants'; import { jsx } from 'slate-hyperscript'; import { deserialize } from 'volto-slate/editor/deserialize'; export const withSimpleLink = (editor) => { // const { insertData, insertText, isInline } = editor; const { isInline } = editor; editor.isInline = (element)...
28,735
https://github.com/yeo4/JavaWhatsappAPI/blob/master/BotHandler.java
Github Open Source
Open Source
Apache-2.0
2,018
JavaWhatsappAPI
yeo4
Java
Code
428
1,496
package bot; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLEncoder; import java.util.ArrayList; import java.util.List; ...
17,598
https://github.com/devinleighsmith/jag-shuber-frontend/blob/master/src/app/components/FormElements/TimeSliderField.tsx
Github Open Source
Open Source
Apache-2.0
2,020
jag-shuber-frontend
devinleighsmith
TypeScript
Code
94
336
import * as React from 'react'; import { default as FormFieldWrapper, FormFieldWrapperProps } from './FormFieldWrapper'; import TimeSlider from './TimeSlider'; import { TimeType } from '../../api/Api'; export interface TimeSliderFieldProps { minTime: TimeType; maxTime: TimeType; timeIncrement: number; ...
5,083
https://github.com/tristanred/MicroEngine/blob/master/engine/include/Controls/CLabel.h
Github Open Source
Open Source
MIT
null
MicroEngine
tristanred
C
Code
22
79
#pragma once class GameEngine; #include <libtech/geometry.h> #include "CBaseControl.h" #include "core.h" class ENGINE_CLASS CLabel : public CBaseControl { public: CLabel(GameEngine* engine); ~CLabel(); };
22,582
https://github.com/monicavarhale/prism/blob/master/src/theme/colors.js
Github Open Source
Open Source
MIT
2,018
prism
monicavarhale
JavaScript
Code
142
615
const colors = { black: "#000", white: "#fff", pacific: { base: "#009cde", dark: "#0075a7", light: "#80ceef", muted: "#bfe6f7", background: "#dff3fb" }, sierra: { base: "#353c42", dark: "#272d31", light: "#999da0", muted: "#cdced0", background: "#e6e7e8" }, cascade:...
38,021
https://github.com/Misfits-BE/GDPR-tool/blob/master/app/Http/Controllers/Auth/SettingsController.php
Github Open Source
Open Source
MIT
2,018
GDPR-tool
Misfits-BE
PHP
Code
259
710
<?php namespace App\Http\Controllers\Auth; use App\Repositories\UsersRepository; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\View\View; use Symfony\Component\HttpFoundation\RedirectResponse; use App\Http\Requests\Auth\Settings\InformationValidator; use Symfony\Component\HttpFounda...
16,142
https://github.com/jivison/idea_factory/blob/master/app/assets/stylesheets/forms.sass
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,019
idea_factory
jivison
Sass
Code
68
272
.ideas-edit, .ideas-new, .users-new, .sessions-new .edit_idea, .new_idea, .new_user,.form display: flex justify-content: space-between flex-direction: column width: 50vw margin-top: 1em textarea, input resize: none font-family: inherit ...
4,160
https://github.com/manuelmazzuola/scaleway-sdk-go/blob/master/api/instance/v1/server_utils.go
Github Open Source
Open Source
Apache-2.0
2,019
scaleway-sdk-go
manuelmazzuola
Go
Code
380
1,098
package instance import ( "time" "github.com/scaleway/scaleway-sdk-go/internal/async" "github.com/scaleway/scaleway-sdk-go/internal/errors" "github.com/scaleway/scaleway-sdk-go/scw" "github.com/scaleway/scaleway-sdk-go/utils" ) // waitForServerRequest is used by waitForServer method type waitForServerRequest st...
12,275
https://github.com/thiagodp/funtester/blob/master/funtester/funtester-core/src/main/java/org/funtester/core/util/InvalidValueException.java
Github Open Source
Open Source
FTL, LicenseRef-scancode-other-permissive, LicenseRef-scancode-unknown-license-reference
2,018
funtester
thiagodp
Java
Code
72
164
package org.funtester.core.util; /** * Keeps a value name for helping the UI about putting the focus in the * right component. * * @author Thiago Delgado Pinto * */ public class InvalidValueException extends DomainException { private static final long serialVersionUID = 9064137578108103102L; private String ...
15,256
https://github.com/WebMaxBG/speedy-eps-client/blob/master/speedy-eps-java-client-lib/speedy-eps-java-client-soap15/pom.xml
Github Open Source
Open Source
Apache-2.0
2,016
speedy-eps-client
WebMaxBG
null
Spoken
275
2,925
<?xml version="1.0"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.sonatype.oss</groupId> ...
42,198
https://github.com/dbojdo/message-bus-sf-event-dispatcher/blob/master/src/Listener/Message/Content/EventOnlySerialisationDataProvider.php
Github Open Source
Open Source
MIT
null
message-bus-sf-event-dispatcher
dbojdo
PHP
Code
24
111
<?php namespace Webit\MessageBus\Infrastructure\Symfony\EventDispatcher\Listener\Message\Content; use Webit\MessageBus\Infrastructure\Symfony\EventDispatcher\MessageBusEvent; final class EventOnlySerialisationDataProvider implements SerialisationDataProvider { /** * @inheritdoc */ public function g...
35,193
https://github.com/antobonfiglio/hyper-model/blob/master/src/hyper-model/hypermodel/model/table_schema.py
Github Open Source
Open Source
Apache-2.0
2,019
hyper-model
antobonfiglio
Python
Code
107
361
from typing import List, Set, Dict, Tuple, Optional class SqlColumn(): column_name: str column_type: str nullable: bool def __init__(self, column_name: str, column_type: str, nullable: bool): self.column_name = column_name self.column_type = column_type self.nullable = nullabl...
53,809
https://github.com/tung1404/messenger-chat-bot-skeleton/blob/master/app/controllers/BotController.js
Github Open Source
Open Source
MIT
2,017
messenger-chat-bot-skeleton
tung1404
JavaScript
Code
178
437
import Bot from '../../bot/Bot'; import EventToIntent from '../services/EventToIntent'; import Config from '../config/index'; const env = process.env.NODE_ENV || 'development'; const config = Config[env]; // Webhook validation given by facebook export function validate(req, res) { if (req.query['hub.mode'] === 'sub...
37,272
https://github.com/tomasiCF/slp-sdk/blob/master/examples/check-token-balance/check-token-balance.js
Github Open Source
Open Source
MIT
2,020
slp-sdk
tomasiCF
JavaScript
Code
226
686
/* Check the SLP token balance by tokenId for the wallet created with the create-wallet example app. */ // Set NETWORK to either testnet or mainnet const NETWORK = `mainnet` // Set the TOKEN ID you are interested in const TOKEN_ID = "9f2b1b91a6ab0686d48e46345669889357b48dbfe8a5d817b857607d89693adc" const SLPSD...
27,779
https://github.com/durai-chellamuthu/node-opencv/blob/master/opencv-2.4.11/modules/ocl/test/test_kalman.cpp
Github Open Source
Open Source
MIT
2,021
node-opencv
durai-chellamuthu
C++
Code
517
1,495
/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, install, ...
42,404
https://github.com/Fatmangh/My_instagram/blob/master/app/src/main/java/com/example/arafatm/instagram/Utils/Utils.java
Github Open Source
Open Source
Apache-2.0
2,021
My_instagram
Fatmangh
Java
Code
114
337
package com.example.arafatm.instagram.Utils; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import java.io.FileNotFoundException; public class Utils { // Method that deocde uri into bitmap. This method is necessary to deocde // l...
31,487
https://github.com/chundcm/vertx-zero/blob/master/vertx-gaia/vertx-co/src/main/java/io/vertx/up/uca/failure/Readible.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-warranty-disclaimer
2,023
vertx-zero
chundcm
Java
Code
58
168
package io.vertx.up.uca.failure; import io.vertx.up.exception.WebException; import io.vertx.up.util.Ut; /** * Fill the field "readible" for input exception */ @SuppressWarnings("all") public interface Readible { /** * Get code readible * * @return */ static Readible get() { retur...
49,836
https://github.com/NCIEVS/nci-report-writer-sparql/blob/master/database/schema/create_tables.ddl
Github Open Source
Open Source
BSD-3-Clause
null
nci-report-writer-sparql
NCIEVS
SQL
Code
410
1,374
CREATE TABLE report_template ( id INT NOT NULL AUTO_INCREMENT, association VARCHAR(255), level INT, name VARCHAR(255) NOT NULL, root_concept_code VARCHAR(255), sort_column INT, status VARCHAR(20) NOT NULL, type VARCHAR(2...
38,385
https://github.com/cablelabs/dev-portal/blob/master/src/socket.io/notifications.js
Github Open Source
Open Source
MIT
2,018
dev-portal
cablelabs
JavaScript
Code
30
108
"use strict"; var user = require('../user'), SocketNotifs = {}; SocketNotifs.get = function(socket, data, callback) { user.notifications.get(socket.uid, callback); }; SocketNotifs.getCount = function(socket, data, callback) { user.notifications.getUnreadCount(socket.uid, callback); }; module.exports = SocketNot...
47,372
https://github.com/CloverHackyColor/CloverBootloader/blob/master/NetworkPkg/TcpDxe/TcpMain.h
Github Open Source
Open Source
BSD-2-Clause
2,023
CloverBootloader
CloverHackyColor
C
Code
3,890
9,570
/** @file Declaration of protocol interfaces in EFI_TCP4_PROTOCOL and EFI_TCP6_PROTOCOL. It is the common head file for all Tcp*.c in TCP driver. Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _TCP_MAIN_H_ #define _TCP_MAIN_H_ ...
25,256
https://github.com/JohnGiorgi/pubmed-lookup/blob/master/pubmed_lookup/test_pubmed_lookup.py
Github Open Source
Open Source
BSD-3-Clause
2,021
pubmed-lookup
JohnGiorgi
Python
Code
470
2,229
import copy import os import unittest from io import StringIO from pubmed_lookup import command_line, Publication, PubMedLookup article_url = 'https://www.pnas.org/content/109/12/4674' citation = ( 'Goodspeed D, Chehab EW, Min-Venditti A, Braam J, Covington MF (2012). ' 'Arabidopsis synchronizes jasmonate-me...
51,629
https://github.com/leejanee/kubevela/blob/master/pkg/controller/core.oam.dev/v1alpha2/application/revision.go
Github Open Source
Open Source
Apache-2.0
2,022
kubevela
leejanee
Go
Code
3,429
11,388
/* Copyright 2021 The KubeVela 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 applicable law or agreed to in writing, so...
48,136
https://github.com/marinehero/corefx/blob/master/src/System.Net.Security/System.Net.Security.sln
Github Open Source
Open Source
MIT
2,015
corefx
marinehero
null
Spoken
444
3,852
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.23107.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ref", "ref", "{E923EB8F-73DA-436E-B2AE-CF46C13FFB35}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46D...
4,133
https://github.com/jwhitbeck/java-rdb-parser/blob/master/src/main/java/net/whitbeck/rdbparser/RdbParser.java
Github Open Source
Open Source
Apache-2.0
2,022
java-rdb-parser
jwhitbeck
Java
Code
2,000
5,189
/** * Copyright (c) 2015-2021 John Whitbeck. All rights reserved. * * <p>The use and distribution terms for this software are covered by the * Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) * which can be found in the file al-v20.txt at the root of this distribution. * By using this software...
35,439
https://github.com/cleidigh/ThunderKdB/blob/master/xall/x60/381417-torbirdy/src/chrome/locale/ca@valencia/torbirdy.properties
Github Open Source
Open Source
BSD-2-Clause
2,021
ThunderKdB
cleidigh
null
Spoken
204
507
# torbirdy.name=TorBirdy # torbirdy.enabled.tor=TorBirdy Enabled: Tor # torbirdy.enabled.jondo=TorBirdy Enabled: JonDo # torbirdy.enabled.custom=TorBirdy Enabled: Custom Proxy # torbirdy.enabled.torification=TorBirdy Enabled: Transparent Torification # torbirdy.enabled.whonix=TorBirdy Enabled: Whonix # ...
4,351
https://github.com/importlib/klib/blob/master/master/core/third/stlport/build/Makefiles/gmake/app/top.mak
Github Open Source
Open Source
MIT
2,019
klib
importlib
Makefile
Code
145
810
# -*- makefile -*- Time-stamp: <08/06/12 15:54:12 ptr> # # Copyright (c) 1997-1999, 2002, 2003, 2005-2008 # Petr Ovtchenkov # # Portion Copyright (c) 1999-2001 # Parallel Graphics Ltd. # # Licensed under the Academic Free License version 3.0 # ifdef PRGNAME PRG := $(OUTPUT_DIR)/${PRGNAME}${EXE} PRG_DBG := $(...
24,834
https://github.com/yamamz/backend-raffle-app/blob/master/router/ticket.route.js
Github Open Source
Open Source
MIT
null
backend-raffle-app
yamamz
JavaScript
Code
563
1,846
const express = require('express') const ticketRoute = express.Router() const { authJwt } = require("../middleware"); const PdfMakePrinter = require('pdfmake/src/printer'); const Tickets = require('./../db/models/tickets') const makeid = (length) => { var result = ""; var characters = "ABCDEFGHIJKLMNPQRSTUVWXY...
29,577
https://github.com/tinymce/tinymce/blob/master/modules/snooker/src/main/ts/ephox/snooker/util/CellUtils.ts
Github Open Source
Open Source
MIT
2,023
tinymce
tinymce
TypeScript
Code
116
343
import { Fun } from '@ephox/katamari'; import { Attribute, Css, SugarElement, SugarNode } from '@ephox/sugar'; export const getAttrValue = (cell: SugarElement<Element>, name: string, fallback: number = 0): number => Attribute.getOpt(cell, name).map((value) => parseInt(value, 10)).getOr(fallback); export const getSp...
17,054
https://github.com/Stevenholloway/SHARE/blob/master/share/migrations/0021_merged_organization_names.py
Github Open Source
Open Source
Apache-2.0
2,017
SHARE
Stevenholloway
Python
Code
84
273
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-02-07 14:50 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('share', '0020_auto_20170206_2114'), ] # Add 'same_as_id IS NOT NULL' condition operation...
15,948
https://github.com/asr1/BattleTank/blob/master/BattleTank/Source/BattleTank/Private/TankAimingComponent.cpp
Github Open Source
Open Source
MIT
null
BattleTank
asr1
C++
Code
283
1,120
// Copyright Alex Rinehart #include "TankAimingComponent.h" #include "TankBarrel.h" #include "TankTurret.h" #include "Engine/World.h" #include "Projectile.h" #include "Kismet/GameplayStatics.h" // Sets default values for this component's properties UTankAimingComponent::UTankAimingComponent() { PrimaryComponentTick...
6,717
https://github.com/golang/geo/blob/master/s2/example_test.go
Github Open Source
Open Source
Apache-2.0
2,023
geo
golang
Go
Code
1,100
5,779
// Copyright 2018 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
9,802
https://github.com/moodstrikerdd/Test_Android/blob/master/okhttpdemo/src/main/java/com/tiantianbook/okhttpdemo/MainActivity.java
Github Open Source
Open Source
Apache-2.0
2,017
Test_Android
moodstrikerdd
Java
Code
142
542
package com.tiantianbook.okhttpdemo; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.TextView; import com.tiantianbook.okhttpdemo.zxing.CaptureActivity; import java.io.IOException; impo...
18,762
https://github.com/CarlosJCdev/Administraci-n-Anomalias-Tareas/blob/master/Vista/assets/js/restricciones.js
Github Open Source
Open Source
BSD-3-Clause, MIT
2,020
Administraci-n-Anomalias-Tareas
CarlosJCdev
JavaScript
Code
34
138
function Text(string){//solo letras var out = ''; //Se añaden las letras y numeros validas var filtro = 'abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ1234567890@_.@'//Caracteres validos for (var i=0; i<string.length; i++) if (filtro.indexOf(string.charAt(i)) != -1) out += string.char...
29,775
https://github.com/jasondb1/homeWeb/blob/master/server/routes/users.js
Github Open Source
Open Source
MIT
null
homeWeb
jasondb1
JavaScript
Code
384
1,061
const express = require('express'); const router = express.Router(); //const sqlite3 = require('sqlite3').verbose(); const userService = require('./userService'); // //open database // const db = new sqlite3.Database('./db/homeweb.db', (err) => { // if (err) { // console.error(err.message); // } // ...
40,316
https://github.com/thu2468/tachiyomi-unofficial-extensions/blob/master/src/en/killsixbilliondemonswithflavourtext/src/eu/kanade/tachiyomi/extension/en/killsixbilliondemonswithflavourtext/KillSixBillionDemonsWithFlavourText.kt
Github Open Source
Open Source
Apache-2.0
2,022
tachiyomi-unofficial-extensions
thu2468
Kotlin
Code
341
1,251
package eu.kanade.tachiyomi.extension.en.killsixbilliondemonswithflavourtext import android.graphics.Bitmap import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.graphics.Paint.Align import android.util.Base64 import eu.kanade.tachiyomi.lib.dataimage.DataImageInterce...
17,055
https://github.com/prabhupant/python-ds/blob/master/data_structures/graphs/root_which_gives_min_height.py
Github Open Source
Open Source
MIT
2,022
python-ds
prabhupant
Python
Code
147
447
""" Find the node in an undirected graph which gives the minimum height Reference - https://www.geeksforgeeks.org/roots-tree-gives-minimum-height/ """ from collections import defaultdict from queue import Queue class Graph: def __init__(self, vertices): self.V = vertices self.graph = defaultdict(...
1,582
https://github.com/simonbates/collected/blob/master/java-dsu/tests/com/bitstructures/DSUTest.java
Github Open Source
Open Source
MIT
2,019
collected
simonbates
Java
Code
85
333
package com.bitstructures; import java.util.Arrays; import java.util.Collections; import java.util.List; import junit.framework.TestCase; public class DSUTest extends TestCase { public void testEmptyList() { List<String> l = Collections.emptyList(); DSU.sort(l, new SortKey<String,String>() { public String ge...
4,441
https://github.com/thelynnparkk/work/blob/master/application/views/user/register.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,017
work
thelynnparkk
PHP
Code
75
446
<div class="panel-body"> <?php if($message): ?> <div class="alert alert-danger alert-dismissible" role="alert"> <?=$message?> </div> <?php endif; ?> <?=form_open('register')?> <div class="form-group"> <div class="input-group input-group-lg"> <span class="input-group-addon"><span class="glyphicon glyphic...
46,703
https://github.com/JetBrains/intellij-plugins/blob/master/flex/flex-tests/testData/move/noWhitespaceForPackage/before/Test.as
Github Open Source
Open Source
Apache-2.0
2,023
intellij-plugins
JetBrains
null
Spoken
5
9
package{ class Test {} }
43,871
https://github.com/StevenL2015/indy-sdk/blob/master/wrappers/ios/libindy-pod/libindy-demoTests/Test Utils/AgentUtils.m
Github Open Source
Open Source
Apache-2.0
2,018
indy-sdk
StevenL2015
Objective-C
Code
808
2,988
// // AgentUtils.m // libindy-demo // // Created by Anastasia Tarasova on 22.06.17. // Copyright © 2017 Kirill Neznamov. All rights reserved. // #import "AgentUtils.h" #import <libindy/libindy.h> #import "TestUtils.h" @interface AgentUtils () @property (atomic, strong) NSMutableDictionary* connectionCallbacks; ...
45,931
https://github.com/Maromarius/mixed-reality-toolbox/blob/master/thingRobot/src/main/java/com/kanawish/thing/robot/RobotActivity.kt
Github Open Source
Open Source
Apache-2.0
2,018
mixed-reality-toolbox
Maromarius
Kotlin
Code
731
2,536
package com.kanawish.thing.robot import android.app.Activity import android.graphics.Bitmap import android.graphics.BitmapFactory import android.os.Bundle import com.google.android.things.contrib.driver.motorhat.MotorHat import com.google.android.things.contrib.driver.ultrasonicsensor.DistanceListener import com.googl...
21,956
https://github.com/kyocum/disdat-step-functions/blob/master/build-dist.sh
Github Open Source
Open Source
Apache-2.0
2,021
disdat-step-functions
kyocum
Shell
Code
218
411
# * Licensed to the Apache Software Foundation (ASF) under one or more # * contributor license agreements. See the NOTICE file distributed with # * this work for additional information regarding copyright ownership. # * The ASF licenses this file to You under the Apache License, Version 2.0 # * (the "License"); you m...
55,377
https://github.com/universitatjaumei/ship/blob/master/ship/project.py
Github Open Source
Open Source
MIT
null
ship
universitatjaumei
Python
Code
297
1,066
from module import Module from validator import * from deployer import Deployer from maven import Maven from subversion import Subversion from logger import ShipLogger import traceback class ProjectBuilder: def __init__(self, home, name, config): self.home = home self.name = name self.confi...
55,761
https://github.com/timfel/netbeans/blob/master/nbi/engine/src/org/netbeans/installer/utils/StringUtils.java
Github Open Source
Open Source
Apache-2.0
2,022
netbeans
timfel
Java
Code
2,416
6,630
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
17,698
https://github.com/kibertoad/nodejs-benchmark-tournament/blob/master/cache-set-inmemory/contestants/layered-loader-lru.js
Github Open Source
Open Source
MIT
2,023
nodejs-benchmark-tournament
kibertoad
JavaScript
Code
86
269
const { MAX_ITEMS, TTL, ELEMENT_COUNT } = require("./common"); const { LoadingOperation } = require('layered-loader') function createCache() { return new LoadingOperation({ inMemoryCache: { cacheType: 'lru', maxItems: MAX_ITEMS, ttlInMsecs: TTL, }, loaders: [{ get(key) { r...
25
https://github.com/SocialGouv/faq-code-du-travail/blob/master/web/src/components.js
Github Open Source
Open Source
Apache-2.0
2,018
faq-code-du-travail
SocialGouv
JavaScript
Code
268
836
import styled from "styled-components"; import { DebounceInput } from "react-debounce-input"; export const SearchInput = styled(DebounceInput)` font-size: 1em; padding: 10px 5px; text-align: center; border-radius: 3px; margin: 0 auto; width: 100%; box-sizing: border-box; max-width: 600px; display: bl...
5,682
https://github.com/dicej/revori/blob/master/server/src/test/java/com/readytalk/revori/test/ColumnTypeTest.java
Github Open Source
Open Source
0BSD
2,021
revori
dicej
Java
Code
196
712
/* Copyright (c) 2010-2012, Revori Contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. */ package com.readytalk.revori.test; import st...
40,549
https://github.com/3mp4y5/loxigen-artifacts/blob/master/openflowj/gen-src/main/java/org/projectfloodlight/openflow/protocol/ver15/OFPortDescPropBsnExtendedCapabilitiesVer15.java
Github Open Source
Open Source
Apache-2.0
2,022
loxigen-artifacts
3mp4y5
Java
Code
1,403
4,719
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University // Copyright (c) 2011, 2012 Open Networking Foundation // Copyright (c) 2012, 2013 Big Switch Networks, Inc. // This library was generated by the LoxiGen Compiler. // See the file LICENSE.txt which should have been included in the sour...
23,903
https://github.com/RayCarrot/RayCarrot.RCP.Metro/blob/master/src/RayCarrot.RCP.Metro/Games/Structure/RomLayout/GbaRomLayout.cs
Github Open Source
Open Source
MIT
2,023
RayCarrot.RCP.Metro
RayCarrot
C#
Code
61
140
namespace RayCarrot.RCP.Metro.Games.Structure; public class GbaRomLayout : RomLayout { public GbaRomLayout(string variantId, string gameTitle, string gameCode, string makerCode) : base(variantId) { GameTitle = gameTitle; GameCode = gameCode; MakerCode = makerCode; } // These p...
48,720
https://github.com/MieuxVoter/mieuxvoter.fr/blob/master/components/SizeLgColorMain3/index.jsx
Github Open Source
Open Source
RSA-MD
2,021
mieuxvoter.fr
MieuxVoter
null
Spoken
38
149
import React from "react"; function SizeLgColorMain3(props) { const { className } = props; return ( <div className={`bouton-18 border-2px-primary ${className || ""}`}> <div className="cest-quoi-le-jugeme-10 valign-text-middle dmsans-bold-blue-16px">On en parle ici</div> <img className="icon-arrow-...
18,592
https://github.com/stuartsimpson/FoundationApplication/blob/master/client/modules/fndtn/AccessControlManager/components/AccessControlManager.jsx
Github Open Source
Open Source
MIT
null
FoundationApplication
stuartsimpson
null
Spoken
304
1,322
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import React from 'react'; import {connect} from 'react-redux'; import AppBar from '@material-ui/core/AppBar'; import Divider from '@m...
9,783
https://github.com/Leviosar/starkiller/blob/master/starkiller/lib/app/Enemy.dart
Github Open Source
Open Source
MIT
null
starkiller
Leviosar
Dart
Code
198
838
import 'dart:math'; import 'package:flame/components/component.dart'; import 'package:flame/sprite.dart'; import 'package:flutter/material.dart'; import 'package:starkiller/app/Bullet.dart'; import 'package:starkiller/app/Starkiller.dart'; import 'package:starkiller/app/Starship.dart'; import 'package:starkiller/app/t...
48,467
https://github.com/shift-crops/x86emu/blob/master/main.cpp
Github Open Source
Open Source
MIT
2,022
x86emu
shift-crops
C++
Code
429
1,920
#include <thread> #include <stdlib.h> #include <string.h> #include <getopt.h> #include <GLFW/glfw3.h> #include "common.hpp" #include "instruction/base.hpp" #include "emulator/emulator.hpp" #include "emulator/exception.hpp" #define MEMORY_SIZE (4*MB) struct Setting { size_t mem_size; const char *image_name; uint32_...
54,666
https://github.com/LukasKa/skelbimas/blob/master/src/Skelbimas/EventBundle/Entity/Event.php
Github Open Source
Open Source
MIT
null
skelbimas
LukasKa
PHP
Code
206
672
<?php namespace Skelbimas\EventBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Event * * @ORM\Table(name="skelbimo_lentele") * @ORM\Entity(repositoryClass="Skelbimas\EventBundle\Entity\EventRepository") */ class Event { /** * @var integer * * @ORM\Column(name="id", type="integer") ...
41,755
https://github.com/octaviodive/social_network_project/blob/master/photos/views.py
Github Open Source
Open Source
MIT
null
social_network_project
octaviodive
Python
Code
122
464
from django.shortcuts import render, redirect from .models import Category, Photo from django.contrib.auth.decorators import login_required @login_required(login_url='login') def gallery(request): user = request.user category = request.GET.get('category') if category == None: photos = Photo.object...
5,936
https://github.com/benjaminshi02003220/Bitcoin_price_prediction/blob/master/predict_btc_future.py
Github Open Source
Open Source
MIT
2,018
Bitcoin_price_prediction
benjaminshi02003220
Python
Code
144
1,458
# -*- coding: utf-8 -*- """ Created on Fri Mar 9 17:06:09 2018 @author: v-beshi """ import pyodbc import pandas as pd def get_agg_data(): con=pyodbc.connect('DRIVER={SQL Server};SERVER=ServerName;DATABASE=DB;UID=ID;PWD=Password') raw_data=pd.read_sql('select * from dbo.BitcoinTradeHistory',con) raw_d...
25,650
https://github.com/PabloGuedes/Loja-Virtual/blob/master/resources/views/categorias/form.blade.php
Github Open Source
Open Source
MIT
null
Loja-Virtual
PabloGuedes
PHP
Code
138
689
@extends('layouts.app') @section('content') <style> .bg-card { background: rgba(0,0,0,0.8); color: rgb(223, 223, 223); } </style> <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card bg-card"> ...
45,715
https://github.com/AntonLatyshev/bootstraplanding/blob/master/app/scripts/team.js
Github Open Source
Open Source
WTFPL
null
bootstraplanding
AntonLatyshev
JavaScript
Code
40
195
const team = () => { $('.team__min-copy').on('click', function () { var $this = $(this), name = $this.find('.team__photo-min__name span').html(), text = $this.find('.team__description__text').html(), social = $this.find('.team__description__social').html(), image = $this.find('im...
31,254
https://github.com/luocong2013/study/blob/master/code/java-http/src/main/java/com/zync/httpasyncclient/HttpAsyncClient.java
Github Open Source
Open Source
Apache-2.0
2,023
study
luocong2013
Java
Code
336
1,427
package com.zync.httpasyncclient; import org.apache.commons.collections4.MapUtils; import org.apache.commons.io.IOUtils; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.entity...
11,610
https://github.com/shisheng-1/swellrt/blob/master/wave/src/main/java/org/swellrt/beta/model/SNodeLocator.java
Github Open Source
Open Source
Apache-2.0
2,020
swellrt
shisheng-1
Java
Code
215
592
package org.swellrt.beta.model; import org.swellrt.beta.common.SException; public class SNodeLocator { public static class Location { /** * The node pointed by the source path or a SPrimitive-JSON node containing * the actual node */ public SNode node; /** * A sub path inside a SPr...
35,431
https://github.com/whitelynx/vue-vscroll/blob/master/.editorconfig
Github Open Source
Open Source
MIT
2,016
vue-vscroll
whitelynx
null
Spoken
85
229
# This project uses EditorConfig for setting code formatting options: http://EditorConfig.org root = true # Default settings for all files [*] charset = utf-8 end_of_line = lf trim_trailing_whitespace = true insert_final_newline = true indent_style = tab indent_size = tab tab_width = 4 max_line_length = 120 spaces_a...
31,840
https://github.com/jacobmarshall-etc/black-screen/blob/master/views/autocomplete.js
Github Open Source
Open Source
MIT
null
black-screen
jacobmarshall-etc
JavaScript
Code
139
524
import React from 'react/addons'; import _ from 'lodash'; export default React.createClass({ render() { var offset = _.pick(this.props.caretOffset, 'left'); var suggestionViews = this.props.suggestions.map((suggestion, index) => { var scoreStyle = window.DEBUG == 1 ? {} : {display: 'no...
27,969
https://github.com/fluentassertions/fluentassertions/blob/master/Src/FluentAssertions/Numeric/ByteAssertions.cs
Github Open Source
Open Source
Apache-2.0
2,023
fluentassertions
fluentassertions
C#
Code
66
167
using System.Diagnostics; using System.Globalization; namespace FluentAssertions.Numeric; /// <summary> /// Contains a number of methods to assert that a <see cref="byte"/> is in the expected state. /// </summary> [DebuggerNonUserCode] internal class ByteAssertions : NumericAssertions<byte> { internal ByteAssert...
53,862
https://github.com/chenliming0422/fs_capture/blob/master/src/pointGreyCapture.cpp
Github Open Source
Open Source
MIT
null
fs_capture
chenliming0422
C++
Code
1,855
5,546
//#include "StdAfx.h" #include "pointGreyCapture.h" #include <iostream> using namespace std; pointGreyCapture::pointGreyCapture() : c_cameraPower(0x610), c_cameraPowerValue(0x80000000) { m_acquisitionStarted = false; m_isCameraStarted = false; } pointGreyCapture::~pointGreyCapture() { } // turn on the camera ...
16,130
https://github.com/keelanfh/outpost/blob/master/app/models/link.rb
Github Open Source
Open Source
Apache-2.0
2,021
outpost
keelanfh
Ruby
Code
10
30
class Link < ApplicationRecord belongs_to :service validates_presence_of :label, :url end
17,935
https://github.com/mvmaniac/basic-java/blob/master/src/main/java/io/devfactory/example/designpattern/structure/proxy/ProxyMain.java
Github Open Source
Open Source
MIT
null
basic-java
mvmaniac
Java
Code
180
717
package io.devfactory.example.designpattern.structure.proxy; import io.devfactory.example.designpattern.structure.proxy.service.RealSubject; import io.devfactory.example.designpattern.structure.proxy.service.Subject; // 프록시 패턴 (Proxy Pattern) // 객체 접근을 제어하기 위해 중간 단계에 대리자를 위치시키는 패턴 // 무슨 일을 직접 처리하지 않고 대리자를 내세워 처리를 위임 ...
43,650
https://github.com/adaptris/interlok-aws/blob/master/interlok-aws-sqs/src/main/java/com/adaptris/aws/sqs/AmazonSQSConnection.java
Github Open Source
Open Source
Apache-2.0
2,021
interlok-aws
adaptris
Java
Code
451
1,274
/* Copyright 2018 Adaptris Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
42,298
https://github.com/tanvirs2/Lumen__API_Experiment/blob/master/app/Http/Controllers/MyController.php
Github Open Source
Open Source
MIT
null
Lumen__API_Experiment
tanvirs2
PHP
Code
61
225
<?php namespace App\Http\Controllers; use App\UserList; use Illuminate\Http\Request; use Laravel\Lumen\Routing\Closure; class MyController extends Controller { public function index(){ $articles['allData'] = UserList::all(); //return response()->json($articles); return view('hello', $art...
35,927
https://github.com/weslie0803/aliyun-openapi-java-sdk/blob/master/aliyun-java-sdk-mse/src/main/java/com/aliyuncs/mse/model/v20190531/GetApplicationListResponse.java
Github Open Source
Open Source
Apache-2.0
null
aliyun-openapi-java-sdk
weslie0803
Java
Code
526
1,544
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
992
https://github.com/daimessdn/edrugment/blob/master/app/Http/Controllers/TenderController.php
Github Open Source
Open Source
MIT
null
edrugment
daimessdn
PHP
Code
321
1,108
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use Carbon\Carbon; use App\Rs; use App\Rko; use App\Invoice; class TenderController extends Controller { public function index() { $invoices = Invoice::all(); ...
30,480