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># /etc/bash.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is n... | f0dc42f9fb44b8fb859587326bf6262481c20381 | [
"Shell"
] | 2 | Shell | johnpeck/dotfiles | d51ff658783ad24efa152a4ec701246100c07129 | 2412aeb42bad7e65a4071bcae1d43d25d0c34456 |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MatrixVerifyer;
namespace Matrix
{
partial class Program
{
static void Main(string[] args)
{
/*
* Där finns tester tillgängliga genom att... | 9a0f93d8a9bfb2b72f8a63ae53db795e50c17838 | [
"C#"
] | 1 | C# | Daniel1316/matris_profildag | e0f82875e9c8f1b7cf168fd16dea66da89f3957e | 307e6b2d7cb70aae9dee5f775bd1df94d0be0a1e |
refs/heads/main | <repo_name>JerryYINJIATENG/Coordinated-train-timetabling-Models-Construction-Test-Instance<file_sep>/Test2.cpp
// CPLEX code and Decomposition approaches
// By <NAME> at <NAME>
#include "stdafx.h"
#include <stdlib.h>
#include "CSVParser.h"
#include "network.h"
#include <stdio.h>
#include <iostream>
#include ... | ed5ae931e5065f27536cc68432a7045ed3648be4 | [
"Markdown",
"C",
"C++"
] | 4 | C++ | JerryYINJIATENG/Coordinated-train-timetabling-Models-Construction-Test-Instance | 3f535b622f2658466974d5f0dcee7cb236b3ffff | 4f7f46db8f14ad203459141f140f375e407bd788 |
refs/heads/master | <file_sep>import discord
import command
import os
import json
import dropbox
client = discord.Client()
bot_token = os.environ.get("bot_token", None)
name_cookie = os.environ.get("name_cookie", None)
exclusive_servers = os.environ.get("exclusive_servers", None)
dbx_token = os.environ.get("dbx_token", None)
try:
w... | 4aad1f4a65cda5e188cfe56275a642b2f1648f5e | [
"Python",
"Text"
] | 4 | Python | jomarcruzzz/discord-yotsubot | 736755f062d24441e9eb14eb48a3f61fcd4f4317 | 5f3f7dad1d15110d01ea0afd9303c18356b627ef |
refs/heads/master | <repo_name>Code-Community99/Hiq-django<file_sep>/suggestion/forms.py
from django.forms import ModelForm ,Textarea
from .models import suggetion_box
class sugfrm(ModelForm):
class Meta:
model = suggetion_box
widgets = {
'suggestion':Textarea(attrs = {"rows":6 , "cols":40})
}
... | 88bbf27deb0b2a1b96985c0a94ff0b7a3d012820 | [
"Python",
"Text"
] | 49 | Python | Code-Community99/Hiq-django | af62622648ad88f6e8d94e86a8dc5d6660e3bbe2 | e8efb7d63bd4fc0bc8e2af193fdec9aaab0975b0 |
refs/heads/main | <file_sep>import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
from objective import analytic
from selection import selection
from crossover import crossover
from mutation import mutation
#----------------------------------------------------------------------------------------------------------... | e5dde6976ea7c40e4cd3408adb67036d603be6f3 | [
"Markdown",
"Python"
] | 6 | Python | haydenbanting/DE-Global-Numerical-Optimizer | e0970a01b5c1e7d5b5452d897d58ae0d2364f43e | 1e01b7d914f0564fc1cf70bf2f0a60a631c5b66e |
refs/heads/master | <repo_name>Zenleaf/purescript-hareactive<file_sep>/src/Hareactive/Dom.js
const H = require("@funkia/hareactive");
exports._streamFromEvent = H.streamFromEvent;
| 4c078e45978eedd73d66aef0f1495a10c030db64 | [
"JavaScript"
] | 1 | JavaScript | Zenleaf/purescript-hareactive | 39fcb4f65f37d825cafe59f569c2f0a7f2243b12 | 95d5a1bc13d67acc9eab8d2886541f4a2d223aae |
refs/heads/master | <repo_name>simboben/source<file_sep>/config/routes.rb
Rails.application.routes.draw do
#active admin urls
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
#categories controller
resources :categories
#items controller
resources :items
# For details on the DSL available... | 576e1463c9cc7cc3934b66d1b6c8f723932fe4ef | [
"Ruby"
] | 7 | Ruby | simboben/source | 666cdfad4cc4a9428c4f7523451e685a04b2f05c | d84d604da59c8d5bfeafe1d35b798ab73febab2f |
refs/heads/master | <repo_name>konGiann/Pang<file_sep>/Pang!/Assets/Scripts/CharacterController2D.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class CharacterController2D : MonoBehaviour
{
// public editor properties
public float moveSpeed = 3f;
p... | 42c80a71f0413f471b72a345eb41fc97c7a03917 | [
"C#"
] | 13 | C# | konGiann/Pang | 2fa6990fb0328afdfb9dae5499b9abb0c31188db | 09718df08e434d8ba3ac85cff546ec30f8763043 |
refs/heads/main | <repo_name>xyproto/mcbanner<file_sep>/image.go
package mcbanner
import (
"bytes"
"image/color"
"image/png"
"log"
)
// The difference between two color values, as float64 (0..1)
func Colordiff(a, b uint32) float64 {
af := float64(a) / (256.0 * 256.0)
bf := float64(b) / (256.0 * 256.0)
res := af - bf
if res < 0... | 70405c6fa83997c908865ddef91ea815714827bb | [
"Markdown",
"Go Module",
"Go",
"Shell"
] | 18 | Go | xyproto/mcbanner | 323ba99525a7eeb34b6cfd08ef0bdd1626b324a6 | c0e8364501bd962b02d9469da205fbddbf1d840d |
refs/heads/master | <file_sep>from abc import ABCMeta, abstractmethod
from ojai.DocumentStream import DocumentStream
class QueryResult(DocumentStream):
__metaclass__ = ABCMeta
@abstractmethod
def get_query_plan(self):
"""Returns a query plan that was used for this QueryResults"""
raise NotImplementedError(... | 1dbd0460e31a8113f616423cf08f3ef4c871ae59 | [
"Python"
] | 1 | Python | smakireddy/ojai | 941b229dda257fe61af33f770b3084c69047afcf | 42c769f01c14b7bd0d6c36111325321d53ce9e85 |
refs/heads/master | <repo_name>trevoruehlinx1/todo-react<file_sep>/src/App.js
import React, { Component } from 'react';
import './App.css';
import TaskList from './Components/TaskList';
import TaskForm from './Components/TaskForm';
class App extends Component {
constructor(props){
super(props);
let tasks = [];
if(!localStor... | 17ccc429222f8f96e925b9bbdadcf1d43ab5e140 | [
"JavaScript"
] | 2 | JavaScript | trevoruehlinx1/todo-react | b8cc29dc590bfaad1a6bfe3e30bf9d6ee950ead1 | a445dbfc442997ff6bd9a33bb72db86e0d4f07f9 |
refs/heads/master | <repo_name>Ikutzu/EntityComponentSystem<file_sep>/EntityComponentSystem/Game.h
#pragma once
#include "GameObject.h"
#include "SystemManager.h"
#include "RenderSystem.h"
#include "RenderComponentFactory.h"
#include "Transform.h"
#include <vector>
class Game
{
public:
Game(sf::RenderWindow* win);
~Game();
void Upd... | 7ee9389044b0ebcd6e44d4676048c3599be6ffa9 | [
"C++"
] | 17 | C++ | Ikutzu/EntityComponentSystem | b3cefe8917756cb61800b093b0257d6c25c919b0 | 5dbc56856f8032b4d66db7b7b0d90fbe300b4229 |
refs/heads/master | <file_sep>[package]
name = "rust-bot"
version = "0.1.0"
authors = ["<NAME> <<EMAIL>>"]
[dependencies]
curl = "0.4.11"
serde_json = "1.0.9"
sha2 = "*"
hmac = "*"
<file_sep>use curl::easy::{Easy, List};
use serde_json;
use serde_json::{Value, Error};
use sha2::Sha512;
use hmac::{Hmac, Mac};
pub struct Bittrex {
api... | af94ffe0fe6c298c716446cf39422af6a1a704b4 | [
"TOML",
"Rust"
] | 3 | TOML | sinyakinilya/bittrex-client | e9be445482c54b9d113d7e6d8814144724396801 | 44a2a35cbede765d2adea10f968489cf0ad13e7d |
refs/heads/master | <file_sep>(function() {
$(document).ready(function() {
$('#secondary').waypoint(function(direction) {
var sectionCopy = $('#secondary .section-copy');
if (direction === 'down') {
sectionCopy
.css('display', 'block')
.addClass('fadeIn');
$('nav').addClass('bg-on');
}
else if (direc... | 6254c6c9dc4164a3023488b188b054e0faff3839 | [
"JavaScript"
] | 1 | JavaScript | lancasja/startup-pitch-site-2 | 8e40ee6b20d96ff28a65d32de073be7633546bc0 | 6792631627fe210ccf0a0fd87b9e267761092533 |
refs/heads/master | <file_sep>import javax.swing.*;
/**
* @author paulalan
* @create 2019/10/4 11:34
*/
public abstract class MyJPanel extends JPanel
{
protected ManualAlgorithm manualAlgorithm;
public abstract void update();
}
<file_sep>import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.ev... | 23b1e34b07803accacf151b20cbe7782765a5f9a | [
"Markdown",
"Java"
] | 6 | Java | XeonHis/ADA_ass2 | 0fa550d87d085b2652b6053aa38dbb21a015873c | 062462de2c15d5a80b289dc634f4840a065383d6 |
refs/heads/main | <repo_name>RinorSvarca/data_science_salary_project<file_sep>/data_collection.py
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 16 01:19:34 2020
@author: Rinor
"""
import glassdoor_scraper as gs
import pandas as pd
path = r"C:/Users/rinor/source/data_science_salary_project/chromedriver.exe"
df = gs.get_jobs('data-sc... | 0cdd51bfe3571bab81f0238c0834bf2076ad612e | [
"Python"
] | 1 | Python | RinorSvarca/data_science_salary_project | 6fc454fd9a53acfcf3112a1cee504996f08fc945 | 38f38086d64e2e849208d02468121f769f1c8a4a |
refs/heads/master | <file_sep><?php
namespace JackDomino\Elements;
/**
* Domino pool interface
*
* @package JackDomino\Elements
* @author <NAME> <<EMAIL>>
*/
interface DominoPoolInterface
{
/**
* Add a domino to the pool
*
* @param Domino $domino
* @param int $position
* @return Domino[]
*/
pub... | 760a057536f8d0bfeb2272753a4a818ddf8fa537 | [
"Markdown",
"PHP"
] | 17 | PHP | jkwakman/JackDomino | e736864c266343f1ef422c9ca7fa85a274d84680 | d666f777280df25e414c7b369acd31f8b425a869 |
refs/heads/master | <repo_name>LiliCecilia23/work-day-scheduler<file_sep>/assets/script.js
$(document).ready(function(){
$('#currentDay').text(moment().format('dddd, MMMM Do'));
let currentHour = moment().hours();
$(".hBlock").each(function (){
let hour = parseInt($(this).attr("id"));
console.log(hour);
... | b36ebe1a193336cf6b81622a75f08f651cef11f3 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | LiliCecilia23/work-day-scheduler | b12ddd1b5bd8cf9c70a1d3f1b011d1ed1497b35a | 0da051b5104c1775b331a798c2c3b4bbb9ff6402 |
refs/heads/main | <file_sep>import { createClient } from "@supabase/supabase-js";
const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_KEY || "";
const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL || "";
export const supabaseClient = createClient(supabaseUrl, supabaseKey);
| 7f7d3aaaba4cbbe62fe7a47e416f41a4d7517ba3 | [
"TypeScript"
] | 1 | TypeScript | in-felipe-gom/todos | d6f34d2c1ea209e84f31be21879466ace19dd774 | 4444e92d798ce2fcdd368b8527292d8d04e219c2 |
refs/heads/master | <file_sep>puts "donne un nombre"
print "> "
user_number = gets.chomp
user_number = Integer(user_number)
n=0
user_number.times do |i|
puts i
end
<file_sep>"Il y a X ans, tu avais Y ans"
puts "donne ton age"
print "> "
user_number = gets.chomp
user_number = Integer(user_number)
n=0
nn=0
while (user_number >= 0)
... | 5e39b132e0bf95ba8a076c1ab6c0c0ab75211890 | [
"Ruby"
] | 22 | Ruby | matthieuBA/ex1 | e1126a75063b134cc1dcc8e1a2b0af62c9bbc9ca | 7cd5d89b69d2b76404cf5b3129f9907e5b5c3d21 |
refs/heads/master | <repo_name>BullThistle/sinatra_template<file_sep>/spec/template_spec.rb
require 'template'
require 'rspec'
describe 'template' do
it("returns '3' if the inputs are 1 and 2") do
sum = Numbers.new(1, 2)
expect(sum.add).to(eq(3))
end
it("returns '3' if the inputs are 1 and 2") do
sum = Numbers.new(4, ... | 875df54de25434b0257e210ebd28602d165a9b1a | [
"Ruby"
] | 1 | Ruby | BullThistle/sinatra_template | 296b680a5354d51445c75440e5c987e0890f3062 | 08284dd237f9aed0db4ee3a16d5259020d36d28a |
refs/heads/main | <repo_name>zeta1999/lexy<file_sep>/include/lexy/_detail/string_view.hpp
// Copyright (C) 2020 <NAME> <<EMAIL>>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef LEXY_DETAIL_STRING_VIEW_HPP_INCLUDED
#define LEXY_DETAIL_STRING_VIEW_HPP_INCL... | a20299828cec887c226e947be341156a023ff27f | [
"CMake",
"C++"
] | 4 | C++ | zeta1999/lexy | e82030f326f4def228b78b11dc1ca54b95eb8aae | 30acbcccd339ff3ad7e7887e4b348b10e3bd2a81 |
refs/heads/master | <file_sep>aiohttp==3.6.2
async-timeout==3.0.1
attrs==19.3.0
chardet==3.0.4
discord.py==1.3.3
idna==2.9
idna-ssl==1.1.0
iso8601==0.1.11
multidict==4.7.5
-e git+http://github.com/russ-/pychallonge@bc202d7140cb08d11d345564f721c2f57129b84f#egg=pychallonge
python-dateutil==2.4.2
six==1.14.0
typing-extensions==3.7.4.2
websoc... | 60aabbd6d3e401360fa3b99b586ed9985f7d217f | [
"Markdown",
"Python",
"Text"
] | 3 | Text | ofnlut/fitbot | 9eb39ee1da23d4289ac87b6ccf93c85e971f7516 | 4a4ab8a219a365f81c581e3b4b5fc60897b16cf3 |
refs/heads/master | <file_sep># pushups
Server side rendering with preact and firebase. [Video demo](https://www.useloom.com/share/83f7f32e777f4859bc5b1e21613198fa)
## Setting Up Firebase
* [Follow Firebase onboarding and create a new project](https://firebase.google.com)
* Copy the `config` object from Authentication -> Web Setup into ... | e3b4e040adb83a0fa44ae6393c0dfe0880ae17ae | [
"Markdown",
"JavaScript"
] | 3 | Markdown | vkarpov15/pushups | 02d9e8bf88e70f251ce130786202c9ade0f5c075 | 37d9e469faa2aebd5c1a302e854cc3958b7e29c4 |
refs/heads/master | <file_sep>#!/bin/bash
DATE=$(echo $(ping -c 1 192.168.10.25) | grep -v Unreachable)
echo "*${DATE}*"
<file_sep>#!/bin/bash
#Simple Pingsweep Script
#read -p "Please enter the subnet: " SUBNET
SUBNET="192.168.212"
HOSTS=()
INDEX=0
for IP in $(seq 184 185); do
echo $SUBNET.$IP
HOSTS[$INDEX]="$(ping -c 1 $SUBNET.$... | 71f20dd6963d64df467141b1a8db3e6b72a418f0 | [
"Shell"
] | 13 | Shell | Hojang2/shell_scripting | 692f8456d2b856d6dde61b2efba27c62083f62af | da7bfdc99644f545cb0fd5ad00e6e4efc5d48c62 |
refs/heads/master | <repo_name>IanMercado/JuegoTragamonedas<file_sep>/TragamonedasFINAL/src/formularios/form1.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 formularios;
import java.awt.Co... | 6bd1b254f9f5bed46e88cc8553350d34e963c811 | [
"Java"
] | 1 | Java | IanMercado/JuegoTragamonedas | 945079e9f391d1176637a26c638d4c32db88e4c3 | 389651b4804dc60f997fdd11609eb0a01134a8dc |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class App extends Component {
render() {
return (
<Link className="btn btn-primary" to="/print">Request PrintOuts</Link>
)
}
}
export default App;
<file_sep>import React, { Component } from 'react';
import axi... | 4e18db59eaccda4690b71ce12367fad25038d242 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | sravya19c/PrintCenter | c8c081867d8bea5ccfd5b187d1c848a3ee546cbb | 4fa17ef08e2dd06e40fab36648d7446bb2d60745 |
refs/heads/master | <repo_name>Space0726/vimrc<file_sep>/.script/tips/replace_file_content.sh
# Find tab in file contents and print their file name
# grep -n is printing number line option so if it doesn't needed, remove it
tab=`echo -e "\t"`
grep --include=*.* --exclude=a.out --exclude-dir=.git -rw '.' -e "${tab}" | awk -F: '{ print $... | 84ea8b5909375dbe69f57fb51f6caa93faabf3b1 | [
"Shell"
] | 2 | Shell | Space0726/vimrc | 323af382c7fd7156a4f4e72c583f704a1df12bea | 9ab9178df4984e279403cb717f96ce15e8e5fadf |
refs/heads/master | <file_sep>#ifndef OPTIONS_H
#define OPTIONS_H
/**
* options.h
*/
enum option_type {
OPTION_TYPE_NO_OPTION = 0,
OPTION_TYPE_NUMERIC = 1, // INT
OPTION_TYPE_STRING = 2
};
/* option_match() return codes. */
#define OPTION_FOUND 0
#define OPTION_UNKNOWN_OPTION -1 // option not ... | 5880e1c4819cc392b54e3b52af29114cdf7271b1 | [
"Markdown",
"C",
"Makefile"
] | 41 | C | jormis/kilo | 78ee18527a72b5ba9a4083683e73878976f634b3 | aaa914b9349bbbe78bd8ed321b1423856f815504 |
refs/heads/master | <repo_name>rolignu2/SivarDatabase<file_sep>/test.php
<?php
include 'Config.php';
include 'Database.php';
$db = new Database();
/**
*
* TESTEO DE INSERT
* **/
/* $table = "user_login";
$params = array(
"username" => "pepito" ,
"email" => "pepe",
"password" => "<PASSWORD>",
"esta... | f9c6e6de4549a0bff4be8baccb83ea78bd652614 | [
"PHP"
] | 1 | PHP | rolignu2/SivarDatabase | c4844bef5c0af298ce2fd1619810a6fe494ba6bb | d050e8b9460ef8dd25dd784cde21f86d65a3c1de |
refs/heads/main | <repo_name>tshepoblom-dev/NopCommerceClickatellSMS<file_sep>/Nop.Plugin.Misc.Clickatell/Models/ClickatellModel.cs
using System;
using System.Collections.Generic;
using System.Text;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;
namespace Nop.Plugin.Misc.Clickatell.Models
{
publi... | ddc5d992f78e479e4bb2173c4022d41c8cb5c79a | [
"Markdown",
"C#"
] | 8 | C# | tshepoblom-dev/NopCommerceClickatellSMS | abf2deb0638405cd35c6364cf328b04313923d63 | a537837392f2502f31e70c6d7afaa7c3d5db6b6d |
refs/heads/main | <repo_name>syozo1201/DWC_PF_-<file_sep>/app/models/user.rb
class User < ApplicationRecord
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :validatabl... | 850ebeb73b75be5a8f3c7ef5d41e4e848e8bc6c4 | [
"Markdown",
"Ruby"
] | 5 | Ruby | syozo1201/DWC_PF_- | 058ba05b158394ee1c0b67d1a83950a0295e5dbc | d7b9b0b268b6459c20c08a67b3d904544dce3a18 |
refs/heads/master | <repo_name>OsamaAhmed1999/Inheritance<file_sep>/main.cpp
#include <iostream>
#include "AdjTableLamp.h"
using namespace std;
int main()
{
AdjTableLamp *Lamp = new AdjTableLamp();
cout << *Lamp << endl;
Lamp->print(cout);
Lamp->dim();
Lamp->dim();
Lamp->dim();
Lamp->print(cout);
Lamp->press_switch();
L... | 7be5f17ddc4c4992c743871417dc1c9c1efd5775 | [
"C++"
] | 3 | C++ | OsamaAhmed1999/Inheritance | 8eff7761f0dcc1ea21a689051462a69c7cf5dce4 | 5a3f3c28a16734f0cfa4f82fbf7e577b071d563b |
refs/heads/master | <repo_name>InfiniteDivs/defistation-web<file_sep>/src/components/defiList/DefiList.js
import React, { Fragment, Suspense, useState, useEffect } from "react";
import { observer, inject } from 'mobx-react';
import { useHistory, useLocation } from 'react-router-dom';
import ReactTooltip from 'react-tooltip';
import useSto... | 1c5f573430d3c56ef67132703d8ee4f1a824ebbb | [
"JavaScript"
] | 5 | JavaScript | InfiniteDivs/defistation-web | abacac7d00d5119047089c39f514018fe9bc7540 | 8e6db067bb24d0fbd9363c35ff0f0441a3897dd4 |
refs/heads/master | <file_sep>/*
* Triangle.h
*
* Created on: Oct 28, 2009
* Author: juanmarcus
*/
#ifndef TRIANGLE_H_
#define TRIANGLE_H_
#include "ibi_internal.h"
#include "Vector3.h"
BEGIN_NAMESPACE_IBI
class Triangle
{
public:
Triangle()
{
}
Triangle(const Vector3& v0, const Vector3& v1, const Vector3& v2)
{
ve... | 3f60bac4fb5b8495452acc7f96ecfbc2209a1bc2 | [
"C",
"CMake",
"C++"
] | 79 | C++ | juanmarcus/ibi | 73fc30b4587b0f0b805b948157032e7c21d9bd3b | e5e5dba81d7f36fcd65d6503a1dc0b43376573aa |
refs/heads/master | <repo_name>Divyakorat/practice1<file_sep>/target/Destination/report.js
$(document).ready(function() {var formatter = new CucumberHTML.DOMFormatter($('.cucumber-report'));formatter.uri("src/test/resources/features/Category.feature");
formatter.feature({
"line": 1,
"name": "Category Scenario",
"description": "",
... | c81720e25d70c044b10996df73eabde58d4577b1 | [
"JavaScript",
"Java"
] | 3 | JavaScript | Divyakorat/practice1 | 2ba9f57f34817603681ff81ce6dc713655394ec5 | 1207f086779aa34100d163254fda67488a8c1d1e |
refs/heads/master | <file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Dump all replication events from a remote mysql server
#
import datetime
import pika
import json
import os.path
import os
from pymysqlreplication import BinLogStreamReader
from pymysqlreplication.row_event import (
DeleteRowsEvent,
UpdateRowsEvent,
... | 6cdfeb648db62576d4d2017e3b078f14b1e9766b | [
"Python"
] | 2 | Python | mydevc/python-mysql-replication | bd0417ac6a3b406183e9f9404856aef4683b441b | 874f8bd475e7cc5140e5337e23ab95258bcb5554 |
refs/heads/master | <repo_name>danilo4web/ionic<file_sep>/restaurantes/src/pages/carrinho/carrinho.ts
import { Component } from '@angular/core';
import { NavController, NavParams, AlertController } from 'ionic-angular';
import { Http } from '@angular/http';
import { DetalheDoPedidoPage } from '../detalhe-do-pedido/detalhe-do-pedido';
imp... | bbb30033802b7ce6945ebbb93d3c84cae6ff1e49 | [
"SQL",
"TypeScript"
] | 5 | TypeScript | danilo4web/ionic | e08f316b3454ce147b0f7f5422db40acfd59d11f | 84c780809a7b1fa8350f4a02404d99385322351d |
refs/heads/master | <repo_name>SBarreto/Proyecto-Final-Analisis-Numerico<file_sep>/README.md
# Proyecto Final: Calculadora de Integrales
En el siguiente documento se describe el contenido del repositorio
## Documento: Proyecto final analisis numerico
documento que describe los diferentes componentes del proyecto, incluyendo marco teoric... | daf28eb6f8dcb8f28a53c29b53cee4d36433fab2 | [
"Markdown",
"Java"
] | 2 | Markdown | SBarreto/Proyecto-Final-Analisis-Numerico | 984880701052033a67a173598a99deb861763574 | f0ac69687eac0edd529b127a7d6979d708fc8052 |
refs/heads/master | <repo_name>yung-chu/GemStockpiles<file_sep>/vue/src/libs/sweetAlert.js
import sweetalert from 'sweetalert';
import {resolve} from 'path';
export default {
text(message) {
swal(message);
},
message(title, message) {
swal(title, message);
},
success(title, message) {
swal(titl... | a46522c61c7ef37def53e00c1c71937883286881 | [
"JavaScript",
"C#",
"Markdown"
] | 92 | JavaScript | yung-chu/GemStockpiles | 77a3af0eb3bde320bb7d7294d7defee02667e49a | 732e73ed48e1e843a0a74505dc8452f54894cd47 |
refs/heads/master | <repo_name>RomanAyalew/Angular<file_sep>/src/app/tv-show-search/tv-show-search.component.ts
import { Component, OnInit, Output,EventEmitter } from '@angular/core';
import { FormControl, Validators } from '@angular/forms';
import { TvShowService } from '../tv-show/tv-show.service';
import { debounceTime } from 'rxjs/ope... | 583977dc733f35cd894cbff5e6dea700f4831072 | [
"TypeScript"
] | 4 | TypeScript | RomanAyalew/Angular | c65ae4dc59802529085ba375ab778497b7f0394a | a8d6b26d376e5448db33f683bc04498dad1441f1 |
refs/heads/master | <repo_name>ggons/react-advanced<file_sep>/react/src/Root.js
import React from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension/logOnlyInProduction';
// import reduxPromise from 'redux-promise';
import asy... | 683b3f005b39f1d3f5a0ebe6b33794cb56690cb4 | [
"JavaScript"
] | 2 | JavaScript | ggons/react-advanced | 3f816e63d125211935f318b5b2fc1a286c5e4e3f | 01b4d6bac4ba1eb7d9c6b3a48f7ecb48037b2b5f |
refs/heads/master | <repo_name>omelkonian/presentations<file_sep>/[2019.08.20] BitML (SRC Presentation @ ICFP)/Makefile
MAIN=bitml-presentation
STYLE=stylish.fmt
default: all
all: $(MAIN).pdf
redo:
xelatex $(MAIN).tex
$(MAIN).pdf: $(MAIN).tex
xelatex $(MAIN).tex
%.tex : %.lagda $(STYLE) 1-intro.lagda 2-bitml.lagda 3-future.lagda
lh... | 27decd598eccfe27244192f3d1abc49162ad75ce | [
"Markdown",
"Java",
"Makefile",
"C++"
] | 18 | Makefile | omelkonian/presentations | 07eb7dffb1a4b83c110ef9b1d9acaac5a48ac98e | fb8e295192fad21ff90b9a0b6928706dd7cb61c4 |
refs/heads/main | <repo_name>rovallec/we-in<file_sep>/src/app/components/links/links.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-links',
templateUrl: './links.component.html',
styleUrls: ['./links.component.css']
})
export class LinksComponent implements OnInit {
items: {}[... | ff95784a1ba45ce2055da7817b216da006d8cbd2 | [
"TypeScript"
] | 4 | TypeScript | rovallec/we-in | a5aa48a50c4c55aa6771b1c1b601faa5d425e36b | dda7c3957bac74b78a236ce7e8844853ca7f1212 |
refs/heads/master | <repo_name>Coddielam/MERN<file_sep>/routes/api/posts.js
const express = require("express");
const router = express.Router();
const auth = require("../../middlewares/auth");
const { check, validationResult } = require("express-validator");
const Post = require("../../models/Post");
const User = require("../../models/Use... | 48f2e3103b8f8106f7eb4ffb06bfab76fe932942 | [
"JavaScript"
] | 1 | JavaScript | Coddielam/MERN | 0bc61459fa23438a76242dfcc5d043c39805f09d | 8419d1b00fdb75360ac5a1c55984b5408de9fb09 |
refs/heads/master | <file_sep>package za.co.wethinkcode.view;
import java.util.Scanner;
import java.util.List;
import za.co.wethinkcode.model.Game;
import za.co.wethinkcode.controller.GameController;
import za.co.wethinkcode.characters.Hero;
import za.co.wethinkcode.enums.CharacterType;
import za.co.wethinkcode.factories.CharacterFactory... | 07c7c9b30b04e1942e8335d5b0ea39a1c18be6b5 | [
"Java"
] | 5 | Java | Supreme-Zungula/Swingy | 2e8684281c9b31c311ee7bcf4cee7cfed0940365 | bbc588fa4d178dc3c709167378fd54e2921d073d |
refs/heads/master | <file_sep>ARG BUILD_IMAGE_BASE
FROM ${BUILD_IMAGE_BASE}
ARG KMODVER
ARG KVER
RUN mkdir -p /etc/pki/entitlement
COPY pki.key /etc/pki/entitlement/entitlement.pem
COPY pki.key /etc/pki/entitlement/entitlement-key.pem
COPY build_kernel.sh /
WORKDIR /root
RUN yum install -y git-core gcc elfutils-libelf-devel make kmod
... | 5245d0a7ada965bb7e60ff38d26b5bec66c7a59b | [
"Makefile",
"Dockerfile",
"Shell"
] | 3 | Dockerfile | rmr-silicom/dfl-drivercontainer | 5b5cb08aef7dd721fddf3e626013af750bd30164 | 389528bd1b0f08006b85fcf382d03ace67933b87 |
refs/heads/master | <repo_name>lamhoyannn/2017<file_sep>/README.md
# MATH 210 Introduction to Mathematical Computing
MATH 210 at the [University of British Columbia](http://www.math.ubc.ca) is an introduction to scientific computing in Python. We will start with basic Python programming including datatypes, logical statements, loops and ... | 1ad87a849266071876cf8b6ecf40ae9a19910d13 | [
"Markdown",
"Python"
] | 2 | Markdown | lamhoyannn/2017 | 6a665662ac8da618214df5577caebc2f3bda54a9 | ae515944586af9d9fdb0dbfe34aaadc4813f6e77 |
refs/heads/main | <repo_name>ibryans/ctf-walkthroughs<file_sep>/tryhackme/rrootme/test.php5
<?php system($_GET[‘q’]);?><file_sep>/README.md
# Capture the flag walkthroughs
All my *Capture the flag* challenges, with walktroughs and created files.
``Tryhackme, Hacthebox, and more...``
<file_sep>/tryhackme/rrootme/readme.md
# Can you Ro... | 9647715740fce743bf8ef45caa13bc871e0dbc3d | [
"Markdown",
"PHP"
] | 3 | PHP | ibryans/ctf-walkthroughs | 84814fbf930fe329106fd695716851137f77a6cd | 7e30d207592ab254d4d8febe516e61b9de25d61c |
refs/heads/master | <repo_name>ethansx/Low-Inventory-Email-Alert<file_sep>/app/code/local/GaugeInteractive/LowStockAlert/Model/Observer.php
<?php
class GaugeInteractive_LowStockAlert_Model_Observer
{
const XML_PATH_LOWSTOCKALERT_ENABLED = 'low_qty_alert/settings/enabled';
const XML_PATH_RECIPIENT_EMAIL = 'low_qty_alert/settings/r... | 4e581d90c8571cbc7c19de86f45b21ab44e34798 | [
"PHP"
] | 2 | PHP | ethansx/Low-Inventory-Email-Alert | b1670076ee99301d88020c24a6981fdedbe5548c | e8a751bb3a944a147916a306a2fc7517af1126ea |
refs/heads/master | <repo_name>evan10s/wake-me-cgm<file_sep>/README.md
# wake-me-cgm<file_sep>/app/src/main/java/at/str/evan/wakemecgm/MainActivity.java
package at.str.evan.wakemecgm;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import andro... | f106f8319fe8e91c002dfe6c16a2ab4a0f6db035 | [
"Markdown",
"Java"
] | 3 | Markdown | evan10s/wake-me-cgm | c841c76408e8cf5b5a577e57f2e9608b86fd61a9 | d82a21c10dca7862901db5098e8309e56bd63146 |
refs/heads/master | <file_sep>// object Literal
// let mahasiswa1 = {
// nama: "indra",
// energi: 10,
// makan: function(porsi) {
// this.energi = this.energi + porsi;
// console.log(`Halo ${this.nama}, selamat makan`);
// }
// };
// let mahasiswa2 = {
// nama: "indri",
// energi: 20,
// makan: function(porsi) {
//... | ed4c569d3181404bbde40a6be1d26e0708fcf76c | [
"JavaScript"
] | 6 | JavaScript | evriyanaindrasaputra/Belajar-JS | d43f396dbae01a10c5bb5591f7da9c40737b8836 | 2156eb82142201085291a21a373f7207da7f303b |
refs/heads/main | <file_sep># Pet-of-Dreams<file_sep>//Create variables here
var database;
var dog,dogImage,dogImage1,food,foodImage,foodStock,foodRef;
var feed;
var fedTime,lastFed,foodRem;
var foodObj;
var value;
var milkimg,milkbottle;
function preload()
{
dogimage = loadImage("dogImg.png");
dogimage2 = loadImage("dogImg1.png");... | a9da4f1f8191223966f5ca44596db6b52af6c149 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Lucky2167/Project-39 | 4963c0dfdb21ddfea85ed106be4a9b3de0c5df05 | d1a66910204bffb9a9144adc391c9ee21c6e38bc |
refs/heads/master | <repo_name>oneski/SAAST-Summer-Program-Project<file_sep>/README.md
saast-hw
========
Code written for UPenn's SAAST Computer Science Course
Teacher: Peter-<NAME>
Contributers:
=============
<NAME>
<NAME>
<NAME>
<NAME>
<file_sep>/hw4.py
from drawingpanel import *
import random
'''
def upTriangle(canvas,x,y,z):
ca... | 01f1f68eaa74bf89838de50d48dde2b856270f37 | [
"Markdown",
"Python"
] | 49 | Markdown | oneski/SAAST-Summer-Program-Project | 1c544a6fe177f899ccb8e84e6897a430a43fff2c | 2826179d49440a8e2a9081ffd3dc73568cf5ef6c |
refs/heads/main | <file_sep>window.addEventListener("load", () => {
let blabla = document.querySelector(".location-city");
let long;
let lat;
let temperatureDescription = document.querySelector(
".temperature-description"
);
let tempDegree = document.querySelector(".temperature-degree");
let iconApp = documen... | 815c0d69f94b9b2e2684d71c7f9df431c91e6034 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | LAPortfolio/Weather-App | dedb8ee24d0276495bcef2331ad840ae9995babb | 97c4207f6be118c627cf873bdc32730ae923f579 |
refs/heads/master | <repo_name>Faihope/Delani_studio<file_sep>/js/script.js
$(document).ready(function () {
$("#design").click(function () {
$("#describe-design").show();
$("#design").hide();
});
$("#describe-design").click(function () {
$("#design").show();
$("#describe-design").hide();
}... | e9f1a622ffd83e8a212d606ef4b0c9748edeb968 | [
"JavaScript"
] | 1 | JavaScript | Faihope/Delani_studio | 88380debedc71ecba23b0f2a016f0d8489d94602 | aa5ef26e8ec595868bc6e04a5423eaaf2113e3eb |
refs/heads/master | <repo_name>mdraganov/Telerik-Academy<file_sep>/C#/OOP/OOPPrinciplesPart1/AnimalHierarchy/Animals.cs
namespace AnimalHierarchy
{
using System;
using System.Linq;
class Animals
{
static void Main()
{
Animal[] animals =
{
new Dog("Rex", GEnder.Male,... | 8a510c6e01dc4827073f86049535d4a9d680c061 | [
"JavaScript",
"C#",
"HTML"
] | 168 | C# | mdraganov/Telerik-Academy | 68cd42e1e9bc96a61d17e9b797cb3bdc61405946 | f437815037e8f9cc2727a4dd4321ff69554588b3 |
refs/heads/master | <repo_name>DanielWFrancis/admincode-co<file_sep>/driver.py
"""
driver.py: Driver for generic corpus
This modules has two members for interacting with this corpus:
* `INDEX` is a tuple containing a name for each level of the corpus index
* `stream()` returns an iterator of 2-tuples representing each item in th... | 2cf42685e8d5ce4b16dbdf78f83f0c7df02d518b | [
"Markdown",
"Python",
"Makefile"
] | 10 | Python | DanielWFrancis/admincode-co | 07b4ee4c1666719550e4582fb8367cfda15d30f8 | 72c5fab86cdef120d189b3715a3fce70d6e9a9f0 |
refs/heads/main | <repo_name>david-fb/sandra-blog<file_sep>/src/components/Menu/Menu.js
import React from 'react'
import { slide as HamburguerMenu} from 'react-burger-menu'
import {Link} from 'react-router-dom'
import './Menu.css'
export default function Menu(){
return(
<section id="Menu-section" className="Menu-nav__contai... | ce5267b8652001888ad03dce76107ffd4ed31b2b | [
"JavaScript"
] | 5 | JavaScript | david-fb/sandra-blog | 33fb32b036c46d393d469244e1a1e466f9976ba4 | cc6c4d0bfd44be53c0a13e5cbefdf87f9709b6b4 |
refs/heads/master | <repo_name>beamiter/CarND-Path-Planning-Project-1<file_sep>/clean.sh
#!/bin/bash
rm -fR build
rm -f path_planning
<file_sep>/src/path_planner.h
#ifndef PATH_PLANNER_H
#define PATH_PLANNER_H
#include "behavior_planner.h"
#include "waypoints.h"
struct PathPlanner {
/** @brief Current route plan. */
Waypoints ... | 11299278ac049828e906a666dd19a6340b4e91be | [
"Markdown",
"Python",
"C",
"C++",
"Shell"
] | 10 | Shell | beamiter/CarND-Path-Planning-Project-1 | 160ee3b73b11ea7ac69fd38f5ac7ca58d069dbcf | 8a57affd50fafc585e6a88d4609ae770d9cc968c |
refs/heads/master | <repo_name>lakshmi8/FamilyPremierLeague<file_sep>/app/src/main/java/com/lakshmibros/fpl/data/model/Match.java
package com.lakshmibros.fpl.data.model;
public class Match {
private int matchNumber;
private String date;
private String team1;
private String team2;
private String venue;
public Matc... | 1aacc185d6a0f8ffe99cd733c7d1666d6bb921cd | [
"Java"
] | 4 | Java | lakshmi8/FamilyPremierLeague | 8d8484638fa4b3172850974c7bcc1f98451e1230 | 6e73e73bc702e4a7fa46b350d6620e4ce06f60da |
refs/heads/master | <file_sep>### SPRING BOOT CONTAINERIZED EXAMPLE
<file_sep>insert into exchange_value(id,currency_from,currency_to,conversion_multiple,port)
values(10001,'USD','EUR',0.88,0);
insert into exchange_value(id,currency_from,currency_to,conversion_multiple,port)
values(10002,'EUR','USD',1.13,0);
insert into exchange_val... | f4a6bb5dd3e1149b32b629a60b8ca16ef22f2de8 | [
"Markdown",
"SQL"
] | 2 | Markdown | devcrops-official/spring-boot-microservice-forex-service | bd86052a98f1f03f4ce4f21a1a2d1e51de38a5c5 | abc39be9f4db2feebef54224d3963d97ea47764b |
refs/heads/master | <file_sep>using NUnit.Framework;
using FluentAssertions;
using System.IO;
namespace Arthware.X937Parser.Tests
{
[TestFixture]
public abstract class X937ParserTests
{
private X937Parser _sut;
private Stream _stream;
[SetUp]
public void PrepareX937ParserTests()
{
... | 849492dd5bbb9ba233d8e2af562c0e46c3bf0c9e | [
"Markdown",
"C#"
] | 8 | C# | arthg/Arthware.X937Parser | 3dcf7657f1d191d1fb01fc1d526216f75d2cf631 | 5b3c381be2f0113339c2d33a428162cfde574da4 |
refs/heads/main | <file_sep>#title: "HCCDataSurvivalPrediction"
#author: "<NAME>"
#date: "11/08/2021"
#Load Packages
library(data.table)
library(dplyr)
library(corrplot)
library(ggplot2)
library(gmodels)
library(caret)
library(rpart)
library(rpart.plot)
library(glmnet)
library(arm)
library(mltools)
#Set Work Directory
#setwd("directo... | 32ceea5c23daede816490cd72d3de4e01d86120a | [
"Markdown",
"R"
] | 2 | R | natmurad/cancersurvivalprediction | 5f2f89e39047dfa3c6538350b18be9fe40fe55a7 | 05a0ca17a57bfa37e4fb4e1358c761d3c3bf15cb |
refs/heads/main | <file_sep># RecursiveFetch
Created with CodeSandbox
<file_sep>async function fetchPages({ page }) {
let url = `https://rickandmortyapi.com/api/character/?page=${page}`;
let req = await fetch(url);
let json = await req.json();
return json;
}
async function recursiveSequentialFetch({ page, data, maxCalls }) {
... | 34259a32b922d33b2994e0ec4cf986340bc0d087 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | marcelobento/RecursiveFetch | 3e726ee32b5851abf3b0c0c3ac3a74d5aac86f87 | 6d30f0158375a1af8e0c2ea4229428f83c34ed0b |
refs/heads/main | <file_sep>package cenarioCadeiaDeRequisicao;
public class ExportadorTeste {
public static void main(String[] args) {
Requisicao requisicao = new Requisicao(Formato.CSV);
Conta conta = new Conta(100, "Vitor");
Exportador exportador = new ExportaCSV(new ExportaXML(new ExportaJSON()));
... | 5361d133e7a6b24f9b3de89b88b471a13d766727 | [
"Java"
] | 3 | Java | VitorMaverick/Etapa01Atividade02Strategy-Template-Chain | 9fdeb45bc8180de5afcddaa9988c9745726ee8f7 | 772a5aec565747088ff6e7feb786abcd6bef4561 |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
import {Http} from "@angular/http";
import {CabinetInterface} from "./dataInterfaces/cabinet";
import {Adresse} from "./dataInterfaces/adress";
import {sexeEnum} from "./dataInterfaces/sexe";
import {PatientInterface} from "./dataInterfaces/patient";
@Injectable(... | 14e11fbc549815629e40ba1dd4ae29c5051f6fa0 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | l3miage-ADF/ProjetIIHM | 42eadbc9fff84dabd703762ec173854a5370a406 | e0e77088fd8d58a7178741ffff440b389c4b73b6 |
refs/heads/main | <repo_name>VVariychuk/goit-react-hw-03-image-finder<file_sep>/src/components/ImageGallery/ImageGalleryItem/ImageGalleryItem.js
import s from './ImageGalleryItem.module.css'
const ImageGalleryItem = ({ smallImg, bigImg, id }) => (
<li className={s.ImageGalleryItem} >
<img src={smallImg} data-img={bigImg} a... | a0ea6bad09354fab5b20534e7635b447c8a720a1 | [
"JavaScript"
] | 3 | JavaScript | VVariychuk/goit-react-hw-03-image-finder | ffa0a013290a7bf8a04cc63155ad31e5cbca87a9 | d36aacd8dae204a73c7db52eb8e53236645adae4 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<title>Taskwezom - <?=$title;?></title>
<!-- Bootstrap -->
<link href="../../../bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<style>
body {
padding-top: 65px;
}
#news{
padding-bottom: 20px;
... | e31181bc691c29b735dede6700ddfdf4fd581282 | [
"PHP"
] | 23 | PHP | eidicon/taskwezom | a37a73c0bad0376608423fb8cf0d294194fa7313 | cb0c519d445e31d5c91c78a34b1695900689296b |
refs/heads/master | <repo_name>tsyrya/appercode<file_sep>/src/services/auth.js
import {http} from '../services/request'
import {router} from '../router'
import toastr from 'toastr'
export default {
login(userName, password, redirect = null) {
http.post('login', {username: userName, password: <PASSWORD>, generateRefreshToken: true},... | d77859d15e77bf8ef9533ca882df71f671c8067a | [
"JavaScript"
] | 2 | JavaScript | tsyrya/appercode | 86967f994d9e134e185d2a16f8a7577cad7ad3e2 | 79e229e88ff290d06c7f0db9265d80717cac2ae0 |
refs/heads/master | <repo_name>bacongravy/giphy-anywhere<file_sep>/test/app_tests.swift
import XCTest
class GIPHY_Anywhere_UI_Tests: XCTestCase {
override func setUp() {
continueAfterFailure = false
XCUIApplication().launch()
}
override func tearDown() {
}
func testInitialState() {
XCUIAppli... | 68cf9da80fd0bc88365cd726d925f99772391879 | [
"Swift",
"Markdown"
] | 8 | Swift | bacongravy/giphy-anywhere | 8a20b9431dfa94c88c62b0fbd17d059745534eed | 5ad4a5c6fe8c3fd46ac6fbba6cabff6519b13779 |
refs/heads/master | <file_sep><?php
namespace Engage\EagleEyeService;
class Reward
{
protected $api;
protected $key;
public function setBrand($identifier, $credentials)
{
$credentials = $credentials[$identifier];
$auth = new Auth($credentials['username'], $credentials['password']);
$this->key =... | 12b1aadeed93c85753e129a4a2bf971c9d850913 | [
"Markdown",
"PHP"
] | 5 | PHP | engageinteractive/eagle-eye-service | 5402e5d5ba9c24a4dc62266d133cb87a471991be | b75639e60520c7c3d132978c8479bd076f84c024 |
refs/heads/main | <repo_name>SiyanGuo/zookeeper<file_sep>/README.md
# zookeepr
week 11 module projects
<file_sep>/routes/apiRoutes/animalRoutes.js
//start an instance of Router
const router = require('express').Router();
const {filterByQuery, findById, createNewAnimal, validateAnimal} = require('../../lib/animals');
const {animals} = r... | 20763ef14502b274473f4d35c2be935d6f309294 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | SiyanGuo/zookeeper | 55967bc8df829a75714e361ca7621b95a25fe0c3 | 8a8a5e95927aafb4182aa9d150ddbf105f420393 |
refs/heads/master | <repo_name>Gardiano/object.js<file_sep>/README.md
# object.js
orientação a objetos - javascript puro.
<file_sep>/scripts.js
// Orientação a objetos;
function Funcionario() {
this.nome = ''
this.salario = null;
this.horaExtra = null;
this.ValorHoraExtra = null;
t... | 145b5ef1fecfcb54101b2f5fe637d1441404812f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Gardiano/object.js | 436aadc3fa2c43f1ef9b487d841752b823199b94 | b9b08471b7d295d96c3df00ffd813eef87c0a46e |
refs/heads/master | <file_sep>package rockwell.tasks;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Iterator;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.... | afeaa303b67232bbb9974f5b153a1d9b18009430 | [
"Markdown",
"Java"
] | 2 | Java | akshay-sanganwar/helloWorld | 6528dd8323628e19eeefffeef4386d323ccdddd8 | 5c71761f322ab4d67d8d5f482462ef38b2754abd |
refs/heads/master | <repo_name>germancodes/selenium<file_sep>/src/main/java/DataExtractor.java
import java.sql.*;
import java.util.*;
public class DataExtractor {
public Connection conn;
private String strSQL;
private String strErrMsg;
private final List<String> webIDList = new ArrayList<>();
private final Li... | 58c165f712221e95840fce3df43a1f5d50187ef0 | [
"Java"
] | 3 | Java | germancodes/selenium | babb43275271e1c4ebea510f5637dd7be1def335 | be38e6721762b9a3220f8f2e4f484aeb267c5ea8 |
refs/heads/main | <file_sep>
export type Todo = {
id: string,
todo: string,
completed: boolean
} | 787120c9272b59db83815d56b011dd62d0d688b6 | [
"TypeScript"
] | 1 | TypeScript | resendiz0x/todo-react-app | d869012d2ded3f3ae710b93b7e6b85387379a982 | 6880c71efc9d546f878a18561faa5231e5a3b685 |
refs/heads/main | <repo_name>jron82/viewer-demo<file_sep>/src/Excel/index.jsx
import React from 'react';
import './excel.css';
import Viewer from './../Viewer.jsx';
export default function Excel() {
const file = 'https://hypergraph.space/SimpleSpreadsheet.xlsx';
const type = 'xlsx';
return (
<section className="excel-preview... | 151859742895492fdfba4a1da406b8f11776087a | [
"JavaScript"
] | 7 | JavaScript | jron82/viewer-demo | b5b520fbc3049aedce88d985969df7ac0082c57c | 0b1ff8132e05868662ed4d239de48d0ac521a769 |
refs/heads/master | <file_sep>package shared;
/**
* An attribute type specifies what type an attribute
* within a data set is
* @author <NAME> <EMAIL>
* @version 1.0
*/
public class AttributeType {
/**
* The binary type
*/
public static final AttributeType BINARY = new AttributeType(1);
/**
... | 3e85df3017abb06526aac4e990446ac74de474dd | [
"Java"
] | 1 | Java | klittlepage/ABAGAIL | a60115f10f5cb95d0de59585611d2083c54a531e | 886c20fc67c2162120d583d0e75bdee1736a29ed |
refs/heads/master | <repo_name>hhatefi/sc_planner<file_sep>/README.md
Supply Chain Planner
====================
This project solves planning problem on a supply chain graph. The
chain should be defined in a text file with specific format. This
document briefly describe how to install the planner, define a supply
chain and solve it.
## M... | c267c6d78654fded814143dd83389254a259fc9f | [
"Markdown",
"Python",
"Makefile"
] | 13 | Markdown | hhatefi/sc_planner | d704cb8a5eb62075b992eb244ac7b45de52b1203 | 6d1ad598b17fcaa7cdf793ceb6df02cdba42b145 |
refs/heads/master | <file_sep><?php
namespace tiktok;
use App\OpenApi\Factory\BusinessApiGatewayFactory;
use App\OpenApi\Tiktok\Store\TiktokStoreApiGateway;
class AccessTokenTest extends \TestCase
{
public function testGetAccessToken()
{
$apiGateway = BusinessApiGatewayFactory::getTiktokBusinessApiGateway(TiktokStoreAp... | afe3b05240b9559c7f9a8a01728b9401eda35c25 | [
"Markdown",
"PHP"
] | 19 | PHP | fengzewen/openapi | d20da778f6a66c67fff3c8291a2b3ef83f464928 | 4e3cebc31a62a5fc2badcbf9e5a658c61688d49f |
refs/heads/master | <file_sep><?php
error_reporting(E_ERROR | E_PARSE);
$the_server="";
$the_stats_file="/status.xsl";
$is_shoutcast=true;
$streamtitle="";
$streamgenre="";
if (!isset($_GET['translateAllRadioStations'])) {
$translateAllRadioStations="ALL RADIO STATIONS";
} else {
$translateAllRadioStations=$_GET['translateAl... | 52152c6d7d099a93edcf876c4fd3e0c9c2db3528 | [
"Markdown",
"PHP"
] | 3 | PHP | gogekkos/LX6 | 030baa04987fcef996cb91d617b21d156d5271f6 | 39af6d13a2e3fd7425381c86b9eea611c88fc285 |
refs/heads/master | <file_sep>// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {TeamTypes, ThreadTypes} from 'action_types';
import deepFreeze from 'utils/deep_freeze';
import threadsReducer from './threads';
describe('threads', () => {
test('RECEIVED_THREADS shou... | 66af1225e05870c7d6395b8f11315740baab35ad | [
"JavaScript"
] | 1 | JavaScript | wiggin77/mattermost-redux | 041dc98731d1317c7d4f8014d79f81d1e9e80663 | 758bdadca83a25619bc4205df3f1bda27b1e626c |
refs/heads/master | <file_sep>using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace AirVinyl.Model
{
public class DynamicProperty
{
[Key] [Column(Order = 1)] public string Key { get; set; }
[Key] [Column(Order = 2)] public int VinylRecor... | 3681f51293b2beaf2cecc374ce658ad7fe5a7c4a | [
"C#"
] | 5 | C# | yousufmohammad26/PluralSight_ODataV4_Course | 9e4128b759af55a33a95c42e1b8b33dafd81e7bc | ab06fb6b426071502313859c785d1bf11d827815 |
refs/heads/master | <file_sep>interface Config {
upperCaseChance?: number;
letterReplaceChance?: number;
tripleChance?: number;
maxTags?: number;
}
const defaults = {
upperCaseChance: 0.5,
letterReplaceChance: 0.8,
tripleChance: 0.1,
maxTags: 3,
};
const letterReplacements: { [index: string]: string } = {
S: "$",
A: ... | fbd84bd0bc98b1ee23f73d6ce174450a8de1cb74 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | yhdgms1/Swagify | 3f16910c73300176f04b109f679e95d957e555ec | c0ce39806547a5d16297265436bbfdef087da3cd |
refs/heads/master | <repo_name>NoyesE/GameProject<file_sep>/README.md
# GameProject
AdvancedDotNetWebClass
Need to implement a user player object to go in the database and the main game
This is a game about building a town with your friends
<file_sep>/GameProject/Controllers/HomeController.cs
using System;
using System.Collections.Gene... | e8d4c32e42aafe9d09a701a179b5fd53b55ae47b | [
"Markdown",
"C#"
] | 3 | Markdown | NoyesE/GameProject | 18b588069f7c9ffc757396b508ee4202044c218e | 81f1936c6e59d22dfdcb2af9038dcef9ff2b2e44 |
refs/heads/master | <file_sep># Import the necessary package to process data in JSON format
try:
import json
except ImportError:
import simplejson as json
# Import the necessary methods from "twitter" library
import oauth2 as oauth
# Variables that contains the user credentials to access Twitter API
ACCESS_TOKEN = '1238348797-5G... | 113cf2b5366bee61e5a3b76246247b97aa7abb97 | [
"Python"
] | 1 | Python | jacobrake/subtweetconnection | 7fab0ad1693969e9a0c53717345e25c1b89fa87e | fdb71c2313e285a181114e089e13c3cb772e25f6 |
refs/heads/master | <file_sep>"""Connect to the API gateway in the associated template."""
import asyncio
import json
import sys
import websockets
async def main(uri):
"""Connect to websocket and send/read messages."""
print("Making a connection")
async with websockets.connect(uri, ssl=True) as websocket:
print("Con... | edc8074c53958e2ea84e97351455f0382c6cad03 | [
"Python"
] | 1 | Python | MaxwellGBrown/aws_api_gateway_websocket_example | 5a22d28f2f12bf12a14a8b570794bfbeabc465fc | a9eb7b87b1104c0622f0a6602bccb7b42a28a4dd |
refs/heads/master | <repo_name>quangtuan9237/DownloadFromChromeNetwork<file_sep>/index.js
const CDP = require('chrome-remote-interface');
const execFile = require('child_process').execFile;
const spawn = require('child_process').spawn;
const child_process = require('child_process');
const readline = require('readline');
const rl = readli... | 2ef1245b74219daf87688711d7f8a348df319a58 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | quangtuan9237/DownloadFromChromeNetwork | afad1c01ea19f10cb336e56ed926bb528ec2817c | 43eb1242f3fa363a136ed61ec3c8e214a004bae8 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
class AddTodo extends Component {
constructor() {
super();
// Same thing as the App component. We need to initialize todo on state to be used in our render method
this.state = {
todo: ''
};
}
// This is an example of a typical handle chan... | 8c127d41efe9b46e78169a50dafafd4c6dcc80c8 | [
"JavaScript"
] | 2 | JavaScript | thawkinsusa/react-3-demo-notes | 396b271d35ed9a3b47298f2b32020f8517c67468 | bdac07888c4095e0bbd3f305f9e9222e52996091 |
refs/heads/master | <file_sep>export const environment = {
production: true,
config: {
apiKey: "<KEY>",
authDomain: "challenge-6ef58.firebaseapp.com",
databaseURL: "https://challenge-6ef58.firebaseio.com",
projectId: "challenge-6ef58",
storageBucket: "challenge-6ef58.appspot.com",
messagingSenderId: "9452652773... | 72d8319beb6f491e63eb2be102cc51466ea84dda | [
"TypeScript"
] | 6 | TypeScript | Carlos123211/ChallengeRx | e692ca279b3743524d9f82649a94d0683f988c1b | b1d7dfc1c10e6c8a6b4090f80021dbc2650345f5 |
refs/heads/master | <repo_name>USGS-CIDA/mlr-python-base-docker<file_sep>/Dockerfile
FROM python:3.6-alpine
LABEL maintainer="<EMAIL>"
ENV USER=python
ENV HOME=/home/$USER
ENV artifact_id=sample_app
ENV gunicorn_keep_alive=75
ENV gunicorn_silent_timeout=120
ENV gunicorn_graceful_timeout=120
ENV bind_ip 0.0.0.0
ENV protocol=https
ENV lis... | 0709bcb9bbec3bc847098b5522bd800c3eafeacf | [
"YAML",
"Markdown",
"Python",
"Dockerfile",
"Shell"
] | 8 | Dockerfile | USGS-CIDA/mlr-python-base-docker | cce66e383b65c1692bbd02ea706b43f10266d9ce | 44d2abdcd55e0920884d1a8a125708c982e3e5d4 |
refs/heads/master | <repo_name>dregin/mastodon-to-others<file_sep>/plugins/ifttt-poster.py
import requests
import yaml
def post(post):
# Attempt to load config
config_location = "config/ifttt.yml"
config = {}
try:
with open(config_location, 'r') as stream:
try:
config = yaml.load(stream... | 359da463957c5fd54f4eec00bae3c867db121323 | [
"Markdown",
"Python",
"Text"
] | 5 | Python | dregin/mastodon-to-others | 3e08aa52fd3b433ccc5897e293af15b21f902d93 | 3f277f227a3d5cd8000747287d0538453f274460 |
refs/heads/master | <file_sep>from sqlalchemy.dialects.postgresql import JSON, ARRAY # type: ignore
from sqlalchemy import Index # type: ignore
from service import db
# N.B.: 'Index' is only used if *additional* index required!
# [Index is created automatically per 'primary_key' setting].
class TitleRegisterD... | d50460ed488c9ebf93bceda37e6c72cf6c2c90b8 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 26 | Python | LandRegistry/digital-register-api | 853e5f5a8fcb5369c3679bb893cd88bf03c89855 | 2da4467515045a297080bcff7f3dc3616ce9cd94 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import c3 from 'c3';
import './Chart.css';
import PropTypes from 'prop-types';
class Chart extends Component {
static propTypes = {
columns: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number]))),
chartType: Pr... | cc7d82864c97a8479bfd52c44a917d80dff9d47a | [
"JavaScript"
] | 5 | JavaScript | pagas/first-react-app | 9a11334bb15b6c0390f244857a3abdae15109c91 | f3cbd9c68706c4f49e76c89a929c8855f5f1ad1d |
refs/heads/master | <file_sep>//
// UsersTableViewCell.swift
// GitHubUsers
//
// Created by <NAME> on 2019/4/11.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
class UsersTableViewCell: UITableViewCell {
@IBOutlet weak var imgvwAvatar: UIImageView!
@IBOutlet weak var lblName: UILabel!
@IBOutlet weak v... | 4dedcb319ef25d3f25b32219de2febd3302c855f | [
"Swift",
"Ruby"
] | 10 | Swift | gaojian922188/test-mobile | 2cbb731051e8d9079b58b5b0b20aa90e17b24089 | ed34d926e6c2db7d585b67ed6df5bde98c616220 |
refs/heads/master | <repo_name>yudg1987/springboot-dubbo<file_sep>/boot-dubbo-api/src/main/java/com/boot/service/TestService.java
package com.boot.service;
import com.boot.domain.User;
import com.boot.bo.ToClickHouseBo;
import com.github.pagehelper.PageInfo;
public interface TestService {
String sayHello(String str);
User fin... | 3580311af79c0d198a4426e998fe61699fd14073 | [
"Java",
"Maven POM"
] | 8 | Java | yudg1987/springboot-dubbo | 743eb6b2d3cdeb7bc4771d06859694174a4969e3 | 46cc2abb3d4b5795994c35ec284ca8376ea13af0 |
refs/heads/master | <file_sep><?xml version="1.0" encoding="UTF-8"?>
<TestSuiteEntity>
<description></description>
<name>a.add_credit_card_info</name>
<tag></tag>
<isRerun>false</isRerun>
<lastRun>2018-05-23T14:51:56</lastRun>
<mailRecipient></mailRecipient>
<numberOfRerun>0</numberOfRerun>
<pageLoadTimeou... | 880e7f8023870b7d3653241b427725ae3360c56a | [
"TypeScript"
] | 11 | TypeScript | alanchan-kl/BOLD.Reward | fbb796ec965ed475b5d1f509274474a347d02cdd | fd165762904a2efaf0474286792706867f034b2a |
refs/heads/master | <file_sep>package com.klayzz.designpattern.structure.proxy.staticproxy;
import com.klayzz.designpattern.structure.proxy.staticproxy.controller.UserController;
import com.klayzz.designpattern.structure.proxy.staticproxy.entity.RequestInfo;
import com.klayzz.designpattern.structure.proxy.staticproxy.entity.UserVo;
impor... | 6ee67fbeaa7cbd880c20328f935e0036cf748e41 | [
"Markdown",
"Java"
] | 41 | Java | Pngyul/design-pattern | 0e73b8020d8905a357daaf7e750a779a139b9dd7 | 2c450076091303158622bf67df25d59505e9cd2d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.