branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>josephowatkins/simple-calendar<file_sep>/src/App.js
import React from 'react';
import styled, { createGlobalStyle } from 'styled-components';
import Calendar from './Calendar';
const Center = styled.div`
max-width: 702px;
margin: 25px auto;
background-color: #eeeeee;
`;
const GlobalStyle = createGl... | 3b5ff783cdca20eb19bffed80ab6c9fade02cd37 | [
"JavaScript"
] | 2 | JavaScript | josephowatkins/simple-calendar | 0d92a7a296f97894de0c6addf32ba81f7975641d | 5a89bb8feccfa5cf480d137a8e45d143577411d7 |
refs/heads/master | <file_sep>package com.cognizant.gto.apexresearch.datasetgenerator.exception;
public class DataGeneratorException extends Exception {
private static final long serialVersionUID = 1L;
public DataGeneratorException(Exception exception) {
super(exception);
}
public DataGeneratorException(String errorMessage, Exce... | f2ee6f5e92f38bb5c8ec574ad291bc5123a30e23 | [
"Java",
"Maven POM"
] | 9 | Java | hkuyam008/DatasetGenerator | a46762daac35cfae019894195406b712a1e02b82 | 529c6887828956af48a8cf7033a93a400f311791 |
refs/heads/master | <repo_name>ignacykasperowicz/code-challenges<file_sep>/bob-bot/backend/app.rb
require 'em-websocket'
require_relative 'lib/responser'
EM.run do
EM::WebSocket.run(:host => "0.0.0.0", :port => 8080) do |ws|
ws.onmessage { |msg|
responser ||= Responser.new
ws.send responser.get_answer(msg).dup
}
e... | 8f6a3922ba3ba6ccfa8af85c10e19f044d0f7318 | [
"Markdown",
"JavaScript",
"Ruby"
] | 7 | Ruby | ignacykasperowicz/code-challenges | af23559d4c8c207b5c6873aa541a745d07db9888 | 4b41c7751dbeb37edb44c862dc10856c8e410af3 |
refs/heads/master | <file_sep># Create your views here.
from django.contrib.auth import login, authenticate
from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import render, redirect
from django.contrib import messages
from uniauth.decorators import login_required
from .models import Checklist, Person, Deadline
... | fc6368db095cd669743da71bba22b836204e5ed1 | [
"Python",
"Text"
] | 5 | Python | delaware19/team-3 | 6c9c1bfbb83b8cb00383e480e39f529433544dd2 | a1156bd67460e5ee994f9651fef3c693bf28cbf4 |
refs/heads/master | <repo_name>joerobmunoz/Inter-App-Messaging<file_sep>/Database.py
__author__ = '<NAME>'
import sqlite3
from MessageObject import Message
class Deployment():
def deploy(self):
try:
db = sqlite3.connect(':memory:')
cursor = db.cursor()
cursor.execute('''
CRE... | e9ebe4bbaa6d8bacc8a65ba2a061134a3d3fdd75 | [
"Markdown",
"Python"
] | 5 | Python | joerobmunoz/Inter-App-Messaging | e38cb664e41cca830344ecadffba9176b90745f6 | 9dc41fb2df1914fdbc2dd6c091e15cbb0bbddbdb |
refs/heads/master | <repo_name>BB9z/MMOfficeAutomator<file_sep>/launcher.command
#! /bin/sh
set -euo pipefail
cd "$(dirname "$0")"
pwsh -File "$PWD/Scripts/main.ps1"
<file_sep>/README.md
# MMOfficeAutomatror
## 配置
需要 powershell core v6,安装包下载:
* Windows 10 之前的系统需要装额外的[运行时依赖](https://download.microsoft.com/download/3/1/1/311C06C1-F162-4... | e5c96c9f580340ac90f7312980d1afcbca47831a | [
"Markdown",
"Shell"
] | 2 | Shell | BB9z/MMOfficeAutomator | 740b5ba2b96ee7de13925bb9dda4c1af91387937 | 4f04b3d92c3a4fe91c1ee0471de86c66c000147d |
refs/heads/master | <repo_name>glyfina/OpenCV<file_sep>/main.c
#include <iostream>
#include <cv.h>
#include <highgui.h>
#include <stdio.h>
#include <cxcore.h>
#include <stdio.h>
#define h 280
#define w 320
#include <math.h>
#include "SerialPort.h"
using namespace std;
CSerialPort serial;
int main()
{
serial.OpenSerial();
CvCapt... | 3563a391f6abc9a9e03763cadb8c1ccc112680ac | [
"C",
"C++"
] | 2 | C | glyfina/OpenCV | 4a231cd8feb297160e2605d2b6926b646fa5de78 | ad1116987d6b9033d5fd94753ec094c5f8a12709 |
refs/heads/master | <repo_name>reconquest/monk<file_sep>/monk.go
package main
import (
"fmt"
"net"
"sync"
"time"
"github.com/reconquest/karma-go"
)
const (
intervalPresence = time.Second * 2
)
type Monk struct {
mutex *sync.Mutex
machine string
security *SecureLayer
port int
udp net.PacketConn
dataDir string
... | 96dc5e38688aa6df2e83df458c018f178c2094ab | [
"Go",
"Shell"
] | 33 | Go | reconquest/monk | c8c9e4abbdfe01d3adfb90f22e47463d49c61d28 | 93aee2993264409e1b963c101f16cbf32ad5404c |
refs/heads/master | <file_sep># andevlib
android develop library
<file_sep>package com.android.andevlib.view.fragment;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
... | 258bcd24059638decae9486cc46ca26e807fa721 | [
"Markdown",
"Java"
] | 4 | Markdown | willchyis/andevlib | cf5101322fc4a3b45fff49bcf07f32287ef172f7 | 8e1b34d949fd819c477c9c71f4723f8e99afa9a1 |
refs/heads/master | <file_sep># dotfiles
My dotfiles, usually for ubuntu
Filenames do not have the leading dot.
<file_sep># Use the default ~/.bashrc but with
# Modifications:
Uncomment the force_color_prompt=yes line
# Additions:
# git clone https://github.com/magicmonty/bash-git-prompt ~/.bash-git-prompt
GIT_PROMPT_ONLY_IN_REPO=1
so... | db979bdf32e172cdfd9405243161b773504035ce | [
"Markdown",
"Shell"
] | 2 | Markdown | matthewbeckler/dotfiles | facaf73a693c8461f41a2b35625626f497485d9b | 0700ef0f141c03e2ef51034d4065a9f870595f8e |
refs/heads/master | <file_sep>import { API_CONFIG } from "./../../config/api.config";
import { StorageService } from "./../../services/storage.service";
import { Component, NgZone } from "@angular/core";
import {
IonicPage,
NavController,
NavParams,
Events,
PopoverController,
Platform
} from "ionic-angular";
import { UsuarioSe... | 83d04d29b643e30a4f39d241723bd026f44e1639 | [
"TypeScript"
] | 33 | TypeScript | kelvi-ribeiro/app-info-saude-paciente | 4a48a955de941668312bc3606485875014cbbf1f | 611406231cd6243e20261cc85a74d128f189fd1d |
refs/heads/master | <file_sep>#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<windows.h>
#include<time.h>
#define WIDTH 15
#define HEIGHT 30
#define DOWN 1
//一个随机函数 获得砖的高度
//根据输入,飞行
void updateWithInput(void);
void updateWithoutInput(void);
void show(void);
void menu(void);
void starts(void);
int random(int min, int ma... | 34c4a62c3837ae9911bec4ce9f9775b19cf2d744 | [
"C"
] | 1 | C | tutenglele/nowrepos | b7bda29680491229d756af2f0d3e252cf9492715 | a3cff23abd6c62829e982382c4f7390926653cf6 |
refs/heads/main | <file_sep>def shell_sort(nums):
sub_list_count = len(nums)//2
while sub_list_count > 0:
for start_position in range(sub_list_count):
gap_insertion_sort(nums, start_position, sub_list_count)
yield nums
sub_list_count = sub_list_count // 2
def gap_insertion_sort(nlist, st... | 07739c32dd98c7cd3de33eeeba1605b058b05058 | [
"Markdown",
"Python"
] | 5 | Python | iaslyk/sort_visualizer | 1bf97e3500dd2758574bef145c99c4e8ddfdd12f | 476e168863d076c5d628b54a90870b1a88e60622 |
refs/heads/master | <repo_name>akshaymnair/CurrencyConverter<file_sep>/src/LiveExchangeRates.java
public class LiveExchangeRates extends Currency {
private int convertFrom_CurrencyID = 0;
private int convertTo_CurrencyID = 1;
private Currency currency;
private CurrencyConverter currencyConverter;
public double calculateExchangeR... | 5fc83926272d12a64833572acbf43a8171256516 | [
"Java"
] | 1 | Java | akshaymnair/CurrencyConverter | b3646cadbd64619e64f12f2fd4b7ce849fb0fe87 | 19b0898bd3edbd00b8d0e6f4f116eef3c95155e0 |
refs/heads/master | <file_sep>const sizeUp = document.querySelector('.size-up');
const sizeDown = document.querySelector('.size-down');
const color = document.querySelector('.color');
const text = document.querySelector('p');
let i = 20;
sizeUp.addEventListener('click', function () {
i += 5;
text.style.fontSize = i + 'p... | 16fdfc980392872581ceaa85a3538676c028c6a0 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | emzys/js-text-resizing | 4c750e738c20dd9eb4fd79069a5c8ef509958684 | 061051220d75f823e446491ffb6e8193df6651ec |
refs/heads/master | <repo_name>Ajeky/CRASINVENT<file_sep>/src/main/java/com/salesianostriana/damcrasinvent/servicios/UsuarioEmpresaServicio.java
/**
*
*/
package com.salesianostriana.damcrasinvent.servicios;
import org.springframework.stereotype.Service;
import com.salesianostriana.damcrasinvent.model.UsuarioEmpresa;
import com.sales... | cb206683125619e754f72d2d41cc156cc4ff299c | [
"JavaScript",
"Java",
"HTML"
] | 26 | Java | Ajeky/CRASINVENT | d760c984b10065c69b0d4879226774c3fa6a2c08 | bade18a3a9798c2cc3a7aad7d8c7e0fc97d402fa |
refs/heads/master | <repo_name>Sounder721/dcqvideo<file_sep>/src/main/java/com/sounder/dcqvideo/widgets/DcqVideoView.java
package com.sounder.dcqvideo.widgets;
import android.content.Context;
import android.content.Intent;
import android.graphics.SurfaceTexture;
import android.support.v7.widget.AppCompatSeekBar;
import android.util.Attri... | ea52c93d3f814e12876c72ef22c827cbf8d68018 | [
"Markdown",
"Java"
] | 4 | Java | Sounder721/dcqvideo | 712d94170b65fdf1017b335d4134d7fabeaa2561 | 0c10388c51e119a530b0a7a054373a17b5812603 |
refs/heads/master | <file_sep>import React, { Component } from "react";
import {
View,
Button,
Text,
TextInput,
StyleSheet,
Platform,
TouchableOpacity
} from "react-native";
import { HeaderBackButton, NavigationActions, KeyboardAvoidingView } from "react-navigation";
import Toast, { DURATION } from "react-native-easy-toast";... | 1e503c5353171cd7c9e58998d20a27a2ec7bbb28 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | hraldur/React-Project3-MobileFlashcards | faa397728a1de6409e8fd708cd9bf09402d49ca0 | 33e0e74ac9bdf478ed1c62c22099923cdd1eb43d |
refs/heads/master | <file_sep>import { useNavigation, useTheme } from "@react-navigation/native";
import React, { useEffect, useState } from "react";
import {
SafeAreaView,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from "react-native";
import { Button } from "react-native-elements";
import { HISTORY_PE... | 217f23c10d881af685b49f1723fe54bfb6a2a660 | [
"JavaScript"
] | 5 | JavaScript | kcho9906/cryptoTracker | 9499daf9bd0c9339554cec0c39e02028189774e5 | d389d504dbf66aaab67bd385ab930ac3a6f999c5 |
refs/heads/master | <repo_name>zmanring/angular2-simple-ecommerce<file_sep>/src/app/search.service.ts
import { Injectable } from '@angular/core';
import { Http } from "@angular/http";
import 'rxjs/add/operator/map';
let totalResults = 0;
@Injectable()
export class SearchService {
constructor(private _http:Http) { }
public getIt... | e296de33b6a97d80d3ee756d7380292bfbdad96d | [
"TypeScript"
] | 4 | TypeScript | zmanring/angular2-simple-ecommerce | 99ff3bf0401acb43460bd324ae98018255d90679 | 8a1682a6af5cee7ddf8da9a61ec8a177870590c4 |
refs/heads/master | <file_sep>package com.codingdojo.portfolio.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class HomeController {
@RequestMapping("/")
public String index() {
return "index.html";
}
@RequestMapping("/about_me")
p... | 82dc6e01821b1c823405de49c1b4a9b7405af189 | [
"Java"
] | 1 | Java | junottanchanco/Portfolio | 234b1da9424e9cd2a5023e795a8bef127f943ae4 | afc3f603ae3b92b82e158f047b456428f23edfd9 |
refs/heads/master | <repo_name>laosiaudi/leetcode<file_sep>/Contains_Duplicate_III.cpp
// C/C++ File
// AUTHOR: LaoSi
// FILE: Contains_Duplicate_III.cpp
// 2014 @laosiaudi All rights reserved
// CREATED: 2015-06-01 16:48:08
// MODIFIED: 2015-06-01 17:04:20
#include <iostream>
using namespace std;
class Solution {
public:
... | b4d76ad42a97f55966edd6a8d27fce4da1e48351 | [
"C++"
] | 192 | C++ | laosiaudi/leetcode | 372b05fac1b55ae1a2053f40cd28f48f7a260ea2 | 10802d7ccb69ba287b1db0cd501377054a770ae1 |
refs/heads/master | <file_sep>import Ws from "ws";
const wss = new Ws.Server({ port: 8080 });
const connections = [];
wss.on("connection", (ws): void => {
connections.push(ws);
ws.on("message", (message): void => {
connections.forEach((connection: Ws) => {
connection.send(`Received: ${message} at ${new Date().toISOString(... | 5b6c5c0aad156dcab722eb3ec9a73d5c85392a7a | [
"TypeScript"
] | 3 | TypeScript | dcastrodale/socket-drummer | dc4a20f30daadf758e89214b62376a8ea2f98c4e | c5fd1be418a37e8c19805f8e23a9425ceeb8fde6 |
refs/heads/master | <repo_name>gsrppaladin/pokedex3<file_sep>/pokedex/ViewController.swift
//
// ViewController.swift
// pokedex
//
// Created by <NAME> on 12/13/16.
// Copyright © 2016 simplyAmazingMachines. All rights reserved.
//
import UIKit
import AVFoundation
class ViewController: UIViewController, UICollectionViewDelegate, UI... | 0c00482ecb159635b23bf55abd12dbc72488e26d | [
"Swift"
] | 1 | Swift | gsrppaladin/pokedex3 | 906b6086ef31200d2e6168a075c23836ba9f3d1d | c9fe6b97bf6f2369c777808f06ba90fb6affe12b |
refs/heads/master | <repo_name>nuvanda/example-rails-challenge<file_sep>/app/controllers/charges_controller.rb
class ChargesController < ApplicationController
def index
@successfull_charges = Charge.successfull
@failed_charges = Charge.failed
@disputed_charges = Charge.disputed
end
end
| e1cd16988de7e4f1fc88ceb64bb6335f9534d532 | [
"Ruby"
] | 1 | Ruby | nuvanda/example-rails-challenge | 0863843c7b6b0787ec61fb94b8e34bc79ef0f319 | e4a5f78cc7eea100e88e4825fcf0e24ed26f6232 |
refs/heads/master | <repo_name>jhemyson/estudo-react<file_sep>/src/pages/Repository/index.js
import React from 'react'
export default function Respository(){
return (
<h1>Respository</h1>
)
}
| f10e8c83e85cfcdc34e487d91439c4e3c5a4b364 | [
"JavaScript"
] | 1 | JavaScript | jhemyson/estudo-react | bc4bbbb2bc0fde5f4c10ae9916a1528b6e97cc79 | 12a275244f8bce44f13b53a8f857d898ba8321f4 |
refs/heads/master | <file_sep>package utils;
import static org.junit.Assert.*;
import org.junit.Test;
public class CalculadoraTests {
@Test
public void testSuma() {
int resultado = CalculadoraClass.suma(2,3);
int esperado = 5;
assertEquals(esperado, resultado);
}
@Test
public void testResta() {
int resultado = Calc... | a90be9f7eadfc3cdb068d233064225dad80d5ed5 | [
"Java",
"Maven POM"
] | 2 | Java | camiladevops/ProjectDemo | df0cc2acc949550671ccb2d0f81c8eeeb76a0d15 | 041bf1421d05ef65b11d78c316f57bd7acd395e4 |
refs/heads/master | <file_sep>import { Body, Controller, Get, HttpCode, HttpStatus, Post, Query, UseGuards } from '@nestjs/common';
import { ApiBearerAuth, ApiOkResponse, ApiTags } from '@nestjs/swagger';
import { AuthUser } from '@/shared/decorators/auth-user.decorator';
import { AuthGuard } from '@/shared/guards/auth.guard';
import { U... | 526c561a546b5877f14c2e980ec5cd53a4f49ed2 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 35 | TypeScript | app-sphere-softwares-llp/nest-typeorm-boilerplate | 52732e5b71225f205e68ad12480af505003dbae4 | ad54268286a146f7be76d3256ed50139a5bd2adc |
refs/heads/master | <repo_name>Shani679/users<file_sep>/src/store/actions/index.js
export{
getRandomUser,
setUser,
deleteUser,
setTooltip
} from './app';<file_sep>/src/shared/utility.js
export const isValidEmail = (value) => {
const pattern = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](... | e95e5d22932959522a310c8d3e695297c3a25214 | [
"JavaScript"
] | 7 | JavaScript | Shani679/users | eb4d6647eb52b00bbdb72d8e3a747a7bd30faf12 | a97507d3b685dc7109b98aca4cfbc976d0fa62c3 |
refs/heads/master | <file_sep>import React, { useState, useEffect } from 'react';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/Dialo... | 8c447b3924399a665c6388369b8fd6bcd403aa34 | [
"JavaScript"
] | 5 | JavaScript | mvampa91/bingo-game | 458222fa90bc899b13897f64d9d95fdae64f9cb3 | 66ee9461405bfaacd6bc4ea6bcec298acc62c4ec |
refs/heads/master | <file_sep>/* ==================================================================
* Matlab call C = cellstrmap(A, B)
* where A and B are cell arrays of strings,
* return array C of integers such that
* A(i) = B(C(i)) if A(i) occurs in B,
* C(i) = 0 otherwise
* ================================================... | f239751182e6d92072ca6efe65744919df39d7cd | [
"Markdown",
"Makefile",
"C",
"C++",
"Shell"
] | 9 | C++ | chagge/BIDParse | 718f09fcb3c1ad159ea928bd1305c41ad8d2840b | 9d99704e1dd990fb4aee0fbe3ad428e98a4cc863 |
refs/heads/master | <repo_name>tnvu210/UTD-Senior-Project<file_sep>/Main.py
from controller import Controller
from controller import GardenDb
import sys
sys.path.append('/home/pi/.local/lib/python3.5/site-packages')
import time
import schedule
import logging
# setup on boot
# create logger
logger = logging.getLogger('garden')
logger.se... | 2711816ac271b0febfc27b1203b6f9e59bae17d6 | [
"Markdown",
"SQL",
"Python"
] | 7 | Python | tnvu210/UTD-Senior-Project | 1ca4455e462ccaab5bf5c56aa0b3cda0cd240efe | edd3593589764d86c2ea2730d0b90088f5fda8e7 |
refs/heads/master | <repo_name>IvanPJF/job4j_rest<file_sep>/db/update_001.sql
drop table if exists person;
drop table if exists employee;
create table employee
(
id serial,
first_name varchar(2000),
last_name varchar(2000),
inn bigint unique not null,
date_employment timestamp n... | 2db25669023a7460c43b5a999734910a549c2633 | [
"Markdown",
"SQL"
] | 2 | SQL | IvanPJF/job4j_rest | baed55e8b51c8f32da8bc312f75df56fc3a0896d | 1408b2c2dc46ffe88d4b3166264dd1bd33b28ace |
refs/heads/master | <repo_name>dksingh481/XebiaAssignment<file_sep>/src/com/xebia/yakshop/parser/XMLParser.java
package com.xebia.yakshop.parser;
import java.io.InputStream;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import com.xebia.yakshop.model.Herd;
public class XMLP... | 5148ee0ce0c6457c0a4fb7b1e4ce2961d8c2253e | [
"Markdown",
"Java"
] | 6 | Java | dksingh481/XebiaAssignment | 66cc46452f45420f8c995d13a34653468a4760f9 | 40c2ea8964d56d36c12ff54de4100faa16ef8916 |
refs/heads/master | <file_sep>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
ENABLE_TESTING(TRUE)
find_package(Qt4 REQUIRED)
add_definitions(${QT_DEFINITIONS})
SET(${QT_USE_QTTEST} TRUE)
include(${QT_USE_FILE})
#include_directories("../../src/backend")
#set(PARSETEST_SRCS parsetest.cpp)
#QT4_AUTOMOC(${PARSETEST_SRCS})
ADD_EXECUTABLE(ParseTest parset... | 09d99d5378a7bcc5471fad5531c5404d98965f4e | [
"CMake",
"C++"
] | 21 | CMake | saurabhsood91/one-click-installer | 7786d24b8e796936067d7efe0cca7cdf8564a235 | 2c493a77bbc6ba616b09439a9981c37efef9625b |
refs/heads/master | <file_sep>All documents can be stored into a mongodb collection.and then we can perform any type of operation we want.<file_sep>
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, fs = require('fs')
, user = require('./routes/user')
, http = require('http')
,re... | d6ebf45e168fb914e4ec3553dc78700feb51eeb4 | [
"JavaScript",
"Text"
] | 2 | Text | deepak254/demo | 579d7b3d91a5a3ffab595737eacebb5e36137373 | d2be0e039c774f3719d311322847766375ac6126 |
refs/heads/master | <repo_name>Redicoding/Yazilim-Yapimi-Project<file_sep>/README.md
# PROJE AMACI
Alıcıyla satıcıyı buluşturan bir platform oluşturmak.
Bakiye yüklenmesi ve ürün eklenmesi gibi özellikler var olup bu işlemler admin panelinde admin tarafından kontrol edilmektedir.
Admin onayı olmadan bir ürün satışa çıkamaz veya bakiy... | fd93ed2bab0aa90b7c9898d190a8f528d2de7ef1 | [
"Markdown",
"C#"
] | 7 | Markdown | Redicoding/Yazilim-Yapimi-Project | bc065a6425de3babc3c5bb95d9d290e90c5841f8 | c1645c8e99c090974e15a4d132ec456c250a11ef |
refs/heads/master | <file_sep>var app = angular.module("exercise",["ngResource"]);
app.value("dummy",{defined: true});
app.factory("Topic",function($resource){
return $resource("/api/topics/:id",{id: "@id"});
});
app.controller("todo",function($scope,Topic) {
$scope.topicList = Topic.query();
})
app.controller("topicList",function... | 9247019caff6dee202c9c8a506fb8c4a35bcec0b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | nelsonic/ngapp | 34e0feffbda05fbfa4169888e87c6eaf453e505b | e7bf928aa2927b204c35d62dbaba4109960f5086 |
refs/heads/master | <repo_name>h3x89/flask<file_sep>/sqlite.py
"""Sqlite 3 and python."""
import sqlite3
conn = sqlite3.connect("database/sqlite3.db")
conn.execute("CREATE TABLE student (name TXT, addr TXT, pin TXT)")
print("Create Table")
conn.close()
<file_sep>/cookie_session.py
"""Flask - Sending Form Data to Template using cookie a... | ce821c2bee0fca5c5cfc2fbd056e07c981ebb3ec | [
"Python"
] | 3 | Python | h3x89/flask | 700645733d19d5d78645e3f143caba6b524d90f0 | f9456d5329de7ccf6accbe08bc34fd9d1428d06a |
refs/heads/main | <repo_name>cjlee0217/covid19_mask_detection<file_sep>/기획/[회의록] 20201119.md
# [회의록] 20201119 - 1
### 1. 강사님 피드백
* 사람 1명 있는 이미지 & 모델을 만드는 것에 집중해서 진행
* 정상적인 이미지 사용
* 측면 이미지의 경우? 추가적인 코딩이 필요할 수 있음
* 프로젝트 흐름 & 방향 => good
* 확장방안
* YOLO : 영상에서 사람이 마스크를 벗었는지 안 벗었는지 탐지
* 텍스트 생성 : 마스크를 벗는 motion을 추가해서 "지금 마스크... | 4338596a28643a5ac44cd9efa325d6a4f1d6d354 | [
"Markdown",
"Python"
] | 6 | Markdown | cjlee0217/covid19_mask_detection | 1680707f3220074da7cc231d0e904cdc02a37cab | c59a79f00b9aaffdeb8ea1de49d45fde377b9431 |
refs/heads/master | <file_sep>/*
* Copyright (C) 2015, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The PSYCO: A Predicate-based Symbolic Compositional Reasoning environment
* platform is licensed under the Apache License, Version 2... | 68514a73b7d8ef8b24cf59f0bc122a20a4089cf4 | [
"Markdown",
"Java",
"Maven POM"
] | 4 | Java | terminiter/jconstraints-dreal | b78ba4e2b9c00006b273aa3c579c598078e62cce | 74fbfa8030e58f7f76360f773839f54eb3e7226a |
refs/heads/master | <repo_name>taq-f/flask-boilerplate<file_sep>/app.py
"""Flask app boilerplate"""
# -*- coding: utf-8 -*-
from datetime import datetime, timedelta
import logging
from logging.handlers import RotatingFileHandler
import os
import random
import string
from flask import (Flask, jsonify, make_response, render_template, requ... | b7964e3f2249e46f0a5d97e6b51ae3c128c85051 | [
"Markdown",
"Python"
] | 2 | Python | taq-f/flask-boilerplate | 9a2e926263bfa8df15c717cf8c467eb19b4b77d5 | 5abcab82744a67d7a2893e2dab289d9f4006af19 |
refs/heads/master | <file_sep>'use strict';
try { angular.module("openshiftUI") } catch(e) { angular.module("openshiftUI", []) }
angular.module("openshiftUI").requires.push("kubernetesUI");
angular.module('openshiftUI')
.filter('imageRepoReference', function(){
return function(objectRef, tag){
tag = tag || "latest";
var ns = ... | a91bcebba868ebbdb74695b7b9cbfa99f8c2f32c | [
"JavaScript"
] | 4 | JavaScript | liggitt/openshift-object-describer | f6d12915fe1ba42cc72f86aa0fd5049a51ff97ad | 4ab0e169403f0487cd509808c62b06fcf04eceb4 |
refs/heads/main | <file_sep>#!/bin/bash
echo "start the docker compose"
docker-compose -p zipkin-monitoring -f zipkin-compose.yml up -d --remove-orphans<file_sep>package com.example.springredisdood.bill;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.stereotype.Service;
import org.springframewor... | 0450fc4a477d2f5418018a043deb4b28c2aa9b00 | [
"Markdown",
"INI",
"Gradle",
"Java",
"Shell"
] | 9 | Shell | roussi/spring-redis-zipkin | bc8e7dc6bdbb5c88fccfcc5909fbf53a66953c86 | 6f25df1f352e078cc8d8697354f8bb87ec50d514 |
refs/heads/master | <file_sep>$(document).ready(function () {
var source = $("#movie-info-template").html(); //richiamo del template di handlebars
var template = Handlebars.compile(source);
var urlBase = 'https://api.themoviedb.org/3';
$('button').click(function() { // al click del bottone salvo nella variabi... | 08858964c79c872cd3e69536e0114117171b3260 | [
"JavaScript"
] | 1 | JavaScript | Davide-Roberti/ajax-ex-boolflix | 900af0d96ff2a51fd5a472dd0572932d039ecc5d | f9eb3a93fbad6cf65e30cd958ff304049c6c2972 |
refs/heads/master | <repo_name>lauragmz/proyecto-intro-ciencia-de-datos<file_sep>/clean_data.py
# Definición de la función limpiar_columna que realiza las siguientes transformaciones al nombre de una columna:
# 1. Convertir a minúsculas
# 2. Reemplazar espacios por guiones bajo
# 3. Eliminar puntos
# 4. Eliminar acentos
# 5. Eliminar coma... | 63a6794517962d0ab0bb1b6f4074c45b8171e011 | [
"Markdown",
"Python"
] | 4 | Python | lauragmz/proyecto-intro-ciencia-de-datos | 949e8e782e9ed406a86d5e319477e961e6826ad9 | 85d3cbf927f7c74739a89caea92432a751015d65 |
refs/heads/master | <repo_name>Cappibara/spreadsheet-to-pdf<file_sep>/test.py
import os
import re
import win32com.client as win32
from tkinter import *
TEMPLATE_PATH = os.getcwd() + '/templates/'
RANGE = range(3, 8)
ADD_REGEX = re.compile('.*(add).*', re.IGNORECASE)
MULTIPLY_REGEX = re.compile('.*(multiply).*', re.IGNORECASE)
excel = 0
... | 7e440388a846af759dc1c7bfe5d47e003f1fb86c | [
"Markdown",
"Python"
] | 2 | Python | Cappibara/spreadsheet-to-pdf | f5d503c4e062d08c37ea0e4e94bf42c62e35cc72 | 03ddde5f632d3349470a573a704dcc7e4765d02a |
refs/heads/master | <repo_name>create-account/my-react-elec<file_sep>/src/components/SideBox.js
import React, { Component } from 'react';
import { Box } from 'grommet';
export default class SideBox extends Component {
render() {
const { children, show } = this.props;
const display = show ? (
<Box
... | 8354d559f98f68b372e6439fae0f21491d55ec5d | [
"JavaScript"
] | 3 | JavaScript | create-account/my-react-elec | cf43ee0c1048b6e45b836f6579edd8e7252ce2dd | 362f838fa45ae4192427b43b3cc556feac505bcf |
refs/heads/main | <repo_name>fayeed/holochain-test-action<file_sep>/README.md
# holochain-test-action
<file_sep>/scripts/add-osx-cert.sh
## Taken from https://github.com/Zettlr/Zettlr/blob/develop/scripts/add-osx-cert.sh
#!/usr/bin/env sh
# This script takes the macOS code sign certificate from the secret env
# variable, saves it on t... | 175d8b2d37b9cd7f2878c628ec3f52a673eb267f | [
"Markdown",
"JavaScript",
"Shell"
] | 6 | Markdown | fayeed/holochain-test-action | bc3f5821a047a0a837c166cc1e4f3ef8228a190f | 6390d4ca1f16800427565656b403470e92b997dd |
refs/heads/master | <repo_name>Degnath/Profile-Page<file_sep>/script.js
function changeProfile(element){
var element = document.getElementById("switchName");
element.innerText ="Deg";
}
function connectionChange(element){
var element= document.getElementById("connectionChange");
element.innerText -=1;
}
function hide(id)... | 4f6b86d20d07ad6304606bbd394445007f378eda | [
"JavaScript"
] | 2 | JavaScript | Degnath/Profile-Page | 35e2681ab3d4d3f1ef10d2539723c00e932542cc | 422d52cb8193b3082e5c442730f84d7c5449e7e4 |
refs/heads/master | <file_sep>'''
Created on 30-Jul-2017
@author: Suresh
'''
from builtins import input
print("Hello World!\n")
while True:
print("Enter 'x' for Exit. ")
print("Enter any number: ")
value = input()
if (value=='x') :
print("Value of expression is x")
print(value)... | e7ed15e898600a981059c1cde9984c88be2c3f3d | [
"Python"
] | 2 | Python | msuresh168/Python | 9b4aedf106680095f51490a9c459028854541d71 | 98e0528d0ba271e89e519b494860b7da05127ff8 |
refs/heads/master | <repo_name>kcookva/Imgupload<file_sep>/models/users.js
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var path = require("path");
mongoose.connection.on('open', function() {
console.log("Mongoose connected!");
});
var userSchema = new Schema({
username: { type: String },
password: {... | d79eb3f584d48ca5334d0008617cec593fd5f75f | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | kcookva/Imgupload | cd6c19f98f73006c61d42cda6ed24805a7ab1ce9 | 88a1ed93a65647acd6121823b082febf97710ea3 |
refs/heads/master | <file_sep><?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the Rout... | 0f7d83a5820adbc357501e276f2a950083bf4b05 | [
"PHP"
] | 16 | PHP | kegeer/pp | 1414e6513346e205b1790e5586551069d37fe010 | f022c95f3b68d2598755d34cb7cdf75ec5551047 |
refs/heads/master | <file_sep>const foregroundColor = '#c7c7c7';
const backgroundColor = '#000';
const borderColor = '#333';
const colors = {
black: '#626262',
red: '#ff8373',
green: '#b4fb73',
yellow: '#fffdc3',
blue: '#a5d5fe',
magenta: '#ff90fe',
cyan: '#d1d1fe',
wh... | 8eb8098251d2ba1859627bed382b708b92b15cdd | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jerep/hyper-pastel | 3e3b51f803cc5827ebce88a16abb8d80ce1b4795 | defed604496ef658b884715ffd283a4a8b74a4f8 |
refs/heads/master | <repo_name>edsource/smarter-balanced-results<file_sep>/README.md
# smarter-balanced-results
EdSource interactive database showing results of CA Smarter Balanced tests
## To build locally:
`git clone https://github.com/edsource/smarter-balanced-results.git`
`cd smarter-balanced-results`
Initialize virtual environmen... | d08a7c898986fc797cc2fe63158da3b619a2e77d | [
"Markdown",
"Python",
"JavaScript"
] | 3 | Markdown | edsource/smarter-balanced-results | 7670cca7d153fdc9154b6414e4959e8505da8332 | 7db1a2db349c395ca21580dbb692866482e3397f |
refs/heads/master | <repo_name>TalPat/push_swap<file_sep>/check_srcs/commands2.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* commands2.c... | 686f77a5c359e681854cf8645265a5ed9e8dfc7a | [
"C",
"Makefile"
] | 21 | C | TalPat/push_swap | b9094f201fb61b40bea82b683605ff231dcc9f37 | cdcf61e57b0093aa9d1bf2c8da1e0d5179d91fb6 |
refs/heads/master | <file_sep>import { LOAD_EVENTS_SUCCESS, CREATE_EVENT_SUCCESS, UPDATE_EVENT_SUCCESS } from '../constants/actionTypes';
import EventApi from '../api/mockEventApi';
export function loadEventsSuccess(events) {
return {type: LOAD_EVENTS_SUCCESS, events};
}
export function createEventSuccess(event) {
return {type: CREA... | 29adcd7b040fc0fa39f16b8bc7e7c250abc1ff02 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | nateloberger/daily-log | c560c934ad81e2b7435cd939c1046ea7cd90df28 | 062140ee9823a7b0f4eb7dedab05841910204224 |
refs/heads/master | <repo_name>woosanguk-git/express_project<file_sep>/routes/auth.js
var express = require("express");
var router = express.Router();
const dbConfig = require("../config/database");
const mysql = require("mysql");
const connection = mysql.createConnection(dbConfig);
// router.post("/login_process", function(req, res, ne... | 169dfc73f2f9fbdfc26fa7324d0b8fe7fd9e09e0 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | woosanguk-git/express_project | cdfc507e2ea564c57583985d400e9eadc7e50f38 | 989efe432c1a0739a0667af372cabb4816a984a2 |
refs/heads/master | <file_sep>#py-amber_alert
Web Amber Alert framework for use in countries lacking alert infrastructure written in Python3 using Flask, Flask-SQLAlchemy and associated abstraction layers.
Please feel free to fork and contribute to the project. Currently, the project is a web app POSTGRES wrapper and has CRUD(Create, Re... | 02817c588b097f64e8c32794979d7724206d9cf0 | [
"Markdown",
"Python",
"Text"
] | 9 | Markdown | nravic/py-amber_alert | cbe0446e6bbc5c1bd02d02383779e4daad600db5 | f620122a51bbed3ae30556bdb7963b0c30b07813 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace CaseFlowManager
{
class Step : INotifyPropertyChanged
{
public string id { get; set; }
public string name { get; set; }
private string do... | c89a32d99290d1aeedb3af319ab9a80d31d22e14 | [
"C#"
] | 8 | C# | zaviichen/CaseFlowManager | c1e0a81909e58fa6ae709661588dbf38d2b7945a | c4d14b9f6538653ff787bbfb371b9db43e0b0813 |
refs/heads/master | <repo_name>captainmattg/captainmattg.github.io<file_sep>/js/home.js
var config = {
apiKey: "<KEY>",
authDomain: "jaunt-ddc86.firebaseapp.com",
databaseURL: "https://jaunt-ddc86.firebaseio.com",
projectId: "jaunt-ddc86",
storageBucket: "jaunt-ddc86.appspot.com",
messagingSenderId: "40972835... | 366ec349f85260d936978a75a05500627d139179 | [
"JavaScript"
] | 2 | JavaScript | captainmattg/captainmattg.github.io | 9cb7398a2aa9e712a51dc534c43b4c626afb3acc | 120a517abf2d0e50818760a9275ba6ff5cc5550a |
refs/heads/master | <repo_name>BruceChanJianLe/CPP_SmartPointers<file_sep>/ExerciseFiles/deleter.cpp
#include "my_strc.hpp"
#include "my_func.hpp"
using namespace std;
// There are several ways to create a custom deleter
// 1. function
// 2. functor
// 3. lambda
void deleter(const myStrC * o)
{
cout << "func deleter: ";
if(o)
... | a1cc20bbe4d043dc42229b1cd53962969e297990 | [
"Markdown",
"CMake",
"C++"
] | 10 | C++ | BruceChanJianLe/CPP_SmartPointers | b40d2589038e0586f439cfa9a327e95c48b07323 | 4739c638d711bd924b21480a2c30ddaa299d6a97 |
refs/heads/master | <file_sep>Events are a model of stuff happening in games. How we manage these events is called even handling.
Events are very variable so it would be cool if we could modify functions on the fly and pass them around.
For our case, we have an application. That application creates a window object. The window generate... | e610a5ba15f09c8c144720c66002d6c625fa0b80 | [
"Lua",
"Markdown",
"INI",
"C",
"C++"
] | 28 | Markdown | nessarus/Praction | df753facc1ae48e3bbe8d284e5a6147a5daea525 | 80d1264f9604eb18d7f2f49bc9a03625d8b7df1c |
refs/heads/master | <repo_name>hoist/hoist-connector-quickbooks-online<file_sep>/samples/endpoints/invoice.js
/* Just copy and paste this snippet into your code */
/* create an invoice */
module.exports = function (req, res, done) {
var invoice = {
"Line": [{
"Amount": 100.00,
"DetailType": "SalesItemLineDetail",
... | b8f547c0febea00f37bd05b439d3aaadb51cfebf | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | hoist/hoist-connector-quickbooks-online | 383ecc745f20c6808514f1d187e87f624b4dbd8d | a8d4ad03f7bd784fe375176bbdb6479efc36fa10 |
refs/heads/master | <file_sep>"use strict";
var paths = {};
var root = "~/.droppy";
var path = require("path");
var untildify = require("untildify");
paths.get = function get() {
return {
home : resolve(root),
pid : resolve(root, "droppy.pid"),
files : resolve(root, "files"),
temp : r... | 9916fdecad5ba6f86de4810aea60666ae9bcdf5a | [
"JavaScript"
] | 2 | JavaScript | 2cats/droppy | c3d2ff9cfec73eff501a80be830dcd71a35e10b4 | 77e7d28a9825bcb76c0e44aa6452ec45f0b19a10 |
refs/heads/master | <file_sep>import React, { useState } from 'react';
import Header from './Header';
import FormPart from './FormPart';
import Display from './Display';
export default function App() {
const [addData, setData] = useState([]);
// Reverse Props Receive
const NotesSubmit = (formInput) => {
// console.log('me', fo... | 043dd09dc90d1a3530ec90b76587b9ec556be284 | [
"JavaScript"
] | 1 | JavaScript | rajrachchh14/react-notes-app | edf95633f1cbd5c34367344da24b39c92daddbf5 | 887d2f98a1d92f8a07008d140af8639e05258498 |
refs/heads/master | <repo_name>xRigel/cityTalk<file_sep>/User.java
package edu.temple.citytalk;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* Created by Rigel on 3/22/2017.
*/
public class User {
public String name = "default";
public int id;
public static ... | dd163f6432732c7e73795fa002f4df49b145707a | [
"Java"
] | 1 | Java | xRigel/cityTalk | 0301a6b911439e64f35540bd5ac13fc019e23b1b | cecd2470eebde8ccfbd886a496df3de30b13f0ff |
refs/heads/master | <repo_name>ProjectAwesomeRSA/WARD<file_sep>/src/app/footer/footer.component.ts
import { Component, OnInit } from '@angular/core';
import { GetWorldFactorsService } from '../_services/getWorldFactors.service';
import { interval } from 'rxjs';
import { timeInterval } from 'rxjs/operators';
@Component({
selector: 'app-... | 0a12b86deff9ba494f9ff44104f7a8e19c4eb4c2 | [
"TypeScript"
] | 17 | TypeScript | ProjectAwesomeRSA/WARD | fac7e49b1cca73274e808ca4acb3f520b15d2d1c | 1cbcd2e02c17933f1ed5d404a52f2ce7b1e7f296 |
refs/heads/master | <repo_name>galperins4/dpos-tax-core2<file_sep>/core/price.py
#!/usr/bin/env python
import datetime
import requests
import time
class Price:
def __init__(self):
self.tsyms = 'USD,EUR'
self.url = 'https://min-api.cryptocompare.com/data/pricehistorical'
self.tick_convert = {'PRSN':'pe... | d4e7b0645c306e746b51b832c90fbd62eeb3fa7d | [
"Markdown",
"Python",
"Text",
"INI"
] | 10 | Python | galperins4/dpos-tax-core2 | d739c5efb1f1619be02ff6b44ceb81c8d6fe1b5c | de652b5d074d4238af3e6f81921b4ce19548a334 |
refs/heads/master | <file_sep>checkElmKillaStatus(setIcon);
chrome.browserAction.onClicked.addListener(toggleElmKilla);
chrome.tabs.onUpdated.addListener(tabUpdated);
function initializeScript() {
verifyTabs(setStateAndRunScript);
};
function tabUpdated(tabID, changeInfo, tab) {
let isTabReady = changeInfo.status === 'complete';
... | f902e15a1a819dd28836cd592c06d4466bb66d92 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | oceansize/chromeElmKilla | d76a5548162be4d44c102681b73f4983b401493f | 1baae2294227fd4690493d100b1e64ad9a5bebf9 |
refs/heads/master | <repo_name>MattyCips/ReactTodoList<file_sep>/README.md
App Instructions:
- Write your task in the input box provided and click the add button to add your task to the list.
- Once added, you will find some action buttons to the right, Edit and Delete.
- If you click on Edit, you will be prompted with an input box to ed... | 3ffbf7a6f680459d57611536dac060be5eab2a44 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | MattyCips/ReactTodoList | 84ae85241372d96bd4cda18a9f5861f0d68efee3 | 4a64940fed86742866b9446b4fb35246171cd64a |
refs/heads/master | <repo_name>Rajan-Aggarwal/link_sharing_website<file_sep>/accounts/views.py
from django.shortcuts import render, redirect
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
def signup(request):
if request.method=="POST":
username = request.POST['username']
passw... | 079ca0382aaeb1708d4063fb1d3118a9e9a9c355 | [
"Markdown",
"Python"
] | 2 | Python | Rajan-Aggarwal/link_sharing_website | 364657350cfd0715c24298f8fcba579d5b7927e6 | cd99e25a164912c73508dee2906d772dc705f260 |
refs/heads/master | <file_sep>#!/usr/bin/env ruby
Dir['*'].each do |file|
if file =~ /\?/
puts %Q!mv '#{file}' '#{file.gsub(/\?.*/, "")}'!
end
end<file_sep>Disposable script
=================
A collection of one-off scripts.
http://www.urbandictionary.com/define.php?term=one%20off | a3dd339054fba55a12b1cee1b1b7479d4cec30d1 | [
"Markdown",
"Ruby"
] | 2 | Ruby | chengguangnan/disposable_script | 1a405233fe1c5fb6ed3bf1479babbea31100382a | 47b60a3848275d76a37b22269dfea585243f88f7 |
refs/heads/master | <repo_name>emmiehe/basic-shading<file_sep>/README.md
# Basic Shading
Displays a circular shape that is shaded using the Phong Illumination Model.
The skeleton was from [Fall 2016 UC Berkeley CS184/284A Foundations of Computer Graphics](https://inst.eecs.berkeley.edu/~cs184/fa16/assignments.html)
## Examples
* An ima... | 475dcae7867e6f7a80816f608435cb341e39d8ce | [
"Markdown",
"CMake",
"C++"
] | 3 | Markdown | emmiehe/basic-shading | e21bfcde7ee8eab70fa9511573029e1b64aa5cc6 | c264a675524ddf8e34d1d17551cb4bdc2508c2a5 |
refs/heads/master | <repo_name>WebLanjut41-02/praktikum-1-frznst-1<file_sep>/models/arrayan.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Arrayan extends CI_Model {
public $usera=[];
public $passa=[];
public function __construct()
{
parent::__construct();
}
public function insert($us... | d8e72a15f08d226959ac645c04181052e2e6a330 | [
"PHP"
] | 4 | PHP | WebLanjut41-02/praktikum-1-frznst-1 | 909cb36c852f85dc62b656f2462abf9766c1e232 | ee0038331c0602b2f565880624d1bbb5cb8be7eb |
refs/heads/master | <repo_name>quanon/bitcoinrb<file_sep>/spec/bitcoin/ext_key_spec.rb
require 'spec_helper'
# BIP-32 test
# https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#Test_Vectors
describe Bitcoin::ExtKey, network: :mainnet do
describe 'Test Vector 1' do
before do
@master_key = Bitcoin::ExtKey.generate_... | 8220f05a7696a322ab3cbfd33cae2fdf762d74a6 | [
"Ruby"
] | 16 | Ruby | quanon/bitcoinrb | 375695d69533db5f7073b5824694b3e7bb3ae6b9 | f40e37220da7c6301fe372b07b92d2a122853bc3 |
refs/heads/master | <file_sep><?php
interface travailler
{
public function travailler();
}
?><file_sep><?php
interface action
{
public function affichage();
}
?><file_sep><?php
require_once 'vivants.php';
require_once 'affichage.php';
class animal extends vivant implements action
{
... | 829cd20123fa9a926692884d37b78bf7edf94672 | [
"PHP"
] | 9 | PHP | nartco/Jeu_poo_php | 67ffad2a6d752afadb2ed481f7ada0bcedb3f545 | f79218b7e92bde7f0670b6a2d1d6207e0338d98c |
refs/heads/master | <repo_name>krisss85/gcp-python-playground<file_sep>/instances.py
import googleapiclient.discovery
import json
import pandas as pd
def list_instances(compute, project, zone):
result = compute.instances().list(project=project, zone=zone).execute()
return result['items']
def main(project, zone):
compute = g... | 18e0bc01b50c68d9e21d51b0b6afca4f0e33db7a | [
"Markdown",
"Python"
] | 2 | Python | krisss85/gcp-python-playground | d00453bfe4733307bff0714fe6f3d3184360f8c1 | cdc7f49831e894884a6358442428f45cadd7e16d |
refs/heads/dev | <file_sep>Find bounding box around the polygon
====================================
Find bounding box around the polygon
[](https://circleci.com/gh/dostolu/boundingbox)<file_sep>/**
* Get the bounding square around the polygon
* @param {Object} p... | 33ce468cb94cc6d3a84692e1e05a3ee8c3f1b231 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | dostolu/boundingbox | d8266bc7820466ff621b7b453d91c4a90f765253 | 8c614b779f39ea6878d56e0c64a98b52114cf75b |
refs/heads/main | <file_sep>import React, { useEffect, useState } from "react";
import { Link, Redirect, withRouter } from "react-router-dom";
import { useTranslation } from "react-i18next";
import logo from "../../assets/logo-Toma.png";
import i18n from "i18n";
import NavBar from "./NavBar";
import * as path from "constants/routes";... | ed2356a9183fdad67799284884cc1a3104bdae56 | [
"JavaScript"
] | 12 | JavaScript | mykhayloyuminov/pet-project-procedures | 89c09a747fe6250ec4c822f4d984158f9ff4eb8e | 922bcbe4a84e32d7ed9fb7a02235f9b025324e3d |
refs/heads/main | <file_sep>
/*Final Project Milestone FP
Module: TriagePatient
Filename: TriagePatient.h
Version 1.0
Author <NAME>
Revision History
-----------------------------------------------------------
I have done all the coding by myself and only copied the code
that my professor provided to complete my workshops and assignment... | c97734aeb3e717a2d42db8e632014fc624e00b4b | [
"C++"
] | 13 | C++ | thisway8788/OOP224-Final | fb61f885366e6ac8c846393b7a5a93d00bf4d8d0 | 7bf756c364bbcd2d17e6f1cf79919e29de7ebc95 |
refs/heads/master | <file_sep>package com.example.model.copy;
class AnswerAnalysis {
}
| 03dc5d51baa289727fd9a1ac4ac65d156348a3c0 | [
"Java"
] | 1 | Java | Frankserve/Frankserve.github.io | 44b88911f5350a0324d9da34f2a1ce06371a2878 | 61aee6a15e2d729856e09c1daf92d08dc6b72fc5 |
refs/heads/master | <file_sep>#include "filecreatedialog.h"
#include <QLabel>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QString>
#include <QPushButton>
#include <QTextEdit>
#include <QFileDialog>
FileCreateDialog::FileCreateDialog(QWidget *parent) : QWidget(parent)
{
nameLabel = new QLabel("Имя");
dirLabel = new QLab... | f048c2ab24b347aaf3652c44ca5f55c6b6b6f22e | [
"C++"
] | 11 | C++ | denilai/CourseWorkAOOD2 | a33ec83592cc251272905e4dcb9088dd1fe62686 | 72d262aa8e162a49022be29806fd3f9131bef2c4 |
refs/heads/master | <file_sep>package com.taskmanagement.dao;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.springframework.beans.factor... | 640cf73b44954190ee5299c0d52087b4051dae58 | [
"Java"
] | 1 | Java | vivek-kakumanu/TaskManagementService | d006396f05e527e69f1543e4a91dd9c5bd5b8d4c | 622039a66ea7aa68c7c7e3de373da49df31bdc2c |
refs/heads/master | <repo_name>dot-build/karma-fixture-loader<file_sep>/karma-fixture-loader.js
(function(exports) {
var fixturesPath = 'fixture/';
var loaded = false;
var fixtures = {
get: getFixture,
getFirst: getFirst,
getFiltered: getFilteredFixture,
load: load,
setPath: setPath,
... | cc115d7a037a4d32004c6f786389102d8eca0684 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | dot-build/karma-fixture-loader | e2d50b6a660a83ba3149756dc585d66745cd2a74 | 15f4be8b7bd5e8cbdf5d9808657ffcfaef888a2a |
refs/heads/master | <file_sep>#include "vanG.h"
// Boolean function which tells all edges have been visited or not.
bool VisitAll(vector<Edge> edges) {
for (size_t i=0; i<edges.size(); i++) {
if (edges[i].visited==false) {
return false;
}
}
return true;
}
// Build a binary tree based on parsed information: root, sinks and edges... | 3757625f21716c98355cb6c9290c8738f4f85f42 | [
"Markdown",
"C++"
] | 3 | C++ | lizix7/vanG | 6b7e468d393d60154a7e430896f1fb6446c03bb0 | 580f7090b79b44ffc3ae93ea4fc12906d00eff4f |
refs/heads/main | <file_sep>var helicopter,box,ground;
var himg,boximg,boxBody;
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
var engine,world;
function preload()
{ himg = loadImage("helicopter.png");
boximg = loadImage("package.png"); }
functio... | bab6faa2b362d19416f0ea39dfd368cc15725d98 | [
"JavaScript"
] | 1 | JavaScript | Kartikeya-coder1/Supplier-Commando | 09fb4bb8a97558a538ddc34a111fb9934a8cfbd4 | 32c60aa1c6bf81d8b71f4c1458c3e94959e6784f |
refs/heads/master | <file_sep>
SLITHER
The game utilizes pygame module.
The position of apple is randomized.
The gameloop has implementations of functions-snake,randapple.
Snake function displays a list of elements which is basically the body of the snake,length of... | 9f7f248318522447b5efdea8fff70fcf87253eab | [
"Python",
"Text"
] | 2 | Text | VaishnaviDhulipalla2902/SlitherGame | b0e0ff74b4eee040d0cca872da4f88817fa43dc4 | ac3fd98f421b0822be698b74265d606d4c8e2338 |
refs/heads/dev | <file_sep>//
// Copyright (c) 2004-2021 <NAME> <<EMAIL>>, <NAME>, <NAME>
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain the abov... | d10ec4bc838bc65870f1907ff1b8aefe627dc3f7 | [
"Markdown",
"C#",
"Text",
"HTML"
] | 373 | C# | NLog/NLog | eb775a34b5999f53ef2159d7e826c75b03cda6f3 | 444c6e3270178ac314bf1b8d3188a99bd9178670 |
refs/heads/master | <repo_name>adammlr/blankletters<file_sep>/src/words.js
export const things = [
"Active Volcanoes",
"Beach Chair With Side Table",
"Biceps & Triceps",
"Big Blue Eyes",
"Bits And Pieces",
"Bold Measures",
"Bonuses & Incentives",
"Buzzwords",
"Canvas Sneakers",
"Car Cupholders",
"Cars Trucks And Vans... | 2f7b4e666814aaa2b6cad0c6649361daa4518700 | [
"JavaScript"
] | 6 | JavaScript | adammlr/blankletters | ccdc091972919f686f7170fcdd732ad44bc461b5 | 99079c3586671c62ab960a5df6f964ba16074ceb |
refs/heads/master | <repo_name>littlelightwang/weather_swift<file_sep>/weather_swift/ViewController.swift
//
// ViewController.swift
// weather_swift
//
// Created by wangxiaoliang on 15-1-26.
// Copyright (c) 2015年 wangxiaoliang. All rights reserved.
//
import UIKit
import Alamofire
import CoreLocation
import SwiftyJSON
class View... | 378e6327a6a7e3c0ba44b92ee3b0c807e85504f4 | [
"Swift"
] | 1 | Swift | littlelightwang/weather_swift | ed7a78f34588b777238c86b8c2f63b15eb34f652 | 5189758a16853f776df7127963f36c5c398c44c0 |
refs/heads/master | <repo_name>lennartsc/MSc-Statistics-and-Machine-Learning<file_sep>/Advanced R Programming/lab05/lab05_result/tests/testthat.R
library(testthat)
library(rLab5)
test_check("rLab5")
<file_sep>/Bioinformatics/README.md
# Lab files: Bioinformatics
:point_left: [Back to overview](https://github.com/lennartsc/MSc-Statistics... | f02e02d6d797a7da2879b04022d088024798187d | [
"Markdown",
"Python",
"C++",
"R",
"RMarkdown"
] | 56 | R | lennartsc/MSc-Statistics-and-Machine-Learning | 57905f689db794ca9bfe4775859106942d80456a | aa0d920955f12daf79c01d3233fc6381d5923672 |
refs/heads/main | <repo_name>hieuvoquang87/hacker-news-replica<file_sep>/app/src/widget/hooks/useHistory.ts
import { useCallback, useContext } from 'react';
import HistoryContext from '../contexts/HistoryContext';
import { saveHistory } from '../services/cacheService'
const useHistory = () => {
const { loadedStories, setLoadedStorie... | 0bdff96de35d253cae53994c669b3b02d1b01915 | [
"Markdown",
"TypeScript"
] | 12 | TypeScript | hieuvoquang87/hacker-news-replica | 0502f1b36af85f82e3885b7f947dc835d4f099be | a068ddbcc34d6aa975df65e8f5d2612e50d18273 |
refs/heads/master | <repo_name>Souverain73/angular-weather-app<file_sep>/backend/src/shared/consts/user-logins.const.ts
export const userLoginConst = [
{ login: 'admin', password: '<PASSWORD>' },
{ login: 'codedojo', password: '<PASSWORD>' },
{ login: 'angular_ru', password: '<PASSWORD>' }
];
<file_sep>/backend/src/login/login.contr... | df0e05735470aa0b463c7cad3163e51935730fbe | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | Souverain73/angular-weather-app | 484bac9e563137541ef03916f5fd075fad4d9779 | 383b43f7e86200aa8901031e8691dfcd15fe5410 |
refs/heads/master | <repo_name>yangyuanying/TestScript<file_sep>/upgradetest_ver4.py
#encoding:utf-8
import paramiko
import time
from urllib import request
from urllib import parse
import json
import os
import threading
# 机器人 Webhook地址
ROBOT_WEBHOOK = ""
#磁盘路径
def build_text_msg(msg):
params = dict()
params["msgtype"] = "text"... | f94a2c5dc1cded28ac8b11fac5d831afcbf2cdad | [
"Python"
] | 2 | Python | yangyuanying/TestScript | 947461cb04ca2f107e67ed3b9fd7ef5e61c8ca2f | 3a35edb1f041d62d7b87180bc73ff40eb18d00e2 |
refs/heads/master | <repo_name>anousonefs/arduino-basic<file_sep>/Arduino/Robot_Auto/Robot_Auto.ino
//CEIT_Robot_2018 In Loas
int count_sensor = 0;// Count Line
int last_state_sensor = 0; //Check State before Count Line
//set PIN data of line direction sensor
#define SENSOR_T1 22
#define SENSOR_T2 23
#define SENSOR_T3 24
#define... | 052719a94ed99fba7e5c93a952ba2713f2edbac7 | [
"Markdown",
"C",
"C++",
"INI"
] | 87 | C++ | anousonefs/arduino-basic | f15a109950b8709117a9f618cbe4ac9225f65a65 | 4d2a760c177ad03c30aef1b37934e5c10b927421 |
refs/heads/master | <file_sep>package com.setecs.mobile.safe.apps.shared;
import org.json.JSONException;
import org.json.JSONObject;
public class AccountBalanceParser {
public static String parse(String response) {
String output = response;
try {
JSONObject object = new JSONObject(response);
String accountNo = "Account No... | a5f18fa26f7da4f23fcb8149d44f0d829a521f04 | [
"Java"
] | 3 | Java | wajanga/SAFE-Wallet-Support-Library- | 6d0676ec9cb887917324897791a81171d9100cea | 4a0c43fdbfb6acadfb6932af03cee344f5c3adc9 |
refs/heads/master | <file_sep>/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <engine/demo.h>
#include <engine/keys.h>
#include <engine/graphics.h>
#include <engine/textrender.h>
#include <engine... | 50908db5cdccf28965f21c656cc9d5c3fc59ff89 | [
"C++"
] | 1 | C++ | Henningstone/old-tdtw-0.6-trunk | 3baade350d129bf38673cb81e39a3f002d17d440 | 1fcb120792bcaff7dc1654e4067b923a012d9e94 |
refs/heads/master | <repo_name>HR-SDC-Bridge/calvin-about<file_sep>/README.md
# About Section
> This service will be the about section located on the right of the product details page. It will own crucial information about each product most notably the brand, category, and price of each product.
## Related Projects
- https://github.c... | e1fb3f08e8df4888ccf9d508dc9572e5129fc36f | [
"Markdown",
"JavaScript"
] | 3 | Markdown | HR-SDC-Bridge/calvin-about | 8b42a11f4c74adcc284b55e1d498926586d547f8 | bab03370bccbca0ab11989c449d466dc6a751409 |
refs/heads/master | <file_sep>import tensorflow as tf
v1 = tf.Variable([1,2,3,4])
v2 = tf.Variable([5,4,3,2])
add = tf.add(v1+v2)
with tf.Session() as sess:
print(sess.run(add))<file_sep># tensorflow-basics
Simple Tensorflow Programs for Beginners.
Files Descriptions
1. print-message.py
use tensorflow session to print hello wo... | db8a1a5be19ab1ebace3ed0a20657043ab32547a | [
"Markdown",
"Python"
] | 2 | Python | vijay1131/tensorflow-basics | f377969e47d14fbe04e44601b815e72b75085cb7 | 10158b867b8f14d2e8b43e36ea24b90f911b0971 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.