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>svk2000/MovieRental_StrategyPattern<file_sep>/src/main/java/edu/utd/movierental/MovieRentalApplication.java
package edu.utd.movierental;
import edu.utd.movierental.models.*;
import edu.utd.movierental.utils.RentalType;
import javax.xml.bind.*;
public class MovieRentalApplication {
public static void ... | 20ac36906bdfa7d4f776fe32c2b60900cc58f058 | [
"Markdown",
"Java"
] | 5 | Java | svk2000/MovieRental_StrategyPattern | 7f36c461b502a58d9d4599884db7fc68297be948 | 1cca3a29f5527c31e851cd3957e687f886f8f20c |
refs/heads/master | <file_sep>var express = require('express');
var { Apierror } = require('../utils/errorUtils')
var router = express.Router();
const bodyParser = require('body-parser');
const Query = require('../db/Query');
module.exports=function(app){
app.use(bodyParser.json());
app.post('/admin',[validateBody,isEmailExist,sig... | 6d95a94949d97feda36cb964e46c70c4bc675ddb | [
"JavaScript"
] | 6 | JavaScript | SamanZubair/NodeSchoolProject | 22a06777a1d8984b1ed206b0fae1bda8bf237296 | 710662cb2231fb8c69c85f629a3d4fed62d11bad |
refs/heads/master | <repo_name>npsc-tx/xuexitong-chaoxing<file_sep>/caoxing.js
// ==UserScript==
// @name 超星助手-视频静音播放
// @namespace https://github.com/npsc-tx/xuexitong-chaoxing
// @version 0.1
// @description 视频静音以及自动播放
// @author 天析
// @match https://mooc1-1.chaoxing.com/*
// @grant none
// ==/UserSc... | 62ff06fc473cba1f9ca44a4ec3ba62fb3224b149 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | npsc-tx/xuexitong-chaoxing | fcb23157dd69c025357150bd6a952a8a31f1baaf | 5f1d61e5c513ee02db6f025d3b71d6b6761d7ddc |
refs/heads/master | <file_sep>## clustering
cdata = read.csv('customer_hier_clus.csv',header=T)
customer = scale(cdata[,-1])
## agglomerative heirarchical clusting:
hc = hclust(dist(customer, method='euclidian'), method='ward.D2')
## plot dendrogram:
plot(hc, hang=-.01, cex=.7)
##use single method to perform heirarchical clustering:
h... | 8314622d5ca260e6b5202b9f0395cc9b3b53a93f | [
"R"
] | 1 | R | Divnsh/hierarchical-clustering | e82c94b75b1fc1b8ff3d864567c276c7f0898063 | 3f1add7feb95f876772ee4b3f88991bc8c92f16e |
refs/heads/master | <file_sep>package main
import (
"os"
"strings"
log "github.com/sirupsen/logrus"
_ "github.com/kshvakov/clickhouse"
)
func main() {
cfg, err := _ConfigFromEnv()
if err != nil {
log.Fatalf("failed to init config: %v", err)
}
var logLevel log.Level
if cfg.Debug {
logLevel = log.DebugLevel
} else {
lo... | 0bc469b8c22b37ee41f213bc45c979e25ef4de0b | [
"Markdown",
"Go Module",
"Go",
"Shell"
] | 6 | Go | fdhadzh/clickdown | 7b301a5df7ec1d78eb853a582b58e6b4cd89b908 | 5948710b8511fddbdc7770b7b92f7ad657ea45d2 |
refs/heads/master | <repo_name>vanathin/spring-rabbitmq-producer<file_sep>/src/main/java/com/example/learning/springrabbitproducer/controller/EmployeeController.java
package com.example.learning.springrabbitproducer.controller;
import com.example.learning.springrabbitproducer.bean.Employee;
import com.example.learning.springrabbitproduce... | e3354747c5a4771bd8ba14075d0804fa14d029d2 | [
"Markdown",
"Java"
] | 2 | Java | vanathin/spring-rabbitmq-producer | f78909a31da972456072d83f5baede2e0f30f880 | 495284405d736987d6cae5496d0e80d937a3be48 |
refs/heads/master | <repo_name>eimantaszlabys/NetCoreDocker<file_sep>/src/netCoreHandlers/DI/ReaderModule.cs
using System;
using Autofac;
using netCoreReaderCore;
using netCoreReaderRmysql;
namespace netCoreHandlers.DI
{
public class ReaderModule : Module
{
private readonly string _connectionString;
public Reade... | 7bbb0b20c64e866384096381004cd445809fe199 | [
"C#",
"Dockerfile",
"Shell",
"SQL"
] | 25 | C# | eimantaszlabys/NetCoreDocker | 7acbf3df446c467158071cb0c8bfbb3e47c604b5 | 6116006198e39eec013c1a7d54630a42ed75786d |
refs/heads/master | <repo_name>liliilli/KNU_econtrade<file_sep>/app/src/main/java/kr/ac/knu/bist/knu_econtrade/Activities/Scene_Intro.java
package kr.ac.knu.bist.knu_econtrade.Activities;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.... | 9ae1bf9afa53afeeb984bb3387eb1a395be37b6d | [
"Markdown",
"Java"
] | 2 | Java | liliilli/KNU_econtrade | cadf7778b345001fad3e813db72d9d609fe430d6 | e4b9a8d75c421a4100e41fe0b1b4b38abc8a24b2 |
refs/heads/master | <file_sep>from abc import ABC
class Target(ABC):
"""
The Target defines the domain-specific interface required by the client code.
"""
def request(self) -> str: pass
class Adaptee:
"""
The Adaptee contains some useful behavior, but its interface is incompatible
with the existing client c... | 2c873e381e832e594080120679f3935d31cb3a9a | [
"Markdown",
"Python"
] | 12 | Python | xndong1020/design_pattern_python | 68b426f51ea7821928694ca038ca59208383bb9a | 91e20ea043c4fd772bc4ea4503e0abf0f9e7c070 |
refs/heads/main | <file_sep>from tkinter import *
import tkinter as tk
import random
def btn_click(event):
l1.config(text=random.randint(1,1001))
l2.config(text=random.randint(1,1001))
l3.config(text=random.randint(1,1001))
root = Tk()
#root['bg']='#000000'
root.title("однорукий бандит")
root.geometry('200x200')
root.resiz... | 68c005eea5fc28718fca5d8e4c95caa9a8031e76 | [
"Python"
] | 1 | Python | error50592/homework | 8f00186c2d11a2bd9c19e1efed04fd05607f24e7 | 13d3a5655a81d7f2b6bb18f1c78cae57f34ed0d7 |
refs/heads/master | <file_sep>from __future__ import absolute_import, print_function
import unittest
import six
import schema_salad
from schema_salad.avro.schema import Names
from schema_salad.schema import load_and_validate, load_schema
from schema_salad.validate import ValidationException
from .util import get_data
class TestErrors... | caf6639117cdbaa063ddd93b235f92934c80ce2a | [
"Python",
"Text",
"reStructuredText"
] | 3 | Python | genenetwork/schema_salad | eb85c3d49b99b7643e8a12248e2dc05504910c1e | e40619e1a70b4ecf2207eb2175296bf7c544e862 |
refs/heads/master | <file_sep>import cv2
import numpy as np
def transform(img):
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
myFrom = np.float32([
[1042, 406],
[1299, 406],
[903, 791],
[356, 790],
])
sL = 40
tW = 2000
tH = 2000
myTo = np.float32([
... | e05936bcb7898e33e82e74ef9935fbb20d4d791c | [
"Markdown",
"Python",
"Text"
] | 12 | Python | image-processing-sci/image-processing-sci | 5a78bbb0163df4fa4754c1744a6af0fe64d6959b | 97de5effa1eaded1446e3682241d702a14a2b5d7 |
refs/heads/master | <repo_name>huysh3/SB_Webpack<file_sep>/notebook.js
const UglifyPlugin = require('uglifyjs-webpack-plugin')
module.exports = {
entry: './src/index.js',
// loader,将其他格式文件转换为js代码,方便打包运行
rules: [
{
test: /\.jsx?/, //匹配jsx文件
includes: [
path.resolve(__dirname, 'src') // 指定该路径下文件需要该loader处理
... | f34a9d18ae2afb8c17d932fbcce4b538b551ac89 | [
"JavaScript"
] | 1 | JavaScript | huysh3/SB_Webpack | b50068a8cd89793d0abee3e8833eab5587b4df5f | 1549e8f482d7a1592babd6774921eadad538af40 |
refs/heads/master | <file_sep>import React from "react";
import { Typography, Grid, Paper } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
const useStyles = makeStyles((theme) => ({
root: {
padding: "2%",
display: "flex",
justifyContent: "space-between",
flexDirection: "column",
alig... | 25c3a0c06652b78aa289b60a3e97369fda1ef157 | [
"JavaScript"
] | 10 | JavaScript | YacineFerhat/AT | 9a3fe3a3721f1aaee5489143dd9b3af1083ffa28 | d8579596779e294cd8aada9357c05017e4b815cd |
refs/heads/master | <repo_name>denaagr/react-workshop<file_sep>/src/index.js
import ReactDOM from "react-dom";
import "bootstrap/dist/css/bootstrap.css";
import DataTable from "./DataTable";
ReactDOM.render(<DataTable/>, document.getElementById("root"));<file_sep>/src/Table.js
import React from 'react';
//import './Table.css';
const Ta... | b07171f99ded3e048b1a1a9499962092f85950f5 | [
"JavaScript"
] | 2 | JavaScript | denaagr/react-workshop | a2fe29d35e463688f0195c9500209e4f7c874bce | c1044794788ac07b89da24ac5af6a5ac5fc9a1b5 |
refs/heads/master | <repo_name>wbuchwalter/k8s-ml-demo<file_sep>/1-simple-gpu-job/Dockerfile
# wbuchwalter/k8s-ml-demo:simple-gpu-job
FROM tensorflow/tensorflow:latest-gpu-py3
COPY ./main.py /app/main.py<file_sep>/README.md
# k8s-ml-demo<file_sep>/1-simple-gpu-job/main.py
import tensorflow as tf
print(tf.Session()) | c5ccc2b321663b5318bb39d705e06b0ea854b9aa | [
"Markdown",
"Python",
"Dockerfile"
] | 3 | Dockerfile | wbuchwalter/k8s-ml-demo | aef9c97adb7437ee29a0621a794376b3b6d56a8a | 94c8a05bea325b2b990227f74ae0c4a9e3f3af53 |
refs/heads/master | <file_sep># METAL -- Meta analysis
## Description
This workflow performs a meta analysis of association results using the [METAL software](http://csg.sph.umich.edu/abecasis/metal/)
### Authors
This workflow is produced and maintained by the [Manning Lab](https://manning-lab.github.io/). Contributing authors includ... | a1c088124d01b535d19e4a306a0ff2b8cf79b59d | [
"Markdown",
"R",
"Dockerfile"
] | 4 | Markdown | manning-lab/metal | 5e3c6efa7017e37b4565223351d13addba40689c | d16e8a36b19db4536d9fd2c4fad36c56115a6012 |
refs/heads/master | <repo_name>nbald/HandyQuest<file_sep>/arduino/arduino.ino
int sensorPin = A0;
int sensorValue = 0;
int flashPin = A1;
const int numReadings = 10;
int readings[numReadings];
int index = 0;
int total;
int average;
int mini=999;
boolean has_already_flashed=false;
void setup() {
pinMode(flashPin, OUTPUT);
digitalWr... | a946a7ad1c5ce9009124cc67a0f9f337a69dd1f2 | [
"C++",
"PHP"
] | 2 | C++ | nbald/HandyQuest | 6a6252713549890756992811e8918efb9f502cbd | 1fa60e566ed7c455a322ffc1f0ea3e285ca130f9 |
refs/heads/main | <file_sep># Plotly
The purpose of this project was to create a website where test participants can look up their ID and see their results in multiple charts.
<file_sep>//reading in json data into a js file
// d3.json("samples.json").then(function(data){console.log(data);
// });
// to extract wfreq from each volun... | 4a148a1c061321da1065d01fd2691273af259aa2 | [
"Markdown",
"Python",
"JavaScript"
] | 6 | Markdown | jdwrhodes/Plotly | bdf3a0cbe932736935b270a9a65d0324a9195449 | f2a15ff5e691f20d8712c09336cbf689863f4c96 |
refs/heads/master | <repo_name>IvanMendoz/PROYECTO-DPWEB-DIVISAS<file_sep>/PHP/tblpaises/Insertar.php
<html>
<head>
<title>Insertar datos de tabla con MySQL</title>
<script src='https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/6.11.4/sweetalert2.all.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/jquery... | c6da5e1129b5169587c959a86fbd54dd3060a43e | [
"JavaScript",
"PHP"
] | 15 | PHP | IvanMendoz/PROYECTO-DPWEB-DIVISAS | eb8737f30ae4c4bb802575f9f7bec8b2152ebbb5 | 20fb05b46d39c94221fbeabd10b7de2c228a63ac |
refs/heads/master | <file_sep>#!/bin/bash
###### 定义变量
server_install_log_path="/tmp/server_install.log"
date_show_str=`date '+%Y-%m-%d %H:%M:%S'`
install_php_path="/usr/local"
libmcryptp_tar_gz="libmcrypt-2.5.8.tar.gz"
libmcrypt_dir="libmcrypt-2.5.8"
libmcrypt_name="libmcrypt"
php_tar_gz="php-7.1.7.tar.gz"
php_dir="php-7.1.7"
php_nam... | 17738df0468d5f9751a2c71df87e2ff5f5098b4b | [
"Markdown",
"PHP",
"Shell"
] | 10 | Shell | edgeto/oneKey | da0149f1e1d74c95a891e215cca7495f69120cdc | 6e86ff769081483d6135e145209ddc85f6761f2a |
refs/heads/master | <repo_name>high400/madlibgame<file_sep>/README.md
# madlibgame
code for madlib game
<file_sep>/madlibgame.py
color = input("Enter a color: ")
plural_noun = input("Enter a plural noun: ")
hero = input("Enter the name of a hero: ")
print("Swords are " + color)
print("Don't paint that " + plural_noun)
| e3407c4d229ef60a0e1cfedbad37d35a3b0394d8 | [
"Markdown",
"Python"
] | 2 | Markdown | high400/madlibgame | 7bba8afa6985fbe4c21e1d59355514429ba530c6 | caa1e59272baa67a5b3aadb9a164eea643bc7fad |
refs/heads/master | <repo_name>chirpy-io/chirpy-node<file_sep>/examples/track.js
/**
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var Chirpy = require('../lib');
// Paste here your production token
var myProject = new Chirpy('token');
my... | 7cb6d22e65375f0d4a64455d6a72b1e259c2e8e3 | [
"JavaScript"
] | 2 | JavaScript | chirpy-io/chirpy-node | 6457f36e4715a523b0bb0639fba50959885ae9ed | f74f8c304fafb8411638328ba8368e84aa5b37ed |
refs/heads/master | <file_sep>function isCydia() {
return navigator.userAgent.includes('Cydia');
}
function isLikelyIos() {
// iDevice matching in user agent string iPadOS 13+ loads desktop pages by default with macOS user agent IE pretends to be iOS sometimes
return (/iPhone|iPad|iPod/g.test(navigator.... | 54815302427a5d76c858558675fb56f82e5b1f82 | [
"JavaScript"
] | 1 | JavaScript | GlitchMasta47/repo | 678fe184fed7cad549931042ecb35e520222bc3e | 88584879c186242dd0021d80c0204ad6f8e2be72 |
refs/heads/main | <repo_name>TuuZzee/fe-storybook-cdk<file_sep>/src/index.ts
import Button from "./example/Button";
export { Button };<file_sep>/README.md
# fe-storybook-cdk
React component library using Storybook for Front-end projects.
Components can be published on `npm` and installed in other projects.
Build following [Creating ... | 2e4e856c62704dd8a6136bec6c9f061c4fdd2fd4 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | TuuZzee/fe-storybook-cdk | d5878b7cf790ed85a8004cf284e1d389ba1a8ef4 | 73efb6cb6b2d6a2e7c083f5d7f0eff9323e73514 |
refs/heads/master | <file_sep>import org.junit.Assert;
import org.junit.jupiter.api.Test;
class CarTest {
@Test
void checkWinTest() {
Car car = new Car(12, 20);
car.finishX = 10;
car.finishY = 10;
car.round = 3;
//Tests round
Assert.assertTrue(car.checkWin());
//Tests, if checkWin increase round-number
Assert.assertN... | c296ecc00dffa06f1f5206b873565af3abec48bf | [
"Java"
] | 3 | Java | luedic/RoadRace | 67efc78079d0697949d38e8a3606e3e4b5d78242 | 1c7e25b49c10896ccc4920cc961803500e081c32 |
refs/heads/master | <file_sep>from client import TFTPClient
from socket import gethostname, gethostbyname
import os
def main():
try:
flag = True
buffer = []
host_name = gethostname()
addr = (gethostbyname(host_name), host_name)
(host, port) = input('Enter host:port --> ').split(':')
... | fd739c14fc021aa2aa17105ebfe403119df8d62a | [
"Markdown",
"Python"
] | 3 | Python | movaid7/tftp-client | b90edd6d23c26ae7d1015d434fc2bf99e96337e2 | 0c990a4b013ecc61a25d1208a7c7bba870734f89 |
refs/heads/master | <file_sep>###############################################################################
# Write a function that takes an integer flight_length (in minutes) and a list
# of integers movie_lengths (in minutes) and returns a boolean indicating whether
# there are two numbers in movie_lengths whose sum equals flight_le... | 98d3e1d420f60867fc4133050af9c0c1ed1e119a | [
"Python"
] | 2 | Python | naho18/code-challenges | 9df5d825668adf05d87f82721a0c85225851eaa5 | 314967ff03e019f9a5d24750922f8db44034b83c |
refs/heads/master | <file_sep> <!-- DataTables -->
<link rel="stylesheet" href="<?= base_url(); ?>assets/plugins/datatables/dataTables.bootstrap.css">
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<form method="POST" action="<?= base_url('user/delete_multiple'); ?>"... | dd2e1757800d0079c43b178f49777e31e853ed6a | [
"Markdown",
"SQL",
"PHP"
] | 26 | PHP | kikikiswanto/energymonitor | 91f87d9fb7eb5b4324fd25758ad38645be243384 | 8ea6bcfe471ad33c907517d6075c112ac3277d33 |
refs/heads/main | <file_sep># corr
A spelling corrector as described in _<NAME>'s_ [article](https://norvig.com/spell-correct.html).
I will write an article on how I implemented it soon.
<file_sep>use std::{
collections::{HashMap, HashSet},
fs::read_to_string,
io::ErrorKind,
iter::once,
path::PathBuf,
};
use regex:... | 3ebe5516f0b5fcd2c86ebfc3226e354c41a80e06 | [
"Markdown",
"Rust"
] | 2 | Markdown | OLUWAMUYIWA/corr | b7c9e6928f143ac613bcacc6b16f255ff7103fce | 54358c4033afdb6b920d2e29d27d33e5df8ca2a3 |
refs/heads/master | <repo_name>AdStage/omniauth-adstage<file_sep>/lib/omniauth/strategies/adstage.rb
require 'omniauth-oauth2'
module OmniAuth
module Strategies
class Adstage < OmniAuth::Strategies::OAuth2
# change the class name and the :name option to match your application name
option :name, :adstage
option :c... | 787963c2b46b496c8bfde3237064b65c27967624 | [
"Ruby"
] | 3 | Ruby | AdStage/omniauth-adstage | 7dd05ef1a8c2a4fad74d488b9915b5aaca63cbe4 | e6170875b8db8159c84692effa98be416183cc37 |
refs/heads/master | <file_sep>#ifndef PARAMETER_H
#define PARAMETER_H
#include <QString>
#include <vector>
class MySlider;
class Mesh;
class Vertex;
class Transformation;
using namespace std;
/**
* @brief The Parameter class. The parameter to control the shape.
* Every parameter will be controled by a slider bar.
*/
class Parameter
{... | a312c3175a647b14b2881af10c46ce70b9c37440 | [
"Markdown",
"C++"
] | 47 | C++ | andyatcal/nome | 86c44fab6810ef735854f23088896d1ff7ac9db5 | 0de30b4b5f1558394111cb0c24be5d73c219d603 |
refs/heads/master | <file_sep>// Async function to make a promise to resolve or reject the promise
const fetchData = () => {
const promise = new Promise((resolve, reject) => {
setTimeout(() => {
resolve('done');
}, 1500);
});
return promise;
}
// async code run when time runs out, calls the promise... | 649bdeea613b5433bdbf671d2e080259bdc3785b | [
"JavaScript"
] | 2 | JavaScript | KeomalaP/TestNodeJs | e284d71a4a8d4fca2963feb48fbaf1cea1a5e771 | 5143da38b30446e6260097fecb4342ffcefb2be2 |
refs/heads/master | <repo_name>marqsm/phonebook_py<file_sep>/phonebook.py
import os
class Phonebook():
myvar = [1, 2, 3]
def __init__(self):
self.phonebook = {}
@staticmethod
def pb_parse_input_row(row):
"""parse one row from file input"""
row = row.rstrip('\n') # remove digits
na... | f8273b02dce86f7ad61c7d27b20002306a7ddb80 | [
"Markdown",
"Python"
] | 4 | Python | marqsm/phonebook_py | 008a41195f0f9983850a389d1570a07123f3a4f0 | 332e2e854d0fbfe80478329d15f331ba7a9b9ee1 |
refs/heads/main | <file_sep>
class Calculator : public AdvancedArithmetic {
public:
int divisorSum(int n) {
int i, sum=0;
for(int i=1;i<=n;i++ ){
if(n%i == 0){
sum+=i;
}
}
return sum;
}
};
<file_sep>
Node* insert(Node *head,int dat... | 8ab388a270f98139013bb72d81155fa189bc27e6 | [
"Markdown",
"C++"
] | 7 | C++ | SanjoyChatterjee/30-days-of-coding-Hackerrank | 6985fb47c067fb6d000269fe8ab84445185c9eb5 | 0de2dd1ea517216b006637c86daa7a5629d064e6 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace WPFCalculator.ViewModels
{
class CalculatorViewModel : ObservableObject
{
private enum Operation
{
None,
A... | a3804c7ccdd37e4ea22c94015beb4145bda54967 | [
"C#"
] | 1 | C# | TRabb/WPFCalculator | 4a75c86ab8b9586c69baa6be68a4325ccb9d2fdf | 8e80bcb134b0ee66c4c95ae416bace0204ae819f |
refs/heads/master | <repo_name>Galaco/gosigl<file_sep>/general.go
package gosigl
import (
opengl "github.com/go-gl/gl/v4.1-core/gl"
)
const Front = opengl.FRONT
const Back = opengl.BACK
const FrontAndBack = opengl.FRONT_AND_BACK
const DepthTestLEqual = opengl.LEQUAL
const WindingClockwise = opengl.CW
const WindingCounterClockwise = ope... | 5f01ae832351fd38401295dad8d0d47c259c3d8b | [
"Markdown",
"Go Module",
"Go"
] | 6 | Go | Galaco/gosigl | 1302a0b2ab5c35f0924e1ac1d984dc754adb0a4a | 24ed1e5d48f79397fb00d759a4939547557519eb |
refs/heads/master | <file_sep>/**
* Created by AlexB on 2016-10-05.
*/
import { Component } from 'angular2/core';
@Component({
templateUrl: 'app/customers/customers_list.html'
})
export class CustomersListComponent {
public pageTitle: string = "Customers";
}
<file_sep>/**
* Created by AlexB on 2016-10-05.
*/
import { Componen... | cec8f7b3d94cd2c575c3973a935abedad77145f6 | [
"Markdown",
"TypeScript"
] | 8 | TypeScript | AlexBrs/BS4U | bd01d2486681f70893ae231b41400ef03e90b3be | 8e6f8a154eb2f48403debed15682f738f1d23666 |
refs/heads/master | <file_sep>package com.ossjk.asset.car.service;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ossjk.asset.car.entity.Car_receive;
import com.o... | 4e0e0cf7b123d49c659eafe8277335a16302f72e | [
"SQL",
"Markdown",
"Maven POM",
"INI",
"Java"
] | 65 | Java | YaingLin/assets | c5df8bd51b4a1001ac1209a0039b4de64db1b520 | 6b6d9126c75bface295ce020459b03cbf4912f70 |
refs/heads/master | <repo_name>iorixq01/iorixq01.GitHub.io<file_sep>/Resume/resume.js
document.getElementById("btn").onclick = function(){
document.getElementById("test").innerHTML = "Call me:13669949698";
} | e6dadd51decd16df4518e7a1c7f7ccf49fb42a42 | [
"JavaScript"
] | 1 | JavaScript | iorixq01/iorixq01.GitHub.io | aa7679927683fd318367b0208122f59b95603557 | 479beaa7286f0365a2e7ce0afab440bf2ecdebdd |
refs/heads/master | <file_sep>class TextsController < ApplicationController
def new
@party_id = params[:party_id]
end
def create
friend_name = params[:friend_name]
party_id = Party.find(params[:party_id]).id
twilio = TwilioFacade.new(friend_name, current_user.name, params[:phone_number], party_id)
twilio.text
... | 76694e44e8ab6e3fffa1a1e0f4db693c2925d795 | [
"JavaScript",
"Ruby",
"Markdown"
] | 46 | Ruby | wehttamclan/star_party | 94e2f17db0161d5100e7f16de2bb39ca6eeedd96 | f712c3639022c814ba761a40db626d2babf85fc0 |
refs/heads/master | <repo_name>lvazquez81/MinakoNoTango<file_sep>/MinakoNoTango/Controllers/HomeController.cs
using MinakoNoTangoLib.Entities;
using MinakoNoTangoLib.Library;
using MinakoNoTangoLib.Library.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ... | ddd6111740c4ad6d57e6921aeb167efe8fa4e47d | [
"Markdown",
"C#"
] | 21 | C# | lvazquez81/MinakoNoTango | 2398873a45b000e0f9a1adfde28936ed6111d0c4 | 66e8e7d611ba6ed193923df5dd3e8b22ae8c4c9a |
refs/heads/master | <repo_name>han-yan-ds/CSharp-Stopwatch<file_sep>/Stopwatch.cs
using System;
namespace Stopwatch
{
public class Stopwatch
{
private TimeSpan Ticker { get; set; }
private DateTime StartTime { get; set; }
private bool _isRunning = false;
public Stopwatch()
{
T... | e8ae8a0cd2327309cd3be55d1598e2e794f2b05a | [
"C#"
] | 2 | C# | han-yan-ds/CSharp-Stopwatch | cc923bba4f319fe598bfadbd70137b8c51595ff8 | 5c72ebfd4bc71c7417bf4fed173cae90fa9fa710 |
refs/heads/master | <file_sep>#!/bin/sh
sbcl --load load.lisp --eval '(planetwit:main)' | 7728bb966e8ee23dbf6126e1213a412a622dbdf2 | [
"Shell"
] | 1 | Shell | jsmpereira/planetwit | 0763f7ae78f7243d60a297248659ed442e9216c1 | 1e4e86964e5d7641d10eab10ccfa626d13e85985 |
refs/heads/master | <repo_name>DanDanTseng/AlarmManager_Repeat<file_sep>/app/src/main/java/com/wj/alarmmanager/app/AlarmReceiver.java
package com.wj.alarmmanager.app;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.w... | 89bf9863a5f72548d369d58791f5fa59d0eea01b | [
"Java"
] | 2 | Java | DanDanTseng/AlarmManager_Repeat | 5f02b5557041dd13c9e0c8d3bfd4ef643711546f | f00edca8fc25dee07765959b97047d9fb98e8f2e |
refs/heads/master | <repo_name>Andrewryanhyde/ruby-music-library-cli-cb-000<file_sep>/lib/song.rb
class Song
attr_accessor :name, :artist, :genre
@@all = []
def initialize(name, artist = nil, genre = nil)
@name = name
self.artist = artist if artist
self.genre = genre if genre
end
def self.create(name)
new_song... | 3d5757e114a6f9d90369059288b65c1cd0ceaf7e | [
"Ruby"
] | 2 | Ruby | Andrewryanhyde/ruby-music-library-cli-cb-000 | 2d910efc64a0c46eea8a3a42067162966c4ead88 | 2d1aabf3a9a5c257fa2c24e5b96a84940f2c1e0d |
refs/heads/main | <repo_name>pohaha/distribution_Optimization<file_sep>/Distribution/cell.h
#pragma once
#include <string>
class cell
{
private:
float m_transferCost = 0;
unsigned int m_consumerId = 0;
unsigned int m_providerId = 0;
int m_transfer_amount = 0;
bool m_inSolution = false;
friend class distribution;
... | d238e00d3899643c3528c1bea6a63f3ba5c2815c | [
"C",
"CMake",
"C++"
] | 9 | C++ | pohaha/distribution_Optimization | 70aad74bdf95f6f5a639bc642a80d91589c14ba7 | 2ddc3dfccedb1029412faba0856e4cf9dc83f0bb |
refs/heads/master | <file_sep>/**
Write a function that accepts two arguments and returns the remainder after dividing the larger number by the smaller number. Division by zero should return NaN. Arguments will both be integers.
**/
function remainder(a, b){
// Divide the larger argument by the smaller argument and return the remainder... | 5cbe5c38f9aca651232b9a1bb9f16394091f96e9 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | ludovicbonivert/CodeWars | ae5aa0f42599692b00635047089174c6d499d52a | 6c55415ab47d525710716d3b5d910a2a99fe6c58 |
refs/heads/master | <file_sep>volume-adjuster
===============
Simple script that auto-adjusts pulseaudio volume so you don't have to keep fiddling with the volume.
#### Installing
```
git clone https://github.com/the7erm/volume-adjuster.git
cd volume-adjuster/
git submodule init
git submodule update
```
#### Running
Open up your comman... | a5e2d8e124fb63fa5cfa2e8adcd09f78cbb7c658 | [
"Markdown",
"Python",
"Shell"
] | 4 | Markdown | the7erm/volume-adjuster | 71ec604f4646c9f09eee9f0157c689fe4519f97b | 53bafdf248a00212e1c56c0ed1abca49d60fff33 |
refs/heads/main | <file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url().'assets/css/bootstrap.min.css'?>">
<title>... | c8c0704929a364e1bbf8b94558ea2cdf9ae0ce43 | [
"SQL",
"PHP"
] | 6 | PHP | shani113/Rform | 67be764446f64f7381b966fe03f1b20cf9a84f8b | a975a4e75260ce882590fcc650bef8bfc235cd81 |
refs/heads/master | <repo_name>Alischrec/PasswordGenerator_Hwk03<file_sep>/script.js
// Generating a password:
// 1. Prompt user: "How many characters would you like your password to be? Must be between 8-128 characters."
// A. If within range:
// a. Confirm passoword length: "You have selected a password length of __."
// ... | 1883ac592eafcac06d840172a37417c583f129e7 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Alischrec/PasswordGenerator_Hwk03 | c0552ffd288d500469c74ffa56ee26824861b56b | 3560305dd023f7f5f8a3844933754b428ccac6e9 |
refs/heads/master | <repo_name>ahmedsameha1/algorithms_and_data_structures<file_sep>/python/binary_search/test_binary_search.py
import unittest
import binary_search
class TestBinarySearch(unittest.TestCase):
def test_binary_search(self):
self.assertFalse(binary_search.search([1, 3, 5], 7))
self.assertTrue(binary_searc... | e2b2fbe90c83f7646ab02c12d1dc211ba9a8f748 | [
"JavaScript",
"Java",
"Python",
"Gradle"
] | 21 | Python | ahmedsameha1/algorithms_and_data_structures | e215a91767360b2334db7433317e0de7162e6e91 | bf4b6724146ef932c0ad59d371d131935201def2 |
refs/heads/master | <file_sep>require 'root.rb'
describe 'add' do
it 'adds' do
expect add(1, 2).to eq(3)
end
end<file_sep>def add(n, m)
n + m
end
def subtract(n, m)
n - m
end
def multiply(n, m)
n * m
end
def fib(n)
return 1 if n <= 2
return fib(n - 1) + fib(n - 2)
end<file_sep>require '../root.rb'
... | a00bb4bcd822836cf59fe5a37d3fe5b70b8c0ea7 | [
"Ruby"
] | 3 | Ruby | evanfujita/testing | d8cd4f8fbe460457b1329f5bc226e96dc6ea7cf4 | 00b15b1234a32570ece392295f16a60b1dd9367f |
refs/heads/master | <repo_name>anpero-vietnam/signalr<file_sep>/SignalR/Readme.txt
https://github.com/christiandelbianco/monitor-table-change-with-sqltabledependency/blob/master/README.md
Install-Package SqlTableDependency -Version 8.5.4
1) Add new connection string with name ="connectionString"
2) Update <httpRuntime targetFramework="4.... | 864db803f4d8cff709a497f35fab28cf25e69ede | [
"Markdown",
"C#",
"Text"
] | 9 | Text | anpero-vietnam/signalr | 72bb261a03c350768cb8417f78573196fc236f2b | 59074e1c8d5208d92788ab746d9ca586acc9de5f |
refs/heads/master | <file_sep>package at.fh.swenga.f4u.report;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.user... | 0c051451f48ca5f9e39126ad491244a69cb378a3 | [
"Java"
] | 1 | Java | danielkandlhofer/F4U | 8733cc3300b4868bb6da5d1459599566afcbab03 | b26aec098449908e8d2a9319f43cf165698f7c35 |
refs/heads/master | <file_sep>Read me test
On modifie
<file_sep>package fr.burgers;
import java.util.ArrayList;
import java.util.List;
public class Hamburger {
protected String nom;
protected String pain;
protected String viande;
protected double prix;
protected List<IngredientSup> ingredients = new ArrayList<>();
protected int n... | 9a23d1535c75ef1486e4eb4ea5743e04219d3ce9 | [
"Markdown",
"Java"
] | 2 | Markdown | Mathilde1/projet1 | 15a02571606a0349d4981c24005d290f904e645f | 0aab81442aca28abbe5513d2ff960ff6ee613800 |
refs/heads/master | <file_sep># A minimal pdftotext service for the POC.
FROM ubuntu:18.04
MAINTAINER vgheorgh (<EMAIL>)
RUN apt-get update && apt-get install -y python python-pip poppler-utils
COPY run_pdftotext.sh /tmp/run_pdftotext.sh
ENTRYPOINT ["/bin/bash", "/tmp/run_pdftotext.sh"]<file_sep>import re
import csv
def hetti... | 4275fd41442cc19fd37eae6583f2eee94d1294ee | [
"Markdown",
"Python",
"Dockerfile",
"Shell"
] | 8 | Dockerfile | rzr19/pypy | aa247ecfc63e6d53bd73ddee257d265cfdadee8b | 5da607341f8b6ab85e6ec3ce644482bc84cbcb91 |
refs/heads/master | <file_sep>import Controller from './controller/Controller.js'
var game = new Controller();
game.init();<file_sep># e-snake-6
[Demo](https://bdeglane.github.io/e-snake-6/ "demo")
## install
```
npm install
npm run build
```<file_sep>'use strict';
import VertebraView from '../view/VertebraView.js';
class Vertebra {
... | 616bed4c320ae99580efaca4a7ffd6f48292b09b | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | bdeglane/e-snake-6 | 9f4203034075aab7c95cedb3d5ea2382f37575db | 2b40637e2355cf0197d55350435198470c4e2a68 |
refs/heads/master | <file_sep># BAmazon
How to use BAmazon App:
## Getting Started
- In Bash, type git clone "<EMAIL>:Vertigo-1/BAmazon.git"
- Run command in Terminal or Gitbash "npm install" to download required modules.
- Run command depending which mode you would like to be on:
* Customer - 'npm run customer'
* Manager - 'np... | 11907f5234665d2739887f20e864b70594a52b28 | [
"Markdown",
"SQL"
] | 2 | Markdown | Vertigo-1/BAmazon | a0b03b39cc63b87cfe6d959f09f0fa2cf1658c33 | a56e4afdd5fcd25782147f207bb48013e5aa161e |
refs/heads/master | <repo_name>mtn81/sls-python-sample<file_sep>/handler.py
# coding: utf-8
import json
import logging
import boto3
import uuid
import os
# ログの設定
logger = logging.getLogger()
logger.setLevel(logging.INFO)
# DynamoDB
logger.info('DYNAMO_URL:' + str(os.environ.get('DYNAMO_URL')))
dynamodb = (lambda url:
boto3.resource... | 113b2e93936b99a04100337ac96fe3852b48bb81 | [
"Python"
] | 1 | Python | mtn81/sls-python-sample | 4879d08db98eca840a9c294c4e2d9e2529c20c81 | ece3f5598fd64961124f114efaa3d7fd6831f13f |
refs/heads/master | <repo_name>steedn/SQL-bear-organizer-lab-onl01-seng-ft-072720<file_sep>/lib/insert.sql
-- INSERT INTO bears VALUES (1,"Mr. Chocolate", 20, "M", "dark brown", "calm", 0);
-- INSERT INTO bears VALUES (2,"Rowdy", 10, "M", "black", "intense", 1);
-- INSERT INTO bears VALUES (3,"Tabitha", 6, "F", "dark brown", "Nice", 1);
-... | 30f58b54d887699b250c1f9e1cf300cff2f586d3 | [
"SQL"
] | 1 | SQL | steedn/SQL-bear-organizer-lab-onl01-seng-ft-072720 | 3027a0c292da9e80c924428aa900a658ea62c93a | d6670f56395f70b8f69202499b47c694b84bfc7b |
refs/heads/master | <file_sep>const cheerio = require('cheerio');
let htmlTableToArray = function (html) {
console.log('ОК');
const $ = cheerio.load(html, { decodeEntities: false })
console.log('ОК');
let tableLenght = $('table').find('tr').length
console.log(tableLenght);
let result = createArray(tableLenght);
console.log(... | 274aba82dcc353d604acb5bba4f08f5f545f5781 | [
"JavaScript"
] | 1 | JavaScript | denissakharov/tableToArray | 175c1c2bfd7f027248438383cb665107f6d31e32 | 6d588ce08d541a42ea6a05fb4a79372c103607da |
refs/heads/master | <file_sep>#pragma once
#include <array>
#include <map>
#include "ndarray.hpp"
// ============================================================================
namespace patches2d {
class Database;
// ========================================================================
enum class Field
{
... | c318dfa7b39b63ff0f7a0d0c22681154020f7203 | [
"Markdown",
"Makefile",
"C++"
] | 8 | C++ | jzrake/binary-torques | 22ef80108e6559e4ca781d7205f75a370da49580 | 128098209fac67393efe2230e8421f08faa503cf |
refs/heads/master | <repo_name>ianatha/morsidium<file_sep>/Frameworks/AIUtilities.framework/Versions/A/Headers/AIFunctions.h
/*-------------------------------------------------------------------------------------------------------*\
| Adium, Copyright (C) 2001-2005, <NAME> (<EMAIL> | http://www.adiumx.com) |
\----------... | 60bf991c7fa9baae612ef18c78ae9b5de2663c41 | [
"C"
] | 2 | C | ianatha/morsidium | f5ba0732fb2173b0b86afaad021919d3ecdf296f | c4e9d88bcfb20e31b64596b6479c1ae89a775d03 |
refs/heads/main | <repo_name>Stevens-DSC/storemeta-pull<file_sep>/parse/shopify.js
const { log, warn, test, okay, fail } = require('../utils/logger')
const fetch = require('node-fetch')
const delay = require('../utils/delay')
const xml = require("xml-parse")
const { Parser } = require('htmlparser2')
const { Handler } = require('html... | ae2e6a1cb3d2f8616056b8df40630a6311d34ea0 | [
"JavaScript",
"Shell"
] | 4 | JavaScript | Stevens-DSC/storemeta-pull | a5d696156a472674d86477e19cc9b7a16004eb2a | f2ab1278ff1364e60d141f9481a04fb71ad0e772 |
refs/heads/main | <file_sep><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="htt... | 697f51dec808bc9e59642dfb75a102932628ca98 | [
"PHP"
] | 4 | PHP | fonzroevykjunsay/finalportfolio | 2fbf60eacc7b649f40bf7621693a39d98e5da63c | f44a20cff50671ba70a93b08c78fc0d90970f215 |
refs/heads/master | <repo_name>zgwldrc/dab-kubectl<file_sep>/init.sh
#!/bin/sh
# 作者: 夏禹
# 邮箱: <EMAIL>
# 运行环境: zgwldrc/kubectl:v1.11.7
# 加载kubeconfig文件
# Env Var Must
# CONTEXT
# KUBECONFIG_CONTENT
# 必要的环境变量
ENV_CHECK_LIST='
CONTEXT
KUBECONFIG_CONTENT
'
function check_env(){
local r
for i do
eval "r=\${${i}:-undefined}"
if... | 998054f61705dceb9af1aec1a0213995f95e6ae2 | [
"Dockerfile",
"Shell"
] | 2 | Shell | zgwldrc/dab-kubectl | 64feef71d898eb52cd9778db8fc575ec541b351c | 88057e3c50e8711fe71cd2b92d75c1ef38332738 |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
"""
Created on Tue Sep 28 19:32:56 2021
@author: 91913
"""
radius=int(input("enter the radius of cirle"))
area=radius*radius
print(+area)<file_sep># -*- coding: utf-8 -*-
"""
Created on Tue Sep 28 21:36:10 2021
@author: 91913
""
start, end = -4, 19
for num in rang... | 2f1800728411f9bacb940509189f024243a723ac | [
"Python"
] | 2 | Python | deadly115/mycap.py | 52ff6c1c5cbf740a7dcc14180e1aa957efa54eb9 | 7cd6307a5d40db324ea62deab864c25f6e24d470 |
refs/heads/master | <file_sep>package Text;
import java.util.ArrayList;
public class Sentence {
private ArrayList<Word> sentence = new ArrayList<>();
public Sentence() {}
public Sentence(Word word) {
this.sentence.add(word);
}
public void addWord(Word word) {
this.sentence.add(word);
}
pub... | 8f4d325c40c5f810399820c11d1fab7329c1b2c9 | [
"Java"
] | 4 | Java | kvalenty/HomeWorkLess3 | 79fc979f48ba40296f84d59ebfd022e56e3717ee | 983443632330c3cb95f415c4b7502c580772bbb3 |
refs/heads/master | <repo_name>max-antip/dev_portable_pmg<file_sep>/portable.ino
#include <SoftwareSerial.h>
const int START_MESS = 0;
const int END_MESS = 1;
const char START_CH = '~';
const char STOP_CH = '$';
const int btn2 = 8;
const int btn1 = 7;
const int btn4 = 6;
const int btn3 = 5;
const int led = 4;
const String MESS_R... | 03dc591d0f34bec7cc9f7f7abe6e91c8e8da8c68 | [
"C++"
] | 1 | C++ | max-antip/dev_portable_pmg | d9563cd6a5915112d5e932520fa6907497c5d2e4 | 7b3b53b45127ff25fed778f1ac88f64046aaed4a |
refs/heads/master | <file_sep>// Importa JSON(AJAX)
function importaJSON(elemento, url){
elemento.addEventListener("click", function(){
var xhr = new XMLHttpRequest();
xhr.open("GET", url);
xhr.addEventListener("load", function(){
var listaJson = JSON.parse(xhr.responseText);
... | e92edffa375ce0615c6246f772249e0a89afe02e | [
"JavaScript"
] | 8 | JavaScript | AndersonGimenes/EstudoJs | ae49c44bb211fdc794075b81d24bff42b026cc9a | 2140e2f341f3209ceb6e1557b9d33ade9e426e13 |
refs/heads/master | <file_sep>from flask import Flask, Blueprint, session, redirect, url_for, escape, request
from flask_assets import Bundle, Environment
from flask_sqlalchemy import SQLAlchemy
import os.path, zipfile, psycopg2
app = Flask(__name__)
wsgi_app = app.wsgi_app
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL... | 4bdcb5278682ded3c9e6e245c324887d00621ea9 | [
"JavaScript",
"Python"
] | 14 | Python | ultrapowerpie/demoviz | 9b5c35246009887ba68cd63e815e37f5f7ae9289 | f37abd76f55e2c636125d7005ad1434039638e9d |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using Prism.Mods;
using Prism.Mods.DefHandlers;
using Prism.Util;
namespace Prism.API.Defs
{
public class RecipeItems : Dictionary<ItemRef, int> { }
[Flags]
public enum RecipeLiquids
{
None = 0,
Water = 1,
... | 8321dfa9d69ff3385883daa3b38dc546a71c84b4 | [
"C#"
] | 14 | C# | Fruckert/Prism | bbe271655b71197ce6e2ade1da1815f8271b8cb7 | ba425326961722c74cfeae33fc058b65b7ae10d3 |
refs/heads/master | <repo_name>maheremad/Creating-A-Website-From-Preview-Html-Css-jQuery-Lv2<file_sep>/README.md
# Creating-A-Website-From-Preview-Html-Css-jQuery
Creating A Website From Preview [ Html, Css, jQuery ]
<file_sep>/scripts/index.js
$(function() {
// Add Class Active
$('.navbar .collapse ul li').click(function() {
... | bcbdecff9e72c2ab861bdce6e302987488693e01 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | maheremad/Creating-A-Website-From-Preview-Html-Css-jQuery-Lv2 | e2e0fed057b0d1be078fe83d44ea6462eecd9e3c | 39a994ea0e115c877d67a895457e57c67d96a177 |
refs/heads/master | <file_sep>package com.sigtech.cctv;
import java.io.IOException;
import java.net.URI;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClien... | bea36a75d96406510f6de07df84ab8408b60a07f | [
"Java"
] | 4 | Java | ahmad4zan/HomePanel | 523f2dc2ac547065c3306aa8c40ef90848975404 | 8ab3ca839d67073f3fa7160236cfe35c4829e28a |
refs/heads/master | <file_sep># c_programing_language
c程序设计语言(第2版)练习 20170825 07:00
<file_sep>#include <stdio.h> //包含标准输入输出库的信息
main(){ // main函数
printf("hello world\n\c\n\n"); // 双引号中的内容 -> 字符串(字符串常量) \n 换行符(转移字符序列) \c 输出普通字符
/* 注释
*/
int fahr, celsius;
int lower, upper, step;
lower = 100;
upper = 300;
step = 20;
... | 85a2bc95bf8e2e9d8c4e31e34a863675fe863a9d | [
"Markdown",
"C"
] | 3 | Markdown | gijonhoo/c_programing_language | 59d772a3a9b6e61118d283bb98aa9ca27a299f41 | 16a080049dcef966cc6add865b300730c564545a |
refs/heads/master | <repo_name>Fran6nd/ascii-drawer<file_sep>/src/edit_modes/line_mode.c
#include <curses.h>
#include "edit_mode.h"
#include "main.h"
#include "position.h"
#include "position_list.h"
#include "ui.h"
#include "undo_redo.h"
position_list PATH;
static void on_key_event(edit_mode *em, int c)
{
position delta = move_cursor... | 248707a62ba08f31b168aa5054626e51a3161fae | [
"Markdown",
"C",
"Makefile",
"Lua"
] | 24 | C | Fran6nd/ascii-drawer | 16ce944a6255a3242778779986a1e07b74f90116 | 5dc627db550f7c5f3267ae02c4efe1a264c85226 |
refs/heads/master | <file_sep># TWEB-TE2
## TWEB - Github API Demo
by <NAME>
## Links
[**Heroku**](https://tweb-te2-dagostino.herokuapp.com/)
## Intro
I decided to use the GitHub API, mainly because it was the only API name I recognized out of the list (and I preferred to work with something I was more familiar with, if possible), an... | 0874e286ee0f8ea5a5ae588beafba13870a6b63f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | paranoodle/TWEB-TE2 | 5f071bdbe5b1b00f4c47aa1de71f16c12e536cf9 | 589542eee566001bb54a63010a0296e385a82918 |
refs/heads/master | <repo_name>JamesBarciz/DS30-OOP-Sprint-Review<file_sep>/sprint_review/tests/conftest.py
import pytest
from ..review import BaseCharacter, Mage
@pytest.fixture()
def template_character():
return BaseCharacter('Rico')
@pytest.fixture()
def mage_character():
return Mage('Merlin')
<file_sep>/sprint_review/tests... | e2743c097b2bf0a2865e94496a1635ec416b0242 | [
"Python"
] | 3 | Python | JamesBarciz/DS30-OOP-Sprint-Review | d494d94a95a57019f6078b0cf58eb1e335d6d95b | 39d51b4c18d8a65c000d2ac559408303c9e56117 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
// import ReactDOM from 'react-dom';
class Display extends Component {
state = {
}
render() {
const { firstName, lastName, email, phoneNumber, notes } = this.props;
return (
<React.Fragment>
... | 0a597bc39c51f9a9ffac12e39d08a442bfbb3765 | [
"JavaScript"
] | 2 | JavaScript | Jmccaskey813/database | 4ba7ce0743376bfb0bc6cd45e0783b0b8440a229 | 8060b1ca8ebfe770e6063fe99680dbf5ac60df65 |
refs/heads/master | <file_sep>class Author
include Mongoid::Document
field :name
field :_id, type: String, default: ->{ name }
has_many :articles
end
<file_sep>class CommentsController < ApplicationController
def create
@article = Article.find(params[:article_id])
@comment = @article.comments.create(article_params)
redir... | b8c6cc18f378703816ffe0717a0d8a988f4f299a | [
"Ruby"
] | 2 | Ruby | PawelMietelski/mongo-blog | 8850f88d9a9d5f5273a7765ebe9519c1fc13f584 | b8541ae7e4ce68c51b67c825d16238d2f7a67855 |
refs/heads/master | <file_sep>from Body import Body
from DragModel import DragModel as dm
import scipy as sp
import fluids as fl
class Integrator:
def __init__(self,planet,body, time_step):
self.body = body
self.planet = planet
self.time = 0
self.time_step = time_step
def updateTime(self):
self.time += self.time_step
... | 4be84c4062d16137c4dae98dc4b09e36ef221477 | [
"Python"
] | 4 | Python | kaustubh-vinchure/Orbital-Simulation | 20ef4f5fccb5b745b69a3534e51084879c4b41eb | 056e4e44a91758f8dd0a93e43c4109572408b469 |
refs/heads/master | <repo_name>evinces/calculator-2<file_sep>/list-arithmetic.py
"""Math functions for calculator."""
def add(num_list):
"""Return the sum of the two inputs."""
result = 0
for num in num_list:
result += num
return result
def subtract(num_list):
"""Return the second number subtracted from the... | 4526eda43aa40e018603e5a04ae745b3b486b5df | [
"Python"
] | 2 | Python | evinces/calculator-2 | 44cfea12d31842dd3e5774873fe3e91c6b78198b | cd915763d031737d4c3faa1cb99a4fd9ed10f313 |
refs/heads/master | <repo_name>bbsyaya/Hiphop<file_sep>/Hiphop/views.py
from Base.decorator import require_get_params, Error
from Base.response import response, error_response
from Init.fileread import match
@require_get_params(['phrase', 'phrase_len', 'min_max_match'])
def match_phrase(request):
phrase = request.GET['phrase']
t... | 930df7a1a91b47a7ed3e1337373f3756da813496 | [
"Python"
] | 3 | Python | bbsyaya/Hiphop | af103ac1a039d85b3b6d7c36ecaf83a7daf00815 | c8ed12d37c465ee0bbc45eb6d2a100ab293757f5 |
refs/heads/development | <file_sep>namespace TodoStore {
interface State {
todoList: Todo[];
}
interface Todo {
id: string;
checked: boolean;
done: boolean;
task: string;
atStart: number;
atEnd: number;
memo: string;
}
interface CreateTodoAction extends AnyAction {
type: typeof import("../../stor... | 36b4db8207386eb3f6a28590a23bee5072ac939a | [
"Markdown",
"TypeScript"
] | 10 | TypeScript | kzhrk/ctodo | a09899aba09a08632d8cfa3e4fbe68df0ed072a8 | cac3857ef7d6cff8f2465539c5ebbfee871660eb |
refs/heads/main | <file_sep>starting mod for food expansion series, contains shared items used by all the mods
Requires Lost Core : Located here
Minecraft Version 1.12.2<file_sep>package com.lo93.foodexpansion.core.init.items;
import com.lo93.locore.LoCoreMain;
import com.lo93.locore.items.ItemBasic;
import net.minecraft.creativeta... | f330372bc036911fb10549b6f7a40624be7acbba | [
"Java",
"Text"
] | 2 | Text | lostjarred/MCFoodExCore | eb146ae361db826e4e489deee1e682a3977c209b | 18d3f968ec83c65dbfc256c70afa6ba101012be3 |
refs/heads/master | <file_sep>import { useState } from "react";
import "./SearchBar.scss";
const SearchBar = () => {
const [searchBarValue, setSearchBarValue] = useState("");
return (
<div className="searchBarContainer">
<input
type="text"
placeholder="Search for products, brands and categories..."
... | d5ce65c4b3faece545a4230da70556fbc5edc8ed | [
"JavaScript"
] | 10 | JavaScript | akindoju/konga-clone | 81bad1f1c59d978cf520596695e892d6d84495b6 | a2c7705d155c7f98956131562d3fece79e484d88 |
refs/heads/master | <file_sep>ANSIBLE_GALAXY=$(shell which ansible-galaxy)
install:
$(ANSIBLE_GALAXY) install -r requirements.yml -p roles --force
<file_sep># -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 22, host: 2223
# influ... | 61b7230e667f666990e6f9f4c35b962c793e8a4a | [
"Makefile",
"Ruby"
] | 2 | Makefile | k-nii0211/ansible-example | 5063757c059c0a970fb744fc480317da69da65c4 | 7f775cd26dd6f0e75a3e5c1b1fb96cf9c2311745 |
refs/heads/master | <file_sep>package tlcnet.udptest;
import java.io.*;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import java.util.Arrays;
/* TODO: What if the Server starts li... | c0aeec0cbd3a33a3d251c2c8f4d5392f09d367e1 | [
"Java"
] | 2 | Java | tlcdt/udptransfer | 614e875473c35dcccad3405c1bf877d463c9a927 | 2b1694903722e102b7edb9db1c72701bacf51e72 |
refs/heads/master | <file_sep><?php require_once('../includes/initialize.php'); ?>
<?php
//check login
if(!$session->is_logged_in()) {
redirect_to("../index.php");
}
else if(strcmp($_SESSION['user_type'],"student")==0 || strcmp($_SESSION['user_type'],"teacher")==0 ){
redirect_to("../".$_SESSION['user_type']."/index.php");
... | ff9aa4299fb4b9f01ce40b41611de58e27dd8ebe | [
"JavaScript",
"SQL",
"PHP"
] | 56 | PHP | AnjuMaharjan/SchoolManagementSystem | c2076948e6902da22c39ab51ce38a097880bbfae | 4c17b1dfea4d99181ca8d8d927da2886ad6f30ea |
refs/heads/master | <file_sep># DDD Event Store PostreSql<file_sep><?php
declare(strict_types=1);
namespace PcComponentes\DddPostgreSQL\Repository;
use PcComponentes\Ddd\Domain\Model\ValueObject\DateTimeValueObject;
use PcComponentes\Ddd\Domain\Model\ValueObject\Uuid;
use PcComponentes\Ddd\Infrastructure\Repository\EventStoreRepository ... | 486ad9079dbe37d8dc41fc7bd7163f1b4349d53b | [
"Markdown",
"PHP"
] | 6 | Markdown | PcComponentes/ddd-postgresql | 6e14643d54b2dd5edde96973b13dc2fc333e9854 | 15bb9c748ce629d5e866621eb20fe0181108db48 |
refs/heads/master | <file_sep>export default class Planet {
constructor({ climate, gravity, name, orbital_period, population, rotation_period, terrain }) {
this.climate = climate
this.gravity = gravity
this.name = name
this.orbitalPeriod = orbital_period
this.population = population
this.rotationPeriod = rotation... | 75927090a0aa93fce5af8a9df5737fd84b48e8e8 | [
"JavaScript"
] | 1 | JavaScript | CoreyWhitmore/fall2020-swapi | 3caa90a7df0aa37be7ebb540e4802f49648df51f | bf01d33a8a1c92ae36e79865cd22ae87d306ae33 |
refs/heads/master | <file_sep>### To start the server
From the path of server.js
`node server.js`
### URL to the website
http://localhost:7007
Reference article
https://dev.to/lisahjung/beginner-s-guide-to-creating-a-node-js-server-3d0j
<file_sep>//Routes to handle client requests
//Package contains writeFile functionality which allow... | 4d0ab3d796c714226602abc7219b431370f0ad08 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | theqajedi/first-node-js-try | 3464345ac6621aeb4df83c1e7020804d9ac47bd1 | a0a41ed122f3899ec10d54ebe5ce09fec99868c6 |
refs/heads/master | <repo_name>Codeleton011/Example_C_Programs<file_sep>/C_Dynamic_memory_allocation/C_Dynamic_memory_allocation/Main.c
// C_Dynamic_memory_allocation
// Author: Codeleton011
// Date: 2017. 05. 18
#include <stdio.h>
// Employee structure
typedef struct{
int age;
char* name;
float sallary;
} employee;
// Ma... | 064cb993ac5bde44cd1aa944e2687d9d0d620a19 | [
"Markdown",
"C"
] | 21 | C | Codeleton011/Example_C_Programs | 757e70ea205201bb2461d568335d78246b46bd44 | b6050f2210aa1b3b3040308e3e4ae78f7100fb22 |
refs/heads/main | <file_sep>using System.Collections.Generic;
namespace WebEnterprise.Data.Entities
{
public class Magazine
{
public int ID { set; get; }
public string Name { set; get; }
public List<Document> Documents { get; set; }
}
}
<file_sep>using System;
using System.Collections.Generic;
usin... | f803a6498f12bcdc096c2a3c6f95e37c76437d06 | [
"JavaScript",
"C#"
] | 34 | C# | hellomynick/CMSGreenWichProject | 35c0e144463345c977ab29dd81504915dcd0a8ed | 81e84bc4a911e831f1b4b93fde9e642ed338d95a |
refs/heads/master | <repo_name>leanovichilya/morse-decoder<file_sep>/src/index.js
const MORSE_TABLE = {
'.-': 'a',
'-...': 'b',
'-.-.': 'c',
'-..': 'd',
'.': 'e',
'..-.': 'f',
'--.': 'g',
'....': 'h',
'..': 'i',
'.---': 'j',
'-.-': 'k',
'.-..': 'l',
'--': 'm',
'-.': 'n',
'---': 'o',
'.--.': 'p',
'--.-': '... | 17f616d5050056e22281b8813f8bf8a3c4b1ff50 | [
"JavaScript"
] | 1 | JavaScript | leanovichilya/morse-decoder | 9674069378b68e63d2a08e21541ea727cba8b815 | 4d000025061b855b7c0db9c200d0792d02538686 |
refs/heads/master | <file_sep># Terraform custom provider: Device42
## Description
This is a custom created terraform provider to be used to interact with the device42 API.
## Device Resource: Argument Reference
* name - (required) the server hostname (minus the domain)
* custom_fields - (optional) a hash (map) of custom fields and valu... | eb7e8b2697eda47d51990bbaa16d2988aa3ba99f | [
"Markdown",
"Go Module",
"Go"
] | 4 | Markdown | jgrancell/terraform-provider-device42 | 869ca4bb6e4ae088f8b617d5f05ca988c7855b8d | 528d02ce1957660c13350fa971d1ab0034fce773 |
refs/heads/master | <repo_name>exilaus/K34M<file_sep>/karya34m/karya34m.ino
//#define timing
//#define timingG
//#define echoserial
char wifi_telebot[20] = "";
char *wifi_ap = "K34M";
char *wifi_pwd = "<PASSWORD>";
char wifi_dns[20] = "K34M";
#include "config_pins.h"
#include "common.h"
#include "gcode.h"
#include "temp.h"
#include "ti... | 6d26e23481086455022dbc302cf2a911d3cc890e | [
"JavaScript",
"C",
"C++",
"Markdown"
] | 22 | C++ | exilaus/K34M | 554a75edd72f51ffede7fe32a5382d4b9257e943 | d796a8f325d40b93ef9e0345594e57f7d28860c2 |
refs/heads/master | <repo_name>zhilixue/resume<file_sep>/js/index.js
let loadingRender = (function ($) {
let $loadingBox = $('.loadingBox'),
$run = $loadingBox.find('.run');
//=>我们需要处理的图片
let imgList = ["img/icon.png", "img/zf_concatAddress.png", "img/zf_concatInfo.png", "img/zf_concatPhone.png", "img/zf_course.png", ... | 054fd6dcd2f89d3503add4c9ee82d375d6f2ca6c | [
"JavaScript"
] | 1 | JavaScript | zhilixue/resume | 29d3292e6d11f79cd09122fe88f125b774421ab2 | 66cee57ba242dec689b62d72a808618d2b2786cd |
refs/heads/main | <repo_name>utkarshmaken/springlearn<file_sep>/src/main/java/utkarsh/maken/springlearn/bootstrap/BootStrapData.java
package utkarsh.maken.springlearn.bootstrap;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import utkarsh.maken.springlearn.model.Author;
import utkar... | 0425d26160bf9b455d56abc59847cb928b5a94ef | [
"Java"
] | 1 | Java | utkarshmaken/springlearn | 6a2dbd9e102dda6976f68cb0c4f2100bf6843f0a | 88659ceca41f34443d0428bdbfba0703ebd2af57 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.