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/santhoshtn/Knowledge-Hub/blob/master/angular-frontend/src/app/conceptArray.ts | Github Open Source | Open Source | Apache-2.0 | null | Knowledge-Hub | santhoshtn | TypeScript | Code | 6 | 19 | export class Testconcept {
arr:Array<string>=[];
}
| 20,281 |
https://github.com/anilprasad/credit-process/blob/master/test/helper/stateHelper.test.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | credit-process | anilprasad | TypeScript | Code | 133 | 372 | import * as stateHelper from '../../src/helper/stateHelper';
import calculationsStateTransformer from '../../src/module/calculations/calculationsStateTransformer';
import { CommonModule } from '../../src/interface/Module';
import { CreditProcessState } from '../../src/interface/CreditProcessState';
import { ModuleType ... | 34,363 |
https://github.com/NYPL-Simplified/circulation-web/blob/master/src/components/BookDetailsContainer.tsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | circulation-web | NYPL-Simplified | TSX | Code | 151 | 495 | import * as React from "react";
import { Store } from "redux";
import * as PropTypes from "prop-types";
import BookDetailsTabContainer from "./BookDetailsTabContainer";
import BookDetails from "./BookDetails";
import { BookDetailsContainerProps } from "opds-web-client/lib/components/Root";
import { State } from "../re... | 52,344 |
https://github.com/exean/VirtualKeyboard.Wpf/blob/master/VirtualKeyboard.Wpf/Converters/KeyboardTypeConverter.cs | Github Open Source | Open Source | MIT | null | VirtualKeyboard.Wpf | exean | C# | Code | 77 | 245 | using System;
using System.Globalization;
using System.Windows.Data;
using VirtualKeyboard.Wpf.Types;
using VirtualKeyboard.Wpf.Views;
namespace VirtualKeyboard.Wpf.Converters
{
class KeyboardTypeConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, Cultu... | 46,683 |
https://github.com/ExtraCells/ExtraCells2/blob/master/src/main/scala/extracells/util/recipe/ConditionModIntegration.java | Github Open Source | Open Source | MIT | 2,022 | ExtraCells2 | ExtraCells | Java | Code | 44 | 182 | package extracells.util.recipe;
import com.google.gson.JsonObject;
import extracells.integration.Integration;
import net.minecraft.util.JsonUtils;
import net.minecraftforge.common.crafting.IConditionFactory;
import net.minecraftforge.common.crafting.JsonContext;
import java.util.function.BooleanSupplier;
public cla... | 48,653 |
https://github.com/VrainSystem/Proyecto_PROFIT/blob/master/protected/modules/InventarioRiesgo/controllers/RiesgoController.php | Github Open Source | Open Source | Apache-2.0 | null | Proyecto_PROFIT | VrainSystem | PHP | Code | 1,863 | 7,780 | <?php
Yii::import('application.modules.Configuracion.models.*');
Yii::import('application.modules.ProcesosEstrategias.models.*');
class RiesgoController extends Controller {
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'prot... | 19,808 |
https://github.com/oczkers/portage-overlay/blob/master/dev-ml/ocaml-mm/files/ocaml-mm-0.3.0-makefile.patch | Github Open Source | Open Source | MIT | 2,021 | portage-overlay | oczkers | null | Spoken | 41 | 165 | --- a/src/Makefile.in 2017-07-29 23:39:05.000000000 +0300
+++ b/src/Makefile.in 2017-07-29 23:39:20.000000000 +0300
@@ -6,7 +6,7 @@
OCAMLFLAGS = @OCAMLFLAGS@
OCAMLNCFLAGS = @OCAMLNCFLAGS@
OCAMLLDFLAGS = -linkall
-CFLAGS = @CFLAGS@ -g -Wall -O3
+CFLAGS = @CFLAGS@
INCDIRS = @INCDIRS@
NO_CUSTOM = yes
ANNOTATE = yes
| 38,354 |
https://github.com/eldoy/asset/blob/master/app/shared/shared.js | Github Open Source | Open Source | MIT | 2,017 | asset | eldoy | JavaScript | Code | 5 | 22 | (function(){
if(!window.nice){window.nice = {};}
}());
| 7,327 |
https://github.com/angiglesias/benthos/blob/master/website/src/theme/ComponentCard/index.js | Github Open Source | Open Source | MIT | 2,022 | benthos | angiglesias | JavaScript | Code | 34 | 119 | import React from 'react';
import Link from '@docusaurus/Link';
import styles from './styles.module.css';
function ComponentCard(props) {
const {
type,
component,
} = props;
return (
<Link to={`/docs/components/${type}/${component.name}`} className={styles.componentCard}>
<strong>{component.n... | 15,922 |
https://github.com/rm-yakovenko/academico/blob/master/resources/views/teacher/dashboard.blade.php | Github Open Source | Open Source | MIT | null | academico | rm-yakovenko | PHP | Code | 251 | 1,105 | @extends('backpack::blank')
@section('content')
<div class="row h-100 justify-content-center align-items-center">
<div class="col-md-8">
<h2 class="text-center">Bonjour {{ $teacher->firstName }}</h2>
</div>
<div class="col-md-4">
<div class="card">
... | 29,416 |
https://github.com/VladimirBrejcha/Rise/blob/master/Rise/Presentation/Pages/Settings/Views/SettingItemView.swift | Github Open Source | Open Source | MIT | 2,023 | Rise | VladimirBrejcha | Swift | Code | 319 | 1,049 | //
// SettingItemView.swift
// Rise
//
// Created by Vladimir Korolev on 12.09.2021.
// Copyright © 2021 VladimirBrejcha. All rights reserved.
//
import UIKit
extension Settings.View {
final class ItemView: UIView, PropertyAnimatable {
struct Model {
let setting: Settings.Setting
let image: UI... | 2,312 |
https://github.com/vtcaregorodtcev/pawls-1/blob/master/ui/src/api/index.ts | Github Open Source | Open Source | Apache-2.0 | null | pawls-1 | vtcaregorodtcev | TypeScript | Code | 234 | 772 | import axios from 'axios';
import { Annotation, RelationGroup, PdfAnnotations } from '../context';
export interface Token {
x: number;
y: number;
height: number;
width: number;
text: string;
}
interface Page {
index: number;
width: number;
height: number;
}
export interface PageTokens... | 37,269 |
https://github.com/grantkoji/programming-univbasics-nds-nested-arrays-iteration-lab-part-3-nyc01-seng-ft-051120/blob/master/lib/iteration_with_loops.rb | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,020 | programming-univbasics-nds-nested-arrays-iteration-lab-part-3-nyc01-seng-ft-051120 | grantkoji | Ruby | Code | 71 | 172 | def join_nested_strings(src)
# src will be an Array of Arrays of Strings and Integers
# Combine all Strings present in the AoA into a single value and return it
r_i = 0
returnstring = ""
while r_i < src.count do
e_i = 0
while e_i < src[r_i].count do
if src[r_i][e_i] == src[r_i][e_i].to_s
... | 1,744 |
https://github.com/DragonStuff/actor-platform/blob/master/actor-apps/core-async-cocoa/src/im/actor/model/modules/utils/ModuleActor.h | Github Open Source | Open Source | MIT | null | actor-platform | DragonStuff | C | Code | 159 | 1,062 | //
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: /Users/ex3ndr/Develop/actor-platform/actor-apps/core/src/main/java/im/actor/model/modules/utils/ModuleActor.java
//
#ifndef _ImActorModelModulesUtilsModuleActor_H_
#define _ImActorModelModulesUtilsModuleActor_H_
#include "J2ObjC_header.h"
#include "... | 11,489 |
https://github.com/Oneuri/tibiaapi/blob/master/tibiaapi/Objects/Creature.cs | Github Open Source | Open Source | MIT | 2,020 | tibiaapi | Oneuri | C# | Code | 1,154 | 3,880 | using System;
using System.Linq;
namespace Tibia.Objects
{
/// <summary>
/// Creature object.
/// </summary>
public class Creature
{
protected Client client;
protected uint address;
/// <summary>
/// Create a new creature object with the given client and address.
... | 51,736 |
https://github.com/matuszewskijan/friendly_routes/blob/master/lib/friendly_routes/params/boolean_params.rb | Github Open Source | Open Source | MIT | null | friendly_routes | matuszewskijan | Ruby | Code | 147 | 392 | # frozen_string_literal: true
module FriendlyRoutes
module Params
# @attr [String] true value for matching true
# @attr [String] false value for matching false
class BooleanParams < Base
attr_accessor :true, :false
def initialize(name, options, optional: true)
check_params(options)
... | 5,763 |
https://github.com/dzimmerer/cntm2018/blob/master/cntm_backend/cntm/helpers/passwd.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | cntm2018 | dzimmerer | Python | Code | 25 | 127 |
from passlib.hash import pbkdf2_sha256, md5_crypt
def hash_password(passwd):
hash = pbkdf2_sha256.encrypt(passwd, rounds=20, salt_size=16)
return hash
def verify_passwd(passwd, hash):
return pbkdf2_sha256.verify(passwd, hash)
def md5_hash(inpt):
return md5_crypt.encrypt(inpt, salt_size=0)
| 7,394 |
https://github.com/Perococco/pz-plugin/blob/master/src/main/java/perobobbot/pzplugin/rewards/DefaultRewardInfo.java | Github Open Source | Open Source | MIT | null | pz-plugin | Perococco | Java | Code | 79 | 329 | package perobobbot.pzplugin.rewards;
import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import perobobbot.twitch.client.api.channelpoints.CreateCustomRewardParameter;
@RequiredArgsConstructor
public class DefaultRewardInfo {
private final @NonNull RewardKind rewardKind;
@Gett... | 49,486 |
https://github.com/pharo-project/pharo-beacon/blob/master/repository/Beacon-Core.package/SignalLogger.class/instance/startFor..st | Github Open Source | Open Source | MIT | 2,021 | pharo-beacon | pharo-project | null | Spoken | 32 | 105 | registering
startFor: anAnnouncementOrASetOfAnnouncements
"Make sure that when anAnnouncementOrASetOfAnnouncements is signaled, I receive them as argument of nextPut:."
self isRunning ifTrue: [ self stop ].
self beacon
when: anAnnouncementOrASetOfAnnouncements
send: #nextPut:
to: self | 36,861 |
https://github.com/freemarker/freemarker3/blob/master/src/freemarker/ext/beans/StaticModel.java | Github Open Source | Open Source | BSD-2-Clause | 2,021 | freemarker3 | freemarker | Java | Code | 784 | 1,925 | /*
* Copyright (c) 2020, Jonathan Revusky revusky@freemarker.es
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of con... | 5,754 |
https://github.com/selvinsource/spring-security/blob/master/samples/xml/servletapi/src/main/webapp/WEB-INF/views/index.jsp | Github Open Source | Open Source | Apache-2.0 | 2,019 | spring-security | selvinsource | null | Spoken | 118 | 541 | <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>Home Page</h1>
<p>
Anyone can view this page.
</p>
<sec:authorize access="authenticated" var="authenticated"/... | 42,731 |
https://github.com/3oatkung/yakdaii/blob/master/resources/views/emails.blade.php | Github Open Source | Open Source | MIT | null | yakdaii | 3oatkung | PHP | Code | 14 | 82 | <table>
<tr>
<th>No<th>
<th>email</th>
</tr>
@foreach($emails as $email)
<tr>
<td>{{$email->id}}</td>
<td>{{$email->email}}</td>
</tr>
@endforeach
</table> | 2,019 |
https://github.com/web3000123x/EtherScore/blob/master/contracts/node_modules/relay-compiler/lib/transforms/ClientExtensionsTransform.js | Github Open Source | Open Source | MIT | 2,021 | EtherScore | web3000123x | JavaScript | Code | 643 | 1,931 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
var _interopRequireDefault = require("@babel/runtime/helpe... | 28,983 |
https://github.com/renmarin/News-Board-API/blob/master/news_board/serializers.py | Github Open Source | Open Source | MIT | null | News-Board-API | renmarin | Python | Code | 29 | 81 | from rest_framework import serializers
from .models import News, Comments
class NewsSerializer(serializers.ModelSerializer):
class Meta:
model = News
fields = "__all__"
class CommentsSerializer(serializers.ModelSerializer):
class Meta:
model = Comments
fields = "__all__"
| 39,206 |
https://github.com/matyioe92/SlinkyTyped/blob/master/p/playable/src/main/scala/typingsSlinky/playable/screenMod.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | matyioe92 | Scala | Code | 288 | 1,118 | package typingsSlinky.playable
import org.scalablytyped.runtime.Instantiable1
import typingsSlinky.playable.anon.InteractionIndicator
import typingsSlinky.playable.screenTypesMod.IScreen
import typingsSlinky.playable.screenTypesMod.IScreenViewConfig
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
imp... | 38,758 |
https://github.com/huangkai4966/GABS-AddressBookSystem/blob/master/src/controller/piLiang_controller.php | Github Open Source | Open Source | MIT | null | GABS-AddressBookSystem | huangkai4966 | PHP | Code | 721 | 3,661 | <?php
require_once dirname(__FILE__).'/../common/path.php';
require_once $rootpath.'/src/common/db.php';
require_once $rootpath.'/src/common/function.php';
session_start(); //开启session
$action = $_POST['action'];
switch ($action) {
//初始化查询列表
case 'init':
//连接数据库
$responce = new stdClass();
$responce->code = 0;... | 11,538 |
https://github.com/omega-graphics/omega-wtk-project/blob/master/tests/RootWidget/Main.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | omega-wtk-project | omega-graphics | C++ | Code | 64 | 297 | #include <OmegaWTK.h>
using namespace OmegaWTK;
static OmegaWTK::Core::SharedPtr<Composition::Brush> brush;
static SharedHandle<Composition::Font> font;
class RectWidget : public Widget {
public:
RectWidget(const Core::Rect &rect,Widget *parent):Widget(rect,parent){
};
void render() override {... | 3,995 |
https://github.com/rob-digital/Laravel-PHP---Blog-Posts---Piotr-Jura/blob/master/resources/views/vue.blade.php | Github Open Source | Open Source | MIT | null | Laravel-PHP---Blog-Posts---Piotr-Jura | rob-digital | PHP | Code | 7 | 44 |
@extends('layout')
@section('content')
<div id="app">
<example-vue-component/>
</div>
@endsection
| 13,468 |
https://github.com/frankiefy/FizzBuzzJS/blob/master/src/FizzBuzz.js | Github Open Source | Open Source | MIT | null | FizzBuzzJS | frankiefy | JavaScript | Code | 48 | 104 | for ( var x = 0; x < 100, x++); {
if (x % 3 == 0){
console.log("Fizz");
} else if (x % 5 == 0){
console.log("Buzz");
} else if (x % 5 == 0 && x % 3 == 0){
console.log("FizzBuzz");
} else {
console.log(x);
}
};
| 13,925 |
https://github.com/samdouble/mongodb-schema-analyzer/blob/master/GenericSchema.js | Github Open Source | Open Source | Apache-2.0 | null | mongodb-schema-analyzer | samdouble | JavaScript | Code | 28 | 84 | const mongoose = require('mongoose');
const COLLECTION_NAME = 'UFCFights';
const GenericSchema = new mongoose.Schema(
{},
{ strict: false },
);
const Generic = mongoose.model('Generic', GenericSchema, COLLECTION_NAME);
module.exports = Generic;
| 9,888 |
https://github.com/javadev/LeetCode-in-Java/blob/master/src/test/java/g0901_1000/s0961_n_repeated_element_in_size_2n_array/SolutionTest.java | Github Open Source | Open Source | MIT | 2,023 | LeetCode-in-Java | javadev | Java | Code | 59 | 235 | package g0901_1000.s0961_n_repeated_element_in_size_2n_array;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void repeatedNTimes() {
assertThat(new Solution().repeatedNTimes(new int[] ... | 9,991 |
https://github.com/ignotaC/tokpol/blob/master/src/base_func.h | Github Open Source | Open Source | 0BSD | null | tokpol | ignotaC | C | Code | 241 | 553 | /*
Copyright (c) 2020 Piotr Trzpil p.trzpil@protonmail.com
Permission to use, copy, modify, and distribute
this software for any purpose with or without fee
is hereby granted, provided that the above copyright
notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR
D... | 43,104 |
https://github.com/bactopia/bactopia/blob/master/subworkflows/local/shigeifinder/main.nf | Github Open Source | Open Source | MIT | 2,022 | bactopia | bactopia | null | Spoken | 124 | 518 | //
// shigeifinder - Shigella and EIEC serotyping from assemblies
//
include { initOptions } from '../../../lib/nf/functions'
options = initOptions(params.containsKey("options") ? params.options : [:], 'shigeifinder')
options.is_module = params.wf == 'shigeifinder' ? true : false
include { SHIGEIFINDER as SHIGEIFINDER... | 25,661 |
https://github.com/GPC-debug/sqlgraph/blob/master/src/GraphTableFunctions/template.sh | Github Open Source | Open Source | Apache-2.0 | 2,019 | sqlgraph | GPC-debug | Shell | Code | 519 | 1,751 | #!/usr/bin/env bash
function add() {
echo "#pragma once
#include <GraphTableFunctions/IGraphTableFunction.h>
namespace DB
{
class ${name}Function : public IGraphTableFunction
{
public:
static constexpr auto name = \"${name}\";
std::string getName() const override
{
return name;
}
cons... | 17,326 |
https://github.com/Atrehube/Attention-Solving-TWVRP/blob/master/utils/beam_search.py | Github Open Source | Open Source | MIT | 2,021 | Attention-Solving-TWVRP | Atrehube | Python | Code | 996 | 2,470 | import time
import torch
from typing import NamedTuple
from utils.lexsort import torch_lexsort
def beam_search(*args, **kwargs):
beams, final_state = _beam_search(*args, **kwargs)
return get_beam_search_results(beams, final_state)
def get_beam_search_results(beams, final_state):
beam = beams[-1] # Fina... | 255 |
https://github.com/ghandalf/Logscape/blob/master/vso/src/com/liquidlabs/vso/agent/process/WindowsProcess.java | Github Open Source | Open Source | Apache-2.0 | null | Logscape | ghandalf | Java | Code | 72 | 239 | /**
*
*/
package com.liquidlabs.vso.agent.process;
import java.io.File;
import org.jvnet.winp.WinProcess;
public class WindowsProcess extends VSProcess {
private WinProcess winProcess;
public WindowsProcess(Process theProcess, File pidDir) {
super(theProcess, pidDir);
winProcess = new WinProcess(theProcess)... | 38,299 |
https://github.com/anr-ru/base.services/blob/master/src/main/java/ru/anr/base/domain/BaseEntity.java | Github Open Source | Open Source | Apache-2.0 | null | base.services | anr-ru | Java | Code | 1,069 | 2,634 | /*
* Copyright 2014 the original author or 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 l... | 20,486 |
https://github.com/qbit/opensmalltalk-vm/blob/master/smalltalksrc/VMMakerTests/VMPrimitiveCallingTest.class.st | Github Open Source | Open Source | MIT | 2,022 | opensmalltalk-vm | qbit | null | Spoken | 2,108 | 6,853 | Class {
#name : #VMPrimitiveCallingTest,
#superclass : #VMPrimitiveCallAbstractTest,
#instVars : [
'classLargeInteger'
],
#pools : [
'CogRTLOpcodes'
],
#category : #'VMMakerTests-JitTests'
}
{ #category : #helpers }
VMPrimitiveCallingTest >> initStack [
self createBaseFrame.
"Initialize Stack to the co... | 10,757 |
https://github.com/Lambda-School-Labs/coder-heroes-fe/blob/master/src/components/pages/ParentNewsFeed/TitleParentNewsFeed.js | Github Open Source | Open Source | MIT | 2,022 | coder-heroes-fe | Lambda-School-Labs | JavaScript | Code | 21 | 76 | import React from 'react';
export default function TitleParentNewsFeed() {
return (
<div className="news-feed-title-container">
<div id="news-feed-title">
<h1>News Feed</h1>
</div>
</div>
);
}
| 51,139 |
https://github.com/DragonKnightOfBreeze/FrackinRaces-sChinese-Project/blob/master/translations/stats/deprecated/carnivorefoodfish.statuseffect.patch | Github Open Source | Open Source | MIT | 2,020 | FrackinRaces-sChinese-Project | DragonKnightOfBreeze | null | Spoken | 26 | 95 | - op: replace
path: /label
value: 生海鲜 - 肉食种族和海洋种族会得到加成,素食种族和机械种族则会生病。
rawValue: Raw Seafood - Meat eaters and Oceanic species get a buff. Herbivores and
Robots get sick.
| 23,876 |
https://github.com/cacaxiq/Plugin.Validators.Forms/blob/master/ControlsValidators/ControlsValidators/Behaviors/NumericOnlyBehavior.cs | Github Open Source | Open Source | Apache-2.0 | null | Plugin.Validators.Forms | cacaxiq | C# | Code | 79 | 299 | using ControlsValidators.Behaviors.Base;
using Xamarin.Forms;
namespace ControlsValidators.Behaviors
{
public class NumericOnlyBehavior : BehaviorBase
{
protected override void OnAttachedTo(View bindable)
{
if (bindable is Entry entry)
{
entry.Keyboard = ... | 50,213 |
https://github.com/vino-ebe/int-pgms/blob/master/fb/setmatrixzero.cc | Github Open Source | Open Source | BSD-2-Clause | null | int-pgms | vino-ebe | C++ | Code | 113 | 334 | #include<iostream>
using namespace std;
void printMatrix(int m[][3]);
int main()
{
int mat[3][3] = { 1, 2, 0,
3, 0, 1,
4, 1, 4 };
int row_visited[3] = {};
int col_visited[3] = {};
for(int i = 0; i < 3; i++)
{
for(int j = 0; j < 3; j++)
{... | 25,258 |
https://github.com/ProPiloty/supabase/blob/master/studio/components/ui/ProductMenu/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | supabase | ProPiloty | TypeScript | Code | 7 | 15 | import ProductMenu from './ProductMenu'
export default ProductMenu
| 48,202 |
https://github.com/espenmn/medialog-turspor/blob/master/inc/custom-header.php | Github Open Source | Open Source | MIT | null | medialog-turspor | espenmn | PHP | Code | 467 | 1,502 | <?php
/**
* Custom header implementation
*
* @link https://codex.wordpress.org/Custom_Headers
*
* @package medialog_turspor
* @subpackage Medialog_Turspor
* @since 1.0
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses medialog_turspor_header_style()
*/
function medialog_turspor_custom_hea... | 40,259 |
https://github.com/XiaoJiangBoy/codecopy/blob/master/src/main/java/fun/gengzi/codecopy/utils/SnowflakeIdWorker.java | Github Open Source | Open Source | MIT | 2,021 | codecopy | XiaoJiangBoy | Java | Code | 308 | 790 | package fun.gengzi.codecopy.utils;
public class SnowflakeIdWorker {
private final long twepoch = 1420041600000L;
private final long workerIdBits = 5L;
private final long datacenterIdBits = 5L;
private final long maxWorkerId = 31L;
private final long maxDatacenterId = 31L;
private final long seq... | 20,130 |
https://github.com/a24ibrah/SIP/blob/master/Sip/SipCommunicator/net/java/sip/communicator/gui/BlockedListFrame.java | Github Open Source | Open Source | Apache-1.1 | 2,015 | SIP | a24ibrah | Java | Code | 184 | 842 | package net.java.sip.communicator.gui;
import java.awt.EventQueue;
import java.awt.ScrollPane;
import javax.swing.JDialog;
import java.awt.BorderLayout;
import javax.swing.DefaultListModel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JTextArea;
import javax.swing.ListModel;
import j... | 46,382 |
https://github.com/TJAlferes/academy/blob/master/src/learn-paraviewweb/src/React/Viewers/MultiLayoutViewer/index.js | Github Open Source | Open Source | MIT | 2,022 | academy | TJAlferes | JavaScript | Code | 266 | 1,099 | import React from 'react';
import PropTypes from 'prop-types';
import AbstractViewerMenu from '../AbstractViewerMenu';
import MultiViewControl from '../../CollapsibleControls/MultiViewControl';
import WidgetFactory from '../../CollapsibleControls/CollapsibleControlFactory';
import MultiViewRenderer from '../../Rendere... | 47,924 |
https://github.com/tett23/kinsro/blob/master/src/vindex/vindexdata/parse_filepath_test.go | Github Open Source | Open Source | MIT | null | kinsro | tett23 | Go | Code | 114 | 472 | package vindexdata
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestVIndexData__ParseFilepath(t *testing.T) {
t.Run("ok", func(t *testing.T) {
path := "/test/2019/10/10/test.mp4"
storagePaths := []string{"/test"}
actual, err := ParseFullFilepath(storagePaths, path)
assert.NoError(t, err)... | 33,685 |
https://github.com/mwpras0/Desain-Dan-Pemrograman-Website/blob/master/Project/kasir/application/views/product/unit/unit_form_add.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | Desain-Dan-Pemrograman-Website | mwpras0 | PHP | Code | 183 | 738 | <div class="page-breadcrumb">
<div class="row">
<div class="col-12 d-flex no-block align-items-center">
<h2 class="page-title">Unit
<small style="font-size: 17px">Data Produk</small>
</h2>
<div class="ml-auto text-right">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">... | 11,389 |
https://github.com/Comets3357/RobotCode-2020/blob/master/src/main/include/common/OtherComponents.h | Github Open Source | Open Source | MIT | 2,021 | RobotCode-2020 | Comets3357 | C++ | Code | 42 | 181 | #pragma once
#include <frc/BuiltInAccelerometer.h>
#include <frc/Compressor.h>
#include <frc/PowerDistributionPanel.h>
struct OtherComponentsData
{
// accelerometer
double accelX, accelY, accelZ;
};
class OtherComponents
{
public:
void RobotPeriodic(OtherComponentsData &otherComponentsData);
void u... | 39,095 |
https://github.com/bill-cooper/catc-cms/blob/master/src/Orchard.Web/Modules/ceenq.com.Core/Accounts/IAccountContext.cs | Github Open Source | Open Source | BSD-3-Clause | null | catc-cms | bill-cooper | C# | Code | 413 | 1,209 | using ceenq.com.Core.Models;
using Orchard;
using Orchard.ContentManagement;
using Orchard.Core.Settings.Models;
using Orchard.Environment.Configuration;
using Orchard.Settings;
namespace ceenq.com.Core.Accounts
{
public interface IAccountContext : IDependency
{
string Account { get; }
string ... | 5,497 |
https://github.com/vizcay/RestfulObjectsExamples/blob/master/todo_app/spec/support/json_expressions.rb | Github Open Source | Open Source | MIT | null | RestfulObjectsExamples | vizcay | Ruby | Code | 40 | 162 | module JsonExpressions
module RSpec
module Matchers
class MatchJsonExpression
def failure_message
"expected:\n#{JSON.pretty_generate @target}\n to match JSON expression:\n#{@expected.inspect}\n\n" + @expected.last_error
end
def failure_message_when_negated
"expec... | 37,767 |
https://github.com/ronin4net/Plainion.Notes/blob/master/src/Plainion.Wiki.Xaml/Rendering/RenderActions/HeadlineRenderAction.cs | Github Open Source | Open Source | BSD-3-Clause | null | Plainion.Notes | ronin4net | C# | Code | 67 | 205 | using System.Linq;
using Plainion.Wiki.AST;
using Plainion.Wiki.Rendering;
namespace Plainion.Wiki.Xaml.Rendering.RenderActions
{
[XamlRenderAction( typeof( Headline ) )]
public class HeadlineRenderAction : GenericRenderAction<Headline>
{
protected override void Render( Headline headline )
... | 36,029 |
https://github.com/PiotrSrebrny/jp2bibliotek/blob/master/fuel/app/classes/controller/book/add.php | Github Open Source | Open Source | MIT | 2,019 | jp2bibliotek | PiotrSrebrny | PHP | Code | 412 | 1,606 | <?php
use Fuel\Core\Controller_Template;
use Fuel\Core\Response;
use Fuel\Core\View;
use Fuel\Core\Fieldset;
use Fuel\Core\Validation;
use Auth\Auth;
use Model\Book;
use Fuel\Core\Model;
use Util\Message;
class ValidationRule
{
public static function _validation_type_valid($val)
{
Validation::active()
->set_me... | 47,026 |
https://github.com/Challenge1996/PutongOJ/blob/master/test/controllers/group/visitor.test.js | Github Open Source | Open Source | MIT | 2,022 | PutongOJ | Challenge1996 | JavaScript | Code | 118 | 405 | const test = require('ava')
const supertest = require('supertest')
const app = require('../../../app')
const meta = require('../../meta')
const server = app.listen()
const request = supertest.agent(server)
test('Group list', async t => {
const res = await request
.get('/api/group/list')
t.is(res.status, 200)... | 8,372 |
https://github.com/Simple-Home/SimpleHome-Server/blob/master/app/class/RoomManager.php | Github Open Source | Open Source | MIT | 2,021 | SimpleHome-Server | Simple-Home | PHP | Code | 90 | 269 | <?php
class RoomManager{
public static $rooms;
function getDefaultRoomId() {
$defaultRoom = Db::loadOne("SELECT room_id FROM rooms WHERE 'default' = 1");
return $defaultRoom['room_id'];
}
function getAllRooms () {
$allRoom = Db::loadAll ("SELECT rooms.*, COUNT(devices.device_id) as device_count FROM rooms L... | 3,624 |
https://github.com/oxters168/UnityHelpers/blob/master/Physics/PhysicsPauser.cs | Github Open Source | Open Source | MIT | 2,021 | UnityHelpers | oxters168 | C# | Code | 100 | 310 | using UnityEngine;
using System.Collections.Generic;
namespace UnityHelpers
{
/// <summary>
/// Use this to pause and unpause all non kinematic rigidbodies in your scene
/// </summary>
public static class PhysicsPauser
{
private static Dictionary<Rigidbody, (Vector3, Vector3)> history = ne... | 45,548 |
https://github.com/hmbisht/aanchal-280823/blob/master/src/main/java/com/simplified/aanchal/common/constants/AppConstants.java | Github Open Source | Open Source | Apache-2.0 | null | aanchal-280823 | hmbisht | Java | Code | 28 | 73 | package com.simplified.aanchal.common.constants;
public class AppConstants {
public static final String TABLE_NAME = "customer";
public static final String CREATED = "created";
public static final String LAST_MODIFIED = "last_modified";
}
| 10,782 |
https://github.com/phuocle/Dynamics-Crm-DevKit/blob/master/test/v.2.12.31/TestAllEntities/All-DEMO/Dev.DevKit.WebResource/entities/ServiceAppointment.d.ts | Github Open Source | Open Source | MIT | 2,021 | Dynamics-Crm-DevKit | phuocle | TypeScript | Code | 3,413 | 9,177 | //@ts-check
///<reference path="devkit.d.ts" />
declare namespace DevKit {
namespace FormServiceAppointment_Information {
interface tab_bookableResourceBooking_Sections {
Bookable_Resource_Bookings_Section: DevKit.Controls.Section;
}
interface tab_details_Sections {
appointment_details: DevKit.Controls.Se... | 50,432 |
https://github.com/gacha/simba/blob/master/src/drivers/displays/ws2812.c | Github Open Source | Open Source | MIT | 2,022 | simba | gacha | C | Code | 490 | 1,240 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2018, Erik Moqvist
*
* 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 t... | 4,643 |
https://github.com/jboss-fuse/yaks/blob/master/java/docs/steps-http.adoc | Github Open Source | Open Source | Apache-2.0 | 2,022 | yaks | jboss-fuse | AsciiDoc | Code | 3,739 | 6,869 | [[steps-http]]
== Http steps
The Http protocol is a widely used communication protocol when it comes to exchanging data between systems. REST Http services
are very prominent and producing/consuming those services is a common task in software development these days. YAKS provides
ready to use steps that are able to ex... | 13,459 |
https://github.com/chepew23/sfOauthServerPlugin/blob/master/lib/model/doctrine/PluginsfOauthServerConsumer.class.php | Github Open Source | Open Source | MIT | 2,013 | sfOauthServerPlugin | chepew23 | PHP | Code | 183 | 695 | <?php
/**
* PluginsfOauthServerConsumer
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @package ##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## <##EMAIL##>
* @version SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
*/
abstract class PluginsfOauthServer... | 37,779 |
https://github.com/isopov/kubernetes-client-java/blob/master/fluent/src/main/java/io/kubernetes/client/openapi/models/V2alpha1CronJobStatusFluent.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | kubernetes-client-java | isopov | Java | Code | 170 | 1,237 | package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.Fluent;
import io.kubernetes.client.fluent.Nested;
import java.util.ArrayList;
import java.lang.String;
import java.util.function.Predi... | 50,811 |
https://github.com/ridewind/eSDK_FC_SDK_Java/blob/master/src/main/java/com/huawei/esdk/fusioncompute/local/impl/resources/storage/BackupOperationResourceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | eSDK_FC_SDK_Java | ridewind | Java | Code | 587 | 2,609 | /**
* Copyright 2015 Huawei Technologies Co., Ltd. All rights reserved.
* eSDK is 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
*
*... | 9,547 |
https://github.com/xregist/v3s-linux-sdk/blob/master/linux-3.4/drivers/staging/iio/industrialio-trigger.c | Github Open Source | Open Source | Apache-2.0 | null | v3s-linux-sdk | xregist | C | Code | 1,267 | 5,320 | /* The industrial I/O core, trigger handling functions
*
* Copyright (c) 2008 Jonathan Cameron
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*/
#include <linux/kernel.h>
#i... | 8,056 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/u/unlockd/sumocollector/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 76 | 351 | FROM openjdk:8-jre-slim
MAINTAINER Unlockd SRE <sre@unlockd.com>
RUN apt-get update && apt-get install -y --no-install-recommends curl gpg
dirmngr && \
rm -rf /var/lib/apt/lists/* && \
curl -sLo /tmp/sumo.tar https://collectors.sumologic.com/rest/download/tar &&
\
curl -sLo /tini https://github.com/kral... | 1,851 |
https://github.com/kskyten/htdp-solutions/blob/master/cpt3/ex33.rkt | Github Open Source | Open Source | MIT | 2,017 | htdp-solutions | kskyten | null | Spoken | 88 | 238 | ;; The first three lines of this file were inserted by DrRacket. They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname ex33) (read-case-sensitive #t) (teachpacks ((lib "universe.rkt" "teachpack" "2htdp") (lib "ba... | 12,956 |
https://github.com/5kj41d/MidiGremlin/blob/master/src/MidiGremlinTests/InstrumentTypeExtensionsTests.cs | Github Open Source | Open Source | MIT | 2,016 | MidiGremlin | 5kj41d | C# | Code | 45 | 208 | using NUnit.Framework;
using MidiGremlin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MidiGremlin.Tests
{
[TestFixture()]
public class InstrumentTypeExtensionsTests
{
[Test()]
[TestCase(InstrumentType.Accordion, false)]
[TestCa... | 8,412 |
https://github.com/bazaarvoice/cloudbreak/blob/master/cloud-api/src/main/java/com/sequenceiq/cloudbreak/cloud/model/FileSystem.java | Github Open Source | Open Source | Apache-2.0 | null | cloudbreak | bazaarvoice | Java | Code | 122 | 400 | package com.sequenceiq.cloudbreak.cloud.model;
import java.util.Map;
import java.util.Map.Entry;
import com.sequenceiq.cloudbreak.cloud.model.generic.DynamicModel;
public class FileSystem extends DynamicModel {
private String name;
private String type;
private boolean defaultFs;
public FileSystem... | 32,512 |
https://github.com/noqqe/rvo/blob/master/rvo/commands/info.py | Github Open Source | Open Source | MIT | 2,019 | rvo | noqqe | Python | Code | 76 | 206 | import click
import rvo.db as db
import rvo.transaction as transaction
import rvo.views as views
import rvo.analysis as analysis
@click.command(short_help="Shows metadata of a document",
help="""
Shows metadata of a document.
Metadata matters! NSA kills because of metadata... | 2,017 |
https://github.com/gfranco12/udes_huem/blob/master/app/Traits/SesionTrait.php | Github Open Source | Open Source | MIT | 2,020 | udes_huem | gfranco12 | PHP | Code | 190 | 728 | <?php
namespace App\Traits;
use Carbon\Carbon;
use App\Models\Sesion;
use Session;
trait SesionTrait
{
/**
* Este metodo registrar el inicio de sesion de un usuario al aplicativo
*
* @param String $ip
* @return int
*/
public function registrarInicioDeSesion($ip)
{
... | 6,223 |
https://github.com/Sinchaohao/RongSys/blob/master/sx-village/src/main/java/com/ruoyi/village/domain/Project.java | Github Open Source | Open Source | 2,020 | RongSys | Sinchaohao | Java | Code | 500 | 1,747 | package com.ruoyi.village.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;
/**
* 重大项目表 tb_project
*
* @author 张鸿权
* @date 2019-01-19
*/
public class Project extends BaseEntity
{
private static final ... | 51,732 | |
https://github.com/nsidc/qgreenland/blob/master/qgreenland/ancillary/templates/layer_cfg.py | Github Open Source | Open Source | MIT | 2,023 | qgreenland | nsidc | Python | Code | 394 | 1,011 | # TODO: Cleanup all comments that aren't specific to your layer.
# TODO: Delete the comment below:
# type: ignore
# TODO: Fill in and uncomment below:
# from qgreenland.config.datasets.{your_dataset_module} import (
# {your_dataset_object} as dataset,
# )
# TODO: Consider using a helper to generate your layers from... | 47,840 |
https://github.com/phil-allcock/JSONC/blob/master/Benchmark/obj2/demo_simple_json_stringify_with_base64/data/data.js | Github Open Source | Open Source | MIT | 2,022 | JSONC | phil-allcock | JavaScript | Code | 2,721 | 10,787 | var obj = {
data: [
{
"id": 0,
"guid": "a5a60d88-b28b-4066-83c6-997421774756",
"isActive": true,
"balance": "$1,205.00",
"picture": "http://placehold.it/32x32",
"age": 33,
"name": "Daniels Kaufman",
"gender": "male",
"company": "Xelegyl",
"email": "danie... | 16,702 |
https://github.com/cassiocardoso/lombardi-starter/blob/master/src/utils/getIcon.js | Github Open Source | Open Source | MIT | null | lombardi-starter | cassiocardoso | JavaScript | Code | 69 | 221 | import React from 'react'
import {
FaFacebookF,
FaInstagram,
FaTwitter,
FaYoutube,
FaSnapchatGhost,
FaTumblr,
} from 'react-icons/fa'
export const getIcon = (platform, size = 20) => {
switch (platform) {
case 'Facebook':
return <FaFacebookF size={size} />
case 'Instagram':
return <FaI... | 39,343 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/Ibotta_com.ibotta.android/javafiles/com/digits/sdk/android/PhoneNumberUtils.java | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Java | Code | 20,000 | 57,784 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.digits.sdk.android; import android.text.TextUtils; import java.util.*; // Referenced classes of package com.digits.sdk.android: // SimManager, Ph... | 1,542 |
https://github.com/quicky-dev/web/blob/master/src/main/Main.jsx | Github Open Source | Open Source | MIT | 2,019 | web | quicky-dev | null | Spoken | 720 | 2,324 | import Axios from 'axios';
import Button from '@material-ui/core/Button';
import PropTypes from 'prop-types';
import React from 'react';
import Step from '@material-ui/core/Step';
import StepButton from '@material-ui/core/StepButton';
import Stepper from '@material-ui/core/Stepper';
import { connect } from 'react-redux... | 36,727 |
https://github.com/Xnliyuhang/hello-spring-boot/blob/master/src/main/java/com/alex/hello/spring/boot/domain/TbDiary.java | Github Open Source | Open Source | Apache-2.0 | null | hello-spring-boot | Xnliyuhang | Java | Code | 263 | 805 | package com.alex.hello.spring.boot.domain;
import java.util.Date;
import javax.persistence.*;
@Table(name = "tb_diary")
public class TbDiary {
@Id
@Column(name = "diary_id")
private Long diaryId;
/**
* 用户姓名
*/
private String username;
/**
* 创建日期
*/
private Date create... | 11,233 |
https://github.com/mzhg/PostProcessingWork/blob/master/testframewok/src/main/java/jet/opengl/demos/nvidia/face/sample/CMeshDebug.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | PostProcessingWork | mzhg | Java | Code | 283 | 1,342 | package jet.opengl.demos.nvidia.face.sample;
import org.lwjgl.util.vector.Vector3f;
import java.nio.ByteBuffer;
import java.util.HashMap;
import jet.opengl.postprocessing.common.Disposeable;
import jet.opengl.postprocessing.common.GLFuncProvider;
import jet.opengl.postprocessing.common.GLFuncProviderFactory;
import ... | 17,589 |
https://github.com/jaredhoberock/gotham/blob/master/importance/ThroughputLuminanceImportance.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | gotham | jaredhoberock | C++ | Code | 55 | 209 | /*! \file ThroughputLuminanceImportance.cpp
* \author Jared Hoberock
* \brief Implementation of ThroughputLuminanceImportance class.
*/
#include "ThroughputLuminanceImportance.h"
float ThroughputLuminanceImportance
::evaluate(const PathSampler::HyperPoint &x,
const Path &xPath,
const ... | 10,788 |
https://github.com/MMVonnSeek/Hacktoberfest2021_beginner/blob/master/Python3-Learn/some modules/wikipedia_avyayjain.py | Github Open Source | Open Source | MIT | 2,021 | Hacktoberfest2021_beginner | MMVonnSeek | Python | Code | 56 | 148 | // AUTHOR: Avyay Jain
// Python3 Concept: (calculator)
// GITHUB: https://github.com/avyayjain
import wikipedia as wiki
n = input('Enter What You want to search : ')
wresult = wiki.search(n)
j=0
for i in wresult:
print('Enter ',j,' for search about ',i)
j += 1
ent = int(input('Enter Your Option : ')... | 2,818 |
https://github.com/Rogiel/BananaVM/blob/master/Source/BananaVM/Instruction/MemoryInstructions.h | Github Open Source | Open Source | BSD-3-Clause | null | BananaVM | Rogiel | C | Code | 301 | 684 | //
// BananaVM - A Virtual Machine implementation for BananaCore
//
// Created by Rogiel Sulzbach.
// Copyright (c) 2014-2015 Rogiel Sulzbach. All rights reserved.
//
#pragma once
#include "Instruction.h"
#include "../Types.h"
namespace BananaVM {
namespace Instruction {
/**
* Implements the LOAD instructi... | 31,951 |
https://github.com/afjoseph/VikingHorde_Analysis/blob/master/android.vikinghorde/dump_jadx/sources/com/stericson/RootTools/internal/RootToolsInternalMethods.java | Github Open Source | Open Source | Apache-2.0 | null | VikingHorde_Analysis | afjoseph | Java | Code | 3,873 | 15,850 | package com.stericson.RootTools.internal;
public final class RootToolsInternalMethods {
protected RootToolsInternalMethods() {
}
public static void getInstance() {
com.stericson.RootTools.C1040RootTools.setRim(new com.stericson.RootTools.internal.RootToolsInternalMethods());
}
public java... | 25,614 |
https://github.com/sergeybekrin/npmkit/blob/master/app/src/tray-popup/components/projects/note.js | Github Open Source | Open Source | MIT | 2,018 | npmkit | sergeybekrin | JavaScript | Code | 20 | 58 | import styled from 'styled-components';
const Note = styled.div`
text-align: center;
height: inherit;
padding: 1rem;
color: #666;
`;
export default Note;
| 6,254 |
https://github.com/sarang-apps/darshan_browser/blob/master/chrome/android/feed/core/java/src/org/chromium/chrome/browser/feed/library/api/internal/modelprovider/ModelFeature.java | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | darshan_browser | sarang-apps | Java | Code | 219 | 429 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.feed.library.api.internal.modelprovider;
import androidx.annotation.Nullable;
import org.chromium.chrome.browser.fee... | 18,560 |
https://github.com/whintzen/WorkDay-Scheduler/blob/master/index.js | Github Open Source | Open Source | MIT | null | WorkDay-Scheduler | whintzen | JavaScript | Code | 161 | 433 |
var time = moment();
function getDescription() {
// assigns the current date
$("#currentDay").text(moment().format("dddd, MMMM Do YYYY"));
// Gets the saved information entered in the textarea/description from local storage
$(".time-block").each(function () {
var id = $(this).attr("... | 15,410 |
https://github.com/HewlettPackard/terraform-provider-oneview/blob/master/vendor/github.com/hashicorp/terraform-json/go.mod | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, MPL-2.0 | 2,023 | terraform-provider-oneview | HewlettPackard | Go Module | Code | 13 | 85 | module github.com/hashicorp/terraform-json
go 1.13
require (
github.com/davecgh/go-spew v1.1.1
github.com/google/go-cmp v0.3.1
github.com/zclconf/go-cty v1.2.1
)
| 32,545 |
https://github.com/dgym/gitlactica/blob/master/test/setup.js | Github Open Source | Open Source | MIT | 2,013 | gitlactica | dgym | JavaScript | Code | 44 | 200 | (function (global) {
var sinonChai = require('sinon-chai');
global.sinon = require('sinon');
global.chai = require('chai');
global.should = require('chai').should();
global.expect = require('chai').expect;
global.AssertionError = require('chai').AssertionError;
global.mockery = mockery = require('mockery');
require('si... | 34,039 |
https://github.com/hakanai03/portfolio/blob/master/src/types/vanta.d.ts | Github Open Source | Open Source | MIT | 2,023 | portfolio | hakanai03 | TypeScript | Code | 3 | 19 | declare module "vanta/dist/vanta.fog.min.js";
| 8,935 |
https://github.com/BENALIsalahEDDINE/QuizEMI/blob/master/Web/QuizEMI.Web/Startup.cs | Github Open Source | Open Source | MIT | 2,021 | QuizEMI | BENALIsalahEDDINE | C# | Code | 337 | 1,865 | namespace QuizEMI.Web
{
using System;
using System.Reflection;
using AutoMapper;
using Hangfire;
using Hangfire.SqlServer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.En... | 19,862 |
https://github.com/Olsondy/venus.js/blob/master/hooks/setup.sh | Github Open Source | Open Source | Apache-2.0 | 2,017 | venus.js | Olsondy | Shell | Code | 5 | 29 | #!/bin/sh
ln -s `pwd`/pre-commit ../.git/hooks/pre-commit
| 37,309 |
https://github.com/bazurbat/jagen/blob/master/src/Config.lua | Github Open Source | Open Source | MIT | 2,022 | jagen | bazurbat | Lua | Code | 38 | 111 | local Rule = require 'Rule'
local Config = Rule:new()
function Config:new(rule)
setmetatable(rule, self)
self.__index = self
return rule:_parse(rule)
end
function Config:_parse(rule)
if type(rule[1]) == 'string' then
self.name = rule[1]
rule[1] = nil
end
return rule
end
retur... | 14,728 |
https://github.com/michellekusold/rabble/blob/master/app/shared/services/game/qr_code_generator.js | Github Open Source | Open Source | MIT | null | rabble | michellekusold | JavaScript | Code | 60 | 204 | (function(){
'use strict';
angular.module('rabble.services').factory('qrCodeGeneratorServiceFactory', qrCodeGeneratorServiceFactory);
// generate human readable code to be used to enter a game
function qrCodeGeneratorServiceFactory(){
function generateQrCode(elementId, gameCode, backgroundColor)
{
v... | 23,325 |
https://github.com/syscover/historiasentumesa.es/blob/master/config/quasar-cms.php | Github Open Source | Open Source | MIT | null | historiasentumesa.es | syscover | PHP | Code | 67 | 339 | <?php
return [
//******************************************************************************************************************
//*** Type of editors
//******************************************************************************************************************
'editors' => [
... | 40,045 |
https://github.com/TGNThump/AbandonedRuins/blob/master/src/listeners/RuinEntityGenerated.ts | Github Open Source | Open Source | MIT | 2,021 | AbandonedRuins | TGNThump | TypeScript | Code | 76 | 337 | import Random from "../utils/Random";
export default function(event: script_raised_revive){
event.entity.rotatable = false;
if (event.entity.type == 'assembling-machine'){
event.entity.recipe_locked = true;
} else if (event.entity.type == 'fluid-turret'){
event.entity.force = game.forces['abandoned-weaponry']... | 27,479 |
https://github.com/k-a-z-u/KLib/blob/master/misc/gnuplot/GnuplotPlotElementPoints.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | KLib | k-a-z-u | C | Code | 187 | 557 | #ifndef GNUPLOTPLOTELEMENTPOINTS_H
#define GNUPLOTPLOTELEMENTPOINTS_H
#include <vector>
#include "GnuplotPlotElementRaw.h"
#include "attributes/GnuplotAttrColor.h"
#include <functional>
namespace K {
class GnuplotPlotElementPoints : public GnuplotPlotElementRaw, public GnuplotAttrColor {
private:
float pointS... | 4,029 |
https://github.com/pijiulaoshi/ha_greensens/blob/master/custom_components/greensens/sensor.py | Github Open Source | Open Source | MIT | 2,022 | ha_greensens | pijiulaoshi | Python | Code | 410 | 1,400 | """Platform for sensor integration."""
import logging
from datetime import datetime, timedelta
from homeassistant.util import Throttle
from homeassistant.const import TEMP_CELSIUS
from homeassistant.components.sensor import SensorEntity
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.update... | 38,071 |
https://github.com/msandwidi/tinyauth/blob/master/middlewares/admin_access.js | Github Open Source | Open Source | MIT | 2,019 | tinyauth | msandwidi | JavaScript | Code | 31 | 80 | module.exports = async (req, res, next) => {
if (!req.user.isSuperAdmin) {
return res.status(403).json({
success: false,
message: "You don't have the privilege to access the requested resource."
});
}
return next();
};
| 13,343 |
https://github.com/MattLisson/OpenVIII/blob/master/Core/Battle/Characters/CharacterInstanceInformation.cs | Github Open Source | Open Source | MIT | null | OpenVIII | MattLisson | C# | Code | 130 | 308 | namespace OpenVIII.Battle
{
/// <summary>
/// CharacterInstanceInformation should only be used for battle-exclusive data. Manipulating
/// HP, GFs, junctions and other character-specific things should happen outside battle,
/// because such information about characters is shared between almost all modu... | 5,223 |
https://github.com/espc-jcampbell/GSB-Wordpress-Theme/blob/master/page-private-client.php | Github Open Source | Open Source | MIT | null | GSB-Wordpress-Theme | espc-jcampbell | PHP | Code | 1,014 | 2,168 | <?php get_header(); ?>
<div class="row-fluid row--hero row--hero__stripe">
<header class="main-fluid hero__content--small">
<h1 class="hero__title"><?php the_title(); ?></h1>
</header>
</div>
<div class="main-fluid content-padding--gen">
<div class="row-fluid">
<div class="span6">
<p class="opening-paragr... | 50,033 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.