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>package com.alankrita.fotos.model;
import java.util.List;
public class PhotoData {
private int page;
private List<Photos> photo;
public PhotoData(int page, List<Photos> photo) {
this.page = page;
this.photo = photo;
}
public int getPage() {
return page;
}
... | 62c02c2818593899d40a971104a496d456710c5e | [
"Java"
] | 2 | Java | AlankritaShah/Fotos | b039386ddeda74e97aa816b4258ffdff7434af06 | cb611070d7b34418979ecf2f07caadf8ca7f7fbf |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Management;
using System.Net.Mime;
using System.Runtime.Serialization.Formatters.Binary;
namespace RegLib
{
///... | 63604ed63428eb57ddb40d06e6cb179a48312767 | [
"C#"
] | 5 | C# | Levelangel/authority | 364b1b8aea0e053eaaa58a0a094a5e232db9aad4 | 1cee2ccc38eb2a2f747a7c4918566b3e8a6c38e1 |
refs/heads/master | <file_sep>I can't figure out a cross-platform solution to expand relative path (possibly a symbolic link) to its absolute path.
So this utility.
```
$ normpath ../mytoken/solar.development.json
/Users/howard/p/qtum/qtumbook/examples/mytoken/solar.development.json
```
Install:
```
go get -u github.com/hayeah/normpa... | 91d420da6c86295f843c8b1a8915fbbb0a29539e | [
"Markdown",
"Go"
] | 2 | Markdown | hayeah/normpath | 7fa77c0a57c5f869d5f28372f394667c057f9ca7 | 5d1bf3a48316e0432651e04a94dcafeba061cde2 |
refs/heads/master | <repo_name>te4/HelpfulEndermen<file_sep>/src/me/te3/helpfulendermen/HelpfulEndermen.java
package me.te3.helpfulendermen;
import java.util.logging.Level;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.World;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.event.Listener;
import... | 1cadcfab91c0e1f249e59a5c7cfc58904ee8ca79 | [
"Java"
] | 1 | Java | te4/HelpfulEndermen | 13fc32a4ed07bdcb0b5fabe8a7875721cbe15426 | 7768e428d7676e81e470c3460cc50634fbdf4a3d |
refs/heads/main | <repo_name>lora-aprs/LoRa_APRS_Digi<file_sep>/platformio.ini
[env]
platform = espressif32
framework = arduino
lib_ldf_mode = deep+
monitor_speed = 115200
lib_deps =
Adafruit GFX Library@1.7.5
Adafruit SSD1306
APRS-Decoder-Lib
APRS-IS-Lib
LoRa
LoRa-APRS-Lib
NTPClient
ArduinoJson
AXP202X_Library
check_tool = cp... | 147709871a92a1a43b4460fe3d4690dab91e78cc | [
"Markdown",
"C",
"C++",
"INI"
] | 7 | INI | lora-aprs/LoRa_APRS_Digi | c0faabea5f7ac4c2bdf8a44d2d8f57c7e1e7e22f | 62dda2db282ca619506bdd564b8022bb07f2d31d |
refs/heads/master | <repo_name>aidlpy/vue<file_sep>/src/router/index.js
import Vue from 'vue'
import Router from 'vue-router'
import ElementUI from 'element-ui'
import HelloWorld from '@/components/HelloWorld'
import HomePage from '@/components/Home'
import FirstPage from '@/components/FirstPage'
import SecondPage from '@/components/Secon... | e35deb2b6a2c821bee9b9a01e40f71f1017cbaa6 | [
"JavaScript"
] | 1 | JavaScript | aidlpy/vue | 1af9b769ede78f93a08a3913cdcb4aa216316f18 | 7030fc8f54a576aab769a4689dce6a0ed295f08d |
refs/heads/master | <file_sep># [0.3.0](https://github.com/OpenCodeFoundation/eSchool/compare/v0.2.0...v0.3.0) (2020-08-01)
### Features
* **deployment:** Initial deployment script ([#178](https://github.com/OpenCodeFoundation/eSchool/issues/178)) ([5344488](https://github.com/OpenCodeFoundation/eSchool/commit/5344488dd5b13f81423ce4fc... | 2681b4b5a206d0edb93101928e82077aa1404efa | [
"Markdown",
"C#",
"Dockerfile"
] | 10 | Markdown | royalhouse/eSchool | e765e380836760923f7041fa94d5f52b9be8842b | d60f0d72c598cdda20c6beb87dc72962952a4e93 |
refs/heads/main | <file_sep>const express = require ('express');
const router = express.Router ();
const Director = require ('../model/Director')
const mongoose = require ('mongoose')
// todo qidirsih ====
router.get('/', (req,res,next) =>{
const user = Director.find({});
user.then(data =>{
res.json(data)
}).catch... | 3c99293e08872af38db062de6d9dffb5f09399a8 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | Doniyor-Mr/movieApi | 2521f16f82c99bbaf9e80989dff60cbeeedde09b | 68d748a9126e423b9ed8241dbb88f29b578f277a |
refs/heads/main | <file_sep>package com.quypham.vdc.repo.weather
import com.quypham.vdc.api.RepoResponse
import com.quypham.vdc.data.WeatherForecastEntity
interface WeatherDataSource {
suspend fun query(city: String, daysOfForecast: Int): RepoResponse<WeatherForecastEntity>
}<file_sep>package com.quypham.vdc.di
import android.con... | cd17a5cdafcca5cfed964f9a540c0d89426d792b | [
"Markdown",
"Kotlin",
"Gradle"
] | 37 | Kotlin | alvis411/VDC-Weather-Forecast | d2896bbbe869cb744d36f207d995d2543cf0e6af | 961f3602ab044c11c6bdc46c3db03395d0eabfd2 |
refs/heads/master | <file_sep>#!/bin/bash
# Usage: `./this-script <image name>`
#
# The image name should be of the form 'namespace:tag', e.g.
# 'yourname/yourproject:latest', see also https://docs.docker.com/docker-hub/builds/advanced/.
#
# If $IMAGE_NAME is defined as an environment variable, it takes precedent and the
# command line a... | 8aeb39da0c3fb5ba047024103e8ce0febdcdc192 | [
"Markdown",
"Dockerfile",
"Shell"
] | 4 | Shell | alexpovel/latex-extras-docker | 19a65528ab636c3b4f2e5b18812353d90a86e264 | 3df1834706cac1dd27ecfa0f97f991fbf1524d22 |
refs/heads/master | <file_sep>certifi==2020.4.5.1
cffi==1.14.0
chardet==3.0.4
cryptography==2.9
defusedxml==0.6.0
Django==2.0.5
idna==2.9
oauthlib==3.1.0
Pillow==5.1.0
pycparser==2.20
PyJWT==1.7.1
python3-openid==3.1.0
pytz==2019.3
requests==2.23.0
requests-oauthlib==1.3.0
six==1.14.0
social-auth-app-django==2.1.0
social-auth-core==3.3.3
... | aefdd64d432d98d3919ba1e92385a8d18aac4071 | [
"Python",
"Text",
"HTML"
] | 3 | Text | IndikaMaligaspe/bookmarks | 2c2815bbe0badad58fd0058109e80c7af0b9b995 | c23021261c4b11862726b9b69e57ab2c82329bc5 |
refs/heads/master | <repo_name>x2449265627/elven<file_sep>/day4/two.php
<?php
class people{
public $name = '魏晓';
private $sex;
public function say(){
echo $this->name;
}
public function love($sex){
$this->sex = $sex;
if($this->sex == "男"){
echo "我要找女朋友";
die;
}
echo "我要找男朋友";
}
}
$people ... | f37f9526086bccc3fb75b8ce51175bf2d05dfddb | [
"PHP"
] | 13 | PHP | x2449265627/elven | 838ae4a3d59f41e0e988017319d56fdda2b7badf | 0061cb0feb07f18746a61014658d7ca68ced89e3 |
refs/heads/master | <file_sep>/**
* WebSocket services, using Spring Websocket.
*/
package com.thedevbridge.videochat.web.websocket;
<file_sep>(function() {
'use strict';
angular
.module('videoChatApp')
.service('webRTCservice', service);
service.$inject = [];
function service () {
var ca... | 84d3de118ee875abb4788a52e8133ea6bd25e9f6 | [
"JavaScript",
"Java"
] | 7 | Java | BulkSecurityGeneratorProject/laakariVideoChat | 5aa9d790ad1c767f361f4c4b55831a123d99917f | 3b83bb894d3c7daf5746a645b69105452c3b78bc |
refs/heads/main | <repo_name>arielcortez/dotnet-webapi-boilerplate<file_sep>/src/Infrastructure/Persistence/Migrations/PostgreSQL/20210830212238_CleanMigrations.cs
using Microsoft.EntityFrameworkCore.Migrations;
namespace DN.WebApi.Infrastructure.Persistence.Migrations.PostgreSQL
{
public partial class CleanMigrations : Migration
... | 29959482a6df382032807d85b7d236fbcd4851cf | [
"C#"
] | 4 | C# | arielcortez/dotnet-webapi-boilerplate | da68b25fe50a7d022ed872a002efb80a053a1b78 | b95bbe9bf366c8ad4e0801be65bead08fdc7273b |
refs/heads/master | <file_sep>import numpy as np
from scipy.spatial import ConvexHull
from fit_sphere_2_points import fit_sphere_2_points
def exact_min_bound_sphere_3D(array):
"""
Compute exact minimum bounding sphere of a 3D point cloud (or a
triangular surface mesh) using Welzl's algorithm.
- X : M-by-3 list of point co-or... | 28a976b4dcadb7f51a24650faa66c1b3ea129e71 | [
"Python"
] | 2 | Python | dj-boy/DGCNNPointClouds | df064df8c7fc4c45e13159626d6618d0d1300e88 | 76cbb54efddf2ffb57a5c744eec07e71b703ffa7 |
refs/heads/master | <repo_name>daf78/CatchMeIfYouCan<file_sep>/src/org/academiadecodigo/variachis/expertCoders/grid/position/Position.java
package org.academiadecodigo.variachis.expertCoders.grid.position;
import org.academiadecodigo.variachis.expertCoders.grid.Grid;
public class Position {
private int row;
private int col;
... | 5dd8fc58f956d6d810f9bdd04784d59e8ba1177a | [
"Markdown",
"Java"
] | 8 | Java | daf78/CatchMeIfYouCan | a74c4c279761888edf07e24f497205c4ea2a2fc7 | f0fb37cf7052aae1da2fe9c6165c2f1e9d4b35e8 |
refs/heads/master | <file_sep>"# PhyCy"
<file_sep>import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
/*
Generated class for the Humid page.
See http://ionicframework.com/docs/v2/components/#navigation for more info on
Ionic pages and navigation.
*/
@Component({
selector: 'page-h... | 5e8e50d25789661f2dbd0450016a808435530afe | [
"Markdown",
"TypeScript"
] | 2 | Markdown | Wittowski/PhyCy | 0449c88f5a28b8b6afe6d8f3117d5ec2b92f20b3 | 2ae31587484c31ad82d49c7cddb15c1a651620ab |
refs/heads/main | <file_sep>import datetime
from django.db import models
from django.utils.translation import ugettext_lazy as _
from parler.models import TranslatableModel, TranslatedFields
from django.contrib.auth.models import User
from django.utils import timezone
class Country(TranslatableModel):
translations = TranslatedFi... | 6f5eef02ce7d609ba217b2a44993a3e06f7b42c1 | [
"Markdown",
"Python",
"Text",
"HTML"
] | 36 | Python | JoseHumire/proyecto_cs | d0036c09be3687b3cbc7ae74a87cb6a3e2d0dd38 | e7e4eb415629e8e45a5635be175f02c3c10326dc |
refs/heads/master | <repo_name>parz3val/connection_test_sdk<file_sep>/index.js
// Entrypoint in the package
const ipTest = require("./lib/network.js");
const speedTest = require("./lib/speedTest.js");
module.exports = {
ipTest,
speedTest,
};
<file_sep>/README.md
# Connection Test SDK
Package to monitor the call quality and network s... | bde4cb400e9ae52d585dc4208e017d49d138cb3c | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | parz3val/connection_test_sdk | ca7e89dfd70dbf671c9a162ed1dfd41bd5650957 | bd121813709a3afc4b43f1212c91a3ed727b6796 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Security.Principal;
using System.Diagnostics;
using System.Threading;
using System.IO;
using System.IO.Pipes;
namespace PipeConnectionClient
{
class Program
... | 564b12eb3cea4ef25a15f03e1203f6d94a503506 | [
"C#"
] | 2 | C# | martineng/PipeConnectionClient | feb2f11477881b8a09585319c3e4e25f06155563 | 2d58e6b9ebbc346cdb2c53a8b747cc696b4db659 |
refs/heads/master | <repo_name>guillaume-haerinck/lolimac<file_sep>/front/src/app/shared/components/event-card-notification/event-card-notification.component.ts
import { Component, OnInit, Input } from '@angular/core';
import { Router } from '@angular/router';
import { Event } from 'app/shared/models/event';
@Component({
selector: 'ap... | 0c9e9c5d7ab7b76f4598c2c169373323e8169e7f | [
"SQL",
"HTML",
"JavaScript",
"Markdown",
"PHP",
"TypeScript"
] | 97 | TypeScript | guillaume-haerinck/lolimac | 29a811c2d30777066ead07abfa1ca754cd6c44e4 | 6ba31ccc9602891678e177a454aa48ab9e8b4779 |
refs/heads/master | <file_sep># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# 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/licenses/LICENSE-2.0
#
# Unless required ... | 0d01a3062e560de673b61211a0c2d680f6d32516 | [
"Python"
] | 1 | Python | omalleyt12/addons | e89d4f7f5fee633e06c387fe07f3e5a540a901bb | df8cad9f00997ddc19bac6e324d2aebfe27df4b4 |
refs/heads/master | <file_sep>/* jshint esversion: 6, node: true */
'use strict';
const mongoose = require ('mongoose');
const Schema = mongoose.Schema;
const userSchema = new Schema({
userName: {
type: String,
required: true
},
name: {
type: String,
required: true
},
password: {
type: String... | 3816bfaa14168ee9824a640208c9064ec22eb14b | [
"JavaScript"
] | 2 | JavaScript | bruscantini/lab-express-linkedin-clone | 010235028763c1c4e1d8ab318d9722c5a0fd8b63 | 40a0c4475dbf7bbbbaaed3fb5fd20bd0b5a3e184 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ToDerp.Data.Models;
using ToDerp.Data.Services;
namespace ToDerp.Areas.Api.Controllers
{
public class TodoController : Controller
{
private DerpRepository _repo;
... | c424e53696420d2d25d9a1d603741295232c4630 | [
"Markdown",
"C#",
"JavaScript"
] | 7 | C# | swilliams/toderp | 19986a6c39cfb871b38546f4c83882532c914b07 | dfef66c2ca9acebd0a6b8da38785c7a95df15dd8 |
refs/heads/master | <file_sep>var employees = JSON.parse(teamMembers);
for(var i=0; i<employees.length; i++)
{
document.getElementById('employees').innerHTML += `
<h2>${employees[i].name}</h2>
<h3>${employees[i].email}</h3>
<img alt ="sor<NAME>" src="${employees[i].image}"</h3>
<br><br>
`
}
<file_sep><!DOCTYPE html>
<html lang="en">... | 9fc6685b9a5b6976169bb87e5a14770d87f4e8da | [
"JavaScript",
"HTML",
"Markdown"
] | 4 | JavaScript | AlejandroRodriguez95/CF-CR3-Alejandro | 85794db17b46351efd269ec3c06e8d90087bfc47 | b46ff3da8d95a8386a184caeb2b671b5df650cc2 |
refs/heads/master | <repo_name>crizon/SciHive<file_sep>/README.md
# SciHive
SciHive is a mobile application made for grade 6 to 7 students, an educational game app about science. This app is my thesis project so I made sure I'll be integrating as many technologies as possible. The full title of this thesis project is SCIHIVE: A Mobile Bas... | a50164de720d2fcf0384c651a8e3e693f82db29f | [
"SQL",
"HTML",
"Markdown",
"JavaScript",
"PHP"
] | 26 | Markdown | crizon/SciHive | e1ee38de17739fe1d305844267ad95cbd18c87b3 | 755bf485dbaaf73ce0e9c617a65d195831ce8e83 |
refs/heads/master | <repo_name>arvisKTU/IIP-project<file_sep>/IIP_Projektas/app/src/main/java/com/example/iip_projektas/Leaderboard.java
package com.example.iip_projektas;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.database.Cursor;
import android.os.Bundle;
import android.o... | 4d1d8b19f85fcc0b6784d12986d2ba13532f0719 | [
"Java"
] | 1 | Java | arvisKTU/IIP-project | 3a457364fb2ffec9c4d493999d3cf731ad3e5669 | 740eeb83c7a299a629f7315b53b1033c25388611 |
refs/heads/master | <file_sep>package com.android.providers.downloads;
import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_METERED;
import static android.net.NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mocki... | 15e62d9d72a752f6c9ba462fc790273f948edeca | [
"Java"
] | 6 | Java | aosp-mirror/platform_packages_providers_downloadprovider | ef2e80fc732c3fca488b02ba8ba8b1ff870f77c7 | 3fd500194f2075c85f918327468470203251e79e |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { CognitoAuth } from 'amazon-cognito-auth-js';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
title = 'app';
auth: any;
constructo... | 995927ef23f85bbed63487aad0787384ac4dd961 | [
"TypeScript"
] | 1 | TypeScript | daundkarmangesh1109/aws-cognito-auth-test | 1772e7ab57b7f32cdc3b93e41a10146dcf8fadd3 | e4a934157a19b5a881ea2014e8e2d6fa71095fc1 |
refs/heads/master | <repo_name>shuheiktgw/benchmark_fast_jsonapi<file_sep>/spec/serializers/performance_with_json_api_adapter_spec.rb
require 'rails_helper'
describe 'Serializers Performance with json_api adapter' do
before(:all) do
ActiveModel::Serializer.config.adapter = :json_api
class AmsCompanySerializer < ActiveModel::Se... | 27d453b2b4da1bcabdd9ca2fb4c43733fe41509f | [
"Markdown",
"Ruby"
] | 12 | Ruby | shuheiktgw/benchmark_fast_jsonapi | 6274b799c31efa6de82400c3dc128ac88db57ae6 | 0e09234f1ea6c974af7317d395c590a3d86e012a |
refs/heads/master | <repo_name>SciEco/IntelliEco<file_sep>/Server/RequestProcess.cpp
#include <string>
#include <string.h>
#include <fstream>
#include <iostream>
#include <windows.h>
#include <list>
#include "json.hpp"
using namespace std;
using namespace nlohmann;
int execute(const string & cmd)
{
DWORD dwExitCode = -1;
STA... | 6275887f9270f3eb4dc8172b8cc0e7917189fdfd | [
"Markdown",
"Java",
"Python",
"C++"
] | 15 | C++ | SciEco/IntelliEco | 5b4f1e04e09058b71f97f8d17910854eaa3b4d07 | e2218aadb6a33a5d8fa88fb338105248392f3eee |
refs/heads/master | <repo_name>heuberg/ImageViewer<file_sep>/app/src/main/java/com/github/clerfayt/imageviewer/ImageActivity.java
package com.github.clerfayt.imageviewer;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
impo... | 8ad26cf7443c49adf521f59fced5256856eac247 | [
"Java"
] | 1 | Java | heuberg/ImageViewer | 512e697db6b293c3112799b617ffc7576f57f366 | c647ec8e27e333531c95d8d44f9e223bb6cdfc5b |
refs/heads/master | <repo_name>ytyaru0/GitHub.Upload.Http.Response.201703301257<file_sep>/web/http/Response.py
#!python3
#encoding:utf-8
import json
import time
from urllib.parse import urlparse
import re
from PIL import Image
from io import BytesIO
class Response(object):
def __init__(self):
self.Headers = Response.Headers()
... | 1d0913f0a018aeb49ba8570f59ede74c945456b2 | [
"Python"
] | 1 | Python | ytyaru0/GitHub.Upload.Http.Response.201703301257 | 3926ad3779e8be4a50ce536b69cef50a7eb3e640 | 91fe42ca93af35e6128fc78cd5bfbf7e7662663a |
refs/heads/master | <file_sep>// Copyright (c) 2012 <NAME>
// MIT License - http://opensource.org/licenses/mit-license.php
/**
* Support for handling 64-bit int numbers in Javascript (node.js)
*
* JS Numbers are IEEE-754 binary double-precision floats, which limits the
* range of values that can be represented with integer pr... | 5fbe5d89562547f85bfdc8bfc9c37777e0bd4145 | [
"TypeScript"
] | 2 | TypeScript | estk/nint64 | 5199bfe36e8a9792ed3622a35c6d07e4c604652a | 0c976f1166bb7b6f0c7cbe6e682ce7c0e5ddd4c7 |
refs/heads/master | <file_sep>"""This function takes users interests as inputs and outputs a list of
ranked vacation destinations with top interests for each destination.
To rank destinations, the app uses data that has been collected from Twitter
and stored in MySQL. user_interests is a assumed to be a string
consisting of interests sep... | 78b6f013d6f2214b2c38890bc365d9bbf6eb5d9e | [
"Python",
"Text"
] | 8 | Python | ktaliaferro/VacationFinder | 594c802d7d250aece3919028f31863b54e1bfc75 | 062e25c45ec2e2e3d808a0d39c060bdc67167789 |
refs/heads/master | <repo_name>baldurk/rdoc_serialise_test<file_sep>/main.cpp
#include "serialiser.h"
#include "test_types.h"
#include "xml_codec.h"
#include <time.h>
const char *GetChunkName(uint32_t i)
{
// dummy function
return "main()";
}
struct struct1_pure_pod
{
int x[10000];
};
template <class SerialiserType>
void DoSeri... | c749a49fb2b5b5e078b41f56349df6c446e7270e | [
"Makefile",
"C++"
] | 18 | C++ | baldurk/rdoc_serialise_test | 4da5e3a03df3f956d3a3dedc6a3e94593120c66a | 361073feed1d912e783597ff73f31fbc08377a00 |
refs/heads/master | <file_sep>from bot import db
class Enzyme(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64), index=True, nullable=False)
catalogue_number = db.Column(db.String(64), index=True, unique=True, nullable=False)
quantity = db.Column(db.Integer, nullable=False)
def _... | 7aa82b598f207de1d138a28e477569ddb2cde944 | [
"Python"
] | 4 | Python | syntarch/TelegramBot_Flask | 3c1bd29487deff5746faa7f6979eba2a9d3afdd7 | 6334719e9a428c5796e402f85504ed55b638ec66 |
refs/heads/master | <repo_name>ismael101/Card-Game-Java<file_sep>/src/com/ismael/Card.java
package com.ismael;
public class Card {
private String suits;
private int number;
//this is the card class that contains all the attributes of a card
Card(int num,String suit){
this.number = num;
this.suits = suit;
... | 52a87ba6481363267065801bd1913b5d12561955 | [
"Java"
] | 2 | Java | ismael101/Card-Game-Java | 1aeafcb63ede12a54992407f68d71aeeb03b1be9 | 4eb2f7f0b94bc3607669541b87b4c086b007bf28 |
refs/heads/master | <repo_name>zhy1/ngAmap<file_sep>/ng-amap.js
"use strict";
var aMapDirective = [ "$parse", "ngAMapHelper", "$rootElement", function($parse, ngAMapHelper, $rootElement) {
return {
restrict: "E",
compile: function(element, attrs, transclude, ctrl) {
window.AMap || ngAMapHelper.injectCode($... | 2b08e9fba01f9ab231065adff2dc81ee7618dbe7 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | zhy1/ngAmap | a885497964b5c90c2bcf899b2ef25c4278471816 | 54bca781ad5a8263faae8600d8c8e2a22bcb5e4a |
refs/heads/master | <file_sep>#!/usr/local/bin/python3
import cgi
import subprocess
print("content-type: text/html")
print()
my_input = cgi.FieldStorage()
command = my_input.getvalue("cmd")
output = subprocess.getoutput("sudo " +command)
print(output)
<file_sep># IIEC-Python
Task2 : Python program for the Voice Assistant.
It can ... | 09657957ec5e6532c5778be4fa1c0040947526de | [
"Markdown",
"Python"
] | 3 | Python | Kajal5414/IIEC-Python | ce5416c3fd617038f20977683d109897971a01a2 | a3ee7b6bf0f80a47e5aa6a85dffc2cb69ee3f6bc |
refs/heads/master | <file_sep>//Meteor.publish("users", function () {
// return Meteor.users.find({_id: this.userId()});
//});
Meteor.users.deny({
update: function() {
return true;
}
});<file_sep>ViewModel.addBinding("files", {
on: "change",
get(event, $elem) {
return $elem.prop("files");
}
});
<file_sep>// C... | 19dddd7336793bf123c9e92fe8461d2cb97c8961 | [
"JavaScript"
] | 18 | JavaScript | ahmadthd/caseManagementApp | a33730e321dbb2abee726ab43603dec93a8db3c7 | 214a1776ab73951e07581fc983b203d990e98d89 |
refs/heads/master | <repo_name>yanhsiah/TheStream<file_sep>/Podfile
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
# use_frameworks!
target 'TheStream' do
pod 'Realm'
pod 'AFNetworking', '~> 3.0'
pod 'SVPullToRefresh'
end
target 'TheStreamTests' do
po... | d6a9dd87e9c76f09d17e0250690c7f38b9d962fb | [
"Markdown",
"Ruby"
] | 2 | Ruby | yanhsiah/TheStream | f3be9fc4c47ed7b8f920999fcbd5e37ba275bfe4 | 54d4ce1f6aa97557830045cd7211409ef8bdd359 |
refs/heads/master | <file_sep>#!/bin/bash
#This script allows to create a user <user> and access a linux instance without the use of a keypair. Created at launch
user=patrick
password=<PASSWORD>
echo $(curl -s http://169.254.169.254/latest/meta-data/public-hostname) | xargs sudo hostname
useradd -m $user
echo -e "$password\n$passwor... | bfed132b603d20c88e0836713ee7e297834a5ce6 | [
"Markdown",
"Shell"
] | 3 | Shell | patrickmukumbu/DevOps | 317cb3e1b4f24c2956d8e2e5b9324681dea77e0f | 10c4871c8fa8b21be751e68ab6ead20f7de5afac |
refs/heads/master | <repo_name>t3patterson/explorations-knockoutjs<file_sep>/02-observable-arrays.md
##Obserbale Arrays
###Knockout in JS - Observable Arrays (@ source)
1. Put `ko.observable` on the data-type
2. Append observables to an array and pass array as argument to `ko.observable`
3. Establish bindings by passing the array as the v... | 1bbf78b6d34a3001e09a8f7133cd21ae7758db73 | [
"Markdown",
"JavaScript"
] | 7 | Markdown | t3patterson/explorations-knockoutjs | fabbae4c8102ee37f071349cc6cb4667203ab9a6 | 2421bc19421ee6618d1e512230f6ed5caa68feda |
refs/heads/master | <repo_name>Majo-pq/ConsoleApp5<file_sep>/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5
{
class Program
{
static void Main(string[] args)
{
Alumno a;
a = new Alumno();
... | 379293170140c13954944ad29d1c737d456ec044 | [
"C#"
] | 2 | C# | Majo-pq/ConsoleApp5 | 3973bc2edac9edca0fddf1d0b833c89c5fac6261 | f91f73360c3b641e87405544c845b4259d39ebf0 |
refs/heads/main | <repo_name>durdonadjalilova/captains-log-react<file_sep>/src/Components/Logs.js
import Log from "./Log"
const Logs = ({ logs }) => {
return (
<div className="Logs">
<section>
<table>
<thead>
<tr>
<th></th>
<th>Take me there</th>
... | 6c3b1d1601771c73c338b75b466e1199b66957f3 | [
"JavaScript"
] | 3 | JavaScript | durdonadjalilova/captains-log-react | 9004986221640f19c26e28767617dafcf48ee194 | 2ba1eb22c5a36630e35f37624223d75dad49181e |
refs/heads/main | <file_sep>#!/usr/bin/env python
import json
from kafka import KafkaProducer
from flask import Flask, request
app = Flask(__name__)
producer = KafkaProducer(bootstrap_servers='kafka:29092')
# * Adds metadata such as Host/IP address, User-Agent to all generated events
# * Encodes it (default: encoding='utf-8', #er... | abf1f429a5285db0562a68aadd587d053122e152 | [
"Markdown",
"Python",
"YAML",
"Shell"
] | 8 | Python | karthikrbabu/tracking-user-behavior | 8e32ea59c1e51c1acfce63f2013a315a6e21acf7 | 0401d3715cfb06c1d05086b77928bb8a16d3d47f |
refs/heads/master | <file_sep>//
// adicionarCell.swift
// iRemedy
//
// Created by <NAME> on 13/06/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
import Foundation
<file_sep>//
// SobreACompraTableViewCell.swift
// iRemedy
//
// Created by <NAME> on 17/06/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
import U... | 8982756f86c5c5252affb94d1f0ad82c2de6bbc4 | [
"Swift"
] | 16 | Swift | joaoraffs/iMedicine | 875883b8ead6f4e419a2bd5426c36ca2af69450e | 79444ba4912f2b3116c81dc2c1e65502cadec706 |
refs/heads/master | <repo_name>vedhashrees/generator-hapi-restful-version<file_sep>/generators/hapiApiService/index.js
const Path = require("path");
const config = require("konfig")({
path: Path.join(__dirname, "../config")
}).app;
const baseName = Path.basename(__dirname);
const Generator = require('yeoman-generator');
const { prompt... | 69aab46e6204eea674cfdb463ee8a9650a737ced | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | vedhashrees/generator-hapi-restful-version | 9072152a23a507f1c0f7e7aa6fa575078d0585d4 | 2e28e7816449ff393cd2173ceb89ff2398b9a7b4 |
refs/heads/master | <file_sep>app.controller('ShowController', ['$scope', '$http', '$routeParams', '$location', function($scope, $http, $routeParams, $location) {
console.log("Show controller.");
$http.get('http://localhost:8080/api/swords/' + $routeParams.id).then(function(response) { // SHOW
$scope.sword = response.data;
con... | b86f7063004f877302a4bb349385acd5e96fa369 | [
"JavaScript"
] | 3 | JavaScript | kimschles/angular-express-testapp | b37623420f9d7db152bc8927222762030e7b5959 | e59c7d344d724fde990d74b13c3149fb2e8e077b |
refs/heads/main | <repo_name>jyoung9154/ITbank<file_sep>/Project/src/main/java/com/project/proto/dao/Dao.java
package com.project.proto.dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Reposito... | e0f4e2c5eebc2939fed65b4a8b8a91951e5156d2 | [
"Markdown",
"Java"
] | 4 | Java | jyoung9154/ITbank | 6aa100398892a8c3c67770ca659d040b0cf54565 | de900420beaefa320d30b6f745c7c85b4f506bd4 |
refs/heads/master | <file_sep>use notify;
use notify::{RecommendedWatcher, Watcher, RecursiveMode, op};
use notify::DebouncedEvent::*;
use std::sync::mpsc::channel;
use std::time::Duration;
use std::net::UdpSocket;
use std::net;
use std::env;
use std::path::PathBuf;
use std::process::exit;
pub fn listen_and_broadcast(socket: &UdpSocket, ... | f996017b5b3bb598eae346357a24e34054292abb | [
"TOML",
"Rust",
"Markdown"
] | 5 | Rust | brianp/ven | e1b20124443d6f26c91ba2c2834d4c28c74ced4f | 03bd594f9a225d776b0c8cbe08f5d03914d6e262 |
refs/heads/master | <repo_name>CodeLegacy/RestuarantReviewer<file_sep>/seeds.js
var mongoose = require("mongoose")
var Blog = require("./models/blogs"),
Comment = require("./models/comment"),
data = [
{
title:"France",
image: "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSIe6Xu8hGwEmaP4fb3HKwCSPFZhUF-9... | 808e186f586457356f63a3cdd32c8bfd3bda4200 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | CodeLegacy/RestuarantReviewer | 5fc86113d48ddccac80f21dedbf3def9c029d107 | 769ea5026eff32f666231f54b228c611f5d1b078 |
refs/heads/master | <file_sep># daily-bible-reader
for reading a part of Bible in every day's mass.
<file_sep>import datetime
import sys
import requests
import re
from bs4 import BeautifulSoup
def today_string():
today = datetime.date.today()
if today.month > 9:
today_string_out = str(today.month)
else:
today... | 6d5c2edde54675e130bded122db82d086f78d101 | [
"Markdown",
"Python"
] | 2 | Markdown | jst223/daily-bible-reader | 88924d0777226e7c9a8a1e224b62ab5a52dd0667 | 12fb560a767f397f9f639ccec4a400e5946c0b80 |
refs/heads/master | <file_sep>class Patient
attr_accessor :name, :appointments
def initialize(name)
@name =name
@appointments = []
end
def add_appointment(appointment)
@appointments << appointment
appointment.patient = self
end
def doctors
@appointments.collect{|appointment| appointment.doctor
}
end
end
| 404b2afceac5ebce65272777d39224ec9dfcea17 | [
"Ruby"
] | 1 | Ruby | illusioninlost/ruby-objects-has-many-through-lab-v-000 | 6ef7c66ffbc8d65b86c783a3b6bdf7293f863364 | 9097c0f0292d7be3e627a6d5862c67f87f28911d |
refs/heads/master | <file_sep>/*
* Copyright 2019 the original author or authors.
*
* 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/licenses/LICENSE-2.0
*
* Unless required ... | c08ff2bb33d3d59969a9aa9d5c7a67b20078106f | [
"Markdown",
"Java"
] | 2 | Java | zulkar/mvnd | 68fcf3d7333a7c9ddcd873a5a73f52b1cbe1e2d8 | 786cb426d188413da68028155eccd4c1f0343cbb |
refs/heads/dev | <file_sep>
const types = {
SINGLE: 0,
};
const collection = {
ding: {
src: "ding.mp3",
type: types.SINGLE,
label: "Ding",
}
};
export { collection };<file_sep>
import '../scss/index.scss';
import Vue from 'vue';
import PingApp from '../components/PingApp.vue';
const app = new Vue( {
el: ... | 44245af646d21a6b89a8e67fb1f58a0f2470c33a | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | nandenjin/ping | d1e376c20b1cec8c3ae481d26b6855a43008b191 | 841f9acc7394b0fe7beb3cb1bc7914eece7a8644 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace JasChess {
public partial class Pensando : Form {
DateTime inicio;
... | 705866128137d4b475ad7fd0f8e286391153d5b2 | [
"Markdown",
"C#",
"INI"
] | 11 | C# | josuefonseca/JasChess | 7e72a760c5a6f9280bd9f8162f79b951c7b78501 | a60830210fd2c69f48497a554809c2fc125dcdde |
refs/heads/master | <repo_name>oldy777/phpstan-src<file_sep>/tests/PHPStan/Rules/Exceptions/data/unthrown-exception.php
<?php
namespace UnthrownException;
class Foo
{
public function doFoo(): void
{
try {
$foo = 1;
} catch (\Throwable $e) {
// pass
}
}
public function doBar(): void
{
try {
$foo = 1;
} catch (\E... | 24406542cacf4d593ec301b045c85385ea720330 | [
"PHP"
] | 4 | PHP | oldy777/phpstan-src | de00c86689b4cb8f865aa9e811a7712b69fff9d3 | 642142dcca009124f6d889981543f679032e62e4 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
import numpy as np
from os import listdir
from sklearn.svm import SVC
def im2vector(filname):#对数据进行扁平化处理
returnvect=np.zeros((32,32))
file=open(filname)
linestr=file.readlines()
index=0
for i in linestr:
words=i.strip()
words=list(words)... | e2e267f5dab2464a29e8ec914a21e0917a1e38ad | [
"Markdown",
"Python"
] | 4 | Python | whudddddd/ML | 32aeb755c00825b669f9e3e5c5ab8a48f27175d7 | 773e972be65b80e9f2ae0e3d9a7650336ed925fa |
refs/heads/main | <file_sep>/*jslint maxparams: 4, maxdepth: 4, maxstatements: 20, maxcomplexity: 8, esversion: 6 */
(function ( window ) {
const
SHIP_DIRECTION_RIGHT = 'right',
SHIP_DIRECTION_LEFT = 'left',
SHIP_DIRECTION_UP = 'up',
SHIP_DIRECTION_DOWN = 'down',
BULL... | 002a882c86f14823ec44d205ec38c6e1ea241e72 | [
"JavaScript"
] | 1 | JavaScript | cjhaas/space | 6c22df3dae7eabbaa920696cdf82f281cbe10070 | de304916d8bcfaf8c00b46f4639845e353df7e15 |
refs/heads/master | <repo_name>notnaa/counter-yii<file_sep>/basic/models/Group.php
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "group".
*
* @property integer $group_id
* @property string $group_name
* @property integer $kafedra
* @property integer $created_at
* @property integer $updated_at
*
*... | e11abf8f1f7d6c307882afab165657c5a2c6a309 | [
"JavaScript",
"SQL",
"PHP"
] | 6 | PHP | notnaa/counter-yii | 9d21bdf8ad30cd75fcfb12b171fe213a704cafd6 | 8f4cb97647202856c6f5a2ce7cea56c87ed5b0e8 |
refs/heads/master | <repo_name>taiki45/mikutter_sad_happy<file_sep>/README.md
# mikutter_sad_happy.rb
みくったは深夜のつらぽよから救う
## About
つくってみました.
>深夜、皆必然的に…のついたツイートしてしまうし全自動で♡に変換するようにして欲しい
http://twitter.com/morisoba_nzr/status/313336279972593665
<file_sep>/mikutter_sad_happy.rb
# -*- coding: utf-8 -*-
Plugin.create :mikutter_sad_happy do
te... | 3d9f59d72406e3c4a6195e1dc187efa6972ecf7a | [
"Markdown",
"Ruby"
] | 2 | Markdown | taiki45/mikutter_sad_happy | 31e4364625e561126675f28001cc688c4c452776 | bf2bd19bfc580cfc50b2a58dc51b541fd2f9cc14 |
refs/heads/master | <file_sep>const path = require('path');
const glob = require('glob');
const resolverFileGlob = '**/*.js';
const CWD = process.cwd();
const slash_REG = /\/$/;
/*
* PageMapper will require all the files in a folder and its sub folders and let you use `findPage` to access them
* This makes it easy to setup a single ro... | 7dd1f7ea41726448b74b4a720d9e38cc2aea3568 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | B-3PO/web-components-node | bdfb8783f3996d10a77bd8fab9febbf71aac346c | 117246f9e25f21093e2e97de50dc4cb05cd2ab2f |
refs/heads/main | <repo_name>suhaib079/city-explorer<file_sep>/server.js
'use strict';
const express = require('express');
const server = express();
const dot = require('dotenv');
dot.config();
const pg = require('pg')
// const client = new pg.Client(process.env.DATABASE_URL)
const client = new pg.Client({ connectionString: process.e... | 884f9ae94d7ef932798357ace8c9aa2de5ef820b | [
"JavaScript"
] | 1 | JavaScript | suhaib079/city-explorer | 42f52fe50d0a02110b87f9a88b57498f18acbb61 | c3c26ef401c5110a64fd90d8341d3a741d475453 |
refs/heads/master | <repo_name>shieldfy/is-serverless<file_sep>/lib/is-azure-function.js
'use strict'
module.exports = !!(
process.env.AzureWebJobsStorage ||
false
)
<file_sep>/test/isAzurefunction.js
'use strict'
var assert = require('assert')
//------- Azure --------
process.env.AzureWebJobsStorage = 'Value'
var isServerless ... | 313cb2215f5039f0aec9fe086cb9a7cc8bfb9c5d | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | shieldfy/is-serverless | f170b6a7c9db4dfb774c094ee8db5e7c1f0dd311 | 634965cedc1c5a3ae83bb6230f2735acf8b97150 |
refs/heads/main | <repo_name>zhang-zhoujie-optim/install-vnc<file_sep>/vnc.sh
#!/bin/bash
echo "Installing vnc..."
sudo apt update
sudo apt install -y xfce4 xfce4-goodies
sudo apt install -y tightvncserver
vncserver
vncserver -kill :1
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
mkdir -p ~/.vnc/
touch ~/.vnc/xstartup
cat <<EOT >> ~/.vnc/... | 7b2f88ba3f6f2a61b3c071b5fa638401e15b8f7d | [
"Markdown",
"Shell"
] | 2 | Shell | zhang-zhoujie-optim/install-vnc | c38940b2e4395def4c80a9a1aac0dcb34b97c857 | ae70f63ea198d8ccbf417c6bf71c94a9845d61b3 |
refs/heads/master | <file_sep>animals = {"sugar glider"=>"Australia","aye-aye"=> "Madagascar","red-footed tortoise"=>"Panama","kangaroo"=> "Australia","tomato frog"=>"Madagascar","koala"=>"Australia"}
require 'pry'
class Hash
def keys_of(*arguments)
value_returned = []
arguments.each do |arg|
self.each {|key,value| value_... | dd6e662a6cd6af272eb6dcd6f4ec68e29692903e | [
"Ruby"
] | 1 | Ruby | cstatro/keys-of-hash-nyc-web-062419 | 78e8d766165b022251df4dd5e3644204e3ea2a34 | 51f155496d06da8cc960fce34a25783c5a52c15a |
refs/heads/master | <file_sep><?php
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$finish = $time;
$total_time = round(($finish - $start), 4);
//echo '<p style="text-align: center; color: black;">Page generated in '.$total_time.' seconds.'."</p>\n";
$link->close();
?><file_sep><?php
hea... | c78a2db6e99cc320fd4d427ef4372e675f21100c | [
"Markdown",
"PHP"
] | 9 | PHP | willem-h/movies | ab2e3164c91b4b586c9d004474dc815ffb51e6f9 | 23bf04645fd1eb9696deae4ac5f8a3fa15667851 |
refs/heads/main | <repo_name>nourelhouda95/midad<file_sep>/SQL_CODE/midad.sql
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 12, 2021 at 11:08 PM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 8.0.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET t... | 80f68b141bf1d7174c33e3356c0135ccc3cb8598 | [
"SQL"
] | 1 | SQL | nourelhouda95/midad | 3c16bbc377ee462e132ca98bd7ca62b929da8298 | da3d8f05289efd3ff4352e47b49f36f3e4f623db |
refs/heads/master | <file_sep>package com.example.mostpopularapi;
import android.database.Cursor;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.M... | b94b596f69ed5162a279c6c8e976120b23b4ecce | [
"Java"
] | 6 | Java | DanyilBohdan/MostPopularNYT | 0b94079f02c1c18aa565f6724b37c0a0c802ed31 | 5e6253c86e1f631f4de3c8d0588b6742ea27ed03 |
refs/heads/main | <repo_name>bpeskett/flashcards<file_sep>/src/Layout/Study/Study.js
import React, { useEffect, useState } from "react";
import { useHistory } from "react-router";
import NotEnoughCards from "../Cards/NotEnoughCards";
export default function Study({ deck, cards }) {
const history = useHistory();
const [cardNumber, s... | 24a9bdfe84da9462a969e3b55894dcfc9ac87ada | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | bpeskett/flashcards | d8e90a95c6d01d0ba03752ecc5b78f3cdd17c172 | 5d0a07325e889a8efebd2b05d81b5cf17555cbab |
refs/heads/master | <file_sep>source 'https://rubygems.org'
gem 'rails', '3.2.12'
gem 'toto'
group :production do
gem "pg"
end
group :development, :test do
gem "sqlite3"
end
| ef9d5812e4f5c86997b57bb50cfb41c170720a81 | [
"Ruby"
] | 1 | Ruby | NickG22293/dorothy | a057fb5e6a70f0a84df1491d84646df02206c5f3 | 1c6d864eae49f0e138c302284546d18cd9103493 |
refs/heads/master | <file_sep>using datalogic_ce_sync;
using System;
using System.Collections.Generic;
using System.IO;
namespace USBLAN_Sample
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("~~~ Datalogic USB/LAN API Test App ~~~");
Console.WriteLine("1) Start Process");
Console.WriteLine("2) Find ... | ad578d9c129fd6f2623bf5496c7754be61533c0e | [
"C#"
] | 1 | C# | datalogic/USBLAN_Sample | 16569c6de816829141888433d5ed0b06e88adb1e | c4666a40371f3b67c80e5d433803d89fa1196843 |
refs/heads/master | <file_sep>######### Band should initialize with a name and hometown
######### Band should have a Band#name and Band#hometown and a band should be able to change it's name
##### Band should have a method Band.all that returns all the instances of Band
##### Band should have a method Band#play_in_venue that takes a v... | 1e3f914d5c33af0e2f8d37e1fa79c277a28de0e2 | [
"Ruby"
] | 4 | Ruby | SaigeXSaige/practice-oo-associations | 74ef1c4d61fc57702ab22ebfb6a06b1a0ceacce5 | a66658f9bee4fcaf32b9d92e5ff0f2d7b6665887 |
refs/heads/master | <repo_name>phanvantan73/roll-system<file_sep>/database/seeds/UserTableSeeder.php
<?php
use Illuminate\Database\Seeder;
use App\User;
use App\Subject;
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker\... | c8543c7c8124325b681af5f4b581ff1bd1933f1c | [
"Markdown",
"PHP"
] | 5 | PHP | phanvantan73/roll-system | dcc9bfda3098a272567a146e6c253ffa28fc0950 | 12e761688216d31926928a0b0fa413428d8f8e0d |
refs/heads/master | <repo_name>baharestani/shokunin.10xdev<file_sep>/10xDev.Tests/PresenterTests.cs
using System;
using Shouldly;
using Xunit;
namespace _10xDev.Tests
{
public class PresenterTests
{
[Fact]
public void Get10XDev_throws_exception_for_more_than_one_results()
{
var results = new[]
... | 9e54f677b859371531f66290f8f042e7809ae9da | [
"Markdown",
"C#",
"Shell"
] | 19 | C# | baharestani/shokunin.10xdev | c3de9b279757779f9875b94b613c9a033f879f61 | bb2b20679d6eacd7304ebafe28be3d08370941e3 |
refs/heads/master | <file_sep>let packageName = "mp3-compress";
let fs = require('fire-fs');
let path = require('fire-path');
let Electron = require('electron');
let fs_extra = require('fs-extra');
let lameJs = Editor.require('packages://' + packageName + '/node_modules/lamejs');
let co = Editor.require('packages://' + packageName + '/nod... | b485eba9840fd00b920c515f85a23e8a2499e924 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | Lucassssss/CocosCreatorPlugins | 130cb3fac58c5bd69d49b42dba7b706904d2dd79 | beaba58a9cd9c28bcdba5660da8c033cade39d54 |
refs/heads/master | <repo_name>nidhhoggr/GPRS-googleVoice<file_sep>/classes/GPRS_SMS_API.php
<?php
/**
* GPRS_SMS_API
*
* This class has some loose coupling with PhpSerial, a class for interfacing
* a device connected to a computer. the purpose of this class is to interface
* SMS functionality of the connected GPRS shield.
*
... | 783c6b729c51bc04aabd5c580f80b7225079c97c | [
"Markdown",
"PHP"
] | 7 | PHP | nidhhoggr/GPRS-googleVoice | 20f4cdb6baf8f798e91d1d90413d8142f679d966 | 91510c1ad9bdda18010ea00b9589c5f050548038 |
refs/heads/master | <file_sep>using AssessmentTest03.Domain;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace AssessmentTest03
{
[TestClass]
public class Level1EfTests
{
[TestMethod]
public void add_parties_and_make_queries()
{
EfMethods.RecreateDatabase(); // To ... | 868bff040aaed8e6916429ca8ffcb11036cd89c6 | [
"C#",
"SQL"
] | 7 | C# | johnur/AssessmentTest03 | 5c1b578af9e7e453973c0143c2af3cbec6f76bb1 | eb6060b676191dc5a2182fefc433ed927287085d |
refs/heads/master | <file_sep>let run: game.LedSprite = null
let char: game.LedSprite = null
basic.forever(function () {
run = game.createSprite(randint(0, 4), randint(0, 4))
char = game.createSprite(2, 2)
while (true) {
if (char.isTouching(run)) {
run.change(LedSpriteProperty.X, randint(0, 4))
... | a282dd377073b35818614be56059a95bb75974b3 | [
"TypeScript"
] | 1 | TypeScript | umtozl/yakalamaca | 2c8fd3ab76944a7face8c3aa5b8bc47db37beb99 | 5e897802ceaccbda1eb7697df9467bd6b3f4b13c |
refs/heads/master | <repo_name>bouhenic/MysqlPython<file_sep>/BddMysql/Sammysql.py
import pymysql
class Bdd:
def __init__(self, host, port, user, password, db):
self.host = host
self.port = port
self.user = user
self.password = <PASSWORD>
self.db = db
def Lastselect(self):
with ... | 5f73d72faa990a1f6eaae5b93ef2de5c8075ced6 | [
"Python"
] | 1 | Python | bouhenic/MysqlPython | 43e1f438ce316f68bf31f29af4f41e271330c2c8 | 4ab031d3cb6424a08f239f3977ab6f9030cb7ebc |
refs/heads/master | <file_sep>module Gry
class CLI
def initialize(argv)
@argv = argv
end
def run(writer)
opt = Option.new(@argv)
if opt.version
rubocop_version, = *Open3.capture3('rubocop', '--verbose-version')
writer.puts "gry #{VERSION} (RuboCop #{rubocop_version.chomp})"
return
... | fa47efeee67fdf753f4b41b8589a73aa0d29d789 | [
"Ruby"
] | 2 | Ruby | koic/gry | f739203d28a75be663536b9a467709c03c703860 | c2addc9232aecf64e4e31a3ab9be16de76a67355 |
refs/heads/master | <repo_name>nayeemzen/koin-merchant-android<file_sep>/app/src/main/java/com/sendkoin/merchant/ui/checkout/CheckoutPresenter.java
package com.sendkoin.merchant.ui.checkout;
import com.annimon.stream.Stream;
import com.google.gson.Gson;
import com.pushtorefresh.storio.sqlite.operations.delete.DeleteResult;
import com.sen... | 7b7fb931db72c7fa7088938f61c38e33d72ef344 | [
"Java",
"SQL"
] | 39 | Java | nayeemzen/koin-merchant-android | 17541ce27a1186591eae3a1c0db607791bbf0016 | 8ba79d37aa5aa3490020cd6200580bfe14f5c27f |
refs/heads/master | <repo_name>richmengsix/Tweather<file_sep>/js/GoogleAPI.js
/**
* @author SHarmony
*/
var geocoder;
var map;
var mc;
var mcOptions;
function initialize() {
geocoder = new google.maps.Geocoder();
var mapOptions = {
center: new google.maps.LatLng(40.8079... | 6ff22ae8293fe21e1f6f56ca051f5f55355d76a1 | [
"JavaScript"
] | 2 | JavaScript | richmengsix/Tweather | 9d0a1434c6f09acf56b7d18cb39aaf22c2ccbfb7 | 1d4a066889cb4a966d6009499129655c8c6b0229 |
refs/heads/master | <repo_name>ds147000/pannelVr<file_sep>/src/run.js
var VR = pannellum.viewer('panorama', {
"type": "equirectangular",
"panorama": "./src/images/alma.jpg",
});
function hotspot(hotSpotDiv, args) {
hotSpotDiv.classList.add('custom-tooltip');
var div = document.createElement('div');
div.innerHTML = arg... | 266471f0d2f7e825aeb7e349b559890d0702fcc4 | [
"JavaScript"
] | 1 | JavaScript | ds147000/pannelVr | 746f64d493709a6827f6738244292990713ee635 | 878e3f7d7d3cb28829690fdf3124fbe1c0fd23e8 |
refs/heads/main | <repo_name>Sedriskor/chat<file_sep>/chat_3/chat_split.py
def read_file(filename): #read file
lines =[]
with open(filename, 'r', encoding='utf-8-sig') as f:
for line in f:
lines.append(line.strip())#strip()去掉換行
return lines
def chat_split(lines): #split chat
new =[]
for line ... | 286bbd5a6734c3d07446b03850e474a731855eb2 | [
"Python"
] | 1 | Python | Sedriskor/chat | 3c9f6e7707f84b1855a1e5bc7bfbc6461099d7d8 | 60e028dc658b5406785794b59b4e4c347d5d1348 |
refs/heads/master | <file_sep>import numpy as np
import urllib.request
import json
import csv
def parseData(fname):
for l in urllib.request.urlopen(fname):
yield eval(l)
def one_hot_year(y, max_year, min_year):
ohv = np.zeros(max_year-min_year) # zero vector represents max_year
if y - min_year == 0:
retur... | 275a9cf175ea6d3bd99ff3dbf9922882426cb993 | [
"Python"
] | 2 | Python | nolan4/PyTorch-Linear-Regression | b6ddaa22a1a8f6f92952a58507319d837c7d1786 | 444f4b3d352fe847edac3d4366935fde569eecaf |
refs/heads/master | <repo_name>zhangchch/exercise7<file_sep>/lib/quantified_group.js
module.exports = function (str) {
var arr = str.split(/\s/);
arr = arr.filter((item) => item);
if(arr.length != 8) {
return false;
}
arr.forEach((item) => {
let regExp = /Ox[A-Fa-f0-9]{2}/;
if(!regExp.test(item)... | 50033cc77dd2fde482400158270b57abfd3388cc | [
"JavaScript"
] | 2 | JavaScript | zhangchch/exercise7 | 80955a0499308d4ba26bdd633613d562c8d4ee04 | 0b84f0e3cb5de2fb1799b3e008e21b1c00fc3a5c |
refs/heads/master | <repo_name>Zain517/java-s_FianalProject<file_sep>/finalproject/WEB-INF/classes/neworder.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
import javax.swing.*;
public class neworder extends HttpServlet {
//Process the HTTP Get request
public void doPost(Ht... | 7e8c0ea43b1ef979d54638ac2d56daa2f6163b72 | [
"Java"
] | 4 | Java | Zain517/java-s_FianalProject | e1e05fbc3c84523e6fe9d60759bd050eb563cdd9 | 3acfc0e09909a4c3b9fb88be25cb3e7ae22bc151 |
refs/heads/master | <file_sep>import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
state: {
userName: "<NAME>",
userAge: 70,
friendsList: ["<NAME>", "<NAME>", "Case 250"]
},
mutations: {
changeUserAge(state, data){
state.userAge = data;
}
},
actions: {
upd... | 066f7170e2bb4c6083807143c7138775aafee3b7 | [
"JavaScript"
] | 1 | JavaScript | nighatm/Assignment13BGrid | 4744645c4317e671343b8df5015449b7a50ea1a2 | 555a5493d18f8685875ee6c865de8bb0f28c112b |
refs/heads/master | <file_sep># This is a sample Python script to work on how to open a file.
from pathlib import Path
'''
****************************************************
First Task: OPEN, READ, ASSIGN
Step 1: open text file
Step 2: assign the data to list.
Step 3: decode the given list
Step 4: assign the decoded li... | 2e30b119bf963244f48add6a26a6df9931c9a3c0 | [
"Markdown",
"Python"
] | 2 | Python | NorbertSapi/dreamWork | b96a6c568e0b7684ff565cd83c5dfb830855950c | 1d7e0f809a104b4038a8ae3d0cab71d920543da6 |
refs/heads/master | <repo_name>tonyfruzza/AwsSsmAgentMonitoringPoC<file_sep>/README.md
## SSM Agent Monitor
Triggers a CloudWatch Alarm when a managed instance is not capable of receiving SSM commands and generating an CloudWatch Metric within the allotted threshold of time.
### Configuration
1. Set `alarm_sns_arn` within conifg-common.y... | f709be17930b6f3dc0d29404fc4b2ce316348b0e | [
"Markdown",
"Ruby",
"Shell"
] | 3 | Markdown | tonyfruzza/AwsSsmAgentMonitoringPoC | b6f0b33fb47072341c01a48460b08e722d480dfe | 6affc575a4f21b728fd8a847bee75a5170347d22 |
refs/heads/master | <repo_name>xj0707/tigergame<file_sep>/.svn/pristine/07/077b9c6eab368804a18c9523f493fade2980d3e1.svn-base
<?php
namespace application\admin\controller;
use think\Db;
class GameReportsController extends CommonController{
//玩家报表
public function index(){
if(!$this->come_where['parent'][1]){
$this-... | dbef0c956b571c4e863b9c7bd3a922c74d979e8a | [
"SQL",
"PHP"
] | 7 | PHP | xj0707/tigergame | 4efface5b2626d6446e99d25be779f9939cc4ac1 | 9814f1a0c8578d34478461b90f39551b97df483c |
refs/heads/master | <file_sep>// import preact
import { h, render, Component } from 'preact';
// import stylesheets for ipad & button
import style from './style';
import style_iphone from '../button/style_iphone';
//import undersground stylesheet
import undergroundStyle from './styleUnderground';
// import jquery for API calls
import $ ... | 7a6d78b2a3b0924dad8648b2e671885d59c1383d | [
"JavaScript"
] | 1 | JavaScript | dewicz/GUI | 7f5b1be581983b5fec51286f824c439253ab5879 | ddc58eb4ec8dcdfd5f6ca1b5c7fa1ef97282c5a5 |
refs/heads/master | <file_sep>if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
#USER config
export USER_SHORTPATH=true
#enable bash completion
[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion
# make less more friendly for non-text input files, see lesspipe(... | 5e549664b866b6ac0fd5c2b8a4b168b2c17a4472 | [
"Shell"
] | 1 | Shell | singlewhai/dotfiles | 362566316fbdbd7e59cef63948990755d0efd71c | dca8f5cab27e2b0057bccd67152263d386142468 |
refs/heads/master | <repo_name>ValentinAlexandrovGeorgiev/SeekForGeek<file_sep>/javascript/setup/geek/profile.js
$(document).ready(function(){
var currentUser = Parse.User.current();
$('#username').append(currentUser.get('username'));
$('#emailToChange').append(currentUser.get('email'));
$('#emailInput').val(currentUser.g... | e5e8d23de1dc0b92874775c1c199bc105b6c87b9 | [
"JavaScript"
] | 2 | JavaScript | ValentinAlexandrovGeorgiev/SeekForGeek | d0a52c949fb515f4a48d983a568f48c4b6589b73 | 37262a22bd483981b5e5c214d698879010441c1c |
refs/heads/master | <file_sep>import React from 'react';
import { Card, Row, Col, Icon, Switch, Modal, Button,AutoComplete, Input,Popover,Form, Select, message, DatePicker, Radio, Upload, InputNumber, Slider } from 'antd';
import './projects.less';
const Option = AutoComplete.Option;
const OptGroup = AutoComplete.OptGroup;
const FormItem ... | de697ecac96d802decf9eaf700994a5342f1df92 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | HanTengfeifei/react | 7fbdaef859a8e9f8b5db0a7ab39df3be332ef75c | e615431f908e109050e0a33a6c67ac145577225c |
refs/heads/master | <repo_name>Toansmile/gos<file_sep>/gos.go
/*
Go ↔︎ SQL, tool for mapping between Go structs and SQL records. NOT AN ORM, and
should be used instead of an ORM. Expressly designed to let you WRITE PLAIN SQL.
Example usage:
type External struct {
Id string `db:"id"`
Name string `db:"name"`
}
type Internal st... | b392676f15c8b5b25a9822c290e1a287cbf4afa7 | [
"Markdown",
"Go Module",
"Go"
] | 4 | Go | Toansmile/gos | c048fd10939daac847b7df5ee7b06801dab66e75 | e9f2cf2f45df6df3acf3d145cef5a9112ec9cab4 |
refs/heads/master | <repo_name>userrails/GrapeApi<file_sep>/app/api/api.rb
require 'grape-swagger'
class API < Grape::API
prefix 'api'
version 'v1', using: :path
mount Employee::Data
add_swagger_documentation
# add_swagger_documentation :format => :json,
# :api_version => 'v1',
# ... | 42cf479fcadc2158d8d3e879d792c9dbb5f24e60 | [
"Ruby"
] | 2 | Ruby | userrails/GrapeApi | 1ee55ce250acde228487f5480253f13ab407c49a | 36e957a8bdf236fce6d5f9c097c2fe2110445e70 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.