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/Project-2-Full-Stack/Project-2/blob/master/controllers/api/userRoutes.js | Github Open Source | Open Source | MIT | 2,021 | Project-2 | Project-2-Full-Stack | JavaScript | Code | 235 | 879 | const router = require('express').Router();
const { User } = require('../../models');
router.post('/', async (req, res) => {
try {
const userData = await User.create(req.body);
req.session.save(() => {
req.session.user_id = userData.id;
req.session.logged_in = true;
// TODO: save preferen... | 45,249 |
https://github.com/TheIndianRebel/Hacktoberfest2k21/blob/master/Program's_Contributed_By_Contributors/C++_Programs/factorial.cpp | Github Open Source | Open Source | MIT | 2,021 | Hacktoberfest2k21 | TheIndianRebel | C++ | Code | 34 | 87 | #include <iostream>
int factorial(int n) {
if(n == 0) {
return 1;
}
if(n > 0) {
return n * factorial(n - 1);
}
return 0;
}
int main() {
std::cout << factorial(3);
}
| 45,386 |
https://github.com/2bbb/bit_by_bit/blob/master/include/bbb/pipe/container.hpp | Github Open Source | Open Source | MIT | 2,022 | bit_by_bit | 2bbb | C++ | Code | 73 | 249 | /* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* bbb/pipe/container.hpp
*
* author: ISHII 2bit
* mail: bit_by_bit@2b... | 24,975 |
https://github.com/kanwalmeet/KGE-Frontend/blob/master/src/app/models/graphdata/graphLink.ts | Github Open Source | Open Source | BSD-3-Clause | 2,021 | KGE-Frontend | kanwalmeet | TypeScript | Code | 11 | 26 | export class GraphLink {
predicate: string;
source: string;
target: string;
} | 10,906 |
https://github.com/Rachmat04/pattypan/blob/master/src/pattypan/Template.java | Github Open Source | Open Source | MIT | 2,022 | pattypan | Rachmat04 | Java | Code | 422 | 919 | /*
* The MIT License
*
* Copyright 2016 Pawel Marynowski.
*
* 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... | 12,075 |
https://github.com/ZhuangXiaoMi/NetWinformControl/blob/master/HZH_Controls/Test/UC/UCTestPage.Designer.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-proprietary-license | 2,020 | NetWinformControl | ZhuangXiaoMi | C# | Code | 392 | 2,091 | namespace Test.UC
{
partial class UCTestPage
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为... | 15,857 |
https://github.com/Crazy1314/Crazy/blob/master/xiangmu/xiangmu_admin/application/controllers/Goods.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | Crazy | Crazy1314 | PHP | Code | 303 | 2,010 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Goods extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controll... | 10,457 |
https://github.com/HaraldBregu/MGVideoPlayerKit/blob/master/Example/MGVideoPlayerKit/AppDelegate.swift | Github Open Source | Open Source | MIT | 2,019 | MGVideoPlayerKit | HaraldBregu | Swift | Code | 234 | 822 | //
// AppDelegate.swift
// MGVideoPlayerKit
//
// Created by AldoOS on 03/16/2019.
// Copyright (c) 2019 AldoOS. All rights reserved.
//
import UIKit
import MGVideoPlayerKit
import Firebase
import MGTemplateKit
class AssetsData: MGVideoPlayerAssetData {}
@UIApplicationMain
class AppDelegate: UIResponder, UIAppli... | 54,002 |
https://github.com/rgwood/go2cs/blob/master/src/go-src-converted/internal/bytealg/equal_native.cs | Github Open Source | Open Source | MIT | 2,022 | go2cs | rgwood | C# | Code | 146 | 350 | // Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// package bytealg -- go2cs converted at 2020 October 09 04:45:56 UTC
// import "internal/bytealg" ==> using bytealg = go.@internal.bytealg_package
// Original ... | 39,256 |
https://github.com/scheffelpaula204/WebsiteRaker/blob/master/malware/localhost_05-18_18-43-0008_9A7523C4/output/eval_36.js | Github Open Source | Open Source | MIT | 2,019 | WebsiteRaker | scheffelpaula204 | JavaScript | Code | 4 | 23 | var cheburgenPIi9=cheburgenFw2 + cheburgenUw6; | 17,559 |
https://github.com/guillep/pharo/blob/master/src/Versionner-Core-Model.package/MBBaselineInfo.class/instance/printOn..st | Github Open Source | Open Source | MIT | 2,017 | pharo | guillep | null | Spoken | 15 | 46 | printing
printOn: aStream
super printOn: aStream.
self isBleedingEdge
ifTrue: [ aStream nextPutAll: ' #bleedingEdge' ]. | 23,423 |
https://github.com/TheRakeshPurohit/asyncify/blob/master/test/fixtures/then_RenamingDestructuredInput.ts | Github Open Source | Open Source | MIT | 2,021 | asyncify | TheRakeshPurohit | TypeScript | Code | 63 | 136 | export const input = `
function foo() {
const value = 3
return baz.then(({value}) => {
if (value instanceof Blargh) return processBlargh(value)
else return processOther(value)
})
}
`
export const options = {}
export const expected = `
async function foo() {
const value = 3
const {value: value0} = aw... | 19,923 |
https://github.com/noelo/pathfinder/blob/master/pathfinder-ui/src/main/webapp/forms/newMemberForm.jsp | Github Open Source | Open Source | Apache-2.0, CC-BY-SA-4.0 | 2,020 | pathfinder | noelo | null | Spoken | 197 | 1,017 |
<!--#################-->
<!-- EDIT MODAL FORM -->
<!--#################-->
<script>
var entityManagementUrls={
"get": Utils.SERVER+"/api/pathfinder/customers/"+Utils.getParameterByName("customerId")+"/members/$ID/",
"create": Utils.SERVER+"/api/pathfinder/customers/"+Utils.getParameterByName("customerId")+... | 44,022 |
https://github.com/chenm001/connectal/blob/master/examples/memlatency/Makefile | Github Open Source | Open Source | MIT | 2,023 | connectal | chenm001 | Makefile | Code | 21 | 128 | CONNECTALDIR?=../..
S2H_INTERFACES = MemlatencyRequest:Memlatency.request
H2S_INTERFACES = Memlatency:MemlatencyIndication
MEM_READ_INTERFACES = lMemlatency.dmaReadClient
MEM_WRITE_INTERFACES = lMemlatency.dmaWriteClient
BSVFILES = Memlatency.bsv
CPPFILES = testmemlatency.cpp
include $(CONNECTALDIR)/Makefile.connecta... | 41,130 |
https://github.com/mariandev/template-blocks/blob/master/src/Primitives/float2.test.ts | Github Open Source | Open Source | MIT | 2,019 | template-blocks | mariandev | TypeScript | Code | 678 | 2,069 | import {float2} from "./float2";
describe("class float2", () => {
it("should fill the y value with the x value if it's not specified", () => {
const vec = new float2(1);
expect(vec.x).toEqual(1);
expect(vec.y).toEqual(1);
});
it("should return the squared magnitude of the float2", ... | 5,887 |
https://github.com/terminux/jdk1.7.0_80/blob/master/src/com/sun/corba/se/impl/naming/namingutil/INSURLHandler.java | Github Open Source | Open Source | MIT | 2,022 | jdk1.7.0_80 | terminux | Java | Code | 179 | 426 | /*
* Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.corba.se.impl.naming.namingutil;
import org.omg.CORBA.CompletionStatus;
import java.uti... | 31,803 |
https://github.com/arranz-alfredo/toohak/blob/master/src/components/common/Countdown.tsx | Github Open Source | Open Source | Apache-2.0 | null | toohak | arranz-alfredo | TypeScript | Code | 184 | 586 | import React, { useEffect, useState } from 'react';
import { Box, CircularProgress, Grid, Typography } from '@material-ui/core';
import { ComponentMode } from 'enums';
interface CountdownProps {
mode: ComponentMode,
time: number,
stopTimer?: boolean,
onTimeUp?: () => void
}
export const Countdown: Re... | 1,213 |
https://github.com/codex-team/codex.media/blob/master/www/application/views/templates/pages/blocks/embed.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | codex.media | codex-team | PHP | Code | 26 | 110 | <div class="article-embed">
<iframe src="<?= $block['embed'] ?>" style="width:100%; height:<?= $block['height'] ?>px" scrolling="no"
frameborder="no"></iframe>
<? if (!empty($block['caption'])): ?>
<footer class="article-embed-caption">
<?= $block['caption'] ?>
</footer>
... | 52,705 |
https://github.com/elshadsm/tabris-plugin-template/blob/master/www/CustomButton.js | Github Open Source | Open Source | BSD-3-Clause | null | tabris-plugin-template | elshadsm | JavaScript | Code | 40 | 123 |
class CustomButton extends tabris.Widget {
get _nativeType() {
return 'elshadsm.CustomButton';
}
}
tabris.NativeObject.defineProperties(CustomButton.prototype, {
text: { type: 'string', default: '' },
maxLines: { type: 'number', default: null }
});
tabris.NativeObject.defineEvents(CustomButton.prototyp... | 22,799 |
https://github.com/d-georgiev-91/TelerikAcademy/blob/master/Programming/HighQualityProgrammingCode/HighQualityCodeExam/CalendarSystem/Command.cs | Github Open Source | Open Source | MIT | 2,018 | TelerikAcademy | d-georgiev-91 | C# | Code | 175 | 490 | namespace CalendarSystem
{
using System;
public struct Command
{
public string Name { get; private set; }
public string[] Parameters { get; private set; }
public static Command Parse(string command)
{
var commandName = GetCommandName(command);
var c... | 52,582 |
https://github.com/cisco-ie/cisco-proto/blob/master/codegen/go/xr/62x/cisco_ios_xr_invmgr_oper/inventory/racks/rack/entity/slot/tsi1s/tsi1/tsi2s/tsi2/tsi3s/tsi3/tsi4s/tsi4/tsi5s/tsi5/tsi6s/tsi6/tsi7s/tsi7/tsi8s/tsi8/tsi9s/tsi9/tsi10s/tsi10/attributes/env_sensor_info/envmon_sensor_info.pb.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | cisco-proto | cisco-ie | Go | Code | 1,424 | 5,809 | /*
Copyright 2019 Cisco Systems
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
d... | 6,935 |
https://github.com/dslming/webgl-dunes/blob/master/src/shaders/DiffuseAnimatedShader.ts | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | webgl-dunes | dslming | TypeScript | Code | 316 | 1,094 | import { BaseShader, DiffuseShader, FullModel } from "webgl-framework";
import { DrawableShader } from "webgl-framework/dist/types/DrawableShader";
import { RendererWithExposedMethods } from "webgl-framework/dist/types/RendererWithExposedMethods";
export class DiffuseAnimatedShader extends BaseShader {
// Uniforms... | 41,648 |
https://github.com/kekelf/spring-framework/blob/master/spring-study/src/main/java/com/xmlIocRead/designPattern/Main.java | Github Open Source | Open Source | Apache-2.0 | null | spring-framework | kekelf | Java | Code | 41 | 197 | package com.xmlIocRead.designPattern;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/***
* 获取器方法注入:当teacher这个实体的方法过时的时候
* 只需要将xml中<lookup-method name="getBeanMethod" bean="teacher" ></lookup-method>
* bean="student"就是可以调用student的sh... | 30,876 |
https://github.com/jsj1510/woowahan-agile-codingtest/blob/master/coding-test/kimjiwon/level1/p와y개수는2가지.js | Github Open Source | Open Source | MIT | 2,021 | woowahan-agile-codingtest | jsj1510 | JavaScript | Code | 44 | 116 | function solution(s){
const sToLower = s.toLowerCase().split("");
let pp, yy;
pp = yy = 0;
for (let i = 0; i < sToLower.length; i++) {
if (sToLower[i] === 'p'){
pp++;
} else if (sToLower[i] === 'y') {
yy++;
}
}
return pp === yy;
}
| 38,912 |
https://github.com/averadev/tsc_web/blob/master/assets/js/dashboard.js | Github Open Source | Open Source | BSD-3-Clause, MIT, LicenseRef-scancode-unknown-license-reference | 2,015 | tsc_web | averadev | JavaScript | Code | 136 | 654 | google.load("visualization", "1", {packages: ["corechart"]});
$(function() {
$.ajax({
type: "POST",
url: "dashboard/cuponesComercio",
dataType:'json',
success: function(data){
var arrayD = new Array();
arrayD.push(['Comercios', 'Cupones']);
for(var i = 0; i < data.length; i++){
... | 33,796 |
https://github.com/JonasKruckenberg/ipfs-http-client-esm/blob/master/src/pin/index.ts | Github Open Source | Open Source | MIT | 2,021 | ipfs-http-client-esm | JonasKruckenberg | TypeScript | Code | 28 | 58 | // @index('./*.ts', f => `export * from '${f.path}'`)
export * from './add'
export * from './ls'
export * from './rm'
export * from './update'
export * from './verify'
| 20,022 |
https://github.com/aptible/docker-influxdb/blob/master/1.4/config.mk | Github Open Source | Open Source | MIT | null | docker-influxdb | aptible | Makefile | Code | 20 | 101 | export INFLUXDB_VERSION = 1.4.2
export INFLUXDB_INSTALL_METHOD = go-build
export INFLUXDB_DEB_SHA256 = unused
export GO_VERSION = 1.10.8
export GO_SHA256SUM = d8626fb6f9a3ab397d88c483b576be41fa81eefcec2fd18562c87626dbb3c39e | 51,262 |
https://github.com/modelccc/springarin_erp/blob/master/src/main/java/com/ebay/sdk/helper/GetCategoryFeaturesHelper.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | springarin_erp | modelccc | Java | Code | 483 | 1,813 | /*
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent version
thereof released by eBay. The then-current version of the License can be found
at http://www.opensource.org/licenses/cddl1.p... | 26,996 |
https://github.com/WojciechZankowski/iextrading4j/blob/master/iextrading4j-client/src/main/java/pl/zankowski/iextrading4j/client/rest/request/AbstractRequestFilterBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | iextrading4j | WojciechZankowski | Java | Code | 54 | 220 | package pl.zankowski.iextrading4j.client.rest.request;
import com.google.common.collect.ImmutableMap;
import pl.zankowski.iextrading4j.client.rest.request.filter.RequestFilter;
import java.util.Map;
public abstract class AbstractRequestFilterBuilder<R, B extends IRestRequestBuilder>
implements IRestRequestBu... | 8,327 |
https://github.com/chainpool/chainx.js-v2/blob/master/packages/crypto/src/address/checkChecksum.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | chainx.js-v2 | chainpool | TypeScript | Code | 116 | 246 | // Copyright 2017-2020 @chainx-v2/crypto authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import sshash from './sshash';
export default function checkChecksum (decoded: Uint8Array): [boolean, number] {
const isPub... | 3,039 |
https://github.com/perrymant/databasic/blob/master/src/generics/Farm.java | Github Open Source | Open Source | MIT | 2,018 | databasic | perrymant | Java | Code | 49 | 166 | package generics;
import inheritance.Animal;
import java.util.ArrayList;
import java.util.List;
//inheritance: "A is-a B"
//generics: "A of Bs"
public class Farm<T extends Animal> {
private List<T> animals = new ArrayList<>();
void addAnimal(T animal){
this.animals.add(animal);
}
T butche... | 36,550 |
https://github.com/arojunior/nestjs-journey-server/blob/master/src/database/migrations/1602332127696-EventPopulation.ts | Github Open Source | Open Source | MIT | null | nestjs-journey-server | arojunior | TypeScript | Code | 55 | 150 | import { MigrationInterface, QueryRunner } from 'typeorm';
export class EventPopulation1602332127696 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
const events = await import(__dirname + '/../datasets/event.json');
for (const event of events) {
await queryRu... | 17,585 |
https://github.com/sriharikapu/mutatio-ui/blob/master/src/config.js | Github Open Source | Open Source | MIT | 2,020 | mutatio-ui | sriharikapu | JavaScript | Code | 557 | 2,213 | //ABI code from truffle deployed contracts
export const CERTIFICATE_ADDRESS = '0x987fc06261523DA7482990c627C1b7c7AC645eB9'
export const CERTIFICATE_ABI = [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "_name1",
"... | 47,673 |
https://github.com/nilsonvieira/DocketProject/blob/master/dotProject-2.2.0/classes/ui.class.php | Github Open Source | Open Source | MIT | null | DocketProject | nilsonvieira | PHP | Code | 5,341 | 15,369 | <?php /* CLASSES $Id$ */
/**
* @package dotproject
* @subpackage core
* @license http://opensource.org/licenses/gpl-license.php GPL License Version 2
*/
if (! defined('DP_BASE_DIR')) {
die('This file should not be called directly.');
}
// Message No Constants
define('UI_MSG_OK', 1);
define('UI_MSG_ALERT', 2);
define... | 1,101 |
https://github.com/freedomlxx/OIDC-master/blob/master/myoidc-client/src/main/java/myoidc/client/service/dto/UserInfoDto.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | OIDC-master | freedomlxx | Java | Code | 173 | 570 | package myoidc.client.service.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
/**
* <pre>
* {"openid":"Ajlt9ZwVyGUvxrJCdKlFA4AataAVKVgH6gxYeCxD6J","username":"mobile","phone":null,"email":"mobile@qc8.me","create_time":0,"privileges":["USER","ADMIN",... | 14,262 |
https://github.com/siyka-au/apex/blob/master/sys/dev/regulator/voltage/fixed/include.mk | Github Open Source | Open Source | 0BSD | 2,021 | apex | siyka-au | Makefile | Code | 12 | 33 | #
# Fixed voltage regulator support
#
SOURCES += \
dev/regulator/voltage/fixed/fixed.cpp \
| 10,939 |
https://github.com/techopsph/social_pantheon/blob/master/profiles/contrib/social/modules/social_features/social_content_block/src/Plugin/Field/FieldWidget/ContentBlockPluginWidgetBase.php | Github Open Source | Open Source | MIT | null | social_pantheon | techopsph | PHP | Code | 198 | 732 | <?php
namespace Drupal\social_content_block\Plugin\Field\FieldWidget;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\WidgetBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\social_conte... | 20,015 |
https://github.com/Voice-First-Tech/Flashcards-Jovo/blob/master/app/app.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | Flashcards-Jovo | Voice-First-Tech | JavaScript | Code | 483 | 2,183 | 'use strict';
// =================================================================================
// App Configuration
// =================================================================================
const {App} = require('jovo-framework');
const config = {
logging: true,
};
const app = new App(config);
c... | 3,526 |
https://github.com/stinvi/dava.engine/blob/master/Programs/UIViewer/Sources/UIScreens/UIViewScreen.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | dava.engine | stinvi | C | Code | 73 | 294 | #pragma once
#include "UIScreens/BaseScreen.h"
#include <Base/Array.h>
#include <Base/BaseTypes.h>
#include <Base/RefPtr.h>
#include <Base/Token.h>
#include <FileSystem/FilePath.h>
namespace DAVA
{
class ProgramOptions;
}
class UIViewScreen : public BaseScreen
{
public:
UIViewScreen(DAVA::Window* window, DAVA::P... | 32,268 |
https://github.com/bruno-bert/scarface-core/blob/master/ClearFolderCommand.js | Github Open Source | Open Source | MIT | null | scarface-core | bruno-bert | JavaScript | Code | 31 | 143 | const GeneratorCommand = require('./GeneratorCommand');
const Constants = require('./Constants');
const clearFolder = require('./functions/ClearFolder');
class ClearFolderCommand extends GeneratorCommand{
main(){
if (this._project.configurator.clearTargetFolder) {
this.... | 38,195 |
https://github.com/lixinduancheng/WorkFlow/blob/master/plugins/TotalCommander/TC_NormalMode.ahk | Github Open Source | Open Source | MIT | 2,021 | WorkFlow | lixinduancheng | null | Spoken | 556 | 4,821 | ;重定义以下Sace,让Sace不被禁用
vim.map("<Space>", "<Tc_DoubleSpace>", "TTOTAL_CMD") ;选中取消
; vim.map("<Alt>", "<TC_AltSwitch>", "TTOTAL_CMD") ;收藏夹/双按访问历史记录
; vim.map("<Alt>", "<cm_DirectoryHotlist>", "TTOTAL_CMD") ;收藏夹
; vim.map("<BS>", "<TC_Double_Backspace>", "TTOTAL_CMD") ;上一层
;vim.map("<CapsLock>... | 13,915 |
https://github.com/sfxworks/Public-Desktop/blob/master/scrap-metal/DatabaseServiceNodeClient.as | Github Open Source | Open Source | MIT | null | Public-Desktop | sfxworks | null | Spoken | 170 | 523 | package sfxworks.services.nodes
{
import flash.data.SQLConnection;
import flash.data.SQLStatement;
import flash.events.EventDispatcher;
import flash.events.IEventDispatcher;
import flash.net.registerClassAlias;
/**
* ...
* @author Samuel Jacob Walker
*/
public class DatabaseServiceNodeClient extends Eve... | 33,825 |
https://github.com/AbekNarynov/accountant/blob/master/web/js/main.js | Github Open Source | Open Source | BSD-3-Clause | null | accountant | AbekNarynov | JavaScript | Code | 44 | 201 | $(document).ready(function () {
var datePicker = $('.date-picker');
var reasonId = $('#reasonlocation-reason_id');
datePicker.val(localStorage.getItem('date-picker'));
reasonId.val(localStorage.getItem('reasonId'));
datePicker.datepicker({
format: "yyyy-mm-dd",
todayBtn: true,
... | 1,892 |
https://github.com/Azquelt/cdi-tck/blob/master/web/src/main/java/org/jboss/cdi/tck/tests/deployment/discovery/implicit/TestExtension.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | cdi-tck | Azquelt | Java | Code | 200 | 533 | /*
* JBoss, Home of Professional Open Source
* Copyright 2015, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | 24,733 |
https://github.com/aescen/HitungWalet/blob/master/arduino/SinkNode_WEMOS/SinkNode_WEMOS.ino | Github Open Source | Open Source | CC-BY-4.0 | null | HitungWalet | aescen | null | Spoken | 891 | 2,822 | /********************************************************************************************Includes**/
#include <FirebaseESP8266.h>
#include <FirebaseESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
#include <SPI.h>
#include <RF24.h>
#include <RF24Network.h>
#include <WiFiUdp.h>
#include <TimeLib.h>
/**/
/**************... | 55,555 |
https://github.com/anypath/CoinVault/blob/master/deps/CoinQ/examples/clivault/Makefile | Github Open Source | Open Source | Unlicense, OpenSSL, MIT | null | CoinVault | anypath | Makefile | Code | 434 | 1,966 | COINCLASSES = ../../../CoinClasses
COINQ = ../../../CoinQ
SQLITE3 = ../../../sqlite3
CLI = ../../../cli
LOGGER = ../../../logger
ODB_DB = -DDATABASE_SQLITE
CXX_FLAGS = -Wall
ifdef DEBUG
CXX_FLAGS += -g
else
CXX_FLAGS += -O3
endif
INCLUDE_PATH = -I$(COINCLASSES)/src -I$(COINQ)/src -I$(COINQ)/odb -I$(CLI)/src ... | 31,663 |
https://github.com/KD-Group/prett/blob/master/tests/test_prett.py | Github Open Source | Open Source | MIT | 2,019 | prett | KD-Group | Python | Code | 145 | 676 | import json
import prett
import unittest
class MyTestCase(unittest.TestCase):
def test_project_storage_tree(self):
class ItemDemo(prett.IntProjectItem):
pass
class ProjectDemo(prett.AbstractProject):
def __init__(self):
self.width = ItemDemo(self)
... | 24,903 |
https://github.com/abdrrahmenz/flutter_form_builder/blob/master/lib/src/utils/helpers.dart | Github Open Source | Open Source | BSD-2-Clause | 2,021 | flutter_form_builder | abdrrahmenz | Dart | Code | 48 | 133 | // Helper functions for validator and sanitizer.
T? shift<T>(List<T> l) {
if (l.isNotEmpty) {
var first = l.first;
l.removeAt(0);
return first;
}
return null;
}
Map merge(Map? obj, Map? defaults) {
obj ??= <dynamic, dynamic>{};
defaults
?.forEach((dynamic key, dynamic val) => obj!.putIfAbs... | 1,259 |
https://github.com/Finnology/oro-platform/blob/master/src/Oro/Bundle/ApiBundle/Processor/Shared/BuildQuery.php | Github Open Source | Open Source | MIT | 2,023 | oro-platform | Finnology | PHP | Code | 236 | 981 | <?php
namespace Oro\Bundle\ApiBundle\Processor\Shared;
use Oro\Bundle\ApiBundle\Exception\InvalidSorterException;
use Oro\Bundle\ApiBundle\Exception\RuntimeException;
use Oro\Bundle\ApiBundle\Filter\FilterNamesRegistry;
use Oro\Bundle\ApiBundle\Filter\FilterValueAccessorInterface;
use Oro\Bundle\ApiBundle\Model\Error... | 17,448 |
https://github.com/instructure/gergich/blob/master/spec/gergich/capture/stylelint_capture_spec.rb | Github Open Source | Open Source | MIT | 2,023 | gergich | instructure | Ruby | Code | 144 | 636 | # frozen_string_literal: true
require_relative "../../support/capture_shared_examples"
RSpec.describe Gergich::Capture::StylelintCapture do
let(:output) do
<<~OUTPUT
app/stylesheets/base/_print.scss
3:17 ✖ Unexpected invalid hex color "#owiehfi" color-no-invalid-hex
3:17 ⚠ Expected "#o... | 1,497 |
https://github.com/krizten/Memoire-API/blob/master/src/entry/entry.controller.ts | Github Open Source | Open Source | MIT | 2,020 | Memoire-API | krizten | TypeScript | Code | 580 | 1,654 | import { config } from 'dotenv';
import {
Controller,
Get,
Param,
Post,
Body,
Put,
Delete,
Logger,
UsePipes,
UseGuards,
} from '@nestjs/common';
import {
ApiTags,
ApiBearerAuth,
ApiOperation,
ApiOkResponse,
ApiForbiddenResponse,
ApiInternalServerErrorResponse,
ApiBadRequestResponse,
... | 30,063 |
https://github.com/phnix-tech/web-common/blob/master/src/ts/env.ts | Github Open Source | Open Source | MIT | null | web-common | phnix-tech | TypeScript | Code | 7 | 12 | import env from "../env";
export default env; | 5,806 |
https://github.com/ishansheth/ArkanoidGame/blob/master/src/paddle.cpp | Github Open Source | Open Source | MIT | null | ArkanoidGame | ishansheth | C++ | Code | 159 | 895 | #include "paddle.hpp"
const sf::Color Paddle::defColor{sf::Color::White};
Paddle::Paddle(float mX,float mY,bool updateStatus):angle(0),rotationAngle(0){
shape.setPosition(mX,mY);
lastPosition = {mX,mY};
shape.setSize({defwidth,defheight});
shape.setFillColor(defColor);
shape.setOrigin(defwidth/2.f,defheight... | 37,625 |
https://github.com/PyroVx/NRGMessageBoard/blob/master/app/Http/routes.php | Github Open Source | Open Source | MIT | 2,017 | NRGMessageBoard | PyroVx | PHP | Code | 121 | 342 | <?php
/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| an... | 34,586 |
https://github.com/SakuragiTen/YDProject/blob/master/Example/YDProject/Classes/Basic/ShapLayer/View/UIBezierPath+curved.h | Github Open Source | Open Source | MIT | 2,021 | YDProject | SakuragiTen | C | Code | 32 | 129 | //
// UIBezierPath+curved.h
// MPPlot
//
// Created by Alex Manzella on 22/05/14.
// Copyright (c) 2014 mpow. All rights reserved.
//
// 平滑曲线绘制
#import <UIKit/UIKit.h>
@interface UIBezierPath (curved)
- (UIBezierPath*)smoothedPathWithGranularity:(NSInteger)granularity;
@end
| 21,815 |
https://github.com/ofek-public/integrations-core/blob/master/btrfs/datadog_checks/btrfs/__init__.py | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,021 | integrations-core | ofek-public | Python | Code | 14 | 45 | from .btrfs import BTRFS
from .__about__ import __version__
__all__ = [
'__version__',
'BTRFS'
]
| 9,450 |
https://github.com/dwarkeshsoni/laravel_demo_hmvc/blob/master/app/Modules/Attendance/Http/Controllers/NotificationsController.php | Github Open Source | Open Source | MIT | null | laravel_demo_hmvc | dwarkeshsoni | PHP | Code | 192 | 919 | <?php
namespace App\Modules\Attendance\Http\Controllers;
use App\Modules\Attendance\Models\Notifications;
use App\Modules\Attendance\Models\NotificationsStudent;
use App\Modules\Attendance\Models\Student;
use App\Http\Controllers\Controller;
use Carbon\Carbon;
use Illuminate\Http\Request;
use App\Http\Requests;
use ... | 15,107 |
https://github.com/Bogdan-Lyashenko/ai-city-simulation/blob/master/src/client/dist/ai-city-simulation.js | Github Open Source | Open Source | MIT | 2,021 | ai-city-simulation | Bogdan-Lyashenko | JavaScript | Code | 8,001 | 24,253 | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("AiCitySimulation", [], factory);
else if(typeof exports === 'object')
exports["AiCitySimulation"] = f... | 53,281 |
https://github.com/zhanghqgit/joyrpc/blob/master/joyrpc-extension/joyrpc-extension-core/src/main/java/io/joyrpc/extension/DateParser.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | joyrpc | zhanghqgit | Java | Code | 261 | 646 | package io.joyrpc.extension;
/*-
* #%L
* joyrpc
* %%
* Copyright (C) 2019 joyrpc.io
* %%
* 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/LICENS... | 18,558 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/w/wonka/src/main/scala/typingsSlinky/wonka/wonkaOperatorMapMod.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 35 | 167 | package typingsSlinky.wonka
import typingsSlinky.wonka.wonkaTypesMod.Operator
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object wonkaOperatorMapMod {
@JSImport("wonka... | 51,268 |
https://github.com/Badfishdivers/dchq-core/blob/master/app/helpers/application_helper.rb | Github Open Source | Open Source | MIT | 2,016 | dchq-core | Badfishdivers | Ruby | Code | 529 | 2,809 | module ApplicationHelper
def formatted_currency(value, options = {})
number_to_currency(value.blank? ? 0 : value, @current_store.currency.format_options.merge(options)).html_safe
end
def colon value = nil
"#{value}:" unless value.blank?
end
def customer_equipment_to_human value
return t("helper... | 14,312 |
https://github.com/ceto/hhp/blob/master/assets/scss/_elements.scss | Github Open Source | Open Source | MIT | 2,015 | hhp | ceto | SCSS | Code | 243 | 1,195 | .wrapper-page {
padding-top: 0;
padding-bottom: 6em;
}
/****************** Data Table Styles **************/
.datatable {
margin:1em 0;
display:table;
//border-collapse:collapse;
border-collapse: separate;
border-spacing:0 .5em;
width:100%;
font-family:$sans-serif;
font-size:.875em;
line-height:1;
//overfl... | 32,054 |
https://github.com/jonathanmorley/samuel-rs/blob/master/src/response.rs | Github Open Source | Open Source | Apache-2.0 | 2,019 | samuel-rs | jonathanmorley | Rust | Code | 619 | 3,093 | use crate::assertion::Assertions;
use crate::signature::Signature;
use crate::{maybe_child, try_attribute, try_child};
use failure::{bail, Error};
use roxmltree::{Document, Node};
use std::str::FromStr;
use try_from::{TryFrom, TryInto};
#[derive(Debug, PartialEq)]
// https://docs.oasis-open.org/security/saml/v2.0/saml... | 23,203 |
https://github.com/francoabaroa/escape-reality/blob/master/react-client/src/components/Louvre.js | Github Open Source | Open Source | MIT | 2,017 | escape-reality | francoabaroa | JavaScript | Code | 1,188 | 3,678 | import 'aframe';
import 'aframe-animation-component';
import 'aframe-text-component';
import 'babel-polyfill';
import {Entity, Scene} from 'aframe-react';
import React from 'react';
import ReactDOM from 'react-dom';
import { Link, withRouter } from 'react-router';
import 'aframe-bmfont-text-component';
import Iframe fr... | 43,665 |
https://github.com/Xilinx/platformstats/blob/master/src/platformstats.h | Github Open Source | Open Source | MIT | 2,022 | platformstats | Xilinx | C | Code | 131 | 458 | /******************************************************************************
* Copyright (C) 2019 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
struct cpustat {
unsigned long user;
unsigned long nice;
un... | 53,005 |
https://github.com/abdullahessamm/Eagle-Sales/blob/master/app/Http/Middleware/RejectNotSupportedCountries.php | Github Open Source | Open Source | MIT | null | Eagle-Sales | abdullahessamm | PHP | Code | 57 | 257 | <?php
namespace App\Http\Middleware;
use App\Models\AvailableCountry;
use Closure;
use Illuminate\Http\Request;
class RejectNotSupportedCountries
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\... | 18,426 |
https://github.com/dandycheung/beagle/blob/master/internal-core/src/main/java/com/pandulapeter/beagle/core/view/bugReport/list/gallery/BugReportGalleryAdapter.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | beagle | dandycheung | Kotlin | Code | 145 | 612 | package com.pandulapeter.beagle.core.view.bugReport.list.gallery
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.pandulapeter.beagle.core.R
internal class BugReportGalleryAdapter(
... | 12,500 |
https://github.com/SebastianCApostolescu/resource-center/blob/master/src/views/Posters.js | Github Open Source | Open Source | MIT | 2,017 | resource-center | SebastianCApostolescu | JavaScript | Code | 187 | 572 | import map from 'lodash/map'
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import { Helmet } from 'react-helmet'
import { GenericCard } from './../components/GenericCard'
import posterData from '../data/posterData'
import { logPageView } from '../utils/analytics'
class Posters extend... | 39,113 |
https://github.com/Lombiq/Orchard-Vue.js/blob/master/Lombiq.VueJs.Samples/Assets/Scripts/VueComponents/demo-repeater.vue | Github Open Source | Open Source | BSD-3-Clause | 2,023 | Orchard-Vue.js | Lombiq | Vue | Code | 53 | 160 | <template>
<div class="DemoRepeater__list">
<!-- Binding an array here is not strictly useful, we just want to show a different type
of "v-for" than in demo-sfc. -->
<div class="DemoRepeater__listItem"
v-for="item in data"
:key="item"
:class="item"... | 9,791 |
https://github.com/devinrsmith/deephaven-core/blob/master/DB/src/main/java/io/deephaven/db/v2/SourceTableMap.java | Github Open Source | Open Source | MIT | null | deephaven-core | devinrsmith | Java | Code | 702 | 2,162 | package io.deephaven.db.v2;
import io.deephaven.db.tables.Table;
import io.deephaven.db.tables.TableDefinition;
import io.deephaven.db.tables.live.LiveTable;
import io.deephaven.db.tables.live.LiveTableMonitor;
import io.deephaven.db.tables.live.LiveTableRefreshCombiner;
import io.deephaven.db.v2.locations.*;
import i... | 54,881 |
https://github.com/DaveBoy/WanAndroid/blob/master/app/src/main/java/com/daveboy/wanandroid/ui/project/content/ContentRepository.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | WanAndroid | DaveBoy | Kotlin | Code | 20 | 118 | package com.daveboy.wanandroid.ui.project.content
import com.daveboy.wanandroid.entity.*
import com.daveboy.wanandroid.http.RetrofitManager
import com.daveboy.wanandroid.http.BaseResponse
class ContentRepository {
suspend fun getTabProject(page:Int,cid:Int): BaseResponse<TabProjectResponse> {
return Ret... | 33,008 |
https://github.com/infinityloop-dev/coolbeans/blob/master/src/Decorator/History.php | Github Open Source | Open Source | MIT | 2,020 | coolbeans | infinityloop-dev | PHP | Code | 211 | 809 | <?php
declare(strict_types = 1);
namespace CoolBeans\Decorator;
final class History implements \CoolBeans\Contract\DataSource
{
use \Nette\SmartObject;
use \CoolBeans\Decorator\TDecorator;
public const METADATA = ['id', 'active'];
public function __construct(
\CoolBeans\Contract\DataSource ... | 26,647 |
https://github.com/gershgorin/android_device_huawei_alel04-1/blob/master/BoardConfig.mk | Github Open Source | Open Source | Apache-2.0 | null | android_device_huawei_alel04-1 | gershgorin | Makefile | Code | 498 | 2,095 | # Copyright (C) 2015 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 56,058 |
https://github.com/tpolecat/ocs3/blob/master/modules/core/shared/src/main/scala/gem/enum/EventType.scala | Github Open Source | Open Source | BSD-2-Clause | 2,020 | ocs3 | tpolecat | Scala | Code | 270 | 659 | // Copyright (c) 2016-2019 Association of Universities for Research in Astronomy, Inc. (AURA)
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause
package gem
package enum
import cats.instances.string._
import cats.syntax.eq._
import gem.util.Enumerated
/**
* Enumerated type for ob... | 31,995 |
https://github.com/girishparameswar/Blogger-Page-using-Angular-4/blob/master/src/app/server/app.js | Github Open Source | Open Source | MIT | null | Blogger-Page-using-Angular-4 | girishparameswar | JavaScript | Code | 328 | 1,434 | var express = require('express'),
app = express(),
mongoose = require('mongoose'),
cors = require('cors'),
bodyParser = require('body-parser'),
jwt = require('jsonwebtoken');
app.use(cors(corsOptions));
app.use(bodyParser.json());
mongoose.connect('mongodb://localhost/angulartest');
var db =... | 9,727 |
https://github.com/ninadhatkar/datasync-mongodb-sdk/blob/master/src/config.ts | Github Open Source | Open Source | MIT | 2,021 | datasync-mongodb-sdk | ninadhatkar | TypeScript | Code | 95 | 337 | /*!
* Contentstack DataSync Mongodb SDK
* Copyright (c) 2019 Contentstack LLC
* MIT Licensed
*/
export const config = {
contentStore: {
collection: {
asset: 'contents',
entry: 'contents',
schema: 'content_types',
},
dbName: 'contentstack-db',
indexes: {
_content_type_uid: ... | 39,011 |
https://github.com/songjk/SRBook/blob/master/SReader/Class/Module/View/Header/SRSignHeaderView.swift | Github Open Source | Open Source | MIT | 2,021 | SRBook | songjk | Swift | Code | 533 | 1,990 | //
// SRSignHeaderView.swift
// SReader
//
// Created by JunMing on 2021/7/28.
//
import UIKit
class SRSignHeaderView: SRBaseView, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
private var dataSource = [SRSignModel]()
lazy var collectinonView: UICollectionView =... | 8,822 |
https://github.com/adwardwolf/the-earth/blob/master/domain/src/main/java/com/wo1f/domain/model/SignUp.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | the-earth | adwardwolf | Kotlin | Code | 34 | 91 | package com.wo1f.domain.model
data class SignUpRequest(
val email: String,
val username: String,
val name: String,
val password: String,
val accountType: String
)
data class SignUpResponse(
val userId: String?,
val authToken: String?,
val errorMessage: String?,
)
| 9,573 |
https://github.com/Dazzed/dental-front/blob/master/app/containers/DentistSignupPage/reducer.js | Github Open Source | Open Source | MIT | null | dental-front | Dazzed | JavaScript | Code | 200 | 665 | /*
Dentist Signup Page Reducers
================================================================================
*/
/*
Imports
------------------------------------------------------------
*/
// local
import {
// fetch
DENTIST_SPECIALTIES_SUCCESS,
PRICING_CODES_SUCCESS,
// signup
DENTIST_SIGNUP_SUCCESS,
CL... | 14,437 |
https://github.com/ian-lewis-cs/cdn_scripts/blob/master/fastly_to_graphite.php | Github Open Source | Open Source | MIT | 2,013 | cdn_scripts | ian-lewis-cs | PHP | Code | 617 | 1,692 | #!/bin/env php
<?php
# Takes the stats from the Fastly reporting API and feeds them into Graphite.
# Your Fastly API key
const FASTLY_KEY = "";
# Configure your Fastly services goes here:
# - The array key is the name of the service and the graphite key that will be used
# - The array value is the service ID, which c... | 26,867 |
https://github.com/gysr-io/core/blob/master/contracts/ERC721StakingModule.sol | Github Open Source | Open Source | MIT | 2,022 | core | gysr-io | Solidity | Code | 571 | 1,558 | /*
ERC721StakingModule
https://github.com/gysr-io/core
SPDX-License-Identifier: MIT
*/
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "./interfaces/IStakingModule.sol";
/**
* @title ERC721 staking module
*
* @notice this staking module allows users to deposit one or mo... | 51,557 |
https://github.com/grandracer/framework/blob/master/src/org/flexlite/domUI/components/Label.as | Github Open Source | Open Source | MIT | null | framework | grandracer | null | Spoken | 1,297 | 6,737 | package org.flexlite.domUI.components
{
import flash.events.Event;
import flash.text.Font;
import flash.text.TextFormat;
import flash.text.TextLineMetrics;
import flash.utils.Dictionary;
import org.flexlite.domCore.Injector;
import org.flexlite.domCore.dx_internal;
import org.flexlite.domUI.components.support... | 38,834 |
https://github.com/ncrypthic/gocontainer/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | gocontainer | ncrypthic | Ignore List | Code | 2 | 10 | glide.lock
vendor/
| 43,066 |
https://github.com/loconox/loconox-datetimepicker/blob/master/lib/loconox-datetimepicker/src/lib/time/time-view.ts | Github Open Source | Open Source | MIT | null | loconox-datetimepicker | loconox | TypeScript | Code | 376 | 1,165 | import {Component, EventEmitter, Input, OnDestroy, Output} from '@angular/core';
import * as moment_ from 'moment';
import {Moment} from "moment";
import {LoconoxDatetimePicker} from "../datetimepicker";
import {Subscription} from "rxjs";
import {LoconoxDatetimePickerColor} from "../color";
const moment = moment_;
@C... | 29,314 |
https://github.com/skylineCodes/hrms-system/blob/master/app/Http/Resources/Leave/LeaveResource.php | Github Open Source | Open Source | MIT | null | hrms-system | skylineCodes | PHP | Code | 90 | 347 | <?php
namespace App\Http\Resources\Leave;
use App\Http\Resources\Leave\LeaveTypeResource;
use Illuminate\Http\Resources\Json\JsonResource;
use App\Http\Resources\Employee\EmployeeProfileResource;
class LeaveResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Il... | 52,143 |
https://github.com/WebPowerLabs/django-trainings/blob/master/dtf/packages/managers.py | Github Open Source | Open Source | BSD-3-Clause | null | django-trainings | WebPowerLabs | Python | Code | 447 | 1,373 | # -*- coding: utf-8 -*-
from httplib import CannotSendRequest
from django.db import models
from django.conf import settings
from djnfusion import server, key
from django.db.models import Q
class PackageManager(models.Manager):
def get_for_content(self, content):
"""
Receive content object and re... | 16,324 |
https://github.com/rzdannisa/websekolah/blob/master/resources/views/login.blade.php | Github Open Source | Open Source | MIT | null | websekolah | rzdannisa | PHP | Code | 414 | 2,223 | <html lang="en">
<head>
<meta charset="utf-8">
<title>Website Sekolah</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link id="callCss" rel="stylesheet" href="css/bootstrap.min.css" type="text/cs... | 38,283 |
https://github.com/hengxheng/care/blob/master/resources/views/html-full.blade.php | Github Open Source | Open Source | MIT | null | care | hengxheng | PHP | Code | 883 | 4,740 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title>Care Nation</title>
<link rel="stylesheet" href="{{ URL::asset('style.css') }}">
<link rel... | 11,542 |
https://github.com/metablink/stackly-api/blob/master/Makefile | Github Open Source | Open Source | MIT | null | stackly-api | metablink | Makefile | Code | 44 | 134 | run-local:
go run main.go
run:
nanobox run go run main.go
link:
nanobox remote add stackly
deploy:
nanobox deploy
build-deps:
godep save ./...
dns:
nanobox dns add local stackly.dev
test-local:
ginkgo ./test/...
test:
nanobox run go test ./test/...
.PHONY: run deploy build-deps dns-local test-local test | 18,718 |
https://github.com/stan-dev/cmdstan/blob/master/src/test/test-models/ndim_array.stan | Github Open Source | Open Source | BSD-3-Clause, GPL-2.0-only, Apache-2.0 | 2,023 | cmdstan | stan-dev | null | Spoken | 24 | 76 | data {
int d1;
int d2;
int d3;
array[d1, d2, d3] int ar;
}
transformed data {
print("d1_1: ", ar[1]);
print("d1_2: ", ar[2]);
}
| 24,913 |
https://github.com/SpeciesFileGroup/taxonworks/blob/master/db/migrate/20170413201615_add_document_description_to_descriptor.rb | Github Open Source | Open Source | NCSA, LicenseRef-scancode-unknown-license-reference | 2,023 | taxonworks | SpeciesFileGroup | Ruby | Code | 12 | 44 | class AddDocumentDescriptionToDescriptor < ActiveRecord::Migration[4.2]
def change
add_column :descriptors, :document_description, :text
end
end
| 48,084 |
https://github.com/GirlsOfSteelRobotics/GirlsOfSteelFRC/blob/master/y2018/2018Beta/src/main/java/com/gos/steam_works/commands/SwitchToCamClimb.java | Github Open Source | Open Source | BSD-3-Clause | null | GirlsOfSteelFRC | GirlsOfSteelRobotics | Java | Code | 56 | 196 | package com.gos.steam_works.commands;
import com.gos.steam_works.subsystems.Camera;
import edu.wpi.first.wpilibj.command.Command;
/**
*
*/
public class SwitchToCamClimb extends Command {
private final Camera m_camera;
public SwitchToCamClimb(Camera camera) {
m_camera = camera;
requires(m_ca... | 25,210 |
https://github.com/hpxio/getting-started-with-java-basics/blob/master/src/main/java/com/app/sa/stateAndBehavior/BuildingBlocks.java | Github Open Source | Open Source | MIT | 2,019 | getting-started-with-java-basics | hpxio | Java | Code | 252 | 441 | package com.app.sa.stateAndBehavior;
/**
* Let's discuss the basic difference between class, object, instance &
* reference in Java. These form the basic building blocks of a java program
* hence the name of the class.
*/
public class BuildingBlocks {
/*
* Consider a construction of a house and you want ... | 42,058 |
https://github.com/herihermawan/instascrap-tes.github.io/blob/master/application/modules/insta/views/v_insta.php | Github Open Source | Open Source | MIT | null | instascrap-tes.github.io | herihermawan | PHP | Code | 151 | 817 | <!DOCTYPE html>
<html lang="en">
<head>
<!-- SITE TITTLE -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="<?php echo base_url()?>/assets/css/bootstrap.min.css" rel="stylesheet">
<title>Instagram Scrap<... | 21,260 |
https://github.com/Kopyed/gf/blob/master/g/encoding/gjson/gjson.go | Github Open Source | Open Source | MIT | 2,019 | gf | Kopyed | Go | Code | 2,945 | 7,813 | // Copyright 2017 gf Author(https://github.com/gogf/gf). All Rights Reserved.
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file,
// You can obtain one at https://github.com/gogf/gf.
// Package gjson provides convenient API for JSON/XML/YA... | 3,099 |
https://github.com/nischalbasnet/scala-xmlparser/blob/master/parser-test/src/test/scala/specs/BaseTestSpec.scala | Github Open Source | Open Source | Apache-2.0 | null | scala-xmlparser | nischalbasnet | Scala | Code | 12 | 47 | package specs
import org.scalatest.matchers.must
import org.scalatest.wordspec.AnyWordSpec
trait BaseTestSpec extends AnyWordSpec with must.Matchers
| 18,330 |
https://github.com/fionera/Cleanstone/blob/master/src/main/java/rocks/cleanstone/endpoint/minecraft/bedrock/net/packet/data/Recipes.java | Github Open Source | Open Source | MIT | 2,021 | Cleanstone | fionera | Java | Code | 7 | 31 | package rocks.cleanstone.endpoint.minecraft.bedrock.net.packet.data;
public class Recipes {
}
| 23,390 |
https://github.com/huhisoft/svg2jsx/blob/master/test/index.js | Github Open Source | Open Source | MIT | 2,020 | svg2jsx | huhisoft | JavaScript | Code | 182 | 596 | const test = require('tape')
const svg2jsx = require('../')
test('svg2jsx - removes XML processing instructions', t => {
const excepted = '<svg />'
return svg2jsx('<?xml version="1.0" encoding="iso-8859-1"?><svg/>')
.then(actual => {
t.deepEqual(actual, excepted, 'should remove `<?xml version="1... | 18,931 |
https://github.com/AwesomeFE/UntitledGame/blob/master/server/Constants/strings.js | Github Open Source | Open Source | MIT | 2,018 | UntitledGame | AwesomeFE | JavaScript | Code | 8 | 23 | export const strings = {
WEB_VERSION: 'v0.0.1'
}; | 48,541 |
https://github.com/Rohit484/Distribution/blob/master/b/bingmaps/src/main/scala/typings/bingmaps/Microsoft/Maps/SpatialDataService/IGeoDataResultSet.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 178 | 631 | package typings.bingmaps.Microsoft.Maps.SpatialDataService
import typings.bingmaps.Microsoft.Maps.Location
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait IGeoDataResultSet extends js.Object {
/**... | 3,918 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.