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/wangyufeng666/firstKK/blob/master/public/js/views/recycle/merrule/ruleinfo.js | Github Open Source | Open Source | MIT | 2,019 | firstKK | wangyufeng666 | JavaScript | Code | 156 | 1,010 |
function relation(detailId){
window.location.href = "/recycle/merrule/relation?detailId="+detailId;
}
/**
* 新增规则类型
* @param ruleId
* @return
*/
function addRuleType(){
layer.open({
type:2,
title:'新增规则类型',
content:'/recycle/merrule/addruletype?ruleId='+ruleId,
area:['500px','350px']
});
}
/**
* 修改规则类型... | 22,617 |
https://github.com/jaenudin86/lajurkananyii/blob/master/backend/models/TblAbsensi.php | Github Open Source | Open Source | BSD-3-Clause | null | lajurkananyii | jaenudin86 | PHP | Code | 129 | 399 | <?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "tbl_absensi".
*
* @property integer $id_absensi
* @property integer $id_siswa
* @property integer $id_kelas
* @property string $absen
* @property integer $tanggal
* @property integer $bulan
* @property integer $tahun
*/
class... | 649 |
https://github.com/HenryQW/RSSHub/blob/master/test/middleware/anti-hotlink.js | Github Open Source | Open Source | MIT | 2,022 | RSSHub | HenryQW | JavaScript | Code | 398 | 2,239 | const supertest = require('supertest');
jest.mock('request-promise-native');
const Parser = require('rss-parser');
const parser = new Parser();
let server;
afterAll(() => {
delete process.env.HOTLINK_TEMPLATE;
delete process.env.HOTLINK_INCLUDE_PATHS;
delete process.env.HOTLINK_EXCLUDE_PATHS;
});
afterEac... | 27,948 |
https://github.com/JoelMcClain/nantrunner/blob/master/NAntRunner/XML/XmlNode.cs | Github Open Source | Open Source | MIT | 2,020 | nantrunner | JoelMcClain | C# | Code | 486 | 1,207 | using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace NAntRunner.XML
{
/// <summary>
/// Implementation of XmlNode.
/// </summary>
///
public class XmlNode
{
// Private attributes
private IDictionary<string, string> attributes;
/... | 22,818 |
https://github.com/matthewdias/hummingbird-server/blob/master/spec/factories/quote_likes.rb | Github Open Source | Open Source | Apache-2.0 | 2,019 | hummingbird-server | matthewdias | Ruby | Code | 82 | 246 | # rubocop:disable Metrics/LineLength
# == Schema Information
#
# Table name: quote_likes
#
# id :integer not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# quote_id :integer not null, indexed
# user_id :integer not null, i... | 275 |
https://github.com/giseleblair/manager-ui/blob/master/src/apps/content-editor/src/app/views/ItemEdit/components/Header/LiveUrl/LiveUrl.less | Github Open Source | Open Source | Apache-2.0 | 2,022 | manager-ui | giseleblair | Less | Code | 14 | 59 | @import "~@zesty-io/core/colors.less";
.Published {
display: flex;
align-items: center;
}
.Unpublished {
color: @zesty-light-grey;
}
| 20,485 |
https://github.com/motiejus1/biblioteka-laravel/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | biblioteka-laravel | motiejus1 | PHP | Code | 95 | 505 | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... | 9,254 |
https://github.com/punker76/RayCarrot.RCP.Metro/blob/master/RayCarrot.RCP.Metro/Utilities/Games/Rayman Arena/SyncTextureInfo/RAGameSyncTextureInfoUtility.cs | Github Open Source | Open Source | MIT | 2,020 | RayCarrot.RCP.Metro | punker76 | C# | Code | 48 | 174 | using RayCarrot.Rayman.OpenSpace;
namespace RayCarrot.RCP.Metro
{
/// <summary>
/// The sync texture info utility for Rayman Arena
/// </summary>
public class RAGameSyncTextureInfoUtility : BaseGameSyncTextureInfoUtility
{
/// <summary>
/// Default constructor
/// </summary... | 39,334 |
https://github.com/yajxh/sensitive/blob/master/sensitive-core/src/main/java/com/github/houbb/sensitive/core/api/SensitiveUtil.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | sensitive | yajxh | Java | Code | 52 | 186 | package com.github.houbb.sensitive.core.api;
import com.github.houbb.sensitive.api.ISensitive;
/**
* 脱敏工具类
* @author binbin.hou
* date 2018/12/29
*/
public final class SensitiveUtil {
private static final ISensitive SINGLETON = new SensitiveService();
/**
* 脱敏对象
* @param object 原始对象
* @re... | 36,129 |
https://github.com/3l1k/sensu-go/blob/master/backend/apid/actions/silenced_test.go | Github Open Source | Open Source | MIT | 2,022 | sensu-go | 3l1k | Go | Code | 728 | 3,446 | package actions
import (
"context"
"encoding/json"
"errors"
"testing"
jwt "github.com/golang-jwt/jwt/v4"
corev2 "github.com/sensu/sensu-go/api/core/v2"
coreJWT "github.com/sensu/sensu-go/backend/authentication/jwt"
"github.com/sensu/sensu-go/testing/mockstore"
"github.com/sensu/sensu-go/types"
"github.com/s... | 28,419 |
https://github.com/tiakia/dedao/blob/master/runtime/temp/5a544b2f64a001475d6092ee08e57bff.php | Github Open Source | Open Source | Apache-2.0 | null | dedao | tiakia | PHP | Code | 95 | 761 | <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:70:"F:\XAMPP\htdocs\momo\public/../application/video\view\open\header.html";i:1518140686;s:69:"F:\XAMPP\htdocs\momo\public/../application/video\view\open\login.html";i:1519874989;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="... | 12,483 |
https://github.com/folloze/box-content-preview/blob/master/src/lib/viewers/box3d/image360/Image360Viewer.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | box-content-preview | folloze | JavaScript | Code | 183 | 626 | import React from 'react';
import Box3DViewer from '../Box3DViewer';
import Box3DControls from '../Box3DControls';
import ControlsRoot from '../../controls/controls-root';
import Image360Controls from './Image360Controls';
import Image360Renderer from './Image360Renderer';
import './Image360.scss';
const CSS_CLASS_IMA... | 53,210 |
https://github.com/JoockeG/faktureringssnurran/blob/master/node_modules/c-3po/dist/index.js | Github Open Source | Open Source | MIT | 2,018 | faktureringssnurran | JoockeG | JavaScript | Code | 516 | 1,529 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.t = t;
exports.jt = jt;
exports.msgid = msgid;
exports.gettext = gettext;
exports.ngettext = ngettext;
exports.addLocale = addLocale;
exports.useLocale = useLocale;
exports.setDedent = setDedent;
exports.setDefaultHeaders = setDef... | 53,974 |
https://github.com/sylvanc/pony-lecture/blob/master/adventure4/adv4.pony | Github Open Source | Open Source | CC0-1.0 | 2,021 | pony-lecture | sylvanc | null | Spoken | 64 | 166 | """
Concepts:
* Main actor.
* Capability recovery.
"""
actor Main
new create(env: Env) =>
"""
Here's a program that creates one Person.
Then we hand her a cinema ticket.
We use `recover` to create an _isolated_ ticket.
"""
let alice = Person("Alice")
let ticket: CinemaTicket iso = recove... | 24,287 |
https://github.com/juraul1/onos/blob/master/protocols/gnmi/ctl/src/main/java/org/onosproject/gnmi/ctl/GnmiControllerImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | onos | juraul1 | Java | Code | 321 | 981 | /*
* Copyright 2018-present Open Networking 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 required by appli... | 21,034 |
https://github.com/echothreellc/echothree/blob/master/ui/web/main/src/java/com/echothree/ui/web/main/action/humanresources/employee/AddActionForm.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | echothree | echothreellc | Java | Code | 334 | 1,405 | // --------------------------------------------------------------------------------
// Copyright 2002-2021 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http:/... | 52,405 |
https://github.com/orderedchaosdev/ansible-fastly/blob/master/library/fastly_service.py | Github Open Source | Open Source | MIT | 2,017 | ansible-fastly | orderedchaosdev | Python | Code | 3,160 | 12,298 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
DOCUMENTATION = '''
---
module: fastly_service
author: "Jimdo GmbH"
short_description: Manage and enforce Fastly services
description:
- Manage and enforce Fastly services
options:
name:
required: true
description:
- The unique name for ... | 29,282 |
https://github.com/ashtonb28/relay-cluster/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,019 | relay-cluster | ashtonb28 | Makefile | Code | 86 | 469 | #
.PHONY: prepare relay clean vendor relay-darwin
GOCMD=go
GOBUILD=$(GOCMD) build -ldflags -s -v
BINARY_NAME=relay
prepare:
/bin/sh build/prepare.sh
relay:prepare
$(GOBUILD) -o build/bin/$(BINARY_NAME) cmd/main.go
@echo "It's done. You can run build/bin/$(BINARY_NAME) now."
clean:
rm build/bin/*
vendor:
/bin... | 17,661 |
https://github.com/airen3339/rongcloud-scene-android-demo/blob/master/combusis/src/main/java/cn/rong/combusis/common/utils/AudioManagerUtil.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | rongcloud-scene-android-demo | airen3339 | Kotlin | Code | 293 | 1,151 | /*
* Copyright © 2021 RongCloud. All rights reserved.
*/
package com.rongcloud.common.utils
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothHeadset
import android.bluetooth.BluetoothProfile
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Int... | 31,847 |
https://github.com/rammahani/corda/blob/master/node/src/main/kotlin/net/corda/node/services/statemachine/FlowIORequest.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | corda | rammahani | Kotlin | Code | 439 | 1,248 | package net.corda.node.services.statemachine
import co.paralleluniverse.fibers.Suspendable
import net.corda.core.crypto.SecureHash
import java.time.Instant
interface FlowIORequest {
// This is used to identify where we suspended, in case of message mismatch errors and other things where we
// don't have the o... | 7,672 |
https://github.com/leedaoquan/java-xiaochengxu/blob/master/jeexjj-wxmall-admin/src/main/java/com/xjj/framework/service/XjjService.java | Github Open Source | Open Source | Apache-2.0 | null | java-xiaochengxu | leedaoquan | Java | Code | 280 | 918 | package com.xjj.framework.service;
import java.util.List;
import com.xjj.framework.entity.EntitySupport;
import com.xjj.framework.exception.DataAccessException;
import com.xjj.framework.web.support.Pagination;
import com.xjj.framework.web.support.XJJParameter;
public interface XjjService<E extends EntitySupport> {
... | 38,796 |
https://github.com/Merchello/Merchello/blob/master/src/Merchello.Core/Persistence/Factories/EntityCollectionFactory.cs | Github Open Source | Open Source | MIT | 2,022 | Merchello | Merchello | C# | Code | 179 | 597 | namespace Merchello.Core.Persistence.Factories
{
using System;
using Merchello.Core.Models;
using Merchello.Core.Models.Interfaces;
using Merchello.Core.Models.Rdbms;
/// <summary>
/// The entity collection factory.
/// </summary>
internal class EntityCollectionFactory : IEntityFactor... | 37,432 |
https://github.com/SinoAHpx/AHpx-Process-Manager/blob/master/ProcessMGR/Core.cs | Github Open Source | Open Source | MIT | 2,020 | AHpx-Process-Manager | SinoAHpx | C# | Code | 485 | 1,534 | using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace ProcessMGR
{
public class Core
{
/// <summary>
/// Kill process by its name like "javaw"(no".exe"!!!)
/// </summary>
/// <param name="processName"></param>
public static void KillPro... | 37,472 |
https://github.com/mehranagh20/Typonent/blob/master/bash-files/list_past.sh | Github Open Source | Open Source | MIT | 2,017 | Typonent | mehranagh20 | Shell | Code | 13 | 45 | #!/bin/bash
num=0
if [ ! -z $1 ]; then
num=$1
fi
curl "localhost:8000/pastComps/$num"
| 46,356 |
https://github.com/sengeiou/HackerNews/blob/master/HackerNewsTests/UnitTests/Modules/Root/Presenter/RootPresenterTests.swift | Github Open Source | Open Source | MIT | 2,020 | HackerNews | sengeiou | Swift | Code | 104 | 303 | //
// RootPresenterTests.swift
// HackerNewsTests
//
// Created by Никита Васильев on 06.06.2020.
// Copyright © 2020 Никита Васильев. All rights reserved.
//
import Quick
import Nimble
@testable import HackerNews
final class RootPresenterSpec: QuickSpec {
override func spec() {
let themeManager = Mo... | 13,841 |
https://github.com/briancoates/shipmate/blob/master/app/models/app_build.rb | Github Open Source | Open Source | MIT | 2,014 | shipmate | briancoates | Ruby | Code | 228 | 1,109 | require 'ipa'
class AppBuild
include Comparable
attr_accessor :apps_dir, :app_name, :build_version
def initialize(apps_dir, app_name, build_version)
@apps_dir = apps_dir
@app_name = app_name
@build_version = build_version
end
def build_file_root_path
@apps_dir.join(app_name, build_versio... | 46,376 |
https://github.com/oliviertassinari/mui-merge/blob/master/packages/material-ui-utils/src/deepmerge.test.js | Github Open Source | Open Source | MIT | 2,020 | mui-merge | oliviertassinari | JavaScript | Code | 45 | 156 | import deepmerge from './deepmerge';
import { expect } from 'chai';
describe('deepmerge', () => {
// https://snyk.io/blog/after-three-years-of-silence-a-new-jquery-prototype-pollution-vulnerability-emerges-once-again/
it('should not be subject to prototype pollution', () => {
deepmerge({}, JSON.parse('{ "myPro... | 35,625 |
https://github.com/alexanderbeznos/job4j/blob/master/chapter_001/src/main/java/ru/job4j/array/Square.java | Github Open Source | Open Source | Apache-2.0 | null | job4j | alexanderbeznos | Java | Code | 74 | 186 | package ru.job4j.array;
/**
* Вычисление массив в квадрат.
* @author Akexander Beznos (ast1bn@mail.ru).
* @version 1.0.
* @since 26.04.2019.
*/
public class Square {
/**
* возведение в квадрат
* @param bound число
* @return числа в матрице в корне
*/
public int[] calculate(int bound) {
... | 36,512 |
https://github.com/opwerthx/hslu_slgp_raumverwaltung/blob/master/persister/src/main/java/tester/FindBooking.java | Github Open Source | Open Source | MIT | null | hslu_slgp_raumverwaltung | opwerthx | Java | Code | 70 | 232 | package tester;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import persister.Room;
public class FindBooking {
public static void main( String[ ] args ) {
EntityManagerFactory emfactory = Persistence.createEntityManager... | 27,370 |
https://github.com/adepanges/project-stock-barang/blob/master/stockApp/controllers/suplier/App.php | Github Open Source | Open Source | Apache-2.0 | null | project-stock-barang | adepanges | PHP | Code | 113 | 478 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class App extends Resto_Controller {
function __construct()
{
parent::__construct();
if($this->role_active['role_id'] != 1)
{
redirect();
}
}
public function index()
{
$this->_restr... | 39,524 |
https://github.com/opengauss-mirror/Yat/blob/master/openGaussBase/testcase/KEYWORDS/nocompress/Opengauss_Function_Keyword_Nocompress_Case0032.sql | Github Open Source | Open Source | MulanPSL-1.0 | null | Yat | opengauss-mirror | SQL | Code | 42 | 231 | -- @testpoint:opengauss关键字nocompress(非保留),作为用户名
--关键字explain作为用户名不带引号,创建成功
drop user if exists nocompress;
CREATE USER nocompress PASSWORD 'Bigdata@123';
drop user nocompress;
--关键字explain作为用户名加双引号,创建成功
drop user if exists "nocompress";
CREATE USER "nocompress" PASSWORD 'Bigdata@123';
drop user "nocompress";
--关键字... | 45,084 |
https://github.com/surunmin/quizMyBatis/blob/master/src/main/java/mybatis/frame/exception/QuizMyBatisException.java | Github Open Source | Open Source | MIT | 2,021 | quizMyBatis | surunmin | Java | Code | 51 | 149 | package mybatis.frame.exception;
import lombok.Getter;
/**
* MyBatisException 异常处理
* Description:
* date: 2020/10/22 20:58
*
* @author zuo
* @since JDK 1.8
*/
@Getter
public class QuizMyBatisException extends RuntimeException {
private final int code;
private final String snapshot;
public Qu... | 10,487 |
https://github.com/filius/fly-gwt/blob/master/src/main/java/ru/fly/client/dnd/Dragger.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | fly-gwt | filius | Java | Code | 443 | 1,126 | /*
* Copyright 2015 Valeriy Filatov.
*
* 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... | 28,043 |
https://github.com/karinafraest/javascript/blob/master/algorithms/javascript-drills-challenge/src/sorting.js | Github Open Source | Open Source | MIT | 2,017 | javascript | karinafraest | JavaScript | Code | 99 | 313 | function bubbleSort(array){
var sorted = true;
while(sorted === true){
sorted = false;
for(var i = 0; i < array.length; i++){
if (array[i] > array[i+1]){
var changed = array[i];
array[i] = array[i+1];
array[i+1] = changed;
sorted = true;
};
};
};
return array;
};
function findSmallest(a... | 15,916 |
https://github.com/yfauser/vmware-nsx/blob/master/vmware_nsx/db/extended_security_group.py | Github Open Source | Open Source | Apache-2.0 | 2,016 | vmware-nsx | yfauser | Python | Code | 229 | 941 | # Copyright 2016 VMware, Inc.
# All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 53,576 |
https://github.com/codingandcommunity/Learn-With-Coding-And-Community/blob/master/moodle/grade/tests/export_test.php | Github Open Source | Open Source | GPL-1.0-or-later, GPL-3.0-only, MIT | 2,020 | Learn-With-Coding-And-Community | codingandcommunity | PHP | Code | 638 | 1,785 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | 46,466 |
https://github.com/hadarai/mimiker/blob/master/toolchain/gnu/amd64-mimiker-elf/Makefile | Github Open Source | Open Source | BSD-3-Clause | null | mimiker | hadarai | Makefile | Code | 23 | 88 | # vim: tabstop=8 shiftwidth=8 noexpandtab list:
TOPDIR = $(realpath ..)
ARCH = amd64
TARGET = x86_64-mimiker-elf
GCC_EXTRA_CONF = --with-arch=x86-64 \
--with-abi=m64
include $(TOPDIR)/target.mk
| 16,514 |
https://github.com/windmeup/gdx-texture-packer-gui/blob/master/core/src/com/crashinvaders/texturepackergui/views/canvas/widgets/spine/editor/EditAnimationDialog.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | gdx-texture-packer-gui | windmeup | Java | Code | 232 | 988 | package com.crashinvaders.texturepackergui.views.canvas.widgets.spine.editor;
import com.badlogic.gdx.math.Polygon;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener;
i... | 3,872 |
https://github.com/DayanaSouzaZup/banco-de-dados/blob/master/Exercicio cidades1.sql | Github Open Source | Open Source | MIT | null | banco-de-dados | DayanaSouzaZup | SQL | Code | 117 | 404 | CREATE TABLE estrelas.cidade (
NOME varchar(50) not null,
CEP int primary key,
NUMERO_HABITANTES int not null default 0,
CAPITAL boolean not null,
ESTADO varchar(2) not null,
RENDA_PER_CAPITA decimal(10, 2),
DATA_FUNDACAO date,
CONSTRAINT estado_fk
FOREIGN KEY (estado)
REFERENCES estado (sigla)
);
INSERT INTO estrel... | 27,089 |
https://github.com/lukeulrich/genomics/blob/master/ag-lib/src/bio/primer/DimerScoreCalculator.js | Github Open Source | Open Source | MIT | null | genomics | lukeulrich | JavaScript | Code | 573 | 1,676 | goog.provide('ag.bio.primer.DimerScoreCalculator');
goog.require('goog.asserts');
goog.require('goog.object');
goog.require('ag.bio.grammar');
goog.require('ag.bio.BioString');
/**
* @constructor
*/
ag.bio.primer.DimerScoreCalculator = function() {};
/**************************************************************... | 20,459 |
https://github.com/dbolser/miniscript-workshop/blob/master/src/03-script.rs | Github Open Source | Open Source | CC0-1.0 | 2,020 | miniscript-workshop | dbolser | Rust | Code | 84 | 323 |
use miniscript::{bitcoin, Miniscript};
use miniscript::bitcoin::hashes::hex;
fn main() {
// Things to try:
// 1. Mar one of the opcodes (e.g. the initial 63 (OP_IF).
// 2. Mar some byte in one of the public keys.
// 3. Change one of the 00's near the end to a 51 (push 0 → push 1).
// 4... | 55,133 |
https://github.com/ander/passant/blob/master/spec/pieces/pawn_spec.rb | Github Open Source | Open Source | BSD-3-Clause | 2,017 | passant | ander | Ruby | Code | 501 | 1,791 | require 'passant/board'
describe Passant::Pawn do
describe "#moves" do
it "should return one step forward" do
board = Passant::Board.new_empty
p = Passant::Pawn.new(board, a2)
p.moves.map{|m| m.to}.should include(a3)
end
it "should return two steps forward if not moved before" do
... | 16,977 |
https://github.com/HaaryRachmat/MokaToko/blob/master/resources/views/livewire/user/user-dashboard-component.blade.php | Github Open Source | Open Source | MIT | null | MokaToko | HaaryRachmat | PHP | Code | 15 | 43 | <div>
{{-- The best athlete wants his opponent at his best. --}}
<h1>User/Kustomer Dashboard</h1>
</div>
| 1,402 |
https://github.com/apache/geronimo/blob/master/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/PluginInstaller.java | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LGPL-2.1-or-later, MPL-1.1, JSON, LGPL-2.1-only, MPL-1.0, Apache-2.0, LicenseRef-scancode-unknown, X11, W3C, GPL-1.0-or-later, CPL-1.0, LicenseRef-scancode-oracle-openjdk-exception-2.0, W3C-19980720, LicenseRef-scancode-indiana-extreme, BSD-3-Clause, LicenseRef-scancode-unknown-license-... | 2,013 | geronimo | apache | Java | Code | 1,319 | 2,457 | /**
* 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"); yo... | 33,208 |
https://github.com/Rohit484/Distribution/blob/master/i/inputmask/src/main/scala/typings/inputmask/mod/PositionCaretOnClick.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 70 | 392 | package typings.inputmask.mod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/* Rewritten from type alias, can be one of:
- typings.inputmask.inputmaskStrings.none
- typings.inputmask.inputmaskStrings.lvp
- typ... | 17,824 |
https://github.com/elifesciences-publications/bpps-sipris-code/blob/master/lib/libpdb/vsi_typ.cc | Github Open Source | Open Source | MIT | 2,017 | bpps-sipris-code | elifesciences-publications | C++ | Code | 1,789 | 8,386 | /******************************************************************************************
Copyright (C) 1997-2014 Andrew F. Neuwald, Cold Spring Harbor Laboratory
and the University of Maryland School of Medicine.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this s... | 7,928 |
https://github.com/MarginC/kame/blob/master/freebsd5/sys/geom/geom_event.c | Github Open Source | Open Source | BSD-3-Clause | 2,022 | kame | MarginC | C | Code | 1,047 | 3,540 | /*-
* Copyright (c) 2002 Poul-Henning Kamp
* Copyright (c) 2002 Networks Associates Technology, Inc.
* All rights reserved.
*
* This software was developed for the FreeBSD Project by Poul-Henning Kamp
* and NAI Labs, the Security Research Division of Network Associates, Inc.
* under DARPA/SPAWAR contract N66001-... | 46,908 |
https://github.com/fincrypchain-io/WavesWallet-android/blob/master/app/src/main/java/com/wavesplatform/wallet/v2/ui/home/quick_action/receive/invoice/InvoicePresenter.kt | Github Open Source | Open Source | MIT | null | WavesWallet-android | fincrypchain-io | Kotlin | Code | 33 | 196 | package com.wavesplatform.wallet.v2.ui.home.quick_action.receive.invoice
import com.arellomobile.mvp.InjectViewState
import com.wavesplatform.wallet.App
import com.wavesplatform.wallet.v2.data.manager.CoinomatManager
import com.wavesplatform.wallet.v2.data.model.remote.response.AssetBalance
import com.wavesplatform.wa... | 40,835 |
https://github.com/CaptainUnbrauchbar/clingo/blob/master/libgringo/gringo/intervals.hh | Github Open Source | Open Source | MIT | 2,021 | clingo | CaptainUnbrauchbar | C++ | Code | 1,667 | 4,223 | // {{{ MIT License
// Copyright 2017 Roland Kaminski
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify,... | 39,001 |
https://github.com/Sywooch/delivery29/blob/master/web/js/admin/panel/model.js | Github Open Source | Open Source | BSD-3-Clause | 2,015 | delivery29 | Sywooch | JavaScript | Code | 191 | 888 |
function createActiveBtns()
{
$.each( $('.js-column-active'), createActiveBtn );
$.each( $('.js-column-price'), createPriceEdit );
}
function createEditButton()
{
$.each(
$('.js-edit'), makeEditButton
);
}
function makeEditButton(key, obj)
{
var pId = $(obj).attr('data-id');
loadTpl("/mst/admin/editBtn.mst",... | 13,436 |
https://github.com/tparikh/ephemeral-csi-driver/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,020 | ephemeral-csi-driver | tparikh | Makefile | Code | 6 | 25 |
build:
go build -o bin/ephemeral-csi-driver main.go
| 19,434 |
https://github.com/punker76/GlucoseTray/blob/master/GlucoseTrayCore/Services/IconService.cs | Github Open Source | Open Source | MIT | 2,020 | GlucoseTray | punker76 | C# | Code | 355 | 1,012 | using Dexcom.Fetch.Enums;
using Dexcom.Fetch.Extensions;
using Dexcom.Fetch.Models;
using Microsoft.Extensions.Logging;
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace GlucoseTrayCore.Services
{
public class IconService
{
private readonly... | 24,509 |
https://github.com/grumpyshoe/android-example-recyclerview/blob/master/app/src/main/java/de/grumpyshoe/projecttemplate/core/repository/src/network/error/ErrorType.kt | Github Open Source | Open Source | MIT | 2,018 | android-example-recyclerview | grumpyshoe | Kotlin | Code | 17 | 65 | package com.thepeaklab.onsitereportingapp.core.repository.src.network.error
/**
* Created by thomas on 11.12.17.
*/
enum class ErrorType {
UNAUTHORIZED,
UNKOWN
} | 17,425 |
https://github.com/LiveHelperChat/livehelperchat/blob/master/lhc_web/design/defaulttheme/js/react/src/components/NodeGroups.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | livehelperchat | LiveHelperChat | JavaScript | Code | 106 | 498 | import React, { Component } from 'react';
import NodeGroup from './NodeGroup';
import { connect } from "react-redux"
import { fetchNodeGroups, addNodeGroup, updateNodeGroup } from "../actions/nodeGroupActions"
@connect((state) => {
return {
nodegroups: state.nodegroups
};
})
class NodeGroups extends ... | 54,496 |
https://github.com/ezewer/bfx-report/blob/master/test/helpers/helpers.boot.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | bfx-report | ezewer | JavaScript | Code | 138 | 453 | 'use strict'
const {
stopWorkers,
startWorkers: _startWorkers
} = require('./helpers.worker')
const {
bootTwoGrapes,
killGrapes
} = require('./helpers.grape')
const grapes = []
const startEnvironment = async (
logs = false,
isForkWrk = false,
countWrk = 1,
conf = {},
serviceRoot,
isNotStartedEnv,... | 39,199 |
https://github.com/eduardolm/Junit5/blob/master/src/test/java/listeners/Listener.java | Github Open Source | Open Source | MIT | null | Junit5 | eduardolm | Java | Code | 89 | 294 | package listeners;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.api.extension.TestWatcher;
import java.util.Optional;
public class Listener implements TestWatcher {
@Override
public void testDisabled(ExtensionContext context, Optional<String> reason) {
System.out... | 34,231 |
https://github.com/benkoo/XLP_ServiceMesh/blob/master/Components/mediawiki/wiki_data/skins/Timeless/resources/screen-desktop-small.less | Github Open Source | Open Source | MIT | 2,019 | XLP_ServiceMesh | benkoo | Less | Code | 246 | 830 | @import 'variables.less';
// Redundant sidebar category list and stuff
#mw-content-block {
padding: 0;
}
#mw-content {
border-width: 0 0 1px;
clear: both;
margin-top: 5.425em;
}
.categories-bottom();
// Header navigation
.sidebar-chunk {
display: inline-block;
position: relative;
h2 {
display: inline-bl... | 28,080 |
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/data/experimental/random_dataset_op.cc | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, BSD-2-Clause | 2,023 | tensorflow | tensorflow | C++ | Code | 904 | 3,753 | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 38,444 |
https://github.com/TeamSPoon/CYC_JRTL_with_CommonLisp_OLD/blob/master/platform/lib/all-deps/com/google/gwt/typedarrays/client/Int32ArrayNative.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | CYC_JRTL_with_CommonLisp_OLD | TeamSPoon | Java | Code | 343 | 893 | /*
* Copyright 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 i... | 32,175 |
https://github.com/kepelrs/nestjs-prisma-crud/blob/master/src/access-control/access-policy.interceptor.ts | Github Open Source | Open Source | MIT | 2,022 | nestjs-prisma-crud | kepelrs | TypeScript | Code | 187 | 557 | import {
CallHandler,
ExecutionContext,
forwardRef,
Inject,
Injectable,
NestInterceptor,
NotImplementedException,
} from '@nestjs/common';
import { ModuleRef, Reflector } from '@nestjs/core';
import { Observable } from 'rxjs';
import { RBAC } from './builtin-policies';
import { ACCESS_POLICY... | 20,803 |
https://github.com/zjp693/Learning-diary/blob/master/2019年下学期/每日作业/js基础/Js基础-day13-10.10/05.奇数的和.js | Github Open Source | Open Source | MIT | null | Learning-diary | zjp693 | JavaScript | Code | 11 | 71 | //5. 求100到200之间所有的奇数的和(while实现)
var a=100
var b=0
while(a<200){
if(a%2!=0){
b+=a
}a++
}console.log(b);
| 31,817 |
https://github.com/daijiale/taro-ui/blob/master/src/components/calendar/index.scss | Github Open Source | Open Source | MIT | 2,019 | taro-ui | daijiale | SCSS | Code | 5 | 16 | .at-calendar {
overflow: hidden;
}
| 4,744 |
https://github.com/francis-pouatcha/forgelab/blob/master/adpharma/adpharma.modules/adpharma.client.frontoffice/src/main/java/org/adorsys/adpharma/client/jpa/customer/CustomerView.java | Github Open Source | Open Source | Apache-2.0 | null | forgelab | francis-pouatcha | Java | Code | 519 | 2,886 | package org.adorsys.adpharma.client.jpa.customer;
import java.util.HashSet;
import java.util.List;
import java.util.ResourceBundle;
import java.util.Set;
import org.adorsys.adpharma.client.jpa.gender.Gender;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import j... | 10,398 |
https://github.com/SenonLi/OpenGL_4.0_FreeSpace/blob/master/vsSenOpenGL/Support/SenMeshStruct.h | Github Open Source | Open Source | MIT | 2,020 | OpenGL_4.0_FreeSpace | SenonLi | C++ | Code | 490 | 1,636 | #pragma once
#ifndef __SenMeshStruct__
#define __SenMeshStruct__
// Std. Includes
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
#include <vector>
using namespace std;
// GL Includes
#include <GL/glew.h> // Contains all the necessery OpenGL includes
#include <glm/glm.hpp>
#include <glm/gt... | 50,174 |
https://github.com/sambacha/ui/blob/master/lib/control/grid/state/GridSortingOptions.d.ts | Github Open Source | Open Source | MIT | 2,020 | ui | sambacha | TypeScript | Code | 62 | 197 | import { GridSortingOrder } from "./GridSortingOrder";
import { IGridFieldBase } from "./IGridFieldBase";
import { IGridSortingOptions } from "./IGridSortingOptions";
export declare class GridSortingOptions implements IGridSortingOptions {
private _sortField;
private _sortOrder;
private orderCycle;
cons... | 15,285 |
https://github.com/nachtstern3476/Laundry-App/blob/master/app/Database/Migrations/2021-04-13-152313_CreateLdrMemberTable.php | Github Open Source | Open Source | MIT | null | Laundry-App | nachtstern3476 | PHP | Code | 57 | 271 | <?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class CreateLdrMemberTable extends Migration
{
public function up()
{
$this->forge->addField([
'id_member' => [
'type' => 'INT',
'auto_increment' => true,
],
'id_outlet INT(11)',
'nama VARCHAR(255)',
'alamat VARCH... | 17,305 |
https://github.com/Daniel-H-99/Practice_Patient-Knowledge-Distillation/blob/master/run.sh | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT | 2,021 | Practice_Patient-Knowledge-Distillation | Daniel-H-99 | Shell | Code | 41 | 144 | python NLI_KD_training.py --task SST-2 --purpose kd --student_hidden_layers 6
python NLI_KD_training.py --task SST-2 --purpose kd --student_hidden_layers 3
python NLI_KD_training.py --task SST-2 --purpose kd.cls --student_hidden_layers 6
python NLI_KD_training.py --task SST-2 --purpose kd.cls --student_hidden_layers 3
... | 508 |
https://github.com/sxcem/scratch-link-node/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,019 | scratch-link-node | sxcem | Ignore List | Code | 35 | 98 | # Mac OS
.DS_Store
# NPM and YARN
node_modules
npm-*
package-lock.json
*.lock
# Testing
/.nyc_output
/coverage
# Build
build
dist
/.opt-in
# Temporary files
*.log
*.swp
# generated translation files
/translations
/locale
# Ansible
*.retry
| 23,709 |
https://github.com/ManageIQ/manageiq-ui-classic/blob/master/spec/helpers/security_policy_rule_helper/textual_summary_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | manageiq-ui-classic | ManageIQ | Ruby | Code | 25 | 87 | describe SecurityPolicyRuleHelper::TextualSummary do
include_examples "textual_group", "Properties", %i[name description type ems_ref sequence_number status action direction ip_protocol]
include_examples "textual_group", "Relationships", %i[
ems_network cloud_tenant security_policy custom_button_events
]
end... | 8,070 |
https://github.com/indirect/pfc/blob/master/app/models/upload_account.rb | Github Open Source | Open Source | Apache-2.0 | 2,021 | pfc | indirect | Ruby | Code | 41 | 97 | # REVIEW: This should be moved into the lib directory.
# form used in account upload
class UploadAccount < ActiveForm
attr_accessor :name, :statement
def validate
errors.add(:name, "can't be blank") if name.blank?
errors.add(:statement, "can't be blank") if statement.blank? || statement.original_filename.b... | 3,282 |
https://github.com/carabina/UIWindowTransition/blob/master/Example/UIWindowTransitionExample/Controllers/SuccesViewController.swift | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | UIWindowTransition | carabina | Swift | Code | 87 | 278 | //
// SuccesViewController.swift
// UIWindowTransitionExample
//
// Created by Yuri Fox on 31.01.2018.
// Copyright © 2018 Yuri Lysytsia Developer. All rights reserved.
//
import UIKit
class SuccesViewController: UIViewController {
static var controller: UIViewController {
let storyboard = UIStoryboa... | 56,524 |
https://github.com/amanurat/little-kotliner/blob/master/src/com/hadihariri/littleKotliner/Primitives.kt | Github Open Source | Open Source | BSD-3-Clause | 2,014 | little-kotliner | amanurat | Kotlin | Code | 360 | 818 | package com.hadihariri.littleKotliner
import java.util.ArrayList
import java.util.LinkedList
import com.hadihariri.littleKotliner.InvalidQuestionException
fun list<T>(vararg values: T): ArrayList<T> = values.toCollection(ArrayList(values.size))
/*
Returns the first element of a list
*/
fun car(list: Any): Any ... | 52,394 |
https://github.com/jasonayoder/rl_ctrnn/blob/master/jason/xp_discovery_from_scratch_rlctrnn.py | Github Open Source | Open Source | MIT | 2,021 | rl_ctrnn | jasonayoder | Python | Code | 453 | 2,609 | import numpy as np
import numpy as np
import random
from jason.ctrnn import CTRNN
from jason.rl_ctrnn import RL_CTRNN
from jason.mga import MicrobialGA
import matplotlib.pyplot as plt
import sys
import json
import os
from jason.simple_oscillator_task import SimpleOscillatorTask
from util.fitness_functions import fitnes... | 22,598 |
https://github.com/ktp-forked-repos/mcmc-comparisons/blob/master/src/plot/plot_comparison.py | Github Open Source | Open Source | BSD-2-Clause | 2,019 | mcmc-comparisons | ktp-forked-repos | Python | Code | 1,180 | 5,102 | #!/usr/bin/env python3
#
# plot_comparison.py
#
# BSD 2-Clause License
#
# Copyright (c) 2018, Franco Masotti
# 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 m... | 30,689 |
https://github.com/remiodufuye/fewpjs-getter-and-setter-methods-dc-web-102819/blob/master/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,020 | fewpjs-getter-and-setter-methods-dc-web-102819 | remiodufuye | JavaScript | Code | 70 | 166 | // Add your Circle class here
class Cicle {
constructor(radius) {
this.radius = radius
}
get diameter() {
let diameter = this.radius * 2
}
get circumference() {
let circumference = Math.PI * this.diameter
}
get area() {
let area = Math.PI * (this.radius... | 17,940 |
https://github.com/SethTisue/scala-cli/blob/master/modules/build/src/test/scala/scala/build/tests/TestInputs.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | scala-cli | SethTisue | Scala | Code | 216 | 746 | package scala.build.tests
import java.nio.charset.StandardCharsets
import scala.build.{Build, BuildThreads, Directories, Inputs}
import scala.build.blooprifle.BloopRifleConfig
import scala.build.errors.BuildException
import scala.build.options.BuildOptions
import scala.util.control.NonFatal
import scala.util.Try
fin... | 21,264 |
https://github.com/UPBIoT/renode-iot/blob/master/src/Infrastructure/src/Emulator/Main/Tests/UnitTests/Mocks/MockRegister.cs | Github Open Source | Open Source | MIT | 2,020 | renode-iot | UPBIoT | C# | Code | 133 | 421 | //
// Copyright (c) 2010-2018 Antmicro
//
// This file is licensed under the MIT License.
// Full license text is available in 'licenses/MIT.txt'.
//
using System;
using Antmicro.Renode.Core;
using Antmicro.Renode.Core.Structure;
using Antmicro.Renode.Peripherals;
using Antmicro.Renode.Peripherals.Bus;
using Antmicro.R... | 47,179 |
https://github.com/cnsuhao/pf_examples/blob/master/applications/common/proto/src/pack_enum.h | Github Open Source | Open Source | MIT | 2,017 | pf_examples | cnsuhao | C++ | Code | 69 | 230 | /**
* PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
* $Id pack_enum.h
* @link https://github.com/viticm/plainframework for the canonical source repository
* @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
* @license
* @user viticm<viticm.ti@gmail.com>
* @date 2017/07/21 14:44
* @uses... | 28,187 |
https://github.com/hbeimf/spark-riak/blob/master/spark-riak-connector/connector/src/test/scala/com/basho/riak/spark/rdd/partitioner/RiakTSCoveragePlanBasedPartitionerTest.scala | Github Open Source | Open Source | Apache-2.0 | 2,017 | spark-riak | hbeimf | Scala | Code | 520 | 1,908 | /**
* *****************************************************************************
* Copyright (c) 2016 IBM Corp.
*
* Created by Basho Technologies for IBM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | 13,023 |
https://github.com/leopardus-net/leopardus/blob/master/resources/views/admin/users/index.blade.php | Github Open Source | Open Source | MIT | 2,018 | leopardus | leopardus-net | Blade | Code | 415 | 2,055 | @extends('layouts.app')
@section('title')
{{ trans('users.title') }}
@stop
@section('content')
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="row page-titles">... | 22,146 |
https://github.com/carmamir/StreamDeckSharp/blob/master/src/StreamDeckSharp.Examples.Rainbow/Program.cs | Github Open Source | Open Source | MIT | 2,017 | StreamDeckSharp | carmamir | C# | Code | 129 | 412 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace StreamDeckSharp.Examples.Rainbow
{
class Program
{
private static readonly Random rnd = new Random();
private static readonly ManualResetEvent e... | 10,659 |
https://github.com/andmalt/laravel-boolpress/blob/master/resources/views/admin/posts/edit.blade.php | Github Open Source | Open Source | MIT | null | laravel-boolpress | andmalt | PHP | Code | 153 | 750 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-12 col-md-10 col-lg-8">
<h3>Modifica Post</h3>
<form action="{{ route('admin.post.update', $post->id ) }}" method="post" enctype="multipart/form-data">
... | 13,911 |
https://github.com/Thulio-Carvalho/Gaud/blob/master/src/Comandos.py | Github Open Source | Open Source | MIT | 2,019 | Gaud | Thulio-Carvalho | Python | Code | 1,066 | 4,328 | # coding: utf-8
import json
import subprocess
import re
from time import sleep, time
import requests
from bs4 import BeautifulSoup
from datetime import datetime
import paramiko
class Comandos:
def _update(self):
arquivo = open("comandos.json", "r")
self.comandos = json.load(arquivo)
arquivo.close()
def is_co... | 18,106 |
https://github.com/quadirkareem/java-code-samples/blob/master/protobuf/src/main/java/com/quadirkareem/protobuf/Externalization.java | Github Open Source | Open Source | MIT | null | java-code-samples | quadirkareem | Java | Code | 144 | 514 | package com.quadirkareem.protobuf;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
impo... | 51,399 |
https://github.com/macdoongs/ThisIsDisaster-API/blob/master/app/controllers/have_ctrl.go | Github Open Source | Open Source | MIT | 2,018 | ThisIsDisaster-API | macdoongs | Go | Code | 442 | 1,330 | package controllers
import (
"ThisIsDisaster-API/app/models"
"fmt"
"github.com/go-gorp/gorp"
"github.com/revel/revel"
)
type HaveCtrl struct {
GorpController
}
func defineHaveTable(dbm *gorp.DbMap) {
// set "id" as primary key and autoincrement
t := dbm.AddTableWithName(models.Have{}, "have").SetKeys(true, "... | 30,932 |
https://github.com/riccardo-forina/syndesis/blob/master/app/ui-react/syndesis/src/modules/data/shared/VirtualizationHandlers.ts | Github Open Source | Open Source | Apache-2.0 | 2,019 | syndesis | riccardo-forina | TypeScript | Code | 297 | 921 | import { useVirtualizationHelpers } from '@syndesis/api';
import { useContext } from 'react';
import { useTranslation } from 'react-i18next';
import { UIContext } from '../../../app';
export const VirtualizationHandlers = () => {
const { pushNotification } = useContext(UIContext);
const { t } = useTranslation(['da... | 7,743 |
https://github.com/dotsudo/plus-clean/blob/master/HabboHotel/Items/Wired/Boxes/Conditions/FurniHasNoUsersBox.cs | Github Open Source | Open Source | Apache-2.0 | null | plus-clean | dotsudo | C# | Code | 191 | 587 | namespace Plus.HabboHotel.Items.Wired.Boxes.Conditions
{
using System.Collections.Concurrent;
using System.Linq;
using Communication.Packets.Incoming;
using Rooms;
internal class FurniHasNoUsersBox : IWiredItem
{
public FurniHasNoUsersBox(Room instance, Item item)
{
... | 52,244 |
https://github.com/TobitSoftware/chayns-components/blob/master/src/react-chayns-file_input/utils/supportsFileInput.js | Github Open Source | Open Source | MIT | 2,023 | chayns-components | TobitSoftware | JavaScript | Code | 20 | 84 | export default function supportsFileInput() {
return !(
(chayns.env.isApp || chayns.env.isMyChaynsApp) &&
chayns.env.isAndroid &&
(chayns.env.myChaynsAppVersion || chayns.env.appVersion) < 6000
);
}
| 34,563 |
https://github.com/lel352/Curso-Python/blob/master/aulaspythonbasico/aula19/aula19.py | Github Open Source | Open Source | MIT | 2,021 | Curso-Python | lel352 | Python | Code | 59 | 168 | # Iterando strings com while em Python
# Índices
frase = 'O rato roeu a roupa do rei de roma'
tamanho_frase = len(frase)
contador = 0
nova_string = ''
letra = input('Qual letra deseja colocar Maiúscula: ')
while contador < tamanho_frase:
print(contador, frase[contador])
if frase[contador] == letra:
... | 3,643 |
https://github.com/Owez/onft/blob/master/examples/gamechain.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | onft | Owez | Rust | Code | 256 | 712 | //! Complete project nicknamed "GameChain" which creates a single-threaded tcp
//! api, insecure and shouldn't be used in production
use onft::prelude::*;
use std::io::{self, Read};
use std::net::{TcpListener, TcpStream};
use std::{convert::TryInto, fmt, ops::Range};
const BIND_ADDR: &str = "0.0.0.0:8080";
fn main()... | 29,885 |
https://github.com/CodyPaul/PTI.Reliance.Tools/blob/master/PTIRelianceLib/Configuration/RELFont.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-hidapi, Apache-2.0 | 2,021 | PTI.Reliance.Tools | CodyPaul | C# | Code | 194 | 539 | #region Header
// RELFont.cs
// PTIRelianceLib
// Cory Todd
// 18-05-2018
// 9:44 AM
#endregion
namespace PTIRelianceLib.Configuration
{
using System;
using Transport;
/// <inheritdoc cref="IParseable" />
internal class RELFont : IParseable
{
/// <summary>
/// Fontsize code
... | 584 |
https://github.com/Tailen/Halite3_Bot/blob/master/Halite3_Python3_Windows_x86-64/hlt/tree_search.py | Github Open Source | Open Source | MIT | 2,018 | Halite3_Bot | Tailen | Python | Code | 28 | 73 | from .positionals import Direction
class Node:
"""
Tree Node class for action tree search
"""
def __init__(self):
actions = Direction.get_all_cardinals() + [Direction.Still]
children = []
def expand(self):
return | 7,511 |
https://github.com/MiroslavPeychev/C-Sharp-Fundamentals/blob/master/Associative Arrays/More tasks with Dictionaries/Filter Base/StartUp.cs | Github Open Source | Open Source | MIT | null | C-Sharp-Fundamentals | MiroslavPeychev | C# | Code | 156 | 523 | namespace Filter_Base
{
using System;
using System.Collections.Generic;
public class StartUp
{
public static void Main()
{
var nameAge = new Dictionary<string, int>();
var nameSalary = new Dictionary<string, double>();
var namePosition = new Dictiona... | 21,257 |
https://github.com/dupliaka/droolsjbpm-integration/blob/master/jbpm-simulation/src/main/java/org/jbpm/simulation/SimulationInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | droolsjbpm-integration | dupliaka | Java | Code | 254 | 600 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | 3,341 |
https://github.com/oeg-upm/LDP4RO/blob/master/ldp4ro-webapp/src/main/java/org/ldp4j/apps/ldp4ro/vocab/LDP.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | LDP4RO | oeg-upm | Java | Code | 499 | 1,032 | /**
* Copyright (C) 2014 Ontology Engineering Group, Universidad Politécnica de Madrid (http://www.oeg-upm.net/)
*
* 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.... | 42,775 |
https://github.com/moshowgame/spring-boot-UrlTaskScheduler/blob/master/src/main/java/com/software/dev/mapper/UrlResponseMapper.java | Github Open Source | Open Source | Apache-2.0 | null | spring-boot-UrlTaskScheduler | moshowgame | Java | Code | 32 | 156 | package com.software.dev.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.software.dev.domain.UrlRequest;
import com.software.dev.domain.UrlResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
im... | 10,529 |
https://github.com/TUBS-ISF/SPL2018.Project.03/blob/master/SijaDictionary-Task4/src/loader/PluginLoader.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | SPL2018.Project.03 | TUBS-ISF | Java | Code | 483 | 1,377 | /* FeatureIDE - A Framework for Feature-Oriented Software Development
* Copyright (C) 2005-2017 FeatureIDE team, University of Magdeburg, Germany
*
* This file is part of FeatureIDE.
*
* FeatureIDE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public Lice... | 29,440 |
https://github.com/afifhidayat24/minunew/blob/master/application/views/admin/adm-show-video-v.php | Github Open Source | Open Source | MIT | null | minunew | afifhidayat24 | PHP | Code | 8 | 88 | <link href="<?=base_url('twd-theme/videojs/video-js.css');?>" rel="stylesheet">
<script src="<?=base_url('twd-theme/videojs/video.js');?>"></script>
<link rel="stylesheet" href="<?=base_url('twd-theme/style.css');?>"> | 29,362 |
https://github.com/tmilliman/sirpy2/blob/master/sirpy2/helpers.py | Github Open Source | Open Source | MIT | null | sirpy2 | tmilliman | Python | Code | 94 | 256 | #!/usr/bin/env python
""" Small helper utility functions for sirpy"""
# Imports
import os
import sys
import numpy as np
from matplotlib import pyplot as plt
from printsirhead import printsirhead
# The helper functions
def clearline():
""" Clears the line right of the cursor position """
sys.stdout.write(chr... | 55,568 |
https://github.com/denisTrubicin93/mirror-signage/blob/master/src/components/common/svg/index.tsx | Github Open Source | Open Source | MIT | null | mirror-signage | denisTrubicin93 | TypeScript | Code | 23 | 80 | import ArrowDown from './allowDown.inline.svg';
import ArrowUp from './allowUp.inline.svg';
import Bluetooth from './bluetooth.inline.svg';
import Layout from './layout.inline.svg';
export {
ArrowDown,
ArrowUp,
Bluetooth,
Layout
}
| 42,485 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.