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/Banana-dev/banana-framework/blob/master/lib/Utility/Auth.php | Github Open Source | Open Source | MIT | 2,018 | banana-framework | Banana-dev | PHP | Code | 37 | 113 | <?php
namespace Banana\Utility;
class Auth
{
public static function isAuth()
{
return Session::get('_auth.isAuth') === true;
}
public static function auth($user)
{
Session::set('_auth', ['isAuth' => true, 'user' => $user]);
}
public static function logout()
{
... | 14,085 |
https://github.com/SUSE/cf-java-buildpack-dependency-builder/blob/master/spring-boot-cli.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | cf-java-buildpack-dependency-builder | SUSE | Shell | Code | 24 | 162 | #!/usr/bin/env bash
set -e -u -o pipefail
source $(dirname "$0")/common.sh
VERSION=$(cat spring-boot-cli-archives/version)
INDEX_PATH="/spring-boot-cli/index.yml"
UPLOAD_PATH="/spring-boot-cli/spring-boot-cli-$VERSION.tar.gz"
transfer_to_s3 "spring-boot-cli-archives/spring-boot-cli-*-bin.tar.gz" $UPLOAD_PATH
updat... | 1,683 |
https://github.com/spring-projects/spring-framework/blob/master/framework-docs/modules/ROOT/pages/web/webmvc/mvc-servlet/context-hierarchy.adoc | Github Open Source | Open Source | Apache-2.0 | 2,023 | spring-framework | spring-projects | AsciiDoc | Code | 337 | 1,085 | [[mvc-servlet-context-hierarchy]]
= Context Hierarchy
`DispatcherServlet` expects a `WebApplicationContext` (an extension of a plain
`ApplicationContext`) for its own configuration. `WebApplicationContext` has a link to the
`ServletContext` and the `Servlet` with which it is associated. It is also bound to the `Servle... | 24,058 |
https://github.com/shangchunli/baiduweb/blob/master/baidu.js | Github Open Source | Open Source | MIT | 2,020 | baiduweb | shangchunli | JavaScript | Code | 92 | 715 | $(function () {
//获得手机号
var $username=$('#username');
$tel=$('#tel');
$pwd=$('#pwd');
$checkma=$('#checkma');
$sbt=$('#sbt');
//验证用户名
$username.focus(function () {
$('.tips1').html('用户名仅支持中英文、数字和下划线,且不能为纯数字')
})
$username.blur(function () {
var use... | 43,395 |
https://github.com/shdxiang/shdxiang.github.io/blob/master/drawing/js/main.js | Github Open Source | Open Source | MIT | null | shdxiang.github.io | shdxiang | JavaScript | Code | 745 | 2,863 | const REV = 6,
BRUSHES = ["simple", "web", "sketchy", "shaded", "chrome", "fur", "longfur", "squares", "circles"],
BRUSHE_NAMES = ["铅笔", "网状", "速写", "阴影", "铬状", "短毛", "长毛", "矩形", "圆形"],
USER_AGENT = navigator.userAgent.toLowerCase();
var SCREEN_WIDTH = window.innerWidth,
SCREEN_HEIGHT = window.innerHeight,
B... | 4,580 |
https://github.com/andriusvo/quizoo/blob/master/templates/bundles/PlatformAdminBundle/Quiz/Show/_toolbar.html.twig | Github Open Source | Open Source | MIT | null | quizoo | andriusvo | Twig | Code | 21 | 82 | {% import '@SyliusUi/Macro/buttons.html.twig' as buttons %}
<div class="ui right floated buttons">
{{ buttons.default(path('app_quiz_results', {'id': resource.id}), 'app.ui.generate_results', null, 'file', 'primary') }}
</div>
| 44,468 |
https://github.com/alejagapatrick/KubeFATE/blob/master/k8s-deploy/pkg/cli/version.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | KubeFATE | alejagapatrick | Go | Code | 215 | 718 | package cli
import (
"bytes"
"encoding/json"
"fate-cloud-agent/pkg/api"
"fmt"
"github.com/rs/zerolog/log"
"github.com/spf13/viper"
"github.com/urfave/cli/v2"
"io/ioutil"
"net/http"
)
func VersionCommand() *cli.Command {
return &cli.Command{
Name: "version",
Flags: []cli.Flag{
},
Usage: "Show kubefat... | 9,805 |
https://github.com/Synchronicity89/Gap/blob/master/tests/perf_vision_1.py | Github Open Source | Open Source | Apache-2.0 | null | Gap | Synchronicity89 | Python | Code | 360 | 1,086 | """ Performance Testing for Vision Module
Copyright 2018(c), Andrew Ferlitsch
"""
import unittest
import numpy as np
import h5py
import cv2
import os, time, sys
import PIL
from PIL import Image
import cv2
from gapml.vision import Image, Images
class MyTest(unittest.TestCase):
files = []
dir = []
def setup... | 42,345 |
https://github.com/bftjoe/PurpleWave/blob/master/src/Information/Intelligenze/Fingerprinting/ProtossStrategies/FingerprintDTRush.scala | Github Open Source | Open Source | MIT | 2,019 | PurpleWave | bftjoe | Scala | Code | 55 | 259 | package Information.Intelligenze.Fingerprinting.ProtossStrategies
import Information.Intelligenze.Fingerprinting.Fingerprint
import Information.Intelligenze.Fingerprinting.Generic._
import Lifecycle.With
import ProxyBwapi.Races.Protoss
class FingerprintDTRush extends FingerprintOr(
new FingerprintArrivesBy(Protoss.... | 28,409 |
https://github.com/SamrathPalSingh/stockmarketwebsite/blob/master/home/views.py | Github Open Source | Open Source | MIT | null | stockmarketwebsite | SamrathPalSingh | Python | Code | 205 | 706 |
from django.shortcuts import render
from .models import stock
from django.core.paginator import Paginator
from django.views.generic import ListView
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
def home(request):
stock_list = stock.objects.exclude(rank=int(0)).order_by('-rank')
pag... | 10,884 |
https://github.com/langpavel/nodeMirror/blob/master/generic-js/peg/pegjs-0.7.0/src/passes.js | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,013 | nodeMirror | langpavel | JavaScript | Code | 1,125 | 3,338 | /*
* Compiler passes.
*
* Each pass is a function that is passed the AST. It can perform checks on it
* or modify it as needed. If the pass encounters a semantic error, it throws
* |PEG.GrammarError|.
*/
PEG.compiler.passes = {
/* Checks that all referenced rules exist. */
reportMissingRules: function(ast) {
... | 27,397 |
https://github.com/Axngard/my-unsplash-frontend/blob/master/src/redux/reducer/register.reducer.ts | Github Open Source | Open Source | MIT | null | my-unsplash-frontend | Axngard | TypeScript | Code | 134 | 347 | /* eslint-disable indent */
import { Action } from '@src/interfaces'
/* Consttans */
import { reducerStatuses as status } from '@src/constants'
/* Axios */
import { AxiosError } from 'axios'
/* Types */
import { types } from '@src/redux/actions/register.action'
interface State {
data: null
status: status
er... | 47,282 |
https://github.com/razo2020/PortalWeb/blob/master/src/Entity/Solped.php | Github Open Source | Open Source | MIT | null | PortalWeb | razo2020 | PHP | Code | 265 | 1,006 | <?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* Solped
*
* @ORM\Table(name="solped")
* @ORM\Entity(repositoryClass="App\Repository\SolpedRepository")
*/
class Solped
{
/**
* @var string
... | 40,065 |
https://github.com/bjackson13/hangman/blob/master/services/config/ConfigProvider.go | Github Open Source | Open Source | MIT | null | hangman | bjackson13 | Go | Code | 26 | 67 | package config
import (
"github.com/joho/godotenv"
)
/*LoadEnvVariables read in our dot env file*/
func LoadEnvVariables() error {
//load .env file
err := godotenv.Load()
return err
} | 3,337 |
https://github.com/HerrB92/obp/blob/master/OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-entitymanager/src/main/java/org/hibernate/ejb/criteria/path/RootImpl.java | Github Open Source | Open Source | MIT | null | obp | HerrB92 | Java | Code | 324 | 806 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2010, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* T... | 321 |
https://github.com/mohamedsaif/ObjectDetectionManager/blob/master/Src/Libs/ObjectDetectionManager/ObjectDetectionManager/Models/OfflineModelType.cs | Github Open Source | Open Source | MIT | 2,019 | ObjectDetectionManager | mohamedsaif | C# | Code | 18 | 58 | using System;
using System.Collections.Generic;
using System.Text;
namespace ObjectDetectionManager.Models
{
public enum OfflineModelType
{
CoreML, TensorFlow, ONNX
}
}
| 913 |
https://github.com/sinaioutlander/Outward-Dataminer/blob/master/src/Model/Effect/Effects/DM_RemoveImbueEffects.cs | Github Open Source | Open Source | MIT | null | Outward-Dataminer | sinaioutlander | C# | Code | 34 | 110 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Dataminer
{
public class DM_RemoveImbueEffects : DM_Effect
{
public Weapon.WeaponSlot AffectSlot;
public override void SerializeEffect<T>(T effect)
{
AffectSlot = (effect as Rem... | 48,427 |
https://github.com/phoenixeliot/design-system/blob/master/src/MLIcon/WhatsappSquareBrand.js | Github Open Source | Open Source | Apache-2.0 | null | design-system | phoenixeliot | JavaScript | Code | 20 | 89 | import { wrapFontAwesomeIcon } from './icon-wrappers'
import { faWhatsappSquare } from '@fortawesome/free-brands-svg-icons/faWhatsappSquare'
const WhatsappSquareBrand = wrapFontAwesomeIcon(faWhatsappSquare, 'Brand')
export default WhatsappSquareBrand
| 48,573 |
https://github.com/TheKipiDragon/pele_platform/blob/master/pele_platform/Utilities/Helpers/simulation.py | Github Open Source | Open Source | Apache-2.0 | null | pele_platform | TheKipiDragon | Python | Code | 270 | 1,484 | from dataclasses import dataclass
import os
import AdaptivePELE.adaptiveSampling as ad
from pele_platform.Utilities.Helpers import helpers, template_builder
import pele_platform.constants.constants as cs
import pele_platform.Utilities.Helpers.center_of_mass as cm
import pele_platform.Utilities.Parameters.pele_env as p... | 2,649 |
https://github.com/surgioproject/surgio/blob/master/src/generator/__tests__/artifact.test.ts | Github Open Source | Open Source | MIT | 2,023 | surgio | surgioproject | TypeScript | Code | 378 | 1,394 | import test from 'ava'
import { join } from 'path'
import { loadConfig } from '../../config'
import { Artifact } from '../artifact'
import { getEngine } from '../template'
const resolve = (p: string) => join(__dirname, '../../../test/fixture/', p)
test('new Artifact()', async (t) => {
const fixture = resolve('plain... | 17,239 |
https://github.com/betallica/lukuvinkkikirjasto-copy/blob/master/src/main/java/ohtu/model/Comment.java | Github Open Source | Open Source | MIT | null | lukuvinkkikirjasto-copy | betallica | Java | Code | 110 | 376 | package ohtu.model;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
public class Comment i... | 8,716 |
https://github.com/AtlasOfLivingAustralia/ala-install/blob/master/ansible/roles/ansible-elasticsearch/test/integration/helpers/serverspec/xpack_upgrade_spec.rb | Github Open Source | Open Source | Apache-2.0, JSON | 2,023 | ala-install | AtlasOfLivingAustralia | Ruby | Code | 311 | 1,142 | require 'spec_helper'
require 'json'
vars = JSON.parse(File.read('/tmp/vars.json'))
shared_examples 'xpack_upgrade::init' do |vars|
#Test users file, users_roles and roles.yml
describe file("/etc/elasticsearch/users_roles") do
it { should be_owned_by 'root' }
it { should contain 'admin:es_admin' }
it {... | 16,978 |
https://github.com/comptech-soft/crv-reproplant/blob/master/app/Models/Farms/Animals/Animal.php | Github Open Source | Open Source | MIT | null | crv-reproplant | comptech-soft | PHP | Code | 36 | 188 | <?php
namespace App\Models\Farms\Animals;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Farms\Animals\Traits\Actions;
use App\Models\Farms\Animals\Traits\Validator;
use App\Models\Farms\Animals\Traits\Datatable;
use App\Models\Farms\Animals\Traits\Relations;
cla... | 10,278 |
https://github.com/jimmypesola/rcon-cli/blob/master/rconexception.hh | Github Open Source | Open Source | MIT | null | rcon-cli | jimmypesola | C++ | Code | 163 | 351 | #include <exception>
#include <string>
namespace Rcon {
/** Exception class
* @param msg The message to throw with the exception.
*/
class Exception : virtual public std::exception {
public:
explicit Exception(const std::string & msg) :
exMsg(msg)
... | 14,808 |
https://github.com/kaitai-io/kaitai_struct_tests/blob/master/kst-adoption-report | Github Open Source | Open Source | MIT | 2,023 | kaitai_struct_tests | kaitai-io | Ruby | Code | 306 | 1,183 | #!/usr/bin/env ruby
require 'fileutils'
require_relative 'builder/shellconfig'
# Common helper method: converts `lower_under_score` to `UpperCamelCase`
def underscore_to_ucamelcase(s)
s.split(/_/).map { |x| x.capitalize }.join
end
def glob_spec_files(lang)
case lang
when 'cpp_stl_98', 'cpp_stl_11'
Dir.glob... | 11,448 |
https://github.com/bochaco/safe_browser/blob/master/app/extensions/safe/auth-web-app/components/login.tsx | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,019 | safe_browser | bochaco | TSX | Code | 466 | 1,730 | import * as React from 'react';
import { I18n } from 'react-redux-i18n';
import classNames from 'classnames';
import { AUTH_UI_CLASSES } from '$Extensions/safe/auth-web-app/classes';
import { CardLoaderFull } from './card_loader_full';
import { Popup } from './popup';
interface Error {
code: number;
descripti... | 42,863 |
https://github.com/theodoranguyen7/inclass/blob/master/week10/project04-given/find_max_s.s | Github Open Source | Open Source | MIT | null | inclass | theodoranguyen7 | GAS | Code | 92 | 246 | /* find_max_s - find the maximum value in an interger array */
.global find_max_s
/*
* r0 - int *array
* r1 - int n
*
* r2 - int i
* r3 - int max
*/
find_max_s:
mov r2, #1
ldr r3, [r0] /* r3 = array[0] */
find_max_loop:
cmp r2, r1
bge find_max_loop_exit
ldr r12, [r0, r2, L... | 27,560 |
https://github.com/titomiguelcosta/DreamerWebsite/blob/master/templates/site/projects.twig | Github Open Source | Open Source | MIT | 2,018 | DreamerWebsite | titomiguelcosta | Twig | Code | 127 | 488 | {% extends 'layout.twig' %}
{% block title %}
{{ parent() }} | Projects
{% endblock %}
{% block body %}
<div id="profile" class="main">
<div class="row-fluid">
<div class="span8">
<h1>Projects</h1>
<dl>
{% for project in in_progress %}
... | 33,685 |
https://github.com/xuemengwang/PsycCounseling/blob/master/src/main/java/com/meng/controller/GratWallController.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | PsycCounseling | xuemengwang | Java | Code | 135 | 671 | package com.meng.controller;
import com.meng.model.Gratwall;
import com.meng.model.PageBean;
import com.meng.model.User;
import com.meng.service.GratWallService;
import com.meng.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import ... | 36,764 |
https://github.com/forte-bin/Citadel/blob/master/sentry.py | Github Open Source | Open Source | BSD-2-Clause | 2,019 | Citadel | forte-bin | Python | Code | 530 | 1,779 | from multiprocessing import Process
from threading import Thread
import subprocess, shlex
import yaml, json
import sys, time, os, datetime
LOGFILE = 'status.csv'
class StatusNode(object):
def __init__(self, node):
if isinstance(node, HostNode):
self.id = node.hostname+':' + node.ip
self.name = node.hostname
... | 12,125 |
https://github.com/andratibulca/CTS_Laboratory/blob/master/Week6 - Builder and Prototype/src/ro/ase/csie/g1094/dp/builder/WeaponInterface.java | Github Open Source | Open Source | Apache-2.0 | null | CTS_Laboratory | andratibulca | Java | Code | 11 | 38 | package ro.ase.csie.g1094.dp.builder;
public interface WeaponInterface {
public abstract void pewPew();
}
| 41,464 |
https://github.com/EliasFarhan/GBJam/blob/master/extensions/__init__.py | Github Open Source | Open Source | WTFPL | 2,017 | GBJam | EliasFarhan | Python | Code | 3 | 11 | __author__ = 'efarhan'
| 8,297 |
https://github.com/929496959/Open-XML-SDK/blob/master/src/DocumentFormat.OpenXml/GeneratedCode/schemas-microsoft-com_vml.g.cs | Github Open Source | Open Source | MIT | null | Open-XML-SDK | 929496959 | C# | Code | 20,000 | 64,262 | // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #nullable enable #pragma warning disable CS0618 // Type or member is obsolete using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Framework; using DocumentFormat... | 5,880 |
https://github.com/ksge/kbsbj/blob/master/ksbj.bas | Github Open Source | Open Source | Unlicense | 2,020 | kbsbj | ksge | Visual Basic | Code | 2,643 | 7,015 | ' K.I.S.S. STRIP BLACK JACK VERSION 3.3 20190922
'v1.0 first full working version
'v1.1 small bugfixes
'v2.0 first version working on memory (linux only)
'v3.0 if action=qui quit game
'v3.1 bugfixes + tested on Ubuntu 18.04.3
'v3.2 bugfixes + tested on win10 1903
'v3.3 bugfixes
'v3.4 fixed high cpu usage + ability to c... | 51,263 |
https://github.com/compie-technologies/advanced-rbac/blob/master/examples/basic.ts | Github Open Source | Open Source | MIT | 2,018 | advanced-rbac | compie-technologies | TypeScript | Code | 90 | 397 | import {RBAC, Possession} from "../index";
const user = {id:1, name: 'jjjj'};
const role1 = RBAC.constructRoleFromGrants('admin','1',[{
name:'compute.regions.get',
attributes: ['*','!id'],
possession: Possession.OWNER}
]);
const role2 = RBAC.constructRole('admin2','1',['compute.regions.list']);
const ... | 6,726 |
https://github.com/yangyu2010/ChatViewController/blob/master/ChatDemo/ChatDemo/ChatController/VoiceRecord/VoiceRecordButton.m | Github Open Source | Open Source | Apache-2.0 | 2,017 | ChatViewController | yangyu2010 | Objective-C | Code | 135 | 596 | //
// VoiceRecordButton.m
// ChatDemo
//
// Created by Yu Yang on 2017/11/1.
// Copyright © 2017年 Musjoy. All rights reserved.
//
#import "VoiceRecordButton.h"
#import "UIColor+Utils.h"
#import "UIImage+Category.h"
@implementation VoiceRecordButton
+ (VoiceRecordButton *)creatVoiceButton {
VoiceRecordBu... | 19,976 |
https://github.com/bobbystrange/jwrap/blob/master/jwrap-compress/src/main/java/org/dreamcat/jwrap/compress/CompressorEnum.java | Github Open Source | Open Source | Apache-2.0 | null | jwrap | bobbystrange | Java | Code | 368 | 1,376 | package org.dreamcat.jwrap.compress;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import lombok.RequiredArgsConstructo... | 46,372 |
https://github.com/AlexanderKomarov/Synet/blob/master/src/WrapperSynet/WrapperSynet.hpp | Github Open Source | Open Source | MIT | null | Synet | AlexanderKomarov | C++ | Code | 177 | 531 | #pragma once
#include <memory>
#include <vector>
#include <opencv2/opencv.hpp>
namespace WrapperSynet {
class Tensor {
public:
Tensor();
const float* CpuData() const;
std::vector<size_t> Shape() const;
std::string Name() const;
private:
class impl;
std::shared_ptr<impl> pimpl;
friend cl... | 17,229 |
https://github.com/asuonpaa/ShaderTests/blob/master/coverage/PENDING_SUBMIT/amdvlk/0612-COVERAGE-instruction-simplify-2340/reduction_output/2/source/_reference/shader.frag | Github Open Source | Open Source | Apache-2.0 | null | ShaderTests | asuonpaa | GLSL | Code | 353 | 1,289 | #version 320 es
precision highp float;
precision highp int;
layout(location = 0) out vec4 _GLF_color;
layout(set = 0, binding = 0) uniform buf0 {
vec2 resolution;
};
void main()
{
int msb9 = 512;
int msb10 = 1024;
int msb14 = 16384;
int msb15 = 32768;
int msb19 = 524288;
int msb20 = 1048576;
int msb24 = 1677... | 47,739 |
https://github.com/nsdumont/SemanticMapping/blob/master/semanticmapping/networks/inputgatednetwork.py | Github Open Source | Open Source | MIT | null | SemanticMapping | nsdumont | Python | Code | 96 | 360 | import numpy as np
from nengo.connection import Connection
from nengo.network import Network
from nengo.networks.ensemblearray import EnsembleArray
from nengo.node import Node
class InputGatedNetwork(Network):
def __init__(
self,
net,
n_neurons,
dimensions,
difference_gain... | 20,090 |
https://github.com/Armok628/stacklisp/blob/master/utils/scc_length.s | Github Open Source | Open Source | MIT | 2,021 | stacklisp | Armok628 | GAS | Code | 36 | 150 | .type scc_length, @function
scc_length: # Standard calling convention
pushq %rdi
xorq %rcx, %rcx
.scc_length_loop:
movq (%rsp), %rdi
cmpq NILptr(%rip), %rdi
je .scc_length_ret
call cdr
incq %rcx
jmp .scc_length_loop
.scc_length_ret:
addq $8, %rsp
movq %rcx, %rax
ret
| 15,523 |
https://github.com/Overnap/overnap.com/blob/master/src/pages/404.tsx | Github Open Source | Open Source | MIT | null | overnap.com | Overnap | TypeScript | Code | 46 | 114 | import React from "react"
import Layout from "../components/Layout"
import SEO from "../components/SEO"
const NotFound = () => {
return (
<>
<SEO title='Home' />
<Layout>
<h1>404 Page Not Found</h1>
<div>Sorry, the content you are looking for does not found.</div>
</Layout>
... | 5,575 |
https://github.com/yy-nm/For-Practice/blob/master/functional/http-simple-request/windows/httpvialibcur/httprequest.c | Github Open Source | Open Source | MIT | null | For-Practice | yy-nm | C | Code | 322 | 1,355 |
/*
* httprequest.c: use curl to do simple http request action.
*
* Authors:
* mardyu<michealyxd@hotmail.com>
*
* Copyright 2017 mardyu<michealyxd@hotmail.com>
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*
* reference:
* curl: https://curl.haxx.se/libcurl/
* curl... | 19,956 |
https://github.com/jason-neal/spectrum_overloaded/blob/master/spectrum_overload/test/test_overloaded_operators.py | Github Open Source | Open Source | MIT | 2,019 | spectrum_overloaded | jason-neal | Python | Code | 2,908 | 9,120 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function
import types
import hypothesis.strategies as st
import numpy as np
import pytest
from hypothesis import given
from spectrum_overload import Spectrum, SpectrumError
#######################################################
... | 25,134 |
https://github.com/AdamCarrick/inbefore404/blob/master/wpfInBefore404/windowPreferences.xaml.cs | Github Open Source | Open Source | MS-PL | 2,011 | inbefore404 | AdamCarrick | C# | Code | 322 | 1,413 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
... | 6,808 |
https://github.com/wide/styles-utils/blob/master/src/mixins/font.scss | Github Open Source | Open Source | MIT | null | styles-utils | wide | SCSS | Code | 347 | 1,027 | @use 'sass:math';
@use 'sass:meta';
@use '../variables' as *;
@use '../functions/common' as common;
@use '../functions/font' as font;
///
/// Generates an `@font-face` declaration.
///
/// You can choose the specific file formats you need to output; the mixin supports
/// `eot`, `ttf`, `svg`, `woff2` and `woff`.
///
/... | 9,143 |
https://github.com/chef/automate/blob/master/components/automate-workflow-server/schema/verify/scanner_add_results_table.sql | Github Open Source | Open Source | Apache-2.0, CC-BY-2.0, SAX-PD, MPL-2.0, Artistic-2.0, MIT-CMU, BSD-3-Clause, 0BSD, CC-BY-4.0, LGPL-3.0-or-later, CC0-1.0, CC-BY-3.0, BSD-Source-Code, Apache-1.1, Ruby, WTFPL, BSD-1-Clause, MIT, Unlicense, BSD-2-Clause | 2,023 | automate | chef | PLpgSQL | Code | 19 | 74 | -- Verify delivery:scanner_add_results_table on pg
BEGIN;
SELECT
job_id,
node_id,
report_id,
status,
result,
start_time,
end_time
FROM results WHERE FALSE;
ROLLBACK;
| 8,270 |
https://github.com/tinytinydev/VisaDeveloperSandbox_Test/blob/master/configs.js | Github Open Source | Open Source | MIT | null | VisaDeveloperSandbox_Test | tinytinydev | JavaScript | Code | 58 | 197 | const https = require("https");
var fs = require('fs');
//Certificates
const keyFile = "./certs/{Private_Key}";
const certificateFile = "./certs/{Client_Cert}";
const caFile = "./certs/{Visa_Developer_Platform_CA_Cert}";
//Project Credentials
const userId = "{VDP_UserId}";
const password = "{VDP_Password}";
//Confi... | 27,609 |
https://github.com/hyungkwonko/FacePose_pytorch/blob/master/emotion.py | Github Open Source | Open Source | MIT | 2,022 | FacePose_pytorch | hyungkwonko | Python | Code | 181 | 739 | import cv2
import torch
from torchvision import transforms
import math
import numpy as np
import torchvision.models as models
import torch.utils.data as data
from torchvision import transforms
import cv2
import torch.nn.functional as F
from torch.autograd import Variable
import pandas as pd
import os ,torch
import torc... | 24,391 |
https://github.com/akhiln/jasmine-headless-webkit/blob/master/spec/javascripts/jasmine.HeadlessReporter_spec.coffee | Github Open Source | Open Source | MIT | 2,014 | jasmine-headless-webkit | akhiln | CoffeeScript | Code | 63 | 238 | describe 'jasmine.HeadlessReporter', ->
reporter = null
beforeEach ->
reporter = new jasmine.HeadlessReporter()
it 'should stop running specs if there are errors reported', ->
# otherwise it gets really confusing!
suite = { finish: -> null }
spec = new jasmine.Spec("env", suite, "test")
sp... | 26,543 |
https://github.com/knifeds/kdsclient/blob/master/app/src/main/java/com/knifeds/kdsclient/ui/EventReceiver.java | Github Open Source | Open Source | MIT | 2,020 | kdsclient | knifeds | Java | Code | 57 | 201 | package com.knifeds.kdsclient.ui;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.knifeds.kdsclient.utils.StayForTrigger;
public class EventReceiver extends BroadcastReceiver {
private static final String TAG = "EventReceiver";
public static... | 42,770 |
https://github.com/keycloak/keycloak/blob/master/quarkus/config-api/src/main/java/org/keycloak/config/database/Database.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | keycloak | keycloak | Java | Code | 870 | 3,465 | /*
* Copyright 2021 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 36,110 |
https://github.com/AaronFriel/pulumi-aws-native/blob/master/sdk/python/pulumi_aws_native/appstream/stack_fleet_association.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | pulumi-aws-native | AaronFriel | Python | Code | 509 | 1,635 | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | 353 |
https://github.com/encosoftware/ifps/blob/master/ButorRevolutionWebAPI/src/backend/sales/IFPS.Sales.Application/Services/UserTeamTypeAppService.cs | Github Open Source | Open Source | MIT | null | ifps | encosoftware | C# | Code | 54 | 240 | using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ENCO.DDD.Service;
using IFPS.Sales.Application.Dto;
using IFPS.Sales.Application.Interfaces;
using IFPS.Sales.Domain.Repositories;
namespace IFPS.Sales.Application.Services
{
public class UserTeamTypeAppService : ApplicationS... | 34,961 |
https://github.com/XpressAI/xircuits/blob/master/src/context-menu/TrayPanel.tsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | xircuits | XpressAI | TypeScript | Code | 44 | 140 | import * as React from 'react';
import styled from '@emotion/styled';
export const Tray = styled.div`
min-width: 150px;
border-radius: 11px;
background: rgb(35, 35, 35);
flex-grow: 1;
width: 100px;
flex-shrink: 1;
max-height: auto;
`;
export class TrayPanel extends React.Component {
render() {
return <Tray... | 31,491 |
https://github.com/vesln/hippie/blob/master/test/expect-value.test.js | Github Open Source | Open Source | MIT | 2,020 | hippie | vesln | JavaScript | Code | 46 | 152 | describe('#expectValue', function() {
it('returns an error when the expected value doesnt match the actual', function(done) {
api()
.json()
.get('/list')
.expectValue('[0].id', 3)
.end(function(err) {
err.should.be.ok;
done();
});
});
it('does not return an error when expected... | 30,140 |
https://github.com/maliceio/malice/blob/master/.docker/.dockerignore | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown | 2,023 | malice | maliceio | Ignore List | Code | 14 | 52 | # Ignore .git folder
.git*
.gitignore
README.md
README.md.bu
LICENSE
docs
docker-compose.yml
build
release
Makefile | 13,081 |
https://github.com/Deniall/kRAYate/blob/master/Editor/kRAYateEditor/src/draw/CellPane.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | kRAYate | Deniall | Java | Code | 120 | 445 | /**
* @author JToolenDCU date: 19th March'16
* @text A class to listen for mouse motion and change colour of panels
*/
package draw;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JPanel;
import staticThings.StaticVars;
public class CellPane ex... | 40,915 |
https://github.com/cabelitos/react-native-awesome-card-io/blob/master/CardIOView.android.js | Github Open Source | Open Source | MIT | 2,022 | react-native-awesome-card-io | cabelitos | JavaScript | Code | 66 | 188 | import React from 'react'
import { View, Text, StyleSheet } from 'react-native'
const styles = StyleSheet.create({
container: {
width: 120,
height: 20,
backgroundColor: '#ffbcbc',
borderWidth: 1,
borderColor: 'red',
alignItems: 'center',
justifyContent: 'center',
},
text: {
color:... | 11,518 |
https://github.com/caveguy/AliOS-Things/blob/master/example/rhinorun/rhinorun.c | Github Open Source | Open Source | Apache-2.0 | 2,021 | AliOS-Things | caveguy | C | Code | 76 | 346 | /*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <k_api.h>
#include <stdio.h>
#include <stdlib.h>
#define DEMO_TASK_STACKSIZE 512 //512*cpu_stack_t = 2048byte
#define DEMO_TASK_PRIORITY 20
extern void stm32_soc_init(void);
static ktask_t demo_task_obj;
cpu_stack_t demo_task_buf[DEMO_TA... | 43,567 |
https://github.com/Xynratron/WorkingCluster/blob/master/Esb/Message/ControllerMessageAttribute.cs | Github Open Source | Open Source | MIT | null | WorkingCluster | Xynratron | C# | Code | 34 | 80 | using System;
namespace Esb.Cluster.Messages
{
/// <summary>
/// This Message must be sent to a Controller
/// </summary>
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = false)]
public sealed class ControllerMessageAttribute : Attribute
{
}
} | 41,228 |
https://github.com/YuRiJinX/splayerx/blob/master/src/renderer/services/subtitle/index.ts | Github Open Source | Open Source | GPL-3.0-only | 2,019 | splayerx | YuRiJinX | TypeScript | Code | 16 | 33 | export * from './searchers';
export * from './loaders';
export * from './parsers';
export * from './upload';
| 5,704 |
https://github.com/l7developers/easyorderbanners/blob/master/resources/views/Admin/Admin/home/events.blade.php | Github Open Source | Open Source | MIT | 2,020 | easyorderbanners | l7developers | Blade | Code | 479 | 1,943 | @extends('layouts.admin_layout')
@section('content')
<section class="content-header">
<h1>
Events
<small>Control panel</small>
</h1>
</section>
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-body no-padding">
<div id="calendar"></... | 18,531 |
https://github.com/amcp/janusgraph/blob/master/janusgraph-test/src/test/java/org/janusgraph/graphdb/predicate/ConnectiveJanusGraphPTest.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,018 | janusgraph | amcp | Java | Code | 106 | 454 | package org.janusgraph.graphdb.predicate;
import java.util.Arrays;
import java.util.List;
import org.janusgraph.core.attribute.Cmp;
import org.janusgraph.core.attribute.Text;
import org.junit.Assert;
import org.junit.Test;
public class ConnectiveJanusGraphPTest {
@Test
public void testToString() {
... | 25,157 |
https://github.com/Beffyman/Avalonia/blob/master/src/Avalonia.Visuals/Rendering/ImmediateRenderer.cs | Github Open Source | Open Source | MIT | 2,017 | Avalonia | Beffyman | C# | Code | 732 | 2,348 | // Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Avalonia.Platform;
using Avalonia.VisualTree;
using System.Collections.Generic;
using Avalonia.Media;
using System.Linq;
namespace A... | 30,654 |
https://github.com/godosou/smaroute/blob/master/src/PathGeneration/MetropolishHastings/MHPathSimWeight.h | Github Open Source | Open Source | MIT | 2,021 | smaroute | godosou | C | Code | 60 | 226 | /*
* MHPathSimWeight.h
*
* Created on: Jul 30, 2012
* Author: jchen
*/
#ifndef MHPATHSIMWEIGHT_H_
#define MHPATHSIMWEIGHT_H_
#include <MHWeight.h>
#include "patWeightFunction.h"
#include "MHPath.h"
class patMultiModalPath;
class MHPathSimWeight: public MHWeight<MHPath>, public patWeightFunction {
public:
... | 4,077 |
https://github.com/igorshirokov93/Java-SE-EE-Course/blob/master/chapter_002/src/test/java/ru/job4j/tracker/TrackerTest.java | Github Open Source | Open Source | Apache-2.0 | null | Java-SE-EE-Course | igorshirokov93 | Java | Code | 157 | 593 | package ru.job4j.tracker;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class TrackerTest {
@Test
public void whenAddNewItemThenTrackerHasSameItem() {
Tracker tracker = new Tracker();
Item item = new Item("test1", "testDescript... | 24,500 |
https://github.com/sam-goodwin/functionless/blob/master/src/event-bridge/event-bus.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | functionless | sam-goodwin | TypeScript | Code | 2,970 | 7,327 | import { aws_events, aws_events_targets, Stack } from "aws-cdk-lib";
import { Construct } from "constructs";
import { ASL } from "../asl";
import {
CallExpr,
Expr,
Identifier,
ObjectLiteralExpr,
PropAssignExpr,
StringLiteralExpr,
} from "../expression";
import { Function, NativePreWarmContext, PrewarmClient... | 42,418 |
https://github.com/uyjulian/tvpgl/blob/master/visual/IA32_pfraction/tvpps_asm.nas | Github Open Source | Open Source | BSD-3-Clause | 2,022 | tvpgl | uyjulian | Assembly | Code | 10,922 | 35,590 | ; Photoshop-like layer blender for KIRIKIRI
; (c)2004-2005 Kengo Takagi (Kenjo) <kenjo@ceres.dti.ne.jp>
;
; TODO:
; - Reduce penalty (MMX register pairing, mul result timing, etc.)
; - Overlay/HardLight and table calc are little bit slow than other
; - Not good alphablending accuracy (to simplify the operation, s... | 49,632 |
https://github.com/jonathanyip/arduino-rgb-controller/blob/master/constants.hpp | Github Open Source | Open Source | MIT | 2,021 | arduino-rgb-controller | jonathanyip | C++ | Code | 105 | 260 | #ifndef CONSTANTS_HPP
#define CONSTANTS_HPP
#include <FastLED.h>
#include <avr/pgmspace.h>
#include "macros.hpp"
/**
* Controller Configs
*/
// Number of headers
#define NUM_HEADERS 6
// Maximum LEDs allowed per header
#define MAX_LEDS_PER_HEADER 50
// Number of LEDs in total
// Evalutated, should... | 46,967 |
https://github.com/Emily-Jiang/microprofile-metrics/blob/master/tck/api/src/main/java/org/eclipse/microprofile/metrics/tck/metrics/SimplyTimedMethodBeanLookupTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | microprofile-metrics | Emily-Jiang | Java | Code | 485 | 1,540 | /*
* ********************************************************************
* Copyright (c) 2019 Contributors to the Eclipse Foundation
*
* See the NOTICES file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "Lic... | 33,493 |
https://github.com/abe545/CodeOnlyStoredProcedures/blob/master/CodeOnlyStoredProcedure/DataTransformation/ConvertNumericAttribute.cs | Github Open Source | Open Source | MIT | 2,021 | CodeOnlyStoredProcedures | abe545 | C# | Code | 98 | 181 | using System;
namespace CodeOnlyStoredProcedure.DataTransformation
{
/// <summary>
/// Decorate a property with this attribute if the numeric type from the database does not match
/// the type of the property. Be warned that you may lose some data if the value from the database
/// doesn't fit in the ... | 39,143 |
https://github.com/AbdlhamidElsayd/secret_chat/blob/master/resources/views/dashboard/layouts/app.blade.php | Github Open Source | Open Source | MIT | null | secret_chat | AbdlhamidElsayd | PHP | Code | 469 | 1,860 | <!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="{{ App::getLocale() }}" dir="{{ LaravelLocalization::getCurrentLocaleDirection() }}">
<!--<![endif]-->
@include('dashboard.layouts.head')
... | 41,057 |
https://github.com/whayne1103/crnn/blob/master/src/SharedParallelTable.lua | Github Open Source | Open Source | MIT | 2,022 | crnn | whayne1103 | Lua | Code | 173 | 586 | local SharedParallelTable, parent = torch.class('nn.SharedParallelTable', 'nn.Module')
function SharedParallelTable:__init(unit, maxT)
parent.__init(self)
self.output = {}
self.gradInput = {}
self.unit = unit
self.maxT = maxT
self.clones = {}
self:reset()
end
function SharedParallelTa... | 21,551 |
https://github.com/ncreep/scrooge/blob/master/scrooge-generator-tests/src/test/thrift/scala/const.thrift | Github Open Source | Open Source | Apache-2.0 | 2,022 | scrooge | ncreep | Thrift | Code | 61 | 138 | namespace java includes.a.thriftjava
#@namespace scala includes.a.thriftscala
struct CityState {
1: string city
2: string state
}
struct ZipCode {
1: string zipcode
}
union City {
1: CityState city_state
2: ZipCode zipcode
}
struct Address {
1: string street
2: City city
}
struct TestName {
1: stri... | 21,716 |
https://github.com/michalkolos/esp32-data-bank/blob/master/include/DataBank.h | Github Open Source | Open Source | MIT | 2,022 | esp32-data-bank | michalkolos | C | Code | 550 | 1,142 | /**
* @file DataBank.h
* @author Michal Kolosowski (michalkoloso@gmail.com)
* @brief Generic circular buffer implementation that stores data in a staticly
* allocated memory.
* @version 0.1
* @date 2020-09-09
*
* @copyright Copyright (c) 2020
*
*/
#ifndef DATA_BANK_H
#define DATA_BANK_H
/**
* Circular ... | 37,902 |
https://github.com/uthark/homebrew-core/blob/master/Formula/popt.rb | Github Open Source | Open Source | BSD-2-Clause | 2,022 | homebrew-core | uthark | Ruby | Code | 48 | 343 | class Popt < Formula
desc "Library like getopt(3) with a number of enhancements"
homepage "https://web.archive.org/web/20190425081726/rpm5.org/"
url "https://web.archive.org/web/20170922140539/rpm5.org/files/popt/popt-1.16.tar.gz"
mirror "https://ftp.openbsd.org/pub/OpenBSD/distfiles/popt-1.16.tar.gz"
sha256 ... | 22,429 |
https://github.com/xxks-kkk/bashrc_helpers/blob/master/dot_files/.gdbinit | Github Open Source | Open Source | MIT | 2,023 | bashrc_helpers | xxks-kkk | GDB | Code | 96 | 277 | # More here: https://gist.github.com/CocoaBeans/1879270
# turn off security checking
set auto-load safe-path /
# automatically loging the session into file "gdb.txt"
set logging on
# we want to see the full stack frame
set pagination off
# Debug HyperPebblesDB code on UTCS Machine
set environment LD_LIBRARY_PATH /u... | 36,691 |
https://github.com/zenoman/dvina/blob/master/resources/js/components/trans.vue | Github Open Source | Open Source | MIT | 2,019 | dvina | zenoman | Vue | Code | 168 | 819 | <template>
<div class="row padd">
<div class="col col-md-8">
<div class="panel panel-default">
<div class="panel-body">
<h5>Tambahkan Barang Pemesanan</h5> <br>
<form >
<div cl... | 7,656 |
https://github.com/catg-umag/ncov2019-ont-nf/blob/master/bin/generate_submission.py | Github Open Source | Open Source | MIT | 2,023 | ncov2019-ont-nf | catg-umag | Python | Code | 412 | 1,529 | #!/usr/bin/env python3
import argparse
import csv
import re
from Bio import SeqIO
from openpyxl import load_workbook
from openpyxl.worksheet.worksheet import Worksheet
def main():
args = parse_arguments()
sample_data = prepare_sample_info(
args.base_data, args.sample_summary, args.output_sequences, ... | 36,131 |
https://github.com/pabloluceroschneider/pui-table/blob/master/lib/components/THead/index.d.ts | Github Open Source | Open Source | MIT | null | pui-table | pabloluceroschneider | TypeScript | Code | 13 | 37 | import React from 'react';
declare const THead: React.FC;
export default THead;
//# sourceMappingURL=index.d.ts.map | 6,313 |
https://github.com/3DArcade/3DArcade/blob/master/Assets/3darcade/models/games/pengo/pengo.prefab | Github Open Source | Open Source | MIT | 2,021 | 3DArcade | 3DArcade | Unity3D Asset | Code | 2,575 | 12,363 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5022960339145438
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8982472247348938800}
- component: {fileID: 885070... | 6,465 |
https://github.com/pavan309/BarricadeKit/blob/master/DevelopmentApp/Barricade/Barricade.playground/Contents.swift | Github Open Source | Open Source | MIT | 2,019 | BarricadeKit | pavan309 | Swift | Code | 41 | 132 | //: Playground - noun: a place where people can play
import UIKit
import BarricadeKit
Barricade.setupWithInMemoreResponseStore()
Barricade.responseDelay = 1.0
let login = ResponseSet(requestName: "Login", evaluation: .closure { request, components in
return components.path.hasSuffix("/api/login")
})
Barricad... | 39,630 |
https://github.com/hjoruhjoru/lumen-graphql/blob/master/vendor/youshido/graphql/src/Parser/Ast/Directive.php | Github Open Source | Open Source | MIT | 2,019 | lumen-graphql | hjoruhjoru | PHP | Code | 84 | 267 | <?php
/**
* Date: 3/17/17
*
* @author Volodymyr Rashchepkin <rashepkin@gmail.com>
*/
namespace Youshido\GraphQL\Parser\Ast;
use Youshido\GraphQL\Parser\Location;
class Directive extends AbstractAst
{
use AstArgumentsTrait;
/** @var string */
private $name;
/**
* @param string $name
... | 8,397 |
https://github.com/ar-nelson/Gauche/blob/master/lib/scheme/vector.scm | Github Open Source | Open Source | BSD-3-Clause | null | Gauche | ar-nelson | Scheme | Code | 10 | 25 | ;; R7RS Large - Red edition
(define-module scheme.vector (extend srfi-133))
| 34,551 |
https://github.com/Jerry-py/Clutter/blob/master/modules/misc/ping.py | Github Open Source | Open Source | CC0-1.0 | null | Clutter | Jerry-py | Python | Code | 58 | 239 | import time
from discord.ext import commands
from utils import embed, checks
class Ping(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(aliases=["p", "latency"])
@commands.check(checks.send_messages)
async def ping(self, ctx):
await ctx.channel.trigger_typi... | 19,281 |
https://github.com/palmin/GitHawk/blob/master/Classes/Models/LabelableFields+IssueLabelModel.swift | Github Open Source | Open Source | MIT | 2,018 | GitHawk | palmin | Swift | Code | 61 | 146 | //
// LabelableFields+IssueLabelModel.swift
// Freetime
//
// Created by Ryan Nystrom on 6/2/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import Foundation
extension LabelableFields {
var issueLabelModels: [RepositoryLabel] {
var models = [RepositoryLabel]()
for node in label... | 14,319 |
https://github.com/makifozkanoglu/rpg_esim/blob/master/event_camera_simulator/esim_trajectory/include/esim/trajectory/imu_factory.hpp | Github Open Source | Open Source | MIT | 2,021 | rpg_esim | makifozkanoglu | C++ | Code | 19 | 111 | #pragma once
#include <gflags/gflags.h>
#include <ze/vi_simulation/trajectory_simulator.hpp>
#include <ze/vi_simulation/imu_simulator.hpp>
namespace event_camera_simulator {
ze::ImuSimulator::Ptr loadImuSimulatorFromGflags(const ze::TrajectorySimulator::Ptr &trajectory);
} // namespace event_camera_simulator
| 48,828 |
https://github.com/sara-sabr/ContinuousChallenge/blob/master/src/foundation/entity/challengeType.entity.ts | Github Open Source | Open Source | MIT | null | ContinuousChallenge | sara-sabr | TypeScript | Code | 64 | 221 | import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, VersionColumn, OneToMany } from 'typeorm';
import { Challenge } from './challenge.entity';
@Entity({
name: 'challenge_type'
})
export class ChallengeType {
@PrimaryGeneratedColumn("uuid")
id: string;
@Column({name: 'n... | 33,476 |
https://github.com/alexpcook/infrastructure-examples/blob/master/jenkins-go/Jenkinsfile | Github Open Source | Open Source | MIT | 2,021 | infrastructure-examples | alexpcook | Groovy | Code | 110 | 295 | pipeline {
agent {
docker {
image "golang:latest"
args "-u root"
}
}
stages {
stage("build") {
steps {
dir("jenkins-go") {
sh "go version"
sh "go fmt ./..."
// set an upper limit on the timeout for a step
timeout(time: 60, unit: "SECONDS") {
sh "sleep 45"
}... | 40,369 |
https://github.com/hsyl20/alex/blob/master/src/ghc_hooks.c | Github Open Source | Open Source | BSD-3-Clause | 2,022 | alex | hsyl20 | C | Code | 7 | 29 | #include <stdio.h>
void ErrorHdrHook(chan)
FILE *chan;
{}
| 37,874 |
https://github.com/sh-ogawa/lumen-nuxt-starter/blob/master/node_modules/@nuxtjs/opencollective/bin/opencollective.js | Github Open Source | Open Source | MIT | 2,020 | lumen-nuxt-starter | sh-ogawa | JavaScript | Code | 14 | 64 | #!/usr/bin/env node
require('../dist/opencollective.cjs')
.init(process.argv.length > 2 ? process.argv[2] : '.')
.catch(console.error) // eslint-disable-line no-console
| 31,744 |
https://github.com/archx3/kobina-koomson/blob/master/src/routes/routes.js | Github Open Source | Open Source | MIT | null | kobina-koomson | archx3 | JavaScript | Code | 110 | 321 | import Home from '../views/home'
export default [
{ path : '/', name : 'home', component : Home },
{ path : '/portfolio',
name : 'portfolio',
component: () => import(/* webpackChunkName: "teachers" */ '../views/Portfolio.vue')
},
{ path : '/portfolio/:id',
name : 'portfolio-name',
com... | 29,766 |
https://github.com/ph-20/fashion-style-ndt/blob/master/resources/views/front-end/layouts/footer.blade.php | Github Open Source | Open Source | MIT | 2,017 | fashion-style-ndt | ph-20 | Blade | Code | 171 | 735 | <footer>
<div class="container">
<div class="row">
<div class="col-md-4 block-footer">
<div class="icon" data-icon="E"></div>
<div class="text">
<h4>Shop Đảo Bảo <span class="label">UY TÍN </span></h4>
<div>Nhận hàng hoặc đư... | 3,545 |
https://github.com/Jay4C/Bash_Scripts/blob/master/configure_remote_access_mongodb_ubuntu.sh | Github Open Source | Open Source | MIT | null | Bash_Scripts | Jay4C | Shell | Code | 42 | 183 | #!/bin/bash
# follow these steps : https://www.digitalocean.com/community/tutorials/how-to-configure-remote-access-for-mongodb-on-ubuntu-18-04
sudo lsof -i | grep mongo
sudo ufw allow from trusted_server_ip to any port 27017
sudo ufw status
sudo nano /etc/mongod.conf
sudo systemctl restart mongod
ssh sammy@trust... | 50,386 |
https://github.com/NightElfik/Malsys/blob/master/src/Malsys.Web/Areas/Documentation/Views/Predefined/ComponentLatexPartial.cshtml | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,015 | Malsys | NightElfik | HTML+Razor | Code | 494 | 2,159 | @model ComponentModel
@using Malsys.SemanticModel.Evaluated;
@{
var data = Model.Metadata;
var baseComp = Model.BaseTypes.Where(t => !t.IsInterface).ToList();
var baseInt = Model.BaseTypes.Where(t => t.IsInterface).ToList();
var derComp = Model.DerivedTypes.Where(t => !t.IsInterface).ToList();
var derInt = Model.Deri... | 34,872 |
https://github.com/shadimsaleh/motion_detection/blob/master/CMakeLists.txt | Github Open Source | Open Source | MIT | 2,015 | motion_detection | shadimsaleh | CMake | Code | 101 | 685 | cmake_minimum_required(VERSION 2.8.3)
project(motion_detection)
find_package(catkin REQUIRED
COMPONENTS
roscpp
pcl_ros
tf
visualization_msgs
cv_bridge
image_transport
)
find_package(PCL 1.7 REQUIRED)
find_package(OpenCV REQUIRED)
find_package(Eigen REQUIRED)
catkin_package(
CATKIN_DEPENDS... | 24,143 |
https://github.com/GIHAA/Cpp-programming/blob/master/Online Assignment 01 - Make Up/Version U/Version U - Randula/main.cpp | Github Open Source | Open Source | MIT | 2,022 | Cpp-programming | GIHAA | C++ | Code | 108 | 314 | #include <iostream>
#include "Salesman.h"
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
//implement the main program
int main()
{
//create the dynamic objects
Salesman *s1 = new Salesman();
Salesman *s2 = new Salesman();
Salesman *s3 = n... | 10,076 |
https://github.com/dyzmapl/BumpTop/blob/master/trunk/win/Source/Includes/QtIncludes/src/3rdparty/phonon/qt7/backend.mm | Github Open Source | Open Source | Apache-2.0 | 2,022 | BumpTop | dyzmapl | Objective-C++ | Code | 783 | 2,633 | /* This file is part of the KDE project.
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 2.1 ... | 14,443 |
https://github.com/jonathanread/feather/blob/master/Tests/Telerik.Sitefinity.Frontend.TestUnit/Mvc/Infrastructure/Layouts/LayoutRendererTests.cs | Github Open Source | Open Source | Apache-2.0 | null | feather | jonathanread | C# | Code | 505 | 1,636 | using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using global::Microsoft.VisualStudio.TestTools.UnitTesting;
using Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts;
using Telerik.Sitefinity.Frontend.TestUtilities.DummyClasses.Layouts;
using Telerik.Sitefinity.Services;
namespace T... | 2,957 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.