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>dangerousHobo/polish-notation-roman-numeral-calculator<file_sep>/tests/add.c
#include <stdlib.h>
#include "unity.h"
#include "roman.h"
#include "add.h"
void test_add_I_I(void)
{
roman_t r; //final roman numeral
int a = roman_to_arabic("I");
int b = roman_to_arabic("I");
TEST_ASSERT_EQUAL_INT(0, arabic_t... | cac0614b8946cb6138cdcb40fb35f1d7ffdb7eeb | [
"Markdown",
"C",
"Makefile"
] | 14 | C | dangerousHobo/polish-notation-roman-numeral-calculator | 6c9cc1733849d8cf7a5c74593b0b2f52abc0f161 | 4cb1ad7ba9a049e4a7243f67238d9ce418172920 |
refs/heads/master | <file_sep>Hooks.off();
Hooks.on ('renderExtraSheet', async (data) => {
// Let's do some stuff if this extra is a Condition and we haven't already created the boxes for it.
var extra = data.object;
var actor = data.actor;
//Split the condition name and number of boxes
var split = extra.data.n... | 0f52b0b9c6c4ea944f3765f11e8c28c405be409e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | redeyed-archive/FateConditions | 931d049573841c1b59b469d25cb197f918f9a8df | 0d66d0d9769cc68b168d50bd9e9fad4fcdfe1275 |
refs/heads/master | <repo_name>dongjaepark/sudoku-solver<file_sep>/houghlinetransform.py
import numpy as np
from sympy import *
# Create image with 20x20 pixel
img = np.zeros((20,20), dtype=np.int)
# Draw 2 lines corresponding with the above image
# Every pixel lying on the line will have a value of 1
# Draw line d1, length = 15
for i i... | 29ad5b07d83286d94d49c3557183a7a475d41fc6 | [
"Python"
] | 1 | Python | dongjaepark/sudoku-solver | 3970ca28c844bcd15fd64e24f8c1598ad5b952a9 | bc15ea666894c503811964d4869c72e9c8b4d6ef |
refs/heads/master | <file_sep>//
// GameScene.swift
// TAction
//
// Created by <NAME> on 14-8-10.
// Copyright (c) 2014年 <EMAIL>. All rights reserved.
//
import SpriteKit
//
enum Decision {
case Collision, Movement, Tackle
}
class GameScene: SKScene, SKPhysicsContactDelegate {
var indicator:SKSpriteNode!
var hero:SKSpr... | fccaeb3cdf6da81bb066cdb8cd0550329a059348 | [
"Swift"
] | 1 | Swift | chensifeng/TAction | 28b44ccc551f1b3c0ff4891c064999f91e2eaf7f | 05b84f59245ddad4be4809636b1d56ae2ff8483c |
refs/heads/master | <file_sep>### SFPC: Recreating the past - <NAME>
Inspired by <NAME>'s '[Experiments in Motion Graphics](https://archive.org/details/experimentsinmotiongraphics
)' and [Matrix III](https://www.youtube.com/watch?v=ZrKgyY5aDvA). More details on Whitney's work with the IBM 2250 can be found [here](http://blog.animationst... | 910f714d5dbf2e87eb4141eca719efe7fe77307b | [
"Markdown",
"C++"
] | 3 | Markdown | streiten/sfpc-rtp-whitney | 23e60638f3990b0df3ab214bef3d1a420bd169c0 | 1d0a2c4729d4c6516f432a84fc6871fc78dc86a8 |
refs/heads/main | <repo_name>dudrms9373/GreenPRJ<file_sep>/src/view/UserMenu.java
package view;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import model.FitnessDao;
public class UserMenu ex... | 55e940cd5589918a89b115319ca1b9ebe1ea4639 | [
"Java"
] | 9 | Java | dudrms9373/GreenPRJ | 66122fc8e22f7f33f9b1d9da6c4f751afb4d89ce | f8912cc4fcdeca62fa64694dc672c772828d303e |
refs/heads/master | <repo_name>w49m4t/JavaEquiationSolver<file_sep>/JavaEquiationSolver.java
public class JavaEquiationSolver{
public static void main(String []args){
linEq leq = new linEq();
linEq leq1 = new linEq();
linEq leq2 = new linEq();
linEq leq3 = new linEq();
leq.inpEq("32.1... | 4c89c4e256892060b9101cf31562040628f046f4 | [
"Markdown",
"Java"
] | 2 | Java | w49m4t/JavaEquiationSolver | 94a87154058c4b85949b49123916b861236f2456 | e7d79c897958f7067c49f2bf9c29d0b4b11d6896 |
refs/heads/master | <repo_name>ff2248/lazyload-rails<file_sep>/lib/lazyload-rails.rb
require "nokogiri"
require "action_view"
require "lazyload-rails/version"
require 'lazyload-rails/engine' if defined?(Rails::Engine)
ActionView::Helpers::AssetTagHelper.module_eval do
alias :rails_image_tag :image_tag
def image_tag(*attrs)
opti... | 863f8da132dd0230f1ecd0c873ddec0afa5af392 | [
"Ruby"
] | 1 | Ruby | ff2248/lazyload-rails | e0c95d525a224ecc31947c12a0aaffcdab33b009 | 0069403c107b26a1976afaa9c0e785c841e2f941 |
refs/heads/master | <file_sep> InputField is the common type of input and represents the behavior you would expect from a standard HTML `<input />` with the additional framework functionality like labels, hints, formatting and error management build on top.
Note: At this time InputField simply extends the base Field as it requires no ad... | 3f7a9714e900a4a06957e7674a3c0ca83cfda39e | [
"Markdown",
"JavaScript"
] | 76 | Markdown | levi-putna/react-ui-modules | f6db5745903cd48bfeb82ef5fd60b676b853abb4 | 283929359f954282a8bb0eebab4ba8a34033973a |
refs/heads/master | <repo_name>atharvapatil/tripod<file_sep>/arduino/pulseSensor_BPM/pulseSensor_BPM.ino
// Hardware used Arduino mkr 1010
#include <ArduinoBLE.h>
const int ledPin = LED_BUILTIN; // set ledPin to on-board LED
const int buttonPin = 4; // set buttonPin to digital pin 4
BLEService ledService("4cc4513b-1b63-4c93-a419-ddda... | aefea146eb7fd5c568a253ca38dfd43db413d6f5 | [
"Swift",
"C++",
"Markdown"
] | 4 | C++ | atharvapatil/tripod | 564a6b49345e8a1936e043c929003658dcde20da | a6ea2a573600352ed64c6834da5c56cdca25ebd2 |
refs/heads/master | <file_sep>package com.dimatechs.ecard;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
impor... | e626fb7e2b9cb32011c2bd096d0f6b593e433e35 | [
"Java"
] | 3 | Java | hanimanaa/Ecard | 38bbe54582b57fce433428bb72643a74726471fa | 11e6e13de9b7f8378e27e3cc9568535134058db5 |
refs/heads/master | <repo_name>ghsantos/Notes<file_sep>/app/src/components/Item.js
/* @flow */
import React, { Component } from 'react';
import {
Text,
StyleSheet,
TouchableOpacity,
View,
} from 'react-native';
import Swipeable from 'react-native-swipeable';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
ex... | b507aaa2dbaae58f71122ea4b9412c8c8a1e2df2 | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | ghsantos/Notes | e35dc1bc676738f3c54b2b99e3cbe570dcfe877b | 89d383a290c5f7027a66513868ab05b47587f962 |
refs/heads/master | <file_sep><?php
require_once 'database.php';
require_once 'operations.php';
$system_obj = new login_registration();
// Redirect after login
if ($system_obj->get_session()) {
header('Location : index.php');
exit();
}
// Catch value for registration
if (basename($_SERVER['PHP_SELF'])=='registration.php'):
#check page ... | b241d0280e8afa6c0e507f70d73cab0f3befb16c | [
"PHP"
] | 6 | PHP | shapon-pal/PHP-MySQL-login-system | 74b4354f8073c825d940652d9513b100a8bae10d | 630eeb4fbfacc40103622cba156c91713da58b4c |
refs/heads/master | <file_sep>export function onShare(res, nickName, gender, fromId) {
let genderTxt = 'Ta';
if(gender == 1) genderTxt = '他';
if(gender == 2) genderTxt = '她';
return {
title: nickName+"邀请您参观"+genderTxt+"的Home",
path: "/pages/share/main?from=" + encodeURIComponent(fromId),
success: function(res) {
... | cbedfd2589a31d431657aa6237adb0aa47d19828 | [
"JavaScript"
] | 1 | JavaScript | GEEK-SHARK/geek-shark | 46c39ba7c8778eb55ae0ca51d2904caae98b6837 | b70cca7fcbeeabfc72960851dcad1f24c2da01c3 |
refs/heads/master | <repo_name>westernknight/CamPath<file_sep>/Assets/CamPath/FunnyCamera.cs
#region 模块信息
/*----------------------------------------------------------------
// Copyright (C) 2015 广州,蓝弧
//
// 模块名:FTD
// 创建者:张嘉俊
// 修改者列表:
// 创建日期:2/18/2016
// 模块描述:
//----------------------------------------------------------------*/
#endre... | 2613a5ffcb5b7b35faf5328b5bcd114e8f1b0b69 | [
"C#"
] | 13 | C# | westernknight/CamPath | ff0b2950199d2a2da1bf838c3b972983b803bf80 | 709710c398bb2bcd5cbeb157887ff5cf685cd3db |
refs/heads/master | <file_sep>// js for main app's appearance and styling
// Form Validation
const validateTextField = () => {
const textField = document.getElementById("user-post");
const textFieldContent = document.getElementById("user-post").value;
const charCountSpan = document.getElementById("char-count");
if (textFieldCont... | 56310cb39165cbb681ac495d6ee2099e5323f6c1 | [
"JavaScript",
"PHP"
] | 6 | JavaScript | jodyanna/listen-bot | d0035257c152d4561ca30f3368f877e28ef7125c | e9df22a3a1e9b593115e5a12ad5bb5a931667467 |
refs/heads/master | <file_sep>'use strict';
class Hero {
constructor(name, initialLocation) {
this.name = name;
this.location = initialLocation;
this.inventory = {};
}
getName() {
return this.name;
}
getLocation() {
return this.location;
}
withInventory(fn) {
Object.entries(this.inventory).for... | 05f19fd0611b829735971a3d3b471cb7cbb997c5 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | davethehat/adventure | bafef27dbd0ef743daee6a6538b53d8b2b36ea4f | bdada43fac6686152a3a2c2d208895aa033330e9 |
refs/heads/master | <repo_name>aiden0206/Do-main<file_sep>/EOG_HMM.py
from math import log
import numpy as np
import numpy.linalg as lin
import math
def _normalize_prob(prob, item_set):
result = {}
if prob is None:
number = len(item_set)
for item in item_set:
result[item] = 1.0 / number
else:
... | 2e6ebb8a6e51512a263425704dd98836e3d29924 | [
"Markdown",
"Python"
] | 5 | Python | aiden0206/Do-main | be6d04256787e8b6c3bc137d183a8153987b3c37 | f890d1577266c644d87a7dc00af4c19bcfa43e10 |
refs/heads/master | <repo_name>GBAleksandrGB/Tomilov_Aleksandr_dz_6<file_sep>/task_6_1.py
def log_gen():
with open('nginx_logs.txt', 'r', encoding='utf-8') as f:
for new_line in f:
new_line = f.readline().replace('"', '').split()
yield new_line[0], new_line[5], new_line[6]
print(*list(log_gen())[:50],... | 4a7a33c3da739d48a14c1d0dcd04afa64e1ca2c0 | [
"Python"
] | 5 | Python | GBAleksandrGB/Tomilov_Aleksandr_dz_6 | 712ba59f7f20152424f4f37e67e8c246b0f5753d | 0d1355df554402321d893e9d52c2a5aa59c2b232 |
refs/heads/master | <file_sep>package com.myapp.sshah.instr.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.myapp.sshah.instr.R;
import com... | 4dfb594f456378b300b0a2b56ad789d5dbcf3d45 | [
"Java"
] | 3 | Java | saurabhshah510/codepath-android-instagram | 12332b3896b98202c8d0da95f9fabf20a2c89a04 | 977812102cb8d187a1fdf0f4afc16ef1d45d5eb7 |
refs/heads/master | <repo_name>braverun/menu-project<file_sep>/scripts/main.js
(function(){
var MenuItem = Backbone.Model.extend({
defaults: {
image: '',
name: '',
brewery: '',
description: '',
price: '',
type: '',
}
});
var MenuCollection = Backbone.Collection.extend({
url: 'https://api.parse.com/1/c... | 7cb184f8c7f53ab40d51afaa563d170f21fe9750 | [
"JavaScript"
] | 1 | JavaScript | braverun/menu-project | 366152c52d33c01c4e3d74333e2b12d49b0a9b4a | 37ce7f3e7ccde35db4378f476e2494bb6c13dd2d |
refs/heads/master | <file_sep># this code gets and clean the aimed dataset
library(reshape2)
# merge the dataset of train and test
Xtrain <- read.table("UCI HAR Dataset/train/X_train.txt")
ytrain <- read.table("UCI HAR Dataset/train/y_train.txt")
trainSubject <- read.table("UCI HAR Dataset/train/subject_train.txt")
train <- cbind(trainSu... | 8fa7a5cce3c92c78a35d44b7479eaba695de508c | [
"R"
] | 1 | R | MaxMCao/Getting-and-Cleaning-Data-Course-Project | 684d039150a01f3be66f4f289bb7a1b01f3291a0 | f27386e68772a273d59c556321c7495f202f02d6 |
refs/heads/master | <repo_name>abstractthis/gowedding<file_sep>/models/models.go
package models
import (
"log"
"os"
"time"
"github.com/abstractthis/gowedding/config"
_ "github.com/mattn/go-sqlite3"
"github.com/jinzhu/gorm"
)
var Logger = log.New(os.Stdout, " ", log.Ldate|log.Ltime|log.Lshortfile)
var db gorm.DB... | 467bd7ba45956371aa54ecff9cf5ec1596a6e550 | [
"JavaScript",
"Go"
] | 13 | Go | abstractthis/gowedding | 564ac152b9e20a0ed5d20cdba37dbb1ab4686fb6 | b2d2753e3a39cbf84ea28a23c062ec4fa3abb98d |
refs/heads/master | <repo_name>alejandroave/metodos<file_sep>/bass.sh
REPE=10 ##maximo de repeticiones
cosa=canal.dat
tiocosa=mugre.dat
tiolucas=desviacion.dat
##para ver si existen los archivos
##si es asi los borra
##agradecimiento a pedrito por
##esta parte
if [ -e $cosa ]; then
rm canal.dat
fi
if [ -e $tiocosa ]; then
rm mugre.d... | ead24e9d7072ba113f7da2760bdcdc8a1a4a6f03 | [
"Markdown",
"Python",
"Shell"
] | 4 | Shell | alejandroave/metodos | 7bab82945dc2efb514d0eb01a9f41e923679acf5 | fa5d7c6cfe4807b16341c5fc83b1981237ca4f6d |
refs/heads/master | <repo_name>rashishpaul/sidekiq<file_sep>/Words_of_Wisdom/app/mailers/cat_facts_mailer.rb
class CatfactsMailer < ApplicationMailer
default from: '<EMAIL>'
def catfacts_welcome(user)
@user = user
mail(to: @user, subject:"Welcome to Catfacts!")
end
end
<file_sep>/Words_of_Wisdom/app/controllers/users_control... | fc340fadb38544c9bd0a9433b9496582252fb0a6 | [
"RDoc",
"Ruby"
] | 3 | Ruby | rashishpaul/sidekiq | fe7259f24e85c35b2f6e01523425a7729228ddcd | df81760d8ec17e437d6552cd4b397a687ac7adc5 |
refs/heads/master | <file_sep>InfoBat
=======
InfoBat es un monitor de información sobre el estado de la batería de dispositivos Android. Además dispone de un widget que muestra el nivel de batería.
## Versiones ##
### Versión 1.1.1 - 12/08/2013 ###
* Supresión de la ventana de información.
* Optimización del código del widget.
* Correg... | a178c7ca1eabf807b3507f1bc761437ff4f98072 | [
"Markdown",
"Java"
] | 2 | Markdown | jafs/infobat | 81dbcc52551bc7681a2ae07aff7b24d854aed1b5 | 23f58b1c2d5c3b19624424acde946852350f2489 |
refs/heads/master | <file_sep>package com.android.zoom.Movie;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.android.zoom.Movie.DTO.DailyBoxOfficeList;
imp... | fab046713883e5e4ce1ef68754309562a3e29b6a | [
"Java"
] | 5 | Java | w8230/android_edu | a88ef7ef2d6360190ed0e2e90c16446b1973468f | 4240bc0b98cbb490e5ea2c1abad526205efbcf01 |
refs/heads/master | <file_sep># postprocessing_cdi
script to correct for averaging several reconstructions, correcting for refraction/absorption (not yet for energy scans), removing phase offset/ramp,
interpolating the BCDI data in laboratory frame.
For axes, the Nexus convention is used: z downstream, y vertical, x outboard
For q, the... | 3bca5b8f9780f8ac27c3f57ec2b21a61432ab189 | [
"Markdown",
"Python"
] | 3 | Markdown | Lawryle/postprocessing_cdi | 9016b2b49134eb82fba41c822f0805e09b8c5d81 | 969bad726a856fb70196f5883b6d7af5d1b6e223 |
refs/heads/master | <file_sep>#ifndef pacemaker_h
#define pacemaker_h
#include "globals.h"
class PaceMakerImpl;
class PaceKeeper;
class Pacer;
const USec SAMPLE_PERIOD = 500000;
class PaceMaker {
public:
PaceMaker(PaceKeeper* = nil, USec period = SAMPLE_PERIOD);
virtual ~PaceMaker();
virtual void startall();
virtu... | 30ba3e03452dfe01791a5bb5fb66b1293fa4239c | [
"Markdown",
"C",
"C++"
] | 20 | C++ | binshengliu/interviews-3.2a | df4e990ac7a8beb715abe9fc9f87096896f951ff | 733a9a1d056e312798b0b19849ee62d122d55526 |
refs/heads/master | <file_sep>package com.dudv2.javafx.service;
import com.dudv2.javafx.model.Student;
import org.springframework.stereotype.Service;
@Service
public class AuthService {
private final Student mockData = new Student("dudv2", "123");
public boolean authenticate(String username, String password) {
if (usern... | 4e88ff3d8bcbc25095fbd9059e39ed06d8e54dd5 | [
"Java"
] | 3 | Java | duBK1995/javafx-example | a00f5f2a55f5f55f380a6014fb170d0a840bf500 | db12b1966ab4a9116d329143e441143b888a349c |
refs/heads/master | <repo_name>kennethabilar/react-express-starter<file_sep>/README.md
# React Express Starter
### Install dependencies
```sh
$ npm install
```
### Install client dependencies
```sh
$ npm run client-install
```
### Start the server
```sh
$ npm run server
```
### Start the client
```sh
$ npm run client
```
### Star... | fd30d3aa67b7c604d5893c60ecdd37940df9749f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | kennethabilar/react-express-starter | 29d2f45dd382f8ffa1b22422d84680c4410bcc0b | e2a67666e09079a8b279c75f3d140c8878e2fe7a |
refs/heads/master | <repo_name>amol6022/StockPricePrediction<file_sep>/auto_arima.py
from pyramid.arima import auto_arima
data = df.sort_index(ascending=True, axis=0)
train = data[:987]
valid = data[987:]
training = train['Close']
validation = valid['Close']
model = auto_arima(training, start_p=1, start_q=1,max_p=3, max_q=3, m=12,star... | 55b0774dfd88ef4d254cdf6133da0b2ea5c1aeb8 | [
"Python"
] | 3 | Python | amol6022/StockPricePrediction | 2c3b74b8f14e9ca5d55806ee919fb74c7cde9602 | 264248b0bddd2bbc29152294f1ed2b5ae5622125 |
refs/heads/master | <repo_name>Leoprogramming/chonky-husky<file_sep>/background.js
class Background {
constructor() {}
drawingBackground() {
//width and height are predefined variables from p5, and its the width and height of the canvas
game.backgroundImgs.forEach(function (elem) {
elem.x -= elem.speed;
//image(so... | 67d44e19d2aa78f89f923639eb3cdea418e71607 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | Leoprogramming/chonky-husky | b3d664b1402d4386c18c3dfe6580b4752559f355 | 474c9958ac6adda8de744685225c0c3a8ca6c74b |
refs/heads/master | <file_sep>package com.feng.sauron.client.plugin.httpclient.httpclient4.printlog;
import com.feng.sauron.client.plugin.PrintTraceLog;
import com.feng.sauron.client.plugin.TracerAdapterFactory;
/**
* @author <EMAIL>
* @version 创建时间:2016年10月31日 上午11:45:46
*
*/
public class HttpRequestExecutorPrintLog implements Pri... | 35ae73c5d82878eb8f7a821d0a8ae391186752e9 | [
"Java",
"Shell",
"INI"
] | 8 | Java | buptcui/sauron | 1bdf050b5ccbfec478d9d90108fb8dfd39428f53 | aebd50d2ecfaf59074cbcee4c48d3212e98f461f |
refs/heads/master | <repo_name>rohanrocks29/ProgrammingAssignment2<file_sep>/cachematrix.R
# This code is written along the same lines of the example provided by
# coursera. The first function calculates the inverse of the matrix and stores
# it in 'm' in the global environment.
makeCacheMatrix <- function(x = matrix()) {
m <- ... | 1345a50bfa4186c534219b8bbc94d92aeda914c7 | [
"R"
] | 1 | R | rohanrocks29/ProgrammingAssignment2 | d2df596aee6a837d2f6ef6ebb2fe5677503ecd18 | 4e7f08194eee6e61271f40165d52d5bfc6eee538 |
refs/heads/master | <file_sep>import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { routing } from './app.routing';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { HttpModule } from '@angular/http';
import { AppComponen... | 52cea26086086aaded01d3b33f50b39afc1bb4cc | [
"SQL",
"YAML",
"Markdown",
"Python",
"Text",
"TypeScript",
"Dockerfile",
"Shell"
] | 19 | TypeScript | macedojleo/COSNFLIX | af89f2a28efc260606f2dead8f1642b7d8640322 | 722c2e5e7ba210fc7be7eed60e01cef83aa93f16 |
refs/heads/master | <file_sep>import java.io.*;
public class Rotator {
public static void scheduler(String[] teams, FileWriter fw) throws IOException {
int numOfTeams = teams.length;
String[] evenTeams;
int k = 0;
if (numOfTeams % 2 == 0) {
evenTeams = new String[numOfTeams-1];
for(k = 0; k < numOfTeams-1... | f1cb248a0a64a5b91a482d36e4925d8d383ab219 | [
"Markdown",
"Java"
] | 3 | Java | lavivien-cs-projects/RoundRobinTournament | 9be59104efc9bd9a12694f0546922a088deeb091 | eff5b750022581e27b7a18898c221c3fc3de82e7 |
refs/heads/master | <file_sep>(function() {
///////////////////////////////////////////////////////
///////////////////////////////////////////////////////
//// ______ _ _ ////
//// | ___| | | (_) ////
//// | |_ _ _ _ __ ___| |_ _ ___ _ __ ////
//// | _| | ... | 24bdb30429da5c5946cbb61108196cfc14b09700 | [
"JavaScript"
] | 1 | JavaScript | hopecrichlow/Function-Practice | aa705fe16dd47da4570df9b6e7b882e9f675c479 | d2402898ba46a04f5d3f294abb5b24000a103eb3 |
refs/heads/master | <repo_name>Klayre/mechantania<file_sep>/mechantania/batch_code/world_builder/build_areas.py
#HEADER
import evennia
import evennia.utils.search
import utils.import_trizbort_map as MapImporter
from utils.builder_utils import remove_all_rooms
# A list of area files you should use when constructing. These will
# be acc... | e38cdcefd0f2d1c79864861156a9e7ede04ffcbb | [
"Markdown",
"Python"
] | 21 | Python | Klayre/mechantania | 6ea0a80165707bffcab07d5f4ac46869bfc04635 | e66e0999cc788d89c1b974d04ca5e23d6561267f |
refs/heads/master | <repo_name>BiggaHD/node-mail<file_sep>/app.js
const express = require("express");
const bodyParser = require("body-parser");
const nodemailer = require("nodemailer");
const smtpTransport = require("nodemailer-smtp-transport");
const creds = require("./config/credentials");
const app = express();
// Enable CORS
app.us... | fb1a3291827e4b5adfd8a587436f31f761a882e9 | [
"JavaScript"
] | 1 | JavaScript | BiggaHD/node-mail | 7cca705bbdc56ebb9d1d512de750c943d508a8fd | ac001ddf8ca0dd8ec507a0afa162674c007ece34 |
refs/heads/master | <repo_name>Niharika3128/my_profile<file_sep>/Profile/app_profile/models.py
from django.db import models
class ProfileReg(models.Model):
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
contact_no = models.IntegerField()
email = models.EmailField(max_length=100)
... | aa9c266032899801d3947787b8b2c87e122093d6 | [
"Python"
] | 2 | Python | Niharika3128/my_profile | ce7fa03e7c7a88f57bdd0d67025512440e214edd | 8717ab6fa8303815f6615f383e493ceed46d1025 |
refs/heads/master | <file_sep>include ':app'
rootProject.name='WifiManager'
<file_sep># WifiManager
WiFi controller application.
This provide the wifi feture enable or disable using a button click
<file_sep>package com.bush.wifimanager;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.net.w... | b15655ee8084332002706f5d54e86754f5a6c12c | [
"Markdown",
"Java",
"Gradle"
] | 3 | Gradle | budhdisharma23/WifiManager | 35b5d9d26b817302d67d95c14c57ae4bb3370c47 | 4505ec5c5ffa46de45e5c504c13e5331516efb9d |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymysql
import datetime
class FangyuanPipeline(object):
def __init__(self):
self.connect = pymy... | 0b2d49c057093420b03c0494a38aa47771de5b3d | [
"Python"
] | 3 | Python | zwl-Haley/58--scrapy | 442e0a476160449173179333de539ce8f72704e0 | 7a3c7cf2976be5d7c110a1998b3ff63c1e96fbf8 |
refs/heads/main | <repo_name>AkshayReddy57/alore-growth<file_sep>/src/app/main/add-segment/add-segment.component.ts
import {
Component,
Inject,
OnInit
} from '@angular/core';
import {
FormBuilder,
FormGroup
} from '@angular/forms';
import {
MatDialogRef,
MAT_DIALOG_DATA
} from '@angular/material/dialog';
import {
AppComp... | 55e0d14540bae8e1223c61bdc5d72f278fc2c36b | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | AkshayReddy57/alore-growth | ea0d23cdb0e65cc6e0019fce4e8b0b6099a382f5 | 5565c29045550badedc1e31360ff0a1eeda50025 |
refs/heads/master | <file_sep>import './App.css';
import React from 'react';
import Task from './components/Task';
import TaskInput from './components/TaskInput';
class App extends React.Component{
constructor() {
super();
this.state= {
tasks: [
{id:0, title:'Create music', done: false },
... | 905e259f42b007d17e058234d9df7ff496461a89 | [
"JavaScript"
] | 2 | JavaScript | CreatoR750/ToDo-App | 2652982b24c1edc691d4bc2c7fd7e381562c588e | f397a61c809ccd33a42a2e5d2eeadfd250801c50 |
refs/heads/master | <repo_name>MarwanELAdawy/Admin-Panel<file_sep>/app.js
require('dotenv').config();
const express = require('express');
const bodyparser = require('body-parser');
const mongoose = require('mongoose');
const usersRouter = require('./routers/users.router');
const placesRouter = require('./routers/places.router');
const ad... | 8ff2f02c5f53ebeb01b9914805525189de34430c | [
"JavaScript"
] | 1 | JavaScript | MarwanELAdawy/Admin-Panel | 6ea6797608f1abf50259b2fdb14755d826cbd691 | e5199aefa8df09972f67ded6bc72ecd3db7f8e5e |
refs/heads/master | <file_sep>///
/// @file intrinsics.hpp
/// @brief Wrappers for compiler intrinsics.
///
/// Copyright (C) 2022 <NAME>, <<EMAIL>>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef INTRINSICS_HPP
#define INTRINSICS_HPP
#include <stdint.h>
#include ... | d77a1992cd589b905eb8a1e803940d48d622d486 | [
"C++"
] | 3 | C++ | Tiza59/primesieve | 79798932ce53062f050067355e71db917e1894af | 238d05783eb1a7b37ec13ef394c7d0e36060489c |
refs/heads/master | <file_sep>/*
* native requires.
*/
var express = require('express');
var http = require('http');
/*
* package.json requires.
*/
/*
* local requires.
*/
var routes = require('./routes/index');
var app = module.exports = express();
app.configure(function() {
app.set('views', __dirname + '/views');
app.... | ce8218839735a95d7bba2fd57110f96bba18ef3a | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | Orillion360/Node-Tracker | 79383f725f57ff4f677e38e09bfa1747ce2b1679 | 53695f29ed8a9744c20e982605f8213351473d14 |
refs/heads/master | <repo_name>singhsterabhi/js-intl-kitchen-sink<file_sep>/src/pages/RelativeTimeFormat/index.js
import React from 'react';
import {
Row,
Col,
Card,
PageHeader,
Form,
Select,
Statistic,
Typography,
InputNumber,
} from 'antd';
const { Option } = Select;
const { Title, Text } = Typography;
const Relative... | de4b020719324e5f2df6ee8db582d2c1a9a129ce | [
"JavaScript"
] | 2 | JavaScript | singhsterabhi/js-intl-kitchen-sink | 81f645bed5ab230f5a3921d175a67f7666578bf9 | abd4c2e2de5f786206b4bac6cde7268fb654fce1 |
refs/heads/master | <file_sep>package com.example.rapinderatest;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.wid... | 27fea7fe79ecf91e115f28eb9772c41836690962 | [
"Java",
"Gradle"
] | 5 | Java | supriya9792/RapinderaTest | 31b52b4b3a50e00c4be91327ca9fd1c9851a15f3 | bf29e61465aea111303e75156f59635f81937045 |
refs/heads/main | <repo_name>mhmddzidane/Shopping-list-ReactJS<file_sep>/src/components/info/index.js
import PropTypes from 'prop-types'
import styles from './info.module.css'
const Info = ({todosLength, totalCounts, onDelete}) => {
return(
<div className={styles.info}>
<div className={styles.infoTotal}>
... | 7d7f3d2f6cdb89dc578c1c3d4130bca9fd016b9c | [
"JavaScript"
] | 1 | JavaScript | mhmddzidane/Shopping-list-ReactJS | fac3661630e8eda9937828ae6011e9afef4c02f6 | 323244ee5a56b7768a217686d962b93d41d9c92a |
refs/heads/master | <file_sep>package main.mainFrame;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* @Author : fancici
* @Date : Create in 2018 03 2018/3/26 6:46
* @Description : 实现版本说功能
* @Paramter :
**/
public class AboutListener extends JDialog implements A... | b63ba7e68ef2559941b4ef734411446390404864 | [
"Markdown",
"Java"
] | 5 | Java | fanyunxing/libmanagesytm | 583182c305f272b55ff9caa6afddb51067161555 | 43089099dfecc8b09f7de1d185baba57c84a7a92 |
refs/heads/master | <file_sep>CarNew1201
==========
sasdasdasdasdsds<file_sep>source 'https://github.com/CocoaPods/Specs.git'
pod 'JSONKit', '~> 1.5pre'
pod 'AFNetworking', '~> 2.3.1'
pod 'SDWebImage', '~> 3.7.1'
pod 'MMDrawerController', '~> 0.5.6'
pod 'UMeng', '~> 2.2.1'
pod 'UMengFeedback', '~> 1.4.1'
pod 'WeChatSDK', '~> 0.0.1'
pod 'M... | ad16e3e57912765ba21753914869000cec4a2d87 | [
"Markdown",
"Ruby"
] | 2 | Markdown | TeamOfFBAuto/CarNew1201 | a0063a52e95b06e40efea3fb07288e1f7293cd0b | 29e566e2e74efc72cb5c5d554f92512ee630f25a |
refs/heads/master | <file_sep>def game_hash
game_hash = {
home: {
team_name: "<NAME>",
colors: ["Black", "White"],
players: {
player_name: ["<NAME>", "<NAME>", "<NAME>",
"<NAME>", "<NAME>"],
number: [0, 30, 11, 1, 31],
... | ff5939ec848db224bf2f660c2f662c7eced80541 | [
"Ruby"
] | 1 | Ruby | Franco84/advanced-hashes-hashketball-web-1116 | d2fb4767f33d23bf3a5f5087ba95d94b1a0fb523 | e18fe7ce7e46346165e877882007c3e33b705eeb |
refs/heads/master | <repo_name>Cheezily/PaperTracker<file_sep>/admin/adminUsers.php
<?php
?>
<div class="mainWrapperWithNav">
Users
</div><file_sep>/static/header.php
<?php
//session_start();
?>
<link rel="stylesheet" href="css/main.css">
<script type='text/javascript' src='bower_components/jquery/dist/jquery.min.js'></script>
... | 05171f962c0e350878631c6ef9f2ad1ac027daa8 | [
"JavaScript",
"SQL",
"PHP"
] | 27 | PHP | Cheezily/PaperTracker | 8e911e77708c44010af59b1ae71dc0ddc80e7548 | d97402b420a83f26b880f45e866378aa97b869a4 |
refs/heads/master | <file_sep>package workflow.tmp.rest;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Pat... | 57d4b69efbed6077c6f170307992482b7b62f1cd | [
"Java"
] | 14 | Java | workline/workflow_application-jbpm | aaea7cc9b33ab227d25fb7a406a96b9edab99820 | ac8fbe181ca2acf79047bbe2486b7c073b62d8f5 |
refs/heads/main | <file_sep>crypto{0fb_15_5ymm37r1c4l_!!!11!}<file_sep>Here is my super-strong RSA implementation, because it's 1600 bits strong it should be unbreakable... at least I think so!
inferius.py
output.txt<file_sep>Change the Json value from Clothes to flag.
Solution : crypto{sh0pp1ng_f0r_fl4g5}<file_sep> PEM is a popular ... | 24ff9eba5e669e7a203058440f76c9f9a99117c6 | [
"Markdown",
"Python"
] | 106 | Markdown | Sharath-Cy/CTFs | ffe0af8eec23edb24f4ecefc9c0f00d552579beb | 2fe7300cf121c26bfb068586df0a9d786eb9ac4b |
refs/heads/main | <repo_name>agri-chip-reader/quickchip-backend<file_sep>/src/main/java/controller/HomeController.java
package controller;
import business.AdminService;
import data.entities.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMap... | 7fd93e36b9904ef7d3fdc19be34d8d3a0f8ab1c9 | [
"Markdown",
"Java"
] | 7 | Java | agri-chip-reader/quickchip-backend | 4d5d3b5bed0eb00d53de501a9ba5f223a7506d0f | 9530e1b35a62f8bf7be8f71042f3034cf3f833b4 |
refs/heads/master | <repo_name>baldachin/LearnStock<file_sep>/demo01.py
import pandas as pd
from pandas_datareader import data as web
import datetime
start = datetime.datetime(2016,1,1)
end = datetime.date.today()
# 第一个参数是我们要获取股票数据的股票代码串,
# 第二个是源(“yahoo”代表Yahoo财经),
# 第三个是开始日期,第四个是结束日期
apple = web.get_data_yahoo("AAPL", start, end)
# pr... | 3268f28f6f713aee1e4b0041b9301ea7a2dc9dfb | [
"Python"
] | 1 | Python | baldachin/LearnStock | a993163f6bba5b4ca4b6770e1710ed4eb84ea1b8 | 557e0a9e3d94cd702d5ef02d0fe03696a30f2005 |
refs/heads/master | <repo_name>deebhatti/SeleniumJune14<file_sep>/README.md
# SeleniumJune14
an optional description can be provided here.
Some important instructions will come here
<file_sep>/TestNGDemo/src/demo/Annotations.java
package demo;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import... | 69fb84d40ba0194131abc6642fe0a1bc8aba64b9 | [
"Markdown",
"Java"
] | 2 | Markdown | deebhatti/SeleniumJune14 | 5a32fd8088dd5bbc76c70a3d3cdb9385d34a7e0b | 04b4d47ccfaae67e538252c4296a0831688d3dd0 |
refs/heads/master | <file_sep>package com.youer.adapter;
import java.util.List;
import com.example.youer.R;
import com.way.app.PushApplication;
import com.way.bean.User;
import com.youer.adapter.PhotoGridAdapter.ViewHolder;
import com.youer.modal.MImage;
import com.youer.modal.MStory;
import com.youer.modal.MStory1;
import co... | 5da9e278b012a1507f28efa8fcb74b37cdb215b6 | [
"Markdown",
"Java"
] | 12 | Java | Zhishine/youeryuan | dbce3d97559f156649a35ffccb2fe8699a6c3d34 | bb731185fa0d2ed75b122a7dae80ccd79070c554 |
refs/heads/master | <repo_name>Yujingchen/client-panel<file_sep>/src/actions/types.js
export const NOTIFY_USER = "NOTIFY_USER";
export const DISABEL_BALANCE_ON_ADD = "DISABEL_BALANCE_ON_ADD";
export const DISABEL_BALANCE_ON_EDIT = "DISABEL_BALANCE_ON_EDIT";
export const ALLOW_REGISTRATION = "ALLOW_REGISTRATION";
| 9a3412980f6c320256755bd0d1267599eddbb7cb | [
"JavaScript"
] | 1 | JavaScript | Yujingchen/client-panel | d764c1a07f6353dbffa9ee0d065d2d29c8b2f576 | bc0f82e89fdd41ddb16316888098506e8701b81e |
refs/heads/master | <file_sep>-- phpMyAdmin SQL Dump
-- version 4.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: 2015-07-16 08:17:37
-- 服务器版本: 5.6.21-log
-- PHP Version: 5.3.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... | ae76414f0d2b73a4c11fd22d5caf71b4e79d2d8a | [
"Java",
"SQL",
"Text"
] | 16 | SQL | NickXun/Library | 8ca7b8fcb33b5ecb5071916d85619d4cd8856f3d | 42434e112426d6b1d8ac610364afc991ea76291d |
refs/heads/master | <file_sep>import imaplib
import configparser
import os
import email
import datetime
import codecs
now = datetime.datetime.now()
def open_connection(verbose=False):
config = configparser.ConfigParser()
config.read([os.path.expanduser('cred.cfg')])
hostname = config.get('server', 'hostname')
username =... | 0c31a39f988030db1e93372b1806d090a88df6bd | [
"Python"
] | 1 | Python | aravindc/python2 | a4a50247ef0a33ae6db8ee1b395c316bf53e0ef2 | 1ee5a70ea82f249763de2626216deed572e189a2 |
refs/heads/master | <repo_name>nisrulz/SelfieApp<file_sep>/app/src/main/java/jslovers/github/nisrulz/selfie/SelfieListAdapter.java
package jslovers.github.nisrulz.selfie;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.widget.RecyclerView;
import android.vie... | 719be868a241d63c46f0b6ae2ca442a518748ba5 | [
"Markdown",
"Java"
] | 4 | Java | nisrulz/SelfieApp | 99902b2bca4907213370f9b0bc43735187d87714 | 0100b4c6806ab34aa4e84d7ad3d067d9eba3f1a5 |
refs/heads/master | <file_sep>/*
* Copyright (c) 2020. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellent... | 44751e7741d3e7ff179a8a78e25070a9877c9c15 | [
"Java"
] | 1 | Java | kosmas1991/MobilePhoneContacts | ce56190b024209ee29e06b684763c20925396a2e | 2121c94c0e7a47b3b45613c975fad79c8be1766e |
refs/heads/master | <file_sep>healthit.baseurl=https://dashboard.healthit.gov/api/open-api.php
<file_sep>package com.example.healthitdata.service;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Se... | 195835f0649813f631805508e0c25b531ecb5d3d | [
"Java",
"INI"
] | 2 | INI | gchirayil/healthitdata | bb9688fcd3727a7b0c340d4da17d65332b5f99fd | b2792d71cde43bda0aae2eb57ce4fba1ec44f8a2 |
refs/heads/master | <file_sep>import numpy as np
from sigmoid import sigmoid
from sigmoidGradient import sigmoidGradient
def nnCostFunction(nn_params, input_layer_size, hidden_layer_size, num_labels, X, y, Lambda):
"""computes the cost and gradient of the neural network. The
parameters for the neural network are "unrolled" into ... | f3568bcc635f02f8335701811040d31be277d836 | [
"Markdown",
"Python"
] | 20 | Python | TonyCalvez/INTELLIGENCE_ARTIFICIELLE | 21b749ca84784d9e219008db99edf56d5f4e49e9 | 13e07ae82e49000dd4070695318d23426998511c |
refs/heads/main | <file_sep>#!/bin/bash
echo "build this package isolated"
cd
cd catkin_ws
catkin_make_isolated --pkg autonomus_transport_industrial_system<file_sep>//
// Created by robomaster on 2020/8/17.
//
#include "../include/tag_follower.h"
#include <ros/ros.h>
#include <pluginlib/class_list_macros.h>
int main(int argc, c... | 2b25545898da0a8fc339a6d0a947d2fc6aed7afe | [
"Markdown",
"Python",
"C++",
"Shell"
] | 8 | Shell | Albert-Lucif4/pepper-ros-slam-autotransport | 9a8c605076d69242e485787aeca2c317e73fb21a | 0a8ee72b7ddf75178849eacbaca9f8aa6910f5d1 |
refs/heads/master | <repo_name>hu9o/NewgroundsAPIUnity<file_sep>/Assets/Newgrounds/Code/SendString.cs
#region References
using System.Collections;
using System.Text;
#endregion
namespace Newgrounds
{
public class SendString
{
#region Public Fields
public string m_contents = "";
#endregion
#region Constructor
public SendStr... | 3f26987f1c7f44ae22223eb934dcda4484086708 | [
"C#"
] | 1 | C# | hu9o/NewgroundsAPIUnity | 230a11fe292351fbed05d28e074f036e287809fe | 6c9385c40e35ff60fc15348278f87e54c2099e50 |
refs/heads/master | <repo_name>ash-ish/AlgorithmsImplementation<file_sep>/algos/src/main/java/s4m3d5/Solution.java
/*
* s4h3f5
90
*
*
* */
package s4m3d5;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String word = input.nextLine();
int... | 113a98a5a9e52663732bba8f7879ac852a62c608 | [
"Java"
] | 6 | Java | ash-ish/AlgorithmsImplementation | 83c9474d0d0b9196c0618d18110f40d04b63bf4a | 41a1b90ebfcc7b6d224eb6ad35b951f7b1b36d58 |
refs/heads/master | <repo_name>pablogiral/event-deliveroo<file_sep>/web/config/environment.js
export default {
apiPath: 'http://localhost:8081/'
};<file_sep>/web/src/index.js
import config from '../config/environment';
console.log(config);
var headers = new Headers();
var getOrders = {
method: 'GET',
headers: headers,
m... | 648ba8e33f83d63e5a7faad5f8eacdb7739bddf9 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | pablogiral/event-deliveroo | 30f0815291c1edf7e961b9028527194b04ddc900 | bc9e66a7f7dfc3ada690ec9f831ba71ac485a8bb |
refs/heads/master | <file_sep># generated from genmsg/cmake/pkg-genmsg.cmake.em
message(STATUS "project1_solution: 1 messages, 0 services")
set(MSG_I_FLAGS "-Iproject1_solution:/home/ccc_v1_w_NmY1N_85909/asn28980_1/asn28981_1/work/catkin_ws/src/project1_solution/msg;-Istd_msgs:/opt/ros/indigo/share/std_msgs/cmake/../msg")
# Find all ge... | fac88351dcf84d856b0d93fc3d4526cdca61882a | [
"Markdown",
"Python",
"CMake"
] | 6 | CMake | hardesh/ColumbiaX-Robotics | 1e542a637772fd1223b48e55a71ac75c5500900f | a906beddecb9faf91d716bb1a800aed31e2bb218 |
refs/heads/master | <file_sep>package com.hakanor.todolist;
import androidx.appcompat.app.AppCompatActivity;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.content.SharedPre... | 3f58609b47def8853c8e6adac766aec011480ff2 | [
"Java"
] | 2 | Java | compeboy/ToDoList | 4cd87d698278a6554727c373893830829a5d9cae | 7a21c7d3f9c7bf1757a7c791c1af25e6db4cba7a |
refs/heads/master | <file_sep>'''Дана дата из трех чисел (день, месяц и год).
Вывести yes, если такая дата существует (например, 12 02 1999 - yes, 22 13 2001 - no).
Считать, что в феврале всегда 28 дней.
'''
#вводим дни, месяцы, года
#проводим проверку отдельно по каждому значению
# в функцию
def countday(mm):
if mm == 2:
ret... | 593eff6c4a6f9240ac0399b70757a725c3477033 | [
"Python"
] | 13 | Python | sneggoroddd/GlobalProekt | 568caba98ebd7420a20a504f3e1150780631667a | 03f343ec8e9758432e381523eea1bf225e7c5cd6 |
refs/heads/master | <file_sep>class Resume < ApplicationRecord
mount_uploader :attachment, AttachmentUploader
validates :name, presence: true
end
| 8d02d44fdfbf5817f44216c55365a3fb9e37b23b | [
"Ruby"
] | 1 | Ruby | karthikakb/fileupload | 5f01db896533be07f718421348cee68b3198d10e | e876decc327b64241b4a5ce7e54ccfa70c70a602 |
refs/heads/master | <file_sep>(function() {
//=include ./events/events.js
//=include ./events/mutex.js
//=include ./events/colleague.js
//=include ./events/mediator.js
//=include ./utilities/date-utils.js
//=include ./utilities/number-utils.js
//=include ./utilities/uuid-utils.js
//=include ./components/calendar/calendar.... | 715dda977c1ef0d4ccd0e6e7ec33e0452e221a69 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | p-hebert/date-picker | 51351193aa8bd770124f4a1cc00709812bf6d47e | 0957cdcbc1c455847deaa1f1799774020278ce64 |
refs/heads/master | <file_sep>const menuMobile = document.getElementsByClassName("menu-mobile-btn")[0];
const navigation = document.getElementsByClassName("navigation")[0];
const subMenu = document.getElementsByClassName("sub-menu")[0];
let menus = document.getElementsByClassName("menu");
menuMobile.addEventListener('click',onClickMenuMob... | 6b7d2ca57adb5e1a21520c15df4f93930c9f4cb9 | [
"JavaScript"
] | 3 | JavaScript | AlexisPQA/theband | bd5724a6c66a59c3b10655d46a19b9ae9a97b61b | 6329df2137126af6b384a9cd9ee261790aa4c755 |
refs/heads/master | <file_sep>package hunau.com.mydatauser.entity;
import javax.persistence.*;
/**
* @param
* @Description:
* @Return:
* @Author: 蔡文静
* @单位:湖南农业大学物联网工程专业
* @Date:
* @开发版本:综合练习VO.1
*/
import javax.persistence.*;
import org.hibernate.validator.constraints.NotBlank;
import java.text.SimpleDateFormat;
import java.uti... | af220504cd463b3c90278eb70506f985e1761460 | [
"Java"
] | 4 | Java | Cwwjj/mydatauser | e0923968ca867a788609b16be1f6900f36f963fb | e40f091f7171ca946b8a233fcc8a9849ab2219f7 |
refs/heads/master | <file_sep>package com.starbattle.ingame.game.particles;
import java.util.HashMap;
import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
public class ParticleContainer
{
private HashMap<String,ParticleEffect> effects=new HashMap<String,ParticleEffect>();
public ParticleCont... | 6a419e9b47423d3cc73336d8e42fde429f877d48 | [
"Java"
] | 20 | Java | stenn21/dhbwStarbattle | e74364fdcb2ae9bf45f9a5748c38caf79a0090ef | 4b702e5bdca9e56ea9bbb458d48849b6faa11ef6 |
refs/heads/main | <repo_name>daniloalves/python-sample-async<file_sep>/demo_asyncio/app.py
from time import sleep
import logging
import aiohttp
import asyncio
logger = logging.getLogger(__name__)
## Example to call:
# python3 ./app.py
async def main():
# await asyncio.sleep(0.1)
print({'status_code': 200, 'message': 'Your req... | 3695f3617de3cef8d85b7ac6d6a31b2545c635eb | [
"Markdown",
"Python",
"Text"
] | 5 | Python | daniloalves/python-sample-async | 7b38e63f1e8f847a887ab8261fa3249d8f4e64b3 | 529a0dfa568615e3ea7ba8882bcb35d1d4fd0ca2 |
refs/heads/master | <repo_name>slav-petev/Team-Snowdrop---March-2017<file_sep>/Code/SimpleConditions/08.MetricConverter/MetricConverterExercise.cs
using System;
namespace _08.MetricConverter
{
class MetricConverterExercise
{
static void Main(string[] args)
{
var length = double.Parse(Console.R... | 1c58e23e83c1331b4ead0c420dd0ef87628e5c6a | [
"C#"
] | 50 | C# | slav-petev/Team-Snowdrop---March-2017 | 582b7ea9f695c6f09485d0e1e82f885d9b28879b | c5e5aecdda2dfecdbf9d9384896194e8d4e9808d |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
namespace Alauda
{
public enum SpinnerType
{
... | 0c1b793ac89f450a2af05bfa63dda2bbd88d1ae0 | [
"Markdown",
"C#"
] | 33 | C# | bubdm/Alauda | 51ce2eb27af0548176d5bb1be59ea5fed21f226a | 271c174122b4121f52389a84f20b8d86c14a2896 |
refs/heads/master | <file_sep>const React = require('react')
const ReactDOM = require('react-dom')
const $ = require('jquery')
//import ColsMod from "apiCollMod.js";
const {congressMod, congressCollection} = require('./apiCollMod.js')
console.log(React)
console.log(congressCollection)
let HomeView = React.createClass({
render: funct... | 6996c50278c56430178a5aaf8dace52b41850af4 | [
"JavaScript"
] | 2 | JavaScript | marmstr1123/assignment-21-convert-to-React | 4fe48e3a6c5625bceb875e1e87a746e73e5d90f5 | 4429ebbdbd948d25bee0703dfa5526346e40db68 |
refs/heads/master | <repo_name>rummik/zsh-wake<file_sep>/wake.plugin.zsh
#!/bin/zsh
function wake {
emulate -L zsh
cmd=${1:-help}
[[ $# -gt 0 ]] && shift
if [[ ! -d ~/.wake ]]; then
mkdir -p ~/.wake
fi
if ! whence -- "-wake-$cmd" > /dev/null; then
-wake-up $cmd
else
"-wake-$cmd" $@
fi
}
function -wake-list {
ls ~/.wake... | a81b591223c1c016f5bab9a5bac996c05231ccc3 | [
"Shell"
] | 1 | Shell | rummik/zsh-wake | 0fa34f5f72c081aa7bf6c7b57f03065afa5463a6 | 39819aad2b7cfa919d931048b893a8559e470142 |
refs/heads/master | <repo_name>mayweed/6.00x<file_sep>/6.00.1x/finalExam/dict_invert.py
#!/usr/bin/python
def dict_invert(d):
'''
d: dict
Returns an inverted dictionary according to the instructions above
'''
dico_inv={}
for k,v in d.items():
if v in list(dico_inv.keys()):
dico_inv[v].append(k)... | 22d2059d5959216ab898aa483f0191d7df3ff31f | [
"Python"
] | 22 | Python | mayweed/6.00x | 4e0f7ceafd02d752407c5714ad7478908b453c1d | 3126aaea3a0a88caf31aac41129bb446911d7b3e |
refs/heads/master | <file_sep>class Branch:
def __init__(self,Number):
self.number = Number
self.left = self.right = None
class binaryTree:
def __init__(self):
self.Tree = None
#recursive to insert branch (value) to binary tree. If value below current branch value then go to left else go to right.
... | 19d225b539fa47999ef52ef75519f4ed45489625 | [
"Markdown",
"Python"
] | 3 | Python | masamunekenji/Python-Module | f4943b1d9420b9ec7a6014fb27b9d596ebe3dcea | 4102f9aa8ad3568fbc681c54704336df5181ea41 |
refs/heads/master | <repo_name>Dmenk123/Carwash<file_sep>/application/modules/kunci_lap/views/modal_kunci_lap.php
<?php
$obj_date = new DateTime();
$timestamp = $obj_date->format('Y-m-d H:i:s');
$bln_now = (int)$obj_date->format('m');
$thn_now = (int)$obj_date->format('Y');
$thn_awal = $thn_now - 20;
$thn_akhir = $thn_now + 2... | 24936c4687a222b21186e97365fb19e331a6518b | [
"SQL",
"PHP"
] | 8 | PHP | Dmenk123/Carwash | 100d1cd22990adc5f6ed1b5af6347bd99813c662 | 51700e56b35391da4161f213a0a09269ecfce486 |
refs/heads/master | <repo_name>ngttt/nguyenthithuytien-c4ejs<file_sep>/session4/index.js
// let movie = {
// name: 'hotel transylvana',
// year: 2012,
// type: 'animation'
// }
// console.log(movie.name, movie.type);
// let key = name;
// console.log(movie[key]);
// //read all
// movie.actor = 'bat';
// let a = prompt('enter t... | 9136f578aebcf232055743bca50b85325b0845ea | [
"JavaScript"
] | 14 | JavaScript | ngttt/nguyenthithuytien-c4ejs | fb9dfc286a2ea1fb93bb2a79158c28a613034983 | 4420197619f8840574aece3d68754f89d738a8cf |
refs/heads/master | <repo_name>PadillaTom/SpringBoot-Polotic-TPFinal<file_sep>/src/main/java/com/padillatomas/tpfinal/controller/ReservaController.java
package com.padillatomas.tpfinal.controller;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework... | 2237d2dea2ea72f1cc3b2235323c6ec70f821d6b | [
"Java"
] | 10 | Java | PadillaTom/SpringBoot-Polotic-TPFinal | 39b7987539667ef500b25edd5b55ac23e7f8c0ef | e947589fe823637f2f8d5b1934caaa0aad722283 |
refs/heads/master | <repo_name>zavsc/eschool<file_sep>/application/views/errorview.php
<div class="container">
<?php if(isset($error)) {?>
<div class="alert alert-danger" role="alert"><?php echo $error; ?></div>
<?php }?>
<span id="show-timetable" onclick="location.href='<?php echo base_url();?>';" class="a-block"
title="На глав... | 9638117705cd395ced14b21f6f985092950bf42b | [
"Markdown",
"SQL",
"JavaScript",
"PHP"
] | 62 | PHP | zavsc/eschool | e1c81aa44c4fe7a819cfb2919d8f53e1bc9a9143 | fede0a49983b4f6c8ce1fb869a67036622811a16 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faHeart, faUser } from '@fortawesome/free-solid-svg-icons';
import './Post.scss';
import TagList from './TagList/TagList';
import config from '../../config';
class Post extends Component {
f... | acb7558240c94e497964309326746ada299ba794 | [
"JavaScript"
] | 1 | JavaScript | zingeryuval/instagram-ui-1 | 670254c0729e1b1ff00d311c5138c61e50b856e8 | c3b6ef43f3f50457cdff684ad8ffc56c9003fa10 |
refs/heads/master | <file_sep>import math
import pandas_datareader as web
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense, LSTM
import matplotlib.pyplot as plt
plt.style.use('fivethirtyeight')
# get qu... | 4089b4a6b056842c523b138612aa06b0a12dab02 | [
"Python"
] | 1 | Python | alexandercarson/StockPricePrediction_ML_AI_Python | 9367d62e92b644f04b8d054e26df2321e0a2cd4a | 8b7b097c0d7088c8be145c9a36e95735c71ffbdc |
refs/heads/master | <repo_name>Junaid522/Nitrx<file_sep>/stories/admin.py
from django.contrib import admin
from stories import models
# Register your models here.
admin.site.register(models.Story)
admin.site.register(models.StoryView)
admin.site.register(models.StoryRating)
<file_sep>/posts/serializers.py
import urllib.parse
from djang... | ecef1113bed9dc9f8d0cb2c38f2842442a816d56 | [
"Markdown",
"Python",
"Text"
] | 79 | Python | Junaid522/Nitrx | 7cf2c5810d5a2e7e2666b2cc53065b6a8b10fa55 | b4c53643023e61a9e92e4c27ce8a500378efa7f9 |
refs/heads/main | <repo_name>fengzi91/livewire-alert<file_sep>/README.md
<h1 align="center"> livewire-alert </h1>
[](https://travis-ci.com/fengzi91/livewire-alert)

<p align="center"> ... | aa3974a9651b43f31ed1ce9f50514e94e2607551 | [
"Markdown",
"PHP"
] | 5 | Markdown | fengzi91/livewire-alert | 7612c62820e6dbc08cf283c6ab3d3bc950b639b9 | 56e91ce1f2e3f0bb7d1f93aabb9a7d10c3b7c978 |
refs/heads/master | <file_sep>module.exports = (playerName, score, questionIndex, totalQuestions, questionName, opts) => {
let str = `
<link rel="stylesheet" href="./assets/css/questionPre.css" />
<div class="header">
<div class="headPad">
<div class="quizProgress" id="quizProgress">${questionIndex+1} of ${totalQuest... | 9ed1b85efbbe8a3c0a3565ae7816e4c768d53340 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | artifexdevstuff/KahootCheatPlusPlus | 1a2bead90c099214de4e61437eda08e62e0ecec9 | a1bbbbccf8d467204c311c61aee1ca7fd669927c |
refs/heads/master | <file_sep><?php
$content = '
<page>
<table border="0.5" cellpadding="0" cellspacing="0" align="center" style="margin-top:50px;">
<tr>
<th>
<table>
<tr><th style="font-size:24px;"><NAME></th></tr>
<tr><th><EMAIL></th></tr>
<tr><th>+91-8553236639</th></tr>
</table>
<... | 3b7854ce8d76f798d630fdf5ed223598d5025281 | [
"PHP"
] | 1 | PHP | surajjana/html2pdf | 4db05056f6a2438168b73b7557d99645c495e7ea | c2daaec63aa61dfc565496f853452e9ad712fd85 |
refs/heads/main | <file_sep>a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
num = 0
for i in range(c):
for j in range(b):
for k in range(a):
print("{} {} {}" .format(i, j, k))
num += 1
print(num)
<file_sep>a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
d = a + b + c
print(d, f... | ad7915b99b67d671a0ea9697c346f0ca77581b2c | [
"Python"
] | 18 | Python | Gungoguma/Python | 79c47e4c46a0ee47d9d71a048eec77a26641cde7 | 7802f29896cebf9007c7e76145b960695f8a4881 |
refs/heads/master | <file_sep>
package util;
/**
*
* @author felip
*/
public class Produto {
private int codigo;
private String descricao;
private double valorCusto;
private double lucro;
private double icms;
private double ipi;
private double outrosImpostos;
private int estoque;... | 7162bc1b791330f03f383d65d509160cbe2512ff | [
"Java"
] | 5 | Java | ronaldoi9/TrabalhoBD | 5aea3107766471ed6e71f8a1d0cd6c3c167c5fd1 | ba20a1dc0590ba8bf9b846980bdc2a44571ed6ee |
refs/heads/master | <file_sep># Docompiler
A Compiler Add-On for Microsoft Word

<file_sep>(function(){
'use strict';
// The initialize function must be run each time a new page is loaded
Office.initialize =... | 3fd50b32587ead0e8195eb8188e3249effdbea51 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | timotius02/Docompiler | f24b68e66397ce82b2b10bd10d2bb63d2c5b6eaf | 76d373f69027d18a5fd18ce9325df6721cff7b62 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.