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>//
// CZPeperNote.swift
// CZPeper
//
// Created by Cui on 16/4/11.
// Copyright © 2016年 Cui. All rights reserved.
//
import Foundation
import UIKit
class CZPaperNoteView: UIView {
}<file_sep>//
// CZPeperPageControl.swift
// CZPeper
//
// Created by Cui on 16/4/11.
// Copyright © 2016年 Cui. Al... | 67a23d9bee5a2356e1144b6540dc04f9773e4015 | [
"Swift"
] | 5 | Swift | xiaocuihero/CZPeper | dca36641dd80016013381af854ac953dd7594311 | 68100f78d563cf4de9e6ee92b0f6b8f82cf700d3 |
refs/heads/master | <file_sep>from lxml.html.builder import E
from lxml.html import tostring, fromstring
from brutemark.markdown import markdown
def test_inline_HTML():
test = \
"""<table>
<tr>
<td>Foo</td>
</tr>
</table>"""
root = E("div", **{"class":"markdown_root"})
expected = \
"""<div class="brutemark_root"><ta... | 32dac874fe24d0332341fabebb524167c9dda1f3 | [
"Python",
"INI"
] | 17 | Python | devdave/brutemark | 2e85a5483c70809ee7cfd7818537c8b1d1b366cc | 08c41ecc07a20884634f3a212eda106bc74799a3 |
refs/heads/master | <file_sep>/*(c) <NAME> 2009 - license: http://www.opensource.org/licenses/mit-license.php*/
function MBCalendar(m, y)
{
this.m = m;
this.y = y;
this.weekDays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
}
MBCalendar.prototype.$ = function(s) {return document.getElemen... | 2e905fd1d4ba727af6c8bdc507d58dce521e54df | [
"JavaScript",
"PHP"
] | 48 | JavaScript | marcellushan/businesscards | ceeaecd6f5454aa774f727c6cfd29b16d6a70e89 | a59e74d25eedf1606af4ddd5d30be849105fc055 |
refs/heads/main | <file_sep># Arraystats
ArrayStats is a python module which shows brief, quick statistics of an array. This is a very lightweight module. (Needs numpy module as of version 1.0)
[See wiki](https://github.com/nimbus2009/Arraystats/wiki)
<a href="https://www.hitwebcounter.com" target="_blank">
<img src="https://hitwebco... | 9513a61b2a5d69b043e03bbede7fb7df5c4add0b | [
"Markdown",
"Python"
] | 2 | Markdown | usernamenotfound-404/Arraystats | 83e8b274c5fe508d938d2f3885257b3acb1d3147 | ea90cc1ba46e7741da3301d921eea083655a9904 |
refs/heads/master | <repo_name>handar/ThreadRacer<file_sep>/pthread_race.c
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
/**
* THESE DEFINE VALUES CANNOT BE CHANGED.
* DOING SO WILL CAUSE POINTS TO BE DEDUCTED
* FROM YOUR GRADE (15 points)
*/
/** BEGIN VALUES T... | d4f104b94c4c8210ceecbb134ba16c4850f812a2 | [
"Markdown",
"C"
] | 2 | C | handar/ThreadRacer | 91c1bc60a9766c0d1d04ec3045c5313af2a91629 | 148c978683ea681ad94cb303d0b70d67ec49e9c6 |
refs/heads/master | <repo_name>Map-Data/regiontileserver<file_sep>/reimport.sh
#!/usr/bin/env bash
for server in `cat server_list`; do
./import_data.sh ${server}
done
<file_sep>/install_deps.sh
#! /bin/bash
set -e
. settings.sh
if hash apt-get 2>/dev/null; then
echo "Using apt-get to install"
sudo apt-get install git pytho... | b558f276f84bdc34168f125a130b059ea106d4a7 | [
"Markdown",
"Shell"
] | 5 | Shell | Map-Data/regiontileserver | b486a2feeb297bfa77620d5613ad7ee8c09db462 | d1d71d5858dea736374f171e04343eb761206262 |
refs/heads/master | <repo_name>JakobHavtorn/nn<file_sep>/examples/mnist_rnn.py
import os
from context import nn, optim, utils, evaluators
from utils.constants import SAVE_DIR
from utils.utils import get_loaders
class RNNClassifier(nn.Module):
"""Feedforward neural network classifier.
Parameters
----------
in_features :... | fa43b60d39eb283fbd63b7cff9cff9c8a4f4fa73 | [
"Markdown",
"Python"
] | 32 | Python | JakobHavtorn/nn | 30d37a8dd0fca0a7d9a1ed0553b2a3346dfc53e3 | c990398d0c426d0382aa1e73df539674d972cebe |
refs/heads/master | <repo_name>sahuvicky1993/cpp_practice<file_sep>/recur_str_last_ocur.c
#include<stdio.h>
static int count;
char* find_ocur(char*p,char ch){
static char*q=NULL;
if(*p)
{
if(*p==ch){
count++;
q=p;
}
return find_ocur(p+1,ch);
}
else
return q;
}
main(){
char s[]="VivekKumarSahu";
/* Find last ocurranc... | e3adefe18331dd42a30747f60fe8c9272257d60a | [
"Markdown",
"C",
"C++"
] | 13 | C | sahuvicky1993/cpp_practice | 0004af5daaeef3ece6b2ba7b6e54ad1ab9d47efe | ec98f9687852e38c86866f2a119048dd88f22dc2 |
refs/heads/main | <file_sep>import styled from 'styled-components';
export const Container = styled.form`
h2 {
color: var(--text-title);
font-size: 1.5rem;
margin-bottom: 2rem;
}
`;
<file_sep>using Microsoft.EntityFrameworkCore;
using System.Threading.Tasks;
using TrendContext.Domain.Data.Interfaces;
namespace TrendCo... | cbebcaf32c2eeef727d5b40c4819417305592c0a | [
"Markdown",
"C#",
"TypeScript"
] | 62 | TypeScript | leschar/toro | 36b885dd1bcafc0638bd34cca332d2d3508e9462 | 435fe44c8063479b062911e689386bf9385c53b7 |
refs/heads/master | <file_sep>#!/usr/bin/env ruby
class Tile
attr_reader :value, :value_mask, :x, :y
def initialize
# initialize puzzle data structure
# all values are 0x1 f f -> the potential values they can be
# 1-9 each represented by a bit
@value_mask = 0x1ff
end
def valid?
neighbors do |neighbor|
i... | 03248f6cd40d9fefcc99a264378cafc0fdb3cbcb | [
"Ruby"
] | 1 | Ruby | pjschlic/rubydoku | a02b07286a769d017e309b2b635f92bf630906cc | dc22ee4597dcf84f0b533943f38d862cb6897488 |
refs/heads/master | <repo_name>tmotoole/redcap-admin-dashboard<file_sep>/AdminDash.php
<?php
namespace UIOWA\AdminDash;
use ExternalModules\AbstractExternalModule;
use ExternalModules\ExternalModules;
require_once 'vendor/autoload.php';
class AdminDash extends AbstractExternalModule {
private static $smarty;
private static $pu... | 3f0373f673cec003e031f9242955e6c531aafee9 | [
"Markdown",
"SQL",
"JavaScript",
"PHP"
] | 10 | PHP | tmotoole/redcap-admin-dashboard | 96384c19f6a33e71d6219431433f6c74409805ba | 62d79a5e485e8abfdd220089a868142995ff2e4e |
refs/heads/main | <repo_name>mastertar/softwaresatAssistantBot<file_sep>/main.py
import discord
import os
from keep_alive import keep_alive
from discord.ext import commands
# from replit import db
# db["key"] = "value"
# value = db["key"]
# del db["key"]
# keys = db.keys()
# matches = db.prefix("prefix")
# db["number"] = {
# "count... | d32b9c022f16f52f4643cda37d022cfa952c1033 | [
"Python"
] | 1 | Python | mastertar/softwaresatAssistantBot | dfb355cd1dc9a819d8f34f46f0471aea04d9c1ba | 270edc3a49f2f8a106c053d28f2255af35c1c850 |
refs/heads/master | <file_sep>
# Assignment_14_Fizz_Buzz
"""
Print numbers from 1 to 100 inclusively following these instructions:
if a number is multiple of 3, print "Fizz" instead of this number,
if a number is multiple of 5, print "Buzz" instead of this number,
for numbers that are multiples of both 3 and 5, print "FizzBuzz",
print the... | 5f1be11b69b3fb42d2bc737610529288f9a3596c | [
"Markdown",
"Python"
] | 18 | Python | SemihDurmus/Python_Helper | 0f85a963a18bfdfeec5a03c2392824abd51077dc | ee434d5cdb0abe4198a799ad42aa7600fbd5c5b1 |
refs/heads/master | <repo_name>mgicode/mgicode-jenkins-pipeline<file_sep>/jenkins/ms-echo/1.0-snapshot/dev/springboot-maven-docker/config/init_before_config.properties
dockerServerIP="10.1.12.50"
dockerServerPort="8030"
dockerServerUser="root"
dockerServerPwd="1"
DOCKER_HOST_SSH_CREDENTIALSID="<KEY>"
CODE_CREDENTIALSID='<KEY>'
CODE_GIT_UR... | ee70b9aea55d3f0a506162e21909476048822bb1 | [
"Markdown",
"Shell",
"Dockerfile",
"INI"
] | 26 | INI | mgicode/mgicode-jenkins-pipeline | e2a7c6e17d04c9bb8b0fc5e550364d6cea16a00b | f07d5ca36a47df72ae4386d7a9e889447ced5e85 |
refs/heads/master | <repo_name>Munjie/LogisticsMS<file_sep>/src/main/java/com/mwj/dao/ProducingareaDao.java
package com.mwj.dao;
import com.mwj.mapper.ProducingareaMapper;
import com.mwj.model.Producingarea;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import javax.annotation.Resource... | e19d014db4e2c07d06a54c5abd872552f79bcc1d | [
"JavaScript",
"Java"
] | 22 | Java | Munjie/LogisticsMS | 4087f7a29538ad6ab28fc97af9621ed5ec5b371c | cb9206767c6d002dbc360228809a68a1a2ec8ef5 |
refs/heads/master | <repo_name>gitalek/lambda-brain-data-structures<file_sep>/README.md


<file_sep>/Makefile
install:
poetry install
run:
poetry r... | 7bbf85415ea2e99ed08d7e312ad8a4880c8f1a26 | [
"Markdown",
"TOML",
"Python",
"Makefile"
] | 8 | Markdown | gitalek/lambda-brain-data-structures | e8c98126f80c642543d534623be20589a42a8b34 | 4e0558bb8edacf59daf8651a625c63e9e4376cdb |
refs/heads/master | <file_sep>$(function ($) {
$('.profileBG').backstretch($('.profileIMG').attr('src'), {fade: 800});
});
<file_sep>var body_var,
html,
doc,
wnd,
global_window_Height,
popupOrderItem,
controlPanelBtn,
header,
overlay,
popupBtn,
$completed_orders_form;
$(function ($) {
body_var = $('body');
htm... | 34c63c9359e6a257bf304b2ae92c757be66a3e03 | [
"JavaScript"
] | 3 | JavaScript | naverstay/senat | c3c200ab820b92b7b646b4db46b629ad11e5d339 | 98a996d19d588d763db66f885dc74de8ffde7c55 |
refs/heads/master | <repo_name>luimi/emws-server<file_sep>/Gemfile
source 'http://rubygems.org'
gem 'rails','~>3.0.1'
gem 'thin'
gem 'devise'
gem 'json'
gem 'eventmachine'
gem 'em-websocket' | 9350c6b69bd378a5be30624666e2a2853a1c886b | [
"Ruby"
] | 1 | Ruby | luimi/emws-server | ed37d52601b09d1d3c0f53531945e19a3e961588 | ec36d705f50d130cda75dbff6c787f160d88cf9a |
refs/heads/master | <file_sep>using System;
namespace MiniS.Areas.Identity.Enums
{
[Flags]
public enum UserLevel
{
Super = 100000 | Admin,
Admin = 10000 | Access | Group,
Access = 1000 | Regular,
Group = 100 | Regular,
Regular = 10
}
}<file_sep>import { Component, OnInit, Input... | 0d492bf594b5eb79d5f166b98d45b0de15ce18ae | [
"Markdown",
"C#",
"TypeScript"
] | 281 | C# | achouaiekh/MiniS | c45e7379210b9993ccaebeaeef1b8c473a5741fe | a5b2b8fa501920e27e3c04218429afefeeb4b70b |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
import datetime
import requests as req
import xmlschema
from smtplib import SMTP
from email.mime.text import MIMEText
import sys
from eztable import Table
def return_unicode_string(_str):
return u''.join(_str)
class RedmineConnection:
parameters = None
server = None
... | f0e5cb6fc28073a84877eff6ba90101798f95616 | [
"Python"
] | 1 | Python | jzabrodin/redmine_email_notifier | 9354c99aa50574bf9061074c891bdfcfb0261068 | 07ce3aaf8f76ef7c5603f656779c338ea95947f1 |
refs/heads/master | <repo_name>NorthSanta/Mesh_Mecanica<file_sep>/GL_framework/src/physics.cpp
#include <imgui\imgui.h>
#include <imgui\imgui_impl_glfw_gl3.h>
#include <GL\glew.h>
#include <glm\gtc\type_ptr.hpp>
#include <glm\gtc\matrix_transform.hpp>
#include <cstdio>
bool show_test_window = false;
float radius;
float reset ;
const int ... | 44afeb6948d291993a141bc9004094b03f97314d | [
"C++",
"INI"
] | 2 | C++ | NorthSanta/Mesh_Mecanica | dd9fb12f5e3da668d128553ed2ba6d0ec6f32250 | f028a0098a908521c9386461fd410374ab2a946a |
refs/heads/master | <file_sep>/* globals _,$,Backbone,Marionette,Howl */
(function () {
"use strict";
// Constants
var SETTINGS = {
API: window.location.origin,
ENABLE_PLAYLISTS: 0
},
// Models
Item = Backbone.Model.extend({
urlRoot: SETTINGS.API + "/item/",
getFileUrl:... | ddbed62a757aeb37af6881450138ec421e91947c | [
"JavaScript"
] | 1 | JavaScript | eidoom/beets | 9c45e281d2122ca711af1e63358c6c7daae4ecaa | d0cb3a039d661d77be3e67e531658c1309dbc434 |
refs/heads/master | <repo_name>jasoncd/sphinx-small<file_sep>/README.md
# sphinx-small
For Linux / Rasbian Platform:
## To compile:
cd src
./mk
cd ../test
./mk
## To test speech to text:
In one command line window -
cd test
./run-sphinx
In another command line window -
cd test , use a USB mic:
./vad.exe
speak to mic, see res... | 1dacb262c86023ef6311869c3f4587457bf9c89a | [
"Markdown",
"C"
] | 6 | Markdown | jasoncd/sphinx-small | 29ee3341f9b28cbf2e14e680aca22053edac18d9 | c341236177232363c3157bf6d0b974924474e8ac |
refs/heads/master | <file_sep>(function($) {
$.fn.tagInput = function(options) {
var opt = $.extend({
cls: "tag_input"
},
options);
var dragObj = null;
var dragObjStartPoint = null;
var src = this;
var cls = opt.cls;
var value = src.val();
... | 04c3f7fc301a0f4abd680a3d9a68272706d65cdd | [
"JavaScript"
] | 1 | JavaScript | rodiontsev/jquery-taginput | 30c17bf039e1a82984808163271959ffbb7e1500 | e71f7cfb04608f0326566c1c571885c1d60614d4 |
refs/heads/master | <repo_name>burakyildiz07/discountCalculator<file_sep>/index.php
<?php
require_once 'DiscountCalculator.php';
$items ="
[
{\"title\":\"Deneme Urun 1\",\"price\":47.2,\"count\":1,\"is_outlet\":true},
{\"title\":\"Deneme Urun 2\",\"price\":7.3,\"count\":3,\"is_outlet\":true},
{\"title\":\"Den... | 3e761e4b905bb6dd580323c4438c4c3866f00109 | [
"PHP"
] | 2 | PHP | burakyildiz07/discountCalculator | 972f3822f7c68c1d76dc61c84a97cc80710a1eed | 534be7541f27fb5b0ff23eaa15a855374084eac9 |
refs/heads/main | <repo_name>darranhayes/bayesian-forecasting<file_sep>/BC/Program.cs
using ProbCSharp;
using System;
using System.Linq;
using static ProbCSharp.ProbBase;
namespace BC
{
class Program
{
static Func<bool, Dist<bool>> EuVetosExtensionRequest = isBorisInPower =>
from franceVetos in isBorisInPow... | 8c977be5e8c1b1e20c97b47f5916e9589e9403f5 | [
"C#"
] | 1 | C# | darranhayes/bayesian-forecasting | 49fd366e7c02b1f50789c56c4d3038e73dfff420 | e2ca39421e1309160c30c0a168a5aa3354c43034 |
refs/heads/main | <repo_name>Tadeo25/ListaDeTareas-3-A<file_sep>/src/components/ItemTarea.js
import React from 'react'
import ListGroup from "react-bootstrap/ListGroup";
export default function ItemTarea(props) {
return (
<div>
<ListGroup.Item>{props.nombreTarea}</ListGroup.Item>
</div>
)
}
<file_se... | b35146c8e080ecb78f93d2725551c430719a5e58 | [
"JavaScript"
] | 4 | JavaScript | Tadeo25/ListaDeTareas-3-A | 831df792f97f31752c56060e0ba2b2b70bdf8cf2 | cd1eb89621ec573f0e9e1749711ff7ba9c4fd174 |
refs/heads/master | <file_sep>/*
This javascript validate whether user is logged in or not.
If user is not logged in then it will open the login page else continue
with current page to load.
*/
var is_logged_in = sessionStorage.getItem("is_logged_in");
if(is_logged_in==null || is_logged_in==false){
location.href="index.html";
}<file_... | 6993527981d307f068471e683b7b6d733c83f5ad | [
"JavaScript"
] | 5 | JavaScript | manasvipatel20/LMS1_2121009 | f68c3f2fda1b115d0b91dd4f41c821f043ddbe0d | bb936e874b92c4e5b1afec037783eafb08be1e69 |
refs/heads/master | <repo_name>withphonex/telecor<file_sep>/src/rabbit.js
import amqp from 'amqp'
import log from './logger';
const { RABBIT_HOST, RABBIT_USER, RABBIT_PASSWORD } = process.env;
const rabbit = amqp.createConnection({
host: RABBIT_HOST,
login: RABBIT_USER,
password: <PASSWORD>
});
rabbit.on('error', e => log.error(`Erro... | 7ab37dcbf2b7efd767092cc7505a21006190afc7 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | withphonex/telecor | f0107a642c546049ec78b8270adfe514c4ed43b1 | f20b04607991642a19ff3f1992ac133b342b3416 |
refs/heads/master | <repo_name>AravinthV/notesclone<file_sep>/notes_list_app/migrations/0003_list_title.py
# Generated by Django 3.0.7 on 2020-07-11 09:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notes_list_app', '0002_auto_20200710_1605'),
]
operations = [... | b63448b486254332242d2f2d4d7b3a7969c0116c | [
"Python",
"Text",
"HTML"
] | 9 | Python | AravinthV/notesclone | 4d53c5cd3a9e2199fd31fc9d27edad522c80678e | 37b07e17e0cb4d85c71f3d75b71fc19c61e2cda5 |
refs/heads/master | <file_sep>import os
AEROSPIKE_EVIDENCE_URL = os.getenv('AEROSPIKE_EVIDENCE_URL')
AEROSPIKE_EVIDENCE_TTL = os.getenv('AEROSPIKE_EVIDENCE_TTL', 2592000)
AEROSPIKE_EVIDENCE_TIMEOUT = os.getenv('AEROSPIKE_EVIDENCE_TIMEOUT', 0.800)
SPLUNK_URL = os.getenv('SPLUNK_URL')
SPLUNK_LOG_FORMAT = os.getenv('SPLUNK_LOG_FORMAT')
SPL... | 749aa7d9a248508a5669c6fbee435307007cd1de | [
"Python",
"Text",
"reStructuredText"
] | 7 | Python | lojaintegrada/pysplunk | ee6c3b43f94dcc8c2b20fc7116289baa08a343e3 | 80855f44dd8a8c7cef5629bf6d9c6eb325d883f3 |
refs/heads/main | <file_sep>import java.util.Scanner;
import javax.management.relation.RelationSupport;
class SingleLinkedList {
public int data;
public SingleLinkedList next;
public SingleLinkedList(int data) {
this.data = data;
}
@Override
public String toString() {
return "SingleLinkedList ... | 4920620e4e1081a5221eba7fd5184e950e19749d | [
"Java"
] | 4 | Java | nkumar9733/Skill_Training | 85e64bd594ad57a6348c805e970f8aa626dc2021 | 6cb64d84f1cb96fbdb9c190583b8331777ef6255 |
refs/heads/master | <file_sep>window.onload = function() {
var React = {
createElement: ( tagName, props, children = [] ) => {
var elem = document.createElement(tagName);
for (var i in props) {
if ( i === 'style' && typeof props[i] === 'object'){
for (var prop in props[i]){
elem.style[prop] = props.style[prop... | fa26c81c717bfa8dc52bdfb0d7c378c99165d88d | [
"JavaScript"
] | 1 | JavaScript | AlexRom000/apiko-lesson_1 | e087e66bfdb1cfba9ad4d350410286198a2b19a3 | f9edcd4f5a0af314cc8adb0aacf6c41576d65a14 |
refs/heads/main | <repo_name>Nastya880/IndustialProg<file_sep>/Source.cpp
#include "Header.h"
using namespace std;
string to_str(double val)
{
char val_str[20] = { 0 };
snprintf(val_str, sizeof(val_str), "%.0lf", val);
return val_str;
}
string AnyX(double y)
{
string y_str = to_str(y);
return "4 " + y_str;
}
s... | 867a1bc2fb8c437659874e81398b248aef0637ff | [
"Markdown",
"C++"
] | 4 | C++ | Nastya880/IndustialProg | bd9e0d0b975294f542b7f38ad68a7a461749307a | b6d6766c7d2b0240e79d045e00e6653faa1d8cb2 |
refs/heads/master | <file_sep>/* eslint-disable */
import { wrapUrlWithProxy } from '../services/proxy-service.js';
async function copyToClipboard(imageUrl) {
navigator.permissions.query({ name: "clipboard-write" }).then(async result => {
if (result.state == "granted" || result.state == "prompt") {
const image = a... | 0d8fd2c1ac711baa46b853ebad6f7dfbf0ace0c6 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | marcinjahn/alpha-img.spa-vue | 3787181b43be64c3d2b52a16a2c5423f332b0a63 | 7ae0199940fbe6315bb087effc16645f94221bbf |
refs/heads/master | <file_sep>package webapi
import (
"encoding/json"
"log"
"net/http"
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
)
var (
upgrader = websocket.Upgrader{}
)
func Router() *mux.Router {
router := mux.NewRouter()
router.HandleFunc("/api/health", handleHealthCheck)
router.HandleFunc("/api/stream", ha... | 8b61e4cf2c7a305177f7cb301c7d1580a382bdd2 | [
"Markdown",
"Go Module",
"Go",
"Shell"
] | 11 | Go | yuekcc/fns | 656ad0de5a0eaf69b7f2f046a941f233d527e870 | fcf9d95e9dc1b0a85b75bf73a5fb6c4bd8b19702 |
refs/heads/master | <repo_name>IvashchenkoArtem/Page<file_sep>/js/script.js
$(function () {
$('.js-nav-toggle').on('click', function () {
$(this).toggleClass('toggler__icon--open');
$('.js-nav').toggleClass('nav--open');
});
});
$(function () {
$('.js-date').on('click', function () {
$(this).toggleClas... | f4303acfdaba6558fa9fe97ab83c6adb0a2f57cf | [
"JavaScript"
] | 1 | JavaScript | IvashchenkoArtem/Page | 478fc1cb42f061eba1430f9521bb68fdc71626eb | d173d00c772519dcbd328b94b0340f98370b9b21 |
refs/heads/master | <file_sep>import { Mesh } from "@babylonjs/core";
import GameComponent from "./game";
export default class BallComponent extends Mesh {
/**
* Redefine the scene as GameComponent as the scene as a script attached to it.
* @override
*/
_scene: GameComponent;
private _startPosition;
private ... | aeab020f6a268f3942fd80371f2994107e8abd20 | [
"Markdown",
"TypeScript"
] | 7 | TypeScript | remiceres/pingponggame_from_bjseditorv4beta2 | 41bb5d998008c07fe93ee8c449473adc19baa71a | 0c41bc5c6ec10b9ac96ef9dbe3c077e810d36039 |
refs/heads/master | <repo_name>KumarReddy409/instagramclone<file_sep>/src/App.js
import React from 'react';
import pic from './assets/instagram.png';
import Post from './Post'
import './App.css';
function App() {
return (
<div className="app">
<div className="header">
<img src={pic} className="headerimg"
alt="hello"></i... | 5d9208b505c75dd872bc837e6a67376aea88c784 | [
"JavaScript"
] | 1 | JavaScript | KumarReddy409/instagramclone | e2bf838bf8e5ab303a4ea680a2d223011d0ed3c6 | 196dc054ac4928f9bc07235ec26df6ad4bb9ae58 |
refs/heads/master | <repo_name>sajadmsNew/react-usereducer<file_sep>/README.md
# react-usereducer
A React app that manages data using the reducer and context APIs.
Based on the following tutorials:
- [<NAME>: React Hooks: useReducer](https://www.youtube.com/watch?v=cKzrgB6MqqM)
- [<NAME>: React Hooks: useContext](https://www.youtube.co... | 5de1e59e293f52d10378dde639153031d4c81c03 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | sajadmsNew/react-usereducer | 398701f108d3ac6c7d2b19f4e3c1586f1ae3c97d | e7918758eb882f722356b13fa8a125ee99db8f75 |
refs/heads/master | <repo_name>OmarBanoun/projet_stage<file_sep>/src/Form/SubscriptionType.php
<?php
namespace App\Form;
use App\Entity\PsSubscriptionDetail;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extensio... | e8f075f4c696f2011ba29670688d1e73d62122b9 | [
"PHP"
] | 27 | PHP | OmarBanoun/projet_stage | 70a9816470a2cc80603078cd5460043679cf3ce8 | d3e010db011a9032ca5c8f444bc91d18237dacfe |
refs/heads/master | <file_sep>package bancho
import (
"log"
"net/http"
"time"
"github.com/nsogame/common"
)
type BanchoServer struct {
config *Config
db *common.DB
rds *common.RedisAPI
router http.Handler
}
func NewInstance(config *Config) (bancho *BanchoServer, err error) {
// db
db, err := common.ConnectDB(config.Db... | 5d964920c71d06e56bd5839c988af18566a40124 | [
"Markdown",
"Go"
] | 9 | Go | nsogame/bancho | 7e5c467a392f694fc0f06f680a6f03d25a2077e3 | 73ae2d66ad89b8bb0d81ae0ee91c15538c60e34f |
refs/heads/master | <file_sep>// to compile:
//gcc -I/usr/ort/lib/ffmpeg-2.8.1/include -L/usr/ort/lib/ffmpeg-2.8.1/lib -Wl,-rpath=/usr/ort/lib/ffmpeg-2.8.1/lib demux.c -o demux -g -lavformat -lavcodec -lavutil
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
}
#define CHECK_E... | 1d698db20524d5281f7ed09332a394d8c374fac3 | [
"C++"
] | 1 | C++ | whiack/ffmpeg | 68b83e1379e62b66a2487c2350e02a06a7fa6ac1 | 6eae90bcc9b045e9cd2a6b054d3892fb5c93d8c8 |
refs/heads/master | <repo_name>marwis95/Aumatic-Database<file_sep>/AUMATIC_BAZA/add_model.php
<html>
<head>
<meta http-equiv="Content-Language" content="pl">
<META NAME="Keywords" CONTENT="">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<title>Dodaj sterownik</title>
<link rel="stylesheet" href="style.css" ... | 0fd71fb3b02c21ac6e815476aff12f11c1ff4de1 | [
"PHP"
] | 10 | PHP | marwis95/Aumatic-Database | 22e47eb88c8b98aa9d4918ccd6816c22d30d0d9f | abe9da1bcf0c869d9cd7539873b5e935547f2b94 |
refs/heads/master | <file_sep>class Player
attr_accessor :name,:position, :age, :height, :weight
@@all = []
def initialize(hash)
hash.each{|key, value| self.send("#{key}=", value)}
self.class.all << self
end
def self.all
@@all
end
def self.reset
self.all.clear
end
def self.count
self.all.length
end
... | 8691f2d304269ea1b3619eb1d3796ae7dd262ad7 | [
"Ruby"
] | 4 | Ruby | kjgmez/redbull_team_gem | e8f792772dc59b41d34339380127f220eb5d613f | 43a473518e7b4b7d71a87298af7de0c18a66af68 |
refs/heads/master | <repo_name>bradchao/TCCA_Android_MyIO<file_sep>/app/src/main/java/tw/org/tcca/apps/myio/MainActivity.java
package tw.org.tcca.apps.myio;
import androidx.appcompat.app.AppCompatActivity;
import android.content.ContentValues;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.datab... | bc1b2ee0fde07272f9b17d5cbcdc26befd8dff04 | [
"Java"
] | 1 | Java | bradchao/TCCA_Android_MyIO | b3a9a0029d02cdb251b9b2151e8f01e54557b9e0 | 8f842a6e13703edeb8367c83ab6e2fb6d4d3ad5a |
refs/heads/master | <repo_name>MRomarali/hangMan<file_sep>/src/main/java/se/ecUTB/Omar/Ali/hangMan.java
package se.ecUTB.Omar.Ali;
import java.util.Random;
/**
* Hello world!
*
*/
public class hangMan
{
private static StringBuilder sb = new StringBuilder();
private static String[] secretWord = {"apple","watermelon","orange",... | d701ba08f4b0dbcf255d6433f7a25d1a69b78a9e | [
"Java"
] | 1 | Java | MRomarali/hangMan | a101819f45895c6c4a5ee41d9a4a4a6d0cf4a9d1 | 63f4bd18c4dc36017adccaca41b71d4b5853b2a9 |
refs/heads/master | <file_sep>export class KairosVerifyRsTransaction {
private _status: string;
private _subjectId: string;
private _quality: number;
private _width: number;
private _height: number;
private _topLeftX: number;
private _topLeftY: number;
private _confidence: number;
private _galleryName:... | f125b145ec4e862361df9f4a8e24e45582fb4b67 | [
"TypeScript"
] | 17 | TypeScript | blackgersain/secure-identity | 6688e0c471b1d78c268dab37bd4d32145d89148a | 98bd233b5db16bc2c793f37df2d0502fb53f492e |
refs/heads/master | <file_sep>import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.*;
public class TSALine implements Comparator<Passenger> {
public ArrayList<Passenger> passengers = new ArrayList<Passenger>();
public PriorityQueue<Passenger> priorityQueue = new PriorityQueue<Passe... | 8ca768a22de9644fd8c1f25d38039b265c8dd18c | [
"Java"
] | 2 | Java | shakked/facebook | 2327883fbb6353e5d224531a1a2d4552fd3f0548 | ba017c50e25d8cd87ebe105ad0e34f72d80fd1c3 |
refs/heads/master | <file_sep>// concurrency project main.go
package main
import (
"fmt"
)
func main() {
c := make(chan int)
defer close(c)
fmt.Println("Main - Welcome ")
go func() {
fmt.Println("Goroutine - 0")
c <- 10 //Send (blocks)
}()
a := <-c //Receive from Goroutine 0 and unblocks
go func() {
fmt.Println("Goroutine ... | b3c7af96dc6124deedf29b9b778407d490ba27d1 | [
"Markdown",
"Go"
] | 3 | Go | asheikm/golang_concurrency_examples | 208e8455f42a1879bff403e938f27fc27d8baa6f | 4d0432e50223d360466baf942cc3fbb17988aa7a |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import Swal from 'sweetalert2'
import { NewsService } from '../core/news.service';
@Component({
selector: 'app-register-news',
templateUrl: './register-news.component.html',
styleUrls... | e84365ff24e57aa3f8ff4c7de993d8d05c1aa27d | [
"TypeScript"
] | 3 | TypeScript | kiuromero/admin-cerro-landig-front | cfaa2adfcebd5707724b95ce12321b0c8fdb7e5f | 985412d07787ccc8ef6b1de6a73d1247cc85c855 |
refs/heads/master | <repo_name>9Harkonnen6/Yet_Another_isThisPrime<file_sep>/isThisPrime.py
while True:
try:
liczba = int(input('Give me a number: '))
if liczba > 0:
for i in range(2, liczba):
if (liczba % i) == 0:
print(liczba, 'That aint prime number!')
... | e58a4ee48993755c062fe37d08e0ef3823d47005 | [
"Markdown",
"Python"
] | 2 | Python | 9Harkonnen6/Yet_Another_isThisPrime | 075126481121859a95c73c1bfd338ca055c73278 | 41f21c1ef43c8a3d520599681929393b38357530 |
refs/heads/master | <file_sep>require('dotenv').config();
const express = require('express');
const cors = require('cors');
const app = express();
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
//const mySecret = process.env['MONGO_URI'];
const mySecret = "mongodb+srv://jensoni:KvvTNJgUr0LQP0JC@cluster0.... | 89c92eda72eb90e78d6219bc7b339357bb8ada93 | [
"JavaScript"
] | 1 | JavaScript | XThePresenceX/url-shortener | 594969e12640e3b71316bb96c585375a324bc7c9 | acbdc690477497a7fc0d2f198731c423af849114 |
refs/heads/master | <file_sep>/**
* AddingMachine.java - Second version
* @author <NAME>
* @data 10/05/2020
* @version 2.0
* @github https://github.com/wen7752/cse360assignment02
*/
package cse360assignment02;
public class AddingMachine {
//initialize the variables
private int total;
private String result = "0";
... | 77814953573b5ed946bc87a95d255ad748b3890e | [
"Java"
] | 1 | Java | wen7752/cse360assignment02 | e3a2a0e34363897e555fbaa05be1e572b76272fa | 1191bf15e026fe043969e68ce767bee2caeec9f5 |
refs/heads/master | <repo_name>reynoldjong/Kijiji-Rental-Data-Analyzer<file_sep>/frontend/src/components/Navbar/Navbar.js
import React from "react";
import classes from "./Navbar.module.css";
/**
* Component represents a navbar which appears at the top of the screen,
* mostly used for style
*/
const navbar = () => {
return (
<nav... | 2837d2802f9458ff6c4c144589cd8ab5c0f7b549 | [
"JavaScript",
"Java",
"Maven POM",
"Markdown"
] | 13 | JavaScript | reynoldjong/Kijiji-Rental-Data-Analyzer | 40c1c02ff0b16ab55a97d68be199dea581ca9a37 | 2b09d3b6d7f00ab65bbd8d0239a6402654bbedbd |
refs/heads/master | <repo_name>canjs/can-view-modifiers<file_sep>/src/test/helper.js
steal('can/util', function() {
var viewCheck = /(\.stache|extensionless)$/;
can.test = {
fixture: function (path) {
if (typeof steal !== 'undefined') {
if(steal.idToUri) {
return steal.config('root').toString() + '/' + path;
} else {
... | 4a5d4ea28a9067a3bb252a4b62341cb3307dfa89 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | canjs/can-view-modifiers | 50f2e80042b9a5c1cd3c33b018ee281830bf2a35 | 8e996ed8ab8c3a676253955a8347fc794e3654ae |
refs/heads/master | <file_sep>#!/bin/bash
docker rm -f mobile-light
docker run --name="mobile-light" -v /home/couchbase/jenkinsdocker-ssh:/ssh \
--volume=/home/couchbase/latestbuilds:/latestbuilds \
--restart=unless-stopped \
-p 2300:22 -d ceejatec/ubuntu1404-mobile-android-docker:20160712
docker rm -f mobile-and... | e17642bd8ee9b58ea1aaf5af609a39d3832d2721 | [
"Dockerfile",
"Shell"
] | 14 | Shell | jameseh96/build | 3b8998ac0ce6c6fd2609b1bb5fddc793a9cbff67 | b069c5d46129d6cada92df4e03e29b6ee7896809 |
refs/heads/master | <file_sep>package com.example.hoangnguyen.americanstem;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.uti... | 6f21cce780436d2519c1f33e2efd80d9833e2043 | [
"Markdown",
"Java"
] | 2 | Java | koben98/AmericanSTEMandroid | 4a521556dcd146f45f537cfcc2032d718683b444 | d93701824f5b2d579304b92dfe1ab8d8f0da68d4 |
refs/heads/master | <repo_name>mutual-of-enumclaw/guard-rails<file_sep>/DeleteUserSQS/DeleteUserSQS.test.js
/*!
* Copyright 2017-2017 Mutual of Enumclaw. All Rights Reserved.
* License: Public
*/
//Test function for DeleteUserSQS.js
const config = require('./config.json');
//Environment variable values defined from the confi... | 292e204e7cddcc2e2ce64f64de10b0773a0acbc0 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | mutual-of-enumclaw/guard-rails | d13541e7d444ae7ffc4ff253305a65c4f3cc5734 | dae23bf2a6de8a54b9b0d54f953479ee7c138003 |
refs/heads/main | <repo_name>csjy309450/debug-memo<file_sep>/bug_case/bugcase-memory_access_violation/bugcase-memory_access_violation.cpp
// bugcase-memory_access_violation.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
void bugcase_stack_arr_access_violation()
{
char buf[5] = { 0xf, 0xf, 0xf, 0xf, 0xf };
buf... | 3abb7e05b37fb4aae6e656da821570cabd78f2bc | [
"C++"
] | 1 | C++ | csjy309450/debug-memo | b92fac749a06727022813be55e34087c1b2afaed | 2f6fb667186d6f5ce5a97a28996926ee0e9dc7b1 |
refs/heads/master | <file_sep>
Build Scalatra docs on [Travis CI](https://travis-ci.org/dozed/travis-test)
| Docs | Repo | Branch | URL | Built with |
| :---------- | :-----------------... | 464146c4628e1b092c7f33b95d598aa6f2de3cea | [
"Markdown",
"Shell"
] | 2 | Markdown | dozed/travis-test | d6f065ee8ff8b435b4a64186af2feca66a82b4ff | 6885618e7532e6db6d9ac4ab041b736b62e2b209 |
refs/heads/master | <file_sep># If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Stop Ctl+S
stty -ixon
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
PKGFILE_PROMPT_INSTALL_MISSING=y
source /usr/share/doc/pkgfile/command-not-found.bash
source /usr/share/git/... | d4331211e44547c78ff442d2f5bd05c8e9005194 | [
"Markdown",
"Shell"
] | 2 | Shell | bag-man/dotfiles | 69901377525da4c9a467be2b53c00cce384674fc | ae5c4acda0656c3888c937868b71914e7657deef |
refs/heads/master | <file_sep>package com.sperekrestova.visitCount.controllers;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
/**
* Created by Svetlana
* Date: 02.01.2021
*/
@Controller
@AllArgsConstru... | 5bdabd66066e8fcf042fb58dae1098c7a2d61726 | [
"Java",
"INI"
] | 6 | Java | SPerekrestova/VisitCountPro | d4fc173ccd464e366b9249e8ec33b659263a4f16 | 48f63691610ee64fcb13f54c0f8ebfcebadf74de |
refs/heads/master | <repo_name>shossa3/DSPExamples<file_sep>/Source/Assets/PlotComponent.cpp
/*
==============================================================================
<NAME> DSPExamples
==============================================================================
*/
#include "PlotComponent.h"
#include "StringFun... | 3a3c0c6cf372bc08e1e084fdc557fceefc879606 | [
"C",
"C++"
] | 35 | C++ | shossa3/DSPExamples | 3afdcc1312be3ec5c943523f3861b5a19a443c88 | 1893456f1d54adda8115ff4299db5fba7745ccc6 |
refs/heads/master | <repo_name>ilackarms/kernel4fun<file_sep>/basic-i686-kernel/kernel.c
/* Surely you will remove the processor conditionals and this comment
appropriately depending on whether or not you use C++. */
#if !defined(__cplusplus)
#include <stdbool.h> /* C doesn't have booleans by default. */
#endif
#include <stddef.h>
#inc... | bb12e3f70036784bc503c127e43585d4fc33fd2f | [
"C",
"Makefile"
] | 2 | C | ilackarms/kernel4fun | 337be65a7df94ff19289b7ce95ca5789271aa19a | f0cfed1d7284f43306e9826536ba9171b73347d6 |
refs/heads/master | <file_sep># glscope
WebGL Oscilloscope
<file_sep>import { createShader, createProgram } from './util';
// const SPECTOR = require('spectorjs');
// const spector = new SPECTOR.Spector();
// spector.displayUI();
export const vertexShaderSource = `#version 300 es
// an attribute is an input (in) to a vertex shader.
//... | b5dd83b228e383d87f23fd365405ef59d675434a | [
"Markdown",
"TypeScript",
"JavaScript"
] | 4 | Markdown | markosankovic/glscope | 5816a07cd044bf7fa036277c1bf4a54e2741c253 | bd605b24a93fe6622c2ac3f0014fdfcba6d0a093 |
refs/heads/master | <file_sep>/* ***********************************************************************
Cach tinh:
+ Buoc 1. Tinh electron_population[s][v][i]: N_s,v,i
- Phuong phap 1: Nearest grid points cho huong thep phuong x
- Phuong phap 2: NEC (Nearest-Element-Center)
+ Buoc 2. Tinh Ns la tong cua ... | 8445f458d5cc2f80cc43b2bd83746669a209f0a4 | [
"Markdown",
"C",
"Makefile"
] | 58 | C | tuantla80/Multi-subband-Monte-Carlo | b7bfee0351c5b7e1ba479624b569c193fd0c4144 | d9ad0a8f58772ae0c0c37e98851f22d32f153b8b |
refs/heads/master | <repo_name>Sonray/Personal-blog-IP4<file_sep>/app/main/views.py
from flask import render_template, request, redirect, url_for, abort, flash
from flask_login import login_required, current_user
import secrets
import os
from app import db
from app.email import mail_message
from app.main.forms import UpdateAccountForm, Po... | 1cfad94712cab1bb247c20fb9292ff55e81d9c53 | [
"Python"
] | 3 | Python | Sonray/Personal-blog-IP4 | 6dcc122f7394a746ca3f8cf4f8095bfa6adb7473 | 404f256b278719194f8e9789ced00ff36f645b5a |
refs/heads/main | <repo_name>SarahRDH/jspractice<file_sep>/app-advfunc.js
function add(x, y) {
return x + y;
}
const subtract = function (x, y) {
return x - y;
}
const multiply = function (x, y) {
return x * y;
}
const divide = function (x, y) {
return x / y;
}
const operations = [add, subtract, multiply, divide];
/... | 965cb00b17933acbb5a0dbda72e677b1169126c5 | [
"JavaScript"
] | 6 | JavaScript | SarahRDH/jspractice | 535a5f22b8fe6566bacd6248f13055f6499848db | d1709d6e2e840480c93fd002ffd770e100637ab6 |
refs/heads/master | <file_sep>package exercises.diamond;
import exercises.util.Utils;
/**
* Created by wbzhao on 15-4-10.
* =============================
* Isosceles Triangle
* Given a number n, print a centered triangle. Example for n=3:
* *
* ***
* *****
* =============================
*/
public class IsoscelesTriangle {
... | bdde45ad7275f5182b5fda53bb505d9cc02e9d91 | [
"Java"
] | 6 | Java | wzhao0928/IntroProgrammingExercises | 6dad5896e6195de2faa880b77bd153a8fa3c621c | f5e4283b45aa5437d91abd89b6caeae05e0f333e |
refs/heads/master | <repo_name>FrozenSid/ASCII-animation<file_sep>/ascii.js
/*--ALEX Homework 6 ASCIIanimation*/
var TextFile;
var CurrentFrame;
var FrameCount;
var FrameDelay;
// Function to start the animation
function StartAnimation(){
TextFile = document.getElementById("mytextarea").value; //save the contents of the textar... | 70f9af3d94eca1367a62bb983885fd34d154bbac | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | FrozenSid/ASCII-animation | 199283440c0b592a7a17c05e19c771083db927ed | 6d922ccb34f261e92c5f6ac65132c50a1be3a384 |
refs/heads/master | <file_sep>package exercises;
import java.util.*;
public class Alternating {
public static LinkedList<String> mix(List<String> list1, List<String> list2){
LinkedList<String> retList = new LinkedList<String>();
ListIterator<String> it1 = list1.listIterator();
ListIterator<String> it2 = list2.listIterator... | bfed8472d0a7f4179fef7fd7d0295da9c06fd81e | [
"Java"
] | 3 | Java | EatLentils/Test | 6d1e0378444f448da8d3b9925f3173c7fff8b4e4 | 82337fec38460cd5c4907b3ab3c50462ea6c865a |
refs/heads/master | <file_sep>#!/bin/bash
op=$1
step=7
if [[ ${op} != "+" ]] && [[ ${op} != "-" ]]; then
echo "Usage: $0 [+,-]."
exit 1
fi
current_brightness=$(cat /sys/class/backlight/intel_backlight/actual_brightness)
max_brightness=$(cat /sys/class/backlight/intel_backlight/max_brightness)
if [[ -z ${max_brightness} ]]; then
ech... | 0a953891b08c29a6868faf5bb14ada09a49dec6f | [
"Shell"
] | 1 | Shell | sasajib/dotfiles | f4be57d01f989c8d784fadcea773eb35033d2b44 | 590008af4e3518c13cec74f5feecc8c7e6f0cfdf |
refs/heads/main | <repo_name>Zarzarius/Rick-and-Morty-API<file_sep>/main.js
fetch("https://rickandmortyapi.com/api/character")
.then((data) => data.json())
.then((data) => {
console.log(data);
data.results.forEach((character) => {
const characterBox = document.createElement("div");
characterBox.setAttribute("clas... | 7485009d694628b82cf31724acfe59892656201d | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Zarzarius/Rick-and-Morty-API | 3316f44788a8caa767c14725d976aea15af05fa0 | a9b52c8c7b972daac9c03d2ce8fdafa3604dc51e |
refs/heads/main | <repo_name>Warkneo/erer<file_sep>/erdemcakiroglu.js
const Discord = require("discord.js");
const client = new Discord.Client();
const ayarlar = require("./ayarlar.json");
const chalk = require("chalk");
const fs = require("fs");
const moment = require("moment");
const Jimp = require("jimp");
const db = require("quick.d... | 3597fdf2d0c172be091372daed1b8a5777acbffe | [
"JavaScript"
] | 1 | JavaScript | Warkneo/erer | 3fb6f76807380f39888bfe3ddd18770873c3a882 | 725eb3682ddcc1880568c41394e40d52d6c7f5d4 |
refs/heads/master | <repo_name>alexeluro/CardVerifier<file_sep>/app/src/main/java/com/inspiredcoda/cardverifier/data/repository/BaseRepository.kt
package com.inspiredcoda.cardverifier.data.repository
import com.inspiredcoda.cardverifier.utils.ApiException
import retrofit2.Response
abstract class BaseRepository {
suspend fun<T> apiR... | dd5aac54516d5811dfd471f2fecb1edc55962a7a | [
"Kotlin",
"Gradle"
] | 13 | Kotlin | alexeluro/CardVerifier | 4a414a7072886e66579cf63741c916f59912bda3 | de7f9f21cee51699b366df8d34f789b8bec27bc7 |
refs/heads/master | <repo_name>Gersain-Martinez/p4GMH<file_sep>/settings.gradle
include ':app'
rootProject.name='p4GMH'
<file_sep>/app/src/main/java/com/gmh/itics/tesoem/edu/p4gmh/frmmenu.java
package com.gmh.itics.tesoem.edu.p4gmh;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;... | 7af116c6d887f68de541ca53ef4005f316c8bc7b | [
"Java",
"Gradle"
] | 2 | Gradle | Gersain-Martinez/p4GMH | 5d0432fbd86a02a71d618e54603951d7366c27d0 | 959319d4a91c33b2d987cb14be52e69fe555be03 |
refs/heads/master | <repo_name>aur-archive/vesta<file_sep>/PKGBUILD
# Maintainer: karamaz0v <nihilum at gmail.com>
# Contributor: <NAME> <<EMAIL>>
pkgname=vesta
pkgver=3.2.1
pkgrel=1
pkgdesc="Visualization for Electronic and Structural Analysis"
url="http://jp-minerals.org/vesta/en"
license=('custom')
arch=("i686" "x86_64")
depends=('cai... | 316f4a2dc177bec38e26440a10c936d5dffa882c | [
"Shell"
] | 2 | Shell | aur-archive/vesta | 8c6f350bc927c8f6e8110540e8a0db78f76298b3 | 73de30ee53e0270fc6174812f22449dd69202ab5 |
refs/heads/main | <repo_name>OrderLightXander/Mutations_pandas<file_sep>/README.md
# Mutations_pandas
In the year 3020 a new deadly superbug, <NAME>, was discovered in a human
habitat on Mars. Superbug is a term for bacterias strains, viruses, or fungi
resistant to most of the antibiotics and other medications commonly used in the
31st ... | 499945e4c81239fb54110cfc1d0ed59bb3ee74cf | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | OrderLightXander/Mutations_pandas | 741d14f86eeca1f5e07450b9b9b525ff0abd1ab2 | 84f48ab839e0450d3a78cf0198fed330e501cf1f |
refs/heads/master | <repo_name>benlavalley/i18next-sprintf-postProcessor<file_sep>/src/index.js
import {sprintf, vsprintf} from './sprintf';
export default {
name: 'sprintf',
type: 'postProcessor',
process(value, key, options) {
if (!options.sprintf) return value;
if (Object.prototype.toString.apply(options.sprintf) === '... | 68aba0720bb3a7d82f2cec92a721784dac8a4eda | [
"JavaScript"
] | 1 | JavaScript | benlavalley/i18next-sprintf-postProcessor | b85f7df11bbbda4fc596d99ae948aade760e2410 | ee3585a6e79b57583025cc679aca3910a117a65d |
refs/heads/master | <repo_name>Epicurean306/TIY-Chessboard<file_sep>/README.md
# TIY-Chessboard
a doubly-indexed array demonstration...
<file_sep>/scripts/models.js
( function( window ) {
'use strict';
alert('JavaScript wired?');
var board = [
['R','N','B','Q','K','B','N','R'],
['P','P','P','P','P','P','P','P'],
[' ',' ',' ',' ',' ... | 6b223700469e6046a986c8dbabf84e7cf579d169 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Epicurean306/TIY-Chessboard | 7b7cbb73c359cb2928efd8a0c75724444f9ff644 | c3d32a8cd1bc4f975df613034ee21f81baa77296 |
refs/heads/master | <repo_name>R1cardoX/python<file_sep>/qqmusic.py
import time
import re
import requests
from bs4 import BeautifulSoup
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver
from lxml import etree
options = Options()
options.add... | 3e8d9da76d2bf93bf76526975a85e7f049348f48 | [
"Python"
] | 4 | Python | R1cardoX/python | a3481d1a4d475c3bcc37cf840b4c0dcb44ec69ee | 9bd50778a1bebcdaa3944b530e198c6eaa673aab |
refs/heads/master | <repo_name>stedy/seattle-parks-complete<file_sep>/spc.js
var visitedCount = 0;
for(var i=0; i < geojson.features.length; i++){
parkName = geojson.features[i]['properties']['name']
if(parkName in localStorage){
geojson.features[i]['properties']['visit'] = '#89959C'
visitedCount++;
}
}
updateP... | d4130669e5953fd2f4b7cf7cc4846e299e0c216a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | stedy/seattle-parks-complete | 53f6879287d3257c1191935c6e292486961851f5 | a639163f6f3d6bdacbe38122960710b95fe5d962 |
refs/heads/master | <repo_name>MarcoPQ270/PruebaRecyclerview<file_sep>/app/src/main/java/com/example/prueba/MainActivity.kt
package com.example.prueba
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.GridLayout
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview... | 503429e4bfba3ec6dfe85d38757575bed7d1df2a | [
"Kotlin"
] | 3 | Kotlin | MarcoPQ270/PruebaRecyclerview | 353a80988f284b20fcd7e6c5e7c56bf256762301 | 3a35ee1d1023873b5f778c3f1e6eab8e27318e9d |
refs/heads/master | <repo_name>Oneandthreeconsulting/CacheCowAndBrowser<file_sep>/CacheCowAndBrowser/Controllers/ValuesController.cs
using System.Net.Http;
using System.Web.Http;
namespace CacheCowAndBrowser.Controllers
{
using System.Net.Http.Formatting;
public class MyResponse
{
public string Name { get; set; }
... | 71fc7be4bff0580e103a557df5245a6c88439a09 | [
"C#"
] | 2 | C# | Oneandthreeconsulting/CacheCowAndBrowser | dd218984c6207ecffa72cfc0de7258deaa5442b9 | 7c230c4cd7d16720d6a6eb86b4bc571c757a0835 |
refs/heads/master | <repo_name>tgxworld/singlish<file_sep>/singlish.gemspec
Gem::Specification.new do |s|
s.name = "singlish"
s.version = "0.0.1"
s.date = "2015-03-18"
s.summary = "Singlish from Singapore"
s.description = "Write Your Ruby Code in Singlish!"
s.authors = ["<NAME>"]
s.email = "<EMAIL>"
s.files = ["lib/singlis... | 59f370ff6a4fab975fff701023d8b0af3463381b | [
"Markdown",
"Ruby"
] | 3 | Ruby | tgxworld/singlish | e45f399d31b9a98eda5066c24e0cebbcf3ad7777 | 83f2922b6295caefb6387b87dae56f155883329a |
refs/heads/master | <repo_name>anil3a/monitorix<file_sep>/docs/monitorix.sql
-- The following queries can help you setup the database for monitorix
-- Please read all comments in this file before executing anything
-- $Id: monitorix.sql 51 2011-09-20 00:07:57Z <EMAIL> $
-- Create a database called monitorix
CREATE DATABASE `monitorix` DE... | 9c2dff6c503a2fe84c23da0d9aa0e4e33791091b | [
"Markdown",
"SQL",
"PHP"
] | 7 | SQL | anil3a/monitorix | e2e7a3aefcf5491b1019365cdf845ef5217f8ff5 | 0df944747a0e322374164af9c117f20d1d3326af |
refs/heads/master | <file_sep>package com.advertisementproject.userservice.api.exception;
/**
* Custom RuntimeException for when an email is already registered in the database
*/
public class EmailAlreadyRegisteredException extends RuntimeException {
/**
* Constructor
*
* @param message the error message to be shown... | 758059c8cc4a3a90973c47b62ad3d18307438d39 | [
"HTML",
"JavaScript",
"Markdown",
"Java",
"Dockerfile"
] | 75 | Java | daniel-hughes-nackademin/Microservices-with-jwt | 80f32e8ccd7aa3660b8dca5efcbd1d4ae458efa7 | c37565c8282c6cb829f2298209dd51660a90dceb |
refs/heads/main | <file_sep># Hellhound Heresy
A visual novel about tarot cards and hellhounds
Created for Mini Jam #69
<file_sep>/*
Tarot card class
Holds information about a tarot card (name, meaning, etc.)
*/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TarotCard : MonoBehaviou... | c2ec274e9db4858c6301821be4b2583a23eee0fd | [
"Markdown",
"C#"
] | 15 | Markdown | something999/HellhoundVN | f666b73dd664ae4c25771e44a9e2b785ac13e457 | f07c3dc7c61ca12901cf284cf70da3588979e975 |
refs/heads/master | <repo_name>andreaspreuss/build-recipes<file_sep>/nextcloud/nextcloud-server.files/B_DEBIAN/DEBIAN/postinst
#!/bin/bash
cd /var/www/nextcloud
mkdir data
chown -R www-data: apps data config
| 1b98cf1d27d37b3d0d27cfe5a5b592291f14e689 | [
"Shell"
] | 1 | Shell | andreaspreuss/build-recipes | e79e6b0c6cd7baadddbd4277461664952739960a | fb409bd1cc253953cb943c3a02c85f79ab3863be |
refs/heads/master | <repo_name>bbhunter/cname<file_sep>/cname.py
import sys
import queue
import threading
import dns.resolver
from dns.rcode import to_text
from dns.exception import DNSException
from colorama import Fore, init
#enable coloring on win
try:
import win_unicode_console
win_unicode_console.enable()
init()
except ImportErr... | 33acac63e2043f6ab0b51f4d7ee578bb50f2efcf | [
"Markdown",
"Python"
] | 2 | Python | bbhunter/cname | f13d0b894cb5fd26ff85677f0766aebe60dda513 | c5299f63a0caa1a0203b92c34ab02ab703c2cbf8 |
refs/heads/master | <file_sep>import os
import datetime
import tarfile
import pysftp
sftp_user = 'sftpuser'
sftp_password = '<PASSWORD>'
sftp_host = '172.16.31.10'
sftp_port = 22
documentroot = '/htdocs'
documentroot = '/htdocs'
def upload(archiveName):
with pysftp.Connection(username=sftp_user,port=sftp_port,host=sftp_host,passwor... | 0f9f26a42e1d89d0dab4e8cb6a588941e4304a88 | [
"Markdown",
"Python"
] | 2 | Python | Syamlal-M/backup-process- | 00e8ad90665bf1db3ebeec0e5174541725a101fc | f90b8cbdebc620274d86fdeba8129598696a788b |
refs/heads/master | <repo_name>rk-react-dev/Flight-Details<file_sep>/src/sagas/rootSagas.js
import { call, put, takeEvery } from 'redux-saga/effects'
import {fetchCheapFlightDetails, fetchBusinessFlightDetails} from './api'
import {saveFlightDetails} from '../actions/index'
function* fetchData(action) {
try {
const flightDetai... | 4951dc5d41565bfc912a3da020aeee4a83e7a349 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | rk-react-dev/Flight-Details | 18d65299ad88e755a719e19c5e649454129142c8 | d9226f3fa04917c238094f91b3372becc9138ad3 |
refs/heads/master | <file_sep>package astarasikov.github.io.camandnettest;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import astarasikov.github.io.camandnettest.dummy.DummyContent;
public class Camera... | 654c77b6fd620f64e47ce7a277b9b70e6ce4bd59 | [
"Java"
] | 1 | Java | JuannyWang/android-graphics-experiments | 53dc6463f4f07311104c2d44a6070581dc1b3022 | 2d28c54fafa93e5b14b9f97c5f5f0f055cc9bb70 |
refs/heads/master | <file_sep>package com.bridgelabz;
import java.util.Comparator;
public class SortByName implements Comparator<Person> {
public int compare(Person firstPerson, Person secondPerson) {
return (firstPerson.getLastName().compareTo(secondPerson.getLastName()));
}
}
class SortByCity implements Comparator<Pers... | c6aefc5b02066dcbf5041157ebdb32ef48f4641d | [
"Java"
] | 1 | Java | vegirevathi/AdvancedAddressBook | b05d006cf2ec74e6e66bd77d514ebf1a87ed459e | 1a85600f9cbbf15906ff4fbf03218fb5e6ba8928 |
refs/heads/master | <file_sep># ClamShell
Java library for data persistence and network communication.
For more information:
www.clam.io
<file_sep>package clam.io.update;
public class SoftwareVersionUpdateChecker {
}
<file_sep>package clam.io.network.messages;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStrea... | 60655d03852265b8a41b6dec4738eb18fc720717 | [
"Markdown",
"Java"
] | 5 | Markdown | sloetjes/ClamShell | 649d0d7d77bf3aa13bc43983fdd38345bdf2e13b | bf66a5afd0a36a01a3380cda44dc0b868d9f8962 |
refs/heads/main | <repo_name>bhatvikrant/v-drive<file_sep>/src/lib/firebase.ts
import firebase from "firebase/compat/app";
import "firebase/compat/auth";
import "firebase/compat/firestore";
import "firebase/compat/storage";
import "firebase/compat/analytics";
import "firebase/compat/performance";
const firebaseConfig = {
apiKey: proce... | b29b59d7fe815ce43e5b4506b7bdc88632a41292 | [
"TypeScript"
] | 1 | TypeScript | bhatvikrant/v-drive | b866f6c5c8cbd1364a2512c5db643366c7fa8d13 | 25b1eba2ba478020bf130ef9ea1d524f6ec27b89 |
refs/heads/master | <repo_name>sunyoungbaek/homework<file_sep>/google_trend_interest.py
import sys
from pytrends.request import TrendReq
def googleTrendInterest(words):
pytrend = TrendReq(hl='en-US', geo='US')
pytrend.build_payload([words[0], words[1], words[0] + ' ' + words[1]], cat=0, timeframe='today 5-y')
result = pytrend... | 6f0bc76ee06c0dffa0aa4a04233e0129069a4ead | [
"Markdown",
"Python"
] | 5 | Python | sunyoungbaek/homework | 2a1fb06e77affeb66b9de769c176aba4f1c888c4 | 8edeaa8f793ab84339cfd8601e1f350824d1d697 |
refs/heads/master | <file_sep>using UnityEngine;
namespace Assets.Resources.Scripts
{
public class PlayerMovement : MonoBehaviour
{
private Vector3 _movePosition;
public float Speed = 3;
private bool _isPositionSet;
void Update()
{
CheckForNewPosition();
... | 46976d9614745827a30c9aea289cee43c57f9755 | [
"C#"
] | 2 | C# | EricFreeman/UnityDungeons | ba05dfe2b1c056721af47617699535b8df001064 | 914b64180e2d2d65df956e86563019277831cf1f |
refs/heads/master | <repo_name>cristianbatist/crud-mvc5-ef-angularjs<file_sep>/Emp_XPTO/CRUD_MVC5_AngularJs/Controllers/FuncionarioController.cs
using CRUD_MVC5_AngularJs.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace CRUD_MVC5_AngularJs.Controllers
{
publ... | 55afc234b0a000be0f2384f8ff22457833465b09 | [
"JavaScript",
"C#"
] | 3 | C# | cristianbatist/crud-mvc5-ef-angularjs | fadd518dfed0ea20482c77423b39a5a604cca2fa | 1d50f510fdbb79528be124af40d98a0a3af0b159 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.