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 | <repo_name>davewinwood/octolux<file_sep>/lib/app.rb
# frozen_string_literal: true
require 'roda'
class App < Roda
plugin :json
plugin :padrino_render, engine: 'slim', views: 'www/templates', layout: 'layouts/application', cache: false
route do |r|
r.get '' do
render 'index'
end
r.on 'api' d... | 97d5f565769598212e96be4a0421de93f83d38e8 | [
"Markdown",
"Ruby"
] | 4 | Ruby | davewinwood/octolux | 529c6f3ca34223d19dc1eb1a985324c277b0f65a | 01f6c720796b58220443b29b7b4446d7d0cbe5ea |
refs/heads/master | <repo_name>kashenfelter/miktex<file_sep>/Programs/MiKTeX/PackageManager/Qt/MainWindow.cpp
/* MainWindow.cpp:
Copyright (C) 2008-2018 <NAME>
This file is part of MiKTeX Package Manager.
MiKTeX Package Manager is free software; you can redistribute it
and/or modify it under the terms of the GNU General Pub... | 6555529c196e8917bc3a00abce54b5a5093c285d | [
"Markdown",
"C",
"CMake",
"C++"
] | 7 | C++ | kashenfelter/miktex | 161ab579aebeda6de773dd688085c9d53bdd7bf2 | cbd16a4c61d85b1502057c3216a57c4337fcc8d0 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PartimeSalaryWithTdd.Utility;
namespace PartimeSalaryWithTdd
{
public class SalaryCard
{
private double normalWorkingHourLimit = 8;
public int HourlySalary { get; set; }
public DateTime StartTime { get; set... | 76db5088f8064aba964c6f643899535169be86f6 | [
"C#"
] | 3 | C# | hatelove/PartimeSalaryWithTdd | 9dd053426efa31393b6cb70916e30fb680149800 | d9fc257a2b8939143564e31dd4a7bd902062be76 |
refs/heads/master | <repo_name>akkasuddin/NeoQuad<file_sep>/QuadTimer.cpp
#include "QuadTimer.h"
double QuadTimer::StartTime = GetCurrentSystemTime();
QuadTimer::QuadTimer()
{
time = GetCurrentSystemTime();
}
double QuadTimer::GetProcessTime()
{
return GetCurrentSystemTime() - StartTime;
}
double QuadTimer::getTimeDiffSec... | fcc4414abe42de8cdbcd1917a0a16174ac771283 | [
"C",
"CMake",
"C++"
] | 13 | C++ | akkasuddin/NeoQuad | bf2e22a1a65790fa0625994b03b31f99be4e8990 | 25097dbafdcafffbe9ff20dec10600275c81bd17 |
refs/heads/master | <file_sep># anilogin-microapp
test app to get oauth working for anilist
routes:
* GET /
* index.html root page for project
* GET /callback
* callback for the anilist oauth token to exchange a code for an access_token<file_sep>const express = require('express')
const path = require('path')
const rp = require('re... | da1c263c58eb099a24310d500fe496401aa5ec88 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | bote795/anilogin-microapp | 9c501a075443c4b6feb87e79bd313025422825cd | c4dc8cfff0666923571736be9f16a8afe2fed436 |
refs/heads/master | <file_sep>import time
import zmq
import arrow
context = zmq.Context()
socket = context.socket(zmq.REP)
socket.bind("tcp://*:5555")
while True:
# Wait for next request from client
print("%s: waiting" % str(arrow.get()), flush=True)
message = socket.recv()
print("%s: Received request: %s" % (str(arrow.... | 3011f738c196e85c17c08c967461d7161ae4ec77 | [
"YAML",
"Markdown",
"Gradle",
"Python",
"Dockerfile"
] | 6 | Python | bneijt/zerokubed | 17deff78738588de78adb98776a3749757733bd9 | 64605f631a8c6a8b7b194383fbf9e5a83895f4a2 |
refs/heads/master | <file_sep>const data = require('../data');
const User = require('../models/userModels');
const generateToken = require('../utils');
const userController = {
async registerUser(req , res) {
// console.log(req);
const { name, email, password } = req.body;
const userName = await User.findOne({name})
c... | ca2624843b66ab866b80b219488333e3a0492a50 | [
"JavaScript"
] | 5 | JavaScript | Aslam-web/Amazona-backend | 00fad0b5f318cda8866213c49dceadda33c59057 | b2973d3061f2279c2cdc483ed13770f7ef7837dd |
refs/heads/main | <repo_name>Oppadayo/movie-app-react<file_sep>/src/components/Movie.js
import React from 'react';
import './movie.css'
const IMG_PATH = 'https://image.tmdb.org/t/p/w1280/'
const setVoteColor = (vote) =>{
if(vote >= 8){
return 'green'
} else if(vote >= 5){
return 'orange'
}else{
retu... | ac072f9e7e8766930399e564bc09952ad9f04eee | [
"JavaScript"
] | 2 | JavaScript | Oppadayo/movie-app-react | 0e0255dd432a012ab8967a44fb70999a548fa837 | 8050aef7f5a8657b1fc2cdf8f5af0875d17b89c5 |
refs/heads/master | <file_sep>#include <stdlib.h>
#include <stdio.h>
main() {
char op;
int opt;
while (opt != 1){
system("clear");
printf(" Bem vindo ao ClearCache para linux, execute esse programa como root!!\n");
printf("Escolha uma opção: \n");
printf("[1] Limpar memoria cache.\n");
printf("[0] Sair\n");
printf("Opção:... | 99537f1bd8f6e0004dd2f0b3061500e9f3ea1121 | [
"C"
] | 1 | C | delete/C | c2b9aa22dfd658d881d19a1ced1d22ef654e9668 | 013bb14479b57be3178568f2a4d3528bb436a5e0 |
refs/heads/master | <file_sep>package problems;
import java.io.BufferedInputStream;
import java.math.BigInteger;
import java.util.Scanner;
public class Main1002 {
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner sc = new Scanner(new BufferedInputStream(System.in));
while(sc.hasNext()){
int t = sc.... | d70c9aa8f4cdab74e3dff7a11c0b1ca1c67860f4 | [
"Java"
] | 6 | Java | JimWiliam/ACM | 8c3593c5f6154691651c05ae09a55d7a031306c4 | 0682848fad15e84bb3349c4f667eb69a980465ae |
refs/heads/master | <file_sep>
// -------------------------------------------------------------------------- //
// GULP-MODULE //
// -------------------------------------------------------------------------- //
var gulp = require('gulp');
var sass = require('gulp-sass');
var... | 6c2d47fbc261425d6dd5bc27fe0109ed68e3f1cc | [
"JavaScript"
] | 1 | JavaScript | phahok/kanboard-themeplus | d5ac36aaf2eb308bb139206c7e255d565722bb1d | f369674402ffeccadb1ff83e49a8c4246f5084e1 |
refs/heads/master | <file_sep>FIRST_PORT = 17000
PORTS = []
for P in range(2):
PORTS.append(FIRST_PORT + 2*P)
print(PORTS[P])
exit(0)
<file_sep>import telnetlib
from ciscoconfparse import CiscoConfParse
ROUTERS = 2
HOST = "192.168.56.101"
COMMANDS = ["\r", "enable\r", "terminal length 0\r", "config t\r"]
PATH = "C:/Users/hades_0... | c610f76fd3ede42d7cfeea9e0e704e216d86ba0d | [
"Python"
] | 3 | Python | dcapello/Telnet | 8ed3e54dad60af57f68a5c3402e31bbdcb0e79ab | e14f3f6d64050f867fb0d5329d5e9b6234ece54c |
refs/heads/master | <repo_name>cordis-dev/cf-swift-test<file_sep>/sl-crash.swift
/// https://github.com/realm/SwiftLint/issues/2276
switch code {
case 200..<300:
return "\(code) ✅"
default:
break
<file_sep>/README.md
# cf-swift-test
| 7f5d9567bbe59ef699559dc5557180356f9c2958 | [
"Swift",
"Markdown"
] | 2 | Swift | cordis-dev/cf-swift-test | 2040169caa8c854da393811ad6c0bda204481c82 | 5e9d73668cfba606c3ffd83d56074c308eba80b5 |
refs/heads/master | <repo_name>modularwp/gutenberg-block-toolbar-control-jsx-example<file_sep>/js/block.js
const { __ } = wp.i18n;
const {
registerBlockType,
BlockControls,
AlignmentToolbar
} = wp.blocks;
registerBlockType( 'mdlr/toolbar-control-jsx-example', {
title: __( 'Toolbar Control Example with JSX' ),
icon: 'admin-tools',
c... | ac37c3c54b7b4cfa1061c38e447c12b40f059fe9 | [
"JavaScript"
] | 1 | JavaScript | modularwp/gutenberg-block-toolbar-control-jsx-example | b91e9cff537f9a6507d075dc01690e9b6935e757 | c84f6ffd4e92e342b94d74165d96383cb3f9f84f |
refs/heads/master | <file_sep>'use strict'
const InformesCursosModel = require('./conexion')
function crearInforme(informe, next){
InformesCursosModel
.query(`INSERT INTO informes_de_cursos
SET ?`, informe, (error, resultado, fields) => {
next(error)
})
}
function obtenerInformePorIdCurs... | 59daa005e6810e831b3a7e5d554319db80bf2f35 | [
"JavaScript",
"SQL"
] | 17 | JavaScript | raulperod/cursos-unison | b9e7b64bc927be78ce857d66957dc3a537022586 | f2e7ac5c27406607125bac68d4e752b0bbaf06ea |
refs/heads/master | <file_sep>#<NAME> | 1301168560
#Kelas: IFX-40-01
setwd("E:/PCAP/Adaboost/Latihan")
#====================pre-processing
#load Dataset
datatraining <- read.csv('datatraining.csv', header = TRUE, sep = ';')
datatesting <- read.csv('datatesting.csv', header = TRUE, sep = ';')
#random index
set.seed(9850)
gp <- runif(nr... | 2be01ef4a038b149be286fdb2dc25f0471d4cc26 | [
"R"
] | 3 | R | devarify/KNN | 71f33499cc95476f6397cf14552fa4a35f5937de | fa29d595217bcdaa5a2b564b16facf580d74e5c2 |
refs/heads/master | <repo_name>mountainousjourney/SmartIrrigationSystem<file_sep>/docs/pages/Scripts/Py_Requests.md
---
title: "Python3 - Requests Library"
keywords:
last_updated:
tags:
sidebar: documentation_sidebar
permalink: Py-Requests-Library.html
folder: Scripts
---
## Basic requests
- Importing the 'requests' library
```pytho... | bde6d63d32a46f5eb5e8d52c6ce5a545bb136a0c | [
"Markdown",
"Python"
] | 35 | Markdown | mountainousjourney/SmartIrrigationSystem | c9a43745f0c1807948a08d007ee04fa9eede615a | 0ff2a540a4ec0e4e67655349f897bd6be3d88405 |
refs/heads/master | <repo_name>jaismith/euler<file_sep>/problems/4/4.py
import sys
def checkPalindrome(test):
for i in range(0,int(len(test)/2)):
if test[i] != test[len(test)-1-i]:
return(0)
return(1)
#print(checkPalindrome(str(input("provide number to test "))))
for num2 in range (999,900,-1):
num1 = 999
... | 66d6d836fdb17404521c61d6fafabebb591f81b6 | [
"Java",
"Python"
] | 18 | Python | jaismith/euler | 583c5ded07b0d7c5ca3b01b282876942014c8c3c | 119283d070f57684f4170edf74b5326ca45b6fb2 |
refs/heads/master | <repo_name>csi-lnmiit/S38_Digital-Signatures<file_sep>/verify.py
from ecdsa import SigningKey,VerifyingKey,BadSignatureError
#Curve details-
#NIST192p: siglen= 48, keygen=0.160s, sign=0.058s, verify=0.116s;
def verify_sig():
vk = VerifyingKey.from_pem(open("pub_key.pem").read())
message = open("message_file1","rb"... | 6a74b6f01e34d51e5455ab9a11e6ec9b37b9a1c6 | [
"Python"
] | 3 | Python | csi-lnmiit/S38_Digital-Signatures | d001dc24ee3ef2cae547c64c3714f1cd3b11a93b | 74f5823c3523e6e63bb091383ceec8fb98f142c1 |
refs/heads/master | <file_sep># ~BenBarber's Dot Files
These are my config files for setting up a MacOS/Linux system for the way I like to work.
As I work across multiple machines I needed a way to make my development experience
consistent and reproducible across them all. By managing my configuration through this
git repository I can s... | dc9b1f0bb1631b7653799a9a1548e4461ba030aa | [
"Markdown",
"Shell"
] | 2 | Markdown | ergo-dubito/dotfiles-9 | e457b5a5c0a5b2baad9982ef86472b7f15d90620 | c84e98e309332cf4854cfe4210236ce7ec8c6ad7 |
refs/heads/master | <file_sep>import { AnyAction } from "redux";
import { ICompanyAddress } from "../../actions/companyAddresses/companyAddressesActions";
import * as companyAddresses from "../../types/companyAddresses/companyAddressesTypes";
type TState = {
rawData: ICompanyAddress[] | null;
};
const initialState: TState = {
rawDat... | eddc17ed8352a3ca92214a08602c1d1b6c047dd3 | [
"Markdown",
"TypeScript"
] | 17 | TypeScript | simeon12396/tick42-app | 4344a16dcf9307c0bfb72c41824ff25adad929fc | 41f385a0df335c32ff9a12f17938519621f86bd7 |
refs/heads/master | <repo_name>girisharma/PresalesBOM<file_sep>/features/support/hooks.rb
Before("@user_with_two_projects") do
@user = Factory.build(:user, :id => 4691)
# Using actual project models instead of factories due to SQL query involved in @user.projects methos
2.times do
Project.create!(:user_id => @user.id,... | db90e345e6de276ae377a54183d127ec7e413e40 | [
"Ruby"
] | 14 | Ruby | girisharma/PresalesBOM | 471a22cbe0900039dbeffb4d1e5a7d1cbb0887cd | c04924feeaf7c01782cc1934ee8144a2c7bc5c69 |
refs/heads/master | <file_sep>from django.contrib import admin
from hello.models import Question
# Register your models here.
admin.site.register(Question)
| eaefbabe63b488fcc9d043463253712673d92943 | [
"Python"
] | 1 | Python | imShivamPatel/django | ecb38ea8f7fd7eb1005df41e0642b8837b091f62 | 0c41e4ba18d9ac7de6b773a504f1ca8eee74dece |
refs/heads/master | <file_sep>using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assignment6
{
class Program
{
List<Employee> employeeList;
List<Salary> salaryList;
public Program()
{
... | bf84e3ec0bd2a86dc3b94fa749c8d4079d8b4a92 | [
"C#"
] | 1 | C# | pmayur1998/csharp_assign6 | e2bee2d4a1467c7faff295af57cfc1ed475949be | d4b5dc533992671fd3883c05daae2b7b18f207d6 |
refs/heads/master | <file_sep>using VacationsDAL.Entities;
namespace VacationsDAL.Interfaces
{
public interface ITransactionRepository: IRepository<Transaction>
{
}
}
<file_sep>using System.Collections.Generic;
using VacationsDAL.Entities;
namespace VacationsDAL.Interfaces
{
public interface ITeamRepository : IReposito... | 9760ea605741f3920d8f961e32b9900c18d2e97c | [
"C#"
] | 106 | C# | maximkhanin/VacationProject | a4006bbe33fe0ab475d98ad0d26e9bf888548975 | 5d5da72d3b29270c4d87c7d5a3fa43aee81c9631 |
refs/heads/master | <file_sep># MPOF
Merge Part Of File
Allows replacing the text between specified tags by the content of a separate file.
<file_sep>'''
Created on 29 juill. 2019
@author: david.larochelle
'''
import sys, getopt
if __name__ == '__main__':
pass
# default value
StartIdentifier = ""
EndIdentifier = ""
FileToInsert = "... | df91d9c445c9584ba1b562b548cadde01003ce8b | [
"Markdown",
"Python"
] | 2 | Markdown | laroch02/MPOF | a00cdfc9b22cf8b4c9032393d8fff63defd8597e | 2cb86b94f908e33691b2823c1594b2fac1040afa |
refs/heads/master | <repo_name>kgersen/blackbox-prom-grafana<file_sep>/run.sh
docker-compose --project-name prom -f bb-traefik-prom-grafana-stack-compose.yml up -d
<file_sep>/ipv6.sh
docker network connect bridge prom_blackblox
<file_sep>/README.md
#Arch Linux
pacman -S prometheus-node-exporter
sudo vi /etc/conf.d/prometheus-node-expor... | f4dee854ffcb699f46c70784fbbdaefaf8e77e39 | [
"Markdown",
"Shell"
] | 4 | Shell | kgersen/blackbox-prom-grafana | 4f2b9a4514d9d9014dc817c6c091d7eaf491d57a | 20854b35e2d91f551a398959a9acbd5b56b785f6 |
refs/heads/master | <repo_name>PGui/FiberTaskingLib<file_sep>/ci_scripts/travis_ci_install_osx.sh
#!/bin/bash
set -x #echo on
brew update
brew cask uninstall oclint
upgradeBrewFormula () {
if brew ls --versions $1 > /dev/null
then
brew outdated $1 || brew upgrade $1
else
brew install $1
fi
}
case "${CXX}" in
g++-4.9)
upgradeB... | ecb467fa318a96559ab38b54f62c9cff964731fe | [
"CMake",
"Shell"
] | 2 | Shell | PGui/FiberTaskingLib | d28f9ca68f86226dce439daa72e94e3ceb3ec3da | b6e1c7b63a9136b77361461981e8f33bf476abff |
refs/heads/master | <file_sep># rlc-token
RLC Token for the iEx.ec project
Thanks to Beyond the Void, for helping us shaping the crowdsale
contract, Open Zeppelin and SmartPool for the security audit and
François Branciard for the testing.
The RLC token is deployed at 0x607F4C5BB672230e8672085532f7e901544a7375
The Crowdsale contra... | 2eb378599e9ef61e987e3add7f83ed42fff107b4 | [
"Markdown",
"JavaScript",
"Shell"
] | 4 | Markdown | ChainSecurity/trimport | 9bae7554365075d6be6fd1b8425161bdae518ca1 | e822bfefe225b1c735113e9ece5f4447b6d38a3d |
refs/heads/main | <file_sep>const coap = require("coap"), // or coap
si = require("systeminformation"),
updateSwitch = () => {
if (alertSwitch === true) console.log(`Please Charge note book`);
};
var alertSwitch = false;
var interval = setInterval(() => {
const client = coap.request({
hostname: "192.168.219.185",
pa... | 0008b5c24b546af9accddb219994311efa95e7a2 | [
"JavaScript"
] | 2 | JavaScript | jgus52/coap_pj | 85d5c8da0e9f4cb6dccc58ea943323abe1c96342 | 09d96f15394db9df5ef00d4da2ffe733118780f7 |
refs/heads/master | <repo_name>swimablefish/kubernetes-qperf<file_sep>/README.md
# kubernetes-qperf
Basic network performance testing
```
alpine:3.7
qperf from testing repo
kubernetes > 1.8.0
```
Change SERVER_ADDR in the client deployment config to your cluster's record.
## 1 Example output from AKS (Azure managed Kubernetes)
Standard... | 7218c7b1b217627d78e79afeeca2ddfa7ec2accf | [
"Markdown",
"Dockerfile",
"Shell"
] | 4 | Markdown | swimablefish/kubernetes-qperf | 0e8d3294502d2925601def5fb2409a4914b036b2 | a8b62d746df0342ce7e8fd431b5bae72e3ba49d8 |
refs/heads/master | <repo_name>13681899297/banbenku<file_sep>/codes/GlobalFun.py
# 编译日期:2020-05-08 15:38:35
# 版权所有:www.i-search.com.cn
# coding=utf-8
<file_sep>/codes/Main_d.py
# coding=utf-8
# 编译日期:2020-05-08 15:48:11
# 版权所有:www.i-search.com.cn
import time
import pdb
from ubpa.ilog import ILog
from ubpa.base_img import *
import getopt
fr... | 78a80000da027d61ee7adb706eea46d5ce2876b1 | [
"Python"
] | 2 | Python | 13681899297/banbenku | 7a91a2147a1251145a74cd098bf60d4f659032e7 | 8be72fc4c135b9d5c15e312749cc30a76b5332c8 |
refs/heads/master | <repo_name>luckyMcHanc/42-lem-in-project<file_sep>/src/add_rooms.c
#include "../includes/lem_in.h"
int room_exist(char *room_name, t_rooms *rooms)
{
t_rooms *tmp;
tmp = rooms;
if (!rooms)
return (0);
while(tmp)
{
if (!ft_strcmp(room_name, tmp->data))
return (1);
tmp = tmp->next;
}
return (0);
}
int... | f93c80471b2333ce122593aee929fdf973b81418 | [
"C",
"Makefile",
"Dockerfile"
] | 13 | C | luckyMcHanc/42-lem-in-project | 07964dc5512dc17105ebb82c21960ef45322d127 | c511215faba0ae787499c35ca3391f353efb873a |
refs/heads/master | <repo_name>VVK-3/Medicare-App-and-Website<file_sep>/Website/backend/Routes/sell.js
const express = require('express');
const verifyToken = require('../Helpers/verifytoken')
const bodyParser = require('body-parser')
const router = express.Router()
const Trans = require('../Models/Transaction')
router.use(bodyPars... | 9eb5bbdc2facd78331461cefe364fe69360aebf3 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | VVK-3/Medicare-App-and-Website | 60e2dcd3f9a40da752f4b656066d4dca08a4aafe | 71b23c3460c6cb2aece5374cb991022f29c809b7 |
refs/heads/main | <file_sep>#!/bin/bash
TodaysDate=$(date +"%m-%d-%Y")
result=${PWD##*/}
apacheFolder=/data/data/com.termux/files/home/Apache-configure/
home=$HOME
apache="Apache-configure"
welcome () {
echo "Hello"
echo " "
echo " "
echo "Navigating to your ${home}/${apache} folder if we arent there already!!"
echo... | 97a1e6bff746faea9a82dacfab59c4f5e38bc71c | [
"Shell"
] | 1 | Shell | HiFiiDev/Apache-configure | 02bf828b243e097590171d6ea1072cb67e1de394 | 395b7a1d0920a2201d93cd6b973dc1cf2eed992e |
refs/heads/master | <repo_name>BHAUTIK04/YoutubeDownloader<file_sep>/requirements.txt
certifi==2018.4.16
chardet==3.0.4
click==6.7
docopt==0.6.2
Flask==1.0.2
google-api-python-client==1.6.7
httplib2==0.11.3
idna==2.6
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
oauth2client==4.1.2
pyasn1==0.4.2
pyasn1-modules==0.2.1
requests==2.18.4
rs... | 07f642465d73e410a2ff7d040e80c6116b423bf5 | [
"Python",
"Text"
] | 2 | Text | BHAUTIK04/YoutubeDownloader | e6d323eee7e286e6b26b7429235a9c4c33110bc4 | 483627dee1edd9b0e8ce5a6f92d4dc31244d345c |
refs/heads/master | <file_sep>import * as Yup from "yup";
const diagnosisValidationSchema = Yup.object().shape({
answers: Yup.array()
.of(Yup.number().oneOf([0, 1], "Wykryto brakującą odpowiedź"))
.required("Odpowiedzi są wymagane"),
});
export default diagnosisValidationSchema;
<file_sep>import React from "react";
import { St... | a057a95bea413b00f4ac806118ee5f47ede36816 | [
"JavaScript",
"Python",
"Markdown"
] | 68 | JavaScript | aI-lab-glider/doctors-assistant-app | 1336910adef8272c572a2273e32dee4ad49dac2e | 8901aefdc78a8deb5db1d10e6d81787f8e9c2c69 |
refs/heads/master | <repo_name>ScottMorris/sampleBusinessNetwork<file_sep>/README.md
# Scott's hyperledger composer network for Product management<file_sep>/lib/product.js
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of th... | 8e9db1fba3a6cc7c4d1c1b15f79adb65fe44ac48 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ScottMorris/sampleBusinessNetwork | af40ae395c28977e4e1cb8fbb5b6dc3a173350ae | 47ef4d38fd29ed122c5f77622d2077f9a2e984a2 |
refs/heads/main | <file_sep>function Converter() {
var valorElemento = document.getElementById("valor");
var valor = valorElemento.value;
var valorEmDolarNumerico = parseFloat(valor);
var valorDolarHoje = 5.23;
console.log(valorEmDolarNumerico / valorDolarHoje);
}
| cacfafa9894f670d28e40b8183efb793cc20b35e | [
"JavaScript"
] | 1 | JavaScript | EngCaioMonteiro/Conversor-de-moedas | 64b433b9f286ad0f3927c808e83a15ccdc6829f5 | f9173c023675246404c212f052b55c4fa33a6888 |
refs/heads/master | <file_sep>#include <SPI.h>
#include <Ethernet.h>
#include <ArdOSC.h>
byte myMac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte myIp[] = { 192, 168, 132, 177 };
int destPort=12000;
byte destIp[] = { 192, 168, 132, 145 };
OSCClient client;
//create new osc message
OSCMessage global_mes;
int v3=10;
float v4=... | 07a0f5230ffef283a5155babc9305d2c81fbf7a8 | [
"C++"
] | 5 | C++ | mpinner/v2 | f4d1ad8c9d2c021ec45ecabde579c8152007d732 | 9adc2091306435cf4e492589ed48485b900216bd |
refs/heads/master | <repo_name>kenisbeauty/Umbee<file_sep>/config/routes.rb
Rails.application.routes.draw do
devise_for :users
resources :listings
root :to => 'static_pages#home'
get '/listings', to: 'listings#index'
get '/help', to: 'static_pages#help'
get '/about', to: 'static_pages#about'
get '/contact', to: 'static_p... | b4deef19a9bb2f453bf749954ecdef59eb12ea4c | [
"Ruby"
] | 5 | Ruby | kenisbeauty/Umbee | 3bc1c90269045f59b37251facf62033e7624004e | a321d0c6af121242b3171fde724a10fb38919619 |
refs/heads/master | <file_sep>//
// AROError.swift
//
// Created by <NAME>
// Copyright (c) 2016 <NAME>. All rights reserved.
// Released under the MIT license.
//
import Alamofire
import ObjectMapper
public enum AROError: Error {
case requestFailed(response: DataResponse<String>)
case parseSuccessResponseFailed(response: DataRe... | 0e936e79d18221490dbfe3c9971ea23be359643b | [
"Swift",
"Ruby",
"Markdown"
] | 11 | Swift | taka0125/ARORequest | 52b9885064b41922c2e978c3246a0baef430a18c | 90bc921ffb7f91c092936e974663a753f5575a38 |
refs/heads/master | <file_sep>function zoom()
{
thumb.setAttribute("class","thumb grande");
celu.setAttribute("class","visible ");
celu.setAttribute("height","150");
}
function otro()
{
thumb.setAttribute("class","thumb ");
celu.setAttribute("class","invisible");
celu.setAttribute("height","120");
}
function zoom2()
{
t... | 8ef3130af3a920d4da7fbcaedb3ccd723a1fc09e | [
"JavaScript"
] | 1 | JavaScript | TeamOpenSource1/Trika | c8145b7deee3e1609e7f2fccd6c8af96502a34fd | 6615d47d479601f6c927b801ba6d9c5b72fa6aa1 |
refs/heads/master | <file_sep>#define _USE_MATH_DEFINES
#include "warpfunctions.h"
#include <math.h>
Point3f WarpFunctions::squareToDiskUniform(const Point2f &sample)
{
//TODO
float radius = sqrt(sample.x);
float phi = 2*M_PI * sample.y;
return glm::vec3(radius * cos(phi), radius * sin(phi), 0.0f);
}
Point3f Warp... | 9209abdd9c67f96dbc6c92fa4e1df4407aea8c5c | [
"C++"
] | 7 | C++ | loshjawrence/number4 | 34f6a571f97fc7207067ffb1c17a4a12eea9232c | 0f3f029225946a2cbd127e704b0c5326c41b9406 |
refs/heads/master | <repo_name>shivakumar361/Simple-Puzzle<file_sep>/Number_game.c
File name : Number_game.c
#include<stdio.h>
#include<stdlib.h>
#include<dos.h>
enum arrow_keys
{
exit_case=0,
up_key=8,
down_key=2,
left_key=4,
right_key=6
};
enum arrow_keys arrow_key;
void display(int *puzzle);
void shift_up(i... | a85f493211f136cc13da3da94a2de0c85db4fa4a | [
"Markdown",
"C"
] | 3 | C | shivakumar361/Simple-Puzzle | af1eed05e341ba9569cba9049a62d6869b6a5e14 | 4df47d9edcc1115c845f5b4c62fe990dc9d3491d |
refs/heads/master | <file_sep>import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
i... | 8ec81cee12446d44d4b73e626f35677c42123dc3 | [
"Markdown",
"Java"
] | 2 | Java | jakeburns/TicTacToe | e12a398258cd5f8dd7a4240b750dcdc21deef29a | 8caf188e4225e5d20a40fc64c9c55ca679d0eec1 |
refs/heads/main | <repo_name>reii-code/PBO_4418<file_sep>/Pertemuan 3/gameEnemy.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.
*/
/**
*
* @author user
*/
public class GameEnemy {
... | f151ab90fe70642d510e31138c8c5cb6fdf8f967 | [
"Java"
] | 5 | Java | reii-code/PBO_4418 | eb5c3239873d0f25cbd9c9f0a86a476d923e9618 | c29799652dcb55ab28161710fe3cd8709e31b09d |
refs/heads/master | <repo_name>cleliacort/CIRIquant<file_sep>/requirements.txt
numexpr==2.6.9
numpy==1.16.4
pysam==0.15.2
PyYAML==5.4
scikit-learn==0.20.3
scipy==1.2.2
argparse>=1.2.1
<file_sep>/CIRIquant/prep_CIRIquant.py
#! /usr/bin/env python
# -*- encoding:utf-8 -*=
import os
import sys
import argparse
import logging
from collections ... | 2fdc8ffc291c0e5ea487b73ff6f11247a0237d3e | [
"Markdown",
"Python",
"Text",
"R"
] | 12 | Text | cleliacort/CIRIquant | a742793386967014cc78078c485ea2cfabce381c | 2857b8f20b40f1664ffa10f19f9c20f3cf94eb21 |
refs/heads/master | <repo_name>browserstack/Galen-BrowserStack<file_sep>/Galen_JavaScript_Tests/BrowserStack.parameterized.js
// A Galen-JavaScript test to execute a spec against multiple configurations
// Configurations for running the tests
this.devices = {
// For mobile devices
mobile: {
tag: "mobile",
deviceName: "iPhone ... | 9743e2a76d139ad848e034eaa2a5671c9daf4048 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | browserstack/Galen-BrowserStack | f3731abfd26d3efed6af77fb016646f71d763f45 | ba260dc221801ee83660d1e5f6d8c02d9124b6a0 |
refs/heads/main | <repo_name>arthurs14/Login-Full-Stack<file_sep>/client/src/components/Home/Home.js
import { Container, Typography, Button, Paper } from '@material-ui/core';
import { useUser } from '../../context/UserContext';
import { useHistory } from 'react-router-dom';
import makeStyles from './styles';
const Home = () => {
cons... | 170ec083535bce77f4b0965edac793499f1b1000 | [
"JavaScript"
] | 1 | JavaScript | arthurs14/Login-Full-Stack | e07646a69c9e24ee8efc0076fead80fac37ef660 | b7d696d0fb8a954373ea35b789a9bc2723d03628 |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from Py... | 6560c71bcb3c7e0fc517a60466035be523561e71 | [
"Markdown",
"Python"
] | 3 | Python | onleew/PhotoConventor | 0ee0d16744737bef9aa4fc55f9e3d3760388e5f4 | a740dc1ceea6a8b3ef1ed19592f72f5f7c698e14 |
refs/heads/master | <repo_name>stenechkin/skillbox<file_sep>/app/client.py
"""
Клиентское приложение с интерфейсом
"""
| c803ef4ffb3aad844d1bf63dd08cbc2495101d74 | [
"Python"
] | 1 | Python | stenechkin/skillbox | 4a62e7751a20eb9ba735f8d94ec597290529ecf1 | 8bd1415244ea27b9366dd25dc52926b14d4a935f |
refs/heads/master | <repo_name>ellamaryp16/CSA-project-the-first<file_sep>/medialab/Movie.java
/**
* Write a description of class Movie here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Movie extends Media
{
private int rating;
private String title;
private double price;
private boolean favo... | 499e5634df0964b1ef838970764205fafdbff132 | [
"Java"
] | 4 | Java | ellamaryp16/CSA-project-the-first | 182cf1a85447de9a01d44f2888f4c92368a03595 | e22ae5139188638ad8ed45c87c5a586797631b32 |
refs/heads/master | <repo_name>chandrakantsworld/price-calculator-kata<file_sep>/PriceCalculatorTests/ApplyExpenseOnProduct.cs
using PriceCalculator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace PriceCalculatorTests
{
public class ApplyExpen... | a55ced7eccd089f0254fb2605ad4f5ac576fe1d7 | [
"C#"
] | 26 | C# | chandrakantsworld/price-calculator-kata | 6fd0a2868b94704c26610b054bcc9e5d6dc2909b | 65df526b944427787967730a2e1b9858d2aa362d |
refs/heads/master | <repo_name>Schnides123/mini-edgar<file_sep>/src/edgar_crawler/pipelines.py
# -*- coding: utf-8 -*-
import csv
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class EdgarCrawlerPipeline(object):
... | 409d789feddb209d0c90040df1a1867c26172b28 | [
"Python",
"Text"
] | 3 | Python | Schnides123/mini-edgar | f84b8f3a1bc8b085183ac232f1be1a55ac4ad099 | 5704af2a8c528bda12bc30728b5274e3f2bc29c1 |
refs/heads/master | <repo_name>mrmrtalbot/PassIParcel2.0<file_sep>/apiKey.properties
apiKey.id = <KEY>
apiKey.secret = <KEY>
<file_sep>/routes/index.js
var express = require('express');
var router = express.Router();
var stormpath = require('express-stormpath');
// Render the home page.
router.get('/', function(req, res) {
res.render(... | 7c9162dd81eb7161349d93a98cec6847e7ca1528 | [
"JavaScript",
"INI"
] | 8 | INI | mrmrtalbot/PassIParcel2.0 | e679d5e67d1e69d08eba9bc15c2a1e689efa72a5 | 56d716eb639c96e2877126fa32f61e1033738fad |
refs/heads/master | <repo_name>Andresdst/slider-Frameworkless<file_sep>/main.js
class IndexForSiblings {
static get(el) {
let children = el.parentNode.children;
for (let i = 0; i < children.length; i++) {
let child = children[i];
if (child == el) return i;
}
}
}
class Slider {
constructor(selector) {
th... | 5e01df86328776ddd5a09ce89a548af48d5a30e9 | [
"JavaScript"
] | 1 | JavaScript | Andresdst/slider-Frameworkless | 888e3cdfb087d36bc4d605ffb8be857f644d5dcd | b41b093a2a8ca7c1b5b35bc1fb8b532fb0d4afb3 |
refs/heads/master | <repo_name>samerxy/QM<file_sep>/Inventory_Management/PL/F_sale.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Inventory_Management.PL
{
... | c3a3d3f937ffd06460df0b33b65f39d5f9b239d5 | [
"C#"
] | 14 | C# | samerxy/QM | 4a39a8d90f2c931237da96a2679e24c74e3a7c9c | bb6db4ae794c55dbae98a0f8f8cb715bf855882a |
refs/heads/master | <file_sep>from dotenv import load_dotenv
load_dotenv()
import os
import logging
import traceback
import contextlib
import sys
from pathlib import Path
from io import StringIO
from jigsaw.PluginLoader import PluginLoader
import nextcord
from nextcord.ext import commands
from prometheus_async.aio.web import start_http... | b335f7b75eecb8a50d14d74c911333135e700db8 | [
"Python",
"Text"
] | 2 | Python | Irfanul383/Automata | f34a329d161111ee42caaf5fd2bca8d3a202ed39 | d806a0c995adebc2e54d5d472a83ddce81449978 |
refs/heads/master | <file_sep>/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* dis... | 3391608e406d8e0ab9f514a4b6c1d2be1f5de565 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | vt750s/thanks-point | 52471903403d17fa647ca16c11035b27131ca6e8 | 614585e750c0fcd222efdd02981dc5258319268c |
refs/heads/main | <file_sep>import React, { Component } from "react";
import { connect } from 'react-redux'
import { MDBContainer, MDBRow, MDBCol, MDBBtn } from 'mdbreact';
import {
setUser, unsubUser
} from "../store/actionsCreators/UserActionCreator";
class Users extends Component {
constructor(props) {
s... | 8a21cc5ea99a64d4181b9597b9c8c08cb397c5e3 | [
"JavaScript"
] | 4 | JavaScript | awaisiftikhar003/react-redux-blog | ae2f94efadcdaec1d19d47c5895d6cebc4a1e8b8 | bf16b4d2e1072b471e256344028537f556d4b462 |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
import { Platform } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AuthService } from './providers/auth/auth.service'
import { GeofenceService } from './provid... | f7548aed4e80b4f5764158754d3daa8cbc9e0894 | [
"JavaScript",
"TypeScript"
] | 27 | TypeScript | johnveeuminga/safetravel | 55c9b3658d4af1e8213611fecb358c101329076a | c6e4f915364c9bd183b350598682b9fdd800fdff |
refs/heads/master | <repo_name>nokazn/nest-auth-example<file_sep>/src/auth/auth.service.ts
import { Injectable } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { User } from '../users/interfaces/users.interfaces';
import { UsersService } from 'src/users/users.service';
@Injectable()
export class AuthService {
... | ba1c17971f2e982d94819d7cb2cb35d00f8d4d56 | [
"TypeScript"
] | 3 | TypeScript | nokazn/nest-auth-example | 7d67d4cea6dbff8e3d6db94deb0f51d052bfcb80 | 352dff5df2370fd8b904da22429b1c2c24420893 |
refs/heads/master | <file_sep>using System;
using Tranform.Try;
namespace console_app
{
public static class Program
{
public static void Main()
{
Console.WriteLine("A simple console application that uses a NuGet package.");
Calculator calculator = new Calculator();
string resu... | d9629df569596a210b242a27be92010eed3a240d | [
"C#"
] | 1 | C# | sdepouw/nuget-ci | ecc68d72a2713009a42b743e8eefee6a7ce9dc86 | 70ea9d650634a940916533ee4c62f2b38292115e |
refs/heads/main | <file_sep>const firebaseConfig = {
apiKey: "<KEY>",
authDomain: "fir-first-project-13-3-21.firebaseapp.com",
projectId: "fir-first-project-13-3-21",
storageBucket: "fir-first-project-13-3-21.appspot.com",
messagingSenderId: "281061790702",
appId: "1:281061790702:web:7c2933a66d64333e0d34ff"
};
... | e5892b0a6278063ccfb153b8efce716e277752df | [
"JavaScript"
] | 1 | JavaScript | git11hub/fire-auth | 62bb461bd072b859ad5631e3140ac071ebea5166 | 62584d2324575fa600e184be505c2d24de28e36f |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import httpInstance from '../../axios';
import List from '../../component/List/List';
import Spinner from '../../component/Spinner/Spinner';
import Input from '../../component/Input/Input';
import Filter from '../../component/Filter/Filter';
class Home extends Compone... | d531e9066dd6ecadcb016fbfcb9643f658450b53 | [
"JavaScript"
] | 5 | JavaScript | angular2015/rick-and-morty-app | 3f87214620d145b4469debfb214e90ad27bc9825 | c0e9f250f2cdc84eab4a86c3ebfe7f2cb14f9aeb |
refs/heads/master | <file_sep>module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
// common + es6 共存
sourceType: 'unambiguous'
}
<file_sep>import utils from '@/utils'
export default {
namespaced: true,
mutations: {
/**
* @description 显示版本信息
* @param {Object} state state
*/
versionShow ()... | 906e81997945eb6550c2e0029a1dd9dfc59538cd | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | Septillions/chic-admin | 9ead6c51a6f1aa03033579246961e06d4fa019e9 | 40054b05550bf5cb0109f0324160420cc308ba1a |
refs/heads/master | <repo_name>kevwan/ChatterBot<file_sep>/service.py
import grpc
import signal
from concurrent import futures
import talkaholic_pb2, talkaholic_pb2_grpc
from chatterbot import ChatBot
chatbot = ChatBot(
'bot@liao',
trainer='chatterbot.trainers.ChatterBotCorpusTrainer',
storage_adapter='chatterbot.adapters.st... | 1891ad85de8cb7243e51b51947380619f9b0c5dd | [
"Python",
"Dockerfile"
] | 7 | Python | kevwan/ChatterBot | 075707165a83dddfd7d283f3073131a2d81c1d46 | 20d2a3558aef33650e2022ed0111ced501cb362a |
refs/heads/master | <repo_name>hassanawdah/java-script-example2<file_sep>/script.js
'use strict';
const modal = document.querySelector('.modal');
const overlay = document.querySelector('.overlay');
const btnClosedModal = document.querySelector('.close-modal');
const btnOpenModal = document.querySelectorAll('.show-modal');
console.log(btn... | 6b14d958aa97d376765bfdebf51884292cd60598 | [
"JavaScript"
] | 1 | JavaScript | hassanawdah/java-script-example2 | 597dc4479f11e60d7b04dd27f61668e0ff622e85 | d0404666ec3540aced72e6cdf82c0b0df1028b88 |
refs/heads/master | <repo_name>fawnatkins/fizzbuzz<file_sep>/name_address.rb
def my_name_and_address(fname,address,phone)
puts "name: " + fname
puts "address: #{address}"
puts "phone: " + phone.to_s
end
my_name_and_address("Fawn","100 Hamon", 3043345676)
my_name_and_address("MArv","123 Elm", "3045567890")
my_name_and_address("Jack",... | e2a7b1782acb074e3af2af761a9eb4b41ae4f1cc | [
"Ruby"
] | 3 | Ruby | fawnatkins/fizzbuzz | fabca0f1da082cd8208a2b719fdd9e6668ab85cc | 94340c6a3b0424ee89d3db9a70d8f16daedad84b |
refs/heads/master | <file_sep>import * as actionTypes from './actionTypes'
import axios from 'axios'
import { fromJS } from 'immutable'
const changList = (data) => {
return {
type: actionTypes.CHANGE_LIST,
totalPage: Math.ceil(data.data.length / 7),
data: fromJS(data)
}
}
export const focus = () => {
... | 85957e23db0a13049fa66fbf16e5605078d829a7 | [
"JavaScript"
] | 13 | JavaScript | ruanyangfan/jianshu | 94b63fdc4675858f074c0750feedfb2b17f3008c | b70e829a82f90cf22de47da699a600dc54f3a6ac |
refs/heads/master | <file_sep><?php
namespace JS\DatatablesBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class JSDatatablesBundle extends Bundle {
}
<file_sep><?php
namespace JS\DatatablesBundle\Service;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symf... | ebfcd3248e5a282f330bf848223b965d1206bc6f | [
"PHP"
] | 2 | PHP | markovmihail83/jsdatatables-symfony | f84c2c87a1f4a451a1265971c913503cdb66c504 | f70024845a6a347163f301d6ed4db44e1e583841 |
refs/heads/master | <file_sep>// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
// Standard Google Universal Analytics code
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].... | 3d0a31f256594a5e6cea4dada11aa0c149130d75 | [
"JavaScript"
] | 1 | JavaScript | pedroscaff/isMaintained-extension | 17ea0607ce02e86597546a12e74cafc3e8eb4c36 | 77a70756a96fe42c3e2a9828bea3b4eb2369c784 |
refs/heads/master | <repo_name>kevinlozada1102/php_api_jsonplaceholder<file_sep>/app/Controller/PostController.php
<?php
namespace App\Controller;
use App\Service\PostService;
class PostController implements BaseController {
private $postService;
public function __construct(){
$this->postService = new PostService();
... | ec3a32f6984223f3c8b0ce72382d251be188f51c | [
"Markdown",
"SQL",
"PHP"
] | 13 | PHP | kevinlozada1102/php_api_jsonplaceholder | 801d38c717d326756390ab0e455da5b3b94e8465 | a9e34bd36075fc99a645d713c51d4d8c27181f30 |
refs/heads/master | <repo_name>bobyang9/Eat-the-Cake<file_sep>/LeaderboardUserComparator.java
import java.util.*;
class LeaderboardUserComparator implements Comparator<LeaderboardUser>{
public int compare(LeaderboardUser lu1, LeaderboardUser lu2)
{
if(lu1.getProgressDouble() > lu2.getProgressDouble())
{
return 1; // lu1 is great... | bf0b6ef212a80aaf552514caaa2e29fbadc73522 | [
"Markdown",
"Java"
] | 4 | Java | bobyang9/Eat-the-Cake | c10a256ac148ea8315ccca159712e27f3aed7d75 | 1159e77cb80005dac5d16ed186a917fb37fa5020 |
refs/heads/main | <repo_name>php83projects/bankapp<file_sep>/header.php
<?php
/* Start the Session, required for Session-based authentication.
Remeber to call session_start() before sending any output to the remote client.
Also, make sure to set a proper session cookie lifetime in your php.ini.
For example, this sets the cookie life... | 89886a487b2db8ac0af4cf1241327e4561793252 | [
"PHP"
] | 9 | PHP | php83projects/bankapp | 29f58cc789dc187f34883818d15639c30981946a | 710d1bb6ed38c14c55a81aece20cf311f8b20773 |
refs/heads/master | <repo_name>cnzhhi/fragment2<file_sep>/src/com/example/fragment2/fragment/HomeFragment.java
package com.example.fragment2.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.fragment2... | a6d0ef57fe5b761fed92ce5ecdee99248c556031 | [
"Java"
] | 1 | Java | cnzhhi/fragment2 | 834901b2834f2881e62181c9d42925c5d60cb50b | c7633c5f98d4f3c352d6c98b2af1f9b2e5f0a781 |
refs/heads/main | <repo_name>wissmedia/wiss-node<file_sep>/routes/qbankRouter.js
const { Router } = require("express");
const qbankController = require("../controllers/qbankController");
const router = Router();
router.get("/add", qbankController.qbank_add_get);
router.get("/", qbankController.qbank_index);
router.post("/", qbankContro... | 016dc76785a5443dfb296a43b92bea5d485a8427 | [
"JavaScript",
"Dockerfile",
"Markdown"
] | 10 | JavaScript | wissmedia/wiss-node | b3b62950ab0700d56269eef900aab91037c3ea13 | 7fa7ae8d21f8204121d102ea21e450f144c865e1 |
refs/heads/main | <file_sep><h1> color grid system</h1>
<pre>
<h2> This is a website for the copy paste of haxa color. ✍</h2>
=> the "copy icon" , when u click it the color code will get copy.
<h4> the view of website is given below 💙.</h4>
</pre>
{
res.render('stripform', {
title: 'stripform'
});
}<file_sep>var crypto = require('crypto');
var mongoose = require('mongoose');
var reporterSchema = new mongoose.Schema({
name: { type: String, required: true },
email: { type: String, unique: true,... | 8d00be54614e0d8c959358b4bdc120fbc8d3583f | [
"JavaScript"
] | 10 | JavaScript | dream121/pressfarm_node | ef78af210998ccab185b2c0b69213c8f90c726a3 | 5a6d07d3a503d80994b0cde93b44df6ba4e69d13 |
refs/heads/master | <file_sep># ContainerCat
Pack your node project into Docker Container!
### Install
```
npm install -g containercat
```
### Usage
```
containercat
```<file_sep>#!/usr/bin/env node
const inquirer = require('inquirer')
const fs = require('fs')
let cwd = process.cwd()
let dockerfile = null // Dockerfile content
cons... | 87f9287a587d3e91ab8f5e861905ffbc0a7101c6 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Vista1nik/containercat | 22b8618591f14701652a69a9c57194b4ed8d9169 | a840a02c13a547a5aaa853e8b077928aafb4be60 |
refs/heads/master | <file_sep>package water.ustc.server;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
/**
* Created by leegend on 2017/12/26.
*/
public class Server extends Thread {
private ServerSocket serverSocket;
public S... | ad36a165ec8a28ddefd5c67619ae16f0c07b3edf | [
"Markdown",
"Java"
] | 2 | Java | leegendlee/SoftwareArchitectureExpe | bced475d6bd165d414e805e6be115dd79adcb46f | 89756cd9b43cc6cd940cc38d4a041be11dd2e3fd |
refs/heads/master | <file_sep>package br.com.br.projeto<file_sep>import React, { Component } from 'react'
import user from './user'
class teste extends Component {
render () {
return (
<div>
react componente
<user name="tiago"></user>
</div>
);
}
}
exp... | 358eb62e60aa7a61eee3090f3339b7d3d3d96c83 | [
"JavaScript",
"Java"
] | 3 | Java | tiago955/sistema-de-provas | adc44c0de6f35cbc53fbed21546821a1bb95166f | f1ebbe7c42c8f8058975201f56b81b276b8a96e6 |
refs/heads/master | <repo_name>tbrands13/Video_Preview<file_sep>/script.js
var x = document.getElementById("video");
function playVideo() {
x.play()
}
function pauseVideo() {
x.pause()
} | 45188935739fddecab9fab2dbc30a712b2983791 | [
"JavaScript"
] | 1 | JavaScript | tbrands13/Video_Preview | ca8ac04f8fd15cb765745d82e05eb230bb2414c7 | 63bbfa469e84f9960ce043dc150c58b5e322792a |
refs/heads/master | <repo_name>AlexanderShutalyov/go_slice<file_sep>/digital.go
package main
import (
"fmt"
"os"
"strconv"
"strings"
)
var inputString = "4539 1488 0343 6467"
func getArray(inputString string) bool {
var numSlice []int
var numTestValue int
count := 0
readyString := strings.Replace(inputString, " ", "", -1)
if ... | 5120ae3bb8e60df2e10c865a0788036c9a72069e | [
"Go"
] | 4 | Go | AlexanderShutalyov/go_slice | 2c8da9e41001d4a11e6a092a766546655e2f9abb | ed3ed736bd6fecbfc557ded0953956b0420e3f9b |
refs/heads/master | <repo_name>tlambert03/otfsearch<file_sep>/register.py
from otfsearch import matlabReg, pickRegFile, goodChannel
import config
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser(description='Apply channel registration to multi-channel file', formatter_class=argparse.ArgumentDefaultsHelpForma... | 7ee15edc8f5c89463ceec8326e41c6d94fbb1b7f | [
"Markdown",
"Python"
] | 13 | Python | tlambert03/otfsearch | ae4052ffb0a2e75eec03b3cfb4022a99839364ae | ed643455c26e772516d47a722e4427d2ab90fbf9 |
refs/heads/main | <repo_name>StrongerMyself/shop-wear<file_sep>/src/features/catalog/epics.ts
import { RootEpic } from 'root-types'
import { isActionOf } from 'typesafe-actions'
import { from, of } from 'rxjs'
import { catchError, filter, map, switchMap } from 'rxjs/operators'
import { fetchCatalog } from './actions'
export const fetc... | cdf2f3bee509285a37af1cad4e3b96c0fa116de5 | [
"Markdown",
"TypeScript"
] | 12 | TypeScript | StrongerMyself/shop-wear | 026e43d3f3e78c1335f36e7afd360695005ef596 | e5afdc1225ddd5c4a95cb0eb7d1343c5f4bf1a2d |
refs/heads/master | <repo_name>sheepp91/HideAndSeek<file_sep>/HideAndSeekCaptureTheFlag_Take2/Assets/Scripts/ThirdPersonMovement.cs
using UnityEngine;
public class ThirdPersonMovement : MonoBehaviour
{
private const float STAND_SCALE = 1.0f;
private const float CROUCH_SCALE = 0.5f;
public CharacterController controller;
... | ad0b2cc36cb8a02270b6d444fd46f9d8ee8169a0 | [
"C#"
] | 2 | C# | sheepp91/HideAndSeek | 4309efee1f0659b42561bcb6ee04fde2d7d2b7de | 04e2a13b73b9ff684103625ab165f58bec38f8a1 |
refs/heads/master | <file_sep># -*- coding:utf-8 -*-
from pymongo import MongoClient
def insertData2Table(collectname,num,test_name,content):
'''insert one data to collection'''
connect=MongoClient()
db = connect['LeetCode']
data = db[collectname]
try:
... | 4dd4092acf3d1201e79414d5911380624ab641ed | [
"Python"
] | 10 | Python | hustpython/leetcodecrawler | 67602bd68f250eb9e813d2f61b031464bf5cbd3a | c5ac30eb45775ed117b6555f3dbe149a598175a4 |
refs/heads/master | <repo_name>juancaser/hamradioph<file_sep>/_posts/2019-03-02-cignus-uv-85-hp-a-year-after-review.md
---
title: "Cignus UV-85+ HP — A year after review"
description: >-
This was my EDC radio for three years because it is very portable and uses the
same accessories which i already have.
date: '2019-03-02T04:01:01.006Z... | 5a96fa2229e1fa853dd73c9417fc5c0c5b93e0a6 | [
"Markdown",
"JavaScript",
"HTML"
] | 11 | Markdown | juancaser/hamradioph | 48ea7df6da8b53bb2400570fb16a3c7e97146374 | d06df9eaf83f55e623ac62ee34c9587b6c44c7f4 |
refs/heads/main | <file_sep>let canvas=document.querySelector('canvas');
let width=900;
let height=500;
let score=0;
let apple=new Image();
apple.src='apple.png';
// console.log(apple);
let gameover_sound=new Audio('sound/game_over.mp3');
let score_sound=new Audio('sound/snake.mp3');
canvas.width=width;
canvas.height=height;
let s... | 184ae17a20b5e03f3dfed36b2f4ccdfef9592159 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | amrojiqbal/Snake_game | d9ba477304b9ed4122c6e9fd460558fa6a50165f | cfbc30e3a2a7e4a79fd1dee10a8a17a98ada9315 |
refs/heads/master | <repo_name>rts-cmk-wu05/json-butiks-data-kawern<file_sep>/json.js
const cars = [{
"make": "Toyota",
"models": [{
"name": "Yaris"
},{
"name": "Carina"
}]
},{
"make": "Ford",
"models": [{
"name": "Mondeo"
},{
"name": "Fiesta"
}]
}];
/* cars.... | bc306266c67397f0432b39219433c1dc6c98ebbb | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | rts-cmk-wu05/json-butiks-data-kawern | 38bf6be4ea5465936e01f5080065d910374639af | 2a1a045a24ae0e3bee6a500e6a1317c0c71666c9 |
refs/heads/main | <repo_name>Sau-ran/N_Bodies<file_sep>/Assets/Script/PhysicsNObjects.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class PhysicsNObjects : MonoBehaviour
{
[SerializeField] private List<Rigidbody> obj;
[SerializeField] private Rigidbody rigSphere;
[Ser... | 153cef8226e466e21f7b379e7f69671a2469802d | [
"C#"
] | 1 | C# | Sau-ran/N_Bodies | 9cc35a3b2d6b96e7ebdc53e7fac2a1928c1dbf82 | 936252a0e38fca5c50bf001c7a4e7934f10c2bb3 |
refs/heads/master | <repo_name>Marenthyu/NepDoc<file_sep>/ts.sh
#!/bin/sh
DATE=$(date '+%F %T%z')
INPUT="$1"
if [ -z "$1" ]; then
INPUT='nepdoc.html'
fi
sed -i "/^<p class=\"lastupdate\">/c <p class=\"lastupdate\"><b>Last update</b>: <time datetime=\"${DATE}\">${DATE}</time></p>" $INPUT
<file_sep>/deploy.sh
#!/bin/bash
./ts.sh
r... | 42eb83d59469cfd3112258b25c1d94a5870ccb8a | [
"Ruby",
"Shell"
] | 3 | Shell | Marenthyu/NepDoc | 4ea23cb1fe6a265c46b97efc74d08c3740e13708 | c48dfc5b7bc33e1214349556d738960a999cb619 |
refs/heads/master | <file_sep>cmake_minimum_required(VERSION 3.13)
project(bun C CXX)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(OOZ_SOURCES
bitknit.cpp
bits_rev_table.h
compr_entropy.cpp
compr_entropy.h
compr_kraken.cpp
compr_kraken.h
compr_levia... | d2488a393cf61ec5264634df8ff6da3ad8260152 | [
"C",
"Python",
"CMake",
"C++"
] | 27 | CMake | erosson/ooz | 57a8a22c09330e35664be87460547b1e3f22e597 | 6520f525a5ada39d8300446751dd816fe267e87e |
refs/heads/master | <file_sep>class SessionsController < ApplicationController
def new
@user = User.new
end
def destroy
session[:user_id] = nil
flash[:alert] = "sucessfully logged out"
redirect_to root_path
end
def create
# passing in username and password
# setting to instance vari... | 5811452f00ac45c6a56f140092e0e553bd909682 | [
"RDoc",
"Ruby"
] | 4 | Ruby | stephsem23/DevTalk | 6ee02b2e16c409549c918155c0f7f8c05dec3752 | 260a2d52b6e3815172dd330e406e50d8b546a34c |
refs/heads/master | <file_sep>package com.github.michalszukala.luckyhit;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.chart.ScatterChart;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout... | e211e09d37a2bcec2107b8777d5222d8c215de4a | [
"Markdown",
"Java"
] | 3 | Java | MichalSzukala/Lucky-Hit | 922632552dcf8cff40d1ae88312a6130da822658 | 1d149416846616131cd2f5ba1812afa3b2b96027 |
refs/heads/main | <repo_name>LucasSilvaMarts/Express-Exercise<file_sep>/index.js
const express = require('express');
const app = express();
const recipes = [
{
id: 12345,
name: '<NAME>',
ingredients: ['farofa', 'bacon']
},
{
id: 12346,
name: '<NAME>',
ingredients: ['ovo']
}
]
app.delete('/recipe/:id', ... | 2f422b23a71d80be6614f895692f44449f00b4ac | [
"JavaScript"
] | 1 | JavaScript | LucasSilvaMarts/Express-Exercise | 2121c670a6532926e8da9671169349b2548ab703 | 75ac35184d395514163c0df0c112380209078ecc |
refs/heads/master | <repo_name>Nathanael2611/Nathanael2611-Launcher-Commons<file_sep>/settings.gradle
rootProject.name = 'Nathanael2611-Launcher-Commons'
<file_sep>/src/main/java/fr/nathanael2611/commons/launcher/update/minecraft/versions/Download.java
package fr.nathanael2611.commons.launcher.update.minecraft.versions;
public class Dow... | 21272b69e82472085987459da409bf27e9a452cf | [
"Java",
"Gradle"
] | 26 | Gradle | Nathanael2611/Nathanael2611-Launcher-Commons | 0367686856feebdafef902e8f97a836bbeb1d72c | 28da588ef6fc2394602a3707f9ce6add77b039f8 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# from __future__ import unicode_literals
from django.http import QueryDict
from core.tests.utils import TestCase, skip_if_not_pg
from core.views import SuggestBaseView
class SuggestBaseViewTestCase(TestCase):
"""
Тестирование SuggestBaseView базового класса
для построен... | 7773bc89edd3260edf22b38e50d94bdab1022b84 | [
"HTML",
"JavaScript",
"Markdown",
"Python",
"Text",
"Shell"
] | 89 | Python | mitrey/erwin | 3ec37c1fe31a1c8b8dd3dafc5662920dbfc64f61 | a7415cba5f1eb66a29b0bbc8891fbd1b7d1a6241 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.