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/sean-oneal/janusgraph/blob/master/docs/directindex.adoc | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | janusgraph | sean-oneal | AsciiDoc | Code | 760 | 1,491 | [[direct-index-query]]
== Direct Index Query
JanusGraph's standard global graph querying mechanism supports boolean queries for vertices or edges. In other words, an element either matches the query or it does not. There are no partial matches or result scoring.
Some indexing backends additionally support fuzzy searc... | 2,949 |
https://github.com/xmaps/movie-ranking-test/blob/master/movie_ranking_api.py | Github Open Source | Open Source | MIT | null | movie-ranking-test | xmaps | Python | Code | 587 | 2,257 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Personal Movie Ranking API implemented using Google Cloud Endpoints."""
import endpoints
from protorpc import remote
from protorpc import message_types
from protorpc import messages
from movie_ranking_api_messages import LoginResponse, ListMoviesMessage,\
MovieMessage, ... | 38,215 |
https://github.com/mantiswang/KBDUploader/blob/master/KBDUploader/Classes/KBError.h | Github Open Source | Open Source | MIT | null | KBDUploader | mantiswang | C | Code | 52 | 186 | //
// KBError.h
// KBDUploader
//
// Created by KeyBoardDog on 07/29/2016.
// Copyright (c) 2016 ywang. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
// 错误码
typedef enum : NSUInteger {
KBErrorCodeCrash = -10000,
KBErrorCodeDisConnect,
KBErrorCodeUnknow,
} KBErrorCo... | 129 |
https://github.com/benlumley/Zend_Cloud/blob/master/library/Zend/Cloud/DocumentService/Adapter/WindowsAzure.php | Github Open Source | Open Source | BSD-3-Clause | 2,010 | Zend_Cloud | benlumley | PHP | Code | 1,303 | 4,607 | <?php
/**
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* ob... | 16,293 |
https://github.com/kickoke/metanorma.org/blob/master/_posts/2021-07-20-metanorma-with-proxies.adoc | Github Open Source | Open Source | MIT | 2,022 | metanorma.org | kickoke | AsciiDoc | Code | 611 | 1,536 | ---
layout: post
title: "Using Metanorma with proxies (HTTPS, SOCKS)"
date: 2021-07-20
categories: documentation
author:
name: Alexander Bobrikovich
email: abobrikovich@gmail.com
social_links:
- https://github.com/camobap
excerpt: >-
Metanorma now supports Internet access via HTTP/HTTPS and SOCKS proxy s... | 13,277 |
https://github.com/answer-w/fontello/blob/master/assets/js/jquery.collapser.js | Github Open Source | Open Source | MIT | 2,022 | fontello | answer-w | JavaScript | Code | 509 | 1,405 | /*global jQuery*/
/**
* ndCollapser : jQuery plugin
*/
;(function ($, undefined) {
'use strict';
// internal
// finds element given by data-`name` selector or n-th parent
var get_related_el = function get_related_el($this, name) {
var value = $this.data(name);
// using lossy comparison as empty v... | 31,584 |
https://github.com/Acecrypto/DEx/blob/master/tokenGuides/ELTCOIN.ejs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | DEx | Acecrypto | EJS | Code | 42 | 115 | <blockquote>
<p>ELTCOIN, also known as the Ethereum Limited Total Coin, is an ERC-20 Token on the Ethereum Network. It aims to be the most useful ERC-20 token with a limited total supply. The project is community-driven and open-sourced.</p>
<footer><a href="https://www.eltcoin.tech/" target="_blank">https://www.el... | 20,446 |
https://github.com/sufansufan/microfront-porject/blob/master/src/puzzles/auditManage/views/auditHome/components/TopSearch.vue | Github Open Source | Open Source | MIT | null | microfront-porject | sufansufan | Vue | Code | 447 | 1,869 | <!-- @date: 2020-08-18 17:49:26 -->
<template>
<div class="search">
<div class="select">
<div>
<span>编号</span>
<div>
<el-input v-model="authorizationId" placeholder="请输入编号" />
</div>
</div>
<div>
<span>授权人工号</span>
<div>
<el-input v-mo... | 22,222 |
https://github.com/BacLuc/try_ddd/blob/master/src/main/java/try_ddd/try_ddd/domain/comic/Copy.java | Github Open Source | Open Source | MIT | null | try_ddd | BacLuc | Java | Code | 107 | 366 | package try_ddd.try_ddd.domain.comic;
import java.util.Date;
import java.util.ArrayList;
public class Copy {
private Comic comic;
private Date boughtAt;
private ArrayList<Borrow> borrowed = new ArrayList<Borrow>();
private States state;
public enum States {
NEW,LITTLE_DAMAGED, DAMAGED, UNUSABLE
}
public ... | 30,421 |
https://github.com/SomayaB/reacTube/blob/master/src/components/logo.js | Github Open Source | Open Source | MIT | null | reacTube | SomayaB | JavaScript | Code | 26 | 78 | import React from 'react';
const Logo = () => {
return (
<div>
<a href="/">
<img className="logo" src="style/reactube_logo_2017.png" />
</a>
</div>
);
};
export default Logo;
| 14,162 |
https://github.com/edusperoni/firebase/blob/master/packages/firebase-performance/index.ios.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | firebase | edusperoni | TypeScript | Code | 418 | 1,499 | import { deserialize, firebase, FirebaseApp } from '@nativescript/firebase-core';
import { HttpMethod, IHttpMetric, IPerformance, ITrace } from './common';
let defaultPerformance: Performance;
const fb = firebase();
Object.defineProperty(fb, 'performance', {
value: () => {
if (!defaultPerformance) {
defaultPerf... | 47,249 |
https://github.com/xilenomg/angular-url-handler/blob/master/dist/angular-url-handler.js | Github Open Source | Open Source | MIT | 2,016 | angular-url-handler | xilenomg | JavaScript | Code | 300 | 1,099 | (function(window, angular, undefined) {
'use strict';
angular.module('angular-url-handler', [])
.service('urlHandlerService', function UrlHandler() {
this._protocol;
this._subdomain;
this._domain;
this._path;
this._query;
this._an... | 15,101 |
https://github.com/greysonmrx/dirbbox-mobile/blob/master/src/pages/Home/styles.ts | Github Open Source | Open Source | MIT | 2,020 | dirbbox-mobile | greysonmrx | TypeScript | Code | 348 | 1,188 | import styled from 'styled-components/native';
import Constants from 'expo-constants';
import { FlatList } from 'react-native';
import { Feather, FontAwesome, Entypo } from '@expo/vector-icons';
import { getBottomSpace } from 'react-native-iphone-x-helper';
interface ViewModeIcon {
isSelected: boolean;
}
export con... | 30,481 |
https://github.com/lalainarahajason/regional/blob/master/web/app/plugins/sitepress-multilingual-cms/classes/url-handling/converter/strategy/interface-iwpml-url-converter-strategy.php | Github Open Source | Open Source | MIT | 2,022 | regional | lalainarahajason | PHP | Code | 54 | 187 | <?php
interface IWPML_URL_Converter_Strategy {
public function add_hooks();
public function remove_hooks();
public function convert_url_string( $source_url, $lang );
public function convert_admin_url_string( $source_url, $lang );
public function validate_language( $language, $url );
public function get_lan... | 25,608 |
https://github.com/euleGIT/die-gulde/blob/master/src/Assets/_Project/GuldePlayTests/Maps/MapComponentTests.cs | Github Open Source | Open Source | 0BSD | 2,022 | die-gulde | euleGIT | C# | Code | 72 | 310 | using System.Collections;
using GuldeLib.Cities;
using GuldeLib.Entities;
using NUnit.Framework;
using UnityEngine.TestTools;
namespace GuldePlayTests.Maps
{
public class MapComponentTests
{
[UnitySetUp]
public IEnumerator Setup()
{
yield break;
}
[TearDow... | 10,748 |
https://github.com/caioalexleme/php8-Intermediario-Avancado/blob/master/teste17/teste.php | Github Open Source | Open Source | MIT | null | php8-Intermediario-Avancado | caioalexleme | PHP | Code | 19 | 53 | <?php
$valor = 65.6;
printf("%b", $valor); // Valor binário
printf("%c", $valor); // Valor decimal
printf("%d", $valor); // Valor inteiro | 5,928 |
https://github.com/786ismael/jamali/blob/master/resources/views/admin/dashboard.blade.php | Github Open Source | Open Source | MIT | null | jamali | 786ismael | PHP | Code | 92 | 632 | @extends('admin.layouts.app')
@section('content')
<div class="main-body">
<div class="inner-body">
<div class="top-trip clearfix">
<h2>Dashboard</h2>
</div>
<div class="dashboard-data clearfix">
<div class="row">
<div class="col-md-3 col-sm-4 col-xs-6">
<a href="{{url('admin/user')}}">
... | 6,555 |
https://github.com/jeptoong/authorize-with-spring/blob/master/authorize-BE/src/main/java/org/example/authorize/config/prop/JwtProperties.java | Github Open Source | Open Source | MIT | null | authorize-with-spring | jeptoong | Java | Code | 45 | 137 | package org.example.authorize.config.prop;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Jwt properties.
*/
@Getter
@Setter
@ConfigurationProperties(prefix = "jwt", ignoreUnknownFields = false)
public class JwtProperties {
private ... | 8,236 |
https://github.com/jugmac00/buildout/blob/master/builds/debian_containers/ci_build.sh | Github Open Source | Open Source | MIT, ZPL-2.1 | 2,020 | buildout | jugmac00 | Shell | Code | 26 | 126 | #!/bin/bash
set -x
set -e
cd ../..
docker build -f .github/workflows/Dockerfile-debian --tag debian_buildout:python${PYTHON_VER} --build-arg PYTHON_VER=${PYTHON_VER} .
docker run debian_buildout:python${PYTHON_VER} /bin/bash -c 'RUN_COVERAGE= COVERAGE_REPORT= /buildout/bin/test -c -vvv'
| 19,278 |
https://github.com/micronaut-projects/micronaut-starter/blob/master/starter-cli/src/main/java/io/micronaut/starter/cli/CodeGenConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | micronaut-starter | micronaut-projects | Java | Code | 563 | 1,920 | /*
* Copyright 2017-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 16,188 |
https://github.com/GuiBayma/LoggerExample/blob/master/Logger/Logger/Debug/Logger.swift | Github Open Source | Open Source | MIT | null | LoggerExample | GuiBayma | Swift | Code | 428 | 1,039 | import Foundation
final class Logger {
static private var sharedInstance: Logger?
/// Logger shared instance.
static var shared: Logger {
guard let sharedInstance = sharedInstance else {
fatalError("Logger: call setup() first")
}
return sharedInstance
}
/// Se... | 22,755 |
https://github.com/jjeonghwa-code/spaces-design/blob/master/src/js/stores/document.js | Github Open Source | Open Source | MIT | 2,022 | spaces-design | jjeonghwa-code | JavaScript | Code | 3,988 | 11,972 | /*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* 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... | 30,943 |
https://github.com/GitbookIO/DraftMirror/blob/master/lib/decorators/clearDecoratorInDoc.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | DraftMirror | GitbookIO | JavaScript | Code | 44 | 139 | var clearDecorator = require('./clearDecorator');
/**
* Clear all markers from a decorator
*
* @param {Decorator} decorator
* @param {ProseMirror} editor
*/
function clearDecoratorInDoc(decorator, editor) {
editor.doc.forEach(function(node, offset, index) {
if (!node.isBlock) {
return;
... | 1,939 |
https://github.com/d277/MakingTeXWork/blob/master/tex/fonts/afm/CMSSI8.AFM | Github Open Source | Open Source | Apache-2.0 | 2,018 | MakingTeXWork | d277 | Adobe Font Metrics | Code | 2,644 | 4,377 | StartFontMetrics 2.0
Comment Copyright (c) 1990, 1991 Y&Y. All Rights Reserved.
Comment Creation Date: Thu Jun 21 22:23:28 1990
Comment UniqueID 5000808
FontName CMSSI8
EncodingScheme FontSpecific
FullName CMSSI8
FamilyName Computer Modern
Weight Medium
ItalicAngle -12.0
IsFixedPitch false
Version 1.0
Notice Computer... | 14,700 |
https://github.com/wuliupo/cruisecontrol/blob/master/main/src/net/sourceforge/cruisecontrol/ProjectQuery.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | cruisecontrol | wuliupo | Java | Code | 474 | 857 | /********************************************************************************
* CruiseControl, a Continuous Integration Toolkit
* Copyright (c) 2001, ThoughtWorks, Inc.
* 200 E. Randolph, 25th Floor
* Chicago, IL 60601 USA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or ... | 19,016 |
https://github.com/McFreshMuffin/funny-fart/blob/master/app/src/main/java/dhbw/lichter/scheuring/formelapp/util/MediaRecorderStatus.java | Github Open Source | Open Source | Apache-2.0 | null | funny-fart | McFreshMuffin | Java | Code | 10 | 43 | package dhbw.lichter.scheuring.formelapp.util;
public enum MediaRecorderStatus {
PLAY,
RECORD,
IDLE
}
| 4,057 |
https://github.com/colstrom/piranha/blob/master/functions/update-vpcs.fish | Github Open Source | Open Source | MIT | 2,016 | piranha | colstrom | Fish | Code | 42 | 138 | function update-vpcs
trace (status --current-filename) $argv
for name in (get vpcs)
set vpc (lookup vpc $name)
vpc-exists $name
or set vpc (create-vpc)
and begin
add-tag-to-vpc $vpc Name $name
for tag in (get vpcs/$name/tags)
add-tag-to-... | 33,612 |
https://github.com/ihh/biomake/blob/master/prolog/test/test.pl | Github Open Source | Open Source | CC-BY-3.0 | 2,016 | biomake | ihh | Perl | Code | 988 | 5,559 | % * -*- Mode: Prolog -*- */
default_ref_dir("ref").
default_test_dir("target").
:- dynamic failed_test/2.
:- dynamic only_test/1.
base_path(Dir) :-
prolog_load_context(directory,SrcDir),
string_concat(SrcDir,"../../",Dir).
base_path(Dir) :-
working_directory(Dir,Dir). % default
biomake_path(Path) :-
base_path(... | 38,342 |
https://github.com/Sunandfu/MyDemo/blob/master/工具Tool/APP黑夜模式/SDTheme-master/SDTheme/Classes/UIKit/UIView+SDTheme.h | Github Open Source | Open Source | MIT | 2,022 | MyDemo | Sunandfu | Objective-C | Code | 43 | 146 | //
// UIView+SDTheme.h
// HuashengSecurities
//
// Created by 姚伟祺 on 2018/4/25.
// Copyright © 2018年 www.hstong.com. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (SDTheme)
@property (nonatomic, copy) NSString *theme_backgroundColor;
@property (nonatomic, copy) IBInspectable NSString *sd_back... | 18,130 |
https://github.com/CTRLab-WashU/latar_android/blob/master/app/src/main/java/com/healthymedium/latar/network/models/DisplayLatencyData.java | Github Open Source | Open Source | MIT | 2,021 | latar_android | CTRLab-WashU | Java | Code | 22 | 63 | package com.healthymedium.latar.network.models;
public class DisplayLatencyData {
public long callbackTime;
public long displayTime;
public int color;
public String colorName;
public int index;
}
| 19,118 |
https://github.com/lucvoo/slibc/blob/master/arch/ppc/include/arch/setjmp.h | Github Open Source | Open Source | MIT | 2,018 | slibc | lucvoo | C | Code | 8 | 39 | #ifndef _ARCH_SETJMP_H
#define _ARCH_SETJMP_H
typedef long __jmp_buf[58];
#endif
| 10,538 |
https://github.com/editions-barzakh/site/blob/master/routes/views/text.js | Github Open Source | Open Source | MIT | 2,016 | site | editions-barzakh | JavaScript | Code | 62 | 221 | var keystone = require('keystone'),
async = require('async');
exports = module.exports = function(req, res) {
var view = new keystone.View(req, res),
locals = res.locals,
section = req.url.substr(1);
// Set locals
locals.section = section;
view.on('init', function(next) {
keystone.list('Texte').model.... | 41,901 |
https://github.com/regiszaum/desafio/blob/master/chrystianSantos/back/src/modules/animalBatch/dtos/ICreateAnimalBatchDTO.ts | Github Open Source | Open Source | MIT | null | desafio | regiszaum | TypeScript | Code | 15 | 51 | export interface ICreateAnimalBatchDTO {
id_animal: string;
id_batch: string;
dt_entry: Date;
dt_exit: Date;
calf: boolean;
}
| 33,454 |
https://github.com/charonplatform/titan/blob/master/src/EventLoopThread.h | Github Open Source | Open Source | BSD-3-Clause | null | titan | charonplatform | C | Code | 73 | 199 | // Copyright 2015 Lin Ya (xxbbb@vip.qq.com)
// Copyright 2016 The Arken Platform Authors.
// All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#pragma once
#include "base/Condition.h"
#include "base/MutexLock.h"
#include "base/Thread.h"
#includ... | 20,221 |
https://github.com/jirheee/CS492-Team-Project/blob/master/Client/src/lib/api/request.ts | Github Open Source | Open Source | MIT | 2,021 | CS492-Team-Project | jirheee | TypeScript | Code | 14 | 45 | import axios from 'axios';
const customAxios = axios.create({ baseURL: 'http://localhost:5000/api' });
export default customAxios;
| 44,623 |
https://github.com/dsofowote/KW-Tool/blob/master/keywordTool/pubfiles/src/code/alticemediapublicite/127911/domainInfo.inc.js | Github Open Source | Open Source | MIT | 2,020 | KW-Tool | dsofowote | JavaScript | Code | 6 | 25 | integration.whiteRootDomains = ['i24news.tv'];
integration.blackSubDomains = [];
| 35,159 |
https://github.com/fengjixuchui/MetaHookSv/blob/master/Plugins/BulletPhysics/exportfuncs.h | Github Open Source | Open Source | MIT | 2,021 | MetaHookSv | fengjixuchui | C | Code | 88 | 337 | #include <metahook.h>
#include <studio.h>
#include <r_studioint.h>
#include "cl_entity.h"
extern cl_enginefunc_t gEngfuncs;
extern cl_exportfuncs_t gExportfuncs;
extern engine_studio_api_t IEngineStudio;
void R_NewMap(void);
int HUD_AddEntity(int type, cl_entity_t *ent, const char *model);
int HUD_GetStudioModelInter... | 13,408 |
https://github.com/licyp/SaveOutlookEmails/blob/master/Code/Function_CounterNavigation.bas | Github Open Source | Open Source | Apache-2.0 | 2,019 | SaveOutlookEmails | licyp | Visual Basic | Code | 408 | 1,470 | Option Explicit
'These are basic counters helping the main process loops and navigating in folders
Public fso As Scripting.FileSystemObject ' add MS scripting Runtime
Function Active_Outlook_Account() As Outlook.MAPIFolder
'Set active Outlook account as main account
Dim i As Double
For i = 1 To Outlook.Applicatio... | 31,532 |
https://github.com/matheusdsmartins/leite/blob/master/__tests__/empresa.js | Github Open Source | Open Source | MIT | 2,022 | leite | matheusdsmartins | JavaScript | Code | 54 | 191 | 'use strict'
import test from 'ava'
import Leite from './..'
let leite
test.beforeEach(() => {
leite = new Leite()
})
test('cnpj', t => {
const expect = leite.empresa.cnpj()
t.is(typeof expect, 'string')
t.is(expect.length, 14)
})
test('cnpj formatado', t => {
const expect = leite.empresa.cnpj({ formatad... | 27,098 |
https://github.com/lorceroth/speculo/blob/master/plugins/reddit/services/index.ts | Github Open Source | Open Source | MIT | null | speculo | lorceroth | TypeScript | Code | 4 | 11 | export * from './reddit-service';
| 27,740 |
https://github.com/paralin/nora/blob/master/clara/AuthTicket.cs | Github Open Source | Open Source | BSD-2-Clause | 2,015 | nora | paralin | C# | Code | 150 | 480 | using SteamKit2;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using System.Net;
namespace nora.clara {
class AuthTicket {
public static ImmutableArray<byte> CreateAuthTicket(ImmutableArray<byte> token, IPAddress ip) {
uint sessionSize = 4 + // unknown 1
... | 1,229 |
https://github.com/asokraju/sb3-seir/blob/master/old/testing.py | Github Open Source | Open Source | MIT | null | sb3-seir | asokraju | Python | Code | 62 | 241 | import os
import gym
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import stable_baselines3
from stable_baselines3.common.env_checker import check_env
from stable_baselines3 import TD3
from stable_baselines3.common import results_plotter
from stable_baselines3.common.monitor import Monitor
from s... | 39,830 |
https://github.com/simonferquel/simcim/blob/master/SimCim.Root.V2/InfrastructureObjectScopeExtensions.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | simcim | simonferquel | C# | Code | 7,913 | 43,143 | using Microsoft.Management.Infrastructure;
using Microsoft.Management.Infrastructure.Options;
using SimCim.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Threading.Tasks;
using System.Threading.Tasks;
namespace SimCim.Root.V2
{
public static class SimCimScopeExtensi... | 10,807 |
https://github.com/kerriop/RZP_quest/blob/master/src/com/dima/func/compiled/OperationMath.java | Github Open Source | Open Source | MIT | 2,021 | RZP_quest | kerriop | Java | Code | 131 | 403 | package com.dima.func.compiled;
import com.dima.func.parser.LexemKind;
import java.util.ArrayList;
import java.util.List;
/**
* Оперирование базовыми математическими операциями
*/
public class OperationMath implements Operation {
private final LexemKind type;
private List<Operation> blocks;
public OperationMa... | 38,535 |
https://github.com/esap/mbti/blob/master/src/components/mbti.vue | Github Open Source | Open Source | MIT | 2,020 | mbti | esap | Vue | Code | 182 | 1,211 | <template>
<div>
<div style="color:red">
说明:MBTI共有74道题,在15分钟内完成!
请注意,题目的答案无对错之分,你不需要考虑哪个答案“应该”更好,而且不要在任何问题上思考太久,而是应该凭你心里的第一反应做出选择。如果你觉得在不同的情境里,两个答案或许都能反映你的倾向,请选择一个对于你的行为方式来说最自然、最顺畅和最从容的答案。
</div>
{{amt}}
<el-table
height="600"
stripe border
:data="tableData"
style="width: 100%">
... | 42,505 |
https://github.com/leonxi/celery/blob/master/models/user.js | Github Open Source | Open Source | Apache-2.0 | null | celery | leonxi | JavaScript | Code | 94 | 333 | var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;
var UserSchema = new Schema({
loginname: {type: String},
name: {type: String },
email: {type: String },
avatar: {type: String },
active: {type: Boolean, default: false },
accessToken: {type: String}
});
... | 37,791 |
https://github.com/ostumpf/visuallocalizer/blob/master/VLUnitTestsContextSolution/VBTests/references1.vb | Github Open Source | Open Source | BSD-2-Clause | 2,021 | visuallocalizer | ostumpf | Visual Basic | Code | 255 | 650 | Imports VBTests.My
Imports CSharpLib
Public Class references1
Private a_1 As String = VBTests.My.Resources.Resources.Key1
Private a_2 As String = My.Resources.Key1
Private a_3 As String = Resources.Key1
Private Sub m()
Dim b_1 As String = My . Resources. Key1
Dim ... | 12,932 |
https://github.com/HscongDrect/lbsengine/blob/master/example/view/src/views/index.vue | Github Open Source | Open Source | MIT | 2,017 | lbsengine | HscongDrect | Vue | Code | 210 | 778 | <template>
<div>
<div>
<span>{{ label }}</span>
<el-amap vid="amap" :plugin="plugin" class="amap-demo" :center="center">
</el-amap>
</div>
<ul v-infinite-scroll="loadmore" infinite-scroll-disabled="loading"
infinite-scroll-distance="10">
<li v-for="item in list">
<d... | 25,335 |
https://github.com/Linearity-Js/Linearity/blob/master/src/app/solver/advanced/gauss/gauss.component.spec.ts | Github Open Source | Open Source | MIT | 2,021 | Linearity | Linearity-Js | TypeScript | Code | 54 | 180 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { GaussComponent } from './gauss.component';
describe('GaussComponent', () => {
let component: GaussComponent;
let fixture: ComponentFixture<GaussComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
decl... | 18,975 |
https://github.com/jneuendorf/StateMachineBox/blob/master/css/smb_default.sass | Github Open Source | Open Source | MIT | null | StateMachineBox | jneuendorf | Sass | Code | 136 | 477 | $hoverBGColor: #DDDDDD
$selectedHoverBGColor: #222222
.smb-default
.close
background-color: black
border: 2px solid white
border-radius: 50%
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5)
color: white
cursor: pointer
height: 25px
position: absolute
... | 9,911 |
https://github.com/Wayne1c/calcite/blob/master/druid/src/main/java/org/apache/calcite/adapter/druid/TimeExtractionFunction.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | calcite | Wayne1c | Java | Code | 382 | 868 | /*
* 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 ... | 11,943 |
https://github.com/Mattabase/ElytraBoosters/blob/master/src/main/kotlin/net/adriantodt/elytraboosters/ElytraBoostersPacketHandler.kt | Github Open Source | Open Source | Apache-2.0 | null | ElytraBoosters | Mattabase | Kotlin | Code | 146 | 1,164 | package net.adriantodt.elytraboosters
import io.netty.buffer.Unpooled
import net.adriantodt.elytraboosters.ElytraBoosters.configHolder
import net.adriantodt.elytraboosters.data.ElytraBoostersData.BoosterType.*
import net.fabricmc.fabric.api.network.ServerSidePacketRegistry
import net.minecraft.nbt.CompoundTag
import n... | 34,878 |
https://github.com/KeesInternet/html_test/blob/master/src/Form/HtmlCheckerSettingsForm.php | Github Open Source | Open Source | MIT | null | html_test | KeesInternet | PHP | Code | 399 | 1,770 | <?php
namespace Drupal\html_checker\Form;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Class HtmlCheckerSettingsForm.
*
* @package Drupal\html_checker\Form
*/
class HtmlCheckerSettingsForm extends ConfigFormBase
{
/**
* {@inheritdoc}
*/
protected function ... | 32,034 |
https://github.com/JaydipRadadiya/green-build/blob/master/app/src/main/java/com/kevalpatel2106/ci/greenbuild/about/AboutHelper.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | green-build | JaydipRadadiya | Kotlin | Code | 356 | 1,295 | /*
* Copyright 2018 Keval Patel.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writi... | 19,089 |
https://github.com/maushambutwal20/maushamlaravel/blob/master/resources/views/back/pages/updatestudent.blade.php | Github Open Source | Open Source | MIT | null | maushamlaravel | maushambutwal20 | PHP | Code | 115 | 574 | @extends('back.layouts.main')
@section('content')
<h1> Update Roll.No </h1>
<form role="form" method="post" action="">
@csrf
<div class="form-group">
<label> Name:</label>
<input type="text" name="name" class="form-control" value="{{old('name')?old('name'):$student->name}}">
</div... | 33,558 |
https://github.com/LeeBoonKong/Material-CalendarView/blob/master/app/src/main/java/com/leeboonkong/materialcalendarview/sample/logic/presenter/MainPresenter.java | Github Open Source | Open Source | MIT | 2,021 | Material-CalendarView | LeeBoonKong | Java | Code | 89 | 297 | package com.leeboonkong.materialcalendarview.sample.logic.presenter;
import android.support.annotation.Nullable;
import com.leeboonkong.materialcalendarview.sample.logic.presenter_view.MainView;
public final class MainPresenter {
@Nullable
private MainView view;
public MainPresenter(@Nullable MainView... | 30,720 |
https://github.com/milad2281/EraShop/blob/master/index.php | Github Open Source | Open Source | MIT | null | EraShop | milad2281 | PHP | Code | 321 | 1,067 | <?php include "includes/header.php" ?>
<title>Era Shop || Online Retail Shop</title>
</head>
<body>
<!-- preloader -->
<?php include "includes/preloader.php" ?>
<!-- cart -->
<?php include "includes/cart.php" ?>
<!-- header, nav, banner, and skills -->
<?php include "includes/navigation.php" ?... | 30,530 |
https://github.com/Blockception/BC-Minecraft-Bedrock-Vanilla-Data/blob/master/scraper/Scraper/RP/Classes/Sound/Sound - Initialize.cs | Github Open Source | Open Source | BSD-3-Clause | null | BC-Minecraft-Bedrock-Vanilla-Data | Blockception | C# | Code | 45 | 134 | using System;
using System.Text.Json.Serialization;
using Scraper.Converters;
namespace Scraper.RP {
public class SoundConverter : IDToStringConverter<Sound> { }
///DOLATER <summary>add description for class: Model</summary>
[JsonConverter(typeof(SoundConverter))]
public partial class Sound {
... | 6,804 |
https://github.com/ethereumjs/ethereum-verified-contracts/blob/master/contracts/0x10d4b24938f6de7ae4048c7273f09c50d5caf4d9-1/src/CertificationDb.sol | Github Open Source | Open Source | MIT | 2,018 | ethereum-verified-contracts | ethereumjs | Gerber Image | Code | 1,285 | 3,838 | pragma solidity ^0.4.2;
/**
* @notice Declares a contract that can have an owner.
*/
contract OwnedI {
event LogOwnerChanged(address indexed previousOwner, address indexed newOwner);
function getOwner()
constant
returns (address);
function setOwner(address newOwner)
returns (boo... | 39,929 |
https://github.com/SeanKilleen/Docs/blob/master/aspnet/web-forms/overview/getting-started/hands-on-labs/whats-new-in-web-forms-in-aspnet-45/samples/sample25.cs | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,022 | Docs | SeanKilleen | C# | Code | 16 | 47 | public void SaveCustomer(Customer customer)
{
if (this.ModelState.IsValid)
{
using (var db = new ProductsContext())
{
... | 12,842 |
https://github.com/vhnegrisoli/analisador-arquivos/blob/master/src/test/java/com/br/analisadorarquivos/modulos/arquivo/dto/VendaTest.java | Github Open Source | Open Source | MIT | null | analisador-arquivos | vhnegrisoli | Java | Code | 168 | 1,100 | package com.br.analisadorarquivos.modulos.arquivo.dto;
import com.br.analisadorarquivos.modulos.comum.exception.ValidacaoException;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.util.List;
import static com.br.analisadorarquivos.modulos.arquivo.mocks.ItemVendaMocks.umItemVe... | 12,527 |
https://github.com/aospinagcg/gc_meet_back/blob/master/app/Models/Gcm_Restriccion_Rol_Representante.php | Github Open Source | Open Source | MIT | null | gc_meet_back | aospinagcg | PHP | Code | 41 | 170 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use App\Utilities\ModelWithEvents;
class Gcm_Restriccion_Rol_Representante extends ModelWithEvents
{
use HasFactory;
protected $table = 'gcm_restricciones_rol_representante';
protected $primaryKey = ['id_tipo_reunion', '... | 7,605 |
https://github.com/kujirahand/konawiki2/blob/master/kona-engine/plugins/meta_table.inc.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | konawiki2 | kujirahand | PHP | Code | 56 | 254 | <?php
/** konawiki plugins -- メタテーブルプラグイン
* - [書式] {{{#meta_table(データ) }}}
* - [引数]
* - [使用例]
* - [備考] メタアイテム一覧ページを作成するプラグイン
* - [公開設定] 公開
{{{
// 管理ページ
{{{#meta_table
{
"name": "物件",
"fields": ["タイプ", "価格", "交通", "所在地", "間取り"],
"select": {
"タイプ": ["中古", "新築"]
}
}
}}}
// 個別ページ
... | 36,383 |
https://github.com/carlito767/ChineseCheckersLove/blob/master/sources/boards/chinese_checkers_variant.lua | Github Open Source | Open Source | MIT | 2,019 | ChineseCheckersLove | carlito767 | Lua | Code | 183 | 298 | local RGB = require "sources.rgb"
-- Identifiant du plateau de jeu
local id = "boardIdVariant"
-- Définition du plateau de jeu
local board = {
" 2 ",
" 2 2 ",
" 2 2 2 ",
" 2 2 2 2 ",
" * * * * * ",
"* * * * * *",
" * * * * * ",
"* * * * * *",
" * * * * * ",
"* * * * * *",
" *... | 28,577 |
https://github.com/ChaoticEvil/satan/blob/master/app/services/UserService.scala | Github Open Source | Open Source | BSD-3-Clause | null | satan | ChaoticEvil | Scala | Code | 27 | 101 | package services
import javax.inject._
import models.users.{User, UserList}
import daos.UserDAO
@Singleton
class UserService @Inject() (userDAO: UserDAO) {
def all: List[UserList] = userDAO.all
def getWholeById(userId: Long) = userDAO.getWholeById(userId)
}
| 30,026 |
https://github.com/creatubbles/ctb-api-unity/blob/master/Assets/Scripts/Creatubbles/Api/Data/UploadExtension.cs | Github Open Source | Open Source | MIT | 2,017 | ctb-api-unity | creatubbles | C# | Code | 445 | 1,235 | //
// UploadExtension.cs
// Creatubbles API Client Unity SDK
//
// Copyright (c) 2016 Creatubbles Pte. Ltd.
//
// 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, i... | 2,293 |
https://github.com/yankovski88/job4j/blob/master/chapter_001/src/test/java/ru/job4j/calculate/package-info.java | Github Open Source | Open Source | Apache-2.0 | null | job4j | yankovski88 | Java | Code | 21 | 62 | /**
* Package for CalculateTest task.
*
* @author Yura Yankovski (mailto:boets003@mail.ru)
* @version $Id$
* @since 0.1
*/
package ru.job4j.calculate; | 50,359 |
https://github.com/KidusMT/One-Identity/blob/master/app/src/main/java/com/gdg/app/ui/main/MainPresenter.java | Github Open Source | Open Source | Apache-2.0 | null | One-Identity | KidusMT | Java | Code | 133 | 606 | package com.gdg.app.ui.main;
import com.gdg.app.data.DataManager;
import com.gdg.app.ui.base.BasePresenter;
import com.gdg.app.utils.rx.SchedulerProvider;
import javax.inject.Inject;
import io.reactivex.disposables.CompositeDisposable;
public class MainPresenter<V extends MainMvpView> extends BasePresenter<V>
... | 22,542 |
https://github.com/ichitaso/TwitterListEnabler/blob/master/Twitter-Dumped/7.52/TNLHTTPHeaderProvider-Protocol.h | Github Open Source | Open Source | MIT | 2,019 | TwitterListEnabler | ichitaso | C | Code | 52 | 191 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <T1Twitter/NSObject-Protocol.h>
@class NSDictionary, NSURLRequest;
@protocol TNLRequest;
@protocol TNLHTTPHeaderProvider <NSO... | 21,998 |
https://github.com/all-iver/UnityApplePencil/blob/master/UnityView+iOS.mm | Github Open Source | Open Source | MIT | 2,022 | UnityApplePencil | all-iver | Objective-C++ | Code | 432 | 1,272 | /*
* This is a copy of Unity's UnityView+iOS.mm that it puts in your built XCode project. It has been modified to send
* Apple Pencil touch events to iOSApplePencil.hpp, which buffers them and sends them to Unity. The only modifications
* are the touch event handlers at the bottom, and an extra include line.
*/... | 46,645 |
https://github.com/hbisneto/FileDownloader/blob/master/FileDownloader/Form1.vb | Github Open Source | Open Source | MIT | null | FileDownloader | hbisneto | Visual Basic | Code | 81 | 268 | Public Class Form1
Public MySystem As MySystem = New MySystem()
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
AppProgressBar.Visible = False
AppStatus.Visible = False
MySystem.CheckLocation()
End Sub
Private Sub DownloadButton_Click(sender As Obj... | 40,738 |
https://github.com/sah-lob/job4j_spring/blob/master/src/main/java/ru/job4j/storage/MemoryStorage.java | Github Open Source | Open Source | Apache-2.0 | null | job4j_spring | sah-lob | Java | Code | 83 | 255 | package ru.job4j.storage;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
@Component
public class MemoryStorage implements Storage {
private List<User> users = new ArrayList<>();
private AtomicInteger atomi... | 23,818 |
https://github.com/jastacdoss/natca-wifi/blob/master/frontend/src/pages/components/BasicElementsSection.vue | Github Open Source | Open Source | MIT | null | natca-wifi | jastacdoss | Vue | Code | 1,479 | 7,196 | <template>
<div class="section section-basic" id="basic-elements">
<div class="container">
<h3 class="title">Basic Elements</h3>
<h4>Buttons</h4>
<p class="category">Pick your style</p>
<div class="row">
<div class="col-md-10">
... | 50,249 |
https://github.com/rohan2453/ZooRestaurant/blob/master/src/main/java/edu/nwmissouri/zoo04lab/BlackPanther.java | Github Open Source | Open Source | Apache-2.0 | null | ZooRestaurant | rohan2453 | Java | Code | 70 | 196 | package edu.nwmissouri.zoo04lab;
/**
*
* @author Hemanth Sai Reddy Velamuri
*/
public class BlackPanther extends Animal {
/**
* String declaration.
*
* @param name
*/
public BlackPanther(String name) {
super(name);
}
/**
* BlackPanther Speak
*
*/
... | 2,970 |
https://github.com/rmarks6767/FollowAlongAPI/blob/master/Model/GraphTypes/NameGraph.cs | Github Open Source | Open Source | MIT | null | FollowAlongAPI | rmarks6767 | C# | Code | 105 | 272 | //TODO 1.3.8.b.2 Add references to the classes used with the inheritance.
using FollowAlongLearnAPI.Model.Base;
using GraphQL.Types;
namespace FollowAlongLearnAPI.Model.GraphTypes
{
//TODO 1.3.8.b.1 This one will be set up very similarly to the NameGraph, add inheritance and map all of the fields.
public clas... | 18,563 |
https://github.com/Natashkinsasha/nest-starter/blob/master/src/service/JwtService.ts | Github Open Source | Open Source | MIT | 2,021 | nest-starter | Natashkinsasha | TypeScript | Code | 168 | 596 | import { Inject, Injectable } from '@nestjs/common';
import * as BPromise from 'bluebird';
import * as jwt from 'jsonwebtoken';
import IPayloadDTO from '../DTO/IPayloadDTO';
import User from '../model/User';
import ConfigService from './ConfigService';
@Injectable()
export default class JwtService {
constructor(priv... | 9,086 |
https://github.com/dssulim/example-app/blob/master/resources/views/news/myWelcome.blade.php | Github Open Source | Open Source | MIT | null | example-app | dssulim | PHP | Code | 20 | 94 | @extends('layouts.main')
@section('title') Главная - @parent @stop
@section('content')
<div class="col">
<h1>Приветсвуем на сайте новостей</h1>
<a href="{{ route('news.add') }}">Предложить новость</a>
</div>
@endsection | 9,536 |
https://github.com/TheeMattOliver/gatsby-theme-ui-boilerplate/blob/master/src/components/Link/Link.js | Github Open Source | Open Source | MIT | null | gatsby-theme-ui-boilerplate | TheeMattOliver | JavaScript | Code | 64 | 174 | /** @jsxImportSource theme-ui */
import React from "react"
import { Link as GatsbyLink } from "gatsby"
// this rule silences the 'Assign arrow function to a variable before exporting as module' warning
/* eslint-disable import/no-anonymous-default-export */
export default props => (
<GatsbyLink
{...props}
a... | 46,507 |
https://github.com/pablo-mansanet-bluefruit/efm32gg11b/blob/master/src/rtcc/combcnt.rs | Github Open Source | Open Source | MIT | 2,021 | efm32gg11b | pablo-mansanet-bluefruit | Rust | Code | 82 | 234 | #[doc = "Reader of register COMBCNT"]
pub type R = crate::R<u32, super::COMBCNT>;
#[doc = "Reader of field `PRECNT`"]
pub type PRECNT_R = crate::R<u16, u16>;
#[doc = "Reader of field `CNTLSB`"]
pub type CNTLSB_R = crate::R<u32, u32>;
impl R {
#[doc = "Bits 0:14 - Pre-Counter Value"]
#[inline(always)]
pub fn... | 16,253 |
https://github.com/tourstream/fti-portal-styleguide/blob/master/source/scss/components/_loaders.scss | Github Open Source | Open Source | MIT | null | fti-portal-styleguide | tourstream | SCSS | Code | 292 | 1,147 | $radius: 15px;
$one-third: 7.5px;
$two-thirds: 13px;
$animation: ease-in-out;
$animation-period: 1.44s;
$line-animation-period: -.12s;
.loader {
align-items: center;
box-sizing: border-box;
display: flex;
flex: 0 1 auto;
flex-direction: column;
height: 46px;
justify-content: center;
}
.loading-spinner {... | 41,089 |
https://github.com/latb2014/VTWork2016/blob/master/CPPMaybe/TestThisOut.cpp | Github Open Source | Open Source | MIT | null | VTWork2016 | latb2014 | C++ | Code | 175 | 586 | /*
* TestThisOut.cpp
*
* Created on: May 23, 2016
* Author: Barrett
*/
#include <iostream>
#include <cstdarg>
using namespace std;
inline double sum(int num, ...){
va_list argu;
double sum;
va_start(argu, num);
for (int i = 0; i < num; i++){
sum += va_arg(argu, double);
}
va_end(argu);
return sum... | 2,245 |
https://github.com/warzes/SapphireShooter/blob/master/bin/Data/DiffuseNormal.frag | Github Open Source | Open Source | MIT | 2,022 | SapphireShooter | warzes | GLSL | Code | 95 | 343 | #version 150
#include "CommonCode.frag"
uniform sampler2D diffuseTex0;
uniform sampler2D normalTex1;
in vec4 vWorldPos;
in vec3 vNormal;
in vec4 vTangent;
in vec2 vTexCoord;
#ifdef NUMSHADOWCOORDS
in vec4 vShadowPos[NUMSHADOWCOORDS];
#endif
out vec4 fragColor;
vec3 DecodeNormal(vec4 normalInput)
{
vec3 normal;
... | 47,410 |
https://github.com/RomeshAbeyawardena/Shared/blob/master/Shared.Library/Attributes/EncryptableAttribute.cs | Github Open Source | Open Source | MIT | null | Shared | RomeshAbeyawardena | C# | Code | 34 | 93 | using System;
namespace Shared.Library.Attributes
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class EncryptableAttribute : Attribute
{
public EncryptableAttribute(bool encryptField = true)
{
EncryptField = encryptField;
}
p... | 14,220 |
https://github.com/SkillsFundingAgency/tl-result-and-certification/blob/master/src/Sfa.Tl.ResultsAndCertification.Models/Contracts/Learner/LearnerRecord.cs | Github Open Source | Open Source | MIT | null | tl-result-and-certification | SkillsFundingAgency | C# | Code | 60 | 128 | using System;
namespace Sfa.Tl.ResultsAndCertification.Models.Contracts.Learner
{
public class LearnerRecord
{
public int ProfileId { get; set; }
public long Uln { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public DateTime Dat... | 37,394 |
https://github.com/P-Fleer/tr069/blob/master/gateway/inserts/bin/011_set_up_ip.sh | Github Open Source | Open Source | MIT | 2,022 | tr069 | P-Fleer | Shell | Code | 65 | 337 | #!/bin/sh
ORIGINAL_LOCAL_IP_ADDRESS=$(try_up_to_n_times "ip add show ${LOCAL_INTERFACE} | grep inet | awk '{ print \$2 }'")
mylogger "Removing ${ORIGINAL_LOCAL_IP_ADDRESS} ..."
sudo ip addr del ${ORIGINAL_LOCAL_IP_ADDRESS} dev ${LOCAL_INTERFACE}
mylogger "Using ${IP_ADDRES_BYTE_TO_SERVE} as byte in 192.168.X.${OWN_I... | 41,605 |
https://github.com/escudocloud/distributed-shuffleindex/blob/master/tests/test_authencryptionlayer.py | Github Open Source | Open Source | MIT | 2,017 | distributed-shuffleindex | escudocloud | Python | Code | 114 | 492 | from shuffleindex.layers import AuthEncryptionLayer, PredicateLayer
from shuffleindex.layers.data import MemoryDataLayer
import pytest
class TestAuthEncryptionLayer:
def setup_method(self, test_method):
key = '0123456789ABCDEF'
self.memorylayer = MemoryDataLayer()
self.predicatelayer = Pre... | 16,303 |
https://github.com/matyioe92/SlinkyTyped/blob/master/p/phaser/src/main/scala/typingsSlinky/phaser/Phaser/Types/Core/ScaleConfig.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | matyioe92 | Scala | Code | 674 | 1,938 | package typingsSlinky.phaser.Phaser.Types.Core
import org.scalajs.dom.raw.HTMLElement
import typingsSlinky.phaser.Phaser.Scale.CenterType
import typingsSlinky.phaser.Phaser.Scale.ScaleModeType
import typingsSlinky.phaser.Phaser.Scale.ZoomType
import typingsSlinky.phaser.integer
import org.scalablytyped.runtime.StObjec... | 40,687 |
https://github.com/luanlv/vndocs2/blob/master/app/models/User.scala | Github Open Source | Open Source | Apache-2.0 | null | vndocs2 | luanlv | Scala | Code | 262 | 708 | package models
import java.util.UUID
import com.mohiva.play.silhouette.api.util.PasswordInfo
import com.mohiva.play.silhouette.api.{ Identity, LoginInfo }
import models.daos.TemporalModel
import org.joda.time.DateTime
import play.api.libs.json._
//import reactivemongo.bson.BSONObjectID
//import reactivemongo.bson.BSO... | 3,988 |
https://github.com/CarlosWGama/site-carloswgama/blob/master/resources/views/admin/aplicativos/shared/_form.blade.php | Github Open Source | Open Source | MIT | null | site-carloswgama | CarlosWGama | PHP | Code | 196 | 996 | <!-- DADOS DO SERVICO -->
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Dados do Aplicativo</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
... | 38,331 |
https://github.com/KKHarmless/crayon/blob/master/src/ecs/cell.rs | Github Open Source | Open Source | Apache-2.0 | 2,018 | crayon | KKHarmless | Rust | Code | 365 | 946 | //! A thread-safe `RefCell`.
use std::cell::UnsafeCell;
use std::ops::{Deref, DerefMut};
use std::sync::atomic::{AtomicUsize, Ordering};
/// Wraps a borrowed reference to a value in a RefCell box. A wrapper
/// type for an immutably borrowed value from a RefCell<T>.
#[derive(Debug)]
pub struct Ref<'a, T: 'a> {
fl... | 5,769 |
https://github.com/smartsteuer/caesar-bot/blob/master/app/caesar/gears/thanks-gear.spec.js | Github Open Source | Open Source | MIT | 2,016 | caesar-bot | smartsteuer | JavaScript | Code | 76 | 242 | let expect = require('chai').expect;
let unroll = require('unroll');
let thanks = require('./thanks-gear');
// wrap mochas it function
unroll.use(it);
describe('Thanks gear', () => {
unroll('should react to #message', (done, fixture) => {
expect(thanks.regex.test(fixture.message)).to.equal(true);
done();
}, [... | 12,759 |
https://github.com/mezz/BloodMagic/blob/master/src/main/java/WayofTime/bloodmagic/registry/ModBlocks.java | Github Open Source | Open Source | CC-BY-4.0 | 2,021 | BloodMagic | mezz | Java | Code | 1,022 | 6,730 | package WayofTime.bloodmagic.registry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import n... | 36,657 |
https://github.com/ortizmas/igrejafadba.dev/blob/master/resources/views/Painel/perfiles/show.blade.php | Github Open Source | Open Source | MIT | null | igrejafadba.dev | ortizmas | PHP | Code | 38 | 202 | @extends('painel.layouts.painel')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">{{ $task->name }}</div>
<div class="panel-body">
... | 19,033 |
https://github.com/qhanam/CommitMiner/blob/master/js-analysis/src/main/java/multidiffplus/jsanalysis/flow/JavaScriptAnalysis.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | CommitMiner | qhanam | Java | Code | 155 | 717 | package multidiffplus.jsanalysis.flow;
import java.util.Set;
import org.apache.commons.lang3.tuple.Pair;
import org.mozilla.javascript.ast.AstRoot;
import ca.ubc.ece.salt.gumtree.ast.ClassifiedASTNode;
import multidiff.analysis.flow.Analysis;
import multidiff.analysis.flow.StackFrame;
import multidiffplus.cfg.Analys... | 26,869 |
https://github.com/adingzl/liuyi-im/blob/master/liuyi-im-gateway-ws/jssdk.js | Github Open Source | Open Source | MIT | 2,020 | liuyi-im | adingzl | JavaScript | Code | 611 | 2,164 | var liuyiImJsSdkMap = function () {
var holder = {};
this.put = function (key, value) {
holder[key] = value;
}
this.size = function () {
var count = 0;
for (var attr in holder) {
count++;
}
return count;
}
this.get = function (key) {
if... | 26,526 |
https://github.com/axell-brendow/networks-i/blob/master/works/tcp-naval-battle-game/server/observers/shoot.js | Github Open Source | Open Source | MIT | 2,020 | networks-i | axell-brendow | JavaScript | Code | 434 | 1,589 | const repositories = require("../repositories");
const { Message, Shot, Player, Board, Match } = require("../../shared");
/**
* @param {import('../../shared/Shot')} shot
* @param {import('../../shared/Board')} board
*/
const hitShip = (shot, board) =>
board.ships.find(
ship =>
ship.points.find(
... | 34,488 |
https://github.com/yegor256/codexia-bot/blob/master/src/main/resources/db/changelog/sql/2020-04-20_14:58_too_many_stars_result.sql | Github Open Source | Open Source | MIT | 2,020 | codexia-bot | yegor256 | SQL | Code | 38 | 148 | create table "too_many_stars_result"
(
"id" bigserial primary key,
"uuid" uuid not null unique,
"github_repo_id" bigint not null references github_repo (id),
"github_repo_stat_id" bigint not null references github_repo_stat (id),
"created_at" timesta... | 35,647 |
https://github.com/drone/ff-dotnetcore-server-sdk/blob/master/CfClient/client/cache/IMyCache.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | ff-dotnetcore-server-sdk | drone | C# | Code | 134 | 445 | using io.harness.cfsdk.HarnessOpenAPIService;
using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Text;
namespace io.harness.cfsdk.client.cache
{
public interface IMyCache<K,V> : ICache<K, V>
{
IDictionary<K, V> GetAllElements();
}
public class Me... | 24,332 |
https://github.com/BrnSlr/CuteBoard/blob/master/ui/board/chrono/lapmodel.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | CuteBoard | BrnSlr | C++ | Code | 456 | 1,459 | /*
Copyright (C) 2014 by Elvis Angelaccio <elvis.angelaccio@kde.org>
This file is part of Kronometer.
Kronometer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the Licens... | 44,331 |
https://github.com/jfreeman812/pyrax/blob/master/samples/cloud_dns/add_ptr_records.py | Github Open Source | Open Source | Apache-2.0 | null | pyrax | jfreeman812 | Python | Code | 186 | 478 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c)2012 Rackspace US, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.ap... | 30,528 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.