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># ResRNN
Implementation of a two path ResRNN architecture (Circle-RNN was invented).
### This repository is an implementation of our IPMI 2017 paper:
<NAME>., <NAME>., <NAME>., <NAME>., <NAME>., <NAME>. (2017) Direct Estimation of Regional Wall Thicknesses via Residual Recurrent Neural Network. In: Informati... | 2b01bcca89b495be919f0b847a075744844a4bf5 | [
"Markdown",
"Text",
"Shell"
] | 3 | Markdown | xwolfs/ResRNN | 5f2618d08c3843246c5adc24cbd92908655b25cf | f2c9c08b063f268143d4f4acf9520fae6b266d34 |
refs/heads/master | <repo_name>mgreenbe/jslatex-old<file_sep>/src/tokenize.test.js
let { tokenize } = require('./tokenize.js');
let { regexes } = require('./regexes.js');
let { matchText, parse } = require('./parse.js');
let str = `
Hi, mom!
\\section{Dude section}
Yo, dude!
Yo, man!
\\subsection{Blah blah}
Subsection content.
\\... | 75ab0de7f79f90b2bb1a49d026d13706a6453b04 | [
"JavaScript"
] | 4 | JavaScript | mgreenbe/jslatex-old | 222360a90c9c6eb9ede9f3149e1bf2512cfb8d5e | 1adea65ae79a16ed78535b3ee225be71050d98d4 |
refs/heads/main | <repo_name>kodzzzima/pulttaxi-test<file_sep>/app/src/main/java/com/example/testapp/util/Utils.kt
package com.example.testapp.util
import android.graphics.Color
import android.view.View
import androidx.fragment.app.Fragment
import com.google.android.material.snackbar.Snackbar
fun Fragment.handleApiError(
failure: ... | 2553ba52d16c9bcb3b68ab80f0c2d8ee78f078c4 | [
"Markdown",
"Kotlin"
] | 16 | Kotlin | kodzzzima/pulttaxi-test | a0d858bb2aa855d775504c9709ade9ba124faf94 | 21b9cba2be3895a4a68026444cd51272977b5bce |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Valve.VR;
using Valve.VR.InteractionSystem;
public class GameBook : MonoBehaviour
{
[Header("Action")]
// a reference to the action
public SteamVR_Action_Boolean menu;
// a reference to... | 4d29ceb8b81253ca2cdc3394a4a9c57d76ef386d | [
"C#"
] | 13 | C# | Senteris/detectiveVR | 06113de3b3debdf54aaeab5badae5fa56f6b9493 | 13702b493df60edf5b862d4031e3c118ce8480a5 |
refs/heads/main | <repo_name>sonOfArent/Simple-Zombie-AI<file_sep>/SimpleZombieAI.py
import random
########################################################## Classes #################################################################
class Zombie():
def __init__(self):
self.character = "Z"
self.locatio... | 87cae267677c3b111b964c926164b1061615f27e | [
"Markdown",
"Python"
] | 2 | Python | sonOfArent/Simple-Zombie-AI | 098dcffd37ab206bc2e66417365ae573f3db163e | f0aaba1b3cd44acf40cee6f2316354963d5ee26d |
refs/heads/master | <file_sep># dogecoin-serverless-tracker
Store price history and get current USD price of Dogecoin using AWS and Serverless framework.

<file_sep>'use strict';
const Coinmarketcap... | abc481ed6e2741938fdea43035dcf87cabd721f1 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ShawnAukstak/dogecoin-serverless-tracker | da4f0f3eba4a22925307c271d726934a7323b697 | 10600e5e498853d12446b938f6c6916cdd4490b2 |
refs/heads/master | <file_sep>package etsmtl.gti785.musicserver;
import android.content.res.AssetFileDescriptor;
import android.media.MediaMetadataRetriever;
import android.util.Base64;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import java.io.FileInputStream;
import java.lang.refl... | be1b5fa0df9190be499b45751287167f9dbdbe72 | [
"Java"
] | 2 | Java | EricBarry99/MusicServer | 471bcf560b5cb5b9b172d2cd51580bf24a7e4cc3 | 6c29d65bd8c3c72b24e622c80002a16c76c4be12 |
refs/heads/master | <file_sep># Generated by Django 3.0 on 2020-11-23 10:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_post_sidebar'),
]
operations = [
migrations.AddField(
model_name='post',
name='footer',
... | 2779f93f93bc2fbfefcd73c43e7af8b657dd56b7 | [
"Markdown",
"INI",
"Python",
"Text",
"Dockerfile",
"Shell"
] | 11 | Python | fabiocax/glob | bd1c57abbe171bc7d79f644037c1a1ee94fe6d85 | 6e7b7235207dda34634bb88438757d8c45bad15d |
refs/heads/master | <repo_name>EMalley/YouNameIt<file_sep>/schema.sql
CREATE DATABASE users;
USE users;
CREATE TABLE `userInfo` (
`id` INT (11) AUTO_INCREMENT NOT NULL,
`userName` VARCHAR (255) NOT NULL,
'email' VARCHAR (255) NOT NULL,
'phone' int(10) NOT NULL,
PRIMARY KEY (`id`)
) | cb0151d3012191fdcbe0e285b6bdb58e33bfa758 | [
"SQL"
] | 1 | SQL | EMalley/YouNameIt | 7700f3f5af7cc35a413dded862ffa019cd1919ea | ddecb9c7cbd741927ca304be3b1ba91e778c91bb |
refs/heads/master | <file_sep># Countdown
In a Countdown letters game, contestants form the longest anagram they can from a scramble of nine somewhat random letters (including at least three vowels and four consonants). No letter may be used more often than it appears in the scramble. More information on the rules (and controversies!) of... | b7f3e4b336102c629f768c39979c0a2b142badd3 | [
"Markdown",
"Python"
] | 3 | Markdown | oliver-brenner/Countdown | d6a641c0b0f26c7ea9fd1140f7f7fef35884c6ad | 7175d324b51ec6c0aa60da9a1e3dcab990cc444b |
refs/heads/master | <file_sep>driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://127.0.0.1/test_db
username=root
password=<PASSWORD><file_sep>package com.sxx.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sxx.dao.UserMapper;
import com.sxx.en... | 071b67728f0402e251f4c60e7f970396b82e6bd1 | [
"Java",
"INI"
] | 3 | INI | sunxiaoxu0124/MavenDemo | f9e0ce65e7ce8608c0e6873902fa21284e606041 | 2d11292fa2636d72b846b2db6d06388672b623cb |
refs/heads/master | <repo_name>Shawnuke/node-snake-game<file_sep>/public/assets/js/script.js
// type apple =
// {
// context: HTMLElement,
// color: string
// position: location
// }
class Apple {
constructor(_options) {
this.context = _options.context;
this.color = _options.color;
this.position =
... | 382fc12d0f403a52268631e43e56b3e22508afcd | [
"JavaScript",
"TypeScript",
"JSON with Comments",
"Markdown"
] | 4 | JavaScript | Shawnuke/node-snake-game | 91c26b3e4442ff2bd2e62109f2244ebc0c8cf666 | 366c5dc9303ad91cdfe837804550d70c2dab8a9d |
refs/heads/master | <repo_name>briannoogin/Neural-Network-Science-Fair-Research<file_sep>/normalityTest.R
mardiaTest <-
function (data, cov = TRUE, qqplot = FALSE)
{
dataframe=as.data.frame(data)
dname <- deparse(substitute(data))
data <- as.matrix(data)
n <- dim(data)[1]
p <- dim(data)[2]
data.org <- data
... | 6b7286e14b3830fd9cbe57bd49056a68babab052 | [
"Markdown",
"R"
] | 2 | R | briannoogin/Neural-Network-Science-Fair-Research | 8232bc6abea8d670736ac2d0d21d04fb10842694 | 2c450b9889b8a1517db7ea6f6150cd0c93b30f8c |
HEAD | <repo_name>webpioneer/rien3<file_sep>/utils_app/views.py
from django.contrib.auth.models import User
from django.contrib.messages import info
from django.core import mail
from django.core.mail import EmailMessage
from django.shortcuts import get_object_or_404, redirect
from django.utils.translation import ugettext_lazy... | 71f9b8b3cfc780d08ffb7bb22da3229e0b1c2200 | [
"JavaScript",
"Python",
"HTML",
"Markdown"
] | 71 | Python | webpioneer/rien3 | 23fbd6c117feb4e203574488fdc57d4e3c949252 | 154c10156033e17888863adf425ffbab5e70a5eb |
refs/heads/master | <repo_name>SanketGupte/mobile_app_ws<file_sep>/mobile_app_ws/target/classes/application.properties
spring.datasource.username=Sanket
spring.datasource.password=<PASSWORD>
spring.datasource.url=jdbc:mysql://localhost:3306/app_db
spring.jpa.hibernate.ddl-auto=update
<file_sep>/mobile_app_ws/src/main/java/com/sanket/app/w... | 7ca658a198063df2da6c60e4098b2227112adfb1 | [
"Java",
"INI"
] | 2 | INI | SanketGupte/mobile_app_ws | e7b40bebabf844f107145dc35bd60b25c83549bf | 448f2521872b9482125340114a1527ad403646e1 |
refs/heads/master | <repo_name>jdromero88/woof-woof-js-practice-dc-web-102819<file_sep>/src/index.js
var totalPages;
document.addEventListener('DOMContentLoaded', webIsReady)
function webIsReady() {
getPups()
getDogBar().addEventListener('click', showPupsInfo)
btnDog()
}
function getPups() {
fetch('http://localhost:3000/pups')
... | 6e6a09b61e1f98902bb63273e0e288109d1f6632 | [
"JavaScript"
] | 1 | JavaScript | jdromero88/woof-woof-js-practice-dc-web-102819 | 8edfdb954139dedca04e6070af75f855447e52c0 | 68e01a10326fab40d4f5cd6bde482cfb155b8fb4 |
refs/heads/master | <repo_name>swipswaps/scrcpy-launcher<file_sep>/README.md
# Remote Android via ADB Wireless using scrcpy
Wireless remote your Android Phone or Tablet without Internet and any 3rd party software installed on your Android device (Android 5+). Older version of Android can still use this tool by installing *WiFi ADB - Debug... | e6ca3ae3a26789fd0ec66881eef01ba62eac345d | [
"Markdown",
"Shell"
] | 4 | Markdown | swipswaps/scrcpy-launcher | 84b7ae8f2bcbbe6439ba8841b2304674adcf5c8b | bd1cd6aa5dd65722325eb545e35a93fd06a064eb |
refs/heads/master | <file_sep># Node class for pathfinding method
__author__ = '<NAME>'
class Node:
x = 0
y = 0
position = []
closed = False
obstacle_bool = False
obstacle = 0
# Calculate Heuristic using the Manhattan Method
H_value = 0 # Heuristic - Distance from node to target node
... | 8d794e93c1498a3d8dbcbeb673fcad22cf1f0b22 | [
"Markdown",
"Python",
"Text"
] | 7 | Python | Ruenzic/HonoursProject | fe31b789fce025e87cda1c0afa02f3625b8ed21d | 67923bed551eda81cb2da58f60882f01055eaf03 |
refs/heads/master | <file_sep>package com.example.flutter_rolling_dice
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 78fb67e2fb214bce1cf20633a7e8fc8e7287cef6 | [
"Kotlin"
] | 1 | Kotlin | Mufaddal5253110/Flutter_Roll_The_Dice | 68b05e5a93809b4661cae4134f36fc9e56e9fabf | dd9b2e7f04db76027b57325c667fb61113f1992e |
refs/heads/master | <repo_name>AlxHnr/minigame<file_sep>/main.c
#include <SDL.h>
#include "SDL_image.h"
void set_frame(SDL_Rect *char_source, SDL_Rect *char_dest, short x, short y, short w, short h)
{
char_source->x = x;
char_source->y = y;
char_source->w = w;
char_source->h = h;
char_dest->w = char_source->w;
char_dest->h =... | 05a284ce25dc35305d21892b362e03c8f3d748a9 | [
"Markdown",
"C"
] | 2 | C | AlxHnr/minigame | 90321264e0d8d1bb3bce900fcfaa5c2ab6e66bc7 | 0384418854ccedb5129562d58c03b2fd6e38708f |
refs/heads/master | <repo_name>daniel-j/fallout-term<file_sep>/README.md
# Fallout terminal hacking simulator
#### Demo on Youtube:
[](https://www.youtube.com/watch?v=8lvdZyhnTm4)
Requires python2 and urwid
```
$ python2 fallout.py
```
<file_sep>/fallout.py
import urwid
f... | 8a72c34a9f6e798d679278327bf52bfaa0fbbce2 | [
"Markdown",
"Python"
] | 2 | Markdown | daniel-j/fallout-term | ebdab75bb823552f10f0532998498fe3b2af79c4 | 0541de771130d0f9290ff901609b534f1e0f2d58 |
refs/heads/master | <repo_name>aleksey-zhidkov/restler<file_sep>/test-api/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<parent>
... | f5bdc45fa5a5ae27a3c485b9bf2331ddc1afb767 | [
"Java",
"SQL",
"Maven POM"
] | 4 | Maven POM | aleksey-zhidkov/restler | bc3152523cf48e69201c357f7d61df6f0d8cf5e4 | a80da359b93a489dff9790ce6d41e4bd46bd0d3f |
refs/heads/master | <file_sep>import React, { useState } from "react";
const Url = ({ url, hashid }) => {
let textArea;
const [clicked, setClicked] = useState(false);
let fixedUrl = url.split("");
if(fixedUrl.length > 30) {
let newArr = fixedUrl.slice(0,30);
newArr.push("...");
fixedUrl = newArr;... | a128b5d5ee2626aa09951ed1ab2e7a22c2e63f0a | [
"JavaScript"
] | 3 | JavaScript | dacqcastro/urlshorty | 467878bd2d4682a2b6ee65145f15df5508b3ba83 | 53a062aaad3a9830bfa7e9de06d2b4ecebf20783 |
refs/heads/main | <repo_name>jessejonass/worldtrip<file_sep>/src/components/Header/types.ts
export type HeaderProps = {
hasBackButton: boolean;
};<file_sep>/src/components/Pages/Continent/components/Card/types.ts
export type CityCardProps = {
image: string;
capital: string;
country: string;
flag: string;
};
<file_sep>/src/comp... | f08122204746b7342372f3c2e55c52c2d499177e | [
"Markdown",
"TypeScript"
] | 9 | TypeScript | jessejonass/worldtrip | 7a6d685180ef37835328b4580de1730db88bcd84 | 60ca75245a63989d8def64828470e9cfdb73d960 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include "da.h"
#include "integer.h"
//#include "real.h"
//#include "string.h"
extern long random(void);
extern void srandom(unsigned int seed);
int
main(void)
{
printf("DA tester: 0,5\n");
printf("you can retrieve this test with:\n");
printf("wget beast... | 70ebe98087fbb1eb1438375e34496c58289e9ee6 | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 26 | C | jaw653/Dynamic-Structures | f775f05618a883cb0bd532c2fcf12b635184ff51 | 7cbbfedd15dace42755b81a4b150187efd8d3252 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using RapidCMS.Core.Abstractions.Data;
using RapidCMS.Core.Abstractions.Resolvers;
using RapidCMS.Core.Abstractions.Setup;
using RapidCMS.Core.Extensions;
namespace RapidCMS.Core.Resolvers.Data
{
internal cl... | 99918d799f0f7b916f65ada195a4880f93ba2634 | [
"C#"
] | 3 | C# | Eurobric/RapidCMS | 95f406d7e1e0d9015917947307b1be14a030982c | ff498513994181c23b69be8a5f216293e1e6cec2 |
refs/heads/master | <repo_name>shedbuilt/libdrm<file_sep>/build.sh
#!/bin/bash
mkdir build &&
cd build &&
meson --prefix=/usr \
-Dudev=true &&
NINJAJOBS=$SHED_NUM_JOBS ninja &&
DESTDIR="$SHED_FAKE_ROOT" ninja install
| 47bfc5a3e5f5736a482b8d663c9fa7d2291c567c | [
"Shell"
] | 1 | Shell | shedbuilt/libdrm | c1936da2d46850f94666017d113a3aa93b1b2585 | fe55ccaf1fa3efa56edb72b5aeb2a0a4449bb0f8 |
refs/heads/master | <file_sep>package onceler.internal;
import java.lang.invoke.*;
public class Factory {
private Factory() {}
public static CallSite bootstrap(
MethodHandles.Lookup lookup
, String invokedName
, MethodType invokedType
, MethodHandle factory
) throws Throwable {
return new ConstantCallSite(MethodHand... | 4509d3ee81b096f9f6b1adff0c678db6d3cbd033 | [
"Java"
] | 1 | Java | hrhino/onceler | 407c209f24489d42e17302eedbd0e9b1f0887a5b | 776da68525adf2f760f55a5ac894bacc4cf87dd0 |
refs/heads/master | <file_sep>Rails.application.routes.draw do
root 'buildings#index'
resources :buildings
resources :apartments
end
<file_sep>class Apartment < ApplicationRecord
belongs_to :building
validate :numeros_sin_duplicar
validates :numero, presence:true
validates :building_id, presence:true
private
def n... | 0f5ac3e6d3f0c617fbb3150d2e8c9c77a970486d | [
"Ruby"
] | 5 | Ruby | carpenaloza/edificios | 4cc8459075c35143d011a7163e90e434fbbc3d43 | d39f8d1832b0a143ad87311e447920449ccb870f |
refs/heads/main | <file_sep>import { Server } from "socket.io";
// Because NextJS doesn't officially support websockets, need to deploy using heroku
// This solution is by rogeriojlle on StackOverflow:
// https://stackoverflow.com/questions/57512366/how-to-use-socket-io-with-next-js-api-routes/62547135#62547135
const ioHandler = (req, ... | a4ddf2e31106351dc9e87e885c9222a4a26d2e22 | [
"JavaScript"
] | 1 | JavaScript | elim04/chatapp | 95b1edd75fc4d4ca7a4593b0f762ab0925eba45f | e6d3cd9c6a70f25b77058f7337ce852446e206b0 |
refs/heads/master | <repo_name>hs-webdev/starter-store<file_sep>/config/initializers/session_store.rb
# Be sure to restart your server when you modify this file.
StarterStore::Application.config.session_store :cookie_store, key: '_starter_store_session'
| 8e6eb1ebefc6d3a02daec4a0f13f0851b1172aa7 | [
"Ruby"
] | 1 | Ruby | hs-webdev/starter-store | 9be9e8067a1ab09327341c8802105d2e67676b22 | 3821944dbca640d39623a88dfd899d81cdf72bc7 |
refs/heads/master | <file_sep>package com.jlapp.startdeeplink
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle... | 189ec4ba5c96f396a64875b633977123a4dbe79b | [
"Kotlin",
"Gradle"
] | 2 | Kotlin | jjaviles2010/StartDeeplink | 0b4df36b26298ed2bdb862f572352695dc19b3f5 | a6098592db9e0896708f4a216457b1667cf86ddc |
refs/heads/master | <repo_name>Kahefsay/wip<file_sep>/api/routes/index.js
/* eslint new-cap: [0] */
let express = require('express');
let router = express.Router();
let jwt = require('express-jwt');
let auth = jwt({
secret: 'secret',
userProperty: 'payload',
});
let ctrlAccueil = require('../controllers/accueil');
let ctrlAuth =... | bf71126bbda3cd8aa65df02e7a32e4c0000bdea6 | [
"JavaScript"
] | 2 | JavaScript | Kahefsay/wip | b5bb2d046c7d57bbc09d5ae6e5cd7aa3bb5550cf | ef8c5009a50e27d1be6f805940e0a5440c06ecae |
refs/heads/master | <repo_name>ZeeshanAhmedoff1997/AwesomeImages<file_sep>/README.md
# AwesomeImages
An App that contains the Awesome Images
<file_sep>/src/components/Listitem/ListItem.js
/* eslint-disable space-infix-ops */
/* eslint-disable eol-last */
/* eslint-disable react/self-closing-comp */
/* eslint-disable import/newline-after-i... | 7beeb51b460c4100589ffc64a35a68f2c4869a40 | [
"Markdown",
"JavaScript",
"Gradle"
] | 5 | Markdown | ZeeshanAhmedoff1997/AwesomeImages | 54fd68b1ff503e8fb29dc8de26fa8e35b8f5ed85 | f4d9d3f9b9cc322babd61d1979092c0efade230d |
refs/heads/master | <file_sep>package com.olecco.android.companyprofile.model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class CompanyData {
@SerializedName("symbol")
@Expose
var symbol: String? = null
@SerializedName("divisionData")
@Expose
var divisions: Map<St... | 032748947f8cd74913b8dc225c7232e9de146c36 | [
"Kotlin"
] | 15 | Kotlin | olecco/CompanyProfile | 118936cff8c9de3c96780db17560e99bd9cfa320 | 5b558decd10144f4ee1e501b7e547796d10fe746 |
refs/heads/master | <repo_name>rfrancotechnologies/egrafana<file_sep>/README.md
# Grafana exporter
This is an small program that allows you to export Grafana dashboards and datasources and import them to other grafana or just store them as backup.
## Usage
You will require an API token. You can get it on Grafana UI, under `Configuratio... | 0d1aa63eacfac1664f7c5999e87310fabfa32b00 | [
"Markdown",
"Python"
] | 2 | Markdown | rfrancotechnologies/egrafana | dba6c0a7aeb236bd86dd766b3f2bbe37b6c9bea6 | c0b430831e194bf6ce82ffd1c1c15b9ed04bbc09 |
refs/heads/master | <file_sep>require './rlox/error'
Token = Struct.new(:type, :lexeme, :literal, :line)
KEYWORDS = [
"and",
"class",
"else",
"false",
"for",
"fn",
"if",
"nil",
"or",
"return",
"super",
"self",
"true",
"let",
"while",
]
class Scanner
def initialize()
@start = 0
@current = 0
@l... | 3e20b6fbf054387750ddb1fe018f1ff63b51bc71 | [
"Markdown",
"Ruby"
] | 12 | Ruby | hellerve/rlox | 668248bd840d1af104215f5ce8cca8abf989a7bd | 7238ef04cdb25fcb4d7cfd81254c36d7d9f00689 |
refs/heads/master | <repo_name>swissarmykirpan/dockerfiles<file_sep>/squid/README.md
# about minimum2scp/squid image
* based on minimum2scp/baseimage (see https://github.com/minimum2scp/dockerfiles/tree/master/baseimage)
* squid3 package installed
## start container
```
docker run -d -p 3128:3128 minimum2scp/squid
```
and then use f... | 24b07664bd72337b0a770bc50d9cc2887700c6ad | [
"Markdown",
"Ruby",
"Shell"
] | 3 | Markdown | swissarmykirpan/dockerfiles | 7df54ad204e9771f468011ab9a85cbb075736be3 | f76186a196b5d7e826f8522124e770a6a2afca4e |
refs/heads/main | <file_sep><?php
include_once 'database.php';
$sql = "DELETE FROM infopdf WHERE fileid='" . $_GET["fileid"] . "'";
if (mysqli_query($conn, $sql)) {
echo "Record deleted successfully";
header("location:table.php");
} else {
echo "Error deleting record: " . mysqli_error($conn);
}
mysqli_close($conn);
?><fi... | bc7508cf0fe088ef0cd9c8c9d0435b1ce2602a24 | [
"Markdown",
"HTML",
"PHP"
] | 15 | PHP | ateefradio/smartsociety.github.io | 5b533f0895ac9a1e3690bf600ab0c839d29fa948 | eee7604f1053925faf7de79fb19a6872f5014b53 |
refs/heads/master | <file_sep>//nav
const navIcon = document.getElementById('navIcon')
const nav = document.getElementById('navsub')
nav.style.display = 'none'
navIcon.addEventListener('click', () => {
if(nav.style.display == 'none') {
navIcon.classList.add('cross')
nav.style.display = 'block'
} else {
navIcon.classList.re... | 1be4adeb28f1aafbac9b7246745458065d9c9629 | [
"JavaScript"
] | 1 | JavaScript | azemlyankin1/DTP | 19cd61a5ce46b4baa303039f69db0ffbb1463dcb | 5a1b0f018e47866d7c4783e53f27156d1dcd0ef9 |
refs/heads/master | <file_sep>import React, {Component} from 'react'
import {View} from '@tarojs/components'
export default class List extends Component {
constructor() {
super(...arguments)
this.state = {
current: 0
}
}
handleClick(value) {
this.setState({
current: value
})
}
render() {
re... | 46a42a83d88520d010b874ea7ab2725bdb1e9b66 | [
"JavaScript"
] | 3 | JavaScript | yueyue10/taro_demo | 359571cfb9c55242565b93fa59ab9f20da9365b6 | 80bdcfc10d1f6ec51e448581190d1fa6a8969dcb |
refs/heads/master | <repo_name>dentriger/game<file_sep>/src/Security/UserProvider.php
<?php
/**
* Created by PhpStorm.
* User: andre
* Date: 09.09.2018
* Time: 17:15
*/
namespace App\Security;
use App\Controller\UserController;
use App\Entity\User;
use App\Repository\UserRepository;
use HWI\Bundle\OAuthBundle\OAuth\Response\UserRe... | 12a34b569e37fd305100681a9b4ae1d635ea8c4f | [
"PHP"
] | 14 | PHP | dentriger/game | 3ed0fe29e77778c64fe4945d1dcfcc5c9abf6f81 | 8bec45dbd51678058965040e5190f618db699de9 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using EntityFramework.DynamicFilters;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DynamicFiltersTest... | 4770ef88eef52c8d853210e36311aa17be8afb02 | [
"C#"
] | 1 | C# | duanjian/EntityFramework.DynamicFilters | d74bee4290cb8cf800ae238f8aadd12236115007 | 91e746d577febfdd1cbac6c7a4961fd259996eac |
refs/heads/master | <repo_name>wrcx/npm-vue-component-generator<file_sep>/plopfile.js
const config = require('./generator.config.js');
module.exports = function(plop) {
// Initialize generators
// ============================================
config.generators.forEach(function(generator) {
plop.setGenerator(generator.name, gener... | ebcfef7db8a29978de3e4aee5b361bcf317c3af1 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | wrcx/npm-vue-component-generator | 67eff26fdd8f134df982e944544ef9a8ede94784 | 0b4ae4e9b6c4a5daab5deb8b82d2119ae34143fb |
refs/heads/master | <repo_name>wbw20/scrapear<file_sep>/README.md
scrapear
========
A tool for easy web scraping.
<file_sep>/main.js
var request = require('request'),
cheerio = require('cheerio'),
async = require('async'),
format = require('util').format;
var concurrency = 2,
counter = 0,
map = {};
function done() {... | fbad0f75cd3ab3350971aef551a5d2b36e0b2157 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | wbw20/scrapear | 3e1fdb836ccd58b26c0059ca9428481c82a203d8 | 20771766fb422a7dc3172da7490a3f1014ec9dc4 |
refs/heads/master | <repo_name>essantos97/projeto-ecompjr<file_sep>/Projeto front Johnny e Emanuel/_controller/adicionaMembroProjeto.php
<?php
require_once( '../_controller/controllerdados.php' );
$emailMembro = $_POST['email'];
$idProjeto = $_POST['idproject'];
$controller = Controllerdados::getInstance();
$controller->addMembro($email... | 572b30243a639db4a20bbb6ae8f548d753e0f2e4 | [
"JavaScript",
"PHP"
] | 9 | PHP | essantos97/projeto-ecompjr | 39f5b4c07ae78420097726df1d012ca2a7e0ef54 | 62c7cdd0ed428e633ed4cf9801d38a71ac24dc6f |
refs/heads/master | <repo_name>sn0w/auto-proxy<file_sep>/README.md
# auto-proxy
[](https://nodei.co/npm/auto-proxy/) [](https://nodei.co/npm/auto-proxy/)
### Never care about proxies again!... | 2f6f90f52d3320d1e039652a215d6c98be1506e2 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | sn0w/auto-proxy | b3a675ad40eb36425b5f0fbb86bbf7e32fcd7106 | c72ba464f8687a7d0c24da86ff44573bcf9c97ed |
refs/heads/master | <repo_name>KiSooLee/TnP_B<file_sep>/UserCode/DonghoMoon/HiTagAndProbe/test/TnP2013/Efficiency/RD/MuTrg/TnPEffTrgDraw_for_B.C
#include <iostream>
#include <TSystem.h>
#include <TTree.h>
#include <TKey.h>
#include <TH1.h>
#include <TH2.h>
#include <TPave.h>
#include <TText.h>
#include <fstream>
#include <sstream>
#includ... | 95ffee70e900385e875ac5e387fe1d1ca70fd26b | [
"C",
"Python"
] | 12 | C | KiSooLee/TnP_B | 2503678e3f9d983edabbc97ae46639584faa177a | 814382cd547c1827690f957716b053187e4f44e0 |
refs/heads/master | <repo_name>aqianglala/MusicPlayer<file_sep>/app/src/main/java/com/example/admin/musicplayer/bean/AudioItem.java
package com.example.admin.musicplayer.bean;
import android.database.Cursor;
import java.io.Serializable;
public class AudioItem implements Serializable {
// Media._ID, Media.TITLE, Media.ARTIST, Medi... | abf6814ca9003dd094ff24093dd3d6de271eef77 | [
"Java"
] | 2 | Java | aqianglala/MusicPlayer | ff8443119621c12c8342561fe8ab020194d9d5f4 | 2d2f3ff01ed6f21309afdbac5e0830fa15c4c17c |
refs/heads/master | <repo_name>kwanpham/OrderFoodDemo2<file_sep>/app/src/main/java/com/example/mypc/orderfooddemo2/SuaBanAnActivity.java
package com.example.mypc.orderfooddemo2;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import andr... | ce36191bcc890957450f9bd349ea137f13921951 | [
"Java"
] | 3 | Java | kwanpham/OrderFoodDemo2 | f7b2b857513561729e93c5096dab3fa77e1907dd | 9abe7d616da7e6402c80b067857509ab5c6f44d2 |
refs/heads/master | <repo_name>serinline/test-app<file_sep>/src/main/java/com/example/calculator/models/exceptions/InputError.java
package com.example.calculator.models.exceptions;
public class InputError extends RuntimeException{
private String exceptionMsg;
public InputError(String exceptionMsg) {
this.exceptionMsg = e... | 62200c39e0b1cebb33efd7ef9b5dabe70d6b8734 | [
"Java"
] | 3 | Java | serinline/test-app | b5f165ce88ca42a7cba63afc365727b4b83505b7 | 7ecfa15fa18bbe2d9b4cd8859b9d2ef79959d5cd |
refs/heads/master | <file_sep>import React from "react";
import ecomweb from "../../image/ecommerce.png";
import covidTrack from "../../image/covidtracker.jpg";
import chat from "../../image/Chat.jpg";
import mobileecom from "../../image/mobileecom.jpg";
const Projects = () => {
return (
<div className='bg-gray-100'>
<div clas... | c586786a02fd8586bcc633d036230ec606226534 | [
"JavaScript",
"TOML"
] | 7 | JavaScript | theashishmaurya/rishav | 7f3c5a464d17d2c4974b8a8295a6454ca6078190 | b2d1262df6da5e026644c1f1537cb7c9e3704b8a |
refs/heads/main | <repo_name>chronoby/crowdfunding-ETH<file_sep>/src/ui/pages/all.js
import React from 'react';
import { Layout, Breadcrumb, Typography, Table, Tag, Modal, Form, Button, Input, Col, Row } from 'antd';
const { Header, Content, Footer } = Layout;
class All extends React.Component {
constructor() {
super();
... | fe109b0e9815aca4b9c480f8c7bf16cf59926d47 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | chronoby/crowdfunding-ETH | af47bbcbbb8d3ed423f3950ecf85589d0ee24ca0 | 839bcdc5c956fb5696db0af225ac32c42892c722 |
refs/heads/master | <repo_name>justrmarks/go-harm-reduction-scraper<file_sep>/db/EntryModel.go
package db
type Entry struct {
SamplePhoto []byte `json:"samplePhoto"`
SampleName string `json:"sampleName"`
SubstanceRatio map[string]int `json:"substanceRatio"`
DatePublished string `json:"datePublished"`
... | f10f57bbf49d7ac80cb5bcd327b98cb9b5b8dfdf | [
"Markdown",
"Go"
] | 3 | Go | justrmarks/go-harm-reduction-scraper | 7da0d6c95a8f6681ff8af8c5ed47ea74e9d94ec7 | d1fbb10db638722dcdd379170518abccdb66ab79 |
refs/heads/master | <repo_name>Davelek/Grafika1<file_sep>/src/utils/Vypocty.java
package utils;
import drawable.Point;
import java.util.ArrayList;
import java.util.List;
public class Vypocty {
public static double vypocetVzdalenosti(int x1, int y1, int x2, int y2) {
return Math.sqrt((y2 - y1) * (y2 - y1) + (x2 - x1) * (x... | 75ce97f3841d5a60222594a880de4dee1dde1d62 | [
"Java",
"Text"
] | 11 | Java | Davelek/Grafika1 | 59cb9312201d2362b768d4137088fe03d114ecfc | 49adaf5a863fbe30753ca6f5ead093f1510e62dc |
refs/heads/master | <file_sep>using System;
using System.Activities.DurableInstancing;
using System.Runtime.DurableInstancing;
using EasyNetQ;
using EasyNetQ.DI;
using EasyNetQ.Wf;
using EasyNetQ.Wf.AutoConsumers;
using Ninject;
namespace ExampleTest
{
class Program
{
private static void Main(string[] args... | a81fbd2f1883de39d7f42c400a3a90a0862ad6eb | [
"Markdown",
"C#"
] | 32 | C# | jhuntsman/EasyNetQ.Wf | 48f751a9d7b87d0e4561ae87d38b9fb092d79812 | 11dfbf18ea869e59829f9ecd038311f726f0168b |
refs/heads/master | <file_sep>import {Color} from '../../index'
import test from './test'
export default Promise.all([
test(Color.fromString('hwb(0,0,0)').toString(), '#ff0000'),
test(Color.fromString('#e4f0f6' ).toString(Color.Space.HWB), 'hwb(200 0.89 0.04)'),
test(Color.fromString( ).toString(), '#00000000'),
test(Co... | d8a309aacdd0ed5b0f167aa03178e8edea4f6d44 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 13 | TypeScript | chharvey/extrajs-color | 57c5c91bb30c2107d98bf5099d1b172de465fdc7 | 84c95ba764f03a31aaf330af604c28da69f84ee4 |
refs/heads/master | <repo_name>TheDeibo/CommandTracker<file_sep>/src/RTG/Tracker/CommandTracker.php
<?php
namespace RTG\Tracker;
use pocketmine\utils\Config;
use pocketmine\plugin\PluginBase;
use pocketmine\Server;
use pocketmine\Player;
use pocketmine\event\Listener;
use pocketmine\event\player\PlayerCommandPreprocessEvent;
class Comm... | 4f516804874cfcf64eb11c4bf95297f4a4e41a44 | [
"Markdown",
"PHP"
] | 2 | PHP | TheDeibo/CommandTracker | 22a372597e824252abda4463650bbbe87d48dfec | a6f2bd02e29349e52a952c5d2abc3dd730ac82b9 |
refs/heads/master | <repo_name>sanmaopep/hackathon-blockchain-lottery-frontend<file_sep>/src/menu.ts
import cosmosState from './store/comos';
interface MenuItem {
text: string;
route: string;
/** Look up Icons: https://fontawesome.com/v4.7.0/icons/ */
icon: string;
}
const menuMap: MenuItem[] = [
{
route: '/lottery',
i... | 88c0eb6aa05df8c9341bc5919a2fc7f1907395f1 | [
"Markdown",
"TypeScript"
] | 8 | TypeScript | sanmaopep/hackathon-blockchain-lottery-frontend | cb92d2f9fe42ed1b94cbc7f8b90b5a5040ada8a0 | cf4810e69bab9f7fbbf8ad49b1df3e2ffbed8b48 |
refs/heads/master | <repo_name>baaslaawe/Internet_radio_speaker_recognition<file_sep>/Offilne_speaker_recog_TIMIT.py
__author__ = '<NAME>'
"""
#######################################################################################################
If you use this project in scientific publication, we would appreciate citations to the fol... | 5c8d1339158b5e0a393fca01deeb0240069c8df2 | [
"Markdown",
"Python"
] | 4 | Python | baaslaawe/Internet_radio_speaker_recognition | 6bc140be25848da8b162c9efe011ddb71e44d61c | 2f79efda0d48ce08718f0ddccdd60c6be8c34035 |
refs/heads/master | <repo_name>dujuncheng/buwang_wxxcx<file_sep>/src/utils/storage.js
const Storage = (key) => ({
set (v = '') {
wx.setStorageSync(key, v)
},
get () {
return wx.getStorageSync(key)
},
remove () {
wx.removeStorageSync(key)
}
})
module.exports = {
cookie: Storage('_x_session')
}
<file_sep>/src/util... | 5f46912e7678341a7196c7299f5f781b9542b591 | [
"JavaScript"
] | 5 | JavaScript | dujuncheng/buwang_wxxcx | 92b95f2f91c95ee9e142e82feabbfa5d246b6f70 | 16eb0333b8fd05c1b656b179b967391c9a13afd0 |
refs/heads/master | <repo_name>gideon-steinberg/circuits<file_sep>/lib/circuits/component/base.rb
require 'circuits/terminal/input'
require 'circuits/terminal/output'
module Circuits
# A component has a set of inputs an outputs. Every `tick` a componnent
# computes its outputs, but the componnent will wait for the `tock` before the
... | c04ade3b4e3e8300ebe09f4c4eee21a5536344bb | [
"Ruby"
] | 17 | Ruby | gideon-steinberg/circuits | 18eb28c2782ceec62c187c4e71f9b3364707689b | 3c6498ea20696f11d8fce8f80b6d29c21fc27396 |
refs/heads/master | <file_sep><?php
$title = "Edit Hotel";
require_once 'header.php';
require_once 'footer.php';<file_sep><?php
$db = new PDO('mysql:host=172.31.22.43;dbname=Kristian_S1114120', 'Kristian_S1114120', 'Y0XDURR1fB');
?><file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset = "UTF-8">
<title>Hotel... | 0ef9226433268f74d2b4e732d6d8c14bc1c2c8e1 | [
"PHP"
] | 4 | PHP | KBCode23/phpYear1Final | c72a9deefdc89cc317adf1e45546432edcd32d7b | 2e54fff831916d486225c98bfbfe3648ea792b94 |
refs/heads/master | <file_sep> // Initialize Firebase
var config = {
apiKey: "AIzaSyBiPEsbVeOpppIEYFUeZYlBXzNinARr09w",
authDomain: "cac2018-648ca.firebaseapp.com",
databaseURL: "https://cac2018-648ca.firebaseio.com",
projectId: "cac2018-648ca",
storageBucket: "cac2018-648ca.appspot.com",
messagingSenderId: "275... | 24c6954c819197a261970f16329ec53ed58a730c | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Chubbypanda7134/ScheduleApp2018 | 49ac4ce28cbffaba45b878fdeb37dbf1f720237c | d01db6b547bd3162a6e865a753483630fee7a023 |
refs/heads/master | <repo_name>gavinmcgimpsey/tealeaf-pre-ruby<file_sep>/other-chaps/merge_exercise.rb
a = {one: "snickle", two: "snap", three: "whooney"}
b = {one: "snicker", three: "whinny", four: "start"}
# clean merge
with_corrections = a.merge(b)
puts a.values.to_s
puts with_corrections
puts "Do you want to accept the corrections... | 9be2675c306775fa5f8d9d0abe890bbd1f646d8f | [
"Markdown",
"Ruby"
] | 13 | Ruby | gavinmcgimpsey/tealeaf-pre-ruby | 36f7b2b62d44408b7a7cfedc91ab573a8561d24e | 535d7a6b7363c7d084c89a2de2ff428b64165375 |
refs/heads/master | <repo_name>nikhilbansal/happy-birthday-app<file_sep>/app/src/main/java/com/newlinecharacter/www/app/ListView.java
package com.newlinecharacter.www.app;
import android.app.ActionBar;
import android.app.ActionBar.Tab;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.net.Uri;
import a... | 1ea89ec1a7c731fc35aee45d18f7fb44fba236ca | [
"Markdown",
"Java"
] | 4 | Java | nikhilbansal/happy-birthday-app | a3c6792df2fa6854dfaf9b9fc0e68c9f952f9b94 | 2dd5847edd849bf3e6f85431c7fb7e28268a38da |
refs/heads/master | <file_sep>from PIL import Image
from PIL import ImageEnhance
import math
# Completely different color
def diff_color( image ):
width,height=img.size
# Process every pixel
for x in range(width):
for y in range(height):
new_color = (0,100,100)
image.putpixel( (x,y), new_color... | 2a144ea259ddc24c1b3d01baed04d97a617aa1ad | [
"Python"
] | 5 | Python | lbacker/Coding-for-Students | c68680e672c1d13e9c316900f0d8ed5ce78fae3d | 36de8056436efe4550ff97b3e9995f3ecc09cc10 |
refs/heads/master | <repo_name>gienekart/Simple-bug-saper<file_sep>/src/Game/Leaf.h
#pragma once
#include "Engine/Object.h"
class Leaf : public Object
{
public:
Leaf();
virtual ~Leaf();
};
<file_sep>/ide/CMakeLists.txt
cmake_minimum_required(VERSION 2.6)
project(bugperProject)
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type ... | 3ba43599a0aa935cc3959f50a909703d79e96e8f | [
"Text",
"C",
"CMake",
"C++"
] | 53 | C++ | gienekart/Simple-bug-saper | 30ac12786c11490fd8675b32b1adc7d79124bb00 | 5af9ee168bcbb1de5634e78e025f286cc0a32495 |
refs/heads/main | <repo_name>lazarus2019/facebook-template<file_sep>/README.md
# facebook-template
Make A Website Like Facebook Using HTML And CSS | Social Media Website Design
<file_sep>/app.js
const settingsMenu = document.querySelector(".settings-menu");
const userPhoto = document.querySelector(".user-photo");
const darkBtn = documen... | ae08b3eb8170a9b4d217ce4848df07ea3d75a903 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | lazarus2019/facebook-template | e94dc2898c8a0258a00886bc2747a5d3549ba6e2 | 7d4fb46458d7a986a4faa7c06fadf46d382324c7 |
refs/heads/master | <file_sep>// var i2 = ['广州广州,快上车', '功夫熊猫:你的姿势不对', '好舍友', '后面妹纸:别拍,等我带上口罩', '可以,画面很美',
// '厉害,请收下我的膝盖', '美美哒', '美女一枚', '你又翻墙出外面玩了?', '生日快乐',
// '生日快乐2', '树爷爷:你好重,快下来', '一对好姐妹', '中间那排,第三位同学请起来回答问题'
// ];
// var i3 = ['大海,绽放自由', '党的宗旨是一切为人民服务(所以我的外卖是不是可以交给你了?)', '钢琴老师好', '好惬意', '黄胖子! ! !',
// '耶~', '举起手来', '来,看镜头', '美女... | 794c2336e4f86ddbc91f89b1b58272185a3e979b | [
"JavaScript"
] | 1 | JavaScript | winixt/bac-joker.github.io | e3d0c626bce845fcb51d1a3de6081a8d34708e36 | 8207ea58a98b51e0045c0c00d9888d21dedfdfcc |
refs/heads/master | <file_sep>//Pong
;(function(){
var pong = document.getElementById('pong');
if(pong && pong.getContext('2d')){
var c = pong.getContext('2d');
//Configuration
c.fillStyle = c.strokeStyle = '#FFF';
c.textAlign ='center';
c.textBaseline = 'middle';
var cfg = {
borderWidth : 5,
widthLines : 10,
... | 858f7a2f7519841ebaf82434e2545b19b883cfe8 | [
"JavaScript"
] | 1 | JavaScript | pablocazorla/Pong | f05e6c27dd26ae42f58d1d793b55f24a43f4fccb | 1f983d6b9f51f750c463a8952c97d10b0d8526fb |
refs/heads/master | <file_sep># Balsa-Boilerplate
<file_sep>// Import modules
// ---
import { src, dest, watch, parallel, series } from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';
import browserSync from 'browser-sync';
import del from 'del';... | 6b34987bf71cde1653c786189fe7941767556974 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Balsakup/Balsa-Boilerplate | 2e6bcb15ec26553fd616826a85bef5abb6d577fa | b499017d0c24e35ca179f47498568b9824805e9d |
refs/heads/master | <file_sep>
public class CalculateArea {
private static double rectangleAreaInMainMethod;
public static void main(String[] args)
{
double circleAreaInMainMethod = CalculateCircleArea(10);
System.out.println("Area of the circle is " + circleAreaInMainMethod);
double rectangleAreaInMainMethod = AreaRect (8,3);
... | 80f1796d75fa06925495384b89832af57801ecda | [
"Java"
] | 1 | Java | nationmurray59/YearUp | 0de2407c4b35d774f290e15251cc35e64695c9f7 | 9c7c02da81d63ca909d52b7fbe39dee3caa1f8d6 |
refs/heads/master | <repo_name>b4ldr/puppet-jbtest<file_sep>/spec/spec_helper.rb
# frozen_string_literal: true
require 'puppetlabs_spec_helper/module_spec_helper'
# vim: syntax=ruby
<file_sep>/spec/classes/test_spec.rb
# frozen_string_literal: true
require 'spec_helper'
describe 'jbtest' do
# let(:params) { { host: '192.0.2.2', } }
... | b690b597812d495bb1fb406ffeb86d1af3f51aff | [
"Ruby"
] | 4 | Ruby | b4ldr/puppet-jbtest | e0bb1beba49b421fe99664ec1efaa7a1a2a1c623 | 8f1d2066054243be252f5bc32dc224340efe0bec |
refs/heads/master | <repo_name>dptorri/explain_me_react_redux<file_sep>/src/store/index.js
import { createStore, combineReducers } from "redux"
import * as ducks from "./reducers"
const reducers = combineReducers(ducks)
const store = createStore(reducers)
export default store;<file_sep>/src/store/reducers/session.js
// Actions: what w... | 548eeeb08196079069826f07db9514b3a52fc56f | [
"JavaScript"
] | 3 | JavaScript | dptorri/explain_me_react_redux | 464b322fd1746c3e9cb96c04c6e6cb5f715965ef | 34775533398ae256235e6d37ee55a459a5a47a76 |
refs/heads/master | <file_sep>import requests
import json
import os
from platforms.utils import replace_values
from errors import NetworkRequestFailed
class TelegramPlatform:
def __init__(self, event_data, api_token, chat_id):
self.event_data = event_data
self.api_token = api_token
self.chat_id = chat_id
... | e858c3696830e1eba289f2bb226701a91688a85f | [
"Markdown",
"Python",
"Text"
] | 9 | Python | MatejMecka/scheduler-bot | 64f5ca3ca4504f038bd5910cb0e2b94465668bff | 7451e0b61c30507db1822dccd3eb11b69677d8e7 |
refs/heads/master | <repo_name>Eugenics/Kata<file_sep>/README.md
# Kata from CodeWars
<file_sep>/Classes/Kata.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace KataApp.Classes
{
class Kata
{
public static... | f3cfae5e399963a226381acbb178506d0e268c53 | [
"Markdown",
"C#"
] | 2 | Markdown | Eugenics/Kata | e5736a94489f12ce172de7482c8b9168a0bd8791 | 3097e8c4623be3aff684d86aed42321a5bcbaa15 |
refs/heads/master | <file_sep>var mysql = require("mysql");
var inquirer = require("inquirer");
var table = require("console.table");
var connection = mysql.createConnection({
host: "localhost",
port: 3306,
user: "root",
password: "<PASSWORD>",
database: "bamazon_db"
});
connection.connect(function (error) {
... | 982264d1adcd0540099f7c8061d27e3048c25be6 | [
"JavaScript",
"SQL"
] | 2 | JavaScript | avalonmtg/Bamazon | 8dcc24911a19964ec68516338c62f3f4b4e43ecc | 6714b545b1617d46262c28122161038e8a77448d |
refs/heads/master | <file_sep># vue boilerplate
This is a simple boilerplate to use for building web-apps with vue.
It includes vuex and vue-router.
## License
vue boilerplate is released under the MIT License. See [LICENSE][1] file for details.
[1]: https://github.com/seebaermichi/vue-boilerplate/blob/master/LICENSE
<file_sep>'use s... | 5c248ce36a6be33166f5a38b52b11709e2fc1777 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | seebaermichi/vue-boilerplate | 918961744a4127026273cf26b72f1cb5f150f6d7 | 6411b33dd1ac58449fe4aee7039ceff959d1988e |
refs/heads/master | <repo_name>takoikatakotako/atcoder<file_sep>/abc120_b.cpp
#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <array>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <cmath>
#include <algorithm>
#include <numeric>
#include <cassert>
#include <ut... | f8f9eea9e866c9f0c67832380e4c7abd1108f640 | [
"CMake",
"C++"
] | 94 | C++ | takoikatakotako/atcoder | 2dc80f365f9f26b9488dc79ca9d857b7e285dffe | a3c7f2ad151645542a901208cf77272015fa3156 |
refs/heads/master | <repo_name>femichel/Demo-1<file_sep>/demo.py
def sum(a, b):
return (a+b)
print(sum(5,2))
def div(a, b):
return (a/b)
print(div(8,4))
| dc10696568c21e9c5ce8934b27fdb4d690120856 | [
"Python"
] | 1 | Python | femichel/Demo-1 | 709a9013a859d5a73c2dac87eb00ef2f8e81596d | 47fb2d44d4246cac11f605cfe92df7608334a9a7 |
refs/heads/master | <file_sep>package com.example.ThymeleafProject.service;
import com.example.ThymeleafProject.LekarzController;
import com.example.ThymeleafProject.TestController;
import com.example.ThymeleafProject.model.SkierowanieDoLekarza;
import org.springframework.stereotype.Service;
import java.util.*;
@Service
public class Le... | e6cf575c6de21dd0c6e28b4b9dcfd7102445baec | [
"Java",
"Gradle"
] | 2 | Java | vexai/ThymeleafProject | 83816b51a76783a038731439b9a80e418eac2111 | 5b915df69b4c3b743bbfdf598ee8293ca479f877 |
refs/heads/master | <file_sep><?php
// your app consumer key
define( 'CONSUMER_KEY', 'ZFd8OJPABFEg9fDw6FPbvtLXY');
// your app consumer secret
define( 'CONSUMER_SECRET', '<KEY>');
// your app callback url
define( 'OAUTH_CALLBACK', 'http://localhost/Saran/login_fb_twitter/index.php' );
<file_sep><?php
... | 419810033c8c9916e92e657102834be72bbfcbdd | [
"PHP"
] | 2 | PHP | Arunodhaya/SocialLogin | 9b5b714bb149c0e367b1db7f76a68c3ac4d5a1dc | 2b0a04b14756b596df2dce6904b86479dd6832d5 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
namespace poco
{
class HandleInput
{
public static void main()
{
checkModifiers();
if (specialKeys() == true) return;
if (arrowKeys() == true) return;
if (Program.control != true && Progr... | a370a194b24ff6d99e15f640f1626ab0d86233e2 | [
"C#"
] | 5 | C# | lillyliv/pocoEditor | 8e44bad60f0343be4c0372445f065425bc88a7a8 | 9e292567d8c74792be4a4085733fb56e8432dc81 |
refs/heads/master | <repo_name>DelNaga/ABSA_Assessment<file_sep>/ABSA_Assessment/Models/Client.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
namespace ABSA_Assessment.Models
{
public class Client
{
[Key]
... | 05e530af82c29429f4f49a06e92a1332bfb2213f | [
"JavaScript",
"C#"
] | 5 | C# | DelNaga/ABSA_Assessment | df1307deaf80babf17e3b71db051fd7c07b51c69 | 6ee8298113b7ec4d7d453865c0f0162cd3683dd1 |
refs/heads/master | <file_sep>console.log("Hola mundo");
console.log("Subscribee al canal");
| ebb9965912a23d78f008e7a52c64c2916b3b89d5 | [
"JavaScript"
] | 1 | JavaScript | cplusplus11v2/demo-repo2 | 03071fcd34ab0c76c076a42a31d469781d092f3c | c8f776731a31dfab4138824013ebebeeb8a856dd |
refs/heads/master | <file_sep>export interface Server {
isOnline: boolean;
name: string;
gameName: string;
mapName: string;
numPlayers: number;
maxPlayers: number;
gameMode: string;
hasPassword: boolean;
hostIp: string;
hostPort: number;
queryPort: number;
isDedicated: boolean;
isRa... | ad58afd1093b958cb79f4bb2454774c3a828948e | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | nihlen/BF2ServerList | 77592fc340dffd32e174f29618d99acbbadddc50 | 583b9ac8680d3eafd95c5b4b9cb8fd5021674992 |
refs/heads/master | <file_sep>package DTPL.editor;
/*Generated by MPS */
import jetbrains.mps.nodeEditor.DefaultNodeEditor;
import jetbrains.mps.openapi.editor.cells.EditorCell;
import jetbrains.mps.openapi.editor.EditorContext;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.nodeEditor.cells.EditorCell_Collection;
im... | a0fed5d521f002f9da99bee80162bf65e03d3a68 | [
"Java"
] | 10 | Java | dariyo/MPS_SSA | 3baa5b2f529707d4e618f41139ef2544463b7fd7 | 2362416969d1cfb1a48c53c9805f272a8ba16258 |
refs/heads/master | <repo_name>dutchessssssss/configs<file_sep>/Scripts/bashfunctions.sh
function JAM
{
cd /home/philip/Code/ludemdare35/LD35
}
function h
{
history |grep $1
}
function glog
{
git log --oneline --graph --all
}
| e23bdb396f7f5fbf1bf3fcbbbc3bc6b601f3685f | [
"Shell"
] | 1 | Shell | dutchessssssss/configs | 48f9ad7297e0609b269a55879a3c8c35f389ded3 | 30c28508814d0df2761dcbae388ab5ad0aac87f1 |
refs/heads/master | <file_sep># Represents a game date, time and location
class Slot:
def __init__(self, game_date, game_time, game_location):
self.game_date = game_date
self.game_time = game_time
self.game_location = game_location
<file_sep># Imports all important modules
from gameinfo import GameDate
from ga... | 5c24aba15e1deefa5dc99730c10011c6ac9179aa | [
"Python"
] | 4 | Python | johnlarusic/sportsched | 2c6f0e769dfca2909141abd49a42c8991c8bc341 | 830cf1d94f7cd8e11bea21e6d8d3bc75d3670914 |
refs/heads/master | <file_sep>PHP blog & PHP templater
<file_sep><?php
include_once('inc/C_Controller.php');
class C_Base extends C_Controller//
protected $conn;
protected $header;
protected $title;
protected $main_menu;
protected $content;
protected $comments;
public function __construct() {
... | cb4b58d8d797b961bc3967e7a04b0632e3677119 | [
"Markdown",
"PHP"
] | 6 | Markdown | paulkotov/PHP-geekbrains.ru | 673fb469c9575c0b9d88a7b744c9d5ba530fdeea | 1f4c7cca7c2a99eb5a8c348ffb90e9d5693330e8 |
refs/heads/master | <repo_name>jaguar17171/spokes-eventlist<file_sep>/README.md
EventList
======
> The `EventList` object provides functions to retrieve calendar events from iOS and Android.
Installation
============
Install this plugin using PhoneGap/Cordova CLI (iOS and Android)
cordova plugin add https://github.com/jaguar17171/... | 3c2d2c0eb6ec4f87fb61b262c7065d497ff68b08 | [
"Markdown",
"Java"
] | 2 | Markdown | jaguar17171/spokes-eventlist | 72ed2fb985d4d0e3644e5f0d8462df3c1ea86c8d | be40fd62cf0ecbd5185c1cd04fbbfdb9be7216b3 |
refs/heads/master | <repo_name>devkloud/Competences<file_sep>/user_comp.php
<?php
$index = true;
// Inclusion de fluxbb
define('PUN_ROOT', '../home/');
require PUN_ROOT.'include/common.php';
if ($pun_user['is_guest'] == 1) { // L'utilisateur n'est pas connecté
header('Location: login.php');
} elseif (isset($_POST['submit'])) {
/... | dc6af29246df244b9d15f8c9d432b0feddde521f | [
"PHP"
] | 8 | PHP | devkloud/Competences | f9359dce46af2b0a99765713e891826bb63089f1 | a0b51a84b76110635020fb7e9f20811eaf8e53c4 |
refs/heads/master | <repo_name>lancewux/demo-react-ie8-simple<file_sep>/src/index-comment.js
/**
* CANNOT use `import` to import `es5-shim`,
* because `import` will be transformed to `Object.defineProperty` by babel,
* `Object.defineProperty` doesn't exists in IE8,
* (but will be polyfilled after `require('es5-shim')` executed).
*/
... | 26f59ddd995b708ebb91542570b6d2550664265a | [
"JavaScript"
] | 5 | JavaScript | lancewux/demo-react-ie8-simple | b357a9970744bc9db1d8ee07da07575be1ff8266 | 7ebe36ad4f619ab451d75e88c734cbdb8519b618 |
refs/heads/master | <file_sep># Utopia AB Tests
[](https://travis-ci.com/utopia-php/ab)

[](https://appwrite.io/discord)
... | c5c8b051c0a3f680b73b393291468775b1269ff6 | [
"Markdown",
"PHP"
] | 3 | Markdown | deek121477/ab | 628a5c5458968c9636e4decf0e4d41ce09493c15 | 43fcc25ddfb2b77d96c79966345e2fff24adaa6f |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# freq,word_count , tf, num_docs_containing, idf, tf_idf forked(and modified) from from https://gist.github.com/AloneRoad/1605037
# to do extend the base case, lemmatization , dispersion plots & concordance in NLTK and other hacks on base below
#stop words not correctly parsing, need ... | 6d7b517af773d735346f2f235832140ca63976e9 | [
"Markdown",
"Python"
] | 4 | Python | ekta1007/Creating-Custom-job-feeds-for-Linkedin | f89ef844751a13f5774fbf70f37aee26fb87c705 | 2f95f4f51ed8951f8626576fa30b6ac37fdaa20d |
refs/heads/master | <file_sep>from django.contrib import admin
from .models import Car, CarStatus, Customer, Driver, Location, RentCar
admin.site.register(Car)
admin.site.register(CarStatus)
admin.site.register(Customer)
admin.site.register(Driver)
admin.site.register(Location)
admin.site.register(RentCar)
<file_sep># Generated by Djang... | 2c1488575313b32ac467a2598baf553038a3963a | [
"Python"
] | 10 | Python | Ashikunnabi/rent_a_car | f188032781bbcdcab48f9033f2b8f4dee3560b56 | 31ccfd87c2cd149100f2831b1ca79377ff643bbd |
refs/heads/master | <file_sep>Rails.application.routes.draw do
resources :bookings
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
get "/homepage" => "bookings#homepage", as: "homepage"
root 'bookings#homepage'
get "/bookings_today" => "bookings#bookings_today", as: "bookings_t... | c6c3f25cff6b45d3236627fb2a36ca68728143cc | [
"Ruby"
] | 5 | Ruby | kokchun32/mcstanley | f4b755c84b91e48aec73b4fcbade2de788c13088 | c911ab684ff65d0094081a583a1eb3211173688c |
refs/heads/main | <repo_name>traeger22/proyecto-laravel<file_sep>/app/Http/Controllers/SedeController.php
<?php
namespace App\Http\Controllers;
use App\Models\Sede;
use Illuminate\Http\Request;
class SedeController extends Controller
{
public function index(){
//este metodo se encarga de mostrar el conteniedo de la tabla
... | a6cb5cc1195222ee3fa6864212c66251e4019b30 | [
"PHP"
] | 5 | PHP | traeger22/proyecto-laravel | fe31be79bc1a09a5b8b2a197a182f4ccb832fd1f | 013623bd3e44d905ea58275eb7e7ba28c8decfac |
refs/heads/master | <file_sep>from django.conf.urls import patterns, url
from django.views import generic
from cuentas_por_pagar import views
urlpatterns = patterns('',
(r'^GenerarPolizas/$', views.generar_polizas_View),
(r'^PreferenciasEmpresa/$', views.preferenciasEmpresa_View),
#Plantilla Poliza
(r'^plantilla_poliza/$', views.plan... | 9e987963782cd9280d4c1236ce72567480e25276 | [
"Markdown",
"Python",
"Text",
"reStructuredText"
] | 22 | Python | ruff0/microsip_web-1 | e5590a65b121c1036ec08905df33d5ff634219d0 | 3e1843071f533db2418a2de63519162561a64ccf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.