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/main | <repo_name>floresmatias0/Lyracons<file_sep>/js/index.js
document.addEventListener('DOMContentLoaded', (event) => {
//ITEM1
let item1 = document.getElementById("item1");
let itemV1 = document.getElementById("itemV1");
var item = true;
const dropDown = () => {
let submenu = document.getElement... | 12b4fbf530070e8a9e20ecfa5d678fdd5345726c | [
"JavaScript"
] | 1 | JavaScript | floresmatias0/Lyracons | 9a9834c36d978d7e102bafe0eb004e385f0114d8 | 399276c835449578dc575027e631ab37f5f9c5a5 |
refs/heads/master | <repo_name>kendisk/v2ex<file_sep>/v2ex/babel/l10n/messages/zhHans.py
# coding=utf-8
# Messages on top bar
home = '首页'
images = '图片上传'
mentions = '提到我的'
notes = '记事本'
nearby = '附近'
settings = '设置'
backstage = '后台'
signin = '登入'
signup = '注册'
signout = '登出'
# Messages on /
# Messages on /t/
# Messages on /go/
# Mess... | c05a763523e50f367348612f053eb3152968bb92 | [
"Python"
] | 1 | Python | kendisk/v2ex | cb0a7ded26ca72d57567e58300b79ee1b5677248 | c7760d6fbbe47cf39cb23c3b4c34c8d354c067bc |
refs/heads/master | <file_sep># coding = utf-8
import pygatt
import logging
import binascii
import time
# Many devices, e.g. Fitbit, use random addressing - this is required to connect.
ADDRESS_TYPE = pygatt.BLEAddressType.random
DEVICE_ADDRESS = "E6:DC:5B:F9:C5:F3"
def indication_callBack(handle,value):
print("indication,handle %d:%... | 117db2482cbd3c70dfca105d582b5eb38fca670d | [
"Python"
] | 11 | Python | ZjcsHub/PythonProject | 26371234b338bed73aa7fecb90b613a4144bb6a9 | af1a119cb5f0149ae17e349552a5f21742c3bc45 |
refs/heads/master | <file_sep>using System;
using System.Linq;
using System.Windows;
using ScjnUtilities;
namespace AsistenciaLibreria
{
/// <summary>
/// Interaction logic for Retardo.xaml
/// </summary>
public partial class Retardo : Window
{
Usuarios usuario;
public Retardo(Usuarios usuario)
... | c74152d9154a5426cbc4d78849799d170418e75f | [
"C#"
] | 4 | C# | danilozacyac/AsistenciaLibreria | 87cd3074efb68a368af0df6af6da00de5d8098e2 | bbe2741dbcb9b6d07e17671ddc3d56d841cafb30 |
refs/heads/master | <repo_name>ukritTKK/Newsworm<file_sep>/README.md
# Newsworm
A Medium-like web application but focuses about News using React, Redux, NodeJs, Express, MongoDB
<file_sep>/app/routes/index.js
const newsRoutes = require('./news_routes')
module.exports = function(app, db) {
newsRoutes(app, db)
}
<file_sep>/app/routes/new... | 34c07acc50fdfe7299df4374769292032894143b | [
"Markdown",
"JavaScript"
] | 4 | Markdown | ukritTKK/Newsworm | ec293a34d6ca065452b5d568de6cb14768a86b9a | 0f0360b14478f5b981e40613290226249ce595f7 |
refs/heads/master | <repo_name>itshorsey/player<file_sep>/App.js
import React from "react";
import { StyleSheet, Text, View, WebView } from "react-native";
import { createStackNavigator, createAppContainer } from "react-navigation";
import Homefeed from "./Screens/Homefeed";
import CollectionScreen from "./Screens/CollectionScreen";
impor... | 8dece2d277c1f93ebfe55ec4f07173ba70c98457 | [
"JavaScript"
] | 3 | JavaScript | itshorsey/player | 6a636d3fb853ecad4cde383bd35d29ba8afa7235 | 7970d3f158a44c541ae0bf192a56e496b09e8f18 |
refs/heads/master | <repo_name>TomHawkins11/Networking-Lobby<file_sep>/Client/Client - Lobby Connection/Assets/LanGamesPanel.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LanGamesPanel : MonoBehaviour
{
public List<GameObject> buttonList;
public GameObject GameButton;
// Start... | ef5dc75977d464c3d649cd69690820888fe1fe1d | [
"C#"
] | 6 | C# | TomHawkins11/Networking-Lobby | 7ee26960846066ab812d4ace93121a8491c91ee6 | 2427b65816f6b7db147bc76a23595ff7c904c9a3 |
refs/heads/master | <repo_name>OscarDR89/Utest_Screenplay<file_sep>/src/main/java/model/UtestData.java
package model;
public class UtestData {
private String Nombre;
private String Apellidos;
private String Correoelectronico;
private String Dia;
private String Mes;
private String Año;
private String Ciudad;
... | 5769c529894885710c31b4231729fbfd40116d25 | [
"Java",
"Gradle"
] | 2 | Java | OscarDR89/Utest_Screenplay | ce01c92308f0b7c906cd4282c87f5ef6109d81d9 | 6b4223b9f21c967e09b1d284261fa8555e348e84 |
refs/heads/master | <repo_name>MattGenaro/NASA_Space_Apps_Challenge_2020<file_sep>/Aurora_AlachuaRegression.py
# -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df = pd.read_csv('/Assets/us-counties.csv')
df0 = df[(df["county"] == 'Alachua') & (df["state"] == 'Florida')]
import date... | 00b1fefe18c90adfbf23f58b14199514b4d147b0 | [
"Markdown",
"Python"
] | 4 | Python | MattGenaro/NASA_Space_Apps_Challenge_2020 | 5c0103e37c7f774c8a8195fe27c8990800e00383 | 84bfc40dfa542706b6b129ed39da474138b1ea09 |
refs/heads/master | <repo_name>OpenMageModuleFostering/fianet_sceau<file_sep>/app/code/community/Fianet/Sceau/Model/Observer.php
<?php
class Fianet_Sceau_Model_Observer extends Varien_Event_Observer {
CONST GRID_NAME_IN_LAYOUT = 'sales_order.grid';
CONST MASSACTION_BLOCK_NAME_IN_LAYOUT = 'sales_order.grid.child';
CONST MASSAC... | fd4dd869ca5871beb7a8adccae50fa2a1f7d6be2 | [
"PHP"
] | 12 | PHP | OpenMageModuleFostering/fianet_sceau | fcef79dd8baf8630c41b81d3fd4b911662dbc0bc | e2d78f07a56e450185701a1ef3edf1348c19813b |
refs/heads/main | <file_sep>CREATE TABLE `tblBoard` (
`num` int(11) NOT NULL auto_increment ,
`name` varchar(20) ,
`subject` varchar(50) ,
`content` text ,
`pos` smallint(7) unsigned ... | b807dd54bac4b2f10bd0ac2818039313e0b9bb45 | [
"JavaScript",
"SQL",
"Java"
] | 3 | SQL | dlgdlg/www | ecdad46ee1508c5ee3a77f2f7fc9cd348475671c | ae6681d3f185a4a9227c97ed8e0d939848efecba |
refs/heads/master | <file_sep>## Python 3 parte 1
Introdução à nova versão da linguagem.
## Resumo
Implementar um jogo para começar a programar com Python. É um jogo de adivinhação, onde o computador escolhe um número aleatório e o usuário precisa adivinhá-lo. Aprender a trabalhar com variáveis de diversos tipos, como gerar um número ale... | 956198e3d6a3fefaa24241e6a1acc6630b2e12fa | [
"Markdown",
"Python"
] | 9 | Markdown | ghmiyoshi/alura-python | b68e133e8d26d5507f60db7136be98503ef3b4e8 | ab9e01fbc48b3b3e260aab7d393f40720808a657 |
refs/heads/main | <repo_name>BGSU-LITS/framework-mail<file_sep>/src/settings.php
<?php
declare(strict_types=1);
use Lits\Config\MailConfig;
use Lits\Framework;
return function (Framework $framework): void {
$framework->addConfig('mail', new MailConfig());
};
<file_sep>/src/Lits/Config/MailConfig.php
<?php
declare(strict_types=1)... | f6c7d3719ffd0a07967b5561ad4c0439670e107c | [
"PHP"
] | 4 | PHP | BGSU-LITS/framework-mail | 0ac0ebe7798cd2bf750f2ecd940df841d3f12d67 | 01cd4e8cbe2fe8be57c99b98870dfbf1c53e6838 |
refs/heads/main | <file_sep>export interface Result {
reversed: number;
items: ResultItem[];
}
interface ResultItem {
reversed: number;
x: number;
}
export const defaultResult: Result = { items: [], reversed: 0 };
export function reverse(x: number): Result {
const items: ResultItem[] = [];
const max = Math.p... | 8f4044cb425956a8f89979b3059daed7dd5b3c0d | [
"Markdown",
"TypeScript"
] | 346 | TypeScript | zhou-dong/alchemist | e2110efc294d1fbd07fbbaa9768277065f834fbe | 8c198354eff354a5274df65bab822c1c08281244 |
refs/heads/main | <repo_name>nbhargav0098/geektrustAssignment<file_sep>/src/App.js
import {Component} from 'react'
import DisplayEachUser from './components/DisplayEachUser'
import './App.css'
class App extends Component {
state = {userDetails: [], searchInput: ''}
componentDidMount() {
this.fetchUserDetails()
}
fetchUser... | 1130ebd21b083fff6598fcf5eea04f5843aa1868 | [
"JavaScript"
] | 2 | JavaScript | nbhargav0098/geektrustAssignment | b32882084cd60eaf45bd5306fae71e852aedc6ef | 60d2349387d123a1e24f4df254ffdb4b3e304ccc |
refs/heads/master | <repo_name>timsilog/hydra<file_sep>/client.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* client.c ... | 1b86ce69441f8a0289e3bde0b355a377e2a83e83 | [
"Markdown",
"C"
] | 3 | C | timsilog/hydra | 123b8928efc0aa639e696bbc975d17b23ab5a1ad | 0d076511b7351c3262bacee9bf7e636c629d14ea |
refs/heads/master | <repo_name>pedroosorio/minho_team_simulation_tools<file_sep>/world_plugin/src/minho_world.cc
#include "minho_world.hh"
using namespace gazebo;
Minho_World *me;
// Register this plugin with the simulator
GZ_REGISTER_WORLD_PLUGIN(Minho_World);
/// \brief Constructor
Minho_World::Minho_World()
{
models_.clear();
... | 3bd144e04b76cc6f8853e1c2d4b102baf542856d | [
"Markdown",
"CMake",
"C++",
"Shell"
] | 20 | C++ | pedroosorio/minho_team_simulation_tools | b8d45860167be97d399ee928f437ea10dcf88e0b | 495cd0c064bdcca3186656129eea8d6418ba2db9 |
refs/heads/master | <file_sep>package me.kevinnovak.voidteleport;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.configuration.file.FileConfiguration;
public class VoidWorld {
private bo... | da3f3dc7f7467a2997d3b8ce725d593dfa98a6bf | [
"Java"
] | 2 | Java | KevinNovak/VoidTeleport | f7515da06ab62ebeab90d1ddfe2270981a218d40 | 86c5549cf5724512a372177228f1147ce774c71c |
refs/heads/master | <repo_name>eyaladi/renderer-engine<file_sep>/NewEncoder/VideoEncoder/avc.h
#pragma once
#include <stdint.h>
#include <inttypes.h>
extern "C"
{
#ifndef __STDC_CONSTANT_MACROS
# define __STDC_CONSTANT_MACROS
#endif
//#define UINT16_MAX _UI16_MAX
#define INT8_C(val) val##i8
#define INT16_C(val) val... | d3803c6cf54039ad1effc9d8e855323e40646104 | [
"C",
"CMake",
"C++"
] | 184 | C++ | eyaladi/renderer-engine | 1e623d0e0deafa70612a1a687167bdc0dcc6bb03 | 60688c24402a3e30960ec40c433737b8bfa5edaa |
refs/heads/master | <repo_name>timlinux/django-offline-messages<file_sep>/offline_messages/storage.py
# -*- coding: utf-8; mode: python; -*-
from django.contrib.messages.storage.session import SessionStorage
from offline_messages.models import OfflineMessage
class OfflineStorageEngine(SessionStorage):
"""
Stores messages in the... | 90feb7c33a26fb75ceb1107eb10e3b7ba5669aea | [
"Python",
"reStructuredText"
] | 4 | Python | timlinux/django-offline-messages | 6634841a08f380216e0dd46d5c261d584e5f102c | c666b652f236d60c95077bc0d0b0cff63b16c9c8 |
refs/heads/master | <repo_name>nabievnurlan7/LightProfiler<file_sep>/settings.gradle
include ':LightProfilerLibrary'
include ':app'
rootProject.name = "LightProfilerExample"<file_sep>/app/src/main/java/com/nurlandroid/lightprofilerexample/MainActivity.kt
package com.nurlandroid.lightprofilerexample
import android.os.Bundle
import android... | 4969e748be252e3f4985037bbabe0b941bd4973a | [
"Kotlin",
"Gradle"
] | 5 | Gradle | nabievnurlan7/LightProfiler | c0b47877bf29025c1a30338e3a47034c2fded13e | 89ce69f39c05ebe1c09becca3822d84a13ee150b |
refs/heads/master | <repo_name>j91106meagher/kube-test<file_sep>/README.md
# kube-test
repo of various kubernetes tests
<file_sep>/oasis-delete.sh
#!/bin/sh
kubectl delete deployments oasis-api-server
kubectl delete svc oasis-api-server
kubectl delete svc rabbitmq-service
kubectl delete deployments oasis-rabbit
kubectl delete deployments... | 56625ace8d53bd3e7414349d57f6430d344bb5a9 | [
"Markdown",
"Shell"
] | 2 | Markdown | j91106meagher/kube-test | e0e4b0276087f9e02fea502e203ec7f87a43941d | 0e86fcbe1381c981b1f3743ce441b35b17ed8506 |
refs/heads/master | <file_sep># select_router
If several routers in a network offer DHCP service, select one
<file_sep>#!/usr/bin/env python
""" Sends DHCP request and lets user decide which response to use to confugure IP.
Assumptions:
Network interface is eth0
"""
from scapy.all import *
import curses
from os import system
def ... | 78cbd069593a23298400b5f98f5c801dd830dd95 | [
"Markdown",
"Python"
] | 2 | Markdown | tonimctoni/select_router | 038a13151efdc4f3d37a86855e150afe9a1d4577 | b936478b9f42b43f49e279630bc7ae6f7d2d6ab1 |
refs/heads/master | <repo_name>sanchezmaxar/DiagnosticadorMedico<file_sep>/Experimento1/webDownloader.py
import nltk
import sys
from urllib.request import urlopen
from bs4 import BeautifulSoup
import os
def gethref(texto):
buf=""
cond=False
salida=[]
for lineas in texto:
print(lineas.get("href"))
return salida
dirBase="./pagin... | ad335203fa7f2c1a0842f30e51e61844ce370dc2 | [
"Markdown",
"Python",
"HTML"
] | 23 | Python | sanchezmaxar/DiagnosticadorMedico | fc57d481c4df6591f126f4b4e13c6df23e074c66 | 320c3c47c2019652bd7a141e87f0d2e363493d9e |
refs/heads/master | <repo_name>ziad-abdo/n_queens<file_sep>/n_queens.rb
BOARD_A = [
["Q....",
"..Q..",
"....Q",
".Q...",
"...Q."], ## valid
["Q....",
"..Q..",
"....Q",
".....",
"....."], ## valid
[".Q... | 5cb9052de64cda30dbb60293602339765ee71ecf | [
"Ruby"
] | 1 | Ruby | ziad-abdo/n_queens | 99e306c2831f358677738dc52fa713d414063a03 | 5b0a6fc6f0bbbc3ac45fb81f28547208e7c8a256 |
refs/heads/master | <file_sep>gapminder= read.csv("data/gapminder-FiveYearData.csv")
source(gapminder)
source("scripts/DF-gapminder.R")
str(gapminder)
head(gapminder)
colnames(gapminder)
dim(gapminder)
names(DF-gapminder)= c("País", "Año" , "Pobación", "Continente", "Expect", "PBI")
gapminder
names(gapminder)= c("País", "Año" , "Pobación"... | bb60f495be7a430b7709c7701a6af53c9f9021c3 | [
"R",
"RMarkdown"
] | 4 | R | orimaramiro/RXR | 8128cdc6d2051e49ba76ed30543a9ca8aa04e844 | aa678ba64d9d1ddb11ecf13ee9b95216e8211d2b |
refs/heads/master | <file_sep>//
// Created by hilla on 4/23/19.
//
// <NAME>
// 208953083
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <ctype.h>
#include <fcntl.h>
#include <string.h>
#define PRINT_ERROR_EXIT write(2, "Error in system call\n", strlen("Error in system call\n")); exit(-1);
#def... | c5f6e9fbedce85e3e562c7dbfd26d54829f61b22 | [
"Markdown",
"C"
] | 3 | C | hillahalevi/Automated-testing-system | 3d8010711765e5fc40ded795f8bea0cd84c5a9be | 56dbbe200d18cdc109cad9cc471ed3e1db720c25 |
refs/heads/master | <file_sep># <NAME>
Small website project.
<file_sep>-- MySQL Script generated by MySQL Workbench
-- dim. 30 sept. 2018 20:27:16 CEST
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOR... | e28ca4c9e7ba71f3d67c8c7393c760000a547177 | [
"Markdown",
"SQL"
] | 2 | Markdown | LordGeck/nihongo | 5a81f16bffc651e3f84374e2691467116a25a068 | 54a1e6a74a9ab82a74ec31b182e271c89c206a7b |
refs/heads/master | <repo_name>JLemmetti/leffat<file_sep>/app/models/user.js
import DS from 'ember-data';
export default DS.Model.extend({
movies: DS.hasMany({inverse: null}),
name: DS.attr('string'),
email: DS.attr('string')
});
<file_sep>/app/components/edit-movie-item.js
import Component from '@ember/component';
export default ... | 6f7e7213c9b304ab9959e9402a4ed89657991d2f | [
"JavaScript"
] | 4 | JavaScript | JLemmetti/leffat | ecc2e9d16c4cc7f39d9050e02d31e096485ced84 | 3796d3432d4203d30254e484488e5b607b7f05dd |
refs/heads/master | <file_sep>#include <iostream>
#include "server.h"
using namespace std;
server::server(io_service& service):
sock_(service),
is_started_(false)
{
}
bool server::started()
{
return is_started_;
}
void server::stop()
{
cout << "stop. is_started: " << is_started_ << endl;
if (started())
{
... | e3d0aa8a28dc54b009d089ff98e35d36a7fc3c6a | [
"C++"
] | 3 | C++ | kolisergej/boost_demos | 2b0d20f2593b1d8806766f118e2cbec00f06f9af | 002d6d16f1d3e0feb1ad6b5a2fa54f8108d4f7fe |
refs/heads/master | <file_sep><?php
require_once 'ahp.php';
session_start();
extract($_POST);
if(isset($_SESSION["arreglo"])){
$arreglo = $_SESSION['arreglo'];
}
$objetivo = $arreglo[0];
$criterios = $arreglo[1];
$alternativas = $arreglo[2];
$ahp = new AHP($objetivo);
foreach($criterios as $criterio){
$ahp->addCriterio($crit... | ebd09e15b80439ca9f3189571a1ccf85c93de527 | [
"JavaScript",
"PHP"
] | 6 | PHP | mariniayrtond/toolahp | 86a996c641620ffe646cd0c3410cb4080c88c665 | 6d3e80e410efd3769915febe8a2f2132740ff857 |
refs/heads/master | <repo_name>flyberson/progeksamentest2<file_sep>/php/index.php
<?php
session_start();
include 'requireLogin.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="javascript/js1.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3... | 855cc442a18bcec57efcdcc3c3f5a6a692ebf8f0 | [
"JavaScript",
"PHP"
] | 11 | PHP | flyberson/progeksamentest2 | 10e7711ec19d9bfc30cdb904bd695bc96a03f866 | 936fe50d42e19ba6b3e8bb2d197f03c9e29fcc63 |
refs/heads/master | <file_sep>module.exports = {
metadata: {
family: "btleHeartRateMonitor",
plugin: "btleHeartRateMonitor",
label: "BTLE Heart Rate Monitor",
manufacturer: "Generic",
tangible: true,
discoverable: true,
state: [{
id: "heartRate",
label: "H... | d023cad6afdb2efbc6c93fe06eeb66a14eca146f | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | marcgille/thing-it-device-btle-heart-rate-monitor | 43fb226791241cbd147a1cfb542a49315c056c72 | 329e09383ced34ab433f37108a195e38d25eaf93 |
refs/heads/master | <repo_name>Wanchunwei/HTTPserver<file_sep>/WebServer.java
//
import java.net.*;
import java.nio.*;
import java.nio.file.*;
import java.io.*;
import java.util.*;
import java.text.*;
public class WebServer {
public static void main(String[] args) {
// dummy value that is overwritten below
... | ffbe855b8c2c85941b122b846238d2a842f20bca | [
"Java"
] | 1 | Java | Wanchunwei/HTTPserver | 246101afbb3926cb957f0c9ab4c983187d3327ef | 8beebb11cda85a1d3dbd82da9ce6fc263037f497 |
refs/heads/main | <repo_name>TwT-Teaker99/Virus_File_Infected_Sample<file_sep>/ClearFile.cpp
#include <stdio.h>
#include <windows.h>
using namespace std;
DWORD Align(DWORD size, DWORD align);
bool DelSection(char* filepath);
char filepath[] = "D:\\gen1.exe"; //file path to be infected
BYTE secName[8] = ".viral"; //Name of ... | f4884d0a881c98cac247824c863d4b02a8570141 | [
"C++"
] | 1 | C++ | TwT-Teaker99/Virus_File_Infected_Sample | 96a03ec530c8dcdcfb8147a61da103c471d77204 | a59413203fb5f2c2ddf1be54bd313a0325914a5e |
refs/heads/master | <repo_name>tomerun/icfpc2020<file_sep>/README.md
# ICFP Programming Contest 2020
team name : tomerun
* src/main.cr
* ship AI
* rotates around avoiding collision with the planet
* it didn't attack by shoot nor denotate because I couldn't realize their command spec
* src/defs.cr, src/parser.cr, src/reducer.... | 1a34cdb7dd952ee0361bbf561641ca10ea31a050 | [
"Markdown",
"Shell"
] | 2 | Markdown | tomerun/icfpc2020 | bdec220fc754063caf744736faafae9b2ba0f03a | ef2baeffa120da85c95b2bfea1a85fafad090d59 |
refs/heads/master | <repo_name>mertcerciler/Supervised-Learning<file_sep>/README.md
# Supervised-Learning
ANN with linear regressor and ANN with single hidden layer is implemented and the dataset is applied to both models.
* Sum of Squared errors is used as loss function.
* Sigmoid activation function is used to define the hidden unit... | 5d60b05107429ab53ee885a0a7b88ac5a65a9f6a | [
"Markdown",
"Python"
] | 2 | Markdown | mertcerciler/Supervised-Learning | 803e815c7538847fa1d09af00a98866572175dc7 | eb0fc975e82a5b32a478a2bd1a481343e6b64cb9 |
refs/heads/master | <file_sep>def find_element_index(array, value_to_find)
array.length.times do |count|
if array[count] == value_to_find
return count
end
end
nil
end
#Another way
#def find_element_index(array, value_to_find)
#array.index(value_to_find)
#end
def find_max_value(array)
array.max
end
def find_min_... | fdf3db55349f523a95417679d519431d34922f2f | [
"Ruby"
] | 1 | Ruby | mariiamii/programming-univbasics-4-array-concept-review-lab-nyc-web-010620 | 543071629b00d7ebb64ff00e5699da6374866cfb | 75d71f8e53cca5706bea961dd560cad4c80fc137 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 18 16:10:23 2019
@author: kartiktanksali
"""
#String Permutation
def create_hashmap(string):
hash_map = {}
for i in string:
if i in hash_map:
hash_map[i] += 1
else:
hash_map[i] = 1
... | ed009e3d2e12e4e88ae445173c61b191fd19137a | [
"Python"
] | 19 | Python | kartiktanksali/Coding_Questions | 7a49b4d3de3554e2b2af336881c4d3ea6ab0fe51 | d0687e11ec3f5b3d1f757ddbe9be585c2a4eca29 |
refs/heads/master | <repo_name>soofaloofa/nats<file_sep>/README.md
# nats
A command-line interface to [gnatsd](nats.io).
nats is a command-line utility for sending and receiving messages via
i a gnatsd cluster. It is a thin wrapper around the [NATS Go
client](https://github.com/nats-io/nats).
## Install
```bash
$ go get github.com/soo... | 43c541c9e37772b0467cc7ddb46f8dc505a0f8a6 | [
"Markdown",
"Go"
] | 2 | Markdown | soofaloofa/nats | 7e0ee8c752b66a4583897e6a2b17dccef88022d4 | 8873c426ed838c7a4d15500e9e368527960e114f |
refs/heads/master | <file_sep>package com.example.homework07;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;
public class ChatObject {
public String sender, tripId, messagedId, message, sentTime,isImageSent;
// int isImageSent;
// pub... | 937010c78c22c2e65f77367a61285972f4d2557f | [
"Java"
] | 6 | Java | deepakVeerapandian/Homework07 | 3224af7322d43d48aba188f4fe1c65a06bd1332f | a7f625a8a8a44cd23407e414a363bfe4336afd95 |
refs/heads/master | <repo_name>TsungYuChien/Chata<file_sep>/src/main/java/yzujbs/chata/RegisterPage.java
package yzujbs.chata;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.support.annotation.NonNull;
import android.support.v7.app.ActionBar;
import android.... | 844873cf11ba34a206a3bea87d894cc52bbbfd16 | [
"Markdown",
"Java"
] | 3 | Java | TsungYuChien/Chata | 10cebad3e8355d0d76e19cfe2881b5e5ae737c8f | 07a6240b0a9f200f19be6edb77ac05d80b427adc |
refs/heads/master | <file_sep>(function init(){
var sliders = [];
var layers = [];
var layer;
var canvas, ctx;
var layerSettings = {
url: "",
name: "",
run: "",
value: null,
top: 0,
left: 0
};
window.jraw = function(id){
canvas = document.getElementById(id... | 02d6fec3bdbe5cb74d4f0c20e29303e77c37c2aa | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | TheColorRed/jraw | fd5994743f47e50359015255c0da141caf4a6e92 | 02f3fd3c3f03e82b79f6b42764363da954697f28 |
refs/heads/master | <repo_name>skeletalbassman/pytix<file_sep>/wrappers/trello.py
'''wrapper class for Trello REST API'''
import requests
import yaml
import datetime
BASE = "https://api.trello.com/1/"
class Trello():
def __init__(self, project=None, username=None, password=None):
self._key = None
self._token = None
self._authori... | 9587ae1f6d5cf2598a9b8d98b8dda3671805546f | [
"Markdown",
"Python"
] | 2 | Python | skeletalbassman/pytix | 02f8cb6f256068eaf9f12ad1f370e91301cb2889 | 818d1a444398246971bccea6fe15dcce86918063 |
refs/heads/master | <file_sep>class WordDef
attr_reader :value
def initialize(value, language)
@value = value
@language = language
end
end
class Word < WordDef
end
class Definition < WordDef
end
<file_sep>Dictionary
Purpose: Completed as part of the Epicodus curriculum. Introduction to object oriented design.
* DONE all... | ebb2c1415a042e41e6b983d606b0143b4e811db5 | [
"Markdown",
"Ruby"
] | 6 | Ruby | BordRGal32/Dictionary | ba6654e545603af059f7d2fc08bde87ddf0f73ef | 913def149d4bdb4074d1a5ed7a2f8eb96873e172 |
refs/heads/master | <file_sep># WeatherApp_NodeJS
Weather App using NodeJS
## Content:
Callbacks
APi Requests
<file_sep>const request = require('postman-request');
// const forecast = (latitude, longitude, callback) => {
// const url =
// 'http://api.weatherstack.com/current?access_key=<KEY>&query=' +
// latitude +
// ',... | 5bd26e5fd10226b63d1d5912ef89e337ea9393ae | [
"Markdown",
"JavaScript"
] | 3 | Markdown | rickcarvlh/WeatherApp_NodeJS | c0f55ff9dc8402d2c6de25cfcfef029ebb195d4e | 2e3903a5c2aa032613c9001c442d5919d5b17ed3 |
refs/heads/master | <file_sep>const express =require('express');
const multer =require('multer');
const ejs =require('ejs');
const path=require('path');
//Init app
const app=express();
const port=3000;
app.listen(port,()=> console.log(`Server started on port ${port}`)); | aec5003098067b6894028188ed4e8ec80a4fb679 | [
"JavaScript"
] | 1 | JavaScript | kirikaran/File_Upload_Using_NodeJS | 1ff97a60c7088b74e7562ba1614b8eeea58653d1 | 3aecf3b5305f0c0612da5f605c7e815f99cb9a36 |
refs/heads/master | <file_sep>#pragma once
#include <boost/fusion/container/map.hpp>
#include <boost/fusion/include/at_key.hpp>
#include <boost/type_index.hpp>
#include "object_pool.hpp"
namespace variant3 {
namespace detail {
template <typename T> struct get_resource;
template <typename ResourceType, typename Constructor>
struct get_re... | 28e186bb4391b592e71bd85648c01baea25e4449 | [
"Markdown",
"CMake",
"C++"
] | 19 | C++ | havogt/memory_pool | 3c2fd62c7b4a2c6c1c061618d90f4f23eb38742a | 3b4cc281a363d244ce137286a7a757b8333d5aff |
refs/heads/master | <repo_name>plxzzlx/AndCtrl<file_sep>/Desktop/AndCtr/AndCtr/NetworkServer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.Threading;
using System.Windows.Controls;
using System.ComponentModel;
namespace AndCtr
{
publi... | 0f947138e6861b0a28282cab1ccec231dced2721 | [
"Markdown",
"C#"
] | 5 | C# | plxzzlx/AndCtrl | d94f42c4bd32b0cc15125f6a59a10c2326045982 | 043f964be110cecb3bfa8258340ee1d7044eb4db |
refs/heads/master | <file_sep><?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\InicioController;
use App\Http\Controllers\NombreController;
use App\Http\Controllers\ServiciosController;
use App\Http\Controllers\ContactanosController;
use App\Http\Controllers\InformacionController;
/*
|--------------------------------... | a205d56d0d96cdb4629a3c0608a928706f421209 | [
"PHP"
] | 1 | PHP | iruzts/examen | cffe66fa6e8de4ae7a90646eb020c0445439be39 | af734a9587c8f00e51da3ea72d0ea6aa2c42220e |
refs/heads/master | <repo_name>szazdenes/DistanceCounter<file_sep>/mainwindow.cpp
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(ui->distanceMeasurementWidget, &DistanceMeasurementForm::signalClearDistan... | 7d15760258d8888a4d569c4f0a6f74451f504c95 | [
"C++"
] | 9 | C++ | szazdenes/DistanceCounter | 2ccf3bb5daf9b5c878bfe419d07bcaf0f6c01900 | 6c2ac9cb9965aa072a58b339924d90d0c761ab09 |
refs/heads/master | <file_sep>package org.ioarmband.android.connection;
import java.io.IOException;
import org.ioarmband.net.connection.StreamedConnection;
import org.ioarmband.net.connection.manager.ConnectionManager;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothSocket;
import android.util.Log;
public... | c6421461c8b398629e67c7a6fd61996fb27aa04e | [
"Java"
] | 1 | Java | ioArmband/ioarmband_android_service | 6fadd25233be58fba34aeaf754287daf7239d55a | 20e71cb2e2a974c7512b60ed2e0eba3ffd96e160 |
refs/heads/master | <file_sep>// https://github.com/sermonis/three-geojson-geometry/blob/master/src/index.js#L167
function toSphereCoordinates ( lat, lng, radius ) {
const phi = ( 90 - lat ) * Math.PI / 180;
const theta = ( 180 - lng ) * Math.PI / 180;
const x = radius * Math.sin( phi ) * Math.cos( theta );
const y = radius * Math.c... | dfc15a00e546f2e8648f5e2da520038269671d64 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | sermonis/three-globe-particles | 9487c7caed34c589564a2bebaf9ac1736e634b27 | 5bc97419eb6e408353da9d9ee15f51f2b96d07c3 |
refs/heads/master | <file_sep>#!/usr/bin/env python
'''
This module prepares the images for captioning.
'''
import pandas as pd
import pickle as pickle
from keras.preprocessing import image
from vgg16 import VGG16
import numpy as np
from keras.applications.imagenet_utils import preprocess_input
counter = 0
def load_image(path):
im... | 2bf6e34b7eade059f43915b2896755c0074db38a | [
"Markdown",
"Python"
] | 5 | Python | arorahardeep/imageSearchImproved | 8e1d2e225693be106540fc71b4e3391775fb0a6c | 5cf4ffe3f9006cc4243ec9f38273149324778b30 |
refs/heads/master | <file_sep><?php
namespace Quiklyn;
class OpaqueCollectionException extends \RuntimeException
{
}<file_sep><?php
namespace Quiklyn;
use MessagePack\Packer;
use MessagePack\Unpacker;
use PDO;
/**
* Class OpaqueCollection
* @package Quiklyn
*/
class OpaqueCollection
{
const COMPRESSION_GZIP = 'Z';
const C... | 0d11bdd9e12e1eb43fbde8c05e580ba7ae62760a | [
"Markdown",
"Makefile",
"PHP"
] | 5 | PHP | callemo/opaque-collection | cf807acd93fcbc6bb9ca76c89380ac88ce0c83cf | c65979f2debd184fc1a2ff0979bdce4a7fb1ab3d |
refs/heads/master | <repo_name>lakrisen/TEST<file_sep>/Folder/main.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include "uart.h"
#include "line_buffer.h"
#include "circ_buffer.h"
#include "encoder.h"
#in... | 69ed1d15ec8a543133284b3c9a4818fbea79d89d | [
"C"
] | 1 | C | lakrisen/TEST | 34b70568d55ae16832ae1f7c94606a047d5efddd | 9e3ff75e53ae1216e5829cef5de498b602ff0596 |
refs/heads/master | <repo_name>JohnnyLeWebDeveloper/Project-Spotify<file_sep>/assets/js/script.js
const currentPlaylist = array();
const audioElement;
function Audio() {
// Keeps track of Currently Playing Songs
this.currentlyPlaying;
// Contain Audio Object
this.audio = document.createElement('audio');
// Function that is ca... | 974a45cb45a9be8657ef52429029237d8999f537 | [
"JavaScript",
"SQL",
"PHP"
] | 8 | JavaScript | JohnnyLeWebDeveloper/Project-Spotify | 0f52d77fdb8839c5806f6e245ab078153b78cce6 | 1d7d1bfd9c2cd868cb7dc20685e9a5a65e785a39 |
refs/heads/master | <file_sep>#include <iostream>
#include<cmath>
using namespace std;
int main() {
int a,b;
char n[100];
cin >> a >> b;
cin >> n;
int i=0;
while(i<b&&i<a)
{
if(i==0&&n[i]=='1')
b++;
else if(i==0&&n[i]!='1')
n[i]='1';
else if(n[i]=='0')
b++;
else
n[i]='0';
i++;
... | 63107aedb1cc3ffd014c2ed11334725dadabcf5f | [
"C++"
] | 1 | C++ | rishabhamu/2019PGCACA40 | 989c98e1d7a818f755a29953abe21b10c4d0c2a3 | 838d4c776c9872fe850ca95820dd08a366827227 |
refs/heads/master | <repo_name>zhublik/fit_parser<file_sep>/fit_parser.gemspec
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'fit_parser/version'
Gem::Specification.new do |spec|
spec.name = 'fit_parser'
spec.version = FitParser::VERSION
spe... | 70bb65b49893af22b59f580b7b5b01e1fadb91d4 | [
"Markdown",
"Ruby",
"Shell"
] | 12 | Ruby | zhublik/fit_parser | f360cdde4bdcb1ab87ddf23a2c4b45dd95371edf | 838957eae86ae7dd3ec73de86e2bff5c28801f19 |
refs/heads/master | <repo_name>taigamatsuo/TechChan-<file_sep>/testApp/LoginViewController.swift
//
// LoginViewController.swift
// testApp
//
// Created by 松尾大雅 on 2019/09/30.
// Copyright © 2019 litech. All rights reserved.
//
import UIKit
import FirebaseAuth
class LoginViewController: UIViewController {
@IBOutlet w... | de3e4e6714d4511d72c5db9406c99ac7090eb72e | [
"Swift",
"Ruby"
] | 2 | Swift | taigamatsuo/TechChan- | 0779e8cd2e6bd42c3fe01b6770d2a2c7a1c31ab4 | bbd247b5e98c1a249c3dcbc310287c875d0ae8c3 |
refs/heads/master | <repo_name>tmaeda13/test04___vscode<file_sep>/test01vscode/js/script.js
// page-top
$(document).ready(function(){
$("#page-top").hide();
$(window).on("scroll", function() {
if ($(this).scrollTop() > 100) {
$("#page-top").fadeIn("fast");
} else {
... | b3ee88b206f8f3105767ec122440a07e0bf1afdf | [
"JavaScript"
] | 1 | JavaScript | tmaeda13/test04___vscode | e65db917ab0a339cbb8cfed014eb6e84859c2e4f | 4d0f8f3c936eee1f8e59c6b7870ebf8bf214eb8d |
refs/heads/main | <file_sep>---
- name: "Remove any older, conflicting docker packages."
apt:
name: "{{ item }}"
state: absent
with_items:
- docker
- docker-engine
- docker.io
- containerd
- runc
- name: "Install Docker's dependencies."
apt:
name: "{{ item }}"
state: latest
update_cache: ... | 312e2c201658158d7f4b08e87eab42565c5a6dfe | [
"Shell"
] | 1 | Shell | JCashen/playbook | 9b310b30b75b948d5b20bc445d9b088751e4b6ee | b35d1a2c1073d8fd4f4b525db850f2a6076b2c1d |
refs/heads/master | <repo_name>iCodeIN/podman<file_sep>/pkg/machine/pull.go
package machine
import (
"fmt"
"io"
"net/http"
"os"
"os/exec"
"strings"
"time"
"github.com/sirupsen/logrus"
"github.com/vbauerster/mpb/v6"
"github.com/vbauerster/mpb/v6/decor"
)
// DownloadVMImage downloads a VM image from url to given path
// with do... | 99e4531c9d83b290dc6a74d8c16c26c44fb7a8c0 | [
"Go"
] | 2 | Go | iCodeIN/podman | aa96cb6739303a4bf76aeb6395e8ef79ff8ef0ee | 6ff31956feb4c629a295b24e207b6e72de4e97c6 |
refs/heads/master | <repo_name>xt0rted/ClassLibrary4<file_sep>/ClassLibrary4/Class1.cs
namespace ClassLibrary4
{
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using NUnit.Framework;
using Shouldly;
[TestFixture]
public class Clas... | 7c94ebfb46e073b39a4cb1bc2f7d82f7a311bdc0 | [
"Markdown",
"C#"
] | 2 | C# | xt0rted/ClassLibrary4 | 27809e437a28c17a6070797511bd0cb661f25cf9 | 80ad503fc003de1ff05cfeac93c1f0fc7fbc0846 |
refs/heads/main | <file_sep># Opportunity Calendar
> a webapp to lists opportunities available at different organisations and
> companies. Ideal for students who never want to miss any opportunities. This
> webapp is a modified version of
> [Girl-Code-It/Opportunity-Calendar](https://github.com/Girl-Code-It/Opportunity-Calendar-Fronten... | c77db89c5e045c5e7480394344516524edbaa718 | [
"Markdown",
"TypeScript",
"Shell"
] | 8 | Markdown | app-johndpope/opp-cal | ca1ba8336dfead89f47dc1344d7456066589d83c | 03d48d7fef524218662a80132b564131b72de5d5 |
refs/heads/master | <file_sep>var express = require("express");
var bodyParser = require('body-parser');
var mysql = require('mysql');
var exphbs = require('express-handlebars');
var app = express();
// var client = mysql.createConnection({
// host : 'localhost',
// user : 'root',
// password : '<PASSWORD>'... | 26c616225054cfe458f706ae988d8acf9091af93 | [
"JavaScript"
] | 1 | JavaScript | ntekal/2-10-16-Lecture | cde486ed77f034d381e8d8617f5a2bb4f2988e59 | 3b601fd7ddd724b3a086e93eb1f534908aef9fb5 |
refs/heads/master | <repo_name>gee842/webgl-particles<file_sep>/README.md
# webgl-particles
Interactive Particle System written in Web-GL, using vanilla Javascript
## Instructions
Watch the pretty colors
Modify Settings, and hit Apply Particles to Push the changes.
<file_sep>/src/app.js
var DRAW_MODE = "gl.LINES";
var SHAPE... | 967652e6e33994b77c5757645d46f520c78fac49 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | gee842/webgl-particles | 446c1a55633df001bd131040188d9e174654b457 | 002b43f06e2e9cf11c9558e31a8c2fb507548589 |
refs/heads/master | <repo_name>sreeju123/ProtractorTypeScriptCucumber<file_sep>/JSFiles/pageObjects/calculator.d.ts
import { ElementFinder } from "protractor";
export declare class calculator {
firstEditBox: ElementFinder;
secondEditBox: ElementFinder;
go: ElementFinder;
getResult: ElementFinder;
constructor();
}
//# s... | ff07c9ffed91c1563404a22a340e7ae84aceec9d | [
"TypeScript"
] | 10 | TypeScript | sreeju123/ProtractorTypeScriptCucumber | 7a5691f7eb29cc7ee40378cecb0d62c396193258 | 159531c0a7576d4dfaa5a6b8348b89f2f75f5910 |
refs/heads/master | <repo_name>iAmNawa/alyandtj.com<file_sep>/src/views/home.js
const h = require('virtual-dom/h')
const ee = require('../events')
module.exports = function (state) {
return h('div', [
h('.brand', 'Aly & TJ'),
h('.address-bar', 'Days since the wedding of <NAME> and <NAME>'),
h('nav.navbar.navbar-default', {r... | c26adfb0149172bd6db3fc856d629a12d2f2ad72 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | iAmNawa/alyandtj.com | a342ecdca8e08b1bdd5b2f150c091a73d2c2d925 | d79ef6bb4629bf0ae98ef4269ded383b34be8c8b |
refs/heads/master | <repo_name>Anthony10700/P8<file_sep>/auth/services/auth_services.py
"""this file is for including the job code
Returns:
[type]: [description]
"""
from django.contrib.auth.hashers import make_password
from django.contrib.auth import authenticate, login
from django.core.paginator import Paginator, PageNo... | d5c28c712c52d22d7dd33f0ffa3b96975e322849 | [
"Markdown",
"Python",
"JavaScript",
"HTML"
] | 29 | Python | Anthony10700/P8 | 706d01dc94377e87531cb81ea936d70d278ae5c9 | 701bc07ccc717c27a065e7d611630fa45fe9150d |
refs/heads/master | <repo_name>zm1990s/CNA-Demos<file_sep>/windows-wordpress/multi-pod-dockerfile/nginx/Dockerfile
FROM mcr.microsoft.com/windows/servercore:ltsc2019
COPY wordpress.zip nginxinit.ps1 "C:/"
RUN powershell -command Set-ExecutionPolicy Bypass -Scope Process -Force; \
iex ((New-Object System.Net.WebClient).DownloadStrin... | a3caab50e2917cd5c2df24ea68112c881bbd8999 | [
"Markdown",
"INI",
"Dockerfile",
"Shell"
] | 17 | Dockerfile | zm1990s/CNA-Demos | 253a3e9757f4279d45ce18a7e686177ece92fb2b | a308e3abb5e4a883528c045b2a4a4df84d612750 |
refs/heads/master | <repo_name>Crigges/TableTicker<file_sep>/desktop/src/systems/crigges/gui/desktop/DesktopLauncher.java
package systems.crigges.gui.desktop;
import com.badlogic.gdx.Graphics.Monitor;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
impor... | 641d832e44a5fff03aab0074e998e19236cd4905 | [
"Java"
] | 3 | Java | Crigges/TableTicker | aca9037973d2bb5809efdf2c597e18e9aef42a12 | c9a5e584387f6485b23ab2e40fbc024958dedd83 |
refs/heads/master | <file_sep># jet-game
*A simple game made with HTML5 canvas.*
*Note: this is very much a work in progress.*
## Running
Clone the files to your local machine.
Then, run an HTTP server on the directory that holds the files.
For example, you could use python 3 and run <br>
`cd <YOUR DIRECTORY>` followed by <br>
`pyth... | b0a70aa2de7fbc016139ff1d63b0744b319eac47 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | jonrrich/jet-game | 163fb2847163762f58aeb0428f2c7cf2b5a538d7 | ab7615ffcf8cda228e22c3467b7445dccbefab7f |
refs/heads/main | <repo_name>Harald-LB/DebugProblem<file_sep>/settings.gradle
rootProject.name = 'DebugProblem'
<file_sep>/readme.md
# Coroutines debugger does not work with Kotlin 1.5.0 + coroutines 1.5.0-RC
Just discovered, this problem.
<NAME> has already issued an error report here:
<https://youtrack.jetbrains.com/issue/KTIJ-11... | 4b01f6d159497a482c7aa2adaa7eec741c7ebf44 | [
"Markdown",
"Kotlin",
"Gradle"
] | 3 | Gradle | Harald-LB/DebugProblem | c5f1bf8bc7093cee21ac8a43be10da76f4c41bfc | 3232949d07b6224dfdb8048d7858350df7b361b2 |
refs/heads/master | <file_sep>package model;
import bean.*;
import java.util.ArrayList;
import java.sql.Array;
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class HoatDongTNDAO {
String url = "jdbc:... | 835ef2b7f237604d497317d85f957577954f48aa | [
"Java"
] | 5 | Java | vovanquang12cntt/HDThienNguyen | cbde8c1f41f542a3511d72721190dae1882e71a2 | 9ae35b4084ffa4d16050ff93df7a04dfaf38d7b1 |
refs/heads/agfx-fxdb-core-api-dmz | <repo_name>ranjitmenon/agfx-fxdb-core-api-dmz<file_sep>/agfx-fxdb-core-api-dmz/Argentex.Core.Services/Models/Fix/FixQuoteRequestModel.cs
using Argentex.Core.Service.Attributes;
using System;
using System.ComponentModel.DataAnnotations;
namespace Argentex.Core.Service.Models.Fix
{
public class FixQuoteRequestModel... | cea6351cc4f9d33027be236bd1981a958baf00e4 | [
"Markdown",
"C#"
] | 424 | C# | ranjitmenon/agfx-fxdb-core-api-dmz | 0799cae7fc8b81c281bd0e5e844d0f2c1e577f9f | 74c3b5b5b969d6acb2e5b71fd742adb861bdfb73 |
refs/heads/master | <repo_name>kg-bot/kg-bot.github.io<file_sep>/styles/bgimages/Grees_test.user.js
// ==UserScript==
// @name AntiSpam
// @namespace erep_test
// @description Testna eRep skripta
// @include http://www.erepublik.com/*
// @include http://*.erepublik.com/*
// @version 1
// @grant none
// ==/UserSc... | 6700e6a15710f131c6074e2858f5e9155de2fb7e | [
"JavaScript"
] | 2 | JavaScript | kg-bot/kg-bot.github.io | 11b389295f224b880dde131e4fb36aabedd55080 | 757eafbd26e7a1125d964e8757282e1901ee49f8 |
refs/heads/main | <repo_name>AdrianValenzuela/prueba-tecnica-front-2021<file_sep>/todo-app/src/components/Layout/Footer/Footer.js
// local imports
import './Footer.css';
function Footer() {
return (
<footer className='pageFooter'>© 2021 Product Hackers</footer>
);
}
export default Footer;<file_sep>/todo-app/src/App.js
... | a3eb9df478b69f4e7fb694a4caaa27b19d1c5e23 | [
"JavaScript"
] | 5 | JavaScript | AdrianValenzuela/prueba-tecnica-front-2021 | 3ef5f09f10b03c9fcdc3af863d24d2449f50e142 | 78270e6c00fba1c31b82e520bc9fe7cf73fe42b2 |
refs/heads/master | <file_sep>jQuery(document).ready(function() {
$(function () {
var array=[1,2,7];
var map_json={};
for(const i of array){
map_json[i] = new Date(2022,11,i,10);
}
var currdate=new Date();
var a=currdate.getDate();
... | 3bd10be1b3da7d0c67760c0f4f2373b038b7ba40 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | ajaystark/ajaystark.github.io | ae1292cfc8edc2ee9f4cb2867237f207d294d730 | 39467b0c0ab451517f49e7748c96291df4220b3a |
refs/heads/master | <file_sep>/**
*
*/
package com.mulodo.miniblog.service.impl;
import java.sql.Timestamp;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transactio... | 1819543c2df398c7dcde938b89356c440d0f9632 | [
"JavaScript",
"Java",
"Markdown"
] | 12 | Java | le-tri-mulodo/trile.miniblog | cf227788c21243a4532ed67bb6df7a672490ff53 | 0e840ac9534aa1bd9b23814ca1c41abf168dc801 |
refs/heads/master | <repo_name>SabinPruna/bdd-crud-testing<file_sep>/tema2_jpa_jse/src/main/java/facultate/bdd/tema2/dao/impl/BuyerDAOImpl.java
package facultate.bdd.tema2.dao.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import j... | 06db35c125502345e0289f8ae8720da9c9721eee | [
"Java"
] | 3 | Java | SabinPruna/bdd-crud-testing | af7607ee317671dac691411dbf989333d9aef692 | b23398ecf6c1cd831eeea09ab8d5c4587d38fd2b |
refs/heads/main | <file_sep>NAME = "[name]"
with open("./Input/Names/invited_names.txt") as names_file:
names = names_file.readlines()
with open("./Input/Letters/starting_letter.docx") as new_letter:
contents = new_letter.read()
for name in names:
name_strip = name.strip()
new_let = contents.replace(NAME, n... | 83b7b675bcb9ad9cea64fc9d8f942f0a501e06a1 | [
"Python"
] | 1 | Python | cmlohr/py-mail-merge | 0de8305fd8a6cb4061f6f8d17e9e77f0399dd2e5 | 8b9449b1aa324e1589da7726dd248d146ec25f71 |
refs/heads/master | <file_sep>Salve salve família ycarozinho na área
eu fiz um projeto de jogo da velha para testar minha lógica de programação então basicamente o "index.html" vai direcionar o usuário para a página que escolher, caso ele escolha jogar dois jogadores o "index.html" direciona ele para o "jogarsozinho.html" que na verdade ... | 156d9863c3a84ecfbe48cadceeb1460ea24fe41b | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ycarotrindade/jogo-da-velha | b108dc4613a078227b295d75ebecc5ab04d4c071 | b8b314a39c89317b0e7792ac76b79cc802c5a144 |
refs/heads/master | <repo_name>roclet/angular-card-slider<file_sep>/src/app/carousel/models/SliderBaseModel.ts
import { SliderCarouselModel } from "./SliderCarouseModel";
export interface SliderBaseModel {
isHovered: boolean,
imageUrl: null,
data: Array<SliderCarouselModel>
}<file_sep>/src/app/carousel/models/SliderCarouseM... | e17fcc20b390d26cc38ad7bafb51f21542ddd3a7 | [
"TypeScript"
] | 6 | TypeScript | roclet/angular-card-slider | 2e97674e293dd2e1f0b3db6f03c57accad2c0482 | e3331e94983cb7f708883ffaaadbecd91f399717 |
refs/heads/master | <file_sep>//
// ThirdViewController.swift
// BuggyApp
//
// Created by <NAME> on 28/6/19.
// Copyright © 2019 scbeasy. All rights reserved.
//
import UIKit
class ThirdViewController: UIViewController {
@IBOutlet weak var mBtn: UIButton!
@IBOutlet weak var mText: UITextField!
override func viewDidLoad(... | 57880915cd673c9d42bd75a05dbf98810e814072 | [
"Swift"
] | 1 | Swift | plueksaporn/BuggyApp-iOS | 23ded0db5815cefe0adbe145b3164a24d6f5ec9f | 753da84b0d8ea6f8621feb4de3a7c70b10080ef1 |
refs/heads/master | <file_sep>var fs = require('fs');
var path=require('path');
var file = process.argv[2];
var type = '.' + process.argv[3];
fs.readdir(file,function Addone (err, list) {
list.forEach(function (file){
if (path.extname(file)===type){
console.log(file);
}
}
)
} );
| f35fbcf61e7144f00b4f441b4138b617b4d494e6 | [
"JavaScript"
] | 1 | JavaScript | narayananvbaradwaj/nodeschool-nodejs | 0cd23ed46fbcd2b7ff9298a79f8d0d5104fd7be0 | 521eb1c616013424c7bf6ae8ab50a7c2e1681aa2 |
refs/heads/master | <file_sep>const router = require('express').Router();
const {
getAll,
getById,
add,
update,
remove
} = require('../controllers/MemoryController');
router.get('/', getAll);
router.get('/:id', getById);
router.post('/', add);
router.put('/:id', update);
router.delete('/:id', remove);
module.exp... | dfad63eb1be4c672f81df48253ae2f4354959146 | [
"JavaScript"
] | 5 | JavaScript | biyonik/MemoryBox | 1d98d25da540b1673aa73e106733f6259f6e2c84 | 153ee38dabbe4196bb79211f36cfbcb930cb2bd9 |
refs/heads/master | <repo_name>jeswa/DNA<file_sep>/core/transaction/payload/BookKeeping.go
package payload
import "io"
type BookKeeping struct {
}
func (a *BookKeeping) Data() []byte {
return []byte{0}
}
func (a *BookKeeping) Serialize(w io.Writer) error {
return nil
}
func (a *BookKeeping) Deserialize(r io.Reader) error {
return ... | 114ccbdcb9b0abb03c98dec8b4a79154743a4b52 | [
"Go"
] | 9 | Go | jeswa/DNA | 64e0522d2ca13f57afeb399981bbb062b2634ee7 | 3700361fe82f42f6b912da589e4e0ae1e9dc1c90 |
refs/heads/master | <repo_name>kjannenga/playlist-assessment<file_sep>/index.js
document.addEventListener('DOMContentLoaded', function () {
function getAlbums(url) {
return new Promise((resolve, reject) => {
fetch(url)
.then(res => {
if (!res.ok) {
if (res.status == 40... | fac602ae7247cb110694598ee7e4a99385a0d67b | [
"JavaScript"
] | 1 | JavaScript | kjannenga/playlist-assessment | 0395ec42a00e5d7badc598b725f7ffcc6e6ca244 | a131480cbd321857a655d69857d8475024fe01c5 |
refs/heads/master | <repo_name>fjh1997/alien_auto_login<file_sep>/README.md
# alien_auto_login
原帖地址:https://keylol.com/forum.php?mod=viewthread&tid=567722&page=1#pid10946064
<br>在https://na.alienwarearena.com 上面連續登錄28天有Arp獎勵,但每天登錄又比較麻煩,恰好手上有一個閒著的linux服務器,索性寫個腳本自動登錄。
## install dependency
首先安裝nodeJS以及帶chromium的puppeteer
```bash
curl -sL h... | fa2c62aada974b15460d72417ed3ab35789feeb2 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | fjh1997/alien_auto_login | 36ce4e1e858d89d79aaa51094a79b685c648cf8f | 531aef4d24c6288c1be3792f3d2ef660061525c2 |
refs/heads/master | <file_sep>/**
* Created by komal.chaudhary on 2/22/2016.
*/
//Service_Train_Fare_Enquiry
angular.module("myApp").factory('Service_Train_Fare_Enquiry', function ($http, Key_Train_API) {
return function getObjectJSON(train_name_no, source_code, dest_code, age, doj, quota_code)
{
var key = Key_Train... | 82320554224852555f20ab8b15837fdad5c3c34a | [
"JavaScript"
] | 13 | JavaScript | nkomalc/Train_Journey | f017d7b04409ac4302e29548c447f5cc4593e919 | 2e2d72f58621904bc0c56a2d95bc691ed84baec7 |
refs/heads/master | <file_sep>\name{Portfolio}
\alias{Portfolio}
\docType{data}
\title{Portfolio Data
%% ~~ data name/kind ... ~~
}
\description{A simple simulated data set containing 100 returns for each
of two assets, X and Y. The data is used to estimate the optimal
fraction to invest in each asset to minimize investment ... | c440e7862f7b93a7e2282aadccd70eec192d3fdf | [
"JavaScript",
"R"
] | 23 | R | vinayaktrivedi/facebook-copy | c1eefe344b003f9432217097cf7f537a54fe69c8 | 0bf3f5f37c35473202b003757024a261c843e6ce |
refs/heads/master | <repo_name>zhangweilian/verbose-guide<file_sep>/readme.md
# markdown
__this text will be wonderful__
~~this text will be delete~~
_you **can** combine them__
-<NAME>
[]finish my changes
```c
#include <stdio.h>
int main(void){
for(int i=0;i<10;i++)
printf("%d",i);
}
```
>hello.c
[github](http://www... | a89803b564013200c8396871dc53c059945ecf0b | [
"Markdown",
"C"
] | 2 | Markdown | zhangweilian/verbose-guide | e2d32094aeb5bdf1ac1fe0a378ecf0b46f20a148 | 5a6d327b37ecec4124d1d92526536c87e0ff78d7 |
refs/heads/master | <repo_name>iaaron-green/shihov<file_sep>/src/main/java/DeveloperView.java
import java.util.Scanner;
/**
* Created by Roma on 27.06.2017.
*/
public class DeveloperView {
public static DeveloperController developerController;
public static Scanner scanner = new Scanner(System.in);
public static void main... | 016e6f7934c557ea3177b09d48c92dcee49c3bd3 | [
"Markdown",
"Java"
] | 2 | Java | iaaron-green/shihov | e765ff4a17b14cd6d72cf1e80edb5722f687ae29 | eb764fdad60748b88250bbe2cd6f0caaaa5b0d3b |
refs/heads/master | <repo_name>triedal/countdown<file_sep>/src/countdown.c
#include <pebble.h>
#define KEY_TEMPERATURE 0
static Window *window;
static TextLayer *timeLayer;
//static TextLayer *batteryLayer;
static TextLayer *weatherLayer;
static Layer *time_ring_display_layer;
// Try 10 minute increments
// 68 = radius + fudge; 3 = 68... | 18fdac4e7009f1ff832af7f3d6547185a938d10d | [
"C"
] | 1 | C | triedal/countdown | 7acf59a756a53655c14c6d85a1e68d572c93a7a5 | 7e71e4b3b9892c2f18752a299aa21f4dfbab384f |
refs/heads/master | <repo_name>kashyp18/WEATHER<file_sep>/app/src/main/java/com/example/android/weather/Utility.java
package com.example.android.weather;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import java.text.DateFormat;
import java.util.Date;
/**
* Crea... | 7335cb99f68adda63919061def8f1d7c82519fe0 | [
"Java"
] | 1 | Java | kashyp18/WEATHER | 187f7311e4524b40b7031dee7f03feaa790c22e5 | 6c8022bc6af1f435305e6a7b08b99759e9dc7caa |
refs/heads/master | <file_sep>#!/usr/bin/env bash
ELK_VERSION=latest
#mvn clean package -Dmaven.test.skip=true -U
docker build -t registry.cn-hangzhou.aliyuncs.com/engine/redisson:$ELK_VERSION .
docker push registry.cn-hangzhou.aliyuncs.com/engine/redisson:$ELK_VERSION
#docker run -e SPRING_PROFILES_ACTIVE="prod" -p 7000:7000 -d elk-e... | 3241ebbecbc96103c2e93accebf2ca510a2015c0 | [
"Markdown",
"Java",
"Dockerfile",
"Shell"
] | 4 | Shell | purgeteam/redis-start | 7c768c6a3aa363f31fc25e85dc5c6ed13dea4872 | 8c53d72e48e2517fa8aaaa0ff10adad9307f6124 |
refs/heads/master | <repo_name>AugustinBrocquet/symfony_rest_api<file_sep>/README.md
# Symfony REST API + Oauth2
[](https://symfony.com/)
# Api REST créée avec le Framework Symfony
- Version 4.2
## Installation
Cloner le projet
```sh
$ git clone... | be3d0b0524f8ff903ca53551f0a0f7d6c12dd8fa | [
"Markdown",
"PHP"
] | 2 | Markdown | AugustinBrocquet/symfony_rest_api | 61eb646c9396f4cf901411466a182c3a394122bb | 899b6f7895d66ca8ec43c1991f2c27b1a01e89e6 |
refs/heads/master | <repo_name>open-switch/chef-opx-examples<file_sep>/cookbooks/route/metadata.rb
name 'route'
maintainer '<NAME>'
maintainer_email '<EMAIL>'
license 'All Rights Reserved'
description 'Installs/Configures route'
long_description 'Installs/Configures route'
version '0.1.0'
chef_version '>= 12.1' if respond_to?(:chef_versio... | 9847d882552a30546ae91185a17d969f798f4fb2 | [
"Markdown",
"Ruby"
] | 19 | Ruby | open-switch/chef-opx-examples | 4caa9254d516eadbdb5194fa537144311ddfb211 | 48dd2eec94fd78dee849b72f91b1a2eb04e36ea1 |
refs/heads/master | <file_sep># aws
aws services, cloudformation and aws cli
<file_sep>import boto3
s3=boto3.client('s3')
ec2 = boto3.client('ec2')
iam = boto3.client('iam')
###run (aws configure ) for your account in terminal
###run (pip install boto3)
###Copy this in new file and name it aws.py
###run (python aws.py)
def getbuckets(... | a8e2ced8bf40556109933984424ac1b865895bab | [
"Markdown",
"Python"
] | 2 | Markdown | parihar1302/aws | a7684e4fbd8adb9e18ff7354fa1e4c9e08709367 | 32303736a1a6b40f36ebead5be570800a581e1bd |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.