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/vietanh98/project_ngoai/blob/master/app/Http/Controllers/Page/accountController.php | Github Open Source | Open Source | MIT | null | project_ngoai | vietanh98 | PHP | Code | 125 | 427 | <?php
namespace App\Http\Controllers\Page;
use App\Http\Controllers\Controller;
use App\User;
use App\UserProfile;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Log;
use App\Http\Requests\loginRequest;
class accountController extends Controller
{
public function... | 30,515 |
https://github.com/YunuenTT/FinalIA/blob/master/vue-bookstore/node_modules/vue-awesome/icons/baby.js | Github Open Source | Open Source | MIT | 2,021 | FinalIA | YunuenTT | JavaScript | Code | 136 | 418 | import Icon from '../components/Icon.vue'
Icon.register({
baby: {
width: 384,
height: 512,
paths: [
{
d: 'M192 160C236.2 160 272 124.2 272 80S236.2 0 192 0 112 35.8 112 80 147.8 160 192 160zM138.6 408.8L164.2 376.8 102.7 325.6 56.8 383C45.4 397.2 45.1 417.4 56 432L104 496C111.9 506.5 123.9 ... | 34,897 |
https://github.com/NicolasOmar/my-pets/blob/master/src/components/atoms/message-block/index.test.js | Github Open Source | Open Source | MIT | 2,021 | my-pets | NicolasOmar | JavaScript | Code | 123 | 405 | import { render, screen } from '@testing-library/react'
// COMPONENTS
import MessageBlock from '.'
// MOCKS
import { minimalConfig } from './index.mocks.json'
describe('[MessageBox]', () => {
test('Should render the component with required props only', () => {
render(<MessageBlock {...minimalConfig} />)
cons... | 29,343 |
https://github.com/neoayi/Util/blob/master/src/Util.Logs/Exceptionless/LogManager.cs | Github Open Source | Open Source | MIT | 2,017 | Util | neoayi | C# | Code | 100 | 300 | using Util.Domains.Sessions;
using Util.Logs.Abstractions;
using Util.Logs.Core;
namespace Util.Logs.Exceptionless {
/// <summary>
/// 日志服务
/// </summary>
public class LogManager : LogManagerBase {
/// <summary>
/// 初始化日志服务
/// </summary>
/// <param name="context">日志上下文... | 40,518 |
https://github.com/reon/easyItem/blob/master/Config/Config_Admin.php | Github Open Source | Open Source | MIT | null | easyItem | reon | PHP | Code | 63 | 217 | <?php
class Config_Admin {
const DEFAULT_SYS = 'admin';
public function get_acter($id) {
$a = $this->get_acter_list();
return isset($a[$id]) ? $a[$id] : null;
}
public function get_acter_list() {
$O_Sys = O_Sys::readone(O_Sys::SYS_ROLES);
return $O_Sys->list;
}
... | 42,719 |
https://github.com/2018DHY/DataStructure/blob/master/src/com/quake/search/SeqSearch.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | DataStructure | 2018DHY | Java | Code | 86 | 285 | package com.quake.search;
/**
* @author AKA二夕
* @create 2020-09-08 9:39
*/
public class SeqSearch {
public static void main(String[] args) {
int[] arr = {1, 9, 22, -1, 43, 293};
int index = seqSearch(arr, -1);
if (index == -1) {
System.out.println("没有找到对应的值");
} else ... | 22,225 |
https://github.com/kacperkasztelanic/carcare-server/blob/master/src/main/java/com/kasztelanic/carcare/web/rest/InspectionResource.java | Github Open Source | Open Source | MIT | null | carcare-server | kacperkasztelanic | Java | Code | 170 | 946 | package com.kasztelanic.carcare.web.rest;
import com.kasztelanic.carcare.service.InspectionService;
import com.kasztelanic.carcare.service.dto.InspectionDto;
import com.kasztelanic.carcare.web.rest.util.HeaderUtil;
import com.kasztelanic.carcare.web.rest.util.ResponseUtil;
import com.kasztelanic.carcare.web.rest.util.... | 21,030 |
https://github.com/archercreat/dta-vs-osc/blob/master/sc-virt/src/projects/compiler-rt/test/tsan/Darwin/gcd-source-serial.mm | Github Open Source | Open Source | NCSA, MIT | 2,021 | dta-vs-osc | archercreat | Objective-C++ | Code | 89 | 373 | // RUN: %clang_tsan %s -o %t -framework Foundation
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
long global;
int main(int argc, const char *argv[]) {
fprintf(stderr, "Hello world.\n");
dispatch_queue_t q = dispatch_queue_create("my.queue", D... | 22,927 |
https://github.com/edbolivar/Ventures/blob/master/src/pages/listings.js | Github Open Source | Open Source | MIT | 2,019 | Ventures | edbolivar | JavaScript | Code | 311 | 1,190 | import React from 'react';
import { observer } from 'mobx-react';
import isBrowser from 'is-browser';
import Chance from 'chance';
import Layout from '../frontEndComponents/FrontEndLayout';
import { initStore } from '../models';
import ListingsFilterAndSearchSection from '../frontEndContainers/ListingsFilterAndSearchSe... | 36,113 |
https://github.com/taxbeans/taxbeans/blob/master/taxbeans-forms/src/main/java/com/github/taxbeans/forms/common/FormProcessor.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | taxbeans | taxbeans | Java | Code | 1,427 | 5,111 | package com.github.taxbeans.forms.common;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;
import org.apache.commons.bean... | 47,344 |
https://github.com/LamerLink/instant_flask/blob/master/environment/functions/emailer.py | Github Open Source | Open Source | MIT | null | instant_flask | LamerLink | Python | Code | 127 | 370 | import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email.mime.text import MIMEText
from email import encoders
# This is an example email function. There are other email libraries
# available such as ExchangeLib that may be easier/better to use.
def send_email(email... | 49,839 |
https://github.com/frank-dspeed/nodejs-monorepo/blob/master/packages/@straw-hat/babel-preset-base/lib/create-preset.js | Github Open Source | Open Source | MIT | 2,022 | nodejs-monorepo | frank-dspeed | JavaScript | Code | 96 | 415 | /* eslint-disable global-require */
module.exports = function createPreset(api) {
api.assertVersion(7);
const presets = [
[
require('@babel/preset-env').default,
{
loose: true,
// TODO: Uncomment `modules` config once Node ESM is in LTS
// modules: false,
targets: {... | 34,554 |
https://github.com/Blundert/dynamic-form/blob/master/packages/core/src/index.js | Github Open Source | Open Source | MIT | 2,020 | dynamic-form | Blundert | JavaScript | Code | 18 | 58 | export {
validate,
validations,
DynamicFormProvider,
useDynamicForm,
applyCrypt2State,
withDynamicForm
} from "./services";
export { DynamicForm, FactoryComponent } from "./components";
| 20,965 |
https://github.com/Aizulmansor29/lore/blob/master/packages/lore-cli-tutorial/templates/06.authentication/step6/src/components/Logout.js | Github Open Source | Open Source | MIT | 2,019 | lore | Aizulmansor29 | JavaScript | Code | 49 | 127 | import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import auth from '../utils/auth';
import ShowLoadingScreen from './ShowLoadingScreen';
Logout.propTypes = {
history: PropTypes.object.isRequired
};
export default function Logout(props) {
const { history } = props;
useEffect(() => {
... | 1,563 |
https://github.com/kanton-bern/oerebViewer/blob/master/components/layout/AccordionItem.vue | Github Open Source | Open Source | MIT | 2,022 | oerebViewer | kanton-bern | Vue | Code | 240 | 899 | <template>
<div class="accordion-item" :class="{ expanded: isActive, decent: isDecent }">
<div
v-if="disabled"
:id="'accordion-label-' + id"
:aria-expanded="isActive"
:aria-controls="'accordion-item-' + id"
class="accordion-item__header"
>
<div class="flex-1" :class="header... | 12,211 |
https://github.com/jwinters/arca-android/blob/master/arca-core/arca-service/src/test/java/io/pivotal/arca/service/TaskTest.java | Github Open Source | Open Source | BSD-3-Clause | 2,018 | arca-android | jwinters | Java | Code | 2,526 | 10,332 | package io.pivotal.arca.service;
import android.test.AndroidTestCase;
import junit.framework.Assert;
import java.util.List;
import io.pivotal.arca.threading.Identifier;
public class TaskTest extends AndroidTestCase {
private static final String ERROR = "test_error";
private static final String RESULT = "test_re... | 17,065 |
https://github.com/feldy/s2gis-helpdesk/blob/master/database/migrations/2018_03_01_093514_hd_issue_hdr.php | Github Open Source | Open Source | MIT | null | s2gis-helpdesk | feldy | PHP | Code | 205 | 772 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class HdIssueHdr extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('hd_issue_hdr', function... | 50,108 |
https://github.com/adi408116/Sentiment-Analysis/blob/master/app.py | Github Open Source | Open Source | MIT | 2,020 | Sentiment-Analysis | adi408116 | Python | Code | 334 | 1,109 | import streamlit as st
from textblob import TextBlob
import matplotlib.pyplot as plt
import pandas as pd
import data_cleaning
import get_tweets
st.title("Twitter Sentiment Analysis")
st.write("This application does the sentiment analysis of a twitter hashtag or keyword."
"It does that by taking the recent 30... | 1,614 |
https://github.com/paulera/pure-php-mvc/blob/master/core/classes/Request.php | Github Open Source | Open Source | MIT | 2,020 | pure-php-mvc | paulera | PHP | Code | 196 | 631 | <?php
defined('IS_APP') || die();
class Request
{
private static $_isHttps = null;
private static $_path = null;
private static $_pageUrlForSeo = null;
private static $_pathParts = null;
// Keep from creating new instances of this class
private function __construct()
{}
p... | 4,139 |
https://github.com/LTD-Beget/php-opencloud/blob/master/lib/OpenCloud/Compute/Resource/ServerMetadata.php | Github Open Source | Open Source | Apache-2.0 | null | php-opencloud | LTD-Beget | PHP | Code | 611 | 1,430 | <?php
/**
* Copyright 2012-2014 Rackspace US, 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 la... | 14,558 |
https://github.com/oneCup/MyWeiBo/blob/master/MyWeiBoo/MyWeiBoo/Class/Module/Home/PhotoBrowser/YFPhotoCollectionViewCell.swift | Github Open Source | Open Source | MIT | 2,015 | MyWeiBo | oneCup | Swift | Code | 448 | 2,075 | //
// YFPhotoCollectionViewCell.swift
// MyWeiBoo
//
// Created by 李永方 on 15/10/19.
// Copyright © 2015年 李永方. All rights reserved.
//
import UIKit
protocol photoBrowserCellDelegete: NSObjectProtocol {
/// cell缩放比例
func photoBrowserCellZoom(Scale: CGFloat)
/// 结束缩放比例
func photoBrowaerEndCellZoomSc... | 22,609 |
https://github.com/mrbarbasa/kaggle-spooky-author/blob/master/code/utils/format_time_str.py | Github Open Source | Open Source | MIT | 2,018 | kaggle-spooky-author | mrbarbasa | Python | Code | 39 | 116 | from datetime import timedelta
def format_time_str(num_seconds):
"""Format the elapsed time into the string hh:mm:ss.
Parameters
----------
num_seconds : float
The elapsed time in seconds.
Returns
-------
time_str : string
The elapsed time as the string hh:mm:ss.
"""
... | 17,495 |
https://github.com/mumuWorld/MiniProgram_Demo/blob/master/tools/common.js | Github Open Source | Open Source | MIT | null | MiniProgram_Demo | mumuWorld | JavaScript | Code | 6 | 15 | module.exports = {
common: showtoast
} | 48,452 |
https://github.com/imalexianne/Password-locker/blob/master/user.py | Github Open Source | Open Source | MIT | null | Password-locker | imalexianne | Python | Code | 126 | 379 |
import pyperclip
class User:
"""
Class that generates new instances of contacts.
"""
user_list = [] # Empty user list
def __init__(self,first_name, last_name,e_mail,user_name,password):
"""
__init__ method that helps us define properties for our objects.
"""
s... | 24,327 |
https://github.com/mariana2323/NTP_DrinkingGames/blob/master/app/jugador.php | Github Open Source | Open Source | MIT | null | NTP_DrinkingGames | mariana2323 | PHP | Code | 52 | 127 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class jugador extends Model
{
//
public $timestamps = false; //sobre escribe en false el timestamp que esta heredando
//Con los sig comando se accede a la base de datos
protected $table = 'jugadores';
//protected $primaryKey = 'nombreid... | 17,473 |
https://github.com/triforkse/logstash-mesos/blob/master/system-test/src/test/java/org/apache/mesos/logstash/systemtest/AbstractLogstashFrameworkTest.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | logstash-mesos | triforkse | Java | Code | 505 | 1,966 | package org.apache.mesos.logstash.systemtest;
import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.InternalServerErrorException;
import com.github.dockerjava.api.model.Container;
import com.github.dockerjava.core.DockerClientBuilder;
import com.github.dockerjava.core.DockerClientConfig;
impo... | 37,151 |
https://github.com/Kanaye/preact/blob/master/debug/test/browser/devtools.test.js | Github Open Source | Open Source | MIT | 2,020 | preact | Kanaye | JavaScript | Code | 2,641 | 9,094 | import { setupRerender } from 'preact/test-utils';
import { createElement, createElement as h, Fragment, options, Component, render } from 'preact';
import { getDisplayName, setIn, isRoot, getData, shallowEqual, hasDataChanged, getChildren } from '../../src/devtools/custom';
import { setupScratch, teardown, clearOption... | 40,817 |
https://github.com/tersoo-atsen/expenses-app/blob/master/tests/Expenses.Api.IntegrationTests/Fixtures/IntegrationTest.cs | Github Open Source | Open Source | MIT | null | expenses-app | tersoo-atsen | C# | Code | 108 | 368 | using Expenses.Api.IntegrationTests.Helpers;
using Expenses.Api.Models.Authenticate;
using Expenses.Api.Models.Users;
using Microsoft.AspNetCore.Mvc.Testing;
using Newtonsoft.Json;
using System.Net.Http;
using Xunit;
namespace Expenses.Api.IntegrationTests.Fixtures
{
public abstract class IntegrationTest : IClassFi... | 6,091 |
https://github.com/Mary-Tyler-Moore/bookstore-1/blob/master/middleware/book/favorites/getFavoriteBooks.js | Github Open Source | Open Source | MIT | 2,019 | bookstore-1 | Mary-Tyler-Moore | JavaScript | Code | 53 | 147 | const BookModel = require('../../../models/book')
module.exports = () => {
return (req, res, next) => {
if (typeof res.locals.konyvek === 'undefined') {
BookModel.find({ _isFavorited: true }, (err, books) => {
if (err) {
console.log("getBooks - couldn't get f... | 10,505 |
https://github.com/MobButcher/Charmonium/blob/master/src/main/java/svenhjol/charmonium/sounds/SingleSound.java | Github Open Source | Open Source | MIT | 2,022 | Charmonium | MobButcher | Java | Code | 106 | 377 | package svenhjol.charmonium.sounds;
import net.minecraft.client.resources.sounds.AbstractTickableSoundInstance;
import net.minecraft.core.BlockPos;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.sounds.SoundSource;
import net.minecraft.world.entity.player.Player;
import org.jetbrains.annotations.Nullable... | 46,903 |
https://github.com/superZK/PONY-iLab/blob/master/src/container/report/markReport/column.js | Github Open Source | Open Source | MIT | 2,018 | PONY-iLab | superZK | JavaScript | Code | 388 | 1,505 | import React from 'react';
import { Icon } from 'antd';
import moment from 'moment';
const MarkReportSetting = {
table:{
signature:{
key:'signature',
name:'签章',
column:[
{
title: '签章',
dataIndex: 'name',
key: 'name',
}
],
},
reportTemplate:{
key:'reportTemplate',
name:'报... | 54,200 |
https://github.com/cryptogarageinc/p2pderivatives-client/blob/master/src/browser/dlc/repository/__tests__/LevelContractRepository.test.ts | Github Open Source | Open Source | MIT | null | p2pderivatives-client | cryptogarageinc | TypeScript | Code | 784 | 2,328 | import level from 'level-test'
import { DateTime } from 'luxon'
import { ContractState } from '../../../../common/models/dlc/Contract'
import { isSuccessful } from '../../../../common/utils/failable'
import { ErrorCode } from '../../../storage/ErrorCode'
import { RepositoryError } from '../../../storage/RepositoryError... | 53,614 |
https://github.com/gsol10/r2p2/blob/master/linux-apps/lucene-r2p2/inc/lucene++/InvertedDocConsumer.h | Github Open Source | Open Source | MIT | 2,015 | r2p2 | gsol10 | C | Code | 127 | 344 | /////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
// Distributable under the terms of either the Apache License (Version 2.0)
// or the GNU Lesser General Public License.
////////////////////////////////////////////////////////////... | 38,804 |
https://github.com/citizenmatt/SpecFlow.Rider/blob/master/src/dotnet/ReSharperPlugin.SpecflowRiderPlugin/Daemon/UnresolvedReferenceHighlight/GherkinResolveProblemHighlighter.cs | Github Open Source | Open Source | MIT | null | SpecFlow.Rider | citizenmatt | C# | Code | 52 | 257 | using System.Collections.Generic;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Resolve;
using ReSharperPlugin.SpecflowRiderPlugin.Psi;
using ReSharperPlugin.SpecflowRiderPlugin.References;
namespace ReSharperPlugin.SpecflowRiderPlugin.Daemon.Unresolved... | 28,310 |
https://github.com/chenxiaopao/XPProduct/blob/master/XPProduct/Classes/Infomation(资讯)/View/XPInfoTableViewCell.h | Github Open Source | Open Source | MIT | 2,018 | XPProduct | chenxiaopao | Objective-C | Code | 34 | 118 | //
// XPInfoTableViewCell.h
// XPProduct
//
// Created by 陈思斌 on 2018/11/18.
// Copyright © 2018年 陈思斌. All rights reserved.
//
#import <UIKit/UIKit.h>
@class XPMessDetailModel;
@interface XPInfoTableViewCell : UITableViewCell
@property (nonatomic,strong) XPMessDetailModel *model;
@end
| 42,875 |
https://github.com/lnsp/ahababo/blob/master/src/main/java/hackatum/hackabot/bot/skills/examples/GoodBotSkill.java | Github Open Source | Open Source | MIT | 2,017 | ahababo | lnsp | Java | Code | 28 | 162 | package hackatum.hackabot.bot.skills.examples;
import hackatum.hackabot.bot.Localization;
import hackatum.hackabot.bot.skills.BasicSkill;
import org.telegram.telegrambots.api.methods.send.SendMessage;
import org.telegram.telegrambots.api.objects.Message;
public class GoodBotSkill extends BasicSkill {
@Override
... | 36,210 |
https://github.com/iceboxi/RichEditorView/blob/master/RichEditorView/Classes/RichEditorWebView.swift | Github Open Source | Open Source | BSD-3-Clause | null | RichEditorView | iceboxi | Swift | Code | 190 | 504 | //
// RichEditorWebView.swift
// RichEditorView
//
// Created by C. Bess on 9/18/19.
//
import WebKit
public class RichEditorWebView: WKWebView {
var replyEnabled = false
var editingEnabled = true
var account: AccountBaseModel?
var quoteRefID: String?
public var accessoryView: UIView?
... | 41,600 |
https://github.com/rogeroger-yu/shadowfiend/blob/master/shadowfiend/api/controllers/noauth/account.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | shadowfiend | rogeroger-yu | Python | Code | 286 | 811 | # -*- coding: utf-8 -*-
# Copyright 2017 Openstack Foundation.
#
# 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 re... | 34,727 |
https://github.com/configit-open-source/Bridge/blob/master/Testing/tests/client/Tests/BridgeIssues/N671.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | Bridge | configit-open-source | C# | Code | 77 | 244 | using System;
using Bridge;
using Bridge.QUnit;
namespace ClientTestLibrary
{
[FileName("testBridgeIssues.js")]
public class Bridge671A
{
private Func<int> func;
public Bridge671A(Func<int> func)
{
this.func = func;
}
public int Invoke()
{
... | 7,946 |
https://github.com/gaps-closure/daffodil/blob/master/daffodil-test/src/test/scala/org/apache/daffodil/runtime2/TestEgressXdccBw.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | daffodil | gaps-closure | Scala | Code | 243 | 697 | /*
* 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 ... | 54,346 |
https://github.com/enias-oliveira/kenzie-stack/blob/master/src/auth/constants.ts | Github Open Source | Open Source | MIT | 2,021 | kenzie-stack | enias-oliveira | TypeScript | Code | 8 | 20 | export const jwtConstants = {
secret: 'noChances',
};
| 19,614 |
https://github.com/elvisaronsp/_Senna/blob/master/public/js/arrange-tile.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | _Senna | elvisaronsp | JavaScript | Code | 532 | 1,247 |
/* Arrange-tile.js */
/* 1 */ /*
/* 2 *|
/* 3 *| Script: Arrange-tile.js
/* 4 *| Cascade windows.
/* 5 *|
/* 6 *| Authors:
/* 7 *| Harry Roberts and Greg Houston
/* 8 *|
/* 9 *| License:
/* 10 *| MIT-style license.
/* 11 *|
/* 12 *| Requires:
/* 13 *| Core.js, Window.js
/* 14 *|
/* 15 *| Syntax:
/*... | 21,257 |
https://github.com/shawnk17/quiz011/blob/master/QuizWebApp2/Views/QuizWebApp/GameArea.cshtml | Github Open Source | Open Source | MIT | null | quiz011 | shawnk17 | C# | Code | 41 | 200 |
<h2>GameArea</h2>
<span id="gameId" class="hidden">@ViewBag.QuizId</span>
<br />
<div id="question-content" class="well"></div>
<ul id="answers-holder" class="list-group"></ul>
<div id="answer-result-holder" class="container"></div>
<br />
<button id="previous-button" class="btn btn-sm btn-sm game-btn">Previous<... | 29,597 |
https://github.com/Vyraax/VulkanLab/blob/master/docs/html/classBoxLayout.js | Github Open Source | Open Source | MIT | 2,021 | VulkanLab | Vyraax | JavaScript | Code | 80 | 567 | var classBoxLayout =
[
[ "BoxLayout", "classBoxLayout.html#afea9accd783c066e044c3f1aa7bb7586", null ],
[ "alignment", "classBoxLayout.html#acd7e63e15c4880f9073b9cc2ba3daf9a", null ],
[ "margin", "classBoxLayout.html#a4a45161ac1f94ee27d72cab93257ed6d", null ],
[ "orientation", "classBoxLayout.html#a28e47... | 44,823 |
https://github.com/smerin/smerin-gatsby/blob/master/src/components/Header.module.scss | Github Open Source | Open Source | MIT | 2,022 | smerin-gatsby | smerin | SCSS | Code | 54 | 186 | @import "../styles/utilities";
.header {
position: relative;
z-index: 100;
background: $white;
}
.headerContent {
padding: 0;
margin: 0;
height: 4rem;
@include breakpoint(tablet) {
display: flex;
justify-content: space-between;
list-style: none;
height: 6rem;
}
}
.headerLogo {
min-... | 35,373 |
https://github.com/InsightEdge/financial-engineering/blob/master/core/src/main/scala/org/insightedge/examples/financialengineering/model/Stock.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | financial-engineering | InsightEdge | Scala | Code | 49 | 167 | package org.insightedge.examples.financialengineering.model
import org.insightedge.scala.annotation.SpaceId
import scala.beans.BeanProperty
/** User: jason
* Time: 10:20 PM
*/
case class Stock(@SpaceId(autoGenerate = true)
@BeanProperty
var id: String,
@BeanProp... | 167 |
https://github.com/keepid/keepid_client/blob/master/src/components/OrgFinder/MapComponent.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | keepid_client | keepid | TypeScript | Code | 73 | 282 | import React from 'react';
import { GoogleMap, withGoogleMap, withScriptjs } from 'react-google-maps';
import uuid from 'react-uuid';
import OrganizationMarker from './OrganizationMarker';
interface Props {
organizations: any;
lat: number;
lng: number;
}
function MapComponent(props: Props): React.ReactElement ... | 35,023 |
https://github.com/buitantin/nine_design/blob/master/storage/framework/views/1c46c0e136253fd5198cf5150cd60c1d05643a25.php | Github Open Source | Open Source | MIT | null | nine_design | buitantin | PHP | Code | 22 | 118 | <script type="text/javascript" src="<?php echo e(asset('/public/default/js/jquery.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('/public/default/js/bootstrap.min.js')); ?>"></script>
<script type="text/javascript" src="<?php echo e(asset('/public/default/js/default.js')); ?>">... | 45,793 |
https://github.com/searchsam/seguimiento/blob/master/resources/views/layouts/control-sidebar.blade.php | Github Open Source | Open Source | MIT | 2,017 | seguimiento | searchsam | PHP | Code | 232 | 972 | <!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Create the tabs -->
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
<li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-users"></i></a></li>
<li><a href="#control... | 33,320 |
https://github.com/ktsakalozos/kui/blob/master/packages/kui-builder/lib/configure.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | kui | ktsakalozos | JavaScript | Code | 1,001 | 2,737 | /*
* Copyright 2018 IBM Corporation
*
* 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 ... | 50,680 |
https://github.com/JPenuchot/eve/blob/master/include/eve/function/min.hpp | Github Open Source | Open Source | MIT | 2,021 | eve | JPenuchot | C++ | Code | 424 | 1,304 | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 16,817 |
https://github.com/bsuro10/perf-class/blob/master/course/src/test/java/iaf/perf/course/day3/TimedSizableMapTest.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | perf-class | bsuro10 | Java | Code | 119 | 538 | package iaf.perf.course.day3;
import static org.junit.Assert.assertEquals;
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import iaf.perf.course.day3.map.Ex1;
import iaf.perf.course.day3.map.TimedSizableHashMap;
public class TimedSizableMapTest
{
private Ex1.TimedSizableMap<Long, Object> map = new... | 52,919 |
https://github.com/liahhansen/eggs/blob/master/spec/models/email_template_spec.rb | Github Open Source | Open Source | MIT | 2,010 | eggs | liahhansen | Ruby | Code | 55 | 160 | require 'spec_helper'
describe EmailTemplate do
before(:each) do
@valid_attributes = {
:name => "Welcome Email",
:identifier => 'new_member_welcome',
:subject => "Welcome to Soul Food Farm",
:from => "email@example.com",
:bcc => "another@example.com",
:cc => "yetanother@exampl... | 806 |
https://github.com/mycolab/ncbi-blast/blob/master/blast/include/serial/impl/stdtypes.hpp | Github Open Source | Open Source | Apache-2.0 | null | ncbi-blast | mycolab | C++ | Code | 1,009 | 3,501 | #ifndef STDTYPES__HPP
#define STDTYPES__HPP
/* $Id: stdtypes.hpp 607093 2020-04-30 12:29:36Z grichenk $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/dat... | 17,916 |
https://github.com/kwu-hub/fower/blob/master/fower-intellisense/server/src/completions/cursor.ts | Github Open Source | Open Source | MIT | 2,022 | fower | kwu-hub | TypeScript | Code | 121 | 561 | import { CompletionItem, CompletionItemKind } from 'vscode-languageserver/node'
import { kebab } from '@fower/utils'
const keys = [
'cursorAlias',
'cursorAllScroll',
'cursorAuto',
'cursorCell',
'cursorColResize',
'cursorContextMenu',
'cursorCopy',
'cursorCrosshair',
'cursorDefault',
'cursorEResize'... | 47,663 |
https://github.com/dzolnai/marathon-email-notifier/blob/master/src/main/scala/daniel/zolnai/marathon/zookeeper/NodeWatcher.scala | Github Open Source | Open Source | Apache-2.0 | 2,017 | marathon-email-notifier | dzolnai | Scala | Code | 251 | 700 | package daniel.zolnai.marathon.zookeeper
import daniel.zolnai.marathon.service.ZooKeeperService
import org.apache.zookeeper.Watcher.Event.EventType
import org.apache.zookeeper.{WatchedEvent, Watcher}
/**
* Created by Daniel Zolnai on 2016-07-09.
*/
class NodeWatcher(service: ZooKeeperService, zooKeeperPath: Strin... | 47,394 |
https://github.com/Shadollu/PHPCodeIgniterPractice/blob/master/application/views/pay2goinvoice/discount_invoice.php | Github Open Source | Open Source | MIT | null | PHPCodeIgniterPractice | Shadollu | PHP | Code | 164 | 808 | <html>
<body>
<?php echo validation_errors(); ?>
<div class="w3-container">
<?php echo form_open('Pay2GoInvoice/get_data/discount_invoice'); ?>
<label class="w3-text-green">RespondType</label>
<input class= "w3-input" type="text" name="RespondType" value="JS... | 14,688 |
https://github.com/savantly-net/sprout-platform/blob/master/backend/core/src/main/java/net/savantly/sprout/core/module/web/plugin/PluginState.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | sprout-platform | savantly-net | Java | Code | 11 | 48 | package net.savantly.sprout.core.module.web.plugin;
public enum PluginState {
alpha,
beta,
deprecated,
stable
}
| 37,422 |
https://github.com/johnbarrierwilson/site-2019/blob/master/src/assets/styles/modules/_button.scss | Github Open Source | Open Source | MIT | null | site-2019 | johnbarrierwilson | SCSS | Code | 156 | 560 | // *************************************
//
// Button
// -> Larger links
//
// *************************************
.button {
-webkit-appearance: none;
background: $c-orange;
background-image: linear-gradient(to right, $c-orange, $c-red);
border: none;
border-radius: 100px;
color: $c-text;
cursor: p... | 25,353 |
https://github.com/srjheam/Wallddit/blob/master/Wallddit/Helpers/WallpaperFlowHelper.cs | Github Open Source | Open Source | MIT | null | Wallddit | srjheam | C# | Code | 174 | 625 | using System;
using System.Threading.Tasks;
using Windows.Storage;
using Wallddit.BackgroundTasks;
using Wallddit.Models;
namespace Wallddit.Helpers
{
public static class WallpaperFlowHelper
{
private const string ContainerName = "WallpaperFlowTask";
private static ApplicationDataContainer Se... | 2,764 |
https://github.com/linminglu/Fgame/blob/master/game/welfare/welfare/task_open_servertime_changed.go | Github Open Source | Open Source | MIT | null | Fgame | linminglu | Go | Code | 52 | 158 | package welfare
import (
"time"
)
type openTimeChangedTask struct {
s *welfareService
}
func (t *openTimeChangedTask) Run() {
t.s.checkopenTimeChanged()
return
}
var (
openTimeChangedTaskTime = time.Second * 5
)
func (t *openTimeChangedTask) ElapseTime() time.Duration {
return openTimeChangedTaskTime
}
func... | 13,365 |
https://github.com/Krxwallo/Challenges/blob/master/plugin/src/main/java/net/codingarea/challenges/plugin/spigot/command/TimerCommand.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Challenges | Krxwallo | Java | Code | 280 | 1,362 | package net.codingarea.challenges.plugin.spigot.command;
import net.anweisen.utilities.bukkit.utils.animation.SoundSample;
import net.anweisen.utilities.common.misc.StringUtils;
import net.codingarea.challenges.plugin.ChallengeAPI;
import net.codingarea.challenges.plugin.Challenges;
import net.codingarea.challenges.pl... | 30,329 |
https://github.com/FrankBotos/PokerHandStrength/blob/master/InvalidCardException.cpp | Github Open Source | Open Source | MIT | null | PokerHandStrength | FrankBotos | C++ | Code | 16 | 46 | #include "InvalidCardException.hpp"
InvalidCardException::InvalidCardException() : std::runtime_error("Error: Invalid card value. Card value must be between 2-14")
{
} | 50,182 |
https://github.com/zizhizhan/jvm-snippets/blob/master/lang/reflections/src/main/java/com/zizhizhan/framework/mock/MockException.java | Github Open Source | Open Source | MIT | null | jvm-snippets | zizhizhan | Java | Code | 70 | 175 | package com.zizhizhan.framework.mock;
/**
* Created by IntelliJ IDEA.
* User: James
* Date: 12-11-4
* Time: AM11:09
* To change this template use File | Settings | File Templates.
*/
public class MockException extends RuntimeException {
private static final long serialVersionUID = 1L;
public MockExcept... | 22,735 |
https://github.com/charles7aponte/CentroInvestigacion/blob/master/proyecto_grado/app/views/administrador/formulario_eventos_noticias.blade.php | Github Open Source | Open Source | MIT | 2,015 | CentroInvestigacion | charles7aponte | Blade | Code | 490 | 3,109 | @extends('administrador.panel_admin')
@section('css-nuevos')
{{-- datepicker --}}
<link rel="stylesheet" href="{{URL::to('css/')}}/datepicker.css">
@stop
@section('javascript-nuevos')
<script type="text/javascript" src="{{URL::to('/js')}}/bootstrap-datepicker.js"></script>
<script type="text/java... | 38,141 |
https://github.com/liyanxia/dbsync/blob/master/src/main/scala/com/louyj/dbsync/monitor/SimpleAlarmSender.scala | Github Open Source | Open Source | Apache-2.0 | null | dbsync | liyanxia | Scala | Code | 74 | 282 | package com.louyj.dbsync.monitor
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.scala.DefaultScalaModule
import com.louyj.dbsync.sync.HeartbeatComponent
import org.slf4j.LoggerFactory
class SimpleAlarmSender extends AlarmSender {
val logger = LoggerFactory.getLogger(getClass... | 29,019 |
https://github.com/giovannaruggio/go-team/blob/master/_tests_/manager.test.js | Github Open Source | Open Source | MIT | null | go-team | giovannaruggio | JavaScript | Code | 56 | 160 | const Manager = require('../lib/Manager')
describe('Manager', () => {
it('Should create an object with name, ID, email, and office number', () => {
const testManager = new Manager('Steve', '1', 'steve@test.com', '000-000-0000');
expect(testManager).toEqual({ firstLast: 'Steve', employe... | 35,556 |
https://github.com/Sun870905/Spring_Boot_Warehouse/blob/master/src/main/java/app/repository/ProductRepository.java | Github Open Source | Open Source | MIT | 2,021 | Spring_Boot_Warehouse | Sun870905 | Java | Code | 23 | 92 | package app.repository;
import app.model.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface ProductRepository extends JpaRepository<Product, Long>, ProductRepositoryCustom {
Optional<Pro... | 5,395 |
https://github.com/ondrabublik/FlowPro/blob/master/src/main/java/flowpro/core/LinearSolvers/UmfpackExternSolver.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | FlowPro | ondrabublik | Java | Code | 65 | 256 | package flowpro.core.LinearSolvers;
import flowpro.core.Parameters;
import java.util.logging.Level;
import java.util.logging.Logger;
import umfpackwrapper.UmfpackWrapper;
/**
*
* @author obublik
*/
public class UmfpackExternSolver extends LinearSolver {
UmfpackWrapper umfWrap;
UmfpackExternSolver(SparseM... | 9,994 |
https://github.com/huangdx0726/spring-cloud-alibaba/blob/master/spring-cloud-alicloud-schedulerx/src/main/java/com/alibaba/alicloud/scx/endpoint/ScxEndpoint.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | spring-cloud-alibaba | huangdx0726 | Java | Code | 196 | 544 | /*
* Copyright (C) 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 16,578 |
https://github.com/Protractor-Jasmine-JavaScript/my-canary-project-reference/blob/master/test/e2e/pages/dashboard_page.js | Github Open Source | Open Source | MIT | null | my-canary-project-reference | Protractor-Jasmine-JavaScript | JavaScript | Code | 23 | 82 | 'use strict';
/* global describe, beforeEach, afterEach, it, browser, expect, element, by */
module.exports = function() {
this.workspace_title =
element(by.cssContainingText('.caption-subject.font-blue-madison.bold.uppercase', 'My Workspaces'));
};
| 2,994 |
https://github.com/ShaolinKungfuisGood/music-demon/blob/master/cloudfunctions/getQRcode/index.js | Github Open Source | Open Source | MIT | null | music-demon | ShaolinKungfuisGood | JavaScript | Code | 37 | 156 | // 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()
// 云函数入口函数
exports.main = async (event, context) => {
const wxContext = cloud.getWXContext()
const result = await cloud.openapi.wxacode.getUnlimited({
scene: wxContext.OPENID
})
const upload=await cloud.uploadFile({
cloud... | 40,997 |
https://github.com/touxiong88/92_mediatek/blob/master/frameworks/compile/mclinker/lib/Target/ARM/ARMEmulation.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | 92_mediatek | touxiong88 | C++ | Code | 176 | 736 | //===- ARMEmulation.cpp ---------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------------------... | 45,651 |
https://github.com/Vespertan/everest/blob/master/MARC.Everest.Formatters.XML.Datatypes.R1/Formatters/GTSFormatter.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | everest | Vespertan | C# | Code | 590 | 1,775 | /*
* Copyright 2008-2013 Mohawk College of Applied Arts and Technology
*
* 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
*
* Unl... | 26,564 |
https://github.com/billhsia/train-word2vec/blob/master/tensorboard_embeddings.ipynb | Github Open Source | Open Source | MIT | 2,017 | train-word2vec | billhsia | Jupyter Notebook | Code | 271 | 1,142 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Visualize word2vec embeddings in tensorboard"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import warnings\n",
"warnings.filter... | 32,536 |
https://github.com/quyse/inanity/blob/master/graphics/FrameBuffer.cpp | Github Open Source | Open Source | MIT | 2,020 | inanity | quyse | C++ | Code | 58 | 249 | #include "FrameBuffer.hpp"
#include "RenderBuffer.hpp"
#include "DepthStencilBuffer.hpp"
BEGIN_INANITY_GRAPHICS
FrameBuffer::FrameBuffer() : dirty(true) {}
bool FrameBuffer::IsDirty() const
{
return dirty;
}
ptr<RenderBuffer> FrameBuffer::GetColorBuffer(int i) const
{
return colorBuffers[i];
}
void FrameBuffer::... | 8,271 |
https://github.com/Sebastian-Rostock/javascript.s3d/blob/master/demo/pc.js | Github Open Source | Open Source | CC-BY-4.0 | 2,013 | javascript.s3d | Sebastian-Rostock | JavaScript | Code | 330 | 1,960 | /** pc - Prototype Class - [cc-by] 2007 Sebastian Rostock (bee-creative@gmx.de) **/
/** Dieses Werk ist unter einem Creative Commons Namensnennung 3.0 Deutschland Lizenzvertrag lizenziert. **/
function pc(){ // (): pcNS<pc>
var id=0;
var copy=function(Ns,Map){ // <GNs>(Ns: GNs; Map: Object{}): GNs
if(Ns&&Map)for(... | 49,248 |
https://github.com/thehumantaurch/djangular_test/blob/master/djangular/frontend/controllers.coffee | Github Open Source | Open Source | MIT | null | djangular_test | thehumantaurch | CoffeeScript | Code | 95 | 325 | controllers = angular.module('pollApp.controllers', [])
controllers.controller('questionListController', ($scope, $state, $log, questions) ->
$scope.questions = [
{question_text: "This is a test"}
]
)
controllers.controller('questionDetailController', ($scope, $state, $log, question) ->
$scope.question = qu... | 39,026 |
https://github.com/gajjaria/CyberSecurityGame1/blob/master/cyber/application/views/restricted.php | Github Open Source | Open Source | MIT | null | CyberSecurityGame1 | gajjaria | PHP | Code | 39 | 141 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Restricted</title>
</head>
<body>
<div id="container">
<h1>Restricted</h1>
</div>
<p>
This page is restricted, to see this page you need to be
logged in.
</p>
<a href='<?php echo base_url()."main/login" ?>'>Go to Login</a>
</body>
</html>
| 35,875 |
https://github.com/lokeshbhattarai/designpatterns-examples/blob/master/state/CarRacer.java | Github Open Source | Open Source | Apache-2.0 | null | designpatterns-examples | lokeshbhattarai | Java | Code | 127 | 447 | package state;
public class CarRacer {
private RoadState regularRoad;
private RoadState gravelRoad;
private RoadState wetRoad;
private RoadState icyRoad;
private RoadState currentRoad;
public CarRacer() {
regularRoad = new RegularRoad(this);
gravelRoad = new GravelRoad(this);
wetRoad = new WetRoad(this);... | 33,224 |
https://github.com/SJaffa/Q_plus/blob/master/AllStars/D2.32C1G3R97.star | Github Open Source | Open Source | MIT | 2,021 | Q_plus | SJaffa | Starlark | Code | 579 | 3,175 | # 192
#
0.09359 0.54040 0.07740
0.59806 -0.00913 0.67070
0.47317 -0.61413 0.42662
-0.08775 -0.46716 -0.22095
-0.64492 -0.07147 0.27959
-0.43529 -0.00665 0.47599
-0.35987 -0.06487 0.30891
0.01541 0.61926 0.39758
0.23734 -0.16172 -0.33191
-0.35311 -0.68539 0.01300
-0.00892 -0.81147 0.30216
0.11992 -0.73... | 21,817 |
https://github.com/cjsatuforc/BlindSpot/blob/master/serial_2cam_rCountRegions_touchOSC/Region.pde | Github Open Source | Open Source | MIT | 2,013 | BlindSpot | cjsatuforc | null | Spoken | 214 | 447 | boolean found = false;
class Region {
float xMax, checkWidth, xMin;
int trigger;
Region (float _xMax, float _rWidth, int _trigger) {
xMax = _xMax;
checkWidth = _rWidth;
xMin = _xMax - _rWidth;
trigger = _trigger;
}
void update() {
//myPort.write(trigger+1); // uncomment for serial servo... | 42,446 |
https://github.com/weijianx/Module_Lib/blob/master/E230 - ds18b20-F8/User/main.c | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Module_Lib | weijianx | C | Code | 1,005 | 4,117 | /*!
\file main.c
\brief USART HyperTerminal Interrupt
\version 2018-06-19, V1.0.0, firmware for GD32E230
*/
/*
Copyright (c) 2018, GigaDevice Semiconductor Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided ... | 361 |
https://github.com/Electromining/pi2arduino/blob/master/workingtxrxpair.py | Github Open Source | Open Source | MIT | null | pi2arduino | Electromining | Python | Code | 159 | 578 | import time
from pySerialTransfer import pySerialTransfer as txfer
import json
if __name__ == '__main__':
try:
link = txfer.SerialTransfer('/dev/ttyACM0')
link.open()
time.sleep(2) # allow some time for the Arduino to completely reset
ledstate = True
changetime = t... | 20 |
https://github.com/AlisonMarques/Happy-API/blob/master/src/services/session.service.ts | Github Open Source | Open Source | MIT | 2,021 | Happy-API | AlisonMarques | TypeScript | Code | 62 | 131 | // import httpStatus from 'http-status';
// import { getRepository } from 'typeorm';
// import User from '../models/User';
class SessionService {
// store = async (email: any) => {
// const userRepository = getRepository(User);
// const user = await userRepository.findOne({ where: { email } });
// ... | 7,179 |
https://github.com/BradPerkins/AVF/blob/master/AVF_project2/build/iphone/build/AVF_project2.build/Debug-iphoneos/AVF_project2-universal.build/Objects-normal/armv7/TiUIListViewProxy.d | Github Open Source | Open Source | Apache-2.0 | 2,015 | AVF | BradPerkins | Makefile | Code | 3 | 49 | dependencies: \
/Users/bradperkins/Documents/Titanium_Studio_Workspace/AVF_project2/build/iphone/Classes/TiUIListViewProxy.m
| 7,802 |
https://github.com/GytisLaukaitis/CMS/blob/master/sposts.php | Github Open Source | Open Source | MIT | 2,021 | CMS | GytisLaukaitis | PHP | Code | 456 | 1,674 | <?php include 'includes/database.php';?>
<?php include 'includes/header.php';?>
<?php include 'includes/navigation.php';?>
<?php include 'includes/functions.php';?>
<?php
if(isset($_GET['tag'])) {
$tag = mysqli_real_escape_string($con, $_GET['tag']);
// find total number of posts to determine number of pages ... | 41,190 |
https://github.com/synergo/RedDog/blob/master/src/RedDog.Messenger.Containers.Autofac/AutofacContainerConfigurationExtensions.cs | Github Open Source | Open Source | MIT | 2,016 | RedDog | synergo | C# | Code | 50 | 201 | using Autofac;
using RedDog.Messenger.Configuration;
namespace RedDog.Messenger.Containers.Autofac
{
public static class AutofacContainerConfigurationExtensions
{
public static TConfiguration WithAutofac<TConfiguration>(this TConfiguration configuration, IComponentContext context)
where T... | 15,834 |
https://github.com/ihan1208/kabamaru/blob/master/src/rgbd_reader.cpp | Github Open Source | Open Source | MIT | 2,019 | kabamaru | ihan1208 | C++ | Code | 134 | 541 | #include <kabamaru/rgbd_reader.hpp>
#include <opencv2/videoio/videoio_c.h>
RGBDReader::RGBDReader() {
reader_type = RGBDReader::OPENNI_DEVICE;
}
RGBDReader::RGBDReader(const std::string &rgb_fmt, const std::string &depth_fmt) {
rgb_file_fmt = rgb_fmt;
depth_file_fmt = depth_fmt;
reader_type = RGBDReader::FILE_REA... | 1,739 |
https://github.com/matt-oak/Project_Euler/blob/master/34_digit_factorials.py | Github Open Source | Open Source | MIT | 2,016 | Project_Euler | matt-oak | Python | Code | 55 | 127 | import math
final_acc = 0
for i in range(1, 100000):
str_num = str(i)
acc = 0
for j in range(0, len(str_num)):
num = int(str_num[j])
fact = math.factorial(num)
acc = acc + fact
if acc == i and i != 1 and i != 2:
print i
final_acc = final_acc + i
print "answer: ", final_acc | 10,935 |
https://github.com/lambdadesigner/lambdaa/blob/master/new/datas/js/custom.js | Github Open Source | Open Source | BSD-3-Clause | 2,015 | lambdaa | lambdadesigner | JavaScript | Code | 345 | 1,539 | // Universal Variables
var windowsheight = $(window).height();
var windowswidth = $(window).width();
//jQuery to collapse the navbar on scroll
$(window).bind('mousewheel', $.proxy(function(e){
/*if ($(".navbar").offset().top > 50) {
$(".navbar-fixed-top").css('background' , 'red');
} else {
$(".navbar-fixed-to... | 42,791 |
https://github.com/mattstyles/browserify-babel-scaffold/blob/master/src/components/basic/basic.less | Github Open Source | Open Source | ISC | null | browserify-babel-scaffold | mattstyles | Less | Code | 26 | 95 |
.Basic {
margin-top: @--pad-general;
margin-bottom: @--pad-general;
padding: @--pad-general * 0.5;
background: @--color-white20;
border-radius: 4px;
}
.Basic img {
max-width: 100%;
margin: 0 auto;
display: block;
}
| 26,943 |
https://github.com/TrubaRoman/eltk_public_test/blob/master/resources/views/home/_slider.blade.php | Github Open Source | Open Source | MIT | null | eltk_public_test | TrubaRoman | PHP | Code | 700 | 8,772 |
<div id="rev_slider_4_1_wrapper" class="rev_slider_wrapper fullwidthbanner-container slide-overlay" data-alias="classic4export" data-source="gallery">
<!-- START REVOLUTION SLIDER 5.4.8 auto mode -->
<div id="rev_slider_4_1" class="rev_slider fullwidthabanner" data-version="5.4.8.1">
<ul>
... | 40,055 |
https://github.com/ricardorachaus/ci_swift/blob/master/CI/CI/ViewController.swift | Github Open Source | Open Source | MIT | null | ci_swift | ricardorachaus | Swift | Code | 44 | 101 | //
// ViewController.swift
// CI
//
// Created by Ricardo Rachaus on 23/10/18.
// Copyright © 2018 Ricardo Rachaus. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
static func add(x: Int, y: Int) -> Int {
return x + y
}
}
| 34,043 |
https://github.com/TongjiSSERollMan/Design_Pattern_2020/blob/master/src/main/java/com/github/tongjisserollman/iceamusementpark/base/website/frontcontroller/TicketView.java | Github Open Source | Open Source | MIT | 2,020 | Design_Pattern_2020 | TongjiSSERollMan | Java | Code | 28 | 176 | package com.github.tongjisserollman.iceamusementpark.base.website.frontcontroller;
import com.github.tongjisserollman.iceamusementpark.util.CallStackLogInfo;
import com.github.tongjisserollman.iceamusementpark.util.CallStackLogger;
/**
* @author Mrcopytuo
*
* 购票页面
*/
public class TicketView {
/**
* 页面展示... | 29,152 |
https://github.com/migashko/migashko.com/blob/master/.gitmodules | Github Open Source | Open Source | Unlicense | 2,022 | migashko.com | migashko | Git Config | Code | 8 | 41 | [submodule "split2flac"]
path = split2flac
url = https://github.com/ftrvxmtrx/split2flac.git
| 54,323 |
https://github.com/wbsguo/library/blob/master/MyGreenDAO/app/src/main/java/itangqi/me/mygreendao/NoteAdapter.java | Github Open Source | Open Source | MIT | 2,016 | library | wbsguo | Java | Code | 171 | 752 | package itangqi.me.mygreendao;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.List;
import itangqi.me.mygreendao.be... | 8,628 |
https://github.com/AmitHasanShuvo/Face-Detection-with-Image-Enchantments/blob/master/opencv-master/modules/dnn/src/cuda/grid_stride_range.hpp | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,020 | Face-Detection-with-Image-Enchantments | AmitHasanShuvo | C++ | Code | 404 | 1,214 | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_DNN_SRC_CUDA_GRID_STRIDE_RANGE_HPP
#define OPENCV_DNN_SRC_CUDA_GRID_STRIDE_RANGE_HPP
#include "types.hpp"
#i... | 36,529 |
https://github.com/PayloadDev/react-at-rest/blob/master/test/delivery_service.spec.cjsx | Github Open Source | Open Source | MIT | 2,018 | react-at-rest | PayloadDev | CoffeeScript | Code | 190 | 578 | React = require 'react'
superagent = require 'superagent'
mocker = require('superagent-mocker')(superagent)
expect = require 'expect'
TestUtils = require 'react-addons-test-utils'
{Store, DeliveryService} = require '../modules'
describe 'DeliveryService', ->
store = new Store 'users'
desc... | 33,027 |
https://github.com/iamfat/gini/blob/master/ci/test/Core/Core.php | Github Open Source | Open Source | MIT | 2,022 | gini | iamfat | PHP | Code | 87 | 472 | <?php
namespace Gini\PHPUnit\Core;
class Core extends \Gini\PHPUnit\TestCase\CLI
{
public function testLocateFile()
{
$path = \Gini\Core::locateFile('class/Gini/Core.php', 'gini');
self::assertEquals($path, SYS_PATH.'/class/Gini/Core.php');
$path = \Gini\Core::locateFile('class/Gini/C... | 40,103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.