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/shawnweisfeld/WhatTheHack/blob/master/011-InfraAsCode-ARM-DSC/Host/Solutions/armChallenges/scripts/install_apache.sh | Github Open Source | Open Source | MIT | 2,020 | WhatTheHack | shawnweisfeld | Shell | Code | 32 | 97 | #!/bin/bash
apt-get -y update
# install Apache2
apt-get -y install apache2
# write some HTML
echo \<center\>\<h1\>Wecome to What The Hack: IaC ARM Template Challenges\</h1\>\<br/\>\</center\> > /var/www/html/p20.html
# restart Apache
apachectl restart | 40,700 |
https://github.com/fprime-community/fprime-vxworks/blob/master/fprime-vxworks/VxWorks/Event.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | fprime-vxworks | fprime-community | C++ | Code | 64 | 205 | // File: Event.cpp
// Author: Nathan Serafin (nathan.serafin@jpl.nasa.gov)
// Date: 27 July, 2018
//
// VxWorks implementation of events.
#include <Os/Event.hpp>
#include <eventLib.h>
namespace Os
{
I32 Event::send(const TaskId& tid, const U32 events)
{
return eventSend(tid.getRepr(), events);
}
... | 28,963 |
https://github.com/cartolab/sqlite-jdbc/blob/master/src/main/java/org/sqlite/core/CoreResultSet.java | Github Open Source | Open Source | BSD-2-Clause, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,016 | sqlite-jdbc | cartolab | Java | Code | 1,280 | 3,108 | /*
* Copyright (c) 2007 David Crawshaw <david@zentus.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" ... | 9,466 |
https://github.com/acamb/gestioneGare/blob/master/backend/src/main/java/acambieri/sanbernardo/gestionegare/controllers/ArciereController.java | Github Open Source | Open Source | MIT, BSD-3-Clause, EPL-1.0, LGPL-2.0-or-later, WTFPL, CC-BY-4.0, AFL-2.1, CC0-1.0, CC-BY-3.0, Unlicense, GPL-2.0-only, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause | 2,022 | gestioneGare | acamb | Java | Code | 33 | 208 | package acambieri.sanbernardo.gestionegare.controllers;
import acambieri.sanbernardo.gestionegare.model.Arciere;
import acambieri.sanbernardo.gestionegare.services.ArciereService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.spring... | 22,421 |
https://github.com/jbossws/jbossws-cxf/blob/master/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws1357/JBWS1357TestCase.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | jbossws-cxf | jbossws | Java | Code | 282 | 1,008 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | 43,001 |
https://github.com/i2geo/SearchI2G/blob/master/web/src/main/webapp/example-edit.jsp | Github Open Source | Open Source | Apache-2.0 | 2,013 | SearchI2G | i2geo | null | Spoken | 114 | 639 | <%--
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%
// example: skbSearchField|Topic,Competency|choiceIdentified
String title = request.getParameter("title");
if(title==null) title = "Skills Text Box Edit Example";
String types = request.getParameter("types");
if(types==null)... | 4,454 |
https://github.com/schaetzc/printsignal/blob/master/Makefile | Github Open Source | Open Source | MIT | null | printsignal | schaetzc | Makefile | Code | 13 | 35 | # if wanted, add -DVERBOSE to CFLAGS
CFLAGS += -Wall
all: printsignal
printsignal:
| 17,788 |
https://github.com/jnthn/intellij-community/blob/master/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamToLoop/beforePeek.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | intellij-community | jnthn | Java | Code | 92 | 307 | // "Fix all 'Stream API call chain can be replaced with loop' problems in file" "true"
import java.util.Arrays;
import java.util.List;
import java.util.stream.IntStream;
public class Main {
public static int test(List<String> list) {
return list.stream().peek(s -> System.out.println(s)).mapToInt(l -> l.length()... | 55,616 |
https://github.com/pandafw/panda/blob/master/panda-core/src/test/java/panda/dao/sql/executor/JdbcSqlExecutorTestCase.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | panda | pandafw | Java | Code | 790 | 2,600 | package panda.dao.sql.executor;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.junit.Assert;
import org.junit.Test;
import panda.dao.sql.SqlExecutor;
import panda.da... | 34,813 |
https://github.com/XLTools/MinGWBoost/blob/master/mingw/boost-1.5 | Github Open Source | Open Source | BSD-3-Clause | null | MinGWBoost | XLTools | null | Spoken | 719 | 1,618 | --- boost_1_55_0/tools/build/v2/tools/python.jam.orig 2014-01-29 22:13:34.032800000 +0400
+++ boost_1_55_0/tools/build/v2/tools/python.jam 2014-01-29 22:24:39.674600000 +0400
@@ -506,44 +506,11 @@
{
exec-prefix ?= $(prefix) ;
- if $(target-os) = windows
- {
- # The exec_prefix is where you're s... | 55,335 |
https://github.com/Ricard0Nunes/TG/blob/master/database/migrations/2020_05_07_131141_create_crm_campanhas_table.php | Github Open Source | Open Source | MIT | 2,021 | TG | Ricard0Nunes | PHP | Code | 60 | 340 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCrmCampanhasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('crm_campan... | 29,756 |
https://github.com/Magdi/ProblemSolving/blob/master/src/main/kotlin/leetcode/google/EmployeeImportance.kt | Github Open Source | Open Source | Apache-2.0 | null | ProblemSolving | Magdi | Kotlin | Code | 109 | 286 | package leetcode.google
import java.util.*
/*
* // Definition for Employee.
* class Employee {
* var id:Int = 0
* var importance:Int = 0
* var subordinates:List<Int> = listOf()
* }
*/
class EmployeeImportance {
fun getImportance(employees: List<Employee>, id: Int): Int {
val employeeRefMap = ha... | 24,054 |
https://github.com/jiangxiaotao1024/mall/blob/master/mall/gware-manage/src/main/java/mall/gware/bean/WareInfo.java | Github Open Source | Open Source | MIT | 2,019 | mall | jiangxiaotao1024 | Java | Code | 104 | 308 | package mall.gware.bean;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
* @param
* @return
*/
public class WareInfo {
@Column
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private String i... | 2,895 |
https://github.com/aceslaf/pmetniotakountnt/blob/master/Frontend/test/e2e/account2Scenario.js | Github Open Source | Open Source | CC0-1.0 | 2,016 | pmetniotakountnt | aceslaf | JavaScript | Code | 252 | 907 | 'use strict';
describe('Frontend', function() {
var listOfUsers = element.all(by.repeater('person in people'));
var endCallButtons = element.all(by.css('.notInCallTxt'));
it("should redirect to dashboard view on 'Account 2' button click", function(done) {
browser.get('http://localhost:8080').then(... | 56,447 |
https://github.com/Danburite/groupgenerator/blob/master/Makefile | Github Open Source | Open Source | Adobe-Glyph | null | groupgenerator | Danburite | Makefile | Code | 96 | 280 | TARGET = Group_Generator_v1.0
LIBS = -lm #Math Library, just a placeholder
HEADERS = Member.h MemberList.h Groups.h GroupsList.h
SRCS = Interface.cpp Member.cpp MemberList.cpp Groups.cpp GroupsList.cpp
OBJECTS := $(patsubst %.cpp,%.o,$(SRCS))
CXX = g++
CXX_FLAGS = #C++11 just for reference, not necessary
.PHONY: defau... | 43,456 |
https://github.com/LatorreDev/recalbox/blob/master/package/libretro-genesisplusgx/libretro-genesisplusgx.mk | Github Open Source | Open Source | MIT | null | recalbox | LatorreDev | Makefile | Code | 55 | 448 | ################################################################################
#
# GENESIS-PLUS-GX
#
################################################################################
LIBRETRO_GENESISPLUSGX_VERSION = 7fa34f20de659004399f58a845291a4496cc9d8c
LIBRETRO_GENESISPLUSGX_SITE = $(call github,libretro,Genesis-... | 16,346 |
https://github.com/sinesiobittencourt/terraform-provider-matrix/blob/master/run-tests.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | terraform-provider-matrix | sinesiobittencourt | Shell | Code | 14 | 56 | #!/bin/bash
docker build -t terraform-provider-matrix-tests .
docker run --rm --name terraform-provider-matrix-tests -e TF_LOG=$TF_LOG terraform-provider-matrix-tests
| 53,540 |
https://github.com/ToxicFrog/ss1edit/blob/master/rewired_maps/render.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | ss1edit | ToxicFrog | JavaScript | Code | 1 | 7 | ../maps/render.js | 18,831 |
https://github.com/yohhoy/StreamPack/blob/master/core/src/test/java/io/github/thibaultbee/streampack/internal/muxers/flv/amf/primitives/AmfNamedParameterTest.kt | Github Open Source | Open Source | Apache-2.0 | null | StreamPack | yohhoy | Kotlin | Code | 74 | 305 | package io.github.thibaultbee.streampack.internal.muxers.flv.amf.primitives
import io.github.thibaultbee.streampack.internal.utils.extractArray
import org.junit.Assert.*
import org.junit.Test
class AmfNamedParameterTest {
private fun encodeNamedParameterTest(name: String, v: Any) {
val amfNamedParameter =... | 42,419 |
https://github.com/jmix-framework/jmix/blob/master/jmix-flowui/flowui/src/main/java/io/jmix/flowui/menu/MenuItem.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | jmix | jmix-framework | Java | Code | 757 | 1,921 | /*
* Copyright 2022 Haulmont.
*
* 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... | 51,826 |
https://github.com/FlukerGames/ever-wallet-api/blob/master/src/sqlx_client/token_whitelist.rs | Github Open Source | Open Source | Apache-2.0 | 2,022 | ever-wallet-api | FlukerGames | Rust | Code | 86 | 348 | use crate::models::*;
use crate::sqlx_client::*;
impl SqlxClient {
pub async fn get_root_token(
&self,
address: &str,
) -> Result<TokenWhitelistFromDb, anyhow::Error> {
let res = sqlx::query_as!(
TokenWhitelistFromDb,
r#"SELECT name, address, version as "version:... | 20,190 |
https://github.com/SjoenH/google-fonts-flutter/blob/master/test/google_fonts_variant_test.dart | Github Open Source | Open Source | Apache-2.0 | null | google-fonts-flutter | SjoenH | Dart | Code | 320 | 1,192 | import 'package:flutter/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:google_fonts/src/google_fonts_variant.dart';
main() {
testWidgets('toString() works for normal w400', (tester) async {
final variant = GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: ... | 54,379 |
https://github.com/sebuaa2020/Team107/blob/master/web/src/main/resources/static/resources/page/user/user.js | Github Open Source | Open Source | MIT | 2,020 | Team107 | sebuaa2020 | JavaScript | Code | 91 | 383 | layui.use(['form', 'layer', 'laydate', 'table', 'laytpl'], function () {
var form = layui.form,
layer = parent.layer === undefined ? layui.layer : top.layer,
$ = layui.jquery,
laydate = layui.laydate,
laytpl = layui.laytpl,
table = layui.table;
//添加验证规则
form.verify({... | 7,973 |
https://github.com/WirrWar2850/mauscrawler/blob/master/src/main/java/example/indices/ZagrebGroupConsumer.java | Github Open Source | Open Source | MIT | null | mauscrawler | WirrWar2850 | Java | Code | 83 | 333 | package example.indices;
import crawler.graph.DefaultNode;
import crawler.graph.DirectedGraph;
import system.consumer.GraphConsumerInterface;
import java.util.Map;
/**
* Created by Rene on 24.02.2015.
*/
public class ZagrebGroupConsumer implements GraphConsumerInterface {
@Override
public String getName()... | 7,020 |
https://github.com/koel/koel/blob/master/resources/assets/js/components/album/AlbumTrackList.spec.ts | Github Open Source | Open Source | MIT | 2,023 | koel | koel | TypeScript | Code | 74 | 257 | import { screen } from '@testing-library/vue'
import factory from '@/__tests__/factory'
import { expect, it } from 'vitest'
import UnitTestCase from '@/__tests__/UnitTestCase'
import AlbumTrackList from './AlbumTrackList.vue'
import { songStore } from '@/stores'
new class extends UnitTestCase {
protected test () {
... | 16,380 |
https://github.com/bartosz-paternoga/MobileNet_tfjs-node_Server/blob/master/2311server.js | Github Open Source | Open Source | MIT | 2,018 | MobileNet_tfjs-node_Server | bartosz-paternoga | JavaScript | Code | 319 | 908 | const port = process.env.PORT || 3001;
const express = require('express');
const bodyParser = require('body-parser');
const multer = require('multer');
const uuidv4 = require('uuid/v4');
const path = require('path');
const tf = require('@tensorflow/tfjs')
const mobilenet = require('@tensorflow-models/mobilenet');
requi... | 32,105 |
https://github.com/Llona/AJ-sub/blob/master/backup_layout/AJSub_rename.frm | Github Open Source | Open Source | Apache-2.0 | 2,022 | AJ-sub | Llona | null | Spoken | 1,546 | 4,628 | VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 11310
ClientLeft = 225
ClientTop = 555
ClientWidth = 18960
LinkTopic = "Form1"
ScaleHeight = 11310
ScaleWidth = 18960
StartUpPosition = 3 '系統預設值
Begin VB.Frame ren... | 35,727 |
https://github.com/stephensaville/gcodebuilder/blob/master/src/com/gcodebuilder/geometry/PathSegment.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,021 | gcodebuilder | stephensaville | Java | Code | 550 | 1,350 | /*
* Copyright (c) 2021 Stephen Saville
*
* 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 ag... | 29,969 |
https://github.com/BrandonAraya/Ryujinx/blob/master/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Types/BsdSocketShutdownFlags.cs | Github Open Source | Open Source | MIT | 2,022 | Ryujinx | BrandonAraya | C# | Code | 11 | 57 | namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd
{
enum BsdSocketShutdownFlags
{
Receive,
Send,
ReceiveAndSend
}
}
| 17,025 |
https://github.com/ajquintero/dwellingly_app/blob/master/src/pages/staff-dashboard/StaffDashboard.jsx | Github Open Source | Open Source | MIT | null | dwellingly_app | ajquintero | null | Spoken | 288 | 846 | // import React, { Component } from 'react';
// import PropTypes from 'prop-types';
// import { Link } from 'react-router-dom';
// import { connect } from 'react-redux';
// import { intlShape, injectIntl } from 'react-intl';
// import { COMMON } from '../../translations/messages';
// import Header from '../../component... | 19,695 |
https://github.com/gjermshus/TableTennisScores/blob/master/Frontend/src/actions/leaderboardActions.tsx | Github Open Source | Open Source | MIT | null | TableTennisScores | gjermshus | TypeScript | Code | 59 | 175 | import { Action } from "redux";
import axios from "axios";
import { ActionsTypes } from "./actionTypes";
import { IPlayer } from "../Models/Player";
export const fetchLeaderboardAction = () => {
return (dispatch) => {
axios.get("https://uinames.com/api/?amount=15®ion=Norway").then(response => {
... | 30,553 |
https://github.com/aav789/pengyifan-leetcode/blob/master/src/main/java/com/pengyifan/leetcode/ContainsDuplicate.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | pengyifan-leetcode | aav789 | Java | Code | 95 | 201 | package com.pengyifan.leetcode;
import java.util.HashSet;
import java.util.Set;
/**
* Given an array of integers, find if the array contains any duplicates. Your function should
* return true if any value appears at least twice in the array, and it should return false if every
* element is distinct.
*/
public cla... | 38,214 |
https://github.com/justaname94/ticket-management-system/blob/master/src/main.ts | Github Open Source | Open Source | MIT | null | ticket-management-system | justaname94 | TypeScript | Code | 69 | 200 | import { NestFactory } from '@nestjs/core';
import * as fs from 'fs';
import { AppModule } from './app.module';
import Config from './config';
async function bootstrap() {
let app;
const {port, env} = Config.server;;
if (env === 'production') {
const httpsOptions = {
key: fs.readFileSync('./secrets/pr... | 50,949 |
https://github.com/etalab/transport-datatools-ui/blob/master/lib/manager/components/version/FeedVersionViewer.js | Github Open Source | Open Source | MIT | 2,017 | transport-datatools-ui | etalab | JavaScript | Code | 637 | 2,549 | import Icon from '@conveyal/woonerf/components/icon'
import React, {Component, PropTypes} from 'react'
import { Row, Col, Button, Panel, Label, Glyphicon, ButtonGroup, ListGroup, ListGroupItem } from 'react-bootstrap'
import { LinkContainer } from 'react-router-bootstrap'
import GtfsValidationViewer from '../validatio... | 35,645 |
https://github.com/bateller/4archive/blob/master/public/js/thread.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | 4archive | bateller | JavaScript | Code | 97 | 398 | $(document).ready(function() {
thread.formatDates();
thread.formatQuotes();
});
thread = {
formatDates: function() {
$('.dateTime').each(function() {
utcUnix = $(this).data('utc');
// 04/27/15(Mon)22:02:14
formatted = moment.unix(utcUnix).local().format('MM/DD/YY(ddd)HH:ss:SS');
$(this).text(formatted... | 8,111 |
https://github.com/dhendrix/mosys/blob/master/lib/vbnv/Makefile | Github Open Source | Open Source | BSD-3-Clause | null | mosys | dhendrix | Makefile | Code | 3 | 15 | obj-y += vbnv_flash.o
| 51,248 |
https://github.com/1stNaNo/khcnegdel/blob/master/resources/views/admin/role_action.blade.php | Github Open Source | Open Source | MIT | null | khcnegdel | 1stNaNo | PHP | Code | 209 | 1,168 | <div id="window_roleIndex">
<input type="hidden" class="prev_window"/>
<div class="row">
<div class="col-lg-12">
<section class="panel">
<header class="panel-heading">
<div class="panel-actions">
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
<a href="... | 46,564 |
https://github.com/mrjeoffrey/weather-dashboard/blob/master/js/script.js | Github Open Source | Open Source | Unlicense | null | weather-dashboard | mrjeoffrey | JavaScript | Code | 554 | 2,023 | // Access OpenWeather API
var APIkey = "3803e9deb4e4613335fd77eb16454bc1";
var today = moment().format("MMM Do YYYY");
// instantiate city history
var searchHistoryList = [];
// Request OpenWeather API based on user input
function currentWeather(cityInput) {
// make AJAX api call
var queryURL =
"https://api.openw... | 37,863 |
https://github.com/io6696/bottom_bar_with_sheet/blob/master/lib/src/models/bottom_bar_with_sheet_item.dart | Github Open Source | Open Source | Apache-2.0 | 2,022 | bottom_bar_with_sheet | io6696 | Dart | Code | 66 | 177 | import 'package:flutter/material.dart';
/// Hello !
/// ----------------------------------------------------------------------
/// You can check all widget annotations, examples and docs
/// In package repository: https://github.com/Frezyx/bottom_bar_with_sheet
/// -----------------------------------------------------... | 7,207 |
https://github.com/limegreen-jp/kado_public/blob/master/resources/views/projects/edit.blade.php | Github Open Source | Open Source | MIT | null | kado_public | limegreen-jp | PHP | Code | 436 | 2,302 | @extends('layouts.app')
@section('link_css')
<link rel="stylesheet" type="text/css" href="{{ asset('/js/lib/bootstrap-datepicker/bootstrap-datepicker.min.css') }}">
@endsection
@section('script_src')
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="{{... | 1,412 |
https://github.com/bmsherman/rosa/blob/master/src/test/scala/leon/test/reals/RealRegression.scala | Github Open Source | Open Source | BSD-2-Clause | 2,018 | rosa | bmsherman | Scala | Code | 465 | 1,387 | /* Copyright 2009-2015 EPFL, Lausanne */
package leon
package test
package real
import leon.real.{CompilationPhase,CompilationReport}
import java.io.File
class RealRegression extends LeonTestSuite {
private var counter : Int = 0
private def nextInt() : Int = {
counter += 1
counter
}
private case cla... | 3,872 |
https://github.com/ChSt98/KraftPad/blob/master/lib/ESP8266Audio-master/src/libopus/silk/LPC_inv_pred_gain.c | Github Open Source | Open Source | BSD-3-Clause | null | KraftPad | ChSt98 | C | Code | 849 | 2,037 | /***********************************************************************
Copyright (c) 2006-2011, Skype Limited. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retai... | 31,807 |
https://github.com/thaivuongprimelabo/store_cms/blob/master/resources/lang/en/auth.php | Github Open Source | Open Source | MIT | null | store_cms | thaivuongprimelabo | PHP | Code | 321 | 873 | <?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages t... | 52,451 |
https://github.com/cboiangiu/product-in-stock-notifier/blob/master/notifier/modules/util.py | Github Open Source | Open Source | MIT | 2,020 | product-in-stock-notifier | cboiangiu | Python | Code | 178 | 468 | from datetime import datetime
def getDuration(then, now = datetime.now(), interval = "default"):
# Returns a duration as specified by variable interval
# Functions, except totalDuration, returns [quotient, remainder]
duration = now - then # For build-in functions
duration_in_s = duration.total_second... | 9,170 |
https://github.com/Budzyn/hunter/blob/master/bsa-2015-hunter-develop/Hunter/Hunter.Services/Dto/Vacancy/VacancyDto.cs | Github Open Source | Open Source | MIT | 2,015 | hunter | Budzyn | C# | Code | 227 | 510 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
namespace Hunter.Services
{
public class VacancyDto
{
public VacancyDto()
{
//Card = new HashSet<Card>();
}
... | 54,122 |
https://github.com/strug/control-center/blob/master/src/app/thrift-services/damsel/operations/add-decision-to-provider-commit.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | control-center | strug | TypeScript | Code | 68 | 198 | import { toGenCommit } from '../../converters';
import { ProviderObject } from '../gen-model/domain';
import { Commit } from '../gen-model/domain_config';
import { createAddTerminalToProviderOperation } from './create-add-terminal-to-provider-operation';
export class AddDecisionToProvider {
partyID: string;
sh... | 47,794 |
https://github.com/valentinarachiele/creative-processing/blob/master/0-Basic/Processing 365/04-April/Day103/Day103.pde | Github Open Source | Open Source | MIT | 2,018 | creative-processing | valentinarachiele | null | Spoken | 42 | 142 | ArrayList<Mover> movers;
void setup() {
size(500,500);
background(255);
smooth();
frameRate(30);
movers = new ArrayList<Mover>();
for (int i = 0; i < width; i+= 5) {
movers.add(new Mover(random(255), random(0.1,7)));
}
}
void draw() {
// saveFrame("output/frames#################.png");
for (Move... | 27,727 |
https://github.com/linuxing3/vpsman/blob/master/asset/xray-web.service | Github Open Source | Open Source | Apache-2.0 | 2,021 | vpsman | linuxing3 | null | Spoken | 22 | 138 | [Unit]
Description=trojan-web
Documentation=https://github.com/linuxing3/trojan
After=network.target network-online.target nss-lookup.target mysql.service mariadb.service mysqld.service docker.service
[Service]
Type=simple
StandardError=journal
ExecStart=/usr/local/bin/xray web
ExecReload=/bin/kill -HUP \$MAINPID
Rest... | 988 |
https://github.com/sergev/simulation-with-coroutines/blob/master/demo2.cpp | Github Open Source | Open Source | MIT | 2,021 | simulation-with-coroutines | sergev | C++ | Code | 512 | 1,111 | //
// Demo: a process sensitive to posedge of the clock.
//
// Copyright (c) 2021 Serge Vakulenko
//
// 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 ... | 14,469 |
https://github.com/amahashabde/tunebyte/blob/master/src/App.js | Github Open Source | Open Source | MIT | 2,018 | tunebyte | amahashabde | JavaScript | Code | 750 | 3,350 | import React, { Component } from "react";
import TuneByteContract from "../build/contracts/TuneByte.json";
import getWeb3 from "./utils/getWeb3";
import Styled from "styled-components";
import PieChart from "react-simple-pie-chart";
import ParticleEffectButton from "react-particle-effect-button";
import AOS from "aos";... | 30,766 |
https://github.com/nimec77/flutter_good/blob/master/test/search/view/widgets/search_list_test.dart | Github Open Source | Open Source | MIT | null | flutter_good | nimec77 | Dart | Code | 91 | 431 | import 'package:flutter/material.dart';
import 'package:flutter_good/search/domain/entities/text/text_data.dart';
import 'package:flutter_good/search/view/widgets/search_list.dart';
import 'package:flutter_test/flutter_test.dart';
import '../../../helpers/helpers.dart';
void main() {
group('SearchList', () {
te... | 23,282 |
https://github.com/ynishi/clean/blob/master/src/External.hs | Github Open Source | Open Source | BSD-3-Clause | null | clean | ynishi | Haskell | Code | 9 | 21 | module External
( module External.Sample
) where
import External.Sample
| 32,450 |
https://github.com/ronal2do/avancamarilia/blob/master/resources/views/pages/cidade.blade.php | Github Open Source | Open Source | MIT | null | avancamarilia | ronal2do | PHP | Code | 71 | 211 | @extends('layouts.pagina')
@section('titulo')
AVANÇA NO CUIDADO <br> COM A CIDADE
@endsection
@section('texto')
<p>
Intensificar as obras de recuperação
ou de ampliação da infraestrutura urbana,
com planejamento e qualidade na execução, respeitando critérios técnicos, elegendo prioridades, cumprindo cronograma... | 19,716 |
https://github.com/ohlincha/ECCE/blob/master/src/tdat/ffield/FFType.C | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, ECL-2.0 | 2,017 | ECCE | ohlincha | C | Code | 550 | 1,189 | /**
* @file
*
*/
#include <iostream>
using std::cout;
using std::endl;
#include "tdat/FFType.H"
const int FFType::INVALID_ID = -1;
/**
* Construct an object with the name alone.
*
* @param name
*/
FFType::FFType( const string& typeName)
{
p_name = typeName;
}
/**
* Destructor clears vector of ... | 23,618 |
https://github.com/yifan-zhou922/azure-sdk-for-js/blob/master/sdk/servicefabric/servicefabric/src/operations/index.ts | Github Open Source | Open Source | MIT | 2,022 | azure-sdk-for-js | yifan-zhou922 | TypeScript | Code | 88 | 155 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
e... | 7,589 |
https://github.com/thekorovay/my_portfolio/blob/master/data/src/main/java/com/thekorovay/myportfolio/data/database/NewsDatabase.kt | Github Open Source | Open Source | MIT | null | my_portfolio | thekorovay | Kotlin | Code | 146 | 519 | package com.thekorovay.myportfolio.data.database
import android.content.Context
import androidx.room.*
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.thekorovay.myportfolio.data.entities.DatabaseArticle
import com.thekorovay.myportfolio.data.entities.DatabaseSearchR... | 25,493 |
https://github.com/d125v17/repetitor/blob/master/application/views/student/step1.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,017 | repetitor | d125v17 | PHP | Code | 318 | 2,234 | <?php $this->load->view('main/header'); ?>
<link rel="stylesheet" href="<?php echo base_url(); ?>css/jquery-ui.min.css">
<script src="<?php echo base_url(); ?>js/jquery-ui.min.js"></script>
<title>Репетиторы Real Language Club. Записаться на занятие. Шаг 1</title>
</head>
<body>
<?php $this->load->view('student/header_... | 38,159 |
https://github.com/Piphiz/Curso_laravel/blob/master/resources/views/products/index.blade.php | Github Open Source | Open Source | MIT | null | Curso_laravel | Piphiz | PHP | Code | 130 | 647 | @extends('layout.template')
@section('main')
@include('products.partials.search')
<div class="row">
<div class="col-md d-flex justify-content-between align-items-center">
<h1>Listagem de produtos</h1>
<a href="{{ route('product.create') }}" class="btn btn-dark btn-unidev">Cadas... | 43,477 |
https://github.com/poeliu/Pinso/blob/master/src/delta/randsched_profiler.hpp | Github Open Source | Open Source | Apache-2.0 | 2,014 | Pinso | poeliu | C++ | Code | 61 | 280 | // File: delta/randsched_profiler.hpp - Define PSet profile controller.
#ifndef DELTA_RANDSCHED_PROFILER_HPP_
#define DELTA_RANDSCHED_PROFILER_HPP_
#include "core/basictypes.h"
#include "randsched/scheduler.hpp"
#include "delta/observer.h"
#include "idiom/iroot.h"
#include "ilist.h"
namespace delta {
class RandSche... | 7,123 |
https://github.com/Kufo2018/New1/blob/master/hello_world.py | Github Open Source | Open Source | MIT | null | New1 | Kufo2018 | Python | Code | 13 | 29 | quote = input("Enter Quote here ")
print("Hello, %s." % quote)
print("By John Paul")
| 45,355 |
https://github.com/JieTrancender/go_program/blob/master/chapter_1/Makefile | Github Open Source | Open Source | Apache-2.0 | null | go_program | JieTrancender | Makefile | Code | 83 | 284 | helloworld:
go build helloworld.go
echo:
go build echo_1.go
echo_2:
go build echo_2.go
echo_3:
go build echo_3.go
echo_4:
go build echo_4.go
dup_1:
go build dup_1.go
dup_2:
go build dup_2.go
dup_3:
go build dup_3.go
lissajous:
go build lissajous.go
fetch:
go build fetch.go
fetchall:
go build fetcha... | 22,415 |
https://github.com/melanchall/drywetmidi/blob/master/DryWetMidi/Multimedia/Clock/IClockDrivenObject.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,023 | drywetmidi | melanchall | C# | Code | 36 | 104 | namespace Melanchall.DryWetMidi.Multimedia
{
/// <summary>
/// Represents an object driven by clock (timer).
/// </summary>
public interface IClockDrivenObject
{
#region Methods
/// <summary>
/// Advances current object's clock time.
/// </summary>
void Tick... | 42,466 |
https://github.com/mohamedaraby122/UnityCustomeInspector/blob/master/Assets/Editor/Create Project Structure/CreateStructureWindow.cs | Github Open Source | Open Source | Apache-2.0 | null | UnityCustomeInspector | mohamedaraby122 | C# | Code | 42 | 131 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace MyTools
{
public class CreateStructureWindow : EditorWindow
{
static CreateStructureWindow mainWindow;
public static void InitWindow()
{
mainWindow = EditorWindow.G... | 20,734 |
https://github.com/androiddevnotesforks/TsukiViewer/blob/master/app/src/main/java/com/flamyoad/tsukiviewer/db/AppDatabase.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | TsukiViewer | androiddevnotesforks | Kotlin | Code | 330 | 1,083 | package com.flamyoad.tsukiviewer.db
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.flamyoad.tsukiviewer.db.dao.*
import com.flamyoad.tsukiviewer.... | 49,733 |
https://github.com/mattrunyon/deephaven-core/blob/master/IO/src/main/java/io/deephaven/io/log/impl/LogBufferPoolImpl.java | Github Open Source | Open Source | MIT | 2,022 | deephaven-core | mattrunyon | Java | Code | 79 | 268 | /*
* Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.io.log.impl;
import java.nio.ByteBuffer;
import io.deephaven.base.Function;
import io.deephaven.base.pool.ThreadSafeFixedSizePool;
import io.deephaven.io.log.LogBufferPool;
public class LogBufferPoolImpl extends ThreadSafe... | 54,183 |
https://github.com/szn0212/SmallProject/blob/master/app/src/main/java/com/smallproject/domain/service/TempService.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | SmallProject | szn0212 | Java | Code | 151 | 328 | /*
* Copyright (C) 2015 Pedro Paulo de Amorim
*
* 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... | 2,865 |
https://github.com/Hughsonz/jose/blob/master/cmd/hdr.c | Github Open Source | Open Source | Apache-2.0 | 2,016 | jose | Hughsonz | C | Code | 450 | 1,272 | /* vim: set tabstop=8 shiftwidth=4 softtabstop=4 expandtab smarttab colorcolumn=80: */
/*
* Copyright 2016 Red Hat, 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://... | 49,767 |
https://github.com/Cube219/CubeEngine/blob/master/Source/Engine/Engine.h | Github Open Source | Open Source | MIT | 2,018 | CubeEngine | Cube219 | C | Code | 73 | 224 | #pragma once
#include "EngineHeader.h"
#include "Utility/Event.h"
namespace cube
{
struct ENGINE_EXPORT EngineInitOption
{
bool isWindowMode = false;
Uint32 windowWidth;
Uint32 windowHeight;
Uint32 windowPositionX = 100;
Uint32 windowPositionY = 100;
String titl... | 20,340 |
https://github.com/ltrainor1/my_all-v-000/blob/master/lib/my_all.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain | 2,017 | my_all-v-000 | ltrainor1 | Ruby | Code | 35 | 106 | require 'pry'
def my_all?(collection)
i = 0
return_values = []
while i < collection.length
return_values << yield(collection[i])
i += 1
end
if return_values.include?(false)
false
else
true
end
end
my_all?([1,2,3]) do |x|
x < 2
end
| 28,820 |
https://github.com/Core-Team-META/Spellshock-2/blob/master/SS2-BrawlArena/Data/Materials/Poison Blast Plasma Material.pbt | Github Open Source | Open Source | Apache-2.0 | 2,022 | Spellshock-2 | Core-Team-META | Protocol Buffer Text Format | Code | 136 | 438 | Assets {
Id: 11805553451547936753
Name: "Poison Blast Plasma Material"
PlatformAssetType: 13
SerializationVersion: 92
CustomMaterialAsset {
BaseMaterialId: 1951593977860928200
ParameterOverrides {
Overrides {
Name: "plasma scale"
Float: 20.4617939
}
Overrides {
... | 23,809 |
https://github.com/tor4z/os_sel/blob/master/PAL/ch7/fpuvals/fpuvals.s | Github Open Source | Open Source | Unlicense | 2,022 | os_sel | tor4z | Unix Assembly | Code | 77 | 178 | .section .text
.globl _start
_start:
nop
fld1 # push 1.0 into the fpu register stack
fldl2t # push log_2(10) into the fpu register stack
fldl2e # push log_2(e) into the fpu register stack
fldpi # push pi into the fpu register stack
fldlg2 # push log_10(2) into... | 35,230 |
https://github.com/StarchLinux/sbase/blob/master/cmp.1 | Github Open Source | Open Source | MIT | 2,019 | sbase | StarchLinux | null | Spoken | 108 | 196 | .TH CMP 1 sbase\-VERSION
.SH NAME
CMP \- compare two files
.SH SYNOPSIS
.B cmp
.RB [ \-ls ]
.RI file1
.RI file2
.SH DESCRIPTION
.B cmp
compares two files byte by byte. If the files differ, cmp prints the byte and
line number at which the difference occurred.
.P
The status code is 0 if the files are identical, and 1 if ... | 13,912 |
https://github.com/teustice/super-rentals/blob/master/app/templates/announcement.hbs | Github Open Source | Open Source | MIT | 2,017 | super-rentals | teustice | null | Spoken | 16 | 100 | <div class="announcement">
<h2>Announcements</h2>
<ul>
{{#each model as |announcement|}}
{{announcement-tile destroyAnnouncement="destroyAnnouncement" announcement=announcement}}
{{/each}}
</ul>
{{new-announcement saveAnnouncement="saveAnnouncement"}}
</div>
| 54,387 |
https://github.com/CodeForPortland/dwellingly-app/blob/master/app/javascript/components/src/views/AddPropertyManager/index.jsx | Github Open Source | Open Source | MIT | 2,019 | dwellingly-app | CodeForPortland | null | Spoken | 629 | 2,305 | import React, { useContext, useEffect, useState } from "react";
import { Link } from "react-router-dom";
import { Form, Field, Formik } from "formik";
import * as Yup from "yup";
import { AddProperty } from '../AddProperty';
import { SearchPanel, SearchPanelVariant } from "react-search-panel";
import UserContext from "... | 28,330 |
https://github.com/DeSmart/queuejs/blob/master/src/middleware.js | Github Open Source | Open Source | MIT | 2,019 | queuejs | DeSmart | JavaScript | Code | 58 | 147 | module.exports = (pipes = []) => {
const runAt = i => job => {
const fn = pipes[i] || (_ => job)
return fn(job, runAt(i + 1))
}
return {
use (fn) {
pipes.push(fn)
},
addHandler (jobName, fn) {
this.use((job, next) => {
return job.name === jobName
? fn(job)
... | 6,740 |
https://github.com/uu-fish/swimmy.io/blob/master/imports/client/ui/legacy/ChannelList/index.js | Github Open Source | Open Source | MIT | null | swimmy.io | uu-fish | JavaScript | Code | 147 | 524 | import { inject, observer } from 'mobx-react'
import React, { Component } from 'react'
import propTypes from 'prop-types'
import { withStyles } from 'material-ui/styles'
import Typography from 'material-ui/Typography'
import Block from '/imports/client/ui/components/Block'
import Layout from '/imports/client/ui/compone... | 1,312 |
https://github.com/cuiyuemin365/books/blob/master/HowTomcatWorks/HowTomcatWorks/tomcat/4/4.1.12/jakarta-tomcat-4.1.12/webapps/examples/WEB-INF/classes/listeners/SessionListener.java | Github Open Source | Open Source | Apache-2.0 | null | books | cuiyuemin365 | Java | Code | 868 | 1,811 | /*
* $Header: /home/cvs/jakarta-tomcat-4.0/webapps/examples/WEB-INF/classes/listeners/SessionListener.java,v 1.2 2001/03/17 00:28:11 craigmcc Exp $
* $Revision: 1.2 $
* $Date: 2001/03/17 00:28:11 $
*
* ====================================================================
*
* The Apache Software License, Version 1... | 2,132 |
https://github.com/Shadowssong/Battle-muffin/blob/master/lib/battle-muffin/data_resources/talents.rb | Github Open Source | Open Source | MIT | 2,015 | Battle-muffin | Shadowssong | Ruby | Code | 13 | 49 | class BattleMuffin
module DataResource
module Talents
def get_talents
@api_handler.query("data/talents?")
end
end
end
end | 37,765 |
https://github.com/marartz/Gastromio/blob/master/src/Gastromio.Core/Domain/Failures/DishInvalidOrderNoFailure.cs | Github Open Source | Open Source | MIT | 2,021 | Gastromio | marartz | C# | Code | 25 | 79 | using Gastromio.Core.Common;
namespace Gastromio.Core.Domain.Failures
{
public class DishInvalidOrderNoFailure : Failure
{
public override string ToString()
{
return "Gericht hat eine ungültige Reihenfolgenkennzahl";
}
}
}
| 18,634 |
https://github.com/Hakerh400/javascript-projects/blob/master/fantasy-parser/parser/section.js | Github Open Source | Open Source | Unlicense | 2,021 | javascript-projects | Hakerh400 | JavaScript | Code | 54 | 163 | 'use strict';
const assert = require('assert');
const O = require('omikron');
class Section{
elems = [];
constructor(lab=null){
this.lab = lab;
}
get hasLab(){ return this.lab !== null; }
get len(){ return this.elems.length; }
get isEmpty(){ return this.elems.length === 0; }
addElem(elem){
th... | 49,827 |
https://github.com/knrdl/yamot/blob/master/client/src/components/indicator-components/system-indicator/system-indicator.ts | Github Open Source | Open Source | MIT | 2,021 | yamot | knrdl | TypeScript | Code | 27 | 78 | import { Component, Input } from '@angular/core'
import { ServerDataSys } from '../../../model/ServerData'
@Component({
selector: 'system-indicator',
templateUrl: 'system-indicator.html',
})
export class SystemIndicator {
@Input() sys: ServerDataSys
} | 2,789 |
https://github.com/lishimeng/android-version/blob/master/version/src/main/java/com/thingple/library/version/components/AppComponent.java | Github Open Source | Open Source | MIT | null | android-version | lishimeng | Java | Code | 61 | 176 | package com.thingple.library.version.components;
/**
*
* Created by lism on 2017/12/6.
*/
public class AppComponent {
/**
* 版本号[versionCode]
*/
public int version;
/**
* 文件名[file name]
*/
public String fileName;
/**
* 文件名[app name]
*/
public String appName;
... | 14,820 |
https://github.com/structure7/hvacMonitor/blob/master/hvacMonitor.ino | Github Open Source | Open Source | MIT | 2,019 | hvacMonitor | structure7 | null | Spoken | 2,918 | 7,400 | #include <SimpleTimer.h> // Timer library
#define BLYNK_PRINT Serial // Turn this on to see basic Blynk activities
//#define BLYNK_DEBUG // Turn this on to see *everything* Blynk is doing... really fills up serial monitor!
#include <ESP8266mDNS.h> // Required for OTA
#include <WiFiUdp.h> ... | 41,324 |
https://github.com/ngld/knossos/blob/master/packages/updater/downloader/metadata.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | knossos | ngld | Go | Code | 559 | 1,686 | package downloader
import (
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"time"
"github.com/rotisserie/eris"
)
const (
RepoEndpoint = "https://ghcr.io/v2/"
//nolint:gosec // No, these aren't credentials
tokenEndpoint = "https://ghcr.io/token?scope=repository:%s:pull&service=ghcr.io"
Repo ... | 28,538 |
https://github.com/brucemcpherson/effex-console/blob/master/src/js/reducers/tutorialReducer.js | Github Open Source | Open Source | MIT | 2,017 | effex-console | brucemcpherson | JavaScript | Code | 659 | 2,459 | import cs from '../constants/params';
import ca from '../constants/auth';
import {
delegateCommentary,
delegateEveryCommentary
}
from './delegates';
const initialState = {
jsonKeys: {
writer:"",
reader:"",
updater:"",
item:"",
alias:"",
code:'{"demo":"enter json data here or read from... | 45,792 |
https://github.com/vaginessa/Git-Credential-Manager-for-Windows/blob/master/Microsoft.Alm.Authentication/Proxy/FilterComparer.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,018 | Git-Credential-Manager-for-Windows | vaginessa | C# | Code | 257 | 461 | /**** Git Credential Manager for Windows ****
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT License
*
* 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 ... | 7,672 |
https://github.com/jgraichen/acfs/blob/master/spec/acfs/service/middleware_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | acfs | jgraichen | Ruby | Code | 70 | 269 | # frozen_string_literal: true
require 'spec_helper'
class TestMiddleware < Acfs::Middleware::Base
end
describe Acfs::Service::Middleware do
let(:srv_class) { Class.new(Acfs::Service) }
let(:options) { {} }
let(:middleware) { TestMiddleware }
describe '.use' do
let(:options) { {abc: 'cde'} }
it 'add... | 28,479 |
https://github.com/WIPACrepo/lta/blob/master/loglens | Github Open Source | Open Source | MIT | 2,023 | lta | WIPACrepo | Python | Code | 102 | 395 | #!/usr/bin/env python
import json
import sys
for line in sys.stdin:
record = json.loads(line)
# Output the record as Pretty-Print JSON
# print(json.dumps(record, indent=4, separators=(', ', ': ')))
# Output the record like JADE does
# %d [%t] %-5p (%C:%L) - %m%n
# 2019-01-15 00:03:48,053 [Con... | 50,953 |
https://github.com/clarkwinkelmann/flarum-ext-composer-page/blob/master/less/forum.less | Github Open Source | Open Source | MIT | 2,023 | flarum-ext-composer-page | clarkwinkelmann | Less | Code | 136 | 322 | @media @phone {
.ComposerPageContainer {
// Match Flarum mobile heading style
h2.App-titleControl {
font-weight: normal;
padding: 13px;
}
.sideNav {
// Hide the entire navigation on mobile, it's not needed
display: none;
}
... | 33,470 |
https://github.com/vegai/react-pdf/blob/master/packages/examples/src/svg/index.js | Github Open Source | Open Source | MIT | 2,022 | react-pdf | vegai | JavaScript | Code | 131 | 496 | import React from 'react';
import ReactPDF, {
Document,
Page,
Font,
StyleSheet,
} from '@react-pdf/renderer';
import Svg0 from './svg';
import Svg1 from './Svg1';
import Svg2 from './Svg2';
import Svg4 from './Svg4';
import Heart from './Heart';
console.log(`React version: ${React.version}`);
console.log(`Rea... | 38,035 |
https://github.com/rfc2616/react-pdf/blob/master/src/utils/capitalize.js | Github Open Source | Open Source | MIT | null | react-pdf | rfc2616 | JavaScript | Code | 12 | 36 | const capitalize = value => value.replace(/(^|\s)\S/g, l => l.toUpperCase());
export default capitalize;
| 21,339 |
https://github.com/chiihooy/react-netease-music/blob/master/src/containers/search-result/components/user/index.js | Github Open Source | Open Source | MIT | 2,021 | react-netease-music | chiihooy | JavaScript | Code | 188 | 734 | import React, { useState } from 'react'
import { List, WindowScroller } from 'react-virtualized'
import Scroll from '@/components/scroll'
import { hasNotDoneToast } from '@/utils/tools'
import './index.scss'
// 搜索结果-用户
const User = props => {
const { users, fetchMore, loadingStatus, hasMore, keyword } = props
con... | 16,523 |
https://github.com/jmpcyc/sealer/blob/master/image/utils/meta_image.go | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | sealer | jmpcyc | Go | Code | 672 | 1,784 | // Copyright © 2021 Alibaba Group Holding Ltd.
//
// 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... | 46,906 |
https://github.com/DaniAffCH/BeccoChat/blob/master/inc/connection.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | BeccoChat | DaniAffCH | PHP | Code | 108 | 404 | <?php
class DB
{
protected $pdo = null,
$stmt = null,
$dsn = 'mysql:dbname=Sql1295720_3;host=89.46.111.80',
$usersql = 'Sql1295720',
$passwordsql = '2p4745j152';
function __construct()
{
try {
$this->pdo = new PDO(
$this->dsn,
$t... | 46,681 |
https://github.com/QPC-database/aws-sdk-cpp/blob/master/aws-cpp-sdk-healthlake/include/aws/healthlake/HealthLakeClient.h | Github Open Source | Open Source | MIT, Apache-2.0, JSON | 2,021 | aws-sdk-cpp | QPC-database | C++ | Code | 1,673 | 6,542 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/healthlake/HealthLake_EXPORTS.h>
#include <aws/healthlake/HealthLakeErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include... | 46,629 |
https://github.com/tomkiljo/stellar-accounts-as-a-service/blob/master/func/login/index.ts | Github Open Source | Open Source | MIT | null | stellar-accounts-as-a-service | tomkiljo | TypeScript | Code | 275 | 775 | import { AzureFunction, Context, HttpRequest } from "@azure/functions";
import { Asserts, ValidationError } from "yup";
import * as yup from "yup";
import * as bcrypt from "bcrypt";
import { HttpResponseBuilder } from "../common/http";
import { execute } from "../common/database";
import { TYPES } from "tedious";
impor... | 18,132 |
https://github.com/constARJAY/erpsys/blob/master/application/views/hris/timekeeping_report/print.php | Github Open Source | Open Source | MIT | null | erpsys | constARJAY | PHP | Code | 298 | 1,153 | <?php
$companyName = $companyAddress = $companyContact = "";
$companyLogo = "default.png";
if ($company) {
$companyLogo = $company->companyLogo ?? "";
$companyName = $company->companyName ?? "";
$companyAddress = ($company->companyUnitNo ?? "") ." ". ($company->companyBuildin... | 24,671 |
https://github.com/sauljabin/fuzzy-battle/blob/master/src/main/java/app/gui/ControllerViewCalculateDamage.java | Github Open Source | Open Source | MIT | null | fuzzy-battle | sauljabin | Java | Code | 167 | 638 | /**
* Copyright (c) 2014 Saúl Piña <sauljabin@gmail.com>.
* <p>
* This file is part of FuzzyBattle.
* <p>
* FuzzyBattle is licensed under The MIT License.
* For full copyright and license information please see the LICENSE file.
*/
package app.gui;
import app.Translate;
import app.flc.FLCLoader;
import net.sou... | 24,527 |
https://github.com/PacktPublishing/ReasonML-Quick-Start-Guide/blob/master/Chapter08/app-end/src/router/NavLink.re | Github Open Source | Open Source | MIT | 2,023 | ReasonML-Quick-Start-Guide | PacktPublishing | null | Spoken | 33 | 101 | let component = ReasonReact.statelessComponent("NavLink");
let make = (~href, children) => {
...component,
render: _self =>
<Router.WithRouter>
...{
(~currentRoute) =>
<Link href className={currentRoute.href == href ? "active" : ""}>
...children
</Link>
... | 8,428 |
https://github.com/OasisAcademyone/AOTD-OPEN/blob/master/source_editor/item.as | Github Open Source | Open Source | MIT | 2,021 | AOTD-OPEN | OasisAcademyone | null | Spoken | 89 | 243 | package {
import flash.display.MovieClip;
public class item extends MovieClip {
public var _x:Number = 0
public var _y:Number = 0
public var _z:Number = 0
public var _floor:Number = 0
public var me:item
public var _type:String = "prop"
public var _prop:String = "trashcan"
public var _doorty... | 41,704 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.