branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>BlackMetalDev/Galaxy_invaders_game<file_sep>/README.md
Игра Galaxy invaders. Написана на Python с библиотекой Pygame. Запускать Galaxy.py.
<file_sep>/bullet.py
import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
"""Класс для управления пулями."""
def __init__(self, ai_settings, scr... | a21d3aa14da1f56ed8353fd0d706113d1e6d6004 | [
"Markdown",
"Python"
] | 2 | Markdown | BlackMetalDev/Galaxy_invaders_game | d380341eec0082c0ac9641068a059ed889feb44d | 9ba71190819831ff857a595e0dbee494403d4772 |
refs/heads/master | <repo_name>j-sho/test_project<file_sep>/src/mixins/validation.js
export const isNameInput = {
computed: {
isNameShowError () {
return (this.user_input.name_input_active &&
(!this.user_input.name || !this.user_input.surname))
}
}
}
function isNameValid (name) {
return (/^[A-Za-z]+$/.tes... | 1780e77add5f8188c545f8023bfe5cf958acab7d | [
"JavaScript"
] | 2 | JavaScript | j-sho/test_project | fa11c1e5e7d3b43ea61b7307ebd2d70f33c12cfa | 09270c67dddf27f10a60d8bf21e82fea1c2b776a |
refs/heads/master | <repo_name>geekydatamonkey/deptofcreativecaffeination.com<file_sep>/src/components/Bio.jsx
import React, { PropTypes } from 'react';
function Bio({ bio }) {
return (
<div className="bio">
<img src={bio.img} alt={bio.name} />
<div className="bio__titlecard">
<h3 className="bio__name">{bio.name... | 1e80a2cc41a90fbc2a492c125bcab8c6a46a05d0 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | geekydatamonkey/deptofcreativecaffeination.com | 37826e5fa3d3ba4e3ff89b93f3a4f5a9708accde | fecb0351f01972bbe43b728064199cb867e866f0 |
refs/heads/master | <file_sep>## Borussia Dortmund Quiz
This quiz picks a random 7 questions from a bank of questions about the past and present of the football team in the Bundesliga, Borussia Dortmund.
I started with a free vector image and recreated my favorite jerseys from the team for the logo.
The trivia questions were created w... | e23832de7c6fb9c8932ae1f45581d64e22ef621d | [
"Markdown",
"JavaScript"
] | 3 | Markdown | btsigsbee/quiz-app | cf77b13a1bdbb0591824de916c2f0bd1f1fdd3dd | d6fa0ca7c343d4e08cf7dd4e6b3a2aae1ae4fb3e |
refs/heads/master | <repo_name>zohars/zoey-react-gallery<file_sep>/src/components/Search.js
import React, { Component } from 'react';
class Search extends Component {
constructor(props) {
super(props);
this.state = {value: ''}
this.filterUpdate = this.filterUpdate.bind(this);
}
// this gives a delay... | d882fdf1db6e82927cb73a8c7b035c0d201b31d9 | [
"JavaScript"
] | 3 | JavaScript | zohars/zoey-react-gallery | 70100588736d26a9170271c65b296ed71a4c7971 | 557aa9a44fd3d95c38218cf823065fcf65e8573f |
refs/heads/master | <repo_name>pklinken/alpha-message<file_sep>/AlphaMessage/MainWindow.xaml.cs
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using... | f2e82c9979d909cc75f2dc65f88e4cee44afe6a2 | [
"Markdown",
"C#"
] | 4 | C# | pklinken/alpha-message | 42479044169e74af555cdca9312e32d6e88d8f7b | 59e1be6472c3c155df0c9c1746fb927eafe4ff05 |
refs/heads/master | <repo_name>bsmHolmes/CPSC-449<file_sep>/tree.java
//tree has 2 subclasses branch and leaf
abstract class tree {
public static byte[] get_best_tree_slow(int[][] MT_penalties, int[][] MT_too_near) {
byte[] MT_pairs = {1, 2, 3, 4, 5, 6, 7, 8}; ///array[machine # -1] = task #)
byte[] MT_sequence = {1, 1... | 3cc4ff5c2be988b5d1953eade1bafc73b9af3ea3 | [
"Java"
] | 5 | Java | bsmHolmes/CPSC-449 | e2ebdba15a61bed88dac6dc746fcc912da6b1af5 | 1998a8bda44349b36334b2037d72dd921de1d35a |
refs/heads/master | <repo_name>naveedakhtar28/ExtentReport<file_sep>/UnitTestProject2/Utilities.cs
using AventStack.ExtentReports;
using AventStack.ExtentReports.Reporter;
using NUnit.Framework;
using NUnit.Framework.Interfaces;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using OpenQA.Seleni... | 8113a9c4fbe0248935f91883bbe3875820adbf3f | [
"C#"
] | 2 | C# | naveedakhtar28/ExtentReport | 0db03c46318ea3a0ce7ff645c737898c28952f9d | 55d554d78d815d9b212848414430c201a0ae363e |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { GlobalService } from '../../global.service';
@Component({
selector: 'app-login',
templateUrl: './login.page.html',
styleUrls: ['./login.page.scss'],
})
export class LoginPage implements OnInit {
... | f224c5a314827e82fa4bf2e2135893a273afef20 | [
"TypeScript"
] | 8 | TypeScript | fabricio300/nuevoclienteFlash | aa8dbaa54abd7c25e3aaf0cd8589197d532cdb4f | 09f46e7377dd3b3daa7a383fc7b2f5145a1925e7 |
refs/heads/master | <file_sep>class SessionsController < ApplicationController
def new
if current_user
# redirect to homepage if user is logged in
redirect_to user_path(current_user)
else
@user = User.new
end
end
def create
user = User.find_by email: params[:email]
if user && user.authenticat... | 640d7c9ec1823fa5216e4b54fc426d0068d0498f | [
"Markdown",
"Ruby"
] | 9 | Ruby | newyork-anthonyng/Work_And_Play | ae198932884e2d669b968456eb641ddbf26c50a8 | 244c249bf0df00180d4d28ef313942454f4d9d52 |
refs/heads/master | <repo_name>nesciens/dutch-events-calendar<file_sep>/dutch-events-calendar.php
<?php
/*
Plugin Name: Dutch Events Calendar
Description: Alternative Dutch translation and Dutch localisation for Modern Tribe's The Events Calendar and The Events Calendar PRO, versions 3.0.3 and 3.0.5 respectively.
Version: 0.0.1
... | c3bd8ff4c6a7cc0c7f6f8beec327b433667556a9 | [
"PHP"
] | 1 | PHP | nesciens/dutch-events-calendar | 23adb8659df675db806700988e1af77bb7d085bf | e3a4a87696eb918d0c2cbd48ee663f1c5f15918f |
refs/heads/master | <file_sep>import Vue from 'vue'
import App from './App.vue'
import CountrySelector from 'vue-country-selector'
import 'vue-country-selector/dist/countryselector.css'
Vue.use(CountrySelector)
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')
| ad9d8fd800880bfaae85b2c737f91c23cc9a9828 | [
"JavaScript"
] | 1 | JavaScript | BeerHope/multiple_lang_coutry_selector | f35d4e55bcb51fa914433bd5930d1cc4843157af | ef58565109a319297a664dd295279a06502c2322 |
refs/heads/master | <repo_name>ashfipathan/Soar<file_sep>/android/app/src/main/java/com/example/soar_company/soar/RideFilters.java
package com.example.soar_company.soar;
import com.google.android.gms.location.places.Place;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
... | 46e0621066bad70e13b3fd4d4c3dfa8a5d88449b | [
"SQL",
"Markdown",
"Java",
"Text",
"PHP"
] | 23 | Java | ashfipathan/Soar | 683424ebe500f143b0b07189de647623d88c964b | 74310948e8380de0f59b9920aaf54a32de25de2d |
refs/heads/master | <file_sep><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if( ! function_exists('die_r') ){
function die_r($value){
echo '<pre>';
print_r($value);
echo '</pre>';
die;
}
}
if( ! function_exists('make_hash') ){
function make_hash($pwd){
return... | 7cbd6bce2774bb438c1f5b58cc54a729c725417e | [
"JavaScript",
"SQL",
"PHP"
] | 37 | PHP | Slava-Sanin/She-Shop | a8a7adac1b5e6937b76ac2718f3b6538a31aa852 | c33782d4c67bfe0e1e435ff3689ad7a752480c7f |
refs/heads/master | <repo_name>jingya221/ProgrammingAssignment2<file_sep>/cachematrix.R
## Matrix inversion is usually a costly computation and there may be some benefit to caching the inverse of a matrix rather than compute it repeatedly (there are also alternatives to matrix inversion that we will not discuss here). Your assignment is t... | 0036f1044e1ba47b650662282107d27e8b291711 | [
"R"
] | 1 | R | jingya221/ProgrammingAssignment2 | ecb56244ba9efdfb82950c2574cba2024210cc77 | 7310d40a07d2b892a14f36093bf169ebcd27e2f5 |
refs/heads/master | <file_sep>//入口文件编码
var express = require('express') //加载express模块
var path = require('path')
var mongoose = require('mongoose')
var _=require('underscore')
var bodyParser = require('body-parser')
var Movie = require('./models/movie')
var User = require('./models/user')
var cookieParser = require('cookie-parser')
var s... | f52af5feea126a63b0bb832c9a471fec32186b14 | [
"JavaScript"
] | 1 | JavaScript | bubuche/bububang | a6b3faf446b394da674ba0e25d1e6b98e120319d | d4050b7eaf48f6098cf08e2c43b2779e6821004f |
refs/heads/master | <file_sep>from ev3dev.ev3 import *
import time
m1 = LargeMotor('outA')
m2 = LargeMotor('outD')
cs1 = ColorSensor('in1')
cs2 = ColorSensor('in2')
ts = TouchSensor()
nastawa = 0
integral = 0
last_error = 0
base_vel = -60
while not ts.is_pressed:
nastawa = cs1.reflected_light_intensity
while True:
cs1r = ... | e57350715f145acae514f7b9539f8f1b8178e399 | [
"Markdown",
"Python"
] | 5 | Python | falownik/ev3 | 6264a5da34148b03247ec29c448fabb5bd842a5e | b7b54edda2aaa1a5ba9d22fb2944025a7416ffb4 |
refs/heads/main | <repo_name>indreklasn/react-skeleton-loader-example-blog-posts<file_sep>/src/App.js
import React, { useState, useEffect } from "react";
import "./styles.css";
import BlogPost from "./BlogPost";
const blogPost = {
title: "Indrek Lasn Blog Post",
subTitle: "This is a subtitle for the skeleton loader",
body:
... | 9ca2bd35718df5e79d4d72be19fe4a28432e8d7a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | indreklasn/react-skeleton-loader-example-blog-posts | 0531d49e59cd381cf81afbb00dab630bdc314b67 | 53320d0eee30901e3cd7e3c71270bd47619b99c7 |
refs/heads/master | <repo_name>jfcameron/flappy-dot<file_sep>/src/game.cpp
// © 2020 <NAME> - All Rights Reserved
#include <jfc/game.h>
#include <jfc/Text_Sheet.png.h>
#include <memory>
#include <chrono>
#include <random>
using namespace flappy;
using namespace gdk;
static size_t g_HighScore(0);
static size_t increment_pipeCounter(si... | cdb700736048cb9bac6faeb630ef58cfa3c55005 | [
"Markdown",
"C",
"CMake",
"C++"
] | 44 | C++ | jfcameron/flappy-dot | 369ceedf0de7e183152ec5d06152bcc4417af8c7 | 67fece92f886c2ca507730625d113a07248cfaad |
refs/heads/master | <file_sep>import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home/home'
import joinshop from '@/components/shop/joinshop'
import help from '@/components/help/help'
import navlist from '@/components/goods/navlist'
import list from '@/components/goods/list'
import nav from '@/components/... | 27fc268a68de61cedd541a2906484de304f637af | [
"JavaScript"
] | 1 | JavaScript | FYLMaster/Vue-Shopping-Project | 2d46bf11fc2f0a6df9ca7e4fdd11f5098bc8e1c7 | fde8ad2e6857cec46717f89d1f1f14b2ed3d15bf |
refs/heads/master | <file_sep>//window.onload = function() {
// let englishWrods = {
// title: "hello word",
// }
//
// window.onclick = function () {
// for (let name in englishWrods) {
// let element = document.querySelector('.' + name);
// element.insertAdjacentHTML('afterbegin', english... | c68d735a3797c07e661fff0cd819cb79cfd33619 | [
"JavaScript"
] | 1 | JavaScript | Evi-ava/Evi-ava.github.io | a347f1b6020ef0f1f843ddf1b6318575450eed26 | 0dc738ae3647e5bd2f2dae292b275060b93ccef7 |
refs/heads/master | <file_sep>import hashlib, base64, random, string
class MemberService():
@staticmethod
def geneAuthCode(member_info=None):
m = hashlib.md5()
str = "%s-%s-%s" % (member_info.id, member_info.salt, member_info.status)
m.update(str.encode('utf-8'))
return m.hexdigest()
@staticm... | 42c3767ef9b54529dc6d6b34deafdaffbafebeff | [
"JavaScript",
"Python",
"Markdown"
] | 27 | Python | shiyanlongcheng/order | f32726652a1b9cfd17a3c161d399d08f0fdeef1c | 1a3cbd78374f0127c496dbe8afd288412f13468b |
refs/heads/master | <repo_name>schoettkr/file-metadata-microservice<file_sep>/helpers/file-size.js
module.exports = (req, res) => {
if (!req.files || !req.files[0]) {
return "Error: No File found";
}
return {
name: req.files[0].originalname || 'No file name' ,
size: req.files[0].size || 0
};
}
<file_sep>/tests/file-siz... | 46d32f0dc84f07d79e8fd25671f7560ad7a3b8cc | [
"JavaScript"
] | 4 | JavaScript | schoettkr/file-metadata-microservice | f33faa21680d8fb7a2f0b48d9b69ea1045d91b4a | b23aef8c9eab4d1591e4224293aa69e35d7c73c4 |
refs/heads/master | <file_sep># %%
import streamlit as st
import pandas as pd
import altair as alt
@st.cache
def get_data() -> pd.DataFrame:
"""
Gets data from the GitHub repository of the Protezione Civile
Keeps only date, region and total of cases
"""
data = pd.read_csv(
"https://raw.githubusercontent.com/p... | 1a27c562908aa47bdfa159fa7c0bca56a9d63fa5 | [
"Markdown",
"Python",
"Text"
] | 3 | Python | KnowYourNME1/covid19-italy | e1c5848008f543223aaf0c2301bbd8f068b434a2 | 7a3067b2603ede7d70a518b274fab7bb6c7ccee7 |
refs/heads/main | <repo_name>Omgandhi18/HarryPotterGameinPython<file_sep>/Harrypottergame.py
import random
import pyttsx3
from os import system
def screen_clear():
_=system('cls')
engine=pyttsx3.init('sapi5')
voices=engine.getProperty('voices')
engine.setProperty('voice',voices[1].id)
wizard="""
__ __ _ ... | 75219ab81f88dac7004cd137447d5b4a7fd460d4 | [
"Python"
] | 1 | Python | Omgandhi18/HarryPotterGameinPython | 65b45b4dd83dee8e6b8bda1bb357ac25484918a2 | 2bfbf84dda6faee08fd26eaefbbb07b6343fc4e1 |
refs/heads/master | <file_sep>'use strict';
import './scss/main.scss';
import { module } from 'angular';
import { list, say } from 'cowsay-browser';
const cowsayApp = module('cowsayApp', []);
cowsayApp.controller('CowsayController', ['$log', CowsayController]);
function CowsayController($log) {
$log.debug('CowsayController');
this... | 19d57cb043d8fd5c92bf994bd4166360d90f932e | [
"JavaScript"
] | 1 | JavaScript | warlordlizard/42-component-frameworks | ea7c3f8a22d2d38c0f359f45a79e551a4eaedc6f | ca20b103e87b29ca94b3f1078c902ee1607ca4ab |
refs/heads/master | <repo_name>vwagner21/Alloy-Debugger-Tool<file_sep>/debugger_randomizer.py
import sys, re
import numpy as np
def WordIndices(line, word):
indexArr = []
counter = 0
for i in line:
if i == word:
indexArr.append(line.index(i))
counter += 1
return indexArr
def randomize_W... | 73a89534822615ad1e99b0469719d2ea9e465ec7 | [
"Markdown",
"Python"
] | 3 | Python | vwagner21/Alloy-Debugger-Tool | d6ccbc5e897f983d517f8f4f97d3e59f63d8ab80 | 1597e813048c0813e64c01e98bf53dc885c1542a |
refs/heads/master | <file_sep>---
title:"Shiny Application and Reproducible Pitch Project"
author: "suvi"
date: "May 13, 2018"
output: ioslides_presentation
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
## *Itroduction*
1.This project is part of developing data products course.
2.The r presentati... | 1d33df16542cd220ba66f981241359d3aea1856a | [
"Markdown",
"R",
"RMarkdown"
] | 3 | RMarkdown | sujv/Developing-Data-Product-course-project | bbf42cd60b150e2a566238cbee03d94e015e6618 | 7b5dd46f9866224ec918fb1bf87c99077af2bf02 |
refs/heads/master | <file_sep># Gatsby Starter Create Theme
This Gatsby starter helps you scaffold a [Gatsby theme ](https://www.gatsbyjs.org/docs/themes) connected to an example project.
This starter is inspired by [gatsby-starter-theme-workspace](https://github.com/gatsbyjs/gatsby-starter-theme-workspace), which uses [Yarn workspaces]... | 1d9ecff783fa6fdd4407da931f64487dc8c6405c | [
"Markdown",
"JavaScript"
] | 4 | Markdown | NWRichmond/gatsby-starter-create-theme | 831b4980cee3fcb526f2e606e0371f0ed99b1a8e | 8cabb5c91bb69662f5f1019e61f1dafee5eed396 |
refs/heads/master | <repo_name>amitkr2410/IMParton<file_sep>/ReadMe.txt
IMParton v1.0
-- IMParton = I'm Parton
1. Description
This package gives parton distribution functions (PDFs) of the proton
starting from low Q^2 ~ 0.07 GeV^2, which are based on the analysis to
deep inelastic scattering data applying DGLAP equations with nonlinear
c... | 2871ad1dc3721c5ca2c58d546ffe4ababea5c8a0 | [
"CMake",
"Text",
"C++"
] | 5 | Text | amitkr2410/IMParton | 4477d7e2d59df820c0d83f24d9beee6ef7ce57d7 | ad460bf8a179beaac5970bbd3148e2446832aace |
refs/heads/master | <repo_name>utaal/shiftregisters-py<file_sep>/shiftregisters/shifter.py
import time
class ShiftRegisters:
def __init__(self, **kwargs):
'''
Initialise the ShiftRegisters.
Parameters
----------
All parameters are keyword parameters.
set_output
should be a... | 67069bd0238831d4084d3c2850c2cc84b571a03a | [
"Markdown",
"Python"
] | 3 | Python | utaal/shiftregisters-py | a7e7cd8c01316e42b7d4b673e9a154efd43bdecb | b2f902d6b71b076c7990b2fb1d836f3a595ab53b |
refs/heads/master | <repo_name>djatipradana/jstore<file_sep>/src/main/java/jstore/JStore.java
package jstore;
import java.util.*;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
/**
* Write a description of class JStore here.
*
* @author (yo... | b7ca994fd25cc467d96b1e06929788dd6e315d06 | [
"Java"
] | 6 | Java | djatipradana/jstore | 3845311453dc688e8de96d9ad5dcdf633aed4f41 | f4fe9344ebacca728e8ad014ff67e7c559ac6b81 |
refs/heads/master | <file_sep><?php
require_once('../verificar.php');
include("../../../head.php");
if(isset($_POST['Nombres']) && isset($_POST['Apellido_1']) && isset($_POST['Apellido_2']) && isset($_POST['Correo']) && isset($_POST['Telefono']) && isset($_POST['Movil']) && isset($_POST['Curp']) && isset($_POST['Calle']) && is... | bb89f67ad3258c4bc81ba32a1385d703517bc03f | [
"JavaScript",
"SQL",
"PHP"
] | 27 | PHP | knavaH/sistema_nava | 93f2c9816d93e1b93712bb4da417d7b4f2590543 | 5c4b84686ed0e4eee786f0fc801bf24e208d433a |
refs/heads/master | <repo_name>marcinburo/merchant-api-client-csharp<file_sep>/FlubitMerchantApiClient/Exception/UnauthorizedException.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FlubitMerchantApiClient.Exception
{
public class UnauthorizedE... | 647b85e86821a9d462f19508f523b7b9852e18ad | [
"Markdown",
"C#"
] | 5 | C# | marcinburo/merchant-api-client-csharp | 77fb39cc2de3e3f8f3e8d58bd8009389959a5466 | a19be671b384830d09c240e45b195e7c523ddf2b |
refs/heads/master | <file_sep># Giphy-API
Type in an animal you'd like to see and it will generate 10 giphy images with their rating!<file_sep>var giphyButtons = ["panda", "cat", "owl"];
function displayButtons() {
console.log("looping")
$("#buttons").empty();
for (var i = 0; i < giphyButtons.length; i++) {
var newBu... | 4825954f06d1f39620d4a9802ca27bac8e901af6 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | felsuna/Giphy-API | 3ba5c2539638437241a6fbf7e4d6408e71045158 | 269681e73ac8f72848661faaefb83eed1a700053 |
refs/heads/master | <file_sep>#' install.packages & library
#'
#' mom_gamma function will calculate mom estimate for the shape parameter "k" and the scale parameter "theta" by using given sample.
#'
#' @param package is package names.
#' @return package & library
#' @examples #' pack(package=c('sp','plyr'))
#' @export
pack=function (p... | 3e3e29d52ac15dbfc51d1cc7022606b672d6ed15 | [
"R"
] | 1 | R | qkdrk777777/kma | b0bf534cfd78792f1d5e572047c57622294108ad | bbf93c67ee3c0b4478de8134c42495e16e0df123 |
refs/heads/master | <file_sep>using System;
using SFML.Window;
namespace FreeScape.Engine.Input.Config.Action
{
public class SfmlActionResolver
{
public Keyboard.Key GetKeyboardKey(string action)
{
return Enum.Parse<Keyboard.Key>(action);
}
public Mouse.Button GetMouseButton(string act... | d2c8ce3161ca1ff4602a6364902c00b7a7002bf9 | [
"Markdown",
"C#"
] | 103 | C# | Davisjames0901/FreeScape | 1977464a8754a4c7578f970c4ba9b3ade6a6dfc2 | 54539c5a34fcf80b5f00d336893017fb7f96cd40 |
refs/heads/master | <file_sep>get '/' do
@events = Event.all
erb :index
end
get '/events/:id/show' do |id|
@event = Event.find(id)
erb :event_show
end
get '/events/new' do
erb :new_form
end
post '/events/create' do
p params.inspect
myevent = Event.create(title: params[:title], date:params[:date], organizer_email:params[:e... | 9e138573e0a4c6d558f8c9b9aa4ac74741043ebd | [
"Ruby"
] | 2 | Ruby | Ale1/validations | aeac9310a1efdfe777c52de7fc51591dc4e29fa0 | 70d576ef3d1649c7b8aeb1dbd09672c5f402bf27 |
refs/heads/main | <repo_name>vyborll/todo-app<file_sep>/src/types/Todos.ts
export type TodoContextState = {
todos: Todo[];
createTodo: ({ title, completed }: { title: string; completed: boolean }) => void;
deleteTodo: (id: number) => void;
completeTodo: (id: number) => void;
};
export interface Todo {
title: string;
complet... | 5a097324338805510cab5d492c23d3a6abc2800f | [
"TypeScript"
] | 1 | TypeScript | vyborll/todo-app | fb00462967c0b1571b191392abaaa83d735caf55 | d4b09b6a9ddc67c9ba5386d57aa7a6057d143548 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Text;
namespace FindColor.Common
{
public class Settings
{
public string Color { get; set; }
public string Sound { get; set; }
}
}
<file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;... | 91a57aa14504d57baaf9a978e472fde7325d129e | [
"C#",
"INI"
] | 4 | C# | tuanmjnh/FindColor | ee141dba33ef6b65aaec969a1a818cae8e2a8b32 | 673006733e071669678bf0af9d8ee2ea99ff15e4 |
refs/heads/master | <repo_name>settiana/quiz-3-im-laravel-juni-2020<file_sep>/app/Models/ArtikelModel.php
<?php
namespace App\Models;
use Illuminate\Support\Facades\DB;
class ArtikelModel
{
public static function get_all()
{
$artikels = DB::table('artikels')
->orderBy('id', 'desc')
... | f77e8381c1845a6ac94bd8225e786e8a0277ce99 | [
"PHP"
] | 2 | PHP | settiana/quiz-3-im-laravel-juni-2020 | 55dc128654e8a9ebd9ce5e92f419855ae971bc17 | 7c5471c918f83abeced47d27316215ec4ca0234c |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.IO;
namespace FrbaBus.Compra_de_Pasajes
{
public partial class Co... | 6cc7b01e51333747c7f50331b3f883d0c9409c61 | [
"Markdown",
"C#",
"SQL"
] | 63 | C# | FedericoGarou/TP_GESTION_1C2013 | 2b6e6e0135d37e85e688de094729bad12c573e62 | 2922d360382b6dcecb27c63f25f9c53d648d9ef6 |
refs/heads/8.0 | <file_sep># -*- coding: utf-8 -*-
##############################################################################
#
# Author: <NAME>
# Copyright 2015 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# pu... | 4c10b98b7e518a5c9f8f14787a68f26cc9a53a97 | [
"Python"
] | 1 | Python | Antiun/crm | d3056d89914fff6a0bb7d9b173ee7cdd4e7f67b6 | 2dac7a45b36746c8f71d93cfb8176d479414a683 |
refs/heads/master | <file_sep>Tarea-Programada-4
==================
Repositorio para adjuntar los archivos de la Tarea Programada 4
<file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
## Tarea Programada 4- Lenguajes de Programación - I Semestre 2014
## Estudiantes: - <NAME>
## - <NAME>
## - <NAME>
i... | 4ddb081100c0cb474395859973b23c906c7b658e | [
"Markdown",
"Python"
] | 2 | Markdown | damocha6/Tarea-Programada-4 | 7a5601a9c0e60054a44fc8900027182039ce2eba | f4d2fc7dd77e659d25e4306eae9ffcd73eb8fd00 |
refs/heads/master | <repo_name>karanjitsingh/xml-coverage-reporter<file_sep>/XmlCoverageReporter/Program.cs
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using Microsoft.TeamFoundation.TestManagement.WebApi;
using Newtonsoft.Json;
using Palmmedia.ReportGenerator.... | bda346e5c294463984259998c35792330e00a1a6 | [
"C#"
] | 2 | C# | karanjitsingh/xml-coverage-reporter | b266a476eba5dd9958aaa54a9e346d7666d3cbf0 | a40b84480fc288911f89dc7c8ec7ff5b86691669 |
refs/heads/master | <file_sep><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
*
*/
class Signup_model extends CI_Model {
public function __construct() {
parent::__construct();
}
function new_user($email,$pw,$id_rol)
{
$data = array(
'email' => $email,
... | 77954f33fbcc584cc7fe2d8a33896d8f999dcd7f | [
"Markdown",
"PHP"
] | 46 | PHP | kgarcia/ect | 74818de0ab6a07fe36d40769e1e2993705dd6ecd | 7cd5cc5b5fde194ce09400424b398196e5aa1578 |
refs/heads/master | <file_sep>import axios from "axios";
// import backupJson from "./backupJson";
axios.defaults.baseURL = "https://www.googleapis.com/youtube/v3/";
export async function search(query) {
try {
const { data } = await axios.get("/search", {
params: {
part: "snippet",
maxResults: 10,
key... | d679a73b06dd7151b4d494c79ce30f6bb30f99d7 | [
"JavaScript"
] | 10 | JavaScript | EvertLagerberg/Youtube-player-with-react-hooks | d9befee5d8f64a09052377d813db062aa17de93c | b80084b02a2e633400955673e152458c91917123 |
refs/heads/master | <repo_name>SophieBonneau/earlyDetection<file_sep>/myo.cpp
// Copyright (C) 2013-2014 <NAME> Inc.
// Distributed under the Myo SDK license agreement. See LICENSE.txt for details.
// Myo sensor records with a 50Hz frequency
#define _USE_MATH_DEFINES
#include <algorithm>
#include <array>
#include <cmath>
#include... | 74621d1762f8b6ca728b8f90c2bca2052f23262a | [
"C",
"Text",
"C++"
] | 14 | C++ | SophieBonneau/earlyDetection | 985aa9d804952244e53adf597b03bd97f564d8c8 | ccfa0aa133e634eff8b50220cb3c47237eb0f17b |
refs/heads/master | <file_sep>import plistlib
from collections import defaultdict
import pickle
import os
import requests
'''
Create the artist-albums database. If already exists load data file
'''
def parse():
artist_to_albums = defaultdict(set)
if os.path.isfile("index.p"):
artist_to_albums = pickle.load( open( "index.p", "rb"))
... | 940beccd34e4714971c763ad7f81c60243cf580c | [
"Markdown",
"Python"
] | 2 | Python | fabrol/updateMusic | 7632c88be833e9a62a296adde117af74f3ccdfdb | 7a3dc3840c32efdbe7690a014a69d591e4f7f18d |
refs/heads/master | <repo_name>ChristianVillegas/serializable<file_sep>/Serializacion/src/ficherosBinarios_2/GuardarYRecuperarEstado.java
package ficherosBinarios_2;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class Guar... | c00d7ef83cf7c718909049f3658aaf8ce23f6678 | [
"Java"
] | 2 | Java | ChristianVillegas/serializable | d443d7dd54f82a509549008cddb9582f08b82e35 | d3e6acfc80cf31d4af8df46d7a03e984482c0395 |
refs/heads/master | <repo_name>YuraPogorelov/sber-app<file_sep>/src/components/list-сustomization/list-сustomization.js
import React, {Component} from "react";
import {makeStyles} from "@material-ui/core";
import FormControl from "@material-ui/core/FormControl";
import FormGroup from "@material-ui/core/FormGroup";
import FormControlLabel... | 006bc207a23e30493e5d0f452d58d7af2d77a6e5 | [
"JavaScript"
] | 7 | JavaScript | YuraPogorelov/sber-app | e2f0afb195b11c7853d3718b3c710d80a74ec0de | 68aa6b497856bea5056963b3fc4078be74bbc7ad |
refs/heads/master | <repo_name>missing-user/mensa<file_sep>/homometer/views.py
from django.shortcuts import render
from django.db.models import Sum
from django.views.decorators.clickjacking import xframe_options_exempt
from math import ceil
from .models import Stat
def index(request, minimal=False):
current = Stat.objects.aggregate... | b1e1dea0632e42f029772ba037525ce954424b41 | [
"Python",
"Text"
] | 2 | Python | missing-user/mensa | 3d8f558def6bed9a3e98f5e0b589883ab79ac09a | fbf3c5358fe8a618df259f270eced001042ec460 |
refs/heads/main | <repo_name>Neos-codes/DataStructures<file_sep>/Labs/Lab4/StackADT.h
#ifndef STACK_F
#define STACK_F
class Stack{
public:
virtual void push(int) = 0;
virtual int pop() = 0;
virtual bool isEmpty() = 0;
};
#endif
<file_sep>/Labs/Lab5/queueADT.h
#ifndef ADTQUEUE_H
#define ADTQUEUE_H
class Queue{
public:
virtua... | c17b578c457f4abc8fa1253ce794aeffa4629893 | [
"Markdown",
"Python",
"C++"
] | 57 | C++ | Neos-codes/DataStructures | e1ef33fc750051ea79133f96955c8f272b90c617 | 91e441dbc18e107d0b46492483c8cc9097e819d2 |
refs/heads/master | <file_sep>source 'https://rubygems.org'
ruby '2.1.7'
gem 'headless'
gem 'selenium-webdriver', '2.47.1'
gem 'watir-webdriver'
gem 'page-object'
gem 'cucumber'
gem 'rspec'
gem 'rspec-expectations'
gem 'rubocop', '0.39.0'
<file_sep># cremita-darkly
Cremita Darkly
<file_sep>require 'rubygems'
require 'headless'
require 'w... | c669f88e01ebf87a58b0d2d80f95b67e0c083ade | [
"Markdown",
"Ruby"
] | 5 | Ruby | amannaloyarte/cremita-darkly | eece1daac1378fc340a27a677a4adb6f435c05cf | bb1265d8e1aaa4972ac87f5a01f9a728bcd7e0fb |
refs/heads/master | <repo_name>chienptit941/HackathonHCVT<file_sep>/MysqlDB/src/main/java/Hackathon/MysqlDB/MainDriver.java
package Hackathon.MysqlDB;
import java.io.BufferedReader;
import java.io.FileReader;
public class MainDriver {
public static void main(String[] args) {
readFile("E:\\Eclipse Workspace\\MysqlDB\\courses.json");... | 5b526e3bd7c39e1280230a9227651b06f8cf8d7c | [
"Markdown",
"Java",
"Ant Build System"
] | 4 | Java | chienptit941/HackathonHCVT | 64b7c2d5604b05116a8e79cb545ce3ae026e7bbc | 7492560e89b5261e6eda6c759f86513a656cdf0b |
refs/heads/master | <repo_name>aladin94/BreakingBadProject<file_sep>/README.md
# BreakingBad
<h1>Fan page dedicated to the hit TV series "Breaking Bad"</h1>
<h2>Built using JavaScript, React, HTML/CSS</h2>
<img src='bb.jpg' height='auto' width='auto'>
<file_sep>/src/components/ui/Footer.js
import React from 'react'
const Footer = () =... | 34ad33978c62184f023332a84252c8a27ed8e29f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | aladin94/BreakingBadProject | 56948fdd5d48d55e9d1e4a40e28b082f791385dd | aaf65d28fbc31f825052de754d6340109e3a92f5 |
refs/heads/master | <file_sep>package Mirza_problem2;
public class SavingsAccountTest
{
private static double saver1;
private static double saver2;
public SavingsAccountTest(double s1, double s2)
{
this.saver1 = s1;
this.saver2 = s2;
}
public static void main(String[] args)
{
SavingsAccount cal = new SavingsAccou... | a7ac06cf7455957c5c7eb2084a4c468e919b4552 | [
"Java"
] | 1 | Java | Nazishm9496/Mirza_assignment3 | b2a8343e138367e2c5dc9cd3eeb180731386af91 | 76a9e9ef7140006ecc3d86e51a54ab53a8bdb25e |
refs/heads/master | <repo_name>MarkLimML/MO1<file_sep>/gen/Java8ErrorListener.java
import org.antlr.v4.runtime.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Java8ErrorListener extends BaseErrorListener {
public int lastError = -1;
public List<String> Errors = new ArrayList<>();... | e6208fbf7733e1e487f937b3f8150448712df8a0 | [
"Markdown",
"Java"
] | 2 | Java | MarkLimML/MO1 | f0a7a4a60ef52a68b6d5492aacf34cd803d3b116 | 02f67be87b17e1b07d5724e5ab771fcae6708fa7 |
refs/heads/master | <repo_name>YUZHANG001/saga--dva--umi<file_sep>/umi-wzry/.umirc.ts
import { defineConfig } from 'umi';
export default defineConfig({
dva: { immer: true, hmr: false, },
antd: {},
nodeModulesTransform: {
type: 'none',
},
// 不能自动生成路径
// routes: [
// {
// path: '/',
// component: '@/layouts/... | 8ea15f7f7334dc2fe3fb709248a6a248237a0601 | [
"TypeScript"
] | 1 | TypeScript | YUZHANG001/saga--dva--umi | 325810b8459c19cf94154df20a050bb4e8572ad0 | 7fb5da0a9d45c31796219420a7e3f09656cddddf |
refs/heads/master | <file_sep>package rbtree
//RBNodeDir is
type RBNodeDir int
const (
//RBNodeLeft is
RBNodeLeft RBNodeDir = iota
//RBNodeRight is
RBNodeRight
//RBNodeHere is
RBNodeHere
)
//RBNode is
type RBNode struct {
isRed bool
Index int
parent *RBNode
children [2]*RBNode
}
//RBTree is
type RBTree struct {
N... | 2e52942e9ba5155c997d6bd6e9569f10334d0ec2 | [
"Markdown",
"Go"
] | 2 | Go | doshiraki/rbtree_bygo | 5ad580c921c43a110b16fc390acbeefe9cdca602 | 3cf9fedfd94832ce4a03e520b5a93bc78b53ff90 |
refs/heads/master | <file_sep>package pap.appli.navilium;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Timer;
import java.util.TimerTask;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import... | 5b45685c99dcae3534d4fb660e0c6b3c82d8d06d | [
"Java"
] | 7 | Java | elieLeE/NaviliumMobV2Src | 6ae6b06ef826fa7d76493a1b7c37c8a136823b6d | 9b11cd445806d31dc9b8e08b4bb402900692f8b1 |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
import numpy as np
from skimage import filters
from skimage.measure import label, regionprops
from skimage import morphology
from skimage import draw
import matplotlib.pyplot as plt
def count_holes(s):
s = np.logical_not(s).astype('uint8')
ss = np.ones((s.shape[0] + 2, s... | c27d64fc5ec120ce16f681028c5de7220b640665 | [
"Python"
] | 2 | Python | KostyaRed444/-omputer-vision | 6f21edf190649c3dda963e0b6d74b7189cb50504 | c34ada37e931b7ae739908fd57f29931ec6824a2 |
refs/heads/master | <repo_name>joargp/QuizApp<file_sep>/Joar.Api.Quiz/Joar.Api.Quiz/Models/QuestionRepository.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
namespace Joar.Api.Quiz.Models
{
public class QuestionReposi... | ac06c602c649de188e66c0675388e1f8c0f20c7b | [
"C#"
] | 3 | C# | joargp/QuizApp | 916ee4ab18cb5f9848d4c304759137f9dd387b69 | 4fce4130242562e68aa142d717d5135d2bd05b1e |
refs/heads/master | <repo_name>joshuaUm/HW6Project2<file_sep>/HW6Project2/Program.cs
/// Homework No. 6 Project No. 2
/// File Name : Program.cs
/// @author : <NAME>
/// Date : Oct 4 2021
///
/// Problem Statement : Create an array of integers, then reverse the contents of the integer array.
///
/// Plan:
/// 1. Generate integers using... | aed6afd1b26c7999938db8a71949826c04c5f939 | [
"C#"
] | 1 | C# | joshuaUm/HW6Project2 | 10fbaa44a6ef0f65ba15f58df0c468ca572a3097 | b8007cbff2a8c6b4d57459bf396ba432f7b21789 |
refs/heads/master | <repo_name>GAGUAR/Guider<file_sep>/app/src/main/java/com/guider/guider/ObjectChoose.java
package com.guider.guider;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.Ne... | 860c39c38cf0cfc0ac31b8510d582fd9a2050171 | [
"Java"
] | 7 | Java | GAGUAR/Guider | b0f06acf442853c6c3df0b9fb0ffc142e0477f62 | 4d64c17172328a6364df9fbe3506197dce131df3 |
refs/heads/master | <repo_name>xKmz/graphql-api<file_sep>/src/test/UserService.test.js
const { expect } = require('chai');
const mongoose = require('mongoose');
const User = require('../schemas/User');
describe('Test User Service', () => {
before(async () => {
await mongoose.connect('mongodb://localhost:27017/desafio-backend-tests... | 560a66e8d19d169392a76979b596e8ee96520944 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | xKmz/graphql-api | 2abcada433457efaea7258f12087a69480cdca20 | f2188a4bb410317f8e2607377b53d6c117a351a3 |
refs/heads/master | <repo_name>VelluVu/C-exercises<file_sep>/Exercise17.cydsn/main.c
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ===================... | 4f400a5cc5b11d14eba3236d88a08f44f23b786e | [
"C"
] | 10 | C | VelluVu/C-exercises | 2811641c4302f0b3d350d396b85ce255c8a5f08e | 6b5ee5357a5cd326f7c59d1d49730f197c7bcbc9 |
refs/heads/master | <repo_name>rashoodkhan/tomboy.ios<file_sep>/tomboy.ios/Screens/NoteTakingScreen.cs
//
// NoteTakingScreen.cs
//
// Author:
// <NAME> <<EMAIL>>
//
// Copyright (c) 2014 <NAME>
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public Lic... | 146ccbe6aed608fb84e31ee0a32ad77f575477ab | [
"Markdown",
"C#"
] | 3 | C# | rashoodkhan/tomboy.ios | a532f080a310043c054a16beb7fbb9d718ec7999 | 4c1ed1de3133af0be34fa2e050f778e0e63cfc3f |
refs/heads/master | <repo_name>bipinkc19/cloth-recommender-from-image<file_sep>/test.py
from tf_records import DataLoad
import tensorflow as tf
from sklearn.metrics import confusion_matrix
import seaborn as sns
from sklearn.metrics import classification_report
import numpy as np
import matplotlib.pyplot as plt
def classification_metric... | 064f45c5b848b9ddeb5c59c7199912b94a01cb96 | [
"Markdown",
"Python",
"Text"
] | 7 | Python | bipinkc19/cloth-recommender-from-image | 7faff966c83395a8a7d27b53af1d4dbaea075c3c | 81504577b6fb2982c3cfd3da31cbce83a7f17995 |
refs/heads/master | <repo_name>VanniaJimenez/38dombicislocas<file_sep>/js/main.js
function validateForm(){
var nombreApellido = /[A-Z]/;
var numeros = /[0-9]/;
var especiales = /[!@#$%^&"´*]/;
var formatoMail = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([AZ-az])$/;
nombre = document.getElementById("name").value;
apellido = docume... | ff240ab3dab8a780b63045b6e6858d14eb948ac3 | [
"JavaScript"
] | 1 | JavaScript | VanniaJimenez/38dombicislocas | 1b3755f09f1f76ba6b6747f4953b14b3baef941d | f118e0d26ff484aa4af205bd20a2c7394e3ea876 |
refs/heads/master | <file_sep>var calcolaCodiceFiscale = function(){
setTimeout(function(){
$(this).closest('form').data('changed', true);
var name = $('#name').val();
var surname = $('#surname').val();
var sex = $('input[name=sex]:checked').val();
var birthDate = $('#birthDate').val();
... | 55d7f9b7e09d8ed91d67dca78ebda3e44edadf9c | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | vscalcione/nodejs-server | 6ba9cefaf1ef9436c887de5ba3f892562f66460a | e654be000bf651d2ca337fb3cffe63fae08185af |
refs/heads/master | <repo_name>iakov/api-extraction<file_sep>/Roslyn_Extract_Methods/MethodsCollector.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.Win32;
using ... | 3a86931c805c8368d8fa19a585808e5ee861c6d6 | [
"C#"
] | 5 | C# | iakov/api-extraction | a6a7f7e7aaaf0f6be555a886ae4b76271d17adf0 | da5cb959d12da3afbf3d876babae19f8891a6141 |
refs/heads/master | <file_sep><?php
/**
* @name EosAlpha BBS
* @copyright 2011 <NAME> silvercircle(AT)gmail(DOT)com
*
* This software is a derived product, based on:
*
* Simple Machines Forum (SMF)
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
* license: BSD, See included LICENSE.TXT for terms and condit... | 4f7cafd6b09eb70f4917714f093d283384094495 | [
"PHP"
] | 4 | PHP | samozin/SMF | f59460b6f5dd050aa797ba97274b028ddc5f841f | ab33f34fdc47d5d7e90e9d1972719b6a00cbb2f7 |
refs/heads/master | <file_sep>pub mod faruledata;
pub mod farule;
pub mod dfarulebook;
pub mod dfa;
pub mod dfadesign;
pub mod nfarulebook;
pub mod nfa;
pub mod nfadesign;
#[cfg(test)]
mod tests {
use super::faruledata::*;
use super::farule::*;
use super::dfarulebook::*;
use super::dfa::*;
use super::dfadesign::*;
... | 6d0bc3b5baf289be0ee3d12964edea5df9a248b3 | [
"Markdown",
"Rust",
"TOML"
] | 8 | Rust | yodalee/nfa_regex | 647d3f0b7e253ce523794e669192074bb32dcd14 | b84d528a10533e7a13642e0056be73a30c4d299d |
refs/heads/master | <repo_name>iborgthrowaway123/reactor<file_sep>/src/Services/Auth.jsx
import { createStore } from "redux";
const initialState = {
isLogged: false,
token: "",
email: "",
};
export const AuthReducer = (state = initialState, action) => {
if (action.type === "SET_LOGGED_IN_STATE") {
return { ...state, isLogged... | b6259c9253c148b02e67bc1af99381e7998fe034 | [
"JavaScript"
] | 6 | JavaScript | iborgthrowaway123/reactor | d00f8f59d1015df0d878fcf3786fa0be93328b4a | 4bef4172c695139a27b0c66e2cc0b6c06effdc35 |
refs/heads/main | <repo_name>harshnakad/SupplyChainDapp<file_sep>/src/app/app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {AuthComponent} from './Components/Auth/auth.component';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from... | 547f350e12676d8f789d8dcabc6b26df414fea2c | [
"TypeScript"
] | 17 | TypeScript | harshnakad/SupplyChainDapp | b406f5f95c7221f24e488dd01483c43cfcc2a32c | 616f3e9a249d461ee3b7730e1e72919b55b1abdf |
refs/heads/master | <repo_name>vasilhsscour/ContactApplication<file_sep>/app/src/main/java/gr/hua/android/contactapplication/MainActivity.java
package gr.hua.android.contactapplication;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCo... | 99ff1fb75106ecdac6b414e23be3607bb609d416 | [
"Java"
] | 1 | Java | vasilhsscour/ContactApplication | c3690f60c9838c0b3bf0ccdd98a141710828b417 | 276ef99fadf4c3cd20858076c7d90ebf7fc7d289 |
refs/heads/master | <file_sep>package com.distinct.tamyg.androidchat.addcontact;
/**
* Created by tamyg on 12/06/16.
*/
public interface AddContactInteractor {
void execute(String email);
}
<file_sep>package com.distinct.tamyg.androidchat.entities;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Created by t... | ba24dbb1463e5ce07e9dc78cd741c797388849d8 | [
"Java"
] | 8 | Java | TAmyG/androidChatFirebase | 9da4b9384d34c77f720dcf714870a852f34d3070 | 1007b09fe372a317d63a86238229ef7d5bd2a95e |
refs/heads/master | <repo_name>olegzh7505/power_meter_cs5460a<file_sep>/power_meter_cs5460a.ino
/*
* generic CS5460A-based power plug monitor interfacing
*
* sniffs the SPI CLK and MISO from chip to read voltage, current, power, etc.
*
* based on Karl Hagstrom's initial reverse engineering:
* http://gizmosnack.blogspot.com/2014/10... | c73e934709fbcd95ae83b869c6a0ae55f4b63258 | [
"Markdown",
"Python",
"C++"
] | 3 | C++ | olegzh7505/power_meter_cs5460a | 41c850f2209b9596bc4ca80057fdf8709cf7605c | 4beeffdf185bced5dbf2d7cdfbe0a4b46eb9ea23 |
refs/heads/master | <file_sep>version: "3"
services:
app:
build: app
expose:
- "8000"
proxy:
build: proxy
ports:
- "80:80"
volumes:
- "./proxy/nginx.conf:/etc/nginx/nginx.conf:ro"
- "./proxy/logs:/var/log/nginx"<file_sep>import com.sun.net.httpserver.Http... | 75c446bfb3b6192b8e0a3a4f671315ae4e019c1b | [
"Java",
"YAML",
"Dockerfile"
] | 4 | YAML | uphy/docker-practice | d271b70517013e84cf07e46272400b57ae4511b8 | ea679cd3a6b00aff699307b5984abddc3781419f |
refs/heads/master | <file_sep>package com.xzq.controller;
import com.xzq.entity.User;
import com.xzq.entity.UserVO;
import com.xzq.feign.UserFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.Date;
imp... | 8f5747bb3c769d39fec128a161731c2be658a594 | [
"Markdown",
"Java"
] | 9 | Java | Jiaru0314/ordingsystem | d3b9d8d3ddfcfe460af985a0777bd743b3bafcf5 | 07f01054f3cfcf12c3bdae156559405260a8eb66 |
refs/heads/master | <repo_name>nanshan-high-school/cs50-problem-set-1-cash-BrandonCheng666<file_sep>/錢包問題.cpp
#include <iostream>
using namespace std;
int main()
{
float dollars;
do {
cout << "輸入金額:";
cin >> dollars;
} while (dollars < 0);
int dimes = dollars * 10;
int number = 0;
number += dime... | 4d84656b84cc126ee63496ddea5b9e1dbc449172 | [
"C++"
] | 1 | C++ | nanshan-high-school/cs50-problem-set-1-cash-BrandonCheng666 | a7fd3bfaed4b1f12e63589b6660d06f5fe22a0ec | 50345867a2b59e24575a33a2190623b1b96e9796 |
refs/heads/master | <file_sep>/*
* $Id: calc.c,v 1.1.1.1 2006/07/22 15:26:25 aoyama Exp $
*
* Copyright (c) 2006 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of s... | 64394edcb2c143be30f294d25f3f40cdc14c61cf | [
"Markdown",
"C",
"Makefile"
] | 4 | C | ao-kenji/usbrh | cf10abc7bcade2b3b1ee7dcb0944c270c9e89cee | 8de00e74e3718b8c204b1fa38fa2dab466ba606f |
refs/heads/master | <file_sep>package com.example.logica
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(s... | 3d836a7904a14b5d08f9d4c710f1a7c13a335c65 | [
"Kotlin"
] | 1 | Kotlin | thomscholtens/Logica | cea3be5369e6d4846536661fb18cf166236cb2c6 | 438b4c9a7d979c4f7314ece5b7be15a4f0970151 |
refs/heads/master | <file_sep># print('hi dat! 123')
# name = input('enter your name!')
# print('hi',name)
# hobby = input('enter your hobby: ')
# print("your hobby is",hobby)
# print(10 + 1)
# print(10 - 1)
# print(10 * 1)
# print(10 / 1)
# print(2**4)
# print(5%2)
# print(6//2)
# print(type(10))
# print(type("10"))
# print(type(... | df9f4d79f4e537dd134eb8dac4c657c4ba1c4f50 | [
"Python"
] | 1 | Python | hoanghuyen98/1st_repo | 0e0ab630f9d905d34394fd2aea983484e137f2c2 | daa06b8c529ddd9eee5f1fdbe1fadefcc21c7a50 |
refs/heads/main | <repo_name>zinghi99/HM2_Daniele_Zinghirino<file_sep>/Database HM2.sql
create database homework2;
use homework2;
CREATE TABLE Gyms(
ID integer primary key auto_increment,
name varchar(20));
CREATE TABLE Directors(
ID integer primary key auto_increment,
name varchar(20),
... | 251a83df399bb5d3eee87b537acfdac42979dcfa | [
"SQL"
] | 1 | SQL | zinghi99/HM2_Daniele_Zinghirino | 49443ac61a643c0b2f455acb6dd05959eacee7f3 | e2917d3580d7fc1038a501ea6837750778626894 |
refs/heads/master | <repo_name>Nealsbo/Rope<file_sep>/Vector2D.h
#ifndef VECTOR3D_H
#define VECTOR3D_H
#include <math.h>
class Vector2D
{
public:
float x;
float y;
Vector2D ();
Vector2D ( float _x, float _y );
virtual ~Vector2D ();
Vector2D operator+ ( Vector2D v ) { return Vector2D( x + v.x... | e89491ad7d8536924d17eb4429d08e3386133cc3 | [
"Markdown",
"C++"
] | 4 | C++ | Nealsbo/Rope | db4a7295b412f744d0fe6a9f88e856235c1152ba | 6dfa36f21ff31c126e05c4d61cdf002f8d240682 |
refs/heads/main | <repo_name>SandaliSenarathne/Markdown_Viewer<file_sep>/settings.gradle
include ':app'
rootProject.name = "Markdown Viewer"<file_sep>/app/src/main/java/com/infinisolutions/markdownviewer/MainActivity.java
package com.infinisolutions.markdownviewer;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bun... | a17cc1bb3f148f985e0f3ee96897abd5cc7d0300 | [
"Java",
"Gradle"
] | 2 | Gradle | SandaliSenarathne/Markdown_Viewer | 51db87cac6c7c2ad93bc631c93d66455b8294d60 | 0a153ec739903ccc2febc3fcb2465614b7d43cd5 |
refs/heads/master | <repo_name>hadyh/edata-1<file_sep>/list_kelas_pengetahuan.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title> E DATA </title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximu... | ef30c9928fc4ff79bf3d9d9183a1a80c976e071b | [
"PHP"
] | 1 | PHP | hadyh/edata-1 | 98cb9bb4add2b7dbf38fb7f841ec850ca936c4e9 | f2d477c886685bfc950d080ce9c3a564cd6826d8 |
refs/heads/master | <repo_name>archibate/toaruos<file_sep>/base/etc/startup.d/00_tmpfs.sh
#!/bin/sh
mount tmpfs tmp,777 /tmp
mount tmpfs var,755 /var
mkdir /var/run
<file_sep>/base/etc/startup.d/99_runstart.sh
#!/bin/sh
export-cmd START kcmdline -g start
# We haven't actually hit a login yet, so make sure these are set here...
export U... | 8111431ac0fb8a4916d2768099b93779e060ed8b | [
"C",
"Shell"
] | 4 | Shell | archibate/toaruos | dfb176abe579727f9e4ea1f7df16d1379f0873b3 | 40269a3f0a5e0c4099eaf98862b60649e1ca8be8 |
refs/heads/master | <repo_name>laisengui/smallioc<file_sep>/src/main/java/cn/lsg/smallioc/annotation/Member.java
package cn.lsg.smallioc.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 需要控制反转的成员.
... | c7909b492c8715c19b7ea3e059f40479b821a5d1 | [
"Markdown",
"Java"
] | 7 | Java | laisengui/smallioc | b9152809b8e655ab65ae92764f95e0254e4dcb7d | 266ce3a5e49db452e647ad9c1aae203eb92dd248 |
refs/heads/master | <file_sep>from django.shortcuts import render
from items.models import Item
from rest_framework.generics import ListAPIView, RetrieveAPIView, DestroyAPIView, RetrieveUpdateAPIView
from rest_framework.filters import SearchFilter, OrderingFilter
from .serializers import ItemListSerializer, ItemDetailSerializer
from rest_... | 618e32c299a845fecc492daa19a1699fafe4c97d | [
"Python"
] | 3 | Python | AymanAlshanqiti/wishlist-api | ef152da272153ec00e822a16880a07c9988df3bd | 7f018879b661e4a6780bff54b5703e4b59e9673a |
refs/heads/master | <repo_name>xjmeng001/GPU-accelerated-FDTD-based-SAR-Simulations<file_sep>/README.md
# GPU-accelerated-FDTD-based-SAR-Simulations
Parallel Specific Absorption Rate using 3D Finite-Difference Time-Domain algorithm on CUDA framework.
## Introduction
3D FDTD is computationally expensive due to its volumetric nature. Usin... | 868c724a00216a2e114c1faf070dca4ea0b44b79 | [
"Markdown",
"C"
] | 4 | Markdown | xjmeng001/GPU-accelerated-FDTD-based-SAR-Simulations | 17176711cf9132a32b151309234497c04c553551 | b332a8aa4f6d083fba20150b0abe48e4d8a4db90 |
refs/heads/master | <file_sep>package com.example.lloydfinch.studytest;
import android.app.Activity;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
import android.view.ViewGroup;
import android.widget.Button;
import an... | 6e0d8c035eb56f1d2fd38b40fd5a0d8bd4894f9c | [
"Java"
] | 1 | Java | LloydFinch/ST | 0c53fa0e88f7fb62a1c4da7b159600b1f96a9c29 | 58f868050e1dce4d1651f43d370e857053c90a5e |
refs/heads/master | <file_sep>import argparse
parser = argparse.ArgumentParser(description='Script to list out files from given directory')
parser.add_argument('--directory', '-d', required=True, help='Source directory')
parser.add_argument('--verbose', '-v', action='store_true', help='If set, print more details')
args = parser.parse_a... | 939f648f05120b9a37c10b06446864de7e8fedaa | [
"Python"
] | 9 | Python | hopsmdev/trainings | 7399e1f7fc80e0a6fb55adf3c34cbe1f1085fdfa | c2c85501999a0e0f2e919adbd3bc459aa20dd544 |
refs/heads/master | <file_sep>import java.util.HashSet;
import java.util.Scanner;
public class FindNumber {
public int singleNumber(int[] nums) {
HashSet<Integer> h = new HashSet<Integer>();
for (int i : nums) {
if (!h.add(i)) {
h.remove(i);
}
}
return h.iterator().next();
}
public static void main(String[] args) {... | 8dac22f0807bfc0a30b0f1ead5b6895665bb86bb | [
"Java"
] | 3 | Java | kristinechiang/Assignment5 | 2cccbdef3773e42bfad11171ff27827fb90d113b | 19e5f6c697d325b33fe7f56a94561c226a1bbb70 |
refs/heads/master | <file_sep># == Schema Information
#
# Table name: events
#
# id :integer not null, primary key
# title :string
# start_date :datetime
# end_date :datetime
# location :string
# agenda :text
# address :text
# organizer_id :integer
# created_at :datetime no... | c71805df4e698da8d9e6880a68b9b68a8a8bef60 | [
"Ruby"
] | 1 | Ruby | malprax/conference_sample | 1799b8518675790ab47aeee714a8e7b75729bef3 | 0255dd6ee5f1bb9aecfe38c0a47f9b9d814de52d |
refs/heads/master | <repo_name>1405043-kd/chhobighor<file_sep>/cv.py
import numpy as np
import cv2
from matplotlib import pyplot as plt
from numpy.core.tests.test_mem_overlap import xrange
img = cv2.imread('for_science10.jpg')
def ancuti_journal(im):
# img1 = cv2.cvtColor(im, cv2.COLOR_BGR2RGB)
img = im.copy()
avg_b = np.av... | 60d34f1a7df694a47b4d3699d3c2317a7cf439e5 | [
"Markdown",
"Python"
] | 2 | Python | 1405043-kd/chhobighor | c236ea8017e0d32174abd04450e19c47457b0342 | 7e3d5f902d0b0b427b3886e3d27dcec274456ed4 |
refs/heads/master | <repo_name>suwenyu/Online-Judge-Lesson-script<file_sep>/Lesson/test.sh
#/bin/bash
file="Lesson0.txt"
while read line
do
echo "$line"
done <"$file"
<file_sep>/Trip/picture.sh
echo '<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" hre... | 1f5032400b2acc969600f7fbe4415bbbaf33ff65 | [
"Markdown",
"PHP",
"Shell"
] | 11 | Shell | suwenyu/Online-Judge-Lesson-script | 2598b0169a0d14ae1a337b178d4314dd66733d03 | 6c72c40e7767834710e41ea3b7fa092ff795cb2e |
refs/heads/master | <file_sep>package com.retwis.controller;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.H... | 0239f20d10ad12b7599ddb38b0d7b25ffc3baad3 | [
"Java",
"HTML"
] | 9 | Java | longle255/retwis-java | 1297af6f6f6ea430730cdf83cb174b6b8e67f66a | d5274a9da98c551aec65646a710b4b8df538bd5b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.