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># gist-getter #
This repo holds a small script `get_gist.py` that retrieves the latest revision
of GitHub Gists given a filename.
The GitHub username is hardcoded as `joesingo` in the code. It only works for
publicly accessible gists, and if a gist contains more than one file only the
first is returned.
##... | 474d1a961e92befeee29c44ea0fa982efa019fef | [
"Markdown",
"Python"
] | 3 | Markdown | joesingo/gist-getter | fe0c8b049ea3d74c09929157d3b03ac595e6aceb | acc21035bca99df7b71bf6aa6ce8cea77c940f3b |
refs/heads/master | <file_sep>import pygame, sys
from pygame.locals import *
pygame.init()
WIDTH = 800
HEIGHT = 600
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption('POONG!')
FPS = 30 # frames per second
fpsClock = pygame.time.Clock()
# set up colors
BLACK = ( 0, 0, 0)
WHITE = (255, 255, 255)
BALL_S... | b2babecb7eab469742b5a3853de5568310635a1c | [
"Python"
] | 1 | Python | rtrigg/poong | 34ad7ee9887bc90e8d19d61b9a5ff5a9702c3952 | a0f2bf0f48d7425f846f5406a09284ceffba93a2 |
refs/heads/master | <file_sep>/*
============================================================================
Name : Passing_parameters_to_the_program_via_a_text_file.c
Author : =^_^=
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================... | 7c2a47838fed3c592bb514e72e7481b0e1ba25e7 | [
"C"
] | 1 | C | DmitryNest/Passing_parameters_to_the_program_via_a_text_file-settings | cf01b9879a6aa9f470cef56cce33c8678905ebce | 6afeb7988bc6e6520e3ed243520b3d880a43ca4e |
refs/heads/main | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerLife : MonoBehaviour {
[SerializeField] public GameObject SpawnPoint;
private bool respawn = false;
[SerializeField] public int PlayerLifes;
[HideInInspector] public int PlayerHitpoints;
// U... | da665758407dcf7bc55b27f3ce29f726c2313606 | [
"Markdown",
"C#"
] | 5 | C# | dusthijsvdh/BGEMBJATWDHATBTGIA | 3985676f4ecd730952980f4be16a97ffae976ddb | f33b124bcf3a30a0f312f529ff8f473867662a28 |
refs/heads/master | <file_sep>"use strict";
module.exports = function(app) {
var todoList = require("./controller");
app.route("/").get(todoList.index);
app.route("/users").get(todoList.users);
app.route("/users").post(todoList.createUsers);
app.route("/emails").get(todoList.emails);
app.route("/mobiles").get(todoList.mo... | 4f7a956a2be65f67f224929ae577d74f1f9bf897 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | yacob89/registration-server | 8576c4a761472b91c51b5addf587d9db7ba7bfdb | f96e6099b98808e432c45b5bc355e206274b3c91 |
refs/heads/master | <file_sep>package com.krayapp.weatherapp
data class DataStorage(val name: String, val color: String) {
}<file_sep>package com.krayapp.weatherapp
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
class MainActivity : AppCompatActivity... | e84b594584ef1a393acfee60471c55e026bec6af | [
"Kotlin"
] | 2 | Kotlin | januarydayfin/WeatherApp | ac741885d789df4651997fc33d7db3b7a3866c7e | ccc5ba7e4a430b9d3332c349cb7ea4cfa30894e5 |
refs/heads/master | <repo_name>tarikub/RavenSignalRTest<file_sep>/RavenSignalRTest/Models/Customer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace RavenSignalRTest.Models
{
public class Customer
{
public string FirstName { get; set; }
public string LastName { get;... | 8f0c255619acb661345baff261374d1cdae2d0cd | [
"Markdown",
"C#"
] | 6 | C# | tarikub/RavenSignalRTest | 39e3bb4932a1f08b84eec6d84e7d62847a30007d | 285440238bd7848961fde05cd2705a7105e10e8c |
refs/heads/master | <repo_name>eriksonJAguiar/Data_Science<file_sep>/Fase_1_analise/code/House_Prices.r
library(ggplot2)
library(ggcorrplot)
library(moments)
#--------- lendo a base--------
datas <- read.csv(file="~/Desktop/Data_Science/Fase_1_analise/train.csv", header=TRUE, sep=",")
#extra as variaveis simbolicas
datas_num <- datas[sa... | 4f5e021b245bf7f6e982c85ba9d2b3b98026a9e2 | [
"Python",
"R"
] | 5 | R | eriksonJAguiar/Data_Science | 89937e9af3e81719fadedf53cc56b15caad66ffc | 5f56b41cd16be9790524a26e242096eaa3011581 |
refs/heads/master | <repo_name>ArmandoPrieto/savioDonation<file_sep>/src/java/savioDonation/Donation.java
package savioDonation;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.mes.sdk.core.Settings;
import com.mes.sdk.exception.MesRuntimeException;
import com.mes.sdk.gateway.CcData;
import com.mes.sdk.gatewa... | 3d187d97d02c8e61d909137c6fe09534763b36f7 | [
"Java",
"HTML"
] | 3 | Java | ArmandoPrieto/savioDonation | 2de17ea46c463456b5dfa8b2a148a761a53ae0b1 | 9ad5002c0ab01c730c9eadbbe59ea9ecc6856ffc |
refs/heads/master | <file_sep>#Projeto iface WEB
<file_sep>package br.ufal.ic.validation;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ValidationEmail {
public static boolean validate(String email){
// EXPRESSAO REGULAR PATA VALIDAR EMAIL
Pattern p = Pattern.compile("^[\\w-]+(\\.[\\w-... | 2122e4ed8da90596ba38d623204d26ba2ce6a2d2 | [
"Markdown",
"Java"
] | 6 | Markdown | mrcsz/ifaceWeb | 8e41686e581d012392a51e79e83753e8c6b972b5 | 865e291da7c166484989bd24239fa4916bb31759 |
refs/heads/master | <file_sep>const firebaseConfig = {
apiKey: "<KEY>",
authDomain: "book-challenge-app.firebaseapp.com",
databaseURL: "https://book-challenge-app.firebaseio.com",
projectId: "book-challenge-app",
storageBucket: "book-challenge-app.appspot.com",
messagingSenderId: "89474317969"
};
export default fi... | 3e09a1875df9a8b1b616a4d5819bb74cc0875332 | [
"JavaScript",
"TypeScript"
] | 15 | JavaScript | Miraj98/book-challenge-app | bddb9c2a5a5f5e799ddbc35abb22a9d7a94f7019 | fd6c583b66d6d9345674d88e9af656dda9443611 |
refs/heads/master | <repo_name>raincoatrun/W4111-database<file_sep>/server.py
#!/usr/bin/env python2.7
"""
Columbia W4111 Intro to databases
Example webserver
To run locally
python server.py
Go to http://localhost:8111 in your browser
A debugger such as "pdb" may be helpful for debugging.
Read about it online.
"""
import os
fro... | b06fbaef670c3e6426f9f0b04a769a4c96512946 | [
"Python"
] | 1 | Python | raincoatrun/W4111-database | 68bb72b50f2103e8e80ca8c15c444ebb93fc41f7 | 3a86a20b7f6cceaa39a9c8b88e032fccda91386b |
refs/heads/master | <file_sep>from setuptools import setup
setup(name='brightsign-MRSSMaker',
version='1.0.0',
description='given a directory of jpegs, generates a brightsign compatible MRSS feed',
url='http://github.com/riordan/brightsign-py-mrss-maker',
author='<NAME>',
author_email='<EMAIL>',
licens... | a661d81740fe46f40f263889fcd66460661bbda6 | [
"Markdown",
"Python"
] | 5 | Python | riordan/brightsign-py-mrss-maker | ccdb29519d36458e3badea19cb422b46abd2b94c | 9bf131bdaf551c53b638e4feb045cc52569d71dc |
refs/heads/master | <file_sep>package com.china.oil.application.web;
import com.china.oil.application.interceptor.UserSecurityInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.Interceptor... | a229bc1ba3e8b0e553b4dcdc5054e0b47f7e590e | [
"JavaScript",
"Java"
] | 8 | Java | wiidi/Oil | d5d37311d0890e38385ce355a863649488b5bdfb | 850091c8f2ed14937d20082fea984e40814caa82 |
refs/heads/master | <repo_name>gegeduan/cat<file_sep>/src/main/java/com/cat/service/impl/ManServiceImpl.java
package com.cat.service.impl;
import com.cat.dao.ManMapper;
import com.cat.entity.Man;
import com.cat.service.ManService;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.annotation.Aut... | dda0294d17c8851d77917c8337906e53148d769b | [
"JavaScript",
"Java",
"INI"
] | 16 | Java | gegeduan/cat | 3a5a5e2cf9a457511b6747ae0d5cb9ae6c1b63f4 | 763ecd1678d4adfeeef5d37f5168986da52bb2c7 |
refs/heads/master | <repo_name>nsandeeplearning/centos-automation<file_sep>/backup/install/install-ms-sqlclient.sh
#!/bin/bash
#title :install-ms-sqlclient.sh
#description :This script will install msodbcsql
#author :sandeep(snamin501)
#date :Fri Feb 19 10:07:04 EST 2018
#version :1.0
#u... | 48f0208d065a2bac1036bc6e92d964066ac39377 | [
"Markdown",
"Shell"
] | 20 | Shell | nsandeeplearning/centos-automation | 1cd4d9fe1a82d26969700ee18cb9f922b3b24f51 | aaa4256abecd9329ab42a9e63ce002e659334b0e |
refs/heads/master | <repo_name>smailkaddi/brief10<file_sep>/diagramme/_gestion_d___inventaire.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 24, 2020 at 03:55 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START ... | f0b2bda9d89bd9f3b26a9891e445109551c021c5 | [
"SQL"
] | 1 | SQL | smailkaddi/brief10 | 8d86291392ba0cb7552696f2e901bf21f6762aa2 | 4ba44ae61563eb9f105378f5d25993b0f905f0d4 |
refs/heads/master | <repo_name>ebostijancic/fwup<file_sep>/src/fat_cache.h
#ifndef FAT_CACHE_H
#define FAT_CACHE_H
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
struct fat_cache {
int fd;
off_t partition_offset;
char *cache;
size_t cache_size_blocks;
// Bit field of invalid and... | 437e59236054d3bfe8372cecf3986151e5f8939a | [
"C",
"Shell"
] | 8 | C | ebostijancic/fwup | f339a77abb92afe778d3afe056e0079a7842380d | 41cb89da6f2b9b9e6d7a0c616cf0f8f3ea6d2cb5 |
refs/heads/master | <file_sep>import importlib
from .internal import commands
__all__ = ["system"]
modules = {}
for m in __all__:
modules[m] = importlib.import_module("modules." + m)
def init(client):
objects = {}
on_messages = []
for m in __all__:
modules[m] = importlib.reload(modules[m])
obj = modules[m].main(client)
... | d49646c282d864a65885d661436b509f0dfabfe3 | [
"Markdown",
"Python"
] | 4 | Python | BluCodeGH/LegendsRPBot | 1ace62506fc7b46cef9a298a358715754cfd27fc | 47718726e3389aec6a5fe60eda580487f55a1bc1 |
refs/heads/master | <repo_name>playdj/playdj<file_sep>/README.md
playdj
======
DJ with your friends using your google music accounts!
<file_sep>/site/core/auth/AuthBackend.py
from django.conf import settings
from django.contrib.auth.models import User
from gmusicapi import Mobileclient
class AuthBackend(object):
"""
Authenticate... | b10f6e18367c024ecd1026014357b230628cf525 | [
"Markdown",
"Python"
] | 2 | Markdown | playdj/playdj | 230fc3fe51c0365230c32fbd5c6b51a0e9b30366 | 60b18a72ab054941226515b43265fd250500ae16 |
refs/heads/master | <repo_name>Fermec28/c9ia4hfh<file_sep>/app/models/room.rb
# == Schema Information
#
# Table name: rooms
#
# id :integer not null, primary key
# title :string
# description :text
# beds :integer
# guests :integer
# created_at :datetime not null
# updated_at :datetime ... | 15d2706949b73a1aeeb7cffd0b7548b1d3d1ad38 | [
"Ruby"
] | 1 | Ruby | Fermec28/c9ia4hfh | 60497629bf748f4e923dcaa20bdbf25d51a4ac13 | ef1beda8b8055aaf175d2d34a711d64beda227bd |
refs/heads/main | <repo_name>Qb1ss/LIGHT-IS-KEY<file_sep>/Assets/Scripts/GameController.cs
using UnityEngine;
public class GameController : MonoBehaviour
{
[Header ("Camera")]
[SerializeField] private Camera _camera;
[Space (height: 5f)]
[Header("Game Object")]
[SerializeField] private SpriteRenderer _lightBulb;
... | f4d18c1f94d27927ee3a6e11094123cbe6deaaeb | [
"Markdown",
"C#"
] | 6 | C# | Qb1ss/LIGHT-IS-KEY | fe9185d43a232688433d7e52d286bfe7f701e66b | 60d495cd7210a1e5701c3937bdd89effe4b568fd |
refs/heads/master | <file_sep><?php
//Recebe o email.
$email = $_POST['email'];
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
//Aqui vai conectar com o Banco de dados
echo json_encode('<script>
Command: toastr["success"]("Você recebera novidades em breve...", "Enviado!")
toastr.options = {
"closeButton": false,
"debug":... | 8d642f843864beeb9e11fd016b3094c31a2ffff5 | [
"PHP"
] | 4 | PHP | diego90ribeiro/ribsites.com.br-v-alpha-1.0 | a558c478eee304caff882fcbf576d514e87ca0fa | 023232f7c14d6ca5495201ec7c660121ab23815c |
refs/heads/master | <file_sep>package com.example.demo.dao;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import org.springframework.stereotype.Repository;
import com.example.demo.model.Person;
@Repository("fakeDao")
public class PersonDataAccessSErvice implements Pers... | db62effdd609ea66b0c2c81e22853ede57245e03 | [
"Java"
] | 1 | Java | karanmmodi/SpringBoot-REST-API | 058345ea22570d29f17e0a1ff6f636a832c31c9d | 204590b6410a05c7a24a2c634c8fdc7414065b36 |
refs/heads/master | <repo_name>xxxmasmayxxx/reWrite-mvc3101<file_sep>/Framework/PdoTrait.php
<?php
namespace Framework;
trait PdoTrait
{
private $pdo;
public function setPdo(\PDO $pdo)
{
$this->pdo = $pdo;
return $this;
}
}<file_sep>/Controller/BookController.php
<?php
namespace Controller;
use Framew... | b814d61aed96612a83d78eed43587a449564ba34 | [
"PHP"
] | 8 | PHP | xxxmasmayxxx/reWrite-mvc3101 | da41e6bd3defb2839d695b35457248ab0d8df9cd | 91c22d015b926f3251af91c0c31a51f4eb4bde37 |
refs/heads/master | <repo_name>qrealka/external_sort<file_sep>/FileSplitter.h
#ifndef EXTERNAL_SORT_FILESPLITTER_H
#define EXTERNAL_SORT_FILESPLITTER_H
#include "FileWrapper.h"
#include "SortedFile.h"
#if defined(_MSC_VER)
#include <cstdint>
#endif
#include <list>
#include <functional>
namespace external_sort
{
class FileSplitter {
p... | 262e7a4ad66a9a0b40fca7152fe26baae45c7dbe | [
"Markdown",
"CMake",
"C++"
] | 12 | C++ | qrealka/external_sort | 2d9ccbe8290fb39a6d1b3b3a1f730a245dd95449 | cbb02398a1d834cbbc6709863394c311d9485268 |
refs/heads/master | <file_sep>"""
Subcontroller module for Alien Invaders
This module contains the subcontroller to manage a single level or wave in the Alien
Invaders game. Instances of Wave represent a single wave. Whenever you move to a
new level, you are expected to make a new instance of the class.
The subcontroller Wave manages ... | 10ec82902397ab2c6e3e491c793494a6e7fa0f55 | [
"Python"
] | 1 | Python | yuyihe/Alien-Invader | a1e45dc780ec3b15bc89d5209ed9023a55ee1d95 | 9a8aa9757c7610d7f9f312bbe3fa1fca3c85d911 |
refs/heads/master | <repo_name>PCMACHero/glomar<file_sep>/src/components/checkout/checkout.js
import React from 'react'
import {Route} from 'react-router-dom'
import SmartPaymentButtons, {PayPalSDKWrapper} from 'react-smart-payment-buttons';
import IconButton from '@material-ui/core/IconButton';
import RemoveIcon from '@material-ui/icons/... | 9131eec2da201c6a1b861172759f85b719af57f6 | [
"JavaScript"
] | 6 | JavaScript | PCMACHero/glomar | 937e59669f3da0ec3ddec8dc62ac2ac313cc10a7 | 6609cf253a26bd9d8849d6ace6b6070e4bf1105c |
refs/heads/master | <repo_name>sorrowless/ansible_deploy<file_sep>/roles/dotcommon/files/battshow
#!/bin/bash
ret="$(acpi 2>/dev/null)"
if [ -z "$ret" ]; then
exit 0
fi
percent="$(echo $ret | awk '{ print $4}' | awk -F',' '{ print $1 }')"
tm="$(echo $ret | awk '{print $5}' | awk -F ":" '{print $1":"$2}')"
if echo $ret | grep -q "Discha... | 73eab683f14ef3b245236105c0ceae7b1f068234 | [
"Markdown",
"Shell"
] | 3 | Shell | sorrowless/ansible_deploy | 2aaa57ce37e47353fa4d5cecc8d4120d7c516d6a | 800586655194d7ed4f571403c0b10466d197bea7 |
refs/heads/main | <file_sep>namespace Owt.Services.Contacts
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using AutoMapper;
using Owt.Common.Contacts;
using Owt.Data.Contacts;
using Owt.Services.Security;
... | 717f23158d6812683653827e9b9618354e2bcd40 | [
"C#"
] | 43 | C# | pandadoudou/Owt | 91b92fe5066f8ab4986ab7fba6363687195bef3d | 92eecd5d213402390f3d7e43b62c7eecb85d6497 |
refs/heads/master | <file_sep><?php
include("utility.inc");
include("ccconfig.inc");
include("app_logic.inc");
?>
<?php
//////////////////////////////////////////////////////////////////////////////////////////////////
// Write to a chatroom
////////////////////////////////////////////////////////////////////////////////////////////... | fb91a39fe3b5b21224b1ae2bfb51a946acc52de9 | [
"PHP"
] | 8 | PHP | dirk103/CatChat-Backend | f0a399fd6ef4df04403a29f5f375428bd7967c2f | a3c685114447d2b6256e301603e9045a583cbe40 |
refs/heads/master | <repo_name>DavidMah/Realm-of-the-Automated-God<file_sep>/README.md
# Realm Of the Automated God
https://github.com/DavidMah/Realm-of-the-Automated-God
Realm of the Automated God is a Bot that plays Realm of the Mad God.
**Unfortunately, t's really janky and I'm certain that you won't be able
to get it to work on yo... | bd0ea49028e93b94e48c66e1e0e4d37fdb596a2d | [
"Markdown",
"Java"
] | 4 | Markdown | DavidMah/Realm-of-the-Automated-God | 8ba2fd14b7e98b5e7f6720cb248353e455464015 | 5c0c4fb5fc7027682bb70d0e2d542d121fcb00e0 |
refs/heads/master | <repo_name>bshlgrs/wireworld_editor<file_sep>/test/helpers/api/worlds_helper_test.rb
require 'test_helper'
class Api::WorldsHelperTest < ActionView::TestCase
end
<file_sep>/app/models/world.rb
class World < ActiveRecord::Base
end
<file_sep>/app/assets/javascripts/editor.js
var WireworldEditor = function (canvas, world... | ecd2c1b8b01af8cb777ddf4580d8361776fe313f | [
"JavaScript",
"Ruby"
] | 11 | Ruby | bshlgrs/wireworld_editor | c9a653f4f40266b4b426116487677564640f1f4a | 799fa7fcbbeee4c971bec3de0c6a5c3256d85cb2 |
refs/heads/master | <repo_name>Supowang/stm32_lwip<file_sep>/README.md
# stm32_lwip
lwip port to stm32
<file_sep>/STM32F103RC/Src/main.c
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
*****************************************... | 03589bd37e6e8c51db9081f555b606ca31764f5c | [
"Markdown",
"C"
] | 2 | Markdown | Supowang/stm32_lwip | 38312e11005437da4485092dfaa554a86f8912ea | 4512be2a65d6d2df31047801f269a24bd0d6ca6c |
refs/heads/master | <repo_name>juanpablogd/Secad<file_sep>/Scripts/Login/scripts.js
var socket = io.connect(Config.UrlSocketLogin+'/web');
$(document).ready(function () {
$("#ingresar").click(function () {
if (!$("#usuario").val()) {
bootbox.alert("por favor ingrese el nombre de usuario", function () {});
... | 580e095df4874ce3eaac3a9b3b6478e885290fb0 | [
"JavaScript"
] | 3 | JavaScript | juanpablogd/Secad | e9b1f3788f2d5c40de11d23fc161ce5385b76e13 | f30bb7919c57c915b128aeeb735cef05bc18660c |
refs/heads/master | <repo_name>tianxingjian/TestJdom<file_sep>/src/cn/com/arap/ReceiveDataRead.java
package cn.com.arap;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import java.util.List;
import org.jdom.Document;
import org.jdom... | 552a7ab00e6f09ed633caf73cfce416ca382c0a2 | [
"Java"
] | 4 | Java | tianxingjian/TestJdom | 703a468f8c525b4ed317014dacea69bc937d560f | a33ca92919e18031718e6358f952e83d6e923f96 |
refs/heads/master | <file_sep>import pygame
###############################################################################
#기본 초기화 (반드시 해야하는 것들)
pygame.init() #초기화 반드시 필요함
# 화면 크기 설정
screen_width = 480
screen_height = 640
screen = pygame.display.set_mode((screen_width,screen_height))
#화면 타이틀 설정
pygame.display.set_caption("EL Game")#게임... | 0207a004b33878d6f683c2e29edaa1ed6afb75a9 | [
"Python",
"C++"
] | 40 | Python | dongwoo0524/memo_git | 6dd37183d7154bebf30cd0b9af512db48b040740 | 8259c76963bca7ff7711387d1b6248eaf66b56eb |
refs/heads/master | <file_sep>
--等待页面并点击,page:需要等待出现的页面,sleeptime:等待间隔,timeout:等待超时时间,fuzzy:找色相似度
function WaitingAndClick(waitpage,clickicon,unit,timeout,sleeptime,fuzzy)
sleeptime = sleeptime or 1000 --默认重复判断等待时间为1000毫秒
timeout = timeout or 3000 --默认超时时间3000毫秒
fuzzy = fuzzy or 90 --默认相似度90%
unit = unit or 0 --内面内部部件,默认标签... | 2f026b4e7f03774add111bdc8985cb7c3c2a06c3 | [
"Lua"
] | 62 | Lua | thorn5918/lua-touchsprte | c3f6f6de3d79ddd6efd35426f2d99da7b4652d82 | cdc2bb7b6580958a4e693718065404a2a5da72ff |
refs/heads/master | <repo_name>shinyT/Web-Server<file_sep>/Config.cc
#include "Config.h"
using namespace std;
/*DONE*/
Config::Config()
{
}
/*DONE*/
Config::~Config()
{
}
/*DONE*/
void Config::parse(const char* filename)
{
host_.clear();
media_.clear();
parameter_.clear();
string line;
// open file
ifstream f... | 5e3fbf5aefd7f44efcade29b1f9b1b3d491f9388 | [
"Markdown",
"Makefile",
"C++"
] | 11 | C++ | shinyT/Web-Server | dd864a3828faa8665abdbd8230d63196a72670cc | 844ff88246bd3bf67f734f9ad812e2f583fc4a99 |
refs/heads/master | <repo_name>afeiship/react-native-country-code-picker<file_sep>/src/components/list-header.js
import { View } from 'react-native';
import style from './style';
export default class extends Component {
render() {
const { title } = this.props;
return (
<View style={style.header.view}>
<Text style=... | 83aabada361864999ed92648342dcb75ab456013 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | afeiship/react-native-country-code-picker | 17c30340b2790e0febd7cbc71a9e737ce2087ce3 | b31d76aae45e3b937e2ce56907d0e5e34dc27eb4 |
refs/heads/master | <file_sep>package com.revature.services;
import com.revature.daos.ReimbursementStatusDAO;
import com.revature.daos.ReimbursementStatusDAOImpl;
import com.revature.models.ReimbursementStatus;
public class ReimbursementStatusService {
private static ReimbursementStatusDAO reimbursementStatusDao = new ReimbursementSta... | 7603060800c60aee3857a63e09c759e3b854b854 | [
"JavaScript",
"Java",
"SQL"
] | 15 | Java | 210614-JavaFS/project1-tjwoods03 | c95eda5f088fac69645c1c0b0e3419eed644ceb8 | b39661becd29fba19cb9c3ed04e8e92ad9b5f005 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace chatter
{
public class CMessageHandler
{
public enum MsgState { Idle, ReadyForRemote, WaitingResponse, ReadyForAck, SendAck, Done };
... | 8560c063ede165d739371e15d5966358de303b19 | [
"Markdown",
"C#"
] | 7 | C# | HyeongD/chatter | c802e07a48f72ef854aa01cbba0ddf31377cb27c | 866b80e382ac5f7f6e68456ecc9d63889909f0ac |
refs/heads/master | <file_sep>import React from 'react'
import PropTypes from 'prop-types'
import {Link} from 'react-router-dom'
import LoadingDots from './LoadingDots'
const Header = ({loading}) => {
return (
<nav>
<Link to='/'>Home</Link>
{' | '}
<Link to='/courses'>Courses</Link>
{' | '}
<Link to='/... | 7328416d9379286b2c9c8f8c70f8415a85418af8 | [
"JavaScript"
] | 3 | JavaScript | jonwainwright/pluralsight-redux-starter-mmt | 9fac88e6439ba745af4900040514b38fd4254e46 | f42258d6d70a96c88dd360b2daa1f03940fc9c93 |
refs/heads/master | <repo_name>sowmyaatmpdash/dashapp<file_sep>/DashApp/Scripts/Custom/site.js
$(document).ready(function () {
$('#ExistingUser').click(function (e)
{
location.href = '@Url.Content("~/User/UserLogin/")';
return false;
});
$('#button-save').click(function () {
var ... | 3fb411183852eac255e94935f794bd07413cf4a4 | [
"JavaScript",
"C#"
] | 3 | JavaScript | sowmyaatmpdash/dashapp | 938421b9d76c0140f36314ce56f41bcecea2f273 | 6fd45656216723c1edff3a5b29f0014f4dec12f0 |
refs/heads/master | <repo_name>SUMSC/Web-2.0<file_sep>/application/views/PfConsultView.class.php
<?php
class PfConsultView extends View
{
public function render($action="submit"){
if($action == "submit")
{
$this->submit(); return ;
}
else
{
$this->error(); return ;
... | 6ca58d8c3607f7f5c146b44f53e4ee355b173fb8 | [
"Markdown",
"SQL",
"JavaScript",
"PHP"
] | 36 | PHP | SUMSC/Web-2.0 | 0205d32f7325784f1f00916d615b7f19db50c51c | 7ab3fb66d377384001452d64f8fd143a742c973e |
refs/heads/master | <repo_name>adamosoftware/SourceFolderCleanup<file_sep>/SourceFolderCleanup/Services/FileSystemUtil.cs
using SourceFolderCleanup.Static;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using WinForms.Library;
namespace SourceFolderCleanup.Services
{
... | 2b23dff6ff85e5a400b18eeda96a1ffbab64ba26 | [
"Markdown",
"C#"
] | 10 | C# | adamosoftware/SourceFolderCleanup | 91691b3ca9b383ae3da6d7674c74207f78df31fb | 720c5150afa4d8a55d798a5fb62d20ced3f67ffe |
refs/heads/master | <file_sep>#include <iostream>
using namespace std;
class phanso{
private:
int tuso;
int mauso;
public:
phanso(int t, int m){
tuso = t;
mauso = m;
}
int getTuSo(){
return tuso;
}
void setTuSo(int t){
tuso = t;
}
int getMauSo(){
return mauso;
}
void getMauSo(in... | 1faf941ea001dcd8cf6c189e31054db929f22fd9 | [
"C++"
] | 21 | C++ | ledinhhuan/laptrinhc- | 8477af780269f319b892393781cba9844e8b9c7e | 846087c52acf4f3c13b4cdeb52891d00acc09305 |
refs/heads/master | <file_sep># Write a program that interprets the Body Mass Index (BMI) based on a user's weight and height.
# It should tell them the interpretation of their BMI based on the BMI value.
# Under 18.5 they are underweight
# Over 18.5 but below 25 they have a normal weight
# Over 25 but below 30 they are slightly overweig... | cbe4e455a676888114d79b28a98fdb41e9b23361 | [
"Markdown",
"Python"
] | 29 | Python | malvika1404/hackerrank-python | 241ac580f12149973e2f08a6ee5df628975d545d | fc19e788e7ef1a31b56f8fccf90d79f6d9604d2b |
refs/heads/master | <file_sep>package com.example.sys.cdailogue;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextV... | ec245f64f25798f6101a0549891fc3bafcb5f9fe | [
"Java"
] | 1 | Java | MohammadAsiff/Cdialogue | b0baec75091aa1dfcf62f72b2337c9e1b368bd28 | 56093ba6e88ec1bfe84ca39936ed456f2c5a43a1 |
refs/heads/master | <file_sep>package app.saran.getqure;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import org.json.JSONException;... | 848b3dfb9fd4c8732c2570f5bc12ad09c94758dc | [
"Java",
"Gradle"
] | 7 | Java | Saranpandiyan963/GetQure | 8190ad541800c571c21157f30f824eae3b6154c8 | 932ee084149e78f4a9f6a27f365a23278a89cb0e |
refs/heads/master | <file_sep>// Infix Expression Parser.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
#include <sstream>
#include "InfixExpressionParser.h"
using namespace std;
int main()
{
bool validExpression = false;
char c;
InfixExpress... | b2bb9e38ab9844f37300d7569dee8dbf69f104fb | [
"C++"
] | 3 | C++ | brant-nathaniel/Infix_Expression_Parser | 547c2e4d6fc1e6e403f4245ff19fce115817daf3 | 9676f35e7eb960d1f8144492d59295379e15cce1 |
refs/heads/master | <file_sep>-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 05, 2020 at 03:12 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTE... | d64372c12fc14c81a7a65fdb68e09d04de3bfc4c | [
"SQL"
] | 1 | SQL | fahadirshad7007/axis_dbs | c5aa3b383bd024df304489c6048fcffc3f08080c | e0a24b3dee054f320c92fd0d4b9234d8d862f9a4 |
refs/heads/master | <file_sep>import Syspro from '../src/sysprojs'
import 'isomorphic-fetch'
import fetchMock from 'fetch-mock'
import { Exception } from 'handlebars'
/**
* Syspro tests
*/
describe('Syspro test', () => {
describe('initialization', () => {
it('succeeds when all parameters are present', () => {
exp... | bb070955b6082b1f74998ac40543a80ae789e96b | [
"TypeScript"
] | 3 | TypeScript | johnernaut/sysprojs | 4b1739bc135976b0f4b2a7065adbc8f893bcb44e | 67fa29108921b275adf255223224519281fc1c62 |
refs/heads/main | <file_sep>'use strict'
// Задание 1:
//var Tc = 25;
//var temp = (9 / 5) * Tc + 32;
//console.log(temp);
// Задание 2:
//var name = 'Василий';
//var admin = name;
//console.log(admin);
// Задание 3:
// 1000108
// Задание 4:
// async - при наличии данного тега, скрипт начнет выполнение ... | 00e84588c21dd3d911ac2b96c9b929b4d5d75778 | [
"JavaScript"
] | 1 | JavaScript | KiriLLLLLLLL/GB-Javascript | dcb10ac8e4e0f536167a876f5e00334df614a842 | 9aa9ca3d028d9522a64fe610b5d6b3d1ee4a2478 |
refs/heads/master | <repo_name>maan10/SkinCancerClassification<file_sep>/dataset_input.py
import os
import pandas as pd
import torch
import torch.utils.data as data
import torchvision.transforms as transforms
import numpy as np
from PIL import Image
from glob import glob
from sklearn.model_selection import train_test_split
base_skin_dir... | 85bea78468e998c9f4d99bfe26c1aa44ff555619 | [
"Markdown",
"Python",
"Shell"
] | 5 | Python | maan10/SkinCancerClassification | 4a7b2eb92ae0155a44fbb7a11c7ad198d8329bfd | 65e4ae4ea18ff8d178f383b7896230012ad229eb |
refs/heads/master | <file_sep># ipnotifier
send dynamic ip address by email
<file_sep>import os
import configparser
class ConfigTestSupport(object):
def setUp(self):
super().setUp()
print('setUp TestSupport')
# Check if there is already a configurtion file
config_filename = 'test_setting.ini'
... | 701b67aaf9c5553bd859d1752e440f2dc68d7435 | [
"Markdown",
"Python",
"INI"
] | 8 | Markdown | linhhoang/ipnotifier | 02f555c7420da6a22951caeb342a57bd015c610b | 053b772fae71f45a448866a34b34449426b24a15 |
refs/heads/master | <file_sep>(function($) {
$.fn.agro = function(options) {
if (this.length > 1) {
this.each(function() { $(this).agro(options); });
return this;
}
var self = this,
o = $.extend({}, $.fn.agro.defaults, options),
a = {},
$sourceRows = this.find('tbody > tr'),
$sourceCells = th... | 8acc134380023dbfac7ca2e829aa406b789e8181 | [
"JavaScript"
] | 1 | JavaScript | ahcurrier/agro | 3c8529979774da3edee03a214ca401ce0c411ccd | 7c6e957325313a7d59062278ee515cbcf7b5c1f1 |
refs/heads/master | <repo_name>Jeremip11/intellij-community<file_sep>/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.retype
import com.intellij.co... | 0db42e4184436edf20ee1052aea5c6faa5419cca | [
"Java",
"Kotlin"
] | 4 | Kotlin | Jeremip11/intellij-community | 52bd9dbe61ec6b53b4f3e809f8a8984274af5d57 | d67547b2d8163508922765237ececf464e92ac68 |
refs/heads/master | <file_sep>const mongoose = require("mongoose");
const Schema = mongoose.Schema;
//Creating a listingSchema for our databse
const listingSchema = new Schema({
gender: {
type:String,
required: true
},
category: {
type: String,
required: true
},
name: {
type: St... | 3aa55b876c6f4b3de8fe709866d0ec1a6bc18f9d | [
"JavaScript"
] | 22 | JavaScript | Jenny-Le/Thread-Count | 6fb248747bb884426d4e1f0f9bfb3d92b39b0579 | 15ed46af799170fb8a315d94c74b226ed9205483 |
refs/heads/master | <repo_name>gnouf1/Echecs<file_sep>/Pion.java
/**
*
*class représentant le Pion d'un jeu d'échec
*/
public class Pion extends Piece
{
/**
* constructeur de la class Pion initialise la couleur du Pion
*@param color couleur du pion
*/
public Pion(int color)
{
super();
this.color = color;
}
/**
*a... | b42da39a9898483cf45d8b14b6f61e262d2a21f8 | [
"Markdown",
"Java",
"Makefile"
] | 8 | Java | gnouf1/Echecs | 00958f298a0026a6ed144d43a149826a4e39802a | adff33d677bd8560534807bb0afe55e2cfccd8e7 |
refs/heads/master | <repo_name>OArtyomov/Skyou-TestTask<file_sep>/src/componentTest/java/com/skyou/actuator/ActuatorSecurityTest.java
package com.skyou.actuator;
import com.skyou.AbstractBaseIT;
import org.junit.Test;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework... | 64a7d7ed60629ef0e030c99898628ea2410ed459 | [
"Markdown",
"Gradle",
"Java",
"Dockerfile",
"Shell"
] | 9 | Java | OArtyomov/Skyou-TestTask | 15615e2e83a5498d56cae87efcff4eba26874bb0 | 0afa3b40e8754210d858e7b4459068993d65294c |
refs/heads/master | <file_sep>package com.io17.excel2json;
import java.util.LinkedList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
public class JSONUtils {
public static List toList(JSONArray json) {
List list = new LinkedList();
for (int i = 0; i < json.length(); i++) {
list.add(json.get(i));... | efea64741dd80e6d7c62d0e66904e16b55dca979 | [
"Java",
"Maven POM"
] | 4 | Java | io17/Excel2Json | 01cfe2fdf5425cffae15f99adae138d81dd9a4f0 | efd10372e5ce2083ec956a7e6a80dde41564fb97 |
refs/heads/master | <repo_name>rvt-tex/playlister-sinatra-online-web-pt-100719<file_sep>/app/models/concerns/slugifiable.rb
module Slugifiable
module InstanceMethods
def slug
name = self.name.downcase.split(" ")
name.join("-")
end
end
module ClassMethods
def find_by_slug(slug)
slug = s... | 07297eb5b2abe4c06eea0a607b7a54a7921dedf1 | [
"Ruby"
] | 2 | Ruby | rvt-tex/playlister-sinatra-online-web-pt-100719 | 66e47cefc934a5e73a04908c49d99d64fb2ba97d | ace998f0105c057ea0e668a8737f36ee78513b45 |
refs/heads/master | <repo_name>chenmike19999/t<file_sep>/sum.sql
select a.tablespace_name,
a.bytes / 1024 / 1024 "sum MB",
(a.bytes - b.bytes) / 1024 / 1024 "used MB",
b.bytes / 1024 / 1024 "free MB",
round(((a.bytes - b.bytes) / a.bytes) * 100, 2) "used%"
from (select tablespace_name, sum(bytes) bytes
from dba_data_files
group by tablesp... | fd5e43b44950f476edd4cae991f2c8296d6c13b9 | [
"SQL"
] | 1 | SQL | chenmike19999/t | 4e10ea1f2994b81ffce955f941514cd8247f492e | 31207bfe2866ff982e4bfd6ab2610e10c0eb9cdd |
refs/heads/master | <repo_name>jhonymaurad/New-Visions-Assessment<file_sep>/client/src/data/students.js
export const students = [
{
_id: { $oid: '5dc194991c9d4400004c640a' },
name: '<NAME>',
grade: 6,
scores: [
{ subject: 'Math', value: 85 },
{ subject: 'English', value: 65 },
{ subject: 'Science', valu... | 414e67d1425abdff56fdb0e99fbd687d1caf6043 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | jhonymaurad/New-Visions-Assessment | 04b3e70a9a7fc14172083f69a4c4a5297b78e313 | f0ae3bee80e97391a25d211139ca17af0884e5f7 |
refs/heads/main | <file_sep>class Grocery {
name: string;
quantity: number;
price: number;
constructor(name: string, quantity: number, price: number) {
this.name = name;
this.quantity = quantity;
this.price = price;
}
}
let groceries: Array<Grocery> = [
new Grocery('Milk', 2... | 4636805f673389913c58d819f3fc96d93f4bc805 | [
"JavaScript",
"TypeScript"
] | 2 | TypeScript | SWDV-665/week-1-typescript-assignment-dapletch | ec863305a886424327eaad7483d2d1ea36f66291 | 6bf4c7417eebec9446e0013fabaab35f63dae20a |
refs/heads/master | <repo_name>sapinet/WHMCS-RocketChat<file_sep>/modules/notifications/RocketChat/RocketChat.php
<?php
namespace WHMCS\Module\Notification\RocketChat;
use WHMCS\Config\Setting;
use WHMCS\Exception;
use WHMCS\Module\Notification\DescriptionTrait;
use WHMCS\Module\Contracts\NotificationModuleInterface;
use WHMCS\Notifica... | e23e19ac5e3f161388e607a0951873eb9707b925 | [
"Markdown",
"PHP"
] | 2 | PHP | sapinet/WHMCS-RocketChat | dfc6c9d77557f13463fb639ef08f625cc29da3f4 | e915bd55e37e5c2a088019e8f86668c30aae984c |
refs/heads/master | <repo_name>Zintori/MemeMe<file_sep>/MemeMe/ViewController.swift
//
// ViewController.swift
// MemeMe
//
// Created by <NAME> on 9/26/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
import UIKit
class ViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UITextF... | 2b04addd28b737a3036170c8b989d46f59bf3e10 | [
"Swift"
] | 3 | Swift | Zintori/MemeMe | c62ab6b7d6d0d5163fb23dee370d8f484fa546a1 | 6af5395f3fa5232cdace5e2db9977c0cb2af93e6 |
refs/heads/master | <repo_name>shiv-am117/todo_react<file_sep>/todo/src/components/item.js
import React, { Component } from "react";
import "./item.css";
class Item extends Component {
state = {
task: this.props.task,
classes: "normal"
};
handledone = () => {
this.setState({ classes: "del" });
};
handleundone = () ... | 369c966a54813f5d993d8d40d7c5bd56254a1ad1 | [
"JavaScript"
] | 2 | JavaScript | shiv-am117/todo_react | 4bb8b23155e648eb5f51d7ccbcf1f70bb0e7e44c | 60e459a2ab0aa4afc90449633d1d41ea983580dd |
refs/heads/master | <repo_name>tinashechihoro/foodtasker<file_sep>/foodtasker/urls.py
from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.conf.urls.static import static
from django.conf import settings
from foodtaskerapp import views
urlpatterns = [
url(r'... | 5da6c0d9798c00e39ca71b79712010c7adecb396 | [
"Python",
"Text"
] | 4 | Python | tinashechihoro/foodtasker | 9191dd10dd111cc410ae05a0eb83846556fcb3b4 | 5825701d3a10bd4ac8d577c5139b62c13c7adcab |
refs/heads/master | <repo_name>indre93/fewpjs-document-onload-online-web-sp-000<file_sep>/index.js
// Your code goes here
document.addEventListener("DOMContentLoaded", function () {
document.querySelector('p#text').textContent = "This is really cool!";
}); | 9f5a4aba28b7c87444059b8a38450b4116402d2a | [
"JavaScript"
] | 1 | JavaScript | indre93/fewpjs-document-onload-online-web-sp-000 | 766670b5bf52769ae063c3ac3c332bf83be661c9 | 98ed018a10755f56266818b80c3b284582a11517 |
refs/heads/master | <file_sep>var keystone = require('keystone'),
Types = keystone.Field.Types;
/**
* StudentProject Model
* ==========
*/
var StudentProject = new keystone.List('StudentProject', {
map: { name: 'title' },
autokey: { path: 'slug', from: 'title', unique: true }
});
StudentProject.add({
title: { type: S... | 326ed0d5cbc5007e383c05dc9ea38cc0c94d4b5c | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | BertieC/indiknowtech | f606fcb4008c0dcb3a44601f309c4c8932889ae3 | dd4f3c29f8e25967f0dfd0ff4f10a215f0e193c4 |
refs/heads/master | <repo_name>daniloprandi/Edilpiu<file_sep>/AttrezziElenco.aspx.cs
using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI.WebControls;
public partial class AttrezziElenco : System.Web.UI.Page
{
SqlConnection conn = new SqlConnection(ConfigurationManager.C... | dbe830f846c8c0384c5436ac71c2bbfd5b43315a | [
"C#"
] | 5 | C# | daniloprandi/Edilpiu | 7e4ea8c772e240f6011b05fe5d57a4f66446ebb0 | 26c3032628015ac594bcc427d398f429daf4429f |
refs/heads/master | <repo_name>curbyourcode/Library-App<file_sep>/app/invitation/model.js
import DS from 'ember-data';
// ember g model invitation email:string........adding email:string it automatically generates the value in our Model
export default DS.Model.extend({
email: DS.attr('string')
});
<file_sep>/app/index/controller.js
im... | 49bdeeeb946ef61b0fd2ca227a3f06031753a514 | [
"JavaScript"
] | 4 | JavaScript | curbyourcode/Library-App | e6969448cdbf2ff322e0114bb3f0566aa400efd6 | ffd1fe2b750510bdf94a0be84b0d8501318ad8dd |
refs/heads/main | <file_sep># twitterplusone
## Explanation
PERN twitter clone that allows tweets with 281 characters!
## Link to Live Site
https://twitterplusone.herokuapp.com/
## Technologies Used
In this application I used PostGreSQL for my database, Express.js and Node.js for my backend and React.js for my frontend. I also used h... | 2fe57589174a1a8fd7c04abad0d0724b58efe4bd | [
"Markdown",
"JavaScript"
] | 5 | Markdown | masonsteeger/twitterplusone | 4dc17411f5eb399f2bc3ba36b0a1336bdc0ebd09 | ae45d199a783bda466fd83b2676b8cfe400c5abb |
refs/heads/master | <repo_name>alexpcunningham/test-repo-aug-16<file_sep>/README.md
# test-repo-aug-16
<file_sep>/constants.sh
#!/bin/bash
#########################################################################################################################################
# File : constants.sh
#
# Author : APC
#
# Date : 05/10... | a3a8d6199a42997771144062ec8650c28ceb4f69 | [
"Markdown",
"Shell"
] | 2 | Markdown | alexpcunningham/test-repo-aug-16 | 6f3b82f845b7c4eebcced554945bbdbc403409fb | 4faf83aaf00d16cd3341a0063c1cbdd4702989a2 |
refs/heads/master | <repo_name>DimitriHeloin/FilRougeFinal<file_sep>/app/models/project.rb
# == Schema Information
#
# Table name: projects
#
# id :integer not null, primary key
# title :string(255)
# description :text
# created_at :datetime
# updated_at :datetime
# memberscount :integer
# membersmax ... | a2f1a9980e8704229b984148725d98cc7d834810 | [
"Ruby"
] | 4 | Ruby | DimitriHeloin/FilRougeFinal | e344dca6aa0b4ea26d7f02f34bdd48f1ff039b74 | 4d430171a0287f50fdb36e0f4d32b2afda1bf886 |
refs/heads/master | <file_sep>FactoryGirl.define do
factory :access_token, class: Doorkeeper::Application do
application { create(:oauth_application) }
resource_owner_id { create(:user).id }
end
end<file_sep>class Answer < ApplicationRecord
belongs_to :question, touch: true
belongs_to :user
has_many :attachments, as: :at... | 6b111aea449ad1a71974654b897d2fc5e70c92af | [
"Ruby"
] | 8 | Ruby | r4o/qna | b26616be2b50f13ceccaca870747da1f5975a4c2 | 2b791147569f227fec15fbb90d6b16a5aceb0cda |
refs/heads/master | <file_sep>#include <iostream>
#include <fstream>
#include <windows.h>
#include <string>
#include <time.h>
#include <limits>
using namespace std;
const string programName = "SystemLogv0.4 | Basic SysInfo Logger\n";
const string programError = "[ERROR] : ";
HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE); // handle s... | f537325c6ec07828194e60725ed95a7641724238 | [
"Markdown",
"C++"
] | 2 | C++ | colorfulnanairo/scanme | 37e02faeb46b05a5caf5c1c5eddd0169d30a4000 | 14780c5ba219e3b6856b484cf34d38303095dd2d |
refs/heads/master | <repo_name>albanm/node-libxslt<file_sep>/index.js
/**
* Node.js bindings for libxslt compatible with libxmljs
* @module libxslt
*/
var fs = require('fs');
var libxmljs = require('node1-libxmljsmt-myh');
var binding = require('bindings')('node-libxslt');
binding.registerEXSLT();
/**
* The libxmljs module. Prevent... | ba8ea8231dd662c5dc47379b1604670b04ce0a2b | [
"JavaScript",
"Markdown",
"Python",
"C",
"C++"
] | 13 | JavaScript | albanm/node-libxslt | e4422b5778fcdad60100e635e68d2e5fdac0abf4 | 22a8690a9fd4c57e2e9ad2120f34b7025ff935fd |
refs/heads/master | <repo_name>RenaudLerognon/comparateur<file_sep>/README.md
comparateur
===========
<file_sep>/web/js/app.js
'use strict';
/* App Module */
var comparatorApp = angular.module('comparatorApp', [
'comparatorControllers'
]);
<file_sep>/web/js/controllers.js
'use strict';
/* Controllers */
var comparatorControllers = an... | 074f078e925390c447b50c9d720e33aad4c8071f | [
"Markdown",
"JavaScript"
] | 3 | Markdown | RenaudLerognon/comparateur | baf7ef99cdac12e3a8dd3aaf37786b10c70ad7ac | 5dc8d37aab9e9a0998ee1bab44baecb611808fc4 |
refs/heads/master | <repo_name>jliussuweno/ShoppingCartExample<file_sep>/Podfile
platform :ios, '7.0'
pod 'FMDB'
pod 'BButton'
pod 'PayPal-iOS-SDK' | b1644051e050a3889a121d1fefdff963b3974008 | [
"Ruby"
] | 1 | Ruby | jliussuweno/ShoppingCartExample | 020a196156b6bad1603cf374b67f7c6376c97114 | 3540d401d2db3569f61b153eded67a7cd7336a1b |
refs/heads/main | <file_sep>//Conexao com BD MySQL
const mysql = require('mysql');
const connection = mysql.createConnection({
host: 'XXX',
user: 'XXX',
password: 'XXX',
database: 'u852189744_at_infnet'
});
connection.connect(function(err){
if (err) console.error('Erro ao realizar a conexão com BD: ' + err.stack); ... | 12e873631a371fef2a5565be4829d44ae8b74cfe | [
"JavaScript"
] | 1 | JavaScript | feijobruno/at_projeto_bloco | 31da0c65d857b455ab181c5313beb6a1eade4f74 | 401d6bde696dfc4eabd3233d9dcd183b873a1c54 |
refs/heads/master | <repo_name>Abhijeet399/OpenCV-Face-Recognition<file_sep>/Haar cascade of eye and face detection.py
import numpy as np
import cv2
face_cascade=cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade=cv2.CascadeClassifier('haarcascade_eye.xml')
cap=cv2.VideoCapture(0)
while True:
ret,img=... | 1a61a52513fb96269f72158f8c9c971c634f4f08 | [
"Python"
] | 1 | Python | Abhijeet399/OpenCV-Face-Recognition | 87e1a6feb3b7387dc22bb46b540da7e6b1dd1042 | 6195d5c89e3f7dfe066e3cda034750b206d4b3bf |
refs/heads/master | <file_sep>package com.nirvana.dal.po;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
* ... | 40b43d90cc7c7e4cf1588f4a14371870f3adb0dd | [
"Markdown",
"Java",
"INI"
] | 30 | Java | airy706/HealthCarePlatform | ceacc28d1a5ce3698f996fd3aafca528428293f1 | 9fcec5a94fc826e07a490f7accc37b474d5b623e |
refs/heads/master | <file_sep>from setuptools import setup
setup(name='runtime_mgr_api',
version='1.2',
description='Python wrapper for Runtime Manager API',
url='https://docs.mulesoft.com/runtime-manager/runtime-manager-api',
author='<NAME>',
author_email='<EMAIL>',
license='None',
packages=['ru... | a02d3a48031c5fed1d23fc0fc8aec309ede05e31 | [
"Markdown",
"Python",
"Text"
] | 8 | Python | adam-j-turner/runtime-mgr-api | a10b1034ec6f731eb1eaa82bb090913b815cdf09 | c3e6c4a0b2fc23dd58144bdb0e62798f2e86f825 |
refs/heads/master | <repo_name>debugpoint136/react-metor-kenrogers<file_sep>/README.md
# react-metor-kenrogers
<file_sep>/ninjatracker/client/components/App/NewNinja/NewNinja.jsx
NewNinja = React.createClass({
addNinja(e) {
e.preventDefault();
var firstName = $('#first_name').val();
var lastName = $('#last_name... | e384f4a963a308a1eacabb5ada2b77d5dbe4a7e1 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | debugpoint136/react-metor-kenrogers | df32f4556abc890fc12d477fb3bd02a93e58dba4 | 8301b07637bf7f4953e4c212fd13fe6cb112381a |
refs/heads/master | <file_sep>in this dir to be explained how to recreate labels images conf.
pick the necessary files from job-process. ideally:
job-input: all the stuff to prepare the input of the cf job
job-output: all the stuff to recreate data set conf. from cf output
job:prcess: all the stuff to normalize job-output and give stats/... | a6c9d8be4fa2505c6b2bd6bb91ab5b62bd022294 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 34 | Text | namkhanhtran/mss | ff33b92f362c5fe23e232837bf74aa827dac3c17 | e6c603010f95610c160412149001453c5ff180fd |
refs/heads/master | <file_sep>using System;
#if __ANDROID__
using Android.App;
#endif
namespace Acr.UserDialogs {
public static class UserDialogs {
#if __ANDROID__
public static void Init(Func<Activity> getActivity) {
if (Instance == null)
Instance = new UserDialogsImpl(getActivity);
}... | 1505f17b4b2cc184782b0a9cf815a787736e5631 | [
"Markdown",
"C#"
] | 10 | C# | geirsagberg/userdialogs | 9a1b96dd254d5afc7917170315596b181cd2f5d8 | b2262069078681f23aad7614c5f0ae14ab3200ca |
refs/heads/master | <file_sep># ---
# title: "EAA_6_run_graph_program"
# author: "<EMAIL>"
# date: "2019/7/3"
# output: html_document
# ---
#```{r}
rm(list = ls())
#```
## save_persp_pdf_FUN
#```{r}
save_persp_pdf_FUN <- function(
dat_0 = dat_0,
plot_name = "bci",
theta_set = c(born = 320, ... | 0e2b053c601d5c0599dd430164d0b185c19b88a0 | [
"Markdown",
"R"
] | 8 | R | wangbinzjcc/EAAr | 1bd036453af50d77f9355441291b1b6e0b8de11a | 6af940d7929b2217d53785bf5ef57d6cf9096f87 |
refs/heads/master | <file_sep>### Install
`./install.sh`
### Get OSM Data
- URL
https://s3.amazonaws.com/osm-changesets/
##### Build osm for whole world
`./buildosm.sh 137 148`
##### Build osm file for a specific area
You can find all the poly in `boundary` folder
`./buildosm.sh 137 148 af.poly`
output: **osm.osm.bz2**
##### ... | bd56f44338755ed9026f9296a3b4dcb291a121ea | [
"Markdown",
"Shell"
] | 2 | Markdown | ramyaragupathy/ExtractPoly | 538bd69369976f87742e9d5af49aa8b8b953be07 | 5e9ca7104b960639389b90b11d04a2c8b282f85b |
refs/heads/main | <file_sep>import xlrd
import xlsxwriter
import os
from fuzzywuzzy import process
from fuzzywuzzy import fuzz
import math
import re
def reduce(dic):
new_dic = {}
for key,val in dic.items():
if val!=1:
new_dic.update({key:dic[key]})
return new_dic
def get_size(code):
reg = "\d... | 4df0d832981c2d47f0c8083f1214a78372b5e341 | [
"Markdown",
"Python"
] | 2 | Python | rsj-rishabh/SKU_Mapping | 76d7a9220f7e0d6066120cd5395dd27c34451c51 | 4e0d79fe127a3e4e5c59c54d1ad9b4bd05055a8d |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { LectureService } from "app/services/lecture.service";
import { Lecture } from "app/models/lecture";
@Component( {
selector: 'lectures',
templateUrl: './lectures.component.html',
styleUrls: ['./lectures.component.css']
} )
export class Le... | 13d84ef6fec78f38205545a4c24c7d1f75d0447b | [
"JavaScript",
"TypeScript"
] | 93 | TypeScript | michail1988/MedievalPortal | 44493c723c10e16e56d968d982ad179765086cd8 | 2292c7c8ddd8c17da41801666a8d2623070936f7 |
refs/heads/master | <repo_name>riexinsa/php-simple-web-api<file_sep>/src/AAuthentification.php
<?php
/*
* (c) <NAME> <<EMAIL>>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PHPWebAPI;
abstract class AAuthentification
{
// return values:
// strin... | 23f2af3fa8d63becdb9ce34dc57876b2848da871 | [
"Markdown",
"PHP"
] | 6 | PHP | riexinsa/php-simple-web-api | 1957bb6ff72c3322177903c3af2fb4ca230800e4 | c326c47979303dc3994cd8083e553998b31baa61 |
refs/heads/master | <repo_name>Oddert/stock-market-tracker<file_sep>/public/js/indexCopy.js
var socket = io.connect();
var localData = [];
$.getJSON("https://api.iextrading.com/1.0/stock/aapl/chart/1d", function (data) {
localData = data;
renderGraph();
setInterval(function () {
console.log("============ RE RENDERING GRAPH ===... | 621ec9452faa49b4538a11686fa1219625c03257 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | Oddert/stock-market-tracker | fd0c433853300388e2f55a40a0a82406826522e1 | fe89aea2b7641c2fc6aa3c4950868fde0ef14fe4 |
refs/heads/main | <file_sep><?php require "header.php";?>
<section>
<div class="container">
<div class="user singin-bx" id="singin">
<div class="img-bx"><img src="img/pexels-cottonbro-3585074.jpg" alt="Login"></div>
<div class="form-bx">
... | bcfc281fb6a5e50cca2e71e91432ecea9851912f | [
"Markdown",
"PHP"
] | 5 | PHP | y0usefalsaadany/login-system-with-json | e70d969c4b92e1b0fc4eb60d7f6d9da6229dd2cb | 0db9b4ba45f9900f63c2c79c7c095485bf58c9ee |
refs/heads/master | <file_sep>export default function Http404(props) {
return (
<h2>404</h2>
);
}
| 31c38e42f152a1a7bb22867a52804d29ab404e65 | [
"JavaScript"
] | 1 | JavaScript | caseydriscoll/react-dc-dot-com | d3c720b06a9f0d575f02e56c47ebb5b8f66cb338 | 1125ad40bb35d5f868dbb4ebac1a39a1d0d26f40 |
refs/heads/main | <file_sep>const express = require('express');
const app = express();
const { userTable, db } = require('./model/User');
const {adminTable} = require('./model/admin');
const {userController} = require('./controller/userController');
const{adminController}=require('./controller/adminController');
// app.get("/",(req, res... | 07667dc3ce8d727af17c564c828d5bb9e1b6da47 | [
"JavaScript"
] | 5 | JavaScript | shivamrai83/node | 8b4e1858dcdb4719bcc9c2c65f8f101e437f3f3d | 06029703226ddabd96480ebe938ea1eb3397ea56 |
refs/heads/master | <file_sep>곤충음식 홍보 프로젝트(웹 개발)
--------
_____
###서론
**향**후 50년 이내 인구는 폭발적인 증가를 할 것으로 예견되고 있다. 이에따라 식량부족 문제를 해결하기 위해 많은 대안들이 제시되고있다. 과거 인구증가는 녹색혁명으로 인하여 무사히 고비를 넘겼지만, 농작인들과 농작지는 갈수록 감소하고있다. 또한, 중산층의 증가로 사치자원의 소비는 계속 늘어나고 있다. 본 프로젝트에서는 제 3차 녹색혁명의 주인공은 곤충이 될 것으로 보고예견하고, 이에 따른 홍보 웹 제작을 목표로 하고있다. 곤충을 식량으로 사용 하는데에는 다음과 같은 이점이... | 4c7f611c280d9fe36287052cb6d2780d4c4118b0 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | LimEulYoung/git_cowork | 5c4c84a26abc794f7a890a866ca0b0c6333cedc5 | e627d5d1872efae09c044c1220b7140c0beaf955 |
refs/heads/master | <file_sep>#!/bin/bash
mkdir ~/Desktop/Screenshots
defaults write com.apple.menuextra.battery ShowPercent -string "YES"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
########################################
# Screen Setings #
#########################################
# Scre... | 813216f807bfa30c77c34572ed5823358dcd0e15 | [
"Text",
"Shell"
] | 3 | Shell | smoloney/macsetup | 80a3a1d4ae93da795e228c5a76a6918050e066b2 | 5798a3be238fb091ab1e7e3179a461a56a0ea567 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.