branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { FacepaintingPage } from './facepainting';
@NgModule({
declarations: [
FacepaintingPage,
],
imports: [
IonicPageModule.forChild(FacepaintingPage),
],
})
export class FacepaintingPageModule {}
<f... | eb624c0cf234eaf983ac39608e4c7f43ae254e97 | [
"TypeScript",
"HTML"
] | 27 | TypeScript | shashank-shark/Android-Apps | d148f98acb5d75250f955de54d8ff1ec0ef7c620 | 69e79c599a2301aeee52ed9c2f42db52ab69542c |
refs/heads/main | <file_sep># SimonSay
A little game in which you must choose the colors that the computer says
<file_sep>const btnEmpezar=document.getElementById("btnEmpezar")
const celeste=document.getElementById("celeste")
const violeta=document.getElementById("violeta")
const naranja=document.getElementById("naranja")
const verde=do... | 656cfd48b7ac9c1739116781f63139ef9a20a687 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | IsaiasFer/SimonSay | 89d6eafddb3b28cb3dd4b8bf6d3da02b4638a2a5 | 23e5234e89d823e428e4afc46f712e74b599d519 |
refs/heads/master | <file_sep>const Payment = require('../models/payment');
const Booking = require('../models/booking');
const mongoose = require('mongoose')
const ObjectId = mongoose.Types.ObjectId;
const Rental = require('../models/rental');
const User = require('../models/user');
const Comment = require('../models/comment')
const { ... | 9111b6f9c282b510d576fc1e4f51c305850bb5d2 | [
"JavaScript"
] | 14 | JavaScript | HieuNguyen15520228/hsbookingback | b3d0503ae76598341a7e34a65ce906bb3b067af2 | a768369255c09224557f6a38704edd5eda00c5ce |
refs/heads/master | <file_sep>document.addEventListener("DOMContentLoaded", () => {
let button = document.querySelector('#button');
button.addEventListener('click', getRandomJoke);
})
const getRandomJoke = () => {
fetch("https://official-joke-api.appspot.com/random_joke")
.then(response => {
return respons... | 2b5f3665ca3abf8e5d3c65a8e6dd3062f844d0f6 | [
"JavaScript"
] | 1 | JavaScript | hupaulcamacho/Pursuit-Core-Web-Promises-Fetch-Lab | dba668d30c8de2d2b17d49cd2e14699c8c428f8e | 1620d3ae42ad0392c1976000432e4efa8c1c1e8d |
refs/heads/master | <repo_name>Shubhamchinda/AttendanceRecord<file_sep>/app/controllers/_utils.js
import moment from "moment";
export const isLoggedIn = (req, res, next) => {
if (req.isAuthenticated()) {
return next();
}
res.redirect("/");
};
export const setDateTime = (date, time) => {
let dateNtime = moment(date, "DD-MM-Y... | f26c2260b01ca4198c77c68ad6633ae4dcc85f1e | [
"JavaScript"
] | 8 | JavaScript | Shubhamchinda/AttendanceRecord | 29beb8b43b609bad870b539c8d1049c9a0f053f9 | 3deb77ddc8595ce1ef7706e1985b11a8a9bb47b8 |
refs/heads/master | <repo_name>pocketu/pocket<file_sep>/protected/views/app/jobs.php
<header id="top" >
<a id = "back" href="javascript:history.go(-1);">返回</a>
<div id = "title" class = "span1" >招聘信息轴</div>
<a id = "home" href="<?php echo Yii::app()->request->baseUrl; ?>">首页</a>
</header>
<div class = "flexbox" style="margin:0 10px 1... | 6b0c91d42a5596db5a471211b304c7548da684ce | [
"JavaScript",
"PHP",
"INI"
] | 43 | PHP | pocketu/pocket | 18535291cff1de1b566a24d04d69fcc793190fb3 | 3f8fae957ed3f112ad26458e94d99a0b548ce53e |
refs/heads/master | <repo_name>scalpovich/lara-framework<file_sep>/app/Http/Controllers/UserController.php
<?php
namespace App\Http\Controllers;
use App\Http\Requests;
use App\Users\Biodata;
use App\Users\Role;
use App\Users\User;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support... | 5b44357e52db0056d3dff9d46499312ff802f277 | [
"Markdown",
"PHP"
] | 30 | PHP | scalpovich/lara-framework | 9482c6c14317bf8e80cbbad48e96c0c5973ee81c | aec33a4f292c4bfa255fd2924771783375e21cc6 |
refs/heads/main | <repo_name>gilbendavid/LawGeekMovieApp<file_sep>/src/app/components/search/search.component.ts
import { Component, OnInit } from '@angular/core';
import { DataService } from 'src/app/services/data.service';
import { MovieStore } from '../../state/moviesStore';
import { Movie } from '../../models/movie';
import { Router... | b2476ffdd423293758a7e3a023e0e2c20963eafb | [
"TypeScript"
] | 5 | TypeScript | gilbendavid/LawGeekMovieApp | ec3675281026365234bbd1d694a2b79eba246f6a | 1d3face95882d4bf469566909cfdb9e8a3858baa |
refs/heads/master | <file_sep><!doctype html>
<html class="no-js" lang="en">
<head>
<script src="https://browser.sentry-cdn.com/5.6.3/bundle.min.js" integrity="<KEY>" crossorigin="anonymous">
</script>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Cr... | baa8f70e2670f4e6caaae4ff27dc872b98bcfde8 | [
"JavaScript",
"Java",
"HTML",
"Markdown"
] | 5 | HTML | alvisf/cryptrixv2 | 550ee8ba0dec125a623426945d96ed7a34dad7a8 | 8b5dd70b55e3498f680b49b4cde8f3af72392b14 |
refs/heads/master | <file_sep>source 'https://rubygems.org'
gem 'activerecord', '~> 4.1.1'
gem 'rake'
gem 'pg', :platform => [:ruby, :mswin, :mingw]
gem 'rspec'
group :test, :development do
gem 'database_cleaner'
end
<file_sep>require 'spec_helper'
describe SimpleTree do
describe "Initialization" do
it "is set up correctly" do
... | 1f13add9230f01d7dcf7773cb16365efb281d2bd | [
"Ruby"
] | 3 | Ruby | dhoss/acts_as_sane_tree | 894f590e466d99bda01b30c5e850c05df9b18553 | e2890c7716cd6e7b6aff318d9ab97e3767ce2405 |
refs/heads/master | <repo_name>yezitang/ys<file_sep>/index.php
<?php
echo 'ys';
?> | 0b7a2cfbfbbc1cbd2b8b3ca11be475ad3c64f595 | [
"PHP"
] | 1 | PHP | yezitang/ys | 2c22ad585159bb1b2f1a74b706203604d598c1c8 | 7b08219fb687bb13a1f9b1ded06947c5261dc209 |
refs/heads/master | <file_sep># TweetSentiment
Leverages NLTK's Naive Bayes classifier to perform sentiment analysis on tweets. This is part of a larger project involving sentiment analysis run on tweets pertaining to the 2016 presidential election.
<file_sep>import tweet_classifier
#training_file = './trainingandtestdata/testdata.manual... | e9f22f4c10b2cbc776dbe845139dd3c0fae5d424 | [
"Markdown",
"Python"
] | 4 | Markdown | keatalay/TweetSentiment | 4a73394b0399d120c4480263ecce9d422e6fb225 | ea063fa228aac3ed65cfd4243e30354aaa9e78a9 |
refs/heads/master | <file_sep>#!/bin/bash
# Check Privilege
# Make sure only root can run our script
echo "正在检查权限 Checking Privilege ..."
if [ "$(id -u)" != "0" ]; then
echo "失败: 请用Root身份运行此脚本. 是不是忘了sudo?" 1>&2
echo "Fail: This script must be run as root. perhaps forget sudo?" 1>&2
exit 1
fi
echo "成功 Success"
echo ""
echo ... | 7cc2cf1851d5a4cdb61ae25ec307f7b1615886dc | [
"Markdown",
"Shell"
] | 2 | Shell | Ghost-Assassin/ss-bash | 37a7b48561a1ce0d2ca01136f69553aca29db664 | 15bc401d76e4fb4a5348b296311c62583669ebab |
refs/heads/main | <file_sep>f = open("files/vegetables.txt","a+")
f.write("\nokra")
f.seek(0)
print(f.read())
f.close()
# with open("./files/vegetables.txt","r") as f:
# content = f.read()
# print(content)<file_sep>import pandas as pd
import numpy as np
df1 = pd.DataFrame([[1,2,3],[10,20,30]], columns=['Price','Age','Va... | 92510524c697e3f47ae5b23c202b37183d8e7025 | [
"Python"
] | 9 | Python | tcloud1105/python_projects_1 | d66848d4ea6cc32cef5b624fb973a314d4ecb516 | 88ee4ea31ed5cdb43c35f58806d89fdf78128959 |
refs/heads/master | <repo_name>GigabyteDX/NpcNameChange<file_sep>/src/com/gigabytedx/namechange/Main.java
package com.gigabytedx.namechange;
import java.util.HashMap;
import java.util.logging.Logger;
import org.bukkit.entity.Player;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.PluginManager;
import org.bukkit... | 36183bfc75edfb4caf3e76eb9ee9a16a632d097c | [
"Java"
] | 1 | Java | GigabyteDX/NpcNameChange | 10f1a73b78b4fb0df67eec2e69c9472109a47fdd | de9d9215538a265f089ac8b863c6b0874d84fa4b |
refs/heads/master | <repo_name>wsnacj/kazmath<file_sep>/src/kazmathxx.h
/*
Copyright (c) 2008, <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 above copyright no... | 4450480a009bf39a5991a4902cae5a9c559d669e | [
"C",
"CMake",
"C++"
] | 4 | C++ | wsnacj/kazmath | 4a496e623cef94751896da1c3c8ae4fd22655f7c | 24a6dee0eb20180e3a401ae8789920ffcd33425f |
refs/heads/master | <repo_name>ar500/CityInfo<file_sep>/CityInfo.API/Controllers/CitiesController.cs
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using CityInfo.API.Models;
using CityInfo.API.Services;
using Microsoft.AspNetCore.Mvc;
namespace CityInfo.API.Controllers
{
[Route("api/cities")] // Set route at... | e67cf309fecaa2e322090c1810896e8e155b2a28 | [
"C#"
] | 2 | C# | ar500/CityInfo | 37baf62c07b7aff0052b94af84180ef136147f66 | 152a80fd2ba50e32400fc6ae4aa15a545d5958fc |
refs/heads/main | <file_sep>import com.thoughtworks.gauge.Step;
import com.thoughtworks.gauge.Table;
import com.thoughtworks.gauge.TableRow;
import io.appium.java_client.MobileElement;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.W... | 727c84d0e42f1af0d9f2ecdd7196fdf9babae062 | [
"Java"
] | 1 | Java | naymanburak/ThyMobilOtomasyon | 1e05873f82cd81500ab6bcd37c994bfd37bf0aa5 | 509591457b645b1b24f9bc37e280d844595f018f |
refs/heads/master | <file_sep>require 'test_helper'
class OrderMailerTest < ActionMailer::TestCase
fixtures :orders
fixtures :line_items
test "received" do
order = orders(:one)
line_item = line_items(:one)
order.line_items << line_item
mail = OrderMailer.received(order)
assert_equal 'Pragmatic store order confi... | 0d5d6b086a3b69276a8b20f2933b83b6fa71dbf0 | [
"Ruby"
] | 10 | Ruby | robot-den/depot_5 | 1be239a78a3beb40a76e248d9ad4f94b09e5b7de | a53fa72e65a7176a68b5941ca1ae25681a605066 |
refs/heads/master | <file_sep>package ihsusta.java;
import java.util.Arrays;
/**
* 顺序线性表java描述
* @param <T>
*/
public class SequenceList<T> {
private final int DEFAULT_SIZE = 16;
private int capacity; // 数据长度
private Object[] elementData; // 元素数据
private int size = 0; // 当前长度
// 以默认数组长度创建空顺序线性表
public Sequ... | 83b756af02796352a970a957a687b229cdda82d7 | [
"Java"
] | 1 | Java | atsushinee/structure | 9f0a2efbb52165c89d11d81c52a7eb534959e98d | dba36a21114694610c4725c43202e5ed902540e5 |
refs/heads/master | <repo_name>Suraj0712/AlgoExpert<file_sep>/1_arrays_easy_two_number_sum.cpp
/*Question
Write a function that takes in a non-empty array of dIstInct Integers and an Integer representing a target sum.
If any two numbers In the Input array sum up to the target sum, the function should return them In an array,
In any orde... | e212966825c534727f9d11eb5cc3e56966d7448d | [
"Markdown",
"C++"
] | 14 | C++ | Suraj0712/AlgoExpert | 2064f017f08e175279e136b808aa7b990559047b | 30b680a43f38bc63a2828eb199f90efd52260a63 |
refs/heads/master | <file_sep>let isObject = function (value) {
let type = typeof value
return value !== null && (type === 'object' || type === 'function')
}
/**
*
* @param {Function} func 需要被延迟执行的函数
* @param {Number} wait 等待的时间
* @param {Object} options 自定义配置
*/
let debounce = function (func, wait, options) {
let lastArgs, /... | b95a9569faa236d3d1b8c2761b9d847735232992 | [
"JavaScript"
] | 1 | JavaScript | lxy2222/utilsForMyself | dbe34d09683d4a7555ea4d1764667044f5f50875 | 7657e2ed9c4cebfffc59479839988b99687d0337 |
refs/heads/master | <file_sep>json.extract! @dog, :id, :name, :bio, :birthday, :created_at, :updated_at
| 63ecd27dc506f69adcfd9192545e9e0bb5673a22 | [
"Ruby"
] | 1 | Ruby | ironn61/hw-crud | ce6b1c704460b6cfe7303f31c390b12d013f8be2 | fbb6b3e06aa74bfdd557d5594f1b2caae6f26569 |
refs/heads/master | <file_sep>app.controller('modlistController', ['$scope', 'modlistService', '$rootScope', '$mdDialog', modlistController]);
function modlistController($scope, modlistService, $rootScope, $mdDialog) {
modlistService.getLists().then(function(list) {
$scope.modlist = list;
});
$parent = $scope;
$... | b1fd89f4e249e3e5d6b41b9a472ba22495071a3c | [
"JavaScript"
] | 5 | JavaScript | gitter-badger/gzdoom-launcher | 080d31d800c6db89cbe9175a3422bc8e3c8d7d33 | c7f6722de670510e670de32fb5a46e6f6198e3ae |
refs/heads/master | <repo_name>xpectro93/lab1<file_sep>/giphy.js
const axios = require("axios");
const express = require("express");
const app = express();
// const getGifs = (req, res, next) => {
// axios.get(`http://api.giphy.com/v1/gifs/search?q=${searched}&api_key=M0232PRL539A1xx8A99hwy0GOMWW0SIO`)
// .then(response => {
// ... | c723c48deb62329ea01091622e440bba90c1ef97 | [
"JavaScript"
] | 1 | JavaScript | xpectro93/lab1 | 336e86ae1b03a680b5f02261d57475054fbdcbfc | 5d5a52c2f3923c88ba23baf711f2660e994e2974 |
refs/heads/master | <file_sep>// +build !go1.10
package raven
import (
"strings"
)
// Determines whether frame should be marked as InApp
func isInAppFrame(frame StacktraceFrame, appPackagePrefixes []string) bool {
if frame.Module == "main" {
return true
}
for _, prefix := range appPackagePrefixes {
if strings.HasPrefix(frame.Mo... | 8da55fbe918ade4651a789031039e1981b186f10 | [
"Go"
] | 2 | Go | tooolbox/raven-go | a851f364251b9191fb8ddcacddf4a8fe9492afa9 | 741494f4b34c7d40c8aed6b311a81d6574dd7276 |
refs/heads/master | <repo_name>Prateek93a/quickcert-client<file_sep>/scripts/coach.js
window.onload=()=>{
}
const handleSubmit =()=>{
const selectElementValue = document.querySelector('select').value;
const name1 = document.getElementById('name1').value;
const name2 = document.getElementById('name2').value;
co... | 038c419fdb3866520cc91bab71b7f0b521f51337 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Prateek93a/quickcert-client | c41b3c8c497bbcbf19d7c1f1dfc56e17eb080cd2 | ff72c2ef36ce53fa954defaa09d45964c434f745 |
refs/heads/master | <repo_name>ZBNLP/FlinkApplications<file_sep>/src/main/java/com/zbcmdata/flink/FlinkApplications/bean/DepMemAuditDataInfo.java
package com.zbcmdata.flink.FlinkApplications.bean;
import java.io.Serializable;
import java.text.ParseException;
import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObj... | bbdc9230c2cb726e311d430ddbd4dd2bde20478e | [
"Markdown",
"Java",
"Maven POM",
"INI"
] | 31 | Java | ZBNLP/FlinkApplications | fcc582f643f49dcf856189ba94301bc96fc37fd7 | 91bfddfa566b82b9e6106fb85f97eb67b6b2562a |
refs/heads/master | <file_sep># HelloWorld
First App made for android
<file_sep>package cbpos1989.com.helloworld;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
impor... | 4ce89628a073ac19547bd35c1db4dbedbfbf4e22 | [
"Markdown",
"Java"
] | 5 | Markdown | cbpos1989/HelloWorld | d91eb43abbf596f33d9500fe8e3207a315a3f6da | 12ab6f988efed2e4c345ad80026238aeddc4a3b5 |
refs/heads/master | <file_sep>//const mongoose = require("mongoose");
//const Waterwalk = require("../models/waterwalk");
function validateEmail(email) {
var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return re.test(St... | 1d513be28e0804242722ef7fac0d278e646b8eba | [
"JavaScript"
] | 1 | JavaScript | Ultraman82/REST_API_NODEJS | b5db9d8c7e7fa9f7dd397a784f50e902535fd986 | 192e0be61a70806922e93c87f982af131675f1fc |
refs/heads/master | <repo_name>punkish/winston-better-sqlite3<file_sep>/README.md
# winston-better-sqlite3
*aka wbs*
`sqite3` Transport for [Winston](https://github.com/winstonjs/winston)
## Install
```bash
$ npm install winston-better-sqlite3
```
## Use
```js
const winston = require('winston');
const wbs = require('winston-better-... | 7d22957c7748bbffa50c2ca26eb35bff4a253886 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 3 | Markdown | punkish/winston-better-sqlite3 | 30625d8043559858257358277cca6faa3485312e | 96a8700d8cc344a9c3de5958954e6514a1c492cd |
refs/heads/master | <repo_name>fandrade8/Pong<file_sep>/settings.py
class Settings:
def __init__(self):
self.FPS = 200
self.window_width = 400
self.window_height = 300
self.line_thickness = 10
self.paddle_size = 50
self.paddle_offset = 20
self.blk = (0, 0, 0)
sel... | 064cca88c2537c4858f3be6cdfc755f9ecfdd298 | [
"Python"
] | 2 | Python | fandrade8/Pong | 65b09528e9c3748cb8e6272fee90fa6705c0f7c6 | dd8b93a48d9267a0008f18cc3864222754f0b1d3 |
refs/heads/master | <repo_name>Befors/demo-project<file_sep>/src/main/java/com/haulmont/demoproject/mapper/CreditMapper.java
package com.haulmont.demoproject.mapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
import com.haulmont.demoproject.dto.request.CreateCreditDtoRequest;
import com... | 613e7e2fa82af85a50e45a5cd78485d6ad3e464f | [
"Markdown",
"Java",
"INI"
] | 22 | Java | Befors/demo-project | 0bf261c5b03c6672727e9d9d78a20008bb2c2194 | b7649eb6187332e24d4dc4353f2bc35b4ec33d16 |
refs/heads/master | <repo_name>LailaZou/TestUnitaire1<file_sep>/exo3/Repositories/EtudiantRepository.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using exo3.Models;
namespace exo3.Repositories
{
public class EtudiantRepository : IEtudiantRepository
{
private EcoleEntities db = n... | e7ece617020b49d655d52ed65413e2496a59623d | [
"C#"
] | 14 | C# | LailaZou/TestUnitaire1 | 51d23a12e64a17052f183df23ec26a40e54e7c03 | 4c79fca4f7e770553cdecf59d6a4b7dcf4eeaf3e |
refs/heads/master | <file_sep>#include "esp-ui.h"
#include "epdpaint.h"
#include "epd2in9.h"
#include "epdfont.h"
#include "esp_log.h"
#include "esp_spiffs.h"
#include <string.h>
#include <time.h>
#include <sys/time.h>
#define ROTATE ROTATE_270
static const char *TAG = "ESP-UI";
ui_data_t ui_data;
static epd_font_t hzk;
int esp_ui_in... | d83c8560008cb898f234670c4ad287914f14d071 | [
"Markdown",
"C",
"Shell"
] | 15 | C | jejer/esp-epd | 8447a582095025ea8e39ac5347659c2bd31fde5f | 28d7bb4a526c45c1ef805eb6c06e09d99a23128b |
refs/heads/main | <file_sep>#include "game.h"
#include <iostream>
#include "SDL.h"
#include <future>
// #include "MessageQueue.h"
// random generator could generate food outside of grid due to random_w/h range from 0-32, which 32 is should not be included, hence grid_width/height - 1
Game::Game(std::size_t grid_width, std::size_t grid_... | ddd8beb4dd4e96386acfc18920e392d0ebb312e8 | [
"Markdown",
"C++"
] | 8 | C++ | JasonTryharder/snake_game | 364e314ded1c963bd9fe37fc5809d07cf1012241 | 2c75d076a89e1fe40c97fcfd339cdb6947b9ae95 |
refs/heads/master | <repo_name>mkrcah/random-text-detector<file_sep>/README.md
Random text detector
====================
[](https://travis-ci.org/mkrcah/random-text-detector)
Unsupervised automatic detector of random text based on the algorithm described ... | 501bec50ea11a275c3882cbc1608f18c812b8b99 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | mkrcah/random-text-detector | b9fd20c7b49b7aa97dc162cd0237d2dcd3e0a767 | d3c847fae1bce831bb4204928e9e60d316283c91 |
refs/heads/main | <repo_name>AlexTMartins/techlist<file_sep>/src/App.js
import React, { useState } from 'react';
import './App.css';
import ListGroup from 'react-bootstrap/ListGroup'
import Container from 'react-bootstrap/Container'
import Col from 'react-bootstrap/Col'
import Row from 'react-bootstrap/Row'
import ResponsiveEmbed from '... | e1a981e8a7264ac0bc88d43c4f24b5a293874d45 | [
"JavaScript"
] | 1 | JavaScript | AlexTMartins/techlist | 5d32dede7d60822715275e7874a3eaf19671500c | f3d0e08f87e61870604607996cdbf3b7d4f5386a |
refs/heads/main | <repo_name>bbshark99/TMEDeployment<file_sep>/script.js
// Contracts
const TMEDeployer = artifacts.require("TMEDeployer")
const TMECrowdsale = artifacts.require("TMECrowdsale")
const TME = artifacts.require("TME")
const TMELocker = artifacts.require("TMELocker")
// Utils
const ether = (n) => {
return new web3.utils.... | f4013c0660a19313a38bc9ae856201fec4a77d53 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | bbshark99/TMEDeployment | bd7fca09027864472c2fe18a0dac3bca51b68d04 | 55b39d4d2ec063f6eadaab1e9a87f7f09a0e14ca |
refs/heads/main | <repo_name>HarshMathur86/Telegram-news-bot-using-dialogflow<file_sep>/code/app.py
"""
Simple Bot to reply to Telegram messages.
First, a few handler functions are defined. Then, those functions are passed to
the Dispatcher and registered at their respective places.
Then, the bot is started and runs until we press Ctrl... | 3fc36b129c24f8eb8479d9d8245968d3d909c432 | [
"Markdown",
"Python",
"Text"
] | 3 | Python | HarshMathur86/Telegram-news-bot-using-dialogflow | 9e64dbe525a4254aaf6da93024a48ce2e1b7274d | 96dd2ac2a789c426d512e613c9c80218e7a0a161 |
refs/heads/master | <repo_name>kris-L/BleDemo<file_sep>/src/com/xw/ble/instruct/BtInstructionType.java
package com.xw.ble.instruct;
/**
* @ClassName InstructionType
* @Description 指令类型
* @author kris
* @date 2017-08-28 上午 10:00:04
*/
public enum BtInstructionType {
/**
* 读取外围设备版本号,00-00
*/
Peripheral_Version,
/**
* 心跳包,10-01
... | cc3876c1384200e634569f281d18fe184ad3b188 | [
"Java"
] | 11 | Java | kris-L/BleDemo | 4e9aef69e95e30666166dd41afd3f45f7baf1b28 | 857f16680e7368a13c1706b18515e1d52b6a04d7 |
refs/heads/main | <file_sep>package com.deprosun.mapperlangplugin.psi;
import com.intellij.openapi.util.IconLoader;
import javax.swing.*;
public class MapperIcon {
public static final Icon ICON = IconLoader.findIcon("/icons/mapperIcon.png");
}
<file_sep># MapperLangPlugin
An IntelliJ plugin to read and parse the `.mapper` file f... | 786f759f9d7f35039e3448372bc2b877c1cfeb73 | [
"Markdown",
"Java",
"Gradle"
] | 8 | Java | deprosun/MapperLangPlugin | 80eb1f5c92bb5e4bab7fc444eb04c14aa95a2ca6 | 6b8d7905fa34aac3c4a3e17021d2244cfd9aa1ba |
refs/heads/master | <repo_name>hzxuzhonghu/kubernetes<file_sep>/test/integration/dryrun/dryrun_test.go
/*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.or... | 3802801d828aaa46c69538554ad2da8e5dce91ce | [
"Go"
] | 5 | Go | hzxuzhonghu/kubernetes | a4589f1cbe7de9644934886ef40a4dac3cbaca91 | 6be37da354e2e6747da9c2a860e2832a71dc899e |
refs/heads/master | <repo_name>ChoMk/pick_photo_and_send_or_load_img<file_sep>/ImageLoad/app/src/main/java/com/mksoft/imageload/APIRepo.java
package com.mksoft.imageload;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
impor... | ea5e09a7e9c85097a8402eea933068b079ba01f1 | [
"Java"
] | 3 | Java | ChoMk/pick_photo_and_send_or_load_img | bb75907ef2262bcf2bf761ba386edcba21556e35 | a50cd43ad3a95adaa990ec178ff58212f9adf0e8 |
refs/heads/master | <repo_name>bibsdb/bibsdb_frontend<file_sep>/bibsdb_frontend.features.inc
<?php
/**
* @file
* bibsdb_frontend.features.inc
*/
/**
* Implements hook_menu_default_menu_custom_alter().
*/
function bibsdb_frontend_menu_default_menu_custom_alter(&$data) {
if (isset($data['menu-footer-menu-1'])) {
$data['menu-foot... | 99fcb1477c48a1098e55fe02fc786b07008e3c84 | [
"PHP"
] | 2 | PHP | bibsdb/bibsdb_frontend | 046689102a440dfbefd59a780532cbd1d8a6af9e | b2f1256a2a94c209d732c639c8b4e69511c602aa |
refs/heads/master | <file_sep>/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React, {useState} from 'react';
import type {Node} from 'react';
import {
Linking,
SafeAreaView,
ScrollView,
StatusBar,
StyleSheet,
Text,
useColorScheme,
View,
Touchable... | 432d681fa08825cff18ec803b80b6357ddf3f1de | [
"JavaScript"
] | 1 | JavaScript | jaferi512/RNDeepLink | a1697b05d705ca2acc4c6dabe8cfc869421a000c | c08f5d16d3f95a51dc0e4bc500d9574971e1ce64 |
refs/heads/master | <repo_name>danielsaad/Sistemas-Operacionais-IFG-TADS<file_sep>/pipe-2.c
/**
Autor: Beej http://beej.us/guide/bgipc/output/html/singlepage/bgipc.html
Adaptado por: <NAME>
Descrição: uso de pipes utilizando stdin e stdout.
**/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char*... | ca05843fa27920740d8e6a2dda6015c8cc5883e7 | [
"Markdown",
"C"
] | 14 | C | danielsaad/Sistemas-Operacionais-IFG-TADS | 5688406fcbab3fabf12322b58812f1b35bb73fc6 | d74d2d854b723432b03dfd7790248b4ce39d451f |
refs/heads/master | <repo_name>muraadkov/WorkerService<file_sep>/WorkerFolderService/Worker.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using EmailService;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace Work... | b040484dd5d6cdc59d87c116e6877eade58f4194 | [
"C#"
] | 1 | C# | muraadkov/WorkerService | 003853b7dedf4063bc2799140f59eaa79ae0b9d9 | 180d6239b21d25956d88c3b35f3eae4b6c2e941d |
refs/heads/master | <file_sep>PROJECT = server
PROJECT_DESCRIPTION = pacman server
PROJECT_VERSION = 0.0.1
DEPS = cowboy jiffy protobuffs ejwt
include erlang.mk
<file_sep>import Phaser from 'phaser'
import Entity from './Entity'
import {Direction, TILE_SIZE, Latency} from '../const'
import {Message, MessageType, Protocols, decode} from '... | 6ae7dd53c2399904db4ba30b96a79291a401111b | [
"JavaScript",
"Makefile",
"Markdown"
] | 9 | Makefile | wangchuan3533/phaser_demo | b3e128a3ea76525381128619a77a19a7db3e0023 | cb8e631026178093cb03fa8fe13427909b879d6f |
refs/heads/master | <repo_name>zhaoqingfa/Player<file_sep>/app/src/main/java/com/edu/player/business/main/MainActivity.java
package com.edu.player.business.main;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.os.RemoteException;
impo... | c3a279590f508b568c39bf887fb6b783a0615ac7 | [
"Java"
] | 3 | Java | zhaoqingfa/Player | d83a824bbda27df9c930afe0e3f0152a026c703f | d71ec8ca31734e376b116b9f22b449a38a9a5500 |
refs/heads/master | <repo_name>adbatbasic/LeapProjects<file_sep>/C++/ImageProcessing/ImageProcessing/ImageCorrection.cpp
#include "stdafx.h"
#include <iostream>
#include <cstring>
#include "Leap.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/calib3d/calib... | 71f30cfaed5a0fb9daa92b985583e65704f9f3ec | [
"Markdown",
"Python",
"Text",
"C++"
] | 7 | C++ | adbatbasic/LeapProjects | 0f5029e0a9ba19ec636ac7f43552862584f715e9 | 19bf74e70c6922ad689947322f56ee0d7db1cb0a |
refs/heads/master | <repo_name>isabella232/homebrew-formulae-4<file_sep>/Formula/releasekit.rb
class Releasekit < Formula
desc "Create GitHub releases from closed issues and pull requests"
homepage "https://github.com/zestia/releasekit"
url "https://github.com/zestia/releasekit/releases/download/v0.3.3/releasekit-darwin-amd64"... | 52651e3a56a3ae80eb77b4d0b5be8a4e2e189ce3 | [
"Ruby"
] | 1 | Ruby | isabella232/homebrew-formulae-4 | b83dcac9e7c34f6db4c0a87fddfba61b686d94fc | 2e48de7870b5bdfecfef8e1ebced331d12b77efc |
refs/heads/main | <file_sep>import Computer from "./Computer";
import computers from "../computers";
import { ComputerListWrapper } from "../styles";
function ComputerList() {
const computerList = computers.map((computer) => (
<Computer key={computer.id} computer={computer} />
));
return (
<ComputerListWrapper>
{comp... | 42f9cdec064617a3e1f6001f032a7d81bc619671 | [
"JavaScript"
] | 6 | JavaScript | mhussein15/react-store | b15a7188d27f06e27b485624b77f2e452f0f9998 | 2f445df627182f5961a5d84d8a3df004f5ba4bb9 |
refs/heads/master | <file_sep>const express = require('express');
const fs = require('fs');
const path = require('path');
const datas = JSON.parse(fs.readFileSync('./.exported'));
let server = express();
server.listen(8090);
console.log('running at 8090');
server.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', ... | 7447285d71be7e06e0a5f59acfbcccb10a47b079 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | l328958741/learn-vue | 0219216245daa9814b5c09d6452e73057829f968 | fe1799e2399356de823a62640e80d8a21d2e0435 |
refs/heads/master | <file_sep>/*
* To change this license firster, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package linkedlist;
import java.util.ArrayList;
public class LinkedList extends LNode implements HW2Interface {
publ... | a3ec07337d79f278197a366f7de40cdf142cc417 | [
"Java"
] | 3 | Java | alinurc/javaClassImplementations | d41586a3da7d85d4998d00b709d6f79dafecbcdd | c556a3231aee37acf6336bc70f14565860c0f2c3 |
refs/heads/master | <file_sep><?php
include_once('../funcoesPHP.php');
include 'conexao.php';
if(isset($_POST['nome'])){
$nome = $_POST['nome'];
$email = $_POST['email'];
$comentario = $_POST['comentario'];
$nota = $_POST['nota'];
$captcha = $_POST['g-recaptcha-response'];
... | 6320f2c4997e229012c405a427d8a641bc872764 | [
"SQL",
"PHP"
] | 29 | PHP | Luana-jcg/MauricioLuminarias | 9bfb697cd67127fab61cec9f4793cc4d889d86c4 | 4afbd2c879959264dc33be74cfd786bd4222efcb |
refs/heads/master | <repo_name>quixxxy/go-rest<file_sep>/Dockerfile
FROM golang
ADD . /go/src/github.com/quixxxy/go-rest
RUN go get github.com/gorilla/mux
RUN go install github.com/quixxxy/go-rest/main
ENTRYPOINT /go/bin/main
EXPOSE 8080
<file_sep>/main/main.go
package main
import (
"log"
"net/http"
"github.com/gorilla/mux"
"enco... | da7dfc23a0abd61631f5c9fb732d2f629925d210 | [
"Go",
"Dockerfile"
] | 2 | Dockerfile | quixxxy/go-rest | 84682dbae7f3c192f30e89a175762cfb36d869ab | 392c9c671525b818b93cbb0c553806f074e61ad3 |
refs/heads/master | <file_sep>import React from "react";
import DocTitleOne from "../components/DocTitleOne";
import DocTitleTwo from "../components/DocTitleTwo";
function VisitCustom() {
return (
<React.Fragment>
<DocTitleOne />
<DocTitleTwo />
</React.Fragment>
);
}
export default VisitCustom;
<file_sep>import ... | a8d65040ce9c0b7d230f73a06c8beeffc806bef9 | [
"JavaScript"
] | 2 | JavaScript | Rahulsinha197/practise | d0c2a801b9faf4622db746ff3101b79be59c16ca | 964fa9d241a230fe055f5da24a57afd15e9d8de0 |
refs/heads/master | <repo_name>aember/cinch-tyrant<file_sep>/spec/tyrant-targets_spec.rb
require_relative 'test-common'
require 'cinch/plugins/tyrant-targets'
describe Cinch::Plugins::TyrantTargets do
include Cinch::Test
let(:bot) {
make_bot(Cinch::Plugins::TyrantTargets) { |c|
self.loggers.stub('debug') { nil }
}
}... | 0076feff778c18815f3b92b329e10a63e57f5a2c | [
"Ruby"
] | 11 | Ruby | aember/cinch-tyrant | a70f5b4ff2b39c2bc93e2af256c6d4abc5d78164 | d522a72b2c01bb74717a58a6d9edc216642a17d0 |
refs/heads/master | <repo_name>ksurakka/ustate<file_sep>/src/ustate.ts
export type HandlerFuncWithoutParam<TState> = (state:TState, dispatcher: Dispatcher<any>) => TState;
export function isHandlerFuncWithoutParam<TState>(handler: any): handler is HandlerFuncWithoutParam<TState> {
return typeof handler == 'function' && handler.length==... | e37320f7f0b6553e8dfee2eedd5476246ee5f1c6 | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | ksurakka/ustate | fb3c12bb7396d855e22db81193fc887792ab3487 | 0602c29f22c7fbf60d07edeba3f940164dcc37d5 |
refs/heads/main | <file_sep>from pytube import YouTube
import time
import sys
import os
import youtube_dl
print("\033[1;32;40m")
def banner():
os.system('clear')
time.sleep(1)
print (" YOUTUBE VIDEO DOWNLOADER AND YOUTUBE VIDEO TO MP3 CONVERTER ")
time.sleep(1)
print ("##################################... | 3fb7f4a168649a42dbb2dd4660715a04c6a6e62d | [
"Markdown",
"Python",
"Shell"
] | 3 | Python | H3LLO-H4CK3R-2/Yt-Video-Mp3-Converter | 40c3545481375b5b4466f9796f5df4e9a9547672 | 33aca0cef461af3a69e040cf5cf6d75081bbe520 |
refs/heads/master | <file_sep>
import React, { Component, Fragment } from 'react';
import MyName from './MyName';
import Counter from './Counter';
import './App.css'
class App extends Component {
render(){
const name = 'react';
const value = 1;
{/*스타일을 이렇게 지정할 수도 있어요. */}
const style = {
backgroundColor : 'black',... | ff38e749bb870f19b86aadf213d2cf87ea2a8e97 | [
"JavaScript"
] | 2 | JavaScript | Oaroomy/React_Tutorial | 0ff7896a2cf57e50de57dac4289b9d054589aebd | bacba19b2927d7c796ef819a77b42588112ab759 |
refs/heads/master | <repo_name>nataliasayang/ml-mini-course<file_sep>/python_machine_learning_mini-course.py
# -*- coding: utf-8 -*-
"""
Machine learning Mastery
Python Machine Learning Mini-Course
https://machinelearningmastery.com/python-machine-learning-mini-course/
"""
#Lesson 1: Download and Install Python and SciPy ecosy... | 77a89be450af78c5007173b77903919cd6c34242 | [
"Python"
] | 1 | Python | nataliasayang/ml-mini-course | 3789d422d66f57adfbfcfe55527736737f3bb752 | b935f726019da3fc4a19ac6442f4204e1a2435cb |
refs/heads/master | <file_sep># ids2019-m16-traffic-violations
Project M16: Analysis of traffic violations in Estonia
data being analyzed: https://opendata.riik.ee/andmehulgad/liiklusjarelevalve-alased-syyteod/
# starting out
run `./fetch.sh` to download the dataset. open up the notebooks and take a look
<file_sep>#!/bin/sh
sudo apt i... | b008468a5be03cac32156fc2d9c60ecd8bd0493c | [
"Markdown",
"Shell"
] | 4 | Markdown | snemvalts/ids2019-m16-traffic-violations | 0b3602b79bbb27c8e61c5bf0bf3c80786b139f21 | 00089c1675af5b96d3af1f682b2be4f66f05594b |
refs/heads/master | <repo_name>DOXNPN/pygame<file_sep>/memoryPuzzle-2.py
import pygame,sys,random
from pygame.locals import *
PADWIDTH=6
PADHEIGHT=5
BOXSIZE=60
GAPSIZE=10
ALLPOTO=15
WINX=600
WINY=500
TEXT='You Are Win!'
text='press esc to quit'
#-------红 绿 蓝
WHITE=(255,255,255)
BLUE =( 0, 0,255)
RED =(255, 0, 0)
BL... | 6a621ab32f1dfe880bf3a0185dd118ae53a8af27 | [
"Python"
] | 1 | Python | DOXNPN/pygame | 965739ad81ca2049c8b0da36babbaf4cc8963b04 | d21d5899a7fdbb5b10ae1780cca44c617e7f9996 |
refs/heads/master | <repo_name>shcig/Models<file_sep>/Adaptor_for Diamond_nozzle.lua
function circle(radius, split_number, base_height)
pts={}
for i=1.0, split_number, 1.0
do
parameter=2 * math.pi * i/split_number
x = radius * math.cos(parameter)
y = radius * math.sin(parameter)
pts[i]=v(x,y,base_height)
end
retur... | ed1dac25ac1239d0aa99d24886059256de97b8d2 | [
"Markdown",
"Lua"
] | 2 | Lua | shcig/Models | 5e6a4e771651f1adafb148c167fce908c8eed662 | 9d181a55cb24285594a6d3820ca610080ed477ee |
refs/heads/master | <file_sep><?php
namespace Akilli\Event;
/**
* Dispatcher Interface
*
* @author <NAME>
*/
interface Dispatcher
{
/**
* Notifies listeners about specified event with optional event data
*
* @param string $id
* @param Event $event
*
* @return $this
*/
public function trigger... | 101572dee6d7d235c4f2b0f4be5ed28665817896 | [
"PHP"
] | 2 | PHP | akilli/event | 0c41c673b0865ea8d8c61f68619826043eb515ea | fb455e290f6e740463f40a9bafd0dee331a89965 |
refs/heads/master | <repo_name>amarjitbh/mitsShare<file_sep>/app/Providers/AppServiceProvider.php
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Schema;
use App\PropertyTypeSection;
use Illuminate\Support\Facades\View;
use App\PropertyTyp... | 5fcc2c947b712ab73ed110afa8d94f5de2be5744 | [
"PHP"
] | 54 | PHP | amarjitbh/mitsShare | 27eb003f175a2e1c54fadf2aeeea811ba3ab07ed | 8be8bd7440c11f96254ccf7299d287155415e284 |
refs/heads/master | <repo_name>jlianphoto/theEight<file_sep>/js/util.js
(function(){
var $ = window.$ = function(el){
return new $.prototype.init(el);
}
$.prototype = {
init : function(el){
var els = document.querySelectorAll(el);
for (var i = 0; i < els.length; i++) {
this[i] = els[i];
}
this.length = els.length;
... | a17a12be8944063e863c620c19f8354bace8ebfc | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | jlianphoto/theEight | afc1e01d7179a0e6075208cd4c56875993cccdaf | 9c1373d52f6f824509a2186296a6c9063b494706 |
refs/heads/master | <repo_name>sebilasse/widget-core<file_sep>/README.md
# @dojo/widget-core
[](https://travis-ci.org/dojo/widget-core)
[](https://codecov.io/gh/dojo/widget-core)
[![npm ... | a147c5fee04ee0d5166a33b26335ef19a5a0226c | [
"Markdown",
"TypeScript"
] | 3 | Markdown | sebilasse/widget-core | 82751974837e6421ab694b9671ec72d1ac0e67eb | e0a972c61db3e16c8c5cb607576b765456f63943 |
refs/heads/master | <repo_name>chousemath/njtransit<file_sep>/script.js
// Generated by CoffeeScript 2.3.2
(function() {
var color1, color2, color3, colorElements, dateElement, expElement, fullOpacity, gradientBtm, gradientTop, inputColor1, inputColor2, inputColor3, inputGradient, monthNames, setOpacityTo0, setOpacityTo1, timeConfig, ti... | 1f5a0de0a0fcc92e0f669f8aac6e65bf1f96d74b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | chousemath/njtransit | 1282764be2854b46ff2bb1df2bbbeeae050933b5 | 86bc8364ac7882a651a1ccc347c40e1ca3abf041 |
refs/heads/master | <file_sep>package lesson4;
public class Home7 {
public static void main(String[] args){
int[]array = {1,2,3,4,3,2,1};
int[]array2 = {1,2,3,4,3,2,1,9};
System.out.print("ARR ");
printArray(array);
System.out.println(" ");
System.out.print("ARR 2 ");
printArray(array2);
System.out.println(" ")... | efc911149fbbf297b4edba81088952d0464e3d70 | [
"Java"
] | 31 | Java | bla3e316/OOP | 48e1180198049c8ec4233296f86da9e7e07386d4 | b6ce6c44383e3bbc09ce16d6f70b89e7888f17c9 |
refs/heads/master | <repo_name>vingenuity/mr-assassin<file_sep>/MRAssassin/src/com/badideastudios/mrassassin/ReceiverC2DM.java
package com.badideastudios.mrassassin;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Broadcas... | e67c543ddbed78650203a7eb2913181d1d49e06a | [
"Markdown",
"Java"
] | 6 | Java | vingenuity/mr-assassin | afe2b8411e9add18aa4c0fc396382950a481a43f | 6c4551be37e39f9140018abaf2fa779999757c43 |
refs/heads/master | <repo_name>cavoixanha/blog<file_sep>/README.md
# README
## Run step by step ##
```ruby
rake db:create
rake db:migrate
rake db:seed
```
## Username/Password ##
**Username:**
<EMAIL>
<EMAIL>
<EMAIL>
**Password (all user use same password)**
<PASSWORD>//
## Require Login when "New Post" and "Comment on Post" #... | 5024069b1492fba7bb5b3503748ff0e61d806077 | [
"Markdown",
"Ruby"
] | 6 | Markdown | cavoixanha/blog | 87ea15e1080294fbbd05ac424769598e39a53dd5 | b02656192f8d9c991bbe5e71b72a5bb17b5a8531 |
refs/heads/master | <repo_name>wym037935/flanker<file_sep>/hw/list.py
#coding=utf-8
from django.shortcuts import render_to_response
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render_to_response
import MySQLdb
import re
import os
import database
import ini... | fbf9d596f55099ad2e4d319df1ae634f085f39c5 | [
"SQL",
"Python",
"Shell"
] | 28 | Python | wym037935/flanker | c8ca436960481d47fe5b3c631dfe4fbed591d45c | d29150d7313b132b2ba071197f6e59f61bf3ca1e |
refs/heads/master | <file_sep>package com.example.guest.socialnetworking.ui;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import com.example.guest.socialnetworking.R;
import com.google.fi... | c6d04b5a86df98d9c212d5c05fe500a8c139f053 | [
"Markdown",
"Java"
] | 6 | Java | stormihoebe/VR-Hub | 66ec31739c00fc641b27cd57355adc3ef28c55b9 | 8e5658632d64e2c196bf137869f317f4d55e340f |
refs/heads/main | <file_sep>import React from "react";
const DummyText = () => {
return (
<section>
<article>
<h2 id="paragraph1">Paragraph 1</h2>
<p>
Annoy the old grumpy cat, start a fight and then retreat to wash when
i lose make meme, make cute face, and if human is on laptop sit on t... | 5596eb2c0cddc9b42b0270ebaeba3df302355806 | [
"JavaScript"
] | 4 | JavaScript | w-gluza/svg-test | 23117cfd373f2e1a9bd340498ce7d960ac68b198 | f968e92d68d0e64a640cd5cebbae497463139f52 |
refs/heads/main | <repo_name>bkdevart/SwiftUIProject12Challenge<file_sep>/CoreDataProject2/Singer+CoreDataClass.swift
//
// Singer+CoreDataClass.swift
// CoreDataProject2
//
// Created by <NAME> on 4/26/21.
//
//
import Foundation
import CoreData
@objc(Singer)
public class Singer: NSManagedObject {
}
| 117387799dff68b25438a3cc9b113ecdb57c0864 | [
"Swift"
] | 1 | Swift | bkdevart/SwiftUIProject12Challenge | e42aff228890bcc528a6c9b367882f857e4788be | f3949d50068c0115a98f5b63dac9230651888cda |
refs/heads/master | <file_sep>const mongoose = require("mongoose")
const http = require("http")
const socketio = require("socket.io")
const server = http.createServer()
const io = socketio(server)
mongoose.connect("mongodb+srv://dan:<EMAIL>/test?retryWrites=true&w=majority", { useNewUrlParser: true, useUnifiedTopology: true })
const db ... | 488afc69609cca6a9dfdb60992b3b58042d49d7d | [
"JavaScript"
] | 1 | JavaScript | danthegoodman1/mongoLecture | aa6cc12b190df8a87dcf19074318905603f691fe | 7a087a7bac82100ce596054e28ed33e89a0b2d5b |
refs/heads/master | <repo_name>PriyeshGangrade26/Multiple-Object-Detection<file_sep>/README.md
Multiple Object Detection:-
- OpenCV
OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library.
OpenCV was built to provide a common infrastructure for computer vision applications and ... | 782d68840c9e75a4ad957937c51c7533a1eaafc0 | [
"Markdown",
"Python"
] | 2 | Markdown | PriyeshGangrade26/Multiple-Object-Detection | 4827f2b5d781f7dc7a64616cea407b3c81ba67a3 | 428f28906e5db52b38ade3b7a6c48b77ed423755 |
refs/heads/master | <repo_name>djwong23/pa2<file_sep>/src/estimate.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define debug 0
double *transpose(double *x1, double *x1t, int numHouses, int numAtt) {
int i = 0;
int j = 0;
double num = 0;
for (i = 0; i < numAtt + 1; i++) {
for (j = 0; j < numHouses... | 82bfa889dbeb4b42b2eadf18fed1c9ded9da43f6 | [
"C",
"CMake"
] | 2 | C | djwong23/pa2 | 392abba31a7f01395735663cd182eb78bf0b4a6d | 7a2188af96f5c11d7beffabecbc9fa19e2408881 |
refs/heads/master | <repo_name>MasanoriIwakura/django-todo<file_sep>/todo/app/views.py
from django.http import HttpResponse
from django.template import loader
from django.shortcuts import get_object_or_404, render
from .models import Todo
def index(request):
todo_list = Todo.objects.order_by('-updated_at')[:5]
template = loader... | 617579767868a4fa6a0ef566b41e8554033d4aca | [
"Python"
] | 2 | Python | MasanoriIwakura/django-todo | 5999fbe9837772af3b4b9d52b74a3a1e622b0c7c | f273e203abb9acdcaa4a1f276970fbe331f91d47 |
refs/heads/master | <repo_name>techunits/rate-exchange-chrome<file_sep>/README.md
rate-exchange-chrome
====================
Techunits Currency Exchange Service for Chome is a FREE chrome extension with which customers can do currency convertions from Chrome browsers itself. It's build using Techunits Rate Exchange API https://rate-exchan... | da788173e610b3b9114ac9187a3717d69cb673c1 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | techunits/rate-exchange-chrome | 4cfebbdb47ef137cb7891339c6616c7d348e06dd | 3a8cdffc5083ae872f5a4d4361da22cddf30a9da |
refs/heads/master | <file_sep>import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
import AppNavigator from './navigator';
export default class App extends Component {
render() {
return (
<AppNavigator
ref={(nav) => {
this.navigator = nav;
global.NA... | d07f077f3607d668bd61c75e002031e9fbe96f70 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | happy-daily/chat-app | 2ecab2c3d41a1ac045f77526dc6d75a96cce1a77 | 40c04d41a0983c1c1f38c0c4d8288eb8b7419815 |
refs/heads/master | <repo_name>cleitondias/projects_ui5<file_sep>/appdozero/webapp/controller/App.controller.js
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/MessageToast",
"sap/ui/model/json/JSONModel"
], function(
Controller,
MessageToast,
JSONModel
) {
"use strict";
return Controller.extend("cgutech.template... | d1929afbe486134568c476c8db2fd883896d59ee | [
"JavaScript"
] | 4 | JavaScript | cleitondias/projects_ui5 | 69b8708536e570a929f4f453c915fddafa5d0ee2 | b1a899e0e775e5d80dcfdab12615f5a7c1b46722 |
refs/heads/master | <file_sep># 108153066 資應二 林育琳
109-1 資料結構作業:
1. role(struct結構)
2. array(陣列實作)
3. linked_01(class結構)
4. linked_02(鏈結串列實作)
5. stack(堆疊實作)
6. queue(佇列實作)
7. tree(樹實作)
8. binary tree(二元樹實作)
9. hash(雜湊表實作)
<file_sep>
#include <iostream>
#include "linked.h"
#include "test_linked.h"
/**
* 錯誤訊息函式。
*
* @param string: 要印... | 1fe83473a80036db8b789b450c30840b17bf8bfb | [
"Markdown",
"C++"
] | 10 | Markdown | Irene314/DSPractice | 6f7134f6bd940d75b3a4fef8b3f79e06ce45c708 | 809bfece42ad6750e7080e0053dd547334df73d9 |
refs/heads/master | <file_sep>#add-project-to-repo
Easiest way to add existing project or files into repository
##Install
`npm i -g add-project-to-repo`
###Features
Get lazy and use
`atr link_to_your_repo`
instead of using list of commands
- git init
- git add .
- git commit -m "init"
- git remote add origin link_to_your_repo
- ... | 4b2bd2d919c7ec8781a13d9dc64b9c046adfebe1 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | denar90/add-project-to-repo | 05e22cbcf96fccb3d25943ea93f5eb284ef7743e | 00e484ba6177d82af24f0f19805b0ff4a5259343 |
refs/heads/master | <repo_name>BenMiddleton/Demo<file_sep>/game.js
function StartGame(boardElement) {
// game variables //
var nextPeiceId = 1;
var selectedPeice = null;
// constructor functions //
// a game peice
function Peice(isPlayer) {
this.isPlayer = isPlayer;
this.id = "p" + nextPeiceId++;
this.isKing = false;
thi... | 2bc1f761ce11695107e7fd36282f17ff30c1bd94 | [
"JavaScript"
] | 1 | JavaScript | BenMiddleton/Demo | b9a1438d1f7ce09ea31135a0b8d896d6b7857bf1 | b28e039f6381e82691118b91692adb1db2bbd2e2 |
refs/heads/master | <repo_name>Toged/APPDomusG3<file_sep>/Energia/M1_question_1/Test_question_1.ino
#define LED1 2
#define LED2 34
#define LED3 35
#define LED4 36
#define LED5 37
#define POT 28
void setup() {
Serial.begin(9600);
Serial.println("Yo");
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
pinM... | e2134324447ecd98b11efe834b4d770976ea08d1 | [
"C++"
] | 1 | C++ | Toged/APPDomusG3 | 4ef8ea245a0c1f82260f7fb123a2e936923ee4fe | c5544335f51f515bd1823c01594f7cc19f5708cb |
refs/heads/master | <file_sep>import requests
from django.http import HttpResponse
from django.shortcuts import render
from django.shortcuts import redirect
def create_list():
import glob
all_html_files = glob.glob("templates/*.html")
pages = []
import os
for entry in all_html_files:
file_path = entry
... | 112555a8973174ea7311363743ec7b339acc670c | [
"Python"
] | 1 | Python | MichaelBMoss/Django-Homepage | a50ba6568aa73d6a82f86e9756c62cc7d705e43e | e9cdfe19ddf1bf3f04b830e23e10e4dd770fa326 |
refs/heads/main | <file_sep>from flask import Flask, render_template, request
from numpy.lib.type_check import imag
import pandas as pd
import numpy as np
import tensorflow as tf
from keras.preprocessing.image import load_img, img_to_array
from keras.models import load_model
import os
#create flask instance
app = Flask(__name... | 879ab2c1615344c5a30605027be39a47b5e0ea21 | [
"Python"
] | 1 | Python | mavismonica/analytics4 | 4bf18e810d1f97bd5c6ef812325fddcbb3e22892 | 8a242e53a4207f9bc500b240dc859fa671617b2a |
refs/heads/master | <repo_name>studiomohawk/QOF<file_sep>/test/app/app.js
module( 'Getting familiar with QUnit' );
test('Namespace should be qof', function() {
expect(1);
ok( window.qof, 'Namespace is qof and public' );
});
test('init method is woking', function() {
expect(1);
ok( window.qof.init, 'init method is revving up for ... | 0f161f0a74f059ab7e4053463abafee74096a6fa | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | studiomohawk/QOF | 577bd8136c478cea3b5b265f2cb2d64c50976404 | 9a7fb5c4e77d970795e34ae9da8ef74e8bd8db43 |
refs/heads/master | <repo_name>logan-ihi/jekyll-testing<file_sep>/Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
gemspec
# local testing for ruby 3.0.0+
gem "webrick", "~> 1.7"
<file_sep>/index.md
---
layout: default
title: "Happy Jekylling!"
---
## This is a test!
Start developing your Jekyll website.
<file_sep>/... | e00517731c1b3bf53b386d53861e766475de71e1 | [
"Markdown",
"Ruby"
] | 3 | Ruby | logan-ihi/jekyll-testing | ab1e70059d21fa2f22d5d39f724ce9a58483863a | 8246b23968b8904f10774a2d904fd2ee40ceca38 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class TicketPurchasingGUI : Form
{
public T... | 18f5173eff353d565e1fa906500d6de8057186f3 | [
"C#"
] | 1 | C# | Nazirul13044/code | c6b41236f4501f205e8fe23d3508d94645527a19 | a6875d20aebe5c709e94e765a9ce4a9207ad1d71 |
refs/heads/master | <repo_name>docvinum/vivino-export<file_sep>/winescrape.js
(function(){
var removeVarietal = function(title){
var wine_types = ['port', 'shiraz','merlot', 'sauvignon blanc', 'rosť', 'rose', 'cabernet sauvignon', 'red', 'zinfandel', 'syrah', 'malbec', 'riesling', 'pinot noir', 'cabernet franc', 'bordeaux', 'chardonnay'... | 3b7b3dc71468a27fb7804a40c0743615b834ac28 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | docvinum/vivino-export | 28af912ab8eaa9fb9a5cc1b4c27b5212eafa9822 | e702b022b42e3631dd72440b68d360fe317eec2c |
refs/heads/master | <file_sep><?php
/*
FAQ Endpoints for WP REST API
*/
function faq_add_posts_endpoints() {
register_rest_route( 'api/v2', 'faq', array(
'methods' => 'POST',
'callback' => 'post_faq_callback'
));
}
function post_faq_callback( $data ) {
$params = $data->get_json_params();
... | 2d5fd30f26dc39116474b607f7986532eac45987 | [
"Markdown",
"PHP"
] | 3 | PHP | alvesitalo/guardioes-faq | 3de34edb6f31a7cb0205b54602f59ba0bd34d22e | 74e88e08872c00d1ea74970e390fc6db483c5ce0 |
refs/heads/master | <repo_name>badhbh/isr<file_sep>/oop_test.py
import unittest
import oop
class TestSum(unittest.TestCase):
def test_oop(self):
#song_j = "jjj"
#subg_j = "jj"
#sog = oop.Song(song_j, subg_j)
# self.assertEqual()
self.alb_c = oop.Album_collection()
print("ok")
if ... | f70d90fec38be654e4988e1f6078fca262d216a6 | [
"Markdown",
"Python"
] | 3 | Python | badhbh/isr | e6a27506a9974f523664a134d89b5eaeaf240bd3 | 6d01703c8aec710f015261db003a0d714aedb748 |
refs/heads/master | <repo_name>SamuelRousseaux/PSU_lemipc_2017<file_sep>/inc/lemipc.h
/*
** EPITECH PROJECT, 2018
** lemipc
** File description:
** lemipc.h
*/
#ifndef LEMIPC_H_
# define LEMIPC_H_
# define SUCCESS 0
# define FAIL 84
# define MAP_X 10
# define MAP_Y 10
# define MAP_SIZE (MAP_X * MAP_Y * sizeof(int *))
# define RED "\e[4... | 67900a7c0e9c43e73d1ef75bc329bff587a7b9b4 | [
"C",
"Makefile"
] | 10 | C | SamuelRousseaux/PSU_lemipc_2017 | af83693326fe139c7ab6b457d57f2b09f77e8ab7 | 97021401c47de398ba0165ee773dca993a5b59f0 |
refs/heads/master | <repo_name>DanielCumino/DanielCumino.github.io<file_sep>/javascripts/main.js
$(document).ready(function(evt){
// $("h1.title").arctext({radius: 2});
// $(".profile h1.title").arctext({radius: 100, dir: -1});
// $(".profile h1.subtitle").arctext({radius: 100, dir: -1});
// $("body").stop(true).animate({
// scroll... | 838e10e8e9422049b47f503bb397d0f4552db28d | [
"JavaScript"
] | 1 | JavaScript | DanielCumino/DanielCumino.github.io | c7795ef8e004dfca10d415e6de6434c27d42d04d | fcfcf872ef7fb0d051c7c5eae0093a2a8b3a0341 |
refs/heads/master | <file_sep>package com.carstenscholz.robospicemoa;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
/**
* Created by Carsten on 9/10/2015.
*/
public class MoaAdapter extends ... | 08104f207330136114965d6801361f74f2261e5f | [
"Java"
] | 3 | Java | DrBiologicals/RoboSpice-Example-android | ead264929b30bda9be73d8f59faa39d62ea57df1 | f36ff5f9dbbfa987690730b0f3e9cd660164babf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.