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># IABSample
In-app Billing Sample for Android app
<file_sep>package com.nfujii.iabsample;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentSender;
import android.content.ServiceConnection;
impor... | 9ee6a7174329bf0d28593f2c4de927e370662076 | [
"Markdown",
"Java"
] | 2 | Markdown | naokinkfj/IABSample | b9c9364f96b13ea254e319328f2fc7d972438edc | 9285150cea84741d5d9e5199a9ee0edb66f0b782 |
refs/heads/master | <file_sep>//
// BreakingBad.swift
// Breaking_bad
//
// Created by <NAME> on 28/6/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
import Foundation
struct Character: Codable {
let name: String
let char_id: Int
let nickname: String
let img: String
}
struct CharacterQuotes: Codable {
le... | c99c09a0ca7083bb4967d2fe1f9d50cfc1e65dc8 | [
"Swift",
"Markdown"
] | 4 | Swift | pakhuiying/Breaking-Bad-iOS-app | 400c6df2cacbc70f9426efcdf4b83d8246d8a62c | 136d383129a1bc5e0ed23244c484bebc6e4cb26a |
refs/heads/master | <file_sep>class Api::V1::TagsController < ApplicationController
def index
tags = Tag.all
render json: tags
end
def create
tag = Tag.create(tag_params)
render json: tag
end
private
def tag_params
params.require(:tag).permit(:title, :hostname, :frame, :order, :remoteip)
end
end
| 2d4bbfbabb8b23225a910fd83945937d6a2ada44 | [
"Ruby"
] | 1 | Ruby | chrnobyl/sk-api | abc8b8b203611d812c993324f9fcae0a66c7df30 | cce4892f85c9588aa54c64f4f5a66fc63228ada8 |
refs/heads/master | <file_sep>/*!
* Servomotor sprinkler.
* @author <NAME>
* @version 0.1
*/
#include <SimpleServo.h>
// Input & Output pins.
const int servoPinId = 0;
const int statePinId = 1;
const int sensorPinId = 2;
// Determines whether or not the servomotor was activated.
bool activated = false;
// Servomotor controller.
Sim... | 7990299aa4eb29581522db06b126d0f7eb3576fb | [
"Markdown",
"C++"
] | 2 | C++ | balmanth/servo-sprinkler | ff062e8397ff70e8105048a712e0b6a13ace8eb0 | 509676b52556881a9ce13acaa40a177450eb2f3b |
refs/heads/main | <repo_name>Karan-Munjani/Cryptography_Using_Python<file_sep>/Playfair Cipher.py
def generateKeyMatrix (key):
# Create 5X5 matrix with all values as 0
# [
# [0, 0, 0, 0, 0],
# [0, 0, 0, 0, 0],
# [0, 0, 0, 0, 0],
# [0, 0, 0, 0, 0],
# [0, 0, 0, 0, 0]
# ]
matrix_5x5 = [[0 f... | 69515fe7b876984201e6b85349b6f62fe906612b | [
"Python"
] | 1 | Python | Karan-Munjani/Cryptography_Using_Python | fd1615cc33c7902c2c4445a41676ce0d2a731a83 | 575b7cc902a89fb84975ddf428659ea0acba60f7 |
refs/heads/master | <repo_name>zebramobile/easy_ddns<file_sep>/easy_ddns.gemspec
Gem::Specification.new do |s|
s.name = "easy_ddns"
s.version = "0.0.3"
s.author = "<NAME>"
s.email = "<EMAIL>"
s.homepage = "http://code.dusty.name"
s.platform = Gem::Platform::RUBY
s.summary = "DDNS Updater for dnsmadeeasy.com"
s.has_... | 1a5ef74ddf3c7441cbdf1fd0eb42cf967666f0b5 | [
"Ruby"
] | 3 | Ruby | zebramobile/easy_ddns | cd724260483c81045d3a6af671551bee5ed27261 | 639f12f1724a33a6b43cffb8bc14b20f87701e7f |
refs/heads/main | <file_sep># Imprimir para cada numero de 1 ate 100 em uma nova linha
for item in range(99):
if (((item + 1) % 3) + (((item + 1) % 5)) == 0) and item > 0:
print ( "FooBaa")
else:
if (((item + 1) % 3) == 0):
print ("Foo")
else:
if (((item + 1) % 5) == 0):
... | 1a767068ecdf58b622a5f17a146ab427839b8be9 | [
"Markdown",
"Python"
] | 2 | Python | tkrzesinski/Resposta2 | d1a042ee1cc1257b287d5e68cf4ea8e4294252c3 | 6fe36029b5d35220f0742826cb04187cff4b01a5 |
refs/heads/master | <repo_name>larakit/lk-auth-simple<file_sep>/boot/routes.php
<?php
Route::group(['middleware' => 'web'], function () {
Route::get('login', function () {
return view('login');
})
->name('login');
Route::post('login', function () {
$login_field = config('auth-simple.login_field', 'em... | b92dd7e243abdb36debd05b216c09b472752c3c6 | [
"PHP"
] | 3 | PHP | larakit/lk-auth-simple | ebe75ec48edce19e4782ba34c74560220443ebab | 8fd41dd822022720c1e3ab8b01f376b08504d1e3 |
refs/heads/master | <file_sep>## 安装
```
npm init -y
npm install vue vue-router axios bootstrap
// axios@0.17.1
//bootstrap@3.3.7
//vue-router@3.0.1
//vue@2.5.3
```
## 路由
- 访问不同的路径,就可以返回不同的结果
## 多页面 与 SPA
- single page application
<file_sep>## vue-cli
- 下载一个全局生成 vue 项目的脚手架
```
npm install vue-cli -g
vue init we... | e1c8652e963747d7bc2e3bddb94f46243cbc466f | [
"Markdown",
"JavaScript"
] | 14 | Markdown | gitbeyond/gitskills | 8b429c30ffbdbc8c9c01f7895f63d913dfc437d4 | c0682b19a0938bafd24460f6a3f68f2efc8b7114 |
refs/heads/master | <file_sep><?php
/**
* Template Name: Services
*/
$container_class = "js-container";
get_header();
?>
<div class="sp-sm-4 sp-xs-6"></div>
<section class="block">
<div class="container">
<h2 class="block__title">
Wedding Photoshoot
</h2>
<div class="sp-sm... | 10aaaabed6133095f660bbab85f32c5c8720dbf1 | [
"PHP"
] | 7 | PHP | kudinovfedor/marina-zhuravlova | 198e25677269fee1058e88df43d0bd0f89648c7e | 8a77f2aa4f587a9a74babc576ff0e52bd0d612d8 |
refs/heads/main | <file_sep># Battleship-Website
### Created by <NAME> & <NAME>
Currently a functional Battleship game but unfunctional back-end as it needs to be hosted and ran locally.
Description: A two team partner project for Web Development class intentionally made in LAMP stack with each team member utlizing full-stack develo... | f1f2d87329c5e6255fde04ea910f7a0f83aae884 | [
"SQL",
"Markdown",
"JavaScript",
"Text",
"PHP"
] | 15 | Markdown | JoshuaFrancisco/Battleship-website | 991f7f207fa61d0126c39047976ac71cfcad2eb9 | 3a7d3114673fbec6d1483d344a7d78af80609805 |
refs/heads/main | <repo_name>APPLESHOTTIPS/REACTFORMVALIDATIONS<file_sep>/Slectedbox.js
import React from 'react';
class Slectedbox extends React.Component {
constructor(props) {
super(props);
this.state = {
selectedcars : ""
};
}
render() {
return (
<Reac... | b1f17f31e73597af3a04b9f5735b9f03917780b1 | [
"JavaScript"
] | 2 | JavaScript | APPLESHOTTIPS/REACTFORMVALIDATIONS | 377f524587167da799042536afe001992c288601 | 7145b02de3bc18337b8a2d5a0cc27865007437c6 |
refs/heads/master | <repo_name>paulmassen/volumio_rfid<file_sep>/README.md
# volumio_rfid
Volumio & RFID via ESP8266
## Usage
<file_sep>/volumio.ino
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <SPI.h>
#include <MFRC522.h>
const char* ssid = "MYSSID";
const char* password = "<PASSWORD>";
//This is for a Wemos ... | e33fe031f57a182f3ea7977e724cb2368b82a308 | [
"Markdown",
"C++"
] | 2 | Markdown | paulmassen/volumio_rfid | 085cbf6cb6a0fa4417844fdd84af8b000bcc326c | 2b67cc6e976a81f761b893a94de9b3f455631559 |
refs/heads/master | <file_sep># symfony-dzien-3-i-4-
<file_sep><?php
namespace CodersLabBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFoundation\Request;
use... | 82484c9b3fe07ea7584b63ffac361f534f22a031 | [
"Markdown",
"PHP"
] | 5 | Markdown | ms08/symfony_pModel_pForm | 1b4e38354282b7698e44129372eebed4a28734bf | d80c81244366fde284348111baf0838f551598fb |
refs/heads/master | <file_sep>import React, {Component} from 'react'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import {Link} from 'react-router'
import actions from '../../redux/actions'
class UserIndex extends Component{
componentDidMount(){
this.props.actions.getUsers();
}
render(){
cons... | 6b02046d9468e908d78a0880822ecfcb86b04ab2 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | kakorcal/react_express_webpack | a073c83bbf65563c663ea852292dc4ccd0d3acb7 | 051694295aef5aaf35e7b97f6d517707dd9968fe |
refs/heads/master | <repo_name>flum1025/Java-Rsa<file_sep>/src/rsasample/RSASample.java
package rsasample;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.math.BigInteger;
import java.security.Key;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.Ke... | 308b5f0d0fb7544a9978995a42decb928a514d7b | [
"Java"
] | 1 | Java | flum1025/Java-Rsa | bded662ca282b8f56988376c90d34040194e55cf | 85c3c20e847c0baeb7f26900b97500d44be1b370 |
refs/heads/master | <repo_name>SDEagle/kaheim<file_sep>/db/migrate/20140821101422_remove_public_and_public_until_fields_from_items.rb
class RemovePublicAndPublicUntilFieldsFromItems < ActiveRecord::Migration
def change
remove_column :offers, :public, :boolean
remove_column :offers, :public_until, :datetime
remove_column :req... | 916bc8074e0788d08fa6dd51f17d95fa3d79ccd6 | [
"Markdown",
"Ruby"
] | 60 | Ruby | SDEagle/kaheim | 19f730aec8f888f23c1c81ffb8ffe0cee31bb579 | 22a6c5b7c46819367a28c3a16e60f17ae95c0561 |
refs/heads/master | <repo_name>kajames2/bidding<file_sep>/src/first_price_auction.cc
#include "bidding/first_price_auction.h"
#include <algorithm>
#include <boost/math/distributions/uniform.hpp>
#include <boost/math/quadrature/gauss.hpp>
#include <boost/math/quadrature/gauss_kronrod.hpp>
#include "bidding/bid_function_ops.h"
#include <... | 845c0b300503fef112abdba7625d1676ee6cb7ce | [
"C++"
] | 10 | C++ | kajames2/bidding | 582e0499ecd13de3512b83dc8a5ea97128d7e3b3 | c505f49e51c621df08291bdfcfbcb8b5dfbb96d1 |
refs/heads/master | <file_sep># django import
from django.conf.urls.defaults import include, patterns, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.simple import direct_to_template
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns(
"",
url(r"... | 9d5645fffebb0d2ae350b39c925fda3328894846 | [
"Python"
] | 1 | Python | toopy/django-toopy-editor | 90ff809d90808c6fa206a762c0c6fb19bf390554 | b3b160941d4604a03be1e482d690c558a268b864 |
refs/heads/main | <repo_name>nazimbandoui/car_tracking<file_sep>/track.py
import numpy as np
import cv2
import time
def foofunction(x, y):
a = []
b = []
c = []
for i in range(0, len(x)):
state = False
for j in range(0, len(y)):
if np.all(x[i] == y[j]):
b.append(x... | 5ae96fb12fb3b7f7633b01c8002304b691a482e9 | [
"Python"
] | 1 | Python | nazimbandoui/car_tracking | 588ec00154ed1c71dd644cfc5c4531cb5c70976d | 551c6c8e9390ad392f409a43807bd54879cd2e26 |
refs/heads/master | <file_sep>const carname='Swift';
function discount_percentage(price,deliverycharge,discount){
var original_price=price;
var deliver=deliverycharge;
var discountvalue=discount;
return function(){
console.log(`The car name is ${carname}`);
return((original_price+deliver-d... | 6f1bd6702c32e6c36a7ceafd308b0bb2c629592a | [
"JavaScript",
"SQL",
"C#"
] | 27 | JavaScript | Aparna-Psiog/IMPACT_ASSIGNMENT | 5fd4b9d6618f133bf5e9add4f6044d535f8db6ad | d09fcf9f9d07586c59a561a3eca97570d04e5b35 |
refs/heads/master | <file_sep>package com.works.foodtownproject;
import java.sql.PreparedStatement;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotat... | bdf31a1f4d8f6f2bd3a0e1609bf037b027996269 | [
"Markdown",
"Java",
"SQL"
] | 14 | Java | serdarsanu/SpringOrderProject | 5d41dab6a58364b4257c30ba63a2d7f224ce0b27 | da8e15f2d7df6cbd0a1298998cfe4e4e15b7be36 |
refs/heads/main | <file_sep># OpenWeatherApplication
## Index
* About this project
* Deployed Site
* Technologies Used
* Deployment
* Author
## About this project
To get this application of the ground I employed the use of OpenWeathers API in order to retrieve current weather conditions of the locations the users insert into the se... | 8ae61c97852a89840bdb0cadf3a4922d4864814f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | JoeyFlygare/OpenWeatherApplication | 042e198d37b94d2175ffcafc08bb40503089b96b | cd36778a87315bd55616842b4f8d2c77db7507e3 |
refs/heads/master | <file_sep>var qs = decodeURI(window.location.search)
.replace('?', '')
.split('&')
.map(param => param.split('='))
.reduce((values, [ key, value ]) => {
values[ key ] = value
return values
}, {}); | de1341e83a242e458ed9c2fa5eda89ca82e5208d | [
"JavaScript"
] | 1 | JavaScript | lightcouncil/Snippets | 1d8426b4d9afe47bafcd7f29ac92e7ec90576632 | 43d8f329f1c24aae29ad1a31d1bed0870c4306c8 |
refs/heads/master | <repo_name>tiesmaster/bag_importer-for_mongo<file_sep>/xslt/import_opr.sh
#!/bin/sh
echo 'db.street.drop();' |mongo bag
time \
for x in 9999OPR08112011-0000*xml
do
xsltproc import_opr.xsl $x |mongo bag
done
<file_sep>/README.md
bag_importer-for_mongo
======================
[![Join the chat at https://gitter.im/tie... | 9bb77cfa93691c98046b9989a32fe8a2a8f8b499 | [
"Markdown",
"Shell"
] | 2 | Shell | tiesmaster/bag_importer-for_mongo | cd40419c3e99462938e90966622ec8ee3f09aa38 | f1cdae3850733e0a8cb339ed7fd0d53672e0100b |
refs/heads/master | <file_sep>class EntriesController < ApplicationController
def index
# respond_with Entry.all
@entries = Entry.all
render json: @entries
end
def show
@entry = Entry.find(params[:id])
render json: @entry
end
def create
@entry = Entry.create(entry_params)
render json: @entry
end
... | 07989a3bfe5ed112f0d888afc837e03e600d363c | [
"Markdown",
"Ruby"
] | 2 | Ruby | hayesr/raffler | 0ac4c40ee65d69d0d916cb6de7e4c42c438ec287 | f14e0a205ffcd8823854fb67760bef03eba62333 |
refs/heads/main | <file_sep>import { HttpClient } from "@angular/common/http";
import { Injectable } from "@angular/core";
@Injectable()
export class ContactService {
constructor(private http: HttpClient) {
}
sendMessage(email: String, sujet: String, message: String, )
{
console.log("email : " + email);
... | 2b0843b3ff187ddd9cad9965519f3ea131a87468 | [
"TypeScript",
"HTML"
] | 8 | TypeScript | taimourya/PFA_ReservationAndLivraison_WebSite | 70521d912f687845a03c3356fe76d4e196b67b6d | e40acfe151e8172e9f2d83289839eff5fdb8fd2c |
refs/heads/master | <file_sep>const express = require('express');
var router = express.Router();
const mongoose = require('mongoose');
const Albums = mongoose.model('Albums');
var axios = require('axios');
router.get('/', (req, res) => {
res.render("album/addOrEdit", {
viewTitle: "Coloque o titulo do Album:"
});
});
rou... | 77b44884335dc8de44f60c50d43360fdb310075e | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Thi4gon/CRUD-REST-NodeJs | ee5ce2355fc8f75722d5ab22a78e0ec0ba874f3b | b88ef5ea49ceb98793681ee382932c377b2071e5 |
refs/heads/master | <file_sep>package com.example.ryutasakamoto.readfelica;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;... | 226a9ca13c29de55bb360e195f9944a1d97e9ca6 | [
"Java"
] | 3 | Java | gonta/ReadFelica1127 | 34b7c1022b4e0b92ac440f0d8bcfa282a522bd86 | d92ebf852f5b15db019bac238f68d280c93e84d6 |
refs/heads/master | <repo_name>artuntun/kinect-gestures<file_sep>/loadFile.py
from collections import deque
import numpy as np
class SkeletonFrame():
"""This class store data for each Skeletonframe"""
def __init__(self, line):
tokens = line.split()
self.label = tokens[0]
self.hand_left = np.array(tokens[1... | 591e183f954c7fb52dd57b20c8b693a7d7ffc468 | [
"Python"
] | 4 | Python | artuntun/kinect-gestures | b0b617a3cc95454640da7dd12044fd744b87b4d0 | 92b5a0e064201a3cf9b37490d6c9a1d697a3c5e0 |
refs/heads/master | <repo_name>gswierczek/better_old<file_sep>/src/main/java/com/codistica/better/model/Bet.java
package com.codistica.better.model;
/**
* Author <NAME>
* Created on 2017-11-16
* Contact <EMAIL>
*/
public class Bet {
private Pick pick;
private Double odds;
private BetStatus betStatus;
}
<file_sep>/src/mai... | 3fbee2751199844c8b5a56e87bed9840748fe842 | [
"Java"
] | 3 | Java | gswierczek/better_old | 40fe78469dd990be63c5a6ce5fd76e7d8d32c2e7 | 3c5811306f3793531959c7d3a29b774a7ce9e353 |
refs/heads/master | <repo_name>shyd/google-photos<file_sep>/REST/PhotoFrame/Dockerfile
FROM node:13
WORKDIR /usr/src/app
COPY . .
RUN npm install
RUN mkdir -p /data/sessions
RUN mkdir -p /data/persist-storage
VOLUME ["/data"]
EXPOSE 8080
CMD [ "node", "app.js" ]
<file_sep>/REST/PhotoFrame/static/js/config.js
function loadConfig() {
... | 0a323938f4ce97b3eeb45fcad5f2bf787324c100 | [
"JavaScript",
"Dockerfile",
"YAML"
] | 3 | Dockerfile | shyd/google-photos | aeb3bd237ac5f7049b9e8ba79356712338a04cb4 | e8640070b66ce297fd4f37a94e77b203e75c6953 |
refs/heads/master | <repo_name>545zhou/identify_fraud_from_Enron_emails<file_sep>/poi_id.py
#!/usr/bin/python
import sys
import pickle
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
from tester import test_classifier, dump_classifier_and_data
### Task 1: Select what features you'll use.
### fe... | b95d356216ba91fc988ac23759df190d18d85d4d | [
"Python"
] | 1 | Python | 545zhou/identify_fraud_from_Enron_emails | 5a1d787cec35634e505fb357f7da023ae8828346 | 52d608006b63f414e6a7c0826e91b626ebe7ec98 |
refs/heads/master | <file_sep># python
Leave any hint about task 2 because i could not understand it, but I am working on it. anyway please give any recommendations especially about task4.
thanks)
<file_sep>import os
try:
input_path = input(r"path: ") # absolute path to file
base_path = os.path.normpath(input_path)
with... | 070801d7a56b71d475baf9031c8ae61540310939 | [
"Markdown",
"Python"
] | 4 | Markdown | azikoDron/python | 425d4622469475a8eb87d82fe97c21ffbc0ffb29 | ccef77da2634c9a183c81b245a22b87b9546af08 |
refs/heads/master | <file_sep>CREATE TABLE users (
id INTEGER PRIMARY KEY,
email VARCHAR(50)
);<file_sep>package demo.config;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configurat... | ed4ecdd563535543aa68032e2f75bf3062822dbb | [
"Java",
"SQL",
"INI"
] | 4 | SQL | tanpatrick/legacy-spring-hibernate-demo | 3ee31cfff2a370a6e0fbd558628b8f6a26336676 | d9aa8c10dfac7d4e35b1c58af169efc0960d2e98 |
refs/heads/master | <repo_name>vitland/telegram_bot<file_sep>/index.js
var TelegramBot = require('node-telegram-bot-api');
var token = '<KEY>'
const bot = new TelegramBot(token, { polling: true });
bot.on('message', msg => {
console.log(msg)
const { chat: { id }} = msg
bot.sendMessage(id, 'Pong ' + msg.from.username)... | b4a789cdd9cbebc076e2e7a6d78563bbac4e5fcc | [
"JavaScript"
] | 1 | JavaScript | vitland/telegram_bot | 18a06bcfeaecccead3235b09ac69a912d2136f59 | 679e4a2b06fe19b8ab7cb20cf89916090cfe8a19 |
refs/heads/master | <file_sep>$(document).ready(function () {
AOS.init({
// Global settings:
container: "#how-does-it-work",
// Settings that can be overridden on per-element basis, by `data-aos-*` attributes:
offset: 50, // offset (in px) from the original trigger point
delay: 0, // values from 0 to 3000, with ste... | 6e5f838d07a74a18d8e79b8db15c0b371dd3c75a | [
"JavaScript"
] | 1 | JavaScript | junh4533/qronus-website | 10a23c6b1860323c8fd0d06170f2322c69ad36d7 | 642ef522fbc58bae4fb90ea602c01c157234e673 |
refs/heads/master | <repo_name>174381115/private-study<file_sep>/HotLoadClass/src/com/ruijie/classloader/MyClassLoader.java
package com.ruijie.classloader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
public class MyClassLoader extends ClassLoader {
// 要加载的java类的classpath路径
private String ... | b44560080d1cfa4752da54f2b00d6c4c20f44beb | [
"Java"
] | 2 | Java | 174381115/private-study | dc1ae3cb683065240c9591ea3412880fb24f2304 | 522490ccfd431133c095adf242a108a75a7af60a |
refs/heads/master | <file_sep>var mongoose = require("mongoose")
const studentSchema = new mongoose.Schema(
{
studentname:{type:String},
rollno:{type:Number},
admissionno:{type:Number},
college:{type:String},
}
)
var studentModel=mongoose.model('students',studentSchema);
module.exports={stu... | 281282714d34569ba898da6f63e76d155ba4c913 | [
"JavaScript"
] | 1 | JavaScript | meghats123/mynodejsstudentapp | b3e851845008699c96e30d9cdb862b13b766f89f | f50beb1b283c61a3a8104db6f57f0340275af704 |
refs/heads/master | <file_sep>package com.no.company.workfordayserver.entities;
import javax.persistence.*;
import java.util.Set;
@Entity
@Table(name = "vacancy")
public class Vacancy {
@Id
@GeneratedValue
private long id;
@OneToMany(mappedBy = "vacancy")
private Set<Dispute> disputes;
public long getId() {
... | 72d3c4ea5b1909e4056e599019549738f1ed44de | [
"Java",
"INI"
] | 4 | Java | MykolaHodovychenko/workfordayserver | 74bd4742ea74052993200d047ac2e23acca0656e | 3c5878f6903c637666b1c50f434ae85a510e8f20 |
refs/heads/master | <repo_name>avisri/rids-play<file_sep>/es_update_when_notified.sh
#!/bin/bash
set -o errexit
id=${1:? need proper id }
counters=${2:-`cat $id`}
master=${3:-`hostname -s`}
date=`date +%s`
curl -XPOST localhost:9200/rids/clients/$id -d '{ "@timestamp":'$date', "ridscounters" : "'$counters'", "lastupdate_master" : "'$ma... | 8bf27a32e3343341888b424e79c4c4e3c787a1b1 | [
"Python",
"Shell"
] | 2 | Shell | avisri/rids-play | 3f575ca26d998102942b53fe20e52a13cbb4c8f0 | 200d405d75e3e15985343f3bc40742621f5693ee |
refs/heads/master | <repo_name>onegodless/TreasureCaveWindows<file_sep>/hero.py
#! -*- coding: utf-8 -*-
'''
Created on Jan 26, 2018
@author: <NAME>
'''
class Hero(object):
'''
classdocs
'''
def __init__(self, strength = 10, hp = 100):
self.__strength = strength
self.__hp = hp
self.__heroPos = [... | 3c9c7ebe3f115ce5794a78c15fc8c2b13e66de07 | [
"Python"
] | 5 | Python | onegodless/TreasureCaveWindows | 2f51d455b9bdf15208197f25d36c125990585338 | 18a66cebd46f4288567916cdc41f60e5de82cd6b |
refs/heads/master | <file_sep>#!/bin/sh
set -e
cabal exec sigkill clean
cabal exec sigkill build
cabal exec sigkill deploy
git push
| a23308c4c579c5f8e2cde2d9031c69e25133a8da | [
"Shell"
] | 1 | Shell | endgame/sigkill.dk | 85bb1c735802699364931e166a39c9abb07a22b1 | 561b6dbb214c26e26cfa6f4b364f083490935bb6 |
refs/heads/master | <repo_name>marhub/graphqlite<file_sep>/src/AnnotationReader.php
<?php
declare(strict_types=1);
namespace TheCodingMachine\GraphQLite;
use Doctrine\Common\Annotations\AnnotationException;
use Doctrine\Common\Annotations\Reader;
use InvalidArgumentException;
use ReflectionClass;
use ReflectionMethod;
use ReflectionPar... | 5b8880fc806b79c1173a7b819daa894416373cdd | [
"PHP"
] | 8 | PHP | marhub/graphqlite | 4fe8fcbfa07340803b0cb252872ad99de44413fc | eedd5a2abc39789831edb58c7acddc81e59e7d32 |
refs/heads/master | <repo_name>miguelmoreno/experiments-SingleArmClockHTML5<file_sep>/scripts/clock.js
var stageWidth = 420;
var stageHeight = 320;
var stage;
var layer = new Kinetic.Layer();
var mainImage = new Image();
var hourImage = new Image();
var minuteImage = new Image();
var secondImage = new Image();
var timeText;
var minute... | 5866739652be060b473d248aec0590f4c69a1228 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | miguelmoreno/experiments-SingleArmClockHTML5 | 6ea8bca63eb2b8b168a010905c415f924ac56f0e | cf7eb22e1a1cf04e2edc08c177fd46c629e00ff7 |
refs/heads/master | <file_sep>import java.util.Scanner;
public class MainATM {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double amount, balance = -1;
String accountName;
int choice = -1;
long accountNumberSource, accountNumberDestination, accountNumber;
while (choice != 0) {
Syste... | 6804b6fa8a4d9feb028413bceac8c5b8c34293de | [
"Java"
] | 2 | Java | esmajic/ATMzero | fa97190ef544ef282ab81509b843780a631b4e48 | 01fdccbfbf25d6547237c7583e3a88cea46de32a |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import Inicio from './Home/Inicio'
import ListaCategorias from './Categorias/Lista-Categorias'
import ListaPerguntas from './Perguntas/Lista-Perguntas'
import Resultado from './Resultados/Resultado'
import {BrowserRouter,Route} from 'react-router-dom'
import './App.cs... | 0a30c775277cc7a81260da32d492c828eb7eb1ca | [
"JavaScript",
"Python"
] | 11 | JavaScript | jcezarc/cursoReact | 6cad411801a8e65cc672a5f3325bae51d96732de | bd9b86c7cca7b252e96cbdffafa66cd56b135720 |
refs/heads/main | <file_sep>import requests
import json
from bs4 import BeautifulSoup
def get_recipe(url):
client = requests.session()
client.headers.update({
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36',
})
r = client.get(ur... | c8333f55e0b89caa8e06de9a5f25882cec68b607 | [
"Python"
] | 1 | Python | pingpong17/Recipes | 3d25a7bcdaa3e021ddc883987a98e96fc7f8790b | 6c51b5d74d53a72ce84e05fedaded17827f24a25 |
refs/heads/master | <file_sep>#! /bin/sh
set -e
WEAVE_VERSION=${WEAVE_VERSION:-latest}
IMAGE_VERSION=${IMAGE_VERSION:-$WEAVE_VERSION}
if ! grep -q "FROM.*$WEAVE_VERSION" image/Dockerfile ; then
echo "WEAVE_VERSION does not match image/Dockerfile"
exit 1
fi
# Build helper program
go build -i -o image/kube-peers -ldflags "-linkm... | 51c5d4b82482954c82d582c539232a599b1083ca | [
"Shell"
] | 1 | Shell | bboreham/weave-kube | 3c13f502361ce4d01174e52e950057386dc5fe4b | f716163a155cba9edeac50289f1c69a8124affd8 |
refs/heads/master | <repo_name>PerseveranceGroup/jeep<file_sep>/jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/modules/test/cppcc/mapper/ComDataMapper.java
/**
* Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
*/
package com.jeeplus.modules.test.cppcc.mapper;
import com.jeeplus.modules.te... | 7be333cf65042b44807d885be7ecafd62e24f94d | [
"Markdown",
"Java",
"Maven POM",
"INI"
] | 116 | Java | PerseveranceGroup/jeep | ed4d0c0fb6ec471c0f78a40c12e69252705f14b8 | 3367adc39429681b36bf7d3a6747c7752ddb4eb0 |
refs/heads/master | <file_sep>import {Component, ViewChild} from '@angular/core';
import {Nav, Platform} from 'ionic-angular';
import {StatusBar} from '@ionic-native/status-bar';
import {SplashScreen} from '@ionic-native/splash-screen';
import {MyTeamsPage, TournamentsPage, TeamHomePage} from '../pages/pages';
import {UserSettings, EliteA... | 2934a2a2e7a71b823efb6b92e54c6c6a6fec3815 | [
"TypeScript"
] | 3 | TypeScript | maxenz/elite | 7fcfb8d8b7747c04e05eed23711e4e2045879c78 | 2d70b8eac2251f44724f2e39aebf7d6ce1fc6e14 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Threading.Tasks;
using Apache.Ignite.Core;
using Apache.Ignite.Core.Cache;
using Apache.Ignite.Core.Cache.Configuration;
using Apache.Ignite.Linq;
using Apache.Ignite.Core.Datastream;
using System.Configuration... | 0ee50cd7999cbb9380b537f7163c02d7d9faacc9 | [
"Markdown",
"C#"
] | 6 | C# | qiulingxu/Ignite_Accelerate_Aggregate | 28a37bb715350a01951fde9bb50eeaed45d6ef31 | 7ce36e1055216bf9daf1527e3e84164730fb7ca3 |
refs/heads/master | <repo_name>miwa-takase9/ProjectPractice12<file_sep>/Printallclassroom.java
/**
* 教室情報の確認というユースケースの中の基本系列の1つである、”全教室の情報を表示”に対して責任を持つクラス
* @author <NAME>
* modified by 高瀬美和
* データベースの名前の違いのためにshowResultの””内を自分のデータベースに合わせて変更
*/
import java.util.*;
import java.sql.*;
public class Printallclassroom extends A... | 387839a06645eb4498f1fd10a7ea6527bf9b78f7 | [
"Java",
"SQL"
] | 3 | Java | miwa-takase9/ProjectPractice12 | b251db1389e91f6a76bee2d2e59f61ada9f8829c | 4dea7434d56096b6b06a6c55d6d50577228f1019 |
refs/heads/master | <repo_name>ozod9/reallaba<file_sep>/2scr4.sh
#!/bin/bash
grep bin < $1 >&2
<file_sep>/1scr2.sh
#!/bin/bash
find ~ -maxdepth 1 -name '*.txt' |wc -l| cut -f1 -d' '
<file_sep>/2scr1.sh
#!/bin/bash
wc -l /tmp/run.log | cut -d' ' -f1 >&2
date >> /tmp/run.log
echo "Hello"
<file_sep>/3scr6.sh
#!/bin/bash
echo "$USER$HOME" > .... | cd2a59ecb1907467603eb0e31c28cd1dd2e76105 | [
"Shell"
] | 12 | Shell | ozod9/reallaba | 6b6c113add1d21f9f191b4a69a6f3ca7e0a6fc09 | f88bbd9ba981b8f13e1d6cacb4111d0802ac98fc |
refs/heads/main | <repo_name>ZhiliShen/SiZeLet<file_sep>/config.py
# -*- coding: utf-8 -*- #
# @Time : 2021-05-10 11:40
# @Email : <EMAIL>
# @Author : <NAME>
# @File : config.py
# @Notice :
import argparse
def get_argument():
parser = argparse.ArgumentParser()
# Directory option
parser.add_argument('--train_da... | 78763f949d2463319100e6b45b528e0a5f8f9d73 | [
"Markdown",
"Python"
] | 6 | Python | ZhiliShen/SiZeLet | 1f8b4c0bd9dd5eb85b5010673ed3e2f47c8037d3 | 17bdcce096cecdc895bcb3ed669ecb9a06db44bc |
refs/heads/master | <repo_name>HemantArya/Tic-Tac-Toe<file_sep>/main.py
class TicTacToe:
def __init__(self):
self.gameList = [
['_', '_', '_'],
['_', '_', '_'],
['_', '_', '_'],
]
self.gameMsg = [
'Draw',
'X wins',
'O wins',
]
... | 90146efc56b2728c01e3074a01ca47f8fef01630 | [
"Python"
] | 1 | Python | HemantArya/Tic-Tac-Toe | 25b1ed509907acad37ab5133a667acacc981719c | 3cf41e640f009bbe57055b3eb7126a612ed04688 |
refs/heads/master | <file_sep>$(function () {
$('.menu__btn').on('click', function () {
$('.header__list').slideToggle();
});
$('.slider').slick({
dots: false,
infinite: false,
arrows: true,
slidesToShow: 3,
slidesToScroll: 1,
variableWidth: true
});
new WOW().init();
}); | c5e68d2a579a7270123c01d5f4532f75201363cb | [
"JavaScript"
] | 1 | JavaScript | Efrem4ik/pegasus | 5dae35687e5ba2926e96febe65f2149852466e93 | c9243a23e4139850d05b999d62c350b001b62ae5 |
refs/heads/master | <file_sep>require 'test/unit'
require 'test/test_helper'
class GitRepositoryTest < Test::Unit::TestCase
def test_type
assert_equal('git', GitRepository.new(nil).scm_type)
end
uses_mocha 'test_git_system_calls_for_install_and_update_process' do
def test_should_raise_exception_for_unexistent_repository
... | 215bdc5ddb0649a12f52a692836de1f3eab1fc7b | [
"Ruby"
] | 22 | Ruby | jodosha/sashimi | edf5f7ad73dc49d008d02f8ec06e6d5f87222cfa | 6a8b3dc03c2b282ab34fa19ac75064d66767b04f |
refs/heads/master | <file_sep>package com.mult3.testemult3;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class Testemult3ApplicationTests {
@Test
void contextLoads() {
}
}
<file_sep>package com.mult3.testemult3.repository;
import java.util.List;
import com.mult3.t... | 10871069cfd5a23d782de733d79e2da9444b03d5 | [
"Java"
] | 3 | Java | roullerk/TesteCRUDMult3 | 0d4982596f61c46e34dbae10bb394ce1d2cf872c | 72e94cdfb022700a7c30e2d0f23b23d777ff11b3 |
refs/heads/master | <file_sep>package com.mydemos.collections;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;
//set list
//map
//vector thread safe
//arrayList thread unsafe (fast) no locking
public class CollectionsMain {
public stat... | 56f5014cee7f690675309e59b3ffa85ca9752706 | [
"Java",
"TypeScript"
] | 11 | Java | vkr4773/Training | f88a5fbe828fbd9bf4ac2c0598138dbb589c019c | f35b76b006b30b3644a68bb6a9695102deb69920 |
refs/heads/master | <repo_name>caIcutec/caIcutec.github.io<file_sep>/albums.js
/**
*
* CoverFlow using CSS3
* <NAME>
*
**/
(function() {
var idx = 0,
covers = [],
titles=[],
descripts=[],
// Constants
OFFSET = 40; // pixels
BASE_ZINDEX = -10; //
MAX_ZINDEX = 0; //
function get(... | ca34778946854006f5f806ccecfda82985b974d2 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | caIcutec/caIcutec.github.io | 90f6d4d8caf743f5940d0491f38106ac29601209 | 80b04f5179ba16c6fafb385dac24339c8d8019d2 |
refs/heads/master | <file_sep>function shouldComponetupdate(){
console.log('render :');
}
<file_sep>const echarts = require("./lib/echarts.js");
const jquery = require("./lib/jquery.js");
const antd = require("./lib/antd.js");
const babel = require("./lib/babel.js");
const charts = require("./lib/charts.js");
const ramda = require("./li... | b349ee1702f84ecbb4287971e056b10b44c0a5cb | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | FreemenL/webpack-build-log-plugin | a15ea0b0ad2b0a12502e2d6beb3e00b847b20f97 | 693ff37e6ab8f9fd54cb5fe73249dbd6baaaf417 |
refs/heads/master | <repo_name>Skalextric/spark_no_evaluable<file_sep>/SimpleApp.py
# -*- coding: utf-8 -*-
from pyspark import SparkContext
sc = SparkContext("local", "Simple App")
import sys, os, bz2, json, re
path = "30/01/"
jsonpaths = []
for (dirpath, dirnames, files) in os.walk(path):
for filename in files:
filepath =... | 8b04ba9dab61058ce15c84c8e35a619b66973649 | [
"Python"
] | 1 | Python | Skalextric/spark_no_evaluable | 3ed0a7a69bad7950121b3bf8cf59dfaa161f2376 | a6bc723d4f888d113a5f2769ffaf7559114dc4f0 |
refs/heads/master | <repo_name>Saifinbox/R-Assignment-2<file_sep>/Saif_KHI_R_Assingnment.R
#Question 1)
library("ggplot2")
library("lubridate")
library("dplyr")
library(tidyr)
library("DataCombine")
hospitaldata <- read.csv("hospitaldata.csv")
names(hospitaldata)<-gsub("..","",names(hospitaldata),fixed = TRUE)
names(hospitaldata)<... | 493ca50a8fbe44725a6bb449d462579b09cd08a2 | [
"R"
] | 1 | R | Saifinbox/R-Assignment-2 | d0378d67abf03f7a1086f0092d32cd48a48d7a5e | 6ef0a7c1c36824c5ddc10f7c59fec7337839e78e |
refs/heads/master | <repo_name>17611495193/-hero<file_sep>/js/index.js
// 轮播图动画
(function(){
var lbt_item = document.querySelector('#lbt_item #lbt_test');
var liItems = document.querySelectorAll('#lbt_index ul li');
var lbt_cont = document.querySelector('.lbt_cont');
var index = 1;
var inte... | b922d54407892f070f0161e37f3480f22ec899d5 | [
"JavaScript"
] | 1 | JavaScript | 17611495193/-hero | befa499c31055d32e02470eabd83fe92bc3f0a4f | 651aa6ed90868fbe86e1dfb7a7ca22800850b084 |
refs/heads/master | <repo_name>jalalLearn/html-css-javascript<file_sep>/javapro.js
$(document).ready(function(){
$('.fa-bars').click(function(){
$('.ul-kheroje').toggle();
$('.kolshi').addClass('sticky');
$('.div-search').css('width',1200)
});
$('#ft').click(function(){
$('.ul-kheroje').toggle(... | 401aa83decb5520fefc05531cdbd0eb4e0e01d6b | [
"JavaScript"
] | 1 | JavaScript | jalalLearn/html-css-javascript | fa35764023aeba2b119e2e1abd16e6680ac8a546 | 417ac67a982b4d01f56cff9fa484d5edda02c603 |
refs/heads/master | <file_sep>su
dd if=/dev/zero of=~/test.bin count=1000k
losetup /dev/loop0 test.bin
<file_sep>#ifndef HEADERS_CLIENT
#define HEADERS_CLIENT
#include <map>
int socketfd;
std::map<uint32_t, void*> nodes_in_memory;
//std::map<int, uint32_t> sectors_retrieved;
std::map<uint32_t, uint32_t> old_and_new_sector;
#define SOCKET_... | a3c168817c193a5f56b1907dd5d924acb893311f | [
"C",
"C++",
"Shell"
] | 7 | Shell | ste93/thesis | 1a159a747bc4cf80690ed4daf0dee0a23448dde0 | e7f1ee6a2ebf5e32c691aeb52f2c333a7ebd15b2 |
refs/heads/master | <file_sep>package runnable.boundedBuffer;
import structures.boundedbuffer.BoundedBuffer;
/**
* A single Bounded Buffer consumer thread
* @author james
*
*/
public class IntConsumerRunnable implements Runnable {
private int numberOutputs;
private BoundedBuffer<Integer> buffer = null;
/**
* D... | f7fd983b1f52aa9b8374bb6daaf3b9b9a6983109 | [
"Java"
] | 4 | Java | JamesAlexander1/JavaConcurrency | 2587f19322e96032a64956eeaf2fcb32bec2c0a2 | 50e6e33a3e23d297f38209637a82553e46a80fc6 |
refs/heads/main | <file_sep>import React, {useState} from 'react';
const ApiComponent = () => {
const [apiKey, setApiKey] = useState("");
const updateApi =(event) => {
event.preventDefault();
setApiKey(event.target.value);
}
}
export default ApiComponent;
<file_sep>import React, {useState} from 'react... | 4e2b734718b3c10b91d294a9b8cae6cd9007856b | [
"JavaScript"
] | 3 | JavaScript | lisandrodv27/react-film-library | 7a9ea441d15e3eb79e1cfcb9aceb3b141f94d542 | c88446f9002819510ed9ceb99b4171d8063d06eb |
refs/heads/main | <file_sep>import React, { Fragment, useState, useEffect } from 'react';
import axios from 'axios';
import Spinner from 'react-bootstrap/Spinner';
import Button from 'react-bootstrap/Button';
import InputGroup from 'react-bootstrap/InputGroup';
import Card from 'react-bootstrap/Card';
import ListGroup from 'react-bootst... | a2f7b7fca5844f225ae88121fee4d029f2fddceb | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | jstiven01/autocom-frontend | 670e822a433c4dbe53be067e594d2aab4cdeb8cf | ad3f64d2d93a7843a1bcdd731a6d203650fe35d1 |
refs/heads/master | <file_sep>extern crate bytes;
extern crate failure;
#[macro_use]
extern crate failure_derive;
#[macro_use]
extern crate futures;
#[macro_use]
extern crate log;
#[macro_use]
extern crate lazy_static;
extern crate hex;
extern crate rand;
extern crate ring;
extern crate snow;
extern crate rustls;
extern crate tokio;
exter... | 12fe34388aae883b77eec3f170a88897de258507 | [
"Markdown",
"Rust",
"TOML"
] | 17 | Rust | rot256/ninn | d00d0059959e285675828f0aad2e006e99cf5abb | 55145ddb73ffa14a7a42eb3587e93fb8e14acbfc |
refs/heads/main | <repo_name>AdhirajDatar/Batman<file_sep>/BATMAN/sketch.js
var Engine = Matter.Engine;
var Bodies = Matter.Bodies;
var World = Matter.World;
var engine
var world
var umbrella1
var drop
function preload(){
walk1 = loadImage("images/WalkingFrame/walking_1.png");
}
function setup(){
engine = ... | 5dd9ca2acb31dc9bd6f8c8f1ab61f1ee27e759ee | [
"JavaScript"
] | 3 | JavaScript | AdhirajDatar/Batman | 9ff6671f529a73ae5b96aa2cd8c3ee3eaf0b2bf2 | 1bf40d26f2f449c3d33fda7136e2c6385e3a84da |
refs/heads/master | <repo_name>l2l-v2/vessel-enterprise-rb-service<file_sep>/src/main/java/com/l2l/enterprise/vessel/extension/activiti/security/L2LUserGroupManagerImpl.java
package com.l2l.enterprise.vessel.extension.activiti.security;
import com.l2l.enterprise.vessel.security.SecurityUtils;
import org.activiti.runtime.api.identity.User... | 48c0156374bdd1caf55024c984a32cf5994f0003 | [
"Java",
"Gradle"
] | 43 | Java | l2l-v2/vessel-enterprise-rb-service | 9e304d810e65d73391e7065dfd05218fa44a4f2d | ce0da7b87e30060ba17c752f886602b0294260fc |
refs/heads/master | <file_sep><?php
/**
* @package Adserver
* @author <NAME>
*/
require_once('Repository.php');
class JsonDB implements Repository {
var $path;
public function __construct($storage) {
$this->path = $storage['DATA_FOLDER'];
}
/**
* Function to save to file
* @param string $table
... | a1c2b0c8a258acc47b687dc440f2814da794d3b4 | [
"PHP"
] | 17 | PHP | snehaj/acr | 9dc2f9af2375798670cd5baeb87b33c637b1d7a2 | b749640563dc3ed562814c8f16af5cd98f45d601 |
refs/heads/master | <repo_name>18722480995/naizhan<file_sep>/lionfish_comshop/moduleA/components/img-box/img-box.js
var app = getApp();
Component({
properties: {
item: {
type: Object
}
},
methods: {
agree: function() {
var e = this,
a = this.data.item,
... | e3080c4e840e8e8b153fea64f29fdbce076532f9 | [
"JavaScript"
] | 75 | JavaScript | 18722480995/naizhan | fcdf31248d3b4ebca20eb6b60db0f65ef3fa4ddb | 406e83f81dafc646b75a591d6bd13d647c8be6a7 |
refs/heads/master | <repo_name>AntonyAndrei/Estrutura.De.Dados<file_sep>/src/pilhas/Pilha.java
package pilhas;
public class Pilha<T> {
private T[] vetor;
private T[] vetor2;
private int qntElementos = 0;
private int tamanhoTotalVetor = 0;
@SuppressWarnings("unchecked")
public Pilha(int tam) {
vet... | c61ae4e5bfb2722ea7f04483a3a02eef08ac97a9 | [
"Java"
] | 4 | Java | AntonyAndrei/Estrutura.De.Dados | 29907bda9d74216c7c1850d39a884787060f4192 | 1cdde245d52b4a8e3fdcba0311ab0f39bd7d815c |
refs/heads/main | <repo_name>MDHUtbilding/DVA_231<file_sep>/Lab2/PHP/readnews.php
<?php
// this PHP script is to be used for displaying news in the grid boxes
$news = json_decode(file_get_contents('../JSON/news.json'), true);
echo json_encode($news);
?><file_sep>/Lab2/PHP/form1.php
<?php
session_start(); // Initialize the se... | dabb0b5725fe23bdc1161a1150070c5c35aaeac7 | [
"PHP"
] | 7 | PHP | MDHUtbilding/DVA_231 | f2ea6b0f1e4128b8c70f30167954deb1f80d035f | 7164cd69f7a117b22c36a096503632a740cb1070 |
refs/heads/master | <file_sep>from gender import Gender
class Person:
def __init__(self, first_name, last_name, title, gender: Gender):
self.__gender = gender
self.__title = title
self.__last_name = last_name
self.__first_name = first_name
self.__fired = False
gender: Gender
@propert... | ce95e823b8e60b307f82dbf1f2c4c788654fa7be | [
"Python"
] | 4 | Python | daveyboy103/python | b05bf0cf8a43e39c72c868f3add5b79c927ed485 | d7ccc8c537a0c7c430f59be8393044ef0692e46e |
refs/heads/master | <file_sep>import React from 'react';
const Rect = React.memo((props) => {
const {x,y,active,bSize} = props;
return <rect x={x} y={y} width={bSize} height={bSize} fill={active?'red':'black'}/>;
});
export default Rect;<file_sep>import React from 'react';
import Cell from './Cell';
function Grid(props){
const {g... | 17ecc65563751737703c2f9400057599f6b846a4 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | ldoc/pixelart | 0472d220827a4bcecc500567c8def61ee6ac5480 | 1d574aaf781785577854b8689021012782e72d0a |
refs/heads/master | <file_sep><?php
include_once 'inputs_types_entries.php';
include_once '../wp-content/plugins/sql-entries/backend/php/model/select_parser.php';
class personPartials{
static $group='person';
static $input='';
static $table='wp_person_selects';
public static function systemeintrag(){
$parser=new selectPar... | 8b3929a4c81942059b9d25a2ce72e4aed212c68a | [
"JavaScript",
"Markdown",
"PHP"
] | 20 | PHP | Volmarg/Wordpress-SQL-manager | 5ba30dc288d030e7e67fb4eae91ac9d5c5621a9e | 4a190f3c74bdbec03b1e04878c779d6d082ad572 |
refs/heads/master | <file_sep>import Button from 'react-bootstrap/Button';
import Navbar from 'react-bootstrap/Navbar';
import Nav from 'react-bootstrap/Nav';
import Map from 'ol/Map';
import View from 'ol/View';
import Overlay from 'ol/Overlay';
import Graticule from 'ol/layer/Graticule';
import Stroke from 'ol/style/Stroke';
import { ... | 23b749cd5fb31d10c08e29eb818f6de98f70ac55 | [
"JavaScript"
] | 7 | JavaScript | lokahita/geoportal-master | 4b31f7286dd4a8fb006317f06b0ff69e18a14fe6 | 88dcc0ea9599a2f649112e18ba44478a04540576 |
refs/heads/master | <file_sep>package main
import (
"fmt"
"github.com/garyburd/redigo/redis"
)
func main() {
//连接redis
conn, err := redis.Dial("tcp", "localhost:6379")
if err!=nil{
fmt.Println("conn redis failed", err)
return
}
fmt.Println("conn redis success")
defer conn.Close()
//redis set操作
_,err=conn.Do("Set","abc",... | b34907e7ca3c4ec3b81c6df8233cf6aba09ff097 | [
"Markdown",
"Go"
] | 3 | Go | dongruan00/go-redis | 75052c77efbe9a6b6e7690859c708bc1ef5b3025 | 31523da3c13af19043944d61b0bb1d88d2950908 |
refs/heads/master | <repo_name>BrendaCuichan/Programacion_Grafica_I<file_sep>/src/org/yourorghere/Casa.java
package org.yourorghere;
import java.awt.event.KeyListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.media.opengl.GL;
import javax.media.opengl.GLAutoDrawable;... | 3dca0a846d60ade7f2d4eec93e0551e9c72f08f8 | [
"Markdown",
"Java"
] | 7 | Java | BrendaCuichan/Programacion_Grafica_I | 63dac0a13ae12dce6627c2c70760b9efa9150a2a | 9977a7d2154ece6aa5bd2e1015306e5970246dfa |
refs/heads/master | <file_sep>import React, { PureComponent } from "react";
import SpreadsheetHeader from "./SpreadsheetHeader.jsx";
import SpreadsheetBody from "./SpreadsheetBody.jsx";
const COLS = ["A", "B", "C", "D", "E"];
const ROWS = [1, 2, 3, 4, 5];
export default class Spreadsheet extends PureComponent {
render() {
return (... | 7efa0128ff76c004e4789ef9b735aa804760f466 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | dooart/react-spreadsheet | 6c976e07da1928e3a43884d48d436ca7d0667083 | 28e5819fdfd44ed0233d98231452cb35835a0bc5 |
refs/heads/master | <repo_name>amaxilat/JAMAiCA<file_sep>/javamltests/src/test/java/com/amaxilatis/javaml/test/TestB.java
package com.amaxilatis.javaml.test;
import libsvm.LibSVM;
import net.sf.javaml.core.DefaultDataset;
import net.sf.javaml.core.Instance;
import net.sf.javaml.core.SparseInstance;
import net.sparkworks.cs.client.impl.Da... | f8f19f0cf3cbefe30f837b69f9e8758aa4c4d500 | [
"Java",
"Maven POM"
] | 3 | Java | amaxilat/JAMAiCA | c74ec9869ab82f140532e9fa2ed9b85914b73ec7 | a246ba60d1aaaaf4ee074316f384787eda066b50 |
refs/heads/master | <repo_name>enthusiastick/korning<file_sep>/db/migrate/20131216184809_seed_customers.rb
class SeedCustomers < ActiveRecord::Migration
def change
Sale.all.each do |sale|
Customer.find_or_create_by account_number: sale.customer_and_account_no.split[1].delete('(').delete(')') do |customer|
customer.name... | 3db649216ed569e61eecfe4eb11f8041192707bd | [
"Ruby",
"Shell"
] | 10 | Ruby | enthusiastick/korning | 3d5adc2f113773210e7d75010b8e8c9303270ad5 | 7e19f65a7568e78c748618d17de6ea0f83ce569f |
refs/heads/main | <repo_name>Sujan-Murugesh/file-image-crud-spring-boot<file_sep>/README.md
# file-image-crud-spring-boot
This is Spring Boot Full-Stack project.
<file_sep>/src/main/java/com/sujan/file/ImageGalleryRepository.java
package com.sujan.file;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springfr... | 595fc0d8b19d9c1dc894f5be97a92796a2fe7692 | [
"Markdown",
"Java"
] | 2 | Markdown | Sujan-Murugesh/file-image-crud-spring-boot | 98745c6b11271e91aca0c3a30e890fd8dfc0f82b | a5d0209313823b0fa47588c65886c9753104c8ae |
refs/heads/master | <repo_name>andyreesecups/jQuery-Calculator<file_sep>/logic.js
$(document).ready(function() {
//Variables
var firstNumber = "";
var secondNumber = "";
var operator = "";
var result = 0;
var hasNumber = false;
var firstNumberComplete = false;
var lockButtons = false;
//Check if any b... | d5e487a775dfd904697bcf3cb29214862c38ef32 | [
"JavaScript"
] | 1 | JavaScript | andyreesecups/jQuery-Calculator | 631e8788f0ed965d8fbaa143210b548a44913422 | ecd10a6317d20f99e52da10cc680ba7dfb6bf931 |
refs/heads/master | <repo_name>ERA-URBAN/wrfpy<file_sep>/wrfpy/wrfda.py
#!/usr/bin/env python
'''
description: WRFDA part of wrfpy
license: APACHE 2.0
author: <NAME>, NLeSC (<EMAIL>)
'''
import os
import f90nml
import subprocess
import shutil
from wrfpy import utils
from wrfpy.config import config
from datetime import ... | 74462c98593ca06653f174468ab52d17dfc0a501 | [
"Markdown",
"Python",
"Text",
"reStructuredText"
] | 34 | Python | ERA-URBAN/wrfpy | caa1159326abcc59e5e25921f5de72a274962275 | 421c32397fb71a5437f93a5b03bf5dc3a2a12955 |
refs/heads/master | <repo_name>katelin013/go_linebot<file_sep>/README.md
練習LineBot 用Go 網頁爬蟲 從卡提諾正妹論壇 抓取隨機圖片 <file_sep>/main.go
package main
import (
"fmt"
"log"
"math/rand"
"net/http"
"os"
"strconv"
"strings"
"time"
"github.com/PuerkitoBio/goquery"
"github.com/line/line-bot-sdk-go/linebot"
)
var bot *linebot.Client
var messag... | c82fd10d4f4de0a1a70cae22a14d2867c9adc43c | [
"Markdown",
"Go"
] | 2 | Markdown | katelin013/go_linebot | 646beb8355eb5d24a873f0fa77705687f305a06c | 6caddb48283ed6dd52abf9df9f5732686cd0fca4 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class trackdistance : MonoBehaviour {
//BIG AWL CHANGE GITHUB!?!??!
public float distanceTravelled = 0;
Vector3 lastPosition;
// Use this for initialization
void Start () {
lastPosition = tra... | 7893f97f8cbfbea8aba86958e268eec32360ebc6 | [
"C#"
] | 1 | C# | SwcMarshall/Test2 | 2c8173d6176fbe3cf0ce201175b79f050c253e7b | 6d8c82d8b68b4f07bc0b3795585024d494e3abe4 |
refs/heads/main | <file_sep>version: '3.7'
volumes:
rabbitmq-data:
db_data:
services:
vscode:
build:
context: ..
dockerfile: Dockerfile.dev
args:
# [Choice] Python version: 3, 3.8, 3.7, 3.6
VARIANT: 3
USER_UID: 1000
USER_GID: 1000
volumes:
- ..:/workspace:cached
... | d35dae2518f79ef4505fb69bae4facbd34f01d67 | [
"YAML",
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 11 | YAML | MSDO-ImageHost/Comments | bdd8061c5ea6b9967426e27a0f85793adc170dc3 | 9b0b844822a49f8f7528a255e98f6033f9c392fc |
refs/heads/master | <repo_name>iamasbcx/myHips<file_sep>/drv/FQDrv.h
/*++
Copyright (c) 1999-2002 Microsoft Corporation
Module Name:
scrubber.h
Abstract:
Header file which contains the structures, type definitions,
constants, global variables and function prototypes that are
only visible within the kernel.
Environment:
Kernel ... | 43db39a5dfacc61d26c5d62dde92076bb8a2fe5a | [
"C",
"C++"
] | 25 | C | iamasbcx/myHips | 5a29e7d8e8ca713a9b22eefcd1b2858b795ed194 | 04c458deb584d17571da64103be1150c9b07daa2 |
refs/heads/master | <file_sep>package nju.androidchat.client.component;
import android.app.AlertDialog;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Message;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.style.ImageSpan;
imp... | d52e07534664d8a856941f5c2f924a96558cfd77 | [
"Java"
] | 2 | Java | Skoze/android-chat-in-4-patterns | 124a9883bcf737190a190818fd9ac0ad8f5e1e72 | be284e1f068925c1f593c9d8537603120e3dedae |
refs/heads/master | <repo_name>striverLiu/douyuMsg<file_sep>/routes/users.js
var express = require('express');
var router = express.Router();
const nodemailer = require('nodemailer')
const { getDouyuRoomInfoByRoomId,getTelArr,sendMail } = require('../uti/util.js')
const config = require('../config/config.js')
var fs = require('fs');
var p... | 9f5d9cab986071d7ed597d30ec744dbdcb886102 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | striverLiu/douyuMsg | c1516b0d04b6cd0201a6d5c95af7fc824d30662f | 3bed1d267301f04247975ccb881e94381d035113 |
refs/heads/master | <repo_name>Shitij-Khanna/ReactRedux<file_sep>/myapp/src/Ninjas.js
import React from 'react';
const Ninjas = (props) => {
const {ninjas, deleteNinja} = props;
// const ninjaList = ninjas.map(ninja => {
// if(ninja.age > 27){
// return (
// <div className = "ninja"... | 2aea40dd36a1bca6aef8145bdfcb6ea68799067e | [
"JavaScript"
] | 2 | JavaScript | Shitij-Khanna/ReactRedux | a969e669bd00e8e126b745eac12aa038c5b3d285 | 576ac4d38601e3323c9a04ac6c3b147a4af40574 |
refs/heads/master | <repo_name>simonkberg/shebang<file_sep>/src/pages/404.js
import * as React from 'react'
import PropTypes from 'prop-types'
import styled from '@emotion/styled'
import Layout from '../components/layout'
const Title = styled('h2')`
font-size: 1rem;
font-weight: bold;
`
const SubTitle = styled('span')`
font-weight... | 58734126cebdd0a3311fb2d9d8d87ff5aa9dfcb8 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | simonkberg/shebang | 7c29db2c087e91784e61bcd7e4c10cfd37c77c86 | c3ab1dcc3bcc266894df03429900c33cb92da38f |
refs/heads/master | <repo_name>metrocoder/SoftwareMethodology<file_sep>/SongLib/SongLib/src/view/Controller.java
package view;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.stage.Stage;
import org.w3... | f413479ce58f639680de0d221bc2be86d20d12e8 | [
"Markdown",
"Java"
] | 2 | Java | metrocoder/SoftwareMethodology | 4cf607ae09c7ada0405fd2750b7ae08ad87ade6b | dcf2e3f244d8e45db21d7a06835c08ddde0ca6cf |
refs/heads/master | <file_sep>/**
* Created by Mine on 6/9/2016.
*/
'use strict';
const Backtory = require("../../provider/LibsProvider").backtory();
var BookingDetails = Backtory.Object.extend('BookingDetails',{
getId(){return this.get(BookingDetails.Col.id)},
getUserName(){return this.get(BookingDetails.Col.userName)},
get... | 19f368c098d19f5df00e25998bbaa33297c83aa6 | [
"JavaScript"
] | 11 | JavaScript | aminzaheri/Snap | 2dc91ae47f7ba8bfab76998456b89490db1200ff | 6df4b7dd3e64f939dd3aa16d4188eb5a9b1bd58b |
refs/heads/master | <repo_name>pavva94/JackTheGiant<file_sep>/Assets/Scripts/Cloud/CloudSpawner.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CloudSpawner : MonoBehaviour {
[SerializeField]
private GameObject[] clouds;
private float distanceBetweenCloud = 3.0f;
// min e max dove pos... | adf34018f888577348717d7349e2e903190ff105 | [
"C#"
] | 5 | C# | pavva94/JackTheGiant | a40365f95a1939796f7785ad20e310348da3324f | eea6edf160e7f91172d665a769ae879459b33bbe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.