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/DuffautM/Projet_Web/blob/master/site_web/database/migrations/2017_04_19_122204_create_activities_table.php
Github Open Source
Open Source
Unlicense
null
Projet_Web
DuffautM
PHP
Code
59
266
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateActivitiesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('activities', function (Blueprint $table) { ...
48,303
https://github.com/UM-ARM-Lab/mab_ms/blob/master/deform_control/external_libs/osgBullet-2.0/osgbInteraction/ArticulationRecord.cpp
Github Open Source
Open Source
BSD-2-Clause
2,021
mab_ms
UM-ARM-Lab
C++
Code
212
460
/*************** <auto-copyright.pl BEGIN do not edit this line> ************** * * osgBullet is (C) Copyright 2009-2011 by Kenneth Mark Bryden * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1 as published by the F...
49,952
https://github.com/aarrsseni/bq/blob/master/src/main/java/io/bootique/tools/shell/ArtifactType.java
Github Open Source
Open Source
Apache-2.0
null
bq
aarrsseni
Java
Code
46
143
package io.bootique.tools.shell; public enum ArtifactType { APP, MODULE; public static ArtifactType byName(String name) { if(name == null || name.isEmpty()) { return null; } String upperCaseName = name.toUpperCase(); for (ArtifactType next : values()) { ...
50,070
https://github.com/mehulpanchal/humanapi/blob/master/src/HumanApi/Endpoint/Sources.php
Github Open Source
Open Source
MIT
2,021
humanapi
mehulpanchal
PHP
Code
37
110
<?php namespace Choccybiccy\HumanApi\Endpoint; use Choccybiccy\HumanApi\Endpoint; /** * Class Sources * @package Choccybiccy\HumanApi\Endpoint */ class Sources extends SimpleEndpoint { /** * @var string */ protected $type = "sources"; /** * @var bool */ protected $listReturns...
37,068
https://github.com/dongdong331/test/blob/master/frameworks/base/services/core/java/com/android/server/power/sprdpower/PowerSaveHelper.java
Github Open Source
Open Source
LicenseRef-scancode-unicode, Apache-2.0
2,020
test
dongdong331
Java
Code
279
803
/* ** Copyright 2016 The Spreadtrum.com */ package com.android.server.power.sprdpower; import android.content.Context; import android.util.Slog; import android.os.sprdpower.AppPowerSaveConfig; import android.os.SystemClock; import com.android.server.LocalServices; import com.android.server.power.sprdpower.PowerCon...
49,688
https://github.com/Nomadjackalope/elemental-breakout/blob/master/Assets/Scripts/Settings/About.cs
Github Open Source
Open Source
MIT
2,020
elemental-breakout
Nomadjackalope
C#
Code
21
72
using UnityEngine; using UnityEngine.UI; public class About : MonoBehaviour { void Start() { } public void OnMarkLinkClicked() { Application.OpenURL("https://themarkhorton.com/"); } }
5,658
https://github.com/DBatOWL/tutorials/blob/master/libraries-3/src/main/java/com/baeldung/jcabi/JcabiAspectJ.java
Github Open Source
Open Source
MIT
2,022
tutorials
DBatOWL
Java
Code
243
875
package com.baeldung.jcabi; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.util.concurrent.CompletableFu...
51,675
https://github.com/rawphp/serverless-plugin-stack-config/blob/master/test/src/lib/backupConfig.test.ts
Github Open Source
Open Source
MIT
2,020
serverless-plugin-stack-config
rawphp
TypeScript
Code
218
933
import { expect } from 'chai'; import backupConfig from './../../../src/lib/backupConfig'; import getContext from './../../stubs/context'; describe('backupConfig', () => { let context; beforeEach(() => { context = getContext(); context.backupConfig = backupConfig; }); it('backs up service config with...
2,827
https://github.com/DTStack/DatasourceX/blob/master/core/src/main/java/com/dtstack/dtcenter/loader/client/IKerberos.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
DatasourceX
DTStack
Java
Code
269
711
/* * 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 ...
30,327
https://github.com/jonfortescue/HttpRepl/blob/master/src/Microsoft.HttpRepl/Telemetry/Events/ConnectEvent.cs
Github Open Source
Open Source
MIT
2,022
HttpRepl
jonfortescue
C#
Code
68
213
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the License.txt file in the project root for more information. namespace Microsoft.HttpRepl.Telemetry.Events { internal class ConnectEvent : TelemetryEventBase { ...
33,780
https://github.com/davidepi/oblive/blob/master/java2c/src/test/java/testclasses/exceptions/invoke/invokevirtual/ThrowInvokeVirtualInt.java
Github Open Source
Open Source
Apache-2.0
null
oblive
davidepi
Java
Code
35
111
package testclasses.exceptions.invoke.invokevirtual; import it.oblive.annotations.NativeObfuscation; public class ThrowInvokeVirtualInt { public ThrowInvokeVirtualInt() { } @NativeObfuscation public int div(int a) { return normalDiv(a, 0); } public int normalDiv(int a, int b) { ...
45,728
https://github.com/IrateGod/YGOPro-Support-System/blob/master/server/server.js
Github Open Source
Open Source
MIT
2,015
YGOPro-Support-System
IrateGod
JavaScript
Code
501
1,426
/* Start various sub-servers. -------------------------- - Gamelist on port 24555 - YGOPro listener on port 8911, YGOPro applications connect to this port - YGOPro Web listener on port 8913, browser version connects to this port, and is stripped and routed to the same place as the application. *disabled - HTTP serve...
13,037
https://github.com/dataintoresults/data-factory/blob/master/core/src/main/scala/com/dataintoresults/etl/core/EtlParameter.scala
Github Open Source
Open Source
Apache-2.0
2,021
data-factory
dataintoresults
Scala
Code
1,120
2,944
/******************************************************************************* * * Copyright (C) 2018 by Obsidian SAS : https://dataintoresults.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 t...
29,259
https://github.com/ivandrofly/corefx/blob/master/src/System.Linq.Expressions/tests/Block/NoParameterBlockTests.cs
Github Open Source
Open Source
MIT
2,021
corefx
ivandrofly
C#
Code
1,094
4,968
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections; using System.Collections.Generic; using Xunit; namespace System.Linq.Expres...
464
https://github.com/jzemmels/statsfoRstudents/blob/master/man/randomSample.Rd
Github Open Source
Open Source
MIT
2,020
statsfoRstudents
jzemmels
R
Code
100
236
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/meanSamplingDistribution.R \name{randomSample} \alias{randomSample} \title{Generate an arbitrary number of random samples from a normal distribution} \usage{ randomSample(mu = 0, sigma = 1, sampleSize = 25, numSamples = 1) } \arguments{ \item...
33,009
https://github.com/extra-number/extra-number/blob/master/src/_nextPow.js
Github Open Source
Open Source
MIT
2,020
extra-number
extra-number
JavaScript
Code
15
58
function nextPow(x, n) { var lx = Math.log(x)/Math.log(n); return Math.pow(Math.ceil(lx), n); } module.exports = nextPow;
3,007
https://github.com/AaditJ/dfa-algorithms/blob/master/src/components/visualization/TableFillingAlgorithmVisualization.test.tsx
Github Open Source
Open Source
MIT
2,021
dfa-algorithms
AaditJ
TSX
Code
278
1,031
import { mount, shallow } from "enzyme"; import { act } from "react-dom/test-utils"; import { preGeneratedDatasets } from "../../algorithm/data/datasets"; import { exampleDfa1, exampleDfa2 } from "../../algorithm/data/exampleData"; import { TableFillingAlgorithmImpl, TableFillingAlgorithmState, } from "../../al...
41,258
https://github.com/chikara-chan/full-stack-javascript/blob/master/manager/client/orderDetail/sass/App.scss
Github Open Source
Open Source
MIT
2,017
full-stack-javascript
chikara-chan
SCSS
Code
12
42
.app { .title { font-size: 24px; font-weight: 300; padding-bottom: 30px; } }
14,034
https://github.com/JKrehl/Interpol/blob/master/test/runtests.jl
Github Open Source
Open Source
MIT
null
Interpol
JKrehl
Julia
Code
13
48
using Interpol using Base.Test # write your own tests here include("base_types.jl") include("interpolation_bases.jl") include("interpolation.jl")
26,682
https://github.com/dengcs/mmoServer/blob/master/arena/lualib/pdk/poker_type.lua
Github Open Source
Open Source
Apache-2.0
2,020
mmoServer
dengcs
Lua
Code
4,061
13,185
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by dengcs. --- DateTime: 2018/11/1 16:55 --- local mh_ceil = math.ceil local tb_sort = table.sort local tb_insert = table.insert local hide_byte_bit = 1024 local poker_type = {} local function div4_ceil(val) return mh_ceil(val/4) end function p...
7,385
https://github.com/kemeen/material_mechanics/blob/master/material_mechanics/materials/material_law.py
Github Open Source
Open Source
MIT
2,021
material_mechanics
kemeen
Python
Code
409
1,147
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module holds possible material laws """ import logging import numpy as np from ..tools import force_symmetry # ==================== # Set up module logger # ==================== logger = logging.getLogger(__name__) class HookesLaw: r""" representation ...
33,648
https://github.com/onetruesoftwaredevs/SnackPacks/blob/master/snackpacks-server/API - Drivers/src/review.js
Github Open Source
Open Source
MIT
2,019
SnackPacks
onetruesoftwaredevs
JavaScript
Code
57
137
class Review { constructor(author, title, description){ //Add Time and Status this.author = author; this.title = title; this.description = description; } get author(){ return this._author; } set author(value){ this._author = value; } get title(){ return this._title;...
32,393
https://github.com/Xilinx/hopper/blob/master/hopper/utils/git/repo.py
Github Open Source
Open Source
MIT
2,017
hopper
Xilinx
Python
Code
975
3,118
# Copyright (c) 2015 Xilinx Inc. # # 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, merge, publish, distrib...
46,360
https://github.com/keanemind/react-gaugejs/blob/master/Gauge.js
Github Open Source
Open Source
MIT
2,021
react-gaugejs
keanemind
JavaScript
Code
258
971
import React, {useRef, useEffect} from 'react'; import PropTypes from 'prop-types'; import {Gauge as CanvasGauge, Donut} from 'gaugeJS/dist/gauge.min'; /** * React wrapper for GaugeJS. * @param {*} props * @return {Object} React element */ function Gauge(props) { const canvas = useRef(); const span = useRef();...
50,787
https://github.com/adrienneh99/FitnessZone/blob/master/app/src/main/java/org/tpl/fitnesszone/activity/EquipmentExerciseListActivityRV.java
Github Open Source
Open Source
MIT
null
FitnessZone
adrienneh99
Java
Code
144
654
package org.tpl.fitnesszone.activity; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import com.google.gson...
51,990
https://github.com/Gtisma/Backend/blob/master/app/Mail/GtismaMailQueue.php
Github Open Source
Open Source
MIT
2,021
Backend
Gtisma
PHP
Code
97
334
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class GtismaMailQueue extends Mailable { use Queueable, SerializesModels; /** * Create a new message instance. * * @return void */ public $data; protected ...
11,921
https://github.com/onap/so/blob/master/bpmn/mso-infrastructure-bpmn/src/test/java/org/onap/so/bpmn/common/adapter/sdnc/ObjectFactoryTest.java
Github Open Source
Open Source
Apache-2.0
2,023
so
onap
Java
Code
174
507
/*- * ============LICENSE_START======================================================= * ONAP - SO * ================================================================================ * Copyright (C) 2019 IBM. * ================================================================================ * Licensed under the Ap...
35,690
https://github.com/Trallallallero/banners.database/blob/master/queries.go
Github Open Source
Open Source
MIT
null
banners.database
Trallallallero
Go
Code
171
594
package database var ConnectionString = "Server=SERVER_NAME;Database=DATABASE_NAME;Trusted_Connection=True;" var DestroyBannerTable = "IF OBJECT_ID('dbo.banners', 'U') IS NOT NULL DROP TABLE dbo.banners" var DestroyZonesTable = "IF OBJECT_ID('dbo.zones', 'U') IS NOT NULL DROP TABLE dbo.zones" var BannersSchema = "CR...
11,992
https://github.com/Pokecube-Development/Pokecube-Issues-and-Wiki/blob/master/src/main/java/thut/api/world/StructureTemplateTools.java
Github Open Source
Open Source
MIT
2,023
Pokecube-Issues-and-Wiki
Pokecube-Development
Java
Code
367
1,449
package thut.api.world; import java.util.List; import java.util.Map; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import net.minecraft.core.BlockPos; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; impor...
26,667
https://github.com/metaodi/hostages/blob/master/hostages/prison.py
Github Open Source
Open Source
MIT
null
hostages
metaodi
Python
Code
71
344
from hostages.livingroom import LivingRoom import random class Prison(object): def __init__(self, hostages, number_of_hostages): self.hostages = hostages if len(hostages) != number_of_hostages: raise TooFewHostagesError( "There must be exactly %s hostages" ...
39,773
https://github.com/kcfkwok2003/m5_star_navigator/blob/master/m5stack/notes/docker/tools/upd_kcf_m5tack.sh
Github Open Source
Open Source
MIT
null
m5_star_navigator
kcfkwok2003
Shell
Code
2
24
rm ~/mpy/micropython/ports/esp32/modules/m5stack.py
7,989
https://github.com/123lens/bol-retailer-api/blob/master/src/Resources/DeliveryOption.php
Github Open Source
Open Source
MIT
2,022
bol-retailer-api
123lens
PHP
Code
135
420
<?php namespace Budgetlens\BolRetailerApi\Resources; use Budgetlens\BolRetailerApi\Types\DeliveryCodes; class DeliveryOption extends BaseResource { public $shippingLabelOfferId; public $validUntilDate; public $transporterCode; public $labelType; public $labelPrice; public $packageRestrictions;...
10,128
https://github.com/egovernment/eregistrations-starter/blob/master/node_modules/dom-ext/test/element/#/cast-attribute.js
Github Open Source
Open Source
MIT
2,019
eregistrations-starter
egovernment
JavaScript
Code
169
658
'use strict'; var ObservableValue = require('observable-value'); module.exports = function (t, a) { var el, fn = function () {}, attr; if (typeof document === 'undefined') return; el = document.createElement('p'); t.call(el, 'lorem', 'test'); t.call(el, 'onclick', fn); t.call(el, 'foo', true); t.call(el, 'ba...
36,567
https://github.com/syncfusion/angularjs-ej1-demos/blob/master/pivotchart/olapwcf.js
Github Open Source
Open Source
Info-ZIP
2,020
angularjs-ej1-demos
syncfusion
JavaScript
Code
71
221
syncApp.controller('PivotChartWCFOLAPCtrl', function ($scope) { $scope.url = window.baseurl + "wcf/PivotChart/Olap.svc"; $scope.title = "PivotChart in Essential JS"; $scope.isResponsive = true; $scope.zooming = { enableScrollbar : true}; $scope.ctype = ej.PivotChart.ChartTypes.Column; $scope.showT...
1,862
https://github.com/jielyu/leetcode/blob/master/src/leetcode/cpp/q1356.cpp
Github Open Source
Open Source
MIT
2,023
leetcode
jielyu
C++
Code
320
1,372
/* #面试刷题# 第0059期 #Leetcode# Q1356 按bit位为1的位数对整数排序 难度:低 给定一个整数数组arr。您必须按其二进制表示形式中的1的数目按升序对数组中的整数进行排序, 如果两个或多个整数具有相同的1数,则必须按升序对它们进行排序。 返回排序后的数组。 约束条件: (a) 1 <= arr.length <= 500 (b) 0 <= arr[i] <= 10^4 例1: Input: arr = [0,1,2,3,4,5,6,7,8] Output: [0,1,2,4,8,3,5,6,7] Explantion: [0] is the only integer with 0 bits. [1,2,...
44,620
https://github.com/nazarmubeen/HackerRankSolutions/blob/master/datastructure/src/main/java/greedy/AssignMiceToHoles.java
Github Open Source
Open Source
Apache-2.0
2,017
HackerRankSolutions
nazarmubeen
Java
Code
78
344
package main.java.greedy; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; public class AssignMiceToHoles { public static void main(String[] args) { AssignMiceToHoles obj=new AssignMiceToHoles(); ArrayList<Integer> a=new ArrayList<>(Arrays.asList( -10, -79, -79, 67, 93, -85, -...
51,149
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/c/crazybud/delugewebui/Dockerfile
Github Open Source
Open Source
MIT
2,018
dockerfiles-1
jsdelivrbot
Dockerfile
Code
115
334
# Select the latest ubuntu image to build this container ######################################################## FROM crazybud/base-ubu-latest:latest MAINTAINER crazyBUD # Add needed packages ##################### RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq unzip unrar delug...
32,989
https://github.com/JasFayz/shop/blob/master/resources/views/dashboard/index.blade.php
Github Open Source
Open Source
MIT
null
shop
JasFayz
PHP
Code
323
1,607
@extends('layouts.dashboard') @section('content') <h1>Dashboard</h1> <div class="row gutters-tiny"> <div class="col-6 col-md-4 col-xl-2"> <a class="block block-rounded block-bordered block-link-shadow text-center" href="javascript:void(0)"> <div class="block-content"> ...
21,735
https://github.com/ryt555/todo-task-manager-android/blob/master/app/src/androidTest/java/org/task/manager/instrumented/integration/stub/EditorialStubIT.kt
Github Open Source
Open Source
Apache-2.0
2,021
todo-task-manager-android
ryt555
Kotlin
Code
59
187
package org.task.manager.instrumented.integration.stub import org.task.manager.domain.model.Editorial import kotlin.random.Random open class EditorialStubIT { companion object { fun getEditorial( id: Long = Random.nextLong(1, 500), name: String = "name", ...
35,135
https://github.com/zeus911/OSP/blob/master/cmdb/models.py
Github Open Source
Open Source
BSD-2-Clause
2,020
OSP
zeus911
Python
Code
42
230
# -*- coding: utf-8 -*- from django.db import models class Update(models.Model): user_name = models.CharField(max_length=32, verbose_name=u'用户名') date = models.DateTimeField(verbose_name=u'更新时间') status = models.IntegerField(default=0, verbose_name=u'发布状态') update_project = models.CharField(max_length...
37,635
https://github.com/nursix/DRKCM/blob/master/controllers/custom.py
Github Open Source
Open Source
MIT
2,022
DRKCM
nursix
Python
Code
140
389
""" Re-routed (custom) controllers """ # ----------------------------------------------------------------------------- def index(): """ Module homepage """ # Restore controller/function c, f = request.args[:2] request.controller, request.function = c, f # Restore arguments List ...
13,891
https://github.com/warren-ding/TERAN/blob/master/features.py
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,021
TERAN
warren-ding
Python
Code
1,415
5,431
# This script extract features and put them in shelve format import os import torch import tqdm import argparse import yaml import re import itertools import pickle import numpy as np from torch.utils.data import DataLoader # from graphrcnn.extract_features import extract_visual_features # from torchvision.datasets.co...
47,561
https://github.com/charliegroll/Wildmile/blob/master/controllers/modInfo.js
Github Open Source
Open Source
MIT
2,020
Wildmile
charliegroll
JavaScript
Code
334
993
const Plant = require('../models/Plant.js'); const IndividualPlant = require('../models/IndividualPlant.js'); const PlantObservation = require('../models/PlantObservation.js'); const Mod = require('../models/Mod.js'); const mongoose = require('mongoose'); exports.getModinfo = (req, res) => { Plant.find((err, plant) ...
10,087
https://github.com/seifertd/site-mapper/blob/master/lib/sources/multiple_http_input.js
Github Open Source
Open Source
MIT
2,021
site-mapper
seifertd
JavaScript
Code
195
613
const {Readable} = require('stream'); const {config} = require('../config'); const request = require('request'); const {extend} = require('lodash'); module.exports = class MultipleHttpInput extends Readable { constructor(options) { super(); this.urls = options.urls.slice(); this.error = false; this.h...
42,768
https://github.com/tanis2000/Unreal-Test2DPlatformer/blob/master/Plugins/Developer/RiderLink/Source/RiderLink/Public/Model/Library/UE4Library/IScriptMsg_Unknown.Generated.cpp
Github Open Source
Open Source
MIT
2,023
Unreal-Test2DPlatformer
tanis2000
C++
Code
275
777
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a RdGen v1.10. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------...
30,670
https://github.com/pauloreis7/Modulo-02-LaunchBase/blob/master/desafiosHTML/desafio_2-3/scripts.js
Github Open Source
Open Source
MIT
null
Modulo-02-LaunchBase
pauloreis7
JavaScript
Code
54
254
const modalFull = document.querySelector('.full_modal'); const cards = document.querySelectorAll('.card') const modal = document.querySelector('.modal') for (let card of cards) { card.addEventListener("click", function () { const courseId = card.getAttribute('id'); modalFull.classList.add(...
3,188
https://github.com/tardisgo/tardisgo-samples/blob/master/wip/intlib/intlib.go
Github Open Source
Open Source
MIT
2,018
tardisgo-samples
tardisgo
Go
Code
16
68
// see: http://golangtutorials.blogspot.co.uk/2011/10/gotest-unit-testing-and-benchmarking-go.html package intlib func Add2Ints(i, j int) int { return i + j }
15,436
https://github.com/lerni/silverstripe-framework/blob/master/core/manifest/ManifestCache.php
Github Open Source
Open Source
BSD-3-Clause, CC-BY-3.0
2,021
silverstripe-framework
lerni
PHP
Code
242
734
<?php /** * A basic caching interface that manifests use to store data. * * @package framework * @subpackage manifest */ interface ManifestCache { public function __construct($name); public function load($key); public function save($data, $key); public function clear(); } /** * Stores manifest data in files...
34,747
https://github.com/tuan123/TTBaseUIKit/blob/master/TTBaseUIKit/TTBaseUIKit/Support/Utilities/VietNamLunar.swift
Github Open Source
Open Source
MIT
2,020
TTBaseUIKit
tuan123
Swift
Code
1,028
3,218
// // VietNamLunarManager.swift // TTBaseUIKit // // Created by Truong Quang Tuan on 7/29/19. // Copyright © 2019 Truong Quang Tuan. All rights reserved. // import Foundation open class TTVietNamLunar { static let PI:Double = Double.pi static func jdFromDate(dd:Int, mm:Int, yy:Int) -> Int { ...
15,064
https://github.com/indiependente/nextsong/blob/master/launch.sh
Github Open Source
Open Source
MIT
null
nextsong
indiependente
Shell
Code
12
39
#! /bin/bash python extract_chroma.py python DTW\ More\ Songs.py python dendro.py python tsne.py
35,190
https://github.com/tizenorg/platform.core.security.ca-certificates-tizen/blob/master/tools/add-fingerprint.sh
Github Open Source
Open Source
Apache-2.0
null
platform.core.security.ca-certificates-tizen
tizenorg
Shell
Code
97
370
#!/bin/sh CERT_ROOT=$1 XML_PATH=$2 if [ -z "$2" ] then echo "usage: `basename $0` certificate_root_path fingerprint_xml_path" exit 2 fi for CATEGORY in developer public partner platform test verify store revoked do if [ -d "$CERT_ROOT/$CATEGORY" ] then echo echo " <<$CATEGORY>>" for CERT_PATH in `ls $CERT_...
12,589
https://github.com/GiulioDeveloper/ScreenMaths/blob/master/Sources/ScreenMaths/MathExpressions/GeneralParser.swift
Github Open Source
Open Source
MIT
2,021
ScreenMaths
GiulioDeveloper
Swift
Code
98
282
// // File.swift // // // Created by Giulio Ferraro on 12/11/20. // import Foundation public class GeneralParser { public init(input: String) { self.input = input } var input: String public func parse() -> Result<Container, ParsingError> { if let index = inp...
23,313
https://github.com/AphasiaZheng/GebCommon/blob/master/src/Geb.Shell.Core/Context.cs
Github Open Source
Open Source
MIT
2,017
GebCommon
AphasiaZheng
C#
Code
914
3,118
/*************************************************************** * Copyright: xiaotie@gmail.com(http://xiaotie.cnblogs.com) * *************************************************************/ using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Globalization; u...
785
https://github.com/srlee-ai/claf/blob/master/claf/tokens/indexer/char_indexer.py
Github Open Source
Open Source
MIT, Apache-2.0, BSD-3-Clause
2,020
claf
srlee-ai
Python
Code
107
410
from overrides import overrides from .base import TokenIndexer class CharIndexer(TokenIndexer): """ Character Token Indexer * Property vocab: Vocab (claf.tokens.vocabulary) * Args: tokenizer: CharTokenizer * Kwargs: insert_char_start: insert start index (eg. ['h', 'i']...
22,025
https://github.com/TonyReet/TYSnapshotScroll/blob/master/TYSnapshotScrollDemo/SubViewControllers/TYWKWebViewVc.h
Github Open Source
Open Source
MIT
2,023
TYSnapshotScroll
TonyReet
Objective-C
Code
28
85
// // TYWKWebViewVc.h // TYSnapshotScroll // // Created by apple on 16/12/27. // Copyright © 2016年 TonyReet. All rights reserved. // #import "TYBaseVc.h" @interface TYWKWebViewVc : TYBaseVc @end
7,793
https://github.com/mohsinalimat/STNavigationBar/blob/master/STNavigationBarDemo/STNavigationBarDemo/Classes/Custom/STProfileViewController.m
Github Open Source
Open Source
MIT
2,017
STNavigationBar
mohsinalimat
Objective-C
Code
336
1,434
// // STProfileViewController.m // STNavigationBar // // Created by Scott_Mr on 2017/7/2. // Copyright © 2017年 Scott. All rights reserved. // #import "STProfileViewController.h" #import "STNavigationBar.h" #import "Macro.h" #import "STDIYViewController.h" static CGFloat kHeaderViewHeight = 250.0; @interface STPr...
38,120
https://github.com/racifuina/club-nautico-GT-ios/blob/master/Pods/RoboReaderPDF/RoboReader/Classes/RoboPDFController.h
Github Open Source
Open Source
MIT
2,017
club-nautico-GT-ios
racifuina
C
Code
291
793
// // Copyright (c) 2013 RoboReader ( http://brainfaq.ru/roboreader ) // // 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 ...
16,190
https://github.com/lkeab/detectron2/blob/master/projects/DensePose/densepose/modeling/losses/chart_with_confidences.py
Github Open Source
Open Source
Apache-2.0
2,022
detectron2
lkeab
Python
Code
784
2,750
# Copyright (c) Facebook, Inc. and its affiliates. import math from typing import Any, List import torch from torch import nn from torch.nn import functional as F from detectron2.config import CfgNode from detectron2.structures import Instances from .. import DensePoseConfidenceModelConfig, DensePoseUVConfidenceType ...
3,241
https://github.com/graphize/anim-engine/blob/master/src/displayables/geometry.ts
Github Open Source
Open Source
MIT
2,020
anim-engine
graphize
TypeScript
Code
438
1,083
import Displayable from './displayable' import { IDisplayable } from '../types' import { Vector } from '../util/vector' import { range, map, radians } from '../util/methods' import { TAU, PI } from '../main' import Matrix from '../util/matrix' import { Color } from '../util' export class Polygon extends Displayable { ...
4,667
https://github.com/brettz9/es-file-traverse/blob/master/.eslintrc.cjs
Github Open Source
Open Source
MIT
2,023
es-file-traverse
brettz9
JavaScript
Code
146
644
'use strict'; const rules = { 'n/exports-style': 0, 'no-process-exit': 0, 'compat/compat': 0, 'import/no-commonjs': 0, 'import/unambiguous': 0, 'eslint-comments/require-description': 0 }; module.exports = { parser: '@babel/eslint-parser', parserOptions: { requireConfigFile: false }, extends:...
29,565
https://github.com/sul-cidr/noh/blob/master/src/_sass/components/videoplayer/_main-player.scss
Github Open Source
Open Source
MIT
2,023
noh
sul-cidr
SCSS
Code
31
66
// Note: this (obviously) only works with webkit-based browsers. // At present, there is no solution for FF or Edge that replicates // this behaviour. #section video::-webkit-media-controls-timeline { display: none; }
37,276
https://github.com/Jacksay/swing-garnish/blob/master/src/com/jacksay/sgarnish/assets/JckIconProvider.java
Github Open Source
Open Source
MIT
null
swing-garnish
Jacksay
Java
Code
103
376
package com.jacksay.sgarnish.assets; import java.awt.Image; import java.awt.Toolkit; import java.util.HashMap; import java.util.Map; import javax.swing.Icon; import javax.swing.ImageIcon; import sun.awt.image.ToolkitImage; /** * @author Jacksay<jacksay@jacksay.com> */ public class JckIconProvider { private sta...
20,507
https://github.com/bgruening/docker-build/blob/master/starforge/cache.py
Github Open Source
Open Source
MIT
2,022
docker-build
bgruening
Python
Code
676
2,710
""" """ from __future__ import absolute_import import subprocess import sys from os import makedirs, listdir from os.path import exists, join, basename from abc import ABCMeta, abstractmethod try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse import requests import yaml ...
43,028
https://github.com/AppliedAcousticsChalmers/acoustics-hardware/blob/master/acoustics_hardware/generators.py
Github Open Source
Open Source
MIT
2,023
acoustics-hardware
AppliedAcousticsChalmers
Python
Code
794
2,918
from . import _core, signal_tools import numpy as np import scipy.signal class _Generator(_core.SamplerateFollower): def process(self, packet): if not isinstance(packet, _core.FrameRequest): return packet frame = self.generate(packet.framesize) if isinstance(frame, _core.Frame)...
19,380
https://github.com/JacksonVirgo/Forum-Mafia-Helper/blob/master/frontend/src/pages/ModeratorPanel.jsx
Github Open Source
Open Source
MIT
2,021
Forum-Mafia-Helper
JacksonVirgo
null
Spoken
128
539
import React from 'react'; import styles from '../styles/modules/moderators.module.css'; import hamburgerIcon from '../resources/list.png'; import ModeratorProvider from '../components/moderatorPanels/ModeratorProvider'; import { GlobalContext } from '../GlobalProvider'; import Sidebar from '../components/mod/Sidebar';...
17,994
https://github.com/liyuanlove/soaringroad-blog/blob/master/src/main/java/com/soaringroad/blog/restapi/admin/NotifyApiService.java
Github Open Source
Open Source
BSD-3-Clause
2,018
soaringroad-blog
liyuanlove
Java
Code
51
284
package com.soaringroad.blog.restapi.admin; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMeth...
34,556
https://github.com/Ryan8765/redux_weather/blob/master/src/reducers/index.js
Github Open Source
Open Source
MIT
null
redux_weather
Ryan8765
JavaScript
Code
45
90
import { combineReducers } from 'redux'; import WeatherReducer from './reducer_weather'; //this is basically8 the application state object. So "weather" below - will contain all of the weather state that is generated from the weather reducers. const rootReducer = combineReducers({ weather: WeatherReducer }); expor...
16,242
https://github.com/rmccue/storybook/blob/master/lib/core/src/client/preview/NoDocs.js
Github Open Source
Open Source
MIT
2,020
storybook
rmccue
JavaScript
Code
119
335
import React from 'react'; import { styled } from '@storybook/theming'; const Wrapper = styled.div({ fontSize: '14px', letterSpacing: '0.2px', margin: '10px 0', }); const Main = styled.div({ margin: 'auto', padding: '30px', borderRadius: '10px', background: 'rgba(0,0,0,0.03)', }); const Heading = style...
12,388
https://github.com/TheSoftwareHouse/Kakunin/blob/master/functional-tests/pages/additionalParams.js
Github Open Source
Open Source
MIT
2,021
Kakunin
TheSoftwareHouse
JavaScript
Code
24
93
'use strict'; const { BasePage } = require('kakunin'); class AdditionalParamsPage extends BasePage { constructor() { super(); this.url = '/navigation/pages/:id/titles/:title?additionalParam1=:value1&additionalParam2=:value2'; } } module.exports = AdditionalParamsPage;
27,010
https://github.com/dmezh/ece466-compilers/blob/master/test/dtest.py
Github Open Source
Open Source
MIT
2,021
ece466-compilers
dmezh
Python
Code
115
463
#!/usr/bin/python3 import os, sys import subprocess import toml AUTHOR = 'dmezh' VERSION = '0.01' os.chdir(sys.path[0]) conf = toml.load("dtest_cfg.toml") tests = conf['tests'] projinfo = conf['project'] tests_path = os.path.abspath(projinfo['tests_path']) print(f"Testing {projinfo['name']}...") print() fails = 0...
47,709
https://github.com/butterscotchstallion/rate-my-cat/blob/master/symfony/src/PrgmrBill/RateMyCatBundle/Resources/views/Default/index.html.twig
Github Open Source
Open Source
MIT
2,013
rate-my-cat
butterscotchstallion
Twig
Code
107
440
{% include '@views/header.html.twig' %} <form method="post" id="rating-form" class="well form-inline"> <label class="inline radio"> <input type="radio" name="cat_rating" class="rating" value="1"> </label> <label class="inline radio"> <input type="radio" name="cat_rat...
38,586
https://github.com/TorXakis/TorXakis/blob/master/examps/CustomersOrders/CustomersOrders.java
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,021
TorXakis
TorXakis
Java
Code
412
1,151
/* TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. */ import java.net.*; import java.io.*; import java.util.concurrent.*; import java.util.function.Consumer; import java.util.function.Supplier; public class CustomersOrders { priva...
34,566
https://github.com/layak91/RINA/blob/master/policies/DIF/RMT/PDUForwarding/SimpleDCForwarding/SimpleDCForwarding.cc
Github Open Source
Open Source
MIT
2,016
RINA
layak91
C++
Code
1,896
5,617
// The MIT License (MIT) // // Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project // // 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 wit...
11,275
https://github.com/nikkimog/bubblysort/blob/master/server/db/models/product.spec.js
Github Open Source
Open Source
MIT
null
bubblysort
nikkimog
JavaScript
Code
121
375
const {expect} = require('chai') const db = require('../index') const User = db.model('user') const Product = db.model('product') describe('Product model', () => { beforeEach(() => { return db.sync({force: true}) }) it('has fields flavor, inventory, price, description', async () => { const product = awa...
1,436
https://github.com/brunofagner/IFComunity/blob/master/includes/headCad.php
Github Open Source
Open Source
MIT
null
IFComunity
brunofagner
PHP
Code
32
281
<html> <head> <title>Cadastro</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <link rel="styleshe...
40,918
https://github.com/IBM/oct-glaucoma-forecast/blob/master/revised/analysis/pool_results.py
Github Open Source
Open Source
Apache-2.0
null
oct-glaucoma-forecast
IBM
Python
Code
265
684
from glob import glob models = ['control', 'pwlr', 'ode_gru', 'lode', 'mlode_joint'] modalities = ['rnfl', 'vft'] exp_types = ['num_visits', 'larger_gap'] folds = ['1', '2', '3', '4', '5'] def pool(filename): res = [] header = "" for f in folds: filename = "../training/results_" + f + "/" + filena...
46,576
https://github.com/CityOfZion/NeoModules/blob/master/src/NeoModules.RPC.Tests/Testers/Account/NeoGetAccountStateTester.cs
Github Open Source
Open Source
MIT
2,020
NeoModules
CityOfZion
C#
Code
60
225
using System; using System.Threading.Tasks; using NeoModules.JsonRpc.Client; using NeoModules.RPC.DTOs; using NeoModules.RPC.Services.Account; using Xunit; namespace NeoModules.RPC.Tests.Testers.Account { public class NeoGetAccountStateTester : RpcRequestTester<AccountState> { [Fact] public asy...
41,174
https://github.com/rbuysse/sawtooth-lib/blob/master/libsawtooth/src/journal/genesis/error.rs
Github Open Source
Open Source
Apache-2.0
2,021
sawtooth-lib
rbuysse
Rust
Code
256
614
/* * Copyright 2018-2020 Cargill Incorporated * * 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...
11,714
https://github.com/oluwatobiloba2000/Bug-tracker/blob/master/src/action/actionTypes.js
Github Open Source
Open Source
Apache-2.0
null
Bug-tracker
oluwatobiloba2000
JavaScript
Code
41
129
// action is meant to add a bug export const BUG_ADDED ='BUG_ADDED'; export const BUG_REMOVED ='BUG_REMOVED'; export const BUG_RESOLVED = 'BUG_RESOLVED'; export const BUG_EDITED = 'BUG_EDITED'; export const BUG_FETCHED = 'BUG_FETCHED'; export const UPDATED_USER = 'UPDATED_USER'; export const FETCHED_USER = 'FETCH...
22,118
https://github.com/alonrbar/react-tablize/blob/master/src/internal/window/VirtualWindow.tsx
Github Open Source
Open Source
MIT
2,022
react-tablize
alonrbar
TypeScript
Code
882
2,792
import * as React from 'react'; import { DocDir, ScrollDirection, ScrollEvent, SizeCallback } from '../../types'; import { areShallowEqual, NormalizedScrollEvent, ReactUtils, ScrollUtils } from '../utils'; import { RecycleManager } from './recycleManager'; import { VirtualCell } from './VirtualCell'; import { ElementIn...
4,759
https://github.com/j1s2e3/ioBroker.enocean/blob/master/lib/tools/Serialport_parser.js
Github Open Source
Open Source
MIT
null
ioBroker.enocean
j1s2e3
JavaScript
Code
330
1,069
/*jslint node: true */ /*jslint es6 */ 'use strict'; const Transform = require('stream').Transform; const CRC8 = require('./CRC8'); const BUFFER_LENGTH = 6 + 65536; const syncBytes = Buffer.from([0xa5, 0x5a]); class esp2parser extends Transform { constructor() { super(); this.position = 0; this.buffer = Buff...
42,131
https://github.com/residuous/TalkAndPlay/blob/master/src/main/java/org/scify/talkandplay/models/games/GameImage.java
Github Open Source
Open Source
Apache-2.0
2,016
TalkAndPlay
residuous
Java
Code
244
511
/** * Copyright 2016 SciFY * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, so...
19,629
https://github.com/LiuFang07/bk-cmdb/blob/master/src/scene_server/synchronize_server/logics/exception/file/exception.go
Github Open Source
Open Source
Apache-2.0
2,022
bk-cmdb
LiuFang07
Go
Code
403
1,001
/* * Tencent is pleased to support the open source community by making 蓝鲸 available. * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the Li...
7,158
https://github.com/JetBrains/intellij-community/blob/master/plugins/groovy/test/org/jetbrains/plugins/groovy/refactoring/implExtQuickFix/ImplementsExtendsQuickFixTest.groovy
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Groovy
Code
250
779
/* * Copyright 2000-2016 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...
43,286
https://github.com/ES-Community/ludum-dare-45/blob/master/client/public/particules.js
Github Open Source
Open Source
MIT
2,019
ludum-dare-45
ES-Community
JavaScript
Code
381
1,152
"use strict"; var WIDTH = window.innerWidth, HEIGHT = window.innerHeight, MAX_PARTICLES = 100, DRAW_INTERVAL = 60, canvas = document.querySelector("#pixie"), context = canvas.getContext("2d"), gradient = null, pixies = new Array(); // Resize event! function setDimensions(e) { WIDTH = window.innerWidth...
44,359
https://github.com/joel-clifford-bootcamp/homework-12/blob/master/prompts/roles.js
Github Open Source
Open Source
ADSL
null
homework-12
joel-clifford-bootcamp
JavaScript
Code
54
167
const db = require("../db/roles"); const inquirer = require("inquirer"); const action = { name: 'action', message: 'What would you like to do?', type: 'list', choices: [ 'View all roles', 'Add a role', ] }; module.exports = (con) => { inquirer.prompt(action).then(resp => { ...
9,350
https://github.com/AI4Bharat/pratilipi/blob/master/feedback-api/api.py
Github Open Source
Open Source
MIT
2,022
pratilipi
AI4Bharat
Python
Code
168
654
from flask_sqlalchemy import SQLAlchemy from datetime import datetime from flask import Flask, request, jsonify from flask_cors import CORS, cross_origin app = Flask(__name__) app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///feedbacks.db" db = SQLAlchemy(app) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Ty...
35,524
https://github.com/ThPadelis/eth-selection/blob/master/src/js/app.js
Github Open Source
Open Source
MIT
null
eth-selection
ThPadelis
JavaScript
Code
479
1,470
App = { web3Provider: null, contracts: {}, account: "0x0", hasVoted: false, init: () => { return App.initWeb3(); }, initWeb3: async () => { try { if (window.ethereum) { // Modern browsers const accounts = await ethereum.request({ method: "eth_requestAccounts" }); Ap...
33,256
https://github.com/AAFC-BICoE/agent-api/blob/master/src/main/java/ca/gc/aafc/agent/api/entities/Identifier.java
Github Open Source
Open Source
MIT
null
agent-api
AAFC-BICoE
Java
Code
34
114
package ca.gc.aafc.agent.api.entities; import java.net.URI; import lombok.Builder; import lombok.Getter; import lombok.RequiredArgsConstructor; @Getter @RequiredArgsConstructor @Builder public class Identifier { public enum IdentifierType { ORCID, WIKIDATA; } private final IdentifierType type ; p...
27,269
https://github.com/jamesmartins/AppCompactDemo/blob/master/src/org/ucb/promessas/MainActivity.java
Github Open Source
Open Source
LicenseRef-scancode-unicode-mappings, BSD-3-Clause, Apache-2.0
2,015
AppCompactDemo
jamesmartins
Java
Code
728
2,332
package org.ucb.promessas; import android.app.Activity; import android.os.Bundle; import android.support.v4.view.GestureDetectorCompat; import android.view.GestureDetector; import android.view.GestureDetector.OnDoubleTapListener; import android.view.GestureDetector.OnGestureListener; import android.view.MotionEvent; i...
39,587
https://github.com/winedepot/pinot/blob/master/thirdeye/thirdeye-frontend/app/helpers/format-number.js
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, LicenseRef-scancode-free-unknown, CC-PDDC, LGPL-2.1-only, LicenseRef-scancode-other-permissive, MIT, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference, CPL-1.0, CDDL-1.1, EPL-1.0, BSD-2-Clause, EPL-2.0, CDDL-1.0
2,019
pinot
winedepot
JavaScript
Code
86
235
import { helper } from '@ember/component/helper'; import d3 from 'd3'; /** * Displays human readable number * @param {number} num A number * @return {string} human readable number * @example <caption>Example usage (default).</caption> * // returns 123,456,789 * {{formatNumber 123456789}} * @example <caption>Exa...
32,832
https://github.com/Daniel-W-2001/2Dproject/blob/master/Assets/Scripts/ScriptableObjects/ScriptableEnemy/Scripts/EnemyObject.cs
Github Open Source
Open Source
MIT
null
2Dproject
Daniel-W-2001
C#
Code
98
296
using UnityEngine; namespace ScriptableObjects.ScriptableEnemy.Scripts { [System.Serializable] public class EnemyObject : ScriptableObject { // Enemy //public AnimatorController animController; public int maxHealth = 100; public bool isFlipped = false; // Enemy Atta...
50,544
https://github.com/luizpaulo165/ftployin/blob/master/src/sass/pages/_aside.scss
Github Open Source
Open Source
LicenseRef-scancode-public-domain, CC0-1.0, LicenseRef-scancode-unknown-license-reference
2,018
ftployin
luizpaulo165
SCSS
Code
4
23
#aside{ padding-right:4px; overflow:hidden; }
27,384
https://github.com/paulveillard/cybersecurity-penetration-testing/blob/master/pentest-scripts/learning-python-for-forensics/Chapter 6/Writers/csv_writer.py
Github Open Source
Open Source
Apache-2.0
2,022
cybersecurity-penetration-testing
paulveillard
Python
Code
230
518
import csv from datetime import datetime, timedelta import logging __author__ = 'Preston Miller & Chapin Bryce' __date__ = '20160401' __version__ = 0.04 __description__ = 'This scripts parses the UserAssist Key from NTUSER.DAT.' def csvWriter(data, out_file): """ The csvWriter function writes the parsed UA d...
51,489
https://github.com/bagusshndr/sevindo-go-echo/blob/master/services/review/delivery/http/review_handler.go
Github Open Source
Open Source
MIT
null
sevindo-go-echo
bagusshndr
Go
Code
206
691
package http import ( "context" "github.com/labstack/echo" "github.com/models" "github.com/services/review" "github.com/sirupsen/logrus" "gopkg.in/go-playground/validator.v9" "net/http" "strconv" ) // ResponseError represent the response error struct type ResponseError struct { Message string `json:"message"...
14,550
https://github.com/hsadler/BlockBuilder/blob/master/Assets/Scripts/SceneObjects/Player/PlayerBlockInteractionScript.cs
Github Open Source
Open Source
MIT
null
BlockBuilder
hsadler
C#
Code
149
690
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerBlockInteractionScript : MonoBehaviour { private Player selfPlayer; void Start() { } void Update() { if(selfPlayer.playerActive) { CheckBlockInteraction(); CheckGhostBlockInput...
32,094
https://github.com/windystrife/UnrealEngine_NVIDIAGameWorks/blob/master/Engine/Source/ThirdParty/HarfBuzz/harfbuzz-1.2.4/BuildForUE/IOS/BuildForIOS.command
Github Open Source
Open Source
MIT, LicenseRef-scancode-proprietary-license
2,022
UnrealEngine_NVIDIAGameWorks
windystrife
Shell
Code
73
372
#!/bin/sh # Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. CUR_PATH=$(dirname "$0") PATH_TO_CMAKE_FILE="$CUR_PATH/.." PATH_TO_CMAKE_FILE=`cd "$PATH_TO_CMAKE_FILE"; pwd` echo PATH_TO_CMAKE_FILE=$PATH_TO_CMAKE_FILE # Temporary build directories (used as working directories when running CMake) MAKE_PATH="$CUR...
26,186
https://github.com/karimbouaziz95/UdemyDataScience/blob/master/3_Pandas/Timer.h
Github Open Source
Open Source
MIT
2,022
UdemyDataScience
karimbouaziz95
C
Code
72
303
#pragma once #include <chrono> #include <atomic> namespace cpptiming { typedef std::chrono::high_resolution_clock Clock; typedef std::chrono::nanoseconds nanosecs; typedef std::chrono::microseconds microsecs; typedef std::chrono::milliseconds millisecs; typedef std::chrono::seconds secs; class Timer { public: T...
2,313
https://github.com/gillsignals/labs/blob/master/chipseq/ChIPseq_quiz.R
Github Open Source
Open Source
MIT
2,019
labs
gillsignals
R
Code
76
371
library(DiffBind) setwd(system.file("extra", package="DiffBind")) read.csv("tamoxifen.csv") list.files("peaks") ta <- dba(sampleSheet="tamoxifen.csv") head(ta$peaks[[1]]) pks <- GRanges(ta$peaks[[1]]$V1, IRanges(ta$peaks[[1]]$V2, ta$peaks[[1]]$V3)) table(seqnames(pks)) # ...
28,333
https://github.com/DeeJayTC/dotnet-utils/blob/master/TCDev.Utilities/Enums/EnumHelper.cs
Github Open Source
Open Source
Unlicense
2,022
dotnet-utils
DeeJayTC
C#
Code
136
412
// TCDev.de 2022/03/17 // TCDev.Utilities.EnumHelper.cs // https://www.github.com/deejaytc/dotnet-utils using System.ComponentModel; namespace TCDev.Utilities.Reflection.Enum; public static class EnumHelper { public static string DescriptionAttr<T>(this T source) { var fi = source.GetType() .Ge...
26,644