branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep><?php
namespace App\Forms;
use Kris\LaravelFormBuilder\Form;
class ImageForm extends Form
{
public function buildForm()
{
$this
->add('id', 'hidden')
->add('image_url', 'text', [
'label' => 'Adres url zdjęcia'
])
->add('alt', '... | 9279b5310c82e30c42017bfdfa25bc501fc9722e | [
"PHP"
] | 9 | PHP | webostin/bservice | ba602d096c6f92b89fd42c74609fb5e5096d8579 | 407b2beec1f267c6f3b3351a91c2236702b8b0af |
refs/heads/master | <file_sep>import os
import sys
import platform
from setuptools import setup, find_packages
from os.path import join, dirname
# copied from electrum project
data_files = []
if platform.system() == 'Linux':
usr_share = os.path.join(sys.prefix, 'share')
data_files += [
(os.path.join(usr_share, 'applicatio... | 05167d7a0afb1f55fac0cba1b4600cf83118d174 | [
"Markdown",
"Python"
] | 3 | Python | limpbrains/somebar | 92daede36e76ae2a003a86b3c22f0af98984e94e | 7456158d7db5b69baa0d44ab00e00abc9f2d6983 |
refs/heads/master | <repo_name>qiuminghilllittlewan/FastRT<file_sep>/README.md
# FastRT
* https://github.com/JDAI-CV/fast-reid
<file_sep>/pybind_interface/test.py
import sys
sys.path.append("../")
from build.pybind_interface.ReID import ReID
import cv2
import time
import torch
import torch.nn.functional as F
import numpy as np
import ran... | 38dc00e7dac497041a2da55ccb008850203d08b6 | [
"Markdown",
"Python",
"Shell"
] | 4 | Markdown | qiuminghilllittlewan/FastRT | d5f9de2251a9a86a0ebe83485bfd994f2137135a | 8c7d7a78645fdf3ae4abf9073ca540d726015cc4 |
refs/heads/master | <repo_name>xLong1029/xlong-admin-angular<file_sep>/_mock/index.ts
export * from './_city';
export * from './_work';
export * from './_menu';
export * from './_map';
export * from './_weather';
<file_sep>/src/app/routes/passport/passport.service.ts
import { _HttpClient } from '@delon/theme';
import { Injectable } from '... | f3b6c75e8acbab937cb0b44a1430e1495170fb50 | [
"Markdown",
"TypeScript"
] | 57 | TypeScript | xLong1029/xlong-admin-angular | 993c0ca948076e3394682b9af3d09c09eb6c6c5e | caff3bebdcba87bd0fd7c633ea2da23615528114 |
refs/heads/master | <repo_name>diogommartins/pcs2015.1<file_sep>/docs/backlog.md
== Especificação ==
O programa possui recebe uma string correspondente a uma senha como entrada, a mesma é analisada
e uma avaliação é retornada.
* Avaliação pode ser definida como: EASY, MEDIUM, STRONG, VERY_STRONG e EXTREMELY_STRONG. Tem seu v... | 7b76435532d0944282805ecc319c29e0741a0fea | [
"Markdown",
"Java"
] | 4 | Markdown | diogommartins/pcs2015.1 | 1f638450cedc9de3fd89833b9ece39b572bb2195 | 3477e2f73b42c37dca67d354970ed4a062bd0e8b |
refs/heads/master | <repo_name>Danielius124/project<file_sep>/SistemaProjectsTaskUsers/src/gui/MainController.java
package gui;
import java.io.IOException;
import java.sql.SQLException;
import backend.ObjectNotExists;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEve... | 8508e05461e650f5d2767037f9204e4d9b3304e6 | [
"Java"
] | 3 | Java | Danielius124/project | 99aef4523fd09d55e67eda509cd794e0f30cab2b | 8258936dbef85e0de042d6070b2f040b34acc55f |
refs/heads/main | <file_sep># annoylife
# this file is meant for learning purposes only, publishing this app may lead to a catastrophy
<file_sep>export const USER_STATE_CHANGE = 'USER_STATE_CHANGE'
export const USER_POST_STATE_CHANGE = 'USER_POST_STATE_CHANGE'
<file_sep>import React, {Component} from 'react';
import {Text, View} from 'r... | bb8534e8466896bb5039f044f544ecf0d4490287 | [
"Markdown",
"JavaScript"
] | 9 | Markdown | Sembian2009/annoylife | c2fc94341c208419d120a9128f3b451378340c3a | f669cef09224a024ea2fc27f23740e0110d5c242 |
refs/heads/master | <file_sep>import urllib.request
import requests
import zipfile
import json
import time
import sys
import os
DATASET_METADATA = 'https://objectstorage.ap-mumbai-1.oraclecloud.com/p/fQ4itlKZosP5gtaFpJNk0jZTzDvtXQBm2RefZPZJNS0/n/bm7noglpf2jq/b/FYP-Data/o/updates.json'
def have_internet():
try:
_ ... | 8ca49f6425ba25b5cfc6a97a8b23f48c9a0f8545 | [
"Markdown",
"Python",
"Text"
] | 4 | Python | Team-Agility/AMI-Corpus-JSON-Data-Manupulator | 3ede8c4e0aec752ddbf935917ae63cbd928fe050 | c9666af5270eae69071623a6a6b1a8b30f867316 |
refs/heads/master | <file_sep># ESP32 Camera Demo
<EMAIL>
Code provided in this repository gets the image from camera and prints it out as ASCII art to the serial port.
## M5CAMERA
1Z实验室(1zlab): [中文文档](https://github.com/1zlab/esp-cam-tutorial)
## Build Status
[;
const client = new vision.ImageAnnotatorClient();
client
.labelDetection("html/images/images.jpeg")
.then((results) => {
const labels = results[0].labelAnnotations;
console.log('Labels:');
labels.forEach((label) => {
console.log(label.des... | 7107d4c6eccb6265e07ec600590c2df6b9e951e1 | [
"JavaScript"
] | 1 | JavaScript | 3xtoss/MovieMatch | 13f07a72ba6fe7d3c21103ce63164be8fa79201b | 9c30e84c763c52135770e272ba4605dd6f2cf0ec |
refs/heads/master | <file_sep>import React from 'react';
import logo from './logo.svg';
import './App.css';
import VotingBooth from "./views/VotingBooth";
import Home from "./views/Home";
const headerStyle = {
textAlign: "left",
/*padding: "0 10px 0",*/
background: "#eb3477"
}
function App() {
return (
<div className="... | e642e0234affc1e626562630525020bd653ee62e | [
"JavaScript"
] | 8 | JavaScript | ItsThatBlackKid/SenateVote | 9c0156fe800defc65556c6612660addd2001afbd | a892b3114823ddfaa988387a280379ed1163fda1 |
refs/heads/master | <repo_name>TemuujinWire/photo-viewer<file_sep>/src/PhotoView/PhotoView.js
import { useState } from 'react';
import Gallery from '../Gallery/Gallery';
import "./PhotoView.css";
function PhotoView() {
const [path, setpath] = useState("Gallery/1.jfif");
return (
<div className="view-wrapper-wrapper">
<div ... | 4dc4daa9f050708508437d8facbc097a4d1aee80 | [
"JavaScript"
] | 1 | JavaScript | TemuujinWire/photo-viewer | b733851fa64f7bfe4a9e2d15e12286811f31e826 | bf3d14975f8b924c37dfb5110613473b322b70fb |
refs/heads/main | <file_sep>#!/usr/bin/python3
from random import randint
from datetime import datetime as dt
import datetime
from os import system, name
def clear():
# for windows
if name == 'nt':
_ = system('cls')
# for linux and mac
else:
_ = system('clear')
def decToBin(x):
maxNum = 2 ** x - ... | 2d913f7e14955a8408008de7189712219ab8b639 | [
"Markdown",
"Python"
] | 4 | Python | senchoz/binary-count-master | 1923e6c65a78bf620ebc4c1b66e659e201799652 | f677fdefad51c91b502649f619a030b30f1c28fb |
refs/heads/main | <repo_name>anatoliy-art/laravel<file_sep>/laravel.loc/app/Http/Controllers/AboutController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Blog;
use App\About;
use App\Category;
class AboutController extends Controller
{
public function index()
{
$categories = Category::ge... | 51641a22ea6d1f8e19b399a593f60f836c3cfddf | [
"JavaScript",
"PHP"
] | 5 | PHP | anatoliy-art/laravel | f8c8b63535dea700e48ddedd94c166bbd20f3e8c | 3501b8fa411133045287e479e532188666406993 |
refs/heads/master | <file_sep>javascript:(
function() {
var code = encodeURIComponent(document.body.innerHTML);
var act = document.createElement('form');
act.action = 'http://localhost:4567/';
act.method = 'post';
act.name = 'myform';
act.id = ... | c844567fa968c8f16c0db08aab585b1a7a73e4d8 | [
"JavaScript"
] | 1 | JavaScript | tdaisuke/html-send-bookmark | 4fd8142b9197be9a500d3dd79964f7cca0dfc519 | 6cb836e79df7b556d10741f1924a90b63c9af78b |
refs/heads/master | <file_sep>package collabr.core;
import com.codahale.metrics.annotation.Timed;
import org.hibernate.validator.constraints.NotBlank;
import javax.persistence.*;
@Entity
@Table(name = "skills")
public class Skill extends BaseEntity {
@NotBlank
private String name;
public Skill(){
}
public Skill(... | 073467ec50b2ba22ea406a98cbb5f5c330c2f001 | [
"Markdown",
"Java",
"Shell",
"SQL"
] | 12 | Java | sidmalik123/collabr_server | b7579f3199960aecf7fe3f2eaef18a7695a1f1be | b3ea72611add06a9ba63d7fb3e33a0b3c33f5980 |
refs/heads/main | <repo_name>emilianospinoso/herencia-clase21<file_sep>/ej1/alimento.py
from producto import Producto
class Alimento(Producto):
def __init__(self,referencia,nombre,descripcion,precio,productor,distribuidor):
super().__init__(referencia, nombre, descripcion,precio)
self.productor = productor
... | 9dd05fab001c97ed7a6d9835a2adb6cb30a9d680 | [
"Python"
] | 15 | Python | emilianospinoso/herencia-clase21 | 8afa8df3abe5331d0bd29a48869260b80b2602bf | bf2c4dfbab3517447a31983a60456e003579696b |
refs/heads/master | <file_sep>
import pytest
import os
import sys
# Put global pytest fixtures here
@pytest.fixture
def client(request):
"""Django Rest Framework APIClient"""
from rest_framework.test import APIClient
return APIClient()
<file_sep>django
psycopg2
djangorestframework
pytest
pytest-django<file_sep>FROM python... | bfb641849a54604703238fee94dcec54f08b7adc | [
"YAML",
"Markdown",
"INI",
"Python",
"Text",
"Dockerfile"
] | 12 | Python | Fasther/django_bulk_tutorial | 4fe60f89ada6018113735ee0f64ecaf356091830 | 826f3687c633b6e5372a9c39113f33e8bf0d84b5 |
refs/heads/master | <file_sep>package com.pingconnect.mojo.elasticsearch;
/**
* @author alexcojocaru
*
*/
public class ElasticsearchCommand
{
enum RequestMethod
{
PUT,
POST,
DELETE;
public static RequestMethod fromName(String name)
{
for (RequestMethod method : value... | 508b38cbf0edf8c64869bac8ddc93103bee58436 | [
"Markdown",
"Java"
] | 5 | Java | lukas-vlcek/elasticsearch-maven-plugin | 01d0ff236c23ff8181267cdc146cac7eba2f127d | 6beb5463c0fc038feb05911b69a52e0d961ec775 |
refs/heads/master | <repo_name>yianiss/Inheritance-Animals<file_sep>/Animal/Animal/Program.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Animal
{
public class Animals: IEnumerable
{
... | 806c7c4c2965fa96cf0a9c3d5adff71f4aeab76f | [
"Markdown",
"C#"
] | 2 | C# | yianiss/Inheritance-Animals | ed1930f7a518f6b36816648791b35717dba249a1 | 6a895c61c93e8a42f220e578c7b2a11ecceadf9b |
refs/heads/master | <repo_name>urielhass/consolidado<file_sep>/estoque/src/main/java/br/com/stock/rest/privates/PrivateRest.java
package br.com.stock.rest.privates;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("privateRest")
public class PrivateRest extends Application {}
<file_sep>/estoque/s... | 6facf371927fe09a5d82bdeb6f720205eacbc17f | [
"SQL",
"Markdown",
"JavaScript",
"Maven POM",
"Java"
] | 46 | Java | urielhass/consolidado | 6b90cfd8c9e2e20aaf2a1a5bd9149643abf950e1 | 3f23ba13c66c4c0a72a10afa4b45ea4f482af5e1 |
refs/heads/main | <repo_name>eltonsandre/cucumber-selenium-docker<file_sep>/docker-compose.yml
version: "3.8"
# VNC acesso remoto pass: <PASSWORD>
x-default-browser: &x-default-browser
tty: true
stdin_open: true
stop_signal: SIGKILL
depends_on:
- selenium-hub
volumes:
- /dev/shm:/dev/shm
links:
- selenium-hub
... | e7278eb301604b3114fabf83089368a9a17aaa02 | [
"YAML",
"Markdown",
"Gradle",
"Java",
"Shell"
] | 7 | YAML | eltonsandre/cucumber-selenium-docker | 358fe19892b8bc790d76790385a83988931b1849 | c038acedb181a706caa68dc212795ef74cc5afbc |
refs/heads/master | <file_sep><?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a grou... | a3959f22e1ecb8fa5fea1b8a55ad6e7bc9624f7d | [
"PHP"
] | 3 | PHP | Jyotirmoy0066/testing | a1a5417c102b58f53d003127e8af09a890b2cd63 | aa090238b5c70f982626fb57686849ee110f0d55 |
refs/heads/master | <repo_name>jhoanmalonzo/appdemo<file_sep>/R/app.R
app <- function() {
library("data.table", character.only = TRUE)
library("DT", character.only = TRUE)
library("lubridate", character.only = TRUE)
library("pipeR", character.only = TRUE)
library("purrr", character.only = TRUE)
library("RColorBrewer", ch... | 49869e3c48259c4ac94bf497ccf9862f05bbdbea | [
"R"
] | 1 | R | jhoanmalonzo/appdemo | c9370e1fb0ffcaaea64d2373487cafb121601be7 | f1011a6c5edeb7cc8de7a025bbdddbd762267c29 |
refs/heads/master | <repo_name>Karlushin/NothingToSeeHere<file_sep>/NothingToSeeHere/Game.cpp
#include "Game.h"
void Game::Resize() {
delete[] pixels;
window.Resize(width, height);
pixels = new int[width*height];
}
void Game::Initialize() {
width = 800;
height = width*9/16;
window.Initialize(100, 100, width, height, TEXT("newWindo... | 18875de76e3c6b91a5dbf7c89c55ac9854964513 | [
"C++"
] | 5 | C++ | Karlushin/NothingToSeeHere | 98b6fa6a813538153c19e0b3e9ddb06a14524a4b | e52a932a4fb650dd6a786bf28f153e1ff59bfe9b |
refs/heads/master | <repo_name>evturn/bootonic<file_sep>/scripts/build.js
process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';
process.on('unhandledRejection', err => {
throw err;
});
require('../config/env');
const path = require('path');
const chalk = require('chalk');
const fs = require('fs-extra');
const web... | 135410843a6fe37fec5e9a7acdb32ed705fa3f96 | [
"JavaScript"
] | 2 | JavaScript | evturn/bootonic | bdd10811f00d0017389de144ed1d3910e4ba82e2 | 4ea35a3205d1d9122ee06c40a554c1dbc508f084 |
refs/heads/main | <repo_name>eventhorizn/php-simple-api<file_sep>/start.php
<?php
require 'vendor/autoload.php';
use Dotenv\Dotenv;
use Src\Database;
$dotenv = Dotenv::createImmutable(__DIR__);
$dotenv->load();
$dbConnection = (new Database())->getConnection();
// test code:
// it will output: localho... | b4214a5e01d4aedfea8c2b0fe1369596e4ca7c9d | [
"Markdown",
"PHP"
] | 2 | PHP | eventhorizn/php-simple-api | 1ee0d50e98ede1945b127c22e48bd6b070c6c408 | b4beae7bdc0f01bbeeef0a0acf88f0338b4d9633 |
refs/heads/master | <file_sep>import Home from './components/Home.vue';
import About from './components/About.vue';
import Service from './components/Service.vue';
import Contact from './components/Contact.vue';
import Register from './components/Register.vue';
import UserSignup from './components/UserSignup.vue';
import Login from './com... | 46046808ccc8ec67b2feb3e24963627a1fc1c60b | [
"JavaScript"
] | 2 | JavaScript | Enov8-org/MYCSCORE-WEBSITE.. | 3de9fe71e299d09f3b252750baaadda98e335140 | 69144c551afeccd84eb767243fb46b27ede1fa53 |
refs/heads/master | <repo_name>grantp71/Fortune-Cookie2<file_sep>/main.py
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licens... | fe20e4d58e6dd8cee243c031d9a969c0fb9311c5 | [
"Python"
] | 1 | Python | grantp71/Fortune-Cookie2 | a8097971b68369b24bde8ac4048b23e153d8c9fe | c081d4702b4d73418c61cc4520fab1111d970941 |
refs/heads/main | <file_sep>import random
def main():
number = random.randint(1,21)
enemy = random.randint(1,21)
winlose = True
print("У вас " + str(number) + " очка(ов).")
while True:
choice = input("Будете брать карту?\nВыберите Y или N")
if choice == "y":
number += random.randint(1,11... | 68c1cf51193b9aba875d1f4c6fdd06d00d640850 | [
"Python"
] | 1 | Python | Kroko20/blackjack | 945c41fc1548b7b357acad6abdf4bf5c05de9ac5 | 7e7b9f917fd2963645a3b785c6a95337f0dc3e13 |
refs/heads/master | <repo_name>IvanHenriquez96/Portafolio<file_sep>/README.md
## Ver portafolio en linea!
Link: https://ivanhenriquez96.github.io/Portafolio/
<file_sep>/src/App.js
import React from 'react';
import Navbar from './components/Navbar';
import Titulo from './components/Titulo';
import SubTitulo from './components/SubTitul... | 35fbbf34f44b84ee0c3b12f7c59c07adc0439b40 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | IvanHenriquez96/Portafolio | 0f9b148227de77b83b7dd9fb46dbac2487cf7450 | 11df29a161d7826463a8bda277183fd2e769ad6d |
refs/heads/main | <file_sep>package com.example.unitconverter;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.EditText;
import android.widget.ImageView;
import android.widge... | acccd812a1a007548bbc8f48c46488622f819abf | [
"Java"
] | 1 | Java | TEJASTONDASE/UnitConverter | e5925c4175ae639e431012aff3f10d3d50e663a0 | 000901398e39bb158b17336a5535221a8ea10eed |
refs/heads/main | <file_sep># determiner
A Brand New and Simple Determinant solver
In This Project you can solve any determinent problem easily
<file_sep>#This Script is programmed by mr Dennis At Mr invisible Labs
#This Script Calculate the determiner to solve mathematical Equations..
#Declarations
echo "Determinent Solver Ver... | bf0231615767a6d923acf29bccee848e098fa882 | [
"Markdown",
"Shell"
] | 2 | Markdown | danish-mar/determiner | aa93e3495e3bb7b6813e45e8a653ef514fff9b04 | 7ef467575e7a0d6f26208cc36a00202f53a2076a |
refs/heads/master | <repo_name>Akshay1906/Spring-Boot-Projects<file_sep>/splitting-records/src/main/java/com/example/splittingrecords/model/PersonDetails.java
package com.example.splittingrecords.model;
import javax.persistence.Entity;
@Entity
public class PersonDetails {
}
<file_sep>/Hotel-Management-System-API-Project/src/main/ja... | 0c207c7f3ec29001d9a49d6ff7a995be1994b0e1 | [
"Java",
"Dockerfile",
"YAML"
] | 31 | Java | Akshay1906/Spring-Boot-Projects | b7bdc79c952e74ba28370430ae5f7c8cabd15ec2 | 7e7c156e6ba7331c998ef748e06b67c064186bc7 |
refs/heads/master | <repo_name>janekzieleznicki/NaukaCpp<file_sep>/src/statki/menu.h
#pragma once
#include <Magnum/Platform/Sdl2Application.h>
#include <Magnum/DefaultFramebuffer.h>
#include "../magnumimgui/MagnumImGui.h"
#include <imgui.h>
using namespace Magnum;
class MainMenu : public Platform::Application
{
public:
explicit Main... | 8291b7480588b660c07b3af442ef24d417b0b225 | [
"Markdown",
"CMake",
"C++"
] | 13 | C++ | janekzieleznicki/NaukaCpp | b198483d8506c1f8753305b7c9e0fb1036bd48a5 | f26bbf5d0fc90e1aef7b7073c75f16fff2a8b578 |
refs/heads/master | <repo_name>Alan-Muniz/Projeto-aula<file_sep>/calculadora margem de lucro.py
# calculadora margem de lucro proporcional inverso
custo = int(input('digite o custo do produto:'))
margem = int(input('digite a margem desejada:'))
porcentagem = margem/100
proporcional_inverso = (1 - porcentagem)
preco_final = custo/prop... | fe8be95b790561fdbc5849605409c7d8d723d6c1 | [
"Python"
] | 1 | Python | Alan-Muniz/Projeto-aula | 4ad71ef8ff8c2958b528ddb2c0e5e06c86d1efa3 | c15b7784b072fbfb607aba02bfdc21431e098f1d |
refs/heads/master | <repo_name>wangkangping/redux-use-example<file_sep>/src/store/index.js
import { createStore } from 'redux';
import reducers from '../reducers';
// For debugging in google devtool of Redux
import { composeWithDevTools } from 'redux-devtools-extension';
let store = createStore(reducers, composeWithDevTools());
export d... | 0e945e6e0250a51fac081e42ffa87c5ae5da5324 | [
"JavaScript"
] | 2 | JavaScript | wangkangping/redux-use-example | 219d7364adc99804d1839d3bd5372136c70d1721 | 9a9bf2ae2dcb4be8686ea63c0ddd77ff8008b352 |
refs/heads/master | <file_sep>/******************************************************************************\
* Authors: Iconoclast *
* Release: 2013.12.12 *
* License: CC0 Public Domain Dedication ... | 153b6eaaf4a96e00279095893375ac34a96cb538 | [
"Java",
"C",
"Makefile",
"C++"
] | 13 | C | soneek/Droidsound | 5b9b8db2bc90216ee499b348db12f748df910054 | 4c9665a8e3d8ffec0f1f8bfaa3ef72982170dbaf |
refs/heads/master | <repo_name>endsh/flask-likedown<file_sep>/examples/app.py
# coding: utf-8
from flask import Flask, request, render_template
from flask.ext.likedown import LikedownField
from wtforms.form import Form
from wtforms.fields import TextField
app = Flask(__name__)
class Simple(object):
title=u'Flask-Likedown 示例文档'
... | b98966b3d238b98f7ba6fad1ce295f70173ca68c | [
"Markdown",
"Python"
] | 7 | Python | endsh/flask-likedown | 3d84effaef5334bad6d5f016d3853934597f23e8 | a665f8a9b18f307126669c002a3f9fb5d9e9c731 |
refs/heads/master | <file_sep>console.log("hello world");
//set initial value of the counter
let count = 0;
//grab the h1 that will display the current count value
let myCountElement = document.getElementById("counter")
function increase(){
//increase the count by 1
count += 1;
console.log(count);
//set the inner text of t... | 3c02e55841fadcf7149ac5d181bc0f5e7eb02dc4 | [
"JavaScript"
] | 1 | JavaScript | olea0504/vanillajs-1-mini | 976955c5cb0fa89c7499a894b7d08d15a71a2ed2 | 7a1258c4bf517f8ff9da9031d8b258464afb69d7 |
refs/heads/master | <file_sep>Template.inventory.rendered = function () {
$('#ii_purchase_date').datetimepicker({
format : "YYYY/MM/DD"
});
$('#ni_purchase_date').datetimepicker({
format : "YYYY/MM/DD"
});
};
Template.inventory.created = function(){
$('#inventory_search').focus();
Session.set('inventory_keyword', {});
}
Templ... | e200432d4f32e3a0eeb2f8a1d7e8dd27f3cd4590 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | rnecesito/labspec | a3b27c9affd205edc26cd9f7ff3e6814243514fd | 98ead082adf62d4ad52e73932a8ddca1bebac885 |
refs/heads/master | <file_sep>using System.Web.Mvc;
using Nop.Core;
using Nop.Plugin.Widgets.BxSlider.Models;
using Nop.Services.Configuration;
using Nop.Services.Media;
using Nop.Services.Stores;
using Nop.Web.Framework.Controllers;
namespace Nop.Plugin.Widgets.BxSlider.Controllers
{
public class WidgetsBxSliderController : Control... | 3b3c8623c6730f3a3d3a4e369cf283c25cede155 | [
"Markdown",
"C#"
] | 2 | C# | dongkisot/quancu | 14d62905b0a5599f1a2cdb6b15ba27ca34c4d04b | 8aa67bec821e0686a1bfd126770e71fd2d1c018e |
refs/heads/master | <file_sep>package io.saeid.compiler
import junit.framework.TestCase.assertEquals
import org.junit.Test
/**
* @author <NAME> (<EMAIL>)
*/
class NormalizerTest {
@Test
fun `remove whitespace`() {
assertEquals("sa ee d", normalize("sa ee d "))
}
@Test
fun `remove comments`() {
... | b26081eb8d63961f72683998248891fb9c421b39 | [
"Kotlin"
] | 14 | Kotlin | SaeedMasoumi/C-MinusCompiler | 9f3bc68fbda8f6f7d8a060ccaa8bad430b308ca3 | 395cd006ecdbfc622a5536492983d767b6eefac6 |
refs/heads/master | <repo_name>schraderrs/test<file_sep>/src/components/explanationpage.jsx
import React from 'react';
import '../assets/css/explanation.css';
import Tool from '../assets/img/tool.png';
import {NavLink} from "react-router-dom"
import Timer from '../scripts/timer';
import { FaClock } from "react-icons/fa";
function Explan... | d6d3964d3e44ba0f491a340e330a6783fe578095 | [
"JavaScript"
] | 15 | JavaScript | schraderrs/test | c7a9e266ac55c31ebd36e71a47c0e74a573febbc | 4e27867d78fbf85e39070aa7c751c6cd2f563392 |
refs/heads/master | <repo_name>anugrahramadhany/employee-back<file_sep>/models/employee.js
const mongoose = require("mongoose")
mongoose.connect("mongodb://student:abc<EMAIL>:55787/heroku_d869qk08", { useMongoClient: true })
const Schema = mongoose.Schema;
const employeeSchema = new Schema({
name: String,
address: String,
... | 1419d6ca314396837ebc9fc73543c440c7329d71 | [
"JavaScript"
] | 1 | JavaScript | anugrahramadhany/employee-back | 38bf0d9afe6dfda6c14be12fdf552bcd2b93f824 | 8ae0ffdf12dba82752c672d70fa7ee69624bbfd0 |
refs/heads/main | <repo_name>ahmed-el-gout/sanctum-api-laravel<file_sep>/README.md
# sanctum-api-laravel
login-sanctum-api
| aa3c6a0dc9fcd8c10ec63e779cf362a1d19194ff | [
"Markdown"
] | 1 | Markdown | ahmed-el-gout/sanctum-api-laravel | 1b35a854e26f9be35c53e7702c8dc7a1c5928dc8 | 19dd3cb7aac3909c0a051d87e1a16d959ba74361 |
refs/heads/master | <repo_name>ukroma1992/roll_the_dice<file_sep>/roll_the_dice.rb
# encoding: utf-8
# Программа, выбрасывающая значение от 1 до 6 — одну игральную кость
def show_rolling_die
100.times do
print "#{rand(6) + 1}\r"
sleep 0.01
end
end
puts "How many dice?"
number = gets.to_i
puts
sum = 0 # В этой переменной б... | 55c27034ca752643f31e3fd17928e5520f2f9dcd | [
"Markdown",
"Ruby"
] | 2 | Ruby | ukroma1992/roll_the_dice | 4f6bccb6a05548ba5b1770abc9be5e1408b5b3d0 | 596505fbdc6bfa90deaa0bb9294d863c05b62875 |
refs/heads/master | <repo_name>Stiffstream/restinio<file_sep>/dev/test/from_string/CMakeLists.txt
set(UNITTEST _unit.test.from_string)
include(${CMAKE_SOURCE_DIR}/cmake/unittest.cmake)
<file_sep>/dev/restinio/variant.hpp
/*
restinio
*/
/*!
Adoption for std::variant (c++17).
@since v.0.4.8
*/
#pragma once
#if defined(RESTINIO_EXTERN... | 9d666309be9ee863b329d059a04fe761b71186b1 | [
"CMake",
"Ruby",
"Lua",
"Markdown",
"C++",
"Shell"
] | 431 | CMake | Stiffstream/restinio | 3d5a3458ed181a0801265521a8d5d825ae3896a9 | 183807e22610c885256f7480acf68dbdb9341a0b |
refs/heads/main | <file_sep>/*eslint-disable */
const { MoleculerServerError } = require("moleculer").Errors;
const urlParse = require("url-parse");
const mariadb = require("mariadb");
const mybatisMapper = require("mybatis-mapper");
class MariaDbAdapter {
/**
* Creates an instance of MariaDbAdapter.
* @param {string} url
* ... | 67b3720870a258bfe499904229797319d4eafd63 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | yeongcoder/moleculer-db-adapter-mariadb-with-mybatis | ab90ab32d7bd6dba01a04ce05167d634648d21ea | d70f37dce981a8d58e476686b34f4b45a0fe9f4e |
refs/heads/master | <file_sep>"""Proxy Design Pattern (Made in Python 3.4.3)
This looks a bit like the state pattern. I don't think the proxy
is necessary in Python!
"""
class MyClass:
def f(self):
print("F!")
def g(self):
print("G!")
def h(self):
print("H!")
class Proxy:
def __init__(self, obj, access):
self.obj = obj
... | e89822a6b5a26a9c5ca237ae0dc19c2174d71a7f | [
"Markdown",
"Python",
"Text"
] | 164 | Python | hoppfull/Learning-Python | 43f465bfdb76c91f2ac16aabb0783fdf5f459adb | b35910f33ec350b73df85e063e5ae9f930ddbe0d |
refs/heads/master | <repo_name>mP1/j2cl<file_sep>/maven/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">
<modelVersio... | 84e75b322d8f70055b65ff027d266fb7781d2f53 | [
"Markdown",
"Java",
"Maven POM"
] | 3 | Maven POM | mP1/j2cl | 128f3d243b5d07ca1831c188cac1cffd94dd0701 | c94a11ca981df12c96818c1ea143dc037e4fbd35 |
refs/heads/master | <repo_name>jacksonsmd/gulp-markup-template<file_sep>/gulpfile-config.js
'use strict';
const base = {
assets : './assets/',
production : './public/'
};
const config = {
assets: {
html : '' + base.assets + 'templates/**/*.html',
sass : '' + base.assets + 'styles/style.scss',
icon : '' +... | 619bb03382da8c99655eb5e7d6147ef7bdd60517 | [
"JavaScript"
] | 2 | JavaScript | jacksonsmd/gulp-markup-template | c70860baa1ea3bd1d503ded8894129e854200730 | 6f32b6240a23cd21793cc025242dc5c458527a0a |
refs/heads/main | <file_sep>import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core';
import { Insomnia } from '@ionic-native/insomnia/ngx';
import { NavigationBar } from '@ionic-native/navigation-bar/ngx';
import { BackgroundMode } from '@ionic-native/background-mode/ngx';
import { AlertController } from '@ionic/angu... | 3e000361ea78719a5d7f1307d77d8b58ed20b1e2 | [
"TypeScript"
] | 1 | TypeScript | ramilcatalandomingo/yeyet | df4a2a212a18e433127118d83602d139dc92d977 | 835abdbc6b3c1f41c102f3a190c1be68d4ea4572 |
refs/heads/master | <repo_name>RosenX/MusicClassification<file_sep>/dasheng.py
#coding = utf8
EMOTION_DATASET = 'data/EmotionSongs/Dataset'
feature_types = ['mvd', 'rh', 'rp', 'ssd', 'trh', 'tssd']
rf = open(EMOTION_DATASET + '/labels.csv', 'r')
wf = open(EMOTION_DATASET + '/dashen_mp3names.txt', 'w')
label2name = {}
for line in rf:
... | 1d89f8e17905d5bed25d59d560a7f80a6a1c44ef | [
"Python",
"Shell"
] | 19 | Python | RosenX/MusicClassification | 6604ce949363c5ee0028ecbf56f1a049730610a7 | 8470d7525c8acffac0275f9d0ac4ac9846275fa4 |
refs/heads/master | <file_sep>var dem10 =
{
dg19273: { Group: "w", cx: 180, cy: 212 },
dg19274: { Group: "w", cx: 191, cy: 208 },
dg19275: { Group: "w", cx: 194, cy: 189 },
dg19276: { Group: "w", cx: 194, cy: 224 },
dg19277: { Group: "w", cx: 199, cy: 213 },
dg19278: { Group: "w", cx: 200, cy: 184 },
dg19279: { Group: "w", cx: 204,... | 0d5a98710883d49c2480fa3b652d00888b80b229 | [
"JavaScript"
] | 11 | JavaScript | spencer72/viz | 9670fdc64b1add9b88ff6c85a320b5a4fe60b90f | e3f505f9f66835aae31f9e66e9decdfa59ce4236 |
refs/heads/master | <file_sep>// ==UserScript==
// @name Go Away Jenkins
// @namespace http://Go.Away.Jenkins/
// @version 0.1
// @description Replaces the jenkins logo on the inner pages with a smiley face
// @match http://dev-build-01.gms.hosts.turner.co.uk:8080/*
// @copyright 2012+, Me
// @require https://ajax.go... | e6e2e1711db47b0e12426316834652b3c66c3e7d | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | tomgould/tampermonkey | d37b589cc2c4a50fe5e8cf110ad4a9b604d9c211 | 45d0738c13d38510d033fc2728060638a65970f1 |
refs/heads/main | <file_sep>package Progetto;
import java.util.ArrayList;
public class ContaGenerazioni {
public ContaGenerazioni() {
}
public static int ricorsiva(Imperatore albero, ArrayList<Integer> contatore) {
contatore.add(1);
if (albero.getFigli()!= null) {
int numerofigli= albero.getFigli().size();
... | 61b4511d8a087460c8372800f7cf1b569473775d | [
"Java"
] | 1 | Java | Fratabbacchio/GUI | 3aca999737bcb29e819782dc8ad9a6af1bfb3119 | fc79ab563d33e7aaab5797476e28e8de4545b471 |
refs/heads/master | <file_sep># Author : <NAME>
# Python file to remove bad words which would come while transcribing speech to text
# from Times of india news paper data
# !/usr/bin/python -tt
# -*- coding: utf-8 -*-
from nltk.tokenize import sent_tokenize
import subprocess as sbp
import os.path
import linecache
import cPickle as pickl... | a262ea97cb2db746ffd1929f56b2c900d2ad1bac | [
"Markdown",
"Python",
"Shell"
] | 6 | Python | DHRUVPATWA/scrape_toi | a9c4890ef625223154e4f5d19fb1e88c35d663cf | affdfa513df7d2251c4ce756ec47494bfc48b787 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CommandPatternDemo
{
class ConcreteObjectTurnOff : ICommand
{
public void Execute()
{
TurnOFf();
}
public void TurnOFf()
... | 07623d39ceb28890cea58828cc869d8ddadf7e1f | [
"C#"
] | 4 | C# | NicholasFreitas/CommandPatternDemo | 1b63b0faa9f5e116850c4c17bcd97a5497de93e9 | 4a5698a01a5ba927eb009a3c2096dfb19c38c44f |
refs/heads/master | <file_sep>from ReusableRequest import Request_Get
from Utility.ReadExcel import readExcel
import unittest
class Get_Test(unittest.TestCase):
get_req = Request_Get
response = get_req.send_get_request(readExcel('../Data/data.xlsx','Sheet1','B2'))
assert response['City'] == readExcel('../Data/data.xlsx','Sh... | 5cb950a36f5a1312df76cb14427ee4c6c0cafbdf | [
"Python"
] | 2 | Python | Raushanraj77/Raccoon_Python_WebServices_Framework_V5 | 18679927918a5fbdd62ff0f39428ee59578ea525 | 36da588e850b3af0b0512ee00c9cf8109eda5ab0 |
refs/heads/master | <repo_name>Cmagpayo/Thesis<file_sep>/main/java/com/example/elements/MainActivity.java
package com.example.elements;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity... | 4153d7904c8be610d2de561d3af330567c15ad66 | [
"Java"
] | 1 | Java | Cmagpayo/Thesis | 1aee74ac946448cffc3ccd2a1d09a80dc5664c54 | 409134ef2170cabffd742f5281bdc11f0f42fafe |
refs/heads/main | <file_sep>sudo pcs constraint colocation add VirtualIP LimuxAOAG INFINITY with-rsc-role=Master<file_sep>sudo pcs cluster enable --all<file_sep>sudo pcs cluster setup --name LinuxCluster LinuxProd LinuxSyncHA LinuxConfig<file_sep>sudo pcs resource create LinuxAOAG ocf:mssql:ag ag_name=LinuxAOAG meta failure-timeout=60s ... | 5be6dada22bc9f914a3a049880346c1b9140170d | [
"SQL",
"Shell"
] | 26 | Shell | abaldeg/sql-server-2019-alwayson | 7f40cd14cca5fa158d0f71997484a6f77c6b5292 | 8ecc52840e33a24aca454a397bace8b1e0d2d85b |
refs/heads/master | <repo_name>israelbond/Galaxy<file_sep>/star.h
/* <NAME>
* July 7 2017
* */
class star
{
public:
star();
~star();
protected:
planet * planets;
};
<file_sep>/galaxy.h
/* <NAME>
* July 7 2017
* */
class galaxy
{
public:
galaxy();
~galaxy();
protected:
star * solar_sys... | 27ddc8560d9b24fb2c66130394f0634092c97506 | [
"C++"
] | 4 | C++ | israelbond/Galaxy | c424156fc684ef3c65a4ff7910d8245721d12ab9 | e26c68dc33633f520bef94d9ef4ef0bb03bc4e9d |
refs/heads/master | <repo_name>jonmcgill/contentmint<file_sep>/src/js/components/misc/misc.template.js
Vue.component('content-template', {
props: ['fields-component', 'template', 'stage'],
template: '',
data: function() {return {
sidebarOpen: true,
toolbarOpen: true,
scale: false
}},
compute... | 742bfaa8b693405b07626d7405b773b65e946720 | [
"JavaScript",
"Markdown"
] | 82 | JavaScript | jonmcgill/contentmint | 381d612ee1364479fbe67a621fcb6c7a3d9fb820 | a5f01ff3d98a8e9fd6db6ec50323fb4d1d6f06c9 |
refs/heads/master | <repo_name>taroyuyu/HoverButton<file_sep>/HoverButtonDemo/AppDelegate.swift
//
// AppDelegate.swift
// HoverButtonDemo
//
// Created by fancymax on 16/1/20.
// Copyright © 2016年 fancy. All rights reserved.
//
import Cocoa
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet weak ... | 479e58cabd1ecf0671e14286dbf3136abbc90825 | [
"Swift",
"Markdown"
] | 3 | Swift | taroyuyu/HoverButton | 88856f3436ef62daee4bbe82da21e3dbf52199f9 | 4c177405a98dd26ecf2c471f90256c185b64d013 |
refs/heads/master | <repo_name>thismad/SeriesDeuxiemeSem<file_sep>/Serie2/cs108/RedDisk.java
package cs108;
public final class RedDisk implements Image<ColorRGB> {
public static final Image<ColorRGB> IMAGE = new RedDisk();
@Override
public ColorRGB apply(float x, float y) {
double r = Math.sqrt(x * x + y * y);
... | e14d3f4502cf9b39ad0a52b671145947464c64e5 | [
"Java"
] | 4 | Java | thismad/SeriesDeuxiemeSem | e5c4a7543489a6dca97845e70a1cbcc045d54333 | d7e547fa91dbb0d92d2a11655cefb8975c0049b8 |
refs/heads/master | <file_sep>package com.faceunity.fuliveaidemo.renderer;
import android.graphics.Bitmap;
import android.opengl.GLES20;
import android.opengl.GLSurfaceView;
import android.opengl.Matrix;
import android.util.Log;
import androidx.lifecycle.Lifecycle;
import com.faceunity.fuliveaidemo.gles.ProgramTexture2d;
import com.fac... | 375383de1da679854377e1bc1500183414877a7d | [
"Markdown",
"Java"
] | 6 | Java | ShowerBoy/FULiveAIDemoDroid | 9c58c2254f70ddc0758b460ece2b43d51ac19030 | 3f04892154c383afce4a6d63f387351a311e3604 |
refs/heads/master | <repo_name>kahaanshah/fpl-guru<file_sep>/run_complete.py
import fpl_load_manual
import get_understat
import merge_understat_fpl
import understat_players
import understat_teams
import create_xp
import create_team_pulp
import create_team_random
if __name__ == "__main__":
fpl_load_manual.run_fpl_load_manual()
get_under... | 34c04575aaca28711aa58319bcb7e791ac6c1fe8 | [
"Markdown",
"Python"
] | 11 | Python | kahaanshah/fpl-guru | 7fe3dba339cfe0a0c86fe3849b7ea5cf1cc91044 | 3b415ce30f864d5b0a0dd1d981ef775314860829 |
refs/heads/master | <repo_name>snide/gatsby-kibana-starter<file_sep>/src/components/navigation_links/explore_links.js
import React from 'react';
import { pinExtraAction } from './pin_extra_action';
export const ExploreLinks = [
{
label: 'Canvas',
href: '/#/layout/nav-drawer',
iconType: 'canvasApp',
isActive: true,
... | f83047fa9093a0955882040c6a6f3ba0ccc62199 | [
"JavaScript"
] | 3 | JavaScript | snide/gatsby-kibana-starter | 837d63373d05abdeef572a1ed38a8c9c49798533 | 38b77a504d65ba8b0b429d902241c239df8e8ac0 |
refs/heads/master | <file_sep>
var config = {
lines: [
"你是航船我是帆,",
"我等你归航进港湾,",
"洗去征尘绽笑脸,",
"揽你入怀睡梦甜,",
"祝你天天随心愿,",
"快乐幸福到永远!",
"让思绪的希翼载着幸福,",
"驶向爱和温暖的港湾!",
],
date: "2019-03-01 20:15:0",
names: ["王庆", "丽萍"]
}
| 9cd5f00b14a12b3565d23a4d7f9ad466efb4bce6 | [
"JavaScript"
] | 1 | JavaScript | YouSoulStar/Qing | 395d0bdb851b425d2bf7403cd0b97ab707ae34a3 | 26af96c6a2bd8feffb108d0dc77955ed3cf86623 |
refs/heads/main | <repo_name>StarboyDH/Tic-Tac-Toe<file_sep>/README.md
# Tic-Tac-Toe
###Tic-Tac-Toe game with Python (my first try 🤩)
You will play as **X** and the machine plays as **O**.
Enter a number from 1 to 9 to choose the field you want, according to the following:
1 | 2 | 3
---------------
4 | ... | 9165d40baab96dc462742473d3ee004bde15c5b7 | [
"Markdown",
"Python"
] | 2 | Markdown | StarboyDH/Tic-Tac-Toe | 366ea6f8424ec87cf648cd3a2d907f7c5ee0c3f3 | 8230639fd6d3bcaae7e45608a2f477efcf630cd6 |
refs/heads/master | <file_sep>import { getSnapshot, onSnapshot, onPatch } from 'mobx-state-tree';
import { WishListItem, WishList } from "./WishList";
it('can create a instance of a model', () => {
const item = WishListItem.create({
name: '<NAME>',
price: 28.73,
})
expect(item.price).toBe(28.73)
expect(it... | 4c31583b3602cee80eb78c83dfdf269d40f9f07c | [
"JavaScript"
] | 6 | JavaScript | chengcyber/mobx-state-tree-demo | 460b9c6e03781a19793cb8350242cbe7d1bd336c | e970f8691206f68e14fc8cefc4318faa377b4203 |
refs/heads/master | <repo_name>15Edwin/fppbw<file_sep>/application/controllers/Display.php
<?php
class Display extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->library('email');
}
function index() {
$this->load->view('index');
$data['err_message'] = "";
}
function login(){
$this-... | e3a053445524ba4206b2ee19355e0b80da4908b8 | [
"PHP"
] | 1 | PHP | 15Edwin/fppbw | a51f7161bbc5b6036e62608e2ce3d7894be4f1ee | 4e2c02a380eb271fac8e58b18ddecc5244c574af |
refs/heads/master | <file_sep>import React from 'react';
import { Container, Text, Separator } from './styles';
export default function Order() {
return (
<Container>
<Text>Your order has been placed</Text>
<Separator />
<Text>Thank you for shopping with us!</Text>
</Container>
);
}
<file_sep># Rocketseat's ... | 4c7b747911a1198b01c519002ca6ec20dc293c18 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | romluc/rocketseat-gostack2019-module7 | ae3f5ece1c0b9cfba152262b7dc61378eacba6b9 | ff8d35edec2404f59fcc4fe5e9563ae57ca13253 |
refs/heads/master | <file_sep>package nl.synappz.fhir;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;... | 7451a4d119bf84f2a82a910e3db751232b59fc04 | [
"Markdown",
"Java"
] | 5 | Java | chrisvoronin/FHIR-Android | d8b61ea7374e02a75fa7e0a1ecbd44147f589d97 | 2f29931d130e6491449fc0da08d69d81589f6382 |
refs/heads/master | <repo_name>esmaeilinia/commcare-hq<file_sep>/custom/enikshay/integrations/ninetyninedots/utils.py
from __future__ import absolute_import
from __future__ import unicode_literals
import six
import uuid
from dateutil import parser
from pytz import timezone
from corehq.form_processor.interfaces.dbaccessors import CaseAcce... | 85f251ca11be73d9107a19a85481e33173771977 | [
"SQL",
"HTML",
"Markdown",
"JavaScript",
"Python",
"Text",
"Dockerfile"
] | 162 | Python | esmaeilinia/commcare-hq | 86447bcb6086b4f64f0a252b9b920e3c15a7d98e | 7dae43c3aef8cbd79df1ecb5b4a4127107458fc4 |
refs/heads/master | <repo_name>maslick/zvooki<file_sep>/go.mod
module github.com/maslick/zvooki
go 1.13
require (
github.com/gin-contrib/static v0.0.0-20191128031702-f81c604d8ac2
github.com/gin-gonic/gin v1.5.0
)
<file_sep>/zvooki.go
package main
import (
"fmt"
"github.com/gin-contrib/static"
"github.com/gin-gonic/gin"
"io/ioutil... | e361e623aee46957c2a2908feba537422b2e24bd | [
"Go",
"Go Module"
] | 2 | Go Module | maslick/zvooki | 61ad6adf426d10b078055ab460d89fb06b569254 | f18c3b382cb4769173a0fa80a1849c3628326b29 |
refs/heads/master | <repo_name>Gespon/PongProject<file_sep>/server/game.js
module.exports = class Game {
constructor() {
this.started = false;
this.playerSize = { width: 0.01, height: 0.08 }
this.playerWallOffset = 0.01;
const ar = 16 / 9;
const size = 0.02;
this.ballSize = { width: size, height: size * ar };... | 53e1547d08f89a424a2fb7c1b9e59adb394aeaa4 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Gespon/PongProject | 7a64d4339697e9928e0270ff35aa1c3f882366a6 | 6a6e78d48238cc8b5648315a40c9b198b22989e5 |
refs/heads/master | <file_sep>/*global describe, require, it, expect */
describe('Example Test Suite', function(){
"use strict";
it('Should Execute Example Test', function(){
var string = 'Test String';
expect(string).toBe('Test String');
});
});<file_sep>/*global define */
define(
[
'jquery',
'marionette',
... | 411ad2402354627f3641e0c4adad63afc878e386 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | iamchrismiller/js-boilerplate | e0bf29966969be9b9c69cc79087287ab89eb3419 | 550f684512479e1ed9b99a70fc54a59b0ead1e93 |
refs/heads/master | <file_sep># -*-coding:utf-8 -*-
'''
Created on 2017. 9. 11.
실행파일 만들기 위한 setup
1. pip install cx_Freeze
2. project folder 에 setup.py 생성
3. python setup.py build
@author: cspri
'''
import sys
from cx_Freeze import setup, Executable
setup(
name = "news-scrapy",
version="1.0",
description... | b35e4f5ecea7acb9dc7035d223603349bb112c07 | [
"Markdown",
"SQL",
"Python",
"INI"
] | 15 | Python | jcspring7/Elec | 25df86ea5b06b562dc1ed7aceb7ad05bfc45b34c | 295e0304d23779b9d1510bffc0a736f7db044314 |
refs/heads/master | <repo_name>VINO42/SpiDemo<file_sep>/spiExtendb/src/main/java/xyz/spacexplore/SpiImplementsB.java
package xyz.spacexplore;
public class SpiImplementsB implements SpiInfo {
@Override
public void fuckMyLife() {
System.out.println("funckMyLife B");
}
}
| f6c7dcbf519930729d32e853d6c861bd1b676139 | [
"Java"
] | 1 | Java | VINO42/SpiDemo | a40771c78c07ff0a5ad0de3cd5c2c33cbc8e62d9 | 5f4539a285884110dc4cc8a05fc466a56398e09e |
refs/heads/master | <file_sep>var details=document.getElementsByClassName("cache");
console.log(details[3]);
cacherTout();
details[0].style.display="flex";
function cacherTout(){
for(var i=0;i<details.length;i++){
details[i].style.display="none";
}
}
function afficher(numb){
cacherTout();
details[numb-1].s... | 86794377e6140b3b5daa684b126ba219d68e9d04 | [
"JavaScript",
"SQL",
"Markdown",
"PHP"
] | 20 | JavaScript | bircof1/Correction-du-projet-Gestion-Moto | 9d74ac0b42dde316c8f0787697a29accd76a5cf0 | 0ebcff45da2e1722615292ca9dbca2516f26dd46 |
refs/heads/master | <file_sep>all:test01 test02 test04
CFLAGS+=-g
test01: test01.c
${cc} ${cflags} -o $@ $< -lpthread
test02: test02.c
${CC} ${CFLAGS} -o $@ $< -lpthread
test04: test04.c
${CC} ${CFLAGS} -o $@ $< -lpthread
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <pthread.h>
... | 260c0c44734e973a14a69af7245db7b3183f707c | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 14 | Makefile | picoflamingo/ConcurrentProgramming | c24e34aa74be6cdd890eb951c2f18e71ab9eb025 | c63cc049169dcfffe323805bd6c0f4032023a146 |
refs/heads/master | <repo_name>zhaotingzhi/matplotlib-samples<file_sep>/scatter_squares.py
import matplotlib.pyplot as plt
"""绘制散点图"""
# x_values = [1,2,3,4,5]
# y_values = [1,4,9,16,25]
x_values = list(range(1,1001))
y_values = [x**2 for x in x_values]
# 点默认为蓝色点和黑色轮廓,可通过edgecolor='none'去除轮廓,自定义颜色 c=
plt.scatter(x_values, y_values,c=(0... | 87a39d6bb24ef0f800aae462ceeb9a8058357da8 | [
"Python"
] | 1 | Python | zhaotingzhi/matplotlib-samples | b4a8a0967479e19ea9c0dbf0786a7aacc51379f9 | f69161d630c09f255cc69c416a3e265f3ac8c881 |
refs/heads/master | <file_sep>package com.sdhh.mapper;
import com.sdhh.po.Finance;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface FinanceMapper {
int deleteByPrimaryKey(Integer id);
int insert(Finance record);
int insertSelective(Finance record);
Finance selectByPrimaryKey(Integer... | 4019a8cf2c73853491b04423ac92685c61021628 | [
"JavaScript",
"Java",
"Maven POM",
"INI"
] | 17 | Java | sunshine2813/MybatisTest | 861303d7238bee7c6a75269142bc609cfce76d58 | 4cd08cac95be78338c9d6a8442328d671f371041 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Net;
using Google.Apis.Customsearch.v1;
using Google.Apis.Customsearch.v1.Data;
namespace CCrawlerTest
{
class Program
{
public static void testGo... | 54ee95bdb3b746469336d552a84b8f6c629f1b4c | [
"C#"
] | 1 | C# | ivm23/clickbait | a5c4813ed5e3bb30473c1474cc6feb2fc72e46a9 | 1600eb470aa03bc54aba7ed9746510ba8c49fdb7 |
refs/heads/main | <file_sep>const addCards =[
{
id:1,
imgsr:"../../Images/1.jpg",
nop:"Maala",
units:1,
price:"₹200",
mrp: "₹400" },
{
id:2,
imgsr:"../../Images/2.webp",
nop:"Necklace1",
units:1,
price:"₹400",
... | c5a43e3f28da3e9258cdb3f40d58df82b75ef96c | [
"JavaScript"
] | 12 | JavaScript | simran606/website | 3db04a8ff717d551d03d8ea3cbf99383803f81d3 | 641e725bfa9d3e1e656d0b8b056daa08accb56cc |
refs/heads/master | <file_sep>#ifndef ACCOUNT_H
#define ACCOUNT_H
#include "stdafx.h"
class Account
{
public:
Account(); //CTOR
std::string getFirstName();
std::string getLastName();
std::string getBirthday();
std::string getEmail();
std::string getPassword();
int getRecoveryQuestion();
int getRecoveryAnswer();
void s... | 07e200ffb47744241e7f017d4f0d9ef90d64960a | [
"Markdown",
"C",
"C++"
] | 14 | C++ | CSE360Team10/Project | 4a2c1c47fb8a79bca29398934d467cb3ef6ba3ee | 9ed0dbbe36a284a9bb196472ebcdf6dd5d668568 |
refs/heads/master | <repo_name>ilyakava/pytorch-CycleGAN-and-pix2pix<file_sep>/datasets/create_RT_data_skimage.py
from __future__ import print_function, division
import os
import numpy as np
from PIL import Image
from skimage.io import imread
from skimage import data_dir
from skimage.transform import radon, rescale, iradon
from tqdm im... | 64ed1b156048c06e1c98fa0200d3fa135522d1d7 | [
"Python",
"Shell"
] | 14 | Python | ilyakava/pytorch-CycleGAN-and-pix2pix | da9dfd3474364ac89501b872e63504613190a992 | ec7e2b9b8cb1342b3a624902a66a2e29fce4075f |
refs/heads/master | <repo_name>SankarsanChoudhury/PythonScripts<file_sep>/21.ForLoop.py
x=["Sankarsan",100,"Subhasmita"]
for i in x:
print(i)
"""
It will print like below
S
A
N
K
A
R
S
A
N
"""
y='SANKARSAN'
for j in y:
print(j)
"""
It will print like below
SANKARSAN
SANKARSAN
SANKARSAN
SANKARSAN
SANKA... | f92ef0f782c776acf0e69a0014ed88fc3d85e2c6 | [
"Python"
] | 55 | Python | SankarsanChoudhury/PythonScripts | 7ec4f31bfb69e20ee08a7c13ccb46ae1a2c28b80 | fcf1181fd2a5886cac79d566746d223b8b031588 |
refs/heads/master | <repo_name>Jascha-Sundaresan/MusicApp<file_sep>/app/helpers/application_helper.rb
module ApplicationHelper
def auth_token
html = '<input type="hidden"'
html += 'name="authenticity_token"'
html += 'value="<%= form_authenticity_token %>">'
html.html_safe
end
def name_form_entry(type)
... | edd371e1153566ae6213be8984740701f8059c1a | [
"Ruby"
] | 2 | Ruby | Jascha-Sundaresan/MusicApp | c36992efcf819224137f9eabdfed593fc2a55237 | 8016e6bd43f04d36b6dcdc83b8f9e2c582fe08c0 |
refs/heads/master | <file_sep>using Neo.SmartContract.Framework;
using Neo.SmartContract.Framework.Services.Neo;
using System.Numerics;
using Neo.SmartContract.Framework.Services.System;
namespace Neo.SmartContract
{
public class RentContractCreatorContract : Framework.SmartContract
{
// add getting req hashes and conc... | 3a9dbf1b87011dda5f3e169fed8fe204f963a10e | [
"C#"
] | 4 | C# | IsaAliev/GQW-Contracts | f2b554e8af4dfaa30abec6600d0cb321f852f49f | a06771b49b6e0df2a3c66f8b81c14d143e5b1fcb |
refs/heads/master | <repo_name>dorothythurston/contacts<file_sep>/app/components/phone-number-field.js
import Ember from "ember";
export default Ember.Component.extend({
numberField: Ember.TextField.extend({
keyPressEvent: function(e) {
if (e.keyCode < 48 || e.keyCode > 57) {
e.preventDefault();
}
}
}),
... | 157b40271d812cfa25979de235fba625dd2e0720 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | dorothythurston/contacts | 99d2e240ab3333aedf02306838f4330b99c5784c | c86a23080793ca09177582206cfb1f1d0812b117 |
refs/heads/master | <repo_name>TheSp00k/Weatherify<file_sep>/README.md
# Weatherify
Hi! This app shows the current weather information on google maps. Also you can categorize by country and find city by google places autocomplete results.
### APIs used:
* **google maps api** for the map component https://developers.google.com/maps/docum... | 04afa195877665b0209630e3bd66c5c8423d3411 | [
"Markdown",
"JavaScript"
] | 11 | Markdown | TheSp00k/Weatherify | cab28bd09456912312776d9f676ba48993ecf6e4 | cd72e1a67c2b9fcb909585e59d1f3be18af2ba31 |
refs/heads/master | <file_sep>package com.rb.demo.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rb.demo.entity.User;
import com.rb.demo.mapper.UserMapper;
import org.springframework.stereotype.Component;
import org.springframework.stereo... | 157838c8de829272b35ad6e072f5b658dfb09e51 | [
"Java"
] | 3 | Java | rb8703/demo | a5b57e663dc10f043dcf6ce6c67545cd65dde1bd | 4230306c31de0e59f4be77174d59a99e90b97d62 |
refs/heads/master | <repo_name>alismed/js-35<file_sep>/test/routes/produtos.js
var express = require('../../custom-express')();
var request = require('supertest')(express);
describe('#ProdutosController', function() {
it('listagem de produtos json', function(done) {
request.get('/produtos')
.set('Accept', 'application/json')... | 388aa7ffacd1602f1badab93ec82033c475fb212 | [
"JavaScript",
"SQL",
"Markdown"
] | 4 | JavaScript | alismed/js-35 | eb8681224a2c8f55b76f8fad516515bd463d3b75 | 5684b83831d7041947849ef31be67d21cfbac708 |
refs/heads/master | <file_sep>__init__(self, ...)
This method is called just before the newly created object is returned for usage.
__del__(self)
Called just before the object is destroyed (which has unpredictable timing, so avoid
using this)
__str__(self)
Called when we use the print function or when str() is used.
__lt__(self, oth... | 4f313d7a5a141584a0f28e93bb1e3c9bffa3daec | [
"Markdown",
"Python"
] | 21 | Markdown | GKPython/A-Byte-of-Python | a11587b158225363c6ae900da50652046b4ab90d | f19ea8f39589dc073d3e599fe14e8172dee87eb3 |
refs/heads/master | <repo_name>Hyunji-likelion/ajax_test_form<file_sep>/app/controllers/home_controller.rb
class HomeController < ApplicationController
def index
@view_post = Post.all
end
def create
new_post = Post.new(title: params[:title], content: params[:content])
new_post.save
redirect_to '/'
end
def ... | 1bf99fd54d8601782ce0af8b1b11cf611f5a07fc | [
"Ruby"
] | 1 | Ruby | Hyunji-likelion/ajax_test_form | 80a9de8059c89f7d629e6c3945aefd826188c68f | c9076f8424b4a505dd503edff0b01fd65d4499ca |
refs/heads/master | <repo_name>Namirual/ohtu2017-miniprojekti<file_sep>/src/main/java/ohtu/PodcastDao.java
package ohtu;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
public class PodcastDao {
private String... | 06d759ef72754b6a5487984c4f208464429c554c | [
"Java"
] | 1 | Java | Namirual/ohtu2017-miniprojekti | 50e1d899fa14979f216bb9218e3977d0f4da2fe9 | 8158519884859bc2669c914d96a6e919770748ae |
refs/heads/cakephp-challenge | <repo_name>shootaa/quelcode-cakephp<file_sep>/html/mycakeapp/config/Migrations/20200802090037_CreateReviews.php
<?php
use Migrations\AbstractMigration;
class CreateReviews extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* https://book.cak... | 1001f857678aa441e71dd477dd47f2c6a2ad35cd | [
"PHP"
] | 4 | PHP | shootaa/quelcode-cakephp | 6d599441973e5779fac44485174b5db57f00668c | 475ae34df2846063d1d5431e446b8839efd6a63f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.