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/OnurKirkizoglu/master_thesis/blob/master/at.jku.sea.cloud/src/main/java/at/jku/sea/cloud/implementation/DefaultContainer.java | Github Open Source | Open Source | Apache-2.0 | null | master_thesis | OnurKirkizoglu | Java | Code | 364 | 1,535 | package at.jku.sea.cloud.implementation;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import at.jku.sea.cloud.Artifact;
import at.jku.sea.cloud.Container;
import at.jku.sea.cloud.DataStorage;
import at.jku.sea.cloud.Property;
import at.... | 38,359 |
https://github.com/pkomon-tgm/xchess/blob/master/src/server/main.cpp | Github Open Source | Open Source | MIT | 2,018 | xchess | pkomon-tgm | C++ | Code | 48 | 167 | /*
* main.cpp
*
* Created on: Apr 16, 2018
* Author: pkomon
*/
#include <exception>
#include <iostream>
#include "boost/asio/io_context.hpp"
#include "game_server.hpp"
int main(){
try {
boost::asio::io_context context;
chess::game_server gs(context, 5555);
//gs.start_accept();
context.run();
}... | 5,263 |
https://github.com/jungledre/work_orbit/blob/master/.ipynb_checkpoints/Convert GeoJSON to straight JS-checkpoint.ipynb | Github Open Source | Open Source | MIT | 2,015 | work_orbit | jungledre | Jupyter Notebook | Code | 1,882 | 8,094 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## How to grab and store the Zillow data as GeoJSON ##"
]
},
{
"cell_type": "code",
"execution_count": 142,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "st... | 26,329 |
https://github.com/kamalber/FlyProject-spring-boot/blob/master/src/main/java/com/weberfly/dao/CommentRepository.java | Github Open Source | Open Source | MIT | 2,017 | FlyProject-spring-boot | kamalber | Java | Code | 132 | 523 | package com.weberfly.dao;
import java.util.Date;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import com.weberfly.ent... | 52,132 |
https://github.com/jimmymintzer/reacter-news/blob/master/scss/mixins.scss | Github Open Source | Open Source | MIT | 2,021 | reacter-news | jimmymintzer | SCSS | Code | 48 | 155 | @mixin vertical-align {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
@mixin arrow($direction, $color) {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
@if $direction ... | 20,358 |
https://github.com/ronaaron/reva/blob/master/examples/test.f | Github Open Source | Open Source | MIT | 2,022 | reva | ronaaron | null | Spoken | 135 | 214 | needs testing
| How to make a test-case for Reva:
|
| The word ''bad'' is supposed to return '1' but doesn't. Here is
| how we make the test case:
|
| First the bad word:
: bad 0 ;
| Now the test case:
| All test cases must return a flag. "true" means the test was ok, 'false'
| means it failed. The line after "t... | 52,289 |
https://github.com/harshit212705/ShopHere/blob/master/tinymce_5.1.3_dev/tinymce/modules/tinymce/src/plugins/visualchars/main/ts/core/VisualChars.ts | Github Open Source | Open Source | LGPL-2.1-only, LGPL-2.0-or-later, LicenseRef-scancode-generic-cla, MIT | 2,021 | ShopHere | harshit212705 | TypeScript | Code | 226 | 668 | /**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
import { Element, Node } from '@ephox/dom-globals';
import { Arr } fr... | 33,855 |
https://github.com/devnax/state-range/blob/master/src/index.ts | Github Open Source | Open Source | MIT | null | state-range | devnax | TypeScript | Code | 45 | 125 | import Store from './store'
import withMemo from './hooks/withMemo'
import withStore from './hooks/withStore'
import useMeta from './hooks/useMeta'
export { noDispatch, dispatch } from './core/Root'
export { getState, replaceState, mergeState } from './core/Root'
export type {Row, PartOfRow, RowDefault} from './types... | 11,805 |
https://github.com/pierre-guillou/ttk-paraview/blob/master/VTK/ThirdParty/vtkm/vtkvtkm/vtk-m/benchmarking/BenchmarkRayTracing.cxx | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,021 | ttk-paraview | pierre-guillou | C++ | Code | 302 | 1,411 | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... | 51,598 |
https://github.com/lamoda/atol-client/blob/master/src/V5/DTO/Register/Measure.php | Github Open Source | Open Source | MIT | 2,022 | atol-client | lamoda | PHP | Code | 323 | 750 | <?php
declare(strict_types=1);
namespace Lamoda\AtolClient\V5\DTO\Register;
use Paillechat\Enum\Enum;
/**
* @method static self PIECE()
* @method static self GRAM()
* @method static self KILOGRAM()
* @method static self TON()
* @method static self CENTIMETER()
* @method static self DECIMETER()
* @method stat... | 21,981 |
https://github.com/kylejlin/mnist-digit-classifier-typescript/blob/master/src/network/index.ts | Github Open Source | Open Source | MIT | null | mnist-digit-classifier-typescript | kylejlin | TypeScript | Code | 130 | 393 | import { LabeledImage, VectorLabeledImage, AccuracyRate } from "../data";
import { Matrix } from "../matrix";
import { DeepReadonly } from "../deepReadonly";
export interface Network {
readonly layerSizes: number[];
stochasticGradientDescent(
trainingData: VectorLabeledImage[],
hyperparams: StochasticGrad... | 47,537 |
https://github.com/akerl/pallet/blob/master/config/main.go | Github Open Source | Open Source | MIT | null | pallet | akerl | Go | Code | 76 | 230 | package config
import (
"github.com/spf13/viper"
)
const (
configName = "config"
configDir = "$HOME/.pallet"
)
var defaults = map[string]interface{}{
"root": configDir,
}
// LoadConfig loads the Pallet configuration
func LoadConfig() (*viper.Viper, error) {
v := viper.New()
v.AutomaticEnv()
v.SetEnvPrefix(... | 45,646 |
https://github.com/SAMY-ER/Interactive-Kmeans/blob/master/HelpFunctions.py | Github Open Source | Open Source | MIT | 2,022 | Interactive-Kmeans | SAMY-ER | Python | Code | 964 | 2,836 | # ********************************************************************************************************
# HELPER FUNCTIONS DEFINITION
# ********************************************************************************************************
# **************************************... | 20,655 |
https://github.com/wyon/incubator-weex/blob/master/weex_core/Source/core/data_render/vnode/vcomponent.h | Github Open Source | Open Source | Apache-2.0 | null | incubator-weex | wyon | C | Code | 351 | 851 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 46,966 |
https://github.com/SteveJonNunez/FRVDrone/blob/master/mobile/src/main/jni/API/Stubs/ftp_client_stub.c | Github Open Source | Open Source | Apache-2.0 | null | FRVDrone | SteveJonNunez | C | Code | 838 | 3,178 | /*
* ftp_client_stub.c
*
* Created on: Jul 26, 2011
* Author: "Dmytro Baryskyy"
*/
#include "common.h"
#include <utils/ardrone_ftp.h>
static char* TAG = "ftp_client_stub";
static _ftp_status get_ftp_status(JNIEnv *env, jobject obj)
{
jclass ftpClientClass = (*env)->GetObjectClass(env, obj);
jfieldID ft... | 25,378 |
https://github.com/estallio/haustechnik-esterbauer-invoice-management/blob/master/packages/web/src/features/Document/view/SaveButton/view/SaveButton.module.scss | Github Open Source | Open Source | MIT | 2,021 | haustechnik-esterbauer-invoice-management | estallio | SCSS | Code | 11 | 43 | .wrapper {
padding-bottom: 40px;
padding-left: 30px;
padding-right: 30px;
padding-top: 30px;
}
| 34,187 |
https://github.com/GuerfiHamza/guerfihamza/blob/master/node_modules/@ant-design/pro-form/lib/components/Submitter/index.d.ts | Github Open Source | Open Source | MIT | null | guerfihamza | GuerfiHamza | TypeScript | Code | 147 | 419 | import React from 'react';
import type { FormInstance, ButtonProps } from 'antd';
/** @name 用于配置操作栏 */
export declare type SearchConfig = {
/** @name 重置按钮的文本 */
resetText?: React.ReactNode;
/** @name 提交按钮的文本 */
submitText?: React.ReactNode;
};
export declare type SubmitterProps<T = {}> = {
/** @name... | 20,221 |
https://github.com/hivesolutions/appier/blob/master/src/appier/storage.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | appier | hivesolutions | Python | Code | 860 | 2,078 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Hive Appier Framework
# Copyright (c) 2008-2022 Hive Solutions Lda.
#
# This file is part of Hive Appier Framework.
#
# Hive Appier Framework is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apache
# Found... | 33,229 |
https://github.com/DeiusShrab/PFDB/blob/master/PFEditor/Controls/LocationControl.xaml.cs | Github Open Source | Open Source | MIT | 2,023 | PFDB | DeiusShrab | C# | Code | 54 | 182 | using System.Windows.Controls;
namespace PFEditor.Controls
{
/// <summary>
/// Interaction logic for LocationControl.xaml
/// </summary>
public partial class LocationControl : UserControl
{
public LocationControl()
{
InitializeComponent();
if (System.ComponentModel.DesignerProperties.Get... | 36,481 |
https://github.com/Mantas-2155X/ADBForwarder/blob/master/ADBForwarder/Program.cs | Github Open Source | Open Source | MIT | null | ADBForwarder | Mantas-2155X | C# | Code | 357 | 1,296 | using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Threading;
using System.Reflection;
using System.Diagnostics;
using System.Runtime.InteropServices;
using SharpAdbClient;
using ICSharpCode.SharpZipLib.Zip;
namespace ADBForwarder
{
internal class Program
{
public const ... | 24,223 |
https://github.com/berryhill/gf-frontend/blob/master/src/actions/searchActions.js | Github Open Source | Open Source | MIT | 2,017 | gf-frontend | berryhill | JavaScript | Code | 43 | 126 | import thunk from "redux-thunk"
import { isEmpty, encodeQueryData } from "./helpers"
import { fetchProducts } from './productsActions'
export function searchFieldSelected(props) {
return dispatch => {
dispatch({type: "SEARCH_FIELD_SELECTED"})
}
}
export function searchFieldSubmitted(props) {
return disp... | 52,106 |
https://github.com/jarvandev/cero-filas/blob/master/src/Web/TaxiDinamica.Web/Views/Home/Index.cshtml | Github Open Source | Open Source | MIT | null | cero-filas | jarvandev | C# | Code | 845 | 3,905 | @model TaxiDinamica.Web.ViewModels.Home.IndexViewModel
@{
this.ViewData["Title"] = "Inicio";
}
<!-- ======= Sobre Nosotros: Section ======= -->
@* <section id="about" class="about">
<div class="container" data-aos="fade-up">
<div class="row gx-0">
<div class="col-lg-6 d-flex flex-column... | 41,016 |
https://github.com/2xyo/pelican-theme-greyshade/blob/master/sass/custom/_colors.scss | Github Open Source | Open Source | MIT | 2,014 | pelican-theme-greyshade | 2xyo | SCSS | Code | 2 | 14 | $greyshade: #D19E31;
| 54,438 |
https://github.com/DazEB2/SimplePyScripts/blob/master/weather__openweathermap__pyowm.py | Github Open Source | Open Source | CC-BY-4.0 | 2,022 | SimplePyScripts | DazEB2 | Python | Code | 42 | 173 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
API_KEY = '87c7712a9b72646a269102230858837b'
place = 'Магнитогорск'
# pip install pyowm
import pyowm
owm = pyowm.OWM(API_KEY)
observation = owm.weather_at_place(place)
w = observation.get_weather()
temperature = w.get_temperature('celsius')['tem... | 15,992 |
https://github.com/ErikasAbukauskas/5-uzduotis/blob/master/resources/views/owner/index.blade.php | Github Open Source | Open Source | MIT | null | 5-uzduotis | ErikasAbukauskas | PHP | Code | 93 | 492 | @extends('layouts.app')
@section('content')
<div class="container">
<table class="table table-striped">
<a class="btn btn-primary" href="{{route('owner.create')}}">Create new owner</a>
<tr>
<th>ID</th>
<th>Name</th>
<th>Surname</... | 30,937 |
https://github.com/vootan/hibernate-validator/blob/master/engine/src/main/java/org/hibernate/validator/spi/cfg/ConstraintMappingContributor.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | hibernate-validator | vootan | Java | Code | 272 | 627 | /*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.spi.cfg;
import org.hibernate.validator.cfg.ConstraintMapping;
/**
... | 5,600 |
https://github.com/duylinhng95/laravel5_training/blob/master/app/Http/Controllers/API/PostController.php | Github Open Source | Open Source | MIT | 2,019 | laravel5_training | duylinhng95 | PHP | Code | 210 | 759 | <?php
namespace App\Http\Controllers\API;
use App\Repository\PostRepository;
use App\Repository\PostRepositoryEloquent;
use App\Services\PostService;
use App\Traits\ResponseTrait;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class PostController extends Controller
{
use ResponseTrait;
/*... | 5,232 |
https://github.com/jlblancoc/suitesparse-metis-for-windows/blob/master/SuiteSparse/GraphBLAS/Source/GrB_Semiring_new.c | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-free-unknown, LicenseRef-scancode-unknown-license-reference, GPL-2.0-or-later, GPL-3.0-only, LGPL-2.1-or-later, LGPL-2.0-or-later, GPL-1.0-or-later, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-generic-cla | 2,023 | suitesparse-metis-for-windows | jlblancoc | C | Code | 405 | 964 | //------------------------------------------------------------------------------
// GrB_Semiring_new: create a new semiring
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved.
// http://suitesparse.com See Gr... | 16,860 |
https://github.com/bytedance/IconPark/blob/master/packages/svg/src/icons/FigmaMask.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | IconPark | bytedance | TypeScript | Code | 130 | 395 | /**
* @file FigmaMask 遮罩
* @author Auto Generated by IconPark
*/
/* tslint:disable: max-line-length */
/* eslint-disable max-len */
import {ISvgIconProps, IconWrapper} from '../runtime';
export default IconWrapper('figma-mask', (props: ISvgIconProps) => (
'<?xml version="1.0" encoding="UTF-8"?>'
+ '<svg wi... | 980 |
https://github.com/howto-ruby/rom-relation/blob/master/lib/rom/schema/definition.rb | Github Open Source | Open Source | MIT | 2,013 | rom-relation | howto-ruby | Ruby | Code | 81 | 280 | module ROM
class Schema
class Definition
include Equalizer.new(:relations)
attr_reader :relations
attr_reader :repositories
def initialize(&block)
@relations = {}
@repositories = {}
instance_eval(&block) if block
end
def base_relation(name, &block... | 52,258 |
https://github.com/18600130137/leetcode/blob/master/LeetCodeCPP/93. Restore IP Addresses/main.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | leetcode | 18600130137 | C++ | Code | 101 | 443 | //
// main.cpp
// 93. Restore IP Addresses
//
// Created by admin on 2019/4/8.
// Copyright © 2019年 liu. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<string> restoreIpAddresses(string s) {
int m=s.size();
vector<string> ret... | 22,190 |
https://github.com/LogicAndTrick/thor/blob/master/Thorm/SQLite/SQLiteDatabase.cs | Github Open Source | Open Source | BSD-3-Clause | 2,020 | thor | LogicAndTrick | C# | Code | 368 | 931 | /*
* Created by SharpDevelop.
* User: Dan
* Date: 28/10/2009
* Time: 10:51 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Data;
using System.Data.SQLite;
namespace Thorm.SQLite
{
/// <summary>
/// Description of SQLiteDatabase.
/// </summa... | 27,696 |
https://github.com/JavanPoirier/Auryn/blob/master/src/components/navigationBar.tsx | Github Open Source | Open Source | MIT | null | Auryn | JavanPoirier | TypeScript | Code | 182 | 626 | import React from 'react';
import { ToggleButton } from '.';
import { ToggleButtonProps } from './toggleButton';
import { Composition, ScrollRef } from '@youi/react-native-youi';
import { View, StyleSheet, ScrollViewProps } from 'react-native';
import { AurynHelper } from '../aurynHelper';
interface NavigationBarProps... | 32,443 |
https://github.com/Camiloasc1/ParallelComputingUNAL/blob/master/PI/FinalExam/GaussLegendre/Sequential.c | Github Open Source | Open Source | MIT | null | ParallelComputingUNAL | Camiloasc1 | C | Code | 151 | 419 | #define CHUNK 1 // Run CHUNK iterations and check error
#define LOG 1 // Print progress each LOG iterations
#define LIMIT 1024 // LIMIT of iterations
#include "../common.h"
int main(int argc, char *argv[]) {
unsigned int digits;
unsigned int threads;
double precision;
getParams(argc, argv, &threads, &... | 52,713 |
https://github.com/davide-casiraghi/ci-global-calendar/blob/master/resources/views/eventSearch/index-iframe.blade.php | Github Open Source | Open Source | MIT | 2,023 | ci-global-calendar | davide-casiraghi | Blade | Code | 71 | 371 |
{{--
Iframe to embed in the regional websites:
https://ciglobalcalendar.net/it/post/direct-access-to-countryregional-contents
EG.
<iframe
width="560"
height="315"
src="https://www.ciglobalcalendar.net/eventSearch/country/SI"
frameborder="0">
</iframe>
--}}
@extends('... | 5,326 |
https://github.com/onap/sdc-dcae-d-fe/blob/master/public/src/app/rule-engine/target/target.validation.spec.ts | Github Open Source | Open Source | Apache-2.0 | null | sdc-dcae-d-fe | onap | TypeScript | Code | 387 | 1,082 | import { TreeModel } from 'angular-tree-component';
import { fuzzysearch, getBranchRequierds, validation } from './target.util';
export const _nodes = [
{
id: 1,
name: 'North America',
requiredChildren: ['United States'],
children: [
{
id: 11,
name: 'United States',
requ... | 31,568 |
https://github.com/christopherferreira19/Univ/blob/master/L3_S6/Projet/TaluvaUJF/src/main/java/theme/BuildingStyle.java | Github Open Source | Open Source | MIT | 2,018 | Univ | christopherferreira19 | Java | Code | 14 | 64 | package theme;
public enum BuildingStyle {
NORMAL,
HIGHLIGHTED,
DESTROYED,
EXPAND,
INVALID,
LASTPLACED,
FLOATING
}
| 47,786 |
https://github.com/rmeharg/deployadactyl/blob/master/mocks/actionmanagerfactory.go | Github Open Source | Open Source | MIT | 2,019 | deployadactyl | rmeharg | Go | Code | 182 | 722 | package mocks
import (
"github.com/compozed/deployadactyl/interfaces"
"github.com/compozed/deployadactyl/structs"
)
// PushManager handmade mock for tests.
type PushManagerFactory struct {
PushManagerCall struct {
Called bool
Received struct {
Log interfaces.DeploymentLogger
DeployEventData structs.Dep... | 45,255 |
https://github.com/chec000/carrito/blob/master/utils/2017_12_05_000035_create_ingredient_language_table.php | Github Open Source | Open Source | MIT | 2,018 | carrito | chec000 | PHP | Code | 101 | 513 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIngredientLanguageTable extends Migration
{
/**
* Schema table name to migrate
* @var string
*/
public $set_schema_table = 'ingredient_language';
... | 43,167 |
https://github.com/joranrood/youtube-together/blob/master/client/src/scss/modules/_typography.scss | Github Open Source | Open Source | MIT | null | youtube-together | joranrood | SCSS | Code | 6 | 21 | body {
font-family: 'Barlow', sans-serif;
}
| 11,103 |
https://github.com/VachetVirginie/wordpresstest/blob/master/wp-content/plugins/the-events-calendar/src/functions/template-tags/ical.php | Github Open Source | Open Source | MIT | null | wordpresstest | VachetVirginie | PHP | Code | 209 | 527 | <?php
// @TODO two functions that do the exact same thing
if ( ! function_exists( 'tribe_get_single_ical_link' ) ) {
/**
* iCal Link (Single)
*
* Returns an ical feed for a single event. Must be used in the loop.
*
* @return string URL for ical for single event.
*/
function tribe_get_single_ical_link() {... | 1,164 |
https://github.com/Zhengxiangyue/lyptondoc/blob/master/application/controllers/Welcome.php | Github Open Source | Open Source | MIT | 2,018 | lyptondoc | Zhengxiangyue | PHP | Code | 2,407 | 4,085 | <?php
/**
* Created by PhpStorm.
* User: Cancel
* Date: 9/1/2017
* Time: 9:36 AM
*
*0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
* 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
* 0 0 0 0 0 0 0 0 0 0 0 0... | 25,537 |
https://github.com/yousaiditchewie/bellsaint-v2/blob/master/src/styles/pages/live.scss | Github Open Source | Open Source | MIT | null | bellsaint-v2 | yousaiditchewie | SCSS | Code | 17 | 59 | @import '../base/colors';
@import '../base/breakpoints';
.Live {
padding: 0.5rem 0;
&-shows {
display: flex;
flex-direction: column;
}
}
| 4,032 |
https://github.com/molstar/molstar/blob/master/src/mol-plugin-ui/skin/base/layout/controls-landscape.scss | Github Open Source | Open Source | MIT | 2,023 | molstar | molstar | SCSS | Code | 153 | 666 |
.msp-layout-main {
position: absolute;
left: $expanded-left-width;
right: $expanded-right-width;
bottom: $expanded-bottom-height;
top: $expanded-top-height;
}
.msp-layout-top {
position: absolute;
left: $expanded-left-width;
right: $expanded-right-width;
he... | 4,512 |
https://github.com/Tiphereth-A/problems/blob/master/problems/A/A1024/std.cpp | Github Open Source | Open Source | MIT | 2,022 | problems | Tiphereth-A | C++ | Code | 60 | 207 | #include <iostream>
#include <map>
#include <string>
using namespace std;
typedef pair<string,int> psi;
map<string,int> mp;
psi max(psi a, psi b)
{
if(a.second>b.second) return a;
else if(a.second<b.second) return b;
else return a.first<b.first?a:b;
}
int main()
{
int n;
cin>>n;
for(int i=0;i<n;... | 12,371 |
https://github.com/kylelambert101/decoder/blob/master/src/decoder/results/ResultMessage.tsx | Github Open Source | Open Source | MIT | null | decoder | kylelambert101 | TypeScript | Code | 91 | 269 | import * as React from "react";
import { Text } from "office-ui-fabric-react/lib/Text";
import { isWord } from "../cryptoUtilities";
export interface Props {
message: string;
extraStyle?: React.CSSProperties;
}
const ResultMessage = ({ message, extraStyle }: Props): React.ReactElement => {
return (
<span>
... | 10,894 |
https://github.com/helmuthb/devfestsched/blob/master/android/src/at/devfest/app/ui/tablet/MapMultiPaneActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,012 | devfestsched | helmuthb | Java | Code | 56 | 155 | package at.devfest.app.ui.tablet;
import android.annotation.TargetApi;
import android.os.Build;
/**
* A multi-pane activity, where the full-screen content is a {@link MapFragment}
* and popup content may be visible at any given time, containing either a
* {@link SessionsFragment} (representing sessions for a given... | 28,837 |
https://github.com/abc123lzf/flyingsocks/blob/master/common/src/main/java/com/lzf/flyingsocks/encrypt/EncryptProvider.java | Github Open Source | Open Source | MIT | 2,021 | flyingsocks | abc123lzf | Java | Code | 277 | 643 | /*
* Copyright (c) 2019 abc123lzf <abc123lzf@126.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 26,062 |
https://github.com/UnknownError42/totaljs-mysql-login-example/blob/master/modules/jsonwebtoken.js | Github Open Source | Open Source | MIT | 2,021 | totaljs-mysql-login-example | UnknownError42 | JavaScript | Code | 42 | 125 | // MIT License
// Copyright Peter Širka <petersirka@gmail.com>
exports.version = 'v1.0.0';
var jwt = require('jsonwebtoken');
F.encrypt = function(value, key) {
return jwt.sign(value, key);
};
F.decrypt = function(value, key) {
try {
return jwt.verify(value, key);
} catch (e) {
return null;
}
}; | 483 |
https://github.com/prayagmukhi/prayagmukhi.github.io/blob/master/js/snow-effect-1.js | Github Open Source | Open Source | MIT | 2,016 | prayagmukhi.github.io | prayagmukhi | JavaScript | Code | 29 | 93 | snowStorm.snowColor = '#fff'; // blue-ish snow!?
snowStorm.flakesMaxActive = 500; // show more snow on screen at once
snowStorm.useTwinkleEffect = false;
snowStorm.animationInterval = 20;
snowStorm.flakesMax = 500;
snowStorm.flakesMaxActive = 90; | 34,925 |
https://github.com/BBVA-CIB/ZeroMQ-Framework/blob/master/src/test/java/com/bbva/kyof/vega/unit/msg/LLZRcvRequestTest.java | Github Open Source | Open Source | Apache-2.0 | null | ZeroMQ-Framework | BBVA-CIB | Java | Code | 310 | 985 | package com.bbva.kyof.vega.unit.msg;
import static org.junit.Assert.fail;
/**
* Test the LLZRcvRequest class
*/
public class LLZRcvRequestTest
{
// private static final String CONFIG_FILE = "llzManagerTestConfig.xml";
// private static final String INSTANCE_NAME = "managerTestConfig";
// private static LLZ... | 26,016 |
https://github.com/apache/geode/blob/master/extensions/geode-modules-test/src/main/java/org/apache/geode/modules/session/catalina/AbstractSessionValveIntegrationTest.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown | 2,023 | geode | apache | Java | Code | 332 | 1,041 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | 26,406 |
https://github.com/annaboodle/idea-cat/blob/master/blog/agile/styles/sass/_form.scss | Github Open Source | Open Source | MIT | null | idea-cat | annaboodle | SCSS | Code | 374 | 1,392 | form.hs-form .hs-form-required { // asterick for required fields
color: $error-color;
padding-left: 3px;
}
form.hs-form input,
form.hs-form textarea,
form.hs-form select {
padding: 15px;
background: rgba(255, 255, 255, 0.9);
transition: .2s;
border: 1px solid $light-grey-border;
width: 100%... | 53,666 |
https://github.com/biddyweb/elasticactors/blob/master/core/src/main/java/org/elasticsoftware/elasticactors/serialization/internal/PersistentActorDeserializer.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | elasticactors | biddyweb | Java | Code | 215 | 727 | /*
* Copyright 2013 - 2014 The Original 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... | 21,356 |
https://github.com/gann-cdf/2019-2020_FTC_SkyStone_Team-5486/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/AutoBlue.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | 2019-2020_FTC_SkyStone_Team-5486 | gann-cdf | Java | Code | 262 | 1,365 |
package org.firstinspires.ftc.teamcode;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.TouchSensor;
import com.q... | 29,463 |
https://github.com/Jono120/PlayMe/blob/master/SpotiFire.SpotifyLib/PlaylistList.cs | Github Open Source | Open Source | MIT | 2,022 | PlayMe | Jono120 | C# | Code | 50 | 185 |
using System;
namespace SpotiFire.SpotifyLib
{
class PlaylistList : DelegateList<IContainerPlaylist>, IPlaylistList
{
private Func<string, IContainerPlaylist> addNewFunc;
public PlaylistList(Func<int> getLength, Func<int, IContainerPlaylist> getIndex, Action<IContainerPlaylist, int> addFunc, A... | 29,906 |
https://github.com/vieiradiego/LDAPNetCore/blob/master/LDAPNetCore/AgentNetCore/Business/OrganizationalUnitBusiness.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | LDAPNetCore | vieiradiego | C# | Code | 19 | 61 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AgentNetCore.Business
{
public class OrganizationalUnitBusiness : IOrganizationalUnitBusiness
{
}
}
| 37,824 |
https://github.com/AxisStudios/db-record/blob/master/test/test4.php | Github Open Source | Open Source | MIT | 2,016 | db-record | AxisStudios | PHP | Code | 282 | 736 | <?php
/**
* This PHP script illustrates the 'column path' concept. A 'column path' is a way to access columns
* from 'linked' or 'left joined' tables.
*
* In this example table2 is linked to table1 which is linked to table0.
*
* For a triple somersault see test5.php.
*
* How to test this script:
* 1. Create... | 2,710 |
https://github.com/mderasse/gogstash/blob/master/config/ctxutil/broadcaster.go | Github Open Source | Open Source | MIT | null | gogstash | mderasse | Go | Code | 148 | 470 | package ctxutil
import (
"context"
"github.com/subchen/go-trylock/v2"
)
type Broadcaster struct {
mutex trylock.TryLocker
channel chan struct{}
}
func NewBroadcaster() *Broadcaster {
return &Broadcaster{
mutex: trylock.New(),
channel: make(chan struct{}),
}
}
func (t *Broadcaster) Wait(ctx context.Co... | 51,188 |
https://github.com/gsoft-inc/dynamite-components/blob/master/Source/GSoft.Dynamite.Publishing.Contracts/Constants/PublishingCatalogInfos.cs | Github Open Source | Open Source | MIT | 2,016 | dynamite-components | gsoft-inc | C# | Code | 193 | 636 | using System.Collections.Generic;
using GSoft.Dynamite.Catalogs;
using GSoft.Dynamite.Lists;
using GSoft.Dynamite.Lists.Constants;
using GSoft.Dynamite.Search;
using Microsoft.SharePoint;
namespace GSoft.Dynamite.Publishing.Contracts.Constants
{
/// <summary>
/// Catalog definitions for the publishing module
... | 43,750 |
https://github.com/nainaiyun/nainai-shop/blob/master/nainaiwang/shop/src/main/java/com/nainai/controller/ShopModuleController.java | Github Open Source | Open Source | Apache-2.0 | null | nainai-shop | nainaiyun | Java | Code | 515 | 2,252 | package com.nainai.controller;
import com.alibaba.fastjson.JSONObject;
import com.nainai.common.Result;
import com.nainai.common.ResultGenerator;
import com.nainai.domain.ShopModule;
import com.nainai.service.ShopModuleService;
import com.nainai.util.TimeUtil;
import com.nainai.util.UUIDGenerator;
import io.swagger.an... | 30,027 |
https://github.com/Slaier/devos/blob/master/users/modules/programs/zinit.nix | Github Open Source | Open Source | MIT | 2,022 | devos | Slaier | null | Spoken | 228 | 718 | { config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.zsh.zinit;
pluginModule = types.submodule (
{ config, ... }: {
options = {
name = mkOption {
type = types.str;
example = "romkatv/powerlevel10k";
description = "The name of the plugin.";
};
... | 5,979 |
https://github.com/jl632541832/OSS.Tools/blob/master/OSS.Tools.DataStack/DefaultDataStack.cs | Github Open Source | Open Source | Apache-2.0 | null | OSS.Tools | jl632541832 | C# | Code | 49 | 204 | using System.Threading.Tasks;
namespace OSS.Tools.DataStack
{
public class DefaultDataStack<TData> : IStackPusher<TData>
{
private IStackPoper<TData> _poper;
public DefaultDataStack(IStackPoper<TData> poper)
{
_poper = poper;
}
/// <summary>
/// 推进... | 31,653 |
https://github.com/athornz/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaPlayFrameworkServerCodegen.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | openapi-generator | athornz | Java | Code | 1,169 | 4,673 | /*
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
*
* 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
... | 2,014 |
https://github.com/chrisgrim/immersive2.0/blob/master/app/Http/Controllers/FavoritesController.php | Github Open Source | Open Source | MIT | 2,021 | immersive2.0 | chrisgrim | PHP | Code | 60 | 228 | <?php
namespace App\Http\Controllers;
use App\Models\Event;
use App\Models\User;
use App\Models\Favorite;
use Illuminate\Http\Request;
class FavoritesController extends Controller
{
public function __construct()
{
$this->middleware(['auth', 'verified']);
}
public function index(User $user)
{
... | 16,581 |
https://github.com/PhongNgo/OptimalVerifiedFT/blob/master/benchmarks/pmd/scratch/pmd/net/sourceforge/pmd/jaxen/NodeIterator.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | OptimalVerifiedFT | PhongNgo | Java | Code | 234 | 690 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.jaxen;
import net.sourceforge.pmd.ast.Node;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* @author daniels
*/
public abstract class NodeIterator implements Iterator<Node> {... | 13,000 |
https://github.com/xmar/pythran/blob/master/third_party/boost/simd/range/detail/nontemporal_iterator.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,019 | pythran | xmar | C++ | Code | 159 | 635 | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... | 10,332 |
https://github.com/mphan6/30-seconds-of-code/blob/master/test/shank/shank.js | Github Open Source | Open Source | CC0-1.0 | 2,021 | 30-seconds-of-code | mphan6 | JavaScript | Code | 22 | 63 | const shank = (arr, index = 0, delCount = 0, ...elements) =>
arr
.slice(0, index)
.concat(elements)
.concat(arr.slice(index + delCount));
module.exports = shank;
| 19,479 |
https://github.com/james-muriithi/qs-admin/blob/master/app/Models/BusinessLocation.php | Github Open Source | Open Source | MIT | null | qs-admin | james-muriithi | PHP | Code | 71 | 318 | <?php
namespace App\Models;
use \DateTimeInterface;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;
use Spatie\MediaLibrary\MediaCollections\Models... | 45,341 |
https://github.com/MohammadMAlam/da14531-cmake-template/blob/master/src/user_app.c | Github Open Source | Open Source | MIT | 2,021 | da14531-cmake-template | MohammadMAlam | C | Code | 129 | 541 | #include <da1458x_config_basic.h>
#include <da1458x_config_advanced.h>
#include <user_config.h>
#include <rwip_config.h> // SW configuration
#include <user_app.h>
#include <custs1.h>
#include <custs1_task.h>
#include <gpio.h>
#include <user_custs1_def.h>
#include <user_periph_setup.h>
#include <ble_handlers.h>
#includ... | 7,985 |
https://github.com/shuhai-etsu/WASP/blob/master/resources/views/pages/admin/user/profile/education.blade.php | Github Open Source | Open Source | MIT | null | WASP | shuhai-etsu | PHP | Code | 101 | 669 | @extends('template.layout_sidebar')
@section('title')
@if($data)
{{$data->first_name . ' ' . $data->last_name}}
@endif
<a data-toggle="modal" data-target="#helpModal"><span class="glyphicon glyphicon-question-sign"></span></a>
@endsection
@section('page')
@if (count($errors) > 0)
<div c... | 42,426 |
https://github.com/ProjectileRage/PartyPlay/blob/master/src/main/java/com/projectilerage/runelite/partyplay/PartyPlayPlugin.java | Github Open Source | Open Source | BSD-2-Clause | null | PartyPlay | ProjectileRage | Java | Code | 910 | 3,859 | package com.projectilerage.runelite.partyplay;
import com.google.common.base.Strings;
import com.google.inject.Provides;
import com.projectilerage.runelite.partyplay.ui.components.DynamicInfoBoxComponent;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import net.runelite.api.*;
impo... | 49,432 |
https://github.com/gis-xh/L7/blob/master/packages/utils/src/tileset-manager/utils/lonlat-tile.ts | Github Open Source | Open Source | MIT | 2,023 | L7 | gis-xh | TypeScript | Code | 457 | 1,430 | import { DEFAULT_EXTENT } from '../const';
import { TileBounds } from '../types';
// // https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#ECMAScript_.28JavaScript.2FActionScript.2C_etc..29
export function osmLonLat2TileXY(lon: number, lat: number, zoom: number) {
const x = Math.floor(((lon + 180) / 360) * Mat... | 28,543 |
https://github.com/drewbrokke/liferay-web-services-cli/blob/master/lib/methods/add-group.js | Github Open Source | Open Source | MIT | 2,022 | liferay-web-services-cli | drewbrokke | JavaScript | Code | 48 | 170 | var Method = require('../Method');
module.exports = function(name) {
var group = {
parentGroupId: 0,
liveGroupId: 0,
nameMap: JSON.stringify({"en_US": name}),
descriptionMap: JSON.stringify({"en_US": "Generated by LWS"}),
type: 1,
manualMembership: true,
membershipRestriction: 0,
friendlyURL: '',
s... | 47,708 |
https://github.com/Wa-dot/adidash/blob/master/app/Http/Controllers/Student/ProjectController.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | adidash | Wa-dot | PHP | Code | 75 | 244 | <?php
namespace App\Http\Controllers\Student;
use App\Models\Project;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class ProjectController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
... | 29,168 |
https://github.com/OpenST/saas-api/blob/master/lib/stateRootSync/UpdateStateRootCommits.js | Github Open Source | Open Source | MIT | 2,021 | saas-api | OpenST | JavaScript | Code | 543 | 1,588 | /**
* Module to update state root commit.
*
* @module lib/stateRootSync/UpdateStateRootCommits
*/
const rootPrefix = '../..',
StateRootSyncBase = require(rootPrefix + '/lib/stateRootSync/Base'),
CheckTxStatus = require(rootPrefix + '/lib/transactions/CheckTxStatus'),
StateRootCommitModel = require(rootPrefix... | 13,346 |
https://github.com/EnigmaCrew/GolfCard/blob/master/src/fr/enigmacrew/golfcard/game/GameAction.java | Github Open Source | Open Source | MIT | 2,021 | GolfCard | EnigmaCrew | Java | Code | 43 | 114 | package fr.enigmacrew.golfcard.game;
public class GameAction {
public enum Kind {
TURN,
DRAW,
TRASH
}
public Kind kind;
public int targetCard;
public GameAction(Kind kind, int targetCard) {
/*
* Set targetCard to -1 for trash
*/
this.kind ... | 53,517 |
https://github.com/havvg/AutoExpireBehavior/blob/master/src/templates/objectExpireHooks.php | Github Open Source | Open Source | MIT | 2,013 | AutoExpireBehavior | havvg | PHP | Code | 47 | 78 | /**
* This hook is called in case the object is about to expire.
*
* @return bool
*/
protected function preExpire()
{
return true;
}
/**
* This hook is called after the object has expired.
*
* @return void
*/
protected function postExpire()
{
}
| 33,136 |
https://github.com/bifenglin/entry/blob/master/server/handler/ping.go | Github Open Source | Open Source | MIT | 2,019 | entry | bifenglin | Go | Code | 20 | 94 | package handler
import (
"github.com/go-openapi/runtime/middleware"
"github.com/laincloud/entry/server/gen/restapi/operations/ping"
)
// Ping return health status
func Ping(params ping.PingParams) middleware.Responder {
return ping.NewPingOK().WithPayload("OK")
}
| 12,854 |
https://github.com/salihzeki12000/ab_laraverl/blob/master/public/js__/mr.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,017 | ab_laraverl | salihzeki12000 | JavaScript | Code | 73 | 368 | $(function() {
function updateTotal(Mroom) {
$('.total').html('');
var total = 0;
$('#hor-minimalist-b tr:visible:has(:checked)').each(function() {
if ($(this).hasClass('service') && $(this).attr('rate')) {
total += parseInt($(this).attr('rate')) * parseInt($(thi... | 26,133 |
https://github.com/PipelineAI/pipeline/blob/master/eks/demo/.cache/kubeflow/kubeflow-9804feb9fc23fc30075632a857087f4b529294e2/scripts/gke/teardown.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | pipeline | PipelineAI | Shell | Code | 157 | 514 | #!/usr/bin/env bash
set -xe
# TODO(jlewi): delete deploy.sh after updating the E2E test to use
# kfctl.sh
echo "WARNING teardown.sh is deprecated; use kfctl.sh"
DEPLOYMENT_NAME=${DEPLOYMENT_NAME:-"kubeflow"}
CONFIG_FILE=${CONFIG_FILE:-"cluster-kubeflow.yaml"}
PROJECT=${PROJECT:-$(gcloud config get-value project 2>/d... | 38,404 |
https://github.com/ScalablyTyped/Distribution/blob/master/r/rtsao__csstype/src/main/scala/typings/rtsaoCsstype/mod/BoxAlignProperty.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 110 | 888 | package typings.rtsaoCsstype.mod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/* Rewritten from type alias, can be one of:
- typings.rtsaoCsstype.rtsaoCsstypeStrings.baseline
- typings.rtsaoCsstyp... | 32,817 |
https://github.com/fakeNetflix/falcor/blob/master/test/lru/lru.splice.expired.spec.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | falcor | fakeNetflix | JavaScript | Code | 98 | 361 | var falcor = require("./../../lib/");
var Model = falcor.Model;
var Rx = require("rx");
var noOp = function() {};
var __head = require("./../../lib/internal/head");
var __tail = require("./../../lib/internal/tail");
var __next = require("./../../lib/internal/next");
var __prev = require("./../../lib/internal/prev");
... | 43,905 |
https://github.com/npolar/npdc-expedition-track/blob/master/node_modules/npdc-gulp/tasks/devCommon.js | Github Open Source | Open Source | MIT | 2,018 | npdc-expedition-track | npolar | JavaScript | Code | 103 | 427 | var task = function(gulp, config) {
'use strict';
var _ = require('lodash');
var runSequence = require('run-sequence').use(gulp);
var changed = require('gulp-changed');
var taskPrefix = 'common-'; // To not overwrite tasks.
var getConfig = function () {
var baseConfig = JSON.parse(JSON.stringify(confi... | 24,890 |
https://github.com/rx-angular/rx-angular/blob/master/apps/demos/src/app/features/template/rx-let/let-template-binding/let-template-binding.routes.ts | Github Open Source | Open Source | MIT | 2,023 | rx-angular | rx-angular | TypeScript | Code | 18 | 49 | import { LetTemplateBindingComponent } from './let-template-binding.component';
export const ROUTES = [
{
path: '',
component: LetTemplateBindingComponent
}
];
| 27,657 |
https://github.com/ahungrynacho/enkit/blob/master/manager/server/main.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | enkit | ahungrynacho | Go | Code | 58 | 216 | package main
import (
"fmt"
common "github.com/enfabrica/enkit/manager/common"
rpc "github.com/enfabrica/enkit/manager/rpc"
"google.golang.org/grpc"
"log"
"net"
"os"
)
func main() {
port := fmt.Sprintf(":%s", os.Args[1])
listen, err := net.Listen("tcp", port)
if err != nil {
log.Fatalf("Failed to listen: ... | 44,291 |
https://github.com/joshix/identilion/blob/master/NatsuLion/models/network/NTLNHttpClient.h | Github Open Source | Open Source | BSD-3-Clause | 2,021 | identilion | joshix | C | Code | 56 | 270 | #import <UIKit/UIKit.h>
#define TIMEOUT_SEC 20.0
@interface NTLNHttpClient : NSObject {
NSURLConnection *connection;
NSMutableData *recievedData;
int statusCode;
BOOL contentTypeIsXml;
int rate_limit;
int rate_limit_remaining;
NSDate *rate_limit_reset;
}
- (void)requestGET:(NSString*)url;
- (void)re... | 40,336 |
https://github.com/djknit/timeclock/blob/master/client/src/components/MainApp/JobPage/DeleteJobModal/index.js | Github Open Source | Open Source | MIT | null | timeclock | djknit | JavaScript | Code | 226 | 690 | import React, { Component } from 'react';
import { api, bindFormMethods } from '../../utilities';
import FormModal from '../../../FormModal';
import { jobsService, currentJobService } from '../../../../data';
import { TextInput } from '../../../formPieces';
const formId = 'delete-job-modal';
class DeleteJobModal exte... | 15,049 |
https://github.com/DarkMessiah27/2.PzD-Mission-Template/blob/master/missions/2PzD_Template.VR/customization/loadouts/German/loadoutWHR39.sqf | Github Open Source | Open Source | MIT | 2,021 | 2.PzD-Mission-Template | DarkMessiah27 | SQF | Code | 1,110 | 6,522 | // Info: German Wehrmacht 1939 Loadouts
// - For multi line definitions use \
// - All loadouts listed are customised to correct equipment, so have fun with them
// - ALWAYS ADD SHORT-RANGE RADIO FIRST
// - On any random equipment definition remember to use Olsen_FW_FNC_AddItemRandom
/*Loadouts
//Zugtrupp
[this, ... | 17,609 |
https://github.com/SawakoYuno/Projeto_Plataformas/blob/master/backend/tests/acceptance/TipoEquipaCest.php | Github Open Source | Open Source | BSD-3-Clause | null | Projeto_Plataformas | SawakoYuno | PHP | Code | 75 | 452 | <?php
namespace backend\tests\acceptance;
use backend\tests\AcceptanceTester;
use yii\helpers\Url;
use common\fixtures\UserFixture as UserFixture;
class HomCest
{
public function _before(AcceptanceTester $I)
{
$I->haveFixtures([
'user' => [
'class' => UserFixture::classNam... | 30,506 |
https://github.com/ZhangHCFJEA/bbp/blob/master/bbp/src/irikura/srf2grns/resample_2.1.f90 | Github Open Source | Open Source | BSD-3-Clause | 2,022 | bbp | ZhangHCFJEA | null | Spoken | 80 | 502 | subroutine resample
use params
implicit none
integer::nskipx,nskipy,nst2,ndip2,i,ii,l,m
integer,dimension(np)::iloc
nskipx=dxx/dx ; nskipy=dyy/dy
! nst2=int(len*1000./dxx) ; ndip2=int(wid*1000./dyy)
! 2018.7.30
! nst2=int((nstk-1)/(dxx/dx))+1
! ndip2=int((ndip-1)/(dyy/dy))+1
! 2018.8.6
nst2=int((nstk-1... | 26,179 |
https://github.com/pinterhuang/holdem/blob/master/src/clj/poker/system/config.clj | Github Open Source | Open Source | Unlicense, LicenseRef-scancode-public-domain | 2,021 | holdem | pinterhuang | null | Spoken | 17 | 71 | (ns poker.system.config
(:require [cprop.core :as cprop]
[mount.core :as mount]))
(mount/defstate config
:start
(cprop/load-config :resource "config.edn")
:stop
nil)
| 32,417 |
https://github.com/cdbethune/d3m-primitives/blob/master/generate_annotations.py | Github Open Source | Open Source | MIT | null | d3m-primitives | cdbethune | Python | Code | 103 | 423 | """
Utility to generate primitives .json annotations
"""
import os
import json
import importlib
import glob
ignore = [
'PrimitiveBase',
'PrimitiveNotFittedError',
'UnsupervisedLearnerPrimitiveBase',
'SupervisedLearnerPrimitiveBase',
'TransformerPrimitiveBase',
'PrimitiveStep'
]
# List al... | 5,400 |
https://github.com/zxybkx/crm-frontend/blob/master/src/pages/account/models/api.js | Github Open Source | Open Source | MIT | 2,020 | crm-frontend | zxybkx | JavaScript | Code | 36 | 95 | import * as service from '../services/api';
export default {
namespace: 'api',
state: {
list: [],
currentUser: {},
},
effects: {
*changePassword({payload}, { call, put }) {
return yield call(service.changePassword, payload);
},
},
reducers: {
},
};
| 43,818 |
https://github.com/joaquimsn/dstransfer/blob/master/contract.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | dstransfer | joaquimsn | Go | Code | 247 | 574 | package dstransfer
import (
"fmt"
"github.com/viant/dsc"
)
const (
TransferModeInsert = "insert"
)
//Source source
type Source struct {
*dsc.Config
Query string
}
//Dest transfer destination
type Dest struct {
*dsc.Config
Table string
}
//TransferRequest represents transfer request
type TransferRequest stru... | 49,386 |
https://github.com/functard/Graphics-Framework/blob/master/Graphics/Graphics/Dice.cpp | Github Open Source | Open Source | MIT | 2,021 | Graphics-Framework | functard | C++ | Code | 372 | 1,802 | #include "PCH.h"
#include "Dice.h"
Dice::Dice(std::wstring _path, EResourceType _type, XMFLOAT3 _pos)
: CTexturedEntity(_path, _type, _pos)
{
/*
2 -- 3 3 -- 2
| | | |
0 -- 1 1 -- 0
*/
XMFLOAT4 color = XMFLOAT4(1, 0, 1, 0);
// vorne
m_vertices.push_back({ XMFLOAT3(-0.5f, -0.5f, -0.5f), color, ... | 19,878 |
https://github.com/fujisanmagazine/docker-ec-cube3/blob/master/Dockerfile | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | docker-ec-cube3 | fujisanmagazine | Dockerfile | Code | 192 | 809 | FROM php:7.3-apache
MAINTAINER Antonio Kamiya (kamiya@fujisan.co.jp)
ENV ECCUBE_PATH="/var/www/ec-cube"
ARG ECCUBE_DBTYPE="sqlite3"
# envs used inside ec-cube/eccube_install.sh
ENV ADMIN_MAIL="admin@example.com"
ENV SHOP_NAME="EC-CUBE SHOP"
ENV ROOT_URLPATH="/ec-cube/html"
ENV ADMIN_ROUTE="admin"
ENV USER_DATA_ROUTE... | 26,184 |
https://github.com/kn-cybair/lama/blob/master/lesson_04/npn2/npn2.ino | Github Open Source | Open Source | MIT | null | lama | kn-cybair | null | Spoken | 36 | 104 |
#define PWM_pin 3
int gain=5;
int modulation=0;
void setup() {
pinMode(PWM_pin, OUTPUT);
}
void loop() {
analogWrite(PWM_pin, modulation);
if (modulation < 255)
{
modulation = modulation + gain;
}
else{
modulation = 0;
}
delay(100);
}
| 2,196 |
https://github.com/kolserdav/pocketnet.gui/blob/master/components/toppanel/index.less | Github Open Source | Open Source | Apache-2.0 | 2,022 | pocketnet.gui | kolserdav | Less | Code | 543 | 2,510 | @import "../../css/__cssvar";
#toppanel{
width: 100%;
height: 45px;
background: #F1F1F1;
white-space: nowrap;
.rightchatspacer{
height: 100%;
}
.work{
width: 95%;
height: 100%;
max-width: 1280px;
margin: 0 auto;
padding: 0 1em;
padding-right: 0;
}
.panelitems{
height: 100%;
... | 21,909 |
https://github.com/FortnoxAB/reactive-wizard/blob/master/client/src/main/java/se/fortnox/reactivewizard/client/RwHttpClientResponse.java | Github Open Source | Open Source | MIT | 2,023 | reactive-wizard | FortnoxAB | Java | Code | 42 | 192 | package se.fortnox.reactivewizard.client;
import reactor.netty.ByteBufFlux;
public class RwHttpClientResponse {
private reactor.netty.http.client.HttpClientResponse httpClientResponse;
private ByteBufFlux byteBufFlux;
public RwHttpClientResponse(reactor.netty.http.client.... | 54,667 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.