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>yusukeminako/chate-app<file_sep>/README.md
# README
## NAME
PAPA-CHAT 〜パパも子育ても頑張ります!〜
## PAPA-CHATとは
パパの子育て意見交換ができるchatサイトである。グループごとにchatで意見交換が可能である。
## デプロイ先
https://papachat.herokuapp.com/
## ページ紹介
・TOPページ<br>
・新規登録、ログイン、ログアウト機能<br>
・chat機能<br>
・インクリメンタルサーチ機能<br>
## 使用した機能、技術
gem 'rails, ~> 5.0.7, ... | fcfa112df6a2c7406fdcee5113d06468a55ede0a | [
"Markdown",
"JavaScript"
] | 4 | Markdown | yusukeminako/chate-app | 90e192ab89e21e7be0cb6d2fe3fa0d364e86bd49 | 563ff7406dcf72a2e7ba200f0bfa3832413fbbf9 |
refs/heads/master | <file_sep>driver=com.mysql.jdbc.Driver
url=jdbc:mysql:///mybatis01
username=root
password=<PASSWORD>
<file_sep>package b_crud.test;
import org.junit.Test;
import b_crud.dao.UserDao;
import b_crud.entity.User;
public class TestUserDao {
@Test
public void test() {
UserDao dao = new UserDa... | fcabe2c23a913bfd399069975c46817984d45cbc | [
"Java",
"INI"
] | 2 | INI | zhaotiantian-svg/mystore | 577057810a45d2d9407dc177da1d609434e5cba2 | 870ee5fabab6428cabba2172e8ef4cf4920f3468 |
refs/heads/main | <repo_name>rizki495/ujian-fsd<file_sep>/src/App.js
import logo from './logo.svg';
import './App.css';
function App() {
return (
<div className="App">
<h1> Bilangan </h1>
<input type="text"></input>
<select>
<option>Basis 5</option>
<option>Basis 8 (ok... | 3259cd474782f7b0d3ff1f222fbe28b341a22500 | [
"JavaScript"
] | 1 | JavaScript | rizki495/ujian-fsd | 5cb01d7d2fb9b623eefe41f27274eff26b41b522 | ff34930d0978302c93b8a3ef004dd6632b17e743 |
refs/heads/master | <file_sep>#Email: <EMAIL>
#Name: <NAME>
#ID: 3578411
#Description: This program is a budget calculator. It will help you calculate
# your monthly budget by asking you estimated values for monthly
# spending.
# print a welcome message
print("Author: <NAME> <<EMAIL>>")
print("\nThis is a budget c... | c3066292a71288b0b2597e6cc89000603d16412e | [
"Markdown",
"Python"
] | 11 | Python | valleyjo/cs0008 | fa9b0181b268626250c241c7e4c08c99b4483acf | db6727f02d7543a047bb522ee34c8be4d2a6715f |
refs/heads/master | <repo_name>jmdatkin/sys-work-5<file_sep>/README.md
# sys-work-5
dirinfo
<file_sep>/main.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
void printDirInfoR(DIR* dir)
{
struct dirent *entry;
struct stat statfile;
while... | eb0af74583e671aee7cc6773fd3a76fc82c41f77 | [
"Markdown",
"C",
"Makefile"
] | 3 | Markdown | jmdatkin/sys-work-5 | f61609665fb0cdd6c5c6b719c007d38f75c1743e | 9fe2b18f70b01a05112c084a91f082388576f29a |
refs/heads/master | <repo_name>fraxachun/se-crm<file_sep>/src/components/comments/index.jsx
import React from 'react';
import CommentsList from './List';
import AppTopBar from '../common/AppTopBar';
const Controller = () => (
<div>
<AppTopBar title="Kommentare" color="secondary" />
<CommentsList />
</div>
);
export default ... | 8752a980feadcc01d18b9b5449add1ed3bbbeff1 | [
"JavaScript"
] | 26 | JavaScript | fraxachun/se-crm | 062572b74c365f110ae3437de923fe7496f64e19 | 6c0634823720c4b30a69747e72b242df516dbf7a |
refs/heads/master | <repo_name>GENESDEMON/Anime-fan-girl<file_sep>/src/index.ts
import HTTP from "http";
const cartoonsServer = HTTP.createServer((req, res) => {
//createServer() - creates a server and issue HTTP requests and responses.
res.write("Hello World!")
//res.write specifies the message the server should execute
r... | 20553175fbf234c4b5fe88b40a0b12c89a6907d0 | [
"TypeScript"
] | 1 | TypeScript | GENESDEMON/Anime-fan-girl | 36511e1ab32bcd136cfebdfc80fca14ffc4e0188 | 285855bb7a6976b4a533518434fcffc2a27db1d9 |
refs/heads/master | <file_sep>import org.fusesource.stomp.jms.*;
import javax.jms.*;
class Listener {
public static void main(String []args) throws JMSException {
String destination = "/topic/beer";
StompJmsConnectionFactory factory = new StompJmsConnectionFactory();
factory.setBrokerURI("tcp://localhost:616... | df8db848ee3a555e70b117eb4b46165c9aaccf35 | [
"Java"
] | 1 | Java | schipplock/activemqtest | 1e6a46c92e7209c7fbe8da0af8df7bd131743291 | 9c518dd071b1d75359e7ce32f85367c9c69e6c9e |
refs/heads/master | <file_sep>#pragma once
array<array<string, 10>, 10> place_object(array<array<string, 10>, 10> map, string object) {
// initialize random engine
random_device rd;
mt19937 gen(rd());
// find suitable place on map
int i, j;
while (true) {
if (object == "P") {
uniform_int_distribution<> coord(1, 8);
i = c... | c104ec924f0958d6ba2d3c69ca54289a9289381c | [
"C",
"C++"
] | 21 | C | developtolearn/ludum-dare-48-simple | 165b0900ac3b3c248b004c6bb21e73498bbb5463 | 4a0bb60805c6055a3d59baa2fb8f12371970becb |
refs/heads/master | <file_sep>#coding: utf-8
from fabric.api import run, require, prefix, env, task
@task
def start():
"""
:: Started gunicorn on server
"""
require('project', provided_by=('staging', 'production'))
with prefix("export PROJECT_HOME=%(projserver)s" %env):
with prefix("export WORKON_HOME=%(envs... | 4c0d2a3096c346197aa48573dd1c0985666e02cf | [
"Python"
] | 6 | Python | guilouro/fabfile | d291fb380b89b0337e5d7014d4f7a55dbeec862d | 907ddc4f41fad4cfd61b020825470ecfb3f7d0a2 |
refs/heads/master | <file_sep>import random
import pygame
from pygame.sprite import Sprite
import time
class Ball(Sprite):
def __init__(self, screen, settings, menu):
super(Ball, self).__init__()
self.size = 15
self.rect = pygame.Rect(250, 250, self.size, self.size)
self.screen = screen
self.sc... | e4b1ddd57c3c47f02ca3bd3d1300095900035e05 | [
"Python"
] | 10 | Python | Kaine-R/Aliens | 897b6c7ae39542d71dbfe836638bbf4a3b5b59b0 | 67bbc1bea0423dcd62b794186c581a5e1cb6b0e0 |
refs/heads/master | <repo_name>digideskio/translate-activity<file_sep>/Translate.activity/gtlib.py
#!/usr/bin/env python
from urllib2 import urlopen
from urllib import urlencode
import sys
from gd import detect_lang
MAX_TEXT_LENGTH = 680
def translate(text, to='en'):
to_langs = to.split(' ')
paragraphs = text.split('\n')
lang1 = dete... | 08a66a4053807da3a36f2bebde739cd69817be39 | [
"Markdown",
"Python"
] | 4 | Python | digideskio/translate-activity | e4dbd906fd4270378ff287ee84f9273c2cca0760 | 42c4d5d6bbceeff9ebc311d2ef24cfb090a402c6 |
refs/heads/master | <repo_name>TakoFerenc/R3PI<file_sep>/main.py
from unittest import TestLoader, TestSuite
from HtmlTestRunner import HTMLTestRunner
import click
import os
import test_restAPI
import test_Calculator
restAPI_tests = TestLoader().loadTestsFromTestCase(test_restAPI.TestRestAPI)
calculator_tests = TestLoader().loadTestsFromT... | ad89fc80f1731393bee02044b95f18c7ad06f86a | [
"Python"
] | 8 | Python | TakoFerenc/R3PI | dd50e77db6e478a7c23e6c559c28df8f87606295 | e1b2f35d801c57df297bc4671b62b0172d876927 |
refs/heads/master | <repo_name>jrlphi/atmega8-servo-example<file_sep>/servo.c
#define F_CPU 1000000UL
#include <avr/io.h>
#include <util/delay.h>
void servo_sol(void);
void servo_sag(void);
void servo_orta(void);
int servo_konum = 0;
int main(void)
{
DDRB = 0xFF;
DDRC = 0x00;
PORTC = 0xFF;
TCCR1A |= 1<<WGM11 | 1<<COM1A1 | 1<<COM... | 47b7ca660544b11a89270f6e39b8a48d935743ff | [
"Markdown",
"C"
] | 2 | C | jrlphi/atmega8-servo-example | 83d8a99a4c76f0057163f1d08ba80f40d8cfdc50 | b65c97b9444991a5de0193b74ed0ac8278e4594d |
refs/heads/master | <repo_name>jungjuyoung/innovation-lab-nodejs<file_sep>/express.js
var fs = require('fs');
var bodyParser = require('body-parser');
var express = require('express');
var server = express();
server.use(bodyParser.urlencoded({ extended: false }));
function templateList() {
var topics = fs.readdirSync('data');
var ... | f1994a43dc1397780c69256c4aed95a85498fd88 | [
"JavaScript"
] | 1 | JavaScript | jungjuyoung/innovation-lab-nodejs | 726f0d09973a7aac2eee644bfe43d6c60ae01ba1 | 8c5b90fa1ef91ef0a2b7c53ecac9a8cdb157a36c |
refs/heads/master | <repo_name>nienkedekker/coffeenews<file_sep>/app/models/article.rb
class Article < ActiveRecord::Base
# def
# feeds.each do |feed|
# parser = FeedParser.new(:url => @feed.url)
# rssfeed = parser.parse
# rssfeed.items
#
#
#
# def self.recent
# news24 = FeedParser.new(:url => "h... | ea922837b0809cefb0a78e8d05f1c1f4c6214ac9 | [
"RDoc",
"Ruby"
] | 6 | Ruby | nienkedekker/coffeenews | 24f307f3be434501c3de2eae86cd00af4a97f2c2 | 530a9440b0b2a506bc96b2541394e5d7778e5d5d |
refs/heads/main | <repo_name>Jeremy-Barras/aim-lab<file_sep>/src/Components/LoginPage.js
/* In a template literal, the ` (backtick), \ (backslash), and $ (dollar sign) characters should be
escaped using the escape character \ if they are to be included in their template value.
By default, all escape sequences in a template literal are... | ae5272760045b77e61dfebcc70e9ca4d72bdb4ef | [
"JavaScript"
] | 6 | JavaScript | Jeremy-Barras/aim-lab | 954ba8bdc48203d3070d56023566178eb9d629dc | 33044973104aca57b131862a10b7b70e6ac57550 |
refs/heads/master | <file_sep># cghttp
封装go的http模块成C接口
## windows动态库
```
go build -buildmode=c-shared -o http.dll
dlltool -dllname http.dll --def http.def --output-lib http.lib
```
## ~~windows静态库(无法使用)~~
```
go build -buildmode=c-archive -o http.lib
```
<file_sep>/*
* @Author: gongluck
* @Date: 2020-06-13 20:26:02
* @Last Modified... | ec50f8ad1c147bb2fa4b4b2469e139668d8f455c | [
"Markdown",
"Text",
"C",
"Go",
"C++"
] | 5 | Markdown | gongluck/cghttp | 19c41972c7a08d910b31b92cff4d4f26bc951197 | 03b1a999e4880687ef7e7055d3d1a2b146ed9583 |
refs/heads/master | <file_sep>//
// LoginViewController.swift
// maiziSplash
//
// Created by 湛礼翔 on 15/10/13.
// Copyright © 2015年 湛礼翔. All rights reserved.
//
import UIKit
class LoginViewController: UIViewController {
@IBOutlet var poneNumberFelid: UITextField!
@IBOutlet var captchaFelid: UITextField!
@IBOutlet var dealLa... | 7b9e2f08bab7f85a19d637c3f86192801aad01e9 | [
"Swift",
"Ruby",
"Markdown"
] | 33 | Swift | SeanZhan/maiziSplash | cab18eef468fdeaba832277ee4d381efeefc5994 | 7963343ced20802c2b2be214a4ad71aa48d32225 |
refs/heads/master | <repo_name>EugenePopov/watch-crawler<file_sep>/src/test/java/com/eugene/watchcrawler/WatchCrawlerApplicationTests.java
package com.eugene.watchcrawler;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class WatchCrawlerApplicationTests {
@Test
void con... | 415690ad2a360d7dc7a26bed3d7ce8745b21f719 | [
"Java"
] | 1 | Java | EugenePopov/watch-crawler | 6ee13effc2a62f4c80fd0de63ed5a763ed422653 | 21c2dbabbc2f48da88e64e128ada8a8e4e0108d2 |
refs/heads/master | <repo_name>kukicado/mypwa<file_sep>/src/app/app.component.ts
import { Component } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
apiUrl = 'https://... | 6c10b86930a6da3ab14b09f2c7bc850d958bd629 | [
"TypeScript"
] | 1 | TypeScript | kukicado/mypwa | d34a8d11a71b2288741caf6f9b6cca297509dbda | 08fcc26da44674f461cdc9bb74a3be221e7695d8 |
refs/heads/main | <repo_name>KodingNYoung/tictactoe<file_sep>/src/Components/Cell.js
import React from 'react'
const Cell = ({showStatus, value, disabled}) => {
return (
<button
className="cell"
onClick= {showStatus}
disabled={disabled}
>
{value}
</button>
);
}
// .bind(this.props.value)
export def... | a6b8e76165692ccf1fce18e567bf96f0dda88fa3 | [
"JavaScript"
] | 1 | JavaScript | KodingNYoung/tictactoe | ed5c1b2ee7b2f2a10eed3da10e659ed53cc7e710 | 88f02b0542966540b86439c1d70563213c48b3ad |
refs/heads/master | <repo_name>ntq2503/Music-Survey-Display<file_sep>/src/prj5/Input.java
// Virginia Tech Honor Code Pledge:
//
// As a Hokie, I will conduct myself with honor and integrity at all times.
// I will not lie, cheat, or steal, nor will I accept the actions of those who
// do.
// -- <NAME> 9060-29058
package prj5;
... | 59e0393c989d09114f26c6084685ede80d2a3604 | [
"Markdown",
"Java"
] | 10 | Java | ntq2503/Music-Survey-Display | ec394e37c3ba392a8de275ba30b638a9d6351036 | 8c18e1fd4b0e433e79f6165c28b3c051237b56e7 |
refs/heads/master | <repo_name>MarioBanay/secret-number-game<file_sep>/web/src/main/java/com/mariobanay/controller/GameController.java
package com.mariobanay.controller;
import com.mariobanay.service.GameService;
import com.mariobanay.util.AttributeNames;
import com.mariobanay.util.GameMappings;
import com.mariobanay.util.ViewNames;
impo... | f980220665872e746b2a3150a6ed6543cfc25746 | [
"Java"
] | 1 | Java | MarioBanay/secret-number-game | d538b8a6f825299b1d6b456c38b1bd7c0ab8c137 | 9501fa01bfc3f435c55f7618897fadb51fdb9ad7 |
refs/heads/master | <file_sep>import { Component } from '@angular/core'
import * as moment from 'moment';
import { ModalController, LoadingController } from 'ionic-angular';
import { JournalEditPage } from './edit/journal-edit';
import { JournalService } from '../../services/journal.service';
@Component({
selector: 'page-journal',
te... | 92f0d43a3dfdd9214aecf1730e2ec42808bde315 | [
"Markdown",
"TypeScript"
] | 14 | TypeScript | doneal1992/soberdays | 8a0f131835c88899fb764dda5c5cfc7e8ca6ec74 | 2ce2f6336d65c8829f92122ce54ac39437cb7236 |
refs/heads/master | <file_sep>var someObjest=new Object();
function add(obj){
someObjest.checked=true;
}
add(someObjest);
var checkObj=someObjest.checked;
alert(checkObj);<file_sep>var s;
var inputString=prompt('Введите вашу строку','');
function newString(someString){
return 'Вы ввели'+" "+someString+" "+'полученая строка'+" "... | 57969717cd76962c057afb585e035005a37eb77b | [
"JavaScript"
] | 4 | JavaScript | PavelTaranda/gitTasks | a8659f0d19300786eefcf4b390f146bf82095990 | 85387a2d8eadea85ccf593d7437cbb5145d57666 |
refs/heads/master | <repo_name>nickangtc/convert-json-to-sql<file_sep>/convert.js
const jsonfile = require('jsonfile');
const fs = require('fs');
/**
* ===========================
* Command line interface
* ===========================
*/
// Extract command line arguments
console.log('process.argv:');
console.log(process.argv);
const... | dae1adaa8a24746e7fd40cdbb88fb44859fed2f1 | [
"JavaScript",
"SQL",
"Markdown"
] | 3 | JavaScript | nickangtc/convert-json-to-sql | fbbb96aae0ea43285af6a223cf4508f2fbb77f17 | c8278c19fa4da3f8b75e0d16c8626d4d66672ebf |
refs/heads/master | <file_sep>// Sandbox.swift
import Foundation
//1
let deliLineNames1: [String] = ["Al", "Chris", "Zach"]
func stringForDeliLine(names:[String]) -> String {
var list: String = ""
if names.isEmpty {
return "The line is currently empty."
} else {
list = "The line is:\n"
... | 609b5a17d8e5166f690e7f587e6e4d512810e877 | [
"Swift"
] | 2 | Swift | mariejinpark/swift-deli-counter-ios-apply-000 | 940977bb499ccb6755b06f069dfd941e948d4c1b | 6993e07816b32fbb86b1c098e3877310b6efff21 |
refs/heads/main | <repo_name>israelWL/reactmini2<file_sep>/src/components/PokeCard.js
import React from "react";
import { mockPokemonData } from "../mock/pokeData";
export default function PokeCard() {
return (
<div>
<h1>{mockPokemonData.name}</h1>
<img src={mockPokemonData.sprites.front_default} />
<img src={mo... | edb291792d48667dc8cee0175fb45dfdf64d4711 | [
"JavaScript"
] | 1 | JavaScript | israelWL/reactmini2 | e164b84887ec65a0b7e0c49d418816a6edd84fac | 67eb9190adb674b11f5229be0281cc390c870c89 |
refs/heads/master | <repo_name>SakuraFire/Website<file_sep>/htdocs/application/models/Blog_model.php
<?php
class Blog_model extends CI_Model {
public function __construct()
{
$this->load->database();
$this->load->dbforge();
}
public function get_blog($id = FALSE)
{
if ($id === FALSE)
{
$query = $this->db->... | 9621edc660532f0d8e588998136d49dd290ef3ab | [
"PHP"
] | 2 | PHP | SakuraFire/Website | 35010f50bd8ae0354cf506aa34384c746271ec4b | b4f7b61bec577e5fbde36a185afd68bc8013cc39 |
refs/heads/master | <file_sep>//================================================
//Main Page Functions
//================================================
//function that is called to submit task to the database
//takes the event, the url for the ajax call, and an optional id
function createTask(e, url){
e.preventDefault()
let task... | b0d13a557ddb840233f28024ff7bb313132ff7b4 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | m081779/express-handlebars-todo-list | 529f20aa7d22a0dee1710ab9436d7401f802f4d5 | 93156abef3e336a6a84763138f97c7613833e1c1 |
refs/heads/master | <file_sep># Dmalloc
A debugging memory allocator in C that will provide many of the features of Valgrind.
Specifically, the debugging allocator...
1. Tracks memory usage,
2. Catches common programming errors (e.g., use after free, double free),
3. Detects writing off the end of dynamically allocated memory (e.g., wr... | 623651452a5cc861217a4cc68d25d533a616fe6c | [
"Markdown",
"Makefile",
"C++"
] | 5 | Markdown | christinatuttle/Dmalloc | fc3a184962d118bd33084066be71df8342acce9c | c4b02ea184776b50d5610d9f0d0f3f5bb90ed3cf |
refs/heads/master | <file_sep>import React, {Component} from 'react'
import moment from 'moment'
//import 'moment/locale/zh-cn';
import Scheduler, {SchedulerData, ViewTypes, DATE_FORMAT, CellUnits, DATETIME_FORMAT} from '../src/index'
import withDragDropContext from './withDnDContext'
import '../lib/css/style.css'
class Basic extends Com... | 2f8d21e4b36efdaac7958d1023c6657331b2c121 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | vkabc/react-mega-scheduler | b0408b110810c42ec79a69f3e41b5c1eb16f8e49 | b1a8be9edbaf7edfb380677999fb60efef63c803 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymysql
class IpMysqlPipelines(object):
def process_item(self, item, spider):
# 打开数据连接
self.conn =... | 0085118b38eb945c1ded43943d0f8b9086e386cd | [
"Markdown",
"Python"
] | 6 | Python | liyongqiang1210/ip_spider_python | 6d92c3f3859576fcd367bff5f1b13ca8c2e4242e | 50b6b29d7a9389b2017b5a7621231bee6c61ff09 |
refs/heads/master | <repo_name>gari/sh<file_sep>/fixwebperms.sh
#!/bin/sh
# Exit on first error.
set -e -o pipefail
function fatal()
{
echo "${0##*/}: $*" >&2
exit 1
}
if [ "`id -u`" = "0" ]; then
fatal "Do not work on web content as root"
fi
if [ $# -ne 1 ]; then
fatal "Please provide the directory name"
fi
# Try to detect the m... | 3738e6e493821c0aef260f94416e8f235d8a4606 | [
"Shell"
] | 1 | Shell | gari/sh | 90fd32f6c57b26d2ccff768f7bd13b3b5d0f37f7 | 3b7554cb7051fd76b26f6503134c9da6b881d824 |
refs/heads/master | <repo_name>lleo5301/PortfolioWork<file_sep>/public/app/controllers/statsController.js
app.controller('statsController', ['$scope', '$http', function($scope, $http){
//start with preloader
$scope.loading = true;
//get icon links
// $http.get('api/icons').then(function(res){
// $scope.icons = res.data;
// })
... | 1ad268b23733f5bac304b9951a50fee9adba2967 | [
"JavaScript"
] | 5 | JavaScript | lleo5301/PortfolioWork | 5e8920b14eeca4041dc276e1df9f62022cdb46e9 | b4b3c69a387ed09035762ed5ad3e5d47ed3279b4 |
refs/heads/master | <repo_name>VladTrushkov/flug_RF<file_sep>/flag.py
import pygame
pygame.init()
size = width, height = 500, 500
screen = pygame.display.set_mode(size)
def draw_background():
rect_color = pygame.Color('white')
rect_width = 0
rect_point = [(0, 0), (500, 500)]
pygame.draw.rect(screen, rect_color, rect_po... | 237ddb5511dd13d2049eaef0d72de76184a7756a | [
"Python"
] | 1 | Python | VladTrushkov/flug_RF | c274e62dabdcbe71a1a3c1d940c4a94d46ce8f42 | 07ec8aa55259115d334f694a1dbb13c5e1f0c669 |
refs/heads/master | <repo_name>rishabh1005/Room_Booking<file_sep>/README.md
#Week of Learning
Click On the home.html page to view
<file_sep>/Java/SignIn.js
function validate()
{
var str1=document.MyForm.email.value;
var re = new RegExp('^[a-zA-Z0-9_.]+@[a-z]+.[a-z]{3}$','g');
var str2=document.MyForm.Pass.value;
var x =new RegExp('^... | 563a8e4660773b8a1b60900120e110742cc43ec0 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | rishabh1005/Room_Booking | 51b5b1226a61579273294cba187bf1536081a52e | 04889aa2b1bb49994d008a9dc4d7832914111a5d |
refs/heads/master | <repo_name>ShikalovNikita/empty<file_sep>/src/js/app.js
// import {TweenLite} from 'gsap';
// let photo = document.getElementsByTagName('img');
// TweenLite.to(photo,2, {width:"300px", height:"150px"});<file_sep>/README.md
# Init_Workplace v4.2
Шаблон помогает быстро начать вёрстку проекта.
Перед началом работы нужн... | a0641c1fb9bb7295f65b806e35453af01173b4bd | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ShikalovNikita/empty | 460ce4f1e87fd035db0c587bf7f1832d61fb135d | 7091056b91e3da11bbee685fab2d4d1f11182a36 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Wed Feb 1 19:56:30 2017
@author: JM
"""
import cv2
import numpy as np
from matplotlib import pyplot as plt
def meanSquareError(imagenOriginal,imagenRestaurada):
M, N = imagenOriginal.shape[:2]
error = np.float32(0.0)
for x in range(M):
... | d59a4dc0c86c7f559c3f9c137bf2ddd51ef60763 | [
"Markdown",
"Python"
] | 10 | Python | JMiguelDB/OpenCV-exercises | cfaa00cc6d880dccd193c43dc097bd4ab7fd03ef | 86fadd64db06f48ca9f7aeb194328cc03eca534d |
refs/heads/master | <repo_name>et0x/la-z-pwn<file_sep>/la-z-pwn.py
#!/usr/bin/python
import base64,subprocess
from optparse import OptionParser
def main():
parser = OptionParser()
parser.add_option("-l","--lhost",dest="lhost",help="LHOST for Meterpreter",action="store")
parser.add_option("-p","--lport",dest="lport",help="LPORT for Me... | 14933f26697accdc730df97df54033a27c1d2fd5 | [
"Python"
] | 1 | Python | et0x/la-z-pwn | e48842622ed8f409aa784385c5341ebf75abcaa2 | 141e962b8d7ef3754efa4d6cdd0bafcb68860edf |
refs/heads/master | <file_sep>//
// ViewController.swift
// temperature sensor
//
// Created by <NAME> on 2018-06-22.
// Copyright © 2018 <NAME>. All rights reserved.
//
import UIKit
import Alamofire
import SwiftyJSON
class ViewController: UIViewController{
override func viewDidLoad() {
super.viewDidLoad()
// Do... | 3e74ae9b1808ab603f8382ebf622e99b2dcd26ca | [
"Swift"
] | 1 | Swift | dataports/TempSensor-Reading | 16de34f95890a87fd78b2aa36125d3c2f1ae59ec | f36b84f59482489ed4506d13063b8ef33698893e |
refs/heads/master | <repo_name>wangpanclimber/tutorial<file_sep>/C语言程序/习题15.6 本息.cpp
#include<stdio.h>;
#include<math.h>;
int main()
{
float pa,pb,pc,pd,pf,m;
printf("money: ");
scanf("%f",&m);
pa=m*(1+5*0.0585);
pb=(m*(1+0.0468)^2)*((1+0.054)^3);
pc=000;
pd=m*((1+0.0414)^5);
pf=m*((1+0.0072/4)^20);
printf("pa=%f\npb=%f\npc=%f\n... | 312ae6989626b7b361ba80f123e46974dcbc339d | [
"Java",
"C++",
"PHP"
] | 22 | C++ | wangpanclimber/tutorial | 3a684635e135d1ad9e2e660cb6ddf1931f81e3ee | aa4dfcc00a9d9e625d6830edbc5bb8d674bb7e64 |
refs/heads/master | <file_sep>package com.fatosajvazi;
import java.util.*;
public class Main {
private static List<Album> albums = new ArrayList<>();
public static void main(String[] args) {
// write your code here
Album album = new Album("USA");
album.addSongToAlbum("Bizele",2.46);
album... | b05309df696c09b05f5ffc2bd48e2c532f6c0c07 | [
"Java"
] | 22 | Java | FatosAjvazi/udemy-course | 695037d23f1a9f588b2fbc3f93e92a71d2c68aab | a81489b2338cabb0a665470f04aa021d8a6c1fbf |
refs/heads/master | <file_sep>namespace AsyncPractice.Entities
{
public class Coffe
{
public string Brand { get; set; }
}
}<file_sep>using System;
using System.Threading.Tasks;
using AsyncPractice.Entities;
namespace AsyncPractice
{
public class Kitchen
{
public Coffe PourCoffe()
... | 8708651da084032ddcd3e335c8ac18ed55fa39e6 | [
"C#"
] | 3 | C# | HenryBautista/AsyncPractice | d4c2a1c30c72ba4a2643d826ad2d82e053ada5ae | e64f8746be654f063641a45c439fff5af72bfa8d |
refs/heads/master | <repo_name>sharat910/neo-frameworks<file_sep>/Networkx_to_neo.py
from py2neo import Graph, Node, NodeSelector, Relationship
import time
USERNAME = "neoneo"
PASSWORD = "<PASSWORD>"
IP = "192.168.0.111"
PORT = "7474"
class Neo(object):
def __init__(self):
self.net = None
self.timestamp = None
self.graph = Graph(... | dc29ebc5f86458b676b35ea6f656bdcda206b7a5 | [
"Markdown",
"Python"
] | 3 | Python | sharat910/neo-frameworks | 77a024fa44570264706ce3538993a8268f8bd1f5 | 492db51c26b94b07360bea673a0717301491d601 |
refs/heads/master | <repo_name>jacerhea/GildedRose<file_sep>/src/GildedRose.Tests/TestAssemblyTests.cs
using System;
using System.Collections.Generic;
using GildedRose.Console;
using Xunit;
namespace GildedRose.Tests
{
public class TestAssemblyTests
{
[Fact]
public void TestUpdateOnZeroZeroItem()
{
... | 03d5551bb84f0a68c8714a74bfcec8c1402a1120 | [
"C#"
] | 2 | C# | jacerhea/GildedRose | 24c4fa999bd182bf19397784c753d74207cfeb7c | 2ad8eeb457ade45927be69ec4b4220772eafb35b |
refs/heads/master | <repo_name>georgeevil/AppDynamics_visualizer<file_sep>/models/graphs.js
// Grab all modules + reqs + intialization
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var sanitizerPlugin = require("mongoose-sanitizer");
// Schema for graph
var graphSchema = new Schema({
name: {
type: String,
... | c17ce3e8c74fb50629b6696f20b13b4b1be6b43c | [
"JavaScript",
"Shell"
] | 2 | JavaScript | georgeevil/AppDynamics_visualizer | 920f62a6344b11c2eda0458e793b165120c47d8f | bddd60209332923c8865dab372192e76ea2b4b17 |
refs/heads/master | <file_sep>beautifulsoup4==4.6.0
glob2==0.5
htmlmin==0.1.10
Mako==1.0.6
pip==9.0.1
requests==2.14.2
setuptools==35.0.2
transifex-client==0.12.4
urllib3==1.21.1
<file_sep>goog.provide('ngeo.geom');
goog.require('ngeo.coordinate');
/**
* Convert all coordinates within a geometry object to XY, i.e. remove any
* extra ... | 942b01e7c70305dc06161b86da0c33bed4bbb0a7 | [
"JavaScript",
"Text"
] | 2 | Text | monodo/ngeo | 7386c07f1a44a5e498e5727db46e9e99d98abf41 | ecc76d232e49f225bc2ca6b376b1fd031ecb31d2 |
refs/heads/master | <repo_name>dnherrig/EECS168<file_sep>/README.md
# EECS168
Lab and Homework for EECS 168
THIS IS FOR REFRENCE ONLY!
Copying code is PLAGIARISM
<file_sep>/Exercise1/main.cpp
/* -----------------------------------------------------------------------------
*
* File Name: main.cpp
* Author: <NAME> <EMAIL>
* Assignment: ... | 6d020af64f79a5a02bf1280cb282082229588e8f | [
"Markdown",
"Makefile",
"C++"
] | 8 | Markdown | dnherrig/EECS168 | f3a0970a39a02f499128b45d8f48c0f7bb83540a | 3a5600108d8f6375f39c49e02a5b31db5e6329b5 |
refs/heads/master | <file_sep>package com.talenteo.search.resource;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import java.net.URI;
import java.util.List;
import java.util.Optional;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bin... | 498c1041c14af287d2720c0dd8e84b3ccd301648 | [
"Java"
] | 1 | Java | m-imad/talenteo-search | 05105c4fb71cb338244224402d968053b7da7f68 | 6e9f4bb6112bde800782db7a0e41939d024fc6c4 |
refs/heads/master | <file_sep><?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class shopping_cart extends Model
{
public $timestamps = true ;
protected $fillable = [
'user_id',
'product_id',
] ;
}
<file_sep><?php
namespace App\Http\Con... | 4671e79bf5deda2e1858652cc4250bb9616d2ea0 | [
"Markdown",
"PHP"
] | 18 | PHP | yusufsrmli/LaraFashion | 71a49e17855f751485231a1050b813d106bb59b8 | df49081f07817b86cbbad069273c99e4d820f04f |
refs/heads/master | <repo_name>shiweixian2/Connector<file_sep>/app/src/main/java/com/hillsidewatchers/connector/app/FrameMarkers/FrameMarkerRenderer.java
/*===============================================================================
Copyright (c) 2016 PTC Inc. All Rights Reserved.
Copyright (c) 2012-2014 Qualcomm Connected Experiences... | 103592a5c071213d9f4e3c490653fe91e1261f95 | [
"Java"
] | 3 | Java | shiweixian2/Connector | 173446d69eec4e4ad62f7ac4b44e7d60bdb00268 | bc9704e7b7a9cf149562907ab0f97efe0ce429f7 |
refs/heads/master | <file_sep>package pr01_GenericBox;
public class Box<T> {
private T data;
public Box(T data) {
this.setData(data);
}
public T getData() {
return data;
}
private void setData(T data) {
this.data = data;
}
@Override
public String toString() {
return... | f81ad73366cd4fede5c43851ad91a457f07c5f4f | [
"C#",
"Java"
] | 188 | Java | aangelovangelov/Homeworks | 58dfbebdbf87972f0205c61e172cb3ef00e372fd | ee4afb9067249c5720a621cb2700dde93e677821 |
refs/heads/master | <file_sep># CsvReader.
### 1) A Csv Reader SPA application is implmented by react.
### 2) The UI allows user to upload a csv file (fixed format as attached CSV).
### 3) CSv parsing and validation will be done on browser side.
### 4) It will show a preview table with CSV parsed data.
### 5) Onces user click on save b... | 079bd2c5d5dc83e2f822220c574f4343977d5c42 | [
"Markdown",
"TypeScript"
] | 3 | Markdown | shaikDariya/CsvReader | 6b550a219f2753d894d80af64de5136b891a9e2e | 9d6b6770edcf474362eb4712212b1797076941b2 |
refs/heads/master | <file_sep>public class Practica1 {
public static void main(String[] args) {
// tableAltas t = new tableAltas();
//PracticaOct t = new PracticaOct();
Pedidos t = new Pedidos();
t.setVisible(true);
}
}
<file_sep>
import java.io.File;
import java.sql.CallableStatem... | ef2620309a9e25f70b2879e803f5133a76bc0dfb | [
"Java",
"SQL"
] | 3 | Java | sandyCortes/PasteleriaJava | 9db54f0ed56220d17ddc50aa77846225a3fb2ac6 | 13541aa9b2fbfce8b0dd89ba98dc0581440818b2 |
refs/heads/master | <file_sep>from main.candle_monitor import buy_signal, sell_signal
from main.Allert import side_signal
from main.functions import *
from api_data import api, secret
from binance.client import Client
from datetime import datetime as dt
import time
client = Client(api, secret)
tiker = 'ONEUSDT'
# получаем лимиты по ти... | f26f2958db183711ff6c32d72180d0ea33543e48 | [
"Markdown",
"Python"
] | 14 | Python | yuriy-jk/trading_bot | 7cbffe882b4b4296e7df2637b9a50ba247bd42b3 | 7532abc2ea00d4f22f8c7f397eda77e73939a7e5 |
refs/heads/master | <file_sep>/*
* @title attraction
* @description declarative DOM event binding via attributes
* @usage
* html: <element on-click="app.method(this, event)">
* javascript: attraction.setup({'app': this, 'any': {'key': value} });
**/
(function(scope) {
var evPrefix = 'on-';
var evRgx = new RegExp('^' + evPrefix... | 6084a7a56e6eb27596dfbfdcca43f129d2311876 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | plugn/ctor.js | 6e355a5b7454bc9978298cc71eda452ef0fbc9e7 | 6bb09d0a54cf47de561f3fb59636d4a3a3175df0 |
refs/heads/master | <file_sep>
cmake_minimum_required(VERSION 3.7)
project(AD)
set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_CXX_FLAGS "-std=c++14")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb3")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpedantic")
set(CMAKE_CXX_... | b529ccc64d233402d04e818e19838834e3f4f880 | [
"Markdown",
"CMake",
"C++"
] | 3 | CMake | sweeterthancandy/AD | 5fe116f1da8dfdbde6f24d39014a1acbfd76b728 | 034d581b759df5d6180066c0d36889c98c64c0b6 |
refs/heads/master | <file_sep>#include <Wire.h>
#include <ZumoShield.h>
ZumoMotors motors;
ZumoReflectanceSensorArray linesensors(QTR_NO_EMITTER_PIN);
void setup() {
int i;
int spin_direction = 1;
motors.setSpeeds(80*spin_direction, -80*spin_direction);
for(i = 0; i<150; i++){
linesensors.calibrate();
if(i%50 == 25){ // ... | 01ae1f90042d2e8748983c1b91766b97ceb1ffeb | [
"Markdown",
"C++"
] | 13 | C++ | jodeleeuw/robot_competition_2020 | e2f7f2807a8261fdae4cff16f9c93feb61cd0ae7 | 91d50ef47e7a607ed00b10f197f8bb601553ffa4 |
refs/heads/master | <repo_name>Cheshikhina/866469-code-and-magick-17<file_sep>/js/util.js
'use strict';
window.util = (function () {
var userDialog = document.querySelector('.setup');
var form = userDialog.querySelector('.setup-wizard-form');
var userWizardCoatValue = document.querySelector('input[name="coat-color"]');
var userWi... | 54e3c2c3185eacdaa7f31a04b308a81acb83e1c1 | [
"JavaScript"
] | 2 | JavaScript | Cheshikhina/866469-code-and-magick-17 | d2bc92119d98ddb471933a215b42b0775e4298be | 183313ac6f849348fc8343d311bb911c7eacdc1a |
refs/heads/master | <file_sep>
public class Test {
public static void main(String[] args){
Shape san = new Triangle();
san.setColor("red");
Triangle si = (Triangle)san;
si.setSides(3,4,5);
System.out.println(san.getType()+"周长"+san.calPerimeter());
/* Shape s11 = new Triangle();
Shape s22 = new Circle()... | d4e56dcf455ff6195b41c68513d263be2d24dd08 | [
"Java",
"Text"
] | 30 | Java | qihaiyan92/JA12141201 | 5375dc8171015e1570164446dc170b0a046e1e51 | fa91d78895aabafad2f3e53f63c9fbecbbf655f4 |
refs/heads/master | <repo_name>virajhk/googletest-demo<file_sep>/NoFlyList/Person.h
#pragma once
#include "Twitter.h"
#include <memory>
class Person
{
public:
enum nationality_t { FRENCH, AMERICAN };
enum political_view_t { CONSERVATIVE, LIBERAL };
Person(nationality_t nationality, political_view_t political_view) :
terrorist(false... | d47fd468596a6f6566d4d6dcd587867f8630c810 | [
"C++"
] | 7 | C++ | virajhk/googletest-demo | a106d28d196c34335e170a6e69ea5de332ebf2f2 | bc0caf5dca180b32c8ad927b0eb51995032fda10 |
refs/heads/main | <file_sep>import XMLToReact from '@condenast/xml-to-react';
export const parserFunction = (xmlString) => {
let xmlElements = []
let parser = new DOMParser();
const androidDOM = parser.parseFromString(xmlString, "text/xml");
console.log(androidDOM);
//Code checks if their is an error in the code you... | 47d891ef104348f45424ee46389391923eaa1447 | [
"JavaScript"
] | 2 | JavaScript | bar199/TealHorse | b8892c2d4be6c7c7535dfe8a6bc23a2a1a31c9ca | 26d906991eeaced485b088a21dce5cea6f7c0934 |
refs/heads/main | <repo_name>lindsaylevine/bitproject_website<file_sep>/components/dualcol/index.jsx
import {
Box,
Button,
Flex,
Heading,
Img,
Container,
Text,
Badge,
Link,
useColorModeValue as mode,
} from '@chakra-ui/react'
import Fade from 'react-reveal/Fade';
import * as React from 'react'
export const DualCol =... | 62ec3da248ccef744c21ee34087896d69fa7da2a | [
"JavaScript"
] | 7 | JavaScript | lindsaylevine/bitproject_website | 308a3fecb4fdeb05b19cf317ff4996a3734b7342 | cfb6eae6d8e8fa9650a3d52cfd2d78febb36c762 |
refs/heads/master | <repo_name>dohne12/h-twitter-bot<file_sep>/README.md
# Twitter Hathor Bot
This is a Twitter bot that distributes tokens according to a set of rules.
For example, the tweet "Wig1U2TXnHXdMmXVQGAXmaGU66Gg76NXuj @Hathor #IWantHTR" may trigger the bot to send a few tokens to the given address.
## How does it work?
It is... | d328fdc7c28c2e9fd59016b7341f2d951933420d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | dohne12/h-twitter-bot | e331f3c53d0896b98d7e496ad5c02df05048391c | 0551f7c66c38a9fbe6686c5fc86788321d1ec944 |
refs/heads/master | <repo_name>rymcmahon/scripts<file_sep>/file-name-converter.rb
require 'rspec/autorun'
class File
def initialize(string:)
@string = string
end
def convert_title_to_url
@string.tr(" ", "-").gsub(/:/, "").gsub(/,/, "").downcase
end
end
describe File do
describe "#convert_title_to_url" do
it "ret... | 05343ef2b8bd49e41b558261ac800274e521a66e | [
"Ruby"
] | 1 | Ruby | rymcmahon/scripts | eb684ce22e5c5b0c9d386830ea346c576db40d19 | 18b2803df3377c6fdf79d62293a8101c3ce1f5ee |
refs/heads/master | <repo_name>ptruesdell/heighway-dragon<file_sep>/fractal.js
// The Heighway Dragon Fractal ~ Daily Programmer Challenge #223 [hard]
// Dependencies
var _ = require('lodash');
// Point constructor
Point = function(x, y) {
this.x = x;
this.y = y;
};
Point.prototype.x = function() {
return this.x;
};
Point... | 6dcb9d6a63fdd89b2f6afc0c83320d16aaa275e1 | [
"JavaScript"
] | 1 | JavaScript | ptruesdell/heighway-dragon | b6608fa8f98f5ff2b1e0041fa355a07313e62805 | 5e61c0a03cc982c1ca78c8ee661826cfedf01a5d |
refs/heads/master | <repo_name>ux5-afterhours/react-counter<file_sep>/client/src/components/Count.js
import React from 'react';
import styled, { keyframes } from 'styled-components';
const Label = styled.p`
font-size: 40px;
font-weight: bold;
/*if (props.count % 2 === 0){
do this
else {
do that
... | 38a6c9cb1ae9dd8f5593aa4c1f0ccbe78a6f1020 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ux5-afterhours/react-counter | 653f791cbc94046a5c6f2cbb3fa85b20aa93fdaf | 3b3901408bdf15d087ad79535e631eca760f008f |
refs/heads/master | <repo_name>SilverYar/Parallel<file_sep>/README.md
# Parallel
Examples of parallel tasks on Windows
<file_sep>/time.py
from os import system, access, remove, W_OK
import numpy as np
import scipy.stats as st
import math
import argparse
import time
def chooseAppropriateTimeUnit(timeInMicros):
if (timeInMicros / 10... | 02666eb7a01f4129c21a9518d95ba2d0e5cc50ea | [
"Markdown",
"Python"
] | 2 | Markdown | SilverYar/Parallel | 6a1ab9b728a20e2687e9b02ff3855b017a6007b7 | e12ae6a86dd00310cee42fc8ee27dfc49485f38b |
refs/heads/master | <file_sep># Ocarina
Ocarina is a simple and easy to usade audio package for Flutter. Its goal is to support audio play from local file (from assets, or filesystem), And to support it across all platforms that Flutter runs.
Right now, __we only support mobile (Android and iOS)__ and will eventually supporting Web and ... | fd781a2cb3b569d116fddedc04b4363125fbde37 | [
"Markdown",
"Kotlin",
"Swift"
] | 4 | Markdown | alanmeier/ocarina | babd3d739c8b606e3a792eafcb60c0d199fe52ea | c6fddba23bc3463dc4efa099870cca014dbd9334 |
refs/heads/master | <repo_name>janson-git/consoleApp<file_sep>/App/Command/Demo.php
<?php
namespace Command;
class Demo extends Command
{
protected function configure()
{
// That means you want to use this Demo command class as 'demo' console command
// with options '-c', '-p' (alias '--password'), '-h' (alias '-... | f7b6778522b2758cd4ace0f08a26c2842e36092f | [
"Markdown",
"PHP"
] | 9 | PHP | janson-git/consoleApp | 54a149740f776917704f97e3cd21ed3c92c92246 | 81cde28bee67432762ac14610395b9c78bb9075e |
refs/heads/master | <repo_name>iobreaker/CSI-Camera<file_sep>/face_detect.py
# MIT License
# Copyright (c) 2019 JetsonHacks
# See LICENSE for OpenCV license and additional information
# https://docs.opencv.org/3.3.1/d7/d8b/tutorial_py_face_detection.html
# On the Jetson Nano, OpenCV comes preinstalled
# Data files are in /usr/sharc/OpenC... | a9baf29db38ce7be733594ec788a041b0f94f4a9 | [
"Python"
] | 1 | Python | iobreaker/CSI-Camera | 5a05e1273b9dbdd916c3f4f766b34c2edfe6730f | bb5bc447bf30075318e58595999a75294c9f50b9 |
refs/heads/master | <file_sep><?php
namespace Freebird\Services\freebird;
class Client
{
/**
* Create a new Freebird Client
* @param [string] $consumer_key [Twitter Application Consumer Key]
* @param [string] $consumer_secret [Twitter Application Consumer Secret Key]
*/
public function __construct ()
{
$this->requestHa... | abc2de1794110b3cd25e34b7ba002cafc93b80b9 | [
"Markdown",
"PHP"
] | 4 | PHP | corbanb/freebird-php | 55db9f5ba89136f8eb1e7f716c5679f4b82c4ee4 | 3fa0c08f4af2f7af4303e828b5c4ed1b0bc2a00c |
refs/heads/master | <file_sep>/home/ivaneyvieira/.sdkman/candidates/java/8.0.252.hs-adpt/jre/../bin/javadoc @options @argfile | 1bbe7f55784a36dc8a1c5cd5f5088ecdc24482c1 | [
"Shell"
] | 1 | Shell | ivaneyvieira/apidoc | 000ddb20db78fea336cd482633cd068cf4e1edf0 | a51e6ec3eb1f5eb83ae30e94ea0ef9faacb18b9e |
refs/heads/master | <file_sep>//
// TableViewCell.swift
// Assignment App 2
//
// Created by <NAME> on 17.06.2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
import UIKit
class TableViewCell: UITableViewCell {
static let identifier = "TableViewCell"
let name = UILabel()
let email = UILabel()
let phone = UILabel(... | a46e0e12eb675de0fa2e72dd627e2f70e422b629 | [
"Swift"
] | 8 | Swift | MrRonanX/Assignment-App-3 | 846b356c6e949a36d14b81798d6e86dbee6fc164 | 0abfc2a7732b853d8145ed7b3e9a458aeb90c3a3 |
refs/heads/master | <repo_name>Arswyd/ProjectArgon<file_sep>/Assets/Scripts/CollisionHandler.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class CollisionHandler : MonoBehaviour
{
[SerializeField] float loadDelay = 1f;
[SerializeField] ParticleSystem ... | 20c170f55fc5c1053894950727007860e0e4612d | [
"Markdown",
"C#"
] | 3 | C# | Arswyd/ProjectArgon | c1ce341c4cea31364dd0ac0e9af860576facc004 | 48a70bfd54a0f7e19ee03adeafe29cd3984d8b3d |
refs/heads/master | <repo_name>ondrejholecek/rtf-doc<file_sep>/go.mod
module github.com/therox/rtf-doc
go 1.14
require github.com/google/pprof v0.0.0-20190208070709-b421f19a5c07 // indirect
<file_sep>/paragraph.go
package rtfdoc
import (
"fmt"
"strings"
)
// AddParagraph return new instance of Paragraph.
func (doc *Document) AddPara... | 02d5c70edc377e4f2e992bb6f374181adf09a542 | [
"Go",
"Go Module",
"Markdown"
] | 5 | Go Module | ondrejholecek/rtf-doc | 7b49d419a781c8bead8d9743958d1a558e121a13 | 8b107430d92490af88fd46c9388fc621a0bd5f5f |
refs/heads/master | <repo_name>GameStore-org/Cloud-Native-Game-Store-Project<file_sep>/product-service/src/test/java/com/trilogyed/productservice/service/ServiceLayerTest.java
package com.trilogyed.productservice.service;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class ServiceLayerTest {
... | fbc8fd6715266acc0365b05a55290b0d05a4ddc1 | [
"Markdown",
"Java",
"INI"
] | 18 | Java | GameStore-org/Cloud-Native-Game-Store-Project | 5b03107ab322839f86367ac7a91657cd5b56de9d | b491497aba0d37e33e7e8503963b2ad06e2e6c7c |
refs/heads/master | <file_sep>local function shortcut(nInputPlane, nOutputPlane, stride)
assert(nOutputPlane >= nInputPlane)
if stride == 1 and nInputPlane == nOutputPlane then
return nn.Identity()
else
-- Strided, zero-padded identity shortcut
return nn.SpatialConvolution(nInputPlane, nOutputPlane, 1, 1, stride, stride,... | cfb064bdcb8757784e3f97411ffa54d80414a0a0 | [
"Lua"
] | 1 | Lua | jonathanasdf/dpnn | c6d7de6423fdf2dc4e22ce6e381cb8aee62b7ed0 | 90b1c549aec7eb23e47af7d798d4c405e79d136b |
refs/heads/master | <repo_name>gurusha01/specific-algos<file_sep>/tictactoe_minimax.cpp
#include<iostream>
using namespace std;
int board[3][3];
bool end_b()
{
for(int i=0;i<3;i++) for(int j=0;j<3;j++) if(board[i][j]==3) return false;
return true;
}
int board_value()
{
for (int row = 0; row<3; row++)
... | 2b962af055f88af50a319cc11e5a8e43b518f96f | [
"Markdown",
"Python",
"C++"
] | 4 | C++ | gurusha01/specific-algos | 5ed1f2ade8b96e1d107a190153f5dba001c006b6 | 5da3b2f138a86d2b0a2b6cb17f572037e156d507 |
refs/heads/master | <file_sep>dat2020<-read.csv('F:\\intern\\snapshot2020.csv')
library(dplyr)
dat20=filter(dat2020,code>=1&channel_no!='channel')
dat20time<-dat20[!duplicated(dat20$update_time),]
dat20tQ<-matrix(1:nrow(dat20time)*2,nrow(dat20time),2)
dat20tQ[,1]=dat20time$update_time
dat20tQ[,2]=dat20time$total_volume
i=1
j=1
n=nrow(dat2... | ed3015c9e6c63d730f7dec017591968bf99cd7b7 | [
"Markdown",
"R"
] | 2 | R | yaominssss/helloworld | 88528ba78e378c57a42a25bee0b1ed5f45f8c909 | 337c1894a4b0d04b2882c45414fe74045b41f85a |
refs/heads/master | <file_sep>cassandra.contactpoints=192.168.3.11
cassandra.port=9042
cassandra.keyspace=rea_poc
cassandra.username=cassandra
cassandra.password=<PASSWORD><file_sep>/**
* Created by Sankar on 4/24/2015.
*/
angular.module('rea-otl', [
'ui.router',
'placeholders',
'ui.bootstrap',
'ngResource',
'rea-ser... | 4e0093813a31899aecb771842810c4ede615d0f9 | [
"JavaScript",
"Java",
"INI"
] | 9 | INI | ervbsankar/ReaPoc | adb05aa11478e126d2ddbdb6baead742731ef778 | 5b8370dbbb11d6b4ad6a1b55300463485d792cbe |
refs/heads/master | <file_sep>#!/bin/sh
#Process command line options
OPTS=`getopt -n 'install.sh' -o h -l help,use-freeswitch-source,use-freeswitch-package-all,use-freeswitch-master,use-freeswitch-package-unofficial-arm -- "$@"`
eval set -- "$OPTS"
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi
export USE_FREES... | 441601526226f91c3305ce7df9d815f4ff90dcb3 | [
"Shell"
] | 2 | Shell | astan24/fusionpbx-install.sh | 21d2c4e7586a740e4a9716470d9dabe2cd3bde32 | 8bc016d4174a83f68b48735602d6d350b51b9183 |
refs/heads/master | <repo_name>alexandracrisan/tree-backbone<file_sep>/README.md
# tree-backbone
<file_sep>/js/views/mainView.js
/**
* Created by alexandracrisan on 8/12/2015.
*/
window.SearchTree = window.SearchTree || {};
window.SearchTree.mainView = Backbone.View.extend({
el: '.container',
initialize: function(){
},
... | b970256d7a34a235a040fc58aeb686b1707f5831 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | alexandracrisan/tree-backbone | 1e6b0a82dc724664e343c47da0ff8e6f8737ff06 | c54c6ab8299382f2baed41c8c76fff6c0283e600 |
refs/heads/master | <repo_name>Reaper45/Meet-Ups<file_sep>/src/main.js
import Vue from 'vue'
import Vuetify from 'vuetify'
import VueResource from 'vue-resource'
import App from './App'
import router from './router'
import { store } from './store'
import DateFilter from './filters/date'
import * as firebase from 'firebase'
import Alert fr... | b04de42154b508a4ef71fbd18c86e55619e80fbd | [
"JavaScript"
] | 1 | JavaScript | Reaper45/Meet-Ups | c428e4fd53c931df8e1d46316d6b8f45b42dac99 | 4a044e271ffd08d07f212c464ae90a129cd7dbee |
refs/heads/main | <repo_name>ewinnington/crimson-catalyst-csharp<file_sep>/cli-redis/Program.cs
using System;
using StackExchange.Redis;
namespace cli_redis
{
class Program
{
static void Main(string[] args)
{
ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost");
... | ba5249e17e03916b4d4969d2c06e17ec21ccc0d0 | [
"Markdown",
"C#"
] | 4 | C# | ewinnington/crimson-catalyst-csharp | 92ff0c71e8c4fa76d143942c258d445ad5ada4ab | 81339ccbdc8f29f6e96ea9a6b1b1a9e3b0d6eb0b |
refs/heads/master | <file_sep>#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
using namespace std;
int n;
int m;
struct Quest {
int task_nr; //nr zadania
int sum_of_times; //suma czasow zadania
vector<int> time_exec; //wektor czasow wykonania zadania na maszynach
vector<int> start_quest; //wektor ... | 1349a35c29b14cb7c48d3c4841fcde6c344e9ad9 | [
"Markdown",
"CMake",
"C++"
] | 4 | C++ | Tigur/Neh-potato | 9c300ce667747963cee60e4454a9531a52e7d247 | 1af0493201ea0bf79b2c59a7473892734b78e996 |
refs/heads/main | <repo_name>xchenc/Flicks-by-PIE-LLC<file_sep>/src/components/Tiles.jsx
import PropTypes from 'prop-types';
import SwiperCore, { Navigation } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/react';
import Link from 'next/link';
import styles from 'styles/components/Tiles.module.scss';
SwiperCore.use([Navigat... | 12a6b7c73e85777c5ccd1e3cb098d0fea08c2cca | [
"JavaScript"
] | 6 | JavaScript | xchenc/Flicks-by-PIE-LLC | dfc1b146974088e7d96d1c84a7016ec90d0f4d98 | 246013703d18bf53512f36d64577be6689f6eac8 |
refs/heads/master | <repo_name>brianriosv/Solution1<file_sep>/Exercise3/Program.cs
using System;
namespace Exercise3
{
class Program
{
static void Main(string[] args)
{
char iter = 's';
int factorial = 1; //...
while (iter == 's') {
Console.Write("Ingrese un nu... | 95251d86f0fb0db483802f8d2c7e57cdb8e89b3b | [
"Markdown",
"C#"
] | 5 | C# | brianriosv/Solution1 | 50a69ffd3c58301260cf6dd63c18576a665f0272 | 8e41d849b387ef09bc8877ed52ab526f76849243 |
refs/heads/master | <repo_name>wginin/pyg<file_sep>/src/dynamicProxy/QingXImen.java
package dynamicProxy;
import java.lang.reflect.Proxy;
/**
* @description:
* @author: wginin
* @date: 2019-04-23 00:43
**/
public class QingXImen {
public static void main(String[] args) {
JinlianPan pan = new JinlianPan();
Invok... | d8e02ee07cf50b5c884fdec3967ec965df7a6131 | [
"Java"
] | 2 | Java | wginin/pyg | 433c7e36434c6f5054ecb91f6804eb60b8a5f0b3 | cad1047e546bb71aab7a1029dad04969e6b86051 |
refs/heads/master | <repo_name>mcfog/higari<file_sep>/gulpfile.js
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var mergeStream = require('merge-stream');
var globs = {
js: 'frontend/js/**/*.js',
less: 'frontend/less/**/*.main.less',
html: 'frontend/html/**/*',
assets: [
'frontend/fonts/**/*'... | 29407aa4d10613d843cfc00c04c51bae77a40424 | [
"JavaScript",
"Dockerfile",
"Shell"
] | 5 | JavaScript | mcfog/higari | 344edcbe3f12028a4d1b4594957e6358e120187f | 66bf1c8f31e6b5d009923623c859a62105c2e91d |
refs/heads/main | <file_sep># Time Complexity: O(n)
# Space Complexity: O(n)
"""
# Definition for Employee.
class Employee:
def __init__(self, id: int, importance: int, subordinates: List[int]):
self.id = id
self.importance = importance
self.subordinates = subordinates
"""
# DFS
class Solution:
# Maintain... | be199d32085c3d0d309d2bbea705cfc2fdfe7214 | [
"Python"
] | 2 | Python | nkranthi28/BFS-2.1 | 2468ba759a1b351de4e2ea48944f06a007354464 | db5bd2425fdba6bb4a2f444e53acb2fcdebf44cb |
refs/heads/main | <repo_name>mornville/vernacularAi<file_sep>/assignment/views.py
import json
from django.http.response import HttpResponse
from rest_framework.response import Response
from rest_framework import status
from rest_framework.decorators import api_view
from .utils.numeric_entity import *;
from .utils.finite_entity import *;... | 2d6d75cfb0bc94581bc994b31412577a1d27aefb | [
"Markdown",
"Python",
"Dockerfile"
] | 7 | Python | mornville/vernacularAi | ee38cde117a248e5555e888b779ed6176878bbb1 | 431130640b6e9d0fe36cfcd5efcb00e7a0513d23 |
refs/heads/master | <file_sep>package com.hcicloud.sap.common.network;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
/**
* Created by songxueyan on 2016/12/19.
*/
public class SuccessQueryJson {
//private String[] _source = {"ORDER_ID","VOICE_ID","PLAT_FORM","USER_PHONE","CALL_LENGTH","CALL_COENGTENT","... | 8b9127274db96abc3cc82709edb26d4d7ae5bb9a | [
"Java",
"Gradle"
] | 27 | Java | AndyMeng2017/SuccessTj | 2f0601591c1eb254b5cba4bfcf6bce595bbe03ba | 4b155056f9055c7e7d9d9000933a6bbcef06fde4 |
refs/heads/main | <repo_name>LeonFroehner/toolport_landingpage<file_sep>/template/landingpage.php
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">
<l... | 5cc19bc4c276ecddc50c499fda73d252f1894f29 | [
"PHP"
] | 2 | PHP | LeonFroehner/toolport_landingpage | b5d927fa5b47aa2899b83421b44dc715cc3e6f8a | 4d34a0286d6c5da6722a11469be4cc32d06d5c70 |
refs/heads/master | <repo_name>ornament-orm/pdo<file_sep>/README.md
# pdo
PDO-based adapter for Ornament
<file_sep>/src/Adapter.php
<?php
namespace Ornament\Pdo;
use Ornament\Ornament\DefaultAdapter;
use Ornament\Ornament\State;
use Ornament\Container;
use Ornament\Exception;
use PDOException;
use zpt\anno\Annotations;
use zpt\anno\Anno... | 9a230ec72ca853a66ee23a89d2ee985a1daa5d99 | [
"Markdown",
"PHP"
] | 2 | Markdown | ornament-orm/pdo | f0bb2a0c093b82d81f18c8b091a309a34b8e5e06 | 689f8fc3b36e133d28c42c7be72281b3a4ecd8a1 |
refs/heads/master | <repo_name>rafeykhan/CarND-LaneLines-P1<file_sep>/project_laneDet-new.py
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
import cv2
#%matplotlib inline
import math
def imageDims(image):
imshape = image.shape
x= imshape[0]
y= imshape[1]
retur... | 7f8890d3b826c68cb1dd027471ecf9a828fa66b4 | [
"Markdown",
"Python"
] | 2 | Python | rafeykhan/CarND-LaneLines-P1 | 54b38e8b22fa13e38dc45ad0047e9d50aca85399 | 6bb1417244db6947653ba50ebaee0d0af084c7e7 |
refs/heads/main | <file_sep># file: build.py
# vim:fileencoding=utf-8:ft=python
#
# Author: <NAME> <<EMAIL>>
# Created: 2016-04-24 17:06:48 +0200
# Last modified: 2020-10-25T19:39:35+0100
"""Create runnable archives from program files and custom modules."""
import os
import py_compile
import tempfile
import zipfile as z
def main():
... | 73f64caa880444a7f731e56b671031a8e0aacd3b | [
"Python",
"reStructuredText"
] | 2 | Python | rsmith-nl/build | b0f3b8b863cdcb05ac07c9e87cdb650f12b1c2ca | 17ed1bc0dd076c993f38d123cafe15c39a2f340e |
refs/heads/master | <file_sep>/**
* Creates and draws the game map
* @constructor
* @param {array} mapData - a 2d array of tile objects
*/
module.exports = Class.extend({
init: function(mapData) {
this.mapData = mapData;
},
draw: function(dCtx) {
var x, y, mapX, mapY, tile;
var yTiles = SCREEN... | e20428ce8b71b4b0bce262e0dbd787bb4e315bc1 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | isaacjohnsononline/tile-engine.js | 3bb1d3f9d9473d708c4b71cb04c1300e79f87429 | 3e4549b0d3f907cfd612097f4c41bec46d9daad4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.