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/matteobovetti/wasp/blob/master/whitelabel/docker/cdp711/build/envsubst/envsubst.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | wasp | matteobovetti | Go | Code | 352 | 1,011 | package main
import (
"flag"
"io/ioutil"
"log"
"regexp"
"strings"
)
func main() {
// Parse flags
environmentDirectory := flag.String("env", "/", "Directory containing files with environment variables")
substitutionDirectory := flag.String("sub", "/", "Directory containing files where v... | 13,445 |
https://github.com/mindpilot/DL.Gallery/blob/master/Resources/Private/grunt/uglify.js | Github Open Source | Open Source | MIT | null | DL.Gallery | mindpilot | JavaScript | Code | 28 | 246 | module.exports = {
bootstrapLightbox: {
src: [
'node_modules/photoswipe/dist/photoswipe.js',
'node_modules/photoswipe/dist/photoswipe-ui-default.js',
'JavaScript/PhotoSwipe.js'
],
dest: '../Public/JavaScript/BootstrapLightbox.min.js'
},
justifiedG... | 23,260 |
https://github.com/keyrwinz/aqmscebu/blob/master/src/components/Utils/makeBadge.js | Github Open Source | Open Source | MIT | null | aqmscebu | keyrwinz | JavaScript | Code | 85 | 224 | import React from 'react'
const makeBadge = (classification) => {
let color = null
let bg = null
switch (classification) {
case 'Good':
bg = 'limegreen'
break
case 'Fair':
bg = 'yellow'
color = 'black'
break
case 'Unhealthy':
bg = 'orange'
color = 'black'
... | 36,062 |
https://github.com/zealoussnow/chromium/blob/master/third_party/blink/renderer/platform/loader/fetch/loading_behavior_observer.h | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | zealoussnow | C | Code | 75 | 298 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FETCH_LOADING_BEHAVIOR_OBSERVER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_LOADER_FETCH_LOADING_BEH... | 14,380 |
https://github.com/eugeneilyin/mdi-norm/blob/master/es/FilledSettingsPhone.js | Github Open Source | Open Source | MIT | 2,019 | mdi-norm | eugeneilyin | JavaScript | Code | 53 | 127 | import React from 'react';
import { Icon } from './Icon';
import { dh, hj, va } from './fragments';
export var FilledSettingsPhone =
/*#__PURE__*/
function FilledSettingsPhone(props) {
return React.createElement(Icon, props, React.createElement("path", {
d: "M13 9" + va + "m4 0" + va + "m3 6.5" + hj + dh + "M19 9... | 41,925 |
https://github.com/joshualucas84/jasper-soft-server/blob/master/jasperserver/jasperserver-api/metadata/src/main/java/com/jaspersoft/jasperserver/api/metadata/olap/service/OlapConnectionService.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | jasper-soft-server | joshualucas84 | Java | Code | 701 | 1,680 | /*
* Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms... | 40,005 |
https://github.com/aschenmaker/ego-component/blob/master/ekafka/interceptor.go | Github Open Source | Open Source | MIT | null | ego-component | aschenmaker | Go | Code | 171 | 582 | package ekafka
import (
"encoding/json"
"fmt"
"log"
"time"
"github.com/gotomicro/ego/core/eapp"
"github.com/gotomicro/ego/core/util/xdebug"
)
type processor func(fn processFn) error
type processFn func(*cmd) error
type cmd struct {
name string
req []interface{}
res interface{}
}
type Interceptor func(ol... | 34,792 |
https://github.com/faultyagatha/backend-typescript/blob/master/client/src/pages/CreateProductAdmin.tsx | Github Open Source | Open Source | MIT | null | backend-typescript | faultyagatha | TypeScript | Code | 268 | 1,010 | import React, { useState } from "react";
import { Link } from "react-router-dom";
import { Form, Button } from "react-bootstrap";
import { useDispatch, useSelector } from "react-redux";
import Message from "../components/Message";
import FormContainer from "../components/Form";
import { createProductByAdmin } from "..... | 7,857 |
https://github.com/gheleri/socrates/blob/master/tests/Feature/SerbiaTest.php | Github Open Source | Open Source | MIT | 2,020 | socrates | gheleri | PHP | Code | 246 | 1,109 | <?php
namespace Reducktion\Socrates\Tests\Feature;
use Carbon\Carbon;
use Reducktion\Socrates\Constants\Gender;
use Reducktion\Socrates\Laravel\Facades\Socrates;
use Reducktion\Socrates\Exceptions\InvalidLengthException;
class SerbiaTest extends FeatureTest
{
private $people;
private $invalidIds;
protec... | 5,656 |
https://github.com/anderslanglands/color/blob/master/color/types.hpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | color | anderslanglands | C++ | Code | 74 | 212 | #pragma once
#include <cstdint>
#include <OpenEXR/ImathVec.h>
#include <OpenEXR/ImathMatrix.h>
#include <OpenEXR/half.h>
namespace color {
// Yeah I like Rust's typenames, sue me.
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using i8 = int8_t;
using i16 = int16_t;
using i32 = int32_t;
using f16... | 31,899 |
https://github.com/veritem/bvm/blob/master/cli/src/registry/mod.rs | Github Open Source | Open Source | MIT | 2,022 | bvm | veritem | Rust | Code | 10 | 30 | mod download_registry_file;
mod manifest;
pub use download_registry_file::*;
pub use manifest::*;
| 25,731 |
https://github.com/jtkempco/blindmunkey/blob/master/react/src/components/MultipleChoiceTextButton.js | Github Open Source | Open Source | MIT | null | blindmunkey | jtkempco | JavaScript | Code | 277 | 1,055 | import React, { Component } from "react"
import AdditionalCost from './AdditionalCost'
import Description from './Description'
import Note from './Note'
import Checkmark from './Checkmark'
import TopImageContainer from './TopImageContainer'
class MultipleChoiceTextButton extends Component {
constructor(props) {
sup... | 24,245 |
https://github.com/claudioDcv/portafolio-jwt-oracle11g/blob/master/src/main/java/cl/safe/security/LoginController.java | Github Open Source | Open Source | MIT | 2,019 | portafolio-jwt-oracle11g | claudioDcv | Java | Code | 156 | 794 | package cl.safe.security;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.impl.TextCodec;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.Date;
import java.util.List;
import javax.servlet.ServletException;
i... | 41,473 |
https://github.com/fujiawei-dev/tookit-py/blob/master/project_scaffold/templates/golang/internal/config/setting.go | Github Open Source | Open Source | BSD-3-Clause | null | tookit-py | fujiawei-dev | Go | Code | 134 | 629 | {{GOLANG_HEADER}}
package {{GOLANG_PACKAGE}}
import (
"time"
"gorm.io/gorm/logger"
)
type DatabaseSetting struct {
DbName string `mapstructure:"db_name" yaml:"db_name,omitempty"`
DbPath string `mapstructure:"db_path" yaml:"db_path,omitempty"`
DbType string `mapstructure:"db_typ... | 38,788 |
https://github.com/surabujin/libpy/blob/master/libpy/root.py | Github Open Source | Open Source | MIT | null | libpy | surabujin | Python | Code | 132 | 412 | # -*- coding:utf-8 -*-
from ._root import AbstractDescriptor
from ._root import Alias
from ._root import AliasAdapter
from ._root import AliasAdapterError
from ._root import AttrAdapter
from ._root import ItemAdapter
__all__ = [
'Abstract',
'AbstractDescriptor',
'Alias', 'AliasAdapter',
'AliasAdapterE... | 32,327 |
https://github.com/gustavorizzon/membership-control-web/blob/master/app/ReservationGuest.php | Github Open Source | Open Source | MIT | null | membership-control-web | gustavorizzon | PHP | Code | 17 | 56 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ReservationGuest extends Model
{
protected $fillable = ['full_name', 'document', 'reservation_id'];
}
| 23,241 |
https://github.com/thienkimlove/senplus/blob/master/app/Console/Commands/SetDefault.php | Github Open Source | Open Source | Apache-2.0 | null | senplus | thienkimlove | PHP | Code | 152 | 427 | <?php
namespace App\Console\Commands;
use App\Helpers;
use App\Models\Company;
use App\Models\Customer;
use App\Models\Survey;
use Illuminate\Console\Command;
class SetDefault extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = ... | 45,557 |
https://github.com/rlisowski/open_flash_chart_2/blob/master/app/helpers/documentations/x_axis_label_helper.rb | Github Open Source | Open Source | MIT | 2,016 | open_flash_chart_2 | rlisowski | Ruby | Code | 3 | 12 | module Documentations::XAxisLabelHelper
end
| 34,956 |
https://github.com/prabkumdev/ARMClient/blob/master/ARMClient.Authentication/EnvironmentStorage/IEnvironmentStorage.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | ARMClient | prabkumdev | C# | Code | 20 | 72 | using ARMClient.Authentication.Contracts;
namespace ARMClient.Authentication.EnvironmentStorage
{
public interface IEnvironmentStorage
{
void SaveEnvironment(string env);
string GetSavedEnvironment();
bool IsCacheValid();
void ClearSavedEnvironment();
}
} | 15,641 |
https://github.com/DInnaD/mailer/blob/master/app/Compaign.php | Github Open Source | Open Source | MIT | null | mailer | DInnaD | PHP | Code | 270 | 1,069 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Compaign extends Model
{
//
//for updating without del id or other main fields, stus 'fillable' equal update agriment
use Selectable, SoftDeletes, Owned;//, Avaliable {
// boot a... | 5,940 |
https://github.com/ThalesGroup/iot-safe-middleware/blob/master/iotsafelib/common/inc/Applet.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | iot-safe-middleware | ThalesGroup | C | Code | 920 | 2,084 | /*
* Copyright (c) 2019 - 2020, Thales DIS Singapore, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 40,010 |
https://github.com/binRick/lollipop/blob/master/server.sh | Github Open Source | Open Source | MIT | null | lollipop | binRick | Shell | Code | 30 | 72 | #!/bin/bash
cd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) && source common.sh
if [ ! -d venv ]; then
python3 -m venv venv
fi
source venv/bin/activate
exec ./server.py
| 13,027 |
https://github.com/cypherpath/nic1/blob/master/apii/network_calls.py | Github Open Source | Open Source | MIT | 2,019 | nic1 | cypherpath | Python | Code | 243 | 539 | from typing import Any, Dict, Optional
from apii.caller import Caller
class NetworkCalls:
"""
Network_Calls is the last link in the chain of responsibility. Retrieving calls from the Machine_Calls,
it prepares them for the Caller.
This last bit of behaviour should probably be changed to an exception... | 3,209 |
https://github.com/jackyh/javacpp-presets/blob/master/bullet/src/gen/java/org/bytedeco/bullet/global/Bullet3OpenCL.java | Github Open Source | Open Source | Apache-2.0 | null | javacpp-presets | jackyh | Java | Code | 5,229 | 16,999 | // Targeted by JavaCPP version 1.5.8-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.bullet.global;
import org.bytedeco.bullet.Bullet3OpenCL.*;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import org.bytedeco.b... | 45,099 |
https://github.com/JamesPoel/laravel-html-bootstrap-4/blob/master/tests/Forms/InputTest.php | Github Open Source | Open Source | MIT | null | laravel-html-bootstrap-4 | JamesPoel | PHP | Code | 63 | 280 | <?php
namespace MarvinLabs\Html\Bootstrap\Tests\Forms;
use MarvinLabs\Html\Bootstrap\Contracts\FormState;
use MarvinLabs\Html\Bootstrap\Tests\HtmlTestCase;
class InputTest extends HtmlTestCase
{
/** @test */
public function adds_css_class_when_field_has_errors()
{
// Arrange
$this->openF... | 38,900 |
https://github.com/eagle-1/xymon/blob/master/tags/rel_2_5/bbnet/bbtest-net.h | Github Open Source | Open Source | MIT | null | xymon | eagle-1 | C | Code | 554 | 1,241 | /*----------------------------------------------------------------------------*/
/* Big Brother network test tool. */
/* */
/* Copyright (C) 2003 Henrik Storner <henrik@hswn.dk> ... | 43,948 |
https://github.com/andywu1998/C_and_Cpp/blob/master/Algorithm/unionfind/quickunion.c | Github Open Source | Open Source | MIT | null | C_and_Cpp | andywu1998 | C | Code | 117 | 344 | #include <stdio.h>
int id[100];
void init(int n){
int i;
for (i = 0; i < n; i++)
id[i] = i;
}
int root(int a){
while(id[a] != a)
{
a = id[a];
}
return a;
}
void QuickUnion(int a, int b){
int root_a = root(a);
int root_b = root(b);
if (root_a != root_b)
id[root_a] =... | 15,166 |
https://github.com/evanrelf/sidecar/blob/master/sidekick/src/Sidekick/Watch.hs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | sidecar | evanrelf | Haskell | Code | 123 | 406 | {-# LANGUAGE FlexibleContexts #-}
module Sidekick.Watch
( Event (..)
, start
)
where
import UnliftIO (MonadUnliftIO)
import qualified Streamly.FSNotify
import qualified Streamly.Prelude as Streamly
data Event
= Added FilePath
| Modified FilePath
| Removed FilePath
start
:: MonadUnliftIO m
=> Stre... | 36,801 |
https://github.com/ethanshry/Kraken-Utils/blob/master/src/git.rs | Github Open Source | Open Source | MIT | null | Kraken-Utils | ethanshry | Rust | Code | 70 | 197 | //! Wrappers for git CLI functions
/// Clones a git repository at a specific branch to the dst_dir
pub fn clone_remote_branch(url: &str, branch: &str, dst_dir: &str) -> Result<(), String> {
if let Ok(mut branch) = std::process::Command::new("git")
.arg("clone")
.arg("-b")
.arg(branch)
.arg(url)
... | 11,593 |
https://github.com/zhangmingkai4315/react-rewind/blob/master/04_real_app/src/components/widgets/NewsList/newslist.js | Github Open Source | Open Source | MIT | null | react-rewind | zhangmingkai4315 | JavaScript | Code | 169 | 818 | import React, { Component } from 'react'
import { TransitionGroup,CSSTransition } from 'react-transition-group'
import NewsCard from './newscard'
import Button from '../Buttons/button'
import styles from './style.css'
import { firebaseTeams, firebaseLoop, firebaseArticles } from '../../../firebase'
class NewsList ex... | 42,162 |
https://github.com/ryujt/ff-play/blob/master/test/test_ffplayer/test_ffplayer/FFPlayer.hpp | Github Open Source | Open Source | MIT | 2,021 | ff-play | ryujt | C++ | Code | 172 | 615 | #pragma once
#include <string>
#include <ryulib/Scheduler.hpp>
#include "FFStream.hpp"
#include "FFAudio.hpp"
#include "FFVideo.hpp"
const int TASK_OPEN = 1;
const int TASK_CLOSE = 2;
const int TASK_PLAY = 3;
const int TASK_PAUSE = 4;
using namespace std;
class FFPlayer {
public:
FFPlayer()
{
scheduler_.setOnTa... | 30,145 |
https://github.com/SCOTT-HAMILTON/RobotsWar/blob/master/include/Commands/getGMissileYCommand.h | Github Open Source | Open Source | MIT | 2,018 | RobotsWar | SCOTT-HAMILTON | C | Code | 32 | 125 | #ifndef GETGMISSILEYCOMMAND_H
#define GETGMISSILEYCOMMAND_H
#include <iostream>
#include "ScriptCommand.h"
class getGMissileYCommand : public ScriptCommand
{
public:
getGMissileYCommand(ScriptBlock &block, const ParamVar &id);
virtual ~getGMissileYCommand();
virtual void update();
private:
ParamVar ... | 18,286 |
https://github.com/Devanthro/roboy_plexus/blob/master/src/sensors/tlv493d.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,019 | roboy_plexus | Devanthro | C++ | Code | 356 | 1,563 | #include "roboy_plexus/tlv493d.hpp"
TLV493D::TLV493D(int32_t *i2c_base):i2c_base(i2c_base){
i2c = boost::shared_ptr<I2C>(new I2C(i2c_base));
// reset();
}
void TLV493D::reset(){
i2c->resetTLV();
{
vector<uint8_t> regdata;
readAllRegisters(0x5e, regdata, false);
// Static initial... | 16,380 |
https://github.com/milliele/JSPyBridge/blob/master/src/javascript/events.py | Github Open Source | Open Source | MIT | 2,022 | JSPyBridge | milliele | Python | Code | 679 | 1,797 | import time, threading, json, sys
from . import connection, config, pyi
from queue import Queue
from weakref import WeakValueDictionary
class TaskState:
def __init__(self):
self.stopping = False
self.sleep = self.wait
def wait(self, sec):
stopTime = time.time() + sec
while tim... | 26,418 |
https://github.com/ProgMiner/modbot/blob/master/src/main/kotlin/ru/byprogminer/modbot/storage/PluginActorChatStorage.kt | Github Open Source | Open Source | MIT | null | modbot | ProgMiner | Kotlin | Code | 14 | 62 | package ru.byprogminer.modbot.storage
import ru.byprogminer.modbot.api.User
interface PluginActorChatStorage: Storage {
operator fun get(user: User): PluginActorChatUserStorage
}
| 19,603 |
https://github.com/ObjectivityLtd/Bake/blob/master/Bake.Cake.Build/Task/XUnitTestsTask.cs | Github Open Source | Open Source | MIT | 2,017 | Bake | ObjectivityLtd | C# | Code | 18 | 62 | namespace Bake.Cake.Build.Task
{
public class XUnitTestsTask : AbstractBackendTestsTask
{
public XUnitTestsTask(string solutionName) : base(solutionName)
{
}
}
}
| 20,714 |
https://github.com/brightening-eyes/kowalski/blob/master/src/enginedemo/ios/AudioTaperDemo.h | Github Open Source | Open Source | Zlib | null | kowalski | brightening-eyes | C | Code | 176 | 380 | /*
Copyright (c) 2010-2013 Per Gantelius
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial application... | 19,624 |
https://github.com/isabella232/upcase/blob/master/db/migrate/20120717194121_add_addresses_to_sections.rb | Github Open Source | Open Source | MIT | 2,022 | upcase | isabella232 | Ruby | Code | 79 | 245 | class AddAddressesToSections < ActiveRecord::Migration[4.2]
def up
add_column :sections, :address, :string
add_column :sections, :city, :string
add_column :sections, :state, :string
add_column :sections, :zip, :string
update "update sections set address = courses.location || '\n' || courses.locati... | 25,555 |
https://github.com/siglabsoss/ip-library-core/blob/master/upconverter/hdl/test_coeffs.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | ip-library-core | siglabsoss | Python | Code | 81 | 392 | import numpy as np
import matplotlib.pyplot as pt
words = [
'111111111110000110',
'000000000010111011',
'111111111010111101',
'000000001000000101',
'111111110011101111',
'000000010001111010',
'111111100110101010',
'000000100011000011',
'111111010000010101',
'000001000000010000',... | 17,984 |
https://github.com/punsal/Swing-Hero/blob/master/Assets/Doozy/Editor/GUI/Scripts/DGUI/Database.cs | Github Open Source | Open Source | MIT | null | Swing-Hero | punsal | C# | Code | 646 | 2,745 | // Copyright (c) 2015 - 2019 Doozy Entertainment. All Rights Reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
using System.Collections.Generic;
using Doozy.Engine.Extensions... | 46,197 |
https://github.com/auerlab/vcfio/blob/master/fasta-mutators.h | Github Open Source | Open Source | BSD-2-Clause | null | vcfio | auerlab | C | Code | 156 | 543 |
/*
* Generated by /usr/local/bin/auto-gen-get-set
*
* Mutator functions for setting with no sanity checking. Use these to
* set structure members from functions outside the bl_fasta_t
* class. These macros perform no data validation. Hence, they achieve
* maximum performance where data are guaranteed cor... | 15,077 |
https://github.com/garrettw/pearweb/blob/master/package_channel.php | Github Open Source | Open Source | PHP-3.0, IJG, PHP-3.01 | 2,018 | pearweb | garrettw | PHP | Code | 64 | 354 | <?php
error_reporting(error_reporting() & ~E_STRICT & ~E_DEPRECATED);
require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$a = PEAR_PackageFileManager2::importOptions(dirname(__FILE__) . '/package-channel.xml',
array(
'baseinstalldir' => '/pear.php.net/',
'packagefil... | 12,396 |
https://github.com/dhensen/chatops-deployment-slackbot/blob/master/slackbot/tasks/deploy.py | Github Open Source | Open Source | MIT | null | chatops-deployment-slackbot | dhensen | Python | Code | 332 | 991 | import os
import subprocess
from queue import Full
from tempfile import TemporaryDirectory
from time import sleep
from parse import parse
from slackbot.deployment_queue import DeploymentQueue
from slackbot.providers.commit_hash import get_commit_hash, GH_TOKEN, GH_USER, GH_ORGANISATION
deployment_queue = DeploymentQ... | 1,872 |
https://github.com/Gabs48/SpringMassNetworks/blob/master/neurolab/train/wta.py | Github Open Source | Open Source | MIT | 2,021 | SpringMassNetworks | Gabs48 | Python | Code | 225 | 670 | # -*- coding: utf-8 -*-
"""
Train algorithm based on Winner Take All - rule
"""
from neurolab.core import Train
import neurolab.tool as tool
import numpy as np
class TrainWTA(Train):
"""
Winner Take All algorithm
:Support networks:
newc (Kohonen layer)
:Parameters:
input: array... | 39,461 |
https://github.com/hdi-superuser/xxyzz/blob/master/DEBUG/main_lib.h | Github Open Source | Open Source | Unlicense, MIT | 2,016 | xxyzz | hdi-superuser | C | Code | 43 | 212 | #ifndef MAIN_LIB_H_INCLUDED
#define MAIN_LIB_H_INCLUDED
#include <bits/stdc++.h>
/*
Include all library of this solution.
*/
#include "shortcut.h"
#include "global_var.h"
#include "global_timer.h"
#include "chk_s.h"
#include "io_data.h"
#include "global_method.h"
#include "binpack_naive_algo.h"
#include "binpa... | 16,951 |
https://github.com/bopopescu/Lauecollect/blob/master/camera_image_analyser.py | Github Open Source | Open Source | MIT | null | Lauecollect | bopopescu | Python | Code | 689 | 2,606 | #!/bin/env python
""" This is a python script that will analyse images triggered by the FPGA
It will be a standalone unit that can be called from either "Optical Sample Freeze Detector" or
LAUE Crystalography image analyser.
Core functions:
- get background array
- get current array
- get d... | 6,360 |
https://github.com/robojan/EmuAll/blob/master/Emuall/gui/debugger/DebuggerNotebook.cpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | EmuAll | robojan | C++ | Code | 250 | 975 | #include "DebuggerNotebook.h"
#include "DebuggerManager.h"
#include "../../util/log.h"
using namespace Debugger;
DebuggerNotebook::DebuggerNotebook(Emulator *emu, const pugi::xml_node &node) :
_emu(emu), _widget(NULL)
{
wxASSERT(strcmp(node.name(), "notebook") == 0);
wxASSERT(emu != NULL);
pugi::xml_object_range<... | 29,530 |
https://github.com/aura24/sipaud/blob/master/penilaian_show_detail_print.php | Github Open Source | Open Source | MIT | null | sipaud | aura24 | PHP | Code | 674 | 3,485 | <!DOCTYPE html>
<html lang="en">
<?php include "connect_db.php" ?>
<?php include "layout/head.php" ?>
<!---->
<!--<a class="btn btn-warning pull-right" href="penilaian_show_detail_print.php"><li class="fa fa-print"></li> Print </a>-->
<body class="nav-md" onload="window.print()">
<div class="container body">
<div c... | 35,451 |
https://github.com/LabsRS-Dev/sdk/blob/master/src/dove.sdk/util/update.js | Github Open Source | Open Source | MIT | 2,017 | sdk | LabsRS-Dev | JavaScript | Code | 492 | 1,707 | import { common } from './common'
import { communication } from './communication'
import { loaderWrapper } from './loaderWrapper'
import { Tool } from '../include'
import _ from 'lodash'
// 自动更新设置
/**
* appId, 指定AppID
* promptText, 指定提示说明
* getDataCB. 获得数据后的处理方式
* foundNewVersionCallback, 内置处理完成后,回调处理
*/
var uu$ ... | 35,998 |
https://github.com/pokornysimon/NetfoxDetective/blob/master/NetfoxCore/Common/Core/Interfaces/Views/IExportDetailView.cs | Github Open Source | Open Source | Apache-2.0 | null | NetfoxDetective | pokornysimon | C# | Code | 13 | 51 | using Netfox.Core.Interfaces.Views.Exports;
namespace Netfox.Core.Interfaces.Views
{
public interface IExportDetailView : IAutoRegisterView
{
}
} | 31,933 |
https://github.com/spring-operator/webmachine/blob/master/src/webmachine_log.erl | Github Open Source | Open Source | Apache-2.0 | null | webmachine | spring-operator | Erlang | Code | 862 | 2,609 | %% Copyright (c) 2011-2012 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you 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/LI... | 43,227 |
https://github.com/NtsDK/larpwriter-toolkit-nims/blob/master/packages/nims-resources/translations/ru/utils.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | larpwriter-toolkit-nims | NtsDK | JavaScript | Code | 35 | 127 | module.exports = {
'close-page-warning': 'Убедитесь, что сохранили данные. После закрытия страницы все несохраненные изменения будут потеряны.',
'new-base-warning': 'Вы уверены, что хотите создать новую базу? Все несохраненные изменения будут потеряны.',
'base-file-loading-error': 'Ошибка при загрузке файла... | 37,767 |
https://github.com/jonahwh/pitchcar_track_generator/blob/master/lib/pieces/piece.rb | Github Open Source | Open Source | MIT | 2,017 | pitchcar_track_generator | jonahwh | Ruby | Code | 119 | 388 | require 'json'
require 'rmagick'
module Pitchcar
module Pieces
class Piece
DIRECTIONS = { NORTH: 0, EAST: 1, WEST: 2, SOUTH: 3 }
attr_accessor :direction, :x, :y, :type
def initialize(properties)
self.x = properties[:x]
self.y = properties[:y]
self.direction = propertie... | 2,796 |
https://github.com/Gustaf26/covid-19-dark-mode/blob/master/src/US.js | Github Open Source | Open Source | MIT | 2,022 | covid-19-dark-mode | Gustaf26 | JavaScript | Code | 302 | 1,179 | import React from "react"
import Moment from "react-moment"
class ContagionList extends React.Component {
state = {
data: [],
selected: [],
index: 0,
}
componentDidMount = () => {
fetch(
`https://covid-19-coronavirus-statistics.p.rapidapi.com/v1/stats?country=us`,
{
method: "... | 6,633 |
https://github.com/hadasmeitav/cherrypie/blob/master/src/extension/Popup.tsx | Github Open Source | Open Source | MIT | 2,021 | cherrypie | hadasmeitav | TypeScript | Code | 17 | 54 | import ReactDOM from "react-dom";
import React from "react";
import { PopupRoot } from "../components/PopupRoot";
ReactDOM.render(<PopupRoot />, document.getElementById('app'));
| 7,783 |
https://github.com/phpManufakturHeirs/kfContact/blob/master/Library/libphonenumber/src/libphonenumber/geocoding/data/en/1925.php | Github Open Source | Open Source | MIT | null | kfContact | phpManufakturHeirs | PHP | Code | 670 | 1,898 | <?php
/**
* This file is automatically @generated by {@link GeneratePhonePrefixData}.
* Please don't modify it directly.
*/
return array (
1925 => 'California',
1925210 => 'Walnut Creek, CA',
1925225 => 'Pleasanton, CA',
1925227 => 'Pleasanton, CA',
1925228 => 'Martinez, CA',
1925229 => 'Martinez, CA',
... | 23,633 |
https://github.com/howkins/test/blob/master/plugins/pensoft/content/updates/builder_table_update_pensoft_content_news_4.php | Github Open Source | Open Source | MIT | 2,022 | test | howkins | PHP | Code | 33 | 152 | <?php namespace Pensoft\Content\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableUpdatePensoftContentNews4 extends Migration
{
public function up()
{
Schema::table('pensoft_content_news', function($table)
{
$table->smallInteger('state')->nullable(... | 24,673 |
https://github.com/fabaff/automate-ws/blob/master/ws/handler/event/appliance/sprinkler/duration.py | Github Open Source | Open Source | MIT | null | automate-ws | fabaff | Python | Code | 21 | 77 | import home
from ws.handler.event.appliance.event.int import Handler as Parent
class Handler(Parent):
KLASS = home.appliance.sprinkler.event.duration.Event
TEMPLATE = "event/int.html"
LABEL = "Sprinkling time duration"
| 28,894 |
https://github.com/Hugokk/Loki/blob/master/Loki.Core/Loki.Core.Infraintructure/Repositories/ClienteRepository.cs | Github Open Source | Open Source | MIT | null | Loki | Hugokk | C# | Code | 286 | 1,266 | using System;
using System.Collections.Generic;
using System.Linq;
using Dapper;
using Loki.Core.Domain.Constantes;
using Loki.Core.Domain.Entities;
using Loki.Core.Domain.Interfaces;
using Loki.Core.Domain.Queries;
using Npgsql;
namespace Loki.Core.Infrastructure.Repositories
{
public class ClienteRepository : I... | 36,872 |
https://github.com/pankajNaikk/Flask_Blog/blob/master/flask_app/posts/routes.py | Github Open Source | Open Source | MIT | null | Flask_Blog | pankajNaikk | Python | Code | 203 | 715 | ########## THIS FILE CONTAINS POST'S BLUEPRINT ##########
from flask import render_template, url_for, flash, redirect, request, abort, Blueprint
from flask_login import current_user, login_required
from flask_app import db
from flask_app.models import Post
from flask_app.posts.forms import PostForm
# now create the... | 8,148 |
https://github.com/KayZGames/ld33_warmup/blob/master/lib/src/client/systems/rendering.dart | Github Open Source | Open Source | MIT | null | ld33_warmup | KayZGames | Dart | Code | 40 | 149 | part of client;
class ThingRenderingSystem extends EntityProcessingSystem {
Mapper<Position> pm;
CanvasRenderingContext2D ctx;
ThingRenderingSystem(this.ctx) : super(Aspect.getAspectForAllOf([Position]));
@override
void processEntity(Entity entity) {
var pos = pm[entity];
ctx
..save()
.... | 36,772 |
https://github.com/tfisher1226/ARIES/blob/master/aries/templates/template1/template1-model/src/main/java/org/sgiusa/model/UserPermission.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | ARIES | tfisher1226 | Java | Code | 333 | 1,196 | package org.sgiusa.model;
import java.io.Serializable;
import java.lang.String;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.anno... | 12,409 |
https://github.com/annaHdez/ITI901_ProyectoEquipoAzul/blob/master/resources/views/layout/header/header.blade.php | Github Open Source | Open Source | MIT | null | ITI901_ProyectoEquipoAzul | annaHdez | PHP | Code | 132 | 650 | <!DOCTYPE html>
<html lang="es">
<nav class="navbar navbar-dark bg-dark fixed-top" style="height: 15vh; width:100%; opacity: 1;" >
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap" rel="stylesheet">
<ul class="navbar-nav mr-auto">
<a href="" class="btn text-white ... | 45,728 |
https://github.com/dg/texy/blob/master/tests/Texy/blocks.phpt | Github Open Source | Open Source | BSD-3-Clause | 2,021 | texy | dg | PHP | Code | 42 | 202 | <?php
/**
* Test: Blocks
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/../bootstrap.php';
$texy = new Texy\Texy;
$texy->linkModule->root = 'xxx/';
$texy->imageModule->root = '../images/';
$texy->htmlOutputModule->lineWrap = 180;
Assert::matchFile(
__DIR__ . '/expected/blocks1.html',
$tex... | 40,391 |
https://github.com/ckeil0689/treeview3/blob/master/src/main/java/util/LogBuffer.java | Github Open Source | Open Source | MIT | null | treeview3 | ckeil0689 | Java | Code | 224 | 645 | /* BEGIN_HEADER TreeView 3
*
* Please refer to our LICENSE file if you wish to make changes to this software
*
* END_HEADER
*/
package util;
import java.util.Enumeration;
import java.util.Observable;
import java.util.Vector;
import java.util.prefs.Preferences;
p... | 5,426 |
https://github.com/copslock/broadcom_cpri/blob/master/sdk-6.5.20/src/bcm/dnx/port/port_esem.c | Github Open Source | Open Source | Spencer-94 | null | broadcom_cpri | copslock | C | Code | 3,681 | 17,674 | /*
** \file port_esem.c $Id$ Per PORT ESEM command mgmt procedures for DNX.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#ifdef BSL_LOG_MODULE
#error "BSL_L... | 1,432 |
https://github.com/ylywyn/prometheus/blob/master/storage/remote/switcher.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | prometheus | ylywyn | Go | Code | 493 | 1,561 | // Copyright 2016 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 46,665 |
https://github.com/travispaul/earthwiggle-scraper/blob/master/test/scrape.js | Github Open Source | Open Source | BSD-2-Clause | 2,019 | earthwiggle-scraper | travispaul | JavaScript | Code | 777 | 2,571 | const
fs = require('fs'),
path = require('path'),
nock = require('nock'),
chai = require('chai'),
{DateTime} = require('luxon'),
assert = chai.assert,
expect = chai.expect,
{
setupConfig,
fetchHEAD,
fetchBody,
parseBody,
checkSchema,
loadSchema,
insertRecords,
saveETag,
... | 22,351 |
https://github.com/fossabot/Motwo/blob/master/app/js/components/ui/formButton.js | Github Open Source | Open Source | MIT | null | Motwo | fossabot | JavaScript | Code | 66 | 258 | import React from 'react';
import radium from 'radium';
import theme from '../../utils/theme';
@theme
@radium
export default class FormButton extends React.Component {
getStyle() {
return {
width: '100%',
padding: '15px',
margin: '10px 0 8px 0',
borderRadius: '3px',
background: this.props.getThemePr... | 11,588 |
https://github.com/warrenbuckley/serilog-expressions/blob/master/src/Serilog.Expressions/Templates/Compilation/CompiledConditional.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | serilog-expressions | warrenbuckley | C# | Code | 162 | 369 | // Copyright © Serilog Contributors
//
// 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... | 527 |
https://github.com/Leonchik1945/spbu_homework_2021-2022/blob/master/2021.09.27_homework/Project5/Source.cpp | Github Open Source | Open Source | Apache-2.0 | null | spbu_homework_2021-2022 | Leonchik1945 | C++ | Code | 59 | 139 | #include <iostream>;
using namespace std;
int main(int argc, char* argv[])
{
int a = 0;
{
cin >> a;
for (int b = 1; b <= a; ++b)
{
int r = b;
int n = a;
if (n % r == 0)
{
cout << r << " ";
}
}
cout << endl;
}
return EXIT_SUCCESS;
}
| 33,419 |
https://github.com/prq312757797/jtct02/blob/master/App/Program/Controller/QdcodeController.class.php | Github Open Source | Open Source | BSD-2-Clause | null | jtct02 | prq312757797 | PHP | Code | 1,004 | 9,349 | <?php
namespace Program\Controller;
use Think\Controller;
header('content-type:application:json;charset=utf8');
header('Access-Control-Allow-Origin:*');
//header('Access-Control-Allow-Methods:POST');
header('Access-Control-Allow-Headers:x-requested-with,content-type');
class QdcodeController extends Controller {
... | 8,439 |
https://github.com/samirsaravia/Python_101/blob/master/Python3-WorldIII/ex086.py | Github Open Source | Open Source | MIT | null | Python_101 | samirsaravia | Python | Code | 124 | 388 | # matriz: list = [[], [], []]
# suporte: list = []
# for linha in range(len(matriz)):
# for coluna in range(len(matriz)):
# valor = int(input(f'Digite um valor[{linha}:{coluna}]: '))
# if linha == 0:
# suporte.append(valor)
# matriz[0].append(suporte[:])
# suport... | 10,323 |
https://github.com/PaaS-TA/monitoring-dashboard-release/blob/master/create-release.sh | Github Open Source | Open Source | Apache-2.0 | null | monitoring-dashboard-release | PaaS-TA | Shell | Code | 65 | 221 | #!/bin/bash
if [ -d ./.dev_builds ]; then
echo "delete .dev_builds"
rm -rf .dev_builds
fi
if [ -d ./dev_releases ]; then
echo "delete dev_releases"
rm -rf dev_releases
fi
if [ -f ./monitoring-dashboard-release-5.7.2.tgz ]; then
echo "delete monitoring-dashboard-release-5.7.2.tgz"
rm -rf monitoring-dashboar... | 25,203 |
https://github.com/MoonLGH/aniyomi-extensions/blob/master/src/de/aniflix/src/eu/kanade/tachiyomi/animeextension/de/aniflix/Aniflix.kt | Github Open Source | Open Source | Apache-2.0 | null | aniyomi-extensions | MoonLGH | Kotlin | Code | 801 | 3,107 | package eu.kanade.tachiyomi.animeextension.de.aniflix
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animeextension.de.aniflix.dto.AnimeDetailsDto
import eu.kanade.tachiyomi.animeex... | 6,976 |
https://github.com/IlikeFivem/Sentinal-Python-Rewrite/blob/master/cogs/moderation.py | Github Open Source | Open Source | MIT | null | Sentinal-Python-Rewrite | IlikeFivem | Python | Code | 523 | 1,784 | from typing import overload
import discord
from discord.ext import commands
class moderation(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
@commands.has_permissions(kick_members=True)
async def kick(self, ctx, member : discord.Member, *, reason=None):
# Cre... | 15,309 |
https://github.com/Filmstund/filmstund/blob/master/web/src/use-cases/new-showing/createShowingFormData.graphql | Github Open Source | Open Source | MIT | 2,022 | filmstund | Filmstund | null | Spoken | 24 | 85 | query CreateShowingQuery($movieID: UUID!) {
movie(id: $movieID) {
...MovieFragment
releaseDate
}
me: currentUser {
id
nick
name
}
previouslyUsedLocations
filmstadenCities {
name
alias
}
}
| 2,158 |
https://github.com/Xiang-Shi/PStream/blob/master/example/client_benchmarker/main_test.go | Github Open Source | Open Source | MIT | 2,021 | PStream | Xiang-Shi | Go | Code | 27 | 104 | package main
import (
"os"
"testing"
)
func TestMainProgram(t *testing.T) {
os.Args = []string{"./main -m -v -c",
" https://10.1.0.1:6121/random1 200 0",
" https://10.1.0.1:6121/random2 10 5"}
main()
}
| 44,415 |
https://github.com/id1945/ngx-flexlayout/blob/master/dist/collection/components/sample-component/sample-component.js | Github Open Source | Open Source | MIT | null | ngx-flexlayout | id1945 | JavaScript | Code | 1,493 | 5,577 | import { Component, Host, Prop, h } from '@stencil/core';
import { addResourceStrings } from '../..';
import { IgcDockManagerPaneType, IgcDockingIndicatorPosition, IgcPaneDragActionType, IgcSplitPaneOrientation, IgcUnpinnedLocation } from '../dockmanager/dockmanager.public-interfaces';
/**
* @hidden
*/
const customRe... | 17,313 |
https://github.com/KalmeMarq/editor-packages/blob/master/packages/minecraftBedrock/types/customComponent/item.d.ts | Github Open Source | Open Source | MIT | 2,022 | editor-packages | KalmeMarq | TypeScript | Code | 185 | 358 | declare interface TemplateContext {
/**
* Read the current compiler mode
*/
compilerMode: 'build' | 'dev'
/**
* @returns A JSON object representing the file content of the item that is currently using the custom component
*/
sourceItem: () => any
/**
* Modify the item that is using this component
*/
c... | 33,523 |
https://github.com/Margaux83/Laravel-project/blob/master/resources/views/game.blade.php | Github Open Source | Open Source | MIT | null | Laravel-project | Margaux83 | PHP | Code | 152 | 715 | <x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Détails du match') }}
</h2>
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-s... | 12,405 |
https://github.com/ahameedx/intel-inb-manageability/blob/master/inbm/trtl/btrfs/delete_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | intel-inb-manageability | ahameedx | Go | Code | 45 | 188 | package btrfs
import (
"errors"
"github.com/stretchr/testify/assert"
"testing"
"iotg-inb/trtl/util"
)
func TestReturnNoErrorOnSnapshotDelete(t *testing.T) {
f := util.FakeCommandExec{
Err: nil,
}
err := DeleteSnapshot(f, "rootConfig", 2)
assert.NoError(t, err)
}
func TestReturnsErrorOnSnapshotDelete(t *te... | 42,046 |
https://github.com/melchoyce/choycedesign-2017/blob/master/assets/stylesheets/shared/_headings.scss | Github Open Source | Open Source | MIT | null | choycedesign-2017 | melchoyce | SCSS | Code | 54 | 160 | h1, h2, h3, h4 {
margin: 1.4em 0 0.8em;
font-weight: bold;
}
h1 {
font-size: scale-up( 1rem, 5 );
}
h2 {
font-size: scale-up( 1rem, 4 );
}
h3 {
font-size: scale-up( 1rem, 3 );
color: lighten( $color__text-main, 10% );
}
h4 {
font-size: scale-up( 1rem, 2 );
color: lighten( $color__text-main, 10% );
}
| 38,592 |
https://github.com/zhuheyang/check/blob/master/8web-development-with-node-and-express/ch19/views/vacations.handlebars | Github Open Source | Open Source | MIT | 2,019 | check | zhuheyang | null | Spoken | 143 | 607 | <h1>Vacations</h1>
{{#each vacations}}
<div class="vacation">
<h3><a href="/vacation/{{slug}}">{{name}}</a></h3>
<p>{{description}}</p>
{{#if inSeason}}
<span class="price">{{price}}</span>
<a href="/cart/add?sku={{sku}}" data-action="cart-add" data-sku="{{sku}}" class="btn b... | 10,560 |
https://github.com/Nickrocky/CQR/blob/master/src/main/java/com/nickrocky/cqr/data/CQRCode.java | Github Open Source | Open Source | MIT | null | CQR | Nickrocky | Java | Code | 747 | 2,253 | package com.nickrocky.cqr.data;
import com.nickrocky.cqr.exception.InvalidCQRException;
import com.nickrocky.cqr.util.PackageType;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import static c... | 38,185 |
https://github.com/quihuan1995/ConVietNinh/blob/master/app/UserB.php | Github Open Source | Open Source | MIT | null | ConVietNinh | quihuan1995 | PHP | Code | 43 | 196 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class UserB extends Model
{
protected $table = 'users_b';
public $timestamps=false;
protected $fillable = [
'id', 'user_id_a', 'user_id_b','name','phone','password','adress','avatar','state','date_in','date_out'
];
public functi... | 44,373 |
https://github.com/brenoc/prototype/blob/master/src/vtex.sdk@1.0.0/.build/render/assets/Placeholder.js | Github Open Source | Open Source | MIT | null | prototype | brenoc | JavaScript | Code | 343 | 1,026 | 'use strict';
System.register(['npm.react/react.js', './settings.js', './contextify.js'], function (_export, _context) {
var React, Component, allSettings, contextify, _extends, _createClass, Placeholder;
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw n... | 44,959 |
https://github.com/ismaelviss/oauth2/blob/master/twitter/config/index.js | Github Open Source | Open Source | MIT | null | oauth2 | ismaelviss | JavaScript | Code | 16 | 66 | require('dotenv').config();
const config = {
twitterApiKey: process.env.TWITTER_API_KEY,
twitterApiSecret: process.env.TWITTER_API_SECRET
};
module.exports = { config: config };
| 1,440 |
https://github.com/viniarck/podcaststore-vuejs/blob/master/src/quasar.js | Github Open Source | Open Source | Apache-2.0 | null | podcaststore-vuejs | viniarck | JavaScript | Code | 79 | 397 | import Vue from 'vue'
import './styles/quasar.styl'
import '@quasar/extras/roboto-font/roboto-font.css'
import '@quasar/extras/material-icons/material-icons.css'
import '@quasar/extras/fontawesome-v5/fontawesome-v5.css'
import {
Quasar,
QLayout,
QHeader,
QDrawer,
QPageContainer,
QPage,
QToolbar,
QToo... | 32,266 |
https://github.com/davidyack/Xrm.Tools.CRMDiscoAPI/blob/master/nodejs/examples/CallDisco/calldisco.ts | Github Open Source | Open Source | MIT | 2,020 | Xrm.Tools.CRMDiscoAPI | davidyack | TypeScript | Code | 45 | 259 | import * as crmapi from '../../lib/crmdiscoapi'
class CallDisco {
public static main(): any {
console.log('Starting ');
var config = new crmapi.crmdiscoapiconfig();
config.APIUrl = 'https://globaldisco.crm.dynamics.com/api/discovery/v1.0/';
config.AccessToken = 'token goes here';
... | 5,312 |
https://github.com/sbespalov/hazelcast/blob/master/hazelcast/src/test/java/com/hazelcast/cp/internal/raft/impl/testing/TestRaftMember.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | hazelcast | sbespalov | Java | Code | 241 | 545 | /*
* Copyright (c) 2008-2019, Hazelcast, 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 ... | 5,130 |
https://github.com/cdelira9/commonmark-java/blob/master/commonmark/src/main/java/org/commonmark/internal/inline/EmphasisDelimiterProcessor.java | Github Open Source | Open Source | BSD-2-Clause | 2,020 | commonmark-java | cdelira9 | Java | Code | 159 | 577 | package org.commonmark.internal.inline;
import org.commonmark.node.*;
import org.commonmark.parser.delimiter.DelimiterProcessor;
import org.commonmark.parser.delimiter.DelimiterRun;
public abstract class EmphasisDelimiterProcessor implements DelimiterProcessor {
private final char delimiterChar;
protected E... | 14,886 |
https://github.com/sowlmateHQ/metalsmith-boilerplate/blob/master/src/index.html.handlebars | Github Open Source | Open Source | MIT | 2,019 | metalsmith-boilerplate | sowlmateHQ | null | Spoken | 26 | 68 | ---
layout: default.html
title: Main Page Title
description: Main Page Description
permalink: false
---
<h1>
<img src="/img/logo.png">
</h1>
<p>This is content located on the main page.</p>
| 14,804 |
https://github.com/stisa/Nim/blob/master/compiler/wasmutils.nim | Github Open Source | Open Source | MIT | 2,021 | Nim | stisa | null | Spoken | 841 | 2,413 | import
ast, astalgo, types, sighashes, msgs, wordrecg, trees, ropes, options, modulegraphs
import md5
from wasm/wasmast import WasmValueType, WasmOpKind
from strutils import toHex, Digits
proc getPragmaStmt*(n: PNode, w: TSpecialWord): PNode =
case n.kind
of nkStmtList:
for i in 0..<n.len:
result = ... | 39,631 |
https://github.com/marcuschangarm/mbed-cloud-client/blob/master/mbed-client-pal/Source/Port/Reference-Impl/OS_Specific/ZephyrOS/Networking/fd_work_poll_polling.c | Github Open Source | Open Source | Apache-2.0 | 2,020 | mbed-cloud-client | marcuschangarm | C | Code | 705 | 2,244 | /* Copyright (c) 2021 Pelion
*
* 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 w... | 6,036 |
https://github.com/CoaPsyFactor/microframework/blob/master/framework/Database/Database.php | Github Open Source | Open Source | MIT | null | microframework | CoaPsyFactor | PHP | Code | 324 | 985 | <?php
namespace Framework;
/**
* Description of Database
*
* @author Aleksandar Zivanovic <coapsyfactor@gmail.com>
*/
class Database implements SingletonModule
{
/** @var string */
private $config = [];
/** @var \PDO */
private $db;
/** @var int */
public $insertId;
/** @var int */... | 22,657 |
https://github.com/seed-builder/umbrella/blob/master/database/seeds/CustomerSeeder.php | Github Open Source | Open Source | Apache-2.0 | null | umbrella | seed-builder | PHP | Code | 80 | 378 | <?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use App\Models\User;
class CustomerSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker\Factory::create('zh_CN');
$user_ids = User::all()... | 26,167 |
https://github.com/sbinet/pmon/blob/master/process_darwin.go | Github Open Source | Open Source | BSD-3-Clause | 2,020 | pmon | sbinet | Go | Code | 78 | 177 | // Copyright 2015 The pmon Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package pmon
import (
sys "golang.org/x/sys/unix"
)
func (p *Process) wait(pid, options int) error {
p.fc <- func() error {
var status sys.WaitStatus
... | 15,794 |
https://github.com/jiinwoojin/mil-sym-js/blob/master/web/js/src/armyc2/c2sd/JavaLineArray/POINT2.js | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,020 | mil-sym-js | jiinwoojin | JavaScript | Code | 169 | 525 | var armyc2 = armyc2 || {};
armyc2.c2sd = armyc2.c2sd || {};
armyc2.c2sd.JavaLineArray = armyc2.c2sd.JavaLineArray || {};
/*
*contructors:
*(POINT2)
*(x,y)
*(x,y,style)
*(x,y,segment,style)
*/
armyc2.c2sd.JavaLineArray.POINT2 = function(x, y, param1, param2)
{
this.x = 0;
this.y = 0;
this.segment = 0;
t... | 30,103 |
https://github.com/JnCrMx/discord-game-sdk4j/blob/master/src/main/java/de/jcm/discordgamesdk/CreateParams.java | Github Open Source | Open Source | MIT | 2,022 | discord-game-sdk4j | JnCrMx | Java | Code | 696 | 1,834 | package de.jcm.discordgamesdk;
import java.util.Objects;
import java.util.stream.Stream;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Initial parameters to create a {@link Core} from.
* @see <a href="https://discordapp.com/developers/docs/game-sdk/discord#create-parameters">
* https://discordapp.com... | 42,756 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.