branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>dayamll/Twitter<file_sep>/js/app.js
window.onload = begin;
function begin() {
var tweetArea = document.getElementById('tweet-area');
var tweetBtn = document.getElementById('tweet-btn');
var messages = document.getElementById('messages');
var count = document.getElementById('count');
var MAXCHARACT... | feed954b45d16b23e214304d212580fe2ec06888 | [
"JavaScript"
] | 1 | JavaScript | dayamll/Twitter | 6e5d2df2a18f3475d5ec95f0b2bec087a917ec8d | 2e2421c39b8f3b6577313309c6489990ee3ac400 |
refs/heads/master | <repo_name>ibarria0/ExData_Plotting1<file_sep>/run.R
#For mis amigos out there:
Sys.setlocale("LC_TIME", "en_US.utf8")
source('plot1.R')
source('plot2.R')
source('plot3.R')
source('plot4.R')
<file_sep>/plot3.R
#read data
h <- read.csv2('household_power_consumption.txt', header=TRUE, colClasses = c(rep("character",9)),c... | 4ce9f681c7353df50d75199a4e9f5f1104a207ae | [
"R"
] | 3 | R | ibarria0/ExData_Plotting1 | 406164320f2ef81d741eae15326b639a9f5b3cfc | 729032e9c512ca8d5dee9cd04751217ad3a9a099 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<title>Protótipo 01 - teste com WebSockets</title>
</head>
<body>
<p>Teste de comunicação em tempo real.</p>
<ul>
<li>Abra essa mesma página em outra guia (ou <a href="/" target="_blank">clique aqui</a>).</li>
<li>Na outra página aberta, clique no botão enviar.</li... | fe70822822ee23ae6eafee1eac83a916bcf60118 | [
"Markdown",
"JavaScript",
"HTML"
] | 4 | HTML | cafecomlucas/cafecomlucas.github.io | c99067ebc6f9036c0de1a05f624537f9165283b1 | 9aada93960d5b31eb3893d8d3eeb2fd65fff0d1f |
refs/heads/master | <file_sep>package ch.helsana.web;
import java.util.Random;
/**
* Created by hkfq4 on 07.02.2017.
*/
public class Start {
//psvm shortcut für main Class
public static void main(String[] args) {
System.out.println("Hellooooo");
long millis = new java.util.Date().getTime();
System.ou... | 30362fa9ec5fad0f9bd0dd1f1d5184da76433505 | [
"Java"
] | 3 | Java | Ziitlos/hibernate | 8dff300ba09e7afb5996c6b25326d8989239cb0f | 955e39aa932b6b734a57d016375e22b461c02f1c |
refs/heads/master | <file_sep>package com.github.ryanrupert.UnixLogger;
class Main {
public static void main(String args[]){
Logger logger = Logger.create();
logger.crit("critical message");
logger.notice("notice message");
logger.debug("debug message");
}
}
<file_sep># Unix Logger
This is a Log4j... | 40f7b76e817750563d80b64e59d9e1cbb98a355f | [
"Markdown",
"Java",
"Gradle"
] | 5 | Java | ryanrupert/UnixLogger | 03b4b9ac0b3524d3f756d8a2a51ab8438f5caaea | a89a440757b3f28f8fd210a12fd103707376bdf0 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;
[RequireComponent(typeof(ARSessionOrigin))]
[RequireComponent(typeof(ARRaycastManager))]
pu... | 19a2e1b31f5386e0b82c43595aebf9997e4ca89b | [
"Markdown",
"C#"
] | 7 | C# | UgoSantoro/Augmented-Bloons | 2c356447ede3b8f18e8e6bcd03c81eb7396fb34c | bf29f601fac5832e83e0d2e6a6f955bceeb53e4f |
refs/heads/master | <file_sep>import random
def getGuess(randNum):
while True:
print('\n', 'What is my number? ', end='')
guess = input()
if guess.isalpha():
print("You can only input numbers.")
elif int(guess) < randNum:
print("Your guess is SMALLER than my number!")
el... | 9dc8714f53229e29e46ea54a11baad41a0f3057e | [
"Markdown",
"Python"
] | 3 | Python | mannguyen0107/pyproject | 984c1eb9b574486af093443547c53dddb7ae6bcf | e39d693a27410dcc98a8ac1cde56653d02e1e9b8 |
refs/heads/master | <file_sep>import MovieList from './MoviList'
import React, { Component } from 'react';
import { Layout, Menu} from 'antd';
// const { SubMenu } = Menu;
import{Link,Route} from 'react-router-dom'
const { Content, Sider } = Layout;
export default class MovieContainer extends Component{
render(){
retu... | 8c7911a505489f17005c8bf8f9c7ba8d57aaa76a | [
"JavaScript"
] | 3 | JavaScript | laoxiu666/wensihaihui | e5e05e84d248c2bd7c95d00c6bbc0c150702193e | e1e16c657d5142c9d01a2407ef33d47967e6fb19 |
refs/heads/master | <repo_name>binary-cleric/gatsby_blog<file_sep>/src/components/sidebar.jsx
import React from 'react'
import Link from 'gatsby-link'
import styled from 'styled-components'
const Sidebar = () => (
<h1>
</h1>
)
export default Sidebar
| ea8606dff4474453ee8d4a273c52a4b1c01aa782 | [
"JavaScript"
] | 1 | JavaScript | binary-cleric/gatsby_blog | 8de494625486f5779485ab7ff865b79e4ecfb349 | c29ae91448ad719eef5ed63a3cc87639791df201 |
refs/heads/master | <file_sep># help here: https://docs.djangoproject.com/en/2.1/howto/custom-template-tags/
from pytz import all_timezones
from django import template
from django.utils.safestring import mark_safe
from crontrack.models import JobEvent
register = template.Library()
# Create a dropdown containing all the v... | 9068d59cb38b96497b5e51ad7b2b0e20c898cc17 | [
"HTML",
"JavaScript",
"Markdown",
"Python",
"Text"
] | 20 | Python | Arch199/crontrack | 67faf4a8c6e866c1a38855dec68f9f43ba558100 | 91d86ff3b9021d0ad39a821f5dc5d6060a9c48d0 |
refs/heads/master | <file_sep><?php
/* Template Name: Sample template */
get_header(); ?>
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-contents/content', 'page' );
endwhile; // End of the loop.
?>
<p>hello world</p>
<?php get_footer();<file_sep><?php
/**
* Functions which enhance the theme by hooking ... | f473f0882af72479223a7d9dd8143320a8008394 | [
"JavaScript",
"Markdown",
"PHP"
] | 13 | PHP | mateuszszmytko/raa-wordpress-theme | 75cb7af33606699e4eba70ec563b8bb5aaeed7d8 | caa067c57341203805df833771754668f32b7968 |
refs/heads/master | <file_sep>package org.bytecodeandcode.spring.jms;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.Topic;
import org.apache.activemq.command.ActiveMQTopic;
import org.bytecodeandcode.spring.jms.properties.jms.AdditionalJmsProperties;
import org.springframework.boot.SpringAppl... | 98f69c56eb487a4e918989558d9505445a165801 | [
"Markdown",
"Java",
"Maven POM"
] | 6 | Java | carlmdavid/spring-jms-pubsub | 5862826da20f77d51974c8579bf7d56a38e9765e | 44b983b5ba567ff94ca971fb54bcc54747161778 |
refs/heads/master | <file_sep>import React, { useContext } from 'react';
import { Context as TimerContext } from './state/TimerContext';
import Timer from './timers/Timer';
import Menu from './menu/Menu';
import Interval from './timers/Interval';
import EveryMinuteOnTheMinute from './timers/EveryMinuteOnTheMinute';
import AsManyRoundsAsPo... | 3bfe2ce65f8c4399286d8d07d2d4b23821f62954 | [
"JavaScript"
] | 9 | JavaScript | ryandiaz1087/GYM-TIMER | cb30b29ff4dfbd43ba652ae64781ce5399e1c6a1 | 74a6739cae3a6b814a4ee1e68153d03bded0f9b6 |
refs/heads/master | <repo_name>pudans/Sunshine<file_sep>/app/src/main/java/sunshine/udacity/pudans/sunshine/Day.java
package sunshine.udacity.pudans.sunshine;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Parcel;
import android.os.Parcelable;
import androi... | b4339c246d049a1250cf3486347259962044790f | [
"Java"
] | 4 | Java | pudans/Sunshine | 3b64df9e606ce147ea50ec9697fa64bf476952cc | 1713ba427a91807431d357e0952ff067ef8e1fef |
refs/heads/master | <file_sep>CREATE TABLE "PROGRAMMEUR" (
"ID" INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),
"MATRICULE" VARCHAR(5),
"NOM" VARCHAR(25),
"PRENOM" VARCHAR(25),
"ADRESSE" VARCHAR(150),
"PSEUDO" VARCHAR(20) ,
"RESPONSABLE" VARCHAR(30) ,
"HOBBY" VARCHAR(30) ,
"DATE_NAISS" DATE ,... | a3a9ea789b4e06d7ce3e15655fa8bca69db73a39 | [
"Java",
"SQL",
"HTML",
"Markdown"
] | 7 | SQL | skerroue/softwareManagementProgrammers | b7d6969a6b3a346e6f037a680b2fe45d10d384d1 | 656f7e7302966a33bc688faa61faadbbb642134f |
refs/heads/master | <repo_name>jswordfish/Jay-Emart<file_sep>/EMartV2.Buisnesslayer/Services/ProductService.cs
using EMartV2.BuisnessLayer.Interfaces;
using EMartV2.DataLayer.Interfaces;
using EMartV2.Models.ProductModels;
using System;
using System.Threading.Tasks;
namespace EMartV2.BuisnessLayer.Services
{
public class ProductServ... | 53cf311e1708e7d9ede5713fb333b9ac2ebc5938 | [
"C#"
] | 6 | C# | jswordfish/Jay-Emart | 734b00fef4ef227429658af003206c2cc99c19b3 | 8030f70573dd20d787c6b862e4ae7adf69fde475 |
refs/heads/master | <repo_name>KuzinVadym/ui_demo<file_sep>/js/components/Archive/index.js
import React from 'react';
import uniqid from '../../utils/uniqid'
import style from "./archive.css";
let Archive = ({data}) => {
return (
<div className={style.archive_base}>
<div className={style.archive_img_div}>
<img classN... | 3fa6b69b52f84ebba36c02ec94c638f37e6288c6 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | KuzinVadym/ui_demo | f1638f101bd08ea97c2dda32fe73e8351602cb16 | e3ee9587741d24bd5f8e4c0b0b95e17d51109062 |
refs/heads/master | <repo_name>pip-services-infrastructure/pip-clients-locks-node<file_sep>/obj/src/version1/LocksHttpClientV1.d.ts
import { LockV1 } from './LockV1';
import { CommandableHttpClient } from 'pip-services3-rpc-node';
import { FilterParams, PagingParams, DataPage } from 'pip-services3-commons-node';
import { ILocksClientV1 } ... | 281539273eb63a7dcdc0686a9101a4988c20b2e1 | [
"Markdown",
"TypeScript"
] | 24 | TypeScript | pip-services-infrastructure/pip-clients-locks-node | 4ffa0e50d1c5d18cc5f32e4c8e90d22de832ebd6 | daa35ead9f095945245dd740841b8c56a1426bc4 |
refs/heads/master | <file_sep>package com.asniie.utils;
import android.util.Log;
/*
* Created by XiaoWei on 2019/1/9.
*/
public class LogUtil {
public static String TAG = "LogUtil";
public static void debug(Object obj) {
if (obj instanceof Throwable) {
Throwable throwable = (Throwable) obj;
thr... | 49c1ac99d9fe20f489719fb7145a0391f085235c | [
"Java"
] | 5 | Java | AsnIIe/SQLiteUtil | 44eeca064be6d272dce500ebfefbaebb256e9c65 | 80adbfe0408ae5f362020d2946e32ec5873f24e1 |
refs/heads/master | <file_sep>package app.com.itsomobiledev.rmanacmol.rssfeedcontentaggregator.util;
import android.content.Context;
import android.content.SharedPreferences;
import java.text.SimpleDateFormat;
import java.util.Calendar;
/**
* Created by renzmanacmol on 9/9/15.
*/
public class Utils {
private final static String ... | 90897458f420aaa443db75f2e94be916ca442a4e | [
"Java"
] | 2 | Java | rmanacmol/RSSFeedContentAggregator | 5eb3f749916f645c0b506e737e47699e6e715b6a | fa563970e791850d569a696b1610bb7a4bf99c14 |
refs/heads/master | <repo_name>kpyrkosz/databases_final_project<file_sep>/src/api_command_handler.cpp
#include <api_command_handler.hpp>
#include <iostream>
#include <api_support.hpp>
#include <api_upvote.hpp>
#include <api_actions.hpp>
#include <api_projects.hpp>
#include <api_votes.hpp>
#include <api_trolls.hpp>
api_command_handler::ap... | 9258ee9f7b5bf6477b682b4fd8a335a389bce651 | [
"Markdown",
"SQL",
"CMake",
"C++"
] | 25 | C++ | kpyrkosz/databases_final_project | ed4e1636c78a873ee327c305e62a66edefc37e44 | e8c2562e08480c1012ee97131a8b7723169ebced |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication5
{
class Program
{
void op(int[] n)
{
int max = n[0];
int min = n[0];
int sum = 0;
for (int... | 782c1a2da9d75f6c00f03a36d40e8247b5ca6d87 | [
"C#"
] | 4 | C# | zyck321/C- | 14e8ccec08be6e9ef3014a60f83e223b16e96081 | d7e504bfa82cde2a99b0ef27b3e000bff1bfb7c3 |
refs/heads/master | <file_sep>package com.sm.flyrect;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
public class DrawView extends Surfa... | 311b3b8478520202a165f42ee8c777fdd800b877 | [
"Java"
] | 1 | Java | Grishman/Flyrect | 01571ac43398b1fd188339c439f235a0ad203220 | da2a92bd28e5cc8bd83e762a0fb0ddb0f6178390 |
refs/heads/master | <repo_name>fantianyun/fly<file_sep>/Fly/src/main/java/com/fty/service/JdbcTmplUserService.java
package com.fty.service;
import com.fty.entity.User;
import java.util.List;
public interface JdbcTmplUserService {
public User getUser(long id);
public List<User> findUsers(String userName,String note);
public ... | 25a59895ca25770db5ac2091d069b19520f93af0 | [
"Java",
"Maven POM"
] | 12 | Java | fantianyun/fly | df0291961993c5176014ad1f0f87fa365c1331f5 | 774f3fb6b0cee4fe92ce5cc2340d5d480691f600 |
refs/heads/master | <file_sep><!DOCTYPE HTML>
<head>
<title>Categories</title>
<link rel="shortcut icon" href="images/title.PNG">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div class="header">
<div class="wrap">
<div class="logo">
<a hre... | 6dbbe91255bbac5531a923fce4e3c6378a4d1790 | [
"PHP"
] | 3 | PHP | Aakash200/Videosontips | b4bacd190f5dbc4a2c78749531d40e024f49593b | 7b098761ac7354a73421fb4fa4db46a379107635 |
refs/heads/master | <file_sep>termblox
========
A simplistic, yet fun and challenging combiner/merger game for *nix terminals.
Requirements
------------
- Node.js
- NPM
Install
-------
```bash
npm install termblox --global
```
License
-------
MIT @ 2017 - <NAME><file_sep>"use strict";
class TerminalFrame {
/**
* @param... | 9a11ac28f7d6ed3d1647e0ef5bc110d211944b3f | [
"Markdown",
"JavaScript"
] | 4 | Markdown | termbrix/termblox | da5fae01feb16a820d26e11322b84d6734161b1e | 977ace781d5be9e3562b7862736b0537eaf59e1f |
refs/heads/main | <repo_name>keremdadak/Mvc-Stock-Project<file_sep>/Controllers/CategoryController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcStok.Models.Entity;
using PagedList;
using PagedList.Mvc;
namespace MvcStok.Controllers
{
public class CategoryCon... | c09bfcb5a8494a7c32c5ac38a1069f21e60826d7 | [
"Markdown",
"C#"
] | 5 | C# | keremdadak/Mvc-Stock-Project | 456321f96c0dec78e8efb23462e9803e86f43352 | 5fbd18b7c1ba6457e404a38b369e5cbb351e9772 |
refs/heads/master | <file_sep>#code for Hello World
print ("Hello World")
<file_sep># Contributing
## How to Contribute
This repository is built for the purpose of encouraging your contributions, big or small. **All** changes are considered, as long as they do not complicate the process for others.
That said, suggested ways to contri... | 097ad6d70d5ae407e850bbcce5f7c84a3d347fd6 | [
"Markdown",
"Python"
] | 2 | Python | savinabeysooriya/hacktoberfest-2018 | aed94a710a2b433eaf5644a0e136d92a21903276 | 95bd907e87fd2c8a160cf7198dddef4b5471ef05 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import './Card.css'
function Card(props) {
return (
<div className="MemeCard">
<img src={props.url} alt={props.name} />
<p>{props.name}</p>
</div>
);
}
export default Card; | 5bf5807c83b12aabb87005e455f5e76b824556e3 | [
"JavaScript"
] | 1 | JavaScript | silberov/MemeApp | 05a91a5b722f9977e06dbfd05146ce96f21f2510 | 9bf82b685ca8ac04ed139526420bf1007a766901 |
refs/heads/main | <repo_name>J-16/Design-Pattern<file_sep>/simUDuck/src/DuckProperties/NoFly.java
package DuckProperties;
import DuckPropertiesInterface.Flyable;
public class NoFly implements Flyable {
@Override
public void fly() {
System.out.println("Doesn't Flyyyyyy");
}
}
<file_sep>/simUDuck/src/Materials/Rubber... | 22ca2d611e7d86419adbdc0c602d4482cdce5b15 | [
"Markdown",
"Java"
] | 7 | Java | J-16/Design-Pattern | 8c761b0f8421c8f8986d5b660fcffd471331c3ec | c8764e313daa66cf619b1420dc86b890e51456e5 |
refs/heads/develop | <repo_name>CarstenFrommhold/great_expectations<file_sep>/docs/guides/validation/checkpoints/components_how_to_create_a_new_checkpoint/_a_edit_the_configuration.mdx
import TechnicalTag from '@site/docs/term_tags/_tag.mdx';
The sample Checkpoint configuration in your Jupyter Notebook will utilize the `SimpleCheckpoint` ... | a281d09ed91914b134028c3a9f11f0beb69a9089 | [
"YAML",
"reStructuredText",
"Markdown",
"TOML",
"JavaScript",
"Python",
"Text",
"Shell"
] | 272 | Markdown | CarstenFrommhold/great_expectations | 23d61c5ed26689d6ff9cec647cc35712ad744559 | 4e67bbf43d21bc414f56d576704259a4eca283a5 |
refs/heads/master | <repo_name>Evelynww/highConcurSecKill<file_sep>/src/main/java/com/evelyn/exception/SeckillCloseException.java
package com.evelyn.exception;
import com.evelyn.pojo.Seckill;
//秒杀关闭异常:秒杀结束或超时都关闭
public class SeckillCloseException extends SeckillException{
public SeckillCloseException(String message){
super(m... | bc2a9b8c261ff1fbfc789f90cd818757f09f7688 | [
"Markdown",
"Java",
"SQL",
"INI"
] | 9 | Java | Evelynww/highConcurSecKill | e6ddcd19e3906aee6b70b74c26830e9966ed0f69 | 4739ac0cdf9e93f66bdee37203080b4b3171f3f4 |
refs/heads/master | <repo_name>BernardWong97/Angular<file_sep>/Lab 5/observables-app/src/app/app.component.html
<h1>Students</h1>
<ol>
<li *ngFor="let s of students">
<p>{{s.id}}, {{s.name}}, {{s.address}}</p>
</li>
</ol>
<h1>Weather in Galway</h1>
<table border="1">
<tr>
<td>Time</td>
<td>Description</td>
</tr>
<... | 964972137b85069bf2193570c50d00bfb13f8f17 | [
"TypeScript",
"HTML"
] | 3 | HTML | BernardWong97/Angular | 7d123f7c17ca841b8b9aa5b4a9aeeca745b0f8cf | f442560c1dbb50605bc87616dc3096ea97249943 |
refs/heads/master | <file_sep>require "test_helper"
class FooTest < ActiveSupport::TestCase
test "Current keeps value" do
Current.foo = "bar"
assert_equal Current.foo, "bar"
end
test "Current keeps value when job is queued now" do
Current.foo = "bar"
FooJob.perform_now
assert_equal Current.foo, "bar"
end
... | c751fe87d34ba36cc979c78300d0d61727cedc32 | [
"Markdown",
"Ruby"
] | 4 | Ruby | tomprats/current-attributes-test | e829aa0cb236e3086d405d45e9483474800c8fe3 | 8a2dbb62e1ff7ce3e9238428bf50cf3265daf1f7 |
refs/heads/master | <repo_name>Mamata24/Backend_Task<file_sep>/routes/stateRoute.js
const stateController = require('../controllers/stateController')
const router = require('express').Router();
const auth = require('../middleware/auth')
router.post('/add', auth, stateController.addState);
router.post('/get', auth, stateController.getStat... | c2707c714a2c2546fad7483dca98b52a83255426 | [
"JavaScript"
] | 3 | JavaScript | Mamata24/Backend_Task | b7a0e527d2435258ffb5862485a5595b41cef1ed | 15c8ef20e0ea990ccbc459f9cc212ec42ba1fab7 |
refs/heads/main | <repo_name>korysergey55/goit-react-hw-09-feedback<file_sep>/src/components/feedback/feetbackOptoons/FeedbackOptionsStyled.js
import styled from "styled-components";
export const FeedbackContainer = styled.div`
.good {
margin-right: 20px;
padding: 10px;
border-radius: 14px;
background-color: #21cc21;
:hover ... | 900b3da29710feb19e0df52c6e199a28c7d7062f | [
"JavaScript"
] | 5 | JavaScript | korysergey55/goit-react-hw-09-feedback | 4d584f7c6431d6280b387ba13afcbe763d107cf4 | 56b5c8bb460f447dd908af52f9587af653a3207d |
refs/heads/master | <file_sep>#!/bin/bash -e
chown -R jenkins:nogroup /var/lib/jenkins
/etc/init.d/jenkins restart
sleep 15
<file_sep>#!/usr/bin/python
import fileinput
import os
import shutil
import subprocess
from ConfigParser import RawConfigParser as Cfg
from urllib import urlretrieve
def get_plugins(config):
server = config.ge... | 2be362b489780a5c68089b7a8675d3b8d63e7559 | [
"Python",
"Shell"
] | 2 | Shell | kemitche/reddit-jenkins-plugins | 746a30badd004b366b3d67fffb180477b0894d49 | cb75ed220b5b3a7cc440b4c68edfd740b28cc507 |
refs/heads/master | <repo_name>jeremiahlukus/JsGames<file_sep>/ColorGuess/colorgame.js
var colors = generateRandomColors(6);
var pickedColor = pickColor();
var squares = document.querySelectorAll(".square");
var colorDisplay = document.getElementById("colorDisplay");
var messageDisplay = document.querySelector("#message");
var h1 = docume... | 1ad009fffeb213cb92244fb0370f49b30709e4ee | [
"JavaScript"
] | 1 | JavaScript | jeremiahlukus/JsGames | c10543919dab1f94cefff25e813dfc2c0cec05b9 | ef097ce2482b7e30c5dbd70a6720bee5b11465aa |
refs/heads/master | <repo_name>MuhammadHanzala980/React-Chat-App<file_sep>/src/Component/Rigister/signIn.js
import firebase from 'firebase';
import history from '../../history';
import { connect } from 'react-redux';
import { authChack, isLogedin } from '../../store/action'
import React, { useState } from 'react';
import './sign.css'... | c89365a05ebcac9b611d898ec1d531256148dbb8 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | MuhammadHanzala980/React-Chat-App | 3922a17691d1d8716237ac84fa824d5d449602f1 | b0ed4ffa10c6d244504e6947b18f2816ca6f48ee |
refs/heads/master | <file_sep>#ifndef _HTABLE
#define _HTABLE
#include <iostream>
#include <vector>
#include <string>
#include <math.h>
#define REMOVED "XXX"
using namespace std;
class HashStringTable{
public:
// constructor that initializes the elements as a vector of size 11
// with "" values.It also initializes o... | ca6a5b540a661ff3e5a97556f45937a37af4cdfa | [
"C++"
] | 2 | C++ | nursultan-a/-hash-table | b85caf9e82dddb4a05e22634fe9195ffb48c4e1f | 1b0158ff27f99c7ba6ba5413c42cb2b6236604d9 |
refs/heads/main | <file_sep>import java.io.*;
import java.util.*;
public class KnapsackBranchAndBound extends Knapsack {
public static double upperBound(double total_value, double total_weight, int num, Item[] items){
double value = total_value;
double weight = total_weight;
for(int i=num; i < nbOfItems; ... | 854b6ced4bbb233d389113b11ccbb6a133b29aef | [
"Markdown",
"Java"
] | 8 | Java | yanisamrouche/knapsack | 340f3f8e46ad04702b5c4b4a344e1a2723d35911 | 535974fe5d381c0d0f4bd948cd2b859abc570ece |
refs/heads/master | <file_sep>source ~/.zplug/init.zsh
zplug "changyuheng/fz", defer:1
zplug "rupa/z", use:z.sh
zplug "changyuheng/zsh-interactive-cd"
# Install plugins if there are plugins that have not been installed
if ! zplug check; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# The... | 90ebdc4cca7a29a55d278c30d34d5419bea35b64 | [
"Markdown",
"Shell"
] | 2 | Shell | perfectloser/dotfiles | 05b7fb10693cc3590cb6c3cbc2a865e48377130e | 0244791b735e77835a1ce0e67c9fe99a9c8aad8f |
refs/heads/master | <file_sep># Game-a-Month
## Usage
1. Run ```python main.py```
2. Enter the number of hours you can play a game per day
3. Get a list of all the games you can complete in a month
<file_sep>import requests
import json
from decouple import config
USER_KEY = config('IGDB_KEY')
BASE_URL = "https://api-v3.igdb.com{}"
TIME... | 65eb808aa471f3af5b56269e4cce1ac447178c27 | [
"Markdown",
"Python"
] | 2 | Markdown | karan-parekh/Game-a-Month | 0c18e0e496261712cc92e676c5bddcad2c781b4c | 6bf6fe8475de3728c93a3014ee21246d1f9423ab |
refs/heads/main | <file_sep>import React from 'react';
import { Navbar, Nav, Form, FormControl, Button } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
export default class Header extends React.Component {
render = () => (
<Navbar sticky="top" bg="primary" className="navbar-dark" expand="md">
... | c2015f57cc3e672fd500423276d20191a2fa8033 | [
"JavaScript"
] | 6 | JavaScript | ilovewine/react-app-beers | 74e3f503f6afcb7455ace339a7e9f80e28787c53 | 848d26efa26533d2a984a4e632bb94d075d75c47 |
refs/heads/master | <repo_name>omeka/plugin-ItemOrder<file_sep>/views/admin/index/index.php
<?php
queue_css_file('item-order');
queue_js_file('item-order');
$head = array('title' => 'Item Order', 'bodyclass' => 'primary');
echo head($head);
?>
<div id="primary">
<h2>Order Items in Collection "<?php echo html_escape(metadat... | 681be86a28c9c66e14846b6674f1ea15178555ed | [
"JavaScript",
"PHP",
"INI"
] | 3 | PHP | omeka/plugin-ItemOrder | 917a858ae12c6b8c3fde680f7791a261bc1447e3 | 32fa829bc2ad45e9c8ca7d371650a237d8325c82 |
refs/heads/master | <repo_name>jmbarnes1987/University_Projects<file_sep>/EnglishToPigLatin/EnglishToPigLatin/Convert.cs
//<NAME>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace EnglishToPigLatin
{
class Convert
{
//Private variables
... | 6a19e330d9a96b72c81f6dc3bb5b151fda584443 | [
"Markdown",
"C#"
] | 3 | C# | jmbarnes1987/University_Projects | c848c0ad4a47c41c0bf0bd9ad96a8ec045363873 | 79827eef99d81575d3b41b9c264b26887f671f80 |
refs/heads/master | <file_sep>import Ember from 'ember';
// returns a create card factory that takes a generic mobiledoc card and adds a ghost specific wrapper around it.
// it also provides helper functionality for Ember based cards.
export default function createCardFactory(toolbar) {
let self = this;
function createCard(card... | 3de9de36f1e27ca0c7c021b4baf5f2856bd77761 | [
"JavaScript",
"Text"
] | 9 | JavaScript | pk-codebox-evo/os-project-blog-ghost-Ghost-Editor | 9a40b7dbbe31dda2df3d06faef526ee16aea4e9a | 232b5035265fdfb495b4af8a808a36e9dfdfb648 |
refs/heads/master | <repo_name>techquest/paycode_csharp<file_sep>/SampleProject/Example.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IdentityModel.Tokens;
using Interswitch;
namespace SampleProject
{
public class Example
{
static strin... | 956fe3ae50534f278b02d408dec3a65aa2d49520 | [
"C#"
] | 2 | C# | techquest/paycode_csharp | 9dedf384fecfad9e211f425dddf438fae7c7b888 | 098c5d0324467a91f5895fa5487c1a37481c33d5 |
refs/heads/master | <file_sep>from core.State import State
__author__ = 'asarium'
from direct.fsm.FSM import FSM
class GameStateMachine(FSM):
def __init__(self):
FSM.__init__(self, "GameStateMachine")
self.states = {}
def __getattr__(self, item):
if item.startswith("enter"):
state = self.g... | 84cea8e142cc49239f02371b91dcd0316c6575fb | [
"JavaScript",
"Python"
] | 18 | Python | Tuxinet/LoR | 865a499431bede61e2ba63645743e77cc56089e8 | c3f908a2957fa07944e997a7508dc1d5ff5d98e4 |
refs/heads/master | <repo_name>manik2158/Hospital-management-SYstem<file_sep>/hospital/models.py
from django.db import models
# Create your models here.
class Doctor(models.Model):
name = models.CharField(max_length=40)
mobile =models.IntegerField()
specialization=models.CharField(max_length=50)
def __str__(self):
... | d99b16298ea7ca9fb495c2c2104fc07bd0972628 | [
"Markdown",
"Python"
] | 3 | Python | manik2158/Hospital-management-SYstem | 846e7ddf662917ecaab5edcf561273e442587f44 | 981316c4dc9638b7303f4a56a97ba7522375c3aa |
refs/heads/master | <file_sep>#!/bin/sh
cd /home/disk/eos4/rachel/NCL/cesm_scripts/Analysis/Plotting/scripts/
plotvar="SF"
ilev="250"
min1="-8.0E7"
max1="8.0E7"
diffs1="1.0e7"
min2="-1.0e6"
max2="1.0e6"
diffs2="2.0e7"
units="m:S:2:N:s:S:-1:N:"
# save command line arguments to environment variable NCL_ARG_#
index=1
eval export NCL_ARG_$i... | c55b951fdb97d74d4d30e74e28ac72aef317ebf1 | [
"Markdown",
"Shell"
] | 66 | Shell | subaohuang/NCLscripts | 86260ea6da5f98343d581750316a4335909b5520 | 4538a34eb0ab4b9c10b2850c7c019342e4a49605 |
refs/heads/master | <repo_name>mcapra/nagios-check_casperjs<file_sep>/README.md
# nagios-check_casperjs
A Nagios plugin for executing and validating [CasperJS](http://casperjs.org/) test cases.
```
usage: check_casperjs.py [-h] -p PATH [-w WARNING] [-c CRITICAL] [-a ARGS]
[-r] [-b BINARY] [-v]
Executes Ca... | 389662aa7bd430fdd5ad2babed0b053f4ecbb911 | [
"Markdown",
"Python"
] | 2 | Markdown | mcapra/nagios-check_casperjs | 6af799c6cf1db9edfa07006155e0f812749f927f | ce4d629342043c2806732c581e1176a39be28db4 |
refs/heads/master | <file_sep>// Here’s some guidance for how insertion sort should work:
// Start by picking the second element in the array (we will assume the first element is the start of the “sorted” portion)
// Now compare the second element with the one before it and swap if necessary.
// Continue to the next element a... | f7be4cd6561f5983944efcc88a50c16fba20ab0a | [
"JavaScript"
] | 1 | JavaScript | gabbycampos/dsa-sorting | e0c76c76e12b52c10501daf50126604e224450d2 | fd77b179f85b31336eb85477467db875b0f2f4af |
refs/heads/master | <file_sep>import hello
result=hello.greeting('kusum')
print(result)
a=hello.person1["age"]
print(a)
import hello as m
b=m.person1["age"]
print(b)
c=m.person1["country"]
print(c)
d=m.person1["name"]
print(d)
| 2777cf9d4169437ef895fad5b2da77b8801bfff1 | [
"Python"
] | 1 | Python | Kus-prog/day-8 | c700a04fc986ef3d828843266c7a17e23c9476e9 | 70e59b97e799e58d16b5049a34a95852d147a50b |
refs/heads/main | <repo_name>yearofthedan/visualising-github<file_sep>/public/relationships/repoPrRelationshipChart.js
import {doQuery} from "../graphQLQuery.js";
import renderForceGraphChart from "../chartRenderers/forceGraphChart.js";
const graphqlQuery = (organisation, repo) => JSON.stringify({
query: `{
repository(owner: "${o... | be3d36f6bb5d06b30734bda60ea1f45cabba257f | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | yearofthedan/visualising-github | 7944d1911ea03ceb07702caa9b0a494a7ed485be | 59e42d2d133680d225250514cbf49453f8e71807 |
refs/heads/master | <file_sep>import os, time
class Applog :
def __init__(self):
logfile = os.getcwd() + "\\log\\" + time.strftime("%Y%m%d", time.localtime()) + ".log"
self.fp = open(logfile, 'a')
return
def addLog(self, log):
log = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + " " + log
... | 8da1a0baf54549fb735833488aa05dfbcd80c089 | [
"Python"
] | 12 | Python | weifeng1990/cloudcheck | 370da6380b06ad81b2ed9fd93c9020aa72337a8e | 3917e3bd01af6d9cfc8aaebd8cdec009f6a96093 |
refs/heads/main | <repo_name>92eduardocastillo/node-1<file_sep>/router/Mascotas.js
const express = require('express');
const router = express.Router();
const Mascota = require('../models/mascota')
router.get('/', async (req, res) => {
try {
const arrayMascotas = await Mascota.findById();
console.log("Mascotas Obten... | 44768a3f1281e3e57b055d1656a75bb5474451aa | [
"JavaScript"
] | 3 | JavaScript | 92eduardocastillo/node-1 | 93e95dac26030a8bb18dbbe1760f50c87d207131 | a6936fddb2bc5086c598ea68b57789145131cfd9 |
refs/heads/master | <repo_name>Mohsen-Yaghoubi/Book-Store-With-MongoDB<file_sep>/Book Store/Pages/Books/Edit.cshtml.cs
using Book_Store.Data;
using Book_Store.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using MongoDB.Driver;
using System.Linq;
namespace Book_Store.Pages.Books
{
public class Edit... | 88d9d237db659f7ff42052cea603fb3dae2a20c4 | [
"C#"
] | 5 | C# | Mohsen-Yaghoubi/Book-Store-With-MongoDB | 14a46f945cb60f3a1102923f06011055da7e7f69 | e936c4f0488ecf4fc529a927d31738c74d18ca2e |
refs/heads/master | <repo_name>libincheeran/springbootprop<file_sep>/src/main/java/com/libin/component/ServiceComponent.java
package com.libin.component;
import com.libin.bean.CMDBPropConfig;
import com.libin.bean.Config;
import com.libin.bean.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | 69148916239c7b44128543abdd291db2d5d2836a | [
"Java",
"INI"
] | 4 | Java | libincheeran/springbootprop | 50a55240a809f59ea7128186de8f683bf9895768 | ad000c233e508710aa4d7d9326adb3a9000a621f |
refs/heads/main | <repo_name>HyungsooLim/SQL_1<file_sep>/Update.sql
select * from REGIONS;
delete REGIONS where region_id = 5;
delete REGIONS where region_id = 6;
delete REGIONS where region_id = 7;
delete REGIONS where region_id = 8;
delete REGIONS where region_id = 9;
delete REGIONS where region_id = 10;
delete REGIONS where region_i... | cb94c72957d9f7ef4ee1d2bfedf75c78e378d4a2 | [
"SQL"
] | 4 | SQL | HyungsooLim/SQL_1 | 17c617b82d47a2c35bc66f10874458c23d4e36a3 | 8f787688bd100090ef65ac0d57a8c55534281113 |
refs/heads/master | <repo_name>mrdzugan/react-calendar<file_sep>/src/components/Calendar/CalendarDate/index.jsx
import React from 'react';
import {getDate} from 'date-fns';
import classNames from 'classnames';
import styles from './CalendarDate.module.css';
const CalendarDate = (props) => {
const {date, isCurrent,month} = props;
cons... | 62adc787adf5a5cb73dd25103ac51a4bd58fa628 | [
"JavaScript"
] | 5 | JavaScript | mrdzugan/react-calendar | e82eea42ac44443eeb96a99edfa5e1fe1052d195 | 014c2a7120da9f43d5cc21a7c04fb867825c1053 |
refs/heads/master | <file_sep>import cv2
import numpy as np
img = cv2.imread("Resources/GT3.jpg")
width, height = 700, 350
pts1 = np.float32([[590, 420],[1200,340], [630,870], [1330, 740]])
pts2 = np.float32([[0,0],[width,0],[0,height], [width,height]])
matrix = cv2.getPerspectiveTransform(pts1, pts2)
imgOutput = cv2.warpPerspective(i... | 0c79397f540af2176fe643d4c21e4961ff7ba0a9 | [
"Python"
] | 4 | Python | Marco13-7/OpenCVTutorial | 1fcfad86f2efff23754d77608768ac2b9b9e1bea | f4f831c33218f17b641cd7905ea0d4f0fe0e9c8d |
refs/heads/main | <file_sep>import readlineSync from 'readline-sync';
let userName;
const Welcome = () => {
console.log('Welcome to the Brain Games!');
userName = readlineSync.question('May I have your name? ');
console.log(`Hello, ${userName}!`);
};
const Congratulations = () => {
console.log(`Congratulati... | 89df8fa9b93911b68f08fa9a9987bbaae672c37b | [
"JavaScript"
] | 4 | JavaScript | gaypropaganda/frontend-project-lvl1 | fdfbf27a4246f14f5caf7eee4647e7d303ef9ad6 | c1d70e49f51a27a89c1bd0a3fb4bc63e379a1a2d |
refs/heads/master | <file_sep>#!/bin/sh
pwd
cd ..
mvn -U clean package -P test -Dmaven.test.skip=true
if [ ! -f $DEPLOY_HOME ]
then
mkdir -p $DEPLOY_HOME
fi
if [ -f "target/${PACKGET_NAME}" ]
then
rm -rf ${DEPLOY_HOME}/*
cp target/${PACKGET_NAME} ${DEPLOY_HOME}/
cd ${DEPLOY_HOME}
tar -zxvf ${PACKGET_NAME}
fi
<fil... | 6ae40241199e57903d27749162cd41974a0b3476 | [
"Shell"
] | 3 | Shell | sharewind/thrift-performance-test | d7405dcdf2e7037bcd44378d7a0f2a9f6d1c5d49 | bef6c63efb46682088c35ab9ce8af2ddb35d7510 |
refs/heads/master | <file_sep>import React from 'react'
import PropTypes from 'prop-types'
class UseChildren extends React.Component{
static propTypes = {
autor: PropTypes.string.isRequired
}
render(){
const {title, autor, content} = this.props
return(
<section>
<article>
<h3>{title}</h3>
... | e6b9dc29432c4f226c42e683998ef7792919d8d5 | [
"JavaScript"
] | 3 | JavaScript | OscarLLC/app-curse-udemy | 621db08a5e8e112ca22b04220651674196314d20 | 62a86dbeffbeae836e7dde81e9dde8636d75ede9 |
refs/heads/master | <repo_name>cginiel/si506<file_sep>/final_proj/swapi_final_copy.py
import json, requests, copy
ENDPOINT = 'https://swapi.co/api'
PEOPLE_KEYS = ("url", "name", "height", "mass", "hair_color", "skin_color", "eye_color", "birth_year", "gender", "homeworld", "species",)
PLANETS_KEYS = ("url", "name", "system_position", "n... | 2a91b921d3d17cd13263cf8d8664cf219d3a5ac7 | [
"Markdown",
"Python"
] | 5 | Python | cginiel/si506 | 91f9f7de3911d0d23fcd584d44638ee32c9fe265 | 043b9dbc1c20d8c333db0b02501cc14ae0eda147 |
refs/heads/master | <file_sep>//<NAME>
//SRN = 170229702
import java.util.Random;
import java.util.Scanner;
public class CustomerVerifier {
private static int[] pins = new int[]{1234, 1111, 4321, 5555, 7777, 1010, 9876};
private static String[] customers = new String[]{"Bob", "Rob", "Tim", "Jim", "Sam", "Jon", "Tom"};
privat... | 1e115b7cef3232181c02197e721a965e2565b30d | [
"Java"
] | 1 | Java | hoestlund/CO1109_coursework_1 | 8e3ae48f196cd43489c9bc948f7ad0cc5fc11652 | fb5986c5955113bf239e3b3eca3d189996cf0af2 |
refs/heads/master | <file_sep><?php
class Admin extends CI_Controller{
public function index(){
$this->load->view('templates/header');
$this->load->view('admin/login');
$this->load->view('templates/footer');
}
public function edit_content(){
$this->load->view('templates/header');
$this->load->vie... | 09ff19b43b9c8ee76f660b64e46e6ef86b9f69d0 | [
"PHP"
] | 2 | PHP | megabreakage/euro | 29c6b1b10d7f96a323708ba0fca7f9d3172f68c3 | 1d7284756d02da65394782ba964ff7d489863d8f |
refs/heads/main | <repo_name>ItzManan/Space-Invaders<file_sep>/Space Invaders.py
import pygame as pg
import random
from math import sqrt
from pygame import mixer
from pygame import cursors
from pygame import mouse
pg.init()
pg.mixer.init()
screen = pg.display.set_mode((800, 600))
y = 0
pg.display.set_caption("Space Invaders")
icon ... | 7c57d33b8f8246696b3221ac00294a23fe5220d1 | [
"Markdown",
"Python"
] | 2 | Python | ItzManan/Space-Invaders | a2082b5001159578a47f5686128a980bc1884201 | 4e96c2dc7ccbc9b9a09115238cad1abbb5b8fe6c |
refs/heads/master | <repo_name>oisee/cowgol<file_sep>/bootstrap/cowgol.h
#ifndef COWGOL_H
#define COWGOL_H
extern int8_t extern_i8;
extern int8_t extern_i8_2;
extern int16_t extern_i16;
extern int32_t extern_i32;
extern int8_t* extern_p8;
extern uint32_t extern_u32;
extern int8_t* lomem;
extern int8_t* himem;
extern int8_t** cowgol_argv... | b39ada1c011019ffc4b823b32515a2c8a40aff6f | [
"Markdown",
"C",
"Shell",
"Lua"
] | 25 | C | oisee/cowgol | faa015c6ab44497c5c67da0cae317d42eab3daf9 | 1302110869a762eb24a207043e1735e6a07a8d3f |
refs/heads/master | <file_sep><?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
... | 432125434e20be3783df1302bd8bf9935d8131d2 | [
"PHP"
] | 10 | PHP | ezimuel/zf2 | 368e4adcc138c5662014427bb4556455237ed98d | dcb20582dbe402985e21718bbe163742da5427eb |
refs/heads/master | <repo_name>neroxdt/springBoots<file_sep>/security-spring/src/main/java/com/spring/oauth2/cloud/controller/SampleController.java
package com.spring.oauth2.cloud.controller;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.config.annotation.web.configuration.Enab... | 93115a426e39517eb8e9b28a6556db9e3834467e | [
"Java"
] | 2 | Java | neroxdt/springBoots | 3ca063b79fa5be7fcd63dcc0f69b0772deea5550 | e4dc90a5834b097a06514f616d44d2c97279ce68 |
refs/heads/master | <file_sep>package ru.appliedtech.chess.roundrobinsitegenerator.tournament_table;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template.TemplateException;
import java.io.IOException;
import java.io.Writer;
public class TournamentTableViewHtmlRenderingEngine implemen... | ffa0923e0355872a3f346b406da71b580f9be691 | [
"Java",
"INI"
] | 7 | Java | chessinappliedtech/roundrobinsitegenerator | d3a83287fcfdf550f66766a2f583db39e2d8aae4 | 469e80d001b9f05e90fc6cd73cb49266245bb8ef |
refs/heads/master | <repo_name>monotera/Database<file_sep>/DominioLibreria/src/entities/Linea.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entities;
/**
*
* @author USER
*/
public cla... | f199d928dc8415f2efab7c923266daf238ccc56b | [
"Markdown",
"Java"
] | 5 | Java | monotera/Database | ac2d7e3411c9b9f61f28a2827fdf94f3c05bcc38 | 697852737bd9b6208a63ac7c8ca938b58d28ebbc |
refs/heads/master | <file_sep>package main
import (
"errors"
"flag"
"fmt"
"io"
"os"
parser "gopress/internal/parser"
scripts "gopress/internal/scripts"
)
func runGopress(file io.Reader) {
config, err := parser.GetConfig(file)
if err != nil {
fmt.Fprintln(os.Stderr, "There was an error parsing the goparser json: ", err)
os.... | 40f92e701184085d3f4ccbdfc3d776fe15f07978 | [
"Makefile",
"Go Module",
"Go",
"Markdown"
] | 9 | Go | camjw/gopress | 298e70e2fd4ed78fba542ce285a5b93359581f9c | ba158f13c84f4c76e30c5cde44679b07f025501f |
refs/heads/master | <repo_name>nnegi88/star-dev-finder<file_sep>/README.md
# star-dev-finder
This script helps you find the star developer in a organization on the basis of repository count
<file_sep>/star-dev-finder.py
import requests
from collections import OrderedDict
from operator import itemgetter
base_url = "https://api.github.com"... | e311994fb5043c0fa960d97a4f91e4c782b56a8e | [
"Markdown",
"Python"
] | 2 | Markdown | nnegi88/star-dev-finder | 017b9544911cea987664b5f7ad5b433eaad86e1b | 5295573ee23b4556c54901ba5025573c1c2d390f |
refs/heads/master | <repo_name>hoaithuong2002/module_2222222<file_sep>/MVC/View/add-product.php
<?php
$categoryList= null;
if (!empty($this->categoryManager)) {
$categoryList = $this->categoryManager->getAllCategory();
}
?>
<div class="container mt-5">
<div class="row align-items-center">
<h1>Thêm mặt hàng</h1>
<fo... | 0f6acbfcf9033289450400fcbb36960fca7095a6 | [
"PHP"
] | 8 | PHP | hoaithuong2002/module_2222222 | 35fcec0e9c9f9ecea12570994c1d545047bf7ee8 | cc2309c2f207fa6f5f5c0ac2c43e56216b825eb6 |
refs/heads/master | <file_sep>package vista;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import runnable.Work;
public class DronesAplicacion2 {
public static void main(String[] args) {
ExecutorService executor = Executors.newFixedThreadPool(2);
for(int i= 1; i<=2; i++) {
Work work = new W... | a8b766b53557e0d7496774a723b7c40c70e3bd44 | [
"Markdown",
"Java"
] | 5 | Java | krawny/S4N_Drones | 6d246ef04b6f1340e82536f3daecb9d68438e3ff | 4b270499135ecdee472a6e36557dc367ac0ac217 |
refs/heads/master | <repo_name>miguelantonio90/laravel-vue<file_sep>/resources/js/data/localStorage.js
import Vue from 'vue'
import VueLocalStorage from 'vue-localstorage'
Vue.use(VueLocalStorage)
export function saveToken (token) {
return Vue.localStorage.set('token', 'Bearer ' + token)
}
export function removeToken () {
return Vu... | 54b039f3a9373efba15c0b7869ff9971fdde27f6 | [
"JavaScript",
"Markdown",
"PHP"
] | 22 | JavaScript | miguelantonio90/laravel-vue | 7988e64c00ede1f358bc3ab64236af7834ef8246 | 4d8bb26e58e1ed0325f358efd820033512c34cf0 |
refs/heads/master | <repo_name>phillipclarke29/xmas2017<file_sep>/src/Underground.jsx
var React = require('react');
var {Form, FormControl, FormGroup} = require('react-bootstrap-form');
var ValidationError = require('react-bootstrap-form').ValidationError;
var Result = require('Result');
var Underground = React.createClass({
getInitia... | 6e353c15665c9124c86f68a41388b0ba679d3feb | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | phillipclarke29/xmas2017 | c1679562a152c6f4124b260bb2ff41f823a4f559 | 15d6f3b63db63dc8f96b038128b9786696d0295b |
refs/heads/master | <repo_name>msy53719/cucumber-framework-test<file_sep>/script/report.sh
tar -cvzf test-report.tar.gz ./target/cucumber/<file_sep>/src/main/java/com/mosy/core/contant/FeatureContant.java
package com.mosy.core.contant;
public class FeatureContant {
public static final String RESPONSEDATAKEY = "JsonPath";
public sta... | 9bf432a0b141299314e2171331fb3b2963a97de1 | [
"Java",
"Maven POM",
"Shell"
] | 6 | Shell | msy53719/cucumber-framework-test | fcf7d8e46ae703a73635f7c7fd725d2fc90bfe08 | 699ee4407f505cedafbbd06bf3b2572bca8ae117 |
refs/heads/master | <file_sep><?php
function hello($text = "World", $time = "Good Morning") {
return "Hello $text! $time!<br>";
}
echo hello();
echo hello("Stenio","Good Night");
echo hello("John", "Good Afternoon");
?><file_sep><?php
$condition = true;
//does something as long as the condition is true
while ($condition) {
... | 0483cdc8dfca7f12e51c9e5440e7e3fc849a1748 | [
"PHP"
] | 29 | PHP | steniooliv/php7-course | 5cb96029daa8be16934177e02c047fd4cd0478e5 | cd2bafa47b29f11358bc187431ed67f660bb1977 |
refs/heads/master | <repo_name>joy-xiaojizhang/spn-experiment<file_sep>/spn_experiment.py
from tachyon.SPN2 import SPN
import numpy as np
# make an SPN holder
spn = SPN()
# include training and testing data
spn.add_data('output/movietrain.txt', 'train', cont=True)
spn.add_data('output/movietest.txt', 'test', cont=True)
# create a valid s... | 931d242c7e882f13efd1c4224df75b3414e1525b | [
"Python"
] | 3 | Python | joy-xiaojizhang/spn-experiment | 0d4248bcc129a26361c8c636bf22fc4ec7b383b7 | 96f4a27c80e35f5c359f7d52c3e10ef2b41840a0 |
refs/heads/master | <repo_name>bltarkany/Hangman-Javascript<file_sep>/assets/javascript/game.js
// Global Variables
// ======================================================================
var movies = ["jack", "edward", "sweeney", "beetlejuice", "lydia", "bonejangles", "ichabod",
"frankenweenie", "sally", "batman", "wonka", "oogieboog... | 0ce4c534fab2464501797d9f40360edb8f4c3f8b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | bltarkany/Hangman-Javascript | 089a5750a321aa10aeb0cbe18565b037579ac491 | 05a510695433f4cbafd3e13b4734e521f175c5a1 |
refs/heads/master | <file_sep># SQLITE_Database
Working with Sqlite Database and Qml
<file_sep>#include "database.h"
DataBase::DataBase(QObject *parent) : QObject(parent)
{
}
DataBase::~DataBase()
{
}
void DataBase::connectToDataBase()
{
if(!QFile("C:/example/" DATABASE_NAME).exists()){
this->restoreDataBase();
} else... | cb45f9af72dcfaa0b19150af5908cb4c7445d84d | [
"Markdown",
"C++"
] | 3 | Markdown | Seguya-Nicholus/SQLITE_Database | d6fb875a22dabffceea51b81a8122fffb0e64f18 | e29e58004b83c62b8dfdd8af236b6154dd999dad |
refs/heads/master | <repo_name>Joselagem/karafun-touch<file_sep>/i/js/locale.js
$(document).ready(function(){
$(".translate").each(function() {
name = $(this).data("name");
$(this).html(chrome.i18n.getMessage(name));
});
$("input.topbar__search").attr("placeholder", chrome.i18n.getMessage("search"));
});
<fil... | 1ed2fa5672027dc14780c4a0daa512c51a7fad68 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | Joselagem/karafun-touch | 63e90e60c3bc73b7f2112da19a2f81993dc4a805 | 915e600ab3289c88b112a05af340f76434336407 |
refs/heads/master | <repo_name>Riim/simple-svg-loader<file_sep>/README.md
# simple-svg-loader
## config:
```js
var webpack = require('webpack');
module.exports = {
module: {
rules: [
{
test: /\.svg$/,
loader: 'simple-svg-loader'
}
]
}
};
```
## use:
```js
import './icons/home.svg';
```
```html
<a href="/">
<svg v... | 0bef3ff596631295e569d5d8dc18f35eddcd0e7e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Riim/simple-svg-loader | 881e26097a556b1add38410fc6bf512a3725836d | 4ecc33458088be68a19cb4641e0d3685a31ae408 |
refs/heads/master | <file_sep>object vers {
val kotlin = "1.4.21"
val nexus_staging = "0.22.0"
object asoft {
val builders = "1.3.0"
val color = "0.0.20"
val theme = "0.0.50"
val test = "1.1.10"
}
object kotlinx {
val coroutines = "1.4.2"
}
object wrappers {
va... | 058286ba53cf8862d1de52675bc49f63ed22b6e0 | [
"Kotlin"
] | 5 | Kotlin | cybernetics/theme | 8ce9f7b1e76cad29a49959339ce04d23c5e94abd | 6518f47ea2b821ebc6f7ef27afcb059da5ee789c |
refs/heads/master | <repo_name>RommelTJ/IngressKeyTracker<file_sep>/IngressKeyTracker/KeysTableViewController.swift
//
// KeysTableViewController.swift
// IngressKeyTracker
//
// Created by <NAME> on 5/12/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
import UIKit
class KeysTableViewController: UITableViewController, UITa... | 6ea7f0972f3e0a3746d07236eea68e5db6c1f6f5 | [
"Swift",
"Markdown"
] | 2 | Swift | RommelTJ/IngressKeyTracker | b6095c15f2e2fa0c4bed9e21d6749cde0f36b0d2 | dabf39e53b396e4142143d3eaef40fb454b5a1ca |
refs/heads/main | <file_sep>asgiref==3.3.4
Django==3.2.4
PyMySQL==1.0.2
pytz==2021.1
sqlparse==0.4.1
Pillow==8.2.0
django-ckeditor~=6.1.0<file_sep>from django.shortcuts import render
from django.contrib.contenttypes.models import ContentType
from django.core.cache import cache
from blog.models import Blog
from read_statistics import u... | cf9961db013e2d48be048a6b9cba354780a051ca | [
"Markdown",
"Python",
"Text"
] | 15 | Text | askeladd01/myblog | 80cd025648ea5d97e19703ed5d625108c8aa1293 | d7719f3eadc6b89a80f591ce8779db28952103f8 |
refs/heads/master | <file_sep>package com.example.implicitandexplicitintents
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.MediaStore
import android.view.View
import android.widget.Button
import android.widget.Toast
import kotlinx.andr... | bad65cb1224dfef5bb125b24623a3d74ebbafba3 | [
"Kotlin"
] | 1 | Kotlin | Jkiller28/My_Lab | a3b6a3ae8e5868d2540b1cd990433662dc28fd81 | 7840b08706077a1b985d2f019ae35d3921ff4b2d |
refs/heads/main | <repo_name>misbah41/E-Bazar-Server<file_sep>/index.js
const express = require("express");
const bodyParser = require("body-parser");
const MongoClient = require("mongodb").MongoClient;
const ObjectId = require("mongodb").ObjectId;
const fileUpload = require("express-fileupload");
const cors = require("cors");
const fs... | 90caf38bad5fa360747e54df641693a3ecb0d96b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | misbah41/E-Bazar-Server | d70c17bae51550768785f50746ba34db8f30bb61 | 910b87ef89d857e68c0c21542fa9a8cbf58de29e |
refs/heads/master | <repo_name>DemiurgeApeiron/TC1001S.100Team10<file_sep>/snake.py
"""Snake, classic arcade game.
Modifications made by:
<NAME>
<NAME>
<NAME>
"""
from turtle import *
from random import randrange, randint
from freegames import square, vector
limitex = 500
limitey = 500
tercervar = 500
food = vector(0, 0)
snake = [ve... | f635111685e79ef533d9ea55a75578d0a709bf40 | [
"Markdown",
"Python"
] | 2 | Python | DemiurgeApeiron/TC1001S.100Team10 | 284a0ab800fdff8b7135ec6034124fb112046560 | f5854b8275db02ee9a65ac2c728a92236816f486 |
refs/heads/master | <repo_name>localSummer/react-boilerplate-ie8<file_sep>/src/routes/index.js
/* eslint-disable react/jsx-filename-extension */
// We only need to import the modules necessary for initial render
import React from 'react'
import { Router, Route, hashHistory, IndexRoute, Redirect } from 'react-router'
import App from '../co... | b1639e5c5a13ad3776f9b776f0aa52bc5ffaba1f | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | localSummer/react-boilerplate-ie8 | ca28d04fb8215c328fbd16e8e980a581c35a18c9 | f1407a1825abfc962c89bf0e2bd5f405d5cb1b94 |
refs/heads/master | <file_sep>
$(document).ready(function() {
var pre_loader_logo = $('#preLoaderLogo');
var title = $('.title')
var red = $('#red')
var blue = $('#blue')
var all = $('.all_splash');
var tl = new TimelineLite();
var test = $('#test')
//function logo rotator on click
function loader(){... | 3d3e5302c42edec8802a9dac3a1fec0f84c98ff6 | [
"JavaScript"
] | 2 | JavaScript | jesslee1315/tear_in_my_heart | 0389ab2914648a9ae4b6be9073c52c44073f3665 | 1e62b87942f68695f3726e01abefb9184d122c7a |
refs/heads/main | <repo_name>c293-gif/web-java5<file_sep>/java2/homework/src/BMI.java
import java.util.Scanner;
public class BMI {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("nhập cân nặng(đơn vị kg): ");
double kg = sc.nextDouble();
System.out.pr... | 83f3135eca51fffba43d0b7cda4ea98ed606ee6a | [
"Java",
"HTML"
] | 20 | Java | c293-gif/web-java5 | 7051c95a23606fb2414bbc381eeffadd17f5d046 | 832c1ec4cba271ca33694674d8429ea0350d4926 |
refs/heads/master | <file_sep>package com.ubs.opsit.interviews;
public enum TimeConstants {
Y,O,R,YYY,YYR
}
| e865b77fbf79df97a1ca69870621b8cc78384099 | [
"Java"
] | 1 | Java | tlaad/ubstest-tlaad | e0e7ba182d92bbba24bfeeb05d665ee234b31b48 | 8743b4e1933d80151a0123c79b85f640dc0a3af6 |
refs/heads/main | <repo_name>TrangPham99/Frond-End-Pre-Test<file_sep>/styles.js
$('.slides').slick({
slidesToShow: 1,
slidesToScroll: 1,
autoplay:true,
autoplaySpeed: 5000
}); | 5830306871c1773a77e5b509ca0650964e8b991d | [
"JavaScript"
] | 1 | JavaScript | TrangPham99/Frond-End-Pre-Test | 494647c8ec5da5e306211e5acc4f9aea871211e8 | 6337558fe03b63830da63656e8f39acafe4f923f |
refs/heads/master | <repo_name>Tomraydev/Portfolio<file_sep>/js/map.js
function initMap() {
var krakow = {lat: 50.0647, lng: 19.9450};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 11,
center: krakow,
disableDefaultUI: true,
styles: [
{
"featureType": "administrative",
"el... | 6612466005bc13e4217d27beb58e11075ea7026e | [
"JavaScript"
] | 1 | JavaScript | Tomraydev/Portfolio | c7818446e2f08b8cd75c4f8b43c7ef1d881a7d50 | 5bde1a258c51ba8a673259c1b443f49d27307377 |
refs/heads/master | <repo_name>saucisson/lua-resty-shell<file_sep>/lua-resty-shell-scm-1.rockspec
package = "lua-resty-shell"
version = "scm-1"
source = {
url = "git+https://github.com/juce/lua-resty-shell.git",
}
description = {
summary = "Tiny subprocess/shell library to use with OpenResty application server.",
detailed = "",
... | 7d3027b8eff682b6ca459e1a5dbf4f50117628e1 | [
"Lua"
] | 1 | Lua | saucisson/lua-resty-shell | 2f5ff43a1f4d65c237a07b63c96312768a7f1e35 | 7325b353ce21290713fc15db9f34a1facbfcdebe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.