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/godatadriven/dbt-data-ai-summ/blob/master/models/orders.sql
Github Open Source
Open Source
Apache-2.0
2,021
dbt-data-ai-summ
godatadriven
SQL
Code
100
204
{{ config( materialized='table', file_format='delta' ) }} -- Usually this would be an external table or so, that will read the data -- from some landing zone that is, for example being fed by CDC -- Right now just make up some data :) {% for order_number in range(100) %} SELECT {{ order_number }}...
47,999
https://github.com/phatblat/macOSPrivateFrameworks/blob/master/PrivateFrameworks/PassKitCore/PKObject.h
Github Open Source
Open Source
MIT
2,022
macOSPrivateFrameworks
phatblat
C
Code
290
1,408
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "NSCopying.h" #import "NSSecureCoding.h" @class NSData, NSString, NSURL, PKContent, PKDataAccessor, PKDisplayProfile, PKImageSet; @interface PKObject...
50,442
https://github.com/patrickschneider23/hhvm/blob/master/hphp/hack/test/typecheck/shape_idx3.php
Github Open Source
Open Source
PHP-3.01, BSD-3-Clause, Zend-2.0
2,015
hhvm
patrickschneider23
Hack
Code
28
61
<?hh // strict type s = shape('x' => int); /** * Default has the wrong type */ function test(s $s, string $default): void { Shapes::idx($s, 'x', $default); }
21,953
https://github.com/halotroop2288/consulo/blob/master/modules/base/built-in-server-impl/src/main/java/consulo/builtInServer/impl/net/http/SubServer.java
Github Open Source
Open Source
Apache-2.0
2,022
consulo
halotroop2288
Java
Code
382
1,273
/* * Copyright 2000-2015 JetBrains s.r.o. * * 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 agre...
1,924
https://github.com/BlauGroup/HiPRGen/blob/master/HiPRGen/report_generator.py
Github Open Source
Open Source
BSD-3-Clause-LBNL
2,022
HiPRGen
BlauGroup
Python
Code
357
1,818
import networkx as nx from copy import deepcopy from pathlib import Path from HiPRGen.logging import log_message atom_colors = { "H": "gray", "C": "black", "Li": "purple", "B": "orange", "N": "blue", "O": "red", "F": "green4", "Mg": "green", "P": "darkorange", "S": "yellow", ...
12,480
https://github.com/jvelascovanadis/RepositoryWithResourcesExample/blob/master/RepositoryWithResourcesExample/classes/TermsVC.m
Github Open Source
Open Source
MIT
2,015
RepositoryWithResourcesExample
jvelascovanadis
Objective-C
Code
274
940
// // TermsVC.m // Bizzibility // // Created by jorge Velasco on 16/09/14. // Copyright (c) 2014 Vanadis. All rights reserved. // #import "TermsVC.h" //#import "SlideMenuController.h" @interface TermsVC () @end @implementation TermsVC @synthesize delegate; - (id)initWithNibName:(NSString *)nibNameOrNil bundl...
47,276
https://github.com/ruby/tk/blob/master/sample/tkextlib/tcllib/datefield.rb
Github Open Source
Open Source
TCL, BSD-2-Clause, Ruby
2,023
tk
ruby
Ruby
Code
52
292
#!/usr/bin/ruby # frozen_string_literal: false require 'tk' require 'tkextlib/tcllib/datefield' require 'parsedate' Tk.root.title('Datefield example') my_date1 = TkVariable.new my_date2 = TkVariable.new my_date1.trace('w'){ begin t = Time.local(*(ParseDate.parsedate(my_date1.value))) my_date2.value = t.st...
30,471
https://github.com/kelvin943/ZQDemoWeek/blob/master/Pods/PAFoundation/Common/Classes/Other/PAPlistManager.h
Github Open Source
Open Source
MIT
2,018
ZQDemoWeek
kelvin943
Objective-C
Code
91
322
// // PAPlistManager.h // // Created by luochenhao on 10/4/11. // Copyright 2011 平安好房. All rights reserved. // #import <Foundation/Foundation.h> @interface PAPlistManager : NSObject @property (nonatomic, copy, readonly) NSString *fileName; // 文件名,不带后缀 @property (nonatomic, strong) id listData; ...
20,360
https://github.com/sgol13/evolution-simulator/blob/master/app/src/main/java/sgol13/evolution/simulator/simulation/RectangularMap.java
Github Open Source
Open Source
MIT
null
evolution-simulator
sgol13
Java
Code
559
1,786
// Szymon Golebiowski // Evolution Simulator package sgol13.evolution.simulator.simulation; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.Random; import sgol13.evolution.simulator.snapshots.MapSnapsh...
32,290
https://github.com/colonialasiantheatre/colonialasiantheatre.github.io/blob/master/styles.scss
Github Open Source
Open Source
MIT
null
colonialasiantheatre.github.io
colonialasiantheatre
SCSS
Code
209
578
--- # Use a comment to ensure Jekyll reads the file to be transformed into CSS later # only main files contain this front matter, not partials. --- // // ___ // /\_ \ // _____ ___ ___\//\ \ __ // /\ '__`\ / __`\ / __`\\ \ \ /'__`\ // \ \ \_\ \/\ \_\ \/\ \_...
4,151
https://github.com/manachyn/imshop/blob/master/modules/users/src/clients/Facebook.php
Github Open Source
Open Source
BSD-3-Clause
2,018
imshop
manachyn
PHP
Code
69
242
<?php namespace im\users\clients; use yii\authclient\clients\Facebook as BaseFacebook; class Facebook extends BaseFacebook implements ClientInterface { /** * @inheritdoc */ public $scope = 'public_profile email'; /** * @inheritdoc */ public function getEmail() { retur...
30,904
https://github.com/panosoft/elm-aws-s3/blob/master/main.js
Github Open Source
Open Source
Unlicense
2,021
elm-aws-s3
panosoft
JavaScript
Code
170
459
// compile with: // elm make Test/App.elm --output elm.js // load Elm module const elm = require('./elm.js'); // run with: // node main.js <aws accessKeyId> <aws secretAccessKey> --debug --dry-run // // --debug and --dry-run parameters are optional. // if --debug is specified, then debug log...
44,678
https://github.com/tensil-ai/tensil/blob/master/web/src/tensil/tools/web/Main.scala
Github Open Source
Open Source
Apache-2.0
2,022
tensil
tensil-ai
Scala
Code
571
2,367
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright © 2019-2022 Tensil AI Company */ package tensil.tools.web import upickle.default.{ReadWriter, macroRW} import upickle.implicits.key import tensil.{Architecture, ArchitectureDataType} import tensil.tools.{Compiler, CompilerOptions} import awscala._, sqs._, dynam...
37,908
https://github.com/iolugovoy/generator-static-site/blob/master/app/templates/src/static/jade/_layouts/base.jade
Github Open Source
Open Source
MIT
null
generator-static-site
iolugovoy
null
Spoken
146
785
//- Custom Configuration block config //- Setup site's base URL to match the "baseUrl" key within `package.json` //- Otherwise default to relative pathing - var baseUrl = config.baseUrl || './' doctype html <html class='no-js' lang='en'> head meta(charset='utf-8') meta(http-equiv='X-UA-Compatible', content=...
24,810
https://github.com/jenkinsci/eiffel-broadcaster-plugin/blob/master/src/test/java/com/axis/jenkins/plugins/eiffel/eiffelbroadcaster/pipeline/SendEiffelEventStepTest.java
Github Open Source
Open Source
MIT
2,023
eiffel-broadcaster-plugin
jenkinsci
Java
Code
567
2,516
/** The MIT License Copyright 2021 Axis Communications AB. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
6,175
https://github.com/alvesmarcel/V-Voice-Changer/blob/master/V Voice Changer/Controller/AudioProcessor/Effects/Effect.swift
Github Open Source
Open Source
MIT
2,021
V-Voice-Changer
alvesmarcel
Swift
Code
24
50
import AVFoundation protocol Effect { var name: EffectFactory.EffectName { get } var rate: Double { get } var audioUnits: [AVAudioUnit] { get } }
47,711
https://github.com/iAJTin/iIIS/blob/master/src/lib/iTin.Core/iTin.Core/Extensions/EnumExtensions.cs
Github Open Source
Open Source
MIT
2,022
iIIS
iAJTin
C#
Code
697
2,192
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using iTin.Core.ComponentModel; using iTin.Core.Helpers; using iTin.Logging; namespace iTin.Core { /// <summary> /// Static class than contains extension methods for items of type <see cre...
17,276
https://github.com/agrazda/basic-auth/blob/master/models/users.js
Github Open Source
Open Source
MIT
2,021
basic-auth
agrazda
JavaScript
Code
34
91
'use strict' // const Users = sequelize.define('User', { // username: { // type: DataTypes.STRING, // allowNull: false, // }, // password: { // type: DataTypes.STRING, // allowNull: false, // } // }); // module.export(U)
23,736
https://github.com/ChrisMcKenzie/preflight/blob/master/config/parse.go
Github Open Source
Open Source
Apache-2.0
2,017
preflight
ChrisMcKenzie
Go
Code
463
1,346
package config import ( fmt "fmt" strings "strings" "github.com/ChrisMcKenzie/preflight/plugin" "github.com/ChrisMcKenzie/preflight/plugin/registry" "github.com/hashicorp/hcl" "github.com/hashicorp/hcl/hcl/ast" ) // Marshaller defines an HCL marshall for plugins to customize how they are parsed type Marshaller...
30,565
https://github.com/AminulCSE/LaravelAmiconManagementProject/blob/master/app/Http/Controllers/HomeController.php
Github Open Source
Open Source
MIT
null
LaravelAmiconManagementProject
AminulCSE
PHP
Code
118
416
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); } /** * Show the application...
44,948
https://github.com/decdl/doodle/blob/master/Doodle.cpp
Github Open Source
Open Source
Unlicense
null
doodle
decdl
C++
Code
15
63
#include "prec.h" IMPLEMENT_APP(Doodle); bool Doodle::OnInit() { DoodleFrame *frame = new DoodleFrame; frame->Show(true); return true; }
43,267
https://github.com/nighthawkcoders/stack-the-store/blob/master/stackFoodGame/Custom Classes/order.swift
Github Open Source
Open Source
MIT
null
stack-the-store
nighthawkcoders
Swift
Code
75
229
// // order.swift // stackFoodGame // // Created by Nathan on 5/15/20. // Copyright © 2020 Michael Hayes. All rights reserved. // import Foundation import UIKit class Order { var imgNames: [String] var curBurger: [String] = [] var order: [String:Int] = [:] init(names:[String], nums...
18,219
https://github.com/axela-cc/cranelift/blob/master/cranelift-codegen/meta-python/gen_settings.py
Github Open Source
Open Source
LLVM-exception, Apache-2.0
2,019
cranelift
axela-cc
Python
Code
998
3,899
""" Generate sources with settings. """ from __future__ import absolute_import import srcgen from unique_table import UniqueSeqTable import constant_hash from cdsl import camel_case from cdsl.settings import BoolSetting, NumSetting, EnumSetting from base import settings try: from typing import Sequence, Set, Tuple...
43,103
https://github.com/lolzballs/wayal/blob/master/include/wayal.h
Github Open Source
Open Source
MIT
2,020
wayal
lolzballs
C
Code
136
528
#ifndef _WAYAL_H #define _WAYAL_h #include <stdbool.h> #include <stdint.h> #include <cairo/cairo.h> #include <pango/pangocairo.h> #include <wayland-client.h> #include "input.h" #include "window.h" struct wayal_geom { uint32_t width; uint32_t height; uint32_t stride; uint32_t size; }; struct wayal_t...
5,213
https://github.com/szhengye/Biz-SIP-Cloud/blob/master/server-adaptor-spring-boot-starter/src/main/java/com/bizmda/bizsip/serveradaptor/protocol/netty/NettyClientHandler.java
Github Open Source
Open Source
Apache-2.0
2,021
Biz-SIP-Cloud
szhengye
Java
Code
90
370
package com.bizmda.bizsip.serveradaptor.protocol.netty; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; import io.netty.util.AttributeKey; import lombok.extern.slf4j.Slf4j; import java.nio.charset.Charset; /** * @author 史正烨 */ @Sl...
40,918
https://github.com/dimitri-yatsenko/trippy-monet/blob/master/python/examples/trippy_synthesis.py
Github Open Source
Open Source
MIT
2,020
trippy-monet
dimitri-yatsenko
Python
Code
22
54
""" create a trippy stimulus with default settings and save it into ./Trippy.mp4 """ import monet_trippy as mt trippy = mt.Trippy() trippy.export(quality=7.5)
7,393
https://github.com/MinKim5/FRC-2016/blob/master/2016 FRC Java/src/org/usfirst/frc/team2583/robot/commands/JoystickDrive.java
Github Open Source
Open Source
MIT
2,016
FRC-2016
MinKim5
Java
Code
127
338
package org.usfirst.frc.team2583.robot.commands; import org.usfirst.frc.team2583.robot.OI; import org.usfirst.frc.team2583.robot.subsystems.DriveBase; import edu.wpi.first.wpilibj.command.Command; /** * */ public class JoystickDrive extends Command { private final OI oi; private final DriveBase base; publ...
40,285
https://github.com/AnasNeumann/heuristic-analysis/blob/master/mqt-8100-ws/src/main/java/com/mqt/pojo/dto/SingleSignTestDto.java
Github Open Source
Open Source
MIT
2,022
heuristic-analysis
AnasNeumann
Java
Code
189
477
package com.mqt.pojo.dto; import com.mqt.pojo.AbstractResource; /** * DTO pour le test du sign entre 2 heuristiques * @author Anas Neumann <anas.neumann.isamm@gmail.com> * @since 10/02/2019 * @version 1.0 */ public class SingleSignTestDto extends AbstractResource { private static final long serialVersionUID = 1...
42,377
https://github.com/hidekatsu-izuno/darts-clone-java/blob/master/src/main/java/net/arnx/dartsclone/internal/DoubleArrayBuilder.java
Github Open Source
Open Source
Apache-2.0
2,021
darts-clone-java
hidekatsu-izuno
Java
Code
1,017
3,205
/* * Copyright 2018 Hidekatsu Izuno <hidekatsu.izuno@gmail.com> * * 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 requ...
27,794
https://github.com/allanfish/facetime-demo/blob/master/oatos_project/oatos_web/oatos_web/src/main/webapp/assets/js/sea/modules/base/0.9.16/base-debug.js
Github Open Source
Open Source
MIT
2,016
facetime-demo
allanfish
JavaScript
Code
72
312
define("#base/0.9.16/base-debug", ["#class/0.9.2/class-debug", "#events/0.9.1/events-debug", "#base/0.9.16/aspect-debug", "#base/0.9.16/attribute-debug"], function(require, exports, module) { // Base // --------- // Base 是一个基础类,提供 Class、Events、Attrs 和 Aspect 支持。 var Class = require("#class/0.9.2/clas...
12,171
https://github.com/geodreamalpha/geodreamalpha/blob/master/desktop/Unity/Assets/AltUnityTester/AltUnityServer/Commands/UnityCommands/AltUnitySetTimeScaleCommand.cs
Github Open Source
Open Source
MIT
null
geodreamalpha
geodreamalpha
C#
Code
38
144
using Newtonsoft.Json; namespace Assets.AltUnityTester.AltUnityServer.Commands { class AltUnitySetTimeScaleCommand : AltUnityCommand { readonly float timeScale; public AltUnitySetTimeScaleCommand(params string[] parameters) : base(parameters, 3) { this.timeScale = JsonConv...
18,941
https://github.com/MIchaelMainer/msgraph-v10-models-python/blob/master/models/windows_update_scheduled_install.py
Github Open Source
Open Source
MIT
2,021
msgraph-v10-models-python
MIchaelMainer
Python
Code
143
586
# -*- coding: utf-8 -*- ''' # Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. # # This file was generated and any changes will be overwritten. ''' from __future__ import unicode_literals from ..model.weekly_schedul...
7,481
https://github.com/SkillsFundingAgency/dfc-app-jobprofile-skills/blob/master/DFC.App.JobProfileSkills.IntegrationTests/ControllerTests/SegmentControllerRouteDeleteTests.cs
Github Open Source
Open Source
MIT
2,019
dfc-app-jobprofile-skills
SkillsFundingAgency
C#
Code
150
625
using DFC.App.JobProfileSkills.Data.Models; using DFC.App.JobProfileSkills.IntegrationTests.Data; using FluentAssertions; using System; using System.Net; using System.Net.Http; using System.Net.Http.Formatting; using System.Threading.Tasks; using Xunit; namespace DFC.App.JobProfileSkills.IntegrationTests.ControllerTe...
38,765
https://github.com/honggui/lullaby/blob/master/lullaby/modules/manipulator/scaling_manipulator.h
Github Open Source
Open Source
Apache-2.0
2,022
lullaby
honggui
C++
Code
238
685
/* Copyright 2017-2019 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
13,319
https://github.com/Adconsulting/BaseSolution/blob/master/BaselineSolution.WebApp.Components/HtmlHelpers/Forms/SelectForHelper.cs
Github Open Source
Open Source
MIT
2,018
BaseSolution
Adconsulting
C#
Code
1,168
3,182
using System; using System.Collections.Generic; using System.Linq.Expressions; using System.Web.Mvc; using System.Web.Mvc.Html; using BaselineSolution.Framework.Infrastructure.Attributes; using BaselineSolution.Framework.Infrastructure.Contracts; using BaselineSolution.WebApp.Components.Models.SelectLists; namespace ...
26,289
https://github.com/vamsi3/IITB-Operating-Systems/blob/master/Lab 9/160050064_lab9/nlocks.c
Github Open Source
Open Source
MIT
2,022
IITB-Operating-Systems
vamsi3
C
Code
131
594
#include <pthread.h> #include <stdio.h> #include <stdlib.h> #define NTHREADS 10 long int counter[NTHREADS] = {0}; pthread_mutex_t lock[NTHREADS]; void *myThread(void *thread_id_ptr) { int thread_id = *((int *) thread_id_ptr); for(int i=0; i<1000; i++) { pthread_mutex_lock(&lock[thread_id]); counter[thread_id]+...
27,399
https://github.com/Tazri/Python/blob/master/9.dictionaries/5.traverse_dictionary.py
Github Open Source
Open Source
DOC
null
Python
Tazri
Python
Code
43
107
# create simple dictionary person = { 'name' : 'tazri', 'age' : 17, 'height' : '5foot 1inch', 'fevorite subject' : 'science', 'color' : 'aliceblue' } # print all key print(">>> Peson Key <<<"); for key in person : print("> ",key); print(">>> Finish <<<");
14,395
https://github.com/x1nchen/leetcode-go/blob/master/problems/p015/main.go
Github Open Source
Open Source
MIT
2,020
leetcode-go
x1nchen
Go
Code
170
486
package p015 func threeSum(nums []int) [][]int { r := [][]int{} insertSort(nums) for k := 0; k < len(nums); k++ { if nums[k] > 0 { // 排序后,fixed 的数不能是正数 break } if k > 0 && nums[k] == nums[k-1] { // fixed 的数字只需要一次 continue } target := 0 - nums[k] i := k + 1 j := len(nums) - 1 for i < j { i...
35,486
https://github.com/EricGrivilers/chords-db/blob/master/src/db/guitar/chords/Eb/_Db.js
Github Open Source
Open Source
MIT
null
chords-db
EricGrivilers
JavaScript
Code
17
54
export default { key: 'Eb', suffix: '/Db', positions: [ { frets: 'x45343', fingers: '024131' } ] };
5,326
https://github.com/JamiesWhiteShirt/clothesline-fabric/blob/master/src/main/java/com/jamieswhiteshirt/clothesline/api/client/RichInteractionType.java
Github Open Source
Open Source
MIT
2,020
clothesline-fabric
JamiesWhiteShirt
Java
Code
10
60
package com.jamieswhiteshirt.clothesline.api.client; public enum RichInteractionType { NONE, ROTATE_CLOCKWISE, ROTATE_COUNTER_CLOCKWISE }
38,710
https://github.com/shalabhvyas/codepens/blob/master/statistics-chart/index.jade
Github Open Source
Open Source
MIT
null
codepens
shalabhvyas
null
Spoken
29
120
doctype html html(lang="en") head title Statistics Chart link(rel='stylesheet', href = 'statistics-chart.css') script(src='statistics-chart.js', type = 'text/javascript') body(ng-app="myApp") h2 Top Snowfall at U.S. Ski Resorts (source: onthesnow.com) div(area-chart style='width:80%;height:300px...
48,729
https://github.com/CaptorAB/swift-mock/blob/master/lib/swift.js
Github Open Source
Open Source
MIT
null
swift-mock
CaptorAB
JavaScript
Code
542
1,779
const fs = require('fs'); const path = require('path'); const chokidar = require('chokidar'); const moment = require('moment'); const patterns = require('./metadata/patterns.json'); const messageGenerator = require('./messageGenerator'); const SwiftParser = require('./swiftParser'); const { Logger, mkDirByPathSync } = ...
21,653
https://github.com/Lutwidse/Blockchain-PoW/blob/master/Blockchain.jl
Github Open Source
Open Source
MIT
2,022
Blockchain-PoW
Lutwidse
Julia
Code
848
2,625
using Dates using SHA, UUIDs, Random using Genie, Genie.Router, Genie.Requests using JSON, HTTP using DataStructures using URIs mutable struct Blockchain chain::Array current_transactions::Array nodes::Set end function generate_genesis_block(bc::Blockchain) println("[BLOCKCHAIN] > ", "Initializing cha...
26,799
https://github.com/sschilbe/ENGG4000_Firmware/blob/master/Wearable_Firmware.cydsn/imu_LSM6DS3.c
Github Open Source
Open Source
MIT
2,020
ENGG4000_Firmware
sschilbe
C
Code
867
3,237
/** * * @file * imu_LSM6DS3.c * * @brief * Implementation for controlling the IMU over I2C * * Note: This implementation is heavily influenced by the Arduino library * available for this component, supplied by Sparkfun * * Author: Schilbe, Seth *Date: 2019 - 02 - 19 */ /*-----------------------------------------------...
52,687
https://github.com/navicore/augie/blob/master/Augmatic/src/main/java/com/onextent/augmatic/DeleteModeDialog.java
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause
null
augie
navicore
Java
Code
312
1,162
package com.onextent.augmatic; import java.util.ArrayList; import java.util.List; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.Bundle; import com.onextent.android.codeable.Code; import com.onextent.android.code...
20,102
https://github.com/coon-js/siesta-lib-helper/blob/master/src/BoilerPlate.js
Github Open Source
Open Source
MIT
null
siesta-lib-helper
coon-js
JavaScript
Code
442
1,190
/** * coon.js * siesta-lib-helper * Copyright (C) 2021 Thorsten Suckow-Homberg https://github.com/coon-js/siesta-lib-helper * * 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 re...
5,458
https://github.com/briannzw/Survival-Shooter/blob/master/Assets/Scripts/Follow.cs
Github Open Source
Open Source
MIT
null
Survival-Shooter
briannzw
C#
Code
69
209
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Follow : MonoBehaviour { public Transform target; public float minModifier; public float maxModifier; public float maxSpeed; Vector3 _velocity = Vector3.zero; bool _isFollowing = false; private vo...
4,593
https://github.com/thinkl33t/ESP32-platform-firmware/blob/master/firmware/python_modules/disobey2020/factory.py
Github Open Source
Open Source
Apache-2.0
2,019
ESP32-platform-firmware
thinkl33t
Python
Code
10
50
import display display.drawText(0, 0, "Hello world", 0xFFFFFF, "7x5") display.drawLine(0,0,128,64,0xFFFFFF) display.flush()
23,069
https://github.com/wangyida/softpool/blob/master/benchmark/grnet.py
Github Open Source
Open Source
Apache-2.0
2,022
softpool
wangyida
Python
Code
617
3,123
# -*- coding: utf-8 -*- # @Author: Haozhe Xie # @Date: 2019-09-06 11:35:30 # @Last Modified by: Haozhe Xie # @Last Modified time: 2020-02-22 19:20:36 # @Email: cshzxie@gmail.com import torch import sys sys.path.append("../") from extensions.gridding import Gridding, GriddingReverse from extensions.cubic_feature_...
1,472
https://github.com/pagotti/apex-exemplo/blob/master/ExemploEF/ExemploEF/Migrations/20200207001221_fichas.cs
Github Open Source
Open Source
MIT
2,019
apex-exemplo
pagotti
C#
Code
98
368
using System; using Microsoft.EntityFrameworkCore.Migrations; namespace ExemploEF.Migrations { public partial class fichas : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Fichas", col...
5,516
https://github.com/bilsaboob/nemerle/blob/master/snippets/aop/src/ftests/args/property_setter_positive.n
Github Open Source
Open Source
BSD-2-Clause
2,019
nemerle
bilsaboob
null
Spoken
58
177
using Nemerle.Aop; using Nemerle.IO; public class Foo { mutable _property_val: int; public Property: int { set { _property_val = value; print("Property\n"); } } public static Main(): void { Foo().Property = 1; } } [aspect()] public class Aspe...
11,944
https://github.com/tonystark2005/YouTube-Clone/blob/master/src/components/UI.jsx
Github Open Source
Open Source
MIT
null
YouTube-Clone
tonystark2005
null
Spoken
287
958
import React, { useState } from "react"; import { Container, TextField, Button, Grid, Typography } from "@material-ui/core"; //import "./Styles/Login.css"; import { Link } from "react-router-dom"; const Section = ({ section, index, removeSection }) => { return ( <Grid container spacing={2}> <Grid...
1,008
https://github.com/dgorbach/fido2-net-lib/blob/master/Test/Attestation/FidoU2f.cs
Github Open Source
Open Source
MIT
null
fido2-net-lib
dgorbach
C#
Code
478
2,431
using System; using System.Linq; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using fido2_net_lib.Test; using Fido2NetLib; using Fido2NetLib.Objects; using PeterO.Cbor; using Xunit; namespace Test.Attestation { public class FidoU2f : Fido2Tests.Attestation { ...
9,404
https://github.com/CaesarChan/LeetCode-1/blob/master/0226/code.go
Github Open Source
Open Source
Unlicense
2,022
LeetCode-1
CaesarChan
Go
Code
132
261
// 226. Invert Binary Tree // Invert a binary tree. // Example: // Input: // 4 // / \ // 2 7 // / \ / \ // 1 3 6 9 // Output: // 4 // / \ // 7 2 // / \ / \ // 9 6 3 1 // Trivia: // This problem was inspired by this original tweet by Max Howell: // Google: 90% of our engi...
34,191
https://github.com/eenurkka/incubator-nuttx/blob/master/fs/vfs/fs_ioctl.c
Github Open Source
Open Source
Apache-2.0
2,022
incubator-nuttx
eenurkka
C
Code
756
1,777
/**************************************************************************** * fs/vfs/fs_ioctl.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The...
29,719
https://github.com/svanderburg/php-sbpagemanager/blob/master/example/sql/createdb.sql
Github Open Source
Open Source
Apache-2.0
null
php-sbpagemanager
svanderburg
SQL
Code
305
882
create table albums ( ALBUM_ID VARCHAR(255) NOT NULL check(ALBUM_ID <> ''), Title VARCHAR(255) NOT NULL check(Title <> ''), Visible TINYINT NOT NULL, Description VARCHAR(255), Ordering INTEGER NOT NULL, PRIMARY KEY(ALBUM_ID) ); create index album_o...
7,467
https://github.com/gabrieloc/Retired/blob/master/Sources/Retired.h
Github Open Source
Open Source
MIT
2,019
Retired
gabrieloc
C
Code
46
111
// // Retired.h // Retired // // Created by David Muto on 2016-03-30. // Copyright © 2016 pseudomuto. All rights reserved. // @import Foundation; //! Project version number for Retired iOS. FOUNDATION_EXPORT double RetiredVersionNumber; //! Project version string for Retired iOS. FOUNDATION_EXPORT const unsigned...
29,792
https://github.com/moxiu-fe/electron-vue-ts/blob/master/.npmrc
Github Open Source
Open Source
MIT
2,021
electron-vue-ts
moxiu-fe
null
Spoken
42
250
registry=https://registry.yarnpkg.com # Electron 的版本。 export npm_config_target=11.4.1 # Electron的目标架构, 可用的架构列表请参见 # https://electronjs.org/docs/tutorial/support#supported-platforms export npm_config_arch=x64 export npm_config_target_arch=x64 # 下载 Electron 的 headers。 export npm_config_disturl=https://electronjs.org/h...
6,080
https://github.com/P79N6A/demo/blob/master/72-VideoPlayer_ PLPlayerKit/Pods/Headers/Public/PLPlayerKit/PLPlayerEnv.h
Github Open Source
Open Source
Apache-2.0
2,018
demo
P79N6A
C
Code
1
22
../../../PLPlayerKit/Pod/Library/include/PLPlayerKit/PLPlayerEnv.h
21,220
https://github.com/elkad/clayful-thunder/blob/master/app/modules/order-detail/style.mobile.scss
Github Open Source
Open Source
MIT
2,021
clayful-thunder
elkad
SCSS
Code
203
947
@include responsive(mobile) { .thunder--order-detail { .thunder--order-primary-info { .thunder--order-basic-info { width: 100%; } .thunder--order-item-details { margin-right: 0; width: 100%; .thunder--cart-items { tfoot { display: table; width: 100%; tr { ...
14,818
https://github.com/ramprasadm1986/cordova-stripe-payments/blob/master/src/android/StripePluginUtils.java
Github Open Source
Open Source
Apache-2.0
null
cordova-stripe-payments
ramprasadm1986
Java
Code
168
546
package com.ramprasad.plugins.stripe; import android.util.Log; import org.json.JSONException; import org.json.JSONObject; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import com.stripe.android.model.Source; import com.stripe.android.model.SourceCardData; public class StripePluginUtil...
1,336
https://github.com/thawkins/testlinkapi/blob/master/src/Entities/PlanTestCaseInstance.php
Github Open Source
Open Source
MIT
null
testlinkapi
thawkins
PHP
Code
125
422
<?php namespace thawkins\TestLinkAPI\Entities; class PlanTestCaseInstance extends BaseEntity { const STATUS_FAIL = "f"; const STATUS_SUCCESS= "p"; const STATUS_BLOCK = "b"; const STATUS_INCOMPLETE = "n"; /** @var Platform */ protected $platform; /** @var Build */ protected $build; /** @var PlanTestCase */ ...
52,147
https://github.com/satyanarain/afcqixtix/blob/master/resources/views/waybills/editform.blade.php
Github Open Source
Open Source
MIT
2,019
afcqixtix
satyanarain
Blade
Code
608
2,826
<div class="form-group "> {!! Form::label('date', Lang::get('Departure Date'), ['class' => 'col-md-3 control-label','for'=>'dtp_input1']) !!} <div class="col-md-9 col-sm-12"> <div class="input-group date form_datetime col-md-10" data-date="" data-date-format="dd MM yyyy - HH:ii p" data-link-field="dtp_...
45,793
https://github.com/davidkelley/aws-pipeline-deployments/blob/master/__tests__/__utils__/setup.js
Github Open Source
Open Source
MIT
2,020
aws-pipeline-deployments
davidkelley
JavaScript
Code
12
72
process.env.LOG_LEVEL = 'fatal'; process.env.AWS_REGION = 'us-east-1'; process.env.GITHUB_TOKEN = '/path/to/token'; process.env.ENVIRONMENT_NAME = 'environment-name';
38,721
https://github.com/chuckWu1989/ali-exam/blob/master/demo/routes/Home/index.js
Github Open Source
Open Source
MIT
2,019
ali-exam
chuckWu1989
JavaScript
Code
62
244
import React from 'react'; import Ipv4Converter from '../../../src/containers/Ipv4ConverterContainer'; import TrafficLight from '../../../src/components/TrafficLight'; import ReduxTrafficLight from '../../../src/containers/ReduxTrafficLightContainer'; import './style.less'; const Ipv4ToInt = () => ( <div className="...
41,572
https://github.com/horaciogithub/feelgood/blob/master/js/showAdittionalForm.js
Github Open Source
Open Source
MIT
2,018
feelgood
horaciogithub
JavaScript
Code
112
425
// Formulario adicional para el cliente function mostrarFormulario() { var usuarioSeleccionado = document.getElementById("tipo-usuario"); var formularioCliente = document.getElementById("formulario-cliente"); if (usuarioSeleccionado.options[usuarioSeleccionado.selectedIndex].value == "cliente") { formularioCli...
32,833
https://github.com/Deepakdubey90/cron-descriptor/blob/master/examples/crontabReader.py
Github Open Source
Open Source
MIT
2,018
cron-descriptor
Deepakdubey90
Python
Code
117
500
import re try: from cron_descriptor import Options, ExpressionDescriptor except ImportError: print('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!') print('\033[1mFailed to import cron_descriptor, maybe ? "pip install cron-descriptor ?"\033[0m') print('!!!!!!!!!...
7,702
https://github.com/karllegend/RDA5807/blob/master/extras/apidoc/html/search/groups_1.js
Github Open Source
Open Source
MIT
2,021
RDA5807
karllegend
JavaScript
Code
6
42
var searchData= [ ['rds_20functions_322',['RDS Functions',['../group___g_a04.html',1,'']]] ];
15,060
https://github.com/gears-project/gears-core-rust/blob/master/src/generation/xflow_to_dot.rs
Github Open Source
Open Source
MIT
2,021
gears-core-rust
gears-project
Rust
Code
144
501
use crate::structure::xflow::*; pub fn output(doc: &XFlowDocument) -> String { build_graph(&doc) } fn build_graph(doc: &XFlowDocument) -> String { let out = format!( r#" digraph G {{ {nodes} {edges} }} "#, nodes = build_nodes(&doc), edges = build_edges(&doc), ); out } ...
18,910
https://github.com/jiujuan/go-micro-demos/blob/master/broker/rabbitmq/main.go
Github Open Source
Open Source
Apache-2.0
null
go-micro-demos
jiujuan
Go
Code
80
369
package main import ( "fmt" "github.com/micro/go-micro/v2" "github.com/micro/go-micro/v2/broker" "github.com/micro/go-plugins/broker/rabbitmq/v2" "go-micro-demos/broker/rabbitmq/config" "go-micro-demos/broker/rabbitmq/subscriber" "log" ) var ( conf = config.Config() topic = conf.To...
45,320
https://github.com/asiemspock/Ekta/blob/master/app/Model/Order.php
Github Open Source
Open Source
MIT
null
Ekta
asiemspock
PHP
Code
37
164
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Order extends Model { protected $fillable = [ 'order_number', 'total_price', 'shipping_address', 'email', 'contact_number', 'sub_urb', 'first_name', 'last_name', 'regis...
44,603
https://github.com/neersighted/dotfiles/blob/master/private_dot_config/fish/exact_functions.d/exact_utils/pyserve.fish
Github Open Source
Open Source
MIT
2,021
dotfiles
neersighted
Fish
Code
24
59
function pyserve -d 'serve files using python' if set -q $argv[1] set port $argv[1] else set port 8000 end python -m http.server $port end
14,251
https://github.com/liuxu0703/AppFrame/blob/master/lib_frame/src/main/java/lx/af/utils/ActivityLauncher/ImageCropperLauncher.java
Github Open Source
Open Source
Apache-2.0
2,021
AppFrame
liuxu0703
Java
Code
594
2,246
package lx.af.utils.ActivityLauncher; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.support.annotation.NonNull; import android.support.v4.app.Fragment; import java.util.ArrayList; import lx.af.activity....
8,281
https://github.com/schwehr/degrib/blob/master/src/dwmllib/PrintTime.c
Github Open Source
Open Source
JasPer-2.0, LicenseRef-scancode-warranty-disclaimer, TCL, Zlib, Libpng, LicenseRef-scancode-public-domain
2,014
degrib
schwehr
C
Code
1,215
8,834
/* Print Routine #1 for diagnostics for XMLParse(). */ #include "xmlparse.h" void PrintTime(genMatchType * match, size_t pntIndex, int *allElem, sChar pntTimeZone, sChar f_dayCheck) { char timeBuff[30]; char zone[7]; size_t i; double localTime; for (i = 0; i < NDFD_MATCHALL; i++) { ...
2,770
https://github.com/SamuelFolledo/MOB1.2/blob/master/FinalExam/MOB1.2FinalProject/Model/User.swift
Github Open Source
Open Source
MIT
null
MOB1.2
SamuelFolledo
Swift
Code
38
86
// // User.swift // MOB1.2FinalProject // // Created by Macbook Pro 15 on 3/3/20. // Copyright © 2020 SamuelFolledo. All rights reserved. // import Foundation struct User { var firstName: String var lastName: String var age: Int }
20,331
https://github.com/JetAr/ZDoc/blob/master/code/Windows-classic-samples/Samples/Win7Samples/sysmgmt/events/wec/cpp/Utils.cpp
Github Open Source
Open Source
MIT
2,021
ZDoc
JetAr
C++
Code
234
827
#include "Subscription.h" std::wstring ConvertEcConfigurationMode( DWORD code ) { if ( EcConfigurationModeCustom == (EC_SUBSCRIPTION_CONFIGURATION_MODE) code ) return L"Custom"; else if ( EcConfigurationModeMinLatency == (EC_SUBSCRIPTION_CONFIGURATION_MODE) code ) return L"MaxLatency"; el...
18,070
https://github.com/axiaoxin-com/weibo/blob/master/login.go
Github Open Source
Open Source
MIT
2,022
weibo
axiaoxin-com
Go
Code
1,144
4,881
// 登录接口 package weibo import ( "crypto/rand" "crypto/rsa" "encoding/base64" "encoding/hex" "encoding/json" "fmt" "io" "io/ioutil" "math/big" "net/http" "net/url" "os" "path" "regexp" "strconv" "strings" "time" "github.com/pkg/errors" ) // CrackPinFunc 验证码破解方法类型声明 // 验证码图片以 io.Reader 类型传入,返回破解结果字符串...
52,704
https://github.com/FanLgchen/Celery-/blob/master/django_api/celery_tasks/config.py
Github Open Source
Open Source
MIT
2,020
Celery-
FanLgchen
Python
Code
33
227
# 指定消息队列的位置, 使用方式: # rabbitmq 用法配置: # broker_url= 'amqp://用户名:密码@ip地址:5672' # 例如: # denoname: 在rabbitq中创建的用户名, 注意: 远端链接时不能使用guest账户. # 123456: 在rabbitq中用户名对应的密码 # ip部分: 指的是当前rabbitq所在的电脑ip # 5672: 是规定的端口号 # broker_url = 'amqp://demoname:123456@172.16.238.128:5672' # redis 用法配置: broker_url='redis://127.0.0.1:6379...
35,687
https://github.com/apolukhin/boost-cookbook/blob/master/Chapter02/08_ptr_container_c++11/main.cpp
Github Open Source
Open Source
BSL-1.0
2,022
boost-cookbook
apolukhin
C++
Code
250
960
#include <set> #include <algorithm> #include <cassert> template <class T> struct ptr_cmp { template <class T1> bool operator()(const T1& v1, const T1& v2) const { return operator ()(*v1, *v2); } bool operator()(const T& v1, const T& v2) const { return std::less<T>()(v1, v2); } }; ...
8,473
https://github.com/rikvb/camel/blob/master/core/camel-core/src/test/java/org/apache/camel/component/file/FileProduceTempPrefixTest.java
Github Open Source
Open Source
Apache-2.0
2,022
camel
rikvb
Java
Code
298
871
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
52,034
https://github.com/PulselabApps/PulseTeachWeb/blob/master/pulse-react-redux/src/styles/styles.scss
Github Open Source
Open Source
MIT
2,016
PulseTeachWeb
PulselabApps
SCSS
Code
108
515
$icon-font-path: '../../node_modules/bootstrap-sass/assets/fonts/bootstrap/'; @import "../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; @import "../../node_modules/react-bootstrap-table/css/react-bootstrap-table-all.min.css"; @mixin calc($property, $expression) { #{$property}: -moz-calc(#{$expressio...
43,425
https://github.com/TSpidermanBoss/Gametm/blob/master/tel.py
Github Open Source
Open Source
MIT
null
Gametm
TSpidermanBoss
Python
Code
16
99
from telethon import TelegramClient client = TelegramClient("my",1134067,"f743379074210a6bf6830f77b4ba04ab") @client.on(events.NewMessage(pattern=r'^/start')) async def start_respond(e): await e.reply('/stort') with client: client.loop.run_until_complete(main())
10,257
https://github.com/adikanike85/performance_dashboard/blob/master/Source/kCura.PDB.Data/Resources/Sql/EventWorker_Update.sql
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,021
performance_dashboard
adikanike85
SQL
Code
14
44
 UPDATE [eddsdbo].[EventWorkers] SET [Name] = @name ,[type] = @type WHERE [Id] = @Id
43,849
https://github.com/sbressler/hassio-google-drive-backup/blob/master/run_local_docker.py
Github Open Source
Open Source
MIT
2,020
hassio-google-drive-backup
sbressler
Python
Code
28
180
#!/usr/bin/python3.7 import os if __name__ == '__main__': os.system("docker build --build-arg BUILD_FROM=\"homeassistant/amd64-base:latest\" -t \"local/hassio-google-drive-backup\" \"hassio-google-drive-backup/\"") os.system("docker run --rm -v \"$(pwd)\"/dev/data:/data -v \"$(pwd)\"/dev/ssl:/ssl -v \"$(pwd)\"...
27,923
https://github.com/wpilibsuite/allwpilib/blob/master/simulation/halsim_ws_client/src/main/native/cpp/HALSimWSClientConnection.cpp
Github Open Source
Open Source
BSD-3-Clause
2,023
allwpilib
wpilibsuite
C++
Code
261
978
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "HALSimWSClientConnection.h" #include <cstdio> #include <fmt/format.h> #include <wpinet/raw_uv_ostream.h> #i...
36,390
https://github.com/dionsnoeijen/sexy-field/blob/master/src/FieldType/FieldTypeInterface.php
Github Open Source
Open Source
MIT
2,021
sexy-field
dionsnoeijen
PHP
Code
160
470
<?php /* * This file is part of the SexyField package. * * (c) Dion Snoeijen <hallo@dionsnoeijen.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare (strict_types = 1); namespace Tardigrades\FieldType; use Symfony\Compo...
52,732
https://github.com/xehoth/HybridSort/blob/master/test/TestRandom.cpp
Github Open Source
Open Source
MIT
2,019
HybridSort
xehoth
C++
Code
679
1,682
/** * Hrbrid Sort Test Random * * Copyright (c) 2019, xehoth * All rights reserved. * * Licensed under the MIT License; * 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 restri...
35,545
https://github.com/tameraydin/password-ruler-addons/blob/master/.npmignore
Github Open Source
Open Source
MIT
2,016
password-ruler-addons
tameraydin
Ignore List
Code
7
32
coverage test src .nyc_output .gitignore .travis.yml .eslintrc
42,915
https://github.com/addai20/module-one-final-project-guidelines-dc-web-111918/blob/master/app/models/artist.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,018
module-one-final-project-guidelines-dc-web-111918
addai20
Ruby
Code
11
29
class Artist < ActiveRecord::Base has_many :events has_many :locations, through: :events end
16,749
https://github.com/Sagar2366/indigo-player/blob/master/src/extensions/CaptionsExtension/CaptionsExtension.ts
Github Open Source
Open Source
Apache-2.0
2,019
indigo-player
Sagar2366
TypeScript
Code
130
419
import { Instance } from '@src/Instance'; import { Module } from '@src/Module'; import { HTML5Player } from '@src/player/HTML5Player/HTML5Player'; import { CaptionsChangeEventData, Events } from '@src/types'; export class CaptionsExtension extends Module { public name: string = 'CaptionsExtension'; private tracks...
38,119
https://github.com/ArseniKavalchuk/dsa-java/blob/master/lib/src/main/java/com/github/akovalchuk/LongestBitonicSubsequence.java
Github Open Source
Open Source
Apache-2.0
null
dsa-java
ArseniKavalchuk
Java
Code
319
793
package com.github.akovalchuk; /** * Educative.io. Longest Bitonic Subsequence * * Given a number sequence, find the length of its Longest Bitonic Subsequence * (LBS). A subsequence is considered bitonic if it is monotonically increasing * and then monotonically decreasing. */ public class LongestBitonicSubsequ...
28,492
https://github.com/hgkdzbf6/vpp/blob/master/vendor/github.com/ligato/vpp-agent/plugins/vpp/l2plugin/xconnect_config.go
Github Open Source
Open Source
Apache-2.0
null
vpp
hgkdzbf6
Go
Code
1,443
4,680
// Copyright (c) 2017 Cisco and/or its affiliates. // // 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 applicabl...
21,024
https://github.com/jtuz/cartodb/blob/master/lib/assets/test/spec/new-dashboard/unit/specs/components/Catalog/map-styles/colorBinsStyle.spec.js
Github Open Source
Open Source
BSD-3-Clause
2,022
cartodb
jtuz
JavaScript
Code
83
298
import colorBinsStyle from 'new-dashboard/components/Catalog/map-styles/colorBinsStyle'; describe('colorBinsStyle.js', () => { describe('colorBinsStyle', () => { it('compute color bins style', () => { const stats = { quantiles: [{ '5': [10, 20, 30, 50, 100] }] }; const colorStyle = colo...
52,642
https://github.com/davidvon/chexianghui_web/blob/master/src/components/Flexbox.vue
Github Open Source
Open Source
MIT
null
chexianghui_web
davidvon
Vue
Code
124
492
<template> <div class="vux-flexbox"> <slot></slot> </div> </template> <script> import support from './flexbox/support' export default { created () { this.supported = support.flex }, ready () { if (!this.supported) { var list = this.$el.querySelectorAll('.vux-flexbox-item') this.$el.c...
46,733
https://github.com/handcraftsman/TreeBasedMachineLearningAlgorithms/blob/master/ch02/test.py
Github Open Source
Open Source
Apache-2.0
2,022
TreeBasedMachineLearningAlgorithms
handcraftsman
Python
Code
165
382
# File: test.py # from chapter 2 of _Tree-based Machine Learning Algorithms_ # # Author: Clinton Sheppard <fluentcoder@gmail.com> # Copyright (c) 2017 Clinton Sheppard # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # You may obta...
4,788
https://github.com/benetech/ServiceNet/blob/master/src/test/java/org/benetech/servicenet/web/rest/OptionResourceIntTest.java
Github Open Source
Open Source
Apache-2.0
2,021
ServiceNet
benetech
Java
Code
589
2,676
package org.benetech.servicenet.web.rest; import java.util.UUID; import org.benetech.servicenet.ServiceNetApp; import org.benetech.servicenet.domain.Option; import org.benetech.servicenet.repository.OptionRepository; import org.benetech.servicenet.errors.ExceptionTranslator; import org.junit.Before; import org.junit...
25,074
https://github.com/hezlog/Tailviewer/blob/master/src/Tailviewer.Test/BusinessLogic/LogFiles/NoThrowLogFileTest.cs
Github Open Source
Open Source
MIT
null
Tailviewer
hezlog
C#
Code
644
3,088
using System; using System.Collections.Generic; using FluentAssertions; using Moq; using NUnit.Framework; using Tailviewer.BusinessLogic; using Tailviewer.BusinessLogic.LogFiles; using Tailviewer.Core.LogFiles; namespace Tailviewer.Test.BusinessLogic.LogFiles { [TestFixture] public sealed class NoThrowLogFileTest ...
50,948
https://github.com/IFRCGo/go-api/blob/master/deployments/migrations/0052_auto_20220314_0633.py
Github Open Source
Open Source
MIT
2,023
go-api
IFRCGo
Python
Code
38
183
# Generated by Django 2.2.27 on 2022-03-14 06:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('deployments', '0051_auto_20220311_0947'), ] operations = [ migrations.AddField( model_name='emergencyprojectactivityaction', ...
1,958
https://github.com/Nelspike/UniversityStuff/blob/master/ACME/src/acmeParserTreeConstants.java
Github Open Source
Open Source
BSD-3-Clause
2,013
UniversityStuff
Nelspike
Java
Code
573
2,034
/* Generated By:JavaCC: Do not edit this line. acmeParserTreeConstants.java Version 5.0 */ public interface acmeParserTreeConstants { public int JJTFILENAME = 0; public int JJTPARSE_ACMEDESIGN = 1; public int JJTFAMILYDECLARATION = 2; public int JJTFAMILYBODY = 3; public int JJTTYPEDECLARATION = 4; public i...
7,680
https://github.com/dhar174/norpWorldalpha/blob/master/2D Open World Experiment/Assets/DeciderAgent.cs
Github Open Source
Open Source
MIT
null
norpWorldalpha
dhar174
C#
Code
118
483
using System.Collections; using System.Collections.Generic; using UnityEngine; using MLAgents; public class DeciderAgent : Agent { public NorpAgent norpAgent; public NorpAI norpAI; public RayPerception rayPer; public override void InitializeAgent() { base.InitializeAgent(); norpAge...
43,467