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/AY2021S2-CS2103-T14-1/tp/blob/master/src/test/java/seedu/address/logic/commands/resident/AddResidentCommandTest.java
Github Open Source
Open Source
MIT
2,021
tp
AY2021S2-CS2103-T14-1
Java
Code
266
1,060
package seedu.address.logic.commands.resident; import static java.util.Objects.requireNonNull; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.address.testutil.Assert....
52,037
https://github.com/benjduff/blog-template-api/blob/master/config/database.js
Github Open Source
Open Source
MIT
null
blog-template-api
benjduff
JavaScript
Code
13
54
module.exports = { //Database path database: "mongodb://localhost:27017/npnp", //JsonWebToken secret key JWT_KEY: "YOUR_SECRET_KEY" }
29,676
https://github.com/vixorien/ggp-advanced-demos/blob/master/DX12/01 - Meshes & Entities/Mesh.h
Github Open Source
Open Source
MIT
2,021
ggp-advanced-demos
vixorien
C
Code
74
286
#pragma once #include <d3d12.h> #include <wrl/client.h> #include "Vertex.h" class Mesh { public: Mesh(Vertex* vertArray, int numVerts, unsigned int* indexArray, int numIndices); Mesh(const char* objFile); D3D12_VERTEX_BUFFER_VIEW GetVB() { return vbView; } D3D12_INDEX_BUFFER_VIEW GetIB() { return ibView; } in...
27,643
https://github.com/web-complete/core/blob/master/tests/core/utils/cache/CacheRuntimeTest.php
Github Open Source
Open Source
MIT
2,018
core
web-complete
PHP
Code
47
247
<?php namespace WebComplete\core\utils\cache; class CacheRuntimeTest extends \CoreTestCase { public function testSetGet() { $this->assertNull(CacheRuntime::get('test1')); CacheRuntime::set('test1', 'value1'); $this->assertEquals('value1', CacheRuntime::get('test1')); CacheRunt...
53,153
https://github.com/b34s7m0d3/Glitch-Garden/blob/master/Assets/Animations/Star Trophy.meta
Github Open Source
Open Source
CC0-1.0
2,017
Glitch-Garden
b34s7m0d3
Unity3D Asset
Code
14
66
fileFormatVersion: 2 guid: 834ecaee3612696458a4f7172a821ccb folderAsset: yes timeCreated: 1475081960 licenseType: Free DefaultImporter: userData: assetBundleName: assetBundleVariant:
33,442
https://github.com/aptly-dev/aptly/blob/master/system/t06_publish/fs_endpoint.py
Github Open Source
Open Source
MIT
2,023
aptly
aptly-dev
Python
Code
1,378
11,469
from fs_endpoint_lib import FileSystemEndpointTest class FSEndpointPublishSnapshot1Test(FileSystemEndpointTest): """ publish snapshot: using symlinks """ fixtureDB = True fixturePool = True fixtureCmds = [ "aptly snapshot create snap1 from mirror gnuplot-maverick", ] runCmd = "...
31,322
https://github.com/ilyasballuwala/laravelskeleton/blob/master/resources/views/admin/city/citylisting.blade.php
Github Open Source
Open Source
MIT
null
laravelskeleton
ilyasballuwala
PHP
Code
202
915
<!-- State Listing Page --> @extends('layouts.admin_template') @section('content') <div> <section class="content-header"> <div class="row"> <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6"> <h1 class="mainsection-title">City Management</h1> </div> <div class="col-xs-6 col...
3,315
https://github.com/sengeiou/bdonor_Public/blob/master/bdonor/app/src/main/java/com/sq/sohel/blooddonor/utils/ObservableFieldUtils/ObservableFieldExtension.java
Github Open Source
Open Source
MIT
2,019
bdonor_Public
sengeiou
Java
Code
124
420
package com.sq.sohel.blooddonor.utils.ObservableFieldUtils; import android.databinding.ObservableField; import java.util.Date; import javax.annotation.Nonnull; import static com.sq.sohel.blooddonor.utils.StringUtils.StringExtension.isNullOrWhiteSpace; public final class ObservableFieldExtension { private Obse...
13,151
https://github.com/yeremiamarcellius/project/blob/master/resources/views/auth/reg.blade.php
Github Open Source
Open Source
MIT
null
project
yeremiamarcellius
PHP
Code
674
2,917
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> <link rel="stylesheet" href="{{asset('css/style.css')}}"> <link rel="preconn...
1,338
https://github.com/clojure-land/lindenmayer-systems/blob/master/project.clj
Github Open Source
Open Source
MIT
2,018
lindenmayer-systems
clojure-land
null
Spoken
85
517
(defproject lindenmayer-systems "0.2.1" :description "An L-System explorer in Clojure" :url "http://lindenmayer-systems.destructuring-bind.org" :license { :name "The MIT License (MIT)" :url "http://opensource.org/licenses/MIT"} :dependencies [ [org.clojure/clojure "1.9.0"] [org.clojure/data.json...
11,508
https://github.com/fdstar/BankEnterpriseDirectAttach/blob/master/src/BEDA.CIB/Contracts/Responses/3.16/V1_ASYNBATCHMRCHAGENTTRNRS.cs
Github Open Source
Open Source
MIT
2,022
BankEnterpriseDirectAttach
fdstar
C#
Code
604
2,507
using BEDA.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; namespace BEDA.CIB.Contracts.Responses { /// <summary> /// 3.16.2收付直通车批量代付(最多100笔,不采用工作流)响应主体 /// </summary> public class V1_ASYNBATCHMR...
24,525
https://github.com/giovgiac/cassio/blob/master/include/expressions/function_expression.h
Github Open Source
Open Source
Apache-2.0
null
cassio
giovgiac
C
Code
58
207
/** * @file function_expression.h * @brief * * @copyright Copyright (c) 2018 All Rights Reserved. * */ #ifndef EXPRESSIONS_FUNCTION_CALL_H_ #define EXPRESSIONS_FUNCTION_CALL_H_ #include <core/child.h> #include <expressions/expression.h> #include <expressions/variable_expression.h> namespace cassio { class Fun...
40,962
https://github.com/Suissa2903/Euroforma/blob/master/euroforma/Vues/v_erreurs.php
Github Open Source
Open Source
LicenseRef-scancode-other-permissive
2,021
Euroforma
Suissa2903
PHP
Code
101
240
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Vue Erreurs * * PHP Version 7 * * @category PPE * @package GSB * @author Réseau CERTA <contact@reseaucerta.o...
19,621
https://github.com/jamrizzi/dados/blob/master/app/controllers/list_controller.py
Github Open Source
Open Source
MIT
2,021
dados
jamrizzi
Python
Code
56
191
from cement.core.controller import CementBaseController, expose from app.services.dados_service import get_categories class ListController(CementBaseController): class Meta: label = 'list' description = 'list categories' stacked_on = 'base' stacked_type = 'nested' arguments ...
5,219
https://github.com/CuityMiko/cstores_wap/blob/master/src/views/home/data.js
Github Open Source
Open Source
MIT
2,018
cstores_wap
CuityMiko
JavaScript
Code
190
1,377
/** * 首页静态数据源 */ /* bannerMenu是轮播图数据源 navigationMenu是导航数据源 advertMenu是广告数据源 goods1Menu是商品数据源 goods2Menu是商品数据源 goods3Menu是商品数据源 goods4Menu是商品数据源 goods5Menu是商品数据源 */ export const bannerMenu = [ { id: 0,url: 'javascript:',img: 'http://www.commoditiesinchina.com:80/upload/20170626/1498444834966.jpg' }, { id: 1,url: ...
46,015
https://github.com/unidevop/sjtu-project-pipe/blob/master/ sjtu-project-pipe/thirdparties/VTK.Net/src/Rendering/vtkTransformInterpolatorDotNet.h
Github Open Source
Open Source
BSD-3-Clause
2,012
sjtu-project-pipe
unidevop
C++
Code
1,456
2,931
#pragma once // managed includes // native includes using namespace System; namespace vtk { ref class vtkProp3D; ref class vtkQuaternionInterpolator; ref class vtkTupleInterpolator; public ref class vtkTransformInterpolator : public vtkObject { public: // const char *GetClassName (); System::String^ GetClass...
3,126
https://github.com/zeusintuivo/SublimeText3-DeepL/blob/master/test/deeplTranslate_test.py
Github Open Source
Open Source
MIT
2,020
SublimeText3-DeepL
zeusintuivo
Python
Code
651
2,505
#!/usr/bin/python # coding:utf-8 # https://github.com/zeusintuivo/SublimeText3-DeepL __version__ = "1.0.0" import platform import os import sys # REF "how to absolute import from root" https://chrisyeh96.github.io/2017/08/08/definitive-guide-python-imports.html sys.path.append(os.path.dirname(os.path.dirname(os.path...
16,225
https://github.com/tibco-jufernan/ebean-h2-fix/blob/master/ebean-test/src/test/java/org/tests/inheritance/bothsides/Target1.java
Github Open Source
Open Source
Apache-2.0
null
ebean-h2-fix
tibco-jufernan
Java
Code
18
59
package org.tests.inheritance.bothsides; import javax.persistence.Entity; @Entity public class Target1 extends TargetBase { public Target1(String name) { super(name); } }
39,377
https://github.com/lucasnpinheiro/SimpleSql/blob/master/src/CraftBlue/SimpleSql.php
Github Open Source
Open Source
MIT
2,018
SimpleSql
lucasnpinheiro
PHP
Code
2,322
5,628
<?php namespace SimpleSql; use PDO; /** * A robust yet simple PHP PDO class for dealing with PDO database connections. * Takes care of many of the intricacies and quirks associated with PDO so * you don't have to. These problem areas include automatic closing of previous * cursors on new query, adding in the abi...
49,304
https://github.com/UnitedLexCorp/rosetta/blob/master/rosetta/cmdutils/subsample.py
Github Open Source
Open Source
BSD-3-Clause
2,021
rosetta
UnitedLexCorp
Python
Code
414
1,210
#!/usr/bin/env python """ Subsample files or stdin and write to stdout. Optionally subsample in the space of different values of a KEY_COLUMN. When doing this, every time a new key value appears, decide whether or not to keep all rows containing this value. """ import argparse import csv import sys from numpy.random ...
34,676
https://github.com/AsahiOS/gate/blob/master/usr/src/uts/common/sys/usb/clients/usbser/usbser_keyspan/usa49msg.h
Github Open Source
Open Source
MIT
null
gate
AsahiOS
C
Code
1,453
3,170
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
13,247
https://github.com/sequoiap/cookiecutter-controlshw/blob/master/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/hw8/controller.py
Github Open Source
Open Source
MIT
null
cookiecutter-controlshw
sequoiap
Python
Code
219
430
import numpy as np import {{cookiecutter.project_name}}.parameters as P import .param8 as P8 class Controller: """ The controller for the system. This is a PD controller. """ def __init__(self): # Instantiates the PD parameters self.kp = P8.kp self.kd = P8.kd self.limi...
13,347
https://github.com/austin-schaefer/CubeCobra/blob/master/src/pages/ExplorePage.js
Github Open Source
Open Source
Apache-2.0
2,020
CubeCobra
austin-schaefer
JavaScript
Code
166
671
import React from 'react'; import PropTypes from 'prop-types'; import { Col, Row } from 'reactstrap'; import CubesCard from 'components/CubesCard'; import CubeSearchNavBar from 'components/CubeSearchNavBar'; import DynamicFlash from 'components/DynamicFlash'; import MainLayout from 'layouts/MainLayout'; import RenderT...
31,324
https://github.com/wx930910/commons-scxml/blob/master/src/main/java/org/apache/commons/scxml2/env/javascript/init_global.js
Github Open Source
Open Source
Apache-2.0
2,022
commons-scxml
wx930910
JavaScript
Code
418
1,123
/* * 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 ...
38,716
https://github.com/kaixinkelexlj/iwork/blob/master/src/test/java/com/fun/netty/NettyServerDecoder.java
Github Open Source
Open Source
Apache-2.0
2,021
iwork
kaixinkelexlj
Java
Code
214
614
/** * Copyright (C) 2010-2013 Alibaba Group Holding Limited * * 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 appl...
44,155
https://github.com/panGod/rocketmq-trade/blob/master/trade-system/trade-dao/src/main/java/com/pan/bean/TradeCoupon.java
Github Open Source
Open Source
Apache-2.0
2,019
rocketmq-trade
panGod
Java
Code
379
1,120
package com.pan.bean; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; public class TradeCoupon implements Serializable { private String couponId; private BigDecimal couponPrice; private Integer userId; private String orderId; private String isUsed; private...
22,392
https://github.com/yujingtaojing/shopify4j/blob/master/graphql-storefront-api/src/main/java/codemeans/shopify4j/graphql/storefront/GraphqlStorefront.java
Github Open Source
Open Source
Apache-2.0
2,021
shopify4j
yujingtaojing
Java
Code
50
259
package codemeans.shopify4j.graphql.storefront; import codemeans.shopify4j.core.exception.GraphqlApiException; import codemeans.shopify4j.graphql.storefront.types.MutationQuery; import codemeans.shopify4j.graphql.storefront.types.MutationResponse; import codemeans.shopify4j.graphql.storefront.types.QueryResponse; impo...
9,406
https://github.com/v-neeraj/saheedokesapne/blob/master/wp/wp-content/themes/wen-associate/inc/hook/core.php
Github Open Source
Open Source
MIT
null
saheedokesapne
v-neeraj
PHP
Code
1,406
4,964
<?php /** * Add custom CSS * * @since WEN Associate 1.0 */ if( ! function_exists( 'wen_associate_add_custom_css' ) ) : function wen_associate_add_custom_css(){ $custom_css = wen_associate_get_option( 'custom_css' ); $output = ''; if ( ! empty( $custom_css ) ) { $output = "\n" . '<style type...
12,189
https://github.com/Mohamab29/SuperSal/blob/master/Frontend/src/app/models/order.model.ts
Github Open Source
Open Source
Apache-2.0
null
SuperSal
Mohamab29
TypeScript
Code
23
70
export class OrderModel { userId: string; cartId: string; finalPrice: number; city: string; street: string; deliveryDate: Date; creditCard: string; _id: string; createdAt: Date; }
44,467
https://github.com/ben-kaufman/Bitcoin-Standup/blob/master/MacOS/StandUp/Helpers/Log.swift
Github Open Source
Open Source
MIT
null
Bitcoin-Standup
ben-kaufman
Swift
Code
123
370
// // Log.swift // StandUp // // Created by Peter on 20/11/19. // Copyright © 2019 Blockchain Commons, LLC // import Foundation class Log { var logText = "" func writeToLog(content: String) { getLog { let file = "log.txt" self.logText += "\(N...
36,648
https://github.com/joshiejack/Progression/blob/master/src/main/java/joshie/progression/asm/AbstractASM.java
Github Open Source
Open Source
MIT
2,018
Progression
joshiejack
Java
Code
136
383
package joshie.progression.asm; import joshie.progression.asm.helpers.ASMHelper.ObfType; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.ClassWriter; import org.objectweb.asm.tree.InsnList; import static joshie.progression.asm.AbstractASM.ASMType.VISITOR; public abstract class AbstractASM { publi...
51,928
https://github.com/ariesate/engine/blob/master/packages/engine/VNode.js
Github Open Source
Open Source
MIT
2,022
engine
ariesate
JavaScript
Code
5
8
export default class VNode {}
7,717
https://github.com/ksalokya/backSlash/blob/master/src/components/verifyemail/VerifyEmail.js
Github Open Source
Open Source
MIT
null
backSlash
ksalokya
JavaScript
Code
417
1,722
import React from "react"; import {withStyles} from "@material-ui/core/styles"; import {Link} from "react-router-dom"; import CssBaseline from "@material-ui/core/CssBaseline"; import TextField from "@material-ui/core/TextField"; import styles from './styles'; import {Tick} from 'react-crude-animated-tick'; import Ava...
36,631
https://github.com/heshengwang/HC_Smart-Park/blob/master/runtime/temp/e0c5fa3b6dcac1a772b1303c19e29fa9.php
Github Open Source
Open Source
Apache-2.0
2,019
HC_Smart-Park
heshengwang
PHP
Code
5,691
34,694
<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:58:"/www/wwwroot/www.hacyy.com/app/admin/view/index/index.html";i:1550459221;s:58:"/www/wwwroot/www.hacyy.com/app/admin/view/public/base.html";i:1540776139;s:60:"/www/wwwroot/www.hacyy.com/app/admin/view/public/header.html";i:1541036748;s:62:"/www/wwwroot/www.hacyy.com...
12,125
https://github.com/654894017/light-task-scheduler/blob/master/lts-core/src/main/java/com/lts/core/domain/JobMeta.java
Github Open Source
Open Source
Apache-2.0
2,016
light-task-scheduler
654894017
Java
Code
142
433
package com.lts.core.domain; import com.lts.core.json.JSON; import java.io.Serializable; import java.util.HashMap; import java.util.Map; /** * @author Robert HG (254963746@qq.com) on 6/13/15. */ public class JobMeta implements Serializable { private static final long serialVersionUID = 1476984243004969158L; ...
26,980
https://github.com/yuhua99/bbgo/blob/master/pkg/notifier/slacknotifier/slack.go
Github Open Source
Open Source
MIT
2,021
bbgo
yuhua99
Go
Code
286
1,003
package slacknotifier import ( "context" "fmt" log "github.com/sirupsen/logrus" "github.com/slack-go/slack" ) type SlackAttachmentCreator interface { SlackAttachment() slack.Attachment } type Notifier struct { client *slack.Client channel string } type NotifyOption func(notifier *Notifier) func New(token,...
7,044
https://github.com/pseudomarkets/PMConsolidatedTradingPlatform/blob/master/PMConsolidatedTradingPlatformService.Api/Models/SimpleOrderDrainerRequest.cs
Github Open Source
Open Source
MIT
null
PMConsolidatedTradingPlatform
pseudomarkets
C#
Code
33
101
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace PMConsolidatedTradingPlatformService.Api.Models { public class SimpleOrderDrainerRequest { public List<int> OrderIds { get; set; } public string OrderDate...
49,518
https://github.com/champmaniac/LeetCode/blob/master/1. Pascal Triangle - GFG/1.-pascal-triangle.cpp
Github Open Source
Open Source
MIT
2,022
LeetCode
champmaniac
C++
Code
118
363
// { Driver Code Starts #include <bits/stdc++.h> using namespace std; #define ll long long // } Driver Code Ends // #define ll long long class Solution{ public: #define MOD 1000000007 vector<ll> nthRowOfPascalTriangle(int n) { // code here vector<vector<ll>> res(n); for(int i=0;i<n;i++){ ...
47,206
https://github.com/jyou/micronaut-vs-quarkus/blob/master/micronaut/getting-started/src/test/java/getting/started/HelloControllerTest.java
Github Open Source
Open Source
Apache-2.0, MIT
2,019
micronaut-vs-quarkus
jyou
Java
Code
75
333
package getting.started; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import java.util.UUID; import javax.inject.Inject; import org.junit.jupiter.api.Test; import io.micronaut.http.HttpRequest; import io.micronaut.http.client.RxHttpClien...
2,891
https://github.com/esraa212/wahfy/blob/master/resources/views/Front/layout/obj.blade.php
Github Open Source
Open Source
MIT
null
wahfy
esraa212
PHP
Code
26
177
<link rel="stylesheet" href="css/my1.css"> <link rel="stylesheet" href="css/my2.css"> <link rel="stylesheet" href="css/my3.css"> <link rel="stylesheet" href="css/my4.css"> <link rel="stylesheet" type="text/css" href="slick/slick.css"/> <link rel="stylesheet" type="text/css" href="slick/slick-theme.css"/> <link href="ht...
42,095
https://github.com/attilahogyai/bbsitter-app/blob/master/app/templates/index.hbs
Github Open Source
Open Source
MIT
null
bbsitter-app
attilahogyai
null
Spoken
226
1,188
{{#liquid-if howto class="toggle"}} <div class="row how-to-box"> <div class="column small-12 text-right"> <br> <a href="#" {{action 'openHowTo'}}><i class="fa fa-2x fa-times"></i></a> </div> <div class="column large-3 medium-3 small-12 text-center"><img src="/assets/images/howto/dream.png" alt="Need a babysitter"> <h4>...
32,588
https://github.com/isgasho/go-dockerfile/blob/master/testdata/render/multistage/Dockerfile
Github Open Source
Open Source
MIT
2,021
go-dockerfile
isgasho
Dockerfile
Code
17
35
# Comment1 FROM build-image COPY . /app # Comment 2 RUN make /app FROM runtime-image CMD /app/bin
44,694
https://github.com/huangmiao/wechat/blob/master/src/main/java/com/mhuang/wechat/common/message/ArticleResMessage.java
Github Open Source
Open Source
Apache-2.0
2,016
wechat
huangmiao
Java
Code
194
705
package com.mhuang.wechat.common.message; import java.util.ArrayList; import java.util.List; import com.alibaba.fastjson.annotation.JSONField; import com.mhuang.wechat.common.message.child.Article; import com.thoughtworks.xstream.annotations.XStreamOmitField; /** * * @Description 图文响应消息 * @author mHuang * @date...
38,993
https://github.com/crownstone/crownstone-homey/blob/master/node_modules/enabled/test.js
Github Open Source
Open Source
LGPL-2.0-or-later, LGPL-3.0-only, LicenseRef-scancode-free-unknown, MIT, LicenseRef-scancode-unknown-license-reference, Apache-2.0, LGPL-3.0-or-later
2,022
crownstone-homey
crownstone
JavaScript
Code
88
408
describe('enabled', function () { 'use strict'; var assume = require('assume') , enabled = require('./'); it('supports wildcards', function () { var variable = 'b*'; assume(enabled('bigpipe', variable)).to.be.true(); assume(enabled('bro-fist', variable)).to.be.true(); assume(enabled('ro-fis...
28,817
https://github.com/mvkhokhlov/univintel_global_business_network_flutterapp/blob/master/univintel_gbn_app/lib/pages/root.dart
Github Open Source
Open Source
MIT
null
univintel_global_business_network_flutterapp
mvkhokhlov
Dart
Code
102
412
import 'package:flutter/material.dart'; import 'package:flutter_secure_storage/flutter_secure_storage.dart'; import 'package:univintel_gbn_app/pages/dashboard.dart'; import 'package:univintel_gbn_app/pages/signin.dart'; import 'package:univintel_gbn_app/globals.dart'; class RootPage extends StatefulWidget { @overri...
3,362
https://github.com/khanghugo/PMX-VMD-Scripting-Tools/blob/master/handy tools/_scratch_find_pmx_differences.py
Github Open Source
Open Source
MIT
null
PMX-VMD-Scripting-Tools
khanghugo
Python
Code
340
737
import sys try: sys.path.append("../") from python import nuthouse01_core as core from python import nuthouse01_pmx_parser as pmxlib except ImportError as eee: print(eee) print("ERROR: failed to import some of the necessary files, all my scripts must be together in the same folder!") print("...press ENTER to exi...
43,032
https://github.com/fabrix-app/spool-cms/blob/master/lib/api/services/RouterDBService.ts
Github Open Source
Open Source
MIT
2,018
spool-cms
fabrix-app
TypeScript
Code
279
865
import { FabrixService as Service } from '@fabrix/fabrix/dist/common' const _ = require('lodash') /** * @module RouterDBService * @description Binds Flat Files to Router Database */ export class RouterDBService extends Service { /** * build * @returns {Promise.<T>} */ // TODO build Database to Flat File...
42,576
https://github.com/rootSectornet/tryout-mobile/blob/master/lib/src/resources/warehouseApi.dart
Github Open Source
Open Source
Apache-2.0
2,021
tryout-mobile
rootSectornet
Dart
Code
64
257
// ignore: unused_import import 'package:http/http.dart' show Client; // ignore: unused_import import 'package:TesUjian/src/model/user.dart'; // ignore: unused_import import 'package:TesUjian/helper/paths.dart'; // ignore: unused_import import 'package:TesUjian/helper/rijndael.dart'; import 'dart:convert'; import 'pack...
42,248
https://github.com/DataBiosphere/terra-resource-janitor/blob/master/src/main/java/bio/terra/janitor/app/controller/CloudResourceUidConverter.java
Github Open Source
Open Source
BSD-3-Clause
2,022
terra-resource-janitor
DataBiosphere
Java
Code
67
252
package bio.terra.janitor.app.controller; import bio.terra.janitor.generated.model.CloudResourceUid; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.convert.conv...
49,990
https://github.com/livioso/sparkbot-webhook-samples/blob/master/examples/devnet/bot.js
Github Open Source
Open Source
MIT
2,016
sparkbot-webhook-samples
livioso
JavaScript
Code
268
846
/* * a bot that help you get orientation at DevNet * */ var debug = require("debug")("samples"); var fine = require("debug")("samples:fine"); // Starts your Webhook with default configuration where the SPARK API access token is read from the SPARK_TOKEN env variable var SparkBot = require("../../sparkbot/webhoo...
18,510
https://github.com/jdi-testing/jdi-light/blob/master/jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/complex/tabgroup/TabsWithHeadersOnTheBottomTests.java
Github Open Source
Open Source
MIT
2,023
jdi-light
jdi-testing
Java
Code
70
433
package io.github.epam.angular.tests.elements.complex.tabgroup; import org.testng.annotations.Test; import static com.jdiai.tools.StringUtils.format; import static io.github.com.pages.AngularPage.tabsSection; public class TabsWithHeadersOnTheBottomTests extends TestsTabGroupBase { @Test public void verifyTa...
21,438
https://github.com/XwyFromCN/activiti-learn/blob/master/src/test/java/me/chanjar/GatewayTest.java
Github Open Source
Open Source
Apache-2.0
2,019
activiti-learn
XwyFromCN
Java
Code
262
1,787
package me.chanjar; import static org.junit.Assert.*; import java.util.List; import org.activiti.engine.RuntimeService; import org.activiti.engine.TaskService; import org.activiti.engine.runtime.Execution; import org.activiti.engine.task.Task; import org.activiti.engine.test.ActivitiRule; import org.activiti.engine....
50,923
https://github.com/CooperativeActivities/crac-core/blob/master/src/main/java/crac/module/utility/filter/input/InputParameters.java
Github Open Source
Open Source
Apache-2.0
2,018
crac-core
CooperativeActivities
Java
Code
37
97
package crac.module.utility.filter.input; import crac.models.input.PersonalizedFilters; import lombok.Data; /** * Helper class that contains attributes of a single filter * @author David * */ @Data public class InputParameters { public InputParameters(){ } private String name; private Object value; }
18,394
https://github.com/niklomax/daedalus/blob/master/daedalus/utils.py
Github Open Source
Open Source
MIT
2,021
daedalus
niklomax
Python
Code
1,169
3,974
""" utility functions """ import argparse import glob import yaml import numpy as np import os import pandas as pd #import humanleague as hl from scipy.sparse import coo_matrix import scipy from vivarium.config_tree import ConfigTree def get_config(config): # Open the vivarium config yaml. with open(config...
28,277
https://github.com/pszemko-t/eks_playground/blob/master/cluster/managed_ec2.tf
Github Open Source
Open Source
MIT
2,020
eks_playground
pszemko-t
HCL
Code
94
455
resource "aws_iam_role" "example" { name = "eks-node-group-example" assume_role_policy = jsonencode({ Statement = [{ Action = "sts:AssumeRole" Effect = "Allow" Principal = { Service = "ec2.amazonaws.com" } }] Version = "2012-10-17" }) } resource "aws_iam_role_po...
13,796
https://github.com/re8260/php-bandwidth-iris/blob/master/src/PortinsModel.php
Github Open Source
Open Source
MIT
null
php-bandwidth-iris
re8260
PHP
Code
670
2,302
<?php /** * @model Portins * * provides: * get/0 * */ namespace Iris; class Portins extends RestEntry { public function __construct($account) { $this->parent = $account; parent::_init($account->get_rest_client(), $account->get_relative_namespace()); } public function portin($id) { ...
50,774
https://github.com/oliverrausch/math-manager/blob/master/src/main/java/form/variables/QuadraticGenerateVariables.java
Github Open Source
Open Source
Apache-2.0
2,016
math-manager
oliverrausch
Java
Code
307
1,390
package form.variables; import factory.QuadraticProblemFactory; import model.Problem; import model.Quadratic; import javax.swing.*; import javax.swing.border.EtchedBorder; import java.awt.*; import java.awt.event.ItemEvent; import java.util.Hashtable; public class QuadraticGenerateVariables extends AbstractProblemVa...
29,265
https://github.com/hql7/pc.lara-shop/blob/master/css/pay.scss
Github Open Source
Open Source
MIT
null
pc.lara-shop
hql7
SCSS
Code
202
702
@import "util"; //------------------------------------------------------ ._pay { padding: 0 100px; } ._pay_logo { padding-top: 30px; overflow: hidden; > h1 { float: left; } img { width: 130px; height: 52px; vertical-align: middle; } label { font-size: 20px; margin-left: 20px; ...
51,739
https://github.com/henit/react-schemaform/blob/master/src/fields/FieldValidation.scss
Github Open Source
Open Source
MIT
2,017
react-schemaform
henit
SCSS
Code
15
57
.rsf-input-field-validation { display: block; padding: 0.4em 0; font-size: 0.8em; // color: #808080; color: red; }
10,924
https://github.com/glylilin/huati/blob/master/www/app/wenda/resources/views/user/ask.blade.php
Github Open Source
Open Source
MIT
2,017
huati
glylilin
Blade
Code
88
700
@extends('layout') @section('main_left') <link rel="stylesheet" type="text/css" href="{{asset('static/css/user_center_ask_question.css')}}"> <script type="text/javascript" src='{{asset("static/js/teacher_column_care.js")}}'></script> <script type="text/javascript" src='{{asset("static/js/user_center_ask_question.js")}}...
29,543
https://github.com/ronzxc1998/RR/blob/master/components/branch/SantaRosa/santarosa.jsp
Github Open Source
Open Source
MIT
null
RR
ronzxc1998
null
Spoken
49
233
<script src="/RR/components/branch/SantaRosa/santarosa.js"></script> <div class="main main-raised"> <div class="section section-basic"> <div class="container"> <div class="title"> <h2>Santa Rosa</h2> </div> <div class="col-xl-12 col-xl-20 mb-5 col-xl-10 col-xl-10 mb-10"> ...
52,626
https://github.com/lx1036/terway/blob/master/rpc/rpc.pb.go
Github Open Source
Open Source
Apache-2.0
null
terway
lx1036
Go
Code
6,538
25,887
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: rpc.proto package rpc import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const...
49,181
https://github.com/infinum/datx/blob/master/packages/datx-network/src/consts.ts
Github Open Source
Open Source
MIT
2,023
datx
infinum
TypeScript
Code
5
17
export const NETWORK_PERSISTED = 'networkPersisted';
16,923
https://github.com/lrn80/bst/blob/master/application/api/controller/BaseController.php
Github Open Source
Open Source
Apache-2.0
null
bst
lrn80
PHP
Code
46
151
<?php /** * Created by PhpStorm. * User: 李若宁 * Date: 2019/5/3 * Time: 11:31 */ namespace app\api\controller; use think\Controller; use app\api\service\Token; class BaseController extends Controller { protected function checkExclusiveScope() { Token::needExclusiveScope(); } protected ...
14,223
https://github.com/panavis/google-or-tools-maven/blob/master/src/main/java/com/google/ortools/linearsolver/MPSolver.java
Github Open Source
Open Source
Apache-2.0
2,020
google-or-tools-maven
panavis
Java
Code
1,376
5,372
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------------...
20,863
https://github.com/ayuwidyainggit/aplikasi_konsinyasi/blob/master/perhitungan_lap.php
Github Open Source
Open Source
CC-BY-3.0
null
aplikasi_konsinyasi
ayuwidyainggit
PHP
Code
458
2,254
<!--A Design by W3layouts Author: W3layout Author URL: http://w3layouts.com License: Creative Commons Attribution 3.0 Unported License URL: http://creativecommons.org/licenses/by/3.0/ --> <!DOCTYPE html> <html lang="en"> <?php session_start(); include_once "session.php"; include "menu.php"; include "koneksi.php"; ?> <...
35,213
https://github.com/AhmadAbdelhamid/Instant-Weather/blob/master/app/src/main/java/com/mayokunadeniyi/instantweather/utils/UserInteractionAwareCallback.kt
Github Open Source
Open Source
MIT
2,022
Instant-Weather
AhmadAbdelhamid
Kotlin
Code
276
1,073
package com.mayokunadeniyi.instantweather.utils import android.annotation.TargetApi import android.app.Activity import android.os.Build import android.view.ActionMode import android.view.KeyEvent import android.view.Menu import android.view.MenuItem import android.view.MotionEvent import android.view.SearchEvent impor...
38,625
https://github.com/ceekay1991/AliPayForDebug/blob/master/AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/TEXRawDataSource.h
Github Open Source
Open Source
MIT
2,021
AliPayForDebug
ceekay1991
C
Code
64
201
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import "TEXSource.h" @class TEXContext; @interface TEXRawDataSource : TEXSource { const void *_rawData; TEXContext *_context...
28,568
https://github.com/corupta/pdf-viewer-reactjs/blob/master/src/components/RenderPdf.js
Github Open Source
Open Source
MIT
2,020
pdf-viewer-reactjs
corupta
JavaScript
Code
433
1,188
import React, { useState, useEffect, useRef } from 'react' import PropTypes from 'prop-types' import pdfjs from 'pdfjs-dist' import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.entry' import Alert from './Alert' pdfjs.GlobalWorkerOptions.workerSrc = pdfjsWorker let pdf = null const RenderPdf = ({ document, ...
33,537
https://github.com/houboye/BYHttpNetwork_OC/blob/master/BYHttpNetworking_OC/BYHttpNetworking_OC/BaseRequestTest/TestGetRequest.m
Github Open Source
Open Source
Apache-2.0
2,018
BYHttpNetwork_OC
houboye
Objective-C
Code
109
411
// // TestGetRequest.m // BYHttpNetworking_OC // // Created by 侯博野 on 2018/7/17. // Copyright © 2018 satelens. All rights reserved. // #import "TestGetRequest.h" @implementation TestGetRequest - (RequestMethod)requestMethod { return RequestMethodGET; } - (NSString *)requestURLPath { return @"/get"; } ...
13,080
https://github.com/ioaNikas/blockframes/blob/master/apps/delivery/delivery/src/app/layout/layout.component.ts
Github Open Source
Open Source
MIT
null
blockframes
ioaNikas
TypeScript
Code
78
253
import { ChangeDetectionStrategy, OnInit, Component } from '@angular/core'; import { ContextMenuService } from '@blockframes/ui'; import { CONTEXT_MENU } from './context-menu'; import { RouterOutlet } from '@angular/router'; import { slideAnimation } from '@blockframes/utils'; @Component({ selector: 'delivery-layout...
10,908
https://github.com/ppazos/open-ehr-gen-framework/blob/master/ehrgen/grails-app/domain/templates/ArchetypeReference.groovy
Github Open Source
Open Source
Apache-2.0
2,015
open-ehr-gen-framework
ppazos
Groovy
Code
201
565
package templates import archetype.ArchetypeManager import org.openehr.am.archetype.Archetype import org.openehr.am.archetype.constraintmodel.ArchetypeConstraint /** * @author Pablo Pazos Gutierrez (pablo.swp@gmail.com) * */ class ArchetypeReference { ArchetypeTypeEnum type // section, observation, cluster ...
25,905
https://github.com/wokalski/Distraction-Free-Xcode-plugin/blob/master/Archived/v1/WCDistractionFreeXcodePlugin/Headers/Frameworks/IDEKit/NSObject-AllowAlwaysCallingSuper.h
Github Open Source
Open Source
MIT
2,021
Distraction-Free-Xcode-plugin
wokalski
C
Code
32
118
// // 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" @interface NSObject (AllowAlwaysCallingSuper) - (id)ide_replaceAggregatedValue; - (id)aggregateReplacementBySettingValue:(id)arg1 forKeyPath:(id)arg2; @end
14,950
https://github.com/gilleschrist-houehou/manou/blob/master/serverSygec/app/Http/Controllers/NoteexplicativeController.php
Github Open Source
Open Source
MIT
null
manou
gilleschrist-houehou
PHP
Code
1,332
6,813
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Controllers\AuthController; use Illuminate\Http\Requests; use App\Models\Noteexplicative; use App\Models\Jetoncourrierentrant; use App\Models\Jetoncourrierinterne; use App\Models\Signaturenoteexplic...
30,447
https://github.com/Nondzu/opencv_contrib/blob/master/modules/ccalib/samples/random_pattern_generator.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
opencv_contrib
Nondzu
C++
Code
205
519
#include "opencv2/ccalib/randpattern.hpp" using namespace cv; const char * usage = "\n example command line for generating a random pattern. \n" " random_patterng_generator -iw 600 -ih 850 pattern.png\n" "\n"; static void help() { printf("\n This is a sample for generating a random pattern that can...
49,141
https://github.com/jhoerr/box-csharp-sdk-v2/blob/master/BoxApi.V2/BoxManager.Comment.cs
Github Open Source
Open Source
CC-BY-3.0
2,014
box-csharp-sdk-v2
jhoerr
C#
Code
2,279
5,469
using System; using System.Collections.Generic; using BoxApi.V2.Model; using BoxApi.V2.Model.Enum; using BoxApi.V2.Model.Fields; using RestSharp; namespace BoxApi.V2 { public partial class BoxManager { /// <summary> /// Add a comment to a file /// </summary> /// <param name...
2,113
https://github.com/Jomark031497/keyboard-market-TokenSDK/blob/master/clients/src/main/resources/static/app.js
Github Open Source
Open Source
Apache-2.0
null
keyboard-market-TokenSDK
Jomark031497
JavaScript
Code
13
35
"use strict"; function sayHello() { console.log("Hello!") } // Define your client-side logic here.
50,009
https://github.com/porkchopsandwiches/silex-utilities/blob/master/lib/src/PorkChopSandwiches/Silex/Utilities/Config/Tree.php
Github Open Source
Open Source
MIT
null
silex-utilities
porkchopsandwiches
PHP
Code
830
2,172
<?php namespace PorkChopSandwiches\Silex\Utilities\Config; use ArrayIterator; use PorkChopSandwiches\Silex\Utilities\Config\Exceptions\InvalidValueException; use PorkChopSandwiches\Silex\Utilities\Config\Exceptions\InvalidKeyException; use PorkChopSandwiches\Silex\Utilities\Config\Exceptions\NonExistentKeyException; ...
38,495
https://github.com/aliyun/aliyun-oss-cpp-sdk/blob/master/test/src/Bucket/BucketAclSettingsTest.cc
Github Open Source
Open Source
Apache-2.0
2,023
aliyun-oss-cpp-sdk
aliyun
C++
Code
511
2,539
/* * Copyright 2009-2017 Alibaba Cloud 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...
32,305
https://github.com/Jodaille/Detecteur-ESP32-Cam/blob/master/sketchbook/decoder_jpeg_08_1/decoder_jpeg_08_1.ino
Github Open Source
Open Source
Apache-2.0
2,021
Detecteur-ESP32-Cam
Jodaille
null
Spoken
872
3,244
/* 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 not use this f...
27,116
https://github.com/TecDroiD/rocs/blob/master/rocsmq/include/rocsmqthread.h
Github Open Source
Open Source
Apache-2.0
null
rocs
TecDroiD
C
Code
122
400
/* * rocsmqthread.h * * Created on: 05.10.2015 * Author: tecdroid */ #ifndef ROCSMQTHREAD_H_ #define ROCSMQTHREAD_H_ #ifdef __cplusplus extern "C" { #endif #include <pthread.h> #include "linkedlist.h" #include "rocsmq.h" #define ROCSMQ_THREAD_RUN 1 #define ROCSMQ_THREAD_STOP 0 /** * data for a process...
11,363
https://github.com/sofroniewn/napari-svg/blob/master/napari_svg/__init__.py
Github Open Source
Open Source
LGPL-3.0-only, Apache-2.0, MIT, BSD-3-Clause, GPL-3.0-only, MPL-2.0
2,020
napari-svg
sofroniewn
Python
Code
11
68
from .hook_implementations import ( napari_get_writer, napari_write_image, napari_write_labels, napari_write_points, napari_write_shapes, napari_write_vectors, )
31,330
https://github.com/fabio-d/fuchsia-stardock/blob/master/src/devices/bin/driver_host/device_controller_connection.cc
Github Open Source
Open Source
BSD-2-Clause
2,022
fuchsia-stardock
fabio-d
C++
Code
889
3,547
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "device_controller_connection.h" #include <fidl/fuchsia.device/cpp/wire.h> #include <lib/zx/channel.h> #include <lib/zx/vmo.h> #include <zircon/s...
30,953
https://github.com/bbbbb1202/devzb/blob/master/self/src/main/webapp/WEB-INF/views/common/footer.jsp
Github Open Source
Open Source
Apache-2.0
null
devzb
bbbbb1202
null
Spoken
17
146
<%@ page session="false" language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%><script type="text/javascript" src="${staticHost}/resources/main/common.js"></script> <div class="footer"> @2017 devzb.com&nbsp;&nbsp;&nbsp;&nbsp;备案号:浙ICP备15011000号-1&nbsp;&nbsp;&nbsp...
712
https://github.com/ServioTRC/mario-bros-q-learning/blob/master/legacy/otro/agent1.py
Github Open Source
Open Source
MIT
null
mario-bros-q-learning
ServioTRC
Python
Code
494
2,086
import time import random import numpy as np from collections import deque import tensorflow.compat.v1 as tf tf.disable_v2_behavior() tf.compat.v1.disable_eager_execution() from matplotlib import pyplot as plt class DQNAgent: """ DQN agent """ def __init__(self, states, actions, max_memory, double_q): ...
53,854
https://github.com/srz-zumix/iutest/blob/master/test/extension_tests.cpp
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
iutest
srz-zumix
C++
Code
69
264
//====================================================================== //----------------------------------------------------------------------- /** * @file extension_tests.cpp * @brief iutest 拡張部分の test * * @author t.shirayanagi * @par copyright * Copyright (C) 2013-2016, Takazumi Sh...
47,543
https://github.com/sfyumi/SingletonFactory/blob/master/src/main/java/cn/agentd/singleton/factory/exception/InstanceInitialException.java
Github Open Source
Open Source
MIT
null
SingletonFactory
sfyumi
Java
Code
55
141
package cn.agentd.singleton.factory.exception; /** * Singleton instance initializing error */ public class InstanceInitialException extends RuntimeException { private static final long serialVersionUID = -6304094242348145589L; /** * Initialize instance of class error * * @param clazz the...
20,039
https://github.com/oalee/Aftabe/blob/master/app/src/main/java/ir/treeco/aftabe2/Adapter/MediaAdapter.java
Github Open Source
Open Source
Beerware
2,020
Aftabe
oalee
Java
Code
213
717
package ir.treeco.aftabe2.Adapter; import android.content.Context; import android.media.MediaPlayer; import java.util.HashMap; import ir.treeco.aftabe2.R; /** * Created by al on 5/20/16. */ public class MediaAdapter { private static MediaAdapter instance; private static Object lock = new Object(); H...
23,984
https://github.com/silmar-alberti/PhpCache/blob/master/Tests/Libraries/HashKeyLibTest.php
Github Open Source
Open Source
MIT
2,020
PhpCache
silmar-alberti
PHP
Code
112
436
<?php namespace Tests\Libraries; use PhpCache\Libraries\HashKeyLib; use PHPUnit\Framework\TestCase; class HashKeyLibTest extends TestCase { const KEY_PATTERN = '/^[a-fA-F0-9]+$/'; const KEY_WITH_PREFIX_PATTERN = '/^\w+_[a-fA-F0-9]+$/'; private $hashKeyLib; public function setUp(): void { ...
51,478
https://github.com/w3cub/docshub-node/blob/master/public/javascripts/views/content/content.coffee
Github Open Source
Open Source
MIT
2,020
docshub-node
w3cub
CoffeeScript
Code
377
1,412
class app.views.Content extends app.View @el: '._content' @loadingClass: '_content-loading' @events: click: 'onClick' @shortcuts: altUp: 'scrollStepUp' altDown: 'scrollStepDown' pageUp: 'scrollPageUp' pageDown: 'scrollPageDown' pageTop: 'scrollToTop' pageBottom: 's...
49,474
https://github.com/andreykovalko/job4j/blob/master/chapter_001/src/test/java/ru/max2Numbers/MaxTest.java
Github Open Source
Open Source
Apache-2.0
null
job4j
andreykovalko
Java
Code
90
274
package ru.max2numbers; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Test. * * @author Andrey Kovalko (kovalkoandrey1983@mail.ru) * @version $Id$ * @since 0.1 */ public class MaxTest { /** * Test max(). */ ...
39,566
https://github.com/bpbpublications/Programming-Techniques-using-Python/blob/master/Chapter 09/Chap09_Example9.38.py
Github Open Source
Open Source
MIT
null
Programming-Techniques-using-Python
bpbpublications
Python
Code
74
423
from time import * #printing localtime mystruct_time = localtime() print(type(mystruct_time)) print(mystruct_time) print("Year is: ",mystruct_time.tm_year) print("Month is: ",mystruct_time.tm_mon) print("Date is: ",mystruct_time.tm_mday) print("Hour is: ",mystruct_time.tm_hour) print("Min is: ",mystruct_time.tm_min) p...
31,494
https://github.com/bicknrown/vizier-scala/blob/master/src/main/scala/info/vizierdb/api/response/VizierErrorResponse.scala
Github Open Source
Open Source
Apache-2.0
2,022
vizier-scala
bicknrown
Scala
Code
187
412
/* -- copyright-header:v2 -- * Copyright (C) 2017-2021 University at Buffalo, * New York University, * Illinois Institute of Technology. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
21,093
https://github.com/kolotyluk/leaderboard/blob/master/src/main/scala/net/kolotyluk/leaderboard/package.scala
Github Open Source
Open Source
Apache-2.0
null
leaderboard
kolotyluk
Scala
Code
133
329
package net.kolotyluk import net.kolotyluk.scala.extras.Internalized /** =Leaderboard Service= * Leaderboard Microservice which implements standalone leaderboard service * inspired by [[https://redis.io/topics/data-types Redis Sorted Sets]] * <p> * Many leaderboard implementation make use of the general Sorte...
28,572
https://github.com/FoGhost/mock_apns/blob/master/lib/mock_apns/request/feedback.rb
Github Open Source
Open Source
MIT
2,014
mock_apns
FoGhost
Ruby
Code
10
28
module MockAPNS module Request class Feedback #TODO end end end
39,127
https://github.com/matvore/branchx/blob/master/main.c
Github Open Source
Open Source
Apache-2.0
2,020
branchx
matvore
C
Code
913
3,220
/* * Copyright 2020 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 applic...
21,606
https://github.com/sn-lab/mini-vis/blob/master/teensyVis/arduino/GC9307_teensy_GFX/logo_bitmap.h
Github Open Source
Open Source
MIT
null
mini-vis
sn-lab
C
Code
6,322
20,808
#include <avr/pgmspace.h> // library needed for bitmaps in program memory? // 'logo_U', 240x210px const unsigned char logos [] PROGMEM = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x...
46,372
https://github.com/arturek/ILSpy/blob/master/NRefactory/ICSharpCode.NRefactory.Tests/Untested.cs
Github Open Source
Open Source
MIT
2,021
ILSpy
arturek
C#
Code
117
525
// Copyright (c) 2010 AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under MIT X11 license (for details please see \doc\license.txt) using System; namespace ICSharpCode.NRefactory { // This file contains unit tests from SharpDevelop 4.0 which are no...
41,041
https://github.com/belltoy/leetcode-rs/blob/master/src/ser_des_bst.rs
Github Open Source
Open Source
MIT
2,021
leetcode-rs
belltoy
Rust
Code
323
1,392
//! # 449. 序列化和反序列化二叉搜索树 //! //! 难度 中等 //! //! 序列化是将数据结构或对象转换为一系列位的过程,以便它可以存储在文件或内存缓冲区中,或通过网络连接链路传输,以便稍后在同一个或另一个计算机环境中重建。 //! //! 设计一个算法来序列化和反序列化 二叉搜索树 。 对序列化/反序列化算法的工作方式没有限制。 您只需确保二叉搜索树可以序列化为字符串,并且可以将该字符串反序列化为最初的二叉搜索树。 //! //! 编码的字符串应尽可能紧凑。 //! //!   //! //! ## 示例 1: //! //! ```text //! 输入:root = [2,1,3] //! 输出:[2,1,3...
21,162
https://github.com/ScalablyTyped/Distribution/blob/master/m/maplibre-gl/src/main/scala/typings/maplibreGl/mod/TouchPitchHandler.scala
Github Open Source
Open Source
BSD-3-Clause, MIT
2,023
Distribution
ScalablyTyped
Scala
Code
71
239
package typings.maplibreGl.mod import typings.mapboxPointGeometry.mod.^ import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @JSImport("maplibre-gl", "TouchPitchHandler") @js.native open class TouchPitchHandle...
46,451