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/McKay1717/Sixth/blob/master/src/GameAppli.java | Github Open Source | Open Source | MIT | null | Sixth | McKay1717 | Java | Code | 39 | 116 | import controleur.ControlleurGeneral;
import java.io.IOException;
import static javax.swing.SwingUtilities.invokeLater;
public class GameAppli {
public static void main(String[] args) {
invokeLater(new Runnable() {
public void run() {
try {
new ControlleurG... | 8,734 |
https://github.com/aswolf/xmeos/blob/master/xmeos/test/oldtest_models.py | Github Open Source | Open Source | MIT | 2,020 | xmeos | aswolf | Python | Code | 3,967 | 19,364 | import numpy as np
import models
import pytest
import matplotlib.pyplot as plt
import matplotlib as mpl
from abc import ABCMeta, abstractmethod
import copy
#====================================================================
# Define "slow" tests
# - indicated by @slow decorator
# - slow tests are run only if using ... | 33,923 |
https://github.com/bangil0/pantaucorona/blob/master/app/Notifications/CaseUpdatedNotification.php | Github Open Source | Open Source | MIT | 2,020 | pantaucorona | bangil0 | PHP | Code | 83 | 302 | <?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use NotificationChannels\Telegram\TelegramChannel;
use NotificationChannels\Telegram\TelegramMessage;
class CaseUp... | 21,724 |
https://github.com/lmjelstad/terraform-nomad-trino/blob/master/java/src/main/resources/example/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,021 | terraform-nomad-trino | lmjelstad | Makefile | Code | 40 | 193 | .ONESHELL .PHONY: run-nomad-job run-connect-proxy register-trino-service test-connect-proxy purge-nomad-job
run-nomad-job:
nomad job run trino-connect.hcl
run-connect-proxy:
consul connect proxy -service trinopxy -upstream trino:8080 -log-level debug
register-trino-service:
curl --request PUT --data @payload.json $... | 54,897 |
https://github.com/davidwilemski/go-hoppers/blob/master/location.go | Github Open Source | Open Source | BSD-3-Clause | 2,014 | go-hoppers | davidwilemski | Go | Code | 166 | 326 | package hoppers
import "errors"
// Location contains coordinates for a game board
type Location struct {
Row int
Col int
}
// NewLocation instantiates a Location struct after performing bounds checks
func NewLocation(row int, col int) (l Location, err error) {
if row <= 0 || row > 30 {
err = errors.New("hoppers... | 14,581 |
https://github.com/amoshydra/oathkeeper/blob/master/credentials/verifier_default_test.go | Github Open Source | Open Source | Apache-2.0 | null | oathkeeper | amoshydra | Go | Code | 862 | 4,788 | package credentials
import (
"context"
"fmt"
"net/url"
"testing"
"time"
"github.com/form3tech-oss/jwt-go"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/ory/fosite"
"github.com/ory/oathkeeper/x"
)
func TestVerifierDefault(t *testing.T) {
si... | 38,558 |
https://github.com/AndriiNyzhnyk/VideoPortal/blob/master/api/signUp/routes/index.js | Github Open Source | Open Source | ISC | 2,020 | VideoPortal | AndriiNyzhnyk | JavaScript | Code | 68 | 296 | 'use strict';
const Joi = require('@hapi/joi');
const controllers = require('../controllers/signUp');
module.exports = [
{
method: 'GET',
path: '/sign-up',
handler: controllers.getSignUpPage,
options: { auth: false }
},
{
method: 'POST',
path: '/registration... | 3,061 |
https://github.com/stackcats/leetcode/blob/master/algorithms/medium/longest_string_chain.rs | Github Open Source | Open Source | MIT | 2,023 | leetcode | stackcats | Rust | Code | 65 | 193 | use std::collections::HashMap;
impl Solution {
pub fn longest_str_chain(mut words: Vec<String>) -> i32 {
let mut map = HashMap::new();
let mut ans = 1;
words.sort_by_key(|w| w.len());
for w in &words {
let mut curr_len = 1;
for i in 0..w.len() {
... | 52,806 |
https://github.com/isurusiri/react-starter/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,019 | react-starter | isurusiri | Ignore List | Code | 27 | 63 | node_modules
.cache/
dist/
.env
.DS_Store
coverage/
.vscode/
*.log
# yarn.lock is ignored since this is a boilerplate code.
# This should be removed in actual projects.
yarn.lock | 1,383 |
https://github.com/Claudio5/GyroDraw/blob/master/app/src/main/java/ch/epfl/sweng/GyroDraw/utils/ImageStorageManager.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | GyroDraw | Claudio5 | Java | Code | 466 | 1,299 | package ch.epfl.sweng.GyroDraw.utils;
import static androidx.core.app.ActivityCompat.requestPermissions;
import static androidx.core.content.ContextCompat.checkSelfPermission;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import ... | 1,261 |
https://github.com/StephenOTT/camunda-bpm-taskpool/blob/master/api/src/main/kotlin/io/holunda/camunda/taskpool/api/business/BusinessEvents.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | camunda-bpm-taskpool | StephenOTT | Kotlin | Code | 32 | 115 | package io.holunda.camunda.taskpool.api.business
import org.camunda.bpm.engine.variable.VariableMap
import org.camunda.bpm.engine.variable.Variables
data class DataEntryCreatedEvent(
override val entryType: EntryType,
override val entryId: EntryId,
override val correlations: CorrelationMap = newCorrelations(),
... | 1,536 |
https://github.com/BYazdaani/Stacks-Editor/blob/master/src/shared/markdown-it/html.ts | Github Open Source | Open Source | MIT | 2,021 | Stacks-Editor | BYazdaani | TypeScript | Code | 2,339 | 6,304 | import MarkdownIt from "markdown-it";
import State from "markdown-it/lib/rules_core/state_core";
import Token from "markdown-it/lib/token";
/**
* Describes the supported html tags
* @see {@link https://meta.stackexchange.com/questions/1777/what-html-tags-are-allowed-on-stack-exchange-sites|Supported tags}
*/
enum T... | 44,237 |
https://github.com/SOFTWARESOLUTONS-PVT-LIMITED/solutions-multicluster-gke-migration/blob/master/terraform/main.tf | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,021 | solutions-multicluster-gke-migration | SOFTWARESOLUTONS-PVT-LIMITED | HCL | Code | 303 | 1,341 | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 28,608 |
https://github.com/DChen206/sp-dev-fx-controls-react/blob/master/lib/Utilities.js | Github Open Source | Open Source | MIT | null | sp-dev-fx-controls-react | DChen206 | JavaScript | Code | 6 | 25 | export * from './common/utilities/index';
//# sourceMappingURL=Utilities.js.map | 23,109 |
https://github.com/GregTheMadMonk/tnl-noa/blob/master/src/TNL/Solvers/Linear/_NamespaceDoxy.h | Github Open Source | Open Source | MIT | null | tnl-noa | GregTheMadMonk | C | Code | 193 | 494 | // Copyright (c) 2004-2022 Tomáš Oberhuber et al.
//
// This file is part of TNL - Template Numerical Library (https://tnl-project.org/)
//
// SPDX-License-Identifier: MIT
#pragma once
namespace noa::TNL {
namespace Solvers {
/**
* \brief Namespace for linear system solvers.
*
* This namespace contains the follow... | 4,042 |
https://github.com/RanAwaySuccessfully/border-image-generator-legacy/blob/master/expander.js | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,021 | border-image-generator-legacy | RanAwaySuccessfully | JavaScript | Code | 50 | 208 | /*
* Copyright (c) 2010 Kevin Decker (http://www.incaseofstairs.com/)
* See LICENSE for license information
*/
(function($) {
// Helper method that implements the expander UI
$.fn.expander = function(child, onShow, onHide) {
var self = this;
self.toggle(
function() {
... | 9,021 |
https://github.com/anniyanvr/PM-agent/blob/master/utils/register.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | PM-agent | anniyanvr | JavaScript | Code | 99 | 368 | const { eventsWorker, AgentTypeEnum, VHOST } = require("@kaholo/shared");
const pluginsService = require("../api/services/plugins.service");
const { generateKeys } = require("./crypto");
module.exports.registerAgent = async function () {
try {
const { publicKey } = generateKeys();
if (process.env.DYNAMIC_AGE... | 11,558 |
https://github.com/cbatson/hxBitcoin/blob/master/com/fundoware/engine/crypto/scrypt/FunScrypt.hx | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,015 | hxBitcoin | cbatson | Haxe | Code | 857 | 2,464 | /*===========================================================================
hxBitcoin - pure HaXe cryptocurrency & cryptography library
http://hxbitcoin.com
Copyright (c) 2014 Charles H. Batson III
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated document... | 40,337 |
https://github.com/RinorSvarca/Maze/blob/master/ZenselessSourceAppEmpty4/Zenseless.Geometry/ControlPoints.cs | Github Open Source | Open Source | Apache-2.0 | null | Maze | RinorSvarca | C# | Code | 389 | 1,061 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Zenseless.Geometry
{
/// <summary>
///
/// </summary>
/// <typeparam name="T"></typeparam>
/// <seealso cref="IEnumerable{T}" />
public class ControlPoints<T> : IEnumerable<KeyValuePair<floa... | 37,965 |
https://github.com/gautamr6/health-grow/blob/master/healthgrow-mobile/app/src/main/java/edu/upenn/healthgrow/ChallengeActivity.java | Github Open Source | Open Source | MIT | 2,022 | health-grow | gautamr6 | Java | Code | 117 | 479 | package edu.upenn.healthgrow;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
impor... | 52,482 |
https://github.com/ezralazuardy/bookstore/blob/master/settings.gradle | Github Open Source | Open Source | MIT | 2,020 | bookstore | ezralazuardy | Gradle | Code | 6 | 20 | include ':admin'
rootProject.name='Book Store'
include ':client'
| 49,441 |
https://github.com/lightank/UniversalApp/blob/master/UniversalApp/Modules/FirstViewController/Controller/LTFirstViewController.h | Github Open Source | Open Source | MIT | 2,021 | UniversalApp | lightank | C | Code | 30 | 100 | //
// LTFirstViewController.h
// UniversalApp
//
// Created by huanyu.li on 2018/5/25.
// Copyright © 2018年 huanyu.li. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LTListTableViewController.h"
@interface LTFirstViewController : LTListTableViewController
@end
| 20,647 |
https://github.com/livias1726/openjpa/blob/master/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | openjpa | livias1726 | Java | Code | 1,772 | 5,419 | /*
* 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 ... | 45,134 |
https://github.com/mmind/servo-chromiumos-ec/blob/master/board/cr50/board.c | Github Open Source | Open Source | BSD-3-Clause | 2,020 | servo-chromiumos-ec | mmind | C | Code | 2,783 | 9,122 | /* Copyright (c) 2014 The Chromium OS 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 <endian.h>
#include "clock.h"
#include "common.h"
#include "console.h"
#include "dcrypto/dcrypto.h"
#include "device_state.h"
#includ... | 18,075 |
https://github.com/lynnUg/vumi-go/blob/master/go/contacts/parsers/test_parsers.py | Github Open Source | Open Source | BSD-3-Clause | null | vumi-go | lynnUg | Python | Code | 448 | 2,237 | from os import path
from django.conf import settings
from django.core.files.storage import default_storage
from django.core.files.base import ContentFile
from go.base.tests.helpers import GoDjangoTestCase
from go.contacts.parsers import ContactParserException
from go.contacts.parsers.csv_parser import CSVFileParser
f... | 30,577 |
https://github.com/xuedong/mini-scala/blob/master/tests/exec/call0.scala | Github Open Source | Open Source | MIT | null | mini-scala | xuedong | Scala | Code | 18 | 55 | object Main {
def m(s: String) { print(s) };
def main(args: Array[String]) {
m("hello");
m(", world!\n")
}
}
| 8,834 |
https://github.com/KiranRambha/Local-Exchange-Trading-System/blob/master/LETS/LETS/Content/lets/shared/textbox.less | Github Open Source | Open Source | MIT | 2,022 | Local-Exchange-Trading-System | KiranRambha | Less | Code | 130 | 422 | @import "../../theme/variables.less";
@import "../../theme/colors.less";
input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
border: none;
border-radius: 0px;
background-color: @brand-primary-200;
box-shadow: none;
border-bottom: 1px solid @brand-primary-700;
... | 42,787 |
https://github.com/LucasPalacios09/yourside/blob/master/frontend-ys/src/containers/offer/OffertList.js | Github Open Source | Open Source | MIT | 2,021 | yourside | LucasPalacios09 | JavaScript | Code | 236 | 751 | import React, { useContext, useEffect, useState } from 'react'
import AppContext from '../../context/app/appContext'
import { Table } from 'antd'
import { DeleteOutlined, EditOutlined } from '@ant-design/icons'
import Swal from 'sweetalert2'
const OffertList = () => {
const appContext = useContext(AppContext)
... | 41,869 |
https://github.com/webmozarts/console-parallelization/blob/master/src/Input/InputOptionsSerializer.php | Github Open Source | Open Source | MIT | 2,022 | console-parallelization | webmozarts | PHP | Code | 334 | 1,069 | <?php
/*
* This file is part of the Webmozarts Console Parallelization package.
*
* (c) Webmozarts GmbH <office@webmozarts.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Webmozarts\Consol... | 31,650 |
https://github.com/Doik/micropsi2/blob/master/micropsi_core/tests/test_node_netapi.py | Github Open Source | Open Source | MIT | null | micropsi2 | Doik | Python | Code | 3,929 | 17,044 | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
"""
Tests for netapi, i.e. the interface native modules will be developed against
"""
import pytest
def prepare(runtime, test_nodenet):
nodenet = runtime.get_nodenet(test_nodenet)
netapi = nodenet.netapi
source = netapi.create_node("Neuron", None, "Source"... | 50,727 |
https://github.com/Serhii1406/project/blob/master/app/User.php | Github Open Source | Open Source | MIT | 2,019 | project | Serhii1406 | PHP | Code | 95 | 263 | <?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
const Role = 'User';
const Role_Admin = 'Moderator';
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var arr... | 36,913 |
https://github.com/easymodeling/easy-modeling/blob/master/core/src/main/java/io/github/easymodeling/randomizer/collection/ArrayListRandomizer.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | easy-modeling | easymodeling | Java | Code | 36 | 154 | package io.github.easymodeling.randomizer.collection;
import io.github.easymodeling.randomizer.Randomizer;
import java.util.ArrayList;
import java.util.function.Supplier;
public class ArrayListRandomizer<E> extends AbstractListRandomizer<ArrayList<E>, E> {
public ArrayListRandomizer(Randomizer<E> elementRandomi... | 48,668 |
https://github.com/iandanforth/muscled-agents/blob/master/scripts/env-viewer.py | Github Open Source | Open Source | MIT | 2,022 | muscled-agents | iandanforth | Python | Code | 115 | 338 | import sys
import math
import muscledagents # NoQA
import gym
def main():
env_name = sys.argv[1]
# Load a standard ant
env = gym.make(env_name)
env.reset()
print("Observation Space Dims", env.observation_space.shape)
print("Action Space Dims", env.action_space.shape)
action_size = env.... | 15,243 |
https://github.com/apache/systemds/blob/master/src/main/java/org/apache/sysds/runtime/instructions/fed/AggregateUnaryFEDInstruction.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | systemds | apache | Java | Code | 1,439 | 4,975 | /*
* 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 ... | 2,994 |
https://github.com/crisvela/18490-Season-2021/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/BasicAuto.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | 18490-Season-2021 | crisvela | Java | Code | 122 | 695 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
... | 14,513 |
https://github.com/coenm/solidservices/blob/master/src/BusinessLayer/CommandHandlers/ShipOrderCommandHandler.cs | Github Open Source | Open Source | MIT | 2,021 | solidservices | coenm | C# | Code | 38 | 127 | namespace BusinessLayer.CommandHandlers
{
using Contract;
using Contract.Commands.Orders;
public class ShipOrderCommandHandler : ICommandHandler<ShipOrderCommand>
{
private readonly ILogger logger;
public ShipOrderCommandHandler(ILogger logger)
{
this.logger = logg... | 119 |
https://github.com/agroce/tstl/blob/master/deprecated/obsolete/src/harnessmaker.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | tstl | agroce | Python | Code | 2,067 | 6,401 | import sys
import argparse
import os
import re
from collections import namedtuple
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('-a', '--act', type=str, default=None,
help='Path to the .act file.')
parser.add_argument('-t', '--target', type=str, default="s... | 33,080 |
https://github.com/RiotGames-Archive/grafana/blob/master/pkg/metrics/settings.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | grafana | RiotGames-Archive | Go | Code | 181 | 691 | package metrics
import (
"strings"
"time"
"github.com/grafana/grafana/pkg/metrics/graphitebridge"
"github.com/grafana/grafana/pkg/setting"
"github.com/prometheus/client_golang/prometheus"
ini "gopkg.in/ini.v1"
)
type MetricSettings struct {
Enabled bool
IntervalSeconds int64
GraphiteBridge... | 8,048 |
https://github.com/JimPanda/TutorialGame/blob/master/TutorialERC1155.sol | Github Open Source | Open Source | MIT | null | TutorialGame | JimPanda | Solidity | Code | 213 | 727 | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openz... | 15,210 |
https://github.com/PacktPublishing/Managing-State-in-Flutter-Pragmatically/blob/master/ch8/cart_binder/lib/cart_model.dart | Github Open Source | Open Source | MIT | 2,022 | Managing-State-in-Flutter-Pragmatically | PacktPublishing | Dart | Code | 65 | 246 | import 'package:binder/binder.dart';
import 'item.dart';
List<Item> items = populateItems();
class CartModel {
List<Item> cart;
CartModel({required this.cart});
}
final cartRef = StateRef(CartModel(cart: []));
final cartViewLogicRef = LogicRef((scope) => CartViewLogic(scope));
class CartViewLogic with Logic {... | 36,528 |
https://github.com/Usama123803/Assignment-1-Will/blob/master/Modules/Logout.php | Github Open Source | Open Source | MIT | null | Assignment-1-Will | Usama123803 | PHP | Code | 19 | 63 | <?php
namespace Modules;
use App\Controllers\BaseController;
class Logout extends BaseController
{
public function index()
{
session()->destroy();
return redirect()->to('/');
}
}
| 42,158 |
https://github.com/JasonXuJie/KotlinWanAndroid/blob/master/module_my/src/main/java/com/jason/my/vm/FeedbackViewModel.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | KotlinWanAndroid | JasonXuJie | Kotlin | Code | 15 | 72 | package com.jason.my.vm
import com.jason.common.base.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class FeedbackViewModel @Inject constructor():BaseViewModel() {
} | 16,484 |
https://github.com/rudylee/expo/blob/master/ios/Exponent/Versioned/Core/Api/Reanimated/Nodes/REABezierNode.h | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | expo | rudylee | C | Code | 7 | 28 | #import "REANode.h"
@interface REABezierNode : REANode
@end
| 23,758 |
https://github.com/ministryofjustice/cla_public/blob/master/gulpfile.js | Github Open Source | Open Source | MIT | 2,023 | cla_public | ministryofjustice | JavaScript | Code | 25 | 91 | /* jshint unused: false */
'use strict';
var gulp = require('gulp');
var requireDir = require('require-dir');
requireDir('./tasks');
gulp.task('build', [
'minify-css',
'webpack',
'images'
]
);
gulp.task('default', ['build']);
| 5,527 |
https://github.com/beezy12/back-end-capstone-journal/blob/master/controllers/databaseCtrl.js | Github Open Source | Open Source | MIT | 2,016 | back-end-capstone-journal | beezy12 | JavaScript | Code | 149 | 518 | 'use strict'
const userModel = require('../models/databaseUser')
const entryModel = require('../models/databaseEntries')
module.exports = {
getUserInfo (req, res) {
entryModel
.find({ user: req.session.passport.user })
.exec((err, everything) => {
if(err) throw err
... | 47,624 |
https://github.com/0DayMx/Sisventas/blob/master/app/Ingreso.php | Github Open Source | Open Source | MIT | null | Sisventas | 0DayMx | PHP | Code | 31 | 132 | <?php
namespace sisventas;
use Illuminate\Database\Eloquent\Model;
class Ingreso extends Model
{
//
protected $table='inventario';
protected $primaryKey='id';
public $timestamps=false;
protected $fillable =[
'fecha_hora',
'cantidad',
'id_lote',
'tipo_comprobante... | 17,721 |
https://github.com/globules-io/OGX.CLI/blob/master/cmds/set.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | OGX.CLI | globules-io | JavaScript | Code | 35 | 110 | #!/usr/bin/env node
module.exports = (args) => {
if(args.length < 2){
console.log('Error: Command set requires a property and a value!');
return;
}
const fs = require('fs');
let options = args[args.length-1];
options[args[0]] = args[1];
fs.writeFileSync('cli.json', JSON.s... | 16,434 |
https://github.com/paulotrc/AngularExemplo/blob/master/exemplo-front-angular/src/app/main/private/cliente/components/forms/form-dados-cadastrais/form-dados-cadastrais.component.spec.ts | Github Open Source | Open Source | Apache-2.0 | null | AngularExemplo | paulotrc | TypeScript | Code | 54 | 216 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormDadosCadastraisComponent } from './form-dados-cadastrais.component';
describe('FormClientesIdentificacaoComponent', () => {
let component: FormDadosCadastraisComponent;
let fixture: ComponentFixture<FormDadosCadastraisComponent... | 40,351 |
https://github.com/jaberg/showboat/blob/master/showboat/__init__.py | Github Open Source | Open Source | MIT | 2,012 | showboat | jaberg | Python | Code | 181 | 804 | #!/usr/bin/python
# -*- coding: utf-8 -*-
from util import *
from pkg_resources import resource_filename
import shutil
def deposit_skeleton(dst_path):
if not os.path.exists(dst_path):
os.mkdir(dst_path)
jade_skel_path = resource_filename(__name__, 'payload/slides.jade')
shutil.copy(jade_skel_pat... | 54,065 |
https://github.com/masterl/site-backend/blob/master/test/util/load_routes.test.js | Github Open Source | Open Source | MIT | 2,020 | site-backend | masterl | JavaScript | Code | 200 | 780 | 'use strict';
const path = require('path');
const TmpDir = builders.TmpDirBuilder;
const load_routes = rfr('util/load_routes');
const express_path = path.resolve(path.join('node_modules/', 'express'));
const route_file_content = `const express = require('${express_path}');
const router = express.Router();
router.... | 39,145 |
https://github.com/sintefneodroid/Examples/blob/master/Assets/Scenes/TestScenes/ExternalRotation.unity.meta | Github Open Source | Open Source | Apache-2.0 | 2,020 | Examples | sintefneodroid | Unity3D Asset | Code | 10 | 62 | fileFormatVersion: 2
guid: 2f5b33a6ebd06b7a7bb6fce7c252c986
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| 34,664 |
https://github.com/djingwu/hybrid-development/blob/master/clbs/target/clbs/resources/js/offlineDisplacement.js | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,021 | hybrid-development | djingwu | JavaScript | Code | 2,723 | 9,862 | (function (window, $) {
//车辆列表
var vehicleList = [];
//车辆id列表
var vehicleId = [];
//开始时间
var startTime;
//结束时间
window.myTable = ''
var firstAsync = true
var checkFlag = false; //判断组织节点是否是勾选操作
var size;//当前权限监控对象数量
var zTreeIdJson = {};
var bflag = true; //模糊查询
var... | 43,936 |
https://github.com/rimmington/path-io/blob/master/src/Path/IO.hs | Github Open Source | Open Source | BSD-3-Clause | null | path-io | rimmington | Haskell | Code | 1,334 | 2,826 | {-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE Trustworthy #-}
{-# OPTIONS_HADDOCK show-extensions #-}
{-|
Module : $Header$
Copyright : (c) 2015 Swinburne Software Innovation Lab
License : BSD3
Maintainer : Rhys ... | 12,630 |
https://github.com/trufflesuite/truffle/blob/master/packages/dashboard/src/components/composed/Debugger/Controls/icons/index.tsx | Github Open Source | Open Source | MIT | 2,023 | truffle | trufflesuite | TSX | Code | 24 | 129 | export * from "src/components/composed/Debugger/Controls/icons/Continue";
export * from "src/components/composed/Debugger/Controls/icons/Into";
export * from "src/components/composed/Debugger/Controls/icons/Next";
export * from "src/components/composed/Debugger/Controls/icons/Out";
export * from "src/components/compose... | 33,991 |
https://github.com/luisfergromo/swift-EnumsFun-lab-swift-intro-000/blob/master/EnumsFun/Hand.swift | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,018 | swift-EnumsFun-lab-swift-intro-000 | luisfergromo | Swift | Code | 86 | 223 | //
// Hand.swift
// EnumsFun
//
// Created by Michael Dippery on 8/2/16.
// Copyright © 2016 Gamesmith, LLC. All rights reserved.
//
import Foundation
class Hand {
var cards:[Card]
var size:Int{
return cards.count
}
init(cards:[Card]){
self.cards = cards
}
func flip() -> Ca... | 45,531 |
https://github.com/prianticonsulting/Habitaria/blob/master/central/app/models/User.php | Github Open Source | Open Source | MIT | null | Habitaria | prianticonsulting | PHP | Code | 41 | 156 | <?php
use Zizaco\Confide\ConfideUser;
use Zizaco\Confide\ConfideUserInterface;
use Zizaco\Entrust\HasRole;
class User extends Eloquent implements ConfideUserInterface
{
use ConfideUser;
use HasRole;
//conexion a la BD
protected $connection = 'central_dev';
public function AssigmentRole()
{
... | 4,602 |
https://github.com/mrdominic09/oci-typescript-sdk/blob/master/lib/datacatalog/lib/model/job-type.ts | Github Open Source | Open Source | UPL-1.0, Apache-2.0, MIT-0, MIT-Wu, WTFPL, MIT, Unlicense, ISC, BSD-3-Clause, BSD-2-Clause, CC0-1.0, LicenseRef-scancode-unknown-license-reference | 2,021 | oci-typescript-sdk | mrdominic09 | TypeScript | Code | 400 | 807 | /**
* Data Catalog API
* Use the Data Catalog APIs to collect, organize, find, access, understand, enrich, and activate technical, business, and operational metadata.
For more information, see [Data Catalog](https://docs.oracle.com/iaas/data-catalog/home.htm).
* OpenAPI spec version: 20190325
*
*
* NOTE: This c... | 17,614 |
https://github.com/eonist/CommonCell/blob/master/Sources/CommonCell/macOS/StickyTable/StickyTable.swift | Github Open Source | Open Source | MIT | 2,023 | CommonCell | eonist | Swift | Code | 101 | 215 | #if os(macOS)
import Cocoa
/**
* StickyTable
*/
open class StickyTable: BasicTable {
public var onVerticalScroll: OnVerticalScroll = defaultOnVerticalScroll
/**
* - Remark: This table is only cell based, it doesn't use sections. because we want to use the same structure for macOS, and macOS doesnt have sect... | 34,684 |
https://github.com/kalaiarasan33/aws-sdk-go-v2/blob/master/service/databasemigrationservice/api_op_DeleteReplicationInstance.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | aws-sdk-go-v2 | kalaiarasan33 | Go | Code | 365 | 1,043 | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package databasemigrationservice
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
type DeleteReplicationInstanceInput struct {
_ struct{} `type:"structure"`
// The Amazon Resource Name (... | 56,206 |
https://github.com/JetBrains/intellij-community/blob/master/java/java-tests/testData/inspection/defUse/ComplexQuintipleTryFinally.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | intellij-community | JetBrains | Java | Code | 138 | 310 | class Stress {
int foo() {
int a = 0, b = 0, c = 0, d = 0, e = 0;
A:
try {
a++;
}
finally {
System.out.println(a);
B:
try {
b++;
}
finally {
System.out.println(b);
C:
try {
c++;
}
finally {
Syst... | 48,645 |
https://github.com/turtlebot-euclid/Turtlebot_Euclid/blob/master/Firmware/lib/ros_lib/ridgeback_msgs/Lights.h | Github Open Source | Open Source | BSD-3-Clause | 2,018 | Turtlebot_Euclid | turtlebot-euclid | C++ | Code | 152 | 499 | #ifndef _ROS_ridgeback_msgs_Lights_h
#define _ROS_ridgeback_msgs_Lights_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "ridgeback_msgs/RGB.h"
namespace ridgeback_msgs
{
class Lights : public ros::Msg
{
public:
ridgeback_msgs::RGB lights[8];
enum { LIGH... | 32,553 |
https://github.com/tailhook/marafet/blob/master/src/main.rs | Github Open Source | Open Source | MIT | 2,015 | marafet | tailhook | Rust | Code | 463 | 1,529 | extern crate argparse;
extern crate marafet_parser as parser;
extern crate marafet_css as css;
extern crate marafet_es5citojs as es5citojs;
use std::fs::File;
use std::io::{Read, Write, BufWriter};
use std::io::{stdin, stdout, stderr};
use std::io::Error as IoError;
use std::path::{PathBuf, Path};
use std::process::e... | 42,659 |
https://github.com/LovingMy/BaseUtil/blob/master/test/src/test/java/com/che/test/design/structural/bridge/impl/MobileSender.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,016 | BaseUtil | LovingMy | Java | Code | 38 | 144 | package com.che.test.design.structural.bridge.impl;
import com.che.test.design.structural.bridge.ISender;
/**
* 手机消息发送器
* <p>
* 作者:余天然 on 16/9/13 上午1:19
*/
public class MobileSender implements ISender {
@Override
public void send(String msg, String toUser) {
System.out.println("使用手机消息的方法,发送消息'" + ... | 53,607 |
https://github.com/fangyuanjun/site-www-java/blob/master/src/com/blog/viewmodel/IndexViewModel.java | Github Open Source | Open Source | Apache-2.0 | null | site-www-java | fangyuanjun | Java | Code | 382 | 1,399 | package com.blog.viewmodel;
import java.util.ArrayList;
import java.util.List;
import com.blog.entity.*;
import com.blog.model.*;
public class IndexViewModel {
/**
* 最新文章
*/
private List<ArticleModel> newArticles;
/**
* 最多浏览文章
*/
private List<ArticleModel> mostViewArticles;
/**
* 最多评论文章
*/
priva... | 6,591 |
https://github.com/bradcis/flare/blob/master/tests/Feature/Game/Core/ShopControllerTest.php | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, MIT | 2,021 | flare | bradcis | PHP | Code | 752 | 3,316 | <?php
namespace Tests\Feature\Game\Core;
use App\Flare\Models\InventorySlot;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Facades\App\Flare\Calculators\SellItemCalculator;
use Tests\TestCase;
use Tests\Traits\CreateUser;
use Tests\Traits\CreateItem;
use Tests\Setup\Character\CharacterFactory;
use Tests\Trai... | 38,171 |
https://github.com/ratherpsychonaut/swf/blob/master/Assets/Logic/MainScripts/DataControl/DataControlChapter5.cs | Github Open Source | Open Source | MIT | null | swf | ratherpsychonaut | C# | Code | 772 | 2,990 | using UnityEngine;
using System.Collections;
using System.IO;
using UnityEngine.UI;
public class DataControlChapter5 : DataControl {
public TXT Dialogue;
public Transform cam, Cred; public Animation OM;
public Vector3 PosFarA, RotFarA, PosFarB, RotFarB;
public Vector3 PosCloseA, RotCloseA, PosCloseB, RotCloseB;
... | 25,942 |
https://github.com/VH-Lab/NDI-matlab/blob/master/+ndi/+test/+daq/intan_flat_saved.m | Github Open Source | Open Source | MIT | 2,023 | NDI-matlab | VH-Lab | MATLAB | Code | 185 | 511 | function intan_flat_saved(dirname)
% NDI.TEST.DAQ.INTAN_FLAT_SAVED - Test the functionality of the Intan driver and a file tree with a flat organization
%
% ndi.test.daq.intan_flat_saved([DIRNAME])
%
% Given an session directory with an associated Intan driver,
% this function loads the channel information and then... | 32,280 |
https://github.com/nishp77/Kotlin-SDK/blob/master/lib/src/main/java/com/thenewboston/api/bankapi/datasource/BankDataSource.kt | Github Open Source | Open Source | MIT | null | Kotlin-SDK | nishp77 | Kotlin | Code | 711 | 2,572 | package com.thenewboston.api.bankapi.datasource
import com.thenewboston.common.http.NetworkClient
import com.thenewboston.common.http.Outcome
import com.thenewboston.common.http.makeApiCall
import com.thenewboston.data.dto.bankapi.accountdto.response.Account
import com.thenewboston.data.dto.bankapi.accountdto.response... | 5,985 |
https://github.com/baeddavid/etc/blob/master/Random Code Challenges/booleanRotated.js | Github Open Source | Open Source | MIT | 2,019 | etc | baeddavid | JavaScript | Code | 90 | 186 | function booleanRotated(string1, string2){
// trim both strings and split the strings into an character array
string1 = string1.trim().split("");
string2 = string2.trim().split("");
// sort both the character arrays
let sortedString1 = string1.sort();
let sortedString2 = string2.sort();
// iterate thr... | 4,199 |
https://github.com/waniron/android-beacon-scanner/blob/master/app/src/main/java/com/bridou_n/beaconscanner/events/RxBus.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | android-beacon-scanner | waniron | Kotlin | Code | 41 | 186 | package com.bridou_n.beaconscanner.events
import com.jakewharton.rxrelay2.PublishRelay
import com.jakewharton.rxrelay2.Relay
import io.reactivex.BackpressureStrategy
import io.reactivex.Flowable
/**
* Created by bridou_n on 05/10/2016.
*/
class RxBus {
private val _bus = PublishRelay.create<Any>().toSerialize... | 21,977 |
https://github.com/pengfei99/JavaBasic/blob/master/LearningScala/src/main/java/org/pengfei/Lesson3_Classes/Person_aux_constructors.scala | Github Open Source | Open Source | MIT | null | JavaBasic | pengfei99 | Scala | Code | 50 | 184 | package org.pengfei.Lesson3_Classes
class Person_aux_constructors(firstName:String,lastName:String) {
/* The key for auxiliary constructor is default value of class fields, and each constructor with more parameters
* must call the previous one with less parameters*/
var age=0
var address="No_value"
var full... | 32,504 |
https://github.com/Timi-xyz/Jobber/blob/master/lib/exports.dart | Github Open Source | Open Source | Apache-2.0 | null | Jobber | Timi-xyz | Dart | Code | 20 | 139 | export 'package:google_fonts/google_fonts.dart';
export 'package:flutter_svg/flutter_svg.dart';
export 'package:flutter_feather_icons/flutter_feather_icons.dart';
export 'package:percent_indicator/circular_percent_indicator.dart';
export 'components/components.dart';
export 'models/models.dart';
export 'routes/routes... | 48,833 |
https://github.com/basarat/uic/blob/master/src/demos/demos.tsx | Github Open Source | Open Source | MIT | 2,019 | uic | basarat | TypeScript | Code | 40 | 117 | import { render } from 'eze';
render({
outputDir: __dirname + '/../../public',
repoUrl: 'https://github.com/basarat/uic',
title: 'UIC Styleguide',
}, async eze => {
eze.md(`
# Welcome to the Styleguide
Hope you enjoy the documentation.
`);
eze.md(`
# Buttons
## FlatButton
`);
});
| 21,146 |
https://github.com/NPLFoshan/WorldShare/blob/master/Mod/WorldShare/filters/api/Keepwork/KeepworkDragonBoatApiFilter.lua | Github Open Source | Open Source | MIT | 2,022 | WorldShare | NPLFoshan | Lua | Code | 54 | 336 | --[[
Title: Keepwork Dragon Boat Api Filter
Author(s): Big
Date: 2021.6.8
Desc:
use the lib:
------------------------------------------------------------
local KeepworkDragonBoatApiFilter = NPL.load('(gl)Mod/WorldShare/filters/api/Keepwork/KeepworkDragonBoatApiFilter.lua')
KeepworkDragonBoatApiFilter:Init()
---------... | 26,459 |
https://github.com/mutageno/serviciosweb/blob/master/xml/Java/ValidacionesXPathNameSpaces/EjemploValidacion/src/main/java/com/curso/ejemplovalidacion/dom/DOMValidator.java | Github Open Source | Open Source | MIT | 2,018 | serviciosweb | mutageno | Java | Code | 182 | 733 | package com.curso.ejemplovalidacion.dom;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.xml.sax.helpers.DefaultHandler;
public class DOMV... | 47,492 |
https://github.com/patricioHidalgo/OpenGL_Student_Project/blob/master/res/VertexBuffer.hpp | Github Open Source | Open Source | MIT | null | OpenGL_Student_Project | patricioHidalgo | C++ | Code | 24 | 67 | #pragma once
class VertexBuffer
{
private:
unsigned int m_RendererID;
public:
VertexBuffer(const void* data, unsigned int size);
~VertexBuffer();
void Bind() const;
void Unbind() const;
}; | 31,991 |
https://github.com/schhx/design-pattern/blob/master/src/main/java/org/schhx/template/TemplateClient.java | Github Open Source | Open Source | Apache-2.0 | null | design-pattern | schhx | Java | Code | 37 | 131 | package org.schhx.template;
/**
* @author shanchao
* @date 2018-11-16
*/
public class TemplateClient {
public static void main(String[] args) {
String cellphone = "88888888888";
SmsSender smsSender = new AuthCodeSmsSender();
smsSender.sendSms(cellphone);
smsSender = new ResetPass... | 43,791 |
https://github.com/Kuinox/CK-LogViewer/blob/master/CK.LogViewer.WebComponent/src/backend/ILogEntry.ts | Github Open Source | Open Source | MIT | null | CK-LogViewer | Kuinox | TypeScript | Code | 47 | 137 | import { ICKExceptionData } from "./ICKExceptionData";
import { LogLevel } from "./LogLevel";
import { LogType } from "./LogType";
export interface ILogEntry{
logTime: string,
monitorId: string,
text?: string,
tags: string,
exception?: ICKExceptionData,
offset: number,
groupOffset: number,
... | 17,040 |
https://github.com/yanhan1/vuepress-theme-hope/blob/master/packages/shared-utils/lib/i18n/config.ts | Github Open Source | Open Source | MIT | null | vuepress-theme-hope | yanhan1 | TypeScript | Code | 488 | 1,773 | import {
ComponentI18NConfig,
CopyCodeI18NConfig,
HopeLangI18nConfig,
PageInfoI18nConfig,
ReadingTimeI18NCOnfig,
} from "../../types";
export type Langs = "zh-CN" | "en-US";
export type LangPaths = "/zh/" | "/en/";
/** 支持语言 */
export const langs: Langs[] = ["zh-CN", "en-US"];
/** 语言对应路径 */
export const la... | 36,141 |
https://github.com/catchkvs/Coral/blob/master/pkg/server/model.go | Github Open Source | Open Source | MIT | 2,021 | Coral | catchkvs | Go | Code | 127 | 306 | package server
import (
"github.com/catchkvs/Coral/pkg/model"
"github.com/gorilla/websocket"
"time"
)
// Stores the live session which are currently running in the server
type SessionStore struct {
sessions map[string]*Session
liveUpdateChannelMap map[string] chan *model.FactEntity
BroadcastChannelMap map[strin... | 32,798 |
https://github.com/bstanger/shoppingcart/blob/master/client/src/components/header.jsx | Github Open Source | Open Source | MIT | null | shoppingcart | bstanger | null | Spoken | 32 | 120 | import React from 'react'
import ReactDOM from 'react-dom'
import HeaderSty from '../../dist/styles/header.css'
const Header = ({goToCheckout}) => (
<header className={HeaderSty.nav}>
<div className={HeaderSty.logo}>Serengeti</div>
<button onClick={(e) => goToCheckout(e)} className={HeaderSty.checkout}>Check... | 28,797 |
https://github.com/chenzeshenga/logistics-biu/blob/master/server/src/main/java/com/abc/chenzeshenga/logistics/config/ShiroConfig.java | Github Open Source | Open Source | MIT | null | logistics-biu | chenzeshenga | Java | Code | 99 | 681 | package com.abc.chenzeshenga.logistics.config;
import com.abc.shiro.UserRealm;
import org.apache.shiro.realm.Realm;
import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
import org.apache.shiro.spring.web.config.ShiroFilterChainDefinition;
import org.springframework.aop.framework.autoproxy.Defau... | 52,403 |
https://github.com/jmjuanes/readl-async/blob/master/index.js | Github Open Source | Open Source | MIT | null | readl-async | jmjuanes | JavaScript | Code | 563 | 1,415 | //Import dependencies
var fs = require('fs');
var pstat = require('pstat');
//Read line by line object
var readl = function(file, opt)
{
//Check the file
if(typeof file !== 'string'){ throw new Error('Missing file argument'); return null; }
//Check the options
if(typeof opt === 'undefined'){ var opt = {}; }
... | 6,159 |
https://github.com/matyioe92/SlinkyTyped/blob/master/a/activex-excel/src/main/scala/typingsSlinky/activexExcel/Excel/XlActionType.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | matyioe92 | Scala | Code | 72 | 401 | package typingsSlinky.activexExcel.Excel
import typingsSlinky.activexExcel.activexExcelNumbers.`128`
import typingsSlinky.activexExcel.activexExcelNumbers.`16`
import typingsSlinky.activexExcel.activexExcelNumbers.`1`
import typingsSlinky.activexExcel.activexExcelNumbers.`256`
import org.scalablytyped.runtime.StObject... | 22,505 |
https://github.com/codeforamerica/vita-min/blob/master/app/models/system_note/assignment_change.rb | Github Open Source | Open Source | MIT | 2,023 | vita-min | codeforamerica | Ruby | Code | 117 | 381 | # == Schema Information
#
# Table name: system_notes
#
# id :bigint not null, primary key
# body :text
# data :jsonb
# type :string
# created_at :datetime not null
# updated_at :datetime not null
# client_id :bigint not null
# user_id :bigint
#
#... | 32,675 |
https://github.com/bailingnan/iCommunity/blob/master/src/test/java/com/bailingnan/icommunity/KafkaTests.java | Github Open Source | Open Source | MIT | 2,021 | iCommunity | bailingnan | Java | Code | 100 | 436 | package com.bailingnan.icommunity;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.kafka.annotation.Kaf... | 40,747 |
https://github.com/reactjs-alex-alex2006hw/react-fabric/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,015 | react-fabric | reactjs-alex-alex2006hw | Ignore List | Code | 6 | 36 | node_modules/
npm-debug.log
example/*.bundle.js*
dist/
lib/
.DS_Store
| 4,707 |
https://github.com/diegorafaelvieira/Programacao-3/blob/master/Porto/classes/Transportador.class.php | Github Open Source | Open Source | MIT | null | Programacao-3 | diegorafaelvieira | PHP | Code | 78 | 289 | <?php
class Transportador {
//Atributos
private $idTransportador;
private $nome;
private $senha;
//Construtor
public function construct ($idTransportador, $nome, $senha){
$this->idTransportador = $idTransportador;
$this->nome = $nome;
$this->senha = $senha;
}
//GET e SET
public function getidTranspo... | 27,645 |
https://github.com/talos-gis/swimport/blob/master/src/swimport/tests/resources/cpp_iterable.h | Github Open Source | Open Source | MIT | 2,019 | swimport | talos-gis | C | Code | 776 | 2,658 | //todo split to .cpp and .h?
//todo rename/merge with py_iterator?
#pragma once
//#define PRINT
#include <Python.h>
#include <exception>
#include <string.h>
#ifdef PRINT
#include <iostream>
#include <cstdio>
using namespace std;
#endif
namespace py_iter{
template<typename T>
using converter_to_py = PyObject* ... | 44,444 |
https://github.com/eduardobet/logistics/blob/master/config/localization.php | Github Open Source | Open Source | MIT | null | logistics | eduardobet | PHP | Code | 119 | 381 | <?php
return [
/* -----------------------------------------------------------------
| Settings
| -----------------------------------------------------------------
*/
'supported-locales' => ['en', 'es', 'fr'],
'accept-language-header' => true,
'hide-default-in-url' => false,
'facade... | 28,704 |
https://github.com/z0lk1n/simple-background-work/blob/master/app/src/main/java/com/example/simple_background_work/SimpleJobIntentService.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | simple-background-work | z0lk1n | Kotlin | Code | 100 | 322 | package com.example.simple_background_work
import android.content.Context
import android.content.Intent
import android.util.Log
import androidx.core.app.JobIntentService
class SimpleJobIntentService : JobIntentService() {
override fun onCreate() {
super.onCreate()
Log.i(TAG, "SimpleJobIntentService create"... | 31,344 |
https://github.com/Zhantai-Nuradinovich/YLSP_Worklab/blob/master/src/Shared/BlazorBoilerplate.Shared/Dto/Sample/CommentDto.cs | Github Open Source | Open Source | MIT | null | YLSP_Worklab | Zhantai-Nuradinovich | C# | Code | 128 | 278 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace BlazorBoilerplate.Shared.Dto.Sample
{
public class CommentDto
{
public Int32 Id { get; set; }
public string UserName { get; set; }
public string Text { get; set; }
... | 43,741 |
https://github.com/faizazharr/proyek2/blob/master/application/controllers/homepegawai.php | Github Open Source | Open Source | MIT | null | proyek2 | faizazharr | PHP | Code | 14 | 64 | <?php
class homepegawai extends CI_Controller
{
public function index()
{
$this->load->view('/resources/headerpegawai');
$this->load->view('/resources/footerpegawai');
}
}
| 52,336 |
https://github.com/isabella232/cloud-cup/blob/master/app/js/services.js | Github Open Source | Open Source | MIT | 2,021 | cloud-cup | isabella232 | JavaScript | Code | 804 | 2,667 | (function() {
'use strict';
/* Services */
angular.module('myApp.services', [])
.service('gameRunner', function($rootScope, $location, $interval, $timeout, gameDataService, playersService) {
// map of game ID to start function that returns a promise
// which resolves to a list of winners whe... | 2,581 |
https://github.com/Heaty566/MyQuiz-v2-nextjs-nestj/blob/master/client/store/auth/action.ts | Github Open Source | Open Source | MIT | 2,021 | MyQuiz-v2-nextjs-nestj | Heaty566 | TypeScript | Code | 122 | 380 | import { createAsyncThunk } from '@reduxjs/toolkit';
//* Import
import { http } from '../../service/http';
import { UserLoginDto, UserRegisterDto, ForgotPasswordDto, ForgotPasswordUpdateDto } from './dto';
import { ApiResponse } from '../api/dto';
import { UserInfo } from '.';
export const loginUser = createAsyncThun... | 9,339 |
https://github.com/artofspeed/node-zookeeper-client/blob/master/lib/ConnectionManager.js | Github Open Source | Open Source | MIT | null | node-zookeeper-client | artofspeed | JavaScript | Code | 1,960 | 6,233 | /**
* Copyright (c) 2013 Yahoo! Inc. All rights reserved.
*
* Copyrights licensed under the MIT License. See the accompanying LICENSE file
* for terms.
*/
var net = require('net');
var utils = require('util');
var events = require('events');
var jute = require('./jute');
var ConnectionStringParser = require('./C... | 1,053 |
https://github.com/SchwarzEM/ems_perl/blob/master/cleanup/clean_up_FlyPep.pl | Github Open Source | Open Source | BSD-3-Clause | 2,021 | ems_perl | SchwarzEM | Perl | Code | 167 | 645 | #!/usr/bin/perl
# clean_up_FlyPep.pl: Erich Schwarz <emsch@its.caltech.edu>, 4/26/05.
# Purpose: give FlyPep concise headers, while splitting off hairy FlyPep headers to separate file.
$headerfile = $ARGV[0] . ".full_headers";
open (HEADERS, ">$headerfile") || die;
while (<>)
{
$input = $_;
chomp ($input);
... | 21,074 |
https://github.com/liweihan/LIBExtensions/blob/master/Example/Pods/POP+MCAnimate/POP+MCAnimate/Shorthand/UIView+MCShorthand.h | Github Open Source | Open Source | MIT | 2,021 | LIBExtensions | liweihan | C | Code | 73 | 303 | //
// UIView+MCShorthand.h
// Pods
//
// Created by Matthew Cheok on 4/5/14.
//
//
#import <UIKit/UIKit.h>
#import "MCShorthand.h"
@interface UIView (MCShorthand)
@property (assign, nonatomic) CGFloat pop_scaleX;
@property (assign, nonatomic) CGFloat pop_scaleY;
@property (assign, nonatomic) CGPoint pop_scaleXY;
... | 27,449 |
https://github.com/dwjohnston93/fix-errors-tests/blob/master/06-lesson.js | Github Open Source | Open Source | MIT | null | fix-errors-tests | dwjohnston93 | JavaScript | Code | 59 | 119 |
//function should output the inputted array with "My name is" added in front of each name
function returnNames(names){
let output = []
for ( var i = 0; i < names.length; i++ {
output.push("My name is " + names[i])
}
return output
}
returnNames([ "Alibaba", "Cassandra", "AJ"])
// ctrl c to sto... | 51,430 |
https://github.com/reactivego/rx/blob/master/test/Observable/rx.go | Github Open Source | Open Source | MIT | 2,022 | rx | reactivego | Go | Code | 205 | 369 | // Code generated by jig; DO NOT EDIT.
//go:generate jig
package Observable
import (
"github.com/reactivego/scheduler"
"github.com/reactivego/subscriber"
)
//jig:name Observer
// Observer is a function that gets called whenever the Observable has
// something to report. The next argument is the item value that i... | 52,684 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.