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/gh-pages | <file_sep># Confetti animation
Another confetti-like animation!
online version https://vldvel.github.io/Confetti-animation/
<file_sep>var burst;
function Burst() {
this.x = random(width/5, width/1.2);
this.y = random(height/5, height/1.2);
this.amount = random(50, 100);
this.create = function() {
for (v... | 46f539829f16e14bcb19aebd0fee0a34f67fe329 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | vldvel/Confetti-animation | 15137b4a775d470f81113ce0c23cb7f21b38edfb | 0271535781fca9962aa05cd81f21b9765a6c7327 |
refs/heads/master | <repo_name>lcg-cts/thingsboard-batches<file_sep>/src/main/resources/application.properties
api.weather.url=https://api.darksky.net/forecast/fc153fe0623d951ac7eb21e8ee32c438/49.2494025,11.2465703,17?exclude=hourly,currently&lang=de
api.weather.target.path=weatherforecast/
<file_sep>/src/main/java/org/srs/thingsboard/pro... | 3cf68e0db52a1a0e82e59b85bd7186157352e41e | [
"Java",
"Maven POM",
"INI"
] | 7 | INI | lcg-cts/thingsboard-batches | 3b218ea27afe12bae3580d13d0a51c81b59058d6 | 4d48ddc717d0f428e5b650def6d571d0971b0054 |
refs/heads/master | <file_sep>#!/bin/bash
# Photo types
PHOTO_TYPES=("Capture" "capture" "Select" "select" "Edit" "edit" "Final" "final")
# Checks if the provided path is a photo type path (i.e. it is a photo that
# should be opened)
#
# $1 -> provided path
function isPhotoTypePath() {
for i in "${PHOTO_TYPES[@]}"
do
# Check i... | 0ed26d4bb49be2c92bc4f83570db9eefca4012b2 | [
"Markdown",
"Shell"
] | 2 | Shell | Alan-Cha/dds-photo-finder | 6b904a8af3debb92387b6c3233091553d21056a2 | 2449823a4a9ea05581be04d7ca8cfa14852a099e |
refs/heads/master | <file_sep># yank-ring.kak
The [Kill Ring] for [Kakoune].
## Dependencies
- [connect.kak]
- [fzf]
- [jq]
## Installation
Add [`yank-ring.kak`](rc/yank-ring.kak) to your autoload or source it manually.
## Usage
Restore a previous yank with `yank-ring` (or its alias `y`) or `yank-ring-load-from-file`.
Registers are... | d6173342cdd4af3b0b79906f17d282badc5bb81d | [
"Markdown",
"Shell"
] | 2 | Markdown | alexherbo2/yank-ring.kak | e7e4941f712e9f161900e9332c9dd03309e6d7df | ae1c84ad0d94cac59ebf1252e880f6a6173f0479 |
refs/heads/master | <file_sep>import React, { Component } from "react";
import "./App.css";
import Header from "./Header";
import NoTasks from "./NoTasks";
import Tasks from "./Tasks";
import NewTask from "./NewTask";
const url = window.location.protocol + "//" + window.location.hostname + ":8080/tasks";
class App extends Component {
... | 8c2e7b70ba8690164f813af2938abcde758f7edf | [
"JavaScript"
] | 4 | JavaScript | wellingtonsteve/t3frontend | f3fdedcb36dead9056752419d9ccfc9a89476f04 | 91984d381dcf1cd5abff92488552c00564d75896 |
refs/heads/master | <repo_name>a9magic/iskconcolumbus-old<file_sep>/app/partials/donate/tithe.html
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Tithe - Support Monthly</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel pan... | f8644a422dcb874fe6f9a364d99e316cae55627c | [
"JavaScript",
"HTML"
] | 3 | HTML | a9magic/iskconcolumbus-old | e267d3bf39ae0e4155e8035c279c2347984de16d | 55d04a9e56d059f01383f1b8dfc154325e5ee112 |
refs/heads/master | <file_sep>/*
* 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 electricitybilling;
/**
*
* @author Ankur
*/
import java.awt.*;
import java.awt.event.*;
import javax.... | 806363ee38270e3971e39a3f11f3de7a1b0b0d38 | [
"Markdown",
"Java"
] | 5 | Java | ElectricityManagement/final | 941f16bcdae5c686099520419094dd80f09b53c3 | e4805cdd9e09828ef501f1d76fac548f1a92e0f8 |
refs/heads/master | <repo_name>allenjwelch/company_tracker<file_sep>/client/src/views/Compare/Compare.jsx
import React from 'react';
import { Redirect } from 'react-router-dom'
import './style.scss';
import API from '../../utils/API';
import CompCard from '../../components/CompCard/CompCard'
class Compare extends React.Component {
... | 04f9f05156524d781f3d59bb293a7ec43938428f | [
"JavaScript",
"SQL",
"Markdown"
] | 11 | JavaScript | allenjwelch/company_tracker | 2b6857f104d9f2ad31bba6d6a0d00765b90ed632 | 59575d2436af232baa53383cbfee9ee24320879d |
refs/heads/main | <repo_name>sVanshika/portfolio<file_sep>/src/components/education.js
import React from 'react';
import Profile from '../data';
const Education = () => {
return(
<div className="education d-flex justify-content-center">
<div className="educationContainer">
<h1 className="title">Educ... | 5837c047c4a4fb8d23a1c7c183f004f72fc0ad8d | [
"JavaScript"
] | 4 | JavaScript | sVanshika/portfolio | 088ffaf572a73a15285b720408a9b4eebcb1d2e0 | 3f322b9b50bf363ed332bdf47669e07af76f83d2 |
refs/heads/main | <repo_name>schahinheidari/Technologie-Web-php-html-css-<file_sep>/src/modele/utilisateur/GestionAuthentification.php
<?php
// Classe permettant de g?rer la connexion et la d?connexion des utilisateurs
class GestionAuthentification {
private $utilisateurs;
private $donnees;
private $erreur;
private $vue;
// Co... | 960d4e4c4e29e72f3967232ac34e6ddbc8e9f382 | [
"Markdown",
"PHP"
] | 14 | PHP | schahinheidari/Technologie-Web-php-html-css- | dd4772c4e98678a625569b8e17db0267aa25bdb7 | a9ce9364997e5252020b8ea66db864bc52015e5b |
refs/heads/master | <file_sep>var fs = require('fs');
var path = require('path');
var emConverter = function(less, fontsize, basefontsize){
if (less.tree.functions.ispixel(fontsize)){
basefontsize = (basefontsize) ? basefontsize.value : 16
return fontsize.value/basefontsize+'em';
}
};
module.exports = funct... | f300a41f10ccb36a098104afaeb31971ae23b869 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Sweefty/bare | ad3791ba0501e14f9c8d041a58a95b55e9e045f3 | 9a70f8e06163630b61be2bbe55e5d43bb43d3016 |
refs/heads/master | <file_sep># LowestCommonAncestorOfABinarySearchTree-Leetcode-235
Leetcode Question 235 (Medium)
Techniques Used in Question:
DFS
[Link to Question](https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/)
<file_sep>//Objective is to find the lowest common ancestor of two nodes in a BST
class N... | e45c2d6d774adf66cc95afbe218b8a81b8248e33 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | kevindai777/LowestCommonAncestorOfABinarySearchTree-Leetcode-235 | b634a0a89d21584196b6c5543c3590d0b20896e0 | ca4aaad475b1f7533a38175d09e5c9f6935f4c54 |
refs/heads/master | <repo_name>zeedt/TGIFMOBILE<file_sep>/src/Services/RestService.ts
import { Http,Headers,HttpModule } from '@angular/http';
import 'rxjs/add/operator/toPromise';
import {Injectable} from '@angular/core';
import {AlertController,NavController} from 'ionic-angular';
import {HomePage} from './../pages/home/home';
import {D... | 4454247c640f8b0dd2c7b159cb39c8060cb9e873 | [
"TypeScript"
] | 7 | TypeScript | zeedt/TGIFMOBILE | 87e7f5e2d0649fd561509d0ea19197e8e87f2749 | 6ab784b3a60aca36c1675a2e600eb8b180e86930 |
refs/heads/master | <repo_name>michcic/SocialApp<file_sep>/SocialApp2/Models/Friend.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace SocialApp2.Models
{
public class Friend
{
[Key]
public int Id { get; set; }... | 2f194f01202ed86248c386361cec6a68c7088feb | [
"C#"
] | 10 | C# | michcic/SocialApp | 3a9c6025d633619e3909df75db4d6bdde4c09b4c | 2d3ee66943b1d51f0f84f3c09de47585635f1ab6 |
refs/heads/master | <file_sep>const functions = require('firebase-functions');
const admin=require('firebase-admin');
admin.initializeApp();
// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
// exports.helloWorld = functions.https.onRequest((request, response)... | 29c6b3be674fd5635c92f7d2521a9217c529c15b | [
"JavaScript",
"Markdown",
"INI"
] | 3 | JavaScript | Prottya-Roy/uBookSharing | 6be4e04dec50608f9f6261a88003451635eeeb3c | 074f756c055a079a0a5050977d8832ade1e76a18 |
refs/heads/master | <file_sep># This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
#
# Examples:
#
# movies = Movie.create([{ name: '<NAME>' }, { name: '<NAME> the Rings' }])
... | dce8fc85a961978e4140d388600ab546ba725b98 | [
"Ruby"
] | 2 | Ruby | laurybrett/rails-yelp-mvp | a3157a9bdb695cffbea99f083e758fd8413c4e7e | e21aeeb588b0f6c8f9f3da180a792d7ffe7583f1 |
refs/heads/master | <repo_name>chenmodaoshi/git<file_sep>/onLineNovelCenter/src/com/lnsf/test/PostTest.java
package com.lnsf.test;
import java.beans.Transient;
import java.util.Date;
import java.util.List;
import javax.servlet.jsp.PageContext;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.... | 8fecd1c101396a4c9279ba24f1887b49484a3389 | [
"JavaScript",
"Java"
] | 11 | Java | chenmodaoshi/git | b5960e8d1778c910fd1e18909245e940a26475d2 | 8bb934b812e4e3c02b12e0091c33b4773e3da2f3 |
refs/heads/main | <file_sep>//
// PredicateType.swift
// CoreDataProject
//
// Created by <NAME> on 18/11/2021.
//
import Foundation
enum PredicateType: String {
case beginsWith = "BEGINSWITH"
case lessThan = "<"
case greaterThan = ">"
case equalTo = "=="
}
<file_sep>//
// ContentView.swift
// CoreDataProject
//
/... | 92b424b9032296aeb5978fe454a1c73a09bcb578 | [
"Swift",
"Markdown"
] | 3 | Swift | Pattest/CoreDataProject | 598b5a961661695cc0cd44d4eac91b5479ef6022 | 440c5f582a2bd7275283bce859855dce86843087 |
refs/heads/master | <repo_name>shstefanov/infrastructure-server-datalayer-mongodb<file_sep>/MongoModel.js
var Model = require("infrastructure/lib/ExtendedModel");
var sync = require("./mongo-backbone-sync.js");
var _ = require("underscore");
module.exports = Model.extend("MongoModel", {
idAttribute: "_id",
__sync: sync
}, {
extend:... | 9f891601080924f514ea0fe3ca048fbe8be33406 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | shstefanov/infrastructure-server-datalayer-mongodb | bb7b06211b56e80477e652ca1bf08b15eb55fb13 | 83d508a925fe87d664087e5e12d1914c69d67155 |
refs/heads/develop | <file_sep>using UnityEditor;
using UnityEngine;
namespace CleverCrow.Fluid.UniqueIds.UniqueIdRepairs {
public class UniqueIdRepairWindow : EditorWindow {
private PageWindow _window;
[MenuItem("Window/Fluid/Unique ID Repair")]
public static UniqueIdRepairWindow ShowWindow () {
v... | 5858345a48a26a926a29aba2552c308ff3505499 | [
"Markdown",
"C#"
] | 18 | C# | ashblue/fluid-unique-id | e91275393b93c1714ea9b0fa4dc0f7c4e43ba058 | 002c50addb9b17faebb7e99b6a5e3fe48c5584cf |
refs/heads/master | <repo_name>shanky-259/Averaged_perceptron<file_sep>/postagging/postag.py
import sys
import json
files=sys.argv
sys.stdin = codecs.getreader('latin-1')
def loadmodell():
f=open(str(files[1]),'r',encoding='latin-1')
weightavg=json.loads(f.read())
return weightavg
def classify(classlist):
for eachline i... | df915c7ab5d60c8069ebcc55916e046342728453 | [
"Markdown",
"Python"
] | 7 | Python | shanky-259/Averaged_perceptron | f376846e6d8cfe34826fcb580bd4ea388c29cffc | d2f1b3c95514976a35839fdde1ce783a75800c76 |
refs/heads/main | <file_sep>class CardGenerator
def initialize(filename)
@filename = filename
end
def loader
File.open(@filename).readlines.map do |line|
question, answer = line.strip!.split(",")
Card.new(question, answer)
end
end
end
<file_sep>require 'minitest/autorun'
require 'minitest/pride'
re... | 0463ad728eef605d98f0309562afd4458cbd0685 | [
"Ruby"
] | 7 | Ruby | dhalverson2/flashcards | 0736fbb0632bac1185fdb127c948e805b85c90ad | 919ceb5ff2ea99d69433a15d6bba8f346e4d5f95 |
refs/heads/main | <file_sep># STM32-SSD1306
使用STM32F103C8T6的USART1与电脑通信,获取帧图像
使用I2C1与SSD1306通信,向OLED的GDDRAM写入帧图像
测试帧速率:10FPS
| 2df86f0e574b5e4a3b4a91050a47b021969f73a4 | [
"Markdown"
] | 1 | Markdown | Hhe68-skl/STM32-SSD1306 | 21711fa354e8045da86cb3c3e340030039aff3b5 | 468087777ea60c81f05d383dd711823e4a29617d |
refs/heads/main | <repo_name>Cusitv/-<file_sep>/用户登录/assets/js/index.js
var refreshNav = true;
$(function() {
initUserInfo(); //获取用户信息
initNav(); //获取导航栏
//路由注册
Q.reg('home',function(){
load('home');
}).reg('system',function(path){
load('system/'+path);
}).init({
index: 'home'
});
//点击导航切换页面时不刷新导航,其他方式切换页面要刷新导航
layu... | 3da2949f5c7e85ed47a5098c8fd1197d460859bd | [
"JavaScript"
] | 1 | JavaScript | Cusitv/- | 780dc4eef11f4c0958dfef53dcae7642c3f801dc | 4e6bc5abb05177889d6a3b13b917b12a2b92e7e5 |
refs/heads/master | <file_sep>from django.shortcuts import render
from .models import signup
from .forms import Signupform, Loginform
def register(request):
#if request.method== "POST":
form1 = Signupform(request.POST )
#users = signup.objects.all()
if form1.is_valid():
saveform=form1.save(commit=... | a872df2a937622a7608de3ece0e6f8e71d305012 | [
"Python"
] | 4 | Python | WabwireL/QuickSell | 5781a6210f34d76ba88ab77f2e2400e81e9a5c0b | c1177d8a23ea447265c8aad5d581faf76c9689f9 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use Redirect;
use Auth;
use Validator;
use App\User;
use Illuminate\Http\Request;
class UserController extends Controller
{
// 회원 정보 수정
public function modify(Request $request){
if(Auth::user()->email != $request->email){
// 유효성 검사
$validator = Valid... | de6f36c06f5bb7fad0c9975f6b93a7ef54152e23 | [
"Markdown",
"PHP"
] | 3 | PHP | graykode/dcom | e64c41ad8e96b15b9dc0485e49b082b18610df01 | c9dd46b7d42978d5ccc32e8871240a3db119332b |
refs/heads/master | <file_sep># TRAIN SCHEDULER https://bensojka.github.io/Train-Scheduler/
Train scheduler application that incorporates Firebase to host arrival and departure information. The app retrieves and manipulates this data with Moment.js and provides up-to-date information about various trains, namely their arrival times and h... | d65b00d37c0e25dacccaf5cf571eae5fe94ac116 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | bensojka/Train-Scheduler | 4bb436dfb7548085b4546b1f5e64f77c2518e519 | 647457a047211a3bae68ffcd780a4873f067d62a |
refs/heads/master | <repo_name>WorldCosplayGirl/CoordinateConversion<file_sep>/README.md
# CoordinateConversion
Program to demonstrate conversion from one coordinate system to another
This program is based on the Code Project located at
https://www.codeproject.com/Articles/36868/Quaternion-Mathematics-and-D-Library-with-C-and-G
This pr... | af7b33294c86b709fb7e1dfa5396bb3361ce55ab | [
"Markdown",
"C#"
] | 2 | Markdown | WorldCosplayGirl/CoordinateConversion | 19ae5993d58feacb989ce8310c183d93674ec29d | 17088e23f53823c4626ac06654c3b65b011af529 |
refs/heads/master | <repo_name>neerajmaurya250/Android<file_sep>/app/src/main/java/www/kiet/myandroid/MainActivity.kt
package www.kiet.myandroid
import android.content.Intent
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import ... | 01216e08dbe64223ce710cdce2fe7145088d434b | [
"Kotlin"
] | 1 | Kotlin | neerajmaurya250/Android | 2cb0f0df081cf21d2b3275c6e2615279c486ce87 | 69bb79d29e45048bc343acd1a519245f88078b81 |
refs/heads/master | <file_sep>#include <iostream>
#include <vector>
using std::string;
int main(int argc, char const *argv[]) {
std::vector<string> v;
string str;
while (std::cin >> str) {
v.push_back(str);
}
std::cout << "v.size() = " << v.size() << '\n';
return 0;
}
<file_sep>#include <iostream>
#include ... | ac867b0feed242464f4b96553291058b9fb5fb7c | [
"C++"
] | 30 | C++ | luckmoon/C-Primer | feaf47f36d1a1f7353b020239d6bc4d371fb72b2 | 4c8da69a07ea7bdcdde97e1010477c691a164fba |
refs/heads/master | <file_sep># Integración de Prolog con Python y Twitter
## Introducción
En este trabajo se presenta la implementación de prolog con twitter a traves de python.
## Preparación
Para empezar con la instalación de los requisitos y todo lo necesario puede que sea de su interes leeer este articulo en el que explico a deta... | 7f4257b7f0684e2a5f7dd6297ee23d16c6ce6194 | [
"Markdown",
"Python"
] | 2 | Markdown | JacobMaldonado/Python-Prolog-twitter | 1a1e6f096dffa2b8b5a843cf187f92fb0b4ed16a | ddf214388dfdf1375eee9c3ac90dbc53b1738ae8 |
refs/heads/master | <repo_name>bobwatcherx/djangoPyrebaseDatabase<file_sep>/requirements.txt
aiofiles==0.5.0
aiohttp==3.7.4.post0
altgraph==0.17.2
appdirs==1.4.4
argon2-cffi==20.1.0
asgiref==3.2.10
async-generator==1.10
async-timeout==3.0.1
attrs==21.2.0
Automat==20.2.0
backcall==0.2.0
bcrypt==3.2.0
beautifulsoup4==4.9.1
bleach==3.2.1
bli... | fb98916343fc79e93e0fd58eb1e8f3c1e79f52a5 | [
"Python",
"Text"
] | 3 | Text | bobwatcherx/djangoPyrebaseDatabase | f0a5ec3caf030747615c8dc92c56bbb926e0ee20 | bb2802caf2f9970810e911cd1a27bffda29cdb4a |
refs/heads/master | <repo_name>JirkaVrbka/Katas<file_sep>/Tennis/TennisGame1.cs
namespace Tennis
{
class TennisGame1 : ITennisGame
{
private int _player1Score = 0;
private int _player2Score = 0;
private readonly string _player1Name;
private readonly string _player2Name;
public TennisGame1(s... | fc4e279bc613bc471422f967b2487ca35d058116 | [
"C#"
] | 2 | C# | JirkaVrbka/Katas | be0c361b8dc1515f3cab6df89d5e5aad3a922fa4 | fdfbc3d677f8dd8f2896581d6f0b6758e1e6afd9 |
refs/heads/master | <repo_name>james-knerr/SampleWebApp.API<file_sep>/SampleWebApp.API/Controllers/SampleController.cs
using Microsoft.ApplicationInsights;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using SampleWebApp.API.Helpers;
using SampleWebApp.API.Models;
using SampleWebApp.API.ViewModels;
using System;
usi... | 2fa65f6e2131e144aa7ef98c35981ae281864fe4 | [
"C#"
] | 9 | C# | james-knerr/SampleWebApp.API | 9c0eea31df63f30de1736b43718485f3329aa429 | 5d188e36eadf19e2c8fc3166bf0b033e11b19ae8 |
refs/heads/master | <repo_name>RadekKpc/Mownit<file_sep>/lab6/main.py
from numpy.linalg import solve
from numpy.linalg import lstsq
from math import fabs
from scipy.linalg import lu
import time
def wyswietl(mat):
for i in mat:
for j in i:
print(j, end=' ')
print()
with open('macierz.txt') as f:
w, h... | b24e7b337a74474a588153dd7d1f9635440cb748 | [
"Python"
] | 14 | Python | RadekKpc/Mownit | cb2c7f48fb49ca19353cbe36516006b23148a011 | 5ea41c3e108a4296d256c11e338269185a105b81 |
refs/heads/master | <file_sep>// Sudoku Generator
// Generates a sudoku board by random-morphing from an existing one
var utils = require('./utilities.js');
var sudoku_generator = {};
// Base board to start the randomization
sudoku_generator.baseBoard = [
[1, 2, 3, 4, 5, 6, 7, 8, 9],
[4, 5, 6, 7, 8, 9, 1, 2, 3],
[7, 8, 9, 1... | ab8b70d76440d677b4867f1743580d5336157c6d | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | winbythenose/sudoku | a004b241715503d8c32e7ca04c18b90b07a30639 | d22d8e377069360620ba46ad53bda92083e01e3a |
refs/heads/master | <file_sep>import requests
import custom_schedule
import time
import telepot
def send(bot):
chat_id = -1001367674629
bot.sendMessage(chat_id, "Started in FI-83! Time: " + (str(int(time.strftime("%H"))+3)+time.strftime(":%M")) + '\n Week: ' + str(int(time.strftime("%W")) % 2))
# bot.sendPhoto(chat_id, pho... | 0d5f1129a8f6cb9190112eb1929d6d4c6a660fd3 | [
"Python"
] | 3 | Python | Daniloday/TelegramBot | 32d87f685f38328787ab99e12f5452e467717ac7 | f10748b8f41d9691ac35dc9df07870610d3becc8 |
refs/heads/master | <repo_name>adanac/jplugin-test<file_sep>/src/main/java/org/adanac/jplugin/study/dbo/RespJson.java
package org.adanac.jplugin.study.dbo;
import java.io.Serializable;
public class RespJson implements Serializable {
/**
*
*/
private static final long serialVersionUID = -1952462140653769221L;
private String res... | b24907f9a0e27eec925037f3c397324c95b47de5 | [
"Java"
] | 6 | Java | adanac/jplugin-test | ebfe3dbf6f9289ed6224d5b3525c1cbfe6d8df8d | c0201543a0636c4c41d83d07149b641d6085599e |
refs/heads/master | <repo_name>burju/ApiFramework<file_sep>/src/test/java/com/hrms/runners/APIRunners.java
package com.hrms.runners;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions ( features = "src/test/resources/features",
... | 9cb3cdb00b4ae95779d8c39f4549a3d8a295a3b6 | [
"Java"
] | 2 | Java | burju/ApiFramework | a3327d825c579686778ce50296a9b41260391bbf | 60434f58aea5cde24f412c048ea66457905299d7 |
refs/heads/master | <repo_name>steven87vt/broadcast-channel-jest-fails-exit<file_sep>/ClientApp/components/__tests__/home-page.spec.js
import Vuex from 'vuex'
import VueRouter from 'vue-router'
import merge from 'lodash/merge'
import BroadcastChannel from 'broadcast-channel'
import { shallowMount, createLocalVue } from '@vue/test-utils'
... | 535b650a23e363096f4a10cb65cb27a1537db4a7 | [
"JavaScript"
] | 4 | JavaScript | steven87vt/broadcast-channel-jest-fails-exit | c5188e40731264f88f021f221ff37e8e3dc35976 | bb3db346bc8a4508d1db934421a224f9b48b5ffb |
refs/heads/master | <repo_name>jmerle/quantconnect-intellij-plugin<file_sep>/src/main/kotlin/com/jaspervanmerle/qcij/api/APIService.kt
package com.jaspervanmerle.qcij.api
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.jaspervanmerle.qcij.api.client.BacktestClient
import com.jaspervan... | c8f0c75d8302b27c474c736550d0f8952d0efb9b | [
"Markdown",
"Kotlin"
] | 45 | Kotlin | jmerle/quantconnect-intellij-plugin | deaa457a52dab13cab376f5fc1a66a6da982931d | 88a6b109108f5c66b1ff46caaff746cf26061f0a |
refs/heads/master | <file_sep>
//Program to execute controller's actions run
var fs = require('fs');
var s = fs.createReadStream('unsortedFile.txt',{encoding:'utf8'})
var sortedArrIndex = new Array(100)
for(i=0;i<sortedArrIndex.length;i++){
sortedArrIndex[i] = 0
}
s.on('data',function(chunk){
var line = chunk.split("\n")
lin... | 9a557711d4ec4035615d5b0ddd81c1a45641ab8f | [
"JavaScript",
"TypeScript"
] | 4 | JavaScript | qexon/demo_srijan | ab9e0fad4cc3fd69be645920ea00c89b41ea3d1f | d9e6aa5ba67f563572eb84590ae0176105ba2d5e |
refs/heads/main | <repo_name>wisc-hci-curriculum/react-native-demos-asyncstorage<file_sep>/async_storage_example.js
import React, { Component } from 'react'
import { StatusBar } from 'react-native'
import { AsyncStorage, Text, View, TextInput, StyleSheet, TouchableOpacity } from 'react-native'
// import { AsyncStorage } from '@react-nat... | 136c67c385dddd524dc036a4d87f2f4ca1815e1f | [
"JavaScript"
] | 2 | JavaScript | wisc-hci-curriculum/react-native-demos-asyncstorage | c7fa6bd7156ea58f622aac475e8a4d2208054279 | 826e83d79715da2bb339cff98f56cd20ba9dd7d9 |
refs/heads/master | <repo_name>Ondrik8/Echelon-Stealer-v5<file_sep>/Stealer/Jabber/Startjabbers.cs
///////////////////////////////////////////////////////
////Echelon Stealler, C# Malware Systems by MadСod ////
///////////////////Telegram: @madcod///////////////////
///////////////////////////////////////////////////////
using Syst... | efc958756f597cf35b23b87820fdd176c34373c9 | [
"Markdown",
"C#"
] | 55 | C# | Ondrik8/Echelon-Stealer-v5 | 7a70e189e977a4fcef7bac6084a7b1f1d5eeac8f | e3ae432611467e3eb7256a06ef53c96362afeb65 |
refs/heads/master | <file_sep>class Solution200 {
public int numIslands() {
char[][] grid={{'1','1','0','0','0'},{'1','1','0','0','0'},{'0','0','1','0','0'},{'0','0','0','1','1'}};
if (grid.length==0) return 0;
int m=grid.length;
int n=grid[0].length;
int res=0;
for (int i = 0; i < m; i+... | fe335aa522a35a342e1e45cf98aae82f36873ad2 | [
"Java"
] | 2 | Java | HY-Franklin/Leetcodes_java | 2c1105af452fb33a6aa13437a05679f32cd9f820 | 17a385f1bc710f4a7b1e1036c039dd7dc2f8910a |
refs/heads/master | <repo_name>nathan815/EnemyClouds<file_sep>/Cloud.js
import React from 'react';
import { Image, StyleSheet, Dimensions, Animated, Easing, TouchableWithoutFeedback } from 'react-native';
const deviceWidth = Dimensions.get('window').width;
const startX = deviceWidth;
const defaultY = 30;
const defaultSpeed = 5000;
class... | 8619164e380a167928e9b6c3a982ee8349b5c908 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | nathan815/EnemyClouds | 081577749aaa8d2c0096fd69222d5623e62d9419 | 9123f2ca9de10b6f0db118d9c994573ac7f4aa4c |
refs/heads/master | <repo_name>BilalAoun99/Hello-World<file_sep>/HelloW/PaintEstimator.java
package HelloW;
import java.util.Scanner;
public class PaintEstimator {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
double height=input.nextDouble();
double width=input.nextDouble()... | 5bd467ee7b41c4f6e2a105edec588310fbad519e | [
"Java"
] | 1 | Java | BilalAoun99/Hello-World | 1e566ae192eea9aa915b5babf3589140757b4cb2 | 73c1afd92978c79fa9e51ba17758dcfd8d4b7f96 |
refs/heads/master | <file_sep>//
// Login.swift
// GoodStudent
//
// Created by ufogxl on 16/11/7.
//
//
import Foundation
import PerfectLib
import PerfectHTTP
import MySQL
import ObjectMapper
fileprivate let container = ResponseContainer()
fileprivate let login_user = NSMutableDictionary()
fileprivate let errorContent = ErrorConten... | 580ce977a6ec47558f08c475f33ac07bc26ea488 | [
"Swift",
"SQL",
"Markdown"
] | 21 | Swift | ufogxl/MySQLTest | c7e732e2729d623468fda6ef21dfa480dc512899 | 25f0dc0b696a59566708512734c8f3e178154b33 |
refs/heads/master | <file_sep><?php
//1.POSTデータ取得
$name = $_POST["name"];
$lid = $_POST["lid"];
$lpw = $_POST["lpw"];
//2.DB接続します
include("funcs.php");
$pdo = abc_conn();
//3.データ登録SQL作成
$stmtp = $pdo->prepare("INSERT INTO gs_bm_user_table(name,lid,lpw)VALUES(:name,:lid,:lpw)");
$stmtp->bindValue(':name', $name, PDO::PARAM_ST... | a2b90bab152fb677a5bf4634d06f24674922cf15 | [
"SQL",
"PHP"
] | 16 | PHP | yujirokuramoto/gs_code | 2f4a86ea24d89e1ef09e5a7f3c0f75b6611f8117 | 1a67d03af7d4e8123b5935bdd50da02c4ff6521d |
refs/heads/master | <file_sep># Juzz-Tell
Juzz Tell, an application developed using C++ and GTK, predicts the perfect pool of candidates for the job. It semantically matches the candidates to the job by assigning different weights to various fields (eg. basic qualifications and skill set of a candidate).PDF, graph generation and multiple ... | db32a48dc7bc30646a5443c7e1d0f3980bbfa129 | [
"Markdown",
"C++"
] | 7 | Markdown | Shubha32/Juzz-Tell | 99de6dfa34248e850cc0aa71e75cd9b1ed0a3566 | e0602df637c79db519d0e275caec46c099fd98f6 |
refs/heads/main | <repo_name>Pratyush-Jain/sorting-visualizer<file_sep>/README.md
# sorting-visualizer
A python based sorting visualizer
<file_sep>/Visualizer.py
from tkinter import *
from tkinter import font
import tkinter.font as font
from tkinter import ttk
import random
import time
class Alg:
def bubbleSort(data):
... | dd6eceb9d32de19b3173cbf7c24de5c18972e1c8 | [
"Markdown",
"Python"
] | 2 | Markdown | Pratyush-Jain/sorting-visualizer | fc1dc46ce31428d367a4b31dd2308696005f4138 | db8eb8dcbda059afe533b6469e3d80ae2e39faf1 |
refs/heads/master | <repo_name>DTEGlobal/WatchdogServer<file_sep>/main.py
__author__ = 'Cesar'
#-------------------------------------------------------------------------------
# Name: main
# Purpose: This process run the Server and Killer processes of the Watchdog,
# it also reads the configuration parameters:
# ... | d7fb19803600a03cc8c59547b9984a7783258297 | [
"Python"
] | 3 | Python | DTEGlobal/WatchdogServer | 567e8634e0c63ca29bd248974e7c450a370b2f9f | acf31818e4e1fac07448a109e955376b971a53ca |
refs/heads/master | <file_sep><?php
/**
* 查询订单
* @category CUK-BSS
* @package order
* @copyright 2016 iredpure
* @author CJ <[<EMAIL>]>
* @version v1.0 [2016-03-08 19:29:50]
* @note 错误码使用范围 3030-3040 8030-8040
*/
/**
* 查询订单
* @param [type] $core [description]
* @return [type] [description]
*/
... | 1f9aa5f904ff63d80026a3ac0c167f159b5fccb0 | [
"Markdown",
"PHP"
] | 41 | PHP | chuanjinge/bss-service-order | d4b03c4b6e72da4311b9e6613e5ec68d4e4445d6 | 02d2f3d5b086412483216818af0c1fd686fd3bc8 |
refs/heads/main | <file_sep>import DefaultLayout from "../components/layouts/default-layout";
import Link from "next/link";
const TITLE = "Privacy Policy";
export default function PageNotFound() {
return (
<>
<DefaultLayout title={TITLE}>
<div className="container">
<h2 id="-privacy-policy-">
<... | 721203ec83951336d10dd14e1d2f6cf1c7452996 | [
"JavaScript",
"Markdown"
] | 29 | JavaScript | g-cappai/calcolafacile | 3017dd74d705d3414a8f6933adff788cb880eb58 | c4d149ab25672cbbe65aed183f751fe53153f9a8 |
refs/heads/master | <file_sep><?php
function cpm_get_privacy( $value ) {
return ($value == 0) ? __( 'Public', 'cpm' ) : __( 'Private', 'cpm' );
}
function cpm_tasks_filter( $tasks ) {
$response = array(
'completed' => array(),
'pending' => array()
);
if ( $tasks ) {
$response['pending'] = array_f... | 8294d401dd470a520d0764984b1951139916edc6 | [
"PHP"
] | 4 | PHP | samuelthan/wp-project-manager | eada6d99cefff0f8244b42fcbc356fe5681d056d | 39f217c903e15cfc635e727e37c87ce8b16e4492 |
refs/heads/master | <repo_name>jrodas2019129/ProyectoMediweb<file_sep>/src/controlador/usuario.controlador.js
'use strict';
var Usuario = require('../modelo/usuario.modelo')
var bcrypt = require('bcrypt-nodejs');
var jwt = require('../servicios/jwt')
function adminApp(req, res) {
var usuarioModel = Usuario();
usuarioModel.userna... | 57b98e69399b1c68a5c145399cc291a1ffcaff82 | [
"JavaScript"
] | 1 | JavaScript | jrodas2019129/ProyectoMediweb | 53f2d6867c85d22630bb49d47b3091c912150436 | 5d863cfdc339d46dbe4a58cc0131f0d1459b8abd |
refs/heads/master | <repo_name>neocpp89/project-euler<file_sep>/id120/id120.py
#!/usr/bin/env python
# If you expand the terms of (a-1)**n + (a+1)**2
# and use the binomial theorem,
# you can see that even n results in 2 + X*a**2 + XX*a**4,
# so even n means a remainder of 2 mod a**2.
# doing the same for odd n results in 2*a*n mod a**2.... | b4dfb4ca2085110aecbb6e8d3ca2e03c14b15282 | [
"Makefile",
"Python",
"C",
"C++",
"Shell"
] | 103 | Python | neocpp89/project-euler | f2ee16e55f0f7089badb6c3ee077e827a6ad2326 | 4dbf06dd60089406f7f3d34a3f05904bd5a61db2 |
refs/heads/master | <repo_name>bravegrape/dotfiles<file_sep>/.bashrc
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3.6
WORKON_HOME=~/Envs
source /usr/local/bin/virtualenvwrapper.sh
<file_sep>/.zshrc
## Add autocompletion for git
autoload -Uz compinit && compinit
# Load version control informatin
autoload -Uz vcs_info
precmd() {... | 7941e69eb53a2bd8fb39f3945fa113f96cd6a21b | [
"Shell"
] | 2 | Shell | bravegrape/dotfiles | 9f61eb4f1dd720666914c4fde872a4d46f5a4a72 | 94593e50fc2905ae15f845d7fce8cccfbd85bec9 |
refs/heads/master | <file_sep>package harvester
import "fmt"
const (
userDataHeader = `#cloud-config`
userDataAddQemuGuestAgent = `
package_update: true
packages:
- qemu-guest-agent
runcmd:
- [systemctl, enable, --now, qemu-guest-agent]`
userDataPasswordTemplate = `
user: %s
password: %s
chpasswd: { expire: False }
ssh_pwa... | 318b4e80181d7f3d6246230f571015007b4ba4ec | [
"Go Module",
"Go"
] | 5 | Go | maduhu/docker-machine-driver-harvester | f986bcd1ac13460fdbe40444e850867ec2f67d1c | 8c98408be4937506751f2c6a237b66eb387ef4af |
refs/heads/master | <repo_name>ecgom/RFclassifier<file_sep>/tree_builder.py
import numpy as np
from scipy.stats import mode
def entropy(Y):
unique, counts = np.unique(Y, return_counts=True)
s = 0.0
total = np.sum(counts)
for i, num_y in enumerate(counts):
probability_y = (num_y/total)
s += (probability_y)*... | 73a816650994104fa1e67b19802b5f2a83bbf0a7 | [
"Python"
] | 2 | Python | ecgom/RFclassifier | 6cfdcb8b59d0eb521aab23b44f31e9f7fb7a2e8a | fccc4bbbe1194152b2cfc264724f433a28c542b6 |
refs/heads/master | <repo_name>renato-sama/SistemaEnfermaria_ESofII<file_sep>/Dump20181212.sql
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: enfermariaif
-- ------------------------------------------------------
-- Server version 5.7.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_... | 4b6149c47a556a1332ef59b9936e30f45dfc1875 | [
"Java",
"SQL"
] | 5 | SQL | renato-sama/SistemaEnfermaria_ESofII | d42f6c4f143d89d8dfd7f3afa9d002a6b4df76ab | 3a648d533486469a65e986dfd780f2eb8f62576f |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using Enyim.Caching.Configuration;
using Enyim.Caching.Memcached;
namespace MemPowered
{
public class MemcachedConfigBuilder
{
IList<IPEndPoint> eps = new List<IPEndPoint>();
... | 348dd42a6b1d7d1eca382d1278da34a7774c0b08 | [
"Markdown",
"C#"
] | 15 | C# | lewisliang82/MemPowered | 2d1a31ee854073cda7106649d4f7eeb7fdca685d | d89e280df74ecb83990a4c46aebc197ca094a56a |
refs/heads/master | <repo_name>cormacio100/cormacsblog_with_upload<file_sep>/posts/views.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import HttpResponse
from django.shortcuts import render, get_object_or_404
from .models import Post
# Create your views here.
def index(request):
return render(... | d7981476cc9fa5b37d4818242a74699f7b4d29ef | [
"Python"
] | 2 | Python | cormacio100/cormacsblog_with_upload | 03bbd65adaf1e60f19dc60cf2752fc41b9d36659 | 2c96706d2158d550b2862ae8929b8b4904140b53 |
refs/heads/master | <file_sep>angular.module('enejApp')
.config(function($routeProvider) {
$routeProvider.when('/workshops', {
templateUrl: 'workshops/list.html',
controller: 'workshopListController',
controllerAs: 'ctrl'
}).when('/workshops/add', {
templateUrl: 'workshops/form.html',
controller: 'workshopFormController',
c... | f532f4ca612b469471d1e3c9be5328158f1000ef | [
"JavaScript"
] | 4 | JavaScript | lubehrens/sistema-inscricao | 41a7826be2ba80048211ccbf3fa9932ec6f5b075 | e495dca651a2739df44d98533f7afc5236b5ee06 |
refs/heads/master | <repo_name>putaolabs/collie<file_sep>/examples/socket/http/HttpServer/ab.sh
declare -i i=10
until ((i>100))
do
sleep 1
ab -c 2000 -n 10000 http://127.0.0.1:8081/
let ++i
echo $i;
done
echo "over"
<file_sep>/README.md
[](https://travis-ci.... | b88979a755947514d189ef31164d1fb33f0b4ee9 | [
"Markdown",
"Shell"
] | 2 | Shell | putaolabs/collie | f1e58e38a2c36366766e4778d3ea655ebac6962c | e78f1a96162aa0fd3accaa0f1cb3d81e1b7a532f |
refs/heads/main | <repo_name>Abbaskhurram255/The-Constructor<file_sep>/scripts/.history/gamestates/level6_20201231133730.js
let level6State = {
create: function() {
//Adding sprites
const background = game.add.sprite(0, 0, 'mainMenuBg');
background.height = this.game.height;
background.width = this.g... | b4aa96c6958aba28813fc862bfc158f3a3335bbd | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Abbaskhurram255/The-Constructor | 085f9c63bb1d209ca049fd95eb4c130fc98953c2 | 2ba3f058bcf8edc906e78d1d7f1060b71eee7065 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
docker build -t athlinks/confluent-zookeeper . && \
echo "SUCCESS!"
<file_sep>#!/bin/bash
mkdir -p /tmp/zookeeper
echo ${MYID:-1} > /tmp/zookeeper/myid
MYIP="$(ip -o -4 addr list eth0 | grep global | awk '{print $4}' | cut -d/ -f1)"
echo "tickTime=2000" >> /opt/confluent/etc/kafka/zoo... | 289936888a8cf8c841d94b60c531569b540223c3 | [
"Markdown",
"Shell"
] | 3 | Shell | athlinks/docker-confluent-zookeeper | 30c2cce53982fcc3e649b2a48f354b8d9fd6a951 | 2fe95a1a5086208d97ec9ad06288095edc63a634 |
refs/heads/master | <file_sep>describe('RNNWriter', () => {
var rnnWriter;
beforeEach(() => {
// create new RNNWriter instance for every test
rnnWriter = require('../lib/rnn-writer');
});
describe('config', () => {
it('should set the config for the class', () => {
expect(rnnWriter.config.numberOfSuggestionsPerR... | 3048b3a14361bf664bda98a62315dfc6435f83d8 | [
"JavaScript"
] | 1 | JavaScript | jonathan-ostrander/rnn-writer | 73495e9000a7206b33bbb452331bf014f5ef231c | 52377b5dd08f9efc0794b025a670316d0879b28c |
refs/heads/master | <repo_name>luke-gru/dotfiles<file_sep>/.bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
case $- in *i*) . ~/.bashrc;; esac
<file_sep>/setup.sh
#!/bin/bash
if [ -e $HOME/.vimrc ]
then
rm $HOME/.vimrc
fi
if [ -e $HOME... | 65d917790e8b05945f560d0c81f1611760272f53 | [
"Ruby",
"Shell"
] | 4 | Shell | luke-gru/dotfiles | 01cfc60759b9afefd1efd85aa6437cda0e124c67 | 0dd8c26e84769c61d7c6182e3a74b88384409668 |
refs/heads/master | <repo_name>dmonteirosouza/nestjs-api<file_sep>/.env.example
DB_CONNECTION=mysql
DB_HOST=db
DB_USERNAME=root
DB_PASSWORD=<PASSWORD>
DB_DATABASE=fin
DB_PORT=3306<file_sep>/src/accounts/accounts.service.ts
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/sequelize';
import { CreateAcc... | 0119482d69ad75aeea8f212241d012ba9e0d18d1 | [
"TypeScript",
"Shell"
] | 2 | Shell | dmonteirosouza/nestjs-api | 14277c69a08a614b375c8801d08cedd2018c383a | 5fdb3f6f12d4c5f8826257234c8ba74c38d24c62 |
refs/heads/master | <repo_name>crhnine/CSC240X_Week_2<file_sep>/WhippetBus/WhippetBus/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WhippetBus
{
pu... | 1d6ad466e765c2f4aaab950d4d56984a6317ee36 | [
"C#"
] | 1 | C# | crhnine/CSC240X_Week_2 | 7928829e552e5055e504f215fc3d16adf81ab57b | 0644afcafbe7039c478095146ce5d04bc2875eff |
refs/heads/master | <file_sep>import requests
filename = "changuito.jpg"
files = {"my_file": (filename, open(filename, "rb"))}
response = requests.post(
"http://127.0.0.1:8000/file",
files=files,
)
print(response.json())
<file_sep>from fastapi import FastAPI, File, UploadFile, Form
from PIL import Image
from tensorflow.keras.app... | 61b480cc0709e2e784a8b1c8afb791ab07cebc2d | [
"Python"
] | 2 | Python | MJVNOR/ResNet50Api | 48ab26e4227f58c8d20f25837f18a599651d35b1 | 926139c599f49f9a3c91d971ea1ac76d5785c1ea |
refs/heads/master | <repo_name>Freesmil/BandsProject<file_sep>/band_v2/BandsProject/src/main/java/cz/muni/fi/pv168/bandsproject/BandManagerImpl.java
package cz.muni.fi.pv168.bandsproject;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
import javax.sql.DataSource;
... | 937cf21539162386107184294490cf611907e20e | [
"Java"
] | 1 | Java | Freesmil/BandsProject | 84cec40344ca3736df82991ebfc90ca5c804a9b9 | cf82315832ba44ac349cc78d7889bc5bd53298e8 |
refs/heads/main | <repo_name>DuaneDeane/organicstore_109<file_sep>/src/components/productincart/productInCart.jsx
import React, { Component } from 'react';
import "./productInCart.css";
import {removeProductFromCart} from '../../store/actions/actions';
import { connect } from 'react-redux';
class ProductInCart extends Component {
s... | 09b12683d3a42d99c81f1bbaf446e223e14b3b2b | [
"JavaScript"
] | 2 | JavaScript | DuaneDeane/organicstore_109 | 669cd29e5fae2306b035d4fd8195a7db83e15a50 | 182655e706795e0badd03cbe6f2c8382ebd331a1 |
refs/heads/master | <file_sep># Default Menu CSS 3
CSS3 based menu;
Responsive;
Sticky Header;
<a href="http://julienlazare.com/defaultMenuCSS3">View demo</a>
Made with Hover.css, Animate.css, Font-Awesome and jQuery.
<NAME>, 2016
<file_sep>
(function($){
"use strict";
// SHOW/HIDE MOBILE MENU //
function show_hide_mobile_menu() ... | 45fc94a921990a5d08a96f49d9e500a24a2b8d48 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | julienlazare/defaultMenuCSS3 | 1d38d78e8ba42f1d12b3a4596d46acbd08237030 | 0682517a8051c42361a39c2864c5453b87fd6396 |
refs/heads/master | <repo_name>keweishang/hackerrank<file_sep>/Algorithms/FibModified.py
# Enter your code here. Read input from STDIN. Print output to STDOUT
f0, f1, n = (int(i) for i in raw_input().strip().split())
result_dict = {}
def fib(n):
if n == 0:
return f0
if n == 1:
return f1
if n in result_dict:
... | 4d60439bcba1c7f9bf9880b1030a1c4092b0b87c | [
"Python"
] | 6 | Python | keweishang/hackerrank | 45aa82b39794b12fb2edbf7673e5dc608d5b3916 | f3f7607db69081fcc74c09d494f5a5dceeff9c22 |
refs/heads/master | <file_sep>import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { DatePickerComponent } from './date-picker/date-p... | 9e9d40b00cce055dff1833780d505b1a85a10d78 | [
"TypeScript"
] | 8 | TypeScript | JeffrinManovaPrabahar/AngularJS | eeec2814417a5c434cc7b7b4df41ce6d0cd97cde | 42b0a4f23d69c9e1e4a6a3e41ffaa47255981ebb |
refs/heads/master | <file_sep>package com.example.demo.mapper;
import com.example.demo.entity.Word;
import com.example.demo.entity.WordExample;
import java.util.List;
public interface WordMapper {
long countByExample(WordExample example);
int deleteByPrimaryKey(Integer id);
int insert(Word record);
int in... | f9b10858bf9669587bb5f4cb02e416c853e57167 | [
"JavaScript",
"Java",
"Markdown",
"INI"
] | 25 | Java | 1872800877/mine | f360ad7b3c130dcadd84d928f3db3e0e84b08273 | ddb42ff32466bd6dd60d3d459102a4b2be2afc6d |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace MVCService.Models
{
public class Product
{
public Product(string prodName,decimal pri,string desc)
{
ProductName = prodName;
Price = pri;
Description = de... | c579026110feae7bd3d2dc1631d59b820eed5e79 | [
"C#"
] | 5 | C# | alochana9/MyNewRepository | e028d71d5bdbcd4b0f7e17e3c95ba5125efa3fda | 3e415cd6e087c021d96f129c99a884c0b6d53cde |
refs/heads/master | <repo_name>00120717/PrimerParcialPOO<file_sep>/src/primerparcialpoo/Reservacion.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 primerparcialpoo;
/**
*
* @aut... | 7440bbf6b0c4876b999b295b7c6883d515de7fa2 | [
"Java"
] | 6 | Java | 00120717/PrimerParcialPOO | 7e53f512b6672aa6361eb46fc8379ec42432d2ee | 2d6790bf53ac9457f461ced7537e11db77391f2e |
refs/heads/master | <file_sep># Make your shoe class here!
class Shoe
attr_accessor :color, :size, :material, :condition
def initialize(brand)
@brand = brand
end
def cobble
puts "shoe has been repaired"
condition = "new"
end
end
adidas = Shoe.new("Adidas")
adidas.brand
nike = Show.new("Nike") | acb9c620bb3ef1faba04de2a04203d95ffb6816f | [
"Ruby"
] | 1 | Ruby | EmilAndreasyan/oo-basics-online-web-pt-090819 | 8d633ea73f20109ad343a5226fa8d5173a1e9768 | 74a4164ee443f83f01aaf66a6346563b0ec8ad0c |
refs/heads/master | <repo_name>DavidJMora/projects<file_sep>/node_e-commerce/routes/product/controllers/productController.js
let Product = require('../models/Product')
let paginate = require('../utils/pagination');
module.exports = {
getAllProducts: (params) => {
return new Promise((resolve, reject) => {
Product.f... | 457b6d74219fdad09e94b6fab928bf72e5a5fc3d | [
"JavaScript"
] | 7 | JavaScript | DavidJMora/projects | c2ab638919ae874062c80c8ca06149f74cfcccfe | 76535ab70c6b41008812e37f8b284916df77cbc0 |
refs/heads/master | <file_sep>print("HEllo world")
print('does this work?')
print('yes it is working ')
<file_sep>list=[1,2,3,4,5,6]
i=6
for i in list:
print(i) | eb1f28567a38ee52b915a6de9b1031240c4e2d45 | [
"Python"
] | 2 | Python | projectsPrem/Practice | 8ab8121acdfd883009763023de9d3937a3fd5b30 | 448db4b6d9598f4263ff47dec3198c4f87b3cf34 |
refs/heads/master | <file_sep>class BillsController < ApplicationController
before_action :all_bills, only: [:index, :create, :update, :destroy]
before_action :set_bill, only: [:show, :edit, :update, :destroy]
before_action :authenticate_user!
def index
end
def show
end
def new
@bill = current_user.bills.new
end
... | b1a4b10520b466380f94e8300284ffa2a4a79b54 | [
"Ruby"
] | 3 | Ruby | InkBuddha/MyHomeBudget | 42071415274d651cba2e94a6e0e67191abc978ae | 8e87c676ee2633c092ca54d1257169facde0e946 |
refs/heads/master | <repo_name>MasaCode/MasaBlog<file_sep>/routes/login.js
'use strict';
let express = require('express');
let router = express.Router();
let co = require('co');
let config = require('../docs/environments.js');
let userModel = require('../models/userModel.js');
let passport = require('passport');
let LocalStrategy = requi... | a07b70335ebaaca2ad43ee9e65d0b36bccde4bc0 | [
"JavaScript",
"SQL",
"YAML",
"Markdown"
] | 27 | JavaScript | MasaCode/MasaBlog | 2dfe97b26b74bb88def9fcd2adfb0d5d5abd02ea | bcbb9a3eec721fd0e58094b2ff3e1c403c257903 |
refs/heads/master | <repo_name>morristech/scripts-5<file_sep>/find_pwnage.py
#!/usr/bin/env python3
# Find password pwnage. Uses Troy Hunt’s Pwned Passwords service.
# Input format: CSV file with 'Title' and 'Password' columns.
# (Perfect for KeePassXC exports, for example)
# Copyright © 2019, <NAME>. All rights reserved.
# License: 3-cla... | 6a9c27c0c8eb11c12bea01fd764f8846c008f82a | [
"Python"
] | 1 | Python | morristech/scripts-5 | 3f263621f1321f2dcbf00f6eff5b5e2af97f7a6a | 9a53d5a3b997696045e795546c3c261d48f983f1 |
refs/heads/master | <repo_name>Julie789/Python-Summer-06<file_sep>/README.md
# Practical Scripting with Python
## UNO Summer Techademy
### Cryptography
Today we will be looking at Cryptography which is the art of making messages unreadable except by people who know the method of decrypting the secret message. There are many types of ciph... | ffb7986fcd80952a987e0731aa697783e93d0be5 | [
"Markdown",
"Python"
] | 2 | Markdown | Julie789/Python-Summer-06 | 7ff0c3a7c9d51b04c707eddd4ce6a90a237838df | a5f3110c5a862cc74fa725735cbcc978acadc153 |
refs/heads/master | <repo_name>DaryaKalinina/ToDoListConsoleApp<file_sep>/ToDoListConsoleApp/Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace ToDoListConsoleApp
{
class Program
{
static void Main(string[] args)
{
string fileName = "MyT... | a3b512132ee3585d689b9cd37893d2aa682acc05 | [
"C#"
] | 2 | C# | DaryaKalinina/ToDoListConsoleApp | e7747545e670b89cda94dba86fe0cfa594dd33ef | 3eed6506467af352010d5f3c04b724276f22f848 |
refs/heads/master | <repo_name>KitsenkoDmitry/VTWP<file_sep>/html/src/js/partials/btn_up.js
const $upBtn = $('.js-btn-up');
if ($upBtn.length) {
$(document).on('click', '.js-btn-up', () => {
$('html, body').animate({
scrollTop: 0,
});
});
$(window).on('scroll', () => {
if ($(window).width(... | d24707a522563b2ff934c6fbb8412c0a71510a05 | [
"JavaScript",
"HTML",
"Markdown"
] | 12 | JavaScript | KitsenkoDmitry/VTWP | 35f0e8c06c2d77761ccef2816c630760f4836839 | 4969ce5070f9886bb542d247fc41467c010a419b |
refs/heads/master | <file_sep>#include "PlayScene.h"
#include <QDebug>
#include <QPainter>
#include <QMenuBar>
#include "MyPushButton.h"
#include <QTimer>
#include <QLabel>
#include "MyCoin.h"
#include "dataconfig.h"
#include <QPropertyAnimation>
#include <QSound>
#include <iostream>
//PlayScene::PlayScene(QWidget *parent) : QMainWindow(... | da8894d107f38ace0dc9013709ee6d7fc619b6e1 | [
"C++"
] | 5 | C++ | hsuelok/CoinFlic_Qt_SC | aa820f9f8f042d492f6077c13a6b2044e3c5682d | de2c8b1d3e5a0ec7728b7206ee3e27e1ad245752 |
refs/heads/master | <repo_name>SuperheroMVP/react_js_user_manager<file_sep>/src/components/App.js
import React, { Component } from 'react';
import './../App.css';
import Header from './Header';
import SearchForm from './SearchForm';
import DataTable from './DataTable';
import AddUser from './AddUser';
import DataUser from './data.json';
... | 3460420e180cfb59048543146ebf1d52cf5eb8e8 | [
"JavaScript"
] | 6 | JavaScript | SuperheroMVP/react_js_user_manager | e74e1e19f6e5f256314375edf7d9d37eb1deac58 | 2ff67c1099bb2ad527e885a7c050ad218ded0134 |
refs/heads/master | <file_sep>#Program:Pythag
import math#no-ti
from math import sqrt #no-ti
# The commas will split the print statement on the calculator.
print "This is the", "Pythagoras", "Theorem"
a=float(raw_input("Type a ="))
b=float(raw_input("Type b ="))
c=sqrt((a*a)+(b*b))
print "c =",c
<file_sep>#Program:GUESS
#A small guess... | 02334433b0fd297eec4ea97926dd440e574997eb | [
"Python"
] | 2 | Python | eliLitwack/PyCalc-TI | 20a23bf077cd15ea3a20e9489754f5d03c856c37 | aa168d32c3bbf5a836180fca7fc86ca637821ea1 |
refs/heads/main | <file_sep>package inheritanceDemo;
public class Main {
public static void main(String[] args) {
BaseCreditManager[] baseCreditManager = new BaseCreditManager[] {new AgricultureCreditManager(), new TeacherCreditManager(), new CredirUI()};
for (BaseCreditManager d: baseCreditManager ) {
System.out.println( ... | 0fe4c9efe2da44c85a79db167adaee3567c7956a | [
"Java",
"SQL"
] | 36 | Java | serkansonmez06/JavaExercise | 622c38454bae0653b087c2d6f78343170ce2c322 | 1105ceced2e2e3c359085af57b0ceca5e239460a |
refs/heads/master | <repo_name>SimonJHunter/PhysR<file_sep>/mysql/SELECT_Workout.sql
SELECT workouts.Name, clients.Firstname, clients.Lastname, exercises.Name, exercises.Repetitions, exercises.Sets
FROM physr.workouts
INNER JOIN physr.clients ON physr.workouts.Client_ID = physr.clients.ID
INNER JOIN physr.exercises ON physr.workouts.Excer... | 3ef1e03fbfbecdee75a00507502bebc1308b64cc | [
"Java",
"SQL"
] | 4 | SQL | SimonJHunter/PhysR | 9234408ccf4085d048cd85623d0570a3c27db209 | 4880aad4279c831c5e37ba3ec28698436261b84e |
refs/heads/master | <repo_name>Fangtsailo/D3-project<file_sep>/src/router/index.js
import Vue from 'vue'
import Router from 'vue-router'
import MainPage from '@/views/MainPage'
import sections from './sections/exercises'
import demos from './sections/demos'
Vue.use(Router)
export default new Router({
routes: [{
path: '/',
... | a458d189d4fd3f1e8c85dc5fc56277695384e55d | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Fangtsailo/D3-project | 0720b9589ddc342e0aac6e5a2093b3053fbc699f | 9499793ab8da0d12f3c9e4f30c968921280bf9d2 |
refs/heads/master | <repo_name>ess/ogun<file_sep>/mock/runner.go
package mock
import (
"fmt"
"strings"
"github.com/ess/ogun/pkg/ogun"
)
type Runner struct {
goodPrefixes []string
}
func NewRunner() *Runner {
return &Runner{}
}
func (runner *Runner) Execute(command string, vars []ogun.Variable) ([]byte, error) {
if strings.HasSu... | 639338fc28b350c264b16a6bc745b985efdf69ea | [
"Markdown",
"Go"
] | 32 | Go | ess/ogun | dfd2a31aa6b9d89926e5ad7cb5aed03439b79b4c | 82a06ca376b2ae20fb9600d9215c6d991996828e |
refs/heads/master | <file_sep># lds-cache-visualization-extension
Chrome DevTools extension for data visualization of LDS cache.
Quip doc: https://salesforce.quip.com/HEQbAExbvaXZ
Extension outline:
- manifest.json file: metadata
- devtools.js: on open, triggers `content.js`
- content.js: sends message to LDS page, receives data respons... | 551be27e4986e75314093899c6cb8710267a8943 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | jsu20/lds-cache-visualization-extension | 0d90316ed6d3cc721cd3f1208165264121f2a093 | 5e0b8a77c2ebfad437f3b8b6dd2b44504a071699 |
refs/heads/master | <file_sep>#!/usr/bin/env ruby
# Add lib/ folder to end of the Ruby library search path so we can simply require them like gems
$:.push File.join(File.dirname(__FILE__),'lib')
require 'rubygems'
require 'bundler/setup'
require 'purdy-print'
require 'twitter-sentiment'
include PurdyPrint # colorful stylized console log l... | dd6f06c94199ade4f57ca561f145109a73884f8b | [
"Markdown",
"Ruby"
] | 18 | Ruby | SIGMusic/twitter-sentiment | 25b6d8923a260976d56ed91c4d4c0a599c1f103f | 222375bd003747256ff7c71897cfd1fd4589a95f |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using MPI;
using Environment = MPI.Environment;
namespace Connect4
{
class Program
{
private const int MaxSearchLevel = 8;
private static int _worldSize;
private static int _myId;
... | b77ba64112e99847b1454e8b27246fd521e5b2a7 | [
"Markdown",
"C#"
] | 3 | C# | DorijanH/Connect4 | 9a601d2bd7fae302bb52399dbc1ae564a5bcfb26 | 873c08f3dedaa60e4772a5b42214d85555eb0593 |
refs/heads/master | <file_sep>#include<stdio.h>
#include<stdlib.h>
#include<termios.h>
#include<pthread.h>
#include<unistd.h>
#include<sys/ipc.h>
#include<sys/shm.h>
int *shop_food_stock;
pthread_t tid[2];
static struct termios old, new;
/* Initialize new terminal i/o settings */
void initTermios(int echo)
{
tcgetattr(0, &old); /* gra... | d20d47530e53f8aa0a28ebd57334c8c2678e20d8 | [
"Markdown",
"C"
] | 7 | C | xhazimix/SoalShift_modul3_B07 | 5f96e46e4a218b198e4215e85061a46575b12b49 | 1ecb27485ab5399e2f48f32e1729e4615129d5f5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.