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 | <file_sep>import { IUser } from './user.interface';
export class User implements IUser {
userName: string;
email: string;
phone: number;
public constructor(un?: string, em?: string, ph?: number) {
this.userName = un ? un : '';
this.email = em ? em : '';
this.phone = ph ? ph : 0... | f1e637c46edae2c6287607671ed8da2b362e8961 | [
"Markdown",
"TypeScript"
] | 7 | TypeScript | lkovari/lk-lib | 3ee367c5db2214c88cb7031fb31ff40122f2f559 | 2d749abb21330bad98496b4ee4d68f8fe3800d1c |
refs/heads/master | <repo_name>Cupritix/AskingNameAdvanced<file_sep>/README.md
# AskingNameAdvanced
class work
<file_sep>/helloevenmoreadvanced.py
#School project
print("What is your full name?")
wholeName = input()
print("How long is your first name?")
firstNameLength = int(input())
print("First Last: " + wholeName)
print("Last, Fi... | 0a728ca28cb4b5ad6b0aa468b3fb211188420735 | [
"Markdown",
"Python"
] | 2 | Markdown | Cupritix/AskingNameAdvanced | 4c9ddbe0fb8b37ac380132f9de9f727fd2310368 | 0c2b243cdab8ef8c9ec4956256e1fa37df0f30c6 |
refs/heads/master | <file_sep>import createSchema from 'part:@sanity/base/schema-creator'
import schemaTypes from 'all:part:@sanity/base/schema-type'
import blockContent from './blockContent'
import category from './category'
import collection from './collection'
import item from './item'
import productVariant from './productVariant'
ex... | faf9f43b98a3377a72c4046606cd1f5d1c83c236 | [
"JavaScript"
] | 1 | JavaScript | danjonesdev/rendah-mag-store-sanity-cli | d7f115c54d23bac29c68b9eac1a32f5a193ffa44 | 6cb258abe8fd88806c1556d3d51181e25fe84daf |
refs/heads/master | <file_sep># Highly Available NAT Gateway for GKE Nodes
This example creates three NAT Gateway instances in different zones and Compute Engine Network Routes to route outbound traffic from an existing GKE cluster.
**Figure 1.** *diagram of Google Cloud resources*

// logger.log("ALOK");
// const path = require("path");
// var pathObj = path.parse(__filename);
// console.log(pathObj);
// const os = require("os");
// var mem = os.totalmem();
// var freemem = os.freemem();
// console.log(mem);
// console.log(`freemem: ${freemem}`)... | 2a4296d8d580fb622ff68c2df3fe8dc0735b3490 | [
"JavaScript",
"C++"
] | 2 | JavaScript | alok328/Test111 | 114d88fc76545b5959c9b21d4d9beca30908c32a | 577a8f6852edeebf68b5537689660cea11dac8e6 |
refs/heads/master | <repo_name>MLbyML/pytorch-bioimage-io<file_sep>/pybio/torch/training/__init__.py
from pybio.torch.training.simple import simple_training
<file_sep>/tests/test_packages/test_UNet2DNucleiBroad_model.py
import requests
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import List, Optional
from ... | fe2b536f0842d50820367f2b554070d2637282df | [
"Python"
] | 4 | Python | MLbyML/pytorch-bioimage-io | 113e6d01989e39cd955cb2ead311086548d95026 | 549a1f23c14c37889e8f7a46b938f659b09f7f9c |
refs/heads/master | <repo_name>at1as/project_euler<file_sep>/problem_14.rb
# The following iterative sequence is defined for the set of positive integers:
#
# n → n/2 (n is even)
# n → 3n + 1 (n is odd)
#
# Using the rule above and starting with 13, we generate the following sequence:
# 13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
#
# I... | 0002cc9161ccbb76cfe37bdea1b7eaa1b8dc5d2d | [
"Markdown",
"Ruby"
] | 31 | Ruby | at1as/project_euler | ff62cf1534a37964d2d4babeffa84dc54afa14e3 | 5107a6b0a80968020bb6a62a08ea06c9e6784b99 |
refs/heads/master | <repo_name>kashmira1010/angular4_lists<file_sep>/src/app/auth/auth.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http'
import { Router} from '@angular/router';
import { CookieService } from 'ngx-cookie-service';
import { Subject } from 'rxjs';
@Injectable({
provid... | e022cc5795547aa32e17f75cd5ce12a7cf812080 | [
"Markdown",
"TypeScript"
] | 9 | TypeScript | kashmira1010/angular4_lists | 09aef4762c92e94e32e596825e729d47c25d5def | 72642b3874a36715441222c4a8d88c952f68cbc2 |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
const API_URL = 'http://api.openweathermap.org/data/2.5/weather';
const API_KEY = '0e16df06b6e5088ff909d8e67c46bf5f';
@Injectable({
providedIn: 'root'
})
export class WeatherServiceService {
constructor(priv... | fa6a9aa864e5ac5a8aed358b38c0fee432899427 | [
"TypeScript"
] | 2 | TypeScript | AhmedDjallelEddineSetererrahmane/PlaneryGmbH_angular_test | 38993ab4928cadf2482d159c08132b8443ec62f5 | 17d00ede3601e19167852d98a11adf4eea866ef6 |
refs/heads/master | <repo_name>fukit0/ImageRecognition-PCA<file_sep>/src/main/java/ytu/ml/pca/PCAUtil.java
package ytu.ml.pca;
import java.awt.Robot;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import jav... | 943ed700b6231e13716d53f05e8e55d8f42b0949 | [
"Java"
] | 1 | Java | fukit0/ImageRecognition-PCA | d83ed43f533dd2ca7ce3c8324cc8bff1da044e97 | 0301d6ddccc07de1f0a5780fe5c231599ffc2bb2 |
refs/heads/main | <repo_name>gasperjw1/Nothing<file_sep>/Topic_Model_Seinfeld.py
####### Code written by <NAME>
####### Creates a Topic Model that analyzes the show Seinfeld given a set of topics defined by a given corpus
##############################################################
###################################################... | 51aadaeb802ee5604399372d086b00a53b1f142a | [
"Markdown",
"Python"
] | 3 | Python | gasperjw1/Nothing | d978575635c37f2efda797fc142db178a3fe127f | ab22787719c87c1f36ad4b04d66f10fa7dd36fad |
refs/heads/master | <file_sep>import random
def dungeon_root():
return ["obstacle", "treasure"]
dungeon = dungeon_root()
branches = []
def generate_obstacle():
return random.choice([
["key", "obstacle", "lock", "obstacle"],
["monster", "obstacle"],
["room"],
["branch", "lock"],
])
# TODO: pr... | 0d5f61b54024064aa5407d3993e3ffde5ec95efb | [
"Python"
] | 2 | Python | FelixMcFelix/PGMaps | ef829ac065929539df59e3d57e2810c24125699e | 9190514cb0158b978cec7105a40f2a1ed272077b |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { Router } from "@angular/router";
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
export class HomeComponent implements OnInit {
constructor(private router: Router) { }
ngOnI... | 83218c609aae13ae987f399e12972cf27faa6754 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | nirgeier/AngularTutorial | f3576a0abae921921baf88b59896be42da8c0f98 | 0d4a9c68f28eb4ac83b95664e19ff253d6c571d9 |
refs/heads/master | <file_sep>package com.example.akash.orientationproject;
import android.media.Image;
import android.widget.ImageView;
import java.io.Serializable;
/**
* Created by Akash on 11/30/2017.
*/
public class SuperHero implements Serializable {
String name;
String alias;
String power;
String weak;
Stri... | 9a305a7a4f703c2754087de39c98099a2ea65d0b | [
"Java"
] | 1 | Java | akashpathuri/SuperheroCentral | 893e4aa69653dee2fc04540e4b35310e9e7ac55a | cb63315c2ef8201631341897cd3153072c3614ab |
refs/heads/master | <repo_name>betterchalk-tunde/form<file_sep>/public/app.js
"use strict";
const userDetails = [];
const form = document.querySelector('.needs-validation');
const firstName = document.querySelector('#firstName');
const lastName = document.querySelector('#lastName');
const email = document.querySelector('#email');
const us... | 317963b9d1ff8a569d114f433fda75bcad7a29fa | [
"JavaScript",
"TypeScript",
"Markdown"
] | 3 | JavaScript | betterchalk-tunde/form | 6cad5e8ad6682042f1e90ad39428ce0369fc7c51 | d98fdfd6cf2a7ce54ec63d1d7d48da88a304b865 |
refs/heads/master | <file_sep>import React from 'react';
import ErrorBoundary from 'components/ErrorBoundary';
const Dashboard = () => {
return (
<ErrorBoundary>
<h2>Dashboard</h2>
</ErrorBoundary>
);
};
export default Dashboard;
<file_sep>import React, { memo } from 'react';
import { Nav } from 'react-bootstrap';
impo... | 9bb4a25990e67c1bf038be043b6448643c29e820 | [
"JavaScript",
"Markdown"
] | 21 | JavaScript | hussnainwithss/Ubook-improved | df22df32283d6fbf1ad0ed45130ca619260e547a | a7e3220da7168cba6b9d4af30be91d04c165b358 |
refs/heads/main | <file_sep>## Formação em Elixir Stone Pagamentos | Desafio Técnico
### Requisitos
Para executar a aplicação é necessário utilizar o NodeJs:
```
node app.js
```
### Descrição
Trecho Principal (a partir da linha 127):
```javascript
const QUANTIDADE_EMAILS = gerarRandomInt(min,max);
const QUANTIDADE_ITENS = gerarRand... | 9a0aa434cd39bf5f4411e0914b0ea5c316459149 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | manoelbjr/Desafio_Stone | 2b16b9c139f3a51e0d459f7d1e0dd6728af8aa4d | ffc0677eedbbb40f468647805f2b705872c65e95 |
refs/heads/master | <file_sep>package edu.washington.accessmap;
import android.app.Activity;
import android.content.Intent;
import android.location.Address;
import android.location.Location;
import android.os.Bundle;
import android.os.Parcelable;
import android.provider.ContactsContract;
import android.support.design.widget.FloatingActio... | de3ac347e06ee44b828acd4608f6a738c94c911a | [
"Java"
] | 5 | Java | sfelker/access-map-android | 16cd025dee60455dd469a16f843bd0d3e25471ab | df5a546d4e5c4fda634347ebd42cd6e3100fbe67 |
refs/heads/master | <repo_name>a21029delia/r_prg_midterm_04<file_sep>/r_prg_midterm_04.R
# Create a function my_sort_asc()
my_sort_asc <- function(input_vec){
for(i in 1:(length(input_vec) - 1) ){
for(j in (i + 1):length(input_vec) ){
if(input_vec[i] > input_vec[j]){
temp_i <- input_vec[i]
input_vec[i] <- inp... | 7760411c6be336f557fa0d6de2547b1bbb2f7e0e | [
"R"
] | 1 | R | a21029delia/r_prg_midterm_04 | 7c42b3c4cee7af4bd7b5f768f13f065c0cf73105 | 392924da3995b11b3402e0b7e7b219a383eb07fc |
refs/heads/master | <file_sep>const express = require('express');
const router = express.Router();
const conn = require('./../db/db')
const svgCaptcha = require('svg-captcha'); //验证码
const sms_util = require('./../util/sms_util');
let md5 = require('blueimp-md5');
const session = require('express-session');
let users = {};
/* GET home p... | c3e4d62d927a16ae55be07abcd20b5be6b1055b4 | [
"JavaScript"
] | 1 | JavaScript | jf0508/pddServer | d7b52cc043cc5a60c876dfed467b6ebfbe8cdb9d | 5f006f54e85582247e22cff48b0d89ef82ef2ddf |
refs/heads/master | <repo_name>zxteloiv/problem-reservoir<file_sep>/prs/views/templates/header.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="zh_CN">
<head>
<meta charset="utf-8">
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="assets/css/bootstrap.min.cs... | ab92360976a58cfd93b6ce853396365aca36d4e9 | [
"JavaScript",
"SQL",
"Markdown",
"PHP"
] | 15 | PHP | zxteloiv/problem-reservoir | b2e561a7d4ff562f56d09df1e74467cd505ea1ac | 3ffcbc38d0dd9563ec59860c8e385aaa722712ce |
refs/heads/master | <repo_name>mainulsakib/hard-rock<file_sep>/script.js
// document.getElementById("searchPart").style.display="none";
document.getElementById("lyricsSection").style.display="none"
document.getElementById("fancy").style.display="none"
document.getElementById("searchBtn").addEventListener("click",function(){
let result=... | cfd231b6ced4bb1fe43ccdc3225a4e04f99d2d54 | [
"JavaScript"
] | 1 | JavaScript | mainulsakib/hard-rock | 39783bb8fff5964785fec13d5f51e5818c8840b3 | 0260fe8a99234446cb55985f8c82251a31abb4db |
refs/heads/master | <file_sep>#include "skeleton_ext.h"
static VALUE run(int argc, VALUE* argv, VALUE self) {
int i;
for (i = 0; i < 10000; ++i) {
for (i = 0; i < 10000; ++i) {
rb_genrand_real(); // functionally the same as: rb_eval_string("rand");
}
}
return Qnil;
}
void Init_skeleton_ext(void) {
VALUE rb_mSkele... | ade6f4982f921155ad19780680edca74431fdce1 | [
"Markdown",
"C",
"Ruby"
] | 6 | C | dbi/ruby-c-skeleton | 7faa517ee3684dcd1008cbb76aa30bd2dc468777 | 0518f519564768842303f2548647a599d1d9f566 |
refs/heads/master | <file_sep>Post.Status.DRAFT=草案
Post.Status.SCHEDULED=计划的
Post.Status.PUBLISHED=发布的
Banner.Type.MAIN=主要
Banner.Type.SUB=子
Banner.Type.ASIDE=旁边
CustomField.FieldType.UNDEFINED=选择类型
CustomField.FieldType.TEXT=文本
CustomField.FieldType.TEXTAREA=文本区域
CustomField.FieldType.HTML=HTML
CustomField.FieldType.SELECTBOX=选择框
CustomF... | a0e89646adb47cf50098de5cf34517e20de0f2c8 | [
"JavaScript",
"INI"
] | 4 | INI | lanoga/wallride | 3d20fac42155324094bb2bd3696754bfdbc3b54b | be59861477dd8a0310bba78cb296ff61b6fc4172 |
refs/heads/master | <repo_name>SamKun28/XTNetwork<file_sep>/Podfile
platform :ios, '8.0'
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/aliyun/aliyun-specs.git'
target "NetWork" do
pod 'AFNetworking'
pod 'SVProgressHUD'
pod 'YYModel'
pod 'YYCache'
end<file_sep>/NetWork/XTAPIHeader.h
//
// XTAPIHeader.h
// Net... | 3583e15824080c9b47ded4375f81c3d90314b410 | [
"Markdown",
"C",
"Ruby"
] | 3 | Ruby | SamKun28/XTNetwork | ef63f1fa1111ab8e0e3eda886f5680728e362257 | 0c9551fb0810af02ecc73cec3cf078e1e3b4f7b3 |
refs/heads/master | <repo_name>cventeic/bit-backed-hash<file_sep>/README.md
# Bit_Backed_Hash
Hash used to constrain parameter search spaces by constraining parameter values to small bit arrays.
For each parameter you can:
- Define the value range (ex: 0.2 <= value <= 0.8)
- Define the value resolution in terms of bits (ex. 4, 6, 8, etc... | 1a48cf3d7416348849f49a650402d2f161d9031e | [
"Markdown",
"Ruby"
] | 6 | Markdown | cventeic/bit-backed-hash | 1d05789827b14b41c61421844f572a355d120e5c | 0646658662ee2e3b6a5f5d5f04a93bb877bd54dc |
refs/heads/master | <repo_name>SparshCoolApps/aws-cdk-simple-web-service<file_sep>/lambda/save_cust_info.ts
const AWS = require('aws-sdk');
const db = new AWS.DynamoDB.DocumentClient();
const uuidv4 = require('uuid/v4');
export const handler = async (event: any = {}) : Promise <any> => {
if (!event.body) {
return {
statusCo... | 56b0d9823f83c62dbbafa48b51073ccb1a33504d | [
"JavaScript",
"TypeScript"
] | 2 | TypeScript | SparshCoolApps/aws-cdk-simple-web-service | 12b368cb7315b378ee9582295611948371ddeb55 | 4cd7b5b5435cbbb84040e48ed5e546680d396c24 |
refs/heads/main | <repo_name>kevensantana/NLW4-Move.it<file_sep>/README.md
# NLW4---Move.it<file_sep>/api/src/server.ts
import express, { request, response } from 'express';
const app = express();
//Pegar alguma informação
app.get("/get", (request, response) => {
return response.json("hello");
});
// Receber alguma informação
// ... | 0b3ad32f616c67b8c1cef1e301bf7c426f058546 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | kevensantana/NLW4-Move.it | 32146160faa36c8ff440ea40bfef485b6bdce70d | ef4eb592ca9946bc3f3b65f75140a71e817a2d7a |
refs/heads/master | <file_sep> var from='';
var to='';
var group=[];
var room='';
var message=[];
var groupmessage=[];
var talking=[];
var grouptalking=[];
//区分点击历史记录按钮所要执行的动作
var a=0;
var b=0;
//IE不支持IndexOf方法,需要在开始前加载以下代码
Array.prototype.indexOf=function(substr,start){
var ta,rt,d='\0';
if(start!=null)... | 59d3665b01f83bbeeaae37251af9a80732900e73 | [
"JavaScript"
] | 4 | JavaScript | DavidSun0403/Blog | 95c70ba391883e5ad53ed978d61681ef7d10d9f1 | b97ad1771e142ea1c770526556cb2a47b6f791a8 |
refs/heads/master | <file_sep>1. When first starting desktop Github, sync changes (to stay up to date with Github's online files).
2. Work on Senior Project.
3. Sync and let others know via in-person/Google Doc when you plan on committing a change(s) (to stay up to date with Github's online files/avoid file corruption from accidentally co... | fec79ac9c07e5c5d841b1e217227d6e90493673a | [
"Java",
"Text"
] | 4 | Text | jasardmal/SeniorProject | 378d864cdfe4e1a8f643259cf97e395300b47a1e | 888bd920ad5a554949248f89b5205ee007c76e14 |
refs/heads/master | <repo_name>KrishnenduDG/Jumble-Solver<file_sep>/scraper.py
import requests
from bs4 import BeautifulSoup
URL = '''https://www.dictionary.com/browse/'''
result_class = 'one-click-content css-nnyc96 e1q3nk1v1'
def find(word2):
word=''
for item in word2:
word+=item
a=requests.get(URL + word).con... | e3983e39912ed32bd2b0bb4d6897a5a809631d17 | [
"Python"
] | 2 | Python | KrishnenduDG/Jumble-Solver | 467ac7153d3dfb23f7cf61fd8a8aa390217a3df1 | c172f79f9de9a65951ce4e287f187ae0cd159e68 |
refs/heads/master | <file_sep>package com.andreas.movie_catalogue.utils
import com.andreas.movie_catalogue.data.TvShowEntity
object DataDummyTvShow {
fun getTvShow() :ArrayList<TvShowEntity> {
return arrayListOf(
TvShowEntity(
"1",
"The Falcon and the Winter Soldier",
... | 1bc691971f102ce31c61370f5027a7e25576c8bc | [
"Kotlin"
] | 18 | Kotlin | jansennn/movie-catalogue | a03895879da13c739788ba5a438c64fafceec6c4 | 6afdc401af7436168fce0e5bb558d37f1c95888b |
refs/heads/master | <file_sep>package com.example.bookingapp;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
... | 03388933d53393f1964f178bbfea9daffba1bfff | [
"Java"
] | 6 | Java | huihao-Wang/BookingApp | a2b083bdfc4a210298b959d28b7e62fae81987e0 | 7de6061c920370d88a4861044b37b52ffa74e116 |
refs/heads/main | <repo_name>Dg-Isary/Clash-Trojan<file_sep>/Clash-Trojan.sh
#!/bin/bash
clashlink=clashlink
trojan=trojan
echo > temp
echo > trtmp
wget -qO- $clashlink |grep trojan |awk '{print $2}' > temp
cat temp |while read line
do
trps=`echo "File:${line}" |awk -F '"password":' 'match($2,/\"([^\"]*)\"/,a){print a[0]}' |awk -F \" '... | 6570a2a8bf54d4e8512c24d462fdae61fff1b585 | [
"Shell"
] | 1 | Shell | Dg-Isary/Clash-Trojan | d0749615da7b4de4acf2551e936cf6d392e867c3 | 4cb2d3b3fd2088e07585c6ec2d5b404c1ed9b893 |
refs/heads/master | <file_sep>package TopStateWise;
import java.io.IOException;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
public class TopStateWiseSaleReducer extends Reducer<CompanyState, IntWritable, CompanyState, IntWritable>
{
IntWritable outValue = new ... | e8b03644935deafa29d7a1a316c8cf2e74b903b7 | [
"Java"
] | 3 | Java | pd2592/CompanyStateWiseSale | 9bb352ed8147e4b01cd5ec14b91ca035687a089a | 13e15f91bb3037eb0e064f546af659beb4da37d6 |
refs/heads/master | <file_sep><?php
session_start();
include('conn.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>RoomsOnRent | Property</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Custo... | 90bd76cac47ad281298d1b40ebad8f0e6098134f | [
"PHP"
] | 80 | PHP | ABiTSolutions/RoomsOnRent | d62581106294307ac313b8b585598c436e4e7311 | 973ce8ddee7451ba1ac90b7a41fb457a0e50f2fc |
refs/heads/master | <repo_name>MercyRima/Django_project<file_sep>/teacher/urls.py
from django.urls import path
from.views import add_teacher,list_teachers,teacher_detail,edit_teacher
urlpatterns=[
path("add/",add_teacher,name="add_teacher"),
path("list/",list_teachers,name="list_teachers"),
path("detail/<int:pk>/",teacher_detail,name="t... | ec9bd3b4c0cb529fb2ea95c6760b6f8851b2583d | [
"Python",
"HTML"
] | 20 | Python | MercyRima/Django_project | 7d17234bdd10ebbf14552037887ed2597fa80ed0 | 75163a072fcbac68c56da08e52345c071b9eff77 |
refs/heads/master | <repo_name>wood3snow/packer<file_sep>/CentOS7.1.1503_custom/script/virtualbox.sh
#!/bin/bash
VAGRANT_USER=vagrant
VAGRANT_HOME=/home/${VAGRANT_USER}
# Installing packages
echo "Installing packages ..."
sudo yum -y install gcc make bzip2 perl kernel-headers-`uname -r` kernel-devel-`uname -r`
# Installing Virtualbox G... | 60d23b91d7daf1fdf0e155062177e4003967e9f8 | [
"Markdown",
"Shell"
] | 3 | Shell | wood3snow/packer | f5522c713e3ac14275f63b17368257921fcfe5d6 | 1ee21365de260336378ac6df727d760c22b684c8 |
refs/heads/master | <repo_name>sunpeer/ROS_Demo<file_sep>/applications/mpu6050.c
#include "mpu6050.h"
rt_device_t gyro_mpu_sensor;
rt_device_t acce_mpu_sensor;
int rt_hw_mpu6xxx_port()
{
struct rt_sensor_config cfg;
cfg.intf.user_data = (void *)MPU6XXX_ADDR_DEFAULT;
cfg.intf.dev_name = "i2c1";
cfg.irq_pin.pin = RT_PIN_NO... | 6223d8e73d818edf00e255defae414752e069307 | [
"C",
"C++"
] | 12 | C | sunpeer/ROS_Demo | e1ef15e7ba172c956b2d9dc0ec2136285bb70de7 | 4b5d74b26a806e2044095367db383b66c5d962dd |
refs/heads/master | <file_sep><?php
include("gestiona.php");
$tra=new trabajo();
$tra->insert_comentarios();
?><file_sep><?php
include("gestiona.php");
$tra=new trabajo();
$tra->autocompletar();
?><file_sep><?php
include("gestiona.php");
$tra=new trabajo();
$tra->insertEncuesta();
header('Location: index.php?id='.$_PO... | 4e7082bf66dad1c9d28e4d4bb9f59c8a35d9c4e0 | [
"Markdown",
"PHP"
] | 4 | PHP | ivanelchispa2020/blog_php_ivan | a3e55c08e32b474051e639e0e58307ce797a5d21 | e80457db5d2b0692de55ec55e0d025f15f264958 |
refs/heads/main | <repo_name>aaldossari/SAW-project-two<file_sep>/public/javascripts/checkers.js
function Checkers() {
checkers = new Object()
//Constant Arrays used.
opponentPieceStartLocation = [2, 4, 6, 8, 9, 11, 13, 15, 18, 20, 22, 24]
pieceStartLocation = [41, 43, 45, 47, 50, 52, 54, 56, 57, 59, 61, 63]
opp... | f6a6b359917743503b07c1befa994ba4d25523e1 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | aaldossari/SAW-project-two | 657ede7f6dbf7f7f3950ad17415f213236991fc4 | 1caff006f9fc1643eb079c7d0016dc670a62cdba |
refs/heads/master | <repo_name>donottl/FlappyWorld<file_sep>/app/src/main/java/com/example/flappyw/StartGame.java
package com.example.flappyw;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import ... | 83520b485f8863cd12f53170a6b5160edc57d6d5 | [
"Java"
] | 1 | Java | donottl/FlappyWorld | d18e2dffba6c78cd349ea9fb8ac27605e504a945 | ffb547b8e41468f0b9c67e7291df9edfbb13f24f |
refs/heads/master | <repo_name>slighsity63/CA103<file_sep>/CA103G1/src/com/mem/model/MemDAO_interface.java
package com.mem.model;
import java.util.List;
public interface MemDAO_interface {
public void insert(MemVO memVO);
public void update(MemVO memVO);
public void delete(String mem_id);
public void updateStatus(String mem_id,Strin... | 176cd14543edd0b3eb1dad2809ded538c28cb34b | [
"Java"
] | 6 | Java | slighsity63/CA103 | 6c51d6a7aec525008d866ba637736d17716ce2a9 | 227055f20f5e3d6cfc7c070d9fc8449bf995c6c8 |
refs/heads/master | <repo_name>kundan9572/Tour-of-Goa<file_sep>/src/app/goa-detail/goa-detail.component.ts
import { Component, Input, OnInit } from '@angular/core';
import { from } from 'rxjs';
import { GOA } from '../goaInterface';
@Component({
selector: 'app-goa-detail',
templateUrl: './goa-detail.component.html',
styleUrls: ['./... | 0359ba2cec517c14fb664f9051efbfaefac8faea | [
"TypeScript"
] | 5 | TypeScript | kundan9572/Tour-of-Goa | 7dd56cb4bf0bb03fb3a11d0f7ba8f9d85a27f863 | 50577c1e9835300e569bd6d44ac33b9a85c99f75 |
refs/heads/main | <file_sep>[](https://circleci.com/gh/wilfriedpapt89/will-pet-clinic/tree/main)
# will-pet-clinic
SFT Pet Clinic
Project to master Spring framework
<file_sep>package com.willpapt.willpetclinic.services;
import com.willpapt.will... | 2c01b548f6eda9654343c7f27d6207de5f259b38 | [
"Markdown",
"Java"
] | 4 | Markdown | wilfriedpapt89/will-pet-clinic | 15e4df2bdcb5608474c95a24b2be2c01268e2009 | ef1500e0e740c9d9ec100eb2c11ddfe98c88236a |
refs/heads/master | <file_sep>var kittens = ["Milo", "Otis", "Garfield"] //define your array here
function destructivelyAppendKitten(kitten) {
kittens.push(kitten);
}
function destructivelyPrependKitten(kitten) {
kittens.unshift(kitten);
}
function destructivelyRemoveLastKitten(kitten) {
kittens.pop(kitten);
}
function destructive... | dd9ac6f46eea097d6b2b87fce3fd2141d7c52291 | [
"JavaScript"
] | 1 | JavaScript | Jclate/javascript-arrays-lab-bootcamp-prep-000 | b99bf5c58193bf0fc3a0a59083a09e3b8039f3c1 | f99754062ec5e0488493d695da11d7a51625398d |
refs/heads/master | <repo_name>NicholasDerkach/hello-world<file_sep>/README.md
# hello-world
My first programm on GitHub
Hello, world!
I am <NAME>, student of the second course of the Kyiv National University of Kyiv.
I like to dream about future and past. My favorite book is "Fathers and Sons" by <NAME>.
Buy!
<file_sep>/lab3/scripts/f... | 6fba18733df1275709e4f53a24648a5c654ee477 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | NicholasDerkach/hello-world | 4911dd61422bbc95567693521520b4c107fde521 | 947f8bf26dc31c58dfc3ca1f468b1a432e0018fa |
refs/heads/master | <file_sep>package com.spring.user.controllers;
import java.util.List;
import com.spring.user.entities.Message;
import com.spring.user.exceptions.DatabaseException;
import com.spring.user.services.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus... | 3c62b6382a854b82f13aca96e5ba2d6bf11f4792 | [
"Java",
"INI"
] | 3 | Java | HackathonJavaReact/localedatetime-spring | 5d4354f44d588aa51573aef20e9be1bb0ccba0ae | 71e71f29cd4c449f8e83e79ff828786a3c24ed50 |
refs/heads/main | <repo_name>iron1976/peaceinclasspeaceinschool<file_sep>/js/main.js
if(window.location.hash === "#en")
document.getElementById("btn_language").innerHTML = "TR";
else if(window.location.hash === "#tr")
document.getElementById("btn_language").innerHTML = "EN";
else
document.getElementById("btn_language").innerHTML... | 511e0eaa21e870aa01a2ffd4798661ff13c8ea2d | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | iron1976/peaceinclasspeaceinschool | 7f636832d5e62ca6b146c6f864201709f785dc7b | 222c7bab387cb8de94b5534b04f71f24e5d40bfe |
refs/heads/master | <repo_name>swhitfi2/guest-angular<file_sep>/src/app/guest/guest.component.ts
import { Response } from '@angular/http';
import { GuestService } from '../services/guest.services';
import Guest from '../models/guest.models';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-guest',
templ... | c770d2a4b283429713dbd6a245ce9097d82b8c4b | [
"TypeScript"
] | 2 | TypeScript | swhitfi2/guest-angular | 90a8d2435dc130e343efde79542c58738a8143f9 | c3726bbe3f3584e328a17da854ce7dc9ed4b00c7 |
refs/heads/master | <file_sep>import discord
import youtube
import setting
import connect_pg
import os
import traceback
DISCORD_TOKEN =os.environ.get('DISCORD_TOKEN')
DISCORD_CHANNEL_ID = os.environ.get('DISCORD_CHANNEL_ID')
DATABASE_URL = os.environ.get('DATABASE_URL')
YT_CHANNEL_ID = os.environ.get('YT_CHANNEL_ID')
clien... | 2f46cdf94f2fc931415892a84cf6ee0b3dbd010b | [
"Python"
] | 4 | Python | mfushimi09/yt_nightcore | f5a9cbbaa838c5fc8a65201336fd49888b3d5223 | f191472ffbfbbeb00b941063e1f3c4bd72372b07 |
refs/heads/master | <file_sep>// banner轮播
function bannerlunbo()
{
var imgbox=getClass("back-banner-box")
var btbox=getClass("btbox")[0]
var bannerbox=getClass("banner-box")[0]
var bt=btbox.getElementsByTagName("li")
var num=0
var settime=function ()
{
num++
if(num>5)
{
num=0
}
for(var i = 0; i < ... | 2239a5b11df361f68b7dddc8968d36e30eb61970 | [
"JavaScript"
] | 1 | JavaScript | wuzhuang/tianmao | 18d0a5dc5f03101b357e0825293ae99c6228dbb1 | f016f49126215ae1a6d61f74a6fdf30fb3496713 |
refs/heads/master | <repo_name>i0Ek3/TinyOne<file_sep>/server/makefile
CC := gcc
CFLAGS := -Wall -g -Os
SHDIR := ../base
OBJS = to_server.o $(SHDIR)/to_base.o
all: tos
tos: $(OBJS)
@$(CC) -o tos $(CFLAGS) $(OBJS)
$(OBJS) : %.o: %.c
@$(CC) -c $(CFLAGS) $< -o $@
.PHONY:
clean:
@rm -f *.o tos
@rm -f ../base/*.o
@echo Done cleanin... | 3c45fd0d2b8533a9428d1d97605464d02f558f36 | [
"Markdown",
"C",
"Makefile"
] | 9 | Makefile | i0Ek3/TinyOne | 26c34dc65cac962657e069eb314a4b79e97fbdd2 | deff42daf4cd26a59ec2bdd1eef0e8f4c3564f0f |
refs/heads/master | <file_sep>export * from './address-list/address-list';
export * from './address-detail/address-detail';
export * from './home/home';
export * from './setup/setup';<file_sep>import { Component, ViewChild } from '@angular/core';
import { NavController, Platform } from 'ionic-angular';
import { ElectronService } from 'ngx... | 04f3e4f80610fa9e5f52c565249f6a7684385289 | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | HardikDG/Electron_Address_Locator | a269cb313ce1e097e527762854290505f129fd96 | d1bc1a61a5eef65e6e45ae2306403b11bf8c6282 |
refs/heads/master | <repo_name>kobalos02/kobalos02.github.io<file_sep>/README.md
# kobalos02.github.io
Demo site for the AMIA-CIAT Project
<file_sep>/test.php
<?php
<h1>It works!</h1>
?> | 942fab492cce5806421a1475dbcb73e479731d06 | [
"Markdown",
"PHP"
] | 2 | Markdown | kobalos02/kobalos02.github.io | f850e75ed987f1049d8ead26c73a6084cb52671d | 9594cbbdcfe844ca7e8a445dc8e2839319695c55 |
refs/heads/master | <repo_name>kristianmandrup/geo_units<file_sep>/geo_units.gemspec
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
# stub: geo_units 0.3.4 ruby lib
Gem::Specification.new do |s|
s.name = "geo_units".freeze
s.version ... | b0e87473ee062918d1d1f818fb4f9c295b7db6e8 | [
"Ruby"
] | 18 | Ruby | kristianmandrup/geo_units | ddee241b826af36bc96dad3dd01258f56a730cd9 | 1954b0588f7644a4b51b6fd8174997835059cb92 |
refs/heads/master | <file_sep>module github.com/Valeyard1/marmitaz-telegram-bot
go 1.12
require (
github.com/PuerkitoBio/goquery v1.5.0 // indirect
github.com/antchfx/htmlquery v1.0.0 // indirect
github.com/antchfx/xmlquery v1.0.0 // indirect
github.com/antchfx/xpath v1.0.0 // indirect
github.com/go-telegram-bot-api/telegram-bot-ap... | b4d2a568a1813e1bcb292489d4a0b9c2c666269b | [
"Go",
"Go Module",
"Dockerfile",
"Markdown"
] | 7 | Go Module | Valeyard1/marmitaz-telegram-bot | 11fedf0fd29be0da49e75254f935fb7630d4b158 | fd6dbdfc32886a261742fbc1dde8f9c62722faaf |
refs/heads/master | <file_sep><?php
use Illuminate\Database\Seeder;
class CountriesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$data = [
[
'name' => 'Belarus',
'iso_code' => 'BY',
],
... | c2d8cbba460871c21fb56c98a093f909fa2ef492 | [
"PHP"
] | 3 | PHP | Tur-4000/laravel-test | 1abeec30fe679a8f055ec1ada606bccd44845d14 | c49c8445c1a3a756a7afa1db97a0d778de5ef425 |
refs/heads/master | <repo_name>QAlexBall/dst<file_sep>/README.md
# DataSet Tools
<file_sep>/bin/dst
#!/Users/derenzhu/anaconda3/bin/python
print("Dataset Tools")
| 36f66be55a3be06b1acc867c80f3e0e134c654e9 | [
"Markdown",
"Python"
] | 2 | Markdown | QAlexBall/dst | 2aefe1b4210cdf0b2aba583e8efc3d142f31730e | 43f97d59b7dc38be4e0e7f8d3abfe18969e6289c |
refs/heads/master | <repo_name>dominikPytlinski/booking-app<file_sep>/graphql/resolvers/Resolvers.js
const bcrypt = require('bcryptjs');
const Event = require('../../models/Event');
const User = require('../../models/User');
const Booking = require('../../models/Booking');
const user = async (userId) => {
try {
const user = a... | 67faf20249a9cee11eee52918054943991253b0a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | dominikPytlinski/booking-app | 4be4e7349673264299aec269fe8e06b14a4222be | db75b20722ac7d78ddfc9d1cd1add13d4513fa29 |
refs/heads/master | <file_sep>import { Observable } from 'rxjs/Observable';
import { Injectable } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { Weather } from '../model';
import moment from "moment";
@Injectable()
export class WeatherService {
private API_PATH = "https://api.openweathermap.org/data/... | 2329592b536ad5e83c109c319738edada5b46d53 | [
"TypeScript"
] | 9 | TypeScript | chuckmah/primotus-exercise | 66b3fb04cf6a97d417f33bea0283cd685c9cb6f0 | c3d56672db3050ab8a85ff01598c390a48d84a5b |
refs/heads/master | <repo_name>devani/devanigenardi<file_sep>/practice4/script.js
var button = document.getElementById("btn");
function myfunction(){
var container = document.getElementById("cont");
var myUlList = document.createElement("UL");
container.appendChild(myUlList);
var col = document.getElementById("colValue");
var co... | db3b09059ad0788d41b36fb40bb8df02c1f1b37a | [
"JavaScript"
] | 1 | JavaScript | devani/devanigenardi | 2f28ad09400babbf6842865954bc98490f7e29b5 | ddbf71a187b4f4657bb59e1f54c1be75f15557dd |
refs/heads/master | <file_sep>return Class(function(self, inst)
assert(TheWorld.ismastersim, "Wormhole_Counter should not exist on client")
self.inst = inst
self.shadow_follower_count = 0
function self:isShadowFollowing()
return self.shadow_follower_count > 0
end
end)<file_sep>local foldername = KnownModIndex:GetModActu... | c4534b8faa13be188b0fb1863d4048ef2e14ff7d | [
"Lua"
] | 16 | Lua | Numiansus/dst_additional_item_package | 0124a604629d1fabd18c6011546fdc99ad7254a3 | b696758c3b969f3cde75ee3f5bad3b34d1456d20 |
refs/heads/main | <repo_name>SrivathsanKannan/Marks.C<file_sep>/Marks.C
#include <stdio.h>
int main()
{
int mark;
printf("Please Enter student's marks:-\n");
scanf("%d", &mark);
if(mark>84)
printf("\nThe grade is - A");
else if(mark>69)
printf("\nThe grade is - B");
else if(mark>54)
printf("\nThe gra... | 9c051a3922ac218f03e510e7619e4e3688e1f1ea | [
"C"
] | 1 | C | SrivathsanKannan/Marks.C | c54f81bf686a0cdfe54dd62b4670480783541c33 | 5a2d8eb3d4beedc5eb12ec4516ee19d4daa46355 |
refs/heads/master | <file_sep>require "nokogiri"
module Shipping
class Package
attr_accessor :large, :weight, :description, :monetary_value
def initialize(options={})
@large = options[:large]
@weight = options[:weight]
@description = options[:description]
@monetary_value = options[:monetary_value]
e... | 1bd7fc4ca178c3089ff156bf3b80ce81b66f4f3c | [
"Ruby"
] | 8 | Ruby | transcriptic/ups-shipping | 7f4dae0b15dfbf91d87c01e382b13f263ff14b7f | 7381323ff82a17b1294c370bce3b7b5f49dbd7d8 |
refs/heads/main | <repo_name>samuel0480/FiveM-Cache-Clearer<file_sep>/cache.py
import shutil
import os
import getpass
user = getpass.getuser()
location = rf"C:\Users\{user}\AppData\Local\FiveM\FiveM.app\cache"
dir = "browser"
path = os.path.join(location, dir)
shutil.rmtree(path, ignore_errors = True)
dir = "db"
path = os.path.join(loc... | bfffab0b662cc7950d376f83fc8aa5264a458841 | [
"Python"
] | 1 | Python | samuel0480/FiveM-Cache-Clearer | 7f08b37a6fc70bf975ebba0944268691109d7e77 | e1f1d1aeac6b6d1168973d9a731871cb5805a83b |
refs/heads/master | <repo_name>rajeev-ju/mycodes<file_sep>/vector.cpp
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool comp (int a, int b) {
return a > b;
}
int main() {
// your code goes here
int m,n,i,j,a,b;
cin>>n>>m;
vector<int> v[n + 2];
for(i = 0; i < m; i++){
cin>>a>>b;
... | 44bb5589df57597c796387350b511a51e20bcdf3 | [
"C++"
] | 1 | C++ | rajeev-ju/mycodes | 8e172091239db931712f1d6866f78a34cc80469c | f2f7734e424bbd925b670e09d839472ffef9c978 |
refs/heads/master | <file_sep>package com.beijing.util;
import java.util.List;
//import com.unissoft.pco.entity.customer.Question;
public class PageUtils {
private int pageNo=1;//当前是第几页
private int pageSize=10;//每页最多显示几条
private int prep;//上一页
private int nextp;//下一页
private int totalPage;//总页数
private ... | c3908ddaf134e2f083e6f59eb1dee0cde67b8962 | [
"Java"
] | 1 | Java | yeWillBe/some_thing1 | be2570088c89a08cb960a4f505054cf74cad67a6 | 19d8d4c5db2894a14f39f9072710c6d998ed6ec9 |
refs/heads/master | <repo_name>colealtdelete/StringThings<file_sep>/Python/geturls.py
with open('C:/Users/Cole/Documents/StringThings/Python/Test.txt','r') as file:
lines = file.readlines()
for line in lines[2:]:
columns = line.split()
print(columns[0] + columns[6])<file_sep>/Bash/geturls.sh
awk '{print $1$7}' test.txt
| 49f57ac3b86affd52c2a63c18e70181344001476 | [
"Python",
"Shell"
] | 2 | Python | colealtdelete/StringThings | f82c6b66b8d6f2ce520afbf973c5b7756c3dbfa2 | bedf0db1ff1e5d87cf44f6c84880fb8993dd0c84 |
refs/heads/master | <repo_name>lukabratos/push-notifications-rust<file_sep>/Cargo.toml
[package]
name = "beams"
description = "Pusher Beams Rust Server SDK"
version = "0.1.0"
authors = ["<NAME> <<EMAIL>>"]
license = "MIT"
[lib]
name = "beams"
path = "src/lib.rs"
[[bin]]
name = "beams"
path = "src/bin.rs"
[dependencies]
ureq = { version... | 0fbb6f94b3f6bcd19cc6090659d978cdd82ced9b | [
"TOML",
"Rust",
"Markdown"
] | 4 | TOML | lukabratos/push-notifications-rust | 696d35f3863e423dc810cbcc247ad7ad53bce9f6 | 4e3206fe13ce94d975551e2831d0837d8b9a840c |
refs/heads/master | <file_sep><?php
namespace BlackFox;
class AdminerFiles extends Adminer {
public function Execute($PARAMS = [], $REQUEST = []) {
$PARAMS['SCRUD'] = 'BlackFox\Files';
parent::Execute($PARAMS, $REQUEST);
}
}<file_sep><?php /** @var \BlackFox\LanguageSwitcher $this */ ?>
<?php /** @var array $RESULT */ ?>
<div cl... | 006d1a6fa2d4649449a86d36af89118a163d5666 | [
"Markdown",
"JavaScript",
"PHP"
] | 121 | PHP | Screww/BlackFox | 118eb74281b1c9bf9525a68ed7122ffed7e732d9 | aa014e1d7aae0f79b1fa627a8da94c591be76c09 |
refs/heads/master | <file_sep>darknet detector demo ./path.conf ./main.cfg ./weights/main.backup
<file_sep># yolo_template
默认使用voc的cfg文件
初次需要 `cd weights` 运行 `./download_default_weight.sh` 下载与训练模型
训练图片时把图片放到 `pictures/{两位数字+英文类型名称}/images/{图片名称}.jpg`
对应的annotation 放到 `pictures/{两位数字+英文类型名称}/labels/{图片名称}.txt`
`{图片名称}.txt` 文件中的头... | 77d78db5317ed929f000aa9380585aa930e0bcc4 | [
"Markdown",
"Shell"
] | 4 | Shell | ku-robo/yolo_template | 28864c66e5fb4c4658aea914a306f6f3a02207d3 | 2405157555e6f14686f6a11ed655b849e3a0440d |
refs/heads/master | <file_sep>import React from 'react'
import './liquids.css'
function MenuLiquids(props){
if(props.buttonl){
return(
<div className= "liquidsOption">
<button className="water" onClick={() => {
props.onClick([{
food: Object.keys(props.listLiquids.Menu["Agua ... | 3654a210c87b130d49b3eb81a6432111dd7a107e | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | AnaGalvezSalas11/SCL007-BurgerQueen | f28e3661d4618f9da76f870fadb9bb3b4e7589a4 | 13ed292023dadf9af93eaafea23d3b4b84965ab1 |
refs/heads/master | <file_sep>import json
from data_gen.data import randomizers
from data_gen.data.util import get_template
def get_random_child_health_case(seed_values):
template = get_template('child-health-case.json')
return randomize_template_values(template, seed_values)
def randomize_template_values(template_string, see... | 89bd9753ce3f206119a39abb374e948bfc83e899 | [
"Markdown",
"Python"
] | 32 | Python | dimagi/cas-data-gen | 862e2358303aed89d92f354c544b90f3dc024a67 | e5a557b4de78f3723be0fd026f764ceecece28ac |
refs/heads/master | <repo_name>RaD/example_module_replace<file_sep>/tasks/module_b.py
import threading
import time
SLEEP = 3
TICK = 0.1
class ThreadTaskB(threading.Thread):
name = 'Task B'
counter = 0
def __init__(self, event):
super(ThreadTaskB, self).__init__()
self.event = event
def run(self):
... | ca809d3aed4503ca5d888df2c93de5f087f60dd4 | [
"Python",
"reStructuredText"
] | 3 | Python | RaD/example_module_replace | e4139b5797457af41b7d357b3e9d937344a6a1dc | d6e1ee49a5b3ee8b54dcbf2b76a3fabd50b5d3a7 |
refs/heads/master | <repo_name>DevrajRangani411/Hi-Tech<file_sep>/index.php
<?php include('php/header.php')?>
<section class="breadcrumb_part">
<div class="container">
<div class="row">
<div class="col-lg-12">
<?php
$qry = "SELECT * FROM appartment where Appartme... | 98231a566c92c98d01016e48bf23a9f903d7a44f | [
"PHP"
] | 3 | PHP | DevrajRangani411/Hi-Tech | eaa940db066e2346d733b8af7db9702534d774a9 | a7dabca21de624fea951e765132b5913b0e22bf0 |
refs/heads/master | <repo_name>Lysicik/lab1<file_sep>/Lab2/Program.cs
using System;
namespace ConsoleApp3
{
class Program
{
static void Main(string[] args)
{
Circle a = new Circle(1);
Rectangle b = new Rectangle(4, 7);
Square c = new Square(7);
a.Print();
... | f79c142e13915f32b0cbfd5ff7ba02ef6759b0fb | [
"C#"
] | 2 | C# | Lysicik/lab1 | fd91ac06c3ba4905b9d1701b13b65fd1d0ebd713 | 1a5d4af32288ba4025cfa96edc541d17ab07aa7a |
refs/heads/master | <repo_name>anusaini/CiEsVi<file_sep>/src/lib/wc.test.js
const wc = require('./wc')
const expect = require('chai').expect
describe('wc', () => {
it('returns { lines: 4, words: 12, letters: 23 } for input "a,b,c\n1,2,3\n4,5,6\n7,8,9"', () => {
const actual = wc('a,b,c\n1,2,3\n4,5,6\n7,8,9', '\n')
const expect... | 5d2e0590fa395a25d1e4af4a3e7775d34fda2027 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | anusaini/CiEsVi | 77522c9507c05d2a4e59f7c8740b170ee787fa02 | 2bf9a453f7fd910ebf2229b77900fd7f8a1299f8 |
refs/heads/master | <repo_name>nmkqjqr/DatabaseOperation<file_sep>/cmake/dependencies/Boost.cmake
set(Boost_FIND_QUIETLY TRUE)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost 1.72.0 COMPONENTS date_time)
if (NOT Boost_DATE_TIME_FOUND)
find_package(Boost 1.72.0)
endif()
set(Boost_RELEASE_VERSION
"${Boost_MAJOR_VERSION}.${Boost_MI... | c7841f103d96678d80f88d28dab2bffad116a0d6 | [
"C",
"CMake",
"C++"
] | 6 | CMake | nmkqjqr/DatabaseOperation | 2b240e8e32973b5d90a39bc299e86a65564c402d | 5d7d4d2713b67d92b32d8308b6423705cb0b24bf |
refs/heads/main | <file_sep>import { Request, Response } from "express";
import jwt from "jsonwebtoken";
import { User } from "../models/User";
import bcrypt from "bcrypt";
import dotenv from "dotenv";
import { matchedData, validationResult } from "express-validator";
dotenv.config();
export const signup = async (request: Req... | 94f47ca7a115137752b3cb67b9ceda2fd70383b7 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | euygor/api-nodejs | 5fb2bdff44a23eab526a443d0c53fa1ba35b1441 | 48457b8e89f411db41629eadf81803e99b0dd4da |
refs/heads/master | <repo_name>zdkhqh/Restaurant<file_sep>/src/controller/InfoController.java
package controller;
import com.jfinal.core.Controller;
import com.jfinal.kit.Ret;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
import com.jfinal.upload.UploadFile;
import model.Info;
import util.FormUti... | 763be8af83a1adb0272fe85ac2a5a71409cb24bb | [
"Markdown",
"Java",
"Maven POM",
"INI"
] | 10 | Java | zdkhqh/Restaurant | 06eb708e180656740c3cfe767ae8263cc895fe89 | e8aaf40af87c89db6ee3a6b570fffec09b75e7df |
refs/heads/master | <repo_name>EsthefanieHolguin/Sistema-de-reserva-de-horas<file_sep>/src/main/java/cl/accenture/curso_java/sistema_de_reserva/controladores/InicioSesionController.java
package cl.accenture.curso_java.sistema_de_reserva.controladores;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.... | ce3ac6e3ce45ec419516c4dc34b9a753070659d3 | [
"Java"
] | 1 | Java | EsthefanieHolguin/Sistema-de-reserva-de-horas | 1c462a7ef6f1432b732c11a5baec2a2374b976a8 | bac056429309d4b0e73e629bb4b24ab1be3b7be1 |
refs/heads/main | <repo_name>alwaz-shahid/lucia-sophia<file_sep>/components/Gallery.js
import React, { useEffect } from 'react';
import Image from 'next/image'
import { m, useAnimation } from "framer-motion";
import { useInView } from "react-intersection-observer";
import { gallery } from '../animations';
function Gallery({ srcOne, srcT... | 1a2a5d2c9458ca95667095e5bb40afc931294144 | [
"JavaScript"
] | 19 | JavaScript | alwaz-shahid/lucia-sophia | 9402414eebbf2db98f9382b750c59375d5f3deea | 9c9bd4e7f5228783d47e1628dfc7e2adebe1c8aa |
refs/heads/master | <repo_name>armdev/micro-network<file_sep>/frontendnode/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<model... | eea0a5d85bfeecfa239d1b9bf996fd8546783be9 | [
"YAML",
"Markdown",
"Maven POM",
"INI",
"Java",
"Dockerfile",
"Shell"
] | 21 | Maven POM | armdev/micro-network | ec809c84c48786644824e2a814c26b762d8adbe2 | e155058bd21aa11db8f93c418a3f67d9816caaed |
refs/heads/master | <repo_name>moekaddour/Serverless-Architecture-on-AWS-Nodejs-BackEnd<file_sep>/README.md
# Serverless Architecture on AWS + Nodejs BackEnd
This is a serverless app connected to amazon web services specifically Lambda and DynamoDB. This app is connected tho twitter API where fetches the latest tweets of <NAME> and <NAME... | 38bf8f399caae03dbd517ffba1c135875ba52d4f | [
"Markdown",
"JavaScript"
] | 3 | Markdown | moekaddour/Serverless-Architecture-on-AWS-Nodejs-BackEnd | c8064ea227452f663b2595cf3cf0c8c2ae7fc267 | 24c3168510519a1e817e9cbc3bc574dd50294057 |
refs/heads/main | <file_sep>#include <simplecpp>
#include <iomanip>
main_program
{
int n,s1=0,s2=0,s3=0,a,b;
cin >>n;
repeat(n)
{
cin>>a>>b;
s1+=a*a;
s2+=b*b;
s3+=a*b;
}
long double cos=s3/(sqrt(s1*s2));
cout<<setprecision(2)<<cos<<endl;
}
| e4c578710d62a264f77a842ebee32e425f52b2f9 | [
"C++"
] | 1 | C++ | SunandineeMehra/SOC-1 | 999e2c80369ac4e681f37891b647ee4819250700 | caa0869524224a34d088c09456af39f7aeec05c3 |
refs/heads/master | <repo_name>LaurenTraum/PickerExample<file_sep>/PickerExample/ViewController.swift
//
// ViewController.swift
// PickerExample
//
// Created by <NAME> on 10/25/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
import UIKit
class ViewController: UIViewController, UIPickerViewDelegate, UIPickerViewDataSource {... | c3ce8b13df44d492f86b9c98c4f0b9df7eca10df | [
"Swift"
] | 1 | Swift | LaurenTraum/PickerExample | 69282cdd555f08401817eb24efc7bd29e08108bc | c5904e0ed3cc2537081eb78bb5d7ef433b53299d |
refs/heads/main | <repo_name>victordaga/taskmanager<file_sep>/js/taskboard.js
//My OBJ
var myObj= {
//Select TextArea
textSelect: function(){
document.getElementById('description').select();
},
//Hide form Method
hide: function() {
document.getElementById("form").style.display = "none";
documen... | 396cefd6cad52d07919b3d8ccccec1f535bd4a1e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | victordaga/taskmanager | 76f6c803b66f293dbd6012c64467b65346abc761 | 2a8c9bf12dda513504f490da27210d4f40e91b2d |
refs/heads/master | <repo_name>VCTLabs/meta-raspberrypi<file_sep>/conf/machine/include/rpi-default-providers.inc
# RaspberryPi BSP default providers
PREFERRED_PROVIDER_virtual/kernel ?= "linux-raspberrypi"
PREFERRED_PROVIDER_u-boot ?= "u-boot-rpi"
PREFERRED_PROVIDER_virtual/egl ?= "vc-graphics-hardfp"
PREFERRED_PROVIDER_virtual/libgles2... | 25444e8c97c9640493020384ee84d67c8bef3310 | [
"HTML",
"PHP"
] | 3 | PHP | VCTLabs/meta-raspberrypi | c3e3e4fc2764fd351080354e19aec994bf46f0b9 | 862714b8a0777a017a1f564a164df87c0ab61545 |
refs/heads/main | <repo_name>leonardfreitas/mystore<file_sep>/models/sale.py
class Sale:
def __init__(self, customer, products):
self.customer = customer
self.products = products
def total(self):
t = 0
for product in self.products:
t += product.price
return t
<file_sep>/featur... | 78bdead4f11be3507d0c91f9e25891016c94f3f2 | [
"Markdown",
"Python"
] | 11 | Python | leonardfreitas/mystore | 0f8540aa990d65a35cba8f11a32d7aca02260f70 | df242dee29b37f23f8774070d7b1f03775a6763f |
refs/heads/master | <file_sep>package cyber.auto;
import org.testng.Assert;
import org.testng.annotations.Test;
/**
* Unit test for simple App.
*/
public class PrinterTests
{
@Test
public void emptyInputNotificationTest() {
PrinterDriver.sendToPrint("");
Assert.assertTrue(PrinterDriver.isEmptyInputNotification... | 6a5ce29e1285e53e4add9e312406689321516c48 | [
"Java"
] | 1 | Java | evghub/printerapp | 4153e7de941157b7bc26830abd5bbe7c5d45e135 | 1d9b0b88ab04a8d3bac8a8e61f9bde2507873cd5 |
refs/heads/master | <file_sep><?php
/**
* JS Post
* Plugin Name: Dieg UTM URL Builder
* Plugin URI:
* Description: Generates UTM links.
* Version: 0.0.1
* Author: <NAME>
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: utm
*/... | ad0136084c36aed88949c74b65aa467b2919d9b0 | [
"JavaScript",
"PHP"
] | 5 | PHP | amushtaev/dieg-url-builder | c937d3396ee73b937e57494c150af4ef164ee0f7 | f17395495dcb64220d6ff6475a0e143037c0353a |
refs/heads/master | <file_sep>import * as React from "react"
import { Link, graphql } from "gatsby"
import Layout from "../components/layout"
import Seo from "../components/seo"
const Index = ({ data }) => {
const posts = data?.allCosmicjsPosts?.edges;
return (
<Layout>
<Seo title="Home" />
<h3>Posts from Cosmic:</h3... | a07c0dcfc2b598f7e38bb92e7ced934fbe7c6fd2 | [
"JavaScript"
] | 1 | JavaScript | Bitaru/test-gatsby | 66632865eec6331a63d563c88aedbe2ebd15575d | 2685bda3ae380e48d19f37acded781e13f62fb6a |
refs/heads/master | <repo_name>CarolYedra/consola<file_sep>/Consola/src/main/java/es/avalon/jpa/consola/Principal6.java
package es.avalon.jpa.consola;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.TypedQu... | 375a5b18b0c7efb264c8c5028ab78349b9d5b2c0 | [
"Java"
] | 1 | Java | CarolYedra/consola | 840048c4da4a7bd3db9fe735b05ce4f7e5d5104f | a0dd11466912b1a2da05f5ff133ee782d195b2b8 |
refs/heads/master | <file_sep>using System;
// Upologismos evmvadou trigwnou me tin tupo tou Heron
namespace Emvadon
{
class Program
{
static void Main(string[] args)
{
//INPUT
Console.WriteLine("Type a side :");
double a = double.Parse(Console.ReadLine());
... | 12f74d27c8293856c83c9118a8b70316d43cf726 | [
"Markdown",
"C#"
] | 2 | C# | theoant/HeronMethod | 19f880a14facbe58a443ba9a14921e1f6eda0f6b | 68e10603ca91fd1d0d28a3ddb24c1b77e7191ebb |
refs/heads/master | <file_sep>
let test = dom.find('#test')[0]
let t1 = dom.find('#t2',test)[0]
console.log(t1)
console.log(dom.index(t1))
| b6ebd630798cc5b26e2196a00075bdb3168fb618 | [
"JavaScript"
] | 1 | JavaScript | alex54216/domApi | b5f7a396ed283d7d6fb81d2a813117a82d32b3f0 | 511917b98a45b0d7bd92b1c01474a69c19325cf6 |
refs/heads/main | <repo_name>tloyzelle/budget-tracker<file_sep>/seeders/seed.js
var mongoose = require("mongoose");
var db = require("../models");
mongoose.connect("mongodb://localhost/transaction",
{useNewUrlParser: true,
useFindandModify: false,
useUnifiedTopology: true}
);
var transactionSeed = [
{
name: "Food... | 90a131593a1f34e4ddd64afa0919ee71220b50ff | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | tloyzelle/budget-tracker | aa59a414b9a4f71fa07fce69e294c013ff69d49c | ca617fbd49e14043977b9e2ed7977ac69d43cfdf |
refs/heads/master | <repo_name>WestlakeFTC/PhiLobots<file_sep>/prototype/htsuperpro_task.c
#ifndef HTSUPERPRO_TASK_INCLUDE
#define HTSUPERPRO_TASK_INCLUDE
//#define SUPERPRO_TEST
#ifdef SUPERPRO_TEST
//This is very important. Otherwise the communication with HTSPB will be very slow
#pragma config(Sensor, S3, HTSPB, sens... | c2a812eabbaeae5e3013f65ee668cd67536e2087 | [
"C"
] | 33 | C | WestlakeFTC/PhiLobots | c40dfa79bb6adf03ba3ed0fa95493effe02e79fc | 3f657f586a6ca649321828ba9ab8977dcef5efeb |
refs/heads/master | <file_sep>import numpy as np
# min(1/2*np.linalg.norm(w,ord=2)+c*np.sum(sai,axis=0)
<file_sep>import numpy as np
def sigmoid (x):
return 1/(1+np.exp(-x))
def z_score(x):
x_mean=np.mean(x,axis=0)
x_norm=np.linalg.norm(x-x_mean,ord=2,axis=0)**0.5
x_z_score =(x-x_mean) /x_norm
return x_z_score
def i... | 370025423d3acf88080790da1ed609fa94beb6c0 | [
"Python"
] | 6 | Python | tyrdom/study163 | 59bf2fca30c7f3995e8b7c72abe4faa323b9f2a7 | ced5ea246e74696a640fd5185680b34905a81723 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.