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/DerTee/BNA/blob/master/BNA/src/Graphics/IndexBuffer.bf | Github Open Source | Open Source | MIT | 2,020 | BNA | DerTee | null | Spoken | 332 | 1,163 | using System;
using BNA.bindings;
namespace BNA.Graphics
{
public sealed class IndexBuffer : IDisposable
{
private FNA3D_DeviceHandle* _device;
private FNA3D_Buffer* _buffer;
private int _capacity;
private int _count;
private bool _dynamic;
private IndexElementSize _elementType;
public int IndicesCou... | 5,646 |
https://github.com/concord-consortium/dq-playground/blob/master/src/diagram/models/test-utils.ts | Github Open Source | Open Source | MIT | null | dq-playground | concord-consortium | TypeScript | Code | 67 | 176 | import { types } from "mobx-state-tree";
import { DQNode } from "./dq-node";
import { Variable } from "./variable";
import { DQRoot, DQRootType } from "./dq-root";
// references have to be within the same tree so we need some container
export const GenericContainer = types.model("GenericContainer", {
items: types.ar... | 28,398 |
https://github.com/ChristopherWen/Debug_zircon/blob/master/build-x64-release/system/ulib/unittest.hostlib/config-module.h | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,018 | Debug_zircon | ChristopherWen | C | Code | 35 | 239 | #pragma once
#define MODULE_COMPILEFLAGS "-I./build-x64-release/system/ulib/pretty/gen/include_-Isystem/ulib/pretty/include_-Isystem/ulib/unittest/include"
#define MODULE_CFLAGS ""
#define MODULE_CPPFLAGS ""
#define MODULE_ASMFLAGS ""
#define MODULE_OPTFLAGS ""
#define MODULE_LDFLAGS ""
#define MODULE_SRCDEPS "./build-... | 44,843 |
https://github.com/DanilChugaev/kmtt-admin/blob/master/src/components/ui-kit/styles/typography.scss | Github Open Source | Open Source | MIT | null | kmtt-admin | DanilChugaev | SCSS | Code | 10 | 36 | /* типографика */
@mixin ui-kit-typography() {
font-family: Roboto, sans-serif;
}
| 45,403 |
https://github.com/Josandonas/DIO_Bank/blob/master/View/TelaTransferir.cs | Github Open Source | Open Source | Unlicense | null | DIO_Bank | Josandonas | C# | Code | 73 | 296 | using System;
namespace DIO_Bank.View{
public class TelaTransferir{
public void titulo(){
Console.WriteLine("*************************************************");
Console.WriteLine("* Transferência *");
Console.WriteLine("*******************... | 27,304 |
https://github.com/niuniuzuiniu/KBCommonKit/blob/master/Example/Pods/Target Support Files/Pods-KBCommonKit_Example/Pods-KBCommonKit_Example-dummy.m | Github Open Source | Open Source | MIT | 2,018 | KBCommonKit | niuniuzuiniu | Objective-C | Code | 10 | 54 | #import <Foundation/Foundation.h>
@interface PodsDummy_Pods_KBCommonKit_Example : NSObject
@end
@implementation PodsDummy_Pods_KBCommonKit_Example
@end
| 24,121 |
https://github.com/mixcore/mix.heart/blob/master/src/Mix.Heart/Extensions/StringExtension.cs | Github Open Source | Open Source | MIT | 2,021 | mix.heart | mixcore | C# | Code | 551 | 1,631 | using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
namespace Mix.Heart.Extensions
{
public static class StringExtension
{
public static T ToEnum<T>(this string str)
{
return (T)Enum.Parse(typeof(T), str);
... | 24,801 |
https://github.com/miemengniao/PowerDiagnostics/blob/master/DiagExperimentsSolution/ClrDiagnostics/Triggers/TriggerOnMemoryUsage.cs | Github Open Source | Open Source | MIT | 2,021 | PowerDiagnostics | miemengniao | C# | Code | 124 | 510 | using System;
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using System.Text;
using Microsoft.Diagnostics.NETCore.Client;
using Microsoft.Diagnostics.Tracing;
using Microsoft.Diagnostics.Tracing.Parsers;
namespace ClrDiagnostics.Triggers
{
public class TriggerOnMemoryUsage : TriggerBase
... | 3,777 |
https://github.com/Lc-Mygit/dataCentre/blob/master/src/components/useranalysis/userSource.vue | Github Open Source | Open Source | MIT | 2,019 | dataCentre | Lc-Mygit | Vue | Code | 892 | 4,712 | <template>
<div class="userSource-Box">
<el-row :gutter="12">
<el-col :span="8">
<div class="top-pagename">
<div class="line"></div>用户来源
</div>
</el-col>
</el-row>
<el-row>
<div class="channel-table">渠道列表</div>
</el-row>
<div class="row-gutter">
... | 48,984 |
https://github.com/bg1bgst333/Sample/blob/master/java/Thread/Thread/src/Thread/Thread/src/MainClass.java | Github Open Source | Open Source | MIT | 2,023 | Sample | bg1bgst333 | Java | Code | 44 | 179 | // メインクラス
public class MainClass{ // MainClassの定義
// Javaのエントリポイント
public static void main(String[] args){ // mainメソッドの定義
// CustomThread前.
System.out.println("CustomThread before."); // "CustomThread before."と出力.
// CustomThread開始.
CustomThread ct = new CustomThread(); // CustomThreadオブジェクトctを生成.
ct.sta... | 557 |
https://github.com/AnyPresence/scheduler_extension/blob/master/app/helpers/scheduler_extension/extensions_helper.rb | Github Open Source | Open Source | MIT | 2,014 | scheduler_extension | AnyPresence | Ruby | Code | 6 | 17 | module SchedulerExtension
module ExtensionsHelper
end
end
| 20,337 |
https://github.com/datagym-ai/datagym-core/blob/master/datagym-backend/src/main/java/ai/datagym/application/labelIteration/factories/ValueChangeViewModelFactory.java | Github Open Source | Open Source | MIT | 2,022 | datagym-core | datagym-ai | Java | Code | 146 | 924 | package ai.datagym.application.labelIteration.factories;
import ai.datagym.application.labelIteration.entity.LcEntryValueChange;
import ai.datagym.application.labelIteration.entity.classification.LcEntryCheckListChangeValue;
import ai.datagym.application.labelIteration.entity.classification.LcEntrySelectChangeValue;
i... | 52,886 |
https://github.com/jelhan/ember-composable-helpers/blob/master/app/helpers/queue.js | Github Open Source | Open Source | MIT | 2,022 | ember-composable-helpers | jelhan | JavaScript | Code | 7 | 23 | export { default, queue } from 'ember-composable-helpers/helpers/queue';
| 41,822 |
https://github.com/estevaorod/components-backend-core/blob/master/src/Optsol.Components.Domain/Notifications/Contracts/EntityContract.cs | Github Open Source | Open Source | MIT | 2,021 | components-backend-core | estevaorod | C# | Code | 38 | 121 | using Flunt.Validations;
using Optsol.Components.Domain.Entities;
using System;
namespace Optsol.Components.Domain.Notifications.Contracts
{
public class EntityContract : Contract<Entity>
{
public EntityContract(Entity entity)
{
Requires()
.IsLowerThan(entity.Create... | 28,255 |
https://github.com/JohnYu588/vue-Mvvm/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | vue-Mvvm | JohnYu588 | Ignore List | Code | 2 | 12 | index1.html
Mvue1.js
| 12,938 |
https://github.com/mrgroen/mendix-qzIndustryPrinting/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,016 | mendix-qzIndustryPrinting | mrgroen | Ignore List | Code | 14 | 61 | test/deployment/
test/.project
test/theme/
test/.project
*.launch
*.tmp
*.lock
.idea/
dist/
node_modules/
.editorconfig
*DS_Store*
.vscode/
*.bak
| 51,945 |
https://github.com/mazzystr/kubevirt/blob/master/pkg/virt-controller/services/multus_annotations.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | kubevirt | mazzystr | Go | Code | 335 | 1,001 | /*
* This file is part of the KubeVirt project
*
* 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 la... | 40,127 |
https://github.com/chrisguttandin/standardized-audio-context/blob/master/src/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.ts | Github Open Source | Open Source | MIT | 2,023 | standardized-audio-context | chrisguttandin | TypeScript | Code | 30 | 88 | import { TNativeAudioBuffer } from '../types';
export const testAudioBufferCopyChannelMethodsOutOfBoundsSupport = (nativeAudioBuffer: TNativeAudioBuffer): boolean => {
try {
nativeAudioBuffer.copyToChannel(new Float32Array(1), 0, -1);
} catch {
return false;
}
return true;
};
| 51,862 |
https://github.com/ucx-code/ucXception/blob/master/fi-tools/sw-faults/Regression/testsuite/CPP/99/99.cpp._MLPA_2501.patch | Github Open Source | Open Source | BSD-3-Clause | 2,021 | ucXception | ucx-code | null | Spoken | 55 | 227 | --- 99.cpp
+++ 99.cpp._MLPA_2501 2016-03-30 02:54:37.104677500 +0100
@@ -1528,9 +1528,6 @@
debris[i].position[0] += debris[i].speed[0] * 0.1;
debris[i].position[1] += debris[i].speed[1] * 0.1;
debris[i].position[2] += debris[i].speed[2] * 0.1;
- ... | 43,398 |
https://github.com/fladdimir/casymda/blob/master/benchmark/analysis/gather_data.py | Github Open Source | Open Source | MIT | 2,023 | casymda | fladdimir | Python | Code | 38 | 169 | import pandas
# retrieve data relative to project root
data_paths = [
"benchmark/results/CPython38.csv",
"./benchmark/results/PyPy73.csv",
"../csa4cs/Benchmark/results/results.csv",
"../csa4j/benchmark/results_merged.csv",
]
result_path = "./benchmark/results/results.csv"
results = pandas.DataFrame()... | 40,004 |
https://github.com/CodeMallet/RaspberryPiMinecraft/blob/master/restart.sh | Github Open Source | Open Source | MIT | 2,017 | RaspberryPiMinecraft | CodeMallet | Shell | Code | 335 | 692 | #!/bin/bash
# Author: James A. Chambers - https://jamesachambers.com/
# More information at https://jamesachambers.com/raspberry-pi-minecraft-server-script-with-startup-service/
# GitHub Repository: https://github.com/TheRemote/RaspberryPiMinecraft
# Minecraft Server restart script - primarily called by minecraft servi... | 46,623 |
https://github.com/harsh414/movieapp/blob/master/resources/views/components/navbar.blade.php | Github Open Source | Open Source | MIT | null | movieapp | harsh414 | PHP | Code | 102 | 491 | <nav class="border-b lg:z-40 md:fixed lg:fixed border-gray-800 mb-4" style="width: 100vw" :class="{'md:bg-black lg:bg-black ': !top}"
@scroll.window="top= (window.pageYOffset)>30 ? false : true">
<div class="container px-4 mx-auto flex flex-col md:flex-row items-center justify-between px-4 py-4" x-data="{nav:f... | 5,485 |
https://github.com/acliuw/MINOBS-dp/blob/master/util.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,019 | MINOBS-dp | acliuw | C++ | Code | 54 | 158 | #include "util.h"
#include "debug.h"
bool Util::isOpt(const SearchResult &sr, const Types::Score &opt) {
double diff = sr.getScore() - opt;
const float EPSILON = 0.005;
return 100*(diff/(double)opt) < EPSILON;
}
std::pair<int, int> Util::getUniquePair(int n) {
int i = rand()%n;
int j = rand()%(n-1);
if (... | 42,069 |
https://github.com/martinmondaca/Employee_Tracker/blob/master/app.js | Github Open Source | Open Source | MIT | 2,021 | Employee_Tracker | martinmondaca | JavaScript | Code | 1,688 | 4,573 | const inquirer = require("inquirer");
const mysql = require("mysql");
const cTable = require("console.table");
const connection = mysql.createConnection({
host: 'localhost',
port: 3306,
user: 'root',
password: 'Kimberly#239776',
database: 'employee_tracker_db'
});
connection.connect(function (err)... | 24,424 |
https://github.com/purquapas/wb/blob/master/system/removebase | Github Open Source | Open Source | BSD-2-Clause | 2,015 | wb | purquapas | Shell | Code | 95 | 374 | #!/bin/sh
#v10.0.4
globalconf="${workdir}/cbsd.conf";
CBSDMODULE="build"
MYARG=""
MYOPTARG="ver arch target_arch basename stable"
MYDESC="Remove base dir"
ADDHELP="ver=9_1 for 9.1 ver=. for current.\n\
stable=1 for RELENG_X\n"
set -e
. ${globalconf}
set +e
. ${subr}
. ${system}
readconf buildworld.conf
. ${workdir}/u... | 52,452 |
https://github.com/w3f-grants-archive/bright-tresury/blob/master/backend/src/users/user-settings/dto/user-settings.dto.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | bright-tresury | w3f-grants-archive | TypeScript | Code | 39 | 98 | import { ApiProperty } from '@nestjs/swagger'
import { User } from '../../user.entity'
export class UserSettingsDto {
@ApiProperty({
description: 'Whether the user wants to receive email notifications',
})
isEmailNotificationEnabled: boolean
constructor({ isEmailNotificationEnabled }: User) {
... | 37,617 |
https://github.com/lfzm/Sunny/blob/master/Sunny/Services/SecurityData/_Interfaces/ISecurityDataSignService.cs | Github Open Source | Open Source | MIT | 2,017 | Sunny | lfzm | C# | Code | 23 | 83 | using System;
using System.Collections.Generic;
using System.Text;
namespace Sunny.Services.SecurityData
{
/// <summary>
/// 数据安全 签名验证服务
/// </summary>
public interface ISecurityDataSignService: ISecurityDataService
{
}
}
| 18,391 |
https://github.com/TrueFengTingGuo/Demolish/blob/master/Project/.import/explosion3.png-2e296891617bdbc7890bc41467a972cc.md5 | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | Demolish | TrueFengTingGuo | null | Spoken | 2 | 55 | source_md5="dbf92d84e00010917b7d8bf1b04ca9dc"
dest_md5="d22b3f5105a6aa697e7d938125253156"
| 44,951 |
https://github.com/tvanila/test.bdutil/blob/master/samples/streaming_word_count.sh | Github Open Source | Open Source | Apache-2.0 | 2,019 | test.bdutil | tvanila | Shell | Code | 565 | 2,078 | #!/bin/bash
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 42,265 |
https://github.com/bmw1989/test/blob/master/src/app/pages/loginRoot/service/authenticationService.ts | Github Open Source | Open Source | MIT | null | test | bmw1989 | TypeScript | Code | 297 | 1,207 | import {Injectable} from "@angular/core";
import {HttpClient, HttpHeaders} from "@angular/common/http";
import * as jwt_decode from "jwt-decode";
import { host } from '../../../util/constantes-app';
import {NavigationExtras, Router} from "@angular/router";
import {JwtHelperService} from "@auth0/angular-jwt";
import {Ut... | 13,592 |
https://github.com/PedroAix/proyecto-pizzeria/blob/master/frontend/pizzaiolo/src/app/loader/loader.component.scss | Github Open Source | Open Source | Apache-2.0 | 2,022 | proyecto-pizzeria | PedroAix | SCSS | Code | 112 | 464 | .spinner {
width: 40px;
height: 40px;
background-color: #333;
margin: auto;
-webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
animation: sk-rotateplane 1.2s infinite ease-in-out;
}
@-webkit-keyframes sk-rotateplane {
0% {
-webkit-transform: perspective(120px)
}
50% {
-webkit-transfo... | 37,559 |
https://github.com/syves/deploy_cap/blob/master/dbc_overflow/README.rdoc | Github Open Source | Open Source | MIT | 2,014 | deploy_cap | syves | RDoc | Code | 14 | 17 | A recreation of Stack overflow build with a rails framework, with non standard views. | 29,802 |
https://github.com/theprotonfactor/Silk.NET/blob/master/src/Core/Silk.NET.BuildTools/Converters/Khronos/TypedefDefinition.cs | Github Open Source | Open Source | MIT | 2,021 | Silk.NET | theprotonfactor | C# | Code | 82 | 225 | using System.Xml.Linq;
namespace Silk.NET.BuildTools.Converters.Khronos
{
public class TypedefDefinition
{
public string Name { get; }
public string Requires { get; }
public string Type { get; }
public TypedefDefinition(string name, string requires, string type)
{
... | 37,511 |
https://github.com/JRestovich/Docker-Plantium/blob/master/AutowareAuto/include/rosapi/srv/service_response_details.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | Docker-Plantium | JRestovich | C | Code | 31 | 185 | // generated from rosidl_generator_c/resource/idl.h.em
// with input from rosapi:srv/ServiceResponseDetails.idl
// generated code does not contain a copyright notice
#ifndef ROSAPI__SRV__SERVICE_RESPONSE_DETAILS_H_
#define ROSAPI__SRV__SERVICE_RESPONSE_DETAILS_H_
#include "rosapi/srv/detail/service_response_details__... | 45,421 |
https://github.com/dkBrazz/zserio/blob/master/compiler/extensions/java/src/zserio/extension/java/UserTypeTemplateData.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | zserio | dkBrazz | Java | Code | 72 | 269 | package zserio.extension.java;
import zserio.ast.ZserioType;
import zserio.extension.common.ZserioExtensionException;
import zserio.extension.java.types.JavaNativeType;
public class UserTypeTemplateData extends JavaTemplateData
{
public UserTypeTemplateData(TemplateDataContext context, ZserioType type) throws Zse... | 17,096 |
https://github.com/tim-mccurrach/django-s3-upload/blob/master/tests/test_widgets.py | Github Open Source | Open Source | MIT | 2,022 | django-s3-upload | tim-mccurrach | Python | Code | 559 | 3,033 | import json
from base64 import b64decode
from urllib.parse import parse_qs, urlparse
from django.conf import settings
from django.contrib.auth.models import User
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from django.test.utils import override_settings
from django.urls imp... | 30,867 |
https://github.com/SolonProject/solon-web/blob/master/packages/secrets/bin/index.js | Github Open Source | Open Source | MIT | 2,020 | solon-web | SolonProject | JavaScript | Code | 10 | 42 | #!/usr/bin/env node
process.on('unhandledRejection', err => {
throw err
})
require('../dist/src/cli.js') | 1,582 |
https://github.com/Sunbird-Ed/SunbirdEd-mobile-app/blob/master/src/app/profile/guest-edit/guest-edit.page.spec.ts | Github Open Source | Open Source | MIT | 2,023 | SunbirdEd-mobile-app | Sunbird-Ed | TypeScript | Code | 2,656 | 10,379 | import { GuestEditPage } from './guest-edit.page';
import {
FrameworkService,
FrameworkUtilService,
ProfileService,
Framework,
FrameworkCategoryCodesGroup,
GetSuggestedFrameworksRequest,
SharedPreferences
} from 'sunbird-sdk';
import { TranslateService } from '@ngx-translate/core';
import { ... | 18,780 |
https://github.com/GoogleForCreators/web-stories-wp/blob/master/packages/story-editor/src/utils/storyUpdates.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | web-stories-wp | GoogleForCreators | TypeScript | Code | 227 | 428 | /*
* Copyright 2022 Google LLC
*
* 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 agreed to ... | 29,313 |
https://github.com/cannon14/Event-Scheduling-System/blob/master/vendor/monolog/monolog/tests/Monolog/PsrLogCompatTest.php | Github Open Source | Open Source | MIT | null | Event-Scheduling-System | cannon14 | PHP | Code | 107 | 350 | <?php
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Monolog;
use Monolog\Handler\TestHandler;
use Monolog\Formatter\LineForma... | 9,084 |
https://github.com/isazi/AstroData/blob/master/src/Observation.cpp | Github Open Source | Open Source | Apache-2.0 | null | AstroData | isazi | C++ | Code | 813 | 2,224 | // Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON)
// Copyright 2017 Netherlands eScience Center
//
// 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.... | 51,156 |
https://github.com/Andersbakken/pf/blob/master/pf.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | pf | Andersbakken | C | Code | 512 | 1,534 | #ifndef PF_H
#define PF_H
#include <stdlib.h>
#include <string>
#include <vector>
#include <assert.h>
namespace pf {
struct Printable
{
struct Options {
size_t length { 0 };
char pad { 0 };
enum Type {
Text = 0,
Integer = 'd',
String = 's',
} typ... | 3,969 |
https://github.com/aerogear/AtHomeCommunity/blob/master/cli/dist/components/init.js | Github Open Source | Open Source | MIT | 2,022 | AtHomeCommunity | aerogear | JavaScript | Code | 910 | 2,247 | "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... | 24,935 |
https://github.com/hpetru/read_FEC/blob/master/fecreader/fec_alerts/management/commands/scrape_rss_filings.py | Github Open Source | Open Source | BSD-2-Clause | 2,016 | read_FEC | hpetru | Python | Code | 395 | 1,902 | import urllib2
import re
import datetime
import pytz
from lxml import etree
from StringIO import StringIO
from urllib import urlencode
from optparse import make_option
from dateutil.parser import parse as dateparse
from django.core.management.base import BaseCommand, CommandError
from fec_alerts.models import new_... | 29,129 |
https://github.com/demula/movilizer-webservice/blob/master/src/test/java/com/movilizer/mds/webservice/services/MovilizerConfBuilderTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | movilizer-webservice | demula | Java | Code | 52 | 243 | package com.movilizer.mds.webservice.services;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
@RunWith(JUnit4.class)
public class MovilizerConfBuilderTest {
... | 24,820 |
https://github.com/radtek/SMTPSimulator/blob/master/Granikos.SMTPSimulator.Test/PathTest.cs | Github Open Source | Open Source | MIT | 2,018 | SMTPSimulator | radtek | C# | Code | 220 | 1,273 | using System;
using System.Net.Mail;
using Granikos.SMTPSimulator.Core;
using Xunit;
namespace SMTPSimulatorTest
{
public class PathTest
{
[Theory]
[InlineData("<tester@test.de>", "tester", "test.de", new string[0])]
[InlineData("<a.b@d.e>", "a.b", "d.e", new string[0])]
[Inlin... | 11,124 |
https://github.com/ejsexton82/vim/blob/master/snippets/php/TTController.php | Github Open Source | Open Source | MIT | null | vim | ejsexton82 | PHP | Code | 73 | 209 | <?php
class TTCLASSController extends Controller {
public function filters()
{
return [
'https',
'accessControl',
];
}
public function accessRules()
{
return [
[
'allow',
'actions' => [
... | 52,370 |
https://github.com/IliesChibane/H4ckT0b3rF3st-2k21/blob/master/challenges/solving_project_euler/Eatbullets/Eatbullets_10.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,021 | H4ckT0b3rF3st-2k21 | IliesChibane | Python | Code | 46 | 111 | import math
def is_prime(n):
if n <= 1:
return False
max_div = math.floor(math.sqrt(n))
for i in range(2, 1 + max_div):
if n % i == 0:
return False
return True
sum = 2
for i in range(3, 2000000):
if is_prime(i):
sum = sum + i
print(sum) | 9,591 |
https://github.com/adrian-thurston/colm/blob/master/src/libfsm/idbase.h | Github Open Source | Open Source | MIT | 2,023 | colm | adrian-thurston | C++ | Code | 13 | 41 | #ifndef _IDBASE_H
#define _IDBASE_H
void translatedHostData( ostream &out, const std::string &data );
#endif
| 26,271 |
https://github.com/nop-os/nop/blob/master/libc/ctype.c | Github Open Source | Open Source | MIT | 2,022 | nop | nop-os | C | Code | 22 | 44 | #include <ctype.h>
int isspace(int chr) {
return (!chr || chr == ' ' || chr == '\n' || chr == '\t');
}
| 22,319 |
https://github.com/testcontainers/testcontainers-dotnet/blob/master/src/Testcontainers/Configurations/Commons/ResourceConfiguration.cs | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,023 | testcontainers-dotnet | testcontainers | C# | Code | 226 | 774 | namespace DotNet.Testcontainers.Configurations
{
using System;
using System.Collections.Generic;
using DotNet.Testcontainers.Builders;
using DotNet.Testcontainers.Containers;
using JetBrains.Annotations;
/// <inheritdoc cref="IResourceConfiguration{TCreateResourceEntity}" />
[PublicAPI]
public class Re... | 32,518 |
https://github.com/AmiriyaZAir/request_classificator/blob/master/src/cdt_impl.py | Github Open Source | Open Source | MIT | null | request_classificator | AmiriyaZAir | Python | Code | 1,220 | 5,393 | from util import callframe, flag, RequestIdentificator, ProcessedRequestIdentificator, RequestPartsArray, Listener
import urlparse
from deepdiff import DeepDiff
from genson import SchemaBuilder
import urllib
import pychrome
import json
import time
import sys
class CDTImplementation():
def __init__(self, tab, url... | 7,684 |
https://github.com/ap6108/bce-sdk-java/blob/master/src/main/java/com/baidubce/services/vcr/model/Location.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | bce-sdk-java | ap6108 | Java | Code | 204 | 543 | /*
* Copyright 2017 Baidu, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | 27,040 |
https://github.com/helesjunior/gesic/blob/master/app/Models/UnitUser.php | Github Open Source | Open Source | MIT | 2,021 | gesic | helesjunior | PHP | Code | 111 | 416 | <?php
namespace App\Models;
use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\Activitylog\Traits\LogsActivity;
/**
* Class UnitUser
*
* @package App\Models
* @author Anderson Sathler <asathler@gmail.com
*/
class UnitUs... | 40,015 |
https://github.com/nikolasicevic/health-markers/blob/master/resources/views/activity_session_edit.blade.php | Github Open Source | Open Source | MIT | null | health-markers | nikolasicevic | PHP | Code | 86 | 401 | @extends('layouts.app')
@section('title', 'Create activity')
@section('content')
<section class="form-section bg-red" id="activities-create">
<div class="middle">
<form action="{{ route('activities.sessions.update', ['id' => $activitySession->id]) }}" method="post">
{{ csrf_fie... | 51,005 |
https://github.com/Nedelosk/Forest-Botany/blob/master/src/main/java/modularmachines/common/modules/container/components/HeatComponent.java | Github Open Source | Open Source | MIT | 2,018 | Forest-Botany | Nedelosk | Java | Code | 345 | 1,328 | package modularmachines.common.modules.container.components;
import java.io.IOException;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.ITickable;
import modularmachines.api.com... | 17,890 |
https://github.com/mekkablue/Pixelate/blob/master/Pixelate.glyphsFilter/Contents/Resources/plugin.py | Github Open Source | Open Source | Apache-2.0 | null | Pixelate | mekkablue | Python | Code | 677 | 2,525 | # encoding: utf-8
from __future__ import division, print_function, unicode_literals
###########################################################################################################
#
#
# Filter with dialog Plugin
#
# Read the docs:
# https://github.com/schriftgestalt/GlyphsSDK/tree/master/Python%20Templates... | 38,855 |
https://github.com/aptira/oom/blob/master/kubernetes/portal/docker/init/mariadb-client/db_migrate.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | oom | aptira | Shell | Code | 152 | 385 | #!/bin/sh -x
SQL_DEST_DIR=${SQL_DEST_DIR:-/tmp/sql}
DB_PORT=${DB_PORT:-3306}
[[ -z "$SQL_SRC_DIR" ]] && { echo "Error: SQL_SRC_DIR must be provided as an environment variable"; exit 1; }
[[ -z "$DB_USER" ]] && { echo "Error: DB_USER must be provided as an environment variable"; exit 1; }
[[ -z "$DB_PASS" ]] && { echo ... | 36,656 |
https://github.com/scale-tone/LetsGoOutDemo/blob/master/backend/LetsGoOutDemo.AspNetCore/LetsGoOutDemo.AspNetCore/NickNameUserIdProvider.cs | Github Open Source | Open Source | MIT | 2,021 | LetsGoOutDemo | scale-tone | C# | Code | 85 | 205 | using Microsoft.AspNetCore.SignalR;
namespace LetsGoOutDemo.AspNetCore
{
/// <summary>
/// Provides SignalR with a userId upon negotiating a client connection.
/// By default, SignalR tries to use CurrentPrincipal.Identity.Name for that,
/// but since we do not have any proper authentication here impl... | 34,010 |
https://github.com/RvSing/CAP/blob/master/form.php | Github Open Source | Open Source | MIT | 2,010 | CAP | RvSing | PHP | Code | 451 | 1,115 | <?php
require_once('BFCollections/BFArray.php');
require_once('cap.php');
/**
* Form class.
*
* A class used to construct forms that can have callbacks tied to their fields.
*/
class Form {
protected $elements;
protected $allowedMethods;
/**
* __construct function.
*
* Create a n... | 39,224 |
https://github.com/Esri/water-balance-app/blob/master/src/components/MonthlyTrendChart/MouseEventsRect.tsx | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,022 | water-balance-app | Esri | TSX | Code | 300 | 1,062 | import * as React from 'react';
import { select, mouse } from 'd3';
import {
Scales,
SvgContainerData
} from './SvgContainer';
export interface MouseEventItem {
itemIndex: number;
value: number;
}
interface Props {
svgContainerData?: SvgContainerData;
scales?: Scales;
onHover?: (d?:MouseE... | 11,097 |
https://github.com/osmlab/maproulette-python-client/blob/master/maproulette/models/project.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | maproulette-python-client | osmlab | Python | Code | 277 | 813 | """This module contains the definition of a Project object in MapRoulette."""
import json
import os
class ProjectModel:
"""Definition for a MapRoulette Project"""
READONLY = ["id"]
@property
def path(self):
"""The path to the project"""
return os.path.join("project", str(self._id))
... | 40,108 |
https://github.com/Holgermueller/calc/blob/master/index.js | Github Open Source | Open Source | MIT | null | calc | Holgermueller | JavaScript | Code | 167 | 448 | $(document).ready(() => {
$("#display").text("0");
let firstNumber = "";
let secondNumber = "";
let operator = "";
let result = "";
$(".number").on("click", (e) => {
e.preventDefault();
if (operator === "") {
firstNumber += e.target.value;
result = firstNumber;
} else {
seco... | 50,134 |
https://github.com/clearbank/terraform-provider-databricks/blob/master/internal/utils.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | terraform-provider-databricks | clearbank | Go | Code | 252 | 594 | package internal
import (
"errors"
"strings"
)
// TrimLeadingWhitespace removes leading whitespace
func TrimLeadingWhitespace(commandStr string) (newCommand string) {
lines := strings.Split(strings.ReplaceAll(commandStr, "\t", " "), "\n")
leadingWhitespace := 1<<31 - 1
for _, line := range lines {
for pos, ... | 33,077 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/JD_headers/WanderShopActivityDownwardTimingView.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 86 | 324 | //
// 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 <UIKit/UIView.h>
@class NSTimer, UILabel;
@interface WanderShopActivityDownwardTimingView : UIView
{
long long totalSecon... | 10,887 |
https://github.com/yen-igaw/reactnative_dfinery_ecommerce_demo/blob/master/src/screens/ProfileScreen/components/ProfileBody.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | reactnative_dfinery_ecommerce_demo | yen-igaw | JavaScript | Code | 135 | 478 | import React from "react";
import { View, StyleSheet } from "react-native";
import CustomText from "../../../components/UI/CustomText";
import UploadButton from "./UploadButton";
import Detail from "./Detail";
//PropTypes check
import PropTypes from "prop-types";
export const ProfileBody = ({
user,
uploadButton,
... | 13,866 |
https://github.com/Template7/common/blob/master/structs/user.go | Github Open Source | Open Source | MTLL | null | common | Template7 | Go | Code | 273 | 818 | package structs
import "go.mongodb.org/mongo-driver/bson/primitive"
type UserStatus int
type LoginClientOs int
type LoginChannel int
type Gender int
const (
UserStatusBlock UserStatus = -1
UserStatusInitialized UserStatus = 0 // not finish basic info yet
UserStatusActivate UserStatus = 1 // sign up finis... | 4,251 |
https://github.com/standardebooks/web/blob/master/templates/EmailHeader.php | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,023 | web | standardebooks | PHP | Code | 374 | 1,670 | <?
$preheader = $preheader ?? null;
$letterhead = $letterhead ?? false;
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title></title>
<style type="text/css">
@font-fac... | 35,001 |
https://github.com/poplp/Thain/blob/master/thain-server/src/main/java/com/xiaomi/thain/server/service/impl/X5ServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | null | Thain | poplp | Java | Code | 96 | 315 | /*
* Copyright (c) 2019, Xiaomi, Inc. All rights reserved.
* This source code is licensed under the Apache License Version 2.0, which
* can be found in the LICENSE file in the root directory of this source tree.
*/
package com.xiaomi.thain.server.service.impl;
import com.xiaomi.thain.server.dao.X5Dao;
import com.... | 28,545 |
https://github.com/glaforge/jib/blob/master/jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ImageToJsonTranslator.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | jib | glaforge | Java | Code | 830 | 2,364 | /*
* Copyright 2017 Google LLC.
*
* 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... | 19,135 |
https://github.com/azl397985856/electron-work-flow/blob/master/app/modules/index.js | Github Open Source | Open Source | MIT | 2,018 | electron-work-flow | azl397985856 | JavaScript | Code | 273 | 1,401 |
import React from 'react';
import { Button, Row, Col, Icon, Dropdown, Menu, Card, Switch, message, QueueAnim } from 'antd';
import SettingModal from './settingModal'
const DropdownButton = Dropdown.Button;
const envMapper = {
test: '测试环境',
uat: 'UAT环境',
pro: '生产环境'
};
class Test extends React.Component {
cons... | 28,139 |
https://github.com/Firdos-Aliev/cakeshop/blob/master/static/js/script.js | Github Open Source | Open Source | MIT | 2,021 | cakeshop | Firdos-Aliev | JavaScript | Code | 84 | 310 | "use strict"
window.onload = function(){
console.log("Все подгружено");
let basketList = $('.basket-list');
basketList.on('click', '.basketadd', function (event) {
$.ajax({ //передаем словарь аргуметов (json)
url: '/basket/product/' + event.target.dataset.pk + '/add/' + event.target.d... | 31,137 |
https://github.com/gothandy/Augustus/blob/master/Augustus.Web.Portal/App_Start/AuthenticationConfig.cs | Github Open Source | Open Source | MIT | null | Augustus | gothandy | C# | Code | 142 | 595 | using Augustus.Web.Config;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.Notifications;
using Microsoft.Owin.Security.OpenIdConnect;
using Owin;
using System;
using System.IdentityModel.Claims;
using System.Thr... | 41,011 |
https://github.com/RukshiW/siddhi-io-googlepubsub/blob/master/component/src/main/java/org/wso2/extension/siddhi/io/googlepubsub/source/GooglePubSubMessageReceiver.java | Github Open Source | Open Source | Apache-2.0 | null | siddhi-io-googlepubsub | RukshiW | Java | Code | 226 | 635 | /*
* Copyright (c) 2019 WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... | 229 |
https://github.com/mvniekerk/brotli-rs2js/blob/master/ios/Brotli.m | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | brotli-rs2js | mvniekerk | Objective-C | Code | 31 | 129 | #import <React/RCTBridgeModule.h>
#import "Brotli.h"
@implementation Brotli
RCT_EXPORT_MODULE()
RCT_EXPORT_METHOD(sampleMethod:(NSString *)stringArgument numberParameter:(nonnull NSNumber *)numberArgument callback:(RCTResponseSenderBlock)callback)
{
// TODO: Implement some actually useful functionality
callb... | 5,707 |
https://github.com/fvanderveen/maven-mojo-jojo/blob/master/sub-parent-a/module-a1/src/main/java/maven/bug/modulea/ModuleA1.java | Github Open Source | Open Source | MIT | 2,020 | maven-mojo-jojo | fvanderveen | Java | Code | 15 | 35 | package maven.bug.modulea;
/**
* Some javadoc for the plugin
*/
public class ModuleA1 {
}
| 24,853 |
https://github.com/ilammy/sr/blob/master/sr/ck/test-predicates.ss | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,015 | sr | ilammy | Scheme | Code | 1,155 | 3,021 | (import (scheme base)
(sr ck)
(sr ck predicates)
(te base)
(te conditions assertions)
(te utils verify-test-case))
(define-syntax true?
(syntax-rules ()
((_ expression) (assert-eq #t ($ expression))) ) )
(define-syntax false?
(syntax-rules ()
((_ expression) (assert... | 50,079 |
https://github.com/kbwo/react-native-create-thumbnail/blob/master/example/App.js | Github Open Source | Open Source | MIT | null | react-native-create-thumbnail | kbwo | JavaScript | Code | 209 | 802 | import React, {useState} from 'react';
import {
Image,
Text,
View,
StyleSheet,
TextInput,
Button,
ActivityIndicator,
} from 'react-native';
import {createThumbnail} from 'react-native-create-thumbnail';
const placeholderImage = require('./assets/placeholder-image.png');
export default function App() {
... | 4,566 |
https://github.com/jmhickman/web3.fs/blob/master/Logging.fs | Github Open Source | Open Source | Apache-2.0 | null | web3.fs | jmhickman | null | Spoken | 333 | 767 | namespace web3.fs
open web3.fs.Types
[<AutoOpen>]
module Logging =
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Logging
/////////////////////////////////////////////////////////////////////////////////////////////... | 45,801 |
https://github.com/harsha1979/demo-suite/blob/master/src/main/java/org/wso2/carbon/solution/util/Constant.java | Github Open Source | Open Source | Apache-2.0 | null | demo-suite | harsha1979 | Java | Code | 339 | 866 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | 6,789 |
https://github.com/graphitemaster/xcpumemperf/blob/master/main.c | Github Open Source | Open Source | MIT | 2,021 | xcpumemperf | graphitemaster | C | Code | 1,628 | 4,658 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <math.h>
#include <unistd.h>
#include <limits.h>
#include <fcntl.h>
#include <sys/mman.h>
#include "thread.h"
#include "util.h"
#include "msg.h"
/* How many times to run the benchmark (Default) */
#define TRIALS 32
/* The benchm... | 36,467 |
https://github.com/davidlrichmond/macports-ports/blob/master/sysutils/iguanaIR/files/patch-drivers-Makefile.in.diff | Github Open Source | Open Source | BSD-3-Clause | 2,022 | macports-ports | davidlrichmond | null | Spoken | 84 | 341 | --- drivers/Makefile.in.org 2009-11-04 20:53:12.000000000 -0600
+++ drivers/Makefile.in 2010-02-15 10:13:32.000000000 -0600
@@ -6,11 +6,10 @@
all: $(DRIVERS)
libusb.so: libusb.c $(LISTS) Makefile
-# $(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREARG) $(LDFLAGS) -lusb-1.0 $< $(LISTS) -o $@
- $(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREA... | 50,834 |
https://github.com/lyabs243/notify_caf_cl_cc_server/blob/master/php_web_services/includes/connection.php | Github Open Source | Open Source | MIT | null | notify_caf_cl_cc_server | lyabs243 | PHP | Code | 101 | 774 | <?php error_reporting(0);
ob_start();
session_start();
header("Content-Type: text/html;charset=UTF-8");
if($_SERVER['HTTP_HOST']=="localhost" or $_SERVER['HTTP_HOST']=="192.168.1.125")
{
//local
DEFINE ('DB_USER', 'root');
DEFINE ('DB_PASSWORD', '');
DEFINE ('DB_HOST', 'localh... | 44,070 |
https://github.com/markschoate/discovery_widgets/blob/master/src/web/widgets/js/t11e/base.js | Github Open Source | Open Source | BSD-3-Clause | 2,016 | discovery_widgets | markschoate | JavaScript | Code | 94 | 248 | /**
* @name t11e
* @namespace
*/
(function () {
var is_undefined = function (arg) {
return 'undefined' === typeof arg;
};
var declare = function (symbol, object) {
var parts = symbol.split('.');
var scope = window;
for (var i = 0; i < parts.length; i++) {
var ... | 51,118 |
https://github.com/rodrigobaron/flyte/blob/master/docker/sandbox/flyte-entrypoint-default.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | flyte | rodrigobaron | Shell | Code | 277 | 777 | #!/bin/sh
set -euo pipefail
# Apply cgroup v2 hack
cgroup-v2-hack.sh
trap 'pkill -P $$' EXIT
monitor() {
while : ; do
for pid in $@ ; do
kill -0 $pid &> /dev/null || exit 1
done
sleep 1
done
}
# Start docker daemon
echo "Starting Docker daemon..."
dockerd &> /var/log/do... | 31,491 |
https://github.com/nemanja888/crypto_ninja_forum/blob/master/public/js/jquery-3.3.1.min.js | Github Open Source | Open Source | MIT | 2,021 | crypto_ninja_forum | nemanja888 | JavaScript | Code | 8 | 18 | /**
* Created by alien1 on 5/9/2018.
*/
| 51,320 |
https://github.com/mtgibbs/nHydrate/blob/master/Source/nHydrate.Generator/Design/Editors/UnitTestDependencyEditor.cs | Github Open Source | Open Source | MIT | null | nHydrate | mtgibbs | C# | Code | 82 | 408 | using System;
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.ComponentModel.Design;
using System.Collections.Generic;
using Widgetsphere.Generator.Models;
namespace Widgetsphere.Generator.Design.Editors
{
internal class UnitTestDependencyEditor : System.Drawing.Design.UITy... | 27,057 |
https://github.com/marianbida/bbcat.eu/blob/master/app/lang/he/newsletter/index.php | Github Open Source | Open Source | MIT | null | bbcat.eu | marianbida | PHP | Code | 162 | 658 | <?php
$_['newsletter']['name'] = "Име, Фамилия";
$_['newsletter']['email'] = "e-mail адрес";
$_['newsletter']['title'] = "Заглавие";
$_['newsletter']['action'] = "Действия";
$_['newsletter']['letters'] = "Писма";
$_['newsletter']['new'] = "Ново Писмо";
$_['newsletter']['template'] = "Шаблон";
$_['newslett... | 30,182 |
https://github.com/YeeDev/Crypt_Rush/blob/master/Assets/Scripts/Player SCR/PlayerAnimator.cs | Github Open Source | Open Source | MIT | 2,021 | Crypt_Rush | YeeDev | C# | Code | 94 | 325 | using UnityEngine;
namespace CryptRush.Animation
{
[RequireComponent(typeof(Animator))]
public class PlayerAnimator : MonoBehaviour
{
[SerializeField] float rotationSpeed = 40f;
[SerializeField] GameObject deadParticles = null;
Animator anm;
private void Awake()
{
... | 9,495 |
https://github.com/KingDragon08/imchat/blob/master/public/js/webim/my.js | Github Open Source | Open Source | MIT | 2,019 | imchat | KingDragon08 | JavaScript | Code | 140 | 775 | function initChat() {
window.conn = {};
WebIM.config = config;
conn = WebIM.conn = new WebIM.default.connection({
appKey: WebIM.config.appkey,
isHttpDNS: WebIM.config.isHttpDNS,
isMultiLoginSessions: WebIM.config.isMultiLoginSessions,
https: WebIM.config.https,
url: W... | 13,286 |
https://github.com/alt-grr/Mikroprocesory-laboratorium/blob/master/dodawanieU2.asm | Github Open Source | Open Source | Unlicense | 2,014 | Mikroprocesory-laboratorium | alt-grr | Assembly | Code | 196 | 721 | ;===============================================================================
; DODAWANIE 24-BITOWYCH LICZB U2, ZAPISANYCH W FORMACIE BIG ENDIAN
;===============================================================================
org 0000h
ljmp main
org 1000h
;==================================================... | 51,991 |
https://github.com/mauricio-06/back-end-srs-soluciones/blob/master/application/controllers/C_admin.php | Github Open Source | Open Source | MIT | null | back-end-srs-soluciones | mauricio-06 | PHP | Code | 1,860 | 8,515 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class C_admin extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('M_admin');
}
//--------------- metodos GET -----------------//
public function get_users(){
$headers = apache_request_header... | 15,058 |
https://github.com/budbee/budbee-php/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,023 | budbee-php | budbee | Ignore List | Code | 4 | 16 | .idea
*.iml
vendor/
test.php
| 14,211 |
https://github.com/dio-projects/checkpoint-api/blob/master/src/main/java/io/schuberty/dio/checkpointapi/model/User.java | Github Open Source | Open Source | Apache-2.0 | null | checkpoint-api | dio-projects | Java | Code | 83 | 394 | package io.schuberty.dio.checkpointapi.model;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import org.hibernate.envers.Au... | 13,042 |
https://github.com/Hector68/simpleblog/blob/master/modules/notification/interfaces/NotificationEventInterface.php | Github Open Source | Open Source | BSD-3-Clause | null | simpleblog | Hector68 | PHP | Code | 7 | 27 | <?php
namespace app\modules\notification\interfaces;
class NotificationEventInterface
{
} | 38,172 |
https://github.com/rozPierog/MonetCompat/blob/master/library/src/main/java/com/kieronquinn/monetcompat/extensions/Extensions+Color.kt | Github Open Source | Open Source | MIT | 2,021 | MonetCompat | rozPierog | Kotlin | Code | 49 | 169 | package com.kieronquinn.monetcompat.extensions
import android.graphics.Color
import kotlin.math.roundToInt
import dev.kdrag0n.monet.colors.Color as MonetColor
/**
* To avoid editing the core Monet code by kdrag0n, these are extensions instead
*/
fun MonetColor.toArgb(): Int {
return toLinearSrgb().toSrgb().qua... | 38,880 |
https://github.com/woshidaniu-com/niutal/blob/master/niutal-component-tjcx-parent/niutal-component-tjcx-web-v5/src/main/webapp/js/tjcx/comp/tjcxUtils.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | niutal | woshidaniu-com | JavaScript | Code | 577 | 1,951 | var cjgly = "zf01,admin";// 多个用逗号分割。设置默认查询快照弹层显示,超级管理员可进行共享
var FGF_BS = "$";// 分割符标识,若用"#",json代码不合法,
var JQUERY_ID_FGF_BS1 = "\\$";// jquery中id需加\\进行转义
var JQUERY_ID_FGF_BS = "\\$";// jquery中id需加\\进行转义
var ZS = "zs";// 总数
var BFB = "bfb";// 百分比
var ZS_CN = "总数";// 总数
var BFB_CN = "比例";// 百分比
var QJK_PRE = "tjcxqjk_"... | 40,037 |
https://github.com/Tunsy/splatline-miami/blob/master/splatlinemiami/Assets/Tiled2Unity/Meshes/level3.obj | Github Open Source | Open Source | MIT | 2,017 | splatline-miami | Tunsy | Wavefront Object | Code | 5,860 | 20,892 | # Wavefront OBJ file automatically generated by Tiled2Unity
# Vertices (Count = 441)
v 0 -1 0
v -1 -1 0
v -1 0 0
v 0 0 0
v -2 -1 0
v -2 0 0
v -3 -1 0
v -3 0 0
v -4 -1 0
v -4 0 0
v -5 -1 0
v -5 0 0
v -6 -1 0
v -6 0 0
v -7 -1 0
v -7 0 0
v -8 -1 0
v -8 0 0
v -9 -1 0
v -9 0 0
v -10 -1 0
v -10 0 0
v -11 -1 0
v -11 0 0
v -... | 24,477 |
https://github.com/DDKit/DDSwiftKit/blob/master/Example/DDSwiftKit/ViewController.swift | Github Open Source | Open Source | MIT | 2,018 | DDSwiftKit | DDKit | Swift | Code | 119 | 503 | //
// ViewController.swift
// DDSwiftKit
//
// Created by duanchanghe on 08/31/2018.
// Copyright (c) 2018 duanchanghe. All rights reserved.
//
import UIKit
import DDSwiftKit
class ViewController: UIViewController {
@IBOutlet weak var collectionView: UICollectionView!
var data:[String] = ["#f00","#0f0","... | 13,854 |
https://github.com/carlos-ruiz/shoe-store-system/blob/master/control/protected/views/insumos/gastos.php | Github Open Source | Open Source | BSD-3-Clause | null | shoe-store-system | carlos-ruiz | PHP | Code | 347 | 1,716 | <h1>Gastos operativos</h1>
<hr/>
<div class="text-right">
<a href="javascript:void(0);" class="btn btn-red-stripped" id="agregar_gasto"><i class="fa fa-plus"></i> Agregar</a>
<br/>
<br/>
</div>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'tacones-add-stock-form',
// Please note: ... | 18,563 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.