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># Be sure to restart your server when you modify this file.
AutomatedBrowser::Application.config.session_store :cookie_store, key: '_automated_browser_session'
<file_sep>class BrowserController < ApplicationController
def buttons
end
def google
browser.get "http://www.google.com"
redirect_to :... | 9da08f5346ad629d1a3ae5fb8dba993272798db8 | [
"Ruby"
] | 2 | Ruby | rudedoc/auto_fox | e620e216b38f2f2aa15503779c34216754e63c64 | e508fc11f08e0376b36d2087009df03f1307a605 |
refs/heads/master | <file_sep>
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* Next, we will create a f... | 9b6cfcc175046ad1f858d6b2da7fff3aae7b2d88 | [
"JavaScript",
"PHP"
] | 26 | JavaScript | jladan78/forward | d2af2ee8794b205cbeb38d8123a4649cde4f8d69 | 7280221864b32cbc47eded78134345bd8afa81c7 |
refs/heads/master | <repo_name>NozaM8/G11<file_sep>/src/java/smallGroup/P1_SumOfDoubleFromStr.java
package java.smallGroup;
import java.text.DecimalFormat;
public class P1_SumOfDoubleFromStr {
public static void main(String[] args) {
String str = "aaa1.1bbb2.2ccc4.4fff1.5"; // 9.20
String temp = ""; // 12.4
... | 992212c75d44c039879bb1f2b7b2196c9cd87624 | [
"Java"
] | 1 | Java | NozaM8/G11 | e216264eb6e7dd1f9186685da471d53092c4d6f2 | f41997d8c58c51e6eefbc375831314c31768e76f |
refs/heads/master | <repo_name>nikolasx/mynpm<file_sep>/src/index.js
/**
* Created by lixiong on 2018/3/27 0027.
*/
<file_sep>/README.md
# mynpm
常用前端方法
| 4bf60d7629e4b5244646224b12a702471821fd08 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | nikolasx/mynpm | fb238e93ee1646dac32342e26209ae5e7b7a5328 | aac9659f17e9d7780cc1f2c27a29d29096594ece |
refs/heads/master | <repo_name>gray-industries/projecter<file_sep>/projector.gemspec
require File.expand_path('../lib/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['<NAME>']
gem.email = ['<EMAIL>']
gem.description = 'Projecter - Stub Ruby projects'
gem.summary = <<-EOF
Projecter allows ... | 08cb34e46c3f6d82f9254fceb55c82aa3c877c4c | [
"Markdown",
"Ruby"
] | 11 | Ruby | gray-industries/projecter | d51647889969a48a3996b6a16c104ba26e6118c0 | 37c8a28d8b2d8faae7340603e156e864eb16fcfb |
refs/heads/master | <repo_name>Hellwz/Stack_Box<file_sep>/Assets/PlayerController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class PlayerController : MonoBehaviour {
public GameObject StartPanel;
public GameObject OverPanel;
bool pl... | 36a8d348e7a189e34a923a651328a025d26cc50d | [
"Markdown",
"C#"
] | 4 | C# | Hellwz/Stack_Box | 52bccbfe1d02eb1bb57bec2bbb5f38e4b56a9e17 | 0bc11d95258d142f5b1bc8b2d79806d2080ac869 |
refs/heads/master | <repo_name>shvetsi/MonitoringAssistant<file_sep>/ClientApp/app/components/reports/reports.module.ts
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { Report } from "../../shared/models/report";
import { R... | 9ed1b2ac8d7c97dce5d4b73727b1f68efb840067 | [
"C#",
"TypeScript"
] | 27 | TypeScript | shvetsi/MonitoringAssistant | c8588e54e930d58fdf1db8963952fd66e51a5581 | d61d5c9a4fb28026e596b133b23f44f871404dfa |
refs/heads/main | <repo_name>Lavinia-dsci/pracgit<file_sep>/scondpython.py
# Display the output
print("Nes python file")
| b18d7ba0eb89909a913cbf49133bb5715be2c22f | [
"Python"
] | 1 | Python | Lavinia-dsci/pracgit | 60029880525771f36a76762144b22d017115c00e | a4b4aa12f94801ad1d7b2e61d58a9ad4209f28fd |
refs/heads/main | <file_sep><?php
namespace App\Http\Controllers\Course;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Model\CourseTypeModel;
class CourseTypeController extends Controller
{
/**
* 课程分类的添加
*
*/
public function create(){
return view('course.type.create');
}... | 70cc34e8ce4ab7f8e5a7d0a7a2479bcad2942eec | [
"PHP"
] | 23 | PHP | lv-xiaoyang/online_admin | 1ce60c93fa0cb35e85ce6aeb2dcc521df100420f | 2202371a97f135eada7a65b42946c5733949b102 |
refs/heads/master | <repo_name>pahirampascual/backup-mainProject<file_sep>/resources/js/frontend/media.js
function myFunction (x) {
if (x.matches) { // If media query matches
document.getElementById("quicklinks-jobs").style.display = "none";
document.getElementById("showthissponsor").style.display = "block";
//... | 0f528b7b4cde6e05b370a98afc8293a3e5cf210e | [
"JavaScript",
"PHP"
] | 4 | JavaScript | pahirampascual/backup-mainProject | 00c32ca509b5160634f3e4424661f79a795b3cc6 | 8f0b9baa1175cf1568cced50cf3daf7672fc9cca |
refs/heads/master | <repo_name>nofate/icfp2011<file_sep>/dummy
#!/bin/sh
scala name.nofate.icfp2011.DummyBotApp $1<file_sep>/run
#!/bin/sh
scala name.nofate.icfp2011.BotApp $1 | c4a2eb7029d6ad25a10289bfc6a32a0c611866ae | [
"Shell"
] | 2 | Shell | nofate/icfp2011 | 87f86d7b9a9a86513bcff7183b1cab038130a0a6 | ef63ab4ca03bc172875fb01cfb8365e57fc3af87 |
refs/heads/main | <repo_name>Piyush-Singhania/Project-Planner<file_sep>/README.md
# project-planner
## Url to visit and test
https://projectsplanner.netlify.app/
## Stack Used
```
html, css, js, vue.js
```
## Description
```
A task creating and managing web app (todo) build using Vue.js and firebase firestore as the database to store... | 7b91bb9d2b31215e859f403a6a2a7634029c944a | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Piyush-Singhania/Project-Planner | e63c1b7ac93451136ab284177fbf4ed3fe231dd5 | 4f45b3e18bed5223c5cceb7c172813dff2e3f543 |
refs/heads/master | <file_sep>import matplotlib
import matplotlib.pyplot as plt
def plot_trended_study_time(df, num_date_labels=8):
fig, ax = plt.subplots(figsize=(16, 10))
ax.scatter(df["date"], df["seconds"], alpha=0.5, s=10)
xlim = ax.get_xlim()
loc_interval = int((xlim[1] - xlim[0]) / num_date_labels)
loc = mat... | 51ee3c94c9656c486d4676285a84cd5f8544a504 | [
"Python",
"Makefile"
] | 3 | Python | NapsterInBlue/anki_progress | a900266b4bb5594faf0bce17fde472724a3fdd47 | 2d7648050afdd7d82bca31f3ada780c4d1233fa3 |
refs/heads/master | <repo_name>Nik3991/base_data_structures<file_sep>/ds/Stack.h
#ifndef STACK_H
#define STACK_H
#include <iostream>
using namespace std;
template <typename T>
class Stack
{
struct Node
{
Node(T _value, Node* _next_ptr = nullptr)
: m_value(move(_value)),
m_next_ptr(_next_ptr) {}
... | 6718a0c17e10420ac08f87d76799ec95ee85e8b9 | [
"C++"
] | 8 | C++ | Nik3991/base_data_structures | 21940096359f7bb49169fc123845257732736c66 | 673f6a0d8b4a195ec8ee993730b583deb887f0d4 |
refs/heads/master | <repo_name>johnobc11/projectTARAbackend<file_sep>/ptaraback/admin.py
from django.contrib import admin
#from .models import ptaraUsers
# Register your models here.
#admin.site.register(ptaraUsers)<file_sep>/ptaraback/migrations/0005_auto_20180228_0909.py
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-02-28 0... | ba2ea3019c16d91e0d7066c6ac1145613980c235 | [
"Python"
] | 10 | Python | johnobc11/projectTARAbackend | 51c54cf24579da7c95f565fecfb0a47e4204cba8 | 16c66fdf99516d1ed941fdef38c851bdb631800d |
refs/heads/master | <file_sep>package br.edu.nassau.pweb.dao;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import br.edu.nassau.pweb.model.Usuario;
public class DaoUsuarioImpl extends GenericDao implements DaoUsuario{
public void save(Us... | e20cb5e733c2083a2992604799f6be67fbf07392 | [
"Java"
] | 1 | Java | MinnusV/PWEB20152 | 86607416fa9c017df58e6d07dab478021d1cf23e | 17b9a902ee413d43fb3e66f1aa535bef6a432956 |
refs/heads/master | <repo_name>imiyoo2010/uwsgi-docs<file_sep>/Lua.rst
Using Lua/WSAPI with uWSGI
==========================
Compilation notes
-----------------
Before compiling the plugin take a look at the
:file:`plugins/lua/uwsgiplugin.py` configuration file. If you have installed
Lua in some exotic directory you may need to adjust t... | daa905cc41481d40ce460c647ee6c9af3dbeca9b | [
"Python",
"reStructuredText"
] | 13 | reStructuredText | imiyoo2010/uwsgi-docs | c515eade7cdb6ae4cb4d2e191eb1e185cffcdefd | 2739f9ef8d502072fad3ddfee0b787a96fdbf060 |
refs/heads/master | <file_sep>//generate the dynamic data using KO methods: observable, binding, data-bind.
function ViewModel(mapModel) {
var self = this;
//generate a location list.
self.locSearchInput = ko.observable('');
self.locationList = ko.computed(function() {
var list = [];
if (self.locSearchInput() === ... | d1c3d1f87bfa2a040ff33f1f8d0def2342eeea47 | [
"JavaScript"
] | 1 | JavaScript | zvdifo/P5-neighborhoodMap | adadf327f2dfaf665e8e644b07f1aa7ccd288d69 | f0cac7cc2faeaae524d316349b2e6eed513dc4bb |
refs/heads/master | <file_sep>% matplotlib notebook
import matplotlib.pyplot as plt
import numpy as np
def circle_bound(x):
y = np.sqrt(1-x**2)
#print(y)
return y
def make_pi(tot_points):
circ_points=0
for i in range(tot_points):
point_x = np.random.uniform(0,1)
point_y = np.random.uniform(0,1)
if circle_bound... | fb643c7fe868a3b9103f59f362d77e0ac803f995 | [
"Python"
] | 1 | Python | jenniferokane/rcsc18_lessons | 375166347e3e22387c645fa6a89907f01f9c983d | 8294b1ede48fa1245df9160838511a5608235160 |
refs/heads/main | <file_sep># PetAdoption
## Speed Code Part 1 with SwiftUI
[](http://www.youtube.com/watch?v=Zm_HxZjBQNs "Speed Code Part 1")
## Speed Code Part 2 with SwiftUI
[](http://www.youtube.com/watch?v=... | 3c0d5d6dfacbc9f34fdf402eb65dd28754ae2bec | [
"Markdown",
"Swift"
] | 7 | Markdown | thachgiasoft/pet-adoption | ecc25d68399e1d3644460f3deba2504d67c40b4c | cc8f077e89d74c9e02769c24c7011dd1c6dff6a6 |
refs/heads/master | <file_sep>package com.luna.common.baidu;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.luna.common.http.HttpUtils;
import com.luna.common.http.HttpUtilsConstant;
import com.luna.common.utils.Str... | 1aab934ed9ad146b31e23f6ddeec417f8778c178 | [
"Java"
] | 3 | Java | luna1024/luna-commons | 3c27668959be03140bead9a9cd2a35e582a52a56 | 359f15d068b5348c14049c26de8c6b8952c3cb96 |
refs/heads/main | <repo_name>crowdsecurity/php-cs-bouncer<file_sep>/src/Fixes/Gregwar/Captcha/CaptchaBuilder.php
<?php
namespace CrowdSecBouncer\Fixes\Gregwar\Captcha;
use Gregwar\Captcha\CaptchaBuilder as GregwarCaptchaBuilder;
/**
* Override to :
* - fix "implicit conversion error on PHP 8.1".
*
* @see https://github.com/crowd... | 704dd49a5eb8b00e3289249425f867e1c7716409 | [
"Markdown",
"PHP",
"Shell"
] | 21 | PHP | crowdsecurity/php-cs-bouncer | 2920637c300509739734a9c1f7a982078fc2d5bc | 1e85777bdef52b81ba45d2ebb2da2c43cf9b14b0 |
refs/heads/master | <file_sep>#!/bin/bash
#
# Creates the Structure for a deb
#rm -rf /tmp/pack
<file_sep># - coding: utf-8 -
#
# Copyright (C) 2009 <NAME>
#
# This file is part of the Monocaffe Connection Manager
#
# Monocaffe Connection Manager is free software: you can redistribute
# it and/or modify it under the terms of the GNU Gen... | 5ae576787356fe423a5b07ae77aedad631bee520 | [
"Python",
"Shell"
] | 4 | Shell | cloudqq/Monocaffe-Connections-Manager | 8e6fa97b42a2d8ae2a92479cf9d885322272c590 | e7125df1ae8674b9ba29dfdc5186c0c0f42d3eb7 |
refs/heads/gh-pages | <file_sep>// run to reset:
// localStorage.removeItem('visited-' + location.pathname); sessionStorage.removeItem('prev-' + location.pathname);
if (location.search.match(/test-expand=true/)) {
alert('Opted in to testing expand options');
localStorage.testExpand = 'true';
} else if (location.search.match(/test-expa... | bdf76d71b4f4f0d51e8ba5add679820908a6f8b5 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | bakkot/SlateStarComments | f2b1ea5925d347fcdf6b80a5da52de5401986dd8 | f4783fdc0f2ba3efc6bb686469451fd997c906d0 |
refs/heads/master | <repo_name>deepek23/Student-Biodata<file_sep>/README.md
# Student-Biodata
College
<file_sep>/WelcomeServlet.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.... | c8417ac775c33278c9432001a91d1e31e689e8bc | [
"Markdown",
"Java"
] | 5 | Markdown | deepek23/Student-Biodata | 8d18554fa54f09ec2eeb5d61258a7d85b0d157a7 | 41a7391cab6804f3718083ad0b8d5f8273fa9668 |
refs/heads/master | <repo_name>leitian123/update-location-settings<file_sep>/requirements.txt
certifi==2019.9.11
chardet==3.0.4
idna==2.8
pyaml==19.4.1
PyYAML==5.1.2
requests==2.22.0
urllib3==1.25.7
<file_sep>/update-location-settings.py
import requests
import sys
import json
import os
import time
import logging
from logging.handlers impo... | 719288b02ac43fdcba9648ebffb44495c5e14ea7 | [
"Markdown",
"Python",
"Text"
] | 3 | Text | leitian123/update-location-settings | 5eea7c4ac11d4ad78ff78f0b4fb079e45f55fb4b | 9aca8512a664bfce1b6c0c136fbe9c7643300e06 |
refs/heads/master | <file_sep>(function() {
var $imgs = $('ul#trip li a img');
var $search = $('#box');
var cache = [];
$imgs.each(function() {
cache.push({
element: this,
text: this.title.trim().toLowerCase()
});
});
function filter() {
var query = this.value.trim().toLowerCase()
... | 9eee9b1a9516f01eca3dc3786d80af08bbc0b90c | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | tech-mills/Project_Four | d4eab42e367e9621a17e102d3bbf4cb05c3aaea6 | 8033b5690f110cab2b6ce54be03f59f3a17f3d26 |
refs/heads/master | <file_sep><?php
namespace GestionFraisBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use GestionFraisBundle\Entity\EtatFicheFrais;
use GestionFraisBundle\Form\EtatFicheFraisType;
/**
* EtatFicheFrais controller.
*
*/
class EtatFicheFrais... | f3cfeaa94555132213f3ecb4540e93602c2ca7ce | [
"Markdown",
"PHP"
] | 10 | PHP | Marquand/ProjetCastor | be2a4bea802bb2948c1078ba9001e0b09a60a554 | dca628119533230a98b95dd47578f8fba5588ac6 |
refs/heads/master | <file_sep>import sanitizeHtml = require('sanitize-html')
export const excerptResolvers = {
rendered: async ({ rendered }: { rendered: string }, _: any, __: any) => {
return sanitizeHtml(rendered, { allowedTags: [] })
},
}
| 9ccd7ab666288019935b10d3edcdb32fce68f4ab | [
"TypeScript"
] | 1 | TypeScript | giovanapereira/wordpress-integration | 00bd2c29ca82b9cf837919ed0e4263cd033703ba | 9f1ee9417080228e578dde680960fff6343db01f |
refs/heads/master | <file_sep>package castledesigner;
import java.awt.Point;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.ShortBuffer;
import java.nio.channels.FileChannel;
import java.util.Has... | 4ec38914660d9b8716b3f6d789b1a5e577479dcd | [
"Java"
] | 1 | Java | Velaseriat/stronghold-kingdoms-castle-designer | ef565407f093dd559099a6d030ab9ed55e67308c | 9766c9475dcebdf4235c270c0c13c827d08fb156 |
refs/heads/master | <repo_name>IceCruelStuff/seesaw<file_sep>/common/ipc/ipc.go
// Copyright 2014 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.... | 039c2d51065c352712e7cad5ebe3f2c48fd7fb69 | [
"Go"
] | 1 | Go | IceCruelStuff/seesaw | cb3d46175cb13ee09f23914edbbcf43aa0c3cfc2 | d4a752d808f8a849dbdd9763ad397f75a43e4847 |
refs/heads/master | <repo_name>darshanasalvi/form2fit<file_sep>/docs/setup.md
# Setup
We're going to install `form2fit` as a local python package. The only requirement is to have python3 which you can install through [Anaconda](https://docs.continuum.io/anaconda/install/).
## Creating a Conda Environment
First, create a new conda envir... | 7c1c95886161b24336eae5a76a0589f6b16ba9dc | [
"Markdown",
"Python",
"Shell"
] | 33 | Markdown | darshanasalvi/form2fit | 099a4ceac0ec60f5fbbad4af591c24f3fff8fa9e | adbb9cfd2f3d3a32884fb88f0a89828903a99a58 |
refs/heads/master | <repo_name>msparks/docker-prosody<file_sep>/README.md
# docker-prosody
This is a Docker image for [Prosody](http://prosody.im), a light-weight XMPP
server.
This Docker image is intended to be used a base for other Docker images that
include their own virtual hosts and SSL keys; see the section below on deriving
from ... | 4e348eecca85a36b964719fd168a279420ef639e | [
"Markdown",
"Makefile",
"Dockerfile",
"Shell"
] | 5 | Markdown | msparks/docker-prosody | 442b92e0aa311f937c3040a3c20beb7624e02cb4 | ad424ed29aab80607d13dc0a75c1c2cccd9526be |
refs/heads/master | <file_sep>import json
import os
import urllib
from google.appengine.ext import ndb
from google.appengine.api import users
import jinja2
import webapp2
import json
JINJA_ENVIRONMENT = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions=['jinja2.ext.autoescape'],
autoe... | 1d6b3b7c307d42dfd36d705c4d99a098e94cffc8 | [
"Python"
] | 1 | Python | JMichaelNolasco/Module-3---Basic-Thesis-Database-System--CRUD- | 967cecc74a74e67d39940e5862a4d6b708cbcd1a | 3fa006ea28e294b854179f82fd3db0dd70e7ccdc |
refs/heads/main | <repo_name>staff-634/study-step.CA<file_sep>/10-canvas/js/cofee.js
let cnvOne = document.getElementById("cnv1");
let ctx = cnvOne.getContext("2d");
ctx.fillStyle = "green";
ctx.fillRect(5,5,181,10);
ctx.fillText("JavaScript 18.1%", 210,15);
ctx.fillRect(5,20,147,10);
ctx.fillText("Java 14.7%", 210,30);
ctx.fillR... | 1a62f1f1e3152a4ffdc41089343c239347060fb1 | [
"JavaScript",
"HTML",
"Markdown"
] | 3 | JavaScript | staff-634/study-step.CA | e3eba8b6506d78a96b255bf2be6845db7e1bb5ea | 9b5555cb3763031cd37f64f44944b9f30de2f69b |
refs/heads/master | <file_sep>#include "su3.h"
using namespace NS_SU3;
using namespace std;
#include <stdio.h>
//Purpose of this program is to investigate if
//a truly random walk through p-q space and see if the
//same weights appear as specified in the more guided
//random walk done in traj.cc
void
get_good_list (int p_given, int... | 098ad48ce298e2383a9efe2e4bc93e5aa77636a4 | [
"Markdown",
"Python",
"Makefile",
"C++"
] | 32 | C++ | scottedwardpratt/fluxtubes | ff46624277a7c0f404a870ac99c9cae75eee3c33 | e48ff1796f3bea27667e68c0739dd885bebb20a1 |
refs/heads/master | <repo_name>zulu15/springmvc-training<file_sep>/src/test/java/com/fincasmendoza/repository/ProductDAOImplTests.java
package com.fincasmendoza.repository;
import static org.junit.Assert.assertEquals;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationCo... | 2f44292580404f3bbfb055a8fff6e0b1ef0bfafe | [
"Java",
"Maven POM",
"INI"
] | 8 | Java | zulu15/springmvc-training | e75ec1b2573645d601dd4a67588ffec3a191236a | b47f43edc9b0bad6f40d421416299f5b34f5490a |
refs/heads/master | <repo_name>wolzethan/destiny-api<file_sep>/server/router/index.js
module.exports = function(app) {
app.use('/player', require('./routes/search'));
}
<file_sep>/server/modules/destiny/defaults.js
module.exports = {
"baseUrl" : "http://www.bungie.net/Platform/Destiny"
}
<file_sep>/server.js
// Requiring node Modules
... | 0a39b53599abe4619489135845ccd6aeb4b86e1e | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | wolzethan/destiny-api | db8e788b2519a389b60b6c5891fa687dd8ec90c9 | 0bfdc3037ed29a97522908719e26bd1d236bcdbb |
refs/heads/master | <repo_name>BidiptoRoy/Lyrics-Finder<file_sep>/app/src/main/java/com/bidiptoroy/lyricsfinderapp/MainActivity.java
package com.bidiptoroy.lyricsfinderapp;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
im... | 78ffa667bdff29896f1e3ad1c5702f07321b8b0f | [
"Java"
] | 1 | Java | BidiptoRoy/Lyrics-Finder | 1f42ecbd6ac0dbc8e9d7f1a8327c68690a896d78 | 6d0ab22de227f7592bb74a2d7059750c9942a7c7 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
from timeit import default_timer as timer
import random
import pprint
def insertion_sort(a_list):
t_start = timer()
for index in range(1, len(a_list)):
current_value = a_list[index]
position = index
while position > 0 and a_list[position - 1] > curre... | 4df665caeab9ef06af8b562d324a0e404dbcf434 | [
"Python"
] | 2 | Python | CalicheCas/IS211_Assignment4 | 616699654bd35df51fa373147c9074d42bc5b801 | 647223edca9ffd79dedcbdf02e9c43410416d86d |
refs/heads/master | <repo_name>6Sinnet/PyjamaRun<file_sep>/PyjamaRun/app/src/main/java/sjttesinnet/pyjamarun/ReadTagActivity.java
package sjttesinnet.pyjamarun;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.app.PendingIntent;
import android.content.Context;
import android.... | 7e0f8440eae9a4ed6dacd98918161ab1041dd1a3 | [
"Markdown",
"Java"
] | 6 | Java | 6Sinnet/PyjamaRun | a94286b97821d39388eee0e4a169a41878b93a8b | 459a44dd9e23a15674bb7a95eb5a399da318af2a |
refs/heads/master | <file_sep>#!/bin/bash
host=`basename $0`
logonuser=root
function help {
echo -e "\nUsage: $0 [-u|-h] \n\t -u : Connect as User ($USER) insted as root\n"
}
for i in $* ; do
case "$1" in
-u) if [ -n "$2" -a "${2:0:1}" != "-" ] ; then
logonuser=$2
else
logonuser=$USER
fi ;;
... | 79ae53bf284059972dca499be6dd12874d74d4c8 | [
"Shell"
] | 1 | Shell | firemind/dotfiles | acda9dad32d6a97888d5e85dbe80fc27fcc28a64 | 9369ae2e149dbce03898032839a43c795c3660bf |
refs/heads/main | <repo_name>fernandodealcantara/trabalhosSC<file_sep>/cifra-aes-modos-ecb-ctr/main.py
from random import randint # usado apenas para gerar chave de 16 bytes com valores aleatorios entre 0x0 e 0xFF
from hashlib import sha1 # usado apenas para gerar o hash
from PIL import Image # usado para tratar imagem .bmp
from os impo... | b17d833c083aaab3b9aba38088c18c96ad592ab8 | [
"Markdown",
"Python",
"Text"
] | 4 | Python | fernandodealcantara/trabalhosSC | 850c58bc53facb2fd6b26a97843f10360f25a64a | 511a66a1c0b7c4a26f1be1dfeb9707d0749921d0 |
refs/heads/master | <repo_name>yuzhiliu/learning<file_sep>/jupyter-tips-and-tricks/README.md
# Jupyter Notebok Tips and Tricks
A few (hopefully) useful tips and tricks to using the Jupyter Notebook to its full potential. This is not, in any way, an exhaustive demostration of the Jupyter notebook. Quite a bit of the information is given v... | a463cbed858fc50c58d7138548fc43c3973416e6 | [
"Markdown",
"Python",
"Text"
] | 24 | Markdown | yuzhiliu/learning | 05828ed2bae134bf380370d189eb9bdae675397f | 5603df79e2f152b9240c0bc671bd15d49975e170 |
refs/heads/master | <file_sep>#include "Adafruit_BluefruitLE_SPI.h"
#include <SPI.h>
#define Vcc 5
#define UPDATE_COMMAND_CHARSIZE 30
#define FACTORYRESET_ENABLE 0
#define AVERAGE_OF_TRIES 5
#define BUFSIZE 160 // Size of the read buffer for incoming data
#define VERBOSE_MODE true // If s... | ca0e0bc77301a707b4314a19174d2d114834c75d | [
"C++"
] | 1 | C++ | Chanrich/Garage-Park-Safe | 2bbb385e1187f4a193f2a96e8f3f9eb514f5a331 | b484be04e0b02bc2767335a6b56ca9228e19eeb5 |
refs/heads/master | <file_sep>#![feature(step_by)]
#[macro_use]
extern crate lazy_static;
use std::io;
use std::io::prelude::*;
use std::collections::HashMap;
use std::hash::{Hash, Hasher};
use std::cmp::Ordering;
use std::fmt;
use std::sync::{Arc, Mutex};
use std::thread;
use std::mem;
lazy_static! {
static ref TONUM: [u8; 2... | ae922d9b5ddf289979b7afb828ba825f4c0c4ce9 | [
"TOML",
"Rust"
] | 2 | Rust | aschampion/rust-clbg | 0b43ce3a88c1d42fa1d3d2e799606bd2c01c517b | 3587ff690ab01dd080a62538554c9805deddb0ab |
refs/heads/master | <file_sep>package se.kth.csc.iprog.dinnerplanner.swing.view;
import se.kth.csc.iprog.dinnerplanner.model.Dish;
import java.awt.*;
import javax.swing.*;
/**
* Created by Jiansun on 16/2/10.
*/
public class PreparationPanel extends JPanel{
private static final long serialVersionUID = 1L;
// String dishStarter;
... | 1df211c8ad5ed688c0ac7fee6834587199722dbe | [
"Java"
] | 17 | Java | patrickwh/IPLAB2 | dd06011d2927a33d7940751f08419227fb72c178 | 673307cbb0a30798af933aa112d01922ca967e76 |
refs/heads/main | <file_sep>
import anndata as ad
from pycdr.pycdr import run_CDR_analysis
from pycdr.perm import calculate_enrichment
from enrichment_utils.ontology_analysis import analyse_adata
INPUT = snakemake.input[0]
INPUT_FILE_GENE2GO = snakemake.input[1]
INPUT_FILE_ONTOLOGY = snakemake.input[2]
OUTPUT_enrichment = snakemake.ou... | 69a231a4737e3fdfcceab0a577b7d02260c3d74f | [
"Markdown",
"Python"
] | 18 | Python | wlchin/CDR_workflows | cc0492da06f5cb1974fb801547de06d17e60fc18 | 6acb51163aded32e8b13f9096e755045190df0f5 |
refs/heads/main | <repo_name>Macflash/woodwork<file_sep>/README.md
## WoodWork
Work with wood. 3D CAD modeling optimized for working with lumber! Supports dimensional lumber and sheet lumber.
Give it a go at [https://macflash.github.io/woodwork](https://macflash.github.io/woodwork).<file_sep>/src/actions/operation.ts
import { Vector3 ... | 320ffcc23957c319e027669a47542c2e813d35e6 | [
"Markdown",
"TypeScript"
] | 7 | Markdown | Macflash/woodwork | 8cae18df18f4b1ab060489c4ff061329aefe589a | bf12a4f7d08f23683655b134911c2421db24b8ae |
refs/heads/master | <file_sep>import { CUSTOM_TAG_FOR } from '@ember/-internals/metal';
import { HAS_NATIVE_PROXY } from '@ember/-internals/utils';
import { assert } from '@ember/debug';
import { DEBUG } from '@glimmer/env';
import {
Arguments,
CapturedArguments,
CapturedNamedArguments,
CapturedPositionalArguments,
} from '@glimme... | 0e437a1fd5678162d0fec7da06891f1e2050a22a | [
"TypeScript"
] | 2 | TypeScript | pgengler/ember.js | fb295a9e6a5800b070b62d26c980ea709fd7069c | b3ce7d8de5b807ccf3095b65a0d3aef708d4c10e |
refs/heads/master | <repo_name>malrial/NodeServer_mk1<file_sep>/README.md
# NodeServer_mk1
Node server test
<file_sep>/index.js
var server = require("./server");
var router = require("./router");
var handler = require("./handlers");
var handle = {}
handle["/"] = handler.iniciar;
handle["/iniciar"] = handler.iniciar;
handle["/subir"] = ha... | fb4c567f16ce64ce3da75b4fca88cc16d0dac934 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | malrial/NodeServer_mk1 | 6b3e4ee60207d50e0aac40259a440dc4bc31fd5e | e60e4f4bf15bc851e4986fa6020518bb1ab8d013 |
refs/heads/master | <file_sep>using NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace NLogExample.Model
{
public abstract class ClassBase : IPerson
{
public virtual Logger Log { get { return _logger; } }
private static Logger _logger = LogManager.GetCurrentClassL... | a7a339682a12e6ef4e4c3a8180d641c3647ff293 | [
"C#"
] | 6 | C# | sv-georgiev/NLogExample | fadc69557e0d3d02c810296ec3750810cc4358ec | a1b5d1b0744a4a9229a28900c56bdfa8fc5e5448 |
refs/heads/master | <file_sep>var debounce = function(func, wait) {
var timeout, context, args
var later = function() {
timeout = null
func.apply(context, args)
}
var debounced = function() {
if (timeout) clearTimeout(timeout)
context = this
args = arguments
timeout = setTimeout(later, wait)
}
}
<file_s... | 839340edd911afef72c1ba4a0ecb71824db8f036 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | LeeJim/interview-problem | 2b57d79c473fd2b782165b8eeb930ba82407d678 | f3f031eb9dbfe0539315cd89c41c4f1004b01be4 |
refs/heads/master | <file_sep># VecMat
La aguja del pajar
<file_sep>#include <iostream>
#include <conio.h>
using namespace std;
int filas,columnas,valor;
//extern int mat[filas][columnas];
float matriz (int& mat);
void orden(){system("cls");
}
multiplicacion(){system("cls");
}
transpuesta(){system("cls");
}
frecuencia(){sy... | ed3b61909c6c8970ec6d638b85845717c67aa085 | [
"Markdown",
"C++"
] | 2 | Markdown | Adiazsu/VecMat | 9f9d007eb9f935c80f09767b10494942685a945e | 8342b0c1b6f7e5f9a8b31efca05e9916aa248593 |
refs/heads/master | <repo_name>bcourbon/TraditionalRegression<file_sep>/Makefile
#makefile
CC = g++
#UCFLAGS = -O0 -g3 -Wall -gstabs+
UCFLAGS = -O3 -fopenmp -Wall -gstabs+
#UCFLAGS = -O0 -g3 -fopenmp -Wall -gstabs+
#RUCFLAGS = -pthread -m64 -I/afs/cern.ch/sw/lcg/external/root/head/slc4_amd64_gcc34/root/include
#LIBS = -L/afs/cern.ch/s... | 2f62eeacc1cbd6a9f695c73243e3709a7558c84e | [
"Markdown",
"Makefile",
"C++"
] | 5 | Makefile | bcourbon/TraditionalRegression | c71874be02f82dfa385f9520a5c3b966b067ad53 | 9ffa69396f55c516f71acc4162b597574b60ee02 |
refs/heads/master | <repo_name>tonmayonweb/HOW-TO-PLAY-MUSIC-IN-PYTHON<file_sep>/music.py
from pygame import mixer
mixer.init()
mixer.music.load("song.mp3")
mixer.music.play(10)
print("\t\t\t\t\t\t\t Tonmay Music Production")
while True:
print("\t\t\t\t Press p for pause and r for resume and q for ")
option = input()
... | 1bf48b4e327bdee236e538274f8a60a1f80cb0d9 | [
"Python"
] | 1 | Python | tonmayonweb/HOW-TO-PLAY-MUSIC-IN-PYTHON | 4c94570afe16f10a8f938fdb7a8096af8adc8ba1 | b15348018d5bf99d9aeb5d8521eabe075deee84e |
refs/heads/master | <repo_name>vikky12343/Character_count-sender-<file_sep>/char_count_send.3.py
f=open("character.txt","w+")
s=raw_input('Enter the character:')
i=0
s1=''
s2=''
j=0
while i<len(s):
if s[i]==' ':
s1=s1+str(j)+s2
s2=''
j=0
else:
s2=s2+s[i]
j=j+1
i=i+1
s1=s1+str(j)+s2
print s1
f=open("character.txt","w")
f.write... | def2d23cb3763cbfe0b2e9104757c2fc0eea44d8 | [
"Python"
] | 1 | Python | vikky12343/Character_count-sender- | 577eb98b6d32d0e2db42ebcfedc8fade04285b20 | 6b956be97bd3a7e483f5ce70a7939ea786fc8417 |
refs/heads/master | <file_sep>#### App trắc nghiệm kiến thức THPT theo bộ môn
<div style="display: flex;">
<img src="screenshot/sc1.jpg" width=300>
<img src="screenshot/sc2.jpg" width=300>
<img src="screenshot/sc3.jpg" width=300>
</div>
<file_sep>package huukhuong.multiplechoice.util;
import java.util.ArrayList;
import huukhuong.m... | 405dde963150ce49a45290badc1f47fbe127bfb3 | [
"Markdown",
"Java"
] | 4 | Markdown | huukhuong/MultipleChoice | bf23602592c22f7b9229b9a5cd3690f89e74d2cf | a313ab3e2834225ee43b7507453081e0bb56b707 |
refs/heads/master | <file_sep>mail.smtp.host=smtp.gmail.com
mail.smtp.port=587
mail.smtp.username=<EMAIL>
mail.smtp.password=<PASSWORD>
<file_sep>## Script Java para envio de email com Gmail com uso de servidor [SMTP](https://en.wikipedia.org/wiki/SMTP_Authentication)
### Envio de email com gmail + java + spring
Fonte: http://blog... | 811680815222f87ca340192906e7636a096e2ed3 | [
"Markdown",
"Java",
"INI"
] | 3 | INI | isk4ndar/mailjava | 975d0bd5cc8c224036ad4195637d74c0a11e450a | 7282d1d5c673000b13330ef9b3e3a45fcf9df045 |
refs/heads/master | <file_sep><?php
class EsticadeTest extends PHPUnit_Framework_TestCase
{
public function testEsticadeCreation()
{
$serviceName = "TestService";
$esticade = new \Esticade\Esticade($serviceName);
$this->assertInstanceOf('\Esticade\Esticade', $esticade, "Expecting Esticade class");
... | ac02a0183d07430ada15f7d1ff38fbba6d533482 | [
"Markdown",
"PHP"
] | 3 | PHP | abitwise/esticade.php | 8d1834df645aff59f020bb34dd528d211fde8034 | 4372cf0b674809c42366450f21cdb72622f1160f |
refs/heads/master | <file_sep>//Rock, Paper, Scissors, Lizard, Spock using es6 and served by a simple node server (http module), no peaking at your past R,P,S code and push to Github.
//Set Up event listeners for each of the images
let scoreHuman = 1;
let scoreComputer = 1;
let scoreDraw = 1;
const getValue = (e) => {
let userChoic... | 22e1d59a29b9aecd9e830f1e636dae65f7746ae7 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | anvytran-dev/spock-lizard | b912a6280b2213bf3f10792a859fc14786388805 | 96f8257c9705b315e0124693b58d66cf4bea6b21 |
refs/heads/master | <file_sep>package Calculadora;
public class Program {
public static void main(String[] args) {
//Ejercicio 3
// System.out.println(ManejoString.cantidadCaracteres(cadena));
// System.out.println(ManejoString.primeraMitad(cadena));
// System.out.println(ManejoString.ultimoCaracter(cadena));
// System.o... | b068ac4f54d2492430cd6ad2b2e41ad0795255ea | [
"Markdown",
"Java"
] | 20 | Java | lionelherrerobattista/Programacion_Avanzada_I | 4e4c461f829b0b2dbf5486106b36c0015639d8f4 | 6844bc90b862a17c3b7c3401606bb67228216dbf |
refs/heads/master | <repo_name>MeetDevin/AminoAcidNet<file_sep>/utils/log_output.py
# encoding: utf-8
"""
@author: <NAME>
@contact: <EMAIL>
@file: log_output.py
@time: 12/9/20 10:08 AM
@desc:
"""
from datetime import datetime
import sys
class Logger(object):
"""Writes both to file and terminal"""
def __init__(self, log_path, is... | ff4d8393fa0dcd77ad24c0cb81257948ae7aa724 | [
"Markdown",
"Python",
"Shell"
] | 26 | Python | MeetDevin/AminoAcidNet | 9af9ab5d56bd57ee2d743f677216e7ce03b83248 | 1d56f58bbc0b2a4a419cde38179320c2d2eb17f8 |
refs/heads/main | <repo_name>TomashinOpenSource/FireSafetySimulator<file_sep>/Assets/FireSafety/Scripts/Extinguisher.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using HTC.UnityPlugin.Vive;
public class Extinguisher : MonoBehaviour
{
[Header("Система частиц пены")]
public ParticleSystem foa... | 75081525b79caa7736046729aa4020d577b08e68 | [
"C#"
] | 3 | C# | TomashinOpenSource/FireSafetySimulator | 46caa80fbb11dd141c3b519e8e0959cdae781e7f | 69594e22b7c098062204c16c47a524d9c76910d3 |
refs/heads/master | <file_sep><?php
class FriendsController extends AppController {
var $name = 'Friends';
var $uses = array('User', 'Friend', 'Feed', 'Like', 'Jobkind', 'Job', 'Level');
var $components = array('Auth', 'WebApi', 'Timeline');
var $helpers = array('Javascript');
function beforeFilter(){
$this->Aut... | c60047b4c8234f5160465f026ef49222829f7caf | [
"JavaScript",
"SQL",
"HTML",
"PHP"
] | 39 | PHP | bathtimefish/biteup | 738682a3ca0e43cf9ace9aa2674051f209f1057b | ab93cfe1522782ebf48c86d9065f8de60f722cf1 |
refs/heads/master | <repo_name>evklein/SongFriend-Android<file_sep>/app/src/main/java/com/hasherr/songfriend/android/fragments/record/RecordMenuFragment.java
package com.hasherr.songfriend.android.fragments.record;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.F... | d6115901fb06f6d58cb2479304403052f7df1b8d | [
"Markdown",
"Java",
"INI"
] | 17 | Java | evklein/SongFriend-Android | 7aa4119533a82f92edc5940c1cadd00ca669ef18 | 4678c76d9a6050e59cbd5953b902067eb6d05c9b |
refs/heads/master | <repo_name>Mohit-Patil/MoEcho<file_sep>/app/src/main/java/com/example/mohit/moecho/activities/PlayerActivity.kt
package com.example.mohit.moecho.activities
import android.app.ProgressDialog
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import com.example.mohit.moecho.R
import com.g... | 6dd56b5a1538cc2354b1968a988350a2268686aa | [
"Markdown",
"Kotlin"
] | 13 | Kotlin | Mohit-Patil/MoEcho | 46838741ef21fc31bed16de2de7b3b6f32a3bc8a | 5be0117a1962aacd858ca1749e28ffa1e2c0dfcb |
refs/heads/master | <file_sep>module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
express: {
options: {
// Override defaults here
port: 9000
},
dev: {
options: {
script: '... | 682e3d5c935a3a5d2bedbbb5162474b9d63066d8 | [
"JavaScript"
] | 1 | JavaScript | MatthewJohnson3154/eslunch | 2065758f3104703d814a65b560fb71099f5eabfb | 6eb71087900fcdc9a9f4b6380e0f38d802a5035f |
refs/heads/master | <file_sep># Based on: https://github.com/robb-j/common/blob/master/web-stack/docker-compose.yml
version: '3.5'
# Name our network
# (useful if you want to use external docker-compose files)
networks:
default:
name: web_stack
# Named volumes
# (Places to store data that will persist a `docker-compose down`)
v... | e9c8e30da64576ba4769c6d621acc820a4c38ed2 | [
"Markdown",
"YAML",
"Shell"
] | 3 | YAML | make-place/example-web-stack | 7f4d225d36a23d7d043b088f18b21b6fa8231570 | b22dd3f257bd881b80f668d9954ddd63100d7691 |
refs/heads/main | <file_sep>const { JSDOM } = require("jsdom");
const { WebhookClient } = require("discord.js");
const BM_URL = "https://www.bonjourmadame.fr/";
async function getMadameData() {
return JSDOM.fromURL(BM_URL).then(({ window }) => {
const { document } = window;
const rawUrl = document.querySelector(".post-conte... | 91cdd7ee577f5f2a704164970e3aa0a8c1897938 | [
"JavaScript"
] | 1 | JavaScript | zyhou/bonjour-madame | 87423497a4a678ac3b51171ce5e8dd4828ce93dd | e3af94b971e575025ba062b2cf6486a4e770aa5c |
refs/heads/master | <file_sep>import React, { Component } from "react";
import Grid from "@material-ui/core/Grid";
import { Link } from "react-router-dom";
import AppBar from "@material-ui/core/AppBar";
import ShoppingCartIcon from "@material-ui/icons/ShoppingCart";
import CachedIcon from "@material-ui/icons/Cached";
import EditIcon from ... | 776c475be68ca7ae3b71876735fa833e59d5abbb | [
"JavaScript"
] | 11 | JavaScript | Doriel1121/delivery | a6c3706fde1b88b12313e695d8fd78a1b47d59a8 | 5de7d89de26576d1a0c85aea9c0fa454bf92d5f5 |
refs/heads/master | <repo_name>Creatune/Flowchart-Wizard-React<file_sep>/src/index.js
import React from "react";
import ReactDOM from "react-dom";
import "./styles.css";
import Graphics from "./App.js";
ReactDOM.render(<Graphics />, document.getElementById("root"));<file_sep>/src/App.js
import React, { Component } from "react";
import {... | c932a9239662d7d8188d0e5d6300404b3a9ca317 | [
"JavaScript"
] | 2 | JavaScript | Creatune/Flowchart-Wizard-React | 9a404b55db82d6a95b48122d657dc57e8a37ef69 | 58c70761e54d05b4c749a37f1012b093516c5177 |
refs/heads/master | <file_sep>import {get, post } from './http';
/* =======================用户相关函数====================== */
//判断管理员是否登录成功
export const getLoginStatus = (params) => post(`admin/login/status`, params);
//查询用户
export const getAllUser = () => get(`/user/getAllUser`);
//添加用户
export const setUser = (params) => post(`/user/add`... | 8d6a350e58a8533c4d78b9a9ec51c0608ccc283f | [
"JavaScript"
] | 1 | JavaScript | lxy6083/sceneryshare-manage | 11cf72a5c03cfe7cdd72dbcb82925a06a1b9e8ed | e566e9ebfeff1531a5f261afffa9bb748db205b4 |
refs/heads/master | <repo_name>hidrorium/ricco<file_sep>/inputDct.php
<!Doctype html>
<?php
session_start();
if(isset($_SESSION['login']) && $_SESSION['login'] == 1)
{ ?>
<html>
<head>
<title>Dictionary Management</title>
<link rel="stylesheet" type="text/css" href="Style/Style.css">
</head>
<body>
<div class="isi">
<h3>INPUT ... | b138204e873df15dfa460a907de4ecf8f2e5e543 | [
"PHP"
] | 1 | PHP | hidrorium/ricco | dc1724a3c0b21541bc97e4593c7847c085c7fbb7 | de1468c3bab2705a3a91adf2334747bfe4213fc1 |
refs/heads/master | <file_sep>#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include "env_settings.h" // for GetStringSetting
#include "logging.h" // for Log, LogErrno
#include "banner.h"
/*! \brief Read banner message from file
*
* \param banner Array of pointers to store the banner lines
* \param num_li... | fa774c0bfb818809fc35473b827f8af869e0b20a | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 10 | C | stuwilkins/xsecurelock | feb253a7c9281b6195e4e83173171eb32adddeba | f64bd183e362d750f19981b16273c18c46f78caf |
refs/heads/master | <file_sep>#include<stdio.h>
#define f(x) (1/(1+x*x))
#include<math.h>
int main()
{
float a,b,h,x[10],y[10],iv;
int n,i;
printf("Enter upper limit(b) and lower limit(a):");
scanf("%f%f",&b,&a);
printf("Enter the no of segment say(n):");
scanf("%d",&n);
h=(b-a)/n;
x[0]=a;
x[n]=b;
for(i=1;i<n;i++)
... | c910d424d611877dea8ef38061a6e21cc5c6fa85 | [
"C"
] | 1 | C | anishboss/nmprograms | a118817638690d0a642627016d4281e2f53d4388 | 01498e01910e88ff4f3572180393038312676ab3 |
refs/heads/master | <repo_name>evandde/isox<file_sep>/include/Run.hh
#ifndef RUN_HH
#define RUN_HH
#include "G4Run.hh"
class Run : public G4Run
{
public:
Run();
~Run() override;
virtual void RecordEvent(const G4Event *) override;
virtual void Merge(const G4Run *) override;
G4double GetEDep() const { return fEDep; }... | b64042dd8b317c73d4754303f63b9333d4963990 | [
"Markdown",
"CMake",
"C++"
] | 11 | C++ | evandde/isox | e8d8dc7703d9ff60de5efe9054c72e23b51e5e97 | 245cc2669663e57c60133bcf94355903d78ebfe3 |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using AetherSense.Triggers;
using Buttplug;
using Dalamud.Logging;
using Dalamud.Plugin;
namespace AetherSense
{
public class Devices
{
private List<Device> devices = new List<Device>();
public readonly List<Group> Groups = n... | 3a8381925dbbbbe1203b6d6e6ccbaadbbe379ec0 | [
"C#"
] | 11 | C# | TiefieBlau/AetherSense | c0c1eec08b8668405fa13fb6d252636aee27a895 | d1977f2173855fb35e340295079d68654cc9e983 |
refs/heads/master | <repo_name>PavelNedoshivin/Multiplying-Using-FFT<file_sep>/README.md
<b>Multiplying Using FFT</b><br>
This is implemenation of application for multiplying big integers using Fast Fourier Transform made by SUAI student, <NAME>.<br>
Features: loading from file or reading from console, counting time when using FFT or not.... | bc06057f0a07c4626e8bea44d0ca8f5860fec964 | [
"Markdown",
"C++"
] | 4 | Markdown | PavelNedoshivin/Multiplying-Using-FFT | 0c5feb1036c24db34302a7c3b440e021f3daeae1 | 66ef727b347a1e79705c8499fdb9e6917fe2a356 |
refs/heads/master | <file_sep>
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
/*
* To change this license header, choose... | 630af52b0525f1ad827acba057c1df69346e2b7b | [
"Markdown",
"Java",
"INI"
] | 6 | Java | mo223han/Serevelet_pro | 378b6430c8d846a6a14384a3bd1f1503a161e522 | 24dc5ef5f43cc99b1b53a5edd9d1ef96c19d8a90 |
refs/heads/master | <file_sep># Zookeeper
A simple distributed bank management system which uses Zookeeper to ensure consistency, availability and fault tolerance.
## Aim
The aim of this project is to create a simple distributed bank system made of application servers connected to a Zookeeper ensemble (or standalone if locally). Client ... | fa5c6af47578dad712dd1b465efb792b462dc758 | [
"Markdown",
"Java"
] | 3 | Markdown | stefanomunarini/Zookeeper | e9e3890afa7e692eca2ac10ab882c7b70ff3481e | 76e3653f7040199a2ec2b8f0730409359cdd92b4 |
refs/heads/master | <repo_name>playr1983g/excel-templating<file_sep>/Classes/ExcelTemplatingInterface.php
<?php
namespace Devpunk\ExcelTemplating\Classes;
interface ExcelTemplatingInterface
{
public function render(\SplFileInfo $file, array $data);
} <file_sep>/Classes/CellFinderInterface.php
<?php
namespace Devpunk\ExcelT... | 51326d528ba0afddafad214f7a03a0d16294686a | [
"PHP"
] | 14 | PHP | playr1983g/excel-templating | ee90b5346f849889ce1b3ca23380fde2065a7a48 | 4240ded90502272f8a8ad6588543aa4c6ba3ee22 |
refs/heads/master | <file_sep>import React from "react";
import { connect } from "react-redux"
//Components
import { Footer } from "../components/Footer";
import Content from "../components/Content";
import NavBar from "../components/NavBar";
import LogIn from "../components/Login";
//Actions
import { setName } from "../actions/userAct... | 1625228e70aef5598e2e44f6aadd753bbf29d6a3 | [
"JavaScript"
] | 27 | JavaScript | St7-07/Library | ad331466a576caf58da66c9eccea5b2c8aa0e8a0 | e1bf94e753459e18ea98d84a3f65a8775ec2184a |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
import re
import requests
import time
import random
import csv
import json
import urllib
from lxml import etree, html
# 构造headers信息
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
}... | e00eab7711b48d1cb96e15256335a7491b432891 | [
"Markdown",
"Python"
] | 3 | Python | TommyXiee/Olympic-athletes-reporter | ae052b6ece528ab4531c98e8990895b65ea5be17 | 2d634c164a358a0353c4009ee58849df846c4f08 |
refs/heads/master | <repo_name>ciga2011/fabric<file_sep>/scripts/compile_protos.sh
#!/bin/bash
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
set -eux -o pipefail
# Find all proto dirs to be processed
PROTO_DIRS=$(eval \
find "$(pwd) \
-path $(pwd)/vendor -prune -o \
-path $(pwd)/.buil... | 364819dcc2c8869309f724063de062e1f0b13b36 | [
"Go",
"Shell"
] | 3 | Shell | ciga2011/fabric | 538bc885c0fea50d5b0e0692091244b59b8c8a49 | 515be9a0ede2fb5fc8705a13b64c076cbbf3ca72 |
refs/heads/master | <repo_name>GrupoOperacionalRDO/WebThreshGame_gamejam<file_sep>/Assets/Entities/UI/Controller/Score.cs
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
public class Score : MonoBehaviour
{
private ThreshBehaviour thresh;
private int score = 10;
private Text scoreText;
void Awake ()
{
EventM... | f47ab02916fb6f91ce117a83f230cd8b01f9adef | [
"C#"
] | 18 | C# | GrupoOperacionalRDO/WebThreshGame_gamejam | f986ce8b4040f6d77c745fb6ce49b6600563a50a | 11aeffd0ca314d4c07977d35aaa4cf6f5c092b1b |
refs/heads/main | <file_sep>module Customers::ReceiversHelper
end
<file_sep>class Users::ReceiversController < ApplicationController
end
<file_sep>class Users::CartProductsController < ApplicationController
end
<file_sep>class CreateOrdres < ActiveRecord::Migration[5.2]
def change
create_table :ordres do |t|
t.integer :custo... | 0629eb25e4c76994e2b6eb4952900b46b2afac52 | [
"Ruby"
] | 13 | Ruby | hayate112/ECsite | 10536fe9276b358b8db777d03eed53242d44e4cb | e024ca6cb356e4bd4fb9fe04ca8a6bf7f348d2ef |
refs/heads/master | <repo_name>21parkkyu/airbnb-clone<file_sep>/README.md
# Airbnb Clone
Cloning Airbnb with Python,Django,Tailwind and more...<file_sep>/conversations/urls.py
from django.urls import path
from . import views
app_name = "conversations"
urlpatterns = [path("go/<int:a_pk>/<int:b_pk>", views.go_conversation, name="go")]
<... | f62a3efb9668b14c43854956892bcad17520d0b8 | [
"Markdown",
"Python"
] | 4 | Markdown | 21parkkyu/airbnb-clone | 9f8b5ac89b7dba4eeea6e104614faf8fd35592e6 | 0768912455283b2237fa7d001070a62400fbd067 |
refs/heads/main | <repo_name>nguyenhuuthang-tdc/UX_UI-practice<file_sep>/personal_CV/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.min.css">
<link rel="styleshe... | 85f4a6ef243709786bd198b8598d7bd252ed1eb5 | [
"JavaScript",
"HTML",
"Markdown"
] | 4 | HTML | nguyenhuuthang-tdc/UX_UI-practice | cf1d7e2ed0a100cc1b1326cae3f8b513f744fefa | 8ff05c5e23432802990be1e999370ee1c97103a5 |
refs/heads/master | <repo_name>namoraghavay/jagadgururambhadracharya.org<file_sep>/Portal/src/Repos/NHibernateSessionFactory.cs
using System;
using guruji.Domain;
using guruji.ViewServices;
using NHibernate;
using NHibernate.Cfg;
namespace guruji.Repos
{
public class NHibernateSessionFactory : IDisposable
{
pri... | a167f78c24453ae89e828bb88b488e9059a6c426 | [
"C#",
"SQL"
] | 63 | C# | namoraghavay/jagadgururambhadracharya.org | 1c23de5d90039d30fa9d90007438b3e0f0ef9d56 | 8f1f466c1ca48a27c4cd638db2611274a8db63ae |
refs/heads/master | <repo_name>WreewanMorhee/ReactBlingBlingText<file_sep>/App.js
import React from 'react'
import ReactDOM from 'react-dom'
const App = (props) => {
return (
<section class='example'>
<div class='box'>
<div class='energy-text energy-transfer'>
<BlingBlingText
text={'雅斯蘭黛 艾維尼爾'}
... | 87de6a620bc4a44701bb4e65adf086a9447dfbb4 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | WreewanMorhee/ReactBlingBlingText | 440e19fb54b78eb72ef99fac49aee1c40ee31bc5 | 0e6ea7fb86b7d9b4877ddbf03822a22881784558 |
refs/heads/master | <repo_name>sendev1/cxf-server<file_sep>/build.gradle
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
plugins {
id "org.springframework.boot" version "2.4.2"
id "io.spring.dependency-management" version "1.0.11.RELEASE"
id 'java'
id("no.nils.wsdl2java") version "0.12"
}
group = 'com.cxf'
versi... | 19b599d9b5201551a32d5a8af71bccc6b8ee1738 | [
"Makefile",
"INI",
"Gradle",
"Dockerfile",
"Shell"
] | 6 | Gradle | sendev1/cxf-server | 61d282a5151d2416b8e605cb01d3edd1eaf38089 | 796204285ff4001a216c106cc2b3f4c4af59af64 |
refs/heads/main | <file_sep>const { prompt } = require("inquirer");
const { writeFile } = require("fs");
const generateHTML = require("./src/generateHTML");
const Engineer = require("./lib/engineer");
const Intern = require("./lib/intern");
const Manager = require("./lib/manager");
const employees = [];
const managerQuestions = [
... | 80b53425d07547c0662d465dd90cd1185f81bef9 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | brittnc/TeamGenerator | f42aae41fa58666dff9b2e99799d05f6d334dd7c | f2e116c000498b998775efd714329404efedde8f |
refs/heads/master | <file_sep>[package]
publish = false
name = "hello_world"
version = "0.1.0"
authors = ["<NAME> <<EMAIL>>"]
workspace = "../.."
[dependencies]
[target.asmjs-unknown-emscripten]
rustflags = [
"-Clink-args=-s EXPORTED_FUNCTIONS=['_say_hello']",
]
<file_sep># simple-wasm-example
**A [Rust](https://www.rust-lang.org/)... | b49f31e153d10af77dab56e51a458e708a794f65 | [
"TOML",
"JavaScript",
"Markdown",
"Rust",
"Shell"
] | 7 | TOML | derhuerst/simple-wasm-example | 9fb3cb3f528a6d9ace106378da56ff9156828204 | c392b1d5b0a98f0eec5e385c1ad1cd9003b0372a |
refs/heads/master | <repo_name>K-Tros/DWA15-P3<file_sep>/app/Http/Controllers/UserGeneratorController.php
<?php
namespace Project3\Http\Controllers;
use Project3\Http\Controllers\Controller;
use Illuminate\Http\Request;
class UserGeneratorController extends Controller
{
/**
* Responds to requests to GET /user-generator.
* R... | ec60fc924419d0d7612bec8d828c291a866e8b51 | [
"Markdown",
"PHP"
] | 6 | PHP | K-Tros/DWA15-P3 | 6eda07f5692f83f8fd886727f33ca035f6dd0c74 | b9a9460081f93d4c069c478a9e6c9fa64f13f1f3 |
refs/heads/master | <file_sep>"""Name-en-US: CSV Reader
Description-en-US: Ingests CSV data from a file, and uses it to change an object's PSR.'
"""
import c4d
import csv
def SetStatus(status):
op[c4d.ID_USERDATA,3] = status
def main():
# Init
SetStatus("")
# User Inputs
csv_filename = op[c4d.ID_USERDATA,2]
if... | a54af93cbb668b8c2ac000523aa8a9b1f51a32d2 | [
"Markdown",
"Python"
] | 2 | Python | donovankeith/C4D-CSV | ddfd78abcca045d9069955923b80764b0951dd26 | ceb757b4d0073027bca9505425afb1af9fc84812 |
refs/heads/master | <repo_name>sansuke05/dakimakura_arduino<file_sep>/dakimakura.ino
#include <SoftwareSerial.h>
#define buttonPin A0
int buttonState = 0;
SoftwareSerial android(12,13);
void setup() {
android.begin(115200);
Serial.begin(19200);
Serial.write("init");
pinMode(buttonPin, INPUT);
}
void loop() {
buttonState = d... | 47b7622e18df1fd315bcb7e1ad40d62ce11d1b5e | [
"C++"
] | 1 | C++ | sansuke05/dakimakura_arduino | c440a990fa51ba6936406041947c11a8d2f021eb | c96e026c61d80a1523263122ce612f83d7535283 |
refs/heads/master | <repo_name>doctor12th/test_task<file_sep>/README.md
1. MYSQL: create views from existing database
2. PHP: select and sort created views, using JQuery and JSON
<file_sep>/getdata.php
<?php
switch ($_GET['view']) {
case 'faktury' :
$viewName = 'faktury';
$orderBy = 'faktura';
break;
... | c6b87ae26d27d6364ed7fcf07bd0102c1d5c2e6a | [
"Markdown",
"PHP"
] | 2 | Markdown | doctor12th/test_task | 9b370e0f9819febaf1d9105491c546699f860b61 | 568a105f7c238651107075beb12113f2ef8d08ad |
refs/heads/master | <repo_name>PawanGulati/NITmdb<file_sep>/movie/migrations/0007_auto_20200413_0717.py
# Generated by Django 3.0.5 on 2020-04-13 01:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movie', '0006_auto_20200413_0650'),
]
operations = [
mig... | 4952f8eca00b6e5455ae6dea4f0161a9699b222b | [
"Python",
"HTML"
] | 13 | Python | PawanGulati/NITmdb | aee65d69c2d8178addaf4cedddde1cbe3f17f4ac | db96f04ab67e06b5d3b2c5b226031553282f4b19 |
refs/heads/master | <file_sep>package nmap
import "net/http"
// Mapper detects apps and checks if they are securely configured
type Mapper interface {
// App returns the app associated with the mapper
App() string
// KnownPorts returns the app known ports
KnownPorts() []int
// HasApp returns true if the response is associated with ... | fa015d1a8f7ad8b728a9baa09533fee0b876ae2f | [
"Markdown",
"Makefile",
"Go",
"Go Module",
"Dockerfile"
] | 31 | Go | jpadams/cloud-discovery | 8d875eb00beedfc508cf918bb02ea3d6be0ab6b8 | d37b11e12d403239ad6215c097fca5a384a2b70b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.