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 | <file_sep>import java.util.ArrayList;
import java.util.Arrays;
import java.util.OptionalDouble;
import static java.lang.System.*;
public class main {
public static void main(String[] args) {
function a = new function();
//Population initialized
double prev_best = 0;
doub... | dbf4fdc5b3c3fd6233287102953d8fd802434e82 | [
"Java"
] | 1 | Java | Murtaza-Kazmi/evolutionary-algos | 6a10534ae0e685ba9e1a936679683bc7bfe489cd | 44c8bd357dc976ec92fb6266073d10d9592d8ce5 |
refs/heads/master | <file_sep># Node_pcset
读取鲁大师导出电脑配置`txt`文件,转为`excel`表格输出
`txt`文件放入`fileIn`文件夹,输出文件夹为`fileOut`
## 使用方法
### 下载依赖
```shell
# npm install
```
### 打开运行
```shell
# node app.js
```
或者 双击运行`start.bat`
<file_sep>const express = require('express')
const template = require('art-template')
const fs = require('fs')
const bod... | 5463bdd3b3e58ca1cbe0bf2078114f14f24673d2 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Aogawa-lan/Node_pcset | d5b8b8d5cdbe043761c2fd0194a1892807bab146 | 6e149fc66549ee3fd67370dab58b3a93c32a45c9 |
refs/heads/master | <repo_name>lcv-idlab/wellbeing-website<file_sep>/src/assets/js/main.js
import $ from 'jquery';
import anime from 'animejs';
import Flickity from 'flickity';
import mostVisible from 'most-visible';
mostVisible.makeJQueryPlugin( $ );
window.jQuery = $;
require('@fancyapps/fancybox');
$(() => {
if($('.slideshow').len... | 5a035a00cd0e821ef1cd3dea9e68b6b51655d347 | [
"JavaScript",
"Markdown",
"PHP"
] | 22 | JavaScript | lcv-idlab/wellbeing-website | 315eefa002e8742cbbcb43df403c9309027e3235 | a677bffe5afe80669e3b98798f50b7e25365875f |
refs/heads/master | <repo_name>FuturaSoft/pabana<file_sep>/src/Mvc/Controller.php
<?php
/**
* Pabana : PHP Framework (https://pabana.futurasoft.fr)
* Copyright (c) FuturaSoft (https://futurasoft.fr)
*
* Licensed under BSD-3-Clause License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of f... | 84abd55496462a9a2a6d630fa4ef5188b5d891e9 | [
"PHP"
] | 3 | PHP | FuturaSoft/pabana | b3a95eeb976042ac2a393cc10755a7adbc164c24 | 23ee3f68d4eab66886f330b5a9f60e31a0998e68 |
refs/heads/master | <file_sep><?php
use Illuminate\Database\Seeder;
use Faker\Factory as Faker;
use App\Invoice;
use App\Product;
class InvoiceItemsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker::create();
// following line retrieve all the invoice_id... | 8a91c9606225f2b5a10a609b50ddcafa2f7a59ad | [
"PHP"
] | 83 | PHP | stleroux/twb2018 | 37e3dbcd1ebd989480d4b324cc228cbefbbd68e1 | af085b1c358238b982338abeacebfa934e9bb3f3 |
refs/heads/master | <repo_name>CSC164-Spring2015/PS1<file_sep>/src/MainPackage/MoscoJ.java
package MainPackage;
public class MoscoJ {
public static void PrintLine(String msg)
{
System.out.println(msg);
}
}
| e3dcb911f0a4396894c4b1d9e52481dc2a48d979 | [
"Java"
] | 1 | Java | CSC164-Spring2015/PS1 | 1dbf6d6ecb3e65d2153c443f7f2b57f459d5ce13 | 4b9fb39eb18c9f3454c62c3a39dea0b07af758fb |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.IO;
namespace array_manipulation
{
public class ArrayManipulationFixture
{
public ArrayManipulationFixture()
{
TestCases = new Dictionary<string, TestData>();
LoadTestCase("testCase1");
... | 06997f38d39b9e09ebd61d9a3e1c1c51d7d586a4 | [
"C#"
] | 44 | C# | pablogo1/algorithms | 3ea04cffb30e3f3ec5cafca25681972aeffa87a1 | 9275d4322361df3168c26f82ae7af8c08035b498 |
refs/heads/master | <file_sep>import unittest
from cloudr.utils import change_path_prefix
class TestUtils(unittest.TestCase):
def test_change_path_prefix(self):
self.assertEqual(change_path_prefix('/123', '/', '/'), '/123')
self.assertEqual(change_path_prefix('/123/234', '/123', '/123'), '/123/234')
self.ass... | be3df82bb67f35f30a1df0b6178d12de11a00c68 | [
"JavaScript",
"Python",
"Markdown"
] | 24 | Python | cnbillow/cloud-file-manager | d3be3021a28213d08da95733d4b2b3f271de7bbe | 98ca882bb2fda021a2954138c915e3800681dd52 |
refs/heads/master | <file_sep># Rack Dictionary
To use this open dictionary.rb with ruby. This will start the WEBrick server which by default is on port 8080.
Then in a browser navigate to localhost:8080/?word=Ruby (or whatever you want to find)
If the word is not found in the dictionary it will tell you so.
<file_sep>require 'rack'
c... | 480a494c910d67b82cf87fba5499bbdd62089880 | [
"Markdown",
"Ruby"
] | 2 | Markdown | EricRichardson/rack_dictionary | 7643f80028ffaf9a1678a3987cbdd3772425574b | 89015357db4909b90a361952013b86de81a0fd0a |
refs/heads/master | <repo_name>xplorebits/xploreoffice<file_sep>/README.md
# XploreOffice: Office Open XML Documents to HTML Converter.
xploreoffice is designed to parse Office Open XML standard documents into HTML documents.
> Under development
## Overview
The aim of this project is to convert Open Office XML (<b>.docx</b>, <b>.pptx</b... | 919e9cdb0a6da89e51159a804b022f5f2ba0c5bb | [
"Markdown",
"JavaScript"
] | 3 | Markdown | xplorebits/xploreoffice | 324b559e42c4bb6aa20f25a6adaadf44d9266ebc | ecc5cea9f9d9ad7ca27fd0bcad4e0740bf13f8aa |
refs/heads/master | <file_sep>mkdir -p out/
cat src/header.html src/index.html src/footer.html > out/index.html
| bb4ff62ae1cfd6a512f94b2e32586482747481a5 | [
"Shell"
] | 1 | Shell | darthmaim/deploy-test | 61e0a5cc6be9a768d2a604d087b4e897cd9f2c86 | 4561570386fe25b31d29946fc5aa46b667eca69c |
refs/heads/master | <repo_name>jschwellach/flog<file_sep>/log_test.go
package main
import (
"fmt"
"math/rand"
"time"
"bou.ke/monkey"
)
var stopped = time.Date(2018, 04, 22, 9, 30, 0, 0, time.UTC)
func ExampleNewApacheCommonLog() {
rand.Seed(11)
monkey.Patch(time.Now, func() time.Time { return stopped })
defer monkey.Unpatch(ti... | 07a967bfcf71ae0e38fe4262d7bbfab4bc817691 | [
"Go",
"Dockerfile"
] | 4 | Go | jschwellach/flog | 65993d10891508404a0f16dc7919a25d6b789ef5 | ee65bf213c667ff9b3e091701f7de9ffcda530b0 |
refs/heads/main | <file_sep>POD_CIDR=$1
API_IP=$2
echo "[TASK 1] k8s cluster images pull and init"
sudo kubeadm config images pull
sudo kubeadm init --apiserver-advertise-address=$API_IP --pod-network-cidr=$POD_CIDR >> /root/kubeinit.log 2>/dev/null
echo "[TASK 2] Correct internal ip for the nodes"
ETH0=$(ip -f inet addr show... | c5507d6f41b70b9f8d3234d4f7847a795e448d53 | [
"Markdown",
"Ruby",
"Shell"
] | 5 | Shell | sudonewdev/k8s-vagrant-windows10 | 21e35382dee70d0249dd9dc58caaa1e27dac2d75 | dfd540addc4eb3ebbe1f0d12c238124fb91f37d0 |
refs/heads/master | <repo_name>Mohammedredabric/Info-Atlas-V1<file_sep>/app/Http/Controllers/PostController.php
<?php
namespace App\Http\Controllers;
use App\Http\Requests\PostRequest;
use App\Models\Post;
use Illuminate\Http\Request;
use function foo\func;
class PostController extends Controller
{
/**
* Display a listing of t... | 1d2af92b2b7bf78ed811752b377a1fc60d7aaeca | [
"PHP"
] | 25 | PHP | Mohammedredabric/Info-Atlas-V1 | 7630d48ae87cac4fc417281c7fa0ab6e6dd27813 | 885aa0d3e94fe754d00005be812ba367ad3edc83 |
refs/heads/master | <repo_name>FatbardhKadriu/Modelet_e_te_dhenave<file_sep>/Pjesa e pare/Projekti_Modelet_e_te_dhenave_dhe_gjuhet_e_pyetesorve/Oracle/views.sql
CREATE VIEW CilesiaAjrit_View AS
SELECT C.Aid,
C.Vendi,
N.Ndotesi,
N.Data_Koha,
N.Koncentrimi,
N.VleraMax_Lej... | 72877e02756918c740f2f7c62e9cf0630384906d | [
"Java",
"SQL"
] | 4 | SQL | FatbardhKadriu/Modelet_e_te_dhenave | eff16e1e9fd44ed95c662f2f07994a64d404caf4 | cddb80e07f998d951607775fe46c74fe20a19158 |
refs/heads/master | <repo_name>8264044685/user-managemant<file_sep>/pages/urls.py
from django.urls import path, include
from . import views
from django.conf.urls.static import static
from django.conf import settings
urlpatterns = [
path('',views.index,name= 'index'),
path('welcome',views.welcome,name= 'welcome'),
path('show_d... | 96b0e65b5ba5413e1ceba7c47b4ceba105036881 | [
"Python"
] | 11 | Python | 8264044685/user-managemant | a0ad87713a13e0a1dbcefff09be78c8b9ee252db | c8521e066fd14e4092d37505becfeb4d7bff9f67 |
refs/heads/master | <repo_name>OSBRProj/EduLabzz1<file_sep>/app/Turma.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Input;
class Turma extends Model
{
//Preenchiveis
protected $fillable = [
'id',
'user_id',
'titulo',
'descricao',
'codigo_c... | d8c316df7b020b3b6f5fc6e4971a6b12e53ffa98 | [
"Markdown",
"JavaScript",
"PHP",
"Dockerfile",
"Shell"
] | 217 | PHP | OSBRProj/EduLabzz1 | deb01326df9b586cd4aa9080206ba79caf24a98b | 62101a4c5d67b42653496b1abdb2585aec4a1956 |
refs/heads/master | <repo_name>JDSankarlal/EnginesIndividualAssignment2<file_sep>/Assets/_Scripts/BulletPoolManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// TODO: Bonus - make this class a Singleton!
[System.Serializable]
public class BulletPoolManager : MonoBehaviour
{
public GameObje... | d4f193f6f99fa110fe5edcb8d1dd0bceaea273e5 | [
"C#"
] | 1 | C# | JDSankarlal/EnginesIndividualAssignment2 | f57f13278d23a86223b13312854018c1ea51ec59 | 555fe7cbc0234fd65a56d584c20be3784d0ed382 |
refs/heads/master | <repo_name>nininini123/2017-05-16-03-17-18-1494904638<file_sep>/main/main.js
// Write your cade below:
module.exports = function main(vara,varb) {
return vara%varb;
}; | e7eb2ebfce17663ea0edfd00190b3667837dcde2 | [
"JavaScript"
] | 1 | JavaScript | nininini123/2017-05-16-03-17-18-1494904638 | 2a398587e015110caf639b56f834dc286f1a03f3 | 8628999f6671b0d4e5ad64848dbaaf59e527df1c |
refs/heads/master | <repo_name>sportymihir/FoodData<file_sep>/month.rb
class Month
attr_accessor :calories_per_day, :calorie_goal
def initialize(calories_per_day, calorie_goal)
@calories_per_day = calories_per_day
@calorie_goal = calorie_goal
end
def change_in_weight()
change = (calories_per_day - calorie_goal) * 30
change ... | abbbaa9c0f91e7c5b10617ec04913183629d7a63 | [
"Ruby"
] | 6 | Ruby | sportymihir/FoodData | dc748f261d7eafa1fa9632a88a92cab3cd282c8b | b4a4da3ae8a0f8cf04378114b15b746852b1dbb8 |
refs/heads/master | <repo_name>dctacademy/hello-dct-weekday-oct-2019<file_sep>/PravinGoswami.js
console.log("I am a Fullstack developer & designer")<file_sep>/PravinIronman.js
console.log("Iron Man is the most fanous Superhero in the marvel")<file_sep>/rachCatwoman.js
function CatWoman(){
return 'Gotham is going to die'
}<file_sep>/ha... | 3091113ed3c6ffcd70cc35162476bd6472272ec2 | [
"JavaScript"
] | 6 | JavaScript | dctacademy/hello-dct-weekday-oct-2019 | a3fdf34dfcdcede06b346f053b2bce76dec88499 | 43a71dc000dea55f7ed8c128601ed93b43537d2b |
refs/heads/master | <repo_name>Zhidunov/first-nodejs-server<file_sep>/src/app.js
const express = require("express");
const app = express();
app.use((req, res, next) => {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Methods", "GET,PUT,POST,DELETE");
res.header("Access-Control-Allow-Headers", "Cont... | 499b549eafda243b0fbe658dd9471649cb141db9 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Zhidunov/first-nodejs-server | 453866e0574858fbbeb4afbf515e13b31e15ce80 | ea0e83ca85b04a1bb5773d099913000adc2ffa0d |
refs/heads/master | <repo_name>TheKingdomDev/NETCRUD<file_sep>/Models/netcrudContext.cs
using Microsoft.EntityFrameworkCore;
namespace NetCrud.Models
{
public class NetCrudContext : DbContext
{
public MvcMovieContext (DbContextOptions<NetCrudContext> options)
: base(options)
{
}
public... | 740a9fc8c60c1efc27cc24ba4188010351d058d8 | [
"C#"
] | 2 | C# | TheKingdomDev/NETCRUD | 941cc754605b9fb26b2114cb77e70370e7b8f634 | 765d67f35abbfbd01afdb43efaa59a0af0762178 |
refs/heads/master | <repo_name>billyjf/CRUDUsers<file_sep>/settings.gradle
rootProject.name = 'CRUDUsers'
<file_sep>/src/main/java/com/billyjf/resources/UserResource.java
package com.billyjf.resources;
import com.billyjf.api.User;
import com.codahale.metrics.annotation.Timed;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
impo... | f18c108bd995efb0822dc97edfe3379f9878d68d | [
"Markdown",
"Java",
"Gradle"
] | 6 | Gradle | billyjf/CRUDUsers | a8e460c6195c66d147fe88e272f3cc993d5a0b82 | 10ab65393b16893095c124e8bfb31effdc437976 |
refs/heads/master | <repo_name>agustinmesas/react-scaffold<file_sep>/src/store/moduleName/services.js
import axios from 'axios';
export const getAPI = params => axios.get(`url/${params}`);
<file_sep>/src/components/Example/index.jsx
import React from 'react';
const ExampleComponent = () => <h1>Component</h1>;
export default ExampleComp... | 5440ddef8a7e3bf3f9cc5723e05c9832fe9c5800 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | agustinmesas/react-scaffold | 0a05577b1efc9ed288fef76383d7103d0224de84 | a90d98fb0845da966de6db3d6f2eccaec921a9d4 |
refs/heads/master | <file_sep>import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class Net(nn.Module):
def __init__(self,cf):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(1, cf['conv1'], kernel_size=5)
self.conv2 = nn.Conv2d(cf['conv1'], cf['conv2'], kernel_size=5)
... | a49e7e4bcfcdabfcc035d5592b3adc7681cd146f | [
"Markdown",
"Python"
] | 3 | Python | shubhampachori12110095/ssl | 5a2ae63a0b4d21f1ddc54e5da194d12aa2585c96 | 0e9f72408666c12fe57dd9febf00d85390bfde16 |
refs/heads/master | <file_sep>=======================
Oslo Dependency Graph
=======================
This repository contains some tools for working out the dependencies
between various libraries, being managed under the OpenStack Oslo
program.
The status.txt document comes from (and should be synced with)
https://wiki.openstack.org/wik... | 9e0a54fd3ca1c80ac13014c49990e40e018a91ea | [
"Python",
"reStructuredText",
"Shell"
] | 5 | reStructuredText | dhellmann/oslo-dependencies | 169d2b513579bd1a858e6b725abbf4a75c53f1fa | 1ee74f050a0e5d5ac48dce5125bc4b874d026486 |
refs/heads/master | <file_sep>from __future__ import absolute_import
from __future__ import print_function
__version__ = "0.2.2"
import multiprocessing, asyncio, logging, concurrent.futures, time, uuid, sys
class AsyncCall(object):
"""Describes a call to the pipeline.
Parameters
----------
targetMethod : str
... | 39014ed1f26651dc5aabb78476984eb400b2236e | [
"Python"
] | 1 | Python | raghavnprasad/dualprocessing | f657aff8d06b17f45c590b23d92f0ca6bffbae7d | 24d9ee1dd0450596285c22825fb0a75dc3f5ea05 |
refs/heads/master | <file_sep>## stayexpert-haytt 
a SDK of hyatt hotels APIs. [WIP yet]
`haytt` namespace was taken by haytt hotel group, now using `stayexpert-haytt` instead.
### Installation
```bash
$ npm install stayexpert-haytt --save
```
### Example
```js
var hyat... | caf29692c0a851263bd0cf48193a73d6d86af068 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | StayExpert/hyatt | 6237de6a697f3424f4f74674140da9bab7849d1c | d555469ca5af6e9939d82db1d5a0bbf6e2050d95 |
refs/heads/master | <file_sep>$('#search-button').on("click", function(event) {
event.preventDefault();
var searchTerm = $("#search-term").val();
var numRecords = $("#records").val();
var startDate = "&begin_date=" + $("#start-year").val();
var endDate = "&end_date=" + $("#end-year").val();
// var searchTerm = 'election';
... | f40b1d048228637d3bc2ec2a429a4292110b070e | [
"JavaScript"
] | 1 | JavaScript | amandalragone/NYTimes | c15b90ad7559b717549f66ba71614b0f02b857e8 | c72284fde78d282fa23bd7524d1b3b8393585b90 |
refs/heads/master | <repo_name>wlam0001/jmoc583-project3<file_sep>/README.md
# jmoc583-project3
#League of Legends Champion View
With this application, you can select the champion based on class and then their name to view their picture.
Install
$git clone https://github.com/wlam0001/jmoc583-project3
Run
$serve -p 3000
<file_s... | cc520c27da51e83117db066f036bb2a0d41507ca | [
"Markdown",
"JavaScript"
] | 2 | Markdown | wlam0001/jmoc583-project3 | c059b16b60c63de06b150724d28aa3aac606b438 | cab6c867639963c170f067ed4a1c454289be2d67 |
refs/heads/main | <repo_name>nankeen/infos-doom<file_sep>/userland/ls/main.cpp
/* SPDX-License-Identifier: MIT */
#include <libcore.h>
int main(const char *cmdline)
{
const char *path;
if (!cmdline || strlen(cmdline) == 0) {
path = "/usr";
} else {
path = cmdline;
}
HDIR dir = opendir(path, 0);... | f599549cd89cd9d97e4cca6268a773b2bf1166ba | [
"CMake",
"Markdown",
"C",
"C++",
"Shell"
] | 22 | C++ | nankeen/infos-doom | f0133fa881f4246349cc8bf2b8a439744de2e217 | 22241a8720a3a12bd6255d4b6d0b3bc6608f6d8e |
refs/heads/Media-streaming-backend | <repo_name>pledovski/MusicFarm<file_sep>/client/src/components/profile-forms/AddRelease.js
import React, { Fragment, useState } from "react";
import { withRouter } from "react-router-dom";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { addRelease } from "../../actions/release";
con... | 521bbea3f741db843aba6a19c3949caaec164ccc | [
"JavaScript"
] | 11 | JavaScript | pledovski/MusicFarm | 0d2a18cf2ffd5ce7b286c7156814cd1bc6098572 | 7d52e9ff9a6743212c965c1e313f1aa0a31ca91a |
refs/heads/master | <file_sep>import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { wardrobeActions, authActions } from '../actions';
import NavigationBar from './NavigationBar';
import 'react-multi-carousel/lib/styles.css';
// Slick carousel
import Slider from 'react-slick';... | 5a21137ad3841a03a2d5adec77e40285404ad3ec | [
"JavaScript",
"Python",
"Text",
"Markdown"
] | 32 | JavaScript | Malassu/WWW-Services-2019 | 29d386d607b4564a91165cb08af9bcc5b5481b12 | 26c29da68322490083118bce8faccaac7cf2e46e |
refs/heads/master | <file_sep># Kong Demo
A simple, neatly contained Kong+Konga+Postgres composition to get your hands dirty
#### Images included:
- [Kong](https://hub.docker.com/_/kong/) - API gateway
- [Konga](https://hub.docker.com/r/pantsel/konga/) - GUI for Kong
- [Postgres](https://hub.docker.com/_/postgres/) - Persistent storage... | 4fc4b515f89b7c47d1f1c1437c76199ed786e4e8 | [
"Markdown",
"JavaScript",
"Dockerfile"
] | 3 | Markdown | dorucioclea/kong-demo | da5f29e7ae86902d747e013cac1f0bd8bee2b953 | e25b2cfcf8708530d9a02a00e8cfdbbc9c2dfc18 |
refs/heads/master | <repo_name>and-digital/dekker-arc<file_sep>/services/casestudy.service.js
var ToDo = require('../models/casestudy.model')
_this = this
exports.getCaseStudies = async function(query, page, limit){
var options = {
page,
limit
}
try {
var casestudies = await CaseStudy.paginate(query,... | dda283cd5ae39ca0da15ccf98e6d4e6e272b85cc | [
"JavaScript"
] | 2 | JavaScript | and-digital/dekker-arc | 579e108b3f0a7e2dc890013c0e2e0b6ee0d4caf6 | a7adaf5658793d3fec8fe2598c5bf7162af579fb |
refs/heads/master | <repo_name>eilin/bleinky<file_sep>/README.md
# BLEinky
An arduino blinky program that's controllable with BLE.
## Hardware
- Adafruit Feather nRF52 Bluefruit LE
- Adafruit NeoPixel Ring - 12 x 5050 RGB LED
## Usage
Connect and send commands using the Adafruit Bluefruit LE app.
Put the BLEinky outside your office and... | 1b1ac51e4de2926e301ae5b3de17055894df153e | [
"Markdown",
"C++"
] | 2 | Markdown | eilin/bleinky | 1a13986c0deb371c26c99b36b22cd8b49852776e | 5d9a2df7521dbb4f26816c78b122e21a5f2b06fb |
refs/heads/master | <file_sep>from models import *
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
engine = create_engine('sqlite:///practice.db')
Sesion = sessionmaker(bind = engine)
session = Sesion()
q = session.query(People).filter_by(id = 1)
q = q.filter_by(first_name = "name")
print(q)<file_sep>fr... | e4cbcf56750cc6d6f7484e5a0eb5fa7533166a9b | [
"Python"
] | 5 | Python | pogibel/Rest-API | 1737473c0cfb6c259ef71d70bb3b53ddbae818f5 | c06464656ed609506371abc4ebfa402e543d3473 |
refs/heads/main | <repo_name>zaidsh98/class-201<file_sep>/js/app.js
let consType = prompt ('What type of consol you play on ?')
console.log(consType)
let kind = prompt ('what is your favorite kind of Games ?')
console.log(kind)
let favGame = prompt ('what is your favorite Game ?')
console.log(favGame)
let favChar = prompt ('Who is yo... | cb397fc20423deac1043211e393498ab7c47011d | [
"JavaScript"
] | 1 | JavaScript | zaidsh98/class-201 | ebdb6676d00c7d19360df44650a1c8362fd0ed9e | d29bd13492f1a8c8f321fc0504fcb6c9d87b0c64 |
refs/heads/main | <file_sep>package controllers
import (
"ambassador/src/database"
"ambassador/src/models"
"github.com/gofiber/fiber/v2"
"golang.org/x/crypto/bcrypt"
)
func Register(c *fiber.Ctx) error {
var data map[string]string
if err := c.BodyParser(&data); err != nil {
return err
}
if data["password"] != data["passwo... | b8b3b437aa7735658daf1f758340337879a71d15 | [
"Go",
"Dockerfile"
] | 4 | Go | nexusstar/GoAngular | 002102b98d6a9e101a9c71d22b7c6de83f9eeeeb | 60746daf96d9f9554be9a5400ad4442a70f7e85b |
refs/heads/master | <repo_name>rockking1379/ItemTracker<file_sep>/src/org/itemtracker/common/objects/Loan.java
package org.itemtracker.common.objects;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Represents a loan
* Created by james on 5/29/15.
*/
public class Loan
{
private int loa... | dbdb89cba785f82457751e1edf88d74f428d1f8c | [
"Java"
] | 4 | Java | rockking1379/ItemTracker | 2caef623cb34c2716a15a7eee955d1b032b4432d | adf5f7f511a9d6e75e6474e1e7b427341cfac755 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Folder.py -- part of py1drive
# Copyright (C) 2015 <NAME>
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
class Folder(object):
def __init__(self, childCount=0):
self.childCount = childCount<file_... | 153360c0e239ba064ce6b8fb4d5e15cd37e57b5b | [
"Python"
] | 16 | Python | stanionascu/py1drive | 9a1aec6cbb65d2eb6a49deafd8565ed7a90b8379 | 5128939aec7cac4aaf802794bfe838d492aa098f |
refs/heads/master | <repo_name>linelect/uaapi<file_sep>/src/main/java/com/linelect/uaapi/model/House.java
package com.linelect.uaapi.model;
import javax.persistence.*;
@Entity
@Table(name = "house", indexes = {@Index(name = "house_number_idx", columnList = "house_number")})
public class House {
@Id
@GeneratedValue(strategy = Gen... | ac70f014190cb57aab7797cc97408b7049659b37 | [
"Java"
] | 6 | Java | linelect/uaapi | 7874a7ea380c309de8bbf361b5ef64f9c118741c | 955b87b4debc7e7044c1f4f2d378ab67c25a56f2 |
refs/heads/master | <repo_name>mohdirshad/FacebookPage<file_sep>/requirements.txt
appdirs==1.4.0
Django==1.10.5
django-braces==1.10.0
django-oauth-toolkit==0.11.0
django-rest-framework-social-oauth2==1.0.5
djangorestframework==3.5.3
oauthlib==1.1.2
packaging==16.8
PyJWT==1.4.2
pyparsing==2.1.10
python-openid==2.2.5
requests==2.13.0
reques... | c330d9eb957e808725d8c49b316b5d645ae9cb51 | [
"Python",
"Text"
] | 6 | Text | mohdirshad/FacebookPage | 7219752364fa913363d5917710ce093da36e7ea8 | d337cff3cdb2977df8525fdfda28f074e494c61b |
refs/heads/master | <file_sep>/*
Programa: brujeria.c
Sinopsis: Ejemplo de uso de caracteres
Fecha: Enero 2018
Autor: <NAME>
Versión: 1.0
*/
#include<stdio.h>
int main() {
char letra; //variable de letra
//Un mensaje misterioso...¿lo adivinas?
letra=65;
printf("\nLetra: %c", letra);
letra++;
printf("\nLetra: %c", letra);
letra+... | 38722a31a85b108a12980b46b3f98836167a7a69 | [
"C"
] | 5 | C | UBU-GII-PRG/Tema_4_Otros_datos_Simples | 2f74e1438e3de75b2d31d128ed4a4696a3573eb1 | c9db7545a553765f2c73f852665f444d26335d97 |
refs/heads/master | <file_sep>package client_code;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.concurrent.BlockingQueue;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.ShortBufferException;
public class Me... | 05a46dad60bc7cf832dd92da0a51073d3711f030 | [
"Java"
] | 4 | Java | Clast/ChatClient | 75cdc9fe03b004cc064781cd4b7e54f995d78c7c | 1128a0024a18d6d9671ee252d03e363cd90787a3 |
refs/heads/master | <repo_name>c0urg3tt3/glimmer.js<file_sep>/packages/@glimmer/compiler-delegates/src/delegates/module-unification.ts
import { BundleCompilerDelegate, AddedTemplate, Builtins, BuiltinsMap, Name, ModulePath, Identifier } from '../bundle';
import { getImportStatements, OutputFiles } from '../utils/code-gen';
import { Bundle... | 57ea3dbf937aac305644df0e5eb0040dc392a229 | [
"TypeScript"
] | 8 | TypeScript | c0urg3tt3/glimmer.js | 8bd13187a5016ef9bddd1256d027ff923c9e4e63 | e15d618db422e42200c0339d2706fcd9749716a6 |
refs/heads/master | <file_sep>package searchFileByWord;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Re... | fb383796d7f7049bb1f5cad7dee9f84289a00644 | [
"Java"
] | 13 | Java | ttllmm/mr | 647df37037961e3f083aa12699d4a539a0737fb2 | 81628ae7682285e825f9cdcd91895f3d770427ca |
refs/heads/master | <repo_name>lovincyrus/shopify-frontend-challenge<file_sep>/validation.js
document.getElementById("sign-up").addEventListener("click", checkEmail);
function checkEmail() {
var userInput = document.getElementById("email");
var interestedIn = document.getElementById("interest");
var mailformat = /^\w+([\.-]?\w+)*@\w+(... | 6769823e6839be12a07f7db3ff9b4f71165d6a89 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | lovincyrus/shopify-frontend-challenge | df3228a59f8c95173dd2c446299d268dc1691b96 | 53b1656c3a232d9ea601632f5110a92f5900cb8a |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace vonglapwhile
{
class Program
{
static void Main(string[] args)
{
#region Uoc chung lon nhat
int a, b;
Console.WriteLine("Nh... | 4df206c91f4373177b64ee675c371f63ce561a7c | [
"C#"
] | 23 | C# | minhthong141096/luutrucode | a9d6a981f617b75e2d8826b920d926d6e8416b54 | 2a5b019f95c80e2f3b0aa0e83a90ae9211a91af8 |
refs/heads/master | <repo_name>Loftier/SimpleCalculator<file_sep>/app/src/main/java/com/example/loftier/simplecalculator/Calculations.java
package com.example.loftier.simplecalculator;
public class Calculations extends Calculator
{
}
<file_sep>/app/src/main/java/com/example/loftier/simplecalculator/Calculator.java
package com.example.lo... | 41aa500b8939e474d0f0f807ec2509ae855c4aa5 | [
"Java"
] | 2 | Java | Loftier/SimpleCalculator | 6d0d9698543f8bed12c68c3e8078caa3b117cbf0 | 60da88a1c25f6b09d443056b02af0ab1536c6aee |
refs/heads/master | <repo_name>AnnikaChauhan/flappy-game-part-two<file_sep>/Obstacle.js
export default class Obstacle {
constructor(obstacleID){
this.obstacleID = obstacleID;
this.height = this.setObstacleHeight;
this.width = 100;
this.obstacleRight = -80;
}
setObstacleHeight = () => {
... | 73fff22fe2b8431fddf8ba3ce5d27f8d5ce9be91 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | AnnikaChauhan/flappy-game-part-two | 0595f1f544afaddfbcb86c4bf9ef980950909059 | 00697fb5525709322ef457dfbf1ff12762350b61 |
refs/heads/master | <file_sep>#include <iostream>
#include <string>
using namespace std;
int main()
{
int A,H,B;
string W ;
cout << "Digite su nombre: "<< endl<< W;
cin >> W;
cout << W << " Con este programa encontrara el area del triangulo" <<endl;
cout << "Digite el valor de la base"<< endl;
cin >> B;
cout << "D... | c9073ce3dd6665e21fe2515aa2ebf997059400c5 | [
"C++"
] | 1 | C++ | Wanner66/Practica1 | efa4bd132a14bf5e9a1ecaa6ff205a7075bf1206 | 6dfebe05a2edd33702450fd6b72593e545a7b9af |
refs/heads/main | <file_sep>import React from 'react'
const TodoCalender = () => {
const date = new Date();
const day = date.getDate();
const weekDay = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thirsday", "Friday", "Saturday"][date.getDay()];
const month = [
"January",
"February",
"March",... | a47ad57667d260efccb394ecbbb6fb70fb402eea | [
"JavaScript"
] | 3 | JavaScript | Digilearning1/React-Todo-List-App | ca8eb2b33319a53c7fb524a670032ef6e4cdbf17 | b132f04c2d8997b4877dcc60afa8df9c39dc5b5e |
refs/heads/master | <file_sep>#!/bin/bash
apt-get update && apt-get upgrade
apt-get dist-upgrade
apt-get install deborphan
deborphan
apt-get clean && apt-get autoremove --purge
apt-get update && apt-get upgrade
apt-get dist-upgrade
apt-get clean && apt-get autoremove --purge | 8680e447af146eb34a927a218fb1d72a08e43c2e | [
"Shell"
] | 1 | Shell | ltruchot/rasputil | 9182b543cb7a43752567db166e1eaf91153c0102 | fba013344cf968a46cf4fc24594e438410c3e736 |
refs/heads/master | <repo_name>johnbh14/MIT-6.0002<file_sep>/ps1/ps1b.py
###########################
# 6.0002 Problem Set 1b: Space Change
# Name:
# Collaborators:
# Time:
# Author: charz, cdenise
#================================
# Part B: Golden Eggs
#================================
# Problem 1
def dp_make_weight(egg_weig... | 5760843b0da17e243571fea5223eb6e61be381d2 | [
"Python"
] | 1 | Python | johnbh14/MIT-6.0002 | 6c77068610d91414d8043e81f823db44e9b0a930 | 7fc277fefc20d80369920b8d05589e939628d3d3 |
refs/heads/master | <repo_name>NovelBioCloud/JsLibrary<file_sep>/web-library/taskParam/taskParamPlugin.js
/**
* task前台页面参数转为页面控件.
*/
var taskParamPlugin = function(optsIn) {
var optsDefault = {
parentDiv: null,
taskId : null,
taskType : null,
readOnly : false,
isPipeline : false
}
var opts = $.extend(optsDefault, optsIn);
... | e525ddcab67606fb0e6b24a475049067f7bb691d | [
"JavaScript",
"HTML",
"Markdown"
] | 7 | JavaScript | NovelBioCloud/JsLibrary | ae6d78bcbac485e8e241ef799c11c8933b66249b | 1e25257f20c4d5161bd1c47120e24d518f829503 |
refs/heads/master | <file_sep>package com.test.bootreceiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class BootBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
//下面添加 接收到开机完成广播后的要执行的代码
System.... | 528ce60ff9ec5b12d405d9016832e8b47f9e9779 | [
"Makefile",
"Java",
"C"
] | 10 | Java | 1107979819/Android-Demo | e578368ae09e928cc54f2f9c5fdc975057ab43e1 | 38f9320ac14fb15596e47e3f3b65751f7002d919 |
refs/heads/master | <file_sep>'use strict';
/**
* @ngdoc service
* @name metronomeApp.localTranslate
* @description
* # localTranslate
* Service in the metronomeApp.
*/
angular.module('metronomeApp')
.service('localTranslate', function ($translate, LOCALES, $rootScope, tmhDynamicLocale) {
'use strict';
const localObj = L... | 259da9bda7a9a5c8b7dc497243b33edee57d5cd4 | [
"JavaScript"
] | 5 | JavaScript | Valentin-Bonnard/metronome_front | 11b0ceaf258a415f8f196761ca335205541ce640 | b6d4feb8573e0c51a489861f1c2b682855e52c0d |
refs/heads/master | <repo_name>mejdi5/chat-app<file_sep>/src/pages/auth/Auth.jsx
import React, {useState, useEffect} from 'react'
import './Auth.scss'
import { useNavigate } from 'react-router-dom'
import { createUserWithEmailAndPassword, updateProfile, signInWithEmailAndPassword } from 'firebase/auth'
import { firebaseAuth } from '../../... | abaef6a5a41d0acb8256ccd5b244f5346203e899 | [
"JavaScript"
] | 6 | JavaScript | mejdi5/chat-app | ab002c87ae43a6a85e2ea1738895a7ab02c4ac7e | d2de5c6419cc43d886399b0dbebd4914d8bb7579 |
refs/heads/master | <repo_name>ahndroo/CVPython<file_sep>/Chapter1/Ex7.py
import numpy as np
import matplotlib.pyplot as plt
from scipy.ndimage import measurements, morphology
from imtools import *
""" Experiment with successive morphological operations on a thresholded image of
your choice. When you have found some settings that produc... | dd12483e4f864328226176af6e29ff1292482897 | [
"Markdown",
"Python"
] | 11 | Python | ahndroo/CVPython | 2cb58be7f3d98ab53dfeefca691c3fdde695a09a | ea852512805f92b54402e412c3c5fb1d2ecc1289 |
refs/heads/master | <file_sep>(function (global, factory) {
if (typeof exports === 'object' && typeof module !== 'undefined') {
factory(exports, require('lodash'));
}
else {
factory((global.homegrown.utilities = {}), global._);
}
}(this, function (exports, _) {'use strict';
//from stack overflow
va... | 1495a0b1b80044c4dedd3cc2d9b63286f77a96ad | [
"JavaScript"
] | 1 | JavaScript | Dysrel/sailing_calculations | 634df42c2d243c8ea8da2eb6454c1751a9294a8f | bfd1e6daf6ce68aacdea9f2b5d9a0416e2310cce |
refs/heads/master | <repo_name>hanwaer/leetcode_in_C<file_sep>/src/101_SymmetricTree.c
/*
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree [1,2,2,3,4,4,3] is symmetric:
1
/ \
2 2
/ \ / \
3 4 4 3
But the following [1,2,2,null,3,null,3] is not:
1... | 147c56fabadb2ddcacc591da95e1c0fdda238549 | [
"Markdown",
"C"
] | 52 | C | hanwaer/leetcode_in_C | 9d3ef650b11627583fbd6cc4ac22ce5b475b7820 | 7bff565cd8a62a56684db94f1c690a46dcaf5172 |
refs/heads/master | <file_sep>"use strict";
var taskList;
$(function () {
if (window.location.hash.length > 16) {
TaskList.load(window.location.hash.substring(1), function (tl) {
taskList = tl;
$('#taskList').html(taskList.render());
});
} else {
taskList = new TaskList();
taskList.createTask('');
$('... | fe7d94cc2e2bd563c18656fe7a69a5752054a3f4 | [
"JavaScript"
] | 4 | JavaScript | puck3000/Web2Projekt | 59de89b30d15bb349a5d6cb7b67f576120ae0e18 | 62540955f29cae372b6893de5ab9540afb9fb471 |
refs/heads/master | <repo_name>dsyne/whichMultiples<file_sep>/src/js/modules/Block.js
import { multipleLimit } from '../config/config'
import { createNode, toggleClass, hasClass, removeClass, addClass } from '../helpers/helpers'
const activeClass = 'active'
const highlightClass = 'highlight'
export default class Block {
constructor(... | 2679621569c916a1e737f06002d0d7a5cd39a0c1 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | dsyne/whichMultiples | 3f0142006b0e6bfe100c3f9aa7f9a15cbbd3a416 | 975a9bf0be2b252b4f1533e5ee00538d409ae624 |
refs/heads/master | <repo_name>Zanluca/challenge-bossabox<file_sep>/src/components/Modal/ModalAddTool.js
import React, {useState, useEffect} from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { ModalContainer, ModalTitle, ModalBody, ModalFooter, LabelInput} from './style'
import {Button} from '../Button'... | befc85bf18bddcb79912cc0220867e458954bed2 | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | Zanluca/challenge-bossabox | 80643691e0aec22f50d0898853ce3d280abdc241 | 6065b797988fdf064589865b8c37009d98b6d881 |
refs/heads/master | <repo_name>yinhuamin/coolweather<file_sep>/src/com/example/coolweather/WeatherActivity.java
package com.example.coolweather;
import com.coolweather.app.service.AutoUpdateService;
import com.coolweather.app.util.HttpCallbackListener;
import com.coolweather.app.util.HttpUtil;
import com.coolweather.app.util.Utility;
im... | acc24a896fb0aa478f5e4997d50625487aee1eef | [
"Java"
] | 1 | Java | yinhuamin/coolweather | 234542921d0019416b0136044db5537c2d5ade1e | 56625dc93579b55133ac28a9e0848b9d7d08e397 |
refs/heads/master | <repo_name>qinlinsen/servlet-indepth<file_sep>/src/main/java/com/timo/servlet/ExtendsGenericServlet.java
package com.timo.servlet;
import javax.servlet.*;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
/**
* 这是写Servlet的第二种方法继承GenericServlet
* @author 秦林森
*/
public class Exten... | a03e89c09669179a57c547cee4884087e4f92725 | [
"Java"
] | 3 | Java | qinlinsen/servlet-indepth | 63aa8ee6b4451a975571779bff059d274f7357f1 | 15f06fc04fe0107dcfbc16b8d2983dabdca47deb |
refs/heads/master | <repo_name>DanielJWagener/automate-the-boring-stuff-with-python<file_sep>/email/smtpExample.py
import smtplib
conn = smtplib.SMTP('smtp.gmail.com', 587)
conn.ehlo()
conn.starttls()
print(conn.login('<EMAIL>', '<password>'))
conn.sendmail('<EMAIL>', '<EMAIL>',
'Subject: Hi me\n\nDear Daniel, \nWell, h... | e7dee63db0e450192f8144b8626e4f5f8ce5be6c | [
"Markdown",
"Python"
] | 32 | Python | DanielJWagener/automate-the-boring-stuff-with-python | 865da4848bb4ccc15f8e3b57bbca1a3ca0c08474 | fc64f2259fc3895dde1a0a913be9efc74ff21d9b |
refs/heads/master | <repo_name>OverAndBeyondWeb/overandbeyondproductions<file_sep>/js/bundle.js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if m... | 5bc7e17b3e7721d1edd50f88949ad723d2f19df2 | [
"JavaScript"
] | 1 | JavaScript | OverAndBeyondWeb/overandbeyondproductions | d7cbf2ebec89467dfa7733ebe1dc33c02f320dde | 69f70ccafbf6c41380637721d7c1f165bf4cf80a |
refs/heads/master | <repo_name>Qianaol/01_AB<file_sep>/js/scripts.js
// Preloader
$(window).on('load', function () {
console.log(1);
var $preloader = $('#preloader'),
$spinner = $preloader.find('.preloader_icon');
$spinner.fadeOut();
$preloader.delay(300).fadeOut(100);
});
$(function () {
var $page = $('html, body'),
mo... | 0672e264c86993e619b6cfb17acebad479660aaf | [
"JavaScript",
"PHP"
] | 2 | JavaScript | Qianaol/01_AB | 15857d2960de2afbcfc6f867ccecf25763c624db | ca78b50b8c2cb17172fb3c9b4b6efba4e18e53fb |
refs/heads/master | <repo_name>markhao-cb/BDMI<file_sep>/docs/phases/phase2.md
# Phase 2: Viewing Movie Info and Adding Comments
## Rails
### Models
### Controllers
Api::CommentsController (create, destroy, show, update)
### Views
* movies/show.json.jbuilder
## Backbone
### Models
* Movie (parses nested `comments` association)
* Comme... | bb05bcc98c73d553d2dd28c55f5ea509712025a9 | [
"Markdown",
"JavaScript",
"Ruby"
] | 78 | Markdown | markhao-cb/BDMI | 474edc4424e09674ef843daef98b5e34e8d6469c | b6482eff211f70508eecc0545952a6c3be10fd86 |
refs/heads/master | <file_sep>-- file: src/sql/pgsql/qto/app-itms/003.create-table.app_items_roles_permissions.sql
-- v0.8.4
-- \echo 'If necessary, perform -- DROP TABLE IF EXISTS app_items_roles_permissions;'
-- \echo '4. Creating the app_items_roles_permissions table'
CREATE TABLE app_items_roles_permissions (
guid ... | 23d7089482c1ab749cd8f53de071e55e83396259 | [
"SQL",
"Ruby",
"Markdown",
"JavaScript",
"Makefile",
"Python",
"Text",
"Dockerfile",
"Shell"
] | 267 | SQL | YordanGeorgiev/qto | 803d347330944899bdcb138b06a96c6ba1f02de0 | 35beeb953cc9673b9420f2b0a7ddb257df2fc222 |
refs/heads/master | <file_sep># e-valuation-system<file_sep>-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 28, 2020 at 12:46 AM
-- Server version: 10.1.35-MariaDB
-- PHP Version: 7.2.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET t... | d2125bc3eb967eeb691af0d098bfe7fe424e9cc3 | [
"Markdown",
"SQL"
] | 2 | Markdown | erpranavknigam/e-valuation-system | 1065348b3c61a9011aaa90e54552348072b2ca7c | eb19c48946e7f549141bd97c0468c8cf6bb7aa05 |
refs/heads/master | <repo_name>infopro94/sinatra-mvc-lab-v-000<file_sep>/models/piglatinizer.rb
require 'pry'
class PigLatinizer
#rules of pig latin - if words:
#begin with consonants all c's before 1st vowel are added to ay at end
#begin w/cluster of consonants all c's before 1st vowel are added to ay at end
#begin with vowel ad... | 979e131dbc73d5dee0de692d88baff371f0e2d1a | [
"Ruby"
] | 1 | Ruby | infopro94/sinatra-mvc-lab-v-000 | bc9ab280ddd3c2803be2f44951eba943260dc047 | 6322043e62ff55405dd3ce71aaa49d9a7431518a |
refs/heads/master | <repo_name>xuww-alfie/learn-springboot<file_sep>/springboot-features/src/main/java/com/learn/springboot/SpringBootFeatures.java
package com.learn.springboot;
import org.springframework.boot.SpringApplication;
/**
* 文件描述
*
* @ProjectName: learn-springboot
* @Package: com.learn.springboot
* @Description: note
* @... | ca037fd9311f5e226d201bab9ae763611c76104f | [
"Markdown",
"Java"
] | 2 | Java | xuww-alfie/learn-springboot | 6ee81e657257c43b6631f3630a6db656155a3b32 | f5fb0c31ef679129b7a51a847ac996158030d3e5 |
refs/heads/master | <repo_name>L-Alefe/Questoes-java<file_sep>/Informacoes.java
package Atividades;
import java.util.Scanner;
public class Informacoes {
public static Scanner leia = new Scanner (System.in);
public static String maior(boolean maior){
String result;
if(maior){
result = "Você já é de maior... | 760f0908d844d4ad992a88789b7c038b39ced9c1 | [
"Markdown",
"Java"
] | 5 | Java | L-Alefe/Questoes-java | 8cb4de3fdd5b72d42cea46b9edf3e1d633289dae | 02b7d1f7dd06dd5872f9884c65d798b3a165a1b1 |
refs/heads/master | <file_sep>
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class Admistrator_CheckUser extends JFrame implements ActionListener {
public JButton check, back;
public JLabel id_label;
public JTextField id_text;
JPanel panel1,panel2;
String idBuffer;
Object[] options= {"OK"};
public Ad... | 0b169e4c4f0a06f8c24f3f51a985d553266d3ccd | [
"Java"
] | 4 | Java | SereneTo/Software-Engineering-Project | 3a60170587908cfa632f864bd8b7ee52cc2b0b70 | 5a6ae9d412382ea9be42ab01b8e9e596a596b40a |
refs/heads/master | <file_sep>package concurrent.sets;
import java.util.concurrent.CopyOnWriteArraySet;
public class ConcurrentSkipListSets {
public static void main(String[] args) {
CopyOnWriteArraySet<Integer> set = new CopyOnWriteArraySet<>();
set.add(1);
set.add(1);
set.add(null);
set.add(null);
for (Integer integer... | e170cb9811e6023be628558a6338097bfb21aa15 | [
"Java"
] | 3 | Java | ShekharChoudhary/practice.java.concurrent.collection | 1d417af4deb617dc1fa9ed9a3baf6f6d7cb1129f | 0d9c656124a9c95aaf093330264a642e72d23b33 |
refs/heads/master | <file_sep>server 'vagrant@localhost', roles: %w{web app}
set :ssh_options, {
keys: "~/.ssh/id_rsa",
auth_methods: %w{'publickey'}
}
<file_sep>#!/bin/bash
TESTS=(
"4_2"
"5_0"
"5_1"
"5_2"
"5_3"
"5_4"
)
if [ ! -z $1 ]; then
TESTS=($1)
fi
# gem install capistrano-laravel
for test in ... | d17f0712cfb613835c817b98a17b14ae0a4e55a7 | [
"Markdown",
"Ruby",
"Shell"
] | 4 | Ruby | ikari7789/capistrano-laravel-test | c8d76f253a6c7dc78917bda3f424704175c62849 | 9d8df522c990b666ef44eb0f65a25e3244bba45e |
refs/heads/master | <file_sep>package types
import (
"fmt"
"github.com/alanctgardner/gogen-avro/generator"
)
const writeFixedMethod = `
func %v(r %v, w io.Writer) error {
_, err := w.Write(r[:])
return err
}
`
const readFixedMethod = `
func %v(r io.Reader) (%v, error) {
var bb %v
_, err := io.ReadFull(r, bb[:])
return bb, err
}... | 86cc9289474a30fe4196f9a206d1332fc810fe01 | [
"Go",
"Dockerfile"
] | 8 | Go | securityscorecard/gogen-avro | 12ab1495e51845e4b5473772deca6a2d90b2c356 | 6be7a4793193c9e77629cf839d65abd3fb50706e |
refs/heads/master | <file_sep>import sys
import os
import threading
import time
import socket
import random
# Code Time
from datetime import datetime
from concurrent.futures import ThreadPoolExecutor
now = datetime.now()
hour = now.hour
minute = now.minute
day = now.day
month = now.month
year = now.year
##############
sock = socket.sock... | d3d94ca75aff0a0fb708ffcedba6575d945c3f9e | [
"Python"
] | 1 | Python | Kasugano-Soraa/DDos-Attack | 76dc4a858b336c8566a1d5d8d0074cfbe06d353b | 3db45eaf97d1bbcade5d6533a6607f68daa4e52e |
refs/heads/master | <repo_name>karencxx/vue-demo<file_sep>/mockserver/server.js
const http = require('http')
const url = require('url')
function start(route, handle) {
function onRequest(req, res) {
let pathname = url.parse(req.url).pathname;
console.log('Request for ' + pathname + ' received.');
route(handle, pathname, res); //... | 33c96405688ef84f60f45b908a1e88b45bce80f4 | [
"JavaScript",
"Markdown",
"Shell"
] | 16 | JavaScript | karencxx/vue-demo | cc0d9fb8c3b6f2531b0788021428b4a9564c6a15 | f054320faa0cbb1557e33cf66a5cc457710766c5 |
refs/heads/master | <repo_name>ItsOnlyMeNL/Rando-Injector<file_sep>/README.md
# Rando-Injector
## How compile?
1) Change all bytes(0x00, 0x01, 0x03....) in define "JUNKS" to random bytes
2) Change size this block by add new bytes
3) Compile this
## Video
[](https://www.youtube... | 5a756fea6f9fa413a25bd506a1808770318dc085 | [
"Markdown",
"C++"
] | 2 | Markdown | ItsOnlyMeNL/Rando-Injector | 1cbd911214a30c9d805414c4266471fe8c68d113 | 38bcd9b340d7346112993e5ae2cea0ed05763370 |
refs/heads/main | <repo_name>StefaniaBuri/landing-page<file_sep>/landing-page.js
'use strict'
window.addEventListener('load', function(){
let formulario = document.querySelector("#formulario");
let box_dashed = document.querySelector(".dashed");
box_dashed.style.display= "none";
formulario.addEventListener('s... | d30350e0f9e0e6ed3cb8e9e73f3a2c9874ffe36d | [
"JavaScript"
] | 1 | JavaScript | StefaniaBuri/landing-page | 5900fd5290f5162c663c45cd8f2f3f7a536503a2 | df98ba614b7b4bcbc246b2e660836f18dc103790 |
refs/heads/master | <file_sep><?php
/**
* This is the model class for table "log".
*
* The followings are the available columns in table 'log':
* @property integer $id
* @property integer $from
* @property integer $to
* @property integer $count
* @property string $time
*/
class Log extends CActiveRecord
{
/**
* @return string... | 092ad6be11a49ffd455dfeb6778523c51001f812 | [
"PHP"
] | 1 | PHP | justbravess/paying | 0b3d9b281f1e995fe36caedc58d5b2fce1b608fa | 37501e285fffd9cf5d8b8b8944df6aa7038a4ff7 |
refs/heads/master | <file_sep>//This is a recipie to make egg salad<file_sep>/*large hard-boiled EGGS, sliced 6
mayonnaise 1/4 cup
fresh lemon juice 2 tsp.
minced onion 1 Tbsp.
finely chopped celery 1/2 cup
Lettuce leaves (for serving)*/ | dcd75cc8ea86b9b81e6c431be767dba1ba585e7b | [
"JavaScript"
] | 2 | JavaScript | Josh194812/Recipe | 24dfe789be02d64de028afc643d134a72e7048c6 | 275c07e8527a20bab1712c1c315b9c512e4863fd |
refs/heads/master | <repo_name>gammafp/vergatarioShorten<file_sep>/public/js/libs/gammajax.js
var Gammajax = function() {
var solicitud = new XMLHttpRequest();
function init(metodo, form) {
var formulario = form;
var envio = JSON.stringify(formulario.datos);
solicitud.onreadystatechange = formulario.funcion... | a278a13acac10fc475caf7898edac651846ca67e | [
"JavaScript",
"HTML",
"INI"
] | 8 | JavaScript | gammafp/vergatarioShorten | 36c8473a6a30902aa2649842b5f2a3bfec43e794 | c1552378742abd095d1e020a0c33a2c40b4421ad |
refs/heads/master | <file_sep>-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 01, 2020 at 04:45 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!4010... | c91d5b09555f5b273d80f08df970579b4ba4b121 | [
"Java",
"SQL"
] | 2 | SQL | alfar-kaleel/JavaFX_mySQL | 9d82ffee5390bfe369b879711b52406429deb694 | ecae27ea33247d98aedd81dbf43bdae5a50fb804 |
refs/heads/master | <repo_name>skslater/basic-vector<file_sep>/vector.c
/****************************************************************************
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* cop... | 9039aa252b8bc71a431766042bac24775112608d | [
"C"
] | 3 | C | skslater/basic-vector | acdcf0b8afe9adb0af256b5ba570cdff20c6a777 | 98cee17eedfe82419e68555dd4e43734c1a23f1c |
refs/heads/master | <file_sep>using System;
using System.ComponentModel;
namespace ConsoleApp7
{
public class Practice
{
/// <summary>
/// B2-P1/1. TypeConvert. Преобразование типов используя явное, неявное преобразование и класс Convert.
/// </summary>
public static void B2_P1_1_TypeConvert()
... | dad321b379ed09d1072ff23e22dd83f3c9e5da61 | [
"C#"
] | 1 | C# | rommoi/bl2-master | 149c589425d5021054d9afc13e934ad501d6d388 | 62dfa0cf5498958a1de0ea8174479a2405ad3b02 |
refs/heads/master | <file_sep>## 数据绑定和第一个AngularJS Web应用
- angular中数据绑定
+ 它创建实时模板来替代视图,而不是将数据合并进模板之后跟新DOM。任何一个独立视图组件中的值都是动态替换的。这个功能可以说是angular最重要的功能之一。
+ 自动数据绑定使我们可以将视图理解为模型状态的映射。当客户端的数据模型发生变化时,视图就能反应这些变化,并且不需要写任何自定义代码,它就可以工作。
+ MVC:视图-模型-控制器
+ 表现分离:视图不需要知道如何保存对象,只需要知道如何显示它。数据模型不需要同视图进行交互,只需要包含数据和操作视图的方法。控制器用来存放二者绑定在一起的业务逻辑。
... | 32c3e6f2a9346f9316e24d2b3eb4af82abe09443 | [
"Markdown",
"JavaScript",
"HTML",
"PHP"
] | 30 | Markdown | zsnpromise/webnote | 047a7b2c97550931bf64d180ab5a5e172caf6aba | 56fa54f0f767307d27b7026660a39f364cad377c |
refs/heads/master | <repo_name>MatthewTWhelan/miroDetection<file_sep>/Old_detectors/miroDetector1.py
# <NAME>
# Here we will load up the trained SVM using HOG feature extraction. Then the
# adaptive threshold will be applied for finding a ROI, before attempting to
# classify the ROI
import numpy as np
import cv2
import os
import sys
def... | f6a115fe7f2bb1c1b55f07fdd42190ced4d144ac | [
"Markdown",
"Python"
] | 9 | Python | MatthewTWhelan/miroDetection | 189759a7ad9f32f7e5e9791dea4142b80bcaeeb0 | 75bb27982458fd97b5c2df2f4b0ef05a1d7d5672 |
refs/heads/master | <file_sep>function Invert(){
sendData("*V~");
}
function InAnim(){
sendData("*I~");
}
function OutAnim(){
sendData("*O~");
}
function SaveSettings(){
sendData("*W~");
}
function ResetHardware(){
sendData("*R~");
}
function SubmitAutoClear(){
const val = inputClear.value();
sendData("*C"+ val + "~");
... | 2ec6e9833122d64dd6f4dde3570c8762ef808d29 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | paulustanuri/PT013_MAX7219_BrowserGUI | acbbc7091a7656d1ff89867d6b38faf945977e85 | 2dee5c8c0124c7cb5b6dbc308bd232e47ffcf27a |
refs/heads/master | <repo_name>aclk/loopback-connector-kv-redis<file_sep>/test/helpers/data-source-factory.js
'use strict';
const DataSource = require('loopback-datasource-juggler').DataSource;
const connector = require('../..');
const SETTINGS = {
// url: [{host: '127.0.0.1', port: 7000}],
// mode: 'cluster',
host: process.env.RE... | 27f76b1c96a71aa993d7490ce7ffadec858fba74 | [
"JavaScript"
] | 1 | JavaScript | aclk/loopback-connector-kv-redis | 744336020966b233bde9dd3a81cd049ac542598c | 471013314c28e439d7a0020f52b98e222b7e656c |
refs/heads/master | <repo_name>PuppyCode0723/Feature_Keywords<file_sep>/Feature Keywords.py
import re
# 處理繁體中文
import jieba2 as jieba
import jieba2.analyse
import sqlite3
import pickle
from collections import defaultdict
from sklearn.feature_extraction import DictVectorizer
from sklearn.feature_extraction.text import CountVectorizer
from... | abab1a4fabd2c45d6b91d5f1f9560fab7ca5962f | [
"Markdown",
"Python"
] | 2 | Python | PuppyCode0723/Feature_Keywords | 15f35085ce9a826922a88bb541656ea4990c1d05 | f217363a27abe136714cf3b134d0b1299c6c7563 |
refs/heads/master | <file_sep>function sum(p, q){
return p + q;
}
function pqformel(p, q){
var del1 = p * -0.5;
var del2 = Math.pow(p * 0.5, 2) -q;
var svar1 = del1 + Math.sqrt(del2);
var svar2 = del1 - Math.sqrt(del2);
return "svar 1 = " + svar1 + " svar 2 = " + svar2
}
module.exports = { sum, pqfo... | e270c576db7640dfd25a127f97b834bd5d8755a2 | [
"JavaScript"
] | 1 | JavaScript | philipalexanderols/mattesidan | d95fa01ec838152365a2fb612a4df57e8336ded5 | 4543d263fd580147af36119d5b7d7525c9294335 |
refs/heads/master | <repo_name>t0t/t0theme2<file_sep>/templates/page-header.php
<?php if(!is_front_page()) { ?>
<header>
<h2>
<?php the_title(); ?>
</h2>
</header>
<? } ?><file_sep>/template-home.php
<?php
/*
Template Name: Portada
*/
?>
<?php get_header(); ?>
<main role="main">
<?php get_template_par... | 7ceaf3113836785288c27c55b3521f0db9664504 | [
"PHP"
] | 10 | PHP | t0t/t0theme2 | 49620635a6df9df66d65a4fd2263d6b0799d75a0 | 5626d4dfe7806091917432fc62fced900a1170c8 |
refs/heads/master | <repo_name>Dronaldo17/uniapp_flutter<file_sep>/ios/UniCoreSDK/Classes/Core/Headers/UniMPCoreSDK.swift
//
// UniMPCoreSDKSwift.swift
// UniMPCoreSDKSwift
//
// Created by 窦静轩 on 2020/9/29.
//
import Foundation
<file_sep>/ios/UniCoreSDK.podspec
#
# Be sure to run `pod lib lint UniMPSDK.podspec' to ensure this is a
# ... | 9db9f645a8f4804810993a5bb362e562729ce0c9 | [
"Swift",
"Ruby",
"Shell"
] | 3 | Swift | Dronaldo17/uniapp_flutter | 0eac283f9d4eb12049a69a9971b5bc19e5137bdb | 926b0ed17387884d38c84faac5f56a5b1847920c |
refs/heads/master | <file_sep>"""
Tensorflow ops for robotic prior losses.
"""
import numpy as np
import tensorflow as tf
from tensorflow.python.framework import ops
import os
from time import strftime
k = {
"epsilon_a": 0.01,
"epsilon_r": 0.01,
"range_W": 0.05,
"w_temp": 10,
"w_prop": 1,
"w_caus": 1,
"w_rep":... | e874098491ca1b087d6ea1cf40fc44c984f851d8 | [
"CMake",
"Python",
"Text",
"C++",
"Shell"
] | 20 | Python | tmigimatsu/robotic-priors | d194d4bbaf2d52fbf4acb1345fbc62b5aef5701d | a7a946e33809589cd6a5c3eab605c807e6c87ecf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.