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/Carlisa/uc-first/blob/master/test/index.test.js
Github Open Source
Open Source
MIT
null
uc-first
Carlisa
JavaScript
Code
194
454
const ucFirst = require('../lib') describe('Uppercase first character', () => { test('should uppercase first letter', async () => { const result = ucFirst('hello world') expect(result).toBe('Hello world') }) test('should not change if first letter already uppercase', async () => { const result = ucF...
39,664
https://github.com/zonyzhao/murt/blob/master/murt/utils/objreader.py
Github Open Source
Open Source
MIT
2,021
murt
zonyzhao
Python
Code
64
186
import numpy as np def read(filename): triangles = [] vertices = [] with open(filename) as file: for line in file: components = line.strip(' \n').split(' ') if components[0] == "f": indices = list( map(lambda c: int(c.split('/')[0]) - 1, ...
48,167
https://github.com/eeevgeniev/ITSPMedic/blob/master/src/Medic.Entities/CommissionAprHealthcarePractitioner.cs
Github Open Source
Open Source
MIT
null
ITSPMedic
eeevgeniev
C#
Code
47
126
using Medic.Entities.Bases; using Medic.Entities.Contracts; using System; namespace Medic.Entities { [Serializable] public partial class CommissionAprHealthcarePractitioner: BaseEntity, IModelBuilder { public int HealthcarePractitionerId { get; set; } public HealthcarePractitioner Healthc...
19,782
https://github.com/Lessnic/WeatherStation/blob/master/include/Hibernate.h
Github Open Source
Open Source
MIT
2,020
WeatherStation
Lessnic
C
Code
2
6
void hibernate();
20,666
https://github.com/couchbaselabs/opentracing-csharp/blob/master/examples/OpenTracing.Examples/ClientServer/Server.cs
Github Open Source
Open Source
Apache-2.0
2,019
opentracing-csharp
couchbaselabs
C#
Code
112
381
using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Threading; using OpenTracing.Propagation; using OpenTracing.Tag; namespace OpenTracing.Examples.ClientServer { public class Server { private readonly BlockingCollection<Message> _queue; private rea...
21,263
https://github.com/chrsjwilliams/RTS_Blokus/blob/master/Assets/Scripts/ParticlesOnRenderTextureScripts/ParticlesPlayer.cs
Github Open Source
Open Source
Unlicense
null
RTS_Blokus
chrsjwilliams
C#
Code
41
145
using UnityEngine; public class ParticlesPlayer : MonoBehaviour { public ParticleSystem particles; public void ShowParticles(GameObject particlesPrefab) { particles = Instantiate(particlesPrefab, transform).GetComponent<ParticleSystem>(); particles.Play(); } public void StartContinuousEmission...
52,168
https://github.com/ysamus/atata/blob/master/src/Atata/Attributes/Behaviors/IFindItemAttribute.cs
Github Open Source
Open Source
Apache-2.0
null
atata
ysamus
C#
Code
14
47
namespace Atata { public interface IFindItemAttribute { IItemElementFindStrategy CreateStrategy(UIComponent component, UIComponentMetadata metadata); } }
19,234
https://github.com/frc604/FRC-2012/blob/master/src/com/_604robotics/robot2012/speedcontrol/GuestimatedSpeedProvider.java
Github Open Source
Open Source
BSD-3-Clause
null
FRC-2012
frc604
Java
Code
204
649
package com._604robotics.robot2012.speedcontrol; import com._604robotics.utils.DualVictor; import com.sun.squawk.util.MathUtils; import edu.wpi.first.wpilibj.Timer; /** * * @author Kevin Parker <kevin.m.parker@gmail.com> * @author Michael Smith <mdsmtp@gmail.com> */ public class GuestimatedSpeedProvider implement...
516
https://github.com/umpirsky/platform/blob/master/src/Oro/Bundle/BatchBundle/Job/BatchStatus.php
Github Open Source
Open Source
MIT
2,015
platform
umpirsky
PHP
Code
614
1,343
<?php namespace Oro\Bundle\BatchBundle\Job; /** * Value object representing the status of a an Execution. * * Inspired by Spring Batch org.springframework.batch.core.BatchStatus * */ class BatchStatus { const __DEFAULT = self::UNKNOWN; protected $value; /** * Constructor * @param integer ...
3,096
https://github.com/shivaprasad-bhat/Computer_Network/blob/master/Socket/TCP/Reverse/Client.c
Github Open Source
Open Source
MIT
2,021
Computer_Network
shivaprasad-bhat
C
Code
84
305
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <unistd.h> int main(int argc, char *argv[]) { int sock, server, port; char cdata[100], res[100]; struct sockaddr_in saddr; // Create Socket sock = socket(AF_INET, SOCK_STREAM, 0); ...
6,606
https://github.com/g2vinay/azure-sdk-for-java/blob/master/sdk/communication/azure-communication-callingserver/src/main/java/com/azure/communication/callingserver/implementation/converters/PlayAudioResultConverter.java
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause, CC0-1.0, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-or-later
2,021
azure-sdk-for-java
g2vinay
Java
Code
69
244
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.communication.callingserver.implementation.converters; import com.azure.communication.callingserver.implementation.models.PlayAudioResultInternal; import com.azure.communication.callingserver.models.PlayA...
45,233
https://github.com/core23/NucleosUserBundle/blob/master/src/Action/LoginAction.php
Github Open Source
Open Source
MIT
null
NucleosUserBundle
core23
PHP
Code
261
908
<?php declare(strict_types=1); /* * This file is part of the NucleosUserBundle package. * * (c) Christian Gripp <mail@core23.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Nucleos\UserBundle\Action; use Nucleos\U...
47,529
https://github.com/4Quant/SceneryNeuralNetDemo/blob/master/src/main/scala/scenery.simple/SimpleScene.scala
Github Open Source
Open Source
Unlicense
null
SceneryNeuralNetDemo
4Quant
Scala
Code
127
503
package scenery.simple import cleargl.{GLMatrix, GLVector} import com.jogamp.opengl.GLAutoDrawable import scenery.rendermodules.opengl.DeferredLightingRenderer import scenery.simple.providers.{ActionProvider, SceneProvider} import scenery.{Camera, DetachedHeadCamera, SceneryDefaultApplication, SceneryElement} /** *...
21,209
https://github.com/1ozturkbe/OCTHaGOn_benchmarks/blob/master/baron/nlp1.jl
Github Open Source
Open Source
MIT
null
OCTHaGOn_benchmarks
1ozturkbe
Julia
Code
67
237
# solution is x1=6, x2=2/3; objective = -6.666667 function nlp1(gm::Bool = false) m = JuMP.Model() @variable(m, 0 <= x[1:2]) for i = 1:2 JuMP.set_upper_bound(x[i], [6, 4][i]) end @objective(m, Min, -x[1] - x[2]) if !gm @NLconstraint(m, e1, x[1]*x[2] <= 4) set_optimizer(m,...
16,259
https://github.com/samdfonseca/reasonml-idea-plugin/blob/master/src/com/reason/ide/insight/provider/FreeExpressionCompletionProvider.java
Github Open Source
Open Source
MIT
null
reasonml-idea-plugin
samdfonseca
Java
Code
474
1,900
package com.reason.ide.insight.provider; import com.intellij.codeInsight.completion.CompletionResultSet; import com.intellij.codeInsight.completion.InsertionContext; import com.intellij.codeInsight.lookup.LookupElement; import com.intellij.codeInsight.lookup.LookupElementBuilder; import com.intellij.openapi.editor.Edi...
30,931
https://github.com/wicketstuff/core/blob/master/phonebook/src/main/java/wicket/contrib/phonebook/ContactDao.java
Github Open Source
Open Source
Apache-2.0
2,023
core
wicketstuff
Java
Code
317
607
/* * $Id: ContactDao.java 475 2005-12-08 23:44:08 -0800 (Thu, 08 Dec 2005) ivaynberg $ * $Revision: 475 $ * $Date: 2005-12-08 23:44:08 -0800 (Thu, 08 Dec 2005) $ * * ============================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); you...
7,138
https://github.com/jack-dunham/PEPOKit/blob/master/docs/make.jl
Github Open Source
Open Source
MIT
null
PEPOKit
jack-dunham
Julia
Code
10
55
using Documenter using PEPOKit makedocs(sitename="PEPOKit.jl") deploydocs( repo = "github.com/jack-dunham/PEPOKit.git", )
32,035
https://github.com/devjuliet/assertj-core/blob/master/src/test/java/org/assertj/core/api/localdatetime/LocalDateTimeAssertBaseTest.java
Github Open Source
Open Source
Apache-2.0
2,021
assertj-core
devjuliet
Java
Code
165
323
/* * 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 under t...
37,654
https://github.com/jkrmc12/IFC-gen/blob/master/lang/csharp/src/IFC/IfcVirtualGridIntersection.g.cs
Github Open Source
Open Source
MIT
2,021
IFC-gen
jkrmc12
C#
Code
99
410
using System; using System.ComponentModel; using System.Collections.Generic; using Newtonsoft.Json; using System.Linq; using STEP; namespace IFC { /// <summary> /// <see href="http://www.buildingsmart-tech.org/ifc/IFC4/final/html/link/ifcvirtualgridintersection.htm"/> /// </summary> public partial class IfcVir...
48,018
https://github.com/memcachier/examples-node/blob/master/views/error.jade
Github Open Source
Open Source
BSD-3-Clause
2,018
examples-node
memcachier
null
Spoken
16
48
extends layout block content h1 MemCachier Node.js Example hr h3 Error Occurred: strong= error.status pre #{error.stack}
6,974
https://github.com/protegeproject/swrlapi-drools-engine/blob/master/src/main/java/org/swrlapi/drools/owl/axioms/SOPA.java
Github Open Source
Open Source
BSD-2-Clause
2,023
swrlapi-drools-engine
protegeproject
Java
Code
108
423
package org.swrlapi.drools.owl.axioms; import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.dataflow.qual.SideEffectFree; import org.semanticweb.owlapi.model.OWLSubObjectPropertyOfAxiom; import org.swrlapi.drools.extractors.DroolsOWLAxiomExtractor; import org.swrlapi.drools.owl.core.D...
32,026
https://github.com/spmarco/IdentityServer4.Admin/blob/master/src/Skoruba.IdentityServer4.Admin.EntityFramework/Entities/Identity/UserIdentityRoleClaim.cs
Github Open Source
Open Source
MIT
null
IdentityServer4.Admin
spmarco
C#
Code
15
62
using System; using Microsoft.AspNetCore.Identity; namespace Skoruba.IdentityServer4.Admin.EntityFramework.Entities.Identity { public class UserIdentityRoleClaim : IdentityRoleClaim<Guid> { } }
31,520
https://github.com/nzenger/HACC-Hui/blob/master/app/imports/ui/components/developer/InterestedDevelopersExampleWidget.jsx
Github Open Source
Open Source
MIT
null
HACC-Hui
nzenger
null
Spoken
99
471
import React from 'react'; import PropTypes from 'prop-types'; import { Grid, Icon, Card } from 'semantic-ui-react'; class InterestedDevelopersExampleWidget extends React.Component { render() { return ( <Grid.Row columns={1}> <Grid.Column> <Card fluid header='Interested User 1'> ...
7,098
https://github.com/navikt/fp-formidling/blob/master/brevproduksjon/src/main/java/no/nav/foreldrepenger/fpformidling/integrasjon/pdl/PersondataTjeneste.java
Github Open Source
Open Source
MIT
2,023
fp-formidling
navikt
Java
Code
349
2,077
package no.nav.foreldrepenger.fpformidling.integrasjon.pdl; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.List; import java.util.Objects; import java.util.Optional; import java.util.concurrent.TimeUnit; import jakarta.enterprise.context.ApplicationScoped; import jakarta.injec...
18,294
https://github.com/intel/ixpdimm_sw/blob/master/src/wbem/support/NVDIMMSensorFactory.h
Github Open Source
Open Source
BSD-3-Clause
2,022
ixpdimm_sw
intel
C++
Code
991
2,428
/* * Copyright (c) 2015 2016, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the...
51,595
https://github.com/edulima2412/erudio-microservices-dotnet6/blob/master/GeekShopping/GeekShopping.Web/Services/IServices/ICartService.cs
Github Open Source
Open Source
Apache-2.0
null
erudio-microservices-dotnet6
edulima2412
C#
Code
51
188
using GeekShopping.Web.Models; namespace GeekShopping.Web.Services.IServices { public interface ICartService { Task<CartViewModel> FindByCartUserId(Guid userId, string token); Task<CartViewModel> AddItemToCart(CartViewModel cart, string token); Task<CartViewModel> UpdateCart(CartViewMo...
23,857
https://github.com/anttiahonen/ekanban/blob/master/frontend/src/components/GameContainer/GameContainer.scss
Github Open Source
Open Source
MIT
2,017
ekanban
anttiahonen
SCSS
Code
119
428
@import "../../variables"; span.tooltip { transition: all ease-in-out 0.3s; opacity: 0; position: absolute; display: block; padding: 10px; border-radius: 10px; background-color: $tooltip-background-color; font-size: 0.8em; } .game-container { display: flex; align-items: center; justify-content: ...
44,591
https://github.com/jlangch/venice/blob/master/src/test/java/com/github/jlangch/venice/impl/specialforms/SpecialFormsTest_deftypeQ.java
Github Open Source
Open Source
DOC, Apache-2.0
2,023
venice
jlangch
Java
Code
406
1,086
/* __ __ _ * \ \ / /__ _ __ (_) ___ ___ * \ \/ / _ \ '_ \| |/ __/ _ \ * \ / __/ | | | | (_| __/ * \/ \___|_| |_|_|\___\___| * * * Copyright 2017-2022 Venice * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with ...
37,341
https://github.com/tetai/shoppingmall/blob/master/server/shopping-es/src/main/java/org/zkz/litemall/es/web/ItemController.java
Github Open Source
Open Source
MIT
2,021
shoppingmall
tetai
Java
Code
142
650
package org.zkz.litemall.es.web; import org.springframework.data.domain.Page; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import org.zkz.litemall.core.util.ResponseUtil; import org.zkz.litemall.core.validator.Order; import org.zkz.litemall.core.validato...
43,718
https://github.com/zealoussnow/chromium/blob/master/chrome/test/data/extensions/api_test/login_screen_apis/in_session_extension/background.js
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,022
chromium
zealoussnow
JavaScript
Code
150
471
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. const noPermissionToLockErrorMessage = 'The extension does not have permission to lock this session'; const noPermissionToUnlockErrorMessage = 'Th...
29,754
https://github.com/ElsevierSoftwareX/SOFTX-D-20-00016/blob/master/GameplayFootball/src/onthepitch/player/controller/strategies/special/celebration.cpp
Github Open Source
Open Source
MIT
2,020
SOFTX-D-20-00016
ElsevierSoftwareX
C++
Code
75
187
// written by bastiaan konings schuiling 2008 - 2015 // this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important. // i do not offer support, so don't ask. to be used for inspiration :) #include "celebration.hpp" CelebrationStrategy::CelebrationSt...
2,380
https://github.com/GrupaZero/cms/blob/master/resources/views/home.blade.php
Github Open Source
Open Source
MIT
2,018
cms
GrupaZero
PHP
Code
129
580
@extends('gzero-core::layouts.withRegions') @section('bodyClass', 'home') @section('header') <section class="jumbotron text-center"> <div class="container"> <h1 class="jumbotron-heading">Page example</h1> <p class="lead text-muted">Something short and leading about the collection b...
37,960
https://github.com/johnkellyoxford/corefx/blob/master/src/System.Text.Json/src/System/Text/Json/Serialization/JsonExtensionDataAttribute.cs
Github Open Source
Open Source
MIT
2,021
corefx
johnkellyoxford
C#
Code
219
399
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace System.Text.Json.Serialization { /// <summary> /// When placed on a property of type <see cref="S...
19,709
https://github.com/mnishiguchi/apartment_api/blob/master/app/models/floorplan_amenity.rb
Github Open Source
Open Source
MIT
2,017
apartment_api
mnishiguchi
Ruby
Code
43
107
# == Schema Information # # Table name: floorplan_amenities # # id :integer not null, primary key # floorplan_id :integer # amenity_id :integer # created_at :datetime not null # updated_at :datetime not null # class FloorplanAmenity < ApplicationRecord belongs_to :floorp...
51,014
https://github.com/melito/homebrew/blob/master/Library/Formula/ruby-enterprise-edition.rb
Github Open Source
Open Source
BSD-3-Clause
2,009
homebrew
melito
Ruby
Code
27
154
require 'formula' class RubyEnterpriseEdition <Formula url 'http://rubyforge.org/frs/download.php/64475/ruby-enterprise-1.8.7-20090928.tar.gz' md5 'ae00018ce89d95419dfde370fcd485ac' homepage 'http://rubyenterpriseedition.com/' skip_clean 'bin/ruby' def install ENV.gcc_4_2 # fails with LLVM system "...
13,620
https://github.com/AVEAutomation/vendor-app/blob/master/server/config/mongoose.js
Github Open Source
Open Source
MIT
2,016
vendor-app
AVEAutomation
JavaScript
Code
159
378
/** * Connect to the database and add connection handlers * @module {MongooseConnection} config:mongoose * @requires {@link config} */ 'use strict'; var mongoose = require('mongoose'); // Will add the Currency type to the Mongoose Schema types require('mongoose-currency').loadType(mongoose); var config = require(...
43,355
https://github.com/Ross-mc/burger-app/blob/master/db/seeds.sql
Github Open Source
Open Source
ISC
null
burger-app
Ross-mc
SQL
Code
14
43
INSERT INTO burgers (burger_name) VALUES ("Pulled Pork"), ("Bacon Double Cheeseburger"), ("Vegan Burger"), ("Mexican Jalapeño");
6,089
https://github.com/jnippula/satt/blob/master/src/parser/ipt-model/sat-ipt-collection-make.cpp
Github Open Source
Open Source
Apache-2.0
2,019
satt
jnippula
C++
Code
204
537
/* // Copyright (c) 2015 Intel Corporation // // 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...
12,839
https://github.com/DanySK/Protelis-Parser/blob/master/protelis.parser/src/org/protelis/parser/scoping/ProtelisScopeProvider.xtend
Github Open Source
Open Source
CC-BY-3.0
2,019
Protelis-Parser
DanySK
null
Spoken
442
1,911
/* * generated by Xtext 2.16.0 */ package org.protelis.parser.scoping import com.google.inject.Inject import java.util.ArrayList import java.util.Collection import java.util.List import org.eclipse.emf.ecore.EObject import org.eclipse.emf.ecore.EReference import org.eclipse.xtext.common.types.JvmFeature import org.e...
36,118
https://github.com/logTom/platform/blob/master/src/Administration/Resources/app/administration/test/core/shopware.spec.js
Github Open Source
Open Source
MIT
2,021
platform
logTom
JavaScript
Code
363
1,700
const { Module, Component, Template, Entity, Mixin, Filter, Directive, Locale, Shortcut, Utils, ApiService, EntityDefinition, WorkerNotification, DataDeprecated, Data, Classes, Helper } = Shopware; describe('core/common.js', () => { it('should con...
29,000
https://github.com/Juan-Ceballos/Pursuit-Core-iOS-Concurrency-Lab/blob/master/Lab25Concurrency-Countries/Lab25Concurrency-Countries/CountriesViewController.swift
Github Open Source
Open Source
MIT
null
Pursuit-Core-iOS-Concurrency-Lab
Juan-Ceballos
Swift
Code
260
851
// // ViewController.swift // Lab25Concurrency-Countries // // Created by Juan Ceballos on 12/9/19. // Copyright © 2019 Juan Ceballos. All rights reserved. // import UIKit class CountriesViewController: UIViewController { @IBOutlet weak var countriesTableView: UITableView! @IBOutlet weak var countrySearc...
28,504
https://github.com/yoursunny/NDNts/blob/master/packages/ndncert/src/packet/error-msg.ts
Github Open Source
Open Source
ISC
2,023
NDNts
yoursunny
TypeScript
Code
190
460
import { Data, type Interest, type Signer } from "@ndn/packet"; import { Decoder, Encoder, EvDecoder, NNI } from "@ndn/tlv"; import { toUtf8 } from "@ndn/util"; import { ErrorCode, TT } from "./an"; export interface ErrorMsg { errorCode: number; errorInfo: string; } const EVD = new EvDecoder<ErrorMsg>("ErrorMsg"...
18,958
https://github.com/sborisov-dev/rtb-test/blob/master/ng2/app/email-editor/email-editor.component.ts
Github Open Source
Open Source
MIT
null
rtb-test
sborisov-dev
TypeScript
Code
232
803
/*! * Created by Sergey Borisov on 30.08.2016. */ import {Component, Input, EventEmitter, Output} from "@angular/core"; import {EmailService} from "../services/EmailService"; import {AutoFocusDirective} from "../autofocus.directive"; export enum KeyCodes { Backspace = 8, Enter = 13, Comma = 188 } @Comp...
30,444
https://github.com/Fredman/Skrolls-of-Thermos/blob/master/.import/shield_reflect_MisterTood_CC0_freesound.wav-bc549fbb9d6a6ed76ecb1a3437072ed3.md5
Github Open Source
Open Source
MIT
2,018
Skrolls-of-Thermos
Fredman
null
Spoken
2
54
source_md5="b9a9102c3984a6692f1ec572d6812493" dest_md5="3d7a3c7091408653406aabcc20af0799"
11,911
https://github.com/Kentico/xperience-training-13/blob/master/CMS/CMSModules/ImportExport/Controls/ExportGridView.ascx.cs
Github Open Source
Open Source
MIT
2,023
xperience-training-13
Kentico
C#
Code
1,007
3,216
using System; using System.Data; using System.Linq; using System.Web.UI.WebControls; using CMS.Base; using CMS.CMSImportExport; using CMS.DataEngine; using CMS.DocumentEngine.Web.UI; using CMS.Helpers; using CMS.PortalEngine; using CMS.UIControls; public partial class CMSModules_ImportExport_Controls_ExportGridView...
39,926
https://github.com/Murphyz9/analyticalmetlx/blob/master/src/main/webapp/static/js/admin.js
Github Open Source
Open Source
Apache-2.0, EPL-1.0, MPL-2.0, LGPL-2.1-or-later, LicenseRef-scancode-free-unknown, LicenseRef-scancode-unknown-license-reference
2,020
analyticalmetlx
Murphyz9
JavaScript
Code
405
1,859
var Admin = (function(){ var conversations = {}; var itemSelector = ".tile"; var layoutMode = "packery"; var dateFormat = "DD-MMM-YYYY, h:mm a"; return { loadConversations:function(onSuccess){ $.ajax("/search", { data:{ query:"", ...
35,769
https://github.com/jeroenherczeg/nova-fields/blob/master/resources/js/components/file/FormField.vue
Github Open Source
Open Source
MIT
2,020
nova-fields
jeroenherczeg
Vue
Code
655
2,520
<template> <r64-default-field :hide-field="hideField" :field="field" :hide-label="hideLabelInForms" :field-classes="fieldClasses" :wrapper-classes="wrapperClasses" :label-classes="labelClasses" > <template slot="field"> <div v-if="hasValue" class="mb-6" > ...
42,504
https://github.com/ludoboilon/flud-vue/blob/master/js/vue.js
Github Open Source
Open Source
MIT
null
flud-vue
ludoboilon
JavaScript
Code
161
449
const vm = Vue.createApp({ data() { return { total: 0, products: [ { id: 1, name: "Camel 190g", prixLux: 22.6, prixFr: 75, quantity:0, subtotal:0 }, { id: 2, name: "Camel 10x30g", prixLux: 41.5, prixFr: 105, quantity:0, subtotal:0 }, { id: 3, name: "Fleur du Pays 10x50g", prixL...
34,931
https://github.com/mearafGitHub/Gebeyamood/blob/master/app/src/main/java/com/example/gebeya_mood/users/UserTransformer.java
Github Open Source
Open Source
MIT
null
Gebeyamood
mearafGitHub
Java
Code
58
209
package com.example.gebeya_mood.users; import java.util.ArrayList; import java.util.List; public class UserTransformer { public static User DtoToUser(UserResponse userDto){ User user = new User(); user.userId = userDto.getId(); user.teamname = userDto.getType(); user.username = us...
1,974
https://github.com/truthencode/ddo-calc/blob/master/subprojects/common/ddo-core/src/main/scala/io/truthencode/ddo/model/package.scala
Github Open Source
Open Source
Apache-2.0
2,020
ddo-calc
truthencode
Scala
Code
181
334
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2015-2021 Andre White. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * ...
23,117
https://github.com/parijke/umbrella-adminbundle/blob/master/assets/scss/utilities/_typography.scss
Github Open Source
Open Source
MIT
2,022
umbrella-adminbundle
parijke
SCSS
Code
10
35
.fs-0 { font-size: 5rem; } .lh-0 { line-height: 5rem; }
26,687
https://github.com/avennn/algorithm-playground/blob/master/exercises/leetcode/medium/反转链表2/index.js
Github Open Source
Open Source
MIT
2,019
algorithm-playground
avennn
JavaScript
Code
124
314
/** * 反转从位置 m 到 n 的链表。请使用一趟扫描完成反转。 * 说明: * 1 ≤ m ≤ n ≤ 链表长度。 * 示例: * 输入: 1->2->3->4->5->NULL, m = 2, n = 4 * 输出: 1->4->3->2->5->NULL */ var reverseBetween = function(head, m, n) { if (head === null) { return null; } let cur = head; let prev = null; while (m > 1) { prev = cur; cur = cur.next...
50,395
https://github.com/Paretkf/learn-cloud-run-nestjs/blob/master/src/cat/cat.module.ts
Github Open Source
Open Source
MIT
2,020
learn-cloud-run-nestjs
Paretkf
TypeScript
Code
81
208
import { Module } from '@nestjs/common' import { MongooseModule } from '@nestjs/mongoose' import { CatService } from './cat.service' import { CatSchema } from './cat.schema' import { CatController } from './cat.controller' import { CatLogic } from './cat.logic' import { NumberCatSchema } from './number-cat.schema' impo...
36,585
https://github.com/duarteframos/blender/blob/master/source/blender/blenkernel/intern/speaker.c
Github Open Source
Open Source
Naumen, Condor-1.1, MS-PL
2,020
blender
duarteframos
C
Code
250
727
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
40,307
https://github.com/CaffeineViking/tddi02/blob/master/src/entities/Entity.hpp
Github Open Source
Open Source
MIT
2,019
tddi02
CaffeineViking
C++
Code
522
1,792
#ifndef ENTITIES_HPP #define ENTITIES_HPP #include <SFML/Graphics.hpp> #include "../utilities/Player.hpp" #include "../utilities/Weapon.hpp" #include "../utilities/to_string.hpp" #include "../environment/Terrain.hpp" //#include "../environment/Environment.hpp" #include "../utilities/InputHandler.hpp" #include "../util...
39,133
https://github.com/saminfante/hsweb-framework/blob/master/hsweb-system/hsweb-system-dynamic-form/hsweb-system-dynamic-form-local/src/main/java/org/hswebframework/web/service/form/simple/validator/DynamicBeanValidator.java
Github Open Source
Open Source
Apache-2.0
2,019
hsweb-framework
saminfante
Java
Code
60
278
package org.hswebframework.web.service.form.simple.validator; import org.hswebframework.ezorm.core.Validator; import org.hswebframework.web.bean.FastBeanCopier; import org.hswebframework.web.commons.bean.ValidateBean; import org.hswebframework.web.validator.group.CreateGroup; import org.hswebframework.web.validator.gr...
50,296
https://github.com/ArgonWar2/argonwar2/blob/master/function/getEmpire.php
Github Open Source
Open Source
MIT
null
argonwar2
ArgonWar2
PHP
Code
28
103
<?php function getEmpire ($empire) { switch ($empire): case 1: return 'Shinsoo'; break; case 2: return 'Chunjo'; break; case 3: return 'Jinno'; break; default: return 'Sconosciuto'; endswitch; } ?>
5,162
https://github.com/goblinengine/godot/blob/master/modules/navigation/nav_region.cpp
Github Open Source
Open Source
MIT, Apache-2.0, CC-BY-4.0, Unlicense
2,022
godot
goblinengine
C++
Code
480
1,255
/*************************************************************************/ /* nav_region.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
39,504
https://github.com/Asteinvik/barprog/blob/master/src/components/CrimeRecord.jsx
Github Open Source
Open Source
MIT
null
barprog
Asteinvik
null
Spoken
81
330
import * as React from 'react'; class CrimeRecord extends React.Component { constructor(){ super(); this.state = { players:[] }; } componentDidMount(){ fetch('http://nflarrest.com/api/v1/player/topCrimes/Kenny%20Britt') .then(results => { ...
10,820
https://github.com/CalebLogin/JavaDemo/blob/master/algorithm/src/com/caleb/alibaba/Main4.java
Github Open Source
Open Source
Apache-2.0
null
JavaDemo
CalebLogin
Java
Code
228
522
package com.caleb.alibaba; import java.util.Scanner; /** * @author:Caleb * @Date :2021-09-08 09:14:07 */ public class Main4 { public static void main4() { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); while (T-- > 0) { long n = sc.nextLong(); long m = sc.nextLong(); long total = (1 + ...
7,458
https://github.com/attifmazhar/solat-kuy-android-mvvm-with-coroutine/blob/master/app/src/main/java/com/programmergabut/solatkuy/data/QuranRepository.kt
Github Open Source
Open Source
MIT
2,021
solat-kuy-android-mvvm-with-coroutine
attifmazhar
Kotlin
Code
65
450
package com.programmergabut.solatkuy.data import androidx.lifecycle.LiveData import com.programmergabut.solatkuy.data.local.localentity.MsFavAyah import com.programmergabut.solatkuy.data.local.localentity.MsFavSurah import com.programmergabut.solatkuy.data.remote.remoteentity.quranallsurahJson.AllSurahResponse import ...
44,886
https://github.com/jorgenota/jn-utils/blob/master/jn-spring-boot-aws/jn-aws-autoconfigure/src/test/java/com/jorgenota/utils/springboot/aws/autoconfigure/AwsConfigurationTest.java
Github Open Source
Open Source
Apache-2.0
2,019
jn-utils
jorgenota
Java
Code
267
1,295
package com.jorgenota.utils.springboot.aws.autoconfigure; import com.amazonaws.auth.AWSCredentialsProvider; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; import com.jorgenota.utils.springboot.aws.support.AwsEnvironment; import org.junit.jupiter.ap...
34,481
https://github.com/foroozandehgroup/NMR-EsPy/blob/master/nmrespy/_install_to_topspin.py
Github Open Source
Open Source
MIT
2,021
NMR-EsPy
foroozandehgroup
Python
Code
636
1,676
import glob import pathlib import platform import subprocess import sys def get_opsys(): """Determine the operating system. This will determine the directory pattern that will be used to determine whether any TopSpin directories exist""" system = platform.system() if system in ["Linux", "Darwin"]...
46,994
https://github.com/tinymce/tinymce/blob/master/modules/tinymce/src/themes/silver/test/ts/browser/editor/contextmenu/ContextMenuSettingsTest.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla
2,023
tinymce
tinymce
TypeScript
Code
215
574
import { describe, it } from '@ephox/bedrock-client'; import { assert } from 'chai'; import Editor from 'tinymce/core/api/Editor'; import EditorManager from 'tinymce/core/api/EditorManager'; import { RawEditorOptions } from 'tinymce/core/api/OptionTypes'; import * as Options from 'tinymce/themes/silver/ui/menus/contex...
42,544
https://github.com/wuyudi/Rubi/blob/master/IntegrationRuleNotebooks/1 Algebraic functions/1.1 Binomial products/1.1.4 Improper/1.1.4.1 (a x^j+b x^n)^p.nb
Github Open Source
Open Source
MIT
2,022
Rubi
wuyudi
Mathematica
Code
17,730
146,438
(* Content-type: application/mathematica *) (*** Wolfram Notebook File ***) (* http://www.wolfram.com/nb *) (* CreatedBy='Mathematica 7.0' *) (*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 145, 7] NotebookDataLength[ 309283,...
3,738
https://github.com/DyvakYA/LogisticCompany/blob/master/main-service/src/main/java/com/dyvak/main/model/entity/enums/DriverCategory.java
Github Open Source
Open Source
MIT
2,022
LogisticCompany
DyvakYA
Java
Code
54
242
package com.dyvak.main.model.entity.enums; public enum DriverCategory { A1("A1", 1), A("A", 2), B1("B1",3), B("B",4), C1("C1",5), C("C",6), D1("D1",7), D("D",8), BE("BE",9), C1E("C`E",10), CE("CE",11), D1E("D1E",12), DE("DE",13); private String cate...
28,770
https://github.com/catou93/pelican_test/blob/master/R2017b/extern/examples/mex/mexfeval.c
Github Open Source
Open Source
BSD-2-Clause
null
pelican_test
catou93
C
Code
90
426
#include "mex.h" /* * mexfeval.c : Example MEX-file code emulating the functionality of the * MATLAB command FEVAL * * * Copyright 1984-2011 The MathWorks, Inc. */ void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) { if(nrhs==0) mexErrMsgIdAndT...
28,195
https://github.com/leroygumede/dvtweather/blob/master/DVTWeather/DVTWeather/DVTWeather/Services/Weather/Weather.cs
Github Open Source
Open Source
Apache-2.0
null
dvtweather
leroygumede
C#
Code
263
758
using System; using System.Collections.Generic; using System.Threading.Tasks; using DVTWeather.Helpers.Connectivity; using DVTWeather.Models; using DVTWeather.Services.Service; using System.Diagnostics; using DVTWeather.Helpers; using DVTWeather.Helpers.Geolocation; namespace DVTWeather.Services.Weather { public ...
40,499
https://github.com/catkins/realtime-rethinkdb/blob/master/src/index.js
Github Open Source
Open Source
MIT
2,015
realtime-rethinkdb
catkins
JavaScript
Code
37
85
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import io from 'socket.io-client'; // without args this connects to the current host and port const socket = io.connect(); ReactDOM.render( <App socket={socket} />, document.getElementById('root') );
43,278
https://github.com/stardustman/krabs/blob/master/src/bios/stage_1st/src/lib.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,020
krabs
stardustman
Rust
Code
95
305
#![feature(llvm_asm)] #![no_std] use core::panic::PanicInfo; use core::hint::unreachable_unchecked; #[panic_handler] fn panic(_info: &PanicInfo) -> ! { loop {} } #[macro_export] macro_rules! entry { ($path:path) => { #[export_name = "main"] pub fn __main() -> () { // type check t...
34,177
https://github.com/xwc1125/web3j/blob/master/console/src/main/resources/Template.java
Github Open Source
Open Source
Apache-2.0
2,020
web3j
xwc1125
Java
Code
13
35
package <package_name>; public class <project_name> { public static void main(String[]args) { } }
24,056
https://github.com/craigspaeth/positron/blob/master/src/client/apps/edit/components/layout/test/index.coffee
Github Open Source
Open Source
MIT
2,021
positron
craigspaeth
CoffeeScript
Code
529
1,851
_ = require 'underscore' benv = require 'benv' sinon = require 'sinon' Article = require '../../../../../models/article.coffee' Channel = require '../../../../../models/channel' Sections = require '../../../../../collections/sections' Backbone = require 'backbone' fixtures = require '../../../../../../test/helpers/fixt...
33,137
https://github.com/vtsuperdarn/SuperDARN_MSI_ROS/blob/master/qnx/root/operational_radar_code/ros/gc214_tcp_driver/build.c
Github Open Source
Open Source
MIT
2,018
SuperDARN_MSI_ROS
vtsuperdarn
C
Code
112
649
#include "gc4016.h" void buildGC4016Global(struct GC4016Global *ptr) { //ptr->nchanout=0x23; /* one filter */ ptr->nchanout=0x27; /* two filters */ ptr->nmult=0x07; /* Use this setting with resampler, NMULT=8 */ ptr->filtslct=0x50; /*Use this setting with resampler, filter0 for chans A,B, filte...
34,128
https://github.com/reels-research/iOS-Private-Frameworks/blob/master/RemoteManagement.framework/RMUniquedManagedObjectDelta.h
Github Open Source
Open Source
MIT
2,022
iOS-Private-Frameworks
reels-research
C
Code
61
237
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/RemoteManagement.framework/RemoteManagement */ @interface RMUniquedManagedObjectDelta : NSObject { long long _changeType; NSString * _uniqueIdentifier; NSMutableSet * _updatedProperties; } @property (nonatomic, readonly) long lon...
43,829
https://github.com/mkinsner/llvm/blob/master/llvm/test/Instrumentation/InstrProfiling/always_inline.ll
Github Open Source
Open Source
Apache-2.0
2,022
llvm
mkinsner
LLVM
Code
143
427
; Check that '__attribute__((always_inline)) inline' functions are inlined. ; RUN: opt < %s -mtriple=x86_64-apple-macosx10.10.0 -passes='instrprof,inline' -S | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.13.0" ;; Don't record the address of an avail...
16,641
https://github.com/jrchatruc/universe/blob/master/src/universe.cpp
Github Open Source
Open Source
MIT
null
universe
jrchatruc
C++
Code
248
1,030
#include <math.h> #include <stdio.h> #include <vector> #include "universe.h" #include "linalg.h" using LinAlg::Vector3; const double G = 0.00005; namespace Universe { CelestialBody create_body(double mass, Vector3 position, Vector3 velocity, Vector3 acceleration) { static int system_id_counter = 0; auto id = ...
5,331
https://github.com/shreyagangan/Cpp-Multithreading/blob/master/170 Using Methods in Threads.cpp
Github Open Source
Open Source
MIT
2,022
Cpp-Multithreading
shreyagangan
C++
Code
50
163
#include <iostream> #include <thread> using namespace std; template<typename E> class blocking_queue { public: void push(E e) { cout << "push" << endl; } void pop() { cout << "pop" << endl; } }; int main() { blocking_queue<int> qu; thread t1(&blocking_queue<int>::pus...
35,792
https://github.com/mmeester/platform/blob/master/src/Administration/Resources/app/administration/test/module/sw-settings/sw-settings-index.spec.js
Github Open Source
Open Source
MIT
2,021
platform
mmeester
JavaScript
Code
566
2,206
import { shallowMount } from '@vue/test-utils'; import 'src/module/sw-settings/page/sw-settings-index'; import 'src/module/sw-settings/component/sw-settings-item'; import 'src/app/component/base/sw-card'; import 'src/app/component/base/sw-tabs'; import 'src/app/component/base/sw-tabs-item'; function createWrapper(pri...
41,075
https://github.com/AnnaKPolyakova/bbbs/blob/master/bbbs/entertainment/serializers.py
Github Open Source
Open Source
MIT
2,021
bbbs
AnnaKPolyakova
Python
Code
172
671
from rest_framework import serializers from bbbs.common.utils.mixins import ConvertEditorTags from bbbs.entertainment.models import ( Article, Book, BookTag, Guide, Movie, MovieTag, Video, VideoTag, ) class GuideSerializer(ConvertEditorTags, serializers.ModelSerializer): text = se...
49,951
https://github.com/daxuliu/springboot-recruit/blob/master/src/main/java/com/yuu/recruit/service/impl/EmployeeBookmarkedServiceImpl.java
Github Open Source
Open Source
Apache-2.0
2,022
springboot-recruit
daxuliu
Java
Code
211
1,079
package com.yuu.recruit.service.impl; import com.yuu.recruit.domain.EmployeeBookmarked; import com.yuu.recruit.mapper.EmployeeBookmarkedMapper; import com.yuu.recruit.service.EmployeeBookmarkedService; import com.yuu.recruit.service.TaskService; import com.yuu.recruit.utils.IDUtil; import com.yuu.recruit.vo.EmployeeBo...
20,976
https://github.com/Noelle1021222/YouBike-Swift4/blob/master/YouBike_app/YouBike app/IntroductionViewController.swift
Github Open Source
Open Source
MIT
2,018
YouBike-Swift4
Noelle1021222
Swift
Code
329
1,147
// // IntroductionViewController.swift // week_2_part_3 // // Created by 許雅筑 on 2016/9/8. // Copyright © 2016年 許雅筑. All rights reserved. // import UIKit import SafariServices class IntroductionViewController: UIViewController,SFSafariViewControllerDelegate { var facebookLinkUrl: String = "" @IBOutlet wea...
47,763
https://github.com/pfreese/meth/blob/master/pkg/ioutils/gzip.go
Github Open Source
Open Source
MIT
null
meth
pfreese
Go
Code
128
378
package ioutils import ( "compress/gzip" "fmt" "io" "os" ) // UnpackGzipFile func UnpackGzipFile(gzFilePath, dstFilePath string) (int64, error) { gzFile, err := os.Open(gzFilePath) if err != nil { return 0, fmt.Errorf("Failed to open file %s for unpack: %s", gzFilePath, err) } dstFile, err := os.OpenFile(ds...
41,043
https://github.com/ziccardi/json-data-validator/blob/master/src/rules/builders/CompositeRuleBuilder.ts
Github Open Source
Open Source
Apache-2.0
2,022
json-data-validator
ziccardi
TypeScript
Code
121
363
import {RuleConfig} from '../../config/RuleConfig'; export interface CompositeRuleBuilderInterfaceStart { withSubRule: (rule: RuleConfig) => CompositeRuleBuilderInterfaceEnd; } export interface CompositeRuleBuilderInterfaceEnd { withSubRule: (rule: RuleConfig) => CompositeRuleBuilderInterfaceEnd; build: (errorM...
3,182
https://github.com/yancymin/AtlasKit/blob/master/packages/app-switcher/src/items/suggested-application.jsx
Github Open Source
Open Source
Apache-2.0
2,021
AtlasKit
yancymin
null
Spoken
115
417
// @flow import React from 'react'; import { ConfluenceLogo, JiraLogo } from '@atlaskit/logo'; import { LogoContainer, SuggestedApplicationTagline, Link, Item } from '../styled'; import type { Translations, SuggestedApplication, DropdownConfig } from '../internal/types'; const logos = { jira: <JiraLogo />, conflue...
42,833
https://github.com/BlackDragonCZ/Hacknet-Pathfinder/blob/master/docs/html/class_hacknet_1_1_gui_data.js
Github Open Source
Open Source
MIT
2,018
Hacknet-Pathfinder
BlackDragonCZ
JavaScript
Code
290
2,845
var class_hacknet_1_1_gui_data = [ [ "FontCongifOption", "struct_hacknet_1_1_gui_data_1_1_font_congif_option.html", "struct_hacknet_1_1_gui_data_1_1_font_congif_option" ], [ "ActivateFontConfig", "class_hacknet_1_1_gui_data.html#a3f44a539db3e73fd48f2c2b65e2a6e44", null ], [ "ActivateFontConfig", "class_hack...
26,928
https://github.com/qindj/DA-His/blob/master/base/solution/import/IMPORT_App_Function.pas
Github Open Source
Open Source
Apache-2.0
2,020
DA-His
qindj
Pascal
Code
504
2,080
unit IMPORT_App_Function; interface uses Classes, SysUtils, Windows, Messages, Forms, Dialogs, ZLib, jpeg, Menus, Controls, ActnList, Graphics, StdCtrls, TypInfo, StrUtils, IniFiles, ShellAPI, DB, Math, Types, Nb30, WinSock, App_Function, Variants, PaxCompiler, PaxReg...
45,610
https://github.com/himanshuxd/RandomCode/blob/master/CnCpp/stringinC.cpp
Github Open Source
Open Source
MIT
2,022
RandomCode
himanshuxd
C++
Code
26
148
#include<iostream> #include<conio.h> #include<string.h> using namespace std; int main() { cout<<"root@~AshSharma:2015<Dev>\n\n"; char stringinC[5]={'a','s','h','x','\0'}; string myname = "ash"; cout<<stringinC + myname; cout<<"\n\nCheers by AshX~~@rootDev`ROG`:20k5\n"; getch(); return 0; }
20,647
https://github.com/Tim810306/oppia/blob/master/core/templates/components/forms/schema-based-editors/schema-based-unicode-editor.directive.spec.ts
Github Open Source
Open Source
Apache-2.0
2,022
oppia
Tim810306
TypeScript
Code
435
1,482
// Copyright 2021 The Oppia 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 by ap...
27,239
https://github.com/vinodg006/mean-stack-app/blob/master/app.js
Github Open Source
Open Source
MIT
null
mean-stack-app
vinodg006
JavaScript
Code
181
537
const express = require("express"); const path = require("path"); const cors = require("cors"); const passport = require("passport"); const mongoose = require("mongoose"); const config = require("./config/database"); // Connect To Database (NEW) But not working!!!!!!!!!! (because of secret in db.js!!!!!) //const db = ...
3,968
https://github.com/craigbuckler/cpconversions2/blob/master/src/js/main/pwa.js
Github Open Source
Open Source
MIT
null
cpconversions2
craigbuckler
JavaScript
Code
133
415
/* Enable PWA service worker // requires: config.js */ /* global ow */ (function() { 'use strict'; if (!ow.pwa) return; // enable service worker if ('serviceWorker' in navigator) { // register service worker navigator.serviceWorker.register('/* @echo rootpath */sw.js'); // load script to ...
2,346
https://github.com/Relabtive/hispanoFail/blob/master/hispanoFail/node_modules/ionic-native/dist/esm/plugins/vibration.d.ts
Github Open Source
Open Source
MIT
2,021
hispanoFail
Relabtive
TypeScript
Code
140
256
/** * @name Vibration * @description Vibrates the device * @usage * ```typescript * import { Vibration } from 'ionic-native'; * * * // Vibrate the device for a second * // Duration is ignored on iOS. * Vibration.vibrate(1000); * * // Vibrate 2 seconds * // Pause for 1 second * // Vibrate for 2 seconds * ...
51,438
https://github.com/gaberoo/exploder/blob/master/Rpkg/man/expoTree-package.Rd
Github Open Source
Open Source
BSD-3-Clause-Open-MPI
2,014
exploder
gaberoo
R
Code
259
834
\name{expoTree-package} \alias{expoTree-package} \alias{expoTree} \docType{package} \title{ Calculate density dependent likelihood of a phylogenetic tree } \description{ Calculates the density dependent likelihood of a phylogenetic tree. It takes branching and sampling times as an argument and integrates the l...
4,027
https://github.com/nofandiyan/C-Bodas-Seller-/blob/master/resources/views/products/create/createVilla.blade.php
Github Open Source
Open Source
MIT
null
C-Bodas-Seller-
nofandiyan
PHP
Code
534
2,457
@extends('layouts.app') @section('content') @if (!empty(Auth::user())) @if(Auth::user()->userAs == 1) <div class="container"> <div class="row"> <div class="col-md-10 col-md-offset-1"> <div class="panel panel-default"> <div class="panel-heading">Lapak Baru<...
34,299
https://github.com/tenondecrpc/real-estate-app-ui/blob/master/src/property/components/create/PropertyAmenities.js
Github Open Source
Open Source
MIT
2,018
real-estate-app-ui
tenondecrpc
JavaScript
Code
239
917
/** * @flow */ import React, {PropTypes} from 'react'; import { ListView, StyleSheet, Text, TouchableHighlight, View, } from 'react-native'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import colors from '../../../common/colors'; import Separator from './../../../components/Separator'; ...
28,937
https://github.com/futjikato/imgui-go/blob/master/BackendFlags.go
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,019
imgui-go
futjikato
Go
Code
54
139
package imgui const ( // BackendFlagHasGamepad back-end supports gamepad and currently has one connected. BackendFlagHasGamepad = 1 << iota // BackendFlagHasMouseCursors back-end supports honoring MouseCursor() value to change the OS cursor shape. BackendFlagHasMouseCursors // BackendFlagHasSetMousePos back-end s...
38,441
https://github.com/cucumber-attic/cucumber-ruby-spike-donotuse/blob/master/spec/stepping_stone/reporter_spec.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,011
cucumber-ruby-spike-donotuse
cucumber-attic
Ruby
Code
158
608
require 'spec_helper' module SteppingStone describe Reporter do def setup(name) Model::Result.new(inst(:setup, name), :undefined) end def teardown(name) Model::Result.new(inst(:teardown, name), :undefined) end def dispatch(pattern, status) Model::Result.new(inst(:dispatch, pat...
43,329
https://github.com/Kinnoo/cs404.1-1/blob/master/java/src/edu/berkeley/cs/app/scheduling/Job.java
Github Open Source
Open Source
MIT
null
cs404.1-1
Kinnoo
Java
Code
167
455
package edu.berkeley.cs.app.scheduling; import java.util.Objects; import java.util.Random; public class Job implements Comparable { private int timeLeft; private int processingTime; private int waitingTime; public Job() { Random random = new Random(); this.timeLeft = random.nextInt(100) + 1; } p...
49,818
https://github.com/AndrejsAbrickis/signalR-vuejs-demo/blob/master/PlanningPoker.Web/Hubs/GameHub.cs
Github Open Source
Open Source
Unlicense
2,021
signalR-vuejs-demo
AndrejsAbrickis
C#
Code
168
651
using System; using System.Threading.Tasks; using Microsoft.AspNetCore.SignalR; using PlanningPoker.Data.DTOs; namespace PlanningPoker.Web.Hubs { public static class GameEvents { internal static string Send = "Send"; internal static string GameJoined = "GameJoined"; internal static string UserJoined = ...
8,965
https://github.com/peterschwarz/splinter-docs/blob/master/scripts/activeLinks.js
Github Open Source
Open Source
Apache-2.0
null
splinter-docs
peterschwarz
JavaScript
Code
84
356
// Set the active links in the navbar, left sidebar, and left // sidebar's version dropdown function setActiveLinks() { $(document).ready(function () { var navbar_links = $('.navbar-nav a').filter(function() { return window.location.pathname.startsWith(this.getAttribute("href")); }).addC...
1,450
https://github.com/fernandomv3/post3D/blob/master/src/Object3D.cpp
Github Open Source
Open Source
MIT
null
post3D
fernandomv3
C++
Code
359
1,868
#include "post3D/Object3D.h" namespace object3D{ Object3D::Object3D(){ this->visible = true; this->position = shared_ptr<Vec3>(new Vec3(0.0f,0.0f,0.0f)); this->rotation = shared_ptr<Euler>(new Euler(0.0f,0.0f,0.0f,"XYZ")); this->quaternion = shared_ptr<Quaternion>(new Quaternion(0.0f,0.0f,0.0f,1.0f)); this...
9,505