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/main | <file_sep>import numpy as np
from scipy.sparse import issparse, csc_matrix, csr_matrix, dia_matrix
import scipy.sparse.linalg as spla
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from boundaryCond import Dirichlet, Neuman
"""
-------------------------------------------------------------------... | ef9aa4983ec9f09da82c1dd718ce62fc209ad60f | [
"Markdown",
"Python"
] | 10 | Python | mattskb/FEMpy | d08e94f5de868f596d58689353ef68b4597c7806 | e323906eac66758bb98158ffdfdb73bc1e8774d9 |
refs/heads/master | <file_sep>exports.customError = (err, status) => {
const error = new Error(err)
error.statusCode = status
return error
} | a8e0249ecad301153d1e01b5b6e156f5b3142573 | [
"JavaScript"
] | 1 | JavaScript | GuptaAman08/GrraphQL-NODE-EXPRESS | 13123d6bb280a1cf5bdb8fdcb567be02913c78a3 | fd9472d9eb8e0dea84bf04311f370e5c535e8152 |
refs/heads/master | <repo_name>phpdude/django-skeleton<file_sep>/etc/uwsgi.ini
[uwsgi]
gid = {{ project_name }}
uid = {{ project_name }}
chdir = /home/{{ project_name }}/{{ project_name }}/
pidfile = /home/{{ project_name }}/{{ project_name }}/tmp/uwsgi.pid
socket = /home/{{ project_name }}/{{ project_name }}/tmp/uwsgi.sock
chmod-socket =... | 4e53a67e4c9f0f26bb56831ba13620c9c87eb6e9 | [
"YAML",
"Markdown",
"JavaScript",
"INI",
"Python",
"Text",
"Dockerfile",
"Shell"
] | 17 | INI | phpdude/django-skeleton | b03ee34c9cb72e014885e3d01814d3074bb2f9ed | 6c9a6c11b8c9920b6726b96650b0d6db7383605e |
refs/heads/master | <repo_name>kboy-silvergym/Tinder-With-FacePlusPlus<file_sep>/TinderSwipeWithAI/SoundUseCase.swift
//
// SoundUseCase.swift
// TinderSwipeWithAI
//
// Created by <NAME> on 2019/07/15.
// Copyright © 2019 Kboy. All rights reserved.
//
import Foundation
import Foundation
import AVFoundation
import UIKit
enum Sound:... | 501875c137c6644f495d8dd3f03952b59e682acc | [
"Swift",
"Markdown"
] | 5 | Swift | kboy-silvergym/Tinder-With-FacePlusPlus | 25e248cca8a9d6698e93ca7307ac5e46ce704fa6 | ce6cb3e182e94a74cd76e4bf8ff4c7a9047bb0f1 |
refs/heads/main | <repo_name>foreignbyproxy/hardhat-fake-erc20-network<file_sep>/README.md
# hardhat-deploy-fake-erc20
### Work In Progress
A [Hardhat](https://hardhat.org) plugin to deploy a configurable number of ERC-20 tokens to the local Hardhat network. This is inteded to be used to help developers quickly deploy ERC20 tokens and... | bf2bfea54b27e600d2f1e2d115eb8d5df581d792 | [
"Markdown",
"TypeScript"
] | 14 | Markdown | foreignbyproxy/hardhat-fake-erc20-network | 7f659da1f6be74e1f11134e18b88e66fc9186903 | fe2e79c4cb866c2358d25dc09fc41b2d136941df |
refs/heads/master | <file_sep>int readEMF=A4;
String fiveSecData ="";
int data[1000]={};
void setup() {
pinMode(D7,OUTPUT);
pinMode(readEMF,INPUT);
Particle.function("funcKey", funcName);
Particle.variable("fiveSecData", fiveSecData);
}
void loop() {
}
int takeReading(){
int startTimer = 0;
... | 49a41e74fae57d6d3c62b79f3ff1d2843dfdc861 | [
"Markdown",
"C++"
] | 2 | C++ | rahuljaiswalisIN/HCIN720 | 9e405a1eebe0d9e3fa3564926c25a075c3d61779 | d043966c7008660e4eda3417fabbc576844eac42 |
refs/heads/master | <repo_name>Olehkozyk/my-app<file_sep>/src/App.js
import React from 'react';
import logo from './logo.svg';
import './App.css';
import Navbar from "./components/Navbar/Navbar";
import Header from "./components/Header/Header";
import Profile from "./components/Profile/Profile";
import {BrowserRouter, Route} from "react-r... | 2e39aa7b346b849e5277278ea70b433b9ead9464 | [
"JavaScript"
] | 9 | JavaScript | Olehkozyk/my-app | 2f97cc27aa550db29c0aa6b8f86507dda023cb59 | 62004c0a4bac786556a48b4a56d3a0100e1f3fac |
refs/heads/master | <repo_name>firestrand/Automator<file_sep>/Automator/TaskRunner.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Automator
{
public class TaskRunner : ITaskRunner
{
public List<ITask> GetTaskList(ITaskContext taskContext)
{
... | 74ffbdad426f09153a4cf776c56d37427e7483bf | [
"C#"
] | 3 | C# | firestrand/Automator | b14173e4df82e1e4664bbd41351cb74e093c2ca9 | a3bfc429882ac86e4fc524cdcb8a160ce8637f5d |
refs/heads/master | <file_sep>/**
* COMP 410
*See inline comment descriptions for methods not described in interface.
*
*/
package LinkedList_A1;
public class LinkedListImpl implements LIST_Interface {
Node root;//this will be the entry point to your linked list (the head)
private int lstSize = 0;
public LinkedListImpl(){//th... | 9ddf7b402f7c45e7b5dcf8a377168b0b6c233126 | [
"Markdown",
"Java"
] | 4 | Java | wanchen6/ADT-Implementation-in-JAVA | 42051e07ebd44f3e555ccc6ec5c7d3b7078a5fee | a299fd8c0be92a184699f9ff8b1b8adc315df1a9 |
refs/heads/master | <file_sep>#!/bin/bash
## Author: <NAME>
## Monitoring: Grob4Interface
## Date: 17/08/2018
## Description: This script is used to extract Datas from Runtimeinfo Service
## AIM: Felexibility of the Json Check
## HowTo: curl and JQ and grep are now my friends
## Timeout of curl: 25 sec --> doit etre dans nagios en tant ... | 449c4d00ef9c3e0bdb5df824bc7bc1ff846398d7 | [
"Shell"
] | 2 | Shell | HmZ111/Di-a-monds | d4882de228b8096eba9f443a7cbafdddd689db6b | bb6e4e9701492b9c4125df021a39d95fb89bf61c |
refs/heads/master | <file_sep>*Italic star.*<file_sep>List 1
1. Item 1
1. Item 2
1. Item 3
1. Item 4
List 2
1. Item 1
1. Item 1a
1. Item 1a1
1. Item 1a1a
List 3
1. Item 1
1. Item 1a
1. Item 1b
1. Item 1b1
1. Item 1b2
1. Item 1b2a
1. Item 1b2b
List 4
1. Item 1
1. Item 2
1. Item 3<file_sep>~~Strike though.~~<file_s... | 38a6fbdadae018eb1427e42d231be7492e4958f7 | [
"Markdown",
"JavaScript"
] | 13 | Markdown | minkjs/markdown-renderer | 0713da156e12be71acd905e537b2abb7086411af | 8b2be6e4c5a5fe281ad1bfb3af71b5854ccc2f3f |
refs/heads/master | <repo_name>katat/backbone-test<file_sep>/apps/test/templates/condition.html
<h1 style="text-align:center">{{name}}</h1>
<h3>Treatments :</h3>
<div class="panel-group" id="accordion">
{{#each treatments}}
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a clas... | 283fa535e625c9605be8c0e94c13acc47821bc26 | [
"JavaScript",
"HTML"
] | 4 | HTML | katat/backbone-test | f359132297b6d9909bd22cc754a267defe16fd3e | 10bf23f653dd59b2cf7a34de79ef1c2f7bbb101e |
refs/heads/master | <repo_name>GBOLUTS/Minesweeper<file_sep>/src/com/company/Buttons.java
package com.company;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.ArrayList;
import static java.awt.event.MouseEvent.BUTTON1;
/**
* Created by Гена on 22.04.17.
... | 214477aca7c990e59a307f4401b2297cd894ac4c | [
"Java"
] | 2 | Java | GBOLUTS/Minesweeper | 70a027bd900cb50f82825ccc932b5096347b25ab | 311e8ae179088ddc4a06683ff1a0d9558694f87a |
refs/heads/master | <file_sep><?php
class ProcessaDelFile extends Process {
function processa(){
}
/**
* Faz a exclusão do arquivo ZIP informado, gerado após processamento.
* O arquivo, por padrão, é armazenado na pasta _out/print/zip.
* Essa chamada ocorre, geralmente, após um processame... | 02cdaaa8af90ad5757e00461febd26892061bc7f | [
"Markdown",
"Text",
"PHP"
] | 21 | PHP | marclebon/factory_editor | 7813cfc4f3ca56bfb7ef117e4babf18b81968bb8 | b8afa049df1e65cbfca496c93111c565462c6e23 |
refs/heads/master | <file_sep># Goodman Target Simulator
This is a very simple script that simulates Goodman data. At this moment, it simply generates an image with one or more gaussian
profiles that mimic observations.
## Use me
The best way to use the Goodman Target Simulator is by installing it and running the `goodsim` scri... | cddb486b5e3bff868c35badd535d1db1eb90fb43 | [
"Markdown",
"Python"
] | 4 | Markdown | b1quint/goodman_target_simulator | 8694226ac999a0ab2157e666f0846cdf3022faec | 0f24465a754f8810fdad4057f94f2541606f82cb |
refs/heads/master | <file_sep>#ifndef MODTESTPRIVATE_P_H
#define MODTESTPRIVATE_P_H
#include <Mod/modglobal.h>
class Q_MOD_EXPORT ModTestPrivate
{
public:
ModTestPrivate();
};
#endif // MODTESTPRIVATE_P_H
<file_sep>#ifndef MODTEST_H
#define MODTEST_H
#include <Mod/modglobal.h>
class Q_MOD_EXPORT ModTest
{
public:
ModTest();
}... | 3a35ca546a01ac187539d9dd8f137312c536ee09 | [
"C",
"C++"
] | 4 | C++ | wicaksono/qt-module-example | 28c44115b8d7fe0fd06fe0ff8c0f01b3dc14f452 | 3a8fbe99ffb42438cf3bda63beb566da56074e92 |
refs/heads/master | <repo_name>kai2008/btcmarkets<file_sep>/btcmarkets/compat.py
import sys
import json
if sys.version_info > (3, 0):
from urllib.request import urlopen, Request
from urllib.error import HTTPError
def urllib_request(method, url, headers, data):
if isinstance(data, str):
data = data.encod... | a9669e853aae6a14e1f3d22c2cc640bb5ef7511b | [
"Markdown",
"Python"
] | 9 | Python | kai2008/btcmarkets | efbb6b0352732545ab2c0f857e44184b83dfba25 | e74289b0e0252d2d1ede769cc696d7fc80afbec6 |
refs/heads/main | <repo_name>alftirta/dice-game<file_sep>/go.mod
module github.com/alftirta/dice-game
go 1.17
<file_sep>/dg/dg.go
package dg
import (
"errors"
"fmt"
"math/rand"
"strconv"
"time"
)
type Player struct {
ID, Score int
IsEliminated bool
Dice []int
}
type Setting struct {
TotalPlayers, TotalDice int
T... | eb0669e0b141d0f5557dff2bf81324e3f346bafb | [
"Go",
"Go Module"
] | 2 | Go Module | alftirta/dice-game | 3dbdf16fe95e4597a09d7a2a919b0056e2f3df00 | 7402ed0c961015e2db2d281af404636bbaa439fd |
refs/heads/master | <repo_name>aHDPik/NegativeEffect<file_sep>/Matrix/FileManipulations/StaticMatrix.h
#pragma once
namespace staticmat {
constexpr int MAX_NAME_SIZE = 255 ;
constexpr int MAX_MATR_SIZE = 100;
struct Matrix {
char name[MAX_NAME_SIZE];
int vertSize;
double vertMatr[MAX_MATR_SIZE];
int horSize;
... | 7f399ee0b8f5e732c15898c9ba7d2f994acf3dd8 | [
"Markdown",
"C++"
] | 9 | C++ | aHDPik/NegativeEffect | a970dc0c1e94265882c352ac0fddfb6b5af50fb9 | 30cb84d252c63ecd19a7a30f9b25a2e54a0e1828 |
refs/heads/main | <repo_name>iamshakibb/athena<file_sep>/src/Components/Achievements/Achievements.js
import React from "react";
import { Container, Row } from "react-bootstrap";
import "./Achievements.scss";
import HappySVG from "../SVG/HappySVG";
import MarketingSVG from "../SVG/MarketingSVG";
import SurfaceSVG from "../SVG/SurfaceSVG"... | 6238be9701c52342972bfd1a01268af18fd1d54d | [
"JavaScript"
] | 9 | JavaScript | iamshakibb/athena | 4f15aa6d55103c5b0c9ca42d7c55b012ebabfe97 | a6b713a29bbd62b0f6e5788d79939373e975738d |
refs/heads/master | <file_sep>package keywords;
import edu.jsu.mcis.*;
public class GamegogyGUIKeywords {
private String columnName;
private String courseId;
private String courseTerm;
private String courseEnrollment;
private String studentId;
private String studentName;
private String studentEmail;
privat... | 004336cb64f2788726aacf632019e5d12fc29013 | [
"Java"
] | 3 | Java | cdikoko/Leaderboard | 046f88aa2c345bf1ef103f32950b728c41ce8b24 | 90ea8f301e6401efa395a9ad030bc002a1da5b43 |
refs/heads/master | <file_sep><img src="Images/main_picture.png" width="500" height="200" >
## Finding a mechanic has never been easier
CarFix is an app that connects vehicle owners to automotive professionals. CarFix enables connection in 2 types of users: a private customer (car owner) and a business customer (car service provider) a... | a71506716ee565f488a8413fe8c4c85cbe0ec9ac | [
"Markdown",
"Java"
] | 9 | Markdown | CarFix-SYD/CarFix | 33b470e73327a3b2df0942cea3ff28d2d83b957a | d19f54d4f6830e6063f0a85f1233268b25733338 |
refs/heads/master | <repo_name>noyan-alimov/travel-planner<file_sep>/src/client/js/fetchImage.js
export const fetchImage = (apiImage, city) => {
fetch(`https://pixabay.com/api/?key=${apiImage}&q=${city}&image_type=photo`)
.then(res => res.json())
.then(data => {
const output = document.querySelector('.image');
output... | d0d1b00797fd9a5a360ff0105794f6424e95b587 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | noyan-alimov/travel-planner | e17f081131d3043abaa620e6bf080d8e067ff242 | fece2c188f2d6a4bb5362447397b1f85a8c9c467 |
refs/heads/master | <file_sep>#!/usr/bin/python
# sendmsg Get a summary of per pid inet conversations (data transmission not packets)
# via BPF Compiler Collection (BCC) https://github.com/iovisor/bcc
# and associate them with dns responses.
#
#
# ONLY FOR IPV4 need to add code for ipv6
# Messages via a kprobe on s... | 08db098e81c28f73c9531e9f8665a73aec66ca3a | [
"Markdown",
"Python"
] | 3 | Python | zizzu0/Linux-Tracing | d8e1209592c68da6ce2cc5fb7687a8b75623f9bf | c2106f88d21310c3dde86171c04461e35b55ea93 |
refs/heads/master | <repo_name>DongxuYI/ajax<file_sep>/README.md
# ajax
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/DongxuYI/ajax.git
git push -u origin master
<file_sep>/talking/talking.php
<?php
switch ($_POST["value"]) {
case '哈哈':
$arr = array("111","222","333");
... | 450ceeaf5582807f73f6aa91e8d13fa81e1171b1 | [
"Markdown",
"PHP"
] | 7 | Markdown | DongxuYI/ajax | 8f573c97dd8b559effb10ff2fa4bee3cd11112d1 | cf3ba9fb05bd82165147f79f54a0323729cb99d6 |
refs/heads/main | <repo_name>i92esper/Proyecto5<file_sep>/Clase Ruta/sendero.cc
#include "sendero.h"
Sendero::Sendero(){
nombreSendero_="";
recorridoTotal_=-1;
}
bool Sendero::setRecorrido_total(int recorridoTotal){
if(recorridoTotal < 1)
return false;
recorridoTotal_=recorridoTotal;
return true;
}
<file_sep>/Clase Monit... | 23fc17184a3cdd89331593255be4a2a2aed6b762 | [
"C++"
] | 21 | C++ | i92esper/Proyecto5 | 2497fe78d13da95e681e72954bdfa5a1267e72cc | 9327c40674f8ea96758a624f1f8e186fbe8d2449 |
refs/heads/master | <repo_name>gardym/switchback<file_sep>/src/reducers/interactions/__tests__/useInventoryItem.test.js
import useInventoryItem from '../useInventoryItem';
describe('if no first item is selected', () => {
it('selects this one', () => {
const action = { id: 'chickenWire' };
const state = { interaction: { firstIte... | ae1da67a06d406e45091f19b9d36867e44990905 | [
"JavaScript",
"Markdown"
] | 27 | JavaScript | gardym/switchback | ed56b28801a010166ac9e67c5482a97247f7511d | 1e2dffdbf44e5ceffdedcb922b861676f95af17d |
refs/heads/master | <file_sep>
(function () {
var intarvalo = randomIntFromInterval(10000, 60000);
console.log(intarvalo);
setInterval(function () {
try {
var inputs = document.getElementsByTagName("input"),
i,
len,
value = "Etiqueta",
achou... | 65362aaf2cbcbb336ce8de43eaf92e146e94daa8 | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | victorgare/tribalwars | 4b5da1133a947ee98ef1cffb76173f804b2f8bae | e914720b44a5ed1d1d8ff305258a08aa718a5d72 |
refs/heads/master | <file_sep>json.extract! friendlist, :id, :first_name, :last_name, :gender, :email, :phone, :created_at, :updated_at
json.url friendlist_url(friendlist, format: :json)
| dddec8c53d982a99760a7792468e86ffee0c8ce2 | [
"Ruby"
] | 1 | Ruby | rubyboy-hub/friend | 4f3c796806829cd48afd6d98f19e02137492233c | 96a15891d3de2f0dcd2e17bc0be37511565edbd7 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Security.Policy;
using Robot.Common;
namespace AndriiRomanchak.RobotChallenge
{
public class DistanceHelper
{
public static int FindDistance(Position a, Position b)
{
//retu... | 50bbb810378bfff63c3cf883437470b1ee78cb09 | [
"C#"
] | 4 | C# | MrQwert/Serdiuk-RobotChallenge-Algorithm | 80f5c2ddfbbe9a736b1b5c8e996049255b9862ed | 0aa43926f4cd8c62008d21a65cd041d4b8ab4752 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class Zombieswalk : MonoBehaviour
{
//Set goals for zombies.
public Transform goal;
public NavMeshAgent agent;
private Animator anim;
private Vector3 pos;
public UI... | 12bea6b838d16e0e5676636bbdfbf428b16b116c | [
"Markdown",
"C#"
] | 5 | C# | Zansood/Moe-Runner | 2ac17804fa633a9d13e22e1dd5edf36e8959f0da | 98587a3f52fd8564d3b6aaba3e182f11df37efc0 |
refs/heads/master | <repo_name>maksim-kiryanov/learn-java<file_sep>/src/main/java/ru/mkiryanov/java/annotations/tracker/UseCaseTracker.java
package ru.mkiryanov.java.annotations.tracker;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* User: maksim-kiryanov
* Time:... | c03789223d5e1be0e048d733ea1561744352553b | [
"Java"
] | 4 | Java | maksim-kiryanov/learn-java | a9d867482e4292db45c88b0bf71f72fe5c3b38fa | e966cd3afaf6d9444feef239575eedc3826365a1 |
refs/heads/master | <repo_name>lmh246/machine_learning<file_sep>/sklearn/特征工程.py
from sklearn import datasets,preprocessing
if __name__ == '__main__':
data = datasets.load_iris()
iris_x = data.data
iris_y = data.target
print("原始数据:\n",iris_x)
print("标准化:\n",preprocessing.StandardScaler().fit_transform(iris_x))
... | 5a2ac4df4b2eee273a88ab5f2e92ad4542451ac6 | [
"Markdown",
"Python"
] | 19 | Python | lmh246/machine_learning | 8932cb09f7809c1fef54d192b200d49799aacdff | 03ef6c231ada2fe115b51d4ca446694fdb450e27 |
refs/heads/master | <file_sep>module.exports = require('pages-tasks')
<file_sep># x-pages
[![Build Status][travis-image]][travis-url]
[![Coverage Status][codecov-image]][codecov-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![NPM Version][version-image]][version-url]
[![License][license-image]][license-url]
[![Dependency Statu... | 2ca571fd5f10bfd77c20afdef7dbee4feedccfcc | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | huoqishi/x-pages | 27dba7b3244dbfa821699ed44f296b190e1faec2 | dd1d62bb1a3d3bb2f78587255dbe2a3a0139f53c |
refs/heads/master | <repo_name>felipecesr/codility-lessons<file_sep>/__tests__/frog_jmp.spec.js
const solution = require("../src/frog_jmp");
test("should return the minimal number of jumps", () => {
expect(solution(10, 85, 30)).toBe(3);
});
<file_sep>/__tests__/binary_gap.spec.js
const solution = require("../src/binary_gap");
test("sh... | 6229187218b3f85080c863dacf9a37b3b3d2108c | [
"JavaScript"
] | 4 | JavaScript | felipecesr/codility-lessons | 5a5c26a845044dfa9a5d60c989634462e13f3523 | ad9e986dff8965ffd480a94fef7a4d3cd6b8161e |
refs/heads/master | <repo_name>anhtuan80/chrome-hostadmin<file_sep>/container/chrome/timer.js
;(function(HostAdmin){
var host_admin = HostAdmin.core;
HostAdmin.dontgc = setInterval(function(){
host_admin.refresh();
}, 1000);
})(window.HostAdmin);
<file_sep>/npapi/src/hostadmin.c
#include <stdio.h>
#include <stdlib.h>
#include <stri... | c05c23ff89c1183df0a876c44eed1c5e62ded85e | [
"HTML",
"JavaScript",
"Markdown",
"Makefile",
"C",
"Shell"
] | 18 | JavaScript | anhtuan80/chrome-hostadmin | fd16496a7da74c6f65ea5ba40bbeb03a257ee641 | 3fca9d6fe8008c4134b4bf6ac7af1213dba61155 |
refs/heads/master | <repo_name>zh-konopleova/SO<file_sep>/src/app/admin/admin.component.ts
import { Component, OnInit } from '@angular/core';
import { QuestionService } from '../question.service';
import { AuthService } from '../auth.service';
import { Observable } from 'rxjs';
import { Question } from '../question.model';
@Component({
... | 4e88f699adb6f7170139bbdb75295904c0410a25 | [
"TypeScript"
] | 10 | TypeScript | zh-konopleova/SO | 30407832905ae63704c1cd90009b6da225158ef0 | fa818c094d2fd1481ec8ff612e6418fc7f1621ee |
refs/heads/master | <repo_name>boyhavoc/Jquery-fileupload-rails-4-example<file_sep>/app/models/upload.rb
class Upload < ActiveRecord::Base
has_attached_file :upload, :styles => { :medium => "300x300>", :thumb => "100x100>" }, :default_url => "/images/:style/missing.png"
validates_attachment :upload, content_type: { content_type: ["i... | 0322ca0d762ad9fa84931766f052fe18648e132a | [
"Markdown",
"Ruby"
] | 4 | Ruby | boyhavoc/Jquery-fileupload-rails-4-example | 0187f4f6f6ebf390c6993f40edc9332b6a1b65ee | 9fc4b3adb18da8a1708616b3b16299f7c05b6b75 |
refs/heads/master | <file_sep>const Footer = ({ numOfRemaining, handleClearDone }) => {
return (
<footer>
<p>剩餘項目: {numOfRemaining}</p>
<button className={"btn-reset btn-clear "} onClick={handleClearDone}>清除項目已完成</button>
</footer>
)
}
export default Footer;<file_sep>import clsx from "clsx";
const AddTodo = ({ ... | bf296354b9c8ae77c61284b8bd9b45c404306cc7 | [
"JavaScript"
] | 3 | JavaScript | AnnHuang-tool/todo-mvc-react | 9fec503745df5e593cc0f3684039c8c5e64ee6a0 | 64ed42aa0a010c4f3c9877404f7d35a94df79a20 |
refs/heads/main | <repo_name>Trevo525/Data-Structures-and-Algorithms-in-Java<file_sep>/README.md
# Data Structures and Algorithms in Java
I did [this course](https://www.udemy.com/course/data-structures-and-algorithms-deep-dive-using-java/) on Udemy. This is the project files I created following the course.
After making this app in Ja... | bfddf37a0e3ecc75554d4e9bdc9925da044eec13 | [
"Markdown",
"Java"
] | 3 | Markdown | Trevo525/Data-Structures-and-Algorithms-in-Java | d325e37d45015c8ad3c5d257914909e11abbc728 | 34f30ac404467c20ceebdcf1efaa56b7b14508e5 |
HEAD | <repo_name>hsarkar/programming<file_sep>/spoj/src/done/PT07Z.java
package done;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class PT07Z {
static class Graph {
private final int V;
private Set<Integer>[] adj;
publ... | 4e015808bc9347c941cd5ccb32ee351503196ab7 | [
"Java",
"Python",
"C++"
] | 67 | Java | hsarkar/programming | 7c0c277dd35b8d2a627c599f4b6e9607dede6ca4 | e44b2b83f52d724154a60d45eacd27c4b7b7b16e |
refs/heads/master | <repo_name>babloogpb1/ComputerGraphics<file_sep>/functions.h
#include<bits/stdc++.h>
#include<graphics.h>
using namespace std;
void ddaLine(int x1,int y1,int x2,int y2,int a)
{
if(x1==x2)
{
if(y1<y2)
while(y1<=y2)
{
putpixel(x1,y1,a);
y1+=1;//round(float(y1)-((x1-i)*m));
... | 56dc63a177aa04b139a6a8a767f88a0f213183f1 | [
"Python",
"C++"
] | 8 | C++ | babloogpb1/ComputerGraphics | 704b7ffd4f402d403b40400c5f05935c8d18c6c0 | 46275e4476eabf296efa7e42a4a0b475678f482f |
refs/heads/main | <repo_name>Sanjeev-Karthick/idiscuss-coding-forum<file_sep>/partials/_dbconnect.php
<?php
$servername = "localhost";
$password ="";
$username="root";
$database = "idiscuss";
$connection = mysqli_connect($servername,$username,$password,$database);
if($connection){
}
?><file_sep>/partials/_footer.... | e9d8396efe2a3cef6bd01b91ec9ea9db0f190c7a | [
"Markdown",
"PHP"
] | 6 | PHP | Sanjeev-Karthick/idiscuss-coding-forum | 7b3deaeffe21cbd72d5d4bd7a165efdca38ec0e8 | fce0a65e9ef055fee5ebbcc007d196dba8b0fbdb |
refs/heads/master | <file_sep>angular.module('app', [
'ui.router',
'ngMaterial',
'ngMessages',
'smoothScroll'
])
/**
* Route the user to the appropriate template and controller
*/
.config(function ($stateProvider, $urlRouterProvider, $locationProvider, $windowProvider) {
$locationProvider.hashP... | f2ceb4a52527886d2ae7a555093a53b86d073fff | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mikematos84/angularjs-app | 81bd0fd390b72fb70fd0a7b150ea443e41f822b6 | aacd6ae3b4901aae0bd824a421c7f6a438129689 |
refs/heads/master | <file_sep># Intro-to-databases
Day 15 - Introduction to Databases
<file_sep>rooms_events = { 'data':
{ 'rooms':
[ { 'id': 1, 'room_number': "201", 'capacity': 50}, { 'id': 2, 'room_number': "301", 'capacity': 200 }, { 'id': 3, 'room_number': "1B", 'capacity': 100}
],
'events': [
{ 'id': 1, 'ro... | a640eefb500ee758df7826ddc77f899ecc201293 | [
"Markdown",
"Python"
] | 2 | Markdown | cudjoeab/Intro-to-databases | 641690a626797458819bb2d20ca4d255e8a8e3ea | 7f3ac4778355d86af825e39bd430be2331cbbf15 |
refs/heads/master | <file_sep>require 'spec_helper'
describe Mongoid::Preferences::Preferenceable do
let(:file_default_preferences_hash) {
HashWithIndifferentAccess.new( YAML.load_file(File.join(File.dirname(__FILE__),
'models_preferences',
... | 9de614eca832f7460a6a3e5b36ddf650fde5bae5 | [
"Markdown",
"Ruby"
] | 8 | Ruby | mtoso/mongoid-preferences | 7ca8e5c598f8e92e97c161d8ab121dba73c68d5e | 866b76a81b8defff2341bfb592015639f2237714 |
refs/heads/master | <file_sep># Bistromathique
This is a fast calculator (faster than bc on some big operation!). It deal with arbitrary base, arbitrary symbol arithmetic and arbitrary number size.
It is design for 64 bits architecture yet run pretty fast on 32 bits too.
Run "make" in a terminal to compile.
>/!\ Big endian ro... | 72aa7bea5402054aababd2f4ae4becc9a1c8f9ee | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 16 | Markdown | maginth/bistromathique | 0efc188d339ac71a43368030f4b7df963548a3ab | 712ca8eb95aaf26c306973e4c65e2e910b06a767 |
refs/heads/master | <repo_name>Aaaaaashu/Aaaaaashu.github.io<file_sep>/bird/build/precache-manifest.fa00c4626f8332e2516e046508d0d5f2.js
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "c3a46d6ef437245b2c2d122bfd235288",
"url": "/index.html"
},
{
"revision": "cc002f9d78d2ed93ca20",
"ur... | f4b3007f0906238e741b6d9703ab3c508a5596cc | [
"JavaScript"
] | 1 | JavaScript | Aaaaaashu/Aaaaaashu.github.io | d1843b1e82d600bb98db8a6537596311826c3880 | f5a51c134d1ec127d512961fa0f61c051c19f5af |
refs/heads/master | <repo_name>splice-aldis/XSAN_Mounter<file_sep>/main.py
import os
import sys
from subprocess import call
from kivy.app import App
from kivy.uix.togglebutton import ToggleButton
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
# xsan_volumes = {"LAMBERT",... | 6ad1b002b9ee7172df5e501881c7941fe8756dbb | [
"Python"
] | 2 | Python | splice-aldis/XSAN_Mounter | 1eaa922e79a6d6e4f21d700468a175b72758969e | b6fa807fc3c072bbb471f4c1cca163aa17d9f0f8 |
refs/heads/master | <repo_name>ronengi/generic-textual-table<file_sep>/p1.cpp
#include <iostream>
#include <locale>
#include <string>
#include <sstream>
using namespace std;
const int X = 14;
const int Y = 16;
const int SN = 3;
const int SL = 1;
const int SR = 1;
const int S0 = 8;
const wchar_t SPC = U'\U00000020';
const wchar_t CL... | 13b89b4f6f77d7c19e3b5c0cb5b08cc2ec3a6dbd | [
"C++"
] | 1 | C++ | ronengi/generic-textual-table | 7f0ad908df087838e47e15ba77804ad0764d7b5c | 4534d41f33ff953c4648aa213559b167486823a9 |
refs/heads/master | <repo_name>dimaty26/SimpleTasks<file_sep>/Collections/src/Collections/java/Collections.java
package Collections.java;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class Collections {
}
<file_sep>/Collections/src/Collections/java/Main.java
package Collections.java;
import ja... | ec67d4be94d21e844855e4e318cf6ec0a6277723 | [
"Java",
"SQL"
] | 9 | Java | dimaty26/SimpleTasks | 9106721313e9b5390f4b1ea002e8e58ecd3e5a1d | 512fb3c37a2f6103d0dd72d532aad2b3e88e6e9b |
refs/heads/master | <file_sep>Basketball
==========
Basketball Plugin by TheRealBuckshot.
<file_sep>package me.therealbuckshot.basketball;
import java.util.ArrayList;
import java.util.Random;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Color;
import org.bukkit.Location;
import org.bukkit.Material;
import or... | c4ce5173f490e4a4dca08b3b8967ed53e0db6741 | [
"Markdown",
"Java"
] | 2 | Markdown | TheRealBuckshot/Basketball | 5c2ecac7850ee8586485babd22ede7ea5eb9c710 | 41e61b09805b91e4cd1f54eac5a40c0b80fff934 |
refs/heads/master | <repo_name>CallumGilly/race-time-keeper-version-2<file_sep>/sqlDesign.md
# Design for SQL database
## Tables
All the tables that will be used with the heading, type and example data
### RacerTbl
All the unique racers
RacerID :key: | First Name | Second Name | isMale | Birthday
-|-|-|-|-
autoNum | varChar(255) | var... | 674efc372fe52286ac71727d0056010cf4b68934 | [
"Markdown",
"JavaScript",
"Dockerfile"
] | 4 | Markdown | CallumGilly/race-time-keeper-version-2 | 3917ccb85c5c049e3b4317a29800bcd103ed9cc4 | d301c89ebe426aced530c75a55fef3d4f8fe159e |
refs/heads/master | <repo_name>djtrueway/OC7<file_sep>/js/restaurant.js
class Restaurant {
constructor(data){
window[data.restaurantName] = this;
this.DOM = document.createElement('li');
this.DOMstar = document.createElement("stars");
this.DOMcomments = document.createElement("comments");
this.name ... | d48481ea34e11030c6978150a4bcacdc3445e435 | [
"JavaScript"
] | 1 | JavaScript | djtrueway/OC7 | 92219ed6e7dfb016a42efcf3125eb16241f366dd | 588503ed54ae56948e40b3db2f8b9da4dc886836 |
refs/heads/master | <file_sep>import time
import mss
from PIL import Image
start = time.time()
monitor = {'top': 0, 'left': 0, 'width': 1920, 'height': 1080}
sct_img = mss.mss().grab(monitor)
img = Image.frombytes('RGB', sct_img.size, sct_img.rgb)
end = time.time()
print(end-start)
<file_sep>import numpy as np
import os
import six.moves... | 17dd8b54183a102a8e0409db18defb4ab30ab763 | [
"Python"
] | 2 | Python | Possums/dinosaur | 233efc5e85347c40dd21dc2fc12ade2da1c006b6 | 64b3e6bf340d36aff187383c4c5eba56e1dccebc |
HEAD | <file_sep><?php
/**
* Part of the Auth Module
*
* @package FuelPHP-KickStart
* @version 1.0
* @author <NAME> <<EMAIL>>
* @license MIT License
* @copyright 2012 <NAME>
* @link http://danielberry,me
*/
/**
* Custom Routing for the Auth Module
*
* @package Auth
*/
return array(
'auth/l... | 0260061ff1184df7d1357bb5e345f0953ee83c86 | [
"Markdown",
"PHP"
] | 31 | PHP | huglester/FuelPHP-Kickstart | b0a06556e013e0690590e1f5e415ab55e614e17d | 5e5a427727ee310454b2961f56015bd61d81cef0 |
refs/heads/master | <repo_name>manasdas17/PyArduino<file_sep>/Examples/energy-meter/11.3energy_meter_power.py
#!/usr/bin/python
import serial,time
import struct
import sys
if serial.Serial('COM2',9600).isOpen():
serial.Serial('COM2',9600).close()
s= serial.Serial('COM2',9600)
#s.write("A")
s.flushOutput()
s.flushInput()
time.sleep(2)
... | 841e322be80488d9b675b4edb77da7112a42fef2 | [
"Markdown",
"Python"
] | 26 | Python | manasdas17/PyArduino | 3e00eea7ac1a12ed26a2a6191b75d9b2c1c7de13 | 1cb389c50f5e00966ca9ce7233fe58f3bdc9673c |
refs/heads/master | <repo_name>KristianOellegaard/puppet-github<file_sep>/Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "ubuntu-11.10"
config.vm.box_url = "https://github.com/downloads/KristianOellegaard/vagrant-base-boxes/ubuntu-11.10-64bit.box"
config.vm.provision :puppet do ... | 80e664d9437329dd32090e966a19928286290bb8 | [
"Ruby",
"reStructuredText"
] | 3 | Ruby | KristianOellegaard/puppet-github | ab2f515465bc527b2fc56296aefcde0603908875 | e4e694011667b5f965897ffd38b234878b14e9df |
refs/heads/master | <file_sep><?php namespace F16;
use Illuminate\Support\Facades\File;
Class Converter
{
public static function sourceToarray($file, $ext)
{
$dArr = null;
$content = file($file);
switch ($ext) {
case 'json':
for ($i = 0; $i <... | b7f9c4e55108dbfd1ba9a0141a0b33af5bc2f08d | [
"PHP"
] | 3 | PHP | gitMykola/test | 8248596634c7c1fd8a14709e6dc4119ea773bb57 | 27ed8f398b32209fa9396de6e862497d83c5553f |
refs/heads/master | <repo_name>massimo-me/SimpleCMS<file_sep>/src/CMS/CoreBundle/Document/User.php
<?php
namespace CMS\CoreBundle\Document;
use FOS\UserBundle\Model\User as BaseUser;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
/**
* @MongoDB\Document
*/
class User extends BaseUser
{
/**
* @MongoDB\Id(strategy="a... | 6ff80b8f3c7dad7624dad2c44214ba1be5fda7ed | [
"Markdown",
"PHP"
] | 9 | PHP | massimo-me/SimpleCMS | fbe9392433f108379f9c3d52f93bf027ea51349b | b8bb45955fd5ee4095eca950d8a1645b9d855dec |
refs/heads/master | <file_sep>/* Instructions:
Add javadoc comments to all the fields and methods in Employee. Don't worry about making
them completely descriptive, but do document parameters and return values for the methods.
Note that judicious use of copy and paste can speed up the process.
Run javadoc and view index... | 84a85d01e52ce670488d5e8b7bc4ff31e8f6f43e | [
"Java"
] | 10 | Java | CSchrisD/Java-Practice | 655863f818642056b98a151ba7d1ad605925ab5a | 99d02a6b5652f8d93e7c6a6d85e557be76d85c62 |
refs/heads/master | <file_sep>spring.application.name=carshare-usersservice<file_sep>package be.harm.carshare.users.security.authentication.token;
import be.harm.carshare.users.security.authentication.AuthenticatedUser;
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0... | 54c3c419e7214328db7194749411e2163ad44d4d | [
"Markdown",
"Java",
"INI"
] | 12 | INI | hdeweirdt/carshare-users | 07284574877191134e4e2bda3c3d66e590c7bdc5 | 5151e4308fc4912c956c13ec0506cccc9aff0447 |
refs/heads/master | <repo_name>buggithubs/tidb-inspect-tools<file_sep>/metrics/snapshot-collector/util.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"github.com/juju/errors"
"github.com/ngaut/log"
"io"
"io/ioutil"
"net/http"
"net/http/cookiejar"
"net/url"
"os"
"path/filepath"
"reflect"
"regexp"
"runtime"
"strings... | 2645c986e5d2f83683768d850c397c79c6ac0465 | [
"Markdown",
"Go",
"Makefile"
] | 5 | Go | buggithubs/tidb-inspect-tools | fe171e4a50a3a68657506180845bd15b7b3591f6 | 7f75841eb61b465d28626322bbdbbf9b73721c7e |
refs/heads/main | <file_sep>import firebase from 'firebase'
const firebaseConfig = {
apiKey: "<KEY>",
authDomain: "disneyplus-clone-5efb1.firebaseapp.com",
projectId: "disneyplus-clone-5efb1",
storageBucket: "disneyplus-clone-5efb1.appspot.com",
messagingSenderId: "264142125974",
appId: "1:264142125974:web:81c95... | 8f5c2b0dc343967c97cb2a0ab1bd40e6c0486d0a | [
"JavaScript"
] | 1 | JavaScript | tugane/Tugane-disneyplus-clone | a4060d79ac545e1329565e9d3cefd4780f60f1d0 | 38080ea3871dbdd47b93dc1828f106195d9a8a90 |
refs/heads/master | <repo_name>AswinKalaivanan/UrbanLadder<file_sep>/src/test/java/com/quinbay/urbanladder/Steps/UrbanladderSteps.java
package com.quinbay.urbanladder.Steps;
import Action.ActionClass;
import io.cucumber.java.en.And;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import... | 2c69b8615a32e22591b59170feec31dd1b6946dd | [
"Java"
] | 2 | Java | AswinKalaivanan/UrbanLadder | 8bc951f165265651eaf477ebafa722551b6346ec | 9c4ade4206f6cdac7f10d026c213b9fea8c1fd94 |
refs/heads/master | <file_sep>var SkillSet = function()
{
var self = this;
this.$set;
this.MASK = 1;
this.DESTROYTREE = 2;
this.skills = {
1: new Skills.Mask(),
2: null,
3: null
}
this._inUse = {};
this.init = function()
{
$("body").append('<div id="skillset" class="hasInfo" data-info="Skills" />');
this.$set = $("#... | 7973794e3ad58e2439e56210ba84525a47803d1e | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | ArcoMul/dystopia | e1fd964562439ac7b356bd71a84e6d3744e52e92 | b4acb3cc962646314f2c591544a1e0a64eeb2a8d |
refs/heads/master | <repo_name>diananova/lab6<file_sep>/dictionary.h
#include <iostream>
#include <stdexcept>
#include <vector>
#include <fstream>
#include <chrono> // necessario compilare con -std=c++11
#include <stdlib.h> // srand, rand
#include <string> // std::string
#include "string-utility.h"
using names... | 4021417c98857f039c56f0358e7fa6c88f35be95 | [
"C++"
] | 2 | C++ | diananova/lab6 | b682bbe00c819306f0323b3e35950537e74381f9 | 94931ad1e17b487a5118d245a8178cbcc043260d |
refs/heads/master | <file_sep>import java.util.*;
import java.lang.*;
import java.io.*;
interface User{
void menu();
void details();
int rewards(int x);
}
class Zotato{
private int deliveryCharge;
private double companyBalance;
private HashMap<Integer,Restaurant> r=new HashMap<>();
private int noRes=0;
pr... | 97d338dc6d804c121fef83a916b148f154bd8d3f | [
"Markdown",
"Java"
] | 3 | Java | bhavyanarang/Advanced-Programming-Labs | 5715b99c4100c97c6eb7277d33a9448ea4cc95e9 | 52632a14f38c99475c50b61faee8bffa62c37312 |
refs/heads/main | <repo_name>wajehulhasan/caravel_Lexicon<file_sep>/README.md
[](https://opensource.org/licenses/Apache-2.0) [](https://github.com/efabless/c... | a1d6af4c8baeeb82541aceab14e401ea5b038577 | [
"Markdown",
"C"
] | 2 | Markdown | wajehulhasan/caravel_Lexicon | 79c0a87d0ca10ff8e969e8b6dd3fe08826dc68c1 | 1f198fb47e182b9abbfdf46116ad13bb0330a895 |
refs/heads/master | <repo_name>JustalK/Scripts<file_sep>/ssh2719492.sh~
#!/bin/bash
VAL=$(head -n 1 password.txt);
sshpass -p $VAL ssh -o StrictHostKeyChecking=no <EMAIL>;
<file_sep>/README.md
Scripts for SUPERSOGO - I'm a lazy man
<file_sep>/ssh2719492.sh
#!/bin/bash
VAL=$(head -n 1 password.txt);
sshpass -p $VAL ssh -o StrictHostKeyChe... | 652361e15f13b699ddb9bd48eeb7b8ee458e004e | [
"Markdown",
"Shell"
] | 5 | Shell | JustalK/Scripts | cfcff46d1efa130ed3e04295ded9a775fb55d7a2 | e24ceb6a81c9bb73841002ef453f0ac6e4a5020d |
refs/heads/master | <file_sep>$(document).ready(function(){
var get_goat_position=null;
var get_goat_name=null;
var get_tiger_name=null;
$(".tiger").click(function(){
var get_tiger_position = $(this).data('position');
var get_tiger_name = $(this).data('name');
console.log(get_tiger_position... | 37c07b49418cdd0e60bcdd0bd57ea13478567bb4 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | sumit1136/game | 0edeb6c284b0a19e8d4b5804bc0dc8e461fe2d21 | de8c785b8549502f74c21d007b435a04d69f7469 |
refs/heads/master | <repo_name>andrezottis/BarApp<file_sep>/app/src/main/java/br/com/ftec/andrezottis/barapp/NotaBarActivity.java
package br.com.ftec.andrezottis.barapp;
import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
i... | 5cb75a385f7601597ad7227037b01c734d441e58 | [
"Java"
] | 2 | Java | andrezottis/BarApp | b68bd846e22c867f289955b6671683f3e56b0f8b | f822ea51b18b609f1039a79239f73ad6d413fe10 |
refs/heads/master | <file_sep>package com.yeejoin.commonapplication.viewmodel;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.arch.lifecycle.LiveData;
import android.support.annotation.NonNull;
import com.yeejoin.commonapplication.data.DataRepository;
import com.yeejoin.commonapplication.d... | ee57897ee508b77a6383b782d3372c4e6e5151c2 | [
"Java"
] | 15 | Java | jiazhen-chou/DeploymentSystem | b3e03986eaab29010a57de93e7999e9ce1d5da3a | dfbd8db949387e1125be77f0fdecc85d38fae3d1 |
refs/heads/master | <repo_name>echo-team/stardust<file_sep>/main.py
import arcade
import structure
from constants import SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_TITLE
from Screens.instruction import Instruction
from Screens.level_1_view import Lvl_1
from Screens.level_2_view import Lvl_2
from Screens.level_3_view import Lvl_3
from Screens.M... | b457a7147906785de029bc6a27e7c3c559f1ca7b | [
"Markdown",
"Python"
] | 14 | Python | echo-team/stardust | 916a2e311983eaa1440704a412aaacb22ec6002b | eb20df935a10564ffe561ebff8f626414c48c1c0 |
refs/heads/main | <file_sep># Tic-tac-toe-game
This program simulates a Tic tac toe game
<file_sep>//Tic tac toe game
#include<iostream>
#include<cstdlib>
#include<cctype>
using namespace std;
void TurnPlayerO ( char[][3],char&); //Function prototypes
void TurnPlayerX ( char[][3], char&);
void PrintGrid();
void PrintWinne... | 4e183a8dff4f809833822dcfd84702e3a66d3840 | [
"Markdown",
"C++"
] | 2 | Markdown | Ara947/Tic-tac-toe-game | 3be57efb7186def35baf74a6e898a68b14b0797d | 6702bf748068ec71f1491eb9f0b1db5b6bb00ebe |
refs/heads/master | <file_sep><?php
namespace sisVeterinaria\Http\Controllers;
use DB;
use Illuminate\Http\Request;
class HistorialController extends Controller
{
public function __construct()
{
}
public function index(Request $request)
{
if ($request) {
$query = trim($request->get('searchTe... | 6a28bf2201d6a0cbcc7bb4e6ff52f6a4811e30d3 | [
"SQL",
"PHP"
] | 13 | PHP | wenguz/sisVeterinariaB | 7a9a55c41847efb34bd66b1a6e9e542af03e5f19 | 72766bc38130fe230f632e0d8b10d3fd55c3b34c |
refs/heads/master | <file_sep>require "tti_spec_helper"
require "net/tti/message"
module Net
module TTI
describe Authentication do
auth_request = (
"037304010106020101010103010173797374656d010d0d415554485f50415353" +
"574f524401404046343638364543394337303541313145343930434337303031" +
"3431313038453431... | 1662ad55eadbe21fe0023f9bb044e8c4664b83ec | [
"Markdown",
"Ruby"
] | 16 | Ruby | chinaren2003/net-tns | 06a085f84aff46673d257be368636c40e76369f8 | 1f0aebfd2c583b812431cd528144b1f52dcab5d5 |
refs/heads/master | <repo_name>ckgardner/Chord<file_sep>/structs.go
package main
import (
//"sync"
)
// Node has stuff
type Node struct {
MyAddress string
Port string
Finger []string
Successors [3]string
Predecessor string
Bucket map[string]string
Ring bool
kill chan struct{}
//Lock sync.Mutex
I... | 1e5c35194bfefd198b5394df2889c507afeb65a5 | [
"Go"
] | 6 | Go | ckgardner/Chord | 7745f2c5da6aeb2858edd4275b08bf88653162b5 | 85830fe70fe8e519b5d08296e8ec04f1fa5d4f89 |
refs/heads/master | <repo_name>jake90059/Sin-Cos-Tan-Calculator<file_sep>/boucher_austin_lab4.c
#include <math.h>
#include <stdio.h>
int k, y, z, b;//sets the ints
char* a;//sets the char
double o, l;//sets the doubles
double x = 3.14159;//sets the value of pie
int userpromt(void)//prompts the user
{
printf("Please choose an option: (0)... | 741184a2da33172df6f9cc30467ad12911d715b6 | [
"C"
] | 1 | C | jake90059/Sin-Cos-Tan-Calculator | d124c3649f702a68ba17be677b5054db2a77d062 | f0e657e7d721d8c85c2bfa298c7a63a4342cdada |
refs/heads/master | <file_sep>#![warn(clippy::all)]
#![warn(clippy::pedantic)]
use nix::libc::{ioctl, TIOCGWINSZ};
use std::cmp::Ordering;
use std::fs::{File, OpenOptions};
use std::io::prelude::*;
use std::io::{self, Error, ErrorKind, LineWriter, Read, SeekFrom, Write};
use std::os::raw::c_short;
use std::os::unix::prelude::*;
use std::... | 7c460e5b3a52b3fa2751eba0cedf584326b89f9d | [
"Markdown",
"Rust",
"Shell"
] | 3 | Rust | AdamGS/rilo | 1fc4c823bb5d35d1d5afa10c37be240b0a8e9df7 | f218b9d9e800956562671a3081d23777d611e7b4 |
refs/heads/master | <repo_name>XuHg-zjcn/Spectrum-Transform<file_sep>/good_image_copy.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Copyright 2018 <NAME>
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 ... | 60774aab79522d4d68157c9f2107839a14be4e16 | [
"Markdown",
"Python"
] | 9 | Python | XuHg-zjcn/Spectrum-Transform | 7d93a499503686b3acb7c1906f1fdb76bfd0681b | e665a33a126b36351273b71602bf1aa213dae9e0 |
refs/heads/master | <repo_name>Varwen/SUID<file_sep>/src/VAC/SUID/Where/Where.php
<?php
/*
* Author <NAME>
* Copyright since 2015
*/
namespace VAC\SUID\Where;
use VAC\SUID\Abstracts\{
Where as WhereAbstract
};
use VAC\Interfaces\{
WhereInterface
};
/**
* Description of Where
*
* @author Simon
*/
class Where extends... | 331a0138baa07cdec274a2fc0b3b50acc9eb0682 | [
"Markdown",
"PHP"
] | 14 | PHP | Varwen/SUID | 26a3b7de1baff4b56452a57a6888434d8e07e345 | 5aa532c4f95dcb62035dccaccc0516731a8bc9cc |
refs/heads/master | <file_sep># 概要
- タップタイタンズ的なRPG x リズムゲーム
- タップすれば進んでいくが、リズムに合わせてタップをする必要があり、タイミングが良ければ良いほど高得点
- 仲間を増やして時間あたりの獲得ポイントを増やしていける
- BGMを設定できる
- BPMを変更できる
# アートワーク
- 案
- 2Dトゥーンシェード
- 太いアウトラインのアメリカっぽいイラストでいきたい。
- ストリート感
- 3Dボクセル
- 差別化要因
# ルール
- タップをすると「ポイント」を「敵」に与える
- ポイントが一定数たまると、「敵」が倒れて「コイン」... | e989d4b81004f7ef7d45849a24d115c82fb0ab80 | [
"Markdown",
"C#"
] | 24 | Markdown | tsoshiro/rhythm | 7f33338ad71adb27ca28df4ffb9bcaac9e201a37 | e38de7f05e58819d384a44fdcae7a970d4cb3859 |
refs/heads/master | <file_sep>console.log("Arley");<file_sep>import './components/timeline/timeline';2~ <file_sep># PersonalPage
Portafolio
| ab4030c515a9bb94fb96b1367f022fc4d221a077 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | ArleyAV/PersonalPage | 45876c78426474019bbad2b62273ef46002ca0c6 | 9ba89416d8a2ff61578ee8e0683ad92bbdb16f14 |
refs/heads/master | <file_sep>Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.network "private_network", ip: "192.168.21.120"
config.vm.network "forwarded_port", guest: 80, host: 8083
config.vm.network "forwarded_port", guest: 443, host: 8447
config.vm.provider :virtualbox do |vb|
vb.customize ["modi... | ec322bb55eb8fe955c64b805e3f7525e94a23b2d | [
"Markdown",
"Ruby"
] | 2 | Ruby | juantimonescalona/ansible-gitlab | 9a052bd027c7f93af02dd2dc188db53f79956de6 | 151d046d76f8fdec0db905d44057c594d9a26f57 |
refs/heads/master | <repo_name>karlbohlmark/swm-node<file_sep>/app.js
(function init(){
pos = 0;
boxWidth = 900;
var move = function(op){
var transform = 'translate({0}px, 0px)'.replace('{0}', pos = op(pos, boxWidth));
console.log(transform);
document.getElementById('container').style['-webkit-transfor... | 9552acb4905fa57c66704d01c6c60e18815348f0 | [
"JavaScript"
] | 1 | JavaScript | karlbohlmark/swm-node | 0bb230565405b077652151f0cef688c427e1e429 | b4845385afadc865f621d88afdd3d7288a3e6831 |
refs/heads/master | <file_sep>matplotlib
sphinxcontrib.bibtex
numpydoc
pydata_sphinx_theme
nbsphinx
ipython
myst-parser
<file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import collections
import math
import operator
import geopandas as gpd
import libpysal
import numpy as np
import pandas as pd
import pygeos
import shapely
from sh... | 0c4340594305664a6aa3867737b7987baecf152c | [
"Python",
"Text"
] | 2 | Text | kaszklar/momepy | 5dc84a4b3d78a8f6e63a0673ec594e063ec6a5b8 | 29d4736ec5f5c0642357ab358248be266aacef47 |
refs/heads/master | <repo_name>MasterKale/avery<file_sep>/vue.config.js
// vue.config.js
module.exports = {
configureWebpack: {
// Allow for relative paths for the various bundles
output: {
publicPath: './',
}
}
}
| 2fa396fcd6ce4c94f4650c386dd2daa16dd0ffc9 | [
"JavaScript"
] | 1 | JavaScript | MasterKale/avery | eb0d9333ffbc5c8d4feab68f6a171fdfdd38de6b | 413273fe4df26e36d6076593020683d3414986db |
refs/heads/master | <repo_name>postmates/wrench<file_sep>/pkg/spanner/testdata/migrations/000004.sql
ALTER TABLE Singers ALTER COLUMN LastName STRING(MAX) NOT NULL;
<file_sep>/cmd/errors.go
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
type Error struct {
err error
cmd *cobra.Command
}
func (e *Error) Error() string {
ret... | 6fc1ef120b8025c4435782a9f27eef0f1d6eef58 | [
"SQL",
"Go Module",
"Go"
] | 26 | SQL | postmates/wrench | 599f517d6d8963ef429c3e3d5cb60b8d0c30fea9 | d0a9f552d5b03c837e512235a75c5732e8bfa412 |
refs/heads/main | <repo_name>dannypak716/blogger-pro<file_sep>/src/components/Article.test.js
import React from "react";
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import moment from "moment";
import "@testing-library/jest-dom";
import Article from "./Article";
const t... | f236bd1a67fb38d65e8a2ba269e6cd197266920d | [
"JavaScript"
] | 2 | JavaScript | dannypak716/blogger-pro | 76d3b414be086b59f5a128b1b6a415843688a09c | 75e40de263d4bc08c079b9c3f74a62f935708fe3 |
refs/heads/master | <repo_name>olivmed/travelG2<file_sep>/config/routes.ini
[routes]
#doc route
GET /doc = App_controller->doc
#main routes
GET / = App_controller->home
GET /travel = App_controller->travel<file_sep>/app/Models/App.php
<?php
class App extends Prefab{
function __construct(){
F3::set('dB',new DB\SQL(
'mys... | eb0ee8c890da617e6130e8dce9b52dd726d8a984 | [
"PHP",
"INI"
] | 3 | INI | olivmed/travelG2 | fabe062ffda4a02b891a4f5e2bba04a2c72f3d4a | 9de906e8d8ff3750d25d3f0375ba5f856b779bff |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ParticleSystemPooler : MonoBehaviour
{
int amountPer = 10;
[System.Serializable]
public class PoolableParticleSystem
{
public string name;
public GameObject particleSystemObject;
... | 2afb177aba6f836c32eb05cb3157412cb510def8 | [
"Markdown",
"C#",
"INI"
] | 38 | C# | sinqz/PokemonInUnity-1 | 4eae99ccf52f637ab5ccc0d9a79dae3ff96ab91d | 2fc86d620252c1ce47f910f4d3ffa39dacbd0deb |
refs/heads/master | <file_sep>self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "2e579ff99720a50ad0470d5d274f16a6",
"url": "/index.html"
},
{
"revision": "defa48da20dba649c3bf",
"url": "/static/css/main.fe49e6e2.chunk.css"
},
{
"revision": "c3523fed135cabb60e9b",
"url": "/st... | 4eff91ca4efd096aa039376bff3270c165dbf104 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | NKStupid/nri-static | a1b07467f7d1380fe99f8cef4e6e1f28ac23b419 | f0d1fbf228138067239e6179b1e10270dfed8c3c |
refs/heads/master | <repo_name>akyao/namingcounter<file_sep>/src/namingcounter/CountAction.java
package namingcounter;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse... | 9a3d33ce3b3d7083a8e5e68f601f96e18365fe4f | [
"Markdown",
"Java"
] | 4 | Java | akyao/namingcounter | 30de1ab720572687b45a77cb8650ecbd4c51deed | b9eb82e9146a6c448f5adeebb1abc7f7466a9dc3 |
refs/heads/master | <repo_name>MalonHolmes/FirstObjectsDemo<file_sep>/src/test/java/io/codedifferently/HumanTest.java
package io.codedifferently;
import org.junit.Assert;
import org.junit.Test;
public class HumanTest {
@Test
public void constructorTest() {
// Given
String first = "Mickey";
String las... | e5a641ed24eb2f439f1d447ff52a80963b916d99 | [
"Java"
] | 1 | Java | MalonHolmes/FirstObjectsDemo | b20bc3f91864f2f32a4aa3fe0c48097b2c1c3f14 | c5754d7ab6522f4c63c635826f15c7c38a7fd51f |
refs/heads/master | <file_sep>import bpy
from bpy.props import StringProperty, EnumProperty, PointerProperty, CollectionProperty, BoolProperty, IntProperty, FloatProperty, BoolVectorProperty, IntVectorProperty, FloatVectorProperty
from bpy.types import Operator, Panel, PropertyGroup, AddonPreferences
import os
from bpy.app.handlers import... | 488feead6c9a0e862805f916bb3ddfa759d12a99 | [
"Python"
] | 2 | Python | DruidTin/ScriptToButton | 596d1acb8a84470861dcfc3ba160c4069b1c5540 | cf8952e8d25b7672b5295f51a1f5f9946421320c |
refs/heads/master | <file_sep># Unreleased
# 0.4.2 (2021-08-06)
- Pass UNIX path separators to `aapt` on non-UNIX systems, ensuring the resulting separator is compatible with the target device instead of the host platform.
# 0.4.1 (2021-08-02)
- Only the highest platform supported by the NDK is now selected as default platform.
# 0.4... | 8bc96709367360dbb3b793ed7389db5b579446fe | [
"Markdown",
"Rust"
] | 5 | Markdown | snow2flying/android-ndk-rs | e8f52d2a3bde47250b4e49563ae23a05ede272cd | f1413ae040b9abcfbf15ff15f67492b558965a9e |
refs/heads/main | <file_sep># This is a chat app built around sockets in python
import socket
import time
# parameters for connection
SERVER_HOST = "0.0.0.0"
SERVER_PORT = 80
BUFFER_SIZE = 1024
# create socket
s = socket.socket()
print(f"[*] Listening at {SERVER_HOST}:{SERVER_PORT}")
s.bind((SERVER_HOST, SERVER_PORT))
s.l... | e571f723a3c95cde4e74b5a314c02172d82c85d6 | [
"Markdown",
"Python"
] | 3 | Python | uzowis/chat-app | 0f1f4d995bc863baccc01cdaf1c60ad13d262685 | c4c77f8f588926bc8d8724a10d7127a3f913d1d4 |
refs/heads/master | <file_sep>import math
import random
import numpy as np
def pixel_classifier_scan(sampleName):
"""
This function takes in the name of a sample and calls the pixel classification method that looks only at the values
of the pixel's mechanical properties.
Inputs: sampleName - a string of the sample's... | 9d1daa810cdfee1dc858697d4e4aec6570ff34bc | [
"Python"
] | 1 | Python | wesleyktatum/MANA-T | b876fa0fe55aa80caedeb970437d6dac6a8a3a49 | e130a443a3f3545e5035557838a298e086ac78b6 |
refs/heads/main | <file_sep>class Module:
_validStartCharacterOfCode = ['B', 'E', 'I', 'S']
def __init__(self, code, level):
self._code = code
self._list = Module._validStartCharacterOfCode
if self._code[0] not in Module._validStartCharacterOfCode:
self._code[0] = Module._val... | 1f74a9356241bbabd607096a015c1705931c19d2 | [
"Python"
] | 1 | Python | EuyizL/PythonProjects | d5c199eb5c0e434fe1c4b8c08d745b355730f42e | a8a18ff3c987501eacbdac5a97e5fc4fa6bdca7c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.