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>package com.example.lab4_hiit;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.util.Log;
import android.widget.TextView;
import android.speech.tts.TextToSpeech;
import java.... | 1bdb41b6f7d674459841cac473c10eb25f15f273 | [
"Java",
"Gradle"
] | 9 | Java | rkettu/AndroidStudioExercises | 1295dddc171883297b7901986b3d6acd16c964af | 9c7136aaf59e6a8ead57cbfdd2ff508aaa6c5aa9 |
refs/heads/master | <repo_name>Knk00/it-s-all-being-smart<file_sep>/geo.py
import googlemaps
from firebase import firebase
firebase = firebase.FirebaseApplication('https://vehnavi.firebaseio.com/')
dest = firebase.get('/Location',None)
newdest=dest
print("Waiting for destination")
while(newdest==dest):
dest = firebase.get('/Location... | 8af2153b017e22f4f1711f256789c59fa0f1456c | [
"Markdown",
"Python"
] | 7 | Python | Knk00/it-s-all-being-smart | 58a25f77935d529acfe464aa682deb2b091fb877 | ca21bafc1a10ab57d5557ac2460cf4d6f5ffda2e |
refs/heads/master | <file_sep>#' A data set from Carpenter (2002).
#'
#' @docType data
#' @source Carpenter, <NAME>. 2002. ''Groups, the Media, Agency Waiting Costs, and FDA Drug Approval.'' American Journal of Political Science 46(3): 490-505.
#'
#' <NAME>, "Replication data for: Proportionally Difficult: Testing for Nonproportional Haza... | 826e537c6e7c6b830dbd9c06d8840c748716f70a | [
"Markdown",
"R"
] | 31 | R | chihayakenji/simPH | 7cad2c8d50a4e01bc868ad63d7b39c6a8fa39f02 | b9e01af20fcd7eff9aacb521996f3647f24d07be |
refs/heads/master | <repo_name>FuLingTaiHexiaoke/FirstStep_NewsApp<file_sep>/README.md
# FirstStep_NewsApp
Just a amazing News App that cloned from SXNews(https://github.com/dsxNiubility/SXNews).So thanks the Creater!
#场景转换1
:
@staticmethod
def get_instance(activation_name,scope):
return Relu(scope)
def __init__(self,scope):
Activation.__init__(self,scope, 'Relu')
def fire(self,Y):
'''
Apply the Activatio... | cf3ca76819fe61d0866b507234d984a683119dd0 | [
"Python"
] | 21 | Python | R3za/NeuralNetwork | ed7ce609f8884ccfc5e744ae4e1a0b8415f47592 | 3a73921711ce2ebe8a05f4eb5b93e01cdd839f09 |
refs/heads/master | <repo_name>Cool-Dude-x/image-resize-bot<file_sep>/README.md
# image-resize-bot
Telegram bot that resizes images for sides to be at most 512px maintaining aspect ratio.
## Usage
* Clone the repo
* `cp docker.sample.env docker.env` and edit docker.env
* Run `docker-compose up`
<file_sep>/main.py
#!/usr/bin/env python
fr... | e835327c0fd274152f3fe01afff456010871aa34 | [
"Markdown",
"Python",
"Dockerfile",
"YAML"
] | 4 | Markdown | Cool-Dude-x/image-resize-bot | 05af9e33331feeadcdc89afe590dce0e1419128a | 77d390eabaa113cfc79782a663c267ee0b8f2516 |
refs/heads/master | <repo_name>stefan-dhi/PhpTextFilters<file_sep>/src/TitleCaseShort.php
<?php
/**
* selective text case converter
* less than max. words: Title Case
* longer than max. words: Sentence case
*/
namespace PhpTextFilters;
class TitleCaseShort extends Base
{
protected $options = ['maxWords' => 6];
public functi... | 3f8fff4e20aa04ba9f3ebd49fb725c970a50a8c7 | [
"Markdown",
"PHP"
] | 8 | PHP | stefan-dhi/PhpTextFilters | d0b5dfb98e4932c3fad440144bc7c454acdfcc5a | a9f9585bb938298cb72acea22342999195048e90 |
refs/heads/master | <file_sep>package com.webtestautomationjava.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
public class LoginPage extends Base {
@FindBy(how = Ho... | 92aa34e2bc80b81486712c6c6b21c42bf46a9f91 | [
"Markdown",
"Java",
"INI"
] | 8 | Java | RubyGemTSL/test-automation-java | 328b79837080cff7c411b1379c6738daa53323ea | 609230bf667a26d4bd7181c3b60c468ba4f1012a |
refs/heads/master | <file_sep><?php
/**
* @package Vertice_Subscribe
* @version 1.0.0
*/
/*
Plugin Name: Vertice Subscribe
Plugin URI: http://vertice.com/plugins/vt-subscribe/
Description: Create a popup subscribe form and integrate it with mailchimp API.
Author: <NAME>
Version: 1.0.0
Author URI: http://vertice.com
*/
// Make sure we ... | 5b63e5bf0f5c54f74db49fe36531a719d6d5f14a | [
"JavaScript",
"PHP"
] | 2 | PHP | firmlab/vt-subscribe | 0b62a5c091a0f82bb4fe1f1fc7b1e9a8db73edce | fdf84a8dbf4a6e59fe8e75a112d92b0c76b43d9d |
refs/heads/master | <file_sep><?php
namespace Xmon\SonataMediaProviderVideoBundle\Provider;
// use Symfony\Component\HttpFoundation\File\UploadedFile;
//use Symfony\Component\HttpFoundation\Response;
//use Symfony\Component\HttpFoundation\StreamedResponse;
//use Symfony\Component\Form\FormBuilder;
//use Symfony\Component\Form\Form;
//us... | 352ef5c4f42f76220f6eb46f45111a5360942d14 | [
"PHP"
] | 1 | PHP | veliseev/SonataMediaProviderVideoBundle | d3dca94b302d77c5406951ca9c1432508cbf2f42 | 349f0be1db996909317520b21e6e46d8e332ab75 |
refs/heads/master | <file_sep>test: build
mocha --compilers coffee:coffee-script --timeout 10000 --require should
# --grep 'Source|MarkdownBinder|DataPublisher'
build: build-src build-template
build-src:
mkdir -p lib/parsers
# cp src/parsers/showdown-prettify.js lib/parsers/showdown-prettify.js
# cp src/parsers/showdown-table.js... | bfb6243625903ee55b12ccefff31fe7cdd19e953 | [
"Markdown",
"JavaScript",
"Makefile"
] | 3 | Makefile | iamssen/markdown-binder | 8b7d0f52f373573507293337cf448972251aa5b3 | a8fa3bf4bfa8deff82042e0653430c69a3bbaee5 |
refs/heads/master | <file_sep><?php
namespace Org\Util;
class EthCommon
{
protected $host, $port, $version;
protected $id = 0;
public $base = "1000000000000000000";//1e18 wei 基本单位
//高精度函数参考http://www.jb51.net/article/80726.htm
/**
* 构造函数
* Common constructor.
* @param $host
* @param string $port
... | 690e8d3d7b07a10e7958e186ae82b62169dd36fb | [
"JavaScript",
"HTML",
"PHP"
] | 29 | PHP | huangli0277/chibi | 86985fd855a61049788c5ab154d89af87f465d10 | 03ab1a912d3354440911118cdc60b2094aadaf8d |
refs/heads/main | <repo_name>bobbymahaffey/web_development_labs<file_sep>/Weeks/Week7/Controllers/StudentController.cs
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using Database;
namespace webapi.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class StudentController... | addcd7297c5527f7191cae31b972da4cefe39504 | [
"C#"
] | 1 | C# | bobbymahaffey/web_development_labs | 0c9f4f46d09928e7afefaabf8f7344e2e6807b44 | 7fe98414f89bf6f32cfda6ac828ca125310b76dc |
refs/heads/master | <file_sep>module.exports = {
'url': 'mongodb://localhost/node-passport'
}<file_sep>// expose our config directly to our application using module.exports
module.exports = {
//https://developers.facebook.com/
'facebookAuth': {
'clientID': '1675914896001421',
'clientSecret': '7fe0217711792f908161... | b8cbf25afd18d739c571cc33757f61e9e230c297 | [
"JavaScript"
] | 2 | JavaScript | xilenomg/node-passportjs | c6bbac4c4fb65973573a4f2473727765cecdd5b4 | 97aecd7418d607b811dd7590d085336a1f756f1c |
refs/heads/master | <file_sep># gorm-postgresql-sample
Connects AWS RDS PostgreSQL with Gorm
<file_sep>package main
import (
"database/sql"
"fmt"
"log"
"time"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
_ "github.com/lib/pq"
)
type artist struct {
gorm.Model
id int
name string
descri... | ba78a39b0d13b9706a3c920e3178bf086ed7ae27 | [
"Markdown",
"Go"
] | 2 | Markdown | RahadianArthapati/gorm-postgresql-sample | 13d9b8c71a06ada5568f76694f51e4f9c7e34cac | 60cf9f12f1bfdaa3aca397c6e69533b4e5a87fd5 |
refs/heads/master | <repo_name>s-owl/ssslackbot<file_sep>/plugins/geo.py
from slackbot.bot import listen_to
from slackbot.bot import respond_to
import requests
@respond_to('위치 (.*)')
@listen_to('!위치 (.*)')
def geo(message, address):
r = requests.get('https://maps.googleapis.com/maps/api/geocode/json', {'address': address})
loc =... | 96d470d2c92120a7a9568ba015501ff1723ac0f6 | [
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 10 | Python | s-owl/ssslackbot | d3c393d4e8a99c52004b4b138a25dc4c3ee2e70b | 7149522baa0ad15fbde6592935e58a7a54a17a63 |
refs/heads/main | <repo_name>qq995931576/JavaWeb<file_sep>/README.md
# JavaWeb
JavaWeb学习 <br>
https://www.bilibili.com/video/BV1Y7411K7zz?p=1
<file_sep>/book--Version.JavaEE/src/main/java/com/achang/dao/impl/UserDaoImpl.java
package com.achang.dao.impl;
import com.achang.bean.User;
import com.achang.dao.UserDao;
/******
@author 阿昌
@... | 1e46258926dd042e40f1eebaab447586068d548a | [
"Markdown",
"Java",
"INI"
] | 22 | Markdown | qq995931576/JavaWeb | f7f508dd4280e510bb74e8c2730382a55aeb9e5c | 3b84be8cab832b3b648983cff3a1a296a5ccad3d |
refs/heads/master | <file_sep># Univoice
A web app that picks a random choice from a list of choices, using random atmospheric data.
Each choice is assigned a random number, and a fact about the picked choice's number is also displayed.
## URL
[univoice.azurewebsites.net](http://univoice.azurewebsites.net/)
## Built With
* [Visual St... | 0078cd7dff5ab55664031c18f7100a77bf01bce5 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | jpdc-developer/univoice | 3d39d65a2f8cc6bfe35bcebd5e1c73e175f8f759 | ac2a8313c9a96e3334ce26f6a434a27427a57560 |
refs/heads/master | <repo_name>VilsonJuniorIlegra/selenium-config<file_sep>/selenium-utils-browser/src/main/java/br/com/selenium/browser/BrowserFactory.java
package br.com.selenium.browser;
import org.openqa.selenium.WebDriver;
/**
* Created by Vilson on 31/07/2015.
*/
public class BrowserFactory {
public static WebDriver create(S... | 3e994d33ebc7a1a567b3a8cb37b9814b9774377b | [
"Markdown",
"Java"
] | 4 | Java | VilsonJuniorIlegra/selenium-config | 8ea5dd7309fafb67f3cc56fc68b692e1b526607e | cd197bb896ae32a7c3108cd31889138b60a427d7 |
refs/heads/master | <file_sep>#ifndef GAME_BOARD_H
#define GAME_BOARD_H
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include "game_board.h"
#define GAME_BOARD_SIZE_X 10
#define GAME_BOARD_SIZE_Y 20
#define NUM_BLOCKS 4
class GameBoard;
// A piece of the active piece
struct Square {
int x;
int y;
};
typedef Square Squar... | 6daf9f55822e6a9d5f9d48ec6d3732e9f0ec6d55 | [
"Markdown",
"C++"
] | 5 | C++ | SVirat/Customizable-Tetris-Emulation | ebde2f0152351692d6da26736f2025922e0ab1fd | 3d4988eecf35458016cd8fe57a1600faef5b58d1 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <vector>
#include <sys/shm.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <iostream>
#include <algorithm>
// Source: Dr. Rincon's code from Black... | 5e5b69d5e55008daa1d508f91ae53b49c4725621 | [
"C++"
] | 2 | C++ | RenzoM157/Interprocess-Communication | 6f08ee43627d569e68b8f0b5dfef742d8858cce3 | 35c74a93cae548e51738eb0cdd2a5450d68b2b71 |
refs/heads/master | <repo_name>kitchmas/The-Recipe-App<file_sep>/models/recipe.js
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const IngredientsSchema = new Schema({
ingredient:String
});
const RecipeShcema = new Schema({
name:String,
method:String,
ingredients:[IngredientsSchema]
});
const Recipe = mon... | 201604ec3af9fa1bfe74266f51f9e81dc9666714 | [
"JavaScript"
] | 7 | JavaScript | kitchmas/The-Recipe-App | 2f5aa11bd5d99a87dc6e98abb97818f9a7f98020 | 6d38a24cf703130d546aa40570f4b520a43b2dc8 |
refs/heads/master | <repo_name>zedsh/bitrix<file_sep>/DbLockHelper.php
<?php
namespace App\Helpers;
use Bitrix\Main\Application;
use Bitrix\Main\Entity\Base;
class DbLockHelper
{
const CONNECTION = 'default';
const TIMEOUT = 5;
public static function lock($lockName)
{
$connection = Application::getInstance()-... | 0943ee90cfe25877c806de22442a86dd890e95f5 | [
"PHP"
] | 1 | PHP | zedsh/bitrix | bc037f957dd2cc5012d044d3f2c07a61e5d0ee3f | d3f83746b42194992fb96b717665961721ec2ed0 |
refs/heads/master | <file_sep>package sample
import javafx.collections.FXCollections
import javafx.geometry.Insets
import javafx.scene.Scene
import javafx.scene.control.*
import javafx.scene.layout.GridPane
import javafx.stage.Stage
import sample.Main.Companion.FRESH_AF_PLAYLIST_NAME
class EditPlaylistWindow
{
companion obj... | 9ac946f20f081e154d441d64a18c38bb86111fd4 | [
"Markdown",
"Kotlin"
] | 10 | Kotlin | nikolaimerritt/MusicManager2 | 9b70e889cde7a001a2eb7798b6d647030c1c6fbf | 2a5b9fbbf422d17a3af92b1b8eb20c22de2c34d1 |
refs/heads/master | <file_sep>from django.db import models
class DataItem(models.Model):
id = models.AutoField(primary_key = True)
title = models.CharField(max_length = 30)
def __str__(self):
return str(self.file_name) + ' ' + str(self.file_name)
<file_sep>from django.shortcuts import render
from data.models import ... | 0ffa81124ee68c26ecbcf9e2cd154d39850e94be | [
"Python"
] | 4 | Python | i-64/xchange-hsbc | ef464a800b5030e0cc6e024e57eda3faf2d8ed00 | 0960beeed0336fc51c34daf8f6f1598cadad7926 |
refs/heads/master | <repo_name>Ayagaki-muti/Music<file_sep>/app/src/main/java/com/example/music/utils/ToastUtils.java
package com.example.music.utils;
import android.content.Context;
import android.widget.Toast;
public class ToastUtils {
public static void Short(Context context,String message){
Toast.makeText(context.getAp... | cd8c727c58f4f37a5a7cc39785ef6c255f90565f | [
"Java"
] | 2 | Java | Ayagaki-muti/Music | f82b5a21ececb3ffcbcbb638eaaf6864f4fc9ab5 | 654a5fd273d4ad28e6f3c94d798a6e285e779dcd |
refs/heads/master | <repo_name>sravan7/Rainfall-rate-and-Onion-production<file_sep>/README.md
# Rainfall rate and Onion production
<file_sep>/onion2.py
'''
Created on 09-Nov-2017
@author: srava
'''
#http://pbpython.com/excel-pandas-comp-2.html
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
#from numpy import ma
... | e8aabe36d0e7e624ad3a0c9e577082c516a5a974 | [
"Markdown",
"Python"
] | 3 | Markdown | sravan7/Rainfall-rate-and-Onion-production | a90eae6abf089062ace7fc82c93dc3f428cb3a93 | e010126367a0789e3094f6ff66788fe748c11b07 |
refs/heads/master | <repo_name>lucascbarbosa/Linear-Array-Processing-Python<file_sep>/convertItkToPlot.py
def CreateParametricImage(bModeName, parametricName, colormap = 'jet', show = False, outFileName = None,
maxParametricValue = None):
'''Input:
bModeName:
parametricName:
colormap:
show:
... | 0f159fc553febd1b100cc6c85b0b29b33fdfadb6 | [
"Python"
] | 9 | Python | lucascbarbosa/Linear-Array-Processing-Python | 7e98d4a29d8660804d22940e8ddf8843824d4b67 | 054287bb7285376ad450a7bcbb4b3a55413e7adf |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { DataService } from 'src/app/data.service';
import { ToastController, NavController } from '@ionic/angular';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage implements On... | d184bd38b447f4afaf49c1370e2bdfff5c4d9a96 | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | lviesi/curso-angular8-final-project | 2784e4bf495a12bf25495fafa2702306941d8247 | 4ac9d16847931ff61cce54101217675c27851bb0 |
refs/heads/master | <file_sep>if [[ ! -a ~/.oh-my-zsh ]]
then
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
fi
<file_sep>alias reload!='. ~/.zshrc'
alias subl="sublime"
alias pulls="hub browse -- pulls"
alias mypulls="open https://github.com/pulls"
alias pi="pod install"
alias ddd='rm -rfd ~/... | b182b89c0b6c4e1da352754892e64d812338bb2d | [
"Ruby",
"Shell"
] | 4 | Shell | ianmdawson/dotfiles | 44b3a44e7a1ce89e9e6622b696bce20085d8ec5a | 2a241224978b3021135ce3ef01be6a754799b02a |
refs/heads/master | <file_sep>#!/bin/bash
scriptLoc="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
templateArchiveName="Gold-21iMac.zip"
templateDirName=${templateArchiveName/.zip}
remotefileURL="http://192.168.20.19/Avid_Settings/$templateArchiveName"
zipDownload="${scriptLoc}/download/"
zipLocal="${scriptLoc}/template"
me=$(whoami... | 32541934c90afca887580053a06215ecdb2cec81 | [
"Shell"
] | 1 | Shell | gsmc-alx/avid-profile-update | ac10c99fc4dd7966ced6a8a5419af60f51e246a6 | 977b76396c8325ed683ceb387c46d09a045c6515 |
refs/heads/master | <repo_name>bi0phaze/instaWrong<file_sep>/main.js
var $ = require('jquery');
var _ = require('underscore');
var ItemCollection = require('./itemCollection');
var ItemModel = require('./itemModel');
$(document).ready(function () {
page.init();
});
var page = {
init: function() {
page.initStyling();
p... | ea0f5e177d1dd22864ad228d77528bc594e5c2ed | [
"JavaScript"
] | 1 | JavaScript | bi0phaze/instaWrong | c0c9901609b2234c4634342d52cd4ef305f12a54 | 425c2f442d5e24c92e322ee17ab7f77ffa8b37c6 |
refs/heads/main | <repo_name>MrEyelet/IFX<file_sep>/src/main.js
//Styles
import "./scss/style.scss"
| 95ecfe63ba2deca7ac7a577eac457e40e481bca7 | [
"JavaScript"
] | 1 | JavaScript | MrEyelet/IFX | 5863b13736b2c12debffdcd952e55af4c52c2cb2 | 135df3097f163c3d7c7d71c071f9dd2ef1237632 |
refs/heads/master | <file_sep>#include <iostream>
#include <fstream>
#include <string>
#include "cards.h"
//#include "cards.cpp"
using namespace std;
void startGame(CardList& Player1, CardList& Player2, int count);
int main(int argv, char** argc){
if(argv != 3){
cout << "Please provide 2 file names" << endl;
return 1;
}
... | 46f5ab64d36aacfd4fd22d74707818ebc0f35203 | [
"C++"
] | 5 | C++ | svregala12/pa01_gutierrez_regala | 862d4c707d02b10ad298275814dcf2fb9561e3d8 | d18af4005c639f14078ceaeb40c9313dd808f54b |
refs/heads/master | <file_sep>package gq.cader.realfakestoreapp.entity
import android.content.Context
import android.widget.TextView
import gq.cader.realfakestoreapp.R
import com.beust.klaxon.Klaxon
import okhttp3.OkHttpClient
import okhttp3.Request
data class Product (
var productId: Int,
var name: String,
... | 018f47e6f6633bf681c139caed4c2e7900b812c4 | [
"Markdown",
"Kotlin",
"Gradle"
] | 4 | Kotlin | CaderHancock/RealFakeStoreApp | ebb31054a3a9ad07b98b74fd543e748736247c37 | f28cf4773bcb6279f4a0f783e9f2c4c4b629ddcc |
refs/heads/master | <file_sep># 1.Query the existence of 1 course
select * from course where name = 'Language';
# 2.Query the presence of both 1 and 2 courses
select * from course where name = 'Language' or name = 'Math';
# 3.Query the student number and student name and average score of students whose average score is 60 or higher.
sel... | c0d74120bb8c8f919db53d5db9d654ad0e59622b | [
"SQL"
] | 1 | SQL | Vicki7777777/multi-table-query-english-2019-10-12-6-42-26-537 | f7b550018dde06f1b90d5f73e0a95b836c5b146e | b3ec0718a5f3335baa9a49b88d5a8803920f8397 |
refs/heads/master | <file_sep>var stores_table;
var cookies_table;
/**
var monster = new Monster();
function Monster() {
this.cookies_ = {};
this.reset = function () {
this.cookies_ = {};
}
}
**/
chrome.browserAction.onClicked.addListener(function (tab) {
var manager_url = chrome.extension.getURL("background.... | 83139f9b7f8fef91ed8e3870b96740c5559d8ea5 | [
"JavaScript"
] | 1 | JavaScript | damacode/GoogleChromeCookieMonsterExtension | 23bf4438197a3aed82fa861b2b6a165945957df5 | a447a217c1407936d8798169c0797e6d74061cb9 |
refs/heads/master | <file_sep>class ChangeSongsSongIdToGenreId < ActiveRecord::Migration
def change
rename_column :songs, :song_id, :genre_id
end
end
| ff9f3037c5bb0e3db86143e236f19794504d4e7f | [
"Ruby"
] | 1 | Ruby | mkruszewski89/rails-cru-form_for-lab-v-000 | 3da7c0429ead8c57bb84f3b221c93f16ad4c7041 | bf6094479589fd1f2d2016967b8f78c4da2c46cf |
refs/heads/staging | <repo_name>IfeanyiOsuji/Learning-Management-System<file_sep>/src/main/java/com/ileiwe/security/config/SecurityConstants.java
//package com.ileiwe.security.config;
//
///**
// * @author oluwatobi
// * @version 1.0
// * @date on 29/10/2021
// * inside the package - com.ileiwe.security.config
// */
//public class Security... | f7bdb9ad2350f72cbc8067c0b4d888e9acbe370d | [
"Java",
"SQL",
"INI"
] | 24 | Java | IfeanyiOsuji/Learning-Management-System | ec7203c9b2a9b13dc74c56fb619735f845657f6f | 8f2125f41e44cc0bdfb40d8d208c4528b5932877 |
refs/heads/master | <repo_name>Buzdygan/ai-arena<file_sep>/documentation/index.rst
.. Ai Arena documentation master file, created by
sphinx-quickstart on Sat Jan 7 17:32:01 2012.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Ai Arena's documentation!
=... | 111f12cf3bf6f7ded201b67eaed40dbce9aa69a9 | [
"HTML",
"reStructuredText",
"Makefile",
"Python",
"C",
"C++"
] | 84 | reStructuredText | Buzdygan/ai-arena | 319fcff6e4734355e566f7dc353d135a70fd1e36 | 072a826499388a4fa8b295c0df17f5bbec2fd3cb |
refs/heads/master | <file_sep># Algorithms Problems
Misc algorithm problems written in [Rust](https://www.rust-lang.org/).
<file_sep>// Problem statement:
// A hiker is going on a trail and tracks when they are going up or down hill.
// They always start and end at sealevel (SL). A path s can look like the following:
// s = DDUUUUDD.
/... | e6d976783c6a22b467756af282818b995b002dd5 | [
"Markdown",
"Rust"
] | 5 | Markdown | dtcrout/algo-problems | 6e0478fbcdaa614bc0608eebb390672335d25103 | d02a9fd159abbcd0ef4b0eec7eda2f36bf82bd69 |
refs/heads/master | <repo_name>loveAndroidAndroid/RxUpload<file_sep>/RxUpload/rxupload/src/main/java/com/wen/rxupload/uploadfile/task/UploadSingleItem.java
package com.wen.rxupload.uploadfile.task;
import java.io.File;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* Created by zhangxiaowen on 2018/11/1.
... | c47dd62033cf967ca4f3f073b21acda498c7b05c | [
"Java",
"Gradle"
] | 14 | Java | loveAndroidAndroid/RxUpload | 8dff1fe6df18f99adb483f3e133d53cc13e051f3 | b1b3d95785a82fd1f25f2b5e15ef74e42d7d4d42 |
refs/heads/master | <repo_name>HoTaeWang/Earthquake<file_sep>/src/main/java/EarthQuake/App.java
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package EarthQuake;
public class App {
public static void main(String[] args) {
EarthQuakeClient client = new EarthQuakeClient();
System.out.println(... | 37a099dfe2f94dbb3e994c1ad2fe714f3a8d9e15 | [
"Markdown",
"Java"
] | 3 | Java | HoTaeWang/Earthquake | 133cd182c82b38aac4067f7911f9933cd1102471 | 725f2eb91531017c0220a6388fcb7ec40b674dbe |
refs/heads/master | <file_sep>package bwei.com.zhou3_demo;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import an... | 519d5a418d7b6d9322fe588bfb3b73399e6dda16 | [
"Java"
] | 2 | Java | yankuokuo/douju_demo | feb3fa7ebcef87203be60b95995a4f8de6687c52 | 81817389f167c9139c8bf097d9e1d7ce28f5eba2 |
refs/heads/master | <repo_name>iMega/compile-nasm<file_sep>/Dockerfile
FROM alpine
RUN apk add --update nasm binutils
WORKDIR /data
CMD ./run.sh<file_sep>/Makefile
default: build
@docker run --rm -v `pwd`:/data imega/nasm
build:
@docker build -t imega/nasm .
<file_sep>/run.sh
#!/usr/bin/env sh
nasm -f elf64 hello.asm
ld -s -o hel... | 86ba1b92c18ede8e1c00dd7710e97265056ba3d6 | [
"Makefile",
"Dockerfile",
"Shell"
] | 3 | Dockerfile | iMega/compile-nasm | 2b44c93070af9e014e6599deba25af0496962af4 | 00323634f9dc346378b0ffee89cdc68dff1940a8 |
refs/heads/master | <repo_name>latviancoder/3m5landing<file_sep>/index.html
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>3m5 Landing Page</title>
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Oswald:300,400,700' data-noprefix>
<link rel="stylesheet" href="css/main.css" data-noprefix>
<scrip... | 039eef17a34de85560c11ef744f70d7aa6c71bae | [
"JavaScript",
"HTML"
] | 2 | HTML | latviancoder/3m5landing | 43b34e28ddeaaa1be554f16e788987366073494e | b57415f706e677df490277d7fc3c9e2472b78dca |
refs/heads/master | <file_sep>#include <bits/stdc++.h>
using namespace std;
#define X first
#define Y second
int dx[4] = { 1, 0, -1, 0 };
int dy[4] = { 0, 1, 0, -1 };
int main(void) {
ios::sync_with_stdio(0), cin.tie(0);
int F;
cin >> F;
for (int i = 0; i < F; i++) {
int board[50][50] = { 0, };
bool vis[50][50] = { 0, };
int M, ... | f7fe19a26aa9a0f084882f6790ed4e738db8234b | [
"C++"
] | 5 | C++ | thisfetch/Study_ProblemSolving | 79e7bc732255af1a737577c50ed6e19fd360fc46 | 6cb3172f36c1c787f31f870e38b446cb3a186d82 |
refs/heads/master | <repo_name>ViniciusFloriano/Notepad<file_sep>/BlocoDeNotas/MainWindow.xaml.cs
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Da... | 72dfab03cc435ea8703444c684e8a2d497d2f7ff | [
"Markdown",
"C#"
] | 2 | C# | ViniciusFloriano/Notepad | e8006c49e0e3460141291dea2cdb5c6b3219043b | d02dc12c3dc689bdf08d70d0d56ad93e0e99456f |
refs/heads/master | <repo_name>divyaswormakai/QRApp<file_sep>/backend/models/IndoorForm.js
const mongoose = require('mongoose');
const { Schema } = mongoose;
const IndoorFormSchema = new Schema({
vendorID: {
type: Schema.Types.ObjectId,
ref: 'Vendor',
required: true,
},
email: {
type: String,
required: true,
},
fullName: {... | f14be186ba3e50fc22e216d02eb0bb6649fd4f3e | [
"JavaScript"
] | 16 | JavaScript | divyaswormakai/QRApp | 3e6574dba2dd1ed52c090370801e209ccb089a5d | 27184c91ff5a2ef26eed8c167df2490b90475ade |
refs/heads/master | <repo_name>rivyuz/zuul-ms<file_sep>/src/main/resources/static/js/index/confirmRegistration.js
function getUrlVars()
{
var plainText;
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash... | bf09568bafd7eb22580658a7b22d038d883e3fe3 | [
"JavaScript"
] | 4 | JavaScript | rivyuz/zuul-ms | cd7714c3978a587a29a7a82eddb97147f7a194fd | aff6bbf3a0c6e4fa56c37088140e770098d58fee |
refs/heads/master | <repo_name>Tonycrosss/8_vk_friends_online<file_sep>/README.md
# Watcher of Friends Online
This module is connecting to vk.com and show u friends online
# Variables
APP_ID - to get app_id u must register your app at https://vk.com/dev
# How to Install
Python 3 should be already installed. Then use pip (or pip3 if t... | d11c38dcc7d14c897b3e2ef4fdf0685d47fb1801 | [
"Markdown",
"Python"
] | 2 | Markdown | Tonycrosss/8_vk_friends_online | fa2d65937d50c5b93d7ec982aac1580e5fca71ff | 7fcbfb55360920789956748928c187232dc8f6fe |
refs/heads/master | <file_sep>import json
import os
import datetime
import sys
import time
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("path", help="Path to your messenger 'inbox' folder.")
parser.add_argument("--recipient", hel... | 8ded266ac13ad113682a5db9634ddbcaab86b1a8 | [
"Markdown",
"Python"
] | 2 | Python | PhastPhood/Facebook-Data-Visualization | 631d0b31c6002164c3423d79d0a8347f87c43ead | 464e6460719309bce837334edf599e60db4dfaaa |
refs/heads/master | <file_sep>package org.archive.util.iterator;
import java.io.IOException;
import java.util.Iterator;
public interface CloseableIterator<E> extends Iterator<E> {
public void close() throws IOException;
}
| ed33c5ddad79c39775ec4e8d4dd2dd7cdf15a6d0 | [
"Java"
] | 1 | Java | nlevitt/archive-commons | 5eb732e39dae3d1bbde36c8da31b0ce4936c2841 | 4eaa4159ae4a204da600e78cc07596f248f1308c |
refs/heads/master | <file_sep>import locale
import random
import sys
import time
from datetime import timedelta
locale.setlocale(locale.LC_ALL, '')
length = 0
if (len(sys.argv) > 1):
length = int(sys.argv[1])
else:
print("W: No length given. 8 taken as default")
length = 8
print("Length: ", length)
l = []
l.extend(range(1, ... | 64cd3c9d2971fc3c7166fdf1fac52969939c0741 | [
"Markdown",
"Python"
] | 2 | Python | DerWario/FunSort | d4070183f288a9ddccaf515c7026569a7d9a6c42 | 4ebb4c65474d902a1a0f6232c4fcdef80108751f |
refs/heads/master | <repo_name>poppinlr/ifquestion<file_sep>/src/main/java/hello/SampleService.java
package hello;
import entity.Category;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
/**
* Created by poppinlr on... | 726feb01637891e0dc8f4ef2d238939f411643f6 | [
"Java"
] | 1 | Java | poppinlr/ifquestion | aeb48aeb4eb08167aa4e8ff8d077cdb645ec5f26 | a4e5a392169730c00d78194444278bbc43acf050 |
refs/heads/master | <repo_name>Alieddin/intro-to-SDC<file_sep>/kalman1d.py
# Write a program to update your mean and variance when given the mean and variance of belief and those of measurement.
# This program will update the parameters of your belief function.
def update(mean1, var1, mean2, var2):
new_mean = float((var2 * mean1) + (... | 9687f25c765243881eb40c0cf366b58565950a3b | [
"Python"
] | 1 | Python | Alieddin/intro-to-SDC | 9cf456490196d3e2cf6fc2cdeecc879b1c2df85b | 86f3db764711fecdb83ae45697759af54ac45724 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package BaiTap2;
/**
*
* @author <NAME>
*/
public class BaiTap2Main
{
public static void main(String[] args)
{
... | 96e1a3cee2c98301d590453e2a3fccfa8acec51b | [
"Java"
] | 4 | Java | chaucamly/ChauCamLy_59131356_-Stratery-Pattern- | 8e030b88a8f2e1803b7e87193cfa65e3797084e5 | b6f80ed7a6d4717962d69541bbcb9e85dae2d435 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
from datetime import datetime
from urllib.parse import unquote
import geolocator as locator
from settings import debug
from db import Session
from db import Location
def loc2csv(loc):
return "%.2f,%.2f" % (getattr(loc, "latitude"), getattr(loc, "longitude"))
def to_csv(model... | dc7d45d52c33153215a4ef8cc5ec0ebfa2f27db7 | [
"Markdown",
"Python"
] | 7 | Python | mapto/whereami | 424b73ce9158279849a2bf42932d76b9a9925cb3 | 8f583de6a4a1d6582df6f503382ba1dc437efa79 |
refs/heads/master | <repo_name>henryjordan/iot-oximeter<file_sep>/Oximetro/oximeter-server.cpp
// bibliotecas do socketserver
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include "eHealth.h"
vo... | 894a95321772db9c7e7c4e50a942738a890b4b50 | [
"C",
"Python",
"C++"
] | 6 | C++ | henryjordan/iot-oximeter | 54edd0a053efb028b1d38525739a09cac663a9fd | 4120f7bcb3757855bb732341031b1e4a925c6942 |
refs/heads/master | <repo_name>maxnuf/df34_raw_conversion<file_sep>/db/src/data/loads/generate_declet.R
a = 0:999;
# Generate a list of 1000 declets in hexadecimal form
positive1 = cbind(sprintf("%04X", a), "8", 0, sprintf("%03d",a));
# Generate a list wither the declet is 2 bits shifted
positive2 = cbind(sprintf("%04X", bitwShiftL(a,... | 9ad500cde57c61b97ba6aa69425d03f7e654be3a | [
"Markdown",
"R"
] | 2 | R | maxnuf/df34_raw_conversion | 1dd3abbb1c6594aaf36da6cafe00714af6c0aba7 | 8268197f17bbda8d5d0fe0734827a12e657d5c12 |
refs/heads/master | <repo_name>Icedroid/notes<file_sep>/nginx.md
# Nginx知识学习
## Nginx信号
$(NginxMasterPID):表示Nginx Master进程ID
### Nginx优雅停止服务:
```
kill -QUIT $(NginxMasterPID)
或
nginx -s quit
```
### Nginx立即停止服务:
```
kill -TERM $(NginxMasterPID)
或
kill -INT $(NginxMasterPID)
或
nginx -s stop
```
### Nginx重载配置文件(work进程会重启):
```
kill ... | 509bc3931c71d1477f4999d71fef3f969e20eed9 | [
"Markdown",
"Shell"
] | 2 | Markdown | Icedroid/notes | e297f1eae507d195b00109c11c608735afa280ae | 2dbb13f3e8da24bb116a176a2c8263a097a3383c |
refs/heads/main | <file_sep># PythonIntermedio
Scripts - Curso Intermedio Python
<file_sep>
def main():
my_list = [1, "Hello", True, 4.5]
my_dict = {"firstname": "Kevin", "lastname":"Cardenas"}
super_list = [
{"firstname": "Kevin", "lastname":"Cardenas"},
{"firstname": "Miguel", "lastname":"Lopez"},
... | cbaf31815035018008594b73e80e9c770bdf12d1 | [
"Markdown",
"Python"
] | 6 | Markdown | KevinCardenasDev/PythonIntermedio | 022fa790ac57263df26cc44c68ea1e8b92e94cff | a9865967343f5bfb0623d4396f660ff52bab96e3 |
refs/heads/master | <repo_name>pethaniakshay/OAuth2-Playground<file_sep>/resource-server/src/main/java/com/codepuran/ors/dto/UserDto.java
package com.codepuran.ors.dto;
import lombok.*;
import java.util.List;
@Getter
@Setter
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class UserDto {
private Long id;
private ... | 4c036faa50ecc8daac27f311dcb5ffe67cdc3f43 | [
"Markdown",
"Java"
] | 7 | Java | pethaniakshay/OAuth2-Playground | bc455fd7f17ffbbf5fb6ae7a7fba12d491e4ba8b | 6986272f5fa37eea6506e6b9000c8803d7c6731c |
refs/heads/main | <file_sep>Example:
```local lbt = require("lbt")
local test_string = [[<Trigger name="Take Bandage" state="False" id="6"/>]]
local new = lbt.gsub(test_string, '<Trigger name="*s" state="*s" id="*s"/>', function(name, state, id)
return 'Trigger name is ' .. name .. " state = " .. state:lower() .. " and id = " .. i... | a0efe696d02cda74e199f9665cd5faae457d23a0 | [
"Markdown",
"Lua"
] | 2 | Markdown | borsuczyna/lbt.gsub | 8e3f16d65717aff7e26537a98a4ad288342795d3 | 5e38917cf591a4bd13d8aca7c91758f055edfba1 |
refs/heads/master | <file_sep>Airbake .NET
============
**This is a work in progress, to create a new .NET notifier library.**
<img src="http://f.cl.ly/items/0L0G1z0E2A1P3H2O042F/dotnet%2009.19.32.jpg" width=800px>
Introduction
------------
Airbrake .NET is a C# library for [Airbrake][airbrake.io], the leading exception
reporting serv... | b42debf8f1e8188068de30c0661ec40ed5c654a9 | [
"Markdown",
"C#"
] | 2 | Markdown | kyrylo/airbrake-dotnet | 3a16c4c107df407451df1f4992826814c521e00d | 7da44ae29834ef56ad8e1ff9264990a05c32e9a9 |
refs/heads/master | <file_sep><?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a grou... | 5ed3055e0a3c84917b8adb3dfb2647bb11d9b8e9 | [
"Markdown",
"PHP"
] | 5 | PHP | vlaksi/KulminacijaZnanjaApp | 815b055f51275c30f39cf6e6d0ff8141f12c5e9d | ce7f2ef53cd576cda6ef81431095e7775325197e |
refs/heads/dillinger | <file_sep>/*
* This file is part of Dorpsgek.
*
* Dorpsgek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Dorp... | 95ad3485dc1bc74821b58ce7a1e7aac03148497c | [
"Markdown",
"Makefile",
"C++"
] | 19 | C++ | ZirconiumX/Dorpsgek | ced5d954ba7641d67e74aea15b0a37480bb34a74 | c1edd9615d29e9b4978ba67997b9f4cd0f029043 |
refs/heads/master | <repo_name>muratdogan17/muratdogan17.github.io<file_sep>/service-worker.js
var cacheName = 'havadurumu-6';
var filesToCache = [
'/',
'index.html',
'assets/css/main.css',
'https://fonts.googleapis.com/css?family=Lato:400,700,700italic,400italic&subset=latin,latin-ext',
'assets/img/bulut.png',
'assets/img/ic_... | 0af11f88758929cc6811a18fb56d2ae17fee11be | [
"JavaScript"
] | 1 | JavaScript | muratdogan17/muratdogan17.github.io | 07e017425a6a7ac560f14f608f854a29070f88b9 | 1bd43e7beeadab96f9c97a7be8c971e86eb6a391 |
refs/heads/master | <repo_name>tip2tail/ProtocolApplicationLauncher<file_sep>/MainForm.cs
/*
* Created by SharpDevelop.
* User: youngm
* Date: 19/08/2016
* Time: 13:43
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using S... | 96e0456a5771a8e9a086a3f6e43da7b6ac591e31 | [
"Markdown",
"C#"
] | 7 | C# | tip2tail/ProtocolApplicationLauncher | 1a31384961e35f96119915594b339f39df045b4c | da717ddba603cca42bf8123114f2354a1d300f7d |
refs/heads/master | <file_sep>export default {
IMAGE: {
CAMERA: {
OPEN: 'image.camera.open'
},
CODE:{
SCANQRCODE:'image.code.scanQRCode'
},
ALBUM:{
OPEN:'image.album.open'
}
},
UI:{
NAVIGATION:{
PUSH:'ui.navigation.push',
... | f7651f1431bdb9401f2f3f2fb7f2600bed8b8400 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | lemix-project/lemix-js-sdk | 1e8c7b34b21e9c25ab005b194f6a5ff5efb8d1c9 | 06311e8f82aebe683be2acbed20c71076a114d50 |
refs/heads/master | <repo_name>timothykoh/110_web_coding<file_sep>/my_imports.py
import time
import document
class g:
listCount = 0
class Debug:
debugMode = False
def log(s):
if Debug.debugMode:
print "<span class='blue-text'>" + s + "</span>",
def logln(s):
if Debug.debugMode:
pri... | 8be75b322c9258c23a61c8faacde4eea33b5f186 | [
"JavaScript",
"Python"
] | 2 | Python | timothykoh/110_web_coding | 6a7201ab5f4048253c2883828a71c2183da684f5 | eb3bf74e04dbf580add0477c3f7b7d4578984344 |
refs/heads/master | <file_sep><?php
class DashboardController extends BaseController {
protected $layout = 'layout';
public function index() {
$provincia = 'tucuman';
$this->layout->content = View::make('dashboard.index', compact('provincia'));
}
}
<file_sep><?php
class ProvinciaController extends BaseController {
protected ... | 8dc34b5f98742e9a147c1141722232e88aaa636c | [
"PHP"
] | 14 | PHP | juanem1/torneo-de-campeones | a34bba3146edf129cf4b7f6dad226e580020b70b | 0ca9f8a18ed8c372160d0951c7164c33c865ad50 |
refs/heads/master | <file_sep>import React from 'react';
import Modal from 'react-bootstrap/Modal';
import Button from 'react-bootstrap/Button' ;
import { useQuery } from '@apollo/react-hooks';
import gql from "graphql-tag";
function InformatonPokemon(props) {
const GET_POKEMON_INFO = gql`
query samplePokeAPIquery {
gen3_speci... | b1c91087b978b5b764cdfd6f9febc6e65a991563 | [
"JavaScript"
] | 4 | JavaScript | amirsalam/CodingExercice-Imedia24 | 0c0f0b9e5514f648013da519e5d214840282e4da | 94a63afaea3139d8994c5f046cef799830a151fa |
refs/heads/master | <repo_name>doomnuggets/scrapebin<file_sep>/scrapebin/models.py
import datetime
import time
from active_alchemy import ActiveAlchemy
from sqlalchemy.types import TypeDecorator, DateTime, Integer
from scrapebin.config import cfg
db = ActiveAlchemy(cfg.get('database', 'uri'))
class Paste(db.Model):
__tablename__... | 276e6d4fc894a90ffbde99ae2bd9e4a36162f03b | [
"Python",
"Text",
"INI"
] | 8 | Python | doomnuggets/scrapebin | 8fabe9c019646f0e1a051f609609e1f9fb7720e1 | 9cede77dd9911371bb386e0ea97ab800063caf51 |
refs/heads/master | <repo_name>niciyan/minimal-vimrc<file_sep>/install.sh
set -e
cd "$(dirname "$0")"
cp ./.vimrc ~/.vimrc
mkdir -p ~/.vim/
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/nerdtree
echo "\nDone"
| 9bea6bb17320ac0d498e9785d7cccfc0a191d419 | [
"Shell"
] | 1 | Shell | niciyan/minimal-vimrc | 13c6176ba09d996b5aa4cf00d72551ccac0f4f68 | 229fe44a091cdf50672388d332fb9d1bc870be21 |
refs/heads/master | <file_sep>import Vue from "vue";
import App from "./App.vue";
import { library } from "@fortawesome/fontawesome-svg-core";
import {
faAddressCard,
faAngleDown,
faCode,
faGraduationCap,
faHome,
faLaptopCode,
faAngleUp
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from... | 50b44ccc7d1d2d9877c4262b7766d097717afbbb | [
"JavaScript"
] | 1 | JavaScript | kruuskarl2/portfolio | daa3fe088023f2ae60c3dcf4b4e4924a34427444 | 0f406259da5878f5f7ec1e77a9b7432b210261b8 |
refs/heads/master | <file_sep>const model = require("./model");
exports.creator = async (req, res) => {
const entry = await model.create(req.body);
res.status(200).json({
msg: "successfully created",
data: entry,
});
};
exports.getAll = async (req, res) => {
const entry = await model.find();
res.status(200).json({
... | 59e59c544f95f5e6b3e405a303f2aa1ba3b1237e | [
"JavaScript"
] | 6 | JavaScript | romanusObialasor/TransPortApi | 9ba91af484b2cfd32ca195dfafa9942b0c7b80e5 | ca69e2d0d6bddeda7c9ae3df24d827548755c3db |
refs/heads/master | <repo_name>SparkyTS/3OX<file_sep>/main/java/com/sparkyts/connect3/MainActivity.java
package com.sparkyts.connect3;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.GridLayout;
import android.widget.ImageView;
import android.widget.LinearL... | 3feb4bce4365dbdf6a4d3b9ed5cf14f4ea498755 | [
"Markdown",
"Java"
] | 2 | Java | SparkyTS/3OX | af8b5217174ee1e486408eaf0767d28d8424bd4b | 2159fdec0713cf1199939eeb177530ba43171421 |
refs/heads/master | <file_sep><?php
/**
* Helper functions
*
* @package Talk_Plugin
* @since 0.0.4
*/
define('INC_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
require INC_PATH . '/php-jwt/src/BeforeValidException.php';
require INC_PATH . '/php-jwt/src/ExpiredException.php';
require INC_PATH . '/php-jwt/src/SignatureIn... | a2555b53fcc5c3ff1be9d5c8a2e7e00ef7cda6b7 | [
"PHP"
] | 1 | PHP | Trizone-media/talk-wp-plugin-jwt | f5fbbda42168f2217a109f9547c8b56ca378c689 | eac47f6e49b6767da540f80942fae370a97d4a91 |
refs/heads/master | <repo_name>DANISHPANDITA/facebookclone<file_sep>/src/firebase.js
import firebase from "firebase";
const firebaseApp = firebase.initializeApp({
apiKey: "<KEY>",
authDomain: "facebookclone-5b6c6.firebaseapp.com",
projectId: "facebookclone-5b6c6",
storageBucket: "facebookclone-5b6c6.appspot.com",
messagingSende... | d4d33812afa2a2b7eff27e0d64275e6781453862 | [
"JavaScript"
] | 7 | JavaScript | DANISHPANDITA/facebookclone | d165109f4e0432841759b703b55d48c4dd2010a9 | 1f88923b4e8cb1af0a2a781ff3a9d0056ce771c6 |
refs/heads/master | <repo_name>alu0100888102/MenusSaludables<file_sep>/MenusSaludables/src/menusSaludables/Plato.java
/**
* PRACTICA 3: Programación dinámica
*
* Esta clase representa un plato, guardando los datos de este (valor nutriciona, nutrientes nocivos, nombre)
*
* @author alu0100888102
* @version 1.0
* <NAME>
* <... | 35c64d89307e0ff85ef02716769943cb877a5239 | [
"Java"
] | 6 | Java | alu0100888102/MenusSaludables | 96066d2643e7a34f3c6ba446d219ef2956dcd216 | 519613c2a7b422ab71c6c1fffac7dfe1aa510159 |
refs/heads/master | <file_sep>Program ini merupakan scanner bahasa buatan "Sanca" yang bertujuan mengubah source menjadi token-token.
scanner ini menggunakan metode divide and conquer.
untuk contoh bahasa Sanca ada di file "input_file"
-Cara penggunaan :
masukan perintah ini di terminal ./main [nama/lokasifile]
masukan perintah ini di ... | 5b65949bccb3bf5adc1dcc8283b33d03ab1e532f | [
"Markdown",
"C++"
] | 2 | Markdown | Divewing/scannersanca | c68979aa2aae2688e14baaf47d0adb3cfff3a3d1 | d6fc855e09a4e26cc3e210fecdd84c0f5224768a |
refs/heads/master | <repo_name>metaphori/Paper-2019-PMC-SmartCam<file_sep>/build.gradle.kts
plugins {
id("org.danilopianini.gradle-latex") version "0.1.1"
}
latex {
"elsarticle-template" {
bib = "mybibfile.bib"
}
}
| 51b1085ea6868f15128c1cadc613a14fa75bed45 | [
"Kotlin"
] | 1 | Kotlin | metaphori/Paper-2019-PMC-SmartCam | 6dd3ec99c0bdfebb304f7f76ee680ab1f5f57a5b | b647a6b1070193d94f4444e24050c7aa23076f00 |
refs/heads/main | <repo_name>Joshua1171/ejemplos_practicos<file_sep>/src/main/resources/application.properties
spring.datasource.url=jdbc:mysql://localhost:3306/db_microservicios_examenes?serverTimezone=America/Mexico_City&useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.username=pruebas
spring.datasource.password=<PASSWORD>
... | e935de5956bed5cff693675cb3138dc1f5b60f60 | [
"Markdown",
"Java",
"INI"
] | 5 | INI | Joshua1171/ejemplos_practicos | f9d6c5dc2ccda68b7f1d92678535645d21b271cc | 9d384af748d3962204d7f436c15055da83f99942 |
refs/heads/master | <repo_name>EMMYMP20e/Sem-Sistemas-Operativos<file_sep>/03-AlgortimoDePlanificacionFCFS/SimuladorProcesoPorLotes/BCP.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.W... | 72bba4d7effd8f8417c6e812f8f615eebf42bfde | [
"Markdown",
"C#"
] | 10 | C# | EMMYMP20e/Sem-Sistemas-Operativos | 2a5e4a722cb93ef9a38559b5cc10309d9238159c | b3c75bcb30da3203442a19f660ed9ff6266c1605 |
refs/heads/master | <file_sep>sass-classnames
===========
[](https://www.npmjs.org/package/@helioscompanies/sass-classnames)
[Sass](https://sass-lang.com/) implementation of [classnames](https://www.npmjs.org/package/classnames).
Install with [npm](https://www.... | 6c99d2f366bf6cc0d744c493e4ce4985fac557ac | [
"Markdown",
"JavaScript"
] | 2 | Markdown | alexander-shipilov/sass-classnames | 6e8cab7f9095f0bde785a8ba73c1e30d4476e30b | df63e416689cf1776de325b560f9c09460c2572a |
refs/heads/master | <repo_name>VillzVic/Clean-Architecture<file_sep>/core/src/main/java/com/vic/villz/core/app/providers/DataProvider.kt
package com.vic.villz.core.app.providers
interface DataProvider<T> {
//asynchronous
fun requestData(callback: (items:T) -> Unit)
//synchronous
fun requestData() : T = throw NotImplement... | 50157995f64655fa66bb69919201c49bc234485d | [
"Kotlin",
"Gradle"
] | 25 | Kotlin | VillzVic/Clean-Architecture | 427737b0e643271da78cdbb6222d9bc6d9336431 | 7778335d8d9c683617178e5c3c766f97c38d4371 |
refs/heads/master | <file_sep>package com.lchrislee.longjourney.activities;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import ... | 1fa6b169bd3d47414f8fcdf95c2314c11dfde5cb | [
"Java",
"Gradle"
] | 7 | Java | lchrislee/LongJourney | 4409666ae1d1fca1b6ffac1b6aef6d37c6fb73f2 | 891044b971572cf74b89b2a1f893bee8175cdc7a |
refs/heads/master | <file_sep>using System.IO;
using System.Net;
using System.Threading.Tasks;
namespace Mixer.Base.Web
{
public class OAuthHttpListenerServer : HttpListenerServerBase
{
public const string URL_CODE_IDENTIFIER = "/?code=";
private const string defaultSuccessResponse = "<!DOCTYPE html><html><body><... | 955bf1e2e8425a4506f584af62961ed0c26e8491 | [
"C#"
] | 4 | C# | D3thw0lf/mixer-client-csharp | f998ab97b73a084a20565665d8650c0847cef49f | 7ac4f6e89d280c9c0b0bda0487276b5c143e761f |
refs/heads/master | <file_sep>markdown_viewer
===============
1. mkdir document
2. .md file in the document folder
3. access markdown_viewer.php
4. rewrite footer,header.
<file_sep><?php
include_once "markdown.php";
include_once "function.php";
$filelist = getFileList('/var/www/html/document');
?>
<html>
<head>
<meta http-equi... | f76c3b28d8cb49d7df89bbfab31125b4932f7fd8 | [
"Markdown",
"PHP"
] | 2 | Markdown | s-nojima/markdown_viewer | 6758a2f20ff8fa6b387fa6795abfbcb3069f842e | 92499f97d0738c7777d78588d871812fe554afdd |
refs/heads/master | <file_sep>class Article < ApplicationRecord
validates :title, presence: true
validates :body, presence: true
end
# (1..10).each_with_index do |i|
# Article.create(title: "title title title 0#{i}", body: "test test test est test etste test etste teest test 0#{i}")
# end | 9f0ecc1d90f863e5cde8f29908a25008c0d9d3c4 | [
"Ruby"
] | 1 | Ruby | y-okamoto-1113/portfolio | 22f2734dd76146875cdcb18b6b5ddbd9accc5de5 | bfd3e3601f5cc34f7b4f2f184b934524d09dd82d |
refs/heads/master | <repo_name>Supandi/OSX_MediaCenter_ElCapitan<file_sep>/scripts/install_couchpotato_agent.sh
#!/bin/bash
## Initializing
if [ -f _functions.sh ]; then
source _functions.sh
elif [ -f ../_functions.sh ]; then
source ../_functions.sh
else
echo "Config file functions.sh does not exist"
exit 1
fi
if [ -f confi... | de54c720536e64008c3350cb2f2e6c45db9793f5 | [
"Markdown",
"PHP",
"Shell"
] | 62 | Shell | Supandi/OSX_MediaCenter_ElCapitan | d0868f0632f1c1f579d064b6477c359f71fde86c | 698c1b4a333f46f1fea721ed1e2c4419f54257f1 |
refs/heads/master | <file_sep>{% extends 'base.html' %}
{% block title %} Registration Form {% endblock %}
{% block content %}
<h1>Registration Form</h1>
<!-- email, age, zipcode, password -->
<form action="/register" method="POST">
Email: <input type="email" name="email" required><br>
Password: <input type="<PASSWORD>" name="<P... | 06fc0b821d6aa9a8bc6dfc242ed5f580388ac2ee | [
"Python",
"HTML"
] | 2 | HTML | MenaAdams/ratings | c2ba82cb0a3ad501467e215193539ccbcff50798 | 442d0292b462b45f2ddac896c28d53c53c2f16f2 |
refs/heads/master | <file_sep>"use strict";
$(document).ready(function()
{
// Offset initialization and updating
var offset = setOffset()
$(window).resize(function ()
{
offset = setOffset()
})
function setOffset ()
{
if ($('#navbar').is(':visible'))
{
return 50
}
else
{
return 0
}
}
// Wow scroll animation... | f0c67022da7c109f2a2420c911cf7347e8f2e775 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | dispix/dispix | bcf12205ba2409a40385c38eeca2036727153e9a | 4d24b94598cbb4b0e548226380b024c1dba5ae01 |
refs/heads/master | <file_sep>package com.kotlab.supreme.paging
import android.arch.paging.PageKeyedDataSource
import android.util.Log
import com.example.pagination.RetrofitClient
import com.example.pagination.Utils
import com.example.pagination.Utils.Companion.NEWS_URL
import com.kotlab.supreme.paging.response.ApiResponse
import com.kot... | 2f1b7791b939f96d0696d566f1bc08cde3135ceb | [
"Kotlin"
] | 6 | Kotlin | technologist25/Pagination | 3c233d111f31768bfc7d9f5b10171d8dd2134fc5 | bf3b063f253db3ef5557f6e637c3afc9361b4931 |
refs/heads/master | <file_sep># git-bash-linux
git-bash-linux
# 在/etc/bashrc 和 ~/.bashrc 前面添加这些代码
```bash
function get_git_branch_now {
git branch --no-color 2> /dev/null | awk '/\*/{printf "\033[34m[>"$2"]\033[0m" }'
return 0
}
function get_git_status_now {
#合并冲突状态
git status 2> /dev/null | grep -q "Unmerged p... | b6adfe9f8eaf118c85500cfec50dfc180a032c53 | [
"Markdown",
"C"
] | 2 | Markdown | niroshea/git-bash-linux | bffc0485177f59e9e5732de95755f252b039f2d8 | 2ef55f53c132538e3cbbdf3c318face7cebcb82f |
refs/heads/master | <file_sep>#!/usr/bin/env node
const fs = require('fs');
const chalk = require('chalk');
const path = require('path');
const targetDir = process.argv[2] || process.cwd();
fs.readdir(targetDir, async (err, filenames) => {
if (err !== null) {
console.log(err)
return;
}
const statPromises = ... | 7d2c178e44f545f18e2e3b16f7684a9bb5aa7e0a | [
"JavaScript"
] | 1 | JavaScript | marcburnie/node-ls | 4179183574f35756255466883378b062465e7752 | 3ad2df71f334a3a1fe362436315e93773883cd9a |
refs/heads/master | <file_sep>#!/usr/bin/env python
# coding: utf-8
import argparse
import os
import glob
import time
from torch.utils.data import Dataset, DataLoader
import pandas as pd
from torchvision import transforms, utils, datasets
from PIL import Image
import torch
from torch import nn
from torch.nn import functional as F
impor... | b4ff80ed32f7a7660096169dbcdddb283fd2e91b | [
"Markdown",
"Python",
"Shell"
] | 5 | Python | wookiekim/OpenAI_Caribbean_Challenge | e5ec8bbfaa68bf4e7c2d57667dbd0742b2984060 | 4f09f8e24df0eb70ae113f8c2c80b2e641461a9b |
refs/heads/master | <file_sep>#Autor: <NAME>
#Grupo 02
#Descripción: Con una serie de funciones se crea figuaras geometricas.
import pygame # Librería de pygame
import math #Librería de matematicas de python
# Dimensiones de la pantalla
ANCHO = 800
ALTO = 800
# Colores
BLANCO = (255, 255, 255) # R,G,B en el rango [0,255], 0 ausencia d... | 1f1223351b9ccf1f56cd834523ba30ffc1e5c9c7 | [
"Python"
] | 1 | Python | DanCordova/Mision_06 | 0702bfdf82c282525fa3d0bc24f3460c72c31c02 | 7f6caf287a2098bf1362afa5c700d38a877acec4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.