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>fahadbuddy/fizzbuzz-souped<file_sep>/README.md
# fizzbuzz-souped
Souped Up FizzBuzz SpringBoot App. Uses Swagger to provide an interactive FrontEnd to probe the APIs.
From command line:
```bash
mvn clean install && mvn spring-boot:run
```
Then go to [http://localhost:8080](http://localhost:8080)
added n... | 89f9b53f731ea5f5f3495c8b4fbcfb25bec2ed67 | [
"Markdown",
"Java"
] | 6 | Markdown | fahadbuddy/fizzbuzz-souped | 299908aa2ae74106aec850f7712f319905ce0ef6 | e39a6b79f971c6a23d452230c401f7b8464505ca |
refs/heads/master | <repo_name>rubenvb/Xiph-Ambrosia<file_sep>/libfishsound/win32/config.h
/* config.h. Generated by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Do not build decoding support */
#define FS_DECODE 1
/* Do not build encoding support */
#define FS_ENCODE 1
/* Define to build experimen... | 33e5631921aa6eba3a8838128fe226880b24bad5 | [
"Markdown",
"C",
"Makefile"
] | 3 | C | rubenvb/Xiph-Ambrosia | 2ae20df25083be8c64ed5d83edc2f2908535346f | 9ed935b04b75d9847780384a8139c7acb9ba285c |
refs/heads/master | <file_sep>import random
import math
def dot (v, w):
return sum(v_i * w_i for v_i, w_i in zip (v, w))
def test_dot ():
v = [1, 2, 7, 8]
w = [4, 1, 2, 3]
z = dot (v, w)
print ('v: ' + str(v))
print ('w: ' + str(w))
print('vetor->[v*w] = ', [a*b for a, b in zip(v,w)])
print ('soma da mult... | 39ebb696535a3de6fadc961a6eb82adb1cecce70 | [
"Python"
] | 1 | Python | andreFatec4/DataScience4 | 2b4c6fd82e58aedc7afc2aa0639cf085d96e78c6 | 169c357dc585ae51e9891243e22d30221402f7a2 |
refs/heads/master | <repo_name>ederCoffani/blogJS_Angular<file_sep>/static/modulos/modulo.js
angular.module('blogjs',['ngRoute', 'ui.bootstrap', 'blogjs.post', 'blogjs.usuario']);
<file_sep>/static/modulos/post/pesquisa/service.js
angular.module('blogjs.post').factory('posts', function(){
var posts = [];
var id = 0;
va... | a34eef21533519a993c60778708b4471c279117e | [
"JavaScript"
] | 6 | JavaScript | ederCoffani/blogJS_Angular | fab0f733dfc143bca2b05a164013f3d565c34a93 | 6164811c072162bf51be8b8f22fd1f0db1333dee |
refs/heads/master | <repo_name>lehel91/webshop<file_sep>/src/main/java/com/bh08/model/PromotionType.java
package com.bh08.model;
public enum PromotionType {
PAY_2PIECES_TAKE_3PIECES("Kettőt fizet, hármat vihet!!!"),
MEGAPACK("Megapack"),
NONE("nincs");
private String description;
private PromotionType(String description) {
th... | 080f43387dca198f6d4f5e5dea7627fe95f2830a | [
"Java"
] | 2 | Java | lehel91/webshop | ed6bb65b746f55a873ad0a2688b7ac22a379829c | 296a48d4e889d0b56a1a616c546be4c1845bc261 |
refs/heads/master | <file_sep>import React from "react"
import { Product } from "./Product"
const products = require(`../api/products.json`)
export const ProductList = ({addProductToCart}) => {
return (
<div>
<h1>List of Adobe products subscription price</h1>
{products.map(product => <Product key={prod... | 6571a2055afb180987291e4684899908db48c880 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | LKMehta/AdobeCaseStudy | 3c653e234977a0c9cf1c5b5a757c7cd807bdf138 | 627ecb78296398cd523318775a80b1e40ee56d50 |
refs/heads/master | <repo_name>n0sec/HillCipher<file_sep>/HillCipher/hillcipher.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUFFER_SIZE 10000 // Buffer size for the entire file per the docs ("Format of the File to be Encryped")
int main(int argc, char **argv)
{
// Check for incorrect number of parameters enter... | dc1346ba5f5952bea6ef873494f2e8db1ea69434 | [
"C"
] | 1 | C | n0sec/HillCipher | fc4495bbde1f8b4964b54e77eb82e17da189d204 | 8215c5a67a78d1fde63200da5942c203c5cf2c8f |
refs/heads/master | <file_sep><html>
<head>
<title>Pruebas</title>
</head>
<body>
<?php
class Menu {
private $link = array();
private $title = array();
public function Horizontal($link, $title) {
$this->link[] = $link;
$this->title[] = $title;
}
public function Vertical($link, $title) {
$this->lin... | 89140a65e8390562677d85e794b72d5938d4defe | [
"Markdown",
"PHP"
] | 7 | PHP | manuelsayago15/php-tuto | c0f7d26076095b9310da6600dadde211928b1530 | 883e378cfd9a3580de096adc48a33c9beee3acf2 |
refs/heads/master | <file_sep>var topOffset = 170;
//dom ready functions
$(function(){
insert_login()
insert_top();
});
// activity data page scroll and fixed header function
var timer;
var fired = false;
$(window).scroll(function() {
if ($(window).scrollTop() >= 330 && fired === false || $(window).scrollLeft() ){
var ht ... | 88d6c5a0655fcb3e80242547c7557ad5c7456dda | [
"JavaScript"
] | 1 | JavaScript | NickyH/nger2 | 0912bcf40a8407f42534a5e571a1a645b2937237 | dff9c3ba0994f1b4322333e82e91d45798718faa |
refs/heads/master | <repo_name>xNauman/BreakBrick-OpenGL-Game<file_sep>/MathRaw/iRect.cpp
#include "iRect.h"
/*Rectangle class*/
IRect::IRect(){
}
IRect::IRect(IPoint _p1,IPoint _p2){
p1 = _p1;
p2 = _p2;
}
/***********************/
IRect::~IRect() {
}
/***********************/
void IRect::setWithBorder(bool vChoice)
{
this->withB... | f19f8c2bc5bf8f2b4260ef848b1a99dcc8f144fa | [
"C++"
] | 18 | C++ | xNauman/BreakBrick-OpenGL-Game | 5926cac9de059fa414bae79a6c57c33f40448834 | f75fede5c0b8aeb322cd8128915bc24db753f7c9 |
refs/heads/master | <repo_name>CV-IP/AFM<file_sep>/train.py
import torch
import time
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
from torch.autograd import Variable
from torchvision import transforms
import os
import torch.nn.parallel
import argparse
import afm
from dataset import Food... | d8b54c98e157e3ce5a2eeb0d9fe965c4a04190c9 | [
"Markdown",
"Python"
] | 5 | Python | CV-IP/AFM | c8b1c120ca36745fec29efc921281ccc44823f7e | 9d365e046a1589bdc6a5a32b37b78e51aeac09ea |
refs/heads/master | <file_sep><?php
/// การตั้งค่าเกี่ยวกับ bot ใน LINE Messaging API
define('LINE_MESSAGE_CHANNEL_ID','1653916259');
define('LINE_MESSAGE_CHANNEL_SECRET','<KEY>');
define('LINE_MESSAGE_ACCESS_TOKEN','<KEY>');
?> | c2538004325d17ad43fe9568f1dc61fe9e4bf75c | [
"PHP"
] | 1 | PHP | thanakrit-sa/LineBotSdk | 4395cec2a8c174dac11bcb680335a6244c2e7567 | fc5cbf437409cda8cd5be50f38786cad11c8930e |
refs/heads/master | <file_sep># Learn
Learn and Practice
Develop with react
Using material ui and styled components<file_sep>import React from "react";
import styled from "styled-components";
import { Input, Button, Typography } from "@material-ui/core";
export const Template = styled.div`
&& {
background-color: #3f51b5;
displ... | 887d39535732a79d7886337fe2df45e405212c80 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | Queco1/Learn | d948f6dc840dde07380b9c6dc1dedd7ed98ddbeb | c1cf71d0d5be8422e4a41372bd9d1eaeb7723e1b |
refs/heads/master | <file_sep>class Solution:
def ladderLength(self, beginWord, endWord, wordList):
if endWord not in wordList:
return 0
else:
wordList.remove(endWord)
wordList[-1] = endWord
l = length(wordList)
lw = length(wordList[0])
exist = [[0]*l]*(l+1)
for i in range(l):<file_sep>c... | cf029380b783ef16e10f017afa1fe4efb088873f | [
"Python"
] | 74 | Python | caseddd/python_work | 587ec153a0942bac82e0effd35c427896bbfd332 | eefcd1e90e83c631256c6cfce768b3a159f14f52 |
refs/heads/master | <file_sep>ソースコードのダウンロードするには下記のコマンドを実行します。
git clone <EMAIL>:egg-chicken/Gin.git
cd Gin
npm install
インストール後に、プロジェクトのルートディレクトリで下記のコマンドを実行します。
npm start
サーバーが起動したら localhost:3000 にアクセスすることでゲームを遊ぶことができます。
<file_sep>import { createStore } from 'redux';
const rootReducer = (state = {}, action) => {
switch(action.type)... | 2a43d4c292fba195b4c1bfdfb9058469ba4f6eec | [
"Markdown",
"JavaScript"
] | 10 | Markdown | eggc/Gin | 58e465ed489f063f4249f495d48738ece0873ede | f6f39f2986c94a1175a8768db00846cdee444c6d |
refs/heads/master | <repo_name>lennyster/my_irc<file_sep>/back/views/assets/js/main.js
$( document ).ready(function() {
$(".mask").addClass("active");
$("#start").click(function(e){
e.preventDefault();
testname();
})
$(document).on("keyup", function(e) {
if($('.mask').hasClass('act... | 9174f481f32c6989a283f3cc8747b419bdcf6698 | [
"JavaScript"
] | 3 | JavaScript | lennyster/my_irc | 604581876e152d975afa4fe408deac4a8d7b6ad2 | 9e7c678393418e19c5d89c041ba912986fb37664 |
refs/heads/master | <file_sep>#include <iostream>
#include <vector>
#include <string>
#include <stdlib.h>
#include <fstream>
#include <time.h>
typedef std::vector<float> vector;
void entry(std::string name, vector data) {
std::ofstream F;
F.open(name, std::ios::app);
for (int i = 0; i < data.size(); ++i)
F << dat... | 323a3296d4b34b649cfa412f4c1aa45274d3c82c | [
"Python",
"C++"
] | 6 | C++ | cs-hse-projects/Maria_Kaglin_Perceptron | 0805f8e7277bec7a9c6ce49abbdbff8148072190 | 0ad3ebf946fd99c3976573edd961ac0e1aa8d21f |
refs/heads/master | <file_sep><?php
/**INPUT COMMENT */
if(isset($_POST["submit"])){
$post_id = $_POST["post_id"];
$name = $_POST["name"];
$commentar = $_POST["comment"];
$date = date("Y-m-d H:i:s");
mysqli_query($conn, "INSERT INTO comment VALUES('','$post_id','$name','$commentar','0','$date')");
header("location:index.php?detail=$... | 02a69a832229cca6ff09c55ba6062bd57fc43a67 | [
"PHP"
] | 6 | PHP | Ary-Asyari/web_blog | ea76b0dc0d723cedad10e468c771ad5e3dded01f | a3e48101ea8267e2717a391ead8dcb9cbc37ed78 |
refs/heads/master | <repo_name>danaistoan/WarehouseManagerApp_v2<file_sep>/src/main/java/com/tgs/warehouse/connection/ConnectionPool.java
package com.tgs.warehouse.connection;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Properties;
import org.apache.commons.dbcp2.BasicDataSource... | e3cd414edaa233c2acf2cad0c616ac716ba6d912 | [
"Java",
"SQL"
] | 5 | Java | danaistoan/WarehouseManagerApp_v2 | 270acf6c961e5f21056e072401cb3e1d45bfb4fd | f4215fe1cc9405cd2d1ef61372c51bbb7e3710f4 |
refs/heads/master | <repo_name>intelldomus/IntellDomus-ControlPanel<file_sep>/index.php
<?php session_start(); ?>
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" ><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js" ><!--<![endif]-->
<html lang="it">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatibl... | a253a15981b85e103155efa73797b0699286ab4b | [
"JavaScript",
"PHP"
] | 10 | PHP | intelldomus/IntellDomus-ControlPanel | 5a5df9d9a6abdd4d14b61d0de789ba7cf2ffa9aa | b0bef7e220264bbce1360094690f23239af2e531 |
refs/heads/master | <repo_name>Yaoxuguang/java8<file_sep>/src/main/java/com/yao/java8/stream/FirstStreamDemo.java
package com.yaoxuguang.springbootjavawebtechnologyinsider.java8.stream;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author: <a href="<EMAIL>">yaoxuguang</a>
* @createDate... | 01026464be2d8f389accf0b5a9af7a5554095382 | [
"Java"
] | 12 | Java | Yaoxuguang/java8 | df8b7cc4a089d3541488a70dbe0eb087b389c46f | 512828159681f5f2818fbcfe16c88158d19347fb |
refs/heads/master | <file_sep>package com.hellohasan.sharedpreferencesdagger.preferences
import android.content.Context
import javax.inject.Inject
class AppPreferenceImpl @Inject constructor(context: Context): AppPreference {
companion object {
const val USER_NAME = "user_name"
const val WEBSITE = "website"
}
... | e4647d8aa451e3b137bfa443641583c4ef58f23a | [
"Markdown",
"Kotlin",
"Gradle"
] | 6 | Kotlin | hasancse91/android-sharedpreferences-dagger | 69978dee2f3dde2eab9baf38e9e8966efecbf8e4 | ef9e2c96e3c892c2575b1bbd6a32d9e8ae067ca2 |
refs/heads/master | <file_sep>#usage of append()
L=[]
n=1
while n<=99:
L.append(n)
n+=2;
print(L)
#usage of range()
r=[]
for i in range(10):
r.append(L[i]);
print(r)
#usageof split
m=[]
m=L[0:3]
print(m);
<file_sep>#Recursive 1
def fact(n): #Normal Recursive
if n==1:
return 1
return n*fact(n-1);
#Recursive 2... | 1ddf3894ac68629ad8935028df526c5c6f15516b | [
"Markdown",
"Python"
] | 3 | Python | markLiuJianfeng/Python_Learning | 8ae2ae59c769a5d7b9e214e511454ca1119f8883 | cd46af45097c7cec648ee9881b9d556d281527ed |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Tue Jul 30 15:43:26 2019
@author: javaa
"""
import RPi.GPIO as gpio
import time
import tkinter as tk
import sys
def init():
gpio.setmode(gpio.BOARD)
gpio.setup(7, gpio.OUT)
gpio.setup(11, gpio.OUT)
gpio.setup(13, gpio.OUT)
gpio.set... | 96dd20a0caa691e1d0325ac7ac8d2aea0244c882 | [
"Markdown",
"Python"
] | 2 | Python | java-abhinav07/CS50_final | 783ac431d886153cc55087ae6ebf028f7a4cf4af | 5767fefe0043d1c59e05165295bcfaa3327f364c |
refs/heads/master | <file_sep>var numEyeColour = document.getElementById("num-eye-colour");
var topTenSurnames = document.getElementById("top-ten-surnames");
var closestEiffelTower = document.getElementById("closest-eiffel-tower");
var closestEiffelDetails = document.getElementById("closest-details");
var avgAgeBlueEyes = document.getElem... | 550567239cb560ba5601ed4707a0dbbba2bda05c | [
"JavaScript"
] | 1 | JavaScript | amurra213/TravelTekTest | dca373cd7d1ee38af4ea30a0531c16200ad0a9ec | c30d9e7da784d99bdf524929b3c6fbdf0ed05752 |
refs/heads/master | <file_sep>import { AuthService } from './../login/auth.service';
import { Component } from '@angular/core';
import { AngularFirestore } from '@angular/fire/firestore';
import { from } from 'rxjs';
import * as firebase from 'firebase';
import { Router } from '@angular/router';
@Component({
selector: 'app-home',
tem... | 34d70cfc6d8f78375a9a57e09fdc1723a15381a5 | [
"TypeScript"
] | 5 | TypeScript | SergioTribaldos/where-is-my-car | d6212ead94eaeff774acb97de95abcd80e46d466 | 475fdf60577bff43fcb71f445403c004e1779180 |
refs/heads/master | <file_sep># CNL
Implementation of Computer Network Protocols
<file_sep>#include <iostream>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <netinet/in.h> // The header file in.h contains constants and structures needed for internet domain addresses.
#include <string.h>
#include <unistd.h>
#i... | 6a909e93794f9f40a6eb648b1142bbe923489d75 | [
"Markdown",
"Java",
"C++"
] | 11 | Markdown | apurvawani/CN | 49545959c7dda975a44201b5ae9323cd37d87121 | c0d908fe0618965b04b86afdac21ce2d30c0f026 |
refs/heads/master | <repo_name>etman55/MovieApp<file_sep>/app/src/main/java/com/example/atef/movieapp/Models/Trailer.java
package com.example.atef.movieapp.Models;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
/**
* Created by Atef on 4/29/2017.
*/
public class Trailer {
private Integer id... | 56c7520681944bae86298f46f55e03561a34132a | [
"Markdown",
"Java"
] | 5 | Java | etman55/MovieApp | 083aa95ad51b61291e033c2c6bd690bb81ae8f06 | c99bbb45684e999221f242642eda024a635f8a9f |
refs/heads/master | <file_sep>'''
netlists file
Date: 26/05/2016
<NAME>, <NAME>, <NAME>
This file has only one purpose: return the netlist that the user chose
'''
import Position
from random import randint
import copy
import sys
def getRandomNetlist(gates, noOfConnections):
countOccurrences = [6]
netlist = []
while max(c... | 2f73fac7afe97aaf2d5d6f31515c7f70f3e4fc93 | [
"Markdown",
"Python"
] | 17 | Python | danielstaal/project | 86450fba9524afbf41ddd8f300426ec3d2224f16 | 18097ba768b3fdb69306cc0dccea50cf24540e77 |
refs/heads/master | <file_sep>cmake_minimum_required(VERSION 3.13)
project(MST C)
set(CMAKE_C_STANDARD 11)
add_executable(MST main.c)<file_sep>//
// Created by apls on 4/3/2019.
//
#ifndef MST_MST_H
#define MST_MST_H
#include "GrapeMartix.h"
/** Def ----------------------------------------------------**/
// 结构体定义-边
typedef struct {
... | 383c00be30669c88b5bd7f2a157b2e1bcafd9de5 | [
"Markdown",
"C",
"CMake"
] | 4 | CMake | Benjamin142857/Algorithm | 6a3ecab5bb3d3272f663f873ecdaa3364e17c6b0 | e195fa64daaa21e7fcaf3a3730bfb78100e22656 |
refs/heads/master | <file_sep>
# Create a dictionary with key value pairs to represent words (key) and its definition (value)
word_definitions = dict()
word_definitions["Awesome"] = "The feeling of students when they are learning Python"
word_definitions["Cool"] = "A descriptor word for a cucumber"
word_definitions["Chill"] = "The act o... | c8995a565e182b3e11b80d00a8f36aef5140ee55 | [
"Python"
] | 1 | Python | ambergooch/dictionaries | 29fe4d8bb41c9036c959430eed8b7ad4325b748f | 78cbeff1b8261b81d979a2b004c610027daac186 |
refs/heads/master | <repo_name>CodingBlocksPodcast/FunWithFizzBuzz<file_sep>/FizzBuzz/FizzBuzz/FizzBuzzRecursive.cs
using System;
using System.Text;
namespace FizzBuzz
{
/// <summary>
/// This is a terrible solution, the values in each function call are pushed onto the call stack and are
/// not cleaned up until the sequence... | 92f81e9971a597bc5cc2ca267a1b490fb9223965 | [
"Markdown",
"C#"
] | 7 | C# | CodingBlocksPodcast/FunWithFizzBuzz | 15c4f89a726205a3c6a030bcd4fb8d5d517ec58a | 1673c9022cfa995d6bbb0428898e11a7858008d4 |
refs/heads/master | <file_sep>package com.tistory.codingtrainee.controller.upload;
import java.io.File;
import java.util.UUID;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.util.FileCopyUtils;
import org.springframe... | c007c6a592a0167c9284fe8642d6975725e9f6b7 | [
"Java"
] | 9 | Java | Sy2tema/UserBoard | 4e23324d1c9c6c406b008a63f265572cf396db85 | b55887e1d579266d5f41aaede2e069bc4e2db3cd |
refs/heads/master | <file_sep>import time
import lxml
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from telegram import Update
from telegram.ext import Updater, CallbackContext, CommandHandler
from webdriver_manager.chrome import ChromeDriverManager
from selenium.commo... | 2e74de0031e3abd8cbe5c1a2175ad208551a0f96 | [
"Python"
] | 1 | Python | Vladghan/check_ticket | fc2dd60264f38b905237a7e480bc39178cc0932e | 5e5a2499980b50914428285c91bafe1d688531da |
refs/heads/master | <file_sep>$(document).ready(function() {
/*adding sticky menu*/
$('.js--section-features').waypoint(function(direction) {
if (direction == "down") {
$('nav').addClass('sticky');
} else {
$('nav').removeClass('sticky');
}
}, {
offset: '35%'
})... | 5d29328138ac38b73147e66f09eb94b839ef8d80 | [
"JavaScript"
] | 1 | JavaScript | chris-bartlett/omnifood | 8b3aad044a18ba972ffb3c4079a3872de89c4e55 | 0d7bbd683a4e70dd5f3fb5ca370b78d6d532c306 |
refs/heads/master | <file_sep>#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
"""
Import modules needed
"""
import sys
import time
import string
import random
from guizero import App, PushButton, Slider, Text, TextBox, Combo
"""
Declare the functions
"""
def GenerateAlpha(Alphanumeric, PasswordAmount, P... | 40ce9a83fb3b36cf7e3d69b9e3caf7bff372f9a5 | [
"Markdown",
"Python"
] | 3 | Python | yeyeto2788/PasswordGenerator | e69b4c8cf9f27a8d06c03773491010c79b4c08cf | d567256f22b75753ef21f8b1c3ac0b0228a5a488 |
refs/heads/master | <repo_name>NightAngell/SignalR_UnitTestingSupport<file_sep>/SignalR_UnitTestingSupport/Hubs/HubUnitTestsBase.cs
using NUnit.Framework;
using SignalR_UnitTestingSupportCommon.Hubs;
namespace SignalR_UnitTestingSupport.Hubs
{
/// <summary>
/// Base class which provide support for Hub testing.
/// </summary>... | 781787b3d1cd52dd3b7e0412101326e97f370980 | [
"Markdown",
"C#"
] | 42 | C# | NightAngell/SignalR_UnitTestingSupport | 09a7fa467993f46e67d0a49facb6fbc249e6e9b9 | 6ff00613be7f63600344a52ac64a6e34fd85565c |
refs/heads/master | <file_sep>package com.jahnelgroup.session.hazelcast
import io.prometheus.client.spring.boot.EnablePrometheusEndpoint
import io.prometheus.client.spring.boot.EnableSpringBootMetricsCollector
import io.prometheus.client.spring.web.EnablePrometheusTiming
import org.springframework.context.annotation.Configuration
@Confi... | 2558933d34fbc7a42db544dccc41c9769c60241e | [
"Markdown",
"INI",
"Gradle",
"Java",
"Kotlin"
] | 84 | Kotlin | jass0108/spring-boot-samples | cfa01f86ae5e49dc0ee199282512cd57f4b914a7 | 8897b33d06101abe78afce27f95add5ecb3e1c00 |
refs/heads/master | <file_sep>import operator
import copy
from logger import log_call
class AnyCallable:
"""AnyCallable must be immutable.
All the members must start with '_'."""
def __init__(self, root, name):
self.__root = root # a reference to cache
self.__name = name
def _as_ParseObj(self):
retu... | 5bc97bbe126809e99e4a2858c67b944d59c89f0f | [
"Python",
"C++"
] | 6 | Python | ktnyt/ecell4 | 807bbce37b2bd3fd0c82682588f94be4420d77e9 | f16ada729ae41337b525d5099c086f21ea36d95a |
refs/heads/master | <file_sep>//
// ContactStruct.swift
// app-AccessContactsLocal
//
// Created by <NAME> on 04/05/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
import Foundation
struct ContactStruct {
let givenName: String
let familyName: String?
let number: String?
}
<file_sep>//
// ContactCell.swift
// ... | 2b783e2b47b54af0c4fcf1f1fc2c5fde919432fa | [
"Swift"
] | 5 | Swift | walterldjunior/app-AccessContactsLocal | 426868c955dc8737c53cdc698147c6805a3ad979 | 8046a68fd4b9a4f32c61ee4ab65cad43c16f5204 |
refs/heads/master | <file_sep>Django==1.8.5
djangorestframework==3.3.3
Pillow==3.4.2
South==1.0
dj-database-url==0.2.2
dj-static==0.0.5
gunicorn==18.0
static==0.4
wsgiref==0.1.2
<file_sep>from django.shortcuts import render
import json
from django.views.decorators.csrf import csrf_exempt
from django.http import JsonResponse
# importing ... | 3fabd68a40ba8f231e2d31f52bee93ef49a1851d | [
"Python",
"Text"
] | 7 | Text | djangoconfire/ML_ques_ans | 5a51b4f55fe40970b90cb6a389ab03eec02e785d | 6c006d035030577af329d42eb8e6c93742d681b7 |
refs/heads/master | <repo_name>Narongrit634/SE-Project<file_sep>/Android-Project/app/src/test/java/com/example/se_android/ExampleUnitTest.java
package com.example.se_android;
import com.example.se_android.Models.Quiz;
import com.example.se_android.Models.User;
import org.junit.Test;
import static com.example.se_android.Models.User.getO... | 0d184bf4c898ad4e98cf07f01d089989abf04bba | [
"Markdown",
"Java"
] | 15 | Java | Narongrit634/SE-Project | 64443cfbe58447a83b38420a0e7d72f6af69343e | 1076307fa6fd96ffd75283cbbfc5fd137412853f |
refs/heads/master | <repo_name>zwx19981207/Fastshorturl<file_sep>/go.mod
module github.com/zwx19981207/Fastshorturl
go 1.13
require (
github.com/Unknwon/goconfig v0.0.0-20191126170842-860a72fb44fd
github.com/buaazp/fasthttprouter v0.1.1
github.com/go-redis/redis v6.15.6+incompatible
github.com/valyala/fasthttp v1.6.0
)
<file_sep>/ma... | 7ac86e467515d038e9b39a627ae94ae28b68f0a1 | [
"Go",
"Go Module"
] | 2 | Go Module | zwx19981207/Fastshorturl | f95ae2d9a7e1db82d7d45d91c030de368ea0451a | 73680908b41085c44bddefd3c8fc013fc47e730a |
refs/heads/master | <repo_name>israel-dryer/RGB-Color-Finder<file_sep>/rgb_color_finder.py
"""
RGB to Hex Color Finder
A simple program that allows you to change the
red, greed, and blue values on the color sliders and see the resulting
color and HEX value. Click the hex value button to copy the value to your
cl... | 77eb43e4b0faed9dbc3237b6a446fae4a7581a8e | [
"Markdown",
"Python"
] | 2 | Python | israel-dryer/RGB-Color-Finder | 7c5fc31ce7ac093d070d161e72563b28d82f8d39 | 6b01ac771d16e7ef0f0a5763e3af53d92f4616a4 |
refs/heads/master | <repo_name>jverdeyen/framework<file_sep>/src/Framework/Functions/General.php
<?php
namespace Framework\Functions;
class General
{
public static function checkZeroOneValue($value){
return (in_array($value,array('0','1')) && is_numeric($value));
}
public static function checkValidId($value){
retu... | 6ea91206c81254152886ad12cfa9e523cdb59904 | [
"Markdown",
"reStructuredText",
"PHP",
"INI"
] | 68 | PHP | jverdeyen/framework | 0ec8b1637bff1cd0adc24f523f694cc689a25e2b | 4768f25db26d791914d918d475d70f35f7cffaa2 |
refs/heads/master | <repo_name>einstein10147/PyTorch-Vehicle-Detection<file_sep>/README.md
# Vehicle Detection
This project uses Single Shot MultiBox Detector([SSD](https://arxiv.org/abs/1512.02325)) to detect vehicle and humans from images of urban street scenes.
## Prerequisites
* Python: 3.5, 3.6
* torch: 0.4.1
* torchvision: 0.2.1
*... | 4c90294c4e2898c615ec54659a45f5d8efb6575e | [
"Markdown",
"Python"
] | 5 | Markdown | einstein10147/PyTorch-Vehicle-Detection | aba10d229def80f31978f7e0491d446a24badc06 | 3980232349bb1e5e64f6e02a8cb04f0303584b29 |
refs/heads/master | <file_sep>package com.mmall.interceptor;
import com.mmall.common.JsonData;
import com.mmall.common.RequestHolder;
import com.mmall.module.SysUser;
import com.mmall.util.JsonMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.method.HandlerMethod;
import... | 2d8b3f7632377c9142c7bf8aa42f51dbc7e7020f | [
"Java",
"SQL",
"INI"
] | 24 | Java | Doublefuck/permission | 61bfee03f6fe2fdea36c461670105cf2db44924e | 335233dfff5eea6fde5c79f2d7bf8f2d8b391ad6 |
refs/heads/master | <repo_name>AzlanMalik/BillingManagementSystem<file_sep>/src/Application/Controller/stockController.java
package Application.Controller;
public class stockController {
}
<file_sep>/src/Application/Controller/productsController.java
package Application.Controller;
public class productsController {
}
<file_sep>/src/Appl... | dde803d278e1acd8f717fcb4ec164793a8166fae | [
"Java"
] | 5 | Java | AzlanMalik/BillingManagementSystem | 74e17c895d51efea909e5fb55ce60e9d79f867fa | cd8efc7fba6256eb7cc1bf80448278ff2d09ae69 |
refs/heads/master | <repo_name>neosis/react-styled-components-css-grid<file_sep>/src/components/Realtor.js
import React from 'react';
import styled from "styled-components";
const Div = styled.div`
grid-column: col-start 7/full-end;
background-color: lightcyan;
`;
const Realtor = () => {
return (
<Div>
Top 3 Realt... | 90d4778f7f548e6be0ff582a043e18d3980159df | [
"JavaScript"
] | 11 | JavaScript | neosis/react-styled-components-css-grid | 09660a21f50740ea4d15018d589eb715b3ade66f | 9940feb233e6944d309e4ddf1a4f4397679093c9 |
refs/heads/master | <repo_name>mskiba/ArchSerwInter<file_sep>/app/controllers/session_controller.rb
class SessionController < ApplicationController
def new
redirect_to '/auth/github'
end
def create
user = User.from_omniauth(env["omniauth.auth"])
session[:user_id] = user.id
redirect_to todos_url, :notice => "Uzytkownik #{u... | dacab1e08f64c365445b2ad0f784cb7274f6ad15 | [
"Markdown",
"Ruby",
"Shell"
] | 9 | Ruby | mskiba/ArchSerwInter | 10c3d15ea41a3eaca088751b43d650473c7a4e2d | ee18e3ab3365d0da663d7650243c6ecd78968baf |
refs/heads/master | <file_sep>from tkinter import *
from tkinter import messagebox
import serial
import time
import sqlite3
# create a database to store devices
conn = sqlite3.connect("board_arduino.db")
c = conn.cursor()
# Create table device
c.execute("""CREATE TABLE IF NOT EXISTS arduinoData(
id_dev INTEGER PRIMARY KEY
... | ac26334365ad4047195f38e3b76cd4e3ada1d9de | [
"Markdown",
"Python",
"C++"
] | 4 | Python | basyair7/SOR_v2 | 5c8ca0533ef28727dc5daa32b50ae0ec1c885733 | 4c750a6c334ca7c7135640211bb20acbe925cca4 |
refs/heads/master | <repo_name>openube/grape-electron<file_sep>/app/src/pages/lost-connection/index.js
import React, {Component, PropTypes} from 'react'
import DocumentTitle from 'react-document-title'
import {
FormattedMessage,
defineMessages,
injectIntl
} from 'react-intl'
import styles from './styles'
import {urls} from '../../c... | 7c92ec8959b74b0ea5d40cb9f8bacdb145482cf3 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | openube/grape-electron | a0ddedb3a7c14d33cde7d08d65f85e11fc912bf5 | 67ced553108e68abd127119e3a90a0340e144155 |
refs/heads/master | <file_sep>/**
*
* @author Юлия
* @name Bookkeeping
*/
<file_sep>/**
*
* @author Юлия
* @name Post
* @manual
*/
Select *
From POST t1<file_sep>/**
*
* @author Юлия
* @name Worker
* @manual
*/
Select *
From BOOKKEEPING t1 | 21f4ad11b08e06ed8aaa967a225ad2df30534cf4 | [
"JavaScript",
"SQL"
] | 3 | JavaScript | LenaTimovskaya/Bookkeeping | 08af3d9a4ccb227f87f6995c4b9507602caf2b85 | baaba7b1f879b6ec0c618117ccb9c4f16d2bc1a4 |
refs/heads/main | <repo_name>TAndronicus/quarkus<file_sep>/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/ContinuousTestingSharedStateListener.java
package io.quarkus.deployment.dev.testing;
import java.util.function.Consumer;
import io.quarkus.dev.testing.ContinuousTestingSharedStateManager;
public class ContinuousT... | dffbe6f1e3d0251c5e6f22ce973c5fa6838e1087 | [
"Java"
] | 1 | Java | TAndronicus/quarkus | 06f9f636ca2bffcd91f4a2ddd794ef296dfe9458 | 50467d61d3efe5e02cf62ee8f766c8e9e2864b14 |
refs/heads/master | <file_sep><?php
require_once 'config.php';
require_once 'app/TrainingBlock.php';
$trainingBlock = new TrainingBlock($startDate, $numDays, $events, $avgMileage);
//$trainingBlock->get();<file_sep><?php
// [DONE] Step 1: Build array of all dates for the block
// [DONE] Step 2: Fill in the events
// [WIP] Step 3: Fill ... | 5fb26d54309b6789a81841d82b2da0976301cfec | [
"PHP"
] | 4 | PHP | jwatson-ldg/levelup | 8010cf7db098b5af63953492aae992c6d024d296 | bd39a2e3233ff8d60fd050c167d82f5be4936ab9 |
refs/heads/master | <repo_name>Krishneil1/React-and-Core-2<file_sep>/README.md
# React-and-Core-2
<file_sep>/SpyStore.DAL/SpyStore.DAL/EF/StoreContext.cs
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.EntityFrameworkCore.Infrastructure;
using SpyStore.Models.Entitie... | 5243a19e299fc5003ca29a598dff6b1d5b6e826b | [
"Markdown",
"C#"
] | 2 | Markdown | Krishneil1/React-and-Core-2 | 82f51a5fb6b63c76e87bafc8bf027c07051f571e | cf41412aee46461400c96212b839b66792f6556c |
refs/heads/main | <file_sep>
// Hostname of the DDF web interface.
export const DDF_HOSTNAME = window.DDF_HOSTNAME || window.location.hostname;
// Base URL of the DDF server (api).
export const DDF_SERVER_URL = window.DDF_SERVER_URL || `http://${DDF_HOSTNAME}:1977`;
// Base URL of the DDF preview (devserver iframe).
export const DDF_P... | ad7daee7c8f22379b228d911292cadf9d3e9ce9e | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | tennessee-garage/ddfui | 19b2cf48dfde8fb9534f63d08b773a2727317bcd | 55dea341cedb7ebfdce1e72714d32850f5bac0f7 |
refs/heads/master | <repo_name>mahu/SearchAlg<file_sep>/Ex4/tic_tac_toe.py
import copy
from collections import deque
import time, threading
import numpy
boardsize = 3
states = []
processed = 0
class Node(object):
matrix = numpy.zeros((boardsize,boardsize))
predecessors = []
successors = []
nodetype = None
goalnode = 0
cost = -1
... | c3809b6df109cc034e88f7c8fdc0e851c916e52b | [
"Python"
] | 6 | Python | mahu/SearchAlg | 4a698e156f8b52afeab9294647ff2ef164374aa4 | 57fa035316a9bcebebcc8c8ba7ebf92f0a4d526d |
refs/heads/master | <repo_name>zalobmq/ProyectoFinalConcesionario<file_sep>/GestionConcesionario/src/main/java/modelos/Cliente.java
package modelos;
import java.util.List;
public class Cliente {
protected String dni;
protected String nombre;
protected int edad;
protected int telefono;
protected List<Coche> misCoches;
... | ccdfeb78336659882b784c7ad202095453fc419d | [
"Java"
] | 5 | Java | zalobmq/ProyectoFinalConcesionario | f5278593e3af8c8ba0eb716e2e93636c0f93798f | 9bb3ce0adc94eba9255ccaa53b2a3f30c68e9dc4 |
refs/heads/develop | <file_sep><?php
/**
* QaStateCommand
*
* Generates qa state table schemas
*
* @uses CConsoleCommand
* @license MIT
* @author See https://github.com/neam/yii-qa-state/graphs/contributors
*/
class QaStateCommand extends CConsoleCommand
{
/**
* @var string
*/
public $migrationPath = 'application... | 4cdc0a2594f467769f8ee604bef835674a7702c0 | [
"Markdown",
"PHP"
] | 3 | PHP | neam/yii-qa-state | 4062c5dcadf3de24287091460900ede4c4185bc6 | 8183121bccb722c2d311b45154e37188a62cb640 |
refs/heads/master | <repo_name>jh2510b/MIniGame<file_sep>/app/src/main/java/com/example/minigame/Scores_Muffin.java
package com.example.minigame;
import android.graphics.drawable.Drawable;
import java.io.Serializable;
public class Scores_Muffin implements Serializable {
int rank;
String name;
int score;
int d;
pub... | 27ab80044dba3615ceafbd5352cdb40d2942228b | [
"Markdown",
"Java"
] | 4 | Java | jh2510b/MIniGame | 6eaa2f23fbbbd7bb86a7c2566751b2044323204e | 0dec792a84ab0c2aa28e9234899f93de1690d590 |
refs/heads/master | <repo_name>SaraKasim/TP_CarTaylor<file_sep>/src/fr/istic/nplouzeau/cartaylor/api/Category.java
package fr.istic.nplouzeau.cartaylor.api;
/**
* @author Kasim
* <p>
* A public type to organize part types in categories
*/
public interface Category {
/**
*
* @return the name of the Category
*/
String getN... | 4fe860b1959579e229f2b58f85d3a9f20ce77749 | [
"Java"
] | 4 | Java | SaraKasim/TP_CarTaylor | b8349f1ef943012e19c232c94ce90aa2f5c08a3c | d95fd76b8b1b5e3c558e48dfb47dfd25bca988e1 |
refs/heads/master | <file_sep>#==========================================================================
#Уже подсчитанные характеристики для 1000 тестовых изображений
'''
haarPath = "cascade30h.xml"
recallList [0.8254189944134078, 0.8225352112676056, 0.8208744710860366, 0.8045325779036827, 0.7897727272727273,
0.779516358463... | 37c21ce7c15dd9a415b2fdbc7e4b9f8458bf0741 | [
"Python"
] | 3 | Python | allovv/CarNumPlateDetection | 76506a4faec26280a4b5216e218d085f4037c33b | d9904ef01dcb0bfdca71f885efdad277ee0a41e1 |
refs/heads/master | <file_sep>import React from 'react'
import { Link } from 'react-router-dom'
import './style.styl'
const CommentItem = () => (
<div className="comment-item">
<div className="head">
<Link className="avart-link" to="person/123">
<img className="avart-img" src="http://p1.music.126.net/q7TKBgjuz... | c90cbb1fa3d1ed9825ad7875d5aecc925374d7f4 | [
"JavaScript",
"Markdown"
] | 33 | JavaScript | myDancer/my-singer-music | 41f570934d4620b3d69636da10ce8d796f7e8695 | f2083f0cdd1e2ae3ea4f0bc66089ede8602ce3e5 |
refs/heads/develop | <repo_name>Jason-cod/connEngine<file_sep>/Engine/Config.py
import xml.etree.ElementTree as ET
'''
Change Note(s)
# v0.0.1 - Added ReadConfigByObject.GetInnerText, ReadConfig.GetInnerText, ReadConfig.GetNodeAttribList, ReadConfig.GetNodeAttrib - drathi
'''
class Config:
class ReadConfigByObject:
def ... | 1584596f6d50283a89ed6d2b8f562bd3f0832a1f | [
"Python"
] | 3 | Python | Jason-cod/connEngine | e2d9bfd9ac85aac061a22450e4f38122cb03c2ff | c31a884aa44d7e5092e0c9c128cea37536b1f53b |
refs/heads/master | <repo_name>a123689/drinkshop<file_sep>/Downloads/DrinkShopApp/app/src/main/java/com/example/dat/drinkshopapp/Adapter/MultiChoiceAdapter.java
package com.example.dat.drinkshopapp.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ... | 1e3f313f64e7e2e3d4d6a9e805d871e2a9f9ac45 | [
"Java",
"Gradle"
] | 13 | Java | a123689/drinkshop | 11691b438e1b8b1559d93b0dde63c83c995466e1 | 89becadaa5d5f84623b555a1bc9aaa74d8ce8733 |
refs/heads/master | <file_sep>using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_ADS
using UnityEngine.Advertisements;
#endif
//https://www.youtube.com/watch?v=XHTTjyRzxmw
public class AdManager : MonoBehaviour
{
public static AdManager Instance;
[Header("Config")]
[SerializeField] ... | 86f570a7eea0cfca63509f26c5b90bde0b2c097f | [
"Markdown",
"C#"
] | 5 | C# | BryanFour/Spider_Smoosh_Repo | 28aa5fddf6e597baddf632c754cee38bf5271d58 | 651b9289ef861b45864bb121c4d2e1b6eb6c2ce4 |
refs/heads/master | <repo_name>YNathan/splab-mvc<file_sep>/SpeackerServer/Controllers/ReaderController.cs
using Microsoft.AspNetCore.Mvc;
using SpeackerServer.Models;
using System.Collections.Generic;
namespace SpeackerServer.Controllers
{
[Route("api/lookCloser")]
public class ReaderController : Controller
{
SpreadSh... | 43fe47060a71198a76627a93519e5aa7bbcce17b | [
"C#"
] | 3 | C# | YNathan/splab-mvc | 241b2b209cce041d16c0d10328d98fd6c7597214 | 7353d06d3894434d6fb7d9f362f555f8fdc4f398 |
refs/heads/main | <file_sep>package com.arkanoid.game;
import biuoop.DrawSurface;
import java.awt.Color;
/**
* @author <NAME>
*/
public class EndScreen implements Animation {
private final String message;
/**
* Constructor.
*
* @param s message to show.
*/
public EndScreen(String s) {
this.m... | 9b806d8416a1a54564e8e6586519f299a01098bd | [
"Java",
"Ant Build System"
] | 33 | Java | TomBenDor/OOP | de67ba348576342231fcc778fd6b0eb9cfd3ee59 | 2a2f81acdecefa96c1067bfea6290b5a2a910aa3 |
refs/heads/master | <repo_name>apkendall10/Splendor<file_sep>/Game.py
import sys, pygame, numpy as np, random
pygame.init
class gemStack:
blue = (100,100,200)
red = (200,100,100)
green = (100,200,100)
brown = (100,100,100)
white = (200,200,200)
colorMap = {
0: blue,
1: red,
2: g... | 55c3cd48b064de74bb1d5c771f067205a6f91917 | [
"Python"
] | 1 | Python | apkendall10/Splendor | 7ff13697b2ba189b0c6faab3ad743f130a335d0e | 09385e214ad1686ca82ea8d11d3d312f6043fe68 |
refs/heads/master | <repo_name>Tirth8695/Basicjavaprograms<file_sep>/teen.java
public class teen
{
public static void main(final String[] args)
{
hasTeen(25,88,23);
}
public static boolean hasTeen(int a,int b, int c)
{
if((a>12&&a<20)||(b>12&&b<20)||(c>12&&c<20)){
S... | 8b5b8f597de13ec86be5f77a8958fc29fcd94b4c | [
"Java"
] | 8 | Java | Tirth8695/Basicjavaprograms | 96d0befa2a512c725d439ce7290b1ba7cfb55ee6 | c2049fd9d6fb5baa59d782752ed461fe6086b93e |
refs/heads/master | <repo_name>Adam-McGregor/SIT210-Task5.2C-RPiGUI<file_sep>/LedToggler.py
from tkinter import *
from gpiozero import LED
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
## Lights ##
Red = LED(14)
Green = LED(15)
Blue = LED(18)
## Initailse GUI ##
window = Tk()
window.title("Led Toggler")
## Actions ##
... | d8560869fab508fe922a3246bb785c9d72873517 | [
"Python"
] | 1 | Python | Adam-McGregor/SIT210-Task5.2C-RPiGUI | a81288bde7d09257f149e54bdcce67fbf9dd3277 | fc0d5dafafe189156c4b3b4d036e7325b94c3926 |
refs/heads/master | <file_sep>#! /usr/bin/env python3
# Recreation of DUNGEON, a game written by <NAME> for Cursor Magazine,
# issue #15. Published in Dec 1979.
# <NAME>, June 2020, Public Domain, I have no rights to original
# source. I am doing this for educational purposes to demonstrate computer
# history and what it might look like ... | e62d88e1fedb042303fa1037961411be32519075 | [
"Markdown",
"Python"
] | 3 | Python | Chgowiz/PyDungeon | 6a36851b92b4d6824c5d0e4d78d72787abd96358 | d0ffcec18e8ad95781d2a4faa7616b7a6f210c52 |
refs/heads/master | <file_sep>package com.test_task.translator.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
public class TranslatorRequest implements Serializable {
@JsonProperty("text")
private String text;
@JsonProperty("lang")
private String lang;
public TranslatorReque... | 8576a5f980a5303627ca62e7aae7979953d523eb | [
"Java",
"Text",
"INI"
] | 7 | Java | OxanaTetera/translator_v3 | 5cf56409507912ef3959ecd2d9e6d0e2065836e9 | e966ff879f1f318ab917939d88721e0a7d79de16 |
refs/heads/master | <repo_name>edwardsuwirya/kotlinOOP<file_sep>/src/main/kotlin/com/enigmacamp/kotlinOOP/topic/KO017-Family.kt
package com.enigmacamp.kotlinOOP.topic
/*
*
* Companion Object untuk membuat inner object dalam class tanpa harus menggunakan nama object
* A.K.A static variables / methods ???
*
*/
class Family {
compa... | 4cf998eedab5dcb8d4f7ee3f75ecd86c600919d1 | [
"Kotlin",
"Gradle"
] | 24 | Kotlin | edwardsuwirya/kotlinOOP | 4b65038d4983d787f485b20301bb94d491136713 | 155209e890e9bf988595ed6d62a798b82f088431 |
refs/heads/main | <file_sep>
print("Mini Project")
print("2 Mini Project")
| f41f30147862239743c46a55468f75020056d1e3 | [
"Python"
] | 1 | Python | xt0fer/miniproj | 5a6e1b9bf59575c56fabf5752a3536e4fb06739c | 3276e53fe6b217106403f2b39dd779a64de84887 |
refs/heads/master | <file_sep>using System;
namespace App30
{
class Program
{
static void Main(string[] args)
{
//char[] charArray = { 'a', 'a', 'a' };
//charArray[1] = (char)(charArray[0] + 1);
//charArray[2] = (char)(charArray[1] + 1);
//Console.WriteLine(charArra... | e032bd09145329346ec05ee9b21c8c297e4b2657 | [
"C#"
] | 1 | C# | CHESERGIU/App30 | db2c20fd7febf25c7f8eb179ce059c21160f1af0 | f3e83731488add560cfbe5e4ac58ae908621f124 |
refs/heads/master | <repo_name>Choijonghun/jhchoi_gitTest<file_sep>/4강_연습문제/Question.py
#Q1
#주어진 자연수가 홀수인지 짝수인지 판별해 주는 함수(is_odd)를 작성해 보자.
def Q1():
a = input("정수를 입력하세요\n:")
a = int(a)
if a % 2 == 1:
print("홀수 입니다.")
else:
print("짝수입니다.")
#Q2
#입력으로 들어오는 모든 수의 평균 값을 계산해 주는 함수를 작성해 보자. (단 입력으로 들어오는 수의 개수는 정해져 있지 않다.)
#※ 평... | c54f989213c98fefc6721a556538a2425fa45ec0 | [
"JavaScript",
"Python"
] | 20 | Python | Choijonghun/jhchoi_gitTest | 8c4ab2360b7bd69d27dac25b514f9b2f23a49c1b | a4eebd61c479292389f6a1f080e05ac9d53d346c |
refs/heads/master | <file_sep><?php
namespace User\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
class AuthController extends AbstractActionController
{
public function loginAction(){
$this->layout()->setTemplate('layout/user_login');
$view = new ViewModel();
r... | 9ee9f85ef5063c09364603c75bc9f67dec294206 | [
"PHP"
] | 6 | PHP | alysongustavo/zf3-application | f01ca103bd1882a4b35d74dcf3dcfe0501108399 | 1c414357810b6c16353e1704875c35e01891764c |
refs/heads/master | <repo_name>EleanorHeywood/myrepo<file_sep>/src/runAll.R
# File to read, wrangle, and run a regression on pilot whale data and kahuna
# INSERT TO CREATE MERGE CONFLICT!!!!!!!
source("src/readData.R")
source("src/wrangleData.R")
source("src/runRegression.R")
source("src/plotData.R")
# HAHAHAHAHAHAH - you changed this fil... | acac69076e94f0e304ad88038e87448b9d2ad6af | [
"R"
] | 1 | R | EleanorHeywood/myrepo | c4468fc78fb2b7694fbf28a99c750c57251a8735 | e671c5d6e2b4668e10d1f87e74867f06ca1013ae |
refs/heads/master | <file_sep>const expect = require("expect");
const updateIn = require("../../lib/util/update-in").default;
describe("updateIn", () => {
const other = {};
it("works with nested objects", () => {
const target = { a: { b: { c: 1 } }, d: other };
const updated = updateIn(["a", "b", "c"], 2, target);
expec... | 50052863303e54a4a785e044e4493dd12ea9b47b | [
"JavaScript",
"TypeScript",
"Makefile",
"Markdown"
] | 84 | JavaScript | nickb1080/perturb | 56d7e7b9320c246bd3c6542fa9b29a5e05e76a90 | 459cfffef2a1b75c66987ca66a3d0b13e6825be2 |
refs/heads/main | <repo_name>Muhammadnorhalimi18101999/web-app-lanjutan<file_sep>/app/Http/Controllers/SecondController.php
<?php
namespace App\Http\Controllers;
class SecondController extends Controller
{
public function latihan1()
{
return view("latihan1");
}
public function latihan2()
{
return v... | 14c50008dd40d3489437924f2702a4be12489037 | [
"PHP"
] | 3 | PHP | Muhammadnorhalimi18101999/web-app-lanjutan | 4a6f3a111791f59a04625f697bbc347c63a78045 | a1abdb44f7b87b61203407aff098f7943ffd605b |
refs/heads/master | <repo_name>artyomtugaryov/myl<file_sep>/src/sod/BinaryTree.h
#ifndef EXP_BINARY_TREE_H
#define EXP_BINARY_TREE_H
#include "Tree.h"
#include <iostream>
template <class T>
class BinaryTree: public Tree<T> {
public:
BinaryTree(){
this->root = std::make_shared< Node<T> >();
std::cout<<"Cons... | e37d67fa8421e10f1689403b9e048d2f0ab79bf3 | [
"C++"
] | 4 | C++ | artyomtugaryov/myl | e01bd2e4f2e3fe2de0e7f8f1c201db05c0ef5355 | 982090bce6b23432c0cd371805b161bb654d4eb9 |
refs/heads/master | <repo_name>jackie--Li/MyAspwork<file_sep>/MyAspwork/Sqlconnection/DBconnection.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MySql.Data.MySqlClient;
using System.Configuration;
namespace MyAspwork.Sqlconnection
{
public class DBconnection
{
public static MyS... | 3162f7239d7bdbd1204e9cf5a17c78e3e7fd5e00 | [
"C#"
] | 4 | C# | jackie--Li/MyAspwork | db1f12df0af85a36878e188b500abc2fa017136e | c46c9c458158ee626d6b18526d3b49c8de0da4aa |
refs/heads/master | <repo_name>ChronSyn/keyboard<file_sep>/src/index.js
/* eslint-disable no-unused-vars */
import React, { useEffect, useState } from 'react';
import { Keyboard } from 'react-native';
export default () => {
const [visible, setVisible] = useState(false);
function dismiss() {
Keyboard.dismiss();
setVisible(fal... | 513e323fdf4c890a4bad67de15a0d7d6df123544 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ChronSyn/keyboard | f1404590018b471b0668770da26f1b66c7f69133 | e4bf4edeae8f287cf0095e1dc2766ac3a428eb23 |
refs/heads/master | <file_sep># xfce-animated-wallpaper
WIP. Animated 8bit background that works with xfce.
To install, you have to edit the python program's os.system statement. My directory path is listed, but yours is probably going to be a lot diffierent.
Please note that this project isn't an actuall .gif background, it's just a bu... | 7cd532b9a0cf643832fba3b72b108787e6654572 | [
"Markdown",
"Python"
] | 2 | Markdown | Yamist/xfce-animated-wallpaper | 56440ccc8c530322e3a1785fb265326e9bcf8df5 | efd0880d010cc3f3cdd7260cec84f573db60e217 |
refs/heads/master | <repo_name>tripacai/triphappy<file_sep>/test/controllers/vacnote_controller_test.rb
require 'test_helper'
class VacnoteControllerTest < ActionDispatch::IntegrationTest
test "should get create" do
get vacnote_create_url
assert_response :success
end
test "should get view" do
get vacnote_view_url
a... | 9f7686188a8658389bb50f619de434ad505ef6e1 | [
"Ruby"
] | 3 | Ruby | tripacai/triphappy | a429d6afd42909a128f9fe17d974ac2802bffe3d | a8d3d4b3ccf707e5efbaf9a9a894220227b78e89 |
refs/heads/master | <repo_name>jbates9210/json<file_sep>/handlebars/app.js
var request = new XMLHttpRequest();
request.open('GET', 'https://learnwebcode.github.io/json-example/pets-data.json');
request.onload = function() {
if (request.status >= 200 && request.status < 400) {
var data = JSON.parse(request.responseText);
addH... | 31815abcaa524f3fc85ad33253fc8e9a52edf7c8 | [
"JavaScript"
] | 2 | JavaScript | jbates9210/json | 05dbbaf14d4a9d3b918acd875137bc4da3c9f32a | f040bb4823c203e5e039f0f4c929f82df2630179 |
refs/heads/main | <repo_name>hmtsai/go_project2<file_sep>/README.md
# go_project2
Here is another repo (another go module) to import github.com/hmtsai/go_project1/hello package
1. create main.go to import "github.com/hmtsai/go_project1/hello"
```
$ cat main.go
package main
import (
"fmt"
"github.com/hmtsai/go_project1/hello"
)
fun... | 700e960d2c040213662ebe5ecca6a9b79cf3182c | [
"Markdown",
"Go Module",
"Go"
] | 3 | Markdown | hmtsai/go_project2 | 32ff8d6fa85d12d4cf8b2ddcb3fa25cbdc19b84f | a0c490320d3f198ba9997a6a32d09613fa3f1d4a |
refs/heads/master | <file_sep>package main;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Turn r = new Turn();
GameControll gc = new GameControll();
Scanner scan = new Scanner(System.in);
gc.start();
gc.showMonster();
r.turnAction();
}
}
<file_sep>package character;
import java... | 4f2829789e33a9d70d36b8eafc087a8e8e297d1c | [
"Java"
] | 5 | Java | sugano-hinako/slalinRPG | 0ce34b5436b69cd66e1dcbe87d2d8b258cf1ee59 | 10e38a2aa249c64ff3cc1de21aee47816597e290 |
refs/heads/master | <repo_name>einsteinreloaded/Project-L<file_sep>/src/containers/HomePageContainer/index.js
import React from 'react';
import HomePage from 'components/HomePage';
import ReadData from 'components/ReadData';
const HomePageContainer = () => (
<div>
<HomePage/>
<ReadData/>
</div>
);
export default HomePageContaine... | 3bff3fa60cba83af3e694fe86913819af907b0ab | [
"JavaScript"
] | 12 | JavaScript | einsteinreloaded/Project-L | a345830d84cd67782bd82982f8d7ecb2dda8ac8e | ecc2ae2e00fadc32076816d48dce48f89a881b63 |
refs/heads/master | <file_sep>import React from 'react'
import {Editor, EditorState, convertFromRaw} from 'draft-js'
class Draft extends React.Component {
constructor(props) {
super(props);
const content = window.localStorage.getItem('content');
if (content) {
this.state1.editorState = Editor... | 53d53d204308675d08f5bc22302b2724ca6cf104 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | IlyaIzr/koblog | 60f4c836f76eb9b3c19e86d47d9c29c3f3cb8eb7 | 1e0439801612df343a19c634e5e28afaeb56356c |
refs/heads/master | <file_sep>package com.ramazan.recipeapp.services;
import com.ramazan.recipeapp.domain.Recipe;
import java.util.Set;
public interface RecipeService
{
Set<Recipe> getRecipes();
}
<file_sep>[](https://circleci.com/gh/ramazan/Spring5-Recipe... | d7a118106d97a2f38a6fe75d8840bdc08adbf7ea | [
"Markdown",
"Java"
] | 2 | Java | ramazan/Spring5-Recipe-App | e725486fefdd1655f2d7d5dda32bf99ae880901e | f432a94638bca3be86b71d92db921abf39edb4ad |
refs/heads/master | <repo_name>kitfbgh/104_crawler<file_sep>/README.md
# 104_crawler
> 練習Django與Python爬蟲

<file_sep>/crawler_104/Job/views.py
from django.shortcuts import render
from django.http import HttpResponse
from django.views.decorators import csrf
... | b5051af07230b16e4e91a8447051a068dd76fc06 | [
"Markdown",
"Python"
] | 2 | Markdown | kitfbgh/104_crawler | 1d27caf22afff61e3f8c89dfb6cb5b5ef1f8da43 | a568647def2bac639faecea57df37090f9b0ae47 |
refs/heads/main | <file_sep>using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.InputSystem;
[Serializable]
public class MoveInputEvent : UnityEvent<float, float> { } // created a public class that is a unity event. need this for events that take inpu... | d2296414b08061c586df30a8e809d60a4e04ae7c | [
"Markdown",
"C#"
] | 3 | C# | Steamedhams89/3rd-person | 00d8a0d8572f2eb766ce3eebe98ff661c82abdde | c5aeef5334b387ea2736250338339dd461723d12 |
refs/heads/master | <repo_name>TheSledgeHammer/Groovy-Data-Structures-Algorithms<file_sep>/build.gradle
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
name = "bintray"
url = "https://dl.bintray.com/thesledgehammer/development/"
}
}
}
plugins {
id 'groovy'
... | 34ad71692c4d21ebb9a207ed59ef8c8187a82e88 | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 5 | Gradle | TheSledgeHammer/Groovy-Data-Structures-Algorithms | 19e58e561988c8cc84abd0d157b907a225bc5643 | e11340dc8d06614561df366c851ec50c42d1a114 |
refs/heads/master | <file_sep>from pytest import mark, raises
from elasticsearch import NotFoundError
@mark.asyncio
def test_custom_body(server, client):
server.register_response('/', {'custom': 'body'})
data = yield from client.info()
assert [('GET', '/', '', {})] == server.calls
assert {'custom': 'body'} == data
@ma... | b18825e351b16580b017829aa6148a419118ed05 | [
"Python"
] | 1 | Python | evertlammerts/elasticsearch-py-async | f67ff11b022287aa7b50e6c1e3039e1f1435bfe0 | 0ace99733f3192b99fe5f61bb1123824da0aa6eb |
refs/heads/master | <repo_name>dolk13/Email_Client<file_sep>/client.py
'''
Created on Dec 21, 2011
@author: stas
'''
# Test
import os
import tkinter
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
import smtplib
import datetime
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipar... | d3dbe8109e6e9531863e677fb94d1470c555a059 | [
"Python"
] | 1 | Python | dolk13/Email_Client | 4c9c2c1e791f532bc3190d148011b78162b635c0 | 6812d1216863be55836be46ba2b4caa3a587a79d |
refs/heads/master | <repo_name>Heavencraft/heavencraft.github.io<file_sep>/js/radio.js
var radio = null;
$('#radio-button').click(function() {
if (radio == null) {
radio = new Audio('http://ns343556.ip-5-135-186.eu:8000/heavencraft');
}
if (radio.paused) {
radio.play();
$('#radio-button-img').attr('src', 'images/radio_on.png');
... | 44ae984059d177fe117a9001b2d7bdba0dd0a6bd | [
"JavaScript"
] | 1 | JavaScript | Heavencraft/heavencraft.github.io | 5122cb026c6d20e1fc0964f9f2f964b2720d59f0 | cb3ff6ce9c7985881a0358d5e2138aa6b31bc449 |
refs/heads/master | <file_sep>//-----------------------------------------------------------------------------
// HelloUser2.java
// <NAME>
// <EMAIL>
// CS12M - Thursday 2pm-4pm
// July 4, 2017
// Lab 1
// Prints greeting and User's current working directory to stdout
//---------------------------------------------------------------------... | 60456095eff2e099f71263be304a8a0396ca44fa | [
"Makefile",
"Java",
"Python",
"C",
"Shell"
] | 20 | Java | valenzuelaIII/Classwork | bc784218455bd786f8b6bc4919a5dc2947d6ccf3 | 0c587b1d0d224cc60a6d4b18f79d026767117ee5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.