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>//Copyright (c) 2016 Hitachi Data Systems, 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.org/licenses/LICENSE... | 064c39e59ba8cad4816db7700141907a3c9f817f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Hitachi-Data-Systems/Freeboard-plugin-for-MongoDB | 31b8c4c051e415ea4e22d1aaf771204451be5af3 | 336c45ed8ea50ef2c89c8c0d62f39926fe14d0f7 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import Input from '../Input/Input';
import Button from '../Button/Button';
import { FormattedMessage } from "react-intl";
import Close from '../Close/Close';
import './Form.css';
import Div from "../../Div/Div";
class Form extends Component {
// Registration popup
... | 27c173e451410d9747412a813015c3f3db61b0d0 | [
"JavaScript",
"INI"
] | 13 | JavaScript | Gayahov/CRM_System | 88ba90745fc7fd37dfaf7987de917f55a7a91836 | 0dcb662231d781f7c30218a81c2e806e292b0112 |
refs/heads/master | <file_sep>/**
* physics.js
*
* @fileoverview Manages all physics related features, including forces,
* displacements, and collision detection.
* @author <NAME> <<EMAIL>>
*/
/** Velocity of airplane */
var velocity = vec3.create();
var AIRPLANE_HEIGHT = 0.0000;
/** Current thrust */
var thrust = 0;
/** Whethe... | b2b2fb2b3aef1f62cce4260e1c77523ae9d4a707 | [
"JavaScript"
] | 6 | JavaScript | saikiran402/collins | 835bfbbbe13aeed542c8085b173eb9b3b6c46ee6 | f605653d26a4d86b9ab3ca942442d51665060fd2 |
refs/heads/master | <file_sep><?php
include('../config/conexion.php');
include('../config/variables.php');
$idPlanEst = $_POST['inputIdPlanEst'];
$name = $_POST['inputName'];
$grade = $_POST['inputGrado'];
$cad = '';
$ban = false;
$sqlInsertMat = "INSERT INTO $tMats "
. "(nombre, nivel_grado_id, plan_estudio_id) "
. "V... | c89f694c3b6b92cadea5332ffd6fc5602281ac83 | [
"SQL",
"PHP"
] | 63 | PHP | SdMSyN/eva_pec | 19c28ddde9f3877e343391d3a0c9c0c5e801a714 | 93c490c9d4e0ef55f8fcc0e5f6b2d2787d72a7b2 |
refs/heads/master | <repo_name>kyskar/pcomp<file_sep>/component_tests/joystickServo/joystickServo.ino
#include <Servo.h>
const int Spin = 6; // switch input
const int Xpin = A0; // X input
const int Ypin = A1; // Y input
//const int Mpin = 3; // servo motor output
Servo myservo;
void setup() {
pinMode(Xpin, INPUT);
pinMode(Ypin,... | f03315cc822cde70790ca753533c42fd28d4a14a | [
"C++"
] | 4 | C++ | kyskar/pcomp | e7f5291d1eb9abfbb0dcb5c541a8602bc75f8ee1 | 8c448cd2d002234d3d21028a1c1740294c309b20 |
refs/heads/master | <repo_name>sppteam/iOS<file_sep>/iOS/spp.en.js
/*!
* SPP English Localization
* Created By Eugene 19/11/2015 Globalize 0.x
* Modified By Eugene 14/09/2016 Globalize 1.x
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(function (require, exports, module) {
... | 3d021983884eb6192ef25e9406c211c485e20278 | [
"JavaScript"
] | 1 | JavaScript | sppteam/iOS | b4ab444bea9ec6264799bd8a8c8861eaa1e27004 | 81a27730e68026246957d5931ee0950cc5a93475 |
refs/heads/master | <file_sep>const electron = require('electron'),
app = electron.app,
BrowserWindow = electron.BrowserWindow;
var win = null;
app.on('ready', () => {
win = new BrowserWindow({
width: 800,
height: 600,
show: false
});
win.on('closed', () => {
win = null;
});
win.loadURL('file://'... | c925a247094948120573be6a50021485bc5c2f66 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | LouKnauer/PodcastProton | 23da375e18378215471652cf79be8cf488b23bb3 | 122cc874b40a75c64b9f0d3debb44edd42e03458 |
refs/heads/master | <repo_name>chrisgeary92/osx-cpfrom<file_sep>/README.md
# Copyfrom
Copyfrom is a simple bash function for OSX that attempts to copy a directory and it's sub directories into the current working directory.
## TLDR
Create a directory to store your packages under `~/Desktop/packages`, create a `demo-package` directory c... | 1f22dbf4cabfa3d1d0dd221934346171d25728ab | [
"Markdown",
"Shell"
] | 3 | Markdown | chrisgeary92/osx-cpfrom | 09dd3e5039c6b57e9a96834d107f484c8b390998 | 1314e2faeca24abb77eba1544500f106bdffe0b2 |
refs/heads/master | <file_sep>#!/usr/bin/bash
BASE=129.22
if [[ $CPUS == "" ]]; then
CPUS=8
fi
getoneip() {
IP=$(dig -x $1 @8.8.8.8 | grep arpa | grep PTR | awk '{print $5}' | grep -i edu)
if [[ $IP == "" ]]; then
return 1
fi
echo ${IP}
}
printip() {
ADDR=$(getoneip $1 || echo -n '')
if [[ $ADDR =... | 9bf4f23f9bd07be24a87a9fa9231e1611ac798b1 | [
"Markdown",
"Shell"
] | 2 | Shell | raidancampbell/Bastille | e14fff6a9417ec361c572f317262aa9655eefe63 | 9dcb7129191cd237f4041ed80960d9664022d69c |
refs/heads/master | <file_sep>var router = require('express').Router();
const taskController = require('../controllers/task.controller');
router.post("/", taskController.create);
router.put("/:id", taskController.update);
router.get("/show_user_tasks/:id", taskController.findAll);
router.get("/:id", taskController.findOne);
router.delet... | b6a1ac356d18bff2d482aacf510b1dac5f685acb | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | pkylevillegas/to-do-list-api | 603902fc0fe85798c91fcad85193c995cb2f710c | f56bff06817bfeea35670ff160938f891d0189f9 |
refs/heads/master | <repo_name>Creestoph/Blackjack<file_sep>/server/server.py
from random import shuffle
from flask import Flask, request, jsonify
cards_points = {
1: 2,
2: 3,
3: 4,
4: 5,
5: 6,
6: 7,
7: 8,
8: 9,
9: 10,
10: 10,
11: 10,
12: 10,
13: 11
}
class Card:
def __init__(sel... | c9310f6b1ee876d9a74a9bd771378c359bb3e17e | [
"Markdown",
"Python"
] | 4 | Python | Creestoph/Blackjack | ede6a4fa6cfe8f249abe6aa053ff5070d6641d91 | 20912e9341452e5fdd8819aa8db5dbba0076751d |
refs/heads/master | <file_sep>import React from "react";
import "./Pet.css";
import ApiService from "../../services/ApiService";
import "./Pet.css";
class Pet extends React.Component {
constructor(props) {
super(props);
this.state = {
pet: null,
adopted: false,
errorMessage: null,
};
}
handleAdopt... | b029fd1e1e01396d81d8625665242e0790b99e0b | [
"JavaScript"
] | 2 | JavaScript | dc5will/DSA-Petful-Client-William | d63b7249f479e04689b0aaef666706298076a779 | 1d1e9d8ba569143c8507694ae6856ecdda0517a0 |
refs/heads/master | <repo_name>yaseenshaik/amazon-keywork-relevancy-analyzer<file_sep>/migrations/20171026183419_create-all-tables.js
exports.up = function(knex, Promise) {
return knex.schema
.createTableIfNotExists("categories", function(table) {
table.string("alias", 100).primary()
table.string("name")
table.time... | ce633fbc3c1c17e82564c461a6b3977dd520aeec | [
"JavaScript",
"Markdown",
"Shell"
] | 8 | JavaScript | yaseenshaik/amazon-keywork-relevancy-analyzer | c51518825b4996dfdfb05a0e0514a65bfd3a43cc | e600652554d3c905f20a5f5ee8ff3767a9912eef |
refs/heads/master | <repo_name>siderischristos/javascript-basics<file_sep>/05.03-ConstructorFunctions/index.js
// Constructor Function (use Pascal notation (OneTwoThreeFour))
function Circle (radius) {
this.radius = radius;
this.draw =function(){
console.log('draw');
}
}
const circle = new Circle(2);
console.log(cir... | 8947e13a25ef8e505abbaf4e4520f4386d769c0a | [
"JavaScript",
"INI"
] | 14 | JavaScript | siderischristos/javascript-basics | c3ca755d36fbe8afdc9660c7454d4ba1a1027369 | 73bdd0bc33136c7c44e07b268ab1edf039ee43b1 |
refs/heads/master | <repo_name>uhtikiber/pnpf_uncalibrated_lib<file_sep>/tests/pnpf_benchmark.cpp
#include <Eigen/Dense>
#include <benchmark/benchmark.h>
#include <iostream>
#include "pnpf/solvers.hpp"
#include "data_generation.hpp"
using namespace pnpf;
template <class Solver> void BM_PNPf(benchmark::State &state) {
using Type = ty... | 7e38773cdff17dedf21277ee4439d11ee5ba7d19 | [
"Markdown",
"C",
"CMake",
"C++"
] | 10 | C++ | uhtikiber/pnpf_uncalibrated_lib | 9c56f09ccbf9bafab4c97fc089acd7d6a87e4453 | 12d922ee10621c33a064f335f10929c137ed0842 |
refs/heads/master | <repo_name>sofi-g/car-app<file_sep>/src/components/Body.jsx
import React, { useState, useEffect } from 'react'
import axios from 'axios'
const Body = () => {
const [userId, setUserId] = useState('')
const [brand, setBrand] = useState('')
const [model, setModel] = useState('')
const [color, setColor] = useState... | a156a975286a93cc7e6e39a9ba218b860319d9e3 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | sofi-g/car-app | ec7425a3e47f511ffbc673923a4faf6bebf3a326 | 235985633dadec43b6dc8200b51c3c74de35a6ce |
refs/heads/master | <repo_name>kolov/mini-node-server<file_sep>/app.js
var http = require('http')
const shell = require('shelljs')
var server = http.createServer((function (request, response) {
let body = [];
request.on('data', (chunk) => {
body.push(chunk);
}).on('end', () => {
body = Buffer.concat(body).toString();
response.wr... | 6d56392900f430504babfdb15dfcad41260e14c6 | [
"JavaScript"
] | 1 | JavaScript | kolov/mini-node-server | 2d06bb4b45ec1b18b9096cb9bc135432f9fbea7b | dc96d91fa9d3291e110c5ad9bd68bdb6c130962a |
refs/heads/master | <repo_name>ajinkyaT/ori<file_sep>/items.py
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Amazon1Item(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
... | 52cd584a2e9d21501cb9d28f1ede902ec495655d | [
"Markdown",
"Python"
] | 3 | Python | ajinkyaT/ori | e9fd466d951ec3696abbb535687a635f51235247 | b3ec904da0eeab3f45942cb723d9622409535a75 |
refs/heads/master | <file_sep>
const fs = require('fs');
const {parse, unparse} = require('papaparse');
fs.readFile("inventory.csv",(err,inv)=>{
const invJson = parse(inv.toString());
console.log(invJson);
fs.readFile("nfs.csv",(err,nfs)=>{
const nfsJson = parse(nfs.toString());
console.log(nfsJson);
l... | 03b05bfcee49395fc210ecac78a1f398e9b82aca | [
"JavaScript"
] | 2 | JavaScript | yoans/DeckTools | ddf42841011c0412979c2d6208990300b8b7e62d | 1a0a40cba5e024f7b6bf747588c03a075c8677af |
refs/heads/master | <repo_name>barthess/qtbenchmark<file_sep>/renderthread.cpp
#include <QDebug>
#include "renderthread.h"
RenderThread::RenderThread(QObject *parent) :
QThread(parent)
{
restart = false;
abort = false;
}
RenderThread::~RenderThread()
{
mutex.lock();
abort = true;
condition.wakeOne();
mutex.u... | d2a602634d58701615f540514aaab337a14d7dd0 | [
"Markdown",
"C++"
] | 4 | C++ | barthess/qtbenchmark | a816e53082667417535682c54fe8f1aeeb4de33d | 55138d566f9313f07f4ea3df678a4c0a17710803 |
refs/heads/master | <repo_name>kevinkeithley/ToiletPaperMetrics<file_sep>/app.R
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application
ui <- flui... | 80f8fddb136201c3036444f1e253a1152245d47b | [
"Markdown",
"R"
] | 2 | R | kevinkeithley/ToiletPaperMetrics | 512d7d782e20bdedc6c5ed96ce7d568681f7bb60 | bf53203eefe7d0cd309d075b911be752f6931e5a |
refs/heads/master | <file_sep>plugins {
id 'ru.d10xa.allure' version '0.5.5'
}
group 'selenium.com'
version '1.0'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'ru.d10xa.allure'
repositories {
jcenter()
}
dependencies {
compile group: 'com.codeborne', name: 'selenide', version: '4.8'
compile group: 'org.testn... | 97e98a14d58e3e1eb9333f37c165dd226ed188a0 | [
"Java",
"Gradle"
] | 5 | Gradle | vitaliifokine/com.selenium | 27275424abaee9bccd2f6f09a199b7f54e79dfd7 | c947349fed66a0ecbcbd974467531e84aa4772f8 |
refs/heads/master | <repo_name>dimitrinaama/Red-To-You<file_sep>/Red-To-You.py
import praw
from moviepy.editor import *
from PIL import Image, ImageFont, ImageDraw
import textwrap
import time
import shutil
import re
import glob
from random import shuffle
import threading
import json
import csv
import pandas as pd
from praw.mo... | 8972d3eb79b8aa5c6a166ad1709c841318ed6c78 | [
"Markdown",
"Python",
"Text"
] | 3 | Python | dimitrinaama/Red-To-You | bb74c2043d1f2b9eb2fcc95eaa9ef2d435882e6c | 9de70d89a6fad4139c8266428899ad5290c4a618 |
refs/heads/master | <file_sep>//
// ViewController.swift
// homework2
//
// Created by user160572 on 10/31/19.
// Copyright © 2019 user160572. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var label: UILabel!
var count = 0
override func viewDidLoad() {
super.viewDid... | 490086b5982ea87639090e777b97d67c267a2bbf | [
"Swift"
] | 1 | Swift | emuuul/homework | 7a284a017f72c23357b86ce66dac42d2c48e4bcd | 86618bbb483f456cda7e7bbc4fbe95f4694a3b6e |
refs/heads/master | <repo_name>sheronov/TestComposerPackage<file_sep>/src/WebRush/Status.php
<?php
namespace WebRush;
class Status
{
private const SUCCESS_CODE = 200;
public static function getStatus(): string
{
return 'All services are work normally.';
}
public static function getStatusCode(): int
{
... | c698841ed945d386593b04a33a649647a8b297a6 | [
"PHP"
] | 1 | PHP | sheronov/TestComposerPackage | 5a6e13495d735cf70c1fe764390e7e8c98274552 | 9d2845811650ff7fe9b720b0640e20bac36a681b |
refs/heads/master | <repo_name>dpgc11/DsAndAKt<file_sep>/src/sort/InsertionSort.kt
package sort
class InsertionSort {
companion object {
fun printArray(arr: IntArray) {
for (i in 0 until arr.size) {
print("${arr[i]}\t")
}
println()
}
}
fun sort(arr: IntArra... | dbc1575fd5548c6eb3b0c2821f87e5a91af43b26 | [
"Kotlin"
] | 19 | Kotlin | dpgc11/DsAndAKt | b107084190e1cb56b74707375ee4a3707f2b46d0 | ef65da9aa000ca0cd8c46506af9cc6f1b33e1279 |
refs/heads/master | <file_sep>require_relative './artist.rb'
class Song
attr_accessor :name, :artist, :genre
@@all = []
def initialize (name)
@name = name
self.save
end
def save
Song.all << self
end
def self.all
@@all
end
def self.new_by_filename(filename)
... | ab28ff11e76aee9e698744e4d3ab2c7f6acd3e81 | [
"Ruby"
] | 3 | Ruby | KaladaJumbo/ruby-oo-object-relationships-collaborating-objects-lab | 86463c5052fd37833f1cb1e3c3007ae73a509fba | d697f374fd207d2cf4a1c96a90cd44f36743d92d |
refs/heads/master | <repo_name>juancampa/membrane-agent-ticker<file_sep>/src/index.js
import { root, sheet, currencies } from './schema';
export const init = () => {
return setTimer('onTimer', 0.1, 10);
}
const SYMBOLS = [ 'BTC', 'ETH', 'XRP', 'MIOTA', 'XMN', 'LTC', 'XLM', 'VTC' ];
// Called every time the timer fires
export async fu... | 020cb6f916de4b3428dc3968708956c0c41c1cbf | [
"JavaScript"
] | 2 | JavaScript | juancampa/membrane-agent-ticker | e51e83e174fb2e47238a71fba1114607d301e3bd | a07198590ec3f669262a5853b03eb72719c85cb3 |
refs/heads/master | <file_sep>import static org.junit.jupiter.api.Assertions.*;
import java.util.List;
import org.junit.jupiter.api.Test;
class JSacad {
@Test
void test() {
Sacad plataforma = new Sacad();
Contato contatoEscola = new Contato("São José dos Campos", "1225646845");
Disciplina informaticaBasica = new Discipli... | 5b3e0b12aed9fcb36190f1c11e9bb24a1b4e59e3 | [
"Java"
] | 3 | Java | leonardormlins/classesDiagram | 4c921c326f2e3d625f86b79d164b5db24e4e2084 | 8908da5152c8df480a7be7b50173f6a259ed3bb7 |
refs/heads/master | <file_sep>makeCacheMatrix <- function(x = matrix()) {
inverse <- NULL
setMatrix <- function(matrix = matrix()){
x <<- matrix
}
getMatrix <- function() x
setInverse <- function(inverseMatrix = matrix()){
inverse <<- inverseMatrix
}
... | 1cecd7397d947dc7eae7dfa7fe395ab7948a8069 | [
"R"
] | 1 | R | gburgess7/ProgrammingAssignment2 | a2d6e192df5e086b72b86f74343e8c93951fd8be | d461d3b82a815926922db7747bcbe8abc43b3ccc |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import * as $ from 'jquery';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss']
})
export class LoginComponent implements OnInit {
form={
email:"",
password:""
}
constructor() ... | 0e9ae69507da9512c3437bccca46caaab336a2f4 | [
"TypeScript"
] | 2 | TypeScript | ksakshi2723/wk24 | 23c5695d16d9f9368bfdb69038d4d34e0d7815fd | ad38483d2ba7a649e037ac247ef4fc2e55194b40 |
refs/heads/master | <file_sep>import {
GraphQLEnumType,
} from 'graphql';
const MakeEnumType = new GraphQLEnumType({
name: 'MakeEnum',
values: {
AUDI: {
value: 0,
},
BMW: {
value: 1,
},
MERCEDES: {
value: 2,
},
VW: {
value: ... | 7a2126cfd0b8599744890a1a5fa76bdb50622e10 | [
"Markdown",
"JSON",
"TypeScript"
] | 15 | TypeScript | minchom/instamotion | 269ea54661e8a36bc8016b7ad41a0da2df08684a | cc53a34c7a68c7b3f6d81d37f6e3ab1cc0a78cdd |
refs/heads/master | <file_sep>import React from "react";
import firebase from "../../firebase";
import MessagesHeader from "./MessagesHeader";
import MessageForm from "./MessageForm";
import Message from "./Message";
import { setUserPosts } from "../../store/actions";
import { connect } from "react-redux";
import { Segment, Comment } from... | 0f03adb6f870bf28d51e6689c98b87f615416434 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | Vincent-Vais/Slack-clone | 1e8ab3806c39614751d8ebd63884b7c8f21a85fb | 5eff55951b7bef2d19b5bbee64a880530a4989a6 |
refs/heads/main | <repo_name>NUCG1GB/Magnetic-dipole-field-calculations-in-parallel<file_sep>/dipole_field_parallel.cpp
#include <iostream>
#include <vector>
#include <cmath>
#include <numeric>
#include <mpi.h>
#include <iomanip>
double avg_1D(std::vector<double> &array)
{
double sum=0;
int count=0;
for (int i =0; i<array.s... | 0a1a445da102bbbcb0eebd7b534e806b3c73e2bb | [
"Markdown",
"C++"
] | 3 | C++ | NUCG1GB/Magnetic-dipole-field-calculations-in-parallel | 1c0cb3f3f4d66a308617e2da4d419de906eaa9d1 | 84dab0f06d3b4cabd1fc17ce6e008861cd850c6e |
refs/heads/master | <file_sep>## Put comments here that give an overall description of what your
## functions do
## makeCacheMatrix allows the caching of the matrix and its inversion through the variables x and i that lives only within the enclosing environment
## cacheSolve is the actual matrix inversion function but it firsts checks if... | 81b66d6668aafe8e88f6b7db0c11f673cad5b299 | [
"R"
] | 1 | R | ajchang84/ProgrammingAssignment2 | 77e17a46c5cd3381823329daf69818b33420d8ab | f888a07312fe8009e33250c4d88b4266832a5c03 |
refs/heads/master | <repo_name>Tatharo/Maes<file_sep>/README.md
# Maes
Start up
<file_sep>/src/com/tatharo/crm/persistence/repository/GenericRepository.java
package com.tatharo.crm.persistence.repository;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import o... | a5f5a4f10244461264899bf75c00d3c22634c998 | [
"Markdown",
"Java"
] | 3 | Markdown | Tatharo/Maes | 8c12f3fd4ef5af82fed39dd7c7c8b214042e565e | 7754881c53c34a48f9725610947748e0f811e660 |
refs/heads/main | <repo_name>leomesssssssi/Li-jia-ming<file_sep>/clf.py
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
from sklearn.decomposition import PCA
import numpy as np
import ... | b0ce8e0fdc2c070d87e9d25a2913a24b6e705134 | [
"Python"
] | 3 | Python | leomesssssssi/Li-jia-ming | cc93d4d6b401ca36d046a275cb9fbb32cf56c096 | 33ff73c5f27191736e2994ad22ede70a81438525 |
refs/heads/master | <repo_name>Anjaliani/Javascript<file_sep>/growth.js
var output = [];
var fs= require('fs');
var lineReader = require('readline').createInterface({
input: fs.createReadStream('Table_1.3.csv')
});
lineReader.on('line', function (line) {
var jsonLine = {};
var lineSplit = line.split(',');
jsonLine.CountryName... | 0f07ccdef6479c638ecdaa108280f967eee02dba | [
"JavaScript"
] | 1 | JavaScript | Anjaliani/Javascript | 790f8e219c30cd4b3935ca7b9264d4d4b2ae3fec | ca480737279dada3eb714b38db21082d01c4d03a |
refs/heads/master | <file_sep>source PiPyEnv/bin/activate
gunicorn --workers 1 --bind unix:pipy.sock -m 007 src:server
deactivate
<file_sep>Flask
numpy
picamera
opencv-python
<file_sep>from picamera import PiCamera
import cv2 as cv
from flask import Flask
from flask import make_response
from flask import Response
from flask import request... | e8f11c9bb20bd8a278246f1d413e6e0927eb68fc | [
"Python",
"Text",
"Shell"
] | 3 | Shell | zim96/PiPy-Imaging | c1e92d11e18e871bad9fc29c935d9d8657ba7f2d | f7f63ef670e74aba300f3d48facfa33aa55b0675 |
refs/heads/master | <repo_name>dearhui/MHAboutViewController<file_sep>/Sources/MHAboutViewController/Classes/MHAStoreViewController.swift
//
// MHAPurchaseViewController.swift
// MHAboutViewControllerSample
//
// Created by <NAME> on 2018/2/15.
// Copyright © 2018年 dearhui studio. All rights reserved.
//
#if canImport(UIKit)
import U... | 67112dc30028c294bd56a31063945117d66a39c5 | [
"Swift",
"Markdown"
] | 7 | Swift | dearhui/MHAboutViewController | 5fdf2378cff753166591ebe5d1ff43dc414a7cd5 | 1e018463cd6c72529b5aae01aadc516e064a6e50 |
refs/heads/master | <file_sep>package com.cjq.bejingunion.event;
/**
* Created by CJQ on 2015/8/13.
*/
public class EventShutDown {
}
<file_sep>package com.cjq.bejingunion.adapter;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | d21c6bebf7a79f0947a408333256d848d426e520 | [
"Java"
] | 45 | Java | chengjinwu008/BejingUnion | ee3149408d1629ae6b39e0af74b13238310524e3 | 048db766d8668f967a78f9f6f0e025b9ffc0fec8 |
refs/heads/master | <repo_name>reficashabong/appforheroku<file_sep>/app.py
import pandas as pd
import numpy as np
from flask import Flask, request, render_template
import pickle
app = Flask(__name__)
model = pickle.load(open('model.pkl','rb'))
@app.route('/')
def home():
return render_template('form.html')
@app.route('/predict',me... | 3357cf3ac92b582aeacab694b325110ddffcc2fe | [
"Python"
] | 1 | Python | reficashabong/appforheroku | 4aeeb517f2bb63a2bb2794a0caa3fbbdfd76137f | eef687becef3a7cbb6b9c7ce8b40fd4eb9b93969 |
refs/heads/master | <repo_name>meyejack/libgm-c<file_sep>/src/main/sm2.c
#include "sm2.h"
#include "openssl/pem.h"
#include "string.h"
EC_KEY *GM_SM2_key_new()
{
EC_KEY *key = EC_KEY_new_by_curve_name(NID_sm2);
if (key)
{
if (EC_KEY_generate_key(key) != SUCCESS)
{
EC_KEY_free(key);
key ... | c629a5de0e7d28c94df4b71799bfc6eb6400d2f5 | [
"Markdown",
"C",
"Makefile"
] | 9 | C | meyejack/libgm-c | 7a9b2b14d405b4b413239f88f9f9ac68d6685e83 | 6aa380daae23d4074af74ca7f29e29138cae21c2 |
refs/heads/master | <file_sep>package com.example.administrator.calculator;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public c... | 71696e562eb3317a92fbf962564455449e21dba3 | [
"Java"
] | 1 | Java | chenprincess/Android-calculator | 409ea9d30c57e659786f897869342a7100f0a034 | 0d6744da9a18584100b195bc0546979e98f496df |
refs/heads/master | <repo_name>stefanoscolapasta/Operating-Systems<file_sep>/Bash/leggere.sh
exec {FD}< miofileNoNL.txt;
if(( $? == 0 )); then
while read -u ${FD} RIGA; [[ $? == 0 || $RIGA != "" ]] ; do
echo $RIGA;
done
exec {FD}>&-
fi
<file_sep>/ConcurrentProgrammingExercices/Mutex/Piattello/Makefile
CFLAGS=-ansi -Wall -Wpedantic
LI... | fbac245aa5a3060039df2d48ab601e76c5c5a617 | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 64 | Shell | stefanoscolapasta/Operating-Systems | 48943ad834ca36a0d0a54473795d7f2e6d9b641c | e63392e5fdeb79972fdcf8be440b9fda2ac5d7ca |
refs/heads/master | <repo_name>Suleimanov-Renat/2ndTask<file_sep>/src/kpfu/itis/models/RedColor.java
package kpfu.itis.models;
/**
* Created by Suren on 2/21/2017.
*/
public class RedColor extends Color{
public RedColor() {
this.colorName = "RED";
}
}
<file_sep>/src/kpfu/itis/models/Shape.java
package kpfu.itis.models;... | 034fe4edd43c4ec8cb0827da51453ff4f44e3716 | [
"Java"
] | 6 | Java | Suleimanov-Renat/2ndTask | 7d5883bc227ed15577dd9c050193d6316592ec10 | 6ccf57c3152ff6b212b9aa2367af40bcf0f7dba7 |
refs/heads/master | <repo_name>kimbahintze/GitWalkThrough<file_sep>/CookingConverter/IngredientModel.swift
//
// IngredientModel.swift
// CookingConverter
//
// Created by <NAME> on 5/7/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
import Foundation
<file_sep>/CookingConverter/Ingredient.swift
//
// Ingredient.swift
// Co... | e7e8a4f0655117ce43bf3ed9482fe496d47f91bd | [
"Swift"
] | 2 | Swift | kimbahintze/GitWalkThrough | 71fa167ae88681f05226081cad6874896aaa2992 | 1bfacd285c00c42f3c73f780bd2ffc6bfc508052 |
refs/heads/master | <repo_name>sttic/SEG2106-assignment-2<file_sep>/README.md
# SEG2106 Assignment 2 - Lexical Analyser
See [Assignment 2.docx](Assignment%202.docx) for assignment instructions.
Content source is in [assignment2.md](assignment2.md) with graph files in the [graphs](graphs/) folder.
Final PDF document is built to [assignme... | 5a79753187aed37f2d9aabc3803c18434745289e | [
"Markdown",
"Makefile",
"Shell"
] | 5 | Markdown | sttic/SEG2106-assignment-2 | 9f8b5266232d04fc5027c6d48139e87eb33bdcc8 | 1299f0d5aae079c3e733b4566679738dc8cdb031 |
refs/heads/master | <file_sep>#! /usr/bin/python3
# -*- coding: utf-8 -*-
from tkinter import *
import string
from random import randint, choice
def genere_pass():
password_min = 8
password_max = 8
all_chars = string.ascii_letters + string.digits + "!?/@"
password = "".join(choice(all_chars) for x in range(randint(passw... | f303bbc0356bd77d088b12315c788dd902fac6fa | [
"Python"
] | 1 | Python | Mapir08/GenerateurPass | e5ddbaf4c7b64390b010082f0be6c93986acb1ad | cbfc2a6b4f7f455b382617eb8c52b00571cc19bd |
refs/heads/master | <file_sep>INSERT INTO burgers (burger_name, devoured) VALUES ("Vegan Burger", true);
INSERT INTO burgers (burger_name, devoured) VALUES ("Chicken Burger", false);
INSERT INTO burgers (burger_name, devoured) VALUES ("Impossible Burger", true);
INSERT INTO burgers (burger_name, devoured) VALUES ("Turkey Burger", true);
I... | 8d35613dbc911855ca959f0e22380492b9a6f3d5 | [
"SQL"
] | 1 | SQL | labiosj/Eat-Da-Burger | 5691686bff11d84fd9c0f283383c768233028d7a | abfa85729c28a849f9d36b33e48ba7f903fd25de |
refs/heads/master | <file_sep>using System;
namespace WikiImages.Algorithm
{
public static class Levenshtein
{
public static int Distance(string string1, string string2)
{
if (string1 == null)
throw new ArgumentNullException(nameof(string1));
if (string2 == null)
... | a0764d1a81a6bc5c85449b319fe1487aa3fc4e61 | [
"C#"
] | 17 | C# | Backs/WikiImages | 4de9a507ce1a0c539b15f31f9b2c2110ed0079f4 | 295d2eb3e1b321acef8128ba47ef57ad2435c45b |
refs/heads/master | <file_sep>// import DS from 'ember-data';
//
// export default DS.RESTSerializer.extend({
// normalize(model, hash, prop) {
// hash.id = hash._id;
// delete hash._id;
// // if (prop === 'comments') {
// // hash.id = hash._id;
// // delete hash._id;
// // }
//
// return this._super(...a... | 5aa59466205dc3b2126bfc32cac16f7c11c59b96 | [
"JavaScript"
] | 10 | JavaScript | edutilos6666/EmberjsApp5 | d8f6c9cc3ded4e767241b383329460f566214182 | 72a38e980f1baeb2587f729f49d0af54a7bc6133 |
refs/heads/master | <file_sep>import java.util.ArrayList;
import java.util.List;
public class PhoneBook {
private List<PhoneEntry> phoneEntryList = new ArrayList();
public List<PhoneEntry> getPhoneEntryList() {
return phoneEntryList;
}
@Override
public String toString() {
return "В телефонной книге ... | ea46c779f01a685b3ad279d70dcc46e2610bd5f4 | [
"Java"
] | 2 | Java | ebataeva/homeWork10_javaCore | 32fd3057a1a610225fdd8e37eeba600339348a6b | 817ee25e6dc33f37f07c6145c379dab8920b89a0 |
refs/heads/master | <repo_name>HongyuanWu/methscRNAseq<file_sep>/MethLevelNearbyFunctionRegion.R
setwd("/media/Home_Raid1/zhl002/NAS1/projects/mouse_WGBS/bedfiles/BED")
files=Sys.glob("*enhancer*txt")
data<-read.table(files[1]);
main="enhancer"
xlab=paste("Distance to center of"," main(bp)",sep="")
ylab="Methylation level(Beta)"
pdf("enha... | 4362f4da1b715dce5207ce40585025804ec5cb80 | [
"Markdown",
"Text",
"R"
] | 3 | R | HongyuanWu/methscRNAseq | f12d8a550c755dc177aca094499d8ba064d3dcac | 44bb14518017ef846771e93bf7397cd8ba440fcc |
refs/heads/master | <file_sep>var client = require('twilio')( //Calling Twillion API to use their messaging service
'',
''
);
var express = require('express');
const translate = require('google-translate-api');
/*
Express is an addon that allows Node.js to run web application on the server.
Web Applications cab be run through ... | fd6f6f7a52a314efe554d2fff27944d27e82bc8b | [
"JavaScript"
] | 1 | JavaScript | egorsemeniak/NE-TXT-Code | e7ce74a36a0ca63db08d074c160d75d9803fe033 | 6e64c1969e77bb68e87088ad4efc40877bc1a4f4 |
refs/heads/master | <file_sep>#!/usr/bin/env node
var spawn = require('child_process').spawn;
var cli = require('../');
var HUGO_DEFAULT_VERSION = process.env.HUGO_VERSION || '0.37.1';
var CONFIG_FILE = 'hugo-version.json';
var args = process.argv;
if (/node(\.exe)?$|iojs$|nodejs$/.test(args[0])) {
args = args.slice(2);
}
var opt... | d09271265531f98ddd8d0c46d411b9df24383a12 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | UXSoc/hugo-cli | 29595e98314a14d4610d8b2ef7330c743e036570 | cb794538ea1dee949fd7e1ecbb20ef7e47636302 |
refs/heads/master | <file_sep>cmake_minimum_required(VERSION 2.8)
project(catch-mini)
# Enable C++11:
set(CMAKE_CXX_STANDARD 11)
# Define sources:
set(SOURCES
src/catch.cpp
)
# Add a library with the above sources:
add_library(${PROJECT_NAME} ${SOURCES})
# Define include directories:
target_include_directories(${PROJECT_NAME}
... | c1a6025e2e50dcc7529f4689b25e08fb0c6e9fa0 | [
"CMake",
"C++"
] | 10 | CMake | smr-nn/pocket-tensor | 0779a0fd0948cedd625f19cfc3ff3f5f14a551ef | d8c7da47cb0beeeafdf09d32f8f60faa2074bf35 |
refs/heads/master | <repo_name>prasang7/react-native-maps-app<file_sep>/index.android.js
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ToastAndroid
} from 'react-native';
import MapView, { Marker } from 'react-native-maps';
let lat1 = 0, lon1 = 0, lat2 = 0, lon2 = 0;
let counter = 0;
... | 7fe9f1ff30a44476827f80d939140421a6d85e8a | [
"JavaScript"
] | 1 | JavaScript | prasang7/react-native-maps-app | fe536d6a03cbcfdd233c74c8043371909e3b6684 | a3455ce6550d90bcbf0e9b3ee850b8b246dcb102 |
refs/heads/master | <repo_name>Mridul-7/SSH-login<file_sep>/sshlogin.py
#!/usr/bin/python
import pexpect # allows to welcome all the processes in ssh login
PROMPT=['# ','>>> ','> ','\$ ']
def send_command(child,command):
child.sendline(command)
child.expect(PROMPT)
print(child.before) #print output of command we send to ta... | a18268d24a1d357b00a852da4d067df57157615a | [
"Python"
] | 1 | Python | Mridul-7/SSH-login | 1f1679f277211afceb928906c63a70c84a59bb90 | 2ee71dd9f70159ab45d20e3fbaf2744e3aedce72 |
refs/heads/master | <repo_name>stevecormier/stephencormier<file_sep>/js/index.js
$(function() {
$("img", "ul").fadeOut("slow");
});
$("li").hover(
function() {
console.log("in");
$(".project", this).fadeOut( "slow" );
$("img", this).fadeIn("slow");
}, function(){
$(".project", this).fadeIn( "slow" );
$("img", this).fadeOut... | 929ab8fac37bc26be4c4b8d015eb79c59cbd86df | [
"JavaScript"
] | 1 | JavaScript | stevecormier/stephencormier | 22edc7ae8f237daa3d984cb327e8fd5543b16485 | bc3162fbafec5df90ddbfb6d59d3e4f84114116c |
refs/heads/master | <repo_name>tristanfrn/ReadyApp<file_sep>/app/src/main/java/com/ready/readyapp/ListActivity.java
package com.ready.readyapp;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.graphics.Bitmap;
... | 5c64f590cec5a6634dbd1f2f6615b2cee008074c | [
"Markdown",
"Java"
] | 4 | Java | tristanfrn/ReadyApp | 8bce7c48a0b238fa7ca4b4094d3062b66701e2ed | 0cf4fe5ed9baccad052156891e8d6d6a868507eb |
refs/heads/master | <repo_name>zzigsa/zzigsa<file_sep>/mypage/views.py
from django.shortcuts import render,redirect,HttpResponse,get_object_or_404
from django.contrib import auth
from first.models import User,Writer,EmailConfirm
from django.contrib.auth.decorators import login_required
from django.urls import reverse
from django.conf impo... | a24da7b0b551f5972edc73e80bda59fda331a8c0 | [
"Python",
"Text",
"HTML"
] | 20 | Python | zzigsa/zzigsa | a045bacbc9e0d25f053fd1c417c474b5bad07407 | d986f609809d06a968fc87562d119bcb7386224e |
refs/heads/master | <file_sep>Exercise from Week 5 of Ironhack Web Development Bootcamp
----------------------------------------------------------
<file_sep>$(document).on("ready", function () {
$(".js-search-artist").on("click", function (event) {
event.preventDefault();
$('.js-track-list').empty();
$('.js-artist-list').empty();... | fa443f137c0252f601f712f82faeca98f074cd08 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | andrezafeu/spotify_api | 2f9d875048ee2e1f6d622bda7c946cbfc06d9396 | 41ca75651b63bce893212f55106c7bb5a4773e0e |
refs/heads/master | <repo_name>vasyavasilisa/lr7Last<file_sep>/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>lab7</... | 29eabf01adb4bda4b11eda293e85f38c65969c26 | [
"Java",
"Maven POM",
"SQL"
] | 5 | Maven POM | vasyavasilisa/lr7Last | 0298ef353c9f5d76e07aa470da26b2dd30b37459 | eadfb4d6af069623acd3f3de34a8e19404ce6405 |
refs/heads/master | <file_sep>module.exports = function() {
this.When(/^I click on "([^"]*)"$/, function (arg) {
browser.waitForExist(arg, 2000);
browser.click(arg);
});
};
<file_sep>module.exports = function() {
this.Then(/^I see the user story named "([^"]*)" modified$/, function (arg1) {
browser.waitForExist('.table >... | 4bd21d842a4fcafdb05772442d456112698214e1 | [
"JavaScript",
"Markdown"
] | 93 | JavaScript | valcol/ScrumNinja | cd856dcd75c028f3962b98459313db24091bbde0 | e75a9d6d992a1df42116b4b1f8d6636ad0412d0c |
refs/heads/master | <repo_name>jlrau/py_data_code<file_sep>/dash_snippets.py
# -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
df = pd.read_csv(
'https://gist.githubusercontent.com/chriddyp/'
'c78bf172206ce24f77d6363a2d754b59/raw/'
'c353e8ef842413cae... | dae7fd1992a37aa94003a957ef6052737116e355 | [
"Markdown",
"Python"
] | 3 | Python | jlrau/py_data_code | 39199848dbd3738c2642dcfd5abf1938de3c1fb8 | c22e0b923671d12dd7c405fb8324dafa62613060 |
refs/heads/master | <repo_name>Baugrems/hiochatbot<file_sep>/app.py
import random
from discord import Game
from discord.ext.commands import Bot
import requests
import asyncio
import os
from discord import Channel
from discord import Role
from discord import Server
import discord
import boto
from tatsumaki.wrapper import ApiWrap... | 83a8136a9dfba355536b514600ae97506cc4ac54 | [
"Markdown",
"Python",
"Text"
] | 3 | Python | Baugrems/hiochatbot | c6497310672d27516f53bdbe0da22dca57ca0e3e | 018e0a9d13cd4b72373689883d96b1f62792e66b |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
@Component({
selector: 'assimetrico',
template: `
<ul class="breadcrumb">
<li><a routerLinkActive="active" routerLink="/home" href="">Home</a></li>
<li>Vestidos</li>
<li>Assimétrico</li>
</ul>
<h1>assimétrico</h1>
`,
styleUrls: ['../... | cb4d768eb9300f2fa2b6727742f615db6b01cd9e | [
"TypeScript"
] | 13 | TypeScript | GuilhermeNZ/Projeto-Angular | f9761b36d3a2796753bf2d7b51b3ae34161f4616 | bc9a250b0401f0671cccdd4d4f2f70bb5c54483f |
refs/heads/master | <file_sep>import re
from collections import defaultdict
#BioPython
from Bio import SearchIO
from Bio import SeqIO
from Bio.Seq import Seq
#Django libraires
from browse.models import *
from djangophylocore.models import Taxonomy
from django.db.models import Max
from django.db.utils import IntegrityError
#Custom libra... | e63f219b7a0a9d9952e70b1e393e58a1991c0f99 | [
"JavaScript",
"Python",
"HTML",
"Markdown"
] | 18 | Python | Klortho/HistoneDB | 8d37a68e66ff38d5429487fb4368a4129e75b041 | 36e3bca7c3257298f5e9f32951b94a1bb4ec0853 |
refs/heads/main | <file_sep>// Define what you want `currentUser` to return throughout your app. For example,
// to return a real user from your database, you could do something like:
//
// export const getCurrentUser = async ({ email }) => {
// return await db.user.findUnique({ where: { email } })
// }
import { db } from 'src/l... | a871299d6f80a9b174201e08a923598ebae5f2d0 | [
"JavaScript",
"SQL",
"Markdown",
"Shell"
] | 51 | JavaScript | shiningblue7/rw-poc | 84cddae242597898eb516d65c39613813ddecd9f | 38b4feaf40c8ecc9dca3c64f9061752639b10dca |
refs/heads/main | <repo_name>Noor-Ansari/Baat-Chat<file_sep>/frontend/src/components/JoinPage/JoinPage.js
import React, { useState, useEffect } from "react";
import { useHistory } from "react-router-dom";
import styled from "styled-components";
function JoinPage() {
const [userName, setUserName] = useState("");
const [roomName, set... | 66dbdacdc5ecfc2b4a5aafa79658680b447dad6d | [
"JavaScript"
] | 4 | JavaScript | Noor-Ansari/Baat-Chat | e77a54d7af6d52ae957b2463334b84cf229950db | 014251fd1ddb3de9aea6ec2bdbac906b70864bc1 |
refs/heads/master | <file_sep>#include<stdio.h>
#include"node.h"
#include<string.h>
int main(){
link lnk={0};//创建一个链表
link_init(&lnk);//初始化
int size=link_size(&lnk);
printf("this link size is %d\n",size);//查看是否清空链表
link_insert(&lnk,1,"where is father",(float)7.6);
link_insert(&lnk,2,"where is mather",(float)2.5);
... | 11bee471228f03a003d5d4357763797c8d8dedf3 | [
"C"
] | 4 | C | kakazhangbao/movie-link | dcfce720fd803c307878a9848f69c69323494f29 | 21f67c8ddec0c1caca6aeae0a8d1c3509db6eb3b |
refs/heads/master | <file_sep>package main.java.servlets;
import main.java.databasetables.BotUser;
import main.java.datamanage.JSONAuthorizationDataSerializingClass;
import main.java.datamanage.UserDAOImpl;
import java.io.IOException;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.sql.SQLException;
import java.util... | fe47275c376a5c105f7c077549996ebaad0a5120 | [
"Markdown",
"Java",
"Maven POM"
] | 8 | Java | KhomenkoCode/vkfilebotwebsite | af0caa4e2f8055fdd34ae1ec1b401d75b3eb1366 | 50852e301346779e4078fadb6bf98ffc2396efcc |
refs/heads/master | <repo_name>RobReece/sandbox<file_sep>/JUnit4UsingAJUnit3SuperClass/src/test/java/com/rrc/junit/conversion/approach1/JUnit3SuperClass_NowJUnit4.java
package com.rrc.junit.conversion.approach1;
import static org.junit.Assert.*;
import org.junit.Rule;
import org.junit.rules.RuleChain;
import org.junit.rules.TestName;
impo... | c4d96ad2d3f3fc439896849caf971bf7d5426fdf | [
"Java"
] | 1 | Java | RobReece/sandbox | 8ee58fdead5b1e2436e62283b04f5e70a48266a5 | 263211dba6683ea2a3b7eaaf0ddf6b0e0a9a5825 |
refs/heads/master | <file_sep># datacleaningproject
This file explains how the script works, line by line, and how the tidy data set is created from the collected raw data
# Step by step description for the data cleaning project and how the uploaded run_analysis.R script works
##Intial steps
Set the working directory for R
Downloaded... | 37954abad964cbeacfab742dacd818dd26ba4daa | [
"Markdown",
"R"
] | 3 | Markdown | aks1807/projectdatacleaning | b34a3ee771246553203c363aa7b67fdf5960141d | c1418ff23ccf977a86ee6f9dfdee8b1282fcff80 |
refs/heads/master | <file_sep><?php
// redirect to list.php file
header('Location: list_purchase_order.php');
<file_sep>
<?php
if (isset($_POST['save_purchase_order']) && $_POST['save_purchase_order'] === 'submit') {
header('Location: list.php?message=success');
}
?>
<?php include('../template/header.php'); ?>
<?php i... | 780dd64bd0a9c7cdd8a8e04f5167bac6d182fa57 | [
"Markdown",
"PHP"
] | 28 | PHP | ffahmii/akpsi-ptsu | b6d62960db38faca6254afdb72c72d68668a25cc | d42c3a00cf9f90d143a17941b7c4f6f398139cfa |
refs/heads/master | <file_sep>json.extract! principal, :id, :created_at, :updated_at
json.url principal_url(principal, format: :json)
<file_sep># Atletibr
* Projeto para o site em português com informações do Atletico de Madrid
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your ch... | d099e647a55de3569e3fc935c96fe8e346f53765 | [
"Markdown",
"Ruby"
] | 2 | Ruby | axelzito/atletibr | ddfcb6d1f48e275171b6ecbd1ff6686bd4c43f6a | 1b54e9a046b02955113d5c53f54d95bfbed32c17 |
refs/heads/master | <file_sep><?php
$subjectPrefix = '[TechMiami Contact]';
$emailTo = '<EMAIL>';
$msg = 'Oops! Something went wrong. Try emailing <EMAIL>';
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$name = stripslashes(trim($_POST['form-name']));
$email = stripslashes(trim($_POST['form-email']));
$subject = stripsla... | ce8d9aab199d6a970fbe9260a476b1b095ad8b4c | [
"PHP"
] | 1 | PHP | mauromadeit/techmiami | d20feef4e6d72112e8eccbdbeacb767d506fbe0c | 5007dc1f9f5b060ca591231d1ee72b188fe6fd36 |
refs/heads/master | <file_sep>from django import forms
class NameForm(forms.Form):
your_name = forms.CharField(label='', max_length=50)<file_sep>from django.shortcuts import render
from credapp import creditCheck
from django.http import HttpResponseRedirect
from .forms import NameForm
def index(request):
form = NameForm()... | d3274c190f3246431f93711a4e9427542d3e875f | [
"Markdown",
"Python",
"Text"
] | 5 | Python | jawedib/CredditCheck | 9b7607b97491d26aab39d6e76aa6a1d1e7fa23ac | e82009d7196fc4fd08db089e2581c3571f338f4c |
refs/heads/master | <file_sep>from plyer import notification
from requests import get
import subprocess
import logging
import boto3
import yaml
import json
import os
logging.basicConfig(filename='Log.log', level=logging.INFO, format='%(asctime)s: %(levelname)s: %(message)s', datefmt='%d/%m/%y %H:%M:%S')
logging.FileHandler(filename='Log.... | f6ba6842c0ceae9271d190d18f4d2f256af76bcd | [
"Markdown",
"Python"
] | 2 | Python | HariboDev/aws-public-ip-detector-python | 71f7adfd702034b5f0f56e2ed77f71efe13fb8aa | 2c56df03994c76a9959981012a82e697d347b90c |
refs/heads/master | <repo_name>edwardchen40/itinerary-viewer<file_sep>/kml/test_geocodeKML.py
import geocodeKML
def test_parseAddresses():
addressesText = '''
Mozilla HQ; 331 E Evelyn Ave, Mountain View, CA 94041
Mozilla Paris; 16 Boulevard Montmartre, 75009 Paris
'''
assert geocodeKML.parseAddresses(addressesText) == [
{... | 08b07de466752b2f5bf18971d3d818c8fe848aa9 | [
"Markdown",
"Python",
"JavaScript"
] | 4 | Python | edwardchen40/itinerary-viewer | 45f1bb925144682c4f8a08a994abc9219156a290 | 353d485455d19cb86177bd63964d035173bb7163 |
refs/heads/main | <file_sep>/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.h
* @brief : Header for main.c file.
* This file contains the common defines of the application.
*********************************... | 264af1e6616fc3d71c0e632734faa16799c04630 | [
"Markdown",
"C"
] | 4 | C | mmtcoder/OV7670-Stm32F070Rb | faacfaa97e80f787f49df6244e96e0f9016fa298 | 4281a801c649a6f52cfa8c47e47119bbf8e03cc9 |
refs/heads/master | <file_sep>export interface IFabricUiNestingProps {
description: string;
context:any;
listData: any[];
}
<file_sep>export interface IFormWindowProps {
closeWindow: Function;
userDetails: { Id: number, Title: string, Team: string, Department: string };
nameChangeHandler: (nameChange:string, id:number) => void... | f0311db9b6eb871d1ba98881718900b03240a1ca | [
"TypeScript"
] | 4 | TypeScript | VB6Hobbyst7/FabricUiNesting | b224eabdd6e210f022c774bc74e9791cb720ec1e | ef5856b5edb0d14d7780c5eb47f70cda7858ed0e |
refs/heads/master | <file_sep>import java.util.Scanner;
public class QuadraticEquation {
double a,b,c;
double delta;
public QuadraticEquation(){
}
public QuadraticEquation(double a,double b, double c){
this.a=a;
this.b=b;
this.c=c;
this.delta=delta;
}
public double Discriminant(... | d21413df8ad0997f92f5ad6c5935f70c55f3714f | [
"Java"
] | 1 | Java | Dungqa/session3WBC | ed1d0ac1038b664ad31c4fb45aedae91fa70064d | 3c79a0d138b4d2108d2461cbb1c64080291f414f |
refs/heads/master | <repo_name>Luisdanielmartinez/example-realm<file_sep>/AppRealm/AppRealm/Connection/RealmConnection.cs
using Realms;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace AppRealm.Connection
{
public static class RealmConnection
{
public static Realm ... | 93e5cb4eb971f812d6634195f80620c49e01e75b | [
"C#"
] | 7 | C# | Luisdanielmartinez/example-realm | 82ba040a24bcef63b87b674225af78d7edeace67 | 4198a44a5798993912904597a700ba4e36ea5cc7 |
refs/heads/master | <repo_name>davemcg3/gilded-rose<file_sep>/README.md
# Gilded Rose
## Task
Implemented code for `Conjured Mana Cake`.
## Running the Specs
To run the specs, you will need the RSpec gem. Open a terminal window,
and run the following command in the exercise directory:
bundle install
You can run the specs from th... | 92c07437ada045eae2b2de33858e0363b28f0d17 | [
"Markdown",
"Ruby"
] | 3 | Markdown | davemcg3/gilded-rose | 6f859a463ae632f9fe482bcc8fb402bd5978cf1c | ca53c5923e17bf1ee4d75430af819b96309bf0b3 |
refs/heads/master | <repo_name>Mothrakk/Downvote_Nuke<file_sep>/Downvote Nuke/Program.cs
using System;
using System.Collections.Generic;
using RedditSharp;
using System.IO;
using System.Security.Authentication;
using RedditSharp.Things;
using System.Threading;
using System.Threading.Tasks;
namespace Downvote_Nuke
{
class Program
... | 75394238b6393c17666847f969ba9c11dd58c734 | [
"C#"
] | 2 | C# | Mothrakk/Downvote_Nuke | e9860bb5293c8a59c955a7a857dfa9ef6adc6efd | e57789599832388e57d1dc0c1d6866352cded454 |
refs/heads/master | <repo_name>apache7140/CBIR-<file_sep>/feature_matching.py
import cv2
import numpy as np
img1=cv2.imread("C:/Users/Rishabh/Pictures/Camera Roll/WIN_20200502_005310.JPG", cv2.IMREAD_GRAYSCALE)
img2=cv2.imread("C:/Users/Rishabh/Pictures/Camera Roll/WIN_20200502_005317.JPG", cv2.IMREAD_GRAYSCALE)
#ORB Detector
'''
cv2.... | e201c587449262057c594343e276c7520df3888f | [
"Python"
] | 3 | Python | apache7140/CBIR- | ef870ee16fc7034185b6010c605c674ceb493db9 | cfce549b2850f9053e4f072a11c4c1e793c9c5dc |
refs/heads/master | <file_sep>import express from "express";
const app = express();
const port = 3000;
app.listen(port, () => {
console.log(`Sever started on port : ${port}`);
});
| 57e5e8b95a5d94ab3e0dafcbc5f9396878cd014b | [
"TypeScript"
] | 1 | TypeScript | rafaelmennabarreto/ProApplicationApi | 50703dd34824373fa860592894042d8ccdbd20f6 | 50fda94523e5328f620526ae4d7f68438e7fc091 |
refs/heads/master | <file_sep>//
// main.cpp
// ImageAnalysis_Assignment3
//
// Created by <NAME> on 02/04/16.
// Copyright © 2015 <NAME>. All rights reserved.
//
/*
Question 3 and 4 :
Report of comparison attached.
*/
#include <iostream>
#include <vector>
#include <algorithm>
#include <sstream>
#include <string>
#include ... | 03db3d9153e38ca6613b5e74d61c95400c718299 | [
"Markdown",
"Python",
"C++"
] | 6 | C++ | mridulg/Hand-Gesture-Recognition-using-Kinect | 4489575c7cda337226e1d33a72df61f76ebd5b35 | c722d9638b7553fac8f7824c5852209b1e00c305 |
refs/heads/master | <file_sep>print("p3 fileeee")
print("chnages in p3")
print ("new push changes") | 2e20042368039fb11ce866dd935ed38d5e07875f | [
"Python"
] | 1 | Python | sindhujadasari/projectdemo3 | 745059b21b240968f18ec25ae29852e7d01c2c1a | 82493ebc040845a988a3a39a6e1c16827b22dd6f |
refs/heads/master | <repo_name>crossatom/UniCommons<file_sep>/src/main/java/ru/unicorn/storm/unicommons/commands/CommandHome.java
package ru.unicorn.storm.unicommons.commands;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.Co... | 0d0fc252770e4cd98134760a9ac024eb0bd5486b | [
"Java"
] | 4 | Java | crossatom/UniCommons | 698a773a3c06a44bafadbc2bd273ef133e496773 | b9a20a1bb39766ad17ccb1d2c1e26044ac6ea76b |
refs/heads/master | <file_sep><?php
if (!defined('BASEPATH'))
{
exit('No direct script access allowed');
}
class User_model extends CI_Model
{
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function profile_update($table, $where, $data)
{
return $this->db->where($wher... | 093cef2b60652a8deed3beb5484b2d8e4f28f052 | [
"Markdown",
"PHP"
] | 12 | PHP | hackdaemon2/tourism_management_system | 08ab28b7df344467a37dea2f6ee6ee4f0adc4b16 | c8a0371e507ec10b380a0935f9fb758e2d79d8f7 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using SchoolManager.Generation_utils;
using SchoolManager.School_Models;
namespace SchoolManager
{
class Program
{
static void Main(string[] args)
{
List <string> filenames = new ... | 56ec760524dcb2004ac8f5c84e245676d9bbb95e | [
"C#"
] | 30 | C# | StoyanMalinin/SchoolManager | 5bb5fcb89fb4960ede1139cd9cb5dfc627292cc4 | b2648335e9f80e062c23c19734890e4eff9f0b85 |
refs/heads/master | <repo_name>nnxiaod/DataStructure<file_sep>/DataStructure/src/com/liufei/collection/testHashMap.java
package com.liufei.collection;
import java.util.Iterator;
import java.util.Map;
import java.util.HashMap;
import java.util.Map.Entry;
public class testHashMap {
public static void main(String[] args) {
Map<String, ... | a7b2a69414b216af02e7872930eea74ffc33f543 | [
"Markdown",
"Java"
] | 4 | Java | nnxiaod/DataStructure | f1dd662c6e4ed697013e01f650273fd06a7b1444 | 97d0863bfc9b558e957a618b33564394fc586419 |
refs/heads/master | <repo_name>nicolasmeunier/cdn<file_sep>/Gemfile
source 'http://rubygems.org'
gem 'rails', '3.0.8'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2', '0.2.6'
gem 'sqlite3'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
gem 'capistrano'
gem '... | 8628ccca95a8f991a8abea473dcd2b9d5f41c5a2 | [
"Ruby"
] | 5 | Ruby | nicolasmeunier/cdn | 28ac03cba7bce472c0fc3d1aa12f33b97059279c | c0650de681d513dc9f1a4b2bfa374539e2b23c2a |
refs/heads/master | <repo_name>teispir/java-exercises<file_sep>/servlet/ex1_helloworld/src/main/java/org/example/HelloWorld.java
package org.example;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServle... | 1abd903fc068a4d2527d04025b375aa021597832 | [
"Markdown",
"Java",
"Maven POM"
] | 3 | Java | teispir/java-exercises | 8f768019e8a2774ad3e55db93deb30f7edbbe4fa | f0bc34e30ee605289e2f2372e7c118a7d05d9b8b |
refs/heads/master | <repo_name>AntoineAugusti/goodtables-py<file_sep>/frictionless/program/api.py
from typer import Option as Opt
from ..system import system
from .main import program
from .. import settings
@program.command(name="api")
def program_api(
port: int = Opt(settings.DEFAULT_SERVER_PORT, help="Specify server port"),
):
... | 120eae0b365594d392045e0d3e0c09768c1c15bf | [
"Markdown",
"Python"
] | 9 | Python | AntoineAugusti/goodtables-py | 164f611b3a1454893e35c4c70101c2678728818d | 475a1e37ffe8c87fed1669151d05a345135a411b |
refs/heads/master | <file_sep>// produce same output for the same input
// no side effects
// the computation only depends on the input
// pure fns => self contained
const hello = () => 'worlds';
const hello2 = (name: string) => `hello ${ name }`;
const compute3 = (a: number, b: number) => a + b;
// not pure => output changes but input ... | 2010df157327cc511ead0a6a055b9b59910c6f65 | [
"TypeScript"
] | 9 | TypeScript | inblack67/Functional-Programming | e7f9c27a51fcb7e509afd5c295969219bb3825c2 | af061eb0526895c6dec67e4928000226e47caf6e |
refs/heads/master | <repo_name>isllyend/RNLearnDemo<file_sep>/js/page/FetchDemoPage.js
import React, {Component} from 'react';
import {TextInput, StyleSheet, Image, SafeAreaView, Text, View, Button} from 'react-native';
export default class FetchDemoPage extends Component {
constructor(props) {
super(props);
this.sta... | 7ca5df5e1e65fe88510ea578aa9581158df7de66 | [
"JavaScript",
"Ruby",
"Markdown"
] | 11 | JavaScript | isllyend/RNLearnDemo | 2d58cf7dc18cd8b220d6eae40899f5159e4842ca | 0a736261fd4f6812e8674d5d0dfe1ae3d8e94f43 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.