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>sunzhaoye/campus<file_sep>/fe-recruit/fis-conf.js
fis.config.set(
'project.include', ['templates/**', 'static/**']
);
fis.config.set(
'project.exclude', ['views/**', 'migrations/**']
);
fis.config.set('modules.parser.less', ['less']);
fis.config.set('modules.postpackager', 'simple');
fis.config.set('p... | ae89e89d4ee74aa70a524747a01d9a01d93eac44 | [
"JavaScript"
] | 2 | JavaScript | sunzhaoye/campus | c69271e0a6c8c775c91e3f5e3d65362e25fd16cc | 183ea3c571e2224e1fd0008adffa13084a464fc8 |
refs/heads/master | <repo_name>trentluo/shop<file_sep>/src/main/resources/init.properties
version=1.0.0
staticAddress=http://localhost:9090/shop/
sysTitle=\u5728\u7EBF\u8D85\u5E02<file_sep>/src/main/webapp/script/validate.js
var regexEnum =
{
intege:"^-?[1-9]\\d*$", //整数
intege1:"^[1-9]\\d*$", //正整数
intege2:"^-[1-9]\\d*$"... | 3d8d0d51f3260a9684bf090941dbe31266f3ada1 | [
"SQL",
"JavaScript",
"Maven POM",
"INI",
"Java"
] | 11 | INI | trentluo/shop | 11bd49ebd88b49d8a3a7844f33e5556a3475f31e | 382299174899ecf3f04ef23cad8e7122d95ca206 |
refs/heads/master | <repo_name>ldartez/lofasm_analysis<file_sep>/lofasm_check_transit.py
#! /usr/bin/env python2.7
from lofasm.station import LoFASM_Stations
import ephem
import numpy as np
from pytz import timezone as tz
if __name__ == "__main__":
import argparse
desc = '''Calculate next rise and set time for a source at any... | 5ec5a62d1260cb4ccc9bae22d7b757f1fc4e136d | [
"Python"
] | 4 | Python | ldartez/lofasm_analysis | 079d7c231f43422b13528c174464850de599317f | 9ce438c14256c976503e5ca7d6ea6cde9ed60237 |
refs/heads/master | <file_sep>package com.example.article.repository;
import com.example.article.model.Tag;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* Created by hwang on 2016-10-22.
*/
@Repository
public interface TagRepository extends JpaRepository<Tag, Long>... | c1ec50ebf1adf8e930cf1f13404d33da368286be | [
"Java"
] | 2 | Java | tinymin/SpringBootBoard | 85411631dd86185f6b2741ca179711ac38665612 | 0ec5261e59d73e33262cff6a5ef8079d2ef62ce2 |
refs/heads/master | <repo_name>abravalheri/dotfiles<file_sep>/%wsl/.config/zshrc.d/export-display.zsh
export DISPLAY=localhost:0.0
export LIBGL_ALWAYS_INDIRECT=1
<file_sep>/@full/bootstrap.sh
#!/usr/bin/env bash
__bootstrap() {
local HERE="$(pwd)"
cd $(dirname "${BASH_SOURCE[0]}") || exit 1
find .. -maxdepth 1 -type d \
| xargs... | 93578b6cc4c0263ab37a6a9dce913a8e29dfb086 | [
"Markdown",
"Makefile",
"Shell"
] | 95 | Shell | abravalheri/dotfiles | b91c2973dde9a85c9aa4aab8d74f7deabfffc59e | 7478ccefde4d253595cbbfabd46ca77f0dc95961 |
refs/heads/main | <repo_name>ganeshcpote/aws-kms-encryption<file_sep>/aurora_rds_encryption.py
import json
import boto3
import botocore
import datetime
import time
def lambda_handler(event, context):
print(str(event))
inputParam = json.loads(event['body'])
db_cluster_name = inputParam['db_cluster_name']
... | c0d0187ea0603098b21ade313f5958ce71791516 | [
"Markdown",
"Python"
] | 8 | Python | ganeshcpote/aws-kms-encryption | a602fe9c3539643bf780f9013d3a1aba21bd665f | b4009c305b70204470a61729ecd5a5e22db91b85 |
refs/heads/master | <repo_name>logan4179/Fighting-Game<file_sep>/scr_fade2.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class scr_fade2 : MonoBehaviour
{
public float fadeSpd = 0.05f;
//public float fadeRate = 0;
public bool fadeIn = true;
public float timeP... | 7f75cac87059581a81eaf2b062a0ca15baa38970 | [
"C#"
] | 5 | C# | logan4179/Fighting-Game | 599f2668dbdb96fbed725170eeef4e4a47326675 | a392e2d8197e8bc173c328dd75ee4f522673c665 |
refs/heads/master | <repo_name>gilleslabs/php-csv<file_sep>/create_csv.php
<?php
error_reporting(E_ERROR | E_PARSE);
if(!function_exists("array_column"))
{
/**
* Retourne les valeurs d'une colonne d'un tableau d'entrée
*
* @param array $array Un tableau multi-dimensionnel depuis lequel la colonne de valeu... | c9cd730aa8a6e12b8234bbaad080a88db772c686 | [
"PHP"
] | 1 | PHP | gilleslabs/php-csv | 7da550d372b264ee400537777ab1aeeb66fd9a1f | 27a95a052620b46f5f028f11d65cb194d4390b08 |
refs/heads/master | <repo_name>pszujewski/base2<file_sep>/README.md
# base2 CLI
Converts base-10 numbers to base-2 numbers and vice versa. Usage is as follows:

To use on your machine, clone this repo and execute:
``` bash
# install dependencies
npm install
# compile typescript source cod... | fa01e15f8f1b0cab6a5fab8ddf1450e7cef72f1d | [
"Markdown",
"TypeScript"
] | 9 | Markdown | pszujewski/base2 | 9439181b650e662fe52d9301d2ef74f0838077f6 | c51703cd63402f46232622dc5685dcf6eda15502 |
refs/heads/main | <file_sep>// eslint-disable-next-line no-undef,no-implicit-globals,no-unused-vars
var swiper2 = new Swiper('#discovery-carousel', {
a11y: true,
keyboard: {
enabled: true,
onlyInViewport: false
},
pagination: {
el: '.swiper-pagination',
type: 'bullets',
clickable: true
}... | 08c04d8b2abb28b56fb784d822096b6109427861 | [
"JavaScript"
] | 1 | JavaScript | AurelNGuetta/newDesignWeb | 63df60e100b7a048cf063e275ff0c841e3079406 | 68087363a4b6db4add3fb4c7d2bdedcd7a220286 |
refs/heads/master | <repo_name>KaloFreeze/LocalNetworkingApp<file_sep>/LocalNetworkingApp/ViewController.swift
//
// ViewController.swift
// LocalNetworkingApp
//
// Created by <NAME> on 2019-11-01.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
import CocoaAsyncSocket
class ViewController: UIViewController {
... | 15c226e7f4b7fa8d013fefa0167db907cbc291ad | [
"Swift",
"Markdown"
] | 3 | Swift | KaloFreeze/LocalNetworkingApp | 4cee1f5c47ce9fffcaa6cc5eab5cf55737bb4253 | cd6e6786255eefd81c112444abccfa4ef322e92d |
refs/heads/master | <file_sep>/*-----------------------------------------------------------------------------
* FILE: snd_main.h
*
* Copyright (c) by SEGA.
*
* PURPOSE:
*
* サウンドI/Fライブラリヘッダファイル。
*
* DESCRIPTION:
*
* サウンドドライバとのインタフェースを実現する。
*
* AUTHOR(S)
*
* 1994-05-18 N.T Ver.0.90
*
* MOD HISTORY:... | b3139453f3cc9848f45211175ea32690b2eb36e1 | [
"C"
] | 17 | C | byungwoo733/joengine | 4339bb4fb6cbb34577912b831276ac894d49d756 | 69293209d92d8595e9bc1726b213a18caa8a7f36 |
refs/heads/master | <file_sep> var feed = new Instafeed({
get: 'user',
userId: '8331094',
clientId: '3<KEY>',
accessToken: '8<PASSWORD>3e4697ab592383890<PASSWORD>8',
template: '<a href="{{link}}"><img src="{{image}}" class="img-thumbnail" width="190" height="auto" target="_blank" max-width="100%"... | 8fbfda2ec3a633154511a4f45efc0eafa1e434bd | [
"JavaScript"
] | 1 | JavaScript | amslerknives/amslerknives.github.io | bcbd57105472c002328f51c810d27e9a64ee86ee | 4a058ac43ba56da229a318820ca01e2a46e70b87 |
refs/heads/master | <repo_name>MNO-DAVINCI/oop_example<file_sep>/example_1.php
<?php
/*
1. Encapsulation
- public
- private
- protected
2. Inheritance
3. Polymorphisme
*/
class Human
{
private static $count = 0;
private $name;
public function __construct($name)
{
$this->name = $name;
self::$count++;
}
public static functi... | 6080ee890b7d5293869ebfe7cd30604c601d3d90 | [
"PHP"
] | 2 | PHP | MNO-DAVINCI/oop_example | 44ef8aab5b199eb512954073577e5096d4889519 | 1b780b9d52910ffa5d3929ff54d21944ecd8d172 |
refs/heads/master | <file_sep>import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
savePost: function(post) {
var title = this.get('postTitle');
var body = this.get('postCopy');
post.set('title', title);
post.set('body', body);
post.save().then(function() {
this.transitionToRoute('pos... | 2891a4d5b3a4f0d162cb7cbee3cdb4aacf2a323e | [
"JavaScript"
] | 1 | JavaScript | SachinGokal/EmberBlog | b9cd5decd59d3b75754ef92148ccb526c1a3a8aa | 7308b37402e789874ea4abbc0c19649774d6912b |
refs/heads/master | <repo_name>jbouzekri/ComposerDeployPlugin<file_sep>/README.md
ComposerDeployPlugin
====================
This composer plugin add extra configuration to copy folders from the vendor to another one.
It can be useful to publish assets to a public document root.
The framework symfony uses the similar method to publish as... | ce772bd75187edfe29a57ae89507babf665a7d2b | [
"Markdown",
"PHP"
] | 3 | Markdown | jbouzekri/ComposerDeployPlugin | 98474145f1f9151618cfdb1a0e1489991eef8113 | 002e01d21b596a1c5881951acf5ad30147574ba1 |
refs/heads/master | <repo_name>bniculea/dev-node-angular-test<file_sep>/client/src/app/store/reducer.ts
import { User} from './User';
import {AppState} from './AppState';
import {LOGIN_USER, LOGOUT_USER} from './actions';
const initialState: AppState = {
loggedUser: null
}
function updateLoggedUser(state, action): AppState {
ret... | 6e799b252a494d1fe0ef9a3ee1563ebb268db7cd | [
"HTML",
"Markdown",
"JavaScript",
"TypeScript",
"Dockerfile"
] | 18 | TypeScript | bniculea/dev-node-angular-test | f9aab1db24681d3a0c6f4d8b7a8a74368b26757c | 822296ee99108e6189f01460fe82fa41bd365689 |
refs/heads/master | <repo_name>Karen235/HighChart<file_sep>/myChart.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using Newtonsoft.Json;
public partial class myChart : System.Web.UI.Page
{
protected void Pa... | 98a792753dc1f8e9382b07a72288b8062fa35441 | [
"C#"
] | 1 | C# | Karen235/HighChart | 1e497c18e24799343064620da59ed3a98be437b5 | 7e579e7f38ea0769678362afa8dbd473099f1fe5 |
refs/heads/master | <repo_name>scctsi/profiles-data-mining<file_sep>/db/index.js
var
pg = require('pg')
, Promise = require('node-promise')
;
var DATABASE_URL = "postgres://anirudha:anni@localhost/profiles_data_mining";
var dbPromise = new Promise.Promise();
var dbClient = new pg.Client(DATABASE_URL);
dbClient.connect... | 2ea075182333965500f35e30c6c1f77130ccab87 | [
"JavaScript",
"Ruby",
"Markdown"
] | 6 | JavaScript | scctsi/profiles-data-mining | 264eea41191add410f1908646fdcc500460be829 | dfcaf05ec0a7c8fdb749bcff2423db3b554087ed |
refs/heads/master | <file_sep>var PDFDocument = require('pdfkit'),
parser = require('xml2json'),
fs = require('fs'),
_ = require('lodash')
module.exports = {
generate: function (options, callback) {
try {
if (options.esArchivo) {
// Data transformation
fs.readFile(options.xm... | 18837e82fa46cf8ae86a81772c1b484f6ad5cf78 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | bpinedah/invoiceman | 611ce5e3bde01994c5a3c644368ff4df77d53be7 | 240315777533f98aa05f9943c8d72dc21a69b621 |
refs/heads/master | <repo_name>phonchi/SCA-Algorithms<file_sep>/DES_CPA.py
#! /usr/bin/python
import LoadTraces
import des_block
import numpy as np
import matplotlib.pyplot as plt
from util import *
class DES_CPA():
def __init__(self, acq):
self.acq = acq
self.distList = None
def distinguisher(self, sboxNum, sta... | 8a3c5ec4c21edaa6d1e2acf6225874dc96468ec5 | [
"Markdown",
"Python"
] | 16 | Python | phonchi/SCA-Algorithms | cd765a3aef606eb4b42a23c117417e83d493d960 | c29f79cd9a08482a8457e66bd8c589702f3381cb |
refs/heads/master | <file_sep>from random import randint
def setup():
size (600, 600)
#ocean
r = random (0, 255)
g = random (0, 255)
b = random (0, 255)
background(92, 182, 255)
fish_color = color(255, 149, 92)
i = 1
while i < randint(10, 20):
fishX = randint(100, 400)
fishY = rand... | 0eb5f00550c24d8a87cf2b2b4c6500690b8ab185 | [
"Python"
] | 1 | Python | jcurtis6/fish_tank | 0ae68dc059ee0f0b6dc8b1c7a0abce1b68a66299 | 493e2836a4780c14d05178aacf80634bc49b84c2 |
refs/heads/master | <file_sep>requests
psutil
py-cpuinfo
python-socketio
websocket-client<file_sep># [IOTBOT](https://github.com/IOTQQ/IOTQQ)的色图姬插件
在config里填上bot的qq号和对应webapi地址和[key](https://api.lolicon.app/)运行就好了,那些黑名单 白名单什么的没特殊要求就不用管了....
| config | 数据类型 | 说明 ... | 9dd9d48c035e6923ca85fee273c016bd0d53ffbd | [
"Markdown",
"Python",
"Text"
] | 3 | Text | ChrisYan6/IOTQQ-color_pic | b1122c455ec9a0048604b7f7796e0c76f0a619f5 | ae055bfc7b50a63755136015fed06d7b91c7e271 |
refs/heads/master | <repo_name>MarcosBarrios/SpaceInvaders2017<file_sep>/GUIInvasores.java
import java.awt.*;
import javax.swing.*;
/**
* Esta clase contiene básicamente el renderizado para los invasores del juego
*
* @author <NAME>.
* @version 1.0
*/
public class GUIInvasores{
private Color c;
private int posx, p... | 1a11f09a40afec0d7eb3e0045a18802460cf3f44 | [
"Java"
] | 4 | Java | MarcosBarrios/SpaceInvaders2017 | eb361d9699d1995004a1704bdb37cd2d57814ed3 | fd2440329edfb5ab9bb93801f7943da16e0e2916 |
refs/heads/master | <file_sep>## makeCacheMatrix makes a list of functions,which can be used to
## manipulate the matrix, cacheSolve -- computes the inverse of the
## matrix(if the inverse doesn't exist and the matrix is unchanged)
## else gives the cached value
## makeCacheMatrix--initializes the matrix,retrives the matrix,
## sets the... | 1da15e0eac743aff6a0a36a8ace54689759fc871 | [
"R"
] | 1 | R | piyush-daga/ProgrammingAssignment2 | 98e71384e2021bfdb258d9f72a37f885b2e013b7 | c6272b8c18b266feb943098c11f124ace0af5643 |
refs/heads/master | <file_sep>
int light = 13;
void setup() {
Serial.begin(9600);
pinMode(light, OUTPUT);
}
void loop() {
Serial.println(analogRead(A0));
if (analogRead(A0)<800)
{
digitalWrite(light, HIGH);
}
else {
digitalWrite(light, LOW);
}
delay(500); //low pass filter
}
<file_sep># ArduinoMoisture
Arduino connected to a moisture ... | cb0b84396ec066d189a0f76fdf332b7dca510180 | [
"Markdown",
"C++"
] | 3 | C++ | MrHawthorn/ArduinoMoisture | fd65b9d17d46a8774b1b8af6ba8926436b177371 | fb74c656a5f0938a6a1c0796ba12a4f860c34b3c |
refs/heads/master | <repo_name>Ayushi007/Yelp-Fake-Review-Detection<file_sep>/src/fasttext.py
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import scikitplot
import scikitplot.plotters as skplt
from gensim.test.utils import common_texts
from gensim.models.doc2vec import Doc2Vec, TaggedDocument
from gensim.models i... | 2560287dc8b4102c5816df53eb1299c0536b7dee | [
"Markdown",
"Python"
] | 2 | Python | Ayushi007/Yelp-Fake-Review-Detection | 1b6fff169f160b8ee68ee923f396089bc90770d5 | a904f13dfe6f783f936c17b218addb581c2a9dfc |
refs/heads/master | <file_sep>/**
* Copyright (c) 2019 <EMAIL>
* Created Date: 2019/6/14 14:56
* Author: <EMAIL>
* Email:<EMAIL>
* File: HashMap.cpp
* Description:
* Package: Boost
* -----
* Last Modified: 2019/6/14 14:56
* Modified By: the developer formerly known as Administrator at
* <<EMAIL>>
* -----
* HISTORY:
* Dat... | e762463656ece4fc7e618f84580351c5b1d4384a | [
"Markdown",
"CMake",
"C++"
] | 16 | C++ | xuejibingxuan/boost | d8eae98146430911b469d2e303c559746ac94728 | 59864682543094e1f47ccb12ff5de58c9d17abff |
refs/heads/master | <repo_name>cheezbuggah/TrafficController<file_sep>/Controller/Resources/algorythms/allgreen.py
from Scripts.controller.controller import Controller
from Scripts.controller.controller import Algorithm
class AllGreen(Algorithm):
def calculate_new_floor_plan(self):
colours = [
Controller.LIGHT_COLOR_GREEN
]
... | beeeaa31b64e27ebc116f12fd17d8501cfa632fa | [
"Python"
] | 13 | Python | cheezbuggah/TrafficController | 6ec3db16bb18dee8f08114115336cd97b36e0803 | 4fbdfd56242275b8f614149c2c2b32f691260b40 |
refs/heads/master | <repo_name>darouwan/DataService<file_sep>/src/rest/holidays/bean/Date.java
package rest.holidays.bean;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Date {
private String day;
private String month;
private String year;
private String weekday;
public String getDay()... | 8c533b617ef57a9e9b3190971d12c8b6f18c6b42 | [
"Java"
] | 1 | Java | darouwan/DataService | d81f364cef2b6b6d63b56efef53808d9810160e3 | 1796aeca872e52c2128479e6679f8cd15d932052 |
refs/heads/master | <repo_name>noflybird/CarND-Vehicle-Detection<file_sep>/pipeline.py
#!/usr/bin/env python
"""
使用训练好的模型
"""
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import numpy as np
import pickle
import cv2
import util
import glob
from scipy.ndimage.measurements import label
from moviepy.editor import VideoFi... | 4f4be65e97ff57cac7b08fd975d58c4e613e2709 | [
"Python"
] | 3 | Python | noflybird/CarND-Vehicle-Detection | b0d408671c543e3c8e7fc673a040b051a1cf6e56 | cf6c4313d7cc748bdec4c5cda5fdf86803e5a807 |
refs/heads/master | <file_sep># Test scenario
### List of contracts
1. Factory
2. Controller
3. qToken
## 1. Factory
**Atomic requirements:**
1. Deploys new protocol token (qToken) if the new token is enabled as the collateral.
2. Only admin can enable the support of the token.
3. The asset support can only be added once.
4. Should n... | ba153afe781bb9eda1b927ab1f8a1e52071abcf2 | [
"Markdown",
"JavaScript"
] | 19 | Markdown | Cori1109/yupana-protocol-core | e1c765b19533ba03ec0ddc837db508c14948026f | fe59c71435e18a4654ed9de0325054114e6eb6db |
refs/heads/master | <file_sep><?php
// buscar o informações do módulo
if ($stmt = $mysqli->prepare("SELECT codigo, nome FROM modulo WHERE codigo = $modulo LIMIT 1")) {
$stmt->execute(); // Execute the prepared query.
$stmt->store_result();
$stmt->bind_result($codigoModulo, $nomeModulo);
$stmt->fetch... | d784ea5e84947555fff3e04e3f5fdbc090db3cb1 | [
"SQL",
"PHP"
] | 60 | PHP | anderfilth/Painel-Workapp | e11141ffbc6ae4a61ebd2f0fd57ce32718e03b6a | 6c2762de41d34792f2d03a566ae8dde21d4e0343 |
refs/heads/main | <repo_name>Shopify/js-buy-sdk<file_sep>/fixtures/checkout-discount-code-apply-fixture.js
export default {
data: {
checkoutDiscountCodeApplyV2: {
checkoutUserErrors: [],
userErrors: [],
checkout: {
id: 'gid://shopify/Checkout/e3bd71f7248c806f33725a53e33931ef?key=47092e448529068d1be52e5051... | 8ecaf7d3224eb3606c395633ed19e5b8f2a60c47 | [
"JavaScript",
"TypeScript",
"HTML",
"Markdown"
] | 57 | JavaScript | Shopify/js-buy-sdk | fc622d63a5fa7345a9def9085ee2a93a59b592b3 | d1b7fc8f30b81076e917b11c17d209017082b476 |
refs/heads/main | <repo_name>div8791/C-<file_sep>/farehntocelsius.cpp
#include<iostream>
using namespace std;
int main()
{
int init, final, step;
cin>>init>>final>>step;
for(int farehn=init; farehn<=final; farehn=farehn+step){
int c=5.0/9*(farehn-32);
cout<<farehn<<' '<<c<<endl;
}
return 0;
}<file_sep>/printvalueofAS... | ee9f27a51a0ef853a9551c4c091859ed825bf58f | [
"Markdown",
"C++"
] | 17 | C++ | div8791/C- | f18246fd75b233eca19d516a98292e7187ac6756 | f15892ee3837067af0e8234dea825ec2712c2496 |
refs/heads/master | <repo_name>DenisJanoto/Trailers<file_sep>/TrailerFlix/Trailer.swift
//
// Trailer.swift
// TrailerFlix
//
// Created by <NAME> on 19/03/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import Foundation
struct Trailer:Codable {
let title:String
let url:String
let rating:Int
let year:Int
... | a49f0cc057bacd2e5a312d1e3571ae30a8e95654 | [
"Swift",
"Markdown"
] | 2 | Swift | DenisJanoto/Trailers | 81693871c8d5da4606070d56b279047e20d77c8e | d738f453d1df9fa8da24563e647bad8dd01cdf87 |
refs/heads/master | <file_sep>// http配置
import axios from 'axios';
import router from './router';
// axios 配置
// 设置请求超时时间,现在,在超时前,所有请求都会等待 2.5 秒
axios.defaults.timeout = 5000;
console.log(window.location.host);
let a=window.location.host;
// 设置接口的域名
if(a!='localhost:8080'){
axios.defaults.baseURL = 'http://'+a;
}else{
axios.defaults.... | 5726ea26823e6ecba992fffc07e325c01d66aaec | [
"JavaScript"
] | 2 | JavaScript | StevteJin/webset | 46c9e27b991ea1c9b8fc01be4f76322b0fafe26a | 287b43d960458b8279e46b167b2e938246b02e9e |
refs/heads/main | <repo_name>theorestilo/trabajo-practico-2<file_sep>/ejercicio 38.cpp
#include <stdlib.h>
#include <stdio.h>
int main(void){
cola_t *primero=NULL, *ultimo=NULL;
int x = 0;
for(x=0; x<91; x+=5) encolar((char)((double)127.0*sin((double)x*3.14/180)), &primero, &ultimo); //cargo muestras.
f... | bb580eaba75d5dec110e6f04e712b31a8803863b | [
"C++"
] | 3 | C++ | theorestilo/trabajo-practico-2 | 68cb586dafbde74a13f447476e97a129a504d745 | 51cdf1ab9f9b7645a4a74debdb06252d1b4c2783 |
refs/heads/master | <file_sep>#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>
void pause()
{
signed short bool_continue = 1;
SDL_Event ev;
while (bool_continue)
{
SDL_WaitEvent(&ev);
switch(ev.type)
{
case SDL_QUIT:
bool_c... | d12930c64ec3b76c69af4990eb6fab4ad9a8210a | [
"Markdown",
"C"
] | 2 | C | RobertoGalois/pattern_SDL_C | 1561a6b69761b7eb9900eb1f97c1e32e380f0112 | d07f58f813baf854e0ee3d46beac4b5a57e736a7 |
refs/heads/main | <repo_name>KaitlinCarlon/set08122<file_sep>/README.md
# set08122
Algorithms and Data Structures
| 776e057d0c17882d2f2182154fc155cd73c73d92 | [
"Markdown"
] | 1 | Markdown | KaitlinCarlon/set08122 | 206e3646506272295e27da66e9eade16f31f9342 | cd07429e0fdb705f44633d55e056903d48121a2e |
refs/heads/master | <repo_name>wlc534/snowpack-react-antd<file_sep>/src/AppX.jsx
import React, {
useState,
useEffect,
} from 'react';
import {
Button,
Table,
Divider,
Modal,
Row,
Col,
Input,
Select,
Switch,
DatePicker,
message,
Popconfirm,
Form,
} from 'antd';
import { useRequest, useAntdTable } from 'ahooks'... | 906421159df58b456ae8fca256289824f33fc630 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | wlc534/snowpack-react-antd | 3af72d68783aa01f3523ae9e9c584adac8cc9419 | 38acba7f706869399b84929f148deaa1cfb175e9 |
refs/heads/main | <file_sep>import React, { useState, useEffect, useRef } from 'react'
import { ChakraProvider, theme } from '@chakra-ui/react'
import alanBtn from "@alan-ai/alan-sdk-web";
import Navbar from './Nav'
import Faq from './Faq'
import { scroller } from 'react-scroll'
require('dotenv').config()
const { REACT_APP_MY_KEY } = p... | ba6bc76c948a42d44b741fda256d8b1f819371da | [
"JavaScript"
] | 2 | JavaScript | rishii24/e-commerce-customer-support-application | 0baf7c57f82b1b2807370b2eaf409b0e72466001 | 94b4bd47c9e8b53c48cf5f2c91992b08ea49118e |
refs/heads/main | <repo_name>LloydDub/iss_spotter<file_sep>/index.js
// iss.js
const request = require('request');
// ... other three functions not included in solution ...
/**
* Orchestrates multiple API requests in order to determine the next 5 upcoming ISS fly overs for the user's current location.
* Input:
* - A callback wit... | e53518a7f364cc1dad2cb5ef56705dd0bf25d00f | [
"JavaScript"
] | 1 | JavaScript | LloydDub/iss_spotter | 45e8f395a0c0d34deb720bb2aed503df85a17247 | 133af1a0fff8fad3ae61df3b7366961e75812148 |
refs/heads/master | <file_sep>class Channel extends React.Component {
render() {
return (
<li>Channel name</li>
)
//return React.createElement("li", null, "Channel name");
}
}
ReactDOM.render(<Channel />, document.getElementById("app"));
| 9c817759a11ab954d9d7efb1ca40ae9f5d8d78ec | [
"JavaScript"
] | 1 | JavaScript | Zhas90/reacintro | 785f7bed84c81e35428af86a78ea02d4deafb3ef | 587199ede7cc951a5e8c73d1a2ef6becc8f2f0c7 |
refs/heads/master | <file_sep>package model
import "time"
// ---------------------------------------------------------------
// Table Definition
// ----------------
/** タレントテーブル定義 */
type Talent struct {
Talent_Id int64 `gorm:"primary_key"`
L... | 2c490c47f0d3b58a07894cc356df6549b4d3b171 | [
"Markdown",
"Go"
] | 7 | Go | kosukeobata/management | acf90c6bc2212fda102f810ff80353625e987a55 | 93241d965df37a5f4d4c83336869f63289858c7d |
refs/heads/master | <repo_name>trainingport/incidentmanagement<file_sep>/src/main/java/com/avikdeb/java/beans/NotificationEmail.java
package com.avikdeb.java.beans;
import com.avikdeb.java.util.CustomDateTimeFormatter;
public class NotificationEmail {
private String jira_isssueid;
private String summary;
private String crea... | 7c5afdcc2c7790983e0a90868368396c07bf798c | [
"Markdown",
"Java"
] | 5 | Java | trainingport/incidentmanagement | 12d1a246d840def4770ea49fdccd9acf21ad5701 | 5c43392270549a18d7c3a3c4d18a6b620ab30d17 |
refs/heads/master | <file_sep>import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations.js'
import actions from './actions.js'
import getters from './getters.js'
import moduleA from './modules/modulesA.js'
const state = {
counter :1000,
info:{
name:'human',
age:18,
height:188
}
... | 9d54cfdd975d7952ff3243fc9dfa7296bd5a2b69 | [
"JavaScript"
] | 3 | JavaScript | hu936363800/hahaha | 07dfc1202cd4ff3b432628d335df0e3b8bd1f1fa | c6200b83134a3a03c9a467bd85a09eb29e0cadaf |
refs/heads/main | <repo_name>sourav-iit/Snakes-Ladders<file_sep>/HomeScreen.java
//package swing_program;
import java.awt.Color;
import java.awt.Container;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
imp... | 4126b05c0807ab8a79d759dcdbb617786cd1f53b | [
"Java"
] | 4 | Java | sourav-iit/Snakes-Ladders | a1b6ec0d0c5f3a4378502ba0c9378c350dec3d9c | 1a5709ecd5f0aa6e913d5c7c4a2c43306dfee62f |
refs/heads/master | <file_sep>$(function() {
$("input").attr("readonly", true);
});<file_sep>package com.incbook.project.persistence;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import com.incbook.project.domain... | c9f792ef7a7b8b0fb663e5441175e514ffcc9a6b | [
"JavaScript",
"Java"
] | 29 | JavaScript | incbook/new_incbook | fd0242a1bfa20a4de61a09c86dc14bb8ebd480a9 | 0193309ac736cd43286af7c902ae4f12571375ef |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using RestSharp;
using RestSharp.Extensions;
using System.Drawing;
using System.IO;
namespace CoupleSharp
{
public class Couple
{
private string s_baseUri = "https:/... | 8c236ea17f0695192298db3917da45897b85efec | [
"Markdown",
"C#"
] | 5 | C# | LiljebergXYZ/CoupleSharp | 2131ebeb7c7510e5f3bc81ebf5d7597bb836f988 | 6ec17d438f71ef535d731d60e099275edca56b63 |
refs/heads/master | <file_sep>var cluster = require("cluster");
const config = require("./modules/config");
config.loadConfiguration("config");
const MongoConnector = require(process.cwd()+'/modules/MongoConnector');
if (cluster.isMaster) {
var Master = require("./master");
var master = new Master({cluster: cluster});
var cpuCount = r... | 00975245b7510fda7d5a5d6f10532f89e8bcc743 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | rsegura/BobChallenge | 37ce819d0f287a6337fd0cf04974297396d24790 | 70df1ae3031717b5035e394bc746a5a519dc1e07 |
refs/heads/master | <repo_name>mykeal-kenny/alertifi_blog<file_sep>/lint-staged.config.js
module.exports = {
'*': ['npm run format', 'git add']
}
| ffeb440a82b70caa67ecc0a780f01c2609f940e5 | [
"JavaScript"
] | 1 | JavaScript | mykeal-kenny/alertifi_blog | e0104a3b57ec3ca95b7f7023f5ba19d612ecbcd9 | 217cdf3d1c82f153d3d323efced8be2673dc438c |
refs/heads/master | <file_sep>package com.example.demo.util;
/**
* @Author: swh
* @Date: 2020 03 2020/3/19 19:48
* @Version: 1.0
*/
public class TestBouncyCastle {
public static void main(String[] args) {
System.out.println("hello world");
}
}
<file_sep>package com.example.demo.example;
import io.jsonwebtoken.JwtBu... | 640f3c7e7122f7c291e2a6b326d8f73aac9c867f | [
"Java"
] | 3 | Java | smallbigpony/demo | 3cef0b933092dadcf498c9c8ecfea447801824c5 | 751e0bf6065e9f1d1b29778dd6f8a46733f2b6d3 |
refs/heads/master | <file_sep>package main
import (
"github.com/StefanSchroeder/Golang-Ellipsoid/ellipsoid"
"fmt"
"encoding/json"
"log"
)
type LatLng struct {
lat1 float64
lon1 float64
lat2 float64
lon2 float64
}
func main() {
str :=`[[{
"lat": 33.6020866,
"lng": 73.11957699999999
},
{
"lat": 33.601932,
"lng": 73.12015149... | 4cc171eae898cb1426cdf0971fe6e537b607e201 | [
"Go"
] | 1 | Go | asimashfaq/Tilemigration | a92c2be2fe739f91c29b97be4f649471eb1a69c8 | e34f3e34a9250d74b4bcd0fc8a8b474c987a3d1a |
refs/heads/master | <repo_name>iroben/RPH-ADMIN<file_sep>/src/store/index.js
import Vue from 'vue';
import Vuex from 'vuex';
import apis from './apis';
import lodash from '../methods';
import config from '../config/config';
import VueCookie from 'vue-cookie';
import TestApi from './testApi.js';
Vue.use(Vuex);
import Menutest from '../men... | 569a1ddc1d94465bad50943da1fde9660782e7da | [
"JavaScript"
] | 7 | JavaScript | iroben/RPH-ADMIN | 7b7d74153f7d2640e5bedc8a70e0d03c02b04381 | 45b593b3bb60f9ba336853feff8f7efbced7572b |
refs/heads/master | <repo_name>HGDIS/HTML-STUDY<file_sep>/README.md
# HTML-STUDY
html/css/js learning
<file_sep>/HP/getInfo.php
<?php
$name = $_POST['name'];
$age = $_POST['age'];
$sex = $_POST['sex'];
$major = $_POST['major'];
$textarea = $_POST['textarea'];
function showName() {
global $name;
echo 'Name : ' . $name . "<br />";
}
fun... | 57458efe2fd506fd74c625b4cd70f7d175c5e861 | [
"Markdown",
"PHP"
] | 2 | Markdown | HGDIS/HTML-STUDY | 2ca0bff5bd9f4fa36ede090fea43f1364219f5fe | 1da16ae9dda5b8bf680d59cdd673f8a857208591 |
refs/heads/master | <repo_name>monical1/atMonitor<file_sep>/demo/src/main/java/com/github/zhongl/jsmx/demo/Demo.java
package com.github.zhongl.jsmx.demo;
import org.softee.management.annotation.*;
import org.softee.management.helper.MBeanRegistration;
/**
* {@link Demo}
*
* @author <a href=mailto:<EMAIL>>jushi</a>
* @created Jul 20... | 0d68aebcef71425f36b9638f04b6f64573c2793a | [
"Java"
] | 1 | Java | monical1/atMonitor | 619c6debc63622f3f6733a334fae33f16fccb356 | 39e6c51e65c8170448f4a13d021f459258dc62b5 |
refs/heads/master | <repo_name>charif104/MediaScript<file_sep>/main.js
let timer;
let percent = 0;
let x = document.getElementById("Audio1");
let y = document.getElementById("Audio2");
let z = document.getElementById("Audio3");
let image1 = document.createElement("img");
image1.src= "cover/backstreet.jpeg" ;
... | 4f77a66ea5c4fb01b0f9ee055aee9b8a55c8ea50 | [
"JavaScript"
] | 1 | JavaScript | charif104/MediaScript | a6dd79ae9c6203664d818eb23e77f2937be9f578 | a00846de54385b35c68a00b3d1d5d268c0e0d741 |
refs/heads/master | <file_sep>compiler=gcc
flags=
file=generate
includes=
all:
${compiler} ${file}.c ${flags} -o ${file}
clean:
rm $file
<file_sep># prompt-generator
PS1 Bash prompt generator for the command line
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
enum Styles {
REGULAR,
UNDERLINE,
BOLD,
... | 9fe7a9c396b64aae812fd89a100b5f6732e0368c | [
"Markdown",
"C",
"Makefile"
] | 3 | Makefile | matt-della/prompt-generator | 447936b9dc846efda64000e66890b286bd21014f | 04e8ff8450e9200eb75e8a1d6e3c36adbf3c0098 |
refs/heads/master | <repo_name>NovaDesignedIt/Java-Inventory<file_sep>/src/Assignment.java
/**
*
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.InputMismatchException;
import java.util.Scanner;
/**
* Title: Assignment 1 - Inventory... | b8805946c48d9b764f8e1dbf87413d5e305cb331 | [
"Java"
] | 1 | Java | NovaDesignedIt/Java-Inventory | 1256d0c2ba621039685b3ae2727ebc3b60f3d611 | 023b42624ee5cbf67c4e056229f6eaf19c9894b5 |
refs/heads/master | <repo_name>BlockLiu/hlt-final<file_sep>/php/myFollower.php
<?php
require "GstoreConnector.php";
$uid = $_POST['uid'];
$startidx = $_POST['start'];
$len = $_POST['len'];
// $uid = $_GET['uid'];
// $startidx = $_GET['start'];
// $len = $_GET['len'];
$username = "root";
$password = "<PASSWORD>";
$gc = new GstoreConnec... | b50130cd7a00fed1e50158d1bc6421918480fb6a | [
"Markdown",
"JavaScript",
"PHP"
] | 23 | PHP | BlockLiu/hlt-final | 38c3c6effa94912cad1774dc9b82f8d93afbc1ff | 23f6808bd2b2ee40b174a5478aa1f24e6f329b79 |
refs/heads/master | <file_sep>import math
l = 0 # affine parameter lambda
dl = .001 # change in l with each iteration
l_max = 100.
# initial position:
r=1
phi=0
# initial derivatives of coordinates w.r.t. lambda
vr = 0
vphi = 1
k = 0 # keep track of how often to print out updates
while l<l_max:
l = l+dl
# Christoffel symbols:
... | 76edcc8c25b413dd6393558261fcd294a1508ee6 | [
"Python",
"Ruby"
] | 5 | Python | bcrowell/general_relativity | d0725efb8a178eefc2fbdaaf07fbba5ba06c0c23 | fec363ffca2b2722d90b33b57021d406ccdb7200 |
refs/heads/master | <repo_name>ddemidov/vexcl-experiments<file_sep>/vex_sfinae.cpp
#include <vexcl/vexcl.hpp>
/*
* Variant 1: using enable_if.
* The drawback is that unspecialized template has to know about its
* specializations.
*/
template <class T>
typename std::enable_if<
!vex::is_vector_expression<T>::value,
void
>::type... | d203861f7dc25edcb8aadad02d9aa07efae5aaa4 | [
"CMake",
"C++"
] | 12 | C++ | ddemidov/vexcl-experiments | a05502d0d0b86386ad35e771f00fe9ad5ac27bb9 | 9f948b337c4e3d6c61c49c21a57fa5b28879a29b |
refs/heads/master | <repo_name>Spitmaan/Presian-Date-for-MySQL<file_sep>/pdate.sql
-- Gregorian - Jalali Date Converter Functions for Mysql
-- Copyright (C) 2011 <NAME>, Mehran . M . Spitman
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as pu... | 503e5e7c789706deebc9ec808fc7a4b5aa03733c | [
"SQL"
] | 1 | SQL | Spitmaan/Presian-Date-for-MySQL | 13639990c3a512ddeb9e4cf1f0ba7ff68f287b83 | 8ca89dc317d855e47c859b6aac3f40e553e8b4d4 |
refs/heads/master | <repo_name>saki7/redis-orm<file_sep>/requirements.txt
redis
wrapt
pytest
virtualenv
tox
<file_sep>/redisorm/core.py
import operator
import redis
import inspect
class PersistentData():
def before_save(self):
pass
def before_load(self):
pass
def after_save(self, obj):
pass
de... | 56206ed4621bdbfe86f34a90517fd81c8dfe6422 | [
"Markdown",
"Python",
"Text"
] | 6 | Text | saki7/redis-orm | 7f914b825265d95cb0c35daeb71dfdc8f4ca4b95 | 56a9e188d04f91ea86bb6305fd1858edca6c0313 |
refs/heads/master | <file_sep>package com.tito.cyber.lompatpanda;
import java.util.ArrayList;
import org.cocos2d.actions.base.CCAction;
import org.cocos2d.actions.interval.CCAnimate;
import org.cocos2d.nodes.CCAnimation;
import org.cocos2d.nodes.CCDirector;
import org.cocos2d.nodes.CCSpriteFrame;
import org.cocos2d.nodes.CCTextureCache;... | fd746a5295625a9bbfee254402ad6d085bc6bc8a | [
"Markdown",
"Java"
] | 2 | Java | basriumar12/LompatPanda | d1f479ef0309bfdd320f839c1fa550e79593e4f6 | a57007a367cc2a8843d63e82768b01cbfdd9477e |
refs/heads/master | <repo_name>fsxiaoke/incubator-weex<file_sep>/html5/render/vue/core/node.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this fi... | 114130c0e436fa57307705492755880a2553dc46 | [
"JavaScript"
] | 2 | JavaScript | fsxiaoke/incubator-weex | 75101d59ff2501a48852f68ffd0c2611ac2801ab | 1a7b9200ccb0c815ed51ba195b43e84fadfc61b5 |
refs/heads/master | <file_sep>//create a table.h class
template <class T>
class Table{
private:
//CLASS REPRESENTATIONS
unsigned int row, col;
T** values = NULL;
public:
//CLASS CONSTRUCTORS, ASSIGNMENT, AND DESTRUCTOR
Table(unsigned int row, unsigned int col, const T& v);
Table(const Table &t);
~Table();
... | 79e6774868625e39adfb37e4b383b9661f3c2429 | [
"Text",
"C++"
] | 2 | C++ | vkasinath/Resizable-Table | 86ec7c67336b40f3357b3461098bf8acae6f135f | f3e386812497c83051687fc856b3d455181b2be5 |
refs/heads/master | <repo_name>ABPxDFW/chapayom<file_sep>/menu.php
<?php
/**
* Created by PhpStorm.
* User: abpxninja
* Date: 3/17/2017
* Time: 11:38 PM
*/
require_once('startsession.php');
require_once('header.php');
require_once ('connectVars.php');
require_once('navbar.php');
?>
<div class="container white text-center">
... | 63b64c94a448d7504612c00e464c819b74832bac | [
"Markdown",
"SQL",
"PHP"
] | 15 | PHP | ABPxDFW/chapayom | 00cfea704945628bc2cc0edbf789af903afdc071 | f8026c8a8ae9a7acbc62df75256c276b35f9c355 |
refs/heads/master | <file_sep>import { connect } from 'react-redux'
import App from '../components/App'
import { getEvents } from '../reducers/events'
import { getUsers, getOwnId, getCurrentAgent } from '../reducers/users'
import { getRate, getChatState } from '../reducers/app'
import { sendMessage, rateGood, rateBad } from '../actions/ch... | 62f0353641f50679857473127a3a92df7eaa5d11 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | saadeddineLouati/Chatini | 52a819c76004457392f1484de90a9656b6a14988 | 00c4f5083c7dfe3798535d57e66a93780bee50ef |
refs/heads/master | <file_sep>package distanceoptimization;
public class Population {
// Holds population of tours
Distance[] tours;
// Construct a population
public Population(int populationSize, boolean initialise) {
tours = new Distance[populationSize];
// If we need to initialise a population of tou... | d08014c01eea609d338d26980348ce7bfd0be2e4 | [
"Java"
] | 2 | Java | tez-la/Algorithms | 0cba48e2cf43fc0bdcbc29eac1b74cc768200a62 | f7c11b1f638ced08cef67070ff2d563df7d02523 |
refs/heads/master | <file_sep># Contributor Graph
This tool is used to generate contributor graph across multiple repositories.
## License
[Apache 2.0 License](./LICENSE)
<file_sep>package main
import (
"context"
"strconv"
"cloud.google.com/go/datastore"
"github.com/api7/contributor-graph/api/internal/utils"
)
func main() {
ct... | cb80de2985f7d5fe73d7832a350b5d18f0e34faf | [
"Markdown",
"JavaScript",
"Go",
"Go Module"
] | 6 | Markdown | iamayushdas/contributor-graph | edc639f4a333dfdb59d4e6188d10b583aa1795bf | 6b4e4538395dd317adaf63b4029748db996afd14 |
refs/heads/master | <repo_name>keshavkummari/aws_csa-a_12thAug2019_sl<file_sep>/README.md
# aws_csa-a_12thAug2019_sl
AWS CSA - Associate Course Running Notes
<file_sep>/bootstrap_script.sh
#!/bin/bash
cd /opt/
yum install wget* curl* vim* unzip* -y
yum update -y
wget https://www.free-css.com/assets/files/free-css-templates/download/page23... | 73864566cfb53ffbb092a105ffc41a6d78d88b06 | [
"Markdown",
"Shell"
] | 3 | Markdown | keshavkummari/aws_csa-a_12thAug2019_sl | 9d6bc63113c130bb3aa645211ca8a9407008c43c | 1bd52a9977ae2441faf85364e570bacbaf084252 |
refs/heads/master | <file_sep># Once Upon A Time
Voice your characters. Tell your story.
Click and speak to change your voice. Hit end to playback your story.
<file_sep>async function astronautTransform(audioBuffer, distortionAmount=50) {
let ctx = new OfflineAudioContext(audioBuffer.numberOfChannels, audioBuffer.length, audioBuff... | 2110199ebb2ba2661b6b5c3c2a6bfab1ff427425 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | kazukiark/Once-Upon-A-Time | 42bf39c933091307a4a6d446fa2897aa1d0804b9 | 814ff38622075dbcf621b9af03e0a7b16b198bdf |
refs/heads/master | <file_sep>/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lem_in.c :+: :+... | 3e1036bbc171a6b85f647ff958ad223c980e506a | [
"C"
] | 5 | C | Daykz/lem_in | 603b98f50826bfaaff3fff2373ce4711a2f55dbf | 37cdee90f60bf662b5dc6f0645f03bff69218346 |
refs/heads/main | <file_sep>from PyQt5 import QtWidgets, uic
from PyQt5.QtWidgets import QMessageBox
def sais():
num=u.number.text()
if(len(num)<8 and len(num)>8):
msgBox = QMessageBox()
msgBox.setText("pas un nombre")
msgBox.exec_()
else:
notlngth=0
lngth1=0
f = ... | eb341c3ec4650bfa7dd75c918fb8476f5b397d28 | [
"Python"
] | 1 | Python | sygma1/sajjalni | 58c99cc6095c5291d57ff55d7eb650dfe894a5f4 | c3239509d1c2a418b2c1de0e27292bb7a87083f1 |
refs/heads/master | <file_sep>package com.unico.victus.victusweb.entity;
public class RecipeView {
private Page page;
private String image;
public RecipeView(Page page, String image) {
this.page = page;
this.image = image;
}
public String getImage() {
return image;
}
public void se... | 636a4a922f3d7f763f04da02b9f91f5c393329b2 | [
"Java"
] | 1 | Java | shyalika/victus | 4617d6fbf703428b8471582ced76e35e5f45f5a8 | c773c0a2ce820d339c223399010047c1a9cc7c9d |
refs/heads/master | <repo_name>johannagranstroem/TNM108-Machine-Learning-for-Social-Media<file_sep>/Chatbot.py
import random
import pandas as pd
import nltk
import re # to do regular expression matching operations
import time
from nltk.stem import wordnet # to perform lemmitization
from sklearn.feature_extraction.text import TfidfVector... | 9f0f5f6f942fdd67e1b8f02f27b37d2155127765 | [
"Markdown",
"Python"
] | 2 | Python | johannagranstroem/TNM108-Machine-Learning-for-Social-Media | 392e41108c3b3e7b3b5b9f5b082afd112151f2af | 7e5d47e25de25a39513969c4b344122ea00d9210 |
refs/heads/master | <repo_name>BrakaiDevelopments/Dare2-v2<file_sep>/data/src/androidTest/java/gr/brakaidevelopments/data/db/UserDaoTest.kt
package gr.brakaidevelopments.data.db
import android.content.Context
import android.database.sqlite.SQLiteConstraintException
import android.net.Uri
import androidx.test.core.app.ApplicationProvider
... | 6589c9b4dc5afed48149a239e01ae8860547d698 | [
"Kotlin",
"Gradle"
] | 55 | Kotlin | BrakaiDevelopments/Dare2-v2 | 04cc9b4461c85ac8a65ba7be8381afc945b6c63e | 0bce46625c1da74e17acdddaf09fb45bfc2fb892 |
refs/heads/main | <file_sep>import {Component, OnInit} from '@angular/core'
import {Student} from './student'
import {StudentService} from './student.service'
@Component({
selector: 'app-student',
templateUrl: './student.component.html',
styleUrls: ['./student.component.scss']
})
export class StudentComponent implements On... | 2a44e3a6961cd80df58814a20dec7efb7faace35 | [
"Markdown",
"Java",
"TypeScript"
] | 7 | TypeScript | diasalpysbayev/greetgo | 74fade6075d87ba7e6e5e7c5a1ca7213c9595ab7 | 892430320d446ff8f166edf00989530714b4eac9 |
refs/heads/master | <repo_name>SiinaCutie/pygrab-song<file_sep>/run.py
#!/usr/bin/env python3
from GrabSong import GrabSong
import sys
import curses
import locale
from time import time, sleep
# Add these to a config file
debug = False
version = "0.0.5"
locale.setlocale(locale.LC_ALL, "")
# End Add these to a config file
# Number of argu... | c253ec80752870216ffd6b069d39c5ad7eb91dbd | [
"Markdown",
"Python"
] | 3 | Python | SiinaCutie/pygrab-song | 6fc3c332260471ce4e0482ccc0d2c47cf00e57d6 | a13a8302127352842c7259fb74af2cc930084cb2 |
refs/heads/master | <file_sep># 非分布式秒杀系统 并发情况下解决超卖问题
> 乐观锁防止超卖 / 令牌桶限流/ redis缓存 / 消息队列异步处理订单
```shell
#数据库表
drop table if exists `stock`;
create table `stock`(
`id` int(11) unsigned not null auto_increment,
`name` varchar(50) not null default '' comment '名称',
`count` int(11) not null comment '库存',
`sale` int(11) not null comment '... | 5b192c390e492d258660cdc4caf5a83e90a8c0fd | [
"Markdown",
"Java"
] | 5 | Markdown | Ges0ng/miaosha | 6cc83d5f5a44e3a434869011484baad378422131 | ca4cf6a0757f099c55518be23fe5684375a55b6a |
refs/heads/master | <repo_name>vezzalinistefano/C-Exercises<file_sep>/Int_to_String.cpp
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std ;
main()
{
int num, resti, quoz, len = 0;
const char toAscii = '0';
cin >> num;
int help = num;
while(help >= 1 || help <= -1) /*trovo la lunghezza del numero*/
{
he... | ced554bbe81f6241e4ab3c342677b5f3569ba00b | [
"C++"
] | 1 | C++ | vezzalinistefano/C-Exercises | dd32a65862216deff17b4c0dd39ac2f1ecaa1a5d | e1a5d608f88cf888f2478041981de1e26d8442ae |
refs/heads/master | <repo_name>nourelsakhey/SocialNetwork<file_sep>/User.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package socialnetwork;
import java.awt.Image;
import java.util.Array... | 6d3d5a60f5b7a3d9af5d59ed5f5b28a8cb546c99 | [
"Java"
] | 4 | Java | nourelsakhey/SocialNetwork | c3e52b3d0a8d42ade7739de7f47e91d73e7b96dc | 6e64684494c5264066300734de8ef8f7b9bfb8fb |
refs/heads/master | <file_sep>package com.example.radmushroom.contentprovider.link;
// @formatter:off
/**
* Possible values for the {@code status} column of the {@code link} table.
*/
public enum Status {
/**
*
*/
STATUS_1,
/**
*
*/
STATUS_2,
/**
*
*/
STATUS_3,
}<file_sep>pack... | e7b1dc179b828a410eea2421a02e8b8e4b6dcaeb | [
"Java",
"Kotlin",
"Gradle"
] | 15 | Java | RadMushroom/BigDig_TestTask | 484a144ba6a0d39fc9be0989a7e8804fb243b274 | be84c340779819d74400f13153773ea5cb593ab3 |
refs/heads/main | <repo_name>bernardogeneroso/nlw-react-native-gameplay<file_sep>/src/components/ScheduledMatches/styles.ts
import { StyleSheet } from 'react-native'
export const styles = StyleSheet.create({
container: { marginTop: 42 },
matches: {
marginTop: 24,
marginLeft: 24,
},
})
| b4f4be740c5a3645007cd2d79494edb9d2c9e791 | [
"TypeScript"
] | 1 | TypeScript | bernardogeneroso/nlw-react-native-gameplay | a7db0a173af1a4c091a455418a010629d44c5dd6 | daa253950228e35fb4fdbd1afae95d6d64f73bf1 |
refs/heads/master | <file_sep>import java.util.ArrayList;
public class Kata {
public static String encrypt(final String text, final int n) {
ArrayList<Character> charList = new ArrayList<>();
StringBuilder sb = new StringBuilder();
sb.append(text);
if(text == "" || text == null){
return text;
}
... | c27863d35844daaaac12e56dedb7193f46064423 | [
"Markdown",
"Java",
"Python",
"C"
] | 18 | Java | FloofDoggo/Codewars-Solutions | 4579166f975d6850c067ffab0e6fd15289a41055 | afa464673a00dee24a739a516e832e35c7af1d33 |
refs/heads/master | <repo_name>ijvans/lz32<file_sep>/lz32.c
/* ---------- ---------- */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lz32.h"
/* ---------- ---------- */
#define LZ32_MAGIC_NUMBER 0xCFF69D2DU
/* ---------- ---------- */
#ifndef LZ32_TYPES
#define LZ32_TYPES 64
#if (! defined (__VMS)) ... | 0fa80583b305faec18c24374e736632835b4f7e0 | [
"C"
] | 2 | C | ijvans/lz32 | efaa1327df43d25f0be873c54a7cc3d4f1cfedec | 3a2bb8bca2a30b6a700b50dd6dd084e790537ba6 |
refs/heads/master | <file_sep>import unittest
from pricetest import PriceTestMethods
suite = unittest.TestLoader().loadTestsFromTestCase(PriceTestMethods)
unittest.TextTestRunner(verbosity=2).run(suite)
<file_sep>#
# Portfolio Tracker
#
# Refactored late 2014
#
# Copyright 2008 <NAME>
#
import pdb
import sys
import copy
import os
impor... | cf1c833454b6c1cade20f27c10dc7e5b015de5fa | [
"Python",
"INI"
] | 22 | Python | danieltebbutt/Portfolio | f99688cc53ae189e5acbe80c33f3b1908d92b631 | ffdf3729d395c4abbca96375514e2fca85ea831f |
refs/heads/master | <file_sep># CV-Generator
https://cv-generator-uk.netlify.app/
<file_sep>const inputfield = document.querySelector('.input-fields');
const output= document.querySelector('.output');
let inputshow=true;
async function TextEditor(element){
const newEditor= await ClassicEditor
.create(element ,{
toolba... | ec5d03c26def3624048d58cdb984ef441d4e42fd | [
"Markdown",
"JavaScript"
] | 2 | Markdown | umakantdubey/CV-Generator | d917eada3af4b884a276f73e0741106eb7eed033 | 6b5bc39fe5af68ef0559a182da2c16f3c6eecae9 |
refs/heads/master | <repo_name>anmwinter/2ndmeta<file_sep>/Python/NCBI and fasta files/geomicro_fasta.py
from Bio import SeqIO
import re
def parse_genbank(gb_file):
recs = SeqIO.parse(gb_file,"genbank")
for gb_record in recs:
try:
gb_feature = gb_record.features[2]
except IndexError:
g... | 0386211cebbb1e80edb3995b5f8bc181104fffae | [
"Markdown",
"Python",
"R",
"Text"
] | 17 | Python | anmwinter/2ndmeta | c507ce75e1482020a3daf30a24e2eca5dae528ae | 8f9a6b726a685aeebdb5688cfb92d6c1c3e1fefa |
refs/heads/master | <file_sep># Alpaca-Automated-Stock-Trader
A stock trading application that allows users to buy and sell using the Alpaca API.
<file_sep>import config
import json
import requests
API_KEY = config.API_KEY
SECRET_KEY = config.API_SECRET_KEY
BASE_URL = 'https://paper-api.alpaca.markets'
ACCOUNT_URL = '{}/v2/account'... | ac165a0abd43a8aba9f97eebabfe57664662879d | [
"Markdown",
"Python"
] | 3 | Markdown | benmai22/Alpaca-Automated-Stock-Trader | cc1cff855a5f5bbeb9243a1374813e385eb5bb33 | a55397ad9bb7da6645b50df94ea7e49d7007ea21 |
refs/heads/master | <repo_name>TheCDC/rpi-dashboard<file_sep>/get-touch-driver.sh
wget -O http://www.waveshare.com/w/upload/7/74/LCD-show-170309.tar.gz
sudo tar xzvf LCD-show-*.tar.gz -C /boot/
cd /boot/LCD-show/
chmod +x LCD5-show
./LCD5-show
<file_sep>/pygame-dependencies.sh
sudo apt install python3-dev python3-numpy libsdl-dev libsdl-... | 7563444f3c29b3ffb61e9b5188c2a0e5c2119392 | [
"Python",
"Shell"
] | 3 | Shell | TheCDC/rpi-dashboard | 4ddbe9574c0bd0a8b701d9ef3e660150f1005c8b | f817efc8c92f238c11b860cf62a959615aa754ae |
refs/heads/main | <file_sep># Order App
Este projeto é uma API utilizada para registrar produtos/serviços, pedidos e itens de pedido.
A documentação está disponível em:
https://documenter.getpostman.com/view/12404670/TVYGcdiH
O projeto é uma aplicação Spring boot, logo para executar a aplicação, basta invocar o Maven com "mvn spring-... | f368d6fed00d6da8c66a3e7c9b0d319a465bc5f9 | [
"Markdown",
"Java"
] | 15 | Markdown | erickhoffmann/order-app | a7dde7af7aa3e34323d31d53e00f4b8c05c04a52 | 18d967db55270cc94ec5927e95cd755227dac88c |
refs/heads/master | <file_sep>//
// Heap_PriorityQueue.hpp
// Heap_Priority_Queues
//
// Created by WillJia on 08/04/2018.
// Copyright © 2018 <NAME> A00416452. All rights reserved.
//
#ifndef Heap_PriorityQueue_hpp
#define Heap_PriorityQueue_hpp
#include <stdio.h>
#include "ArrayMaxHeap.h"
#include "PriorityQueueInterface.h"
templ... | 49a8e5ed3d46724984391d7c3c110553c5f4a4d9 | [
"C++"
] | 4 | C++ | EasonJia9598/Heap_Priority_Queues | 34973441203d463c6f1bd1a05685bf89fa7bf062 | 976a0d37a500ab0569724a159f6da1096cd4b19e |
refs/heads/master | <repo_name>nerionx/TicketManager<file_sep>/src/me/pyros/ticketmanager/TicketManagerPlayerListener.java
package me.pyros.ticketmanager;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.persistence.Basic;
... | 7ed36c59b70cee001d2bb0ca66eb61eeb57cfac5 | [
"Java"
] | 1 | Java | nerionx/TicketManager | 3e5a85b838825d4bb5bee0551f1ab8fd79cc5e20 | f74f75e48d232242de7ad8b6a73fdaf0555b4f6d |
refs/heads/master | <repo_name>simondotwhite/Tweets<file_sep>/Tweets.php
<?php
// We need codebird to handle the connections
require_once('codebird.php');
class Tweets {
// Private Variables
private static $consumer_key = "CONSUMER_KEY";
private static $consumer_secret = "CONSUMER_SECRET";
private static $access_token = "ACC... | 983da854fe6fb0164b9f2e60f5ed9f2727f7ba29 | [
"Markdown",
"PHP"
] | 3 | PHP | simondotwhite/Tweets | f6a8bbe8590a98873d664d1ca8af980f290a03a8 | 2b4bc602888df30bb6c53b93c6d01ed2bf1eba78 |
refs/heads/master | <file_sep>package com.example.vaibhav.inclass08;
import com.google.firebase.database.Exclude;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import io.realm.Realm;
import io.realm.RealmObject;
public class TaskData extend... | fe99851a7f1c36c568b478f93aff95d827784da0 | [
"Java"
] | 2 | Java | mohitsaini2114/ToDoList | 8920010f840885a66e2793254135fabd26e0a461 | cc1e5c96139c6147dbf28689f9194040779c71ca |
refs/heads/master | <file_sep>/**
*
*/
$(document).ready(function() {
initMenuStatus("toggleMenu_abnormalAlarm", "toggleMenu_abnormalAlarm_items", "ip_record");
var d = new Date();
var year = d.getFullYear();
var month = d.getMonth() + 1 + "";
month = month.length == 1 ? ("0" + month) : month;
var date = d.getDate()... | dcfa0114af4f60e85661432528b771778f61ef18 | [
"SQL",
"JavaScript",
"Maven POM",
"INI",
"Java"
] | 144 | JavaScript | hwacom/CMAP_T3 | a7bf2aa6eae6a2563a394914775cfe904be161df | 041d18922f551cef8dcf4c7b535f079bf3e8b552 |
refs/heads/master | <file_sep>[](https://github.com/nikku/works-on-my-machine)
# strava-sync-cleanup
Ever so often when syncing entries from Garmin Connect to Strava a wrong entry type in Strava shows up.
E.g. when I do a core workout that is saved in Garmi... | 6692b1de2ae1d3659d678f4a478015e584417188 | [
"Markdown",
"Ruby"
] | 2 | Markdown | egoexpress/strava-sync-cleanup | 650906bc13cc1be451742c75f31bc265693d5f7a | 08367a3f0c258da771b9e531488af6f375f56b4b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.