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>// Question: https://www.hackerrank.com/challenges/bitwise-operators-in-c/problem
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
//Complete the following function.
void calculate_the_maximum(int n, int k) {
int i, j, x, y, z, max1 = 0, max2 = 0, max3 = 0;
for(i = 1; i ... | 179367a1e6d4a84dfee96fb7e43075cb3af5ae5d | [
"C"
] | 10 | C | Mohamed-Razan/Hackerrank-C | aae8287eb281213d2711c9a3c44fabb87b853416 | 5756eb18d07d36b7c3ea7a3ee35955ae805f917f |
refs/heads/main | <repo_name>kopn9k/trucking-mc<file_sep>/user/src/main/java/com/po/trucking/user/model/Carrier.java
package com.po.trucking.user.model;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Entity;
@Getter
@Setter
@NoArgsConstructor
public class Carrier {
private L... | f977b661e9851ef4e9102684b01b93cad09fb49a | [
"Markdown",
"Java",
"INI"
] | 31 | Java | kopn9k/trucking-mc | f227880d6f97cf61fd5d2814ff6197184a3c97ec | 6df93840db2ccca5aa14a049fb259b5942b57da5 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Fri Jan 16 10:34:51 2015
@author: efourrier
Purpose: This module provide some examples of beautiful python code and
some recipes.
"""
#########################################################
# Zen of Python
#########################################################... | 8a1b8440b519e5af4f85b971b8236882860e8579 | [
"Python"
] | 1 | Python | ericfourrier/beautiful-python | 922cb7ddb8c6ac5442388d6c8f4659fa69e47ad0 | 73e57b32c704b4b53491a98acb9478c20872c103 |
refs/heads/master | <repo_name>4ndreas/HyperLightControl<file_sep>/test2.py
# msg = "new test"
# print(msg)
# msg += " bla"
# print(msg)
import pybullet_utils.bullet_client as bc
import pybullet as p
import pybullet
import pybullet_data
# #can also connect using different modes, GUI, SHARED_MEMORY, TCP, UDP, SHARED_MEMORY_SERVER, GUI... | 81534758087c3a03b504e3bae727c905c1dd6086 | [
"Markdown",
"Python"
] | 21 | Python | 4ndreas/HyperLightControl | 33eeb3e94f80a3af8e6cf2329121ef63ba74bab1 | a7e6c501dcfd424d877bc2813c7f0db9070e0b97 |
refs/heads/master | <file_sep># automate /unfinished
A Windows automation engine handing out automation power to Lua scripts.
## Features
* Lua scripting
* Read process' memory
* Sends key strokes and mouse actions **even when the window is minimized**!
## Example
```
findWindow("Chrome", 3)
leftClick(20, 20)
```
Switches to the first t... | 613f8136e24ea655ae86cd7b39b8dfd840643224 | [
"Markdown",
"C++"
] | 2 | Markdown | zippoxer/automate | 25ad45c53548660b8ee4f39006510b4cdfe02f58 | f5abb0a598323f7ce1c4e2e8e31cbea04904ded0 |
refs/heads/master | <file_sep>package asteroids.fundamentals.blend;
import java.awt.CompositeContext;
import java.awt.image.Raster;
import java.awt.image.WritableRaster;
/**
*
* @author nilsg
*/
class MultiplyBlendingContext implements CompositeContext
{
@Override
public void compose(Raster src, Raster dstIn, Writa... | cf155c2051a5992020d4e5fb8b1caeaebc80cf23 | [
"Markdown",
"Java"
] | 20 | Java | Raildex/Asteroids | 27bef35942122886bc0fef54b744351c194105db | e0c1f8df14d9b494a308815e8010249a446595ee |
refs/heads/master | <file_sep>import axios from 'axios';
import * as types from 'src/store/ducks/wp-api/types';
import * as actions from 'src/store/ducks/wp-api/actions';
/**
* WordPress REST API middleware.
*/
const middleware = store => next => (action) => {
switch (action.type) {
/**
* FETCH - retrieve SPA/homepage relev... | 21a97c222becba84a911ee67e7c27ef4b51e03e2 | [
"JavaScript",
"PHP",
"YAML",
"Markdown"
] | 8 | JavaScript | virgo-coop/website | 9d757ae8cde1c38ebff831cd37f3cd08fc012ead | fd99cb3622f706073435e0768ee72383fe68102d |
refs/heads/master | <file_sep>import {combineReducers} from 'redux'
import header from './header'
import contentList from './contentList'
let reducer = combineReducers({
header,
contentList
})
export default reducer<file_sep>import * as TYPES from '../action-Type'
import {queryOrderData} from '../../../../api/order'
import {CH... | d1bc1ee72fb64faf3d75db22b5619f61cf1a6e7e | [
"JavaScript"
] | 38 | JavaScript | Alicevia/meituan | d3f8323c61f8e05e0ae68e5c478006ce010538ea | f18f6a389a07f38c44094e3cbe6fcc6f99f337d2 |
refs/heads/master | <file_sep>import React from 'react';
import ReactDOM from 'react-dom';
import '../styles/Table.css';
class ControlPanel extends React.Component{
constructor(props) {
super(props);
this.state = {
};
}
activeModal(e) {
document.querySelector(".modal").classList.add("active");... | a0b989d189a08e36eb2937a6ab6f77951309b540 | [
"JavaScript"
] | 4 | JavaScript | TeamWalls/mdm-react-front1 | 62495d694e874ba7e4328b59a68b80d8622d8cd5 | fc30b17fee63cfce4d5538f4abcd664ec2997132 |
refs/heads/master | <repo_name>GautchAA/beejee.local<file_sep>/views/main_view.php
<div class="row align-items-center">
<div class="col">
<h1>Задачи</h1>
</div>
<?php if($data['countPages']): ?>
<div class="col-auto sort-block">
<div class="btn-group mr-2" role="group" aria-label="First group">
<?php foreach ($d... | ab80b0cd7f84b8358a10cf8d4638e4da04070e9b | [
"SQL",
"PHP"
] | 13 | PHP | GautchAA/beejee.local | 23d41727a7f652ebefc62d9b14338c13cda4770f | 3baca8bec7631fcea24d2568ea94ede30ec4132f |
refs/heads/master | <file_sep>package praktikum.pengolahan.citra.processors;
import javafx.scene.image.Image;
import javafx.scene.image.PixelWriter;
import javafx.scene.image.WritableImage;
import javafx.scene.paint.Color;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStre... | 1ad71661e9e009159d837aa35d09e368742c7aed | [
"Markdown",
"Java",
"Maven POM"
] | 10 | Java | khrlimam/Praktikum-Pengolahan-Citra | a4d10a0a6d0549bf09f0a4b8538153419a4f4f7b | 2cb6d41fd5697c4d70c108cbcf48b5f29d4be0c5 |
refs/heads/master | <repo_name>exlosir/WebServices<file_sep>/app/Http/Controllers/api/OrderUserController.php
<?php
namespace App\Http\Controllers\api;
use App\Order;
use App\OrderUser;
use App\Status;
use App\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Response;
class OrderUse... | f0059de717545272101f470bfbd46e45bfe20687 | [
"JavaScript",
"Markdown",
"PHP"
] | 33 | PHP | exlosir/WebServices | b69794193fd97f0cab5da77ba3c7688f8413fc20 | 2cbf6233c38d0d9e2827fe6104524d95aa53ba40 |
refs/heads/master | <file_sep><?php
require "./vendor/autoload.php";
class BaseModel
{
/**
* @var string Collection name
*/
protected $collectionName;
/**
* @var MongoDB\Client Connection
*/
protected $client;
/**
* @var DataBase MongoDB Database
*/
protected $db;
/**
* ... | 4478c0dfa3a1869d73226a253697bb34c0a62ada | [
"Markdown",
"PHP"
] | 8 | PHP | davicotico/Slim2-MongoDB-REST-Simple-CRUD | 426ebbc3a95766fa9641c3f893fabedc91675f6b | 956ac476839763e3c63eb285d82a1b0aea95c0ca |
refs/heads/master | <repo_name>vladutcoman/AngularDemo<file_sep>/01-ngrx-basics-start/src/app/auth/store/auth.reducers.ts
import * as AuthActions from './auth.actions'
import { SIGNIN, LOGOUT } from './auth.actions';
export interface State {
token: string,
authentificated: boolean
}
const initialState: State = {
token: null,
aut... | 8b65273b2a78c786e750b0d33724a32b38eb70c0 | [
"TypeScript"
] | 4 | TypeScript | vladutcoman/AngularDemo | 2c7787b2cb6cf7bbae130c5dc6884cba19e7276d | 336091aa4d39163bf9c8baa11a5af1e07e5ed791 |
refs/heads/master | <file_sep>class AddSettnigsToUsers < ActiveRecord::Migration
def change
add_column :users, :bg_color, :string
add_column :users, :lk_color, :string
end
end
<file_sep>class Post < ActiveRecord::Base
@@reply_to_regexp = /\A@([^\s]*)/
@@image_link = /.(gif|jpe?g|png)$/
@@youtube_link = /\A(https:)\/\/(www... | e761547fa33a01282a4ea6ee431870d75f16314c | [
"Markdown",
"Ruby"
] | 14 | Ruby | quantumInverter/aka_twitter | 835b7d55879b1723dce96c1a373f1fd68a035ad6 | 29e5aee1d281551df66a37261e1150fe45612265 |
refs/heads/master | <file_sep>let MyController = function ($scope) {
$scope.likeCount = 0;
$scope.word = 'likes';
$scope.likeClick = function () {
$scope.likeCount = $scope.likeCount + 1;
if ($scope.likeCount === 1) {
$scope.like = 'like';
} else {
$scope.like = 'likes';
}
};
};
MyController.$inject... | 1625ef85232bfc309c2c957fe00c846d26c05851 | [
"JavaScript"
] | 2 | JavaScript | JRob1991/Assignment-23 | 5ba7deb153f14ad3c9526291713b10b10f43ef38 | 8bd7da2984f19af37f514683ede4a25380dfcefd |
refs/heads/master | <repo_name>itunuworks/cohort-xx-day-1<file_sep>/README.md
# cohort-xx-day-1
<file_sep>/tests/oopTests.js
'use strict';
require('../apps/oop.js');
describe("Testing for OOP functionality in a hierachy of Classes, ", function(){
var boeing747 = new FixedWingAircraft('Gas Turbine', 'Wings', 4);
var bell204 = new Rotar... | 07b6fdc565fe41a005055426f661600125cf7f78 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | itunuworks/cohort-xx-day-1 | bee581278bf39ab765b15292fabc8b278a83a30c | 2a463169e7a8aad52939dfea0eae8eb73d51e57e |
refs/heads/master | <file_sep>desc 'This task sends the time report email'
task :send_email => :environment do
ReportMailer.report_email.deliver if Time.now.friday?
end
<file_sep>class ReportMailer < ActionMailer::Base
include JiraQuery
default from: '<EMAIL>'
default reply_to: '<EMAIL>'
def report_email
@start_of_week =... | 1ef24812cad36c134cc40fa34d59c0e888314c4b | [
"RDoc",
"Ruby"
] | 5 | Ruby | myarchin/time-reporter | c7c808b83147e45a6db14575c8cb5f327e2eeeab | 21af0a643b30af46c020cce04effc98ea6c538af |
refs/heads/master | <repo_name>vedatyrt/netcet<file_sep>/public/js/client.js
var userInput = null;
var window_focus = true;
var notificationStack = new Array;
var socket = io();
function handleResize() {
$("#chatdiv").height($(window).height() - ($("form").height() + 40));
}
function getUsername() {
while (!userInput) {
... | d42884c405a80f32617dee113366aaf39905b58a | [
"JavaScript"
] | 2 | JavaScript | vedatyrt/netcet | 6a528fca88bfaf540b8d6c495138be346d51c19f | 4700e7f589a0139b3d4a633ab2c76d77a4c1b27d |
refs/heads/master | <repo_name>channdara/chat_chat<file_sep>/app/src/main/java/com/mastertipsy/chat_chat/adapter/ChatRoomListAdapter.kt
package com.mastertipsy.chat_chat.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.Recy... | e121a4ea7ae5cb19fad4fac9764dba9e325c1004 | [
"Kotlin",
"Gradle"
] | 25 | Kotlin | channdara/chat_chat | 7d16d047197136085007f0daf3a01cbfd27574f2 | c17da7c85d06d05b270729f81baf8cb24bef73dd |
refs/heads/master | <file_sep>CREATE TABLE teams(
ID int primary key,
NAME VARCHAR(25),
RECENT_MATCH_POINTS int
);<file_sep><?php
include '../connection.php';
global $connect;
if (isset($_POST['t_s'])) {
# code...
$team_name = $_POST['team_name'];
$ti_query = "INSERT INTO teams(name) VALUES('$team_name');";
... | 3fc1ffb6d104ac01de8ab2029cf12759c9d93122 | [
"Markdown",
"SQL",
"PHP"
] | 12 | SQL | humblefool01/VPTS | 8d077f833014a67948e9101a3efc9402dbe6311b | caf9c70436758054ee7339b8f56460a8e7a0b11f |
refs/heads/master | <file_sep>#!/usr/bin/env python
# Name: <NAME>
# Student number: 11038926
"""
This script parses and processes the data from a csv file
"""
import csv
import pandas as pd
import numpy
import json
# Global constants
INPUT = "data.csv"
OUTPUT_FILE = "data.json"
YEAR = 1980
MEASURE = "KTOE"
def processing(file):
"""
... | 82a637d23a8b4d6deee6055a2fc4cb59580d7372 | [
"JavaScript",
"Python",
"Markdown"
] | 7 | Python | sofielohr/dataprocessing | 93732d40443fa8e8c05e0f0c9d177c06387a40f3 | e56864303f3fc6503b7ed190514714526654f45d |
refs/heads/master | <file_sep>package com.duruo.util;
/**
* Created by @Author tachai
* date 2018/8/10 15:05
*
* @Email <EMAIL>
*/
public class Contain {
public static boolean contain(String content,String core){
if(content.indexOf(core)!=-1){
return true;
}
return false;
}
public stati... | ec007bc0c6b9a4b1eb8169e45b6bcc4f6c10c57b | [
"HTML",
"Markdown",
"JavaScript",
"INI",
"Java",
"Python",
"PHP"
] | 141 | Java | langyangx/PIF | 03afee4d43eb7909806f6ceecbe419261087e171 | 74f1b234bf630c6d67e8a432247d77bbe89c6167 |
refs/heads/master | <repo_name>vaibhavmishra1/Software_engineering_project<file_sep>/account/forms.py
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django_countries.fields import CountryField
class SignUpForm(UserCreationForm):
email = forms.Char... | 6b80b13381a7a779249125237b82d5977f1503e8 | [
"Python"
] | 1 | Python | vaibhavmishra1/Software_engineering_project | 8e1df55fb55cc3792e0758493d2ac6f20efd13b2 | 170b01fa9cb3567b3873c629dff03c6afa83fbc9 |
refs/heads/master | <file_sep># [WIP] Car Racer
## Background
This interview question was part of a [HackerRank](https://www.hackerrank.com/)
screen. I spent the first 60 out of the allotted 120 minutes convinced there was
a mistake in the question and wondering whether I was going crazy, followed by
me calling my friend for help and re... | 1e0c6f0b8b900251adcf983527d402f5a77d9829 | [
"Markdown",
"C#"
] | 13 | Markdown | adyavanapalli/Interviews | 5b28e56f271dbf4bc4c8900d02e10b7bacf721d8 | 2da49361cf6ecb119352c70225caaed6c22ecc43 |
refs/heads/master | <repo_name>eduzera/magerecord<file_sep>/lib/magerecord/sale.rb
module MageRecord
class Sale < MagentoDatabase
self.table_name = :sales_flat_invoice_grid
belongs_to :order
end
end<file_sep>/lib/magerecord/order.rb
module MageRecord
class Order < MagentoDatabase
self.table_name = :sales_flat_order
... | 7e79400d16e77d9df1b6117cdcd2b7da287f86b4 | [
"Ruby"
] | 7 | Ruby | eduzera/magerecord | cd6613f6fdc835407e5a2caa6a1fac217a1cd9d5 | 7f8bf8a6214320765c54927327d253f1368e6944 |
refs/heads/main | <repo_name>rsoria21/Journal<file_sep>/app.js
//jshint esversion:6
const express = require("express");
const bodyParser = require("body-parser");
const ejs = require("ejs");
const _ = require("lodash");
const homeStartingContent = "Hey, wow so it my time to shine huh? Okay! Welcome, look around and explore. I hope you... | 55cf36246d0942949f1f234a668241a8ac3dc991 | [
"JavaScript"
] | 1 | JavaScript | rsoria21/Journal | 4eaaf04bb02af32f725d23c8ade2230e147f74ef | adebc4f6c153dc2b43ffc81226648bb8e31bf57e |
refs/heads/master | <file_sep># node-libuuid
## Description
A node C binding to the libuuid library's uuid_generate().
NOTE: The uuid returned is lowercased.
## Prerequisites
You must have libuuid installed on your machine.
In Ubuntu:
apt-get install uuid-dev
## Install
npm install libuuid
## Usage
var libuuid = require('l... | 1230efd609440372e7b4c8882f107870b819bf95 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | charlesdaniel/node-libuuid | 2d548a25d84a088768e3acd6413dd329748ac7ca | 4863d0451196cd30d4daea506533a2bed18c6b76 |
refs/heads/master | <repo_name>andremarasca/ProjetosGit<file_sep>/PilhaGenerica/Pilha.c
#include <stdio.h>
#include <stdlib.h>
#include "Pilha.h"
struct nodo
{
void *elemento;
Nodo *proximo;
};
//Cabecalhos estaticos das funcoes da pilha
// static pra evitar que sejam chamados
// sem ser por "orientacao objeto"
static void empi... | 87e8ba4eb07ad147f1893b47ae9cebdc3a5f45ca | [
"Markdown",
"C"
] | 8 | C | andremarasca/ProjetosGit | d16d882454b1a429e9abc6ac94109497977f44d1 | c0d95876136d00024187455cc09772f8a765d768 |
refs/heads/master | <repo_name>dhananjaysinghar/Spring-Async-with-Combine-Ops<file_sep>/src/main/java/com/test/TestController.java
package com.test;
import java.util.concurrent.CompletableFuture;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframewor... | 093b52c90f9a8b94eefd7c73a152f2f451c479bf | [
"Java",
"INI"
] | 3 | Java | dhananjaysinghar/Spring-Async-with-Combine-Ops | af8ea43fa332562c4a8908ff6c7846bd7bc78e2e | 92f2859b2d09767b6bbdd6babec6f2ce66cd6d60 |
refs/heads/master | <file_sep>from django import forms
from django.db.models import Q
from django.forms.widgets import CheckboxSelectMultiple
from django.utils.translation import gettext_lazy as _
from .models import Guest, Gift
class LoginForm(forms.Form):
error_msg = _('Nieprawidłowe hasło lub login')
username = forms.CharFie... | 8e332fe67b88ae19e053990cb7a962e98cd5d465 | [
"Markdown",
"Python",
"HTML",
"INI"
] | 29 | Python | pmiara/wedding | 3c857886422ef295c47ff88f61d32a8d9f17c7f3 | 509b393fe8d9a6c5f41751cb963f0ff0d4b72baf |
refs/heads/master | <file_sep>const Joi = require('joi');
const User = require('../models/User');
const bcrypt = require('bcrypt');
const validation = Joi.object({
password: Joi.string()
.pattern(new RegExp('^[a-zA-Z0-9]{3,30}$')),
});
exports.me_get = async (req, res) => {
try {
const user = await User.findById({_id: req... | 3642c67976783d226a3b2c1064761f5e76672ed2 | [
"JavaScript"
] | 9 | JavaScript | OlegKavun/truck_uber | c7c70d53fd16f47cc2327b95b1c097821b754e4d | 88761185af83321a60e51e3652d6696e96aff014 |
refs/heads/master | <file_sep>package uib.programacion2.arrays.ordenacion;
import java.io.IOException;
import java.util.Arrays;
/**
* Created by Tony on 26/4/17.
*/
public class Shell {
public static void main(String[] args) throws IOException {
int[] lista = {23, 234, 54, 434, 213, 54, 76, 23, 21, 13, 9, 2, 6, 3, 1};
... | 4569052a0f32f699194c252ddd7e0bce8cedd2fe | [
"Java"
] | 10 | Java | antoni-alvarez/UIB-Programacion2 | a6dfc387c5b26d5c4313022dfd9ef5412ebabead | 40f48294f4cef378c5716031cdb7552532dbdb28 |
refs/heads/master | <repo_name>danimoussalli/Clase01-JS<file_sep>/clase01-ejercicio3.js
// Pedir un texto mediante prompt, luego otro, concatenarlos y mostrarlo en un alert
var texto1 = prompt('Ingresa un texto');
var texto2 = prompt('Ingresa otro texto');
alert(texto1 + ' ' + texto2);
<file_sep>/clase01-ejercicio1.js
/*Pedir nombre... | 66a33e710c2e4af3bf31195829ef3b8546fbac64 | [
"JavaScript"
] | 2 | JavaScript | danimoussalli/Clase01-JS | fa7db695b60fe80b1e467d90b58da03878d4fb5b | b5bfbc6863a7a0c5961938739f9b78a3c886e309 |
refs/heads/master | <repo_name>vicziani/jtechlog-falling-gems<file_sep>/README.md
Falling Gems játék
==================
A Falling Gems egy egyszerű ügyességi és logikai játék.
Mavennel buildelhető, a letöltést követően az `mvn package` paranccsal
buildelhető, az elkészült jar állomány `java -jar jtechlog-falling-gems-1.0.0.jar`
paranc... | ba8f0315b16beab810ad10d6cc89137c1a8fde56 | [
"Markdown",
"Java"
] | 3 | Markdown | vicziani/jtechlog-falling-gems | 4ef549cc7bf5dd74466d4b6ce762faef383225e8 | c8a54429ee44c7065c917141985612e484766232 |
refs/heads/master | <repo_name>JeffreyMJohnson/Graphics<file_sep>/Rendering_Geometry/source/main.cpp
//#include "SolarSystemApp.h"
#include "RenderingGeometryApp.h"
void main()
{
//SolarSystemApp* app = new SolarSystemApp();
RenderingGeometryApp* app = new RenderingGeometryApp();
if (app->StartUp())
{
while (app->Update())
{
a... | 5fb9b8461b75ac3fbf97471b424ebd2c3b767451 | [
"Markdown",
"C",
"C++"
] | 19 | C++ | JeffreyMJohnson/Graphics | fed524574c11281a2f0afe21ac6cc9d521930951 | 11d7bed1a457b29b790d5f994a722cf46577f742 |
refs/heads/master | <file_sep>'use strict';
const {
utils: {
doOperationInQueue,
javascript: { getQueueId },
stringify,
},
constants: {
aws: { database: { tableNames: { BALANCES, WITHDRAWS } } }
}
} = require( '@bitcoin-api/full-stack-api-private' );
const getFeeData = require( './getFeeDa... | 49e5c1a0c5493802530495bbcf090fb534bd23ca | [
"JavaScript",
"TypeScript",
"Markdown",
"Shell"
] | 513 | JavaScript | bitcoin-api/bitcoin-api | a0b78735183f60606469b298ac6a752b5789fdbb | 5c6c1694b11dd3edff4c306b74258c4ecbb06c18 |
refs/heads/master | <repo_name>awloint/ys-volunteer<file_sep>/scripts/Notify.php
<?php
/**
* This script is the Notify Class
*
* PHP version 7.2
*
* @category Notification_Class
* @package Notification_Class
* @author <NAME>,ST <<EMAIL>>
* @license MIT https://opensource.org/licenses/MIT
* @link https://stbensonimoh.com
... | 9e7992898168c829098acd02fda5acbf60857f79 | [
"PHP"
] | 3 | PHP | awloint/ys-volunteer | 86ea0c9a0564410edcb4db96e70aaaa7fb8cdc73 | 01c584a173385c79f923e430e6c03928dcc46dcb |
refs/heads/master | <repo_name>anagrahovac/oisisi_studentskasluzba<file_sep>/StudentskaSluzba/src/view/TablePredmetiProfesora.java
package view;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.table.Tab... | d27a4ac1aa0adeb060a083eb61f5ec65cf9b921e | [
"Markdown",
"Java"
] | 13 | Java | anagrahovac/oisisi_studentskasluzba | 45e01fab9b4d7529e887594cbad90ea0b39a74e5 | 13683b100f140a1c3caad65c20bde8071b173732 |
refs/heads/master | <file_sep>package com.bl.censusanalyser;
import com.opencsv.bean.CsvToBean;
import com.opencsv.bean.CsvToBeanBuilder;
import java.io.IOException;
import java.io.Reader;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Iterator;
public class CensusAnalyzer {
public int loadIndiaCensusData... | bcd8a72f2c68abab6f19a68106a17a019920c80b | [
"Java"
] | 2 | Java | kalevishal/IndainCensusAnalyser | c55e65df8edc0dce6e678e4be477bc7f039abced | 10529aeffc6a5b0009ddd9659ad46abaf9e2c4e1 |
refs/heads/master | <repo_name>ashokios/TestingRepo<file_sep>/Registration/Modal/ShareMessageHeader.h
//
// ShareMessageHeader.h
// VTLogin
//
// Created by <NAME> on 17/04/14.
// Copyright (c) 2014 valvirt. All rights reserved.
//
#ifndef VTLogin_ShareMessageHeader_h
#define VTLogin_ShareMessageHeader_h
#define SHARE_FB_MESSAGE ... | 025ca4f674e883d686736d25ec804c38f451172a | [
"C"
] | 2 | C | ashokios/TestingRepo | 09c369f5155600fa45fa7549896cafbb52b22012 | ad2a4f7abbba547cfad716ed00617fd2bb5db8da |
refs/heads/master | <file_sep>interface RootState {
inc: IncomeState,
exp: ExpensesState,
}
interface IncomeState {
salary: number,
married: boolean,
taxRate: number,
state: string,
deductions: number,
stdDeduct: boolean,
retireContributions: number,
retireRate: number,
retireRateOf: number,
netInco... | 035b0f4049e9af4f18850eacf5e9644f065d3d2e | [
"TypeScript"
] | 1 | TypeScript | Teesh/Personal_Finance_App | 58f619784a9a7359ebb14b1f20d5f3e48ec8141c | acea437f64bb151e5878c9c10c7c659cbf46c56b |
refs/heads/master | <repo_name>katlarusse/KatLivraison<file_sep>/src/main/java/org/formation/jsf/validator/EmailValidator.java
package org.formation.jsf.validator;
import java.util.ResourceBundle;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.... | 8108a56bcc82e4ef7983ca692efe6f2408c6aabd | [
"Java",
"INI"
] | 3 | Java | katlarusse/KatLivraison | d8c7f8382193212b2755df275fa00911d5c41a57 | f793df3c8b357d5ef0d2d90fd79d7e212f86b4c7 |
refs/heads/master | <file_sep>const express = require('express');
const { MongoClient } = require('mongodb');
const secrets = require('./secrets');
const app = express();
const uri = `mongodb+srv://${secrets.username}:${secrets.password}@${secrets.server}/test?retryWrites=true&w=majority`;
const client = MongoClient(uri);
function getR... | 803c1ae5d19561b2ba3d7433d9f3c7b4cab708ac | [
"JavaScript"
] | 1 | JavaScript | zclewell/pokeServer | 3823e83f1ba5afd0198cb5feb33b941708638ef8 | 98aae21f7d404522cbadda1da324216256dce006 |
refs/heads/main | <file_sep><?php session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Practising files and forms</title>
</head>
<body>
<center>
<?php
if (isset($_SESSION['msg'])) {
echo "<h3>".$_SESSION['msg']."</h3>";
}?>
<h3>Reset Password</h3>
<form action="processor.php" method="POST">
<input ty... | 1e94e74fa7c1105d2fd5b11836842dbf669a5068 | [
"PHP"
] | 4 | PHP | Ivumar11/FormsAndFiles | e99fbbe049c8238bdbf89687040d0b885fd78513 | 72328d9d4b6ebfbb161bde93b9890f11644d679f |
refs/heads/master | <repo_name>PeterXUYAOHAI/SimPointSite<file_sep>/FastLSH/views.py
import subprocess
from django.http import HttpResponse
from django.shortcuts import render, render_to_response
import time
import os
from django import forms
# Create your views here.
def index(request):
return render(request, 'FastLSH/home.html')... | dbb51e1bbd33a8f6b4180ffc73cf426a530f88a4 | [
"Python"
] | 3 | Python | PeterXUYAOHAI/SimPointSite | e9a8fd6b88918560270f3cedd4c7d8984cbd1192 | fd54a9ff0246c4a2cd77abfc9b06859ab50b4caf |
refs/heads/master | <file_sep>export * from './lib/shared-tmo-styles.module';
<file_sep># TMO Styles - Material Theme
There are 2 variations of this theme - default (light) and dark. To import the theme into your application styles, first import the core styles, then one or both themes.
## Default (light) theme only
```
// Material the... | a47c19fa877265ae60fbfae550c8c102e87031eb | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | tmalbonph/tmo-styles | 72c0e3c346925cbeda5cf9114236e236caed8219 | f29839d1123347e3f11dd885cb62b402dc81cef6 |
refs/heads/master | <repo_name>claurent/CharlesPersonalProject<file_sep>/app/app.js
'use strict';
// Declare app level module which depends on views, and components
var myApp = angular.module('myApp', [
'ngRoute',
'myApp.version',
'ngResource'
]);
myApp.config(['$routeProvider', function($routeProvider) {
$routeProvider
... | 9ea5d390040d1d39491f51fe98112add50d84080 | [
"JavaScript"
] | 3 | JavaScript | claurent/CharlesPersonalProject | 4e4ae3e63f80c952fe9cd9ae0358be7cb4cd6ac5 | d403b707c1bfd8a10fa61d124aef6110cb90bdf1 |
refs/heads/master | <repo_name>AO15A1LM/laterna-magica<file_sep>/app/Http/Controllers/Admin/StudentController.php
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Redirect;
use Yajra\Datatables\Facades\Datatables;
use Illuminate\Http\Request;
use App\Models\Basegroup;
use App\... | ea43c66ce435f59c2de513cfb9bea3f3782ca0e7 | [
"Markdown",
"PHP",
"Shell"
] | 23 | PHP | AO15A1LM/laterna-magica | 26062f30cd166ff9679d1e769a6212e4b9773c3d | 4fb6d2af20557f77316a6d2047f035bb4880ca69 |
refs/heads/master | <repo_name>AFMS-Rowan-Software-Projects/Microservice-Project-Spring2020<file_sep>/ui/pages/_App.js
// import App from 'next/app'
import "../css/theme.scss"
import React from "react";
import fetch from "node-fetch";
const PROD_URL = "http://example"; // TODO: implement
const WEB_URL = process.env.NODE_ENV !== "producti... | eac786bbc3b657e3b194fa9ad48fc85b9e4e80a1 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | AFMS-Rowan-Software-Projects/Microservice-Project-Spring2020 | a87fa18930a1cda24ece4fd7ded2a3ef58c32628 | c73609854feead57f32a25e3d9c3b9e2e00de1ec |
refs/heads/master | <file_sep>//
// Created by JerryZhu on 2018/6/5.
//
#include "include/v8.h"
#ifndef V8DEMO_CONTEXTWRAPPER_H
#define V8DEMO_CONTEXTWRAPPER_H
#define OBJ_TEMPLATE(obj,isolate) Local<ObjectTemplate> obj = ObjectTemplate::New(isolate)
#define EXPOSE(obj,isolate, jsname, func) obj->Set(String::NewFromUtf8(isolate, jsname,... | 363c96ce0af9ea74cf99ec0fcac88fbcdfa87fa7 | [
"Markdown",
"C",
"JavaScript",
"C++"
] | 11 | C++ | monkey-jz/v8demo | b5af6ac268639b7e16a631b007bac2c3f6ac1d21 | ef4ff1453763bc701242ee3d60b0a61b56b48371 |
refs/heads/master | <repo_name>saurabhgupta050890/react-calculator<file_sep>/src/App.js
import React, { useState, useEffect } from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
let [expression, setExpression] = useState(0);
const clickHandler = (e, key) => {
let ex = expression;
console.log(ke... | 81c53829469d9ab1f5db40a1535b73afa780c820 | [
"JavaScript"
] | 1 | JavaScript | saurabhgupta050890/react-calculator | a15ab5284485fa75cbbf320a0bd070fef2d54be3 | 617c8d9df79c36022e8fc2266a4f109357abdfe4 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class FormProcessing extends Controller
{
/**
*Find the specific Ajax call
*
*@param Request $request
*@return Response
*/
public function process(Request $request)
{
$task = $request->task;
... | 2c99cfe891f7bad07b42f4229324fc63efd38ce4 | [
"JavaScript",
"PHP"
] | 3 | PHP | erik-montee/Developer-Challange | 73c8c3df12e69d7885b2dd70bb86a3779c37bc72 | 3545b293225998562ad9a31b8912ec6e32678dea |
refs/heads/master | <repo_name>svvay/KinoCMS<file_sep>/KinoCMS/migrations/0003_auto_20200417_1835.py
# Generated by Django 3.0.5 on 2020-04-17 15:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('KinoCMS', '0002_auto_20200417_1758'),
]... | 8610184b3fbae30cbb25cd7eba3bf1ef5085d069 | [
"Python"
] | 13 | Python | svvay/KinoCMS | 36da3f3cf1b91d7cd9340a7cbb72b6277e5b76a7 | fc034c5cfae89f527799352a73d81d8af0c50cf2 |
refs/heads/master | <repo_name>naudys15/place2Pay<file_sep>/tests/Feature/ExampleTest.php
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBasicTest()
... | 0c8939a7c91855becd3184e3aa49c60220b6f043 | [
"Markdown",
"PHP"
] | 3 | PHP | naudys15/place2Pay | b21d93225007f3113f663b8577f80ffe5a332b51 | 4675654b041d4c517714d41b61ef1a4e1b7c6328 |
refs/heads/master | <file_sep>using System;
namespace pp_laba5
{
class IndexValue
{
public int index;
public int value;
}
class Program
{
/*Составить программу, содержащую процедуру вычисления
значений выражений по заданным формулам (из 1 л.р.)*/
static double T1a... | b24b7db69d0dfd31ca807ffefb7a9f14fc7d0ec6 | [
"C#"
] | 1 | C# | SkSkreb/univer_pp_3-1 | 072a952cd67135a0981d7376c376eaefa51d99fb | 67db3c5762c0b1fac0d510116c5de32524a5d678 |
refs/heads/main | <repo_name>shka2001/shka2001.github.io<file_sep>/app/js/index.js
const hamburger = document.querySelector(
".header .nav-bar .nav-list .hamburger"
);
const mobile_menu = document.querySelector(".header .nav-bar .nav-list ul");
const menu_item = document.querySelectorAll(
".header .nav-bar .nav-list ul li a"
);
cons... | 38e9183d7c2e123cbd75b1e80f52c6f1bce66ebe | [
"JavaScript"
] | 1 | JavaScript | shka2001/shka2001.github.io | 71ae56a90a63c856322228e8d3e7046941ce4cf8 | ff2d440e368fc0b122718dc241874136d55500ca |
refs/heads/master | <repo_name>VinayagamD/hibernatetut<file_sep>/src/main/java/com/vinay/hibernatetut/PrimaryKeyDemo.java
/**
*
*/
package com.vinay.hibernatetut;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import model.Student;
/**
* @author Dell
*
*/
public class Pr... | 8939bdbc85ab61d0a5d79ce7c2e25054ffc27a1b | [
"Java"
] | 1 | Java | VinayagamD/hibernatetut | b7939470fd87069443d72b7d90cbdb2b34077977 | dea9f0bbb680147993dcf513c74962d05a8ebe36 |
refs/heads/master | <file_sep><?php
/**
* Description of Booking
*
* @author richard_lovell
*/
class Booking {
private $id;
private $flightName;
private $flightDate;
private $dateCreated;
private $status;
private $userId;
function getId() {
return $this->id;
}
funct... | 50d3e4adb530171038a5479ed50547484d843c95 | [
"PHP"
] | 2 | PHP | hana-wawatai/fttl-crud-master | dc8d1562eaa156bae02d3ab53064b44c9c845d31 | 2cdc27bea31aafb30ac2b16782c244925fe97538 |
refs/heads/master | <repo_name>projet-drone/test-web-socket<file_sep>/src/WebAppsManager.js
var WebApp = require('./model/WebApp')
var {ClientHandler, clientTypes} = require('./ClientHandler')
class WebAppManager {
webApps = []
init(){
let webAppClients = ClientHandler.getinstance().findClientByType(clientTypes... | 8beda56c326971c8b4371401bb7cc5ab5397c6a6 | [
"JavaScript",
"C++"
] | 16 | JavaScript | projet-drone/test-web-socket | d1be03ca6502b0132f423be6bdaa897b1c752035 | 1970c93b60fb5211937a94a929603ed6c5767728 |
refs/heads/master | <file_sep>#!/bin/bash
rustc lib.rs
rustc example.rs -L .
rustc channelbench.rs -L .
rustc syncchannelbench.rs -L .
rustc serverexample.rs -L .<file_sep>// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
/... | d5f46f80581cb638a762b1c8af38970d8470c6c1 | [
"Markdown",
"Rust",
"Shell"
] | 14 | Shell | cambricorp/revbio | 8b8e27a1eb8e40c13cb7c158b40a0bde60c6f0a2 | 198e20eac9e8e74ca9047c67eb5e0e0949380e32 |
refs/heads/master | <file_sep>#!/bin/bash
git_mode=$1
echo ""
echo "setup the development environment"
set -e
repos=$(curl https://api.github.com/orgs/aztfmod/repos)
setup_folder () {
folder=$1
if [ -d ${folder} ]; then
echo "${folder} folder exists"
else
mkdir ${folder}
echo "${folder} folder creat... | 98ec5ac18aa134af0507281e0ad622748341f7d8 | [
"Dockerfile",
"Shell"
] | 2 | Shell | theG1/rover | 962aedaa5bcc05376e529a7ba0b910c375077807 | 5ff18df3c685c35ebf0713ba6c2fd343eb316817 |
refs/heads/master | <repo_name>mikelietz/tag_url_cleaner<file_sep>/tag_url_cleaner.plugin.php
<?php
class TagURLCleaner extends Plugin
{
public function filter_rewrite_rules( $rules )
{
foreach( $rules as $rule ) {
if( $rule->name == 'display_entries_by_tag' ) {
$rule->parse_regex = '#^(?P<tag>[^/]+)(?:/page/(?P<page>\d+))?/?$#... | a99a628f937132f90bf650965aa8dbc61435cd87 | [
"PHP"
] | 1 | PHP | mikelietz/tag_url_cleaner | 278ce3e4f20f51f0f0610283dc83b60727772d41 | 674405fbb8aef9ba27ecb240dc3bf30997415681 |
refs/heads/master | <repo_name>emanuelemazza/cloudily<file_sep>/README.rst
Cloudily - automatically visualize your EC2 infrastructure
==========================================================
.. image:: http://loads.pickle.me.uk/static/images/cloudily.png
Getting Started
---------------
You'll need `graphviz <http://www.graphviz.org/>... | f738290bb735469790145ccf73fcb526408d1df7 | [
"Python",
"reStructuredText",
"Shell"
] | 3 | reStructuredText | emanuelemazza/cloudily | 8f6c7cca4e4d7b16d17a1fdf2a8b6a644dd4cfb9 | 64667cbde3287d46e8681dbf04cb6577514b9204 |
refs/heads/master | <file_sep>//! Room buffer module.
//!
//! This module implements creates buffers that processes and prints out all the
//! user visible events
//!
//! Care should be taken when handling events. Events can be state events or
//! timeline events and they can come from a sync response or from a room
//! messages response.... | 4a94e0b0a8e67a44df8301d96436ea07e12995ac | [
"Rust"
] | 2 | Rust | goulov/weechat-matrix-rs | 4baa1e6134da3f965350e3f980056c038dfce04b | bd717aa5feaeed9f8bf1a6d8e1365e2ba70ae24d |
refs/heads/main | <file_sep>"""
This file contains example output as displayed by running
'numerical_examples_code.py' with gpu_installed = True
and complete_version = True.
"""
# Table: Simulation CPU times
# \begin{tabular}{lrrrrr}
# \hline
# & exact & ea & ma & gwa & gpu \\
# \h... | f161beabc740cc15643ed931b1ea3fe0f158bfa2 | [
"Markdown",
"Python"
] | 5 | Python | bpatch/birdepy_examples | 09736f72574ed802a101b3dd062acd5dc24ada52 | ee5570e24b84bc45b8d1a32337b8b6312974ec24 |
refs/heads/master | <repo_name>vladvventura/MultiPoly<file_sep>/MultiPoly.cpp
//<NAME>-- I didn't put this section in until part 2
//Part 3: Multiply and Power
//Date Last Modified: 12/10/2013
//Class: CS435
//Notes: The fact that I wasn't deleting nodes in insertwAdd when two terms were opposites
//e.g. -10xy +10xy needs to cancel out wa... | b464733e0c86d40181f90df0003f0950ed14f764 | [
"Markdown",
"C++"
] | 2 | C++ | vladvventura/MultiPoly | f12d44648354c34e29a7037a5410b18b1ad47c8a | f9aff32fdbb8df20eea0b66f3efe0a37d99a1aa7 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { NotificationsService } from 'angular2-notifications';
import { Idea, IdeaService } from '../shared';
@Component({
selector: 'app-ideas',
templateUrl: './ideas.component.html',
styleUrls: ['./ideas.com... | e095671f3f4371fc3692bbb8e699028cd5000c3a | [
"TypeScript"
] | 52 | TypeScript | Coppia/saas-web | d2dec7b0690ec62f920152c658bb23310753aa8c | d74533239c49de14e8d1cb031e274c8cbe157444 |
refs/heads/master | <file_sep>package games.keno;
import java.util.ArrayList;
import java.util.Scanner;
public class KenoCLI
{
private final static int MAX_CARDS = 20;
static Keno keno;
public static void main(String[] args)
{
keno = new Keno(1000);
Scanner kb = new Scanner(System.in);
getCards(kb);
getBets(kb);
... | a6145ef995ab1dae7b71a71d9bca2d5f6a7feae7 | [
"Java"
] | 2 | Java | KevinYoung18/Keno | f7c750772f1ffbe0127949912cf826a2a8fd40ed | 7eb3f4cc0fa2d64f72770957a8b73c3a968799ad |
refs/heads/master | <repo_name>medstudioinc/Android-PathShapeView<file_sep>/app/src/main/java/demo/shape/path/view/samples/ShapeManager.kt
package demo.shape.path.view.samples
import android.graphics.Color
import android.graphics.PointF
import demo.shape.path.view.R
import shape.path.view.*
import shape.path.view.fill.provider.*
import s... | bfd537cf307b8e2c79d95c6275b4fa29b6ee8e1d | [
"Markdown",
"Kotlin",
"Gradle"
] | 37 | Kotlin | medstudioinc/Android-PathShapeView | 54433597c277191df263586884242140a5e665cd | 478603f11b29e8ff111cec4b61bd4f0e9d7b5f93 |
refs/heads/master | <file_sep># Codemod for removing `debugger;`
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
Simplest [`codemod`](https://github.com/facebook/jscodeshift) you can think of,
but is still handy: Remove all `debugger;` statements from your code.
You could also do a regex replace for thi... | fe9d8e235009f0cf9725f7a6b4f2b5308aaef9b5 | [
"Markdown",
"JSON",
"JavaScript"
] | 4 | Markdown | mikaelbr/rm-debugger | 89a29be7db68c9fef0123184ae79aaef1af16ab1 | 9e6e6c2542ff62105b9ac23b3b8e17c6e51edda1 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import {
View, StyleSheet, Text, Image,
TouchableOpacity, TextInput, Alert, Modal,
ScrollView, KeyboardAvoidingView} from 'react-native';
import {Avatar, Icon} from 'react-native-elements';
import * as ImagePicker from 'expo-image-picker';
import { RFValue } fro... | b0b53c5ab01f83d089b5ccd72f8f7d5ada6fe358 | [
"JavaScript"
] | 1 | JavaScript | advaitsharma223/curiQlem-Part1 | 403a6f5ca8fa2185dfdf9655ca242ed1e0dae3ff | 19bf6d3360591e7df3e12d2d84ed66b0ad83a33b |
refs/heads/master | <file_sep>#include "stdafx.h"
#include "Random.hpp"
#include "VectorWriter.hpp"
LPCTSTR destPath = LR"(C:\Temp\2remove\simd)";
// Make them 1GB files
constexpr size_t scalarsPerTest = 1024 * 1024 * 256;
template<class TFunc, class TVec = __m256>
static inline void generate( LPCTSTR name )
{
CPath path;
path.m_strP... | 1b7dcbf50da96d58e9e13bd5eb9dac2b9113d364 | [
"C",
"C++"
] | 7 | C++ | Const-me/SimdPrecisionTest | 7b009df3061e78781e9860dbf48a8cb20d7ec609 | 4119097663a7e840e1c5fa4b452d109b43a9ca43 |
refs/heads/master | <repo_name>inmagination/buscaminas<file_sep>/Buscaminas/js/cronometro.js
// variable global que almacena el tiempo transcurrido
var time;
// función llamada cuando se cree el span del encabezado que contendrá el cronómetro
function cronometro(){
// inicializamos los minutos y segundos
var minutos = 0;
v... | 5306475dcf955f02242b0a03867c3318ca459b8d | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | inmagination/buscaminas | 69aff2ccd15ea0cd0d661442283a5030acd7f88c | 79f176634504e964ed4d65a6274968d22fd44978 |
refs/heads/master | <file_sep>class AddColumnManageTableGames < ActiveRecord::Migration
def up
add_column :games, :manager, :string
end
def down
end
end
<file_sep>class Player < ActiveRecord::Base
resourcify
belongs_to :game
belongs_to :user
PLAYER_ROLE = ['don','mafia','sheriff','citizen'].freeze
PLAYER_TEAM = ['... | 0576a4d2b36d60ce90ba348643d03417a22fc8ca | [
"Markdown",
"Ruby",
"Shell"
] | 29 | Ruby | yurakuzh/mafia | 9ab037d1ac8184d698f0b5d7f1437f6e70e0799f | faf3e02afd8b790ebb3a96925a1b51b07409ea3f |
refs/heads/main | <file_sep>function rollDice() {
var p1 = document.querySelector(".p-1 i")
var p2 = document.querySelector(".p-2 i")
var btn = document.querySelector(".btn")
var randomP1 = Math.floor((Math.random() * 6)) + 1
if (randomP1 === 1) {
p1.removeAttribute("class", "fas fa-dice-one")
p1.setAttribute("class"... | a583217a0d188a4d8a2e70316691f55ee212acb2 | [
"JavaScript"
] | 1 | JavaScript | mgajdo/dice-game | 57360f62107f516d27e0b0683498b9b43ca6828f | 4e01d74aed26f2bb9ce161de166479fe39d4b23f |
refs/heads/main | <repo_name>tfrc19/Laravel_Sintaxis<file_sep>/app/Models/Cliente.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Cliente extends Model
{
use HasFactory;
protected $fillable=
(
["nombre",
"apellido"
... | 2071b70f8ae6966ccbc5473f3c96b7ac3a329a15 | [
"JavaScript",
"PHP"
] | 4 | PHP | tfrc19/Laravel_Sintaxis | 83eb2f1444f7af21c27bef99470a1bc086da49d6 | 3f9fa571ff5707e41b5383994712ea6240842daf |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace TestRelay
{
public class Progra... | d2edcb4efb9608d69f792de6f3c42c1d25d54332 | [
"C#"
] | 6 | C# | jmblakl/Test-Relay-AspNet | f6abf2fa2d01cad0bbf751c9038a22fe990d2b58 | 8d4173ba79243d215fc0d223abf81d7a7356e674 |
refs/heads/master | <file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import matplotlib.pyplot as plt
import math
import time
import numpy
import sys
import os
def fix_lat_long(lat,long,latdir,longdir):
#reformat latitude
print 'old lat ', lat
lat = ''.join(lat.split('.'))
if latdir == 'S':
la... | 4f4387b98130d85d621c8e264cd6744a71c3eb78 | [
"JavaScript",
"Python",
"CMake",
"Shell"
] | 26 | Python | bengineer1981/ASTRA | aad9d97d09cb2797e8030edf65dc39939780df40 | ec3525e28cccc19055bad3f64840aa060db49145 |
refs/heads/master | <file_sep>
/*
* Test vector generator for SCP03 KDF
*
* Source code:
* Derived from GlobalPlatformPro by <NAME>, <EMAIL>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
... | 86f51baa51747f76fe2169f4bf289299b325e93b | [
"Java"
] | 1 | Java | blaufish/scp03_kdf_testvectors | e6c5b93fc403bce69dff1743a5237eadbe4e6d7b | 1f70ada36a7986a4eda8e135e30215bf989eb78a |
refs/heads/master | <file_sep># Bijhouden van bezoekersaantallen in een array
De bezoekersaantallen worden per dag van de week bijgehouden.
De gebruiker geeft een datum en een bezoekersaantal in. Dit wordt dan opgeteld bij de cijfers tot dan toe.

## Bijhouden gegevens
### Gegevens pe... | 9e07b08f213b4e3725625047465b76ff398b0f65 | [
"Markdown",
"C#"
] | 2 | Markdown | KoenDJ/ST-2021-1-S1-A-H06-bezoekersaantallen-KoenDeJans-main | 507be74132e4d1c000e1cd400708057581fb0644 | 445feb10029a2ff73ecdd425c3737cfdda71e7b6 |
refs/heads/master | <file_sep>import React from "react";
import styled from "styled-components";
import Lottie from "react-lottie";
import animationData from "../assets/sat.json";
import { Button, DisplayText } from "@shopify/polaris";
import { Link } from "react-router-dom";
const Home = () => {
const defaultOptions = {
loop: true,
... | 52fdffcc8306cbff358a87696c2f252e59c13221 | [
"JavaScript"
] | 2 | JavaScript | preetecool/spacetagram | 8c5676adc7f385ad19c52aa2157576805abc7dab | 950179339433e27423f93cdd064b9096aa04092b |
refs/heads/master | <file_sep>from random import uniform
from time import sleep
import sys
def kms():
typing("You continue walking and out of nowhere, a bobcat jumps out at you and kills you as you have no weapon to defend yourself\n")
typing("GAME OVER\n")
startover()
def go_to_woods():
typing("You yell but nobody hear... | a69bc14c2777d2aa053881a11b0b1cb5fcb4ecff | [
"Python"
] | 4 | Python | warhawk7927/Buffalo_Creek | b7505c0c0c936ff88c14d8e9384b275dabdf757b | 7d6bba30d75a43cf7df6494f7f8260a108804911 |
refs/heads/master | <repo_name>CaryAndo/CS380Project5<file_sep>/src/UdpClient.java
import java.io.*;
import java.net.Socket;
/**
* @author <NAME>
*/
public class UdpClient {
public static void main(String[] args) {
class Listener implements Runnable {
Socket socket;
public Listener(Socket socket... | a4fdb01b4b83aa2f9ec56cf27264ffc0caecfc43 | [
"Java"
] | 1 | Java | CaryAndo/CS380Project5 | 0b7b421f5e83d0eec7251a6fd68736a1bd2ea5d7 | eb95ede81deeabb6027496bf421ebc268a48925d |
refs/heads/master | <repo_name>cgomes97/iframesStuff<file_sep>/script_eTransfer.js
window.onload = function (e) {
var pageTitle = document.querySelector("#PageTitle").textContent;
//Show Print Button on conclusion screen
function showPrintButton() {
var print = document.querySelectorAll(".topic");
for (var i = 0; i < print.lengt... | dae08f89ab04b52dbe6478f584e410241bd7f813 | [
"JavaScript"
] | 1 | JavaScript | cgomes97/iframesStuff | 9d215fbaaf9bac9e3a6c4851506aa1bd5c6833e5 | b4bbf05b7f398ca53302674be5b0affb9b32bebd |
refs/heads/main | <repo_name>albertico/hub-profile<file_sep>/lib/hub/profile.rb
# frozen_string_literal: true
require "hub/profile/version"
require "hub/profile/cli"
<file_sep>/lib/hub/profile/util.rb
# frozen_string_literal: true
require "hub/profile/credentials"
require "hub/profile/host"
require "toml-rb"
require "safe_yaml"
modul... | aab15734a3caf739ba8e3cfce012232bad6453b8 | [
"Ruby"
] | 8 | Ruby | albertico/hub-profile | 0a712e66e44826ec4f80e12fbfa8dce82451b9c0 | 7ee9e520e1ea53ea56d703b994ed5b13bc51a28c |
refs/heads/master | <repo_name>PofyTeam/PofyTools<file_sep>/Data/Proficiency.cs
using System.Collections.Generic;
using UnityEngine;
namespace PofyTools
{
[System.Serializable]
public class ProficiencyDefinition : Definition
{
public ProficiencyDefinition(string id)
{
this.id = id;
}
... | b27c0a12a729060b2289bd91db55f13e0cb9e99e | [
"Markdown",
"C#"
] | 47 | C# | PofyTeam/PofyTools | c1fdd59ab8766eed34b8adbe0c709148afd6a3b9 | 115d5ddf7204a900547b9b067f8fbbec3cd0e6d9 |
refs/heads/master | <file_sep>package com.example.user.acmebots_alfa;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class curso extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInst... | d2907a0b7c2fa16a6f662a7b3448a2061082ee6b | [
"Java"
] | 3 | Java | edwinsaavedra99/B2 | 3187bf18e6ce8727b79416c780f82a334ea59e7a | 7128c606db13931d03d547df5e946b89f16fee42 |
refs/heads/master | <file_sep>package com.sc.feign.controller;
import java.io.ByteArrayOutputStream;
import java.nio.charset.Charset;
import java.util.Collection;
import java.util.Map;
import java.util.zip.GZIPOutputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.netflix.feign.... | e72a46f1e8507bde694cb7c3cd8e656ef0c0e73c | [
"SQL",
"Markdown",
"Maven POM",
"INI",
"Java"
] | 45 | Java | zhangdberic/springcloud-old | 678407deeaf9af122c8544b4299f3d2754efe6e9 | 13e3b1958b88bcbfeee801c813d442ae39893842 |
refs/heads/main | <file_sep>source 'https://rubygems.org'
gem 'vertebrae', '> 0.5'
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem 'pry', '~> 0.10'
gem 'pry-byebug', '~> 3.4'
gem 'webmock', '~> 3.0', '>= 3.0.1'
gem 'rspec', '~> 3.6'
gem 'rd... | d1a40061e2144f87d23278a7c9ef13d1b48a1973 | [
"Markdown",
"Ruby"
] | 10 | Ruby | controlshift/identity-api-client | 91c3a212e09a9b0ca0d90a483795d30bed0ad853 | 3d2986ffe4591ab6be707ab3928b51edcf26bd64 |
refs/heads/master | <file_sep><!DOCTYPE html>
<!--
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.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="css/ta... | c5decc62259605b9f288236121140f511ec9b9c8 | [
"JavaScript",
"PHP"
] | 16 | PHP | pabloherreram1/mis_perris | 3c629a36ee87c5e5f5a9d1e7b1f374f84d88fbda | 65caeae3ade0ea8c19395e0566fce5b07f7798f3 |
refs/heads/master | <repo_name>Ku6epnec/StrategyCourse<file_sep>/Assets/Scripts/Abstractions/IUnitProducer.cs
public interface IUnitProducer
{
void ProduceUnit();
}
<file_sep>/Assets/Scripts/UserControlSystem/ProduceUnitCommand.cs
using UnityEngine;
public class ProduceUnitCommand : IProduceUnitCommand
{
public GameObject UnitPrefab =>... | 0423dbc05b53aba43eebf34c56fbb4172bcc47fd | [
"C#"
] | 4 | C# | Ku6epnec/StrategyCourse | 0db5e0b352d08b5395912dc2128d41bc5a1c38e6 | 5f56084c309ac1c35891a466f1932570641abf26 |
refs/heads/master | <file_sep>package com.unitec.primeraapp
import android.media.MediaPlayer
import android.os.Bundle
import com.google.android.material.snackbar.Snackbar
import androidx.appcompat.app.AppCompatActivity;
import kotlinx.android.synthetic.main.activity_bienvenido.*
import kotlinx.android.synthetic.main.content_bienvenido.*... | 9a92a6434592ae8cadb00849f37165beee146f49 | [
"Kotlin"
] | 2 | Kotlin | VivianaYaney/PrimeraApp | 57f0722dde03b92dcb55cfb0f915a0d17e37a54c | 4839831e03ba4107948492433f5af3cae7ba1de8 |
refs/heads/master | <repo_name>pdn4kd/isochoric-expander<file_sep>/recovery_plots_n.py
import numpy as np
import matplotlib.pyplot as plt
stars = np.genfromtxt("planetfits_revised.csv", delimiter=",", names=True, dtype=None)
#nplanets = [(1,3), (1,4), (4,4)]
nplanets = [(1,6), (5,6), (5,5), (6,6)]
# iterate over: [5,e,f,n][n,p] fits, and... | f67e7ad64088e41a6515f8e35bcd029a1f0ed073 | [
"Markdown",
"Python"
] | 8 | Python | pdn4kd/isochoric-expander | 56bfdc3c7efb3a242ff4ae4c556d70bb7f171e5f | 4a536594ce880ff2d266ca02359cdb4d69f40203 |
refs/heads/master | <repo_name>mexpolk/dotfiles<file_sep>/README.md
```
/$$$$$$ /$$ /$$$$$$$ /$$ /$$$$$$ /$$ /$$
|_ $$_/ | $/ | $$__ $$ | $$ /$$__ $$|__/| $$
| $$ /$$ /$$ /$$$$$$ /$$$$$$$|_//$$$$$$$ | $$ \ $$ /$... | 82b297069df3f702025ccc2a248b9bf0a38ee459 | [
"Markdown",
"Shell"
] | 2 | Markdown | mexpolk/dotfiles | 4503d2ceee7b1ac0a9146cd7b782785b04b495c2 | aa53abf9b071e020664a104bf4cd0eaa2c186b83 |
refs/heads/master | <repo_name>tongbal/EvenChecker<file_sep>/EvenChecker/EvenChecker/EvenChecker.cpp
/*Write a program that asks the user to input an integer,
and tells the user whether the number is even or odd.
Write a function called isEven() that returns true if an integer passed to it is even.
Use the modulus operator to test whet... | 055decfa96c5de1d305cca5215f2126fcb8b85b3 | [
"C++"
] | 1 | C++ | tongbal/EvenChecker | 16785edeb4a0d0a5d21cf2a57f314142d370115b | 5b7bc54d50d72850ac53070331f3662619da6dd1 |
refs/heads/master | <repo_name>aleksei-f/homework<file_sep>/lab2/init_raid.sh
#!/usr/bin/env bash
mdadm --create --verbose /dev/md0 --level=10 -n 6 /dev/sd[b-g]
mkfs.ext4 /dev/md0
mkdir /mnt/raid
echo "/dev/md0 /mnt/raid ext4 defaults 0 2" >> /etc/fstab
mount -a | ed155e09e9434e7e5be80836a711667340d03b61 | [
"Shell"
] | 1 | Shell | aleksei-f/homework | 50bdec5cc11fa7bf6828f049200839c8690f947b | e54e14a97e49c4a5041912f358af35aff9b0f284 |
refs/heads/master | <file_sep>package se.fasilie.core.extensions
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.subjects.PublishSubject
import se.fasilie.core.networking.Outcome
fun <T> PublishSubject<T>.toLiveData(compositeDisp... | f698e77a9ab5d911cac7cea0a8c294c56d1c8657 | [
"Markdown",
"Kotlin"
] | 3 | Kotlin | elvedinelvis/Fasilie | 05c3de27aeac3a405e5404816e66a932a9e48ce3 | 8cd8a81beb31bce12cb1cbd8d09df34daa01ae6f |
refs/heads/master | <file_sep>async function handleRequest(request: Request): Promise<Response> {
// If request is for test.css just serve the raw CSS
if (/test.css$/.test(request.url)) {
return new Response(CSS, {
headers: {
'content-type': 'text/css',
},
})
} else {
// serve raw HTML using HTTP/2 fo... | 3ebf985c02448fbc6b1abf2794e43879d2d35f2e | [
"Markdown",
"TOML",
"JavaScript",
"JSON with Comments",
"TypeScript",
"Shell"
] | 107 | TypeScript | cloudflare/template-registry | 00579299522834961fb46375dd7e8fd7923e81b0 | d9b1c5eef122c2a8eff667c2886b49253987fcfe |
refs/heads/main | <file_sep>//Maneira convencional
$(document).ready(function() {
//Armazenando a classe active dentro de váriavel
var classActive = 'active';
//Adicionando ao primeiro link e conteudo a classe 'active'
$('.animais .tab-menu a').first().addClass(classActive);
$('.animais .item').first().addClass(clas... | c41a560fe6dca9115d83ec77e8efb8b44590786d | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ThomasMoraes02/Animais-e-Floresta | 9c04152fe0a6d5c594c64c02ca420f82e1619c70 | 541971afd6c0c50ab52fb31fca1e1c47dfa03ad8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.