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/joaobertola/clonedash/blob/master/apilaravel/app/Model/Controle/CadastroControles.php
Github Open Source
Open Source
MIT
null
clonedash
joaobertola
PHP
Code
48
152
<?php namespace App\Model\Controle; use Illuminate\Database\Eloquent\Model; class CadastroControles extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'base_web_control.cadastro_controles'; const UPDATED_AT = null; const CREATED_A...
4,876
https://github.com/z-van-baars/IronWarden/blob/master/.import/0006.png-7c784e0bf4033baca6ab59a6703971b9.md5
Github Open Source
Open Source
MIT
2,021
IronWarden
z-van-baars
null
Spoken
2
53
source_md5="a92d18779d14688de8c654fa4f312982" dest_md5="bfeeb6902028b8e6fb48a483eec765e1"
12,096
https://github.com/rashad22/cip/blob/master/public/admin/vendors/toastr/Gruntfile.js
Github Open Source
Open Source
MIT
2,019
cip
rashad22
JavaScript
Code
47
210
module.exports = function(grunt) { grunt.initConfig({ less: { dev: { files: { "toastr.css": "toastr.less" } }, prod: { options: { yuicompress: true }, files: { "toastr.min.css": "toastr.less" } } }, ugli...
6,246
https://github.com/sparklyr/sparklyr/blob/master/man/sdf_is_streaming.Rd
Github Open Source
Open Source
Apache-2.0
2,023
sparklyr
sparklyr
R
Code
42
143
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sdf_streaming.R \name{sdf_is_streaming} \alias{sdf_is_streaming} \title{Spark DataFrame is Streaming} \usage{ sdf_is_streaming(x) } \arguments{ \item{x}{A \code{spark_connection}, \code{ml_pipeline}, or a \code{tbl_spark}.} } \description{ Is...
10,500
https://github.com/cdparra/appcivist-platform/blob/master/app/models/TokenAction.java
Github Open Source
Open Source
Apache-2.0
null
appcivist-platform
cdparra
Java
Code
272
928
package models; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToOne; import javax.persistence.Table; im...
46,545
https://github.com/ejaadam/virobej/blob/master/resources/views/seller/stock/view_product_list_print.blade.php
Github Open Source
Open Source
MIT
2,018
virobej
ejaadam
Blade
Code
154
713
<?php include('assets/supplier/css/print_style.css');?> <?php foreach ($product_stock as $key => $val) $$key = $val; ?> <div class="rightbox"> <div class="homeMsg" style="text-align:left; height:auto;"> <h1>View Product List - <?php echo date("d-M-Y");?></h1><br/> <h5 align="right"><but...
33,188
https://github.com/youtube/cobalt/blob/master/starboard/shared/starboard/player/video_dmp_common.h
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause
2,023
cobalt
youtube
C++
Code
540
1,555
// Copyright 2018 The Cobalt 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...
31,408
https://github.com/watson-developer-cloud/discovery-starter-kit/blob/master/notebooks/scripts/print_training_document.py
Github Open Source
Open Source
MIT
2,019
discovery-starter-kit
watson-developer-cloud
Python
Code
54
250
import sys import os import glob import json # load the proper path for discovery setup utils if '__file__' in globals(): sys.path.insert(0, os.path.join(os.path.abspath(__file__), 'scripts')) else: sys.path.insert(0, os.path.join(os.path.abspath(os.getcwd()), 'scripts')) from discovery_setup_utils import curd...
20,756
https://github.com/hujanmizan94/JDEECo/blob/master/jdeeco-ros/src/cz/cuni/mff/d3s/jdeeco/ros/DockIR.java
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,018
JDEECo
hujanmizan94
Java
Code
346
1,135
package cz.cuni.mff.d3s.jdeeco.ros; import java.util.Collections; import java.util.HashMap; import java.util.Map; import kobuki_msgs.DockInfraRed; import org.jboss.netty.buffer.ChannelBuffer; import org.ros.message.MessageListener; import org.ros.node.ConnectedNode; import org.ros.node.Node; import org.ros.node.topi...
2,925
https://github.com/pingjuiliao/cb-multios/blob/master/challenges/REMATCH_6--Secure_Server--Heartbleed/src/msls.c
Github Open Source
Open Source
MIT
2,022
cb-multios
pingjuiliao
C
Code
1,015
4,307
/* Author: Debbie Nuttall <debbie@cromulence.com> Copyright (c) 2016 Cromulence LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
43
https://github.com/EmilRyberg/P5BinPicking/blob/master/safety.py
Github Open Source
Open Source
MIT
2,020
P5BinPicking
EmilRyberg
Python
Code
377
1,322
from pyurg import pyurg import threading import serial import time STOP_THRESHOLD_LOW = 10 STOP_THRESHOLD_HIGH = 500 SLOW_THRESHOLD_LOW = 501 SLOW_THRESHOLD_HIGH = 1000 class Safety: def __init__(self): self.ignore_indexes = [] self.person_close_counter = 0 self.person_close = False ...
46,760
https://github.com/kanno2inf/pompom-sbt/blob/master/src/main/scala/info/kion2k/pom2sbt/Main.scala
Github Open Source
Open Source
MIT
null
pompom-sbt
kanno2inf
Scala
Code
423
1,516
package info.kion2k.pom2sbt import java.io.File import org.jsoup.Jsoup import org.jsoup.nodes.{Document, Element} import scala.collection.JavaConversions._ import scala.util.matching.Regex object PomLoader { def parse(file: File): PomData = { val xml = Jsoup.parse(file, "UTF-8") PomData(parseProfiles(xml)...
24,578
https://github.com/GabrSobral/Cheapy/blob/master/src/components/ProductDetailsHeader/FeedbackAndDiscount/style.module.scss
Github Open Source
Open Source
MIT
2,022
Cheapy
GabrSobral
SCSS
Code
47
189
.feedback_discount{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; .feedback{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; > div{ display: flex; } > span{ font-weight: 500; font-size: 0.8rem;...
33,206
https://github.com/brentjohnson/k8s-gitops/blob/master/scripts/flux.sh
Github Open Source
Open Source
Apache-2.0
2,020
k8s-gitops
brentjohnson
Shell
Code
179
540
#!/usr/bin/env bash set -eou pipefail CLEAN=${CLEAN:-true} if [[ ! $(fluxctl) ]]; then echo "Fluxctl needs to be manually installed - https://docs.fluxcd.io/en/latest/references/fluxctl/" exit 1 fi # Untaint master nodes # TODO: Enable Ansible to allow configuring the taints to be added/removed. [[ ! $(kube...
32,524
https://github.com/felipezago/ControleEstoque/blob/master/View/lista_servicos.py
Github Open Source
Open Source
MIT
null
ControleEstoque
felipezago
Python
Code
714
5,349
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'lista_servicos.ui' # # Created by: PyQt5 View code generator 5.14.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Frame(object): def setupUi(self, Frame): Frame.s...
22,617
https://github.com/IBMPredictiveAnalytics/PLS/blob/master/src/PLS.py
Github Open Source
Open Source
Apache-2.0
2,020
PLS
IBMPredictiveAnalytics
Python
Code
7,696
23,598
#/*********************************************************************** # * Licensed Materials - Property of IBM # * # * IBM SPSS Products: Statistics Common # * # * (C) Copyright IBM Corp. 1989, 2020 # * # * US Government Users Restricted Rights - Use, duplication or disclosure # * restricted by GSA ADP Schedule C...
38,459
https://github.com/Cadcorp/swagger-codegen/blob/master/samples/composed/server/petstore/jaxrs/jersey2/src/main/java/io/swagger/api/impl/TestApiServiceImpl.java
Github Open Source
Open Source
Apache-2.0
2,020
swagger-codegen
Cadcorp
Java
Code
46
200
package io.swagger.api.impl; import io.swagger.api.*; import io.swagger.model.*; import java.util.Map; import java.util.List; import io.swagger.api.NotFoundException; import java.io.InputStream; import org.glassfish.jersey.media.multipart.FormDataContentDisposition; import javax.ws.rs.core.Response; import javax....
14,282
https://github.com/rnarla123/aliyun-openapi-java-sdk/blob/master/aliyun-java-sdk-aegis/src/main/java/com/aliyuncs/aegis/model/v20161111/DescribeLogMetaResponse.java
Github Open Source
Open Source
Apache-2.0
2,020
aliyun-openapi-java-sdk
rnarla123
Java
Code
311
886
/* * 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...
31,950
https://github.com/mkudruss/rbdl_derivatives/blob/master/tests/KinematicsTests.cc
Github Open Source
Open Source
Zlib
2,021
rbdl_derivatives
mkudruss
C++
Code
2,614
9,163
#include <UnitTest++.h> #include <iostream> #include "rbdl/rbdl_mathutils.h" #include "rbdl/Logging.h" #include "rbdl/Model.h" #include "rbdl/Kinematics.h" #include "rbdl/Dynamics.h" #include "Human36Fixture.h" using namespace std; using namespace RigidBodyDynamics; using namespace RigidBodyDynamics::Math; const ...
294
https://github.com/CuriousDrive/InterviewPreparation/blob/master/CodinGames/Program.cs
Github Open Source
Open Source
MIT
2,022
InterviewPreparation
CuriousDrive
C#
Code
94
268
using System; using System.Collections.Generic; public class Song { private string name; public Song NextSong { get; set; } List<Song> PreviouSongs { get; set; } = new List<Song>(); public Song(string name) { this.name = name; } public bool IsRepeatingPlaylist() { Son...
4,857
https://github.com/raminjafary/ethical-hacking/blob/master/src/final_scripts/report_windows_wifi_password_to_email.py
Github Open Source
Open Source
MIT
null
ethical-hacking
raminjafary
Python
Code
93
290
#!/usr/bin/python2.7 #copy the script to victim machine this scripts should run on victim side windows_host #get saved wifi password and send a gather information to the mail address mention in the script import subprocess import smtplib import re def send_mail(email,password,message): server = smtplib.SMTP("smtp....
25,228
https://github.com/jmhobbs/dun-dun-duh/blob/master/dundunduh/queue/__init__.py
Github Open Source
Open Source
MIT
2,017
dun-dun-duh
jmhobbs
Python
Code
307
1,366
# -*- coding: utf-8 -*- import os from boto.s3.connection import S3Connection from boto.s3.key import Key from boto.s3.bucket import Bucket import time from PIL import Image from flask import current_app, url_for from ..renderers.gifsicle import make_animated_gif from ..crop import build_crops from ..records impo...
12,369
https://github.com/chengzhongnan/loda/blob/master/programs/oeis/070/A070391.asm
Github Open Source
Open Source
Apache-2.0
2,021
loda
chengzhongnan
null
Spoken
22
261
; A070391: a(n) = 5^n mod 46. ; 1,5,25,33,27,43,31,17,39,11,9,45,41,21,13,19,3,15,29,7,35,37,1,5,25,33,27,43,31,17,39,11,9,45,41,21,13,19,3,15,29,7,35,37,1,5,25,33,27,43,31,17,39,11,9,45,41,21,13,19,3,15,29,7,35,37,1,5,25,33,27,43,31,17,39,11,9,45,41,21,13,19,3,15,29,7,35,37,1,5,25,33,27,43,31,17,39,11,9,45 mov $1,1 m...
28,483
https://github.com/Nikita-Filonov/lama_logger/blob/master/core/tracks/migrations/0013_auto_20211030_2103.py
Github Open Source
Open Source
Apache-2.0
null
lama_logger
Nikita-Filonov
Python
Code
36
155
# Generated by Django 3.2.7 on 2021-10-30 21:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tracks', '0012_auto_20211030_2054'), ] operations = [ migrations.RemoveField( model_name='trackrequest', name='isCustom', ...
51,601
https://github.com/gritsenkoandrey/Paint/blob/master/Assets/Scripts/Enum/TextureType.cs
Github Open Source
Open Source
MIT
null
Paint
gritsenkoandrey
C#
Code
29
75
namespace Enum { public enum TextureType : byte { RandomValue = 0, GradientValue = 1, PaintGrid = 2, PaintShadow = 3, GradientEvaluate = 4, PaintCircle = 5, } }
218
https://github.com/projectomakase/omakase/blob/master/omakase/src/test/java/org/projectomakase/omakase/rest/converter/QuerySearchConverterTest.java
Github Open Source
Open Source
Apache-2.0
2,016
omakase
projectomakase
Java
Code
412
1,749
/* * #%L * omakase * %% * Copyright (C) 2015 Project Omakase LLC * %% * 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 * * Unles...
38,139
https://github.com/blueww/azure-sdk-for-node/blob/master/lib/services/operationalInsightsManagement/lib/models/index.js
Github Open Source
Open Source
Apache-2.0, MIT
null
azure-sdk-for-node
blueww
JavaScript
Code
181
605
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ /...
28,118
https://github.com/NeoSOFT-Technologies/search-as-service/blob/master/src/main/java/com/searchservice/app/domain/dto/table/TableSchema.java
Github Open Source
Open Source
Apache-2.0
null
search-as-service
NeoSOFT-Technologies
Java
Code
90
384
package com.searchservice.app.domain.dto.table; import java.util.List; import com.fasterxml.jackson.annotation.JsonInclude; import com.searchservice.app.domain.dto.BaseResponse; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; @Data @NoArgsConst...
4,660
https://github.com/pulumi/pulumi-gcp/blob/master/sdk/dotnet/GkeHub/Inputs/MembershipEndpointArgs.cs
Github Open Source
Open Source
BSD-3-Clause, MPL-2.0, Apache-2.0
2,023
pulumi-gcp
pulumi
C#
Code
104
242
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; names...
32,166
https://github.com/wudongyin/avaje-inject/blob/master/inject-test/src/test/java/org/example/coffee/parent/ConcreteEngiTest.java
Github Open Source
Open Source
Apache-2.0
2,021
avaje-inject
wudongyin
Java
Code
65
417
package org.example.coffee.parent; import io.avaje.inject.ApplicationScope; import org.example.coffee.parent.sub.Engi; import org.example.coffee.parent.sub.PetEngi; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; class ConcreteEngiTest { @Test void getBean_usingSuper...
9,177
https://github.com/ghsecuritylab/S8-53M/blob/master/sources/libs/common/Utils/StringUtils.h
Github Open Source
Open Source
MIT
2,018
S8-53M
ghsecuritylab
C++
Code
617
1,628
#pragma once ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// struct Word { char *address; int8 numSymbols; uint8 notUsed0; uint8 notUsed1; uint8 notUsed2; }; /// @brief Преобразует vo...
29,745
https://github.com/rayaalsaedi/note-taker/blob/master/route.js
Github Open Source
Open Source
MIT
null
note-taker
rayaalsaedi
JavaScript
Code
225
648
// DEPENDENCIES // We need to include the path package to get the correct file path for our html const fs = require('fs'); const path = require('path'); const uniqueID = require('uniqid'); // ROUTING module.exports = app => { let notes = require(__dirname + "/./db/db.json"); // => HTML GET Requests // Below co...
17,366
https://github.com/viing937/codeforces/blob/master/src/253B.c
Github Open Source
Open Source
MIT
2,016
codeforces
viing937
C
Code
119
315
#include <stdio.h> int main() { int i; int n; int c[5001] = {0}; FILE *in = fopen("input.txt","r"), *out = fopen("output.txt","w"); fscanf(in ,"%d", &n); for ( i = 0; i < n; i++ ) { int tmp; fscanf(in, "%d", &tmp); c[tmp] += 1; } int cntl = 0, cntr = 0; f...
6,286
https://github.com/restmad/NewtouchHR_old/blob/master/src/com/coe/daoImp/TrainplanDao.java
Github Open Source
Open Source
MIT
2,018
NewtouchHR_old
restmad
Java
Code
120
422
package com.coe.daoImp; import java.util.List; import com.coe.dao.ITrainplanDao; import com.coe.dto.Trainingplan; public class TrainplanDao extends BaseDao implements ITrainplanDao { public Trainingplan findbyTrf(String trf) { String values[] = { trf }; Trainingplan trainingplan = (Trainingplan) super.getSingl...
45,322
https://github.com/jem-green/Queue/blob/master/Program.cs
Github Open Source
Open Source
MIT
null
Queue
jem-green
C#
Code
131
659
using System; using System.Collections.Generic; namespace Queue { class Program { static void Main(string[] args) { Queue<string> q = new Queue<string>(); Console.WriteLine("count=" + q.Count); q.Enqueue("start"); q.Enqueue("next"); ...
13,077
https://github.com/inwinstack/ip-assigner/blob/master/pkg/operator/operator.go
Github Open Source
Open Source
Apache-2.0
2,019
ip-assigner
inwinstack
Go
Code
256
742
/* Copyright © 2018 inwinSTACK Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
22,543
https://github.com/kaleidawave/prism/blob/master/src/chef/javascript/components/statements/switch.ts
Github Open Source
Open Source
MIT
2,021
prism
kaleidawave
TypeScript
Code
270
766
import { StatementTypes } from "./statement"; import { ValueTypes } from "../value/value"; import { IRenderSettings, TokenReader, defaultRenderSettings, IRenderable } from "../../../helpers"; import { JSToken } from "../../javascript"; import { Expression } from "../value/expression"; import { parseBlock, renderBlock }...
37,552
https://github.com/KTXSoftware/hake/blob/master/Sources/Platform.h
Github Open Source
Open Source
Zlib
2,018
hake
KTXSoftware
C
Code
26
116
#pragma once namespace kake { enum Platform { Windows, WindowsRT, PlayStation3, iOS, OSX, Android, Xbox360, Linux, HTML5, Flash, WPF, XNA, Java, PlayStationMobile, Dalvik, Tizen }; }
14,252
https://github.com/pdschubert/WALi-OpenNWA/blob/master/Source/wali/include/wali/graph/Graph.hpp
Github Open Source
Open Source
MIT
2,022
WALi-OpenNWA
pdschubert
C++
Code
146
451
#ifndef wali_graph__MY_GRAPH_H_ #define wali_graph__MY_GRAPH_H_ #include <set> #include <vector> #include <list> #include <map> using namespace std; namespace wali { namespace graph { struct ActionFunctor { ActionFunctor() { } virtual ~ActionFunctor() { } virtual void...
24,555
https://github.com/filtermap/typeracer-cli/blob/master/gulpfile.js
Github Open Source
Open Source
MIT
2,022
typeracer-cli
filtermap
JavaScript
Code
46
228
const gulp = require("gulp"); const ts = require("gulp-typescript"); const souremaps = require("gulp-sourcemaps"); const tsProject = ts.createProject("tsconfig.json", { typescript : require("typescript") }) gulp.task("build", function() { gulp.src("process.yml") .pipe(gulp.dest("dist")); return tsProject....
41,185
https://github.com/rpatil524/quiki/blob/master/wiki/file.go
Github Open Source
Open Source
0BSD
2,022
quiki
rpatil524
Go
Code
1,049
2,531
package wiki import ( "io/ioutil" "os" "path/filepath" "strings" "time" "github.com/cooper/quiki/wikifier" ) // DisplayFile represents a plain text file to display. type DisplayFile struct { // file name relative to wiki root. // path delimiter '/' is always used, regardless of OS. File string `json:"file,...
33,619
https://github.com/Atidot/extensible-effects/blob/master/src/Control/Eff/Lift.hs
Github Open Source
Open Source
MIT
2,018
extensible-effects
Atidot
Haskell
Code
276
523
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes, ScopedTypeVariables #-} {-# LANGUAGE Safe #-} -- | Lifting primitive Monad types to effectful computations. -- We only allow a single Lifted Monad because Monads aren't commutative -- (e.g. Maybe (IO a) is functionally distinct from I...
27,449
https://github.com/jblough/Dinner-and-a-Show/blob/master/Dinner and a Show/RestaurantListingTableCell.m
Github Open Source
Open Source
MIT
2,012
Dinner-and-a-Show
jblough
Objective-C
Code
320
1,298
// // RestaurantListingTableCell.m // Dinner and a Show // // Created by Joe Blough on 4/28/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #import "RestaurantListingTableCell.h" #import "UIImageView+WebCache.h" @implementation RestaurantListingTableCell @synthesize nameLabel = _nameLabel; @...
38,229
https://github.com/MrPomidor/MarsInvasionFSharpEdition/blob/master/MarsInvasion/MarsInvasion.Domain.Tests/ParsersTests.fs
Github Open Source
Open Source
MIT
null
MarsInvasionFSharpEdition
MrPomidor
null
Spoken
286
641
module MarsInvasion.Domain.ParsersTests open NUnit.Framework open Domain open Parsers open System.Linq [<Test>] let parsePlateu_correctInput_shouldPass () = let input = "1 1" let expectedX = 1 let expectedY = 1 let result = parsePlateu input match result with | Error errorStr -> sprintf "Un...
48,418
https://github.com/empreinte-digitale/assistant-rgaa/blob/master/src/helpers/components/LocalPageValidatorContainer.js
Github Open Source
Open Source
MIT
2,022
assistant-rgaa
empreinte-digitale
JavaScript
Code
121
453
import React, {Component} from 'react'; import {sendMessage} from '../../common/api/runtime'; import {GET_CURRENT_TAB, VALIDATE_PAGE} from '../../common/actions/runtime'; import {isFirefox} from '../../common/api/uasniffer'; import HelperButton from './HelperButton'; /** * */ export default class LocalPageValidatorC...
32,456
https://github.com/all-in-one-of/IntoThePixel-Jam/blob/master/TeaTime/Assets/Scripts/ExtensionMethods.cs
Github Open Source
Open Source
MIT
2,019
IntoThePixel-Jam
all-in-one-of
C#
Code
308
838
using UnityEngine; using System; public static class ExtensionMethods { public static bool Approximately(this float value, float targetValue, float epsilon = 0.001f) { return Mathf.Abs(value - targetValue) < epsilon; } public static Vector2 Rotate(this Vector2 v, float degrees) { ...
18,026
https://github.com/mono/coreclr/blob/master/tests/src/CoreMangLib/cti/system/text/stringbuilder/stringbuilderchars.cs
Github Open Source
Open Source
MIT
2,019
coreclr
mono
C#
Code
1,039
2,995
using System; using System.Text; /// <summary> /// StringBuilder.Chars Property /// Gets or sets the character at the specified character position in this instance. /// </summary> public class StringBuilderChars { private const int c_MIN_STR_LEN = 1; private const int c_MAX_STR_LEN = 260; private const ...
21,582
https://github.com/Microservice-API-Patterns/ReferenceManagement/blob/master/jHipsterMicroservices/ReferenceManagementContext/src/test/java/org/contextmapper/generated/referencemanagementcontext/domain/PaperCollectionIdTest.java
Github Open Source
Open Source
Apache-2.0
null
ReferenceManagement
Microservice-API-Patterns
Java
Code
40
258
package org.contextmapper.generated.referencemanagementcontext.domain; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; import org.contextmapper.generated.referencemanagementcontext.web.rest.TestUtil; public class PaperCollectionIdTest { @Test public void equalsVer...
14,074
https://github.com/Jimmy-INL/google-research/blob/master/graph_embedding/dmon/gcn.py
Github Open Source
Open Source
Apache-2.0, CC-BY-4.0
2,023
google-research
Jimmy-INL
Python
Code
341
916
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
22,217
https://github.com/dzirg44/dits-january/blob/master/src/hello.js
Github Open Source
Open Source
MIT
null
dits-january
dzirg44
JavaScript
Code
11
24
var a = prompt("Are you admin", ""); //alert( a ); echo(a);
36,976
https://github.com/popphp/pop-http/blob/master/src/Server/Upload.php
Github Open Source
Open Source
BSD-3-Clause
2,023
pop-http
popphp
PHP
Code
1,643
4,571
<?php /** * Pop PHP Framework (http://www.popphp.org/) * * @link https://github.com/popphp/popphp-framework * @author Nick Sagona, III <dev@nolainteractive.com> * @copyright Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com) * @license http://www.popphp.org/license N...
36,899
https://github.com/SirSpec/Odysseus/blob/master/src/server/DomainServices/MapGeneratorServices/IMapGenerator.cs
Github Open Source
Open Source
MIT
null
Odysseus
SirSpec
C#
Code
13
51
using Odysseus.DomainModel.MapGenerator; namespace Odysseus.DomainServices.MapGenerator { public interface IMapGenerator { Map Generate(); } }
5,659
https://github.com/anueves1/Blocks/blob/master/Assets/Blocks/Base/Scripts/Blocks/Block.cs
Github Open Source
Open Source
MIT
2,018
Blocks
anueves1
C#
Code
130
388
using UnityEngine; namespace Blocks { public class Block : MonoBehaviour { [Header("Materials")] [Space(5f)] [SerializeField] private Material m_Normal; [SerializeField] private Material m_Highlight; [SerializeField] private Material m_Transpa...
51,256
https://github.com/datocms/ui-extensions-sdk/blob/master/packages/react-ui/src/index.ts
Github Open Source
Open Source
MIT
2,022
ui-extensions-sdk
datocms
TypeScript
Code
96
194
export * from './Button'; export * from './ButtonGroup'; export * from './Canvas'; export * from './ContextInspector'; export * from './Dropdown'; export * from './FieldError'; export * from './FieldGroup'; export * from './FieldHint'; export * from './Form'; export * from './FieldWrapper'; export * from './FormLabel';...
32,675
https://github.com/michalgunia/jdepend/blob/master/src/jdepend/framework/JavaPackageWithEfferentRestriction.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-2-Clause
2,015
jdepend
michalgunia
Java
Code
91
316
package jdepend.framework; import java.util.*; /** * The <code>JavaPackage</code> with restrictions to efferents(imports) * Should be used co create junit which check if Your project hava correcdependencis * * * @author michal * */ public class JavaPackageWithEfferentRestriction extends JavaPackage { ...
39,053
https://github.com/OData/odata.net/blob/master/test/FunctionalTests/Service/Microsoft/OData/Service/Providers/MetadataProviderEdmModel.cs
Github Open Source
Open Source
CC-BY-3.0-US, MIT, CC-BY-3.0
2,023
odata.net
OData
C#
Code
8,187
22,306
//--------------------------------------------------------------------- // <copyright file="MetadataProviderEdmModel.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // </copyright> //--------------------------------...
40,775
https://github.com/HoangTienDuc/MAVI-Face/blob/master/gitCred.py
Github Open Source
Open Source
MIT
2,020
MAVI-Face
HoangTienDuc
Python
Code
14
61
import os os.system("git config --global user.email \'neelabh.madan@outlook.com\'") os.system("git config --global user.name \'neelabh17\'") print("Credentials Entered")
13,709
https://github.com/tony-tran/en-marche.fr/blob/master/src/Entity/VotingPlatform/VotersList.php
Github Open Source
Open Source
GPL-3.0-only, Apache-2.0
2,022
en-marche.fr
tony-tran
PHP
Code
124
531
<?php namespace App\Entity\VotingPlatform; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * * @ORM\Table(name="voting_platform_voters_list") */ class VotersList { /** * @var int|null * * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(...
21,696
https://github.com/rafaelfvalim/Homsoft/blob/master/src/zhms_flag_po.prog.abap
Github Open Source
Open Source
MIT
2,020
Homsoft
rafaelfvalim
null
Spoken
22
108
*&---------------------------------------------------------------------* *& Report ZHMS_FLAG_PO *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ZHMS_FLAG_PO. PARAMETERS: p_chave type zhms_de_chave. CAL...
20,043
https://github.com/ngrj93/Project-Morpheus/blob/master/PerfSim/child.cpp
Github Open Source
Open Source
MIT
null
Project-Morpheus
ngrj93
C++
Code
54
295
#include <boost/interprocess/managed_shared_memory.hpp> #include <boost/interprocess/containers/vector.hpp> #include <boost/interprocess/allocators/allocator.hpp> #include<ctime> #include<unistd.h> #include<cstdlib> using namespace boost::interprocess; typedef allocator<int, managed_shared_memory::segment_manager> Sh...
43,644
https://github.com/benstuijts/blogstart/blob/master/routes/admin.js
Github Open Source
Open Source
MIT
2,016
blogstart
benstuijts
JavaScript
Code
964
3,336
const express = require('express'); const router = express.Router(); const bodyParser = require('body-parser'); const session = require('express-session'); const mongoose = require('mongoose'); const Article = require('../models/Article'); const Image = require('../models/Image...
50,119
https://github.com/paulsmithkc/java-firestore/blob/master/google-cloud-firestore/src/main/java/com/google/cloud/firestore/BatchWriteResult.java
Github Open Source
Open Source
Apache-2.0
2,022
java-firestore
paulsmithkc
Java
Code
169
339
/* * Copyright 2020 Google LLC * * 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...
45,702
https://github.com/jolylai/docs/blob/master/src/components/home/HomeHeader.js
Github Open Source
Open Source
MIT
2,019
docs
jolylai
JavaScript
Code
163
507
import React from 'react'; import { SearchModal } from '../common/search'; import { NavBar } from '../common'; import { Spirit } from '../../styles/spirit-styles'; import HomeHeaderBox from './HomeHeaderBox'; // Custom headings must be React components. You should include the <NavBar /> component // somewhere in it. ...
33,939
https://github.com/soplwang/chemkit/blob/master/demos/trajectory-viewer/trajectoryviewerdemo.cpp
Github Open Source
Open Source
BSD-3-Clause
2,012
chemkit
soplwang
C++
Code
574
1,942
/****************************************************************************** ** ** Copyright (C) 2009-2012 Kyle Lutz <kyle.r.lutz@gmail.com> ** All rights reserved. ** ** This file is a part of the chemkit project. For more information ** see <http://www.chemkit.org>. ** ** Redistribution and use in source and binar...
15,138
https://github.com/yehiaraslan85/SmiqsMobileApp/blob/master/smiqs/smiqs.Android/obj/Release/110/android/src/com/google/android/gms/base/R.java
Github Open Source
Open Source
MIT
null
SmiqsMobileApp
yehiaraslan85
Java
Code
597
2,011
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by * Xamarin.Android from the resource data it found. * It should not be modified by hand. */ package com.google.android.gms.base; public final class R { public static final class attr { public static final int buttonSize = 0x7f0...
48,983
https://github.com/NoUseFreak/go-parallel/blob/master/doc.go
Github Open Source
Open Source
MIT
2,021
go-parallel
NoUseFreak
Go
Code
82
219
/* Package go-parallel aims to simplify processing data in parallel by providing a small helper. package main import ( "fmt" "time" "github.com/NoUseFreak/go-parallel" ) type Payload struct { Number int } func main() { input := parallel.Input{} for i := 0; i < 20; i++ { in...
21,198
https://github.com/ivanarellano/react-quickly-book/blob/master/ch10/tooltip/js/script.js
Github Open Source
Open Source
MIT
2,021
react-quickly-book
ivanarellano
JavaScript
Code
27
85
const tooltip = document.getElementById('tooltip'); ReactDOM.render(React.createElement( "div", null, React.createElement( Tooltip, { text: "The book you're reading now" }, "React Quickly" ), " was published in 2017." ), tooltip);
51,197
https://github.com/TedTschopp/TravellerTools/blob/master/TravellerTools/Grauenwolf.TravellerTools.Characters/Careers/SkillTable.cs
Github Open Source
Open Source
MIT
2,022
TravellerTools
TedTschopp
C#
Code
12
44
using System; namespace Grauenwolf.TravellerTools.Characters.Careers { delegate void SkillTable(Character character, Dice dice); }
25,226
https://github.com/LucasHamera/Tta_app/blob/master/src/Modules/Todo/TtaApp.Todo.Domain/Todos/ValueObjects/TodoName.cs
Github Open Source
Open Source
MIT
null
Tta_app
LucasHamera
C#
Code
32
121
using TtaApp.Todo.Domain.Todos.Exceptions; namespace TtaApp.Todo.Domain.Todos.ValueObjects { public class TodoName { public TodoName( string name ) { if (string.IsNullOrWhiteSpace(name)) throw new EmptyTodoNameException(); Value = na...
25,504
https://github.com/n3rd-bugs/tiny-rtos/blob/master/rtos/io/ppp/ppp_lcp.h
Github Open Source
Open Source
RSA-MD
2,020
tiny-rtos
n3rd-bugs
C
Code
185
648
/* * ppp_lcp.h * * Copyright (c) 2015 Usama Masood <mirzaon@gmail.com> All rights reserved. * * This file is part of a non-commercial software. For more details please * refer to the license agreement that comes with this software. * * If you have not received a license file please contact: * Usama Masood <mi...
2,632
https://github.com/mdschuster/PipeDream/blob/master/Assets/Scripts/TileType.cs
Github Open Source
Open Source
BSD-2-Clause
null
PipeDream
mdschuster
C#
Code
24
71
using System.Collections; using System.Collections.Generic; using UnityEngine; public class TileType : MonoBehaviour { [SerializeField] private string tileType; public string getTileType() { return tileType; } }
31,019
https://github.com/ZooAtmosphereGroup/HelloPackages/blob/master/packages/w3af/w3af/core/controllers/core_helpers/tests/test_status.py
Github Open Source
Open Source
Apache-2.0
2,019
HelloPackages
ZooAtmosphereGroup
Python
Code
224
879
# -*- coding: UTF-8 -*- """ test_status.py Copyright 2012 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is dist...
10,597
https://github.com/tengu-team/python-libjuju/blob/master/juju/constraints.py
Github Open Source
Open Source
Apache-2.0
2,017
python-libjuju
tengu-team
Python
Code
280
709
# # Module that parses constraints # # The current version of juju core expects the client to take # constraints given in the form "mem=10G foo=bar" and parse them into # json that looks like {"mem": 10240, "foo": "bar"}. This module helps us # accomplish that task. # # We do not attempt to duplicate the checking done ...
24,295
https://github.com/OntoZoo/ontobee/blob/master/public/js/dojox/lang/functional/zip.js
Github Open Source
Open Source
AFL-2.1, BSD-3-Clause, MIT, Apache-2.0
2,018
ontobee
OntoZoo
JavaScript
Code
54
291
/* Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.lang.functional.zip"]){ dojo._hasResource["dojox.lang.functional.zip"]=true; dojo.provide("doj...
15,690
https://github.com/launchdeckio/v6e/blob/master/__tests__/support/testValidation.js
Github Open Source
Open Source
MIT
2,017
v6e
launchdeckio
JavaScript
Code
35
102
'use strict'; const validate = require('./../../lib'); const defaultCmp = (result, expected) => expect(result).toEqual(expected); module.exports = (strict = false, cmp = defaultCmp) => (schema, fields, expected) => validate(schema, fields, null, {strict}) .then(validate.util.shake) .then(result =...
41,899
https://github.com/randompaga/meiduo_mall_static_index/blob/master/mall/apps/users/views.py
Github Open Source
Open Source
MIT
null
meiduo_mall_static_index
randompaga
Python
Code
852
4,688
from django.shortcuts import render # Create your views here. from rest_framework.response import Response # from mall.apps.users.models import User 错误的 # from apps.users.models import User 错误 from goods.models import SKU from goods.serializers import SKUSerializer from users.models import User, Add...
6,998
https://github.com/Max-Meldrum/machine/blob/master/src/main/scala/se/meldrum/machine/http/RestObjects.scala
Github Open Source
Open Source
Apache-2.0
null
machine
Max-Meldrum
Scala
Code
40
113
package se.meldrum.machine.http case class UserCreation(name: String, password: String, email: String) { require(name.length < 50 && !name.isEmpty, "Non valid name") require(password.length < 50 && !password.isEmpty, "Non valid password") require(email.length < 50 && email.contains("@"), "Non valid email") } c...
9,007
https://github.com/Pearson-Higher-Ed/design/blob/master/node_modules/pearson-compounds/src/TimePicker/TimePicker.js
Github Open Source
Open Source
MIT
2,018
design
Pearson-Higher-Ed
JavaScript
Code
623
2,674
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Icon } from '../../index'; import { List } from './components/List'; import moment from 'moment'; import './TimePicker.scss'; export default class TimePicker extends Component { ...
14,964
https://github.com/knightsj/RN_Demo/blob/master/[6]. Component/entry_compoenent/WelcomePage.js
Github Open Source
Open Source
MIT
2,017
RN_Demo
knightsj
JavaScript
Code
96
344
/** * 欢迎页 * @flow * **/ import React, {Component} from 'react'; import { StyleSheet, View, Text, InteractionManager, Platform, } from 'react-native' import HomePage from './HomePage' import ThemeDao from '../../dao/ThemeDao' export default class WelcomePage extends Component { componentDid...
49,968
https://github.com/ptiede/ComradeSoss.jl/blob/master/src/bboptim.jl
Github Open Source
Open Source
MIT
2,022
ComradeSoss.jl
ptiede
Julia
Code
64
277
using .BlackBoxOptim: bboptimize, best_candidate, best_fitness export BBO Base.@kwdef struct BBO <: ComradeSoss.AbstractOptimizer tracemode::Symbol = :compact maxevals::Int = 10_000 end function optimize(opt::BBO, lj::Soss.ConditionalModel) tc = ascube(lj) lower = transform(tc, zeros(dimension(tc))) ...
44,011
https://github.com/JuliaPackageMirrors/MultidimensionalTables.jl/blob/master/src/util/setdiff.jl
Github Open Source
Open Source
MIT
2,017
MultidimensionalTables.jl
JuliaPackageMirrors
Raw token data
Code
551
1,990
""" `setdiff(dim, arr1, arr2)` Take difference of two arrays of type `LabeledArray`/`DictArray`/`AbstractArrayWrapper`. The order is preserved in the sense that the first array order is kept except that only duplicate elements in the first array have been removed. ##### Arguments * `dim` : direction along which to ...
31,773
https://github.com/DanieleScipioni/TestApp/blob/master/TestAppUWP.AppShell/Samples/Chess/ChessBoardViewModel.cs
Github Open Source
Open Source
MIT
null
TestApp
DanieleScipioni
C#
Code
357
976
using System.Collections.Generic; using System.Drawing; namespace TestAppUWP.AppShell.Samples.Chess { public class ChessBoardViewModel { public IReadOnlyList<Piece> Pieces; public ChessBoardViewModel() { Pieces = new List<Piece> { new Piece(Colo...
4,342
https://github.com/satrioadii/link-satrioadi.com/blob/master/src/components/page/home/links/index.jsx
Github Open Source
Open Source
MIT
null
link-satrioadi.com
satrioadii
null
Spoken
190
688
import React, { Fragment, useContext } from "react"; import GlobalButton from "../../../global/button"; import { DialogContextDispatch } from "../../../../providers/dialog"; import { OpenDialogAction } from "../../../../actions/dialog"; import HomeEmailDialog from "../dialog/index.email"; // primary color #2188ff // s...
19,243
https://github.com/SatYu26/DS-Algo/blob/master/Algorithmic Toolbox/week2_algorithmic_warmup/2_last_digit_of_fibonacci_number/fibonacci_last_digit.py
Github Open Source
Open Source
MIT
2,021
DS-Algo
SatYu26
Python
Code
87
272
# Uses python3 import sys def get_fibonacci_last_digit_naive(n): if n <= 1: return n previous = 0 current = 1 for _ in range(n - 1): previous, current = current, previous + current return current % 10 # https://www.geeksforgeeks.org/program-find-last-digit-nth-fibonnaci-number...
52,008
https://github.com/hugoalh/scan-virus-ghaction/blob/master/utilities.psm1
Github Open Source
Open Source
MIT
2,021
scan-virus-ghaction
hugoalh
PowerShell
Code
34
136
function Get-TSVTable { [CmdletBinding()][OutputType([pscustomobject[]])] param ( [Parameter(Mandatory = $true, Position = 0)][string]$Path ) [string[]]$Raw = Get-Content -Path $Path -Encoding UTF8NoBOM return ConvertFrom-Csv -InputObject $Raw[1..$Raw.Count] -Delimiter "`t" -Header ($Raw[0] -split "`t") } Export...
16,813
https://github.com/cetico/lit-remixicon/blob/master/svg/device/cpu-line.js
Github Open Source
Open Source
Apache-2.0
2,022
lit-remixicon
cetico
JavaScript
Code
52
238
import { svg } from 'lit'; export const file = svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <g> <path fill="none" d="M0 0h24v24H0z"/> <path d="M6 18h12V6H6v12zm8 2h-4v2H8v-2H5a1 1 0 0 1-1-1v-3H2v-2h2v-4H2V8h2V5a1 1 0 0 1 1-1h3V2h2v2h4V2h2v2h3a1 1 0 0 1 1 1v3h2v2h-2v4h2v2h-2v3a1 1...
16,733
https://github.com/arielking/unilever.gost/blob/master/Sistema.Entidades/Usuarios/Rol.cs
Github Open Source
Open Source
Apache-2.0
null
unilever.gost
arielking
C#
Code
75
175
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace Sistema.Entidades.Usuarios { public class Rol { public int idrol { get; set; } [Required] [StringLength(50, MinimumLength = 3, ErrorMessage = "El nombre...
32,891
https://github.com/hilohiro/gakubuchi/blob/master/lib/gakubuchi/configuration.rb
Github Open Source
Open Source
MIT
2,017
gakubuchi
hilohiro
Ruby
Code
25
96
module Gakubuchi class Configuration extend ::Forwardable include ::ActiveSupport::Configurable private :config def_delegator :config, :to_h config_accessor :leave_digest_named_templates do false end config_accessor :template_directory do "templates" end end end
4,118
https://github.com/verimake-team/SparkRoad-V/blob/master/demo_v_5_6/12_game/sources/rtl/vga/vram.v
Github Open Source
Open Source
MIT
2,023
SparkRoad-V
verimake-team
Verilog
Code
383
1,432
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: // Design Name: // Module Name: vram // Project Name: // Target Devices: // Tool Versions: // Description: // // Dependencies: // // Revision: // Revision 0.01 -...
13,308
https://github.com/networkhermit/algorithm/blob/master/nodejs/muse/algorithms/number_theory/LeastCommonMultipleTest.js
Github Open Source
Open Source
MIT
null
algorithm
networkhermit
JavaScript
Code
559
2,253
"use strict" const LeastCommonMultiple = require("muse/algorithms/number_theory/LeastCommonMultiple") const TestRunner = require("muse/util/TestRunner") const testLeastCommonMultiple = () => { let sample = [ [ 1, 1, 1], [ -1, -1, 1], [ -85, ...
28,467
https://github.com/vkumbhar94/k8s-logicmonitor-adapter/blob/master/go.mod
Github Open Source
Open Source
Apache-2.0
2,020
k8s-logicmonitor-adapter
vkumbhar94
Go Module
Code
95
629
module github.com/kaladaOpuiyo/k8s-logicmonitor-adapter go 1.13 require ( github.com/NYTimes/gziphandler v1.0.1 // indirect github.com/go-openapi/errors v0.19.4 // indirect github.com/go-openapi/runtime v0.19.15 // indirect github.com/go-openapi/strfmt v0.19.5 // indirect github.com/go-openapi/validate v0.19.8 /...
36,718
https://github.com/tupilabs/cjan.org/blob/master/application/hooks/Template.php
Github Open Source
Open Source
LicenseRef-scancode-other-permissive
2,012
cjan.org
tupilabs
PHP
Code
453
1,339
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Template class. * * @package hooks * @description Implements the template views in the framework. */ class Template { /** * Reference for base URL. * @var string|URL */ public $base_url; /** * CI index page. ...
43,751
https://github.com/miralsuthar/tip.party/blob/master/packages/react-app/src/themes/dark-theme.less
Github Open Source
Open Source
MIT
2,021
tip.party
miralsuthar
Less
Code
49
252
@import "~antd/lib/style/color/colorPalette.less"; @import "~antd/dist/antd.less"; @import "~antd/lib/style/themes/dark.less"; // These are shared variables that can be extracted to their own file @primary-color: #6F3FF5; @border-radius-base: 4px; @component-background: #0B0228; @body-background: #0B0228; @popover-ba...
6,618
https://github.com/wix-playground/intellij/blob/master/base/tests/utils/integration/com/google/idea/blaze/base/lang/buildfile/BuildFileIntegrationTestCase.java
Github Open Source
Open Source
Apache-2.0
2,023
intellij
wix-playground
Java
Code
252
806
/* * Copyright 2016 The Bazel 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 a...
9,210
https://github.com/coloringa/brxjs/blob/master/compat/observable/scalar.ts
Github Open Source
Open Source
Apache-2.0
null
brxjs
coloringa
TypeScript
Code
6
16
export { scalar } from 'rxjs/internal-compatibility';
3,104
https://github.com/abraaolevi/LayoutItKit/blob/master/Tests/LinuxMain.swift
Github Open Source
Open Source
MIT
null
LayoutItKit
abraaolevi
Swift
Code
10
65
import XCTest @testable import LayoutItKitTests XCTMain([ testCase(LayoutItKitTests.allTests), testCase(UILabelTests.allTests), testCase(UIStackViewTests.allTests), ])
33,895
https://github.com/TheOriginalGolem/OpenComputers/blob/master/src/main/scala/li/cil/oc/client/renderer/block/DroneModel.scala
Github Open Source
Open Source
CC0-1.0
null
OpenComputers
TheOriginalGolem
Scala
Code
197
671
package li.cil.oc.client.renderer.block import java.util import java.util.Collections import li.cil.oc.client.Textures import net.minecraft.block.state.IBlockState import net.minecraft.client.renderer.block.model.BakedQuad import net.minecraft.client.renderer.block.model.IBakedModel import net.minecraft.client.render...
25,849
https://github.com/karant17/Internet-of-Things-Programming-with-Javascript/blob/master/Chapter06/Control and monitor devices/views/interface.jade
Github Open Source
Open Source
MIT
2,021
Internet-of-Things-Programming-with-Javascript
karant17
null
Spoken
76
441
doctype html head title Control and monitoring link(rel='stylesheet', href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css") link(rel='stylesheet', href="/css/interface.css") meta(name='viewport', content='width=device-width, initial-scale=1') script(src="https://code.jqu...
22,196
https://github.com/kangkg/dbc-wikipedia-clone/blob/master/app/controllers/revisions_controller.rb
Github Open Source
Open Source
MIT
2,017
dbc-wikipedia-clone
kangkg
Ruby
Code
84
355
class RevisionsController < ApplicationController def index @article = Article.find(params[:article_id]) @revisions =@article.revisions @current_revision = @revisions.last @original = @revisions.reverse.last end def new article = Article.find(params[:article_id]) redirect_to article if !...
15,142
https://github.com/kirilmiletiev/MERN/blob/master/src/client/mern/src/tests/sum/sum.js
Github Open Source
Open Source
MIT
null
MERN
kirilmiletiev
JavaScript
Code
10
29
function sumTwoNumbers(a,b){ return a + b; } export default sumTwoNumbers;
31,307