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/vcellmike/Biosimulators_VCell/blob/master/vcell-client/src/main/java/org/vcell/util/gui/exporter/ExtensionFilter.java | Github Open Source | Open Source | MIT | 2,022 | Biosimulators_VCell | vcellmike | Java | Code | 517 | 1,319 | /*
* Copyright (C) 1999-2011 University of Connecticut Health Center
*
* Licensed under the MIT License (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.opensource.org/licenses/mit-license.php
*/
package org.vcell.uti... | 47,543 |
https://github.com/i0r/huisclos/blob/master/Editor/Graphics/World/EnvProbeCapture.h | Github Open Source | Open Source | X11 | null | huisclos | i0r | C | Code | 35 | 117 | #pragma once
struct mesh_t;
struct renderContext_t;
class FreeCamera;
class Camera;
class EnvProbeCapture
{
public:
EnvProbeCapture();
EnvProbeCapture( EnvProbeCapture& ) = delete;
~EnvProbeCapture() = default;
void Destroy();
const int Create( const renderContext_t* context );
vo... | 7,178 |
https://github.com/hogoww/Master-S3/blob/master/metaprog/emf2/org.eclipse.emf.ecore/src/org/eclipse/emf/ecore/impl/EGenericTypeImpl.java | Github Open Source | Open Source | MIT | null | Master-S3 | hogoww | Java | Code | 3,642 | 12,250 | /**
* Copyright (c) 2006-2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contrib... | 36,814 |
https://github.com/reels-research/iOS-Private-Frameworks/blob/master/CoreMediaStream.framework/MSASComment.h | Github Open Source | Open Source | MIT | 2,022 | iOS-Private-Frameworks | reels-research | C | Code | 205 | 822 | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/CoreMediaStream.framework/CoreMediaStream
*/
@interface MSASComment : NSObject <NSSecureCoding> {
NSString * _GUID;
int _ID;
NSDate * _clientTimestamp;
NSString * _content;
NSString * _email;
NSString * _firstName;
... | 20,376 |
https://github.com/ksobiecki/Delta2021/blob/master/src/components/Landing/FooterSection/styled.ts | Github Open Source | Open Source | MIT | 2,021 | Delta2021 | ksobiecki | TypeScript | Code | 59 | 195 | import styled from 'styled-components';
import { Link } from 'gatsby';
import { StyledSection } from '../../Shared/SectionLayout/styled';
import backgound from '../../../assets/images/footerBackground.png';
export const FooterSectionLayout = styled(StyledSection)`
height: 90vh;
margin: 0;
padding: 0;
max-width:... | 6,728 |
https://github.com/sherry0319/YTSvrLib/blob/master/Sample/Sample_CallDB/timer/TimerMgr.cpp | Github Open Source | Open Source | MIT | 2,022 | YTSvrLib | sherry0319 | C++ | Code | 249 | 1,285 | #include "stdafx.h"
#include "TimerMgr.h"
void CTimerMgr::SetEvent()
{
YTSvrLib::CServerApplication::GetInstance()->SetEvent(EAppEvent::eAppTimerMgrOnTimer);
}
void CTimerMgr::RegistTimerFunc(EM_TIMER_TYPE eTimerType,TimerFunc pFunc)
{
m_mapTimerFunc[eTimerType] = pFunc;
}
CTimerMgr::CTimerMgr(void)
{
#ifdef LIB... | 21,032 |
https://github.com/kungze/charts/blob/master/charts/helm-toolkit/templates/scripts/_create-s3-bucket.sh.tpl | Github Open Source | Open Source | Apache-2.0 | null | charts | kungze | null | Spoken | 150 | 503 | {{/*
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 writing, software
distributed under the License ... | 43,611 |
https://github.com/zdennis/strac/blob/master/db/migrate/020_add_position_to_priority.rb | Github Open Source | Open Source | MIT | 2,008 | strac | zdennis | Ruby | Code | 46 | 141 | class AddPositionToPriority < ActiveRecord::Migration
class Priority < ActiveRecord::Base ; end
def self.up
add_column :priorities, :position, :integer
Priority.delete_all
Priority.create! :name => 'High', :color => "red"
Priority.create! :name => 'Medium', :color => "yellow"
Priority.c... | 43,745 |
https://github.com/gracelogic/platform/blob/master/utils/db/src/main/java/com/gracelogic/platform/db/exception/ObjectNotFoundException.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | platform | gracelogic | Java | Code | 29 | 93 | package com.gracelogic.platform.db.exception;
public class ObjectNotFoundException extends Exception {
public ObjectNotFoundException() {
super("");
}
public ObjectNotFoundException(String msg) {
super(msg);
}
public ObjectNotFoundException(String msg, Throwable t) {
super... | 41,984 |
https://github.com/hangong/ch/blob/master/homo_solver/iscolinear_n.m | Github Open Source | Open Source | MIT | 2,019 | ch | hangong | MATLAB | Code | 73 | 181 | % ISCOLINEAR_N - are 3 points colinear (ND version)
%
% Usage: r = iscolinear_n(P)
%
% Arguments:
% P - Points in ND (Nx3).
%
% Returns:
% r = 1 if points are co-linear, 0 otherwise
% Copyright (c) 2015 Han Gong
% University of East Anglia
%
function r = iscolinear_n(P)
if ~(size(P,1)>=3) ... | 38,287 |
https://github.com/md-jamal/linux-systems-programming/blob/master/29/prog29.c | Github Open Source | Open Source | MIT | 2,016 | linux-systems-programming | md-jamal | C | Code | 117 | 369 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#define handle_error(msg) \
do { perror(msg); exit(EXIT_FAILURE); } while(0)
int counter = 0;
void sigintHandler(int sig) {
counter = 0;
return;
}
int main(int argc, char *argv[]) {
struct sigaction action;
... | 40,213 |
https://github.com/mvanotti/fuchsia-mirror/blob/master/src/sys/pkg/bin/pkg-resolver/src/metrics_util.rs | Github Open Source | Open Source | BSD-2-Clause | 2,021 | fuchsia-mirror | mvanotti | Rust | Code | 319 | 1,534 | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {
crate::error,
cobalt_sw_delivery_registry::{
CreateTufClientMetricDimensionResult, UpdateTufClientMetricDimensionResult,
},
h... | 44,604 |
https://github.com/devhelpr/flowrunner-canvas/blob/master/src/flowrunner-plugins/debug-task.ts | Github Open Source | Open Source | MIT | 2,022 | flowrunner-canvas | devhelpr | TypeScript | Code | 79 | 195 | import { ObservableTask } from '@devhelpr/flowrunner';
import * as uuid from 'uuid';
const uuidV4 = uuid.v4;
export class DebugTask extends ObservableTask {
public execute(node: any, services: any) {
let payload = { ...node.payload };
payload.debugId = uuidV4(); // use this to match between (line)graph and h... | 6,166 |
https://github.com/toficofi/Feed-My-Pet/blob/master/Feed My Pet/Assets/StreamingAssets/YoutubeBot/node_modules/lodash/spread.js.meta | Github Open Source | Open Source | MIT, CC0-1.0 | 2,020 | Feed-My-Pet | toficofi | Unity3D Asset | Code | 10 | 56 | fileFormatVersion: 2
guid: 7d173b360b2e5df418c74fca442018fa
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| 16,640 |
https://github.com/sitn/geoshop2/blob/master/back/api/tests/test_pricing.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | geoshop2 | sitn | Python | Code | 733 | 4,114 | from itertools import islice
from django.core import mail
from django.contrib.auth import get_user_model
from django.contrib.gis.geos import Polygon, Point
from djmoney.money import Money
from rest_framework.test import APITestCase
from api.models import Contact, Pricing, Product, PricingGeometry, Order, OrderItem, Ord... | 4,286 |
https://github.com/GuilhermeFGL/Crud-Produto-Imagem/blob/master/src/test/java/com/guilhermefgl/spring/crudproduto/models/services/ImagemServiceTest.java | Github Open Source | Open Source | MIT | 2,018 | Crud-Produto-Imagem | GuilhermeFGL | Java | Code | 105 | 650 | package com.guilhermefgl.spring.crudproduto.models.services;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import o... | 36,712 |
https://github.com/iFrosta/SnakeGame/blob/master/.browserslistrc | Github Open Source | Open Source | Apache-2.0 | 2,021 | SnakeGame | iFrosta | null | Spoken | 20 | 35 | defaults
> 0.25%
not dead
iOS 7
not IE 11
last 2 versions
last 3 iOS versions
maintained node versions | 9,651 |
https://github.com/caoxingxing123/Sprint/blob/master/Sprint/Manager/Model/test4.m | Github Open Source | Open Source | ICU | 2,019 | Sprint | caoxingxing123 | Objective-C | Code | 5 | 20 |
#import "test4.h"
@implementation test4
@end
| 37,322 |
https://github.com/takint/ff.words/blob/master/ff.words.site/ffwords-react/src/actions/entry-actions.js | Github Open Source | Open Source | MIT | 2,017 | ff.words | takint | JavaScript | Code | 107 | 314 | //import { entries } from '../entry-data';
import { client } from './index';
const retrieveApi = '/entry/GetEntries';
const getApi = 'entry/GetEntry';
const addEntryApi = '/entry/AddEntry';
const updateEntryApi = 'entry/UpdateEntry';
export function fetchEntries(){
return dispatch => {
dispatch({
... | 23,757 |
https://github.com/InfrastructureHeroes/Intune-Apps/blob/master/PS-Help/Source/Update-PS-Help.ps1 | Github Open Source | Open Source | MIT | 2,022 | Intune-Apps | InfrastructureHeroes | PowerShell | Code | 155 | 479 | <#
.SYNOPSIS
Updates PowerShell Help source folder for deployment with Intune-Apps Framework
.DESCRIPTION
Updates PowerShell Help source folder for deployment with Intune-Apps Framework. This script needs to be run from his location. No Administrative permissions required.
.EXAMPLE
C:\PS> Update-PS-Help.ps1
.NOTE... | 18,368 |
https://github.com/blockspacer/questhub/blob/master/www/sass/realm/_big.scss | Github Open Source | Open Source | MIT | 2,015 | questhub | blockspacer | SCSS | Code | 153 | 557 | .realm-big {
position: relative;
margin-bottom: 20px;
@include clearfix;
._edit {
display: none;
}
}
.realm-big-description-buttons {
.cancel {
float: right;
}
.save {
float: right;
margin-left: 5px;
}
padding-bottom: 10px;
}
.realm-big-logo {
... | 27,828 |
https://github.com/gballet/sietch/blob/master/app/js/label.js | Github Open Source | Open Source | Unlicense | 2,017 | sietch | gballet | JavaScript | Code | 40 | 157 | const Widget = require("js/widget");
class Label extends Widget {
constructor(text, width, height, parent, session) {
super(parent, "g");
this.widget.innerHTML = `
<defs>
<clipPath id="labellimits">
<rect x=0 y=0 width=${width-1} height=${height-1}><... | 38,233 |
https://github.com/bigdatamoore/py-az-cli/blob/master/test/pyaz/acs/__init__.py | Github Open Source | Open Source | MIT | null | py-az-cli | bigdatamoore | Python | Code | 336 | 1,477 | import json, subprocess
from .. pyaz_utils import get_cli_name, get_params
def browse(resource_group, name, disable_browser=None, ssh_key_file=None):
params = get_params(locals())
command = "az acs browse " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE,... | 31,301 |
https://github.com/nyhbi/Zeldark/blob/master/.import/vidaLlena.png-b82f8b35ccb54d2bf3954b0addb86a95.md5 | Github Open Source | Open Source | MIT | 2,019 | Zeldark | nyhbi | null | Spoken | 2 | 54 | source_md5="5938dff3309cb0634e216ce723826f72"
dest_md5="762c0fbf956eb92c2e5badbe8d46f9c5"
| 34,363 |
https://github.com/tosbaha/RNSync/blob/master/android/src/main/java/com/patrickcremin/react/RNSyncModule.java | Github Open Source | Open Source | MIT | 2,019 | RNSync | tosbaha | Java | Code | 1,806 | 6,430 | package com.patrickcremin.react;
import android.content.Context;
import android.util.Base64;
import android.util.Log;
import com.cloudant.sync.documentstore.Attachment;
import com.cloudant.sync.documentstore.DocumentBodyFactory;
import com.cloudant.sync.documentstore.DocumentNotFoundException;
import com.cloudant.syn... | 35,672 |
https://github.com/DouMaokang/Project-Duke-Manager/blob/master/src/main/java/duke/ui/DialogBox.java | Github Open Source | Open Source | MIT | 2,020 | Project-Duke-Manager | DouMaokang | Java | Code | 241 | 721 | package duke.ui;
import java.io.IOException;
import java.util.Collections;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Pos;
import java... | 46,019 |
https://github.com/NoPlayer40600/BOJ_CPP/blob/master/src/class03/p2579.cpp | Github Open Source | Open Source | MIT | null | BOJ_CPP | NoPlayer40600 | C++ | Code | 52 | 133 | #include <cstdio>
int climb(int stair[], int n, int pos, int *cache = nullptr)
{
}
int main(void)
{
int n = 0, *stair = nullptr;
scanf("%d", &n);
stair = new int[n]();
for (int index = 0; index < n; index++)
scanf("%d", &stair[index]);
printf("%d\n", climb(stair, n, new int[n + 1]()));
... | 17,836 |
https://github.com/mu-team/django-cutils/blob/master/setup.py | Github Open Source | Open Source | MIT | null | django-cutils | mu-team | Python | Code | 97 | 335 | #!/usr/bin/env python
import pathlib
import setuptools
PROJECT_ROOT = pathlib.Path(__file__).parent
README_FILE = (PROJECT_ROOT / 'README.md').as_posix()
with open(README_FILE) as f:
verbose = f.read()
about = {
'name': 'django-cutils',
'version': '0.1.0',
'author': 'Kirill (kxnes) Kolesnikov',
... | 3,052 |
https://github.com/Thomas-YangHT/php/blob/master/wechatphp/docker-run.sh | Github Open Source | Open Source | Apache-2.0 | null | php | Thomas-YangHT | Shell | Code | 25 | 84 | docker rm `docker stop wechatphp5`
docker run --name wechatphp5 \
--restart=always \
--dns=223.5.5.5 \
-e TZ='Asia/Shanghai' \
-p 8110:80 \
-d php5 \
sh /php/startphp.sh
| 34,022 |
https://github.com/tom95/sqFreeTypeFont/blob/master/src/FreeType-Core.package/FreeTypeFont.class/instance/addItalic..st | Github Open Source | Open Source | MIT | 2,021 | sqFreeTypeFont | tom95 | null | Spoken | 28 | 82 | as yet unclassified
addItalic: aPath
derivativeFonts ifNil: [derivativeFonts := Array new: 32].
derivativeFonts at: TextEmphasis italic emphasisCode put: ((FreeTypeFont file: aPath pointSize: self pointSize)
emphasis: TextEmphasis italic emphasisCode) | 49,148 |
https://github.com/yasinturkdogan/YTSocket/blob/master/YTSocket/YTTypeAlias.swift | Github Open Source | Open Source | Apache-2.0 | null | YTSocket | yasinturkdogan | Swift | Code | 38 | 92 | //
// YTTypeAlias.swift
// YTSocket
//
// Created by Yasin Turkdogan on 1/5/17.
// Copyright © 2017 yasinturkdogan. All rights reserved.
//
import Foundation
public typealias YTResponseClosure = ((YTResponse) -> ());
public typealias SimpleClosure = (() -> ());
| 23,343 |
https://github.com/Eng-MahmoudBasuony/FoodSpotti/blob/master/app/src/main/java/bfood/spotting/eng_mahnoud83coffey/embeatit/Helper/NotificationHelper.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | FoodSpotti | Eng-MahmoudBasuony | Java | Code | 138 | 727 | package bfood.spotting.eng_mahnoud83coffey.embeatit.Helper;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.ContextWrapper;
impo... | 48,732 |
https://github.com/RedStar08/Supermarket/blob/master/zhouyu/Supermarket_webv3.0/pages/store-add.php | Github Open Source | Open Source | Apache-2.0 | null | Supermarket | RedStar08 | PHP | Code | 301 | 1,795 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>仓库添加-超市后台管理系统</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="../css/fo... | 51,932 |
https://github.com/bregmanstudio/BLAST/blob/master/aCollage/adbconnect.sh | Github Open Source | Open Source | MIT | 2,017 | BLAST | bregmanstudio | Shell | Code | 14 | 56 | #!/bin/bash
sudo ifconfig eth2 192.168.0.200 netmask 255.255.255.0
adb kill-server
ADBHOST=192.168.0.202 adb devices
adb shell
| 13,614 |
https://github.com/timgates42/bokeh/blob/master/sphinx/source/docs/user_guide/examples/interaction_checkbox_button_group.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | bokeh | timgates42 | Python | Code | 22 | 88 | from bokeh.io import output_file, show
from bokeh.models import CheckboxButtonGroup
output_file("checkbox_button_group.html")
checkbox_button_group = CheckboxButtonGroup(
labels=["Option 1", "Option 2", "Option 3"], active=[0, 1])
show(checkbox_button_group)
| 4,208 |
https://github.com/Invoca/backdraft/blob/master/src/data_table/column_type.js | Github Open Source | Open Source | MIT | 2,021 | backdraft | Invoca | JavaScript | Code | 41 | 155 | class ColumnType {
constructor() {
this._getterSetter("configMatcher");
this._getterSetter("nodeMatcher");
this._getterSetter("definition");
this._getterSetter("renderer");
}
_getterSetter(prop) {
this._store || (this._store = {});
this[prop] = function(value) {
if (arguments.lengt... | 2,706 |
https://github.com/Tiamat-Tech/sourcegraph/blob/master/migrations/frontend/1528395851_workerutil_last_updated_at.up.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | sourcegraph | Tiamat-Tech | SQL | Code | 102 | 264 | BEGIN;
ALTER TABLE batch_spec_executions ADD COLUMN last_heartbeat_at timestamp with time zone;
ALTER TABLE changeset_jobs ADD COLUMN last_heartbeat_at timestamp with time zone;
ALTER TABLE changesets ADD COLUMN last_heartbeat_at timestamp with time zone;
ALTER TABLE cm_action_jobs ADD COLUMN last_heartbeat_at timesta... | 5,342 |
https://github.com/saml/rosling/blob/master/src/main/java/rosling/annotation/JcrNode.java | Github Open Source | Open Source | Apache-2.0 | 2,012 | rosling | saml | Java | Code | 29 | 136 | package rosling.annotation;
import javax.jcr.nodetype.NodeType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author saml
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, Elemen... | 22,085 |
https://github.com/banne2266/Embedded-Systems-Design-NCTU-2021/blob/master/lab5/2webcam.py | Github Open Source | Open Source | MIT | 2,021 | Embedded-Systems-Design-NCTU-2021 | banne2266 | Python | Code | 165 | 451 | # import the necessary packages
from __future__ import print_function
from imutils.video import WebcamVideoStream
from imutils.video import FPS
import imutils
import time
import cv2
try:
# created a *threaded *video stream, allow the camera sensor to warmup,
# and start the FPS counter
print("[INFO] sampl... | 9,042 |
https://github.com/yretenai/Snuggle/blob/master/Snuggle/App.xaml.cs | Github Open Source | Open Source | MIT | 2,021 | Snuggle | yretenai | C# | Code | 171 | 548 | using System;
using System.Linq;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Threading;
using Serilog;
using Snuggle.Handlers;
namespace Snuggle;
/// <summary>Interaction logic for App.xaml</summary>
public partial class App {
static App() {
var _ = CoInitializeEx(Int... | 50,756 |
https://github.com/EndPointCorp/interactivespaces/blob/master/interactivespaces-core/src/main/java/interactivespaces/util/process/NativeCommandRunner.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | interactivespaces | EndPointCorp | Java | Code | 215 | 437 | /*
* Copyright (C) 2012 Google 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 ... | 42,851 |
https://github.com/BBN-E/serif/blob/master/src/ActiveLearning/EventUtilities.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | serif | BBN-E | C++ | Code | 64 | 246 | /*
#include "Generic/common/leak_detection.h"
#include "EventUtilities.h"
#include "Generic/common/Symbol.h"
#include "Generic/theories/EventMention.h"
#include "Generic/theories/SynNode.h"
#include "Generic/theories/Proposition.h"
using std::wstring;
wstring ALEventUtilities::anchorArg(const EventMention* event) {
... | 47,663 |
https://github.com/cmyr/TopOptTools.jl/blob/master/test/test.jl | Github Open Source | Open Source | MIT | 2,020 | TopOptTools.jl | cmyr | Julia | Code | 32 | 75 | ## This is a working test file for the julia packages installed.
t = Template(;
user = "keithjlee",
license = "MIT",
authors = ["Keith J. Lee"],
julia_version = v"1.5"
)
generate("TopOptTools", t) | 42,124 |
https://github.com/tatsumara/altair/blob/master/commands/fun/youtube.js | Github Open Source | Open Source | MIT | 2,021 | altair | tatsumara | JavaScript | Code | 163 | 475 | const ytsr = require('ytsr');
const { MessageActionRow, MessageButton } = require('discord.js');
module.exports = {
name: 'youtube',
description: 'Searches for a video on YouTube.',
usage: 'youtube <search term>',
cooldown: '15',
args: true,
aliases: ['yt', 'ytube'],
async execute(client, message, args, functio... | 52,401 |
https://github.com/pjunior/titanium/blob/master/apps/testapp/Resources/userscripts/gmail.user.js | Github Open Source | Open Source | Apache-2.0 | 2,009 | titanium | pjunior | JavaScript | Code | 82 | 236 | // ==UserScript==
// @name Ad-less Gmail
// @version 3.1
// @description Ad-less Gmail
// @author dfeng - Based on this one: http://userscripts.org/scripts/show/37693
// @include http://mail.google.com/mail/
// @include http://mail.google.com/*
// @include https://mail.google.com/... | 38,995 |
https://github.com/megamoo456/Marketplace/blob/master/node_modules/ra-ui-materialui/esm/list/datagrid/DatagridCell.js | Github Open Source | Open Source | MIT | null | Marketplace | megamoo456 | JavaScript | Code | 225 | 617 | var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
r... | 12,322 |
https://github.com/RegionOrebroLan/ActiveLogin-Authentication-Extensions/blob/master/Source/Project/Configuration/ActiveLoginConfigurationOptions.cs | Github Open Source | Open Source | MIT | null | ActiveLogin-Authentication-Extensions | RegionOrebroLan | C# | Code | 30 | 86 | namespace RegionOrebroLan.ActiveLogin.Authentication.Configuration
{
public class ActiveLoginConfigurationOptions
{
#region Properties
public virtual ActiveLoginEnvironment Environment { get; set; } = ActiveLoginEnvironment.Production;
public virtual SimulatedPersonOptions SimulatedPerson { get; set; }
#end... | 4,685 |
https://github.com/chopo156/5Star_Roleplay/blob/master/resources/[vRP2]/vrp/modules/profiler.lua | Github Open Source | Open Source | MIT | 2,021 | 5Star_Roleplay | chopo156 | Lua | Code | 328 | 1,206 | -- https://github.com/ImagicTheCat/vRP
-- MIT license (see LICENSE or vrp/vRPShared.lua)
if not vRP.modules.profiler then return end
local ELProfiler = module("vrp", "lib/ELProfiler")
local lang = vRP.lang
local Profiler = class("Profiler", vRP.Extension)
local function prompt_options(user)
local options = {period... | 30,693 |
https://github.com/bonos103/vue-event-listener/blob/master/index.js | Github Open Source | Open Source | MIT | 2,020 | vue-event-listener | bonos103 | JavaScript | Code | 65 | 226 | const VueAddEventListener = {
install(Vue) {
Vue.prototype.$listen = function(target, eventType, callback, options) {
const self = this
if (!self._eventRemovers) {
self._eventRemovers = []
}
target.addEventListener(eventType, callback, options)
self._eventRemovers.push({
... | 421 |
https://github.com/cmsong111/School_Assignment/blob/master/HCI_Programming/MiddleTest/HCI21_Middleterm_LAB.cs | Github Open Source | Open Source | MIT | null | School_Assignment | cmsong111 | C# | Code | 1,188 | 5,263 | using System;
///0. Namespace HCI21_Midterm_본인이름_ID 사용한다.
namespace HCI21_Midterm_김남주_C20192336
{
// 3번 문제의 클래스
class TemperatureConverter
{
//Fahrenheit -> Celsius
//숫자 뒤에 f값을 주어야 실수형 계산이 가능합니다.
public static double FromFahrenheitToCelsius(double x)
{
double re... | 29,532 |
https://github.com/mariari/Bindle/blob/master/src/module.lisp | Github Open Source | Open Source | MIT | 2,019 | Bindle | mariari | Common Lisp | Code | 1,069 | 3,511 | (defpackage #:module
(:documentation
"provides the defmodule macro that gives module functors along with
anonymous modules, module signatures, and other life improvements to CL
package system")
(:use #:cl #:error-type #:utility #:expanders)
(:export #:defmodule #:defmodule-named #:*functor-name*))
(in-package... | 15,404 |
https://github.com/JyFangYang/java-sdk/blob/master/src/integration-test/java/org/fisco/bcos/sdk/transaction/decoder/CodecComplexTest.java | Github Open Source | Open Source | Apache-2.0 | null | java-sdk | JyFangYang | Java | Code | 118 | 754 | package org.fisco.bcos.sdk.transaction.decoder;
import java.util.ArrayList;
import java.util.List;
import org.bouncycastle.util.encoders.Hex;
import org.fisco.bcos.sdk.BcosSDK;
import org.fisco.bcos.sdk.client.Client;
import org.fisco.bcos.sdk.codec.datatypes.generated.tuples.generated.Tuple1;
import org.fisco.bcos.sd... | 44,660 |
https://github.com/dstanesc/FluidFramework/blob/master/server/routerlicious/packages/services-core/src/runWithRetry.ts | Github Open Source | Open Source | MIT | 2,021 | FluidFramework | dstanesc | TypeScript | Code | 1,051 | 2,194 | /*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
import { delay } from "@fluidframework/common-utils";
import { Lumberjack } from "@fluidframework/server-services-telemetry";
import { NetworkError } from "@fluidframework/server-services-client";
... | 37,915 |
https://github.com/zhuimeng999/custom_helper_op/blob/master/custom_helper_op/cc/kernels/index_initializer.h | Github Open Source | Open Source | Apache-2.0 | null | custom_helper_op | zhuimeng999 | C | Code | 98 | 331 | #ifndef _INDEX_INITIALIZER_H
#define _INDEX_INITIALIZER_H
#define EIGEN_USE_THREADS
#include "tensorflow/core/framework/tensor_types.h"
#include "tensorflow/core/platform/types.h"
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
namespace tensorflow {
namespace custom_helper_op {
namespace functor {
tem... | 34,434 |
https://github.com/war-man/Mafia.NET/blob/master/Mafia.NET/Matches/Phases/Clock.cs | Github Open Source | Open Source | MIT | 2,020 | Mafia.NET | war-man | C# | Code | 59 | 162 | using System.Timers;
namespace Mafia.NET.Matches.Phases
{
public class Clock : Timer
{
public Clock()
{
}
public Clock(double interval) : base(interval)
{
}
public new double Interval
{
get => base.Interval;
set
... | 912 |
https://github.com/CURTLab/LVGLBuilder/blob/master/LVGLTabWidget.cpp | Github Open Source | Open Source | MIT | 2,022 | LVGLBuilder | CURTLab | C++ | Code | 78 | 331 | #include "LVGLTabWidget.h"
#include <QGridLayout>
#include "LVGLObject.h"
#include "LVGLSimulator.h"
LVGLTabWidget::LVGLTabWidget(QWidget *parent)
: QWidget(parent), m_parent(lv_obj_create(NULL, NULL)) {}
void LVGLTabWidget::setSimulator(LVGLSimulator *sim) {
delete this->layout();
QGridLayout *glayout = ne... | 6,108 |
https://github.com/cathyhongzhang/global-resource-scheduler-1/blob/master/globalscheduler/controllers/scheduler/eventType.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | global-resource-scheduler-1 | cathyhongzhang | Go | Code | 142 | 318 | /*
Copyright 2020 Authors of Arktos.
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 writing, softw... | 52,012 |
https://github.com/rimbaudcode/dotfiles/blob/master/emacs.d/art/art-haskell.el | Github Open Source | Open Source | BSD-3-Clause | 2,017 | dotfiles | rimbaudcode | null | Spoken | 145 | 529 | ;;; art-haskell.el --- `Haskell' utils on `Haskell' files.
;;; commentary:
;;; code:
(require 'art-utils)
(require 'thingatpt)
;;; find cli tools
(defvar art-ghc-tool (executable-find "ghc")
"Find and set `ghc' tool.")
(defvar art-pointfree-tool (executable-find "pointfree")
"Find and set `pointfree' tool.")
... | 22,018 |
https://github.com/RussTorres/Lattice_Lightsheet_Deskew_Deconv/blob/master/lls_dd/gputools_wrapper.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | Lattice_Lightsheet_Deskew_Deconv | RussTorres | Python | Code | 472 | 1,182 | from builtins import tuple
# this import is failing
# from gputools.convolve import gaussian_filter
from gputools import affine
import numpy as np
import warnings
from typing import Iterable, Optional, Any, Union, Sequence
def affine_transform_gputools(
input_data: np.ndarray,
matrix: np.ndarray,
offset:... | 40,145 |
https://github.com/asmtal/AleksandrZooLZakharov_infra/blob/master/packer/create_reddit-vm.sh | Github Open Source | Open Source | MIT | 2,019 | AleksandrZooLZakharov_infra | asmtal | Shell | Code | 25 | 116 | #!/bin/bash
gcloud compute instances create reddit-app \
--boot-disk-size=10GB \
--image-family reddit-full \
--image-project=affable-heading-227622 \
--machine-type=f1-micro \
--preemptible \
--tags puma-server \
--restart-on-failure \
--metadata-from-file startup-script=./start_script_full.sh
| 13,951 |
https://github.com/wangdy12/sopt/blob/master/sopt/SGA/SGA.py | Github Open Source | Open Source | MIT | 2,018 | sopt | wangdy12 | Python | Code | 772 | 3,348 | #!/usr/bin/env python3
# encoding: utf-8
"""
@version: 0.1
@author: lyrichu
@license: Apache Licence
@contact: 919987476@qq.com
@site: http://www.github.com/Lyrichu
@file: SGA.py
@time: 2018/06/05 21:03
@description:
simple Genetic Algorithm(SGA)
"""
import matplotlib
matplotlib.use("Agg")
import numpy as np
import ma... | 30,463 |
https://github.com/EngrRezCab/freebsd-doc/blob/master/website/static/security/patches/EN-20:11/ena.patch | Github Open Source | Open Source | BSD-2-Clause | 2,021 | freebsd-doc | EngrRezCab | null | Spoken | 390 | 1,271 | --- sys/dev/ena/ena.c.orig
+++ sys/dev/ena/ena.c
@@ -200,6 +200,19 @@
SYSCTL_INT(_hw_ena, OID_AUTO, log_level, CTLFLAG_RWTUN,
&ena_log_level, 0, "Logging level indicating verbosity of the logs");
+/*
+ * Use 9k mbufs for the Rx buffers. Default to 0 (use page size mbufs instead).
+ * Using 9k mbufs in low memor... | 2,429 |
https://github.com/eye1994/angular2-json-schema-form/blob/master/dist/src/shared/jsonpointer.functions.d.ts | Github Open Source | Open Source | MIT | 2,018 | angular2-json-schema-form | eye1994 | TypeScript | Code | 230 | 602 | export declare type Pointer = string | string[];
export declare class JsonPointer {
static get(object: any, pointer: any, startSlice?: number, endSlice?: number, getBoolean?: boolean, errors?: boolean): any;
static getCopy(object: any, pointer: any, startSlice?: number, endSlice?: number, getBoolean?: boolean, ... | 10,000 |
https://github.com/DeckieHQ/deckie-api/blob/master/app/models/concerns/multiple_times_validator.rb | Github Open Source | Open Source | Apache-2.0 | null | deckie-api | DeckieHQ | Ruby | Code | 50 | 191 | class MultipleTimesValidator < ActiveModel::EachValidator
def time_min
@tile_min ||= Time.now + options[:after]
end
def validate_distinct_length(values)
values.tap(&:uniq!).length >= options[:min] && values.length <= options[:max]
end
def validate_each(record, attribute, times)
unless times.kind... | 10,461 |
https://github.com/bydan/pre/blob/master/erp_ejb/src_cartera/com/bydan/erp/cartera/business/logic/report/SaldosVencidosProveedoresLogicAdditional.java | Github Open Source | Open Source | Apache-2.0 | null | pre | bydan | Java | Code | 510 | 3,467 |
/*
*ADVERTENCIA : Este programa esta protegido por la ley de derechos de autor.
*La reproducci?n o distribuci?n il?cita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y ser?n objeto de todas las sanciones legales que correspondan.
*/
package c... | 38,452 |
https://github.com/solf1re2/cerberus/blob/master/src/content/testpage.jade | Github Open Source | Open Source | MIT | null | cerberus | solf1re2 | null | Spoken | 183 | 409 | ---
title: Test Zone
component: ContentPage
---
p.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean consequat
tortor fermentum mi fermentum dignissim. Nullam vel ipsum ut ligula elementum
lobortis. Maecenas aliquam, massa laoreet lacinia pretium, nisi urna venenatis
tortor, nec imperdiet tellus l... | 38,220 |
https://github.com/proteanblank/Dockerfiler/blob/master/dockerfiler/image_definition.py | Github Open Source | Open Source | MIT | 2,020 | Dockerfiler | proteanblank | Python | Code | 299 | 1,057 | import json
from typing import Dict
from typing import List
from typing import Optional
import schema
tag_schema = {str: schema.Or(None, {str: str,})}
image_definition_schema = schema.Schema(
{
str: [
schema.Or(
schema.And(
{
"type":... | 37,990 |
https://github.com/r-lib/ps/blob/master/R/ps.R | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,023 | ps | r-lib | R | Code | 364 | 1,028 |
#' @useDynLib ps, .registration = TRUE
NULL
#' Process table
#'
#' @param user Username, to filter the results to matching processes.
#' @param after Start time (`POSIXt`), to filter the results to processes
#' that started after this.
#' @return Data frame, see columns below.
#'
#' Columns:
#' * `pid`: Process ID.... | 13,850 |
https://github.com/svens/urn/blob/master/urn/intrusive_stack.hpp | Github Open Source | Open Source | MIT | 2,020 | urn | svens | C++ | Code | 307 | 677 | #pragma once
/**
* \file urn/intrusive_stack.hpp
* Intrusive LIFO
*/
#include <urn/__bits/lib.hpp>
__urn_begin
template <typename T>
using intrusive_stack_hook = T *;
/**
* Elements of this container must provide member address \a Next that stores
* opaque data managed by container. Any given time specific... | 20,256 |
https://github.com/PavelGem-13g/Street_designer/blob/master/City-scene-editor/Assets/Scripts/Road editor/RoadEditor.cs | Github Open Source | Open Source | Apache-2.0 | null | Street_designer | PavelGem-13g | C# | Code | 345 | 1,146 | using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RoadEditor : MonoBehaviour
{
// Start is called before the first frame update
public static RoadEditor instance;
public static readonly int CountOfRoadComponents = 100;
public GameObject roadPrefab;... | 34,275 |
https://github.com/b4dtR1p/barr/blob/master/spec/barr_manager_spec.rb | Github Open Source | Open Source | MIT | 2,016 | barr | b4dtR1p | Ruby | Code | 131 | 455 | require 'spec_helper'
describe Barr::Manager do
before do
@b1 = Barr::Block.new interval: 1
@b2 = Barr::Block.new interval: 5
@man = Barr::Manager.new
@man.add_block @b1
@man.add_block @b2
end
describe '#initialize' do
before { @new_man = Barr::Manager.new }
it "sets @block" do... | 47,383 |
https://github.com/veronicatozzo/regain/blob/master/regain/covariance/time_graphical_lasso_.py | Github Open Source | Open Source | BSD-3-Clause | null | regain | veronicatozzo | Python | Code | 2,084 | 5,853 | # BSD 3-Clause License
# Copyright (c) 2017, Federico T.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# list o... | 28,915 |
https://github.com/SoundChaser83/guess-game/blob/master/Dot.cs | Github Open Source | Open Source | MIT | null | guess-game | SoundChaser83 | C# | Code | 345 | 1,014 | using System;
using System.Collections.Generic;
namespace Guess_Color_game
{
class Dot
{
string Symbol { get; set; } = " █";
public string Color { get; set; }
static Random rng = new Random();
public Dot(string color)
{
Color = color;
}
Dot... | 8,635 |
https://github.com/Jacob-Friesen/obscurejs/blob/master/2016/tap.js | Github Open Source | Open Source | MIT | 2,022 | obscurejs | Jacob-Friesen | JavaScript | Code | 188 | 511 | #!/bin/sh
':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@"
'use strict';
// A simple chain used to illustrate the concept
var chain = function(value) {
var self = {};
self.trim = function() {
value = (value + '').trim();
return self;
};
// Making this string based only for demonstrati... | 2,810 |
https://github.com/porglezomp-misc/select.rs/blob/master/tests/node_tests.rs | Github Open Source | Open Source | MIT | 2,016 | select.rs | porglezomp-misc | Rust | Code | 320 | 1,741 | #![feature(plugin)]
#![plugin(speculate)]
pub use std::collections::HashMap;
extern crate select;
pub use select::document::Document;
pub use select::node;
speculate! {
describe "node" {
before {
let document = Document::from("<html><head></head><body id=something>\
... | 18,390 |
https://github.com/Errox/MaikoRossProd/blob/master/resources/views/welcome.blade.php | Github Open Source | Open Source | MIT | null | MaikoRossProd | Errox | PHP | Code | 1,617 | 7,517 | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MaikoRoss Productions</title>
<!-- Loading in bootstrap -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/... | 46,349 |
https://github.com/AshishKapoor/rill-developer/blob/master/test/functional/DataLoader.spec.ts | Github Open Source | Open Source | Apache-2.0 | null | rill-developer | AshishKapoor | TypeScript | Code | 217 | 1,079 | import {TestBase} from "@adityahegde/typescript-test-utils";
import {FunctionalTestBase} from "./FunctionalTestBase";
import {
ParquetFileTestData, CSVFileTestData,
FileImportTestDataProvider,
TestDataColumns,
} from "../data/DataLoader.data";
import {DATA_FOLDER} from "../data/generator/data-constants";
im... | 49,906 |
https://github.com/baodijun/start-pybind11/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | start-pybind11 | baodijun | Ignore List | Code | 12 | 63 | .DS_Store
_build/
_install/
_output/
_deploy/
/setup.bash
/log/
/*INFO*
/*WARNING*
/*ERROR*
/*FATAL*
__pycache__/
| 38,400 |
https://github.com/JackW987/Wider/blob/master/backend/js/adminJs/adminImgTxt.js | Github Open Source | Open Source | MIT | 2,020 | Wider | JackW987 | JavaScript | Code | 152 | 980 | $(function(){
$(document).on('click','.btn-off',function(){
var this_El=$(this);
layer.confirm('是否将此图文内容撤出热门?', {
btn: ['确定','取消'] //按钮
}, function(){
layer.msg('操作成功');
this_El.removeClass('btn-off glyphicon-ok').addClass('btn-up glyphicon-remove');
});
})
$(document).on('click','.btn-delete',fu... | 22,777 |
https://github.com/Nashorn/Arc2D/blob/master/src/system/diagnostics/unit/com/SampleD/index.js | Github Open Source | Open Source | MIT | 2,022 | Arc2D | Nashorn | JavaScript | Code | 24 | 105 | namespace `system.diagnostics.unit.com` (
class SampleD extends WebComponent {
constructor(el){
super(el)
}
async onConnected(){
await super.onConnected();
this.addEventListener("click", e=>this.onClick(e))
}
onClick(e){
console.log(th... | 36,251 |
https://github.com/mjochab/Inzynierski_projekt_zespolowy_2018_gr3/blob/master/src/main/java/patron/tickets/guis/list/controllerExtend/_1_TypeTicketControllerExtend.java | Github Open Source | Open Source | MIT | null | Inzynierski_projekt_zespolowy_2018_gr3 | mjochab | Java | Code | 32 | 120 | package patron.tickets.guis.list.controllerExtend;
import com.appscharles.libs.fxer.abstracts.AbstractViewControllerFxExtend;
import patron.tickets.enums.TicketType;
/**
* The type 1 type ticket controller extend.
*/
public class _1_TypeTicketControllerExtend extends AbstractViewControllerFxExtend {
/**
*... | 15,256 |
https://github.com/spokenlanguage/platalea/blob/master/platalea/audio/preproc.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | platalea | spokenlanguage | Python | Code | 352 | 851 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 3 10:47:50 2017
@author: danny
"""
from scipy.fftpack import fft
from scipy.signal import iirnotch, lfilter
import numpy
# provides some basic preprocessing functions for audio files, such as
# padding the frames, hammingwindow for the frames, dat... | 9,757 |
https://github.com/nagyist/phaser3-examples/blob/master/public/src/depth sorting/isometric map.js | Github Open Source | Open Source | MIT | 2,023 | phaser3-examples | nagyist | JavaScript | Code | 747 | 2,524 |
var directions = {
west: { offset: 0, x: -2, y: 0, opposite: 'east' },
northWest: { offset: 32, x: -2, y: -1, opposite: 'southEast' },
north: { offset: 64, x: 0, y: -2, opposite: 'south' },
northEast: { offset: 96, x: 2, y: -1, opposite: 'southWest' },
east: { offset: 128, x: 2, y: 0, opposite: 'we... | 3,378 |
https://github.com/pollohultima/sito_marta/blob/master/resources/sass/app.scss | Github Open Source | Open Source | MIT | null | sito_marta | pollohultima | SCSS | Code | 255 | 984 | @use 'bootstrap';
/* Common */
body{
font-family: 'Poppins', sans-serif ;
background-color: #ecf2ee;
}
.container{
background-color: white;
}
.container-fluid{
background-color: white;
}
.active{
color: green!important;
}
.tog{
border: 2px solid lightgrey!important;
}
/* Site Header */... | 52,157 |
https://github.com/nikoladimitroff/Zmey/blob/master/Source/Zmey/EngineLoop.cpp | Github Open Source | Open Source | MIT | 2,022 | Zmey | nikoladimitroff | C++ | Code | 515 | 2,321 | #include <Zmey/EngineLoop.h>
#include <chrono>
#include <iostream>
#include <Zmey/Memory/Allocator.h>
#include <Zmey/Memory/MemoryManagement.h>
#include <Zmey/Logging.h>
#include <Zmey/Modules.h>
#include <Zmey/World.h>
#include <Zmey/Game.h>
#include <Zmey/Components/ComponentRegistry.h>
#include <Zmey/Components/Tr... | 20,544 |
https://github.com/wlmiller/UrlShortening/blob/master/Durwella.UrlShortening/IConfigSettings.cs | Github Open Source | Open Source | MIT | null | UrlShortening | wlmiller | C# | Code | 87 | 212 | using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
namespace Durwella.UrlShortening
{
public interface IConnectionStrings
{
string AzureStorage { get; }
}
public interface IAuthSettings
{
string Secret { get; }
string Issuer { get; }
... | 19,243 |
https://github.com/edwinmoradian90/tracker-app/blob/master/backend/frontend/src/components/Home/Home.jsx | Github Open Source | Open Source | MIT | 2,020 | tracker-app | edwinmoradian90 | JavaScript | Code | 255 | 799 | import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { withRouter } from 'react-router-dom';
import { delayLoading, checkTypedIsNumber } from '../../utils/helpers/generalHelpers';
import Loading from '../Loading/Loading';
import HomeView from './HomeView';
import Header from '../Header/... | 24,390 |
https://github.com/Atnic/laravel-admin-lte/blob/master/app/Providers/AppServiceProvider.php | Github Open Source | Open Source | MIT | 2,019 | laravel-admin-lte | Atnic | PHP | Code | 76 | 321 | <?php
namespace Atnic\AdminLTE\Providers;
use Atnic\AdminLTE\Console\Commands\AdminLTEMakeCommand;
use Illuminate\Support\ServiceProvider;
/**
* App Service Provider
*/
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
publi... | 28,472 |
https://github.com/michaelgrossklos/Todoyu-PHP7.x/blob/master/ext/sysmanager/model/TodoyuSysmanagerSystemConfigRenderer.class.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Todoyu-PHP7.x | michaelgrossklos | PHP | Code | 427 | 1,413 | <?php
/****************************************************************************
* todoyu is published under the BSD License:
* http://www.opensource.org/licenses/bsd-license.php
*
* Copyright (c) 2012, snowflake productions GmbH, Switzerland
* All rights reserved.
*
* This script is part of the todoyu project.
* Th... | 26,482 |
https://github.com/Coenmathijssen/deploy/blob/master/static/styles/_base.scss | Github Open Source | Open Source | MIT | 2,019 | deploy | Coenmathijssen | SCSS | Code | 386 | 1,231 | @import 'colors';
@import 'reset';
html,
body {
background-color: $broken-white !important;
}
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
background: #fff;
color: #000;
font-family: 'Arial', sans-serif;
font-size: 1em;
font-weight: 400;
font-style: norma... | 11,224 |
https://github.com/invictus2082/invictus/blob/master/depends/x86_64-w64-mingw32/include/QtGui/5.2.1/QtGui/private/qdrawhelper_x86_p.h | Github Open Source | Open Source | MIT | 2,017 | invictus | invictus2082 | C | Code | 543 | 1,399 | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees ... | 37,201 |
https://github.com/quasarbright/Subduce/blob/master/java/SubduceLanguage/src/language/interpreter/expression/Expression.java | Github Open Source | Open Source | MIT | 2,021 | Subduce | quasarbright | Java | Code | 11 | 35 | package language.interpreter.expression;
public interface Expression {
<R> R accept(ExpressionVisitor<R> visitor);
}
| 30,249 |
https://github.com/jbonnet/snippets/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,017 | snippets | jbonnet | Ignore List | Code | 5 | 25 | log/*
Gemfile.lock
.DS_Store
.bundle/*
public/files/*
| 48,599 |
https://github.com/ClubCedille/cynergie-web/blob/master/app/Counter.php | Github Open Source | Open Source | MIT | 2,018 | cynergie-web | ClubCedille | PHP | Code | 36 | 98 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Counter extends Model
{
protected $table = 'counters';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'modelid','address','port' ,'slaveId',
];
}
| 13,487 |
https://github.com/claudiosousa/HepiaLightBlocks/blob/master/webapp/components/blockly-extensions/blocks/Acceleration/Acceleration.js | Github Open Source | Open Source | MIT | 2,019 | HepiaLightBlocks | claudiosousa | JavaScript | Code | 66 | 293 | import { TOOLBOX_COLORS } from '../../Constants.js';
const Accel = {
init: function() {
this.appendDummyInput()
.appendField('Acceleration')
.appendField(
new Blockly.FieldDropdown([
[
{
src:
... | 31,294 |
https://github.com/chengzhongnan/loda/blob/master/programs/oeis/047/A047406.asm | Github Open Source | Open Source | Apache-2.0 | 2,021 | loda | chengzhongnan | Assembly | Code | 23 | 168 | ; A047406: Numbers that are congruent to {4, 6} mod 8.
; 4,6,12,14,20,22,28,30,36,38,44,46,52,54,60,62,68,70,76,78,84,86,92,94,100,102,108,110,116,118,124,126,132,134,140,142,148,150,156,158,164,166,172,174,180,182,188,190,196,198,204,206,212,214,220,222,228
mov $1,$0
gcd $0,2
mul $1,2
add $1,$0
mul $1,2
| 18,800 |
https://github.com/TheBlubb14/octoawesome/blob/master/OctoAwesome/OctoAwesome/IChunkColumn.cs | Github Open Source | Open Source | MIT | 2,022 | octoawesome | TheBlubb14 | C# | Code | 568 | 1,483 | using System.Collections.Generic;
using System;
using System.IO;
using OctoAwesome.Serialization;
namespace OctoAwesome
{
/// <summary>
/// Basisinterface für Eine Chunksäule
/// </summary>
public interface IChunkColumn : ISerializable
{
/// <summary>
/// Gibt an, ob die IChunkColu... | 51,782 |
https://github.com/KestrelInstitute/acl2/blob/master/books/kestrel/utilities/.sys/pack@useless-runes.lsp | Github Open Source | Open Source | BSD-3-Clause | null | acl2 | KestrelInstitute | Common Lisp | Code | 224 | 884 | (CHARACTER-LISTP-OF-EXPLODE-NONNEGATIVE-INTEGER
(71 15 (:REWRITE ZP-OPEN))
(40 20 (:TYPE-PRESCRIPTION TRUE-LISTP-EXPLODE-NONNEGATIVE-INTEGER))
(28 28 (:REWRITE DEFAULT-CDR))
(28 28 (:REWRITE DEFAULT-CAR))
(16 8 (:REWRITE DEFAULT-<-2))
(8 8 (:REWRITE DEFAULT-<-1))
)
(CHARACTER-LISTP-OF-APPEND2
(4 4 (:REWRITE DEF... | 44,838 |
https://github.com/HackShare/sensei/blob/master/sensei-core/src/test/java/com/senseidb/test/TestSerialization.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | sensei | HackShare | Java | Code | 80 | 360 | package com.senseidb.test;
import com.sensei.search.req.protobuf.SenseiProtos;
import com.senseidb.search.req.*;
import junit.framework.TestCase;
public class TestSerialization extends TestCase {
public void test() {
SenseiSnappyProtoSerializer serializer = new SenseiSnappyProtoSerializer();
SenseiRequest... | 14,940 |
https://github.com/ebanana/ebanana-like_or_dislike_demo/blob/master/likeSever.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | ebanana-like_or_dislike_demo | ebanana | PHP | Code | 57 | 331 | <?php
$con = new mysqli('localhost','root','','test');
if (!$con)
{
die('连接数据库失败,失败原因:' . mysqli_error());
}else {
//echo "连接成功";
}
$uId=$_POST["uId"];
$zanId=$_POST["zanId"];
//更新赞总数的数据
mysqli_query($con,"UPDATE zanCount SET count = count+1 WHERE zanId=$zanId");
//添加一条点赞记录
... | 23,227 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.