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>#pragma once
#include "Module.h"
#include "Globals.h"
#define METERS_TO_PIXELS(pixels) { (int)(pixels * 100.0f)}
#define PIXEL_TO_METERS(meters) { (float)(meters * 0.1f) }
class b2World;
class ModulePhysics : public Module
{
public:
ModulePhysics(Application* app, bool start_enabled = true);
~ModulePhysics... | 1ac0dd8946a36ba342f86f695f096c8afe513744 | [
"C++"
] | 2 | C++ | PolRecasensSarra/Box2D | b12294eacd93f2d02dd3e0c02c0b7ef379f17c46 | 67d703adac451c613cfad8e4a20abaaf8295d4c2 |
refs/heads/main | <file_sep>import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { components, plugins } from "./lib/elementUi";
const app = createApp(App);
components.forEach((component) => {
app.component(component.name, component);
});
plugins.forEach((... | 6e8ca6a419d65b4ea60b2ab2ab121da62dc042a9 | [
"TypeScript"
] | 1 | TypeScript | a47781402/vue-3.0-ts-x6-demo | f1d075e667ca2f8538d04e3e455f5b4f4353196d | 8699b19f11473c5e308f56cc5af56458f81759ae |
refs/heads/master | <repo_name>DroneBase/heroku-buildpack-awscli<file_sep>/bin/compile
#!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
# fail fast
set -e
# debug
# set -x
# clean up leaking environment
unset GIT_DIR
echo "-----> Adding soelim to path"
export PATH=$PATH:$BUILD_DIR/.python-ldap/groff/bin
pip install awscli
| c50d572fdab1065669ceb2aac255a13fcef282d3 | [
"Shell"
] | 1 | Shell | DroneBase/heroku-buildpack-awscli | e725506a4a396c8bfe2e6baaddd591ce5dc185be | c2e1ca69930c9576511a361e6c278f04dded2aa9 |
refs/heads/master | <repo_name>bria559/hw5-git-practice<file_sep>/hw5_git.py
print('Hello World!')
#here is my new comment/ modification
| 4fb3fe48562096373bb8e6b32f22a8b03bc8b0c5 | [
"Python"
] | 1 | Python | bria559/hw5-git-practice | a5f8245df875db5b35fa9f9ff1e5a8766988d44b | 03af6098070085cca5f65585894c964015d13922 |
refs/heads/master | <repo_name>AndrewMO/BackupFiles<file_sep>/RefreshPerfDB/MakeCPDtoPerfOrg/18_ReceiptsRedesign.sql
use ACM01vegasJetty
IF not exists (select keywordvalue from SYSTEMINFO where KEYWORD = '<PASSWORD>')
BEGIN
insert into SYSTEMINFO (KEYWORD, KEYWORDVALUE) values ('enable_new_receipt_redirect', 'true')
END
ELSE
BEGIN
... | 7f1724887f0bf66711758d9a163841428d656c44 | [
"SQL",
"reStructuredText",
"JavaScript",
"INI",
"Java",
"Python",
"Shell"
] | 80 | SQL | AndrewMO/BackupFiles | aa4bda7a280276111bd960622ae5496cf471037b | b2fdc965d855d9ba9c449f7e520c051ce9707ba2 |
refs/heads/master | <repo_name>xiejunping/wapman-admin<file_sep>/app/common/helper/redis.js
const redis = require('redis')
const { host, port, password } = require('../config/redis')
/**
* redis
*/
class Redis {
constructor(host, port, password) {
this.host = host;
this.port = port;
this.password = <PASSWORD>;
this.c... | ed704f413e4d86edef81ed0d83368b6a52e926e1 | [
"JavaScript",
"SQL",
"Markdown"
] | 39 | JavaScript | xiejunping/wapman-admin | cbb5a97ba15ab3bdb4af45b868e59546f347a321 | 9c29f07a429459a9116f29e6d8f12202a67fa421 |
refs/heads/master | <repo_name>TajinderSingh29/ELF-06june19-Covalense-TajinderSandhu<file_sep>/CoreJava/src/com/covalense/coreJavaApp/casting/Bus.java
package com.covalense.corejavaapp.casting;
public class Bus {
int model;
void move() {
System.out.println("move() method is call");
}
}
<file_sep>/CoreJava/src/com/covalense/coreJav... | 103302d6344baca20266321352e60617f32602d9 | [
"Java",
"HTML"
] | 127 | Java | TajinderSingh29/ELF-06june19-Covalense-TajinderSandhu | 00e846873a6ab567c19ed60e3c7b00ba6e3cb054 | 81a9e0b5421ac483ef15effaed384ada141102c4 |
refs/heads/master | <repo_name>47pik/quantathon<file_sep>/p4.py
import output as op
import observations as ob
from metrics import *
if __name__ == '__main__':
#generate time series
ts_ret = ob.ts_return(RP4)
ts_cum_ret = ob.ts_cum_return(RP4)
ts_mean_abs_w = ob.ts_mean_abs_weight(W4, fill_fn= FILL4)
ts_port_dir = ob... | d1f8a0bc3a53da52376ced6d644b3483d0db6a59 | [
"Python"
] | 10 | Python | 47pik/quantathon | c5ae7ac4a57ca6f9afa8ed27e629da5264731b6f | cf4a39db29113ef03d923506fe41e05cef392db2 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Sat May 9 16:14:34 2020
@author: crull
"""
import os
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def hello_name():
return render_template("main.html")
if __name__ == '__main__':
port = int(os.environ.get("PORT", 5000))
... | 4a011e3f88a7aff71b1b0a093bbee4c7c5052523 | [
"Markdown",
"Python"
] | 2 | Python | clara-9/wasteyourtime | 83c3ddd786197291697ce95b142261b5db4ba245 | f2cefb3c987c0851b0c7661ad821a9ff9d86fcb8 |
refs/heads/main | <repo_name>sodatodo/single-spa-radar<file_sep>/README.md
# single-spa-radar
a wrapper to check single-spa to use release packages or url
<file_sep>/src/core.ts
import { Application, ExtraProps } from 'single-spa/typings/single-spa'
import { promiseForEach } from './promiseLoop'
const singleSpaRadar = (applicationOrLoa... | e7c06d034aa9a108e6cea7755235caed0fdbd440 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 6 | Markdown | sodatodo/single-spa-radar | dd2c341919b66c174e114d7b3e015b20eb911f07 | 3cfcf987c72d5a5387ef312abf6d334036066f87 |
refs/heads/master | <repo_name>kushaldelhiwala/CSE-320-HW-2<file_sep>/src/main.c
#include <stdio.h>
#include "warehouse.h"
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <unistd.h>
#include "linked_list.h"
struct warehouse_id {
int id;
struct warehouse_id* next;
};
struct warehouse_id* addWarehouseId(int id... | df918cbea68bc642e789da32e39f73fc07663f70 | [
"C",
"Makefile"
] | 4 | C | kushaldelhiwala/CSE-320-HW-2 | fbb5b0d44a5b5bdbb60087603f72b0a893cec524 | e409944e66c6b7fcda59563285a0ef7bc2185238 |
refs/heads/main | <repo_name>BasantHasaan/graghqlProductsapi<file_sep>/README.md
It's product and user api with graphql and apollo_server,
to start this locally run ==>>> npm i #to install node_modules
#edit config for database connection in config/config.json
then run ==>>> npm start
to start using Docker ====> run docker compose-u... | 340b51410e8ce890a4024cbbe252606f943e4754 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | BasantHasaan/graghqlProductsapi | a30bb5c0d610708567bfc74a6add8c6ec2a801e1 | f47a72377b5fab393cd1d7b271d281bd36d0fba4 |
refs/heads/master | <file_sep>
import program
import unittest2
class TestProgram(unittest2.TestCase):
def test_case_1(self):
output = program.twoSum([3, 5, -4, 8, 11, 1, -1, 6], 10)
self.assertTrue(len(output) == 2)
self.assertTrue(11 in output)
self.assertTrue(-1 in output)
| 11d35c6cc5c5157b5f94bf205720353696bbeba1 | [
"Python"
] | 1 | Python | pallavipa/Daily_Coding | 70d428dc8591c4048b9f95cb52c01e90b66742e5 | 2ffea80d24f25ad507ed06f8cbb1ba9e01685c60 |
refs/heads/master | <repo_name>jgrau/MODx-CMS<file_sep>/install/setup.updates.sql
# MODx Database Script for New/Upgrade Installations
#
# Each sql command is separated by double lines
#
# Update categories for table `site_snippets`
#
UPDATE `{PREFIX}site_snippets` SET `category` = '2' WHERE `name` IN ('MemberCheck', 'Personalize', 'W... | 75e915054706b7d74bd0170753d898b305467a6c | [
"JavaScript",
"SQL",
"Text",
"PHP"
] | 21 | SQL | jgrau/MODx-CMS | c0107a83a8c073ac62f9e4ec1751160665a153d7 | eff9c95b34dd168e09742561436242e8b7465411 |
refs/heads/master | <file_sep>package sample;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
public clas... | 87492fdcb904aa32187bbbb9f32689a1172a1891 | [
"Java"
] | 1 | Java | Slabrosse/PizzaOrderingSystem | 700601c7c2c2b32655cbfc592819b3ae171d109c | 73a8c11f5a2e6745527ad13fa504520d89b16345 |
refs/heads/master | <repo_name>ImperialCollegeLondon/dcw-splittingintowords<file_sep>/c-versions/set.c
/*
* set.c: "set of strings" storage for C..
* we store a set as a reduced (no values) hash table,
* hashing each set member (key) into a dynamic array of
* binary search trees, and then search/include/exclude
* the key in/from ... | 90ae11e15616c35c079fdec39ee47b7c71ee9c0a | [
"Markdown",
"C",
"Makefile"
] | 5 | C | ImperialCollegeLondon/dcw-splittingintowords | 3caf5acd611f2544100d05fce75c551ff1003383 | cad27f9b6dd98955ca48a573fb5513adb98f3806 |
refs/heads/master | <file_sep># MACROS
CXX = g++
CXXFLAGS = -O3 -Wall -std=c++11
LIBS = -pthread
OBJS = sender.o receiver.o test.o
EXES = sender receiver test
# TARGETS
all: $(EXES)
sender: sender.o
$(CXX) -o sender sender.o $(CXXFLAGS) $(LIBS)
sender.o: sender.cc util.h
$(CXX) -o sender.o -c sender.cc $(CXXFLAGS) $(LIBS)
receiver: ... | d116faefd2389b08cb411c7a845fba9e976e3f71 | [
"Markdown",
"Python",
"Makefile",
"C++"
] | 12 | Makefile | D-vindicator/computer-networks-projects | 40d10325778f9c4a1df47711dac899e65843adb3 | 02f798578c7de4b1cce359c8f4dc1d8398cd2230 |
refs/heads/main | <repo_name>srdicmonika/moni-example-projects<file_sep>/DoorMovement.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DoorMovement : MonoBehaviour {
// The parts of the door
public GameObject doorUP;
public GameObject doorDO;
public GameObject doo... | c0232a6c46fcca05a2e4048ec2128dd960077c75 | [
"C#",
"Python",
"C++"
] | 15 | C# | srdicmonika/moni-example-projects | 9a17ba0d051efb3563b854c47b6875500605d583 | 7eaa0a9d7cbb72390b8f5f4ec5693c1e0bef85a1 |
refs/heads/master | <repo_name>TeamSteamIDS/steamulation<file_sep>/test.py
def get_num_games(g_id, u_id):
target = ""
for g in classification:
if g_id in classification[g]:
target = g
break
return user[u_id][target]
def get_avg_user_level(g_id):
level_total = 0
cnt = 0
for u in game... | 40f6029b5a2c2d4004de1b6f896f1c7f4942bc91 | [
"Python"
] | 7 | Python | TeamSteamIDS/steamulation | eb3ed4e15a65da5b38793749fc26541877729353 | 9b59f8e3665fb09258054c154104c2177928ed20 |
refs/heads/master | <file_sep>from django.conf.urls import patterns, include, url
from homepage.views import ItemList, ItemDetailView, ajax
from haystack.views import SearchView
from haystack.forms import SearchForm
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', ItemList.as_vie... | 8521e59671959a1c99897c6519aab7505e993e38 | [
"Python",
"Shell"
] | 9 | Python | gvladimirwork/2test | 41777db41dedae7f2673e73948a13c565b9f7d95 | d71aa03716ab384a631701fef0325c68d9e121b2 |
refs/heads/master | <file_sep># Collection of embedded code for TI TM4 Microcontroller
A collection of codes when working with the TI TM4 micro-controller. Each codes is described below.
## LCD.c
Interface the LCD with the MCU using GPIO, timer, PWM, interrupts.
Features: display characters on LCD, adjust brightness using, scrolling spee... | d0c385099cf864c2afebb0dd8b00fbdc667fd0d0 | [
"Markdown",
"C"
] | 4 | Markdown | ducminh296/Embedded-Codes | e2d00796316b31414c607f60891f07803e95b92d | 54b0dba8118ac54b8212fc0601be796afd3ce085 |
refs/heads/master | <file_sep>circles
=======
Drawing some circles in a canvas...<file_sep>function Main() {
Main.MAIN_DELAY = 1000 / 60;
Main._Z = 90;
Main._X = 88;
this.mainLoop = null;
this.canvas = document.querySelector('canvas');
{
this.lineWidth = 1;
this.numberOfCircles = 1;
this.scale = 1;
this.radius = 30;
th... | 948fd49fc009d99d644928e341795bf0b2b51ebe | [
"Markdown",
"JavaScript"
] | 3 | Markdown | crisstanza/circles | 41cbaf8617d655936a4437aec11c27abedde2f4f | 8f312541790a8f0f13e32cd53d0341a7e853ff16 |
refs/heads/master | <file_sep><Query Kind="Statements">
<Connection>
<ID>1c2e1a44-f376-4dd1-886c-4316c0d6261a</ID>
<Persist>true</Persist>
<Server>.\SQLEXPRESS</Server>
<Database>Chinook</Database>
</Connection>
</Query>
ar results = from g in Genres
where g.Name
select new
{
Genre = g.Nam... | 96df65a5b061abfd350509e1ff763cc0ec045120 | [
"Markdown",
"C#"
] | 2 | C# | yjiang25/LINQ_practice | 2c353d13886412fffcf05f33f15c108dddd48fc0 | a05966d67e62c979f79596db03829ec672306d66 |
refs/heads/main | <file_sep>#pragma once
#include <QImage>
#include <iostream>
#include <cstdlib>
/**
* Функция для приведения значений к допустимому диапазону значений между max и min
*/
template <class T>
T clamp(T value, T max, T min);
class Filter
{
protected:
//функция расчёта нового цвета пикслея(передаём констант... | ec44277b9e2cc23c2a7871493357f267f42ca58f | [
"C++"
] | 4 | C++ | Gekata-2/Computer-Graphics | 9c3f7a5913e637d7826b619af7a41df6f4b08eb0 | 29cc3202caea08117985565655b2088452a51c01 |
refs/heads/master | <file_sep>class Address < ApplicationRecord
validates :city, presence: true, format: { with: /\A[a-zA-Z]+\z/ }
validates :state, presence: true, format: { with: /\A[a-zA-Z]+\z/ }
validates :pincode, presence: true, format: { with: /\A[0-9]+\z/ }, length: { is: 6 }
end
<file_sep>class User < ApplicationRecord
valida... | e234774628974ce878e76d4675c49903248c364b | [
"Ruby"
] | 3 | Ruby | Priyanka4328/Railsapp | 37a37047c834a9cbdb9439300a325f76029cdb09 | 9893df71881570b97cc6f9ad2fce019deb321540 |
refs/heads/master | <repo_name>xoBlair/growler<file_sep>/app.rb
require 'sinatra'
require 'sinatra/reloader'
enable :sessions
# before do
# end
@@growl_array = []
get '/' do
@@test_var = "test string "
erb :profile
end
post '/' do
# greeting = params[:greeting] || "Hi There"
# name = params[:name] || "Nobody"
@post = ... | 5966899566176189a15b0c93e7eb944d1a0f4182 | [
"Ruby"
] | 1 | Ruby | xoBlair/growler | 2849fabb785b8e3dcf995bcf2dbd546d0215c78f | 36e663abf80cb45b5fb0d2b5c2285e427c9d6ea6 |
refs/heads/master | <file_sep><?php
/// RENAME TO config.php
/// Where are the pictures located?
define('PHOTOS_PATH', 'photos/');
define('THUMB_PATH', '.thumb');
define('PHOTO_PILE_COUNT', 5);
define('PHOTO_SIZE', 175);
<file_sep><?php
require 'functions.php';
write_header();
if (!isset($_REQUEST['dir']) || $_REQUEST['dir'] == ""... | 98b480f887616383d1ade16bcfc7c512e04fd8b0 | [
"JavaScript",
"PHP"
] | 4 | PHP | nmrugg/Photos-Now | 1ca2392c5ef7e4f73f9d05db84bdd66b0739d8af | baf0f1b48241f06f4852d0deb1ce9540ad234cb0 |
refs/heads/master | <repo_name>jiahao-shen/SDN-TE-SR-tools<file_sep>/parsers-generators/mod_string.py
import os
def modifica(b):
os.system("sed -i 's/perc = "+str(b)+"/perc = "+str(b+0.1)+"/g' flow_allocator_mod.py")
os.system("python flow_allocator_mod.py --controller 127.0.0.1:8080 --f graphml/Colt.graphml")<file_sep>/parsers-genera... | 1c78f644375ab532fad399c406ca02157f25a4cb | [
"Markdown",
"Python"
] | 15 | Python | jiahao-shen/SDN-TE-SR-tools | a02af01fed2f116861dc03650e5de578a6ef5581 | 015d16539ed35be578172320acb65202be231713 |
refs/heads/master | <repo_name>normnorm/openshift-elasticsearch<file_sep>/bin/install-version
#!/bin/bash -e
if [ $# -lt 1 ]; then
echo "Usage: $0 <ELASTICSEARCH-VERSION>"
echo "Example: $0 2.3.3"
exit 1
fi
source $OPENSHIFT_ELASTICSEARCH_DIR/lib/util
_install_version $1
<file_sep>/bin/install
#!/bin/bash -e
source $OPENSHIFT_CARTRI... | 43c1bd5377be90e1430040209b2015f2efba578b | [
"Markdown",
"Shell"
] | 5 | Shell | normnorm/openshift-elasticsearch | 1b012c850b423c1e7b480e5cc3b6ca42ce3c9fa8 | b286e4288bbca873d0e44e85a6a7c04af067a5a6 |
refs/heads/main | <file_sep>rootProject.name = "Internship Application"
include ':app'
<file_sep>package ua.kpi.comsys.internshipapplication;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import... | cfc7de1ba5722c0e7f6c7fb3cf303cf2af114dcc | [
"Java",
"Gradle"
] | 2 | Gradle | Katya-art/InternshipApplication | c5d2804d5900fa86a0c4c569f169d6773e27b0c6 | 653e5f9be4023975df37e781c177b70220747911 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="iso-8859-2" />
<meta name="author" content="MD"/>
<meta name="keywords" content="supit,všpr,računarstvo,vježbe"/>
<meta name="description" content="Vježbe ishoda učenja 1.Tema:HTML" />
<title>Supit - zadatak... | cb53631c537af3b66ae6e4353c927dd58791e90f | [
"JavaScript",
"HTML"
] | 10 | HTML | matijaderk/Web_Technologies | 9b9aedf04d1b94d197e2c601968d66f71be698d1 | d106665e6c0f3ef0e0230f0114ded1173b5747de |
refs/heads/master | <file_sep>package OCA;
public class TestClass {
static int si = 10;
static int si2 = 20;
public static void main(String args[]) {
new TestClass();
}
public TestClass() {
System.out.println(this);
}
public String toString() {
return "TestClass.si = " + this.si + thi... | 47938772c3693304b2f10efb3606ccadf7ca8c00 | [
"Java"
] | 17 | Java | adilmsrit/LeanFTPractice | dd3589804feb8e0440b1f7a462712c7ec447404f | 54610768629681036cb0d3c7dad882b656e6829a |
refs/heads/master | <file_sep># Build a class EmailParser that accepts a string of unformatted
# emails. The parse method on the class should separate them into
# unique email addresses. The delimiters to support are commas (',')
# or whitespace (' ').
class EmailParser
attr_accessor :text
@@all = []
@@email_str = String.new
@@ema... | 5f065f9f7ddfec59793d3660758e62efb506f3db | [
"Ruby"
] | 1 | Ruby | alrawi90/oo-email-parser-re-coded-000 | b096638d02a5e05cf38a7a4702b1a3e6b4c6ec82 | ae69ee7b13ec53a5b3688199987249e954aa3a7a |
refs/heads/master | <repo_name>magj2006/nomicon_example<file_sep>/README.md
## All codes are from the nomicon book for Rust.
<file_sep>/ch5/src/main.rs
fn main() {
/*
checked section
*/
let x: i32;
if true {
x = 5;
} else {
x = 7;
}
println!("{}", x);
let x_r = x;
println!("{}", x)... | 0889f09ff40df645b9b6808b18311749adf5e817 | [
"Markdown",
"Rust"
] | 2 | Markdown | magj2006/nomicon_example | bef5fd3df439796e4d3c35de6aa2354a1ed857dc | 3e65d7bd6566eed90ca4a3edf4a86278db04462a |
refs/heads/master | <repo_name>paul-charlton/Bug_XamarinShellPopNavigation<file_sep>/ShellPopIssue/ShellPopIssue/Views/NotAShell.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace ShellPopIssue.Views
{
[... | f831773652337d26e3d2f5e8b587c8b90c7c29a6 | [
"C#"
] | 3 | C# | paul-charlton/Bug_XamarinShellPopNavigation | 97319f9c9a1e98de8436578a7f508f2a71622d9a | 77ab3a8d11d4284675c3a1bbece3d479a9acf4ff |
refs/heads/master | <file_sep>const PubSub = require('../helpers/pub_sub.js');
const IntensityView = function () {
};
IntensityView.prototype.bindEvents = function(){
PubSub.subscribe('Regions:carbon-intensity-ready', (evt) => {
const carbonIntensity = evt.detail;
this.renderTopContainer(carbonIntensity);
this.renderMapIm... | 3a97c6e6250f06265f3cccc072d6e5f9c4110642 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | matosca/CIUR-JavaScript_app | 5145ed82d2ba52cd7a38b27e802cb71657ae28c7 | e9d784a0a147ed7bdd24898b144f83a9f34f950d |
refs/heads/main | <file_sep># Password-generator
## Purpose
The application can be used to generate a random password based on criteria the user selects.
## Built With
* HTML
* CSS
* Javascript
### Link to deplyed application: https://marisela-gutierrez.github.io/Password-generator/
## Contribution
Made with ❤️ by <NAME>
<file_s... | 2d84018ff4ec80b26afa12894bda7906e8debbe2 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | marisela-gutierrez/Password-generator | 262858c09c740e8ea10777ce7a514da448cd4ca1 | 3001411fb470c858079fdebcb2ff236b72c71498 |
refs/heads/main | <file_sep>const express = require("express");
const mongoose = require("mongoose");
const cors = require("cors");
mongoose.connect('mongodb://localhost:27017/capstone-project-1', { useNewUrlParser: true , useUnifiedTopology: true }, () =>
{
console.log("Sever connected check localhost:5000");
})
const ... | 48ba9e0d0564f8fdf4c399410119d1360701e040 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Prakash-Palanisamy/GroceryList | 7c47ad5cb095a4703349e59ab9abe85cfadf4506 | 2a1c60b95934b0e047c6900af2e1fa3f4877233c |
refs/heads/master | <repo_name>MWilliams15/wpp-testing<file_sep>/UserInterface/src/main/resources/static/js/Login/Error.js
$(document).ready(function(){
$('#goBack').on('click', function(){
window.location = './';
});
});<file_sep>/UserInterface/src/main/resources/static/js/Admin/ManageUsers.js
$(document).ready(function(){
fu... | 649dca4ae3c1037e19956e9118c6ff72f755978b | [
"JavaScript",
"Java",
"INI",
"Gradle"
] | 7 | JavaScript | MWilliams15/wpp-testing | 6f86c7dff5c58a2137df19bdc5a205c4cb42d6ee | d0c32b3d598b5b81e17b670e2d42ee918e25427e |
refs/heads/main | <repo_name>rahulddutta/mern-blog<file_sep>/client/src/components/Sidebar/Sidebar.jsx
import axios from "axios"
import { useEffect, useState } from "react"
import { Link } from "react-router-dom"
import "./sidebar.css"
const Sidebar = () => {
const [cats,setCats] = useState([])
useEffect(() => {
const getCats ... | 722ac05e60e8320454d6dd69298b0ec7988c8e85 | [
"JavaScript"
] | 1 | JavaScript | rahulddutta/mern-blog | c160a36588608fdaa4bfd5d6ff65a0acf44c2765 | 07a5f777c29110264fd572b52cd04930279b14d9 |
refs/heads/master | <file_sep>Challenges = new Meteor.Collection('challenges');
Challenges.allow({
insert: function() {
return true;
},
remove: function() {
return true;
}
});<file_sep>#Programmaverse
>"Meteor is an ultra-simple environment for building modern websites. What once took weeks, even with the best tools, no... | 05b11177ffe6b5d649ed6bb9c9babfae08dcaf61 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | randomhackers/programmaverse-meteor | 37103c2f8093d1c1edb4696f8ff0f76019cc2edd | 16e636acbfc7072fe5ad8c6b7a284b7572598335 |
refs/heads/master | <repo_name>stevekinney/trance-leg<file_sep>/README.md
# Trance Leg
A very important library for working with rectangles.
## API
Trance Leg takes four arguments: `x`, `y`, `width`, and `height`.
It also has two methods:
- `area`: returns the area of the rectangle
- `perimeter`: returns the perimeter of the rectangl... | 9fa1ac29d318c4398d012f86bb15e855c9f3dd90 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | stevekinney/trance-leg | 508650f7d6bf877e0a86c4a5786822801ac73a42 | 1bbf50d03eb8577238d986e8b4581ff242278e0b |
refs/heads/master | <file_sep>import re
total = 0
ribon = 0
with open('fabric.txt', 'r+') as f:
text = [linia.rstrip() for linia in f]
for size in text:
structure = r"(\d{1,2})x(\d{1,2})x(\d{1,2})"
m = re.search(structure, size)
if m:
l = int(m.group(1))
w = int(m.group(2))
h = int(m.group(3))
... | 95f156a18adfa38856e3dea0a14903d1a9d2d87b | [
"Python"
] | 1 | Python | Czajnikus/AdventOfCode2015-Day2 | cfa9cf8d57e90e1f7a49545e4699ccae58bdb6a3 | a3894da3aece8d7ddee1ddcb8ed9cbb8f6377bce |
refs/heads/master | <repo_name>bit1120161907/shuduku09<file_sep>/数独作业(含源代码)/ConsoleApplication11/ConsoleApplication11.cpp
#include "stdafx.h"
int sudo[9][9] = { //构造新数独棋盘的原始棋盘
{ 1, 6, 2, 5, 9, 3, 4, 7, 8 },
{ 5, 9, 7, 1, 8, 4, 6, 3, 2 },
{ 4, 8, 3, 2, 6, 7, 1, 9, 5 },
{ 6, 3, 5, 7, 1, 8, 9, 2, 4 },
{ 8, 7, 9, 6, 4, 2, 3,... | 859b714980a87dd33b480fa7c8c75b1eacc533d6 | [
"C++"
] | 1 | C++ | bit1120161907/shuduku09 | 49937d5996f045dde24a65465d698b4943be7187 | 1e0d0cd401291fb1137cdd8577ba7fbec2a74218 |
refs/heads/master | <file_sep>from sklearn.linear_model import SGDClassifier
from skmultiflow.core import BaseSKMObject, ClassifierMixin, MetaEstimatorMixin, MultiOutputMixin
class MultiOutputLearner(BaseSKMObject, ClassifierMixin, MetaEstimatorMixin, MultiOutputMixin):
"""
come form skmultiflow
"""
def __init__(self,... | c84d705b4dfff9e2221338b92e8cd5aa9c397c48 | [
"Markdown",
"Python"
] | 47 | Python | HsiangYangChu/LIBCDD | 6ff2cf032ac1aef48ac028043f342d68dc80516b | ae3f4a228eba35c1619da9bbc9ff6c3a00e5f271 |
refs/heads/master | <repo_name>hutom-io/COCOcustom<file_sep>/make_custom_json/coco_json.py
from submask import *
from submaskann import *
import json
import os
data_path = './images/'
file_list = os.listdir(data_path)
n_data = len(file_list)
mask_images = []
for image in range(n_data):
mask_images.append(Image.open(data_path+file_... | 1557ac093599ce710c7282a364d82130edec3bea | [
"Markdown",
"Python"
] | 2 | Python | hutom-io/COCOcustom | e2ea8c47cadcc13098f52ecd40624d7d34c75d8d | 2b7267f53bad9378dc6fa9c513b53b8d29a11dd3 |
refs/heads/master | <repo_name>LzCrazy/HTML<file_sep>/jd/js/index.js
$(document).ready(function() {
$(".mainProNav dl dt").mouseover(function() {
$(".mainProNav dl").removeClass("dlHover");
$(this).parent().addClass("dlHover");
})
$(".mainProNav").hover(function() {
$(this).addClass("mainProNavHover");
},function() {
$(this)... | f187b25c57fd70c0d1f43066e1a7d55fd3b7f120 | [
"JavaScript"
] | 1 | JavaScript | LzCrazy/HTML | c2214bb13b7f831035a07a7e694f1747685510b6 | 56564ea9203c1f10f8780f4a105c362c407f3f94 |
refs/heads/master | <file_sep>using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using RestaurantAPI.Domain.Models;
using AppContext = RestaurantAPI.Persistence.AppContext;
namespace RestaurantAPI.Application.Repositories
{
public class DishesRepository : IDishesRepository
{
... | 9b8df364509f14eca1c68da18048f401b3d9e4fc | [
"Markdown",
"C#"
] | 18 | C# | benda-cyber/RestaurantAPI | a226a60218bdf20691cd5561d01130d1e74ddc7f | 3716e85a2b1b21683aa52887aa14f77f73d5b5c6 |
refs/heads/master | <file_sep>package exercise3;
public class ConvexPolygon {
//private Point vertices;
public double perimeter(){
return;
};
public double area(){
return;
};
public ConvexPolygon(Point vertices){
//this.vertices=vertices;
}
public ConvexPolygon(){};
}
<file_sep>package exercise3;
public class Rectan... | 2b15ab30a6c00b2b27234a5f11ffe08a30f24b1b | [
"Java"
] | 4 | Java | umons-polytech-odl-2018/odl-tp1-l-m-s-vansnick-maes | de38a591117e7065d857e92b6f7b612da45ad0ce | fcfacffe35c6e1f52f080a031a32a6b4d6db018d |
refs/heads/master | <file_sep>#' A function to join GPDD time series data with temperature data.
#'
#' This function calls the location data table from rgpdd, and joins it with the temperature data using the LocationID index.
#' In addition, this function can be used to join to the GPDD main data table, which contains indexes for all oth... | 6bffc90cdc039fb810ebc4b004b72e757183e79d | [
"Markdown",
"R"
] | 5 | R | daan4786/rgpddPlusTraits | 0586493569ffda9398ec033a76e3920908b38149 | 2b82f45c08ca04808b4fa214f5c897013f895ed9 |
refs/heads/master | <file_sep>local shortport = require "shortport"
local http = require("http")
local string = require("string")
description = [[ifconfig.me External IP Lookup]]
author = "Red5d"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"external"}
-- No host/port/etc requirements for running this... | 4f231ae39c89f66413cbd50b84abd458ce1c5308 | [
"Markdown",
"Lua"
] | 5 | Lua | Red5d/nse-scripts | 8d2ac16557adc55e37f77dae72d3d204ffddc868 | 06be716cf3c53d1fc80161a05da1a4a8c6f5ef54 |
refs/heads/master | <file_sep># --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table jeu (
nom varchar(255) not null,
constraint pk_jeu primary key (nom))
;
create table news (
id integer not null,
titr... | 20d06107e8bf65b13dc1f41af21af268feb1bfbe | [
"Markdown",
"SQL",
"Java",
"HTML"
] | 4 | SQL | Setrag/nsih | 8885fddb9640de360e65930dc153c8e9aa8f1c67 | 88b5ba306afa08ea29ce9c348b16ef1005dd4593 |
refs/heads/main | <repo_name>Josessantos5034/Digitalizacion_de_procesos_en_la_toma_de_datos_en_cerdos-<file_sep>/node js/index.js
const TelegramBot = require('node-telegram-bot-api');
//var mqtt = require('mqtt');/
var Constantes = require('./Token');
const bot = new TelegramBot(Constantes,token, {
polling: true
});
var Idmichat = 92... | 3e25f11c3473332f517fcf5d63caa56929cde04a | [
"JavaScript",
"C++",
"Markdown"
] | 4 | JavaScript | Josessantos5034/Digitalizacion_de_procesos_en_la_toma_de_datos_en_cerdos- | c18c62d7d829e1de8f99c9842ee183ae0475d9f3 | d2f564ff58b2475a1ae5428cd5bfa24f05348a34 |
refs/heads/master | <file_sep>import { Component, Input } from '@angular/core';
@Component({
selector: 'app-pet-list-item',
templateUrl: './pet-list-item.component.html'
})
export class PetListItemComponent {
@Input() name;
@Input() description = 'Um animal dócil que foi perdido no centreventos';
// tslint:disable-next-line:max... | 882d741cc78c28a60fefd66420b8b27d873d29f2 | [
"TypeScript"
] | 3 | TypeScript | academiadev-jlle/frontend-angular-deploy-victormafra | 9e3ef69e088fdf7424d23e6bd5852c10b0453467 | bef578968bf1576186eab09565e0bd35e56d2220 |
refs/heads/master | <repo_name>morinatsu/dotfiles<file_sep>/fuc/git.md
Git
===
```bash
# list Authors
$ git shortlog --summary --email
# remove untracked files from the working tree
$ git clean -d --dry-run
$ git clean -d --force
# search file name in previous commit
$ git log -S <string>
$ git log --pretty=oneline --name-only -S <stri... | ea8b62276674e0718bdaf46662fbb029ac6bd2a6 | [
"Markdown",
"Makefile",
"Shell"
] | 7 | Markdown | morinatsu/dotfiles | 1b8543ced1f456fd05e6b63940ad958bc869956b | 1ffde01dbf939f8b74845a87c07118187fc152dc |
refs/heads/master | <file_sep>const RESOURCE_CACHE = 'resources-v1';
var urlsToCache = [
'/',
'/player.css',
'/player.js'
];
const TRACK_CACHE = 'tracks-v1';
const IMG_CACHE = 'images-v1';
const POLL_CACHE = 'polls-v1';
var waitingPolls = {};
// To prevent the same thing being downloaded multiple times
var fetchingTracks = {};
var fet... | eadc36f879b47e32505bccff92fb9d55fe57ec80 | [
"JavaScript",
"YAML",
"Dockerfile"
] | 4 | JavaScript | lucas42/lucos-seinn | 977878b744a3234ea8e316ba471eed239d8e92bc | c68fd2f9be94647e7d04e6b00c8a85dc6edb6ae9 |
refs/heads/master | <repo_name>jerniceduncan/Team-Profile-Generator<file_sep>/lib/build_team.js
const Manager = require("./Manager");
const inquirer = require("inquirer");
const Intern = require("./Intern");
const Engineer = require('./Engineer');
const html = require('./htmlRenderer');
const fs = require('fs');
const genCard = require('.... | 1db47c329a2798f8894cfbbba28a0f05b301ecbd | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jerniceduncan/Team-Profile-Generator | e49c9be97ae6c5f61f82f7ede70009530353073d | 1d755ebecae97926605c3180cb75e171ad085461 |
refs/heads/master | <repo_name>jupiter323/react-native-rsa-qrcode-CRM<file_sep>/src/modules/LoginModule/index.js
import FirstScreen from './FirstScreen'
import LoginForm from './LoginForm'
import SignupForm from './SignUpForm'
export {
FirstScreen,
LoginForm,
SignupForm
}<file_sep>/src/modules/LoginModule/FirstScreen/style.js
... | 4f6bc530da468812161fc1a0edfd4a00def1dfd0 | [
"JavaScript"
] | 6 | JavaScript | jupiter323/react-native-rsa-qrcode-CRM | b254668c2902356b2210808d6291608efaa3c7c3 | 8b84a0756ff108d9d5ab1201c4d0e92a215aaf27 |
refs/heads/main | <repo_name>kabirvirji/lc-related-topics<file_sep>/foreground.js
var topic_elements = document.getElementsByClassName("tag__2PqS") // keeps getting redefined on every open
var topics = []
const set_topics = (topics, topic_elements) => {
for (let i = 0; i < topic_elements.length; i++) {
topics.push(topic_ele... | 2e09bc2f42ec5be92117e0468b6e52cf5c46b3f2 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | kabirvirji/lc-related-topics | 8411523a42a26aac291904bedc6a8fca8afbc643 | 7d15b0f477b266e3014032ee16848cea05afc0ff |
refs/heads/master | <repo_name>stefanJi/GradlePluginDevelop<file_sep>/source/android_apk_optimization.md
###apk瘦身
- 1.使用一套图资源
对于绝大对数APP来说,只需要取一套设计图就足够了。鉴于现在分辨率的趋势,建议取720p的资源,放到xhdpi目录。
相对于多套资源,只使用720P的一套资源,在视觉上差别不大,很多大公司的产品也是如此,但却能显著的减少资源占用大小,顺便也能减轻设计师的出图工作量了
- 2.开启minifyEnabled混淆代码
- 3.开启shrinkResources去除无用资源
- 4.删除无用的语言资源(大多数情况仅仅需... | 24d35368500c11ebd16028ae40bd419426842d97 | [
"Markdown",
"Java",
"Gradle"
] | 44 | Markdown | stefanJi/GradlePluginDevelop | b6619f74ca78daee195bb53acbf760bddb9ef9a9 | 0940474a69620c26f109ce5db96fd9cc417e28cc |
refs/heads/main | <file_sep>#include <stdio.h> // Fichier contenant les en-têtes des fonctions standard d'entrées/sorties
#include <stdlib.h> // Fichier contenant les en-têtes de fonctions standard telles que malloc()
#include <string.h> // Fichier contenant les en-têtes de fonctions standard de gestion de chaînes de caract... | db983868fad3da9e8fd901b5a239479338520608 | [
"Markdown",
"C",
"Makefile"
] | 4 | C | TabaryM/Projet_Reseaux_2020 | 75aa726ff486dec26d47f40300ea6ef5b799121b | 0bb12a1200ba2d877877914d35a4ed6f954daa56 |
refs/heads/master | <file_sep>app.config(function($stateProvider, $urlRouterProvider){
$stateProvider
.state('home', {
url: '/home',
templateUrl: 'home.html'
}).state('station', {
url: '/station/:id',
templateUrl: 'station.html'
}).state('accounts', {
url: '/accounts',
templateUrl: 'accounts.html'
}).state('sign... | 8ff02c0c1c795beecd2c64f44f553a538ae4de18 | [
"JavaScript"
] | 2 | JavaScript | elite-groove/RadioChat | 8cc7a6ef5e1cd3acce21d81ecc9f5e5f3c7256f5 | 3be4e4a99ae4de1d828b72855c63822d496bb907 |
refs/heads/master | <repo_name>miguelsolorio/midnight-theme<file_sep>/scripts/clean.js
const fs = require("fs");
const rimraf = require("rimraf");
const outputDirectory = "themes";
// clear dist folder
rimraf(outputDirectory, function () {
console.log(`deleted "${outputDirectory}" folder`);
// re-create dist folder
fs.mkdi... | 9c7c6b3159a0d344d34b20f465355c8d7f41cf28 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | miguelsolorio/midnight-theme | 5026848798740d802a5c22e498ae4f6320533c2c | ebaf867d4e61f21518acfe22cc7e37127fa9661c |
refs/heads/master | <repo_name>ShawnMeng/data-placement<file_sep>/data-intensive queries.sql
#Query 98
explain analyze select i_item_desc
,i_category
,i_class
,i_current_price
,sum(ss_ext_sales_price) as itemrevenue
,sum(ss_ext_sales_price)*100/sum(sum(ss_ext_sales_price)) over
(partition by i_... | bbc0148ec69a56d9a149437c6cdc65cec451c91f | [
"SQL"
] | 4 | SQL | ShawnMeng/data-placement | ff1a497bbf184703d4479fefab6b65f3471acf12 | 86c322ee3d6ea24e3585c94fb8f317838639848c |
refs/heads/master | <file_sep>echo "Welcome to the guessing game!"
#set variable defining number of files in current directory
#Doesn't include directories
nfiles=$(ls -p | grep -v / | wc -l)
#Function that checks whether response and nfiles match
function check-match {
if [[ $1 -eq $2 ]]
then
echo "Congrats! You guessed correctly."... | 72947365149fef373df55296a6e7339eeda1b133 | [
"Markdown",
"Makefile",
"Shell"
] | 3 | Shell | jenna-labelle/UnixWorkbench_Project | 55d90dd46bfa90422a9dbf3c3e38502e918be8ab | 7f166808e97d76c08f668ef6c330273f6fdb4495 |
refs/heads/master | <repo_name>echo1319/kmeans<file_sep>/src/com/constantine/Main.java
/*
package com.constantine;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
public class Main {
p... | f7e8227f9610e82e04c37a7e94ccd3fc80f65b0c | [
"Java",
"INI"
] | 3 | Java | echo1319/kmeans | a1ef13ff6bafa10d2ba00e8bf66dc4c4daecbb16 | eab73d48f61ef2df05924f7caafa887598d39f62 |
refs/heads/master | <file_sep><?php
declare(strict_types=1);
namespace App;
use App\Http\Controllers\CacheController;
use Illuminate\Database\Eloquent\Model;
class Entry extends Model
{
//
protected $table = 'entries';
protected $guarded = ['id'];
public function fuelStation()
{
return $this->hasOne('App\... | dfc348abf6208c686a0a9c91b0609209566fdb7d | [
"Markdown",
"JavaScript",
"PHP",
"Shell"
] | 37 | PHP | vostpt/greve-transportes-perigosos | d647c954bc7f17705427c6002c6331635ef6d622 | 00e2e231e3558057608ebfffd834132638ae2014 |
refs/heads/main | <file_sep># Bike-ride-sharing-<file_sep>import csv
import json
import numpy as np
import os
import pandas as pd
import requests
from requests.adapters import HTTPAdapter
import time
# Copyright 2020 by <NAME>.
# All rights reserved.
# This file is part of the map repository found on https://github.com/chic... | d88b994c9ea889c24a3c21abe7a10c3a25a163a9 | [
"Markdown",
"Python"
] | 2 | Markdown | Ishaanjolly/Bike-ride-sharing- | 937219aa20ec5914b774f793c567e31f2272d2cf | ea31eabb7637983016a15ac92e4a271309aa2d3a |
refs/heads/master | <repo_name>Ingalls12/hangman<file_sep>/ahorcadoSolo.py
import random
def main():
titulo()
juego()
def juego():
jug = jugadores()
lista = ["Ornitorrinco", "Adivinanza","Estres", "Ventilador","Modem","Ensayo", "Buenavista"]
palabra = lista[random.randint(0,len(lista)-1)]
print(f"Adivina la palabra... | 867040d3af1a5418cabf675a95ee56e0f8a44fde | [
"Python"
] | 1 | Python | Ingalls12/hangman | ea737d290b670c0cbd98fdfd457e8587f79e29b3 | 766c96ca747e21bda5b977ac4823374956c5ec82 |
refs/heads/master | <repo_name>FaycalHrid/cloudin<file_sep>/CloudIn/src/java/controllers/ProjetController.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controllers;
import javax.inject.Na... | 6fc1431a7dff3074173d6de2089db8445e91d667 | [
"Java",
"SQL"
] | 2 | Java | FaycalHrid/cloudin | 9a1b6ddb9f6a104928d971b3d2b45c7ade0557e1 | cf899716c048c5fbff7be4293811a56318521d35 |
refs/heads/master | <repo_name>JCMais/react-suspense-intro<file_sep>/src/api/api.js
import Octokit from '@octokit/rest';
import { delay } from '../utils';
import orgsFixture from './fixtures/orgs.json';
import contributorsFixture from './fixtures/contributors.json';
const api = new Octokit();
const DEFAULT_DELAY = 2000;
const IS_MOCK... | 64a202ffbe9f71f9c94fd471fae5e92250db3965 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | JCMais/react-suspense-intro | 3b9e0ef18f6da2ccf4882e66f9604671823aad75 | a95c7b0a32bcbea7bcd2703e59b9d2af35ff5983 |
refs/heads/master | <repo_name>faros/workshop-ui-todo<file_sep>/src/app/facade/todo.facade.spec.ts
import {async, TestBed} from '@angular/core/testing';
import SpyObj = jasmine.SpyObj;
import {TodoService} from '../services/todo.service';
import {SnackBarService} from '../services/snack-bar.service';
import {NEVER, of, throwError} from 'r... | d88a6b7d48c668479bc0e3e77659956119cfb086 | [
"Markdown",
"TypeScript"
] | 20 | TypeScript | faros/workshop-ui-todo | 930c262c300f9f8703cccf9696a54778e2f08c0f | d6f733bb9fb2e6deac84c8f8995d4c09a6021ffa |
refs/heads/master | <repo_name>unnaidan/ui-unn<file_sep>/redux/auth/actions.js
import {
SET_USER,
SET_ACCESS_TOKEN
} from './actionTypes'
const setUser = user => ({
type: SET_USER,
payload: {
user
}
})
const setAccessToken = accessToken => ({
type: SET_ACCESS_TOKEN,
payload: {
accessToken
... | 9b1ea6bc7d9670235d14f898f4db9463b8599b9b | [
"JavaScript"
] | 15 | JavaScript | unnaidan/ui-unn | 75dd8afe2a3a461b8b785e9228d971e56478dd59 | d4a55709b3afd22915e9de4cc55456f676acc177 |
refs/heads/master | <repo_name>hazemkhaledmohamed/IMGshare<file_sep>/imgshare.sql
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 23, 2017 at 11:45 PM
-- Server version: 10.1.19-MariaDB
-- PHP Version: 7.0.13
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00... | baea314222a816acab2078dcf7108aca1e90450a | [
"Markdown",
"SQL",
"PHP"
] | 4 | SQL | hazemkhaledmohamed/IMGshare | 22ba2674c5ac557d0ea32d40b5e29cc9924839bf | 7b3594c968daac041a74992343b3cc55d2fcfc86 |
refs/heads/master | <file_sep>import React from "react";
import HomeImg from "../../public/assets/images/home_bg.jpg";
import {
BrowserRouter as Router,
Link
} from "react-router-dom";
class Home extends React.Component{
render(){
const bgStyle = {
backgroundImage: `url(${HomeImg})`
}
re... | 7412e89151fb6d42ec6dbf25ca0fbdf35dbad941 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | aktcode/ui | 77408fabd3b3620a2545a59c5125cfb206e490c5 | 49f03cafb0184913ef18f836089e65c800ccb1e2 |
refs/heads/master | <repo_name>ICTU/stomp-api<file_sep>/index.js
var StompLib = require('./stomp-lib.js')
var express = require('express')
var bodyParser = require('body-parser')
var app = express()
app.use(bodyParser.json())
app.put('/queues/subscriptions', function (req, res) {
StompLib.subscribe(process.env.host, process.env.port, ... | f4de934d3348ae65a388f523b9982039f229b763 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | ICTU/stomp-api | 2d9651e5e3197923746446b221877780871db982 | b90a5e055da42b2415f7d090acb71318885771f6 |
refs/heads/master | <repo_name>castorfaener/JSCourse<file_sep>/Javascript/Hola-mundo/js/14-Ejercicio4.js
'use strict'
/*
Muestra los numeros impares comprendidso entre dos numeros introducidos por el usuario
*/
var numero1 = 0;
var numero2 = 0;
var max;
var min;
var espar;
do{
numero1 = parseInt(prompt("Introduce el primer número"));... | eb2e4a6d31fe1029797d668ec83e72a759055cb4 | [
"JavaScript"
] | 20 | JavaScript | castorfaener/JSCourse | b2aab1559ed0a6da2d0909719d7f219d1bbf2c58 | 661af311df13a56523bb727873f01868bca447ea |
refs/heads/master | <repo_name>glaucosydow/pos-webdev<file_sep>/README.md
# Expressive - RestBeer
## Instalando o expressive
```
curl -s http://getcomposer.org/installer | php
php composer.phar require zendframework/zend-expressive
php composer.phar require zendframework/zend-expressive-fastroute
php composer.phar require zendframework/... | 5dc36897c78499de59b4237c6e1033a70c966dac | [
"Markdown",
"PHP"
] | 2 | Markdown | glaucosydow/pos-webdev | eb940b2cb0c09db2d35947a53bf9ec8d8f3263f5 | 97dc959a77a299f2deefb15fe0abb2894304af22 |
refs/heads/master | <repo_name>keishinkickback/DiReAL<file_sep>/inception_score.py
from __future__ import print_function
import argparse
import torch
from torch import nn
from torch.nn import functional as F
import torch.utils.data
from torchvision.models.inception import inception_v3
import torchvision.transforms as transforms
import n... | 62ebddfc19721e056e1fd178813a6cfcad30f9fe | [
"Markdown",
"Python"
] | 7 | Python | keishinkickback/DiReAL | 91e3db231943aaca4aed0d8067f504a25f02323f | 4d089c92459eef07461b0b87ad22de7951703591 |
refs/heads/master | <repo_name>srikailash/miniproject<file_sep>/src/main.py
import os
import json
import libvirt
from json import JSONDecoder
from json import JSONEncoder
from flask import Flask , request , jsonify
from random import randint
app = Flask(__name__)
VM = {}
allocated = 0
pmid_allocated = 0
vmtypes = {"types":[{"tid":1,"c... | 0865f031737768573f55b8b1235461357637ed47 | [
"Python"
] | 3 | Python | srikailash/miniproject | 82af338af0f8a74f2f571346b8e6677a10094f31 | 1f2466f001dbc705df2e61009e54dbcdff8d5da2 |
refs/heads/master | <repo_name>Carghaez/JSnake<file_sep>/assets/js/model/Model.js
function Model(_cols, _rows)
{
this.cols = _cols;
this.rows = _rows;
this.snake = null;
this.foods = null;
this.randomPos = function()
{
var posX = parseInt(Math.random() * this.cols);
var posY = parseInt(Math.random(... | 0f528bd0f0f0674c04e50588a30d0c56eed8d3be | [
"JavaScript"
] | 5 | JavaScript | Carghaez/JSnake | bb38a4189eb20d76e855c3024cc0c820d5547cc8 | df07ff5c766525ddeebbd824f49ffacc7b32adcf |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import styled from 'styled-components';
const Button = styled.button`
font-family: san-serif;
font-size:1.4rem;
border:none;
border-radius:5px;
`
class ComponentWithState extends Component {
constructor() {
super();
this.state = {
name: 'Reac... | 5cf7f978eb69cfd0cf290d929ebe12b5865cdaff | [
"JavaScript"
] | 1 | JavaScript | lklsquare/reactTemplate | f66787f97266ef2dfc4f6dbdcaca9d28ffa315ec | 7adf9a60e1f809d3dbc54bdfc7ae0b84f0f459ed |
refs/heads/master | <repo_name>Gabelbombe/aws-reservedinstances<file_sep>/run/app.php
<?php date_default_timezone_set('America/Los_Angeles');
error_reporting(-1);
ini_set('display_errors', 1);
require dirname(__DIR__) . '/vendor/autoload.php';
define('ENV_MODE', getenv('ENV_MODE') ? getenv('ENV_MODE') : 'Dev');
define('ENV_FILE', d... | ac69baa8c756acac2f06569f6dcbe941e3442a55 | [
"PHP"
] | 5 | PHP | Gabelbombe/aws-reservedinstances | f77c2a3dd65a24d4145894269315a4a5436338eb | ec7a360627b74b71cfa06d5b4bef699f7497285b |
refs/heads/master | <file_sep>import requests
import json
import pandas as pd
# POST to API
payload = {'country': 'Germany'}
URL = 'https://api.statworx.com/covid'
response = requests.post(url=URL, data=json.dumps(payload))
# Convert to data frame
df = pd.DataFrame.from_dict(json.loads(response.text))
df.head()
| 1ae66ff56089e96082f3cb0cb23190a24ac410b6 | [
"Python"
] | 1 | Python | iMarcello/covid-19-api | 52931deceeb2cf9161acee40de029abca5db1d35 | eb307fd708cacf1b43918c86e0df5665e2575609 |
refs/heads/master | <file_sep><?php
namespace App\Entity;
use App\Entity\Traits\CreatedAtTrait;
use App\Entity\Traits\UpdatedAtTrait;
use Doctrine\ORM\Mapping;
/**
*
* @Mapping\Table(name="college")
* @Mapping\Entity(repositoryClass="App\Repository\CollegeRepository")
* @Mapping\HasLifecycleCallbacks()
*
*/
class College
{
us... | 7030b779407ec36420a8e35ae724fd6cbb755ac3 | [
"PHP"
] | 8 | PHP | ondrosru/TestTaskColleges | 6b3b08cb5ccf0df929108df87ed161bb67d78901 | 5d1c9465b08f5aaeec994c3fc7d7240577c536d7 |
refs/heads/master | <file_sep>//google copy
const search = document.querySelector(".searchbar");
const google = document.querySelector(".Icon");
const googleSearch = document.querySelector(".googleSearch");
const feelingLucky = document.querySelector(".feelingLucky");
const lightsht = document.querySelector('.lightshot');
const gmail = d... | 59d1c8716a627e573dc41d2d65f2d5a14dbd7a47 | [
"JavaScript"
] | 1 | JavaScript | SamKimforCode/googleClone | de0be24fd0b87a9c7d9f182dbc878c2e750b6c86 | 1db9454ecb21138b4f037efb3fc1e377c308639d |
refs/heads/master | <repo_name>nyarla/http-simulator<file_sep>/index.js
'use strict';
var http = require('http'),
net = require('net'),
qs = require('querystring'),
Buffer = require('buffer').Buffer,
URI = require('uri-template-lite').URI
;
exports.parseHTTPVersion = function parseHTTPVersion(data) {
v... | 626de1ba232763936585117b9c2d921755e3240b | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | nyarla/http-simulator | 5f7e20c942c16df44b33efe19a519fbee1f6adbb | 9dd3cf76955fa92b4daef27f70c95b72cb9d7f1c |
refs/heads/master | <file_sep>#include"pch.h"
#include "MazeTraversal.h"
#include<iostream>
#include<string>
#include<fstream>
using namespace std;
MazeTraversal::MazeTraversal(int size ):size(size){
maze = new char* [size];
for (int i = 0; i < size; i++) {
maze[i] = new char[size];
}
for (int i = 0; i < size; i++)
{
... | 00002b30073f2e929a3ffc5ed5cee1b06a9752c2 | [
"Markdown",
"C++"
] | 4 | C++ | Iqraa-Younas/Automated-MazeTraversal | 1ab5cd90f9143b81931c7074e17157ea56de332a | 3ac2c467be3f707fbc2f48a0561fc6722338ddac |
refs/heads/master | <file_sep># Maintainer: <NAME> <<EMAIL>>
pkgname=firefox-gopassbridge
pkgver=0.1.1
pkgrel=1
pkgdesc='Gopass Bridge Firefox extension allows searching and inserting login credentials from the gopass password manager'
url=https://github.com/martinhoefling/gopassbridge
arch=('any')
license=('MIT')
source=("https://addons... | e358230df856fa93aac5a22a2f73ecac7079e398 | [
"Shell"
] | 1 | Shell | mnussbaum/firefox-gopassbridge | 0bbc89d65097a7fc6f97ed7c3f7533dc29a91605 | 32e8ac93e098e53334dcb4bce96510a4423cb8d4 |
refs/heads/master | <repo_name>lhw373/bike<file_sep>/hello.php
<?php
echo 'hello word!sss';
echo 'what are you doing';
?><file_sep>/1.php
<?php
echo 'aa';
echo 'bb';
echo 'cc';
echo 'dd';
echo 'ee';
echo 'ff';
echo 'gg';
echo 'hh';
echo 'ii';
echo 'll';
echo 'nn';
echo 'aaaa';
echo 'hello word!1111111'
echo 'what are you doing';
ec... | ff5ced26190bb82437048a7c5f8acb8998433233 | [
"PHP"
] | 2 | PHP | lhw373/bike | fc270b61db20e131212658efcdd25b081f3de349 | 58c06906b9e093d2fd4062cf457a814f721673b2 |
refs/heads/master | <file_sep>using System;
using System.IO;
using System.Text.RegularExpressions;
namespace lab_2.Model
{
public static class FileModel
{
public static void WriteFile(string path, string ciphertext, string sourcetext)
{
string content = "<ciphertext>" + ciphertext + "</ciphertext>" +... | c9972ba4ae5646462c1cbbd6984556bbf83a2cdd | [
"C#"
] | 9 | C# | garinich777/lab_2 | f1cffdc002302484d7d7deea64ef7ee30f474427 | b9d3b809d814d73cc5dd63cb1c55f0478b0368d9 |
refs/heads/master | <repo_name>tonytamsf/AndroidSimpleTwitterClient<file_sep>/src/com/codepath/apps/restclienttemplate/LoginActivity.java
package com.codepath.apps.restclienttemplate;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONObject;
import android.content.Intent;
import android.os.Bundle;
import androi... | 177fdf72a3b03a5ae58f59aecad2ff6be1256815 | [
"Java"
] | 1 | Java | tonytamsf/AndroidSimpleTwitterClient | 96f9e077ca2ddc98b39d0cc5e03f86655b9349e4 | 325ad4c5f6793069ecbc70be4a87d3a118ad0f40 |
refs/heads/master | <repo_name>AfonsohsS/CloudKitDash<file_sep>/CloudKitDash/Controllers/CitiesTVController.swift
//
// CitiesTVController.swift
// CloudKitDash
//
// Created by <NAME> on 25/05/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
// All code in this project is come from the book "iOS Apps for Masterminds"
// You ca... | bb942d7949eb3fa1ca264a53f17aac29e7301fb5 | [
"Swift",
"Markdown"
] | 7 | Swift | AfonsohsS/CloudKitDash | 27d4b82349d406a258167835c8b4fe50359cf87e | 5a24cca1826bd78c9843e34fcccc9b9abefb49fb |
refs/heads/master | <repo_name>hscheuerle/openforge-assessment-hscheuerle<file_sep>/src/app/tab2/tab2.page.ts
import { Component, OnInit } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs';
import { ActivatedRoute } from '@angular/router';
import { InAppBrowser, InAppBrowserObject } from '@ionic-... | 8d671533477acdccf9785f48ae49b19a1d1f7f32 | [
"Markdown",
"TypeScript"
] | 10 | TypeScript | hscheuerle/openforge-assessment-hscheuerle | 4a42f3af97451cd5f7fc9521b84300a4484a5e12 | c8d1d93882ec604460232c95e7f1d7c6d53159dc |
refs/heads/master | <file_sep>let apples_data;
let alarm_clocks_data;
let cats_data;
const CAT = 0;
const ALARM_CLOCK = 1;
const APPLE = 2;
const len = 784;
const total_data = 1000;
let apples = {};
let alarm_clocks = {};
let cats = {};
let nn;
function preload(){
apples_data = loadBytes('./data/apple1000.bin');
alarm_clocks_... | b157f4fd5d20c9ae5bb363c4437c22b4ed96fb0f | [
"JavaScript"
] | 1 | JavaScript | dgbarbosa/machine-learning_doodle-recognition | e633b1c3aef12b4ecbc96e299d1a1c7aa2d3aff2 | 04f5a8c68b5023fc1aad49f8f16e21f67a2ed7a2 |
refs/heads/main | <file_sep><?php
class BlouseSearchCest
{
/**
* Проверить поиск по тексту и открытие модального окна с товаром
* */
public function searchForBlouseCest(AcceptanceTester $I)
{
$searchQueryTopCSS = '#search_query_top';
$searchQueryTopXPath = '//*[@id="search_query_top"]';
$s... | 898e2db95aedff5343befb30e2acd14b0b3b0598 | [
"PHP"
] | 8 | PHP | JemboDev/qa-automation-pg | 114439ff23fcd59fb185cd3a2eacd1cb9845865e | 0c26553cd0418b6321fb5c258db57e21b3076ca8 |
refs/heads/master | <repo_name>scshepard/joeahand<file_sep>/content/future-books.md
Modified: 2014-03-11T17:36:50.650850
Status: published
Date: 2011-05-03T00:00:00
Slug: future-books
Title: Future of Books is in the Container
Category: note
Kind: note
I feel like the biggest driving issue with digital books is the container. Once the co... | e7910b1a6c9fbb84723947e4b33874b38aceddea | [
"Markdown",
"Python",
"HTML"
] | 26 | Markdown | scshepard/joeahand | 13506f3e151e419d843992cfb17d7ef21ff42886 | effa5653637c684c91c0219a06a6b2923aaf9e8c |
refs/heads/master | <file_sep>[tox]
env_list = src
skipdist = True
[testenv]
install_command = pip install {opts} {packages}
deps =
-rrequirements.txt
setenv =
PYTHONPATH=.
commands =
pytest tests/
<file_sep>from src.example_package import square
def test():
assert square(num=2) == 4
<file_sep>from numbers import Nu... | ffa92693cde2d5664e4e9103f365f1fbaf511329 | [
"Markdown",
"Python",
"INI"
] | 4 | INI | rahuliitb/example-package | 3fa4acf87788b0210ad0d820b03eee147b375803 | 7777242af1052015ecd32a3a7f7cc8b407f61a20 |
refs/heads/master | <repo_name>mobileboxlab/mobilebox-cloud-tutorial<file_sep>/src/test/java/com/mobilebox/appium/test/AppTests.java
package com.mobilebox.appium.test;
import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import com.mobilebox.appium.screens.AddClock;
import com.mobilebox... | 7dba83e4fcd302e9d368a6cb4ff80b8817890a79 | [
"Markdown",
"Java"
] | 5 | Java | mobileboxlab/mobilebox-cloud-tutorial | cfc27de058159c3a937071910e50c477431391d0 | 4655a7e30f99e55a7f57c11b6dc49327b6335791 |
refs/heads/master | <file_sep>import { Observable, Subscription } from 'rxjs';
import { HomeComponent } from './components/home/home.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ObservableComponent } from './components/observable/observable.component';
const ... | 6f12c6e14d6a99e1bc38a033ccd8fc9c7b3d90c2 | [
"TypeScript"
] | 2 | TypeScript | silviolimeira/angular-electron | 6712d1abc69e90981fde7fc1eb5e986c4bf74cf6 | 7a4ad9e6f55815f51640d15550234374da71d760 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.