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 | <file_sep><?php
/* @var $this EventsController */
/* @var $model Events */
$this->breadcrumbs=array(
'Events'=>array('index'),
$model->name,
);
//print_r($_GET);
$id = $_GET['id'];
//print_r($id);
$this->menu=array(
// array('label'=>'List Events', 'url'=>array('index')),
// array('label'=>'Create Events', 'url'=>ar... | 8a539b8330d4756679c69acd3410fb0ae5b5c833 | [
"PHP",
"INI"
] | 10 | PHP | farzantesla/wedapp | 9c9f58683679f222bc403b76492e056f6aea3347 | 1184ba84addcca4b93a689c57637b8ee2a8d87f0 |
refs/heads/master | <file_sep>
<!-- Footer start, empty line on top needed -->
Thank you for reading **The iOS Times**, if you have comments, complaints, suggestions, or any other feedback please tweet me at [@_theiostimes](https://twitter.com/_theiostimes).
_Have a happy week, and don't forget to contriubte to open source projects._
<... | 67571a130ca18355c3a49ac41e471497f7609590 | [
"Markdown",
"Ruby"
] | 4 | Markdown | mokacoding/the-ios-times-newsletter | d73b12232fb86fe281508dbce29e1be10c4ecd58 | ed2792f061ded29396bcc34bef80faf73aaba1a2 |
refs/heads/master | <file_sep>require 'spec_helper'
RSpec.describe ArticlesController, type: :controller do
describe 'GET #index' do
it 'should respond with success and render template' do
get :index
expect(response).to be_success
expect(response).to render_template(:index)
end
end
describe 'GET #new' do
... | e901b01de74ce1b409fb6c7c8983f2b88224041b | [
"RDoc",
"Ruby"
] | 2 | Ruby | Ramon-D/Blog | d2ae197126d3af430439041b1298df2e5a5e8f8e | 995532b96616b7dc331a3a8f8c4a6b36abea1b7f |
refs/heads/master | <file_sep>##Adding a new file in NewBranch
print("NewBranch, how to learn GitHub")
| e3c81959485095033a0fbee717db0c8ad776204b | [
"Python"
] | 1 | Python | VRO27/IBM-DS | c71ee1ff53373ff00a625e7d551b20d4bcfb22cb | 10af795bcd069d2197104f5794e2528fcfa53104 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Web;
namespace QuestionsAPI.Models.AuxiliarClasses
{
public class EmailSender
{
/// <summary>
/// This function is responsable to send all the notification emails to the users
... | 00098eddad538a7b5744d398b3e84e6f2028081c | [
"Markdown",
"C#"
] | 11 | C# | DavidMealha/QuestionsAPI | 1f197c966d4624b4c92b753ed83b4cd16584cd6f | aa93a9b1e92e385177ea74d691dbf8a005641aa7 |
refs/heads/master | <repo_name>jxdabc/XUIWeb<file_sep>/build.php
<?php
/*
authors:
<EMAIL>
*/
$target = isset($argv[1]) ? $argv[1] : 'all';
// make sure we are working here.
$PWD = dirname(__FILE__);
chdir($PWD);
switch ($target) {
default:
case 'css':
// build css.
echo "\n";
echo "Build ... | 98bbf13d3c327de4507415abdd996a744183da18 | [
"Markdown",
"PHP"
] | 2 | PHP | jxdabc/XUIWeb | 4b5febc0c2b8d0194a5c88115e86b93179845351 | ba5e217ea4e8f0ba0b5c9f74f6f367e5ecb22677 |
refs/heads/main | <repo_name>KosiOju/FantasyFootballML<file_sep>/packages/lasso_regression_model/lasso_regression_model/processing/preprocessors.py
import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin #REMEMBER
from sklearn.preprocessing import OrdinalEncoder
from lasso_regression_model.proce... | 745ae07f0101620647698b96644a545712d183a8 | [
"Markdown",
"Python",
"Text"
] | 23 | Python | KosiOju/FantasyFootballML | b15f70e020889ebfe6cc984dd57459595ea85150 | 810f867dcc4a96bae5bf1966071bb95221a0ca71 |
refs/heads/master | <repo_name>Sarathkrishnan/ktu-cgpa-calculator<file_sep>/script.js
var data = [
cs = [
[
9,
sub1 = {
crdt: 4,
sub_name: "Calculus",
},
sub2 = {
crdt: 4,
sub_name: "Physics or Chemistry",
... | d207cd4c2f03243689fd1434c53a54c92fb94d02 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Sarathkrishnan/ktu-cgpa-calculator | 410506a8b30eb1178d97b622f70de5e37d93f3db | befea4480aec425c248d4d3b4f10c4545ac9ec2d |
refs/heads/main | <file_sep>package org.suai.java.client;
import java.net.*;
import javax.swing.*;
import java.awt.*;
import java.io.*;
import java.awt.image.*;
import java.awt.event.*;
import java.util.Random;
public class Client {
boolean isConnected = false;
String serverHost = null;
int serverPort;
Socket clientSoc... | 7c4e9c35ff4fa59dd39d8ca7e32eedea53984326 | [
"Java"
] | 1 | Java | Elisaveta867/Paint | df4792d739179e283977cabb9e4db6385f758d62 | f9cc501be86386aefba8c7e9c64a8f3b8415061a |
refs/heads/master | <repo_name>mit24/accordionMIT<file_sep>/README.md
jQuery plugin accordionMIT
==========
RULES AND LICENSE
Develope by PHP-developer <NAME> from Workshop of IT (site http://mit24.ru).
The LLC Web have all rights on this plugin. The plugin is available for free use on an "as is".
The developer is not responsible for an... | 6234bad3c58cd1e6ea73d8ee3a11a3049db42a3e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | mit24/accordionMIT | b674c413a73bc4bfb1ba1e70bc19965c8bc2b6ad | 7f56deefd531caf10b7412710ac8f313288218f3 |
refs/heads/master | <repo_name>PaloMraz/ProductionDataMonitoring<file_sep>/PdmWebClient/Client/UptimeMachine.ts
/// <reference path="../scripts/typings/jquery/jquery.d.ts" />
/// <reference path="../scripts/typings/flot/jquery.flot.d.ts" />
module App {
export class UptimeMachineService {
private _setIntervalHandle: number;
p... | 79866891fb5abf1f8205062115cc68b18802e476 | [
"C#",
"TypeScript"
] | 8 | TypeScript | PaloMraz/ProductionDataMonitoring | ded9b2c9ea8ca5179e7927d3d84223d7296c5275 | 6216aafd7648768cffde1393a6eb7a1ccd4434c0 |
refs/heads/master | <repo_name>wizeowl/graphql-bootcamp<file_sep>/data/createTestData.js
import { validateAndHashPassword } from '../src/utils/validateAndHashPassword';
import { seedComments, seedPosts, seedUsers } from './seeds';
import { prisma } from '../src/prisma';
const createTestData = async () => {
const start = new Date();
c... | 7322e0c6cc502b62044a2d1f2c7cde0a3755ebe3 | [
"JavaScript"
] | 4 | JavaScript | wizeowl/graphql-bootcamp | e0b3675762bb4693778b7fa91aa119baf93bad47 | c2971f01e6d64c6941b7eabbd71e670f351d0abe |
refs/heads/master | <file_sep>#GeoJSON Example
AngularJS / Express / mongoDB / NodeJS example of using GeoJSON to store and query location data.
For more information (and screen shots), see [Fun with mongoDB and GeoJSON](http://wsmoak.net/2014/11/24/fun-with-mongodb-and-geojson.html) on [wsmoak.net](http://wsmoak.net).
```sh
npm instal... | bab7941de85f1a5183e80282dabd3086c051f62b | [
"Markdown",
"JavaScript"
] | 3 | Markdown | wsmoak/geojson-example | 1b56f919ba37b061f1284e522ae9c03d6867df99 | 2ee92579520e19fd330c1b84dffc134de46c9040 |
refs/heads/master | <repo_name>dtlisir/stage2<file_sep>/get_dfinfo/views.py
# -*- coding: utf-8 -*-
from django.shortcuts import render
from django.http import JsonResponse
from blueking.component.shortcuts import get_client_by_request
def home(request):
"""
Home Page
"""
return render(request, 'get_dfinfo/home.html')
... | efedce172fe190409b999a7b53ba0edb9e249b98 | [
"Python"
] | 8 | Python | dtlisir/stage2 | d8db349cf569392ef93a89ac3e9e57dd59844256 | 3adbe2093d2ab24adc21bfc50512dae61100f4c7 |
refs/heads/master | <repo_name>charles-menard/brainf-ck-interpreter<file_sep>/brainfuckint/main.java
package brainfuckint;
import java.io.Console;
import java.util.Scanner;
public class main {
public static void main(String[] args) {
// TODO Auto-generated method stub
BrainfuckInterpreter y = new BrainfuckInterpreter();
... | 2cf06e0fcb37655c8d98b10d2949b43dda6c7358 | [
"Markdown",
"Java"
] | 3 | Java | charles-menard/brainf-ck-interpreter | d36543a9ff157fe1dca5072af3a6cfbbd0033113 | 6be15067c9c00d17563d70d975507f9b2b5092e5 |
refs/heads/master | <file_sep>using Calendario.View;
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 Calendario
{
public partial class frmLogin : Form
{
... | 3d179593bcd68935e2ed3c47da0a6082f8e5f9e8 | [
"Markdown",
"C#"
] | 2 | C# | La-Scalea/Desafio_TokenLab | dddb930b3edde478e83424239e33c47418e9db18 | 1984758a71d96fb72b3b22af7ef9749cab0a3358 |
refs/heads/master | <repo_name>ITyuri/MyProject<file_sep>/app/controllers/organizers_controller.rb
class OrganizersController < ApplicationController
def index
@organizers = Organizer.paginate(:page => params[:page], :per_page => 6).order(:name)
end
def show
@organizer = Organizer.find(params[:id])
@events = @organizer.events... | 1148946a6ed337be41759c1c933c4c6ac1183b65 | [
"Ruby"
] | 9 | Ruby | ITyuri/MyProject | 80aecbea9de22442e965c66452c45320aa278f9f | 4149d14b27be5c72489e43462b1c36f74cfed2db |
refs/heads/master | <repo_name>ShawnyTan/TREK<file_sep>/scripts/TREK_gRNAassign.R
print("============================================================")
print("Description:")
print("TREK analysis: assigning gRNA labels to cells")
print("Compulsory Arguments:")
print("--workDir= full working directory where results will be generated")
print... | 29016da48f86500ab775eb8f1d2d6fbf0e74e8d2 | [
"R"
] | 4 | R | ShawnyTan/TREK | ac77aa4e5af62c315a819e37ecc3a36e3915065f | b1423103e3b4bd9a1b9cbc4e3f56cd90a99a3562 |
HEAD | <repo_name>Thecrazyskull/device_htc_a51ul<file_sep>/BoardConfig.mk
# Copyright (C) 2016 Paranoid Android
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/license... | 5553c269debb9407167dfde452f4e9edad019406 | [
"C",
"Makefile",
"Shell"
] | 3 | Makefile | Thecrazyskull/device_htc_a51ul | c3d94d56bde08acc407adaa40e3c4e42d2985d78 | 1ef560d3c7f636678d92d5ce28d9a6e93e7bc150 |
refs/heads/master | <repo_name>default-settings/webpush-php<file_sep>/src/DefaultSettings/WebpushPHP/WebpushPHP.php
<?php
namespace DefaultSettings\WebpushPHP;
use \Curl\Curl;
class WebpushPHPException extends \Exception { }
class WebpushPHP {
static $token = null, $secret = null;
static $apipath = "https://webpush.viaduct.io/vwp/ap... | 5b296f5d3e33cd1ac5f085ffd299103855254453 | [
"Markdown",
"PHP"
] | 2 | PHP | default-settings/webpush-php | cee9894737fa93a2e80ef72031261392a300fdb0 | 1ad30c8664286bd7a72b46ca223e388e82097cfd |
refs/heads/master | <repo_name>hwangtaewon/JavaDesignPattern<file_sep>/README.md
# JavaDesignPattern
This is project to study design pattern of java.
<file_sep>/JavaDesignPattern/src/ch01/iteratorPattern/BookShelf.java
package ch01.iteratorPattern;
public class BookShelf {
String[] books;
public BookShelf(int size) {
books = new Str... | 019ad522a086f9719bdba9ed1d2c1d992a8d57af | [
"Markdown",
"Java"
] | 2 | Markdown | hwangtaewon/JavaDesignPattern | ea9b5f0736a3a662429c9c547c74e2a1d80ec791 | 52beb99eadeeea7a43210ecac174c60aa49c56df |
refs/heads/master | <file_sep><?php
/*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\
| _ _ ___ ___ ___ ___ ___ __ __ ___ __ __ |
|( \/\/ )( _)( ,)/ __)( ,\( _)( ) ( ) ( ,) ( \/ ) |
| \ / ) _) ) ,\\__ \ ) _/ ) _) )(__ )(__ ) \ ) ( |
| \/\/ (___)(___/(___/... | 4bb695ddc2d43fd0175945453c9d6518c67491c9 | [
"PHP"
] | 7 | PHP | Webspell-RM/plugins_polls | a701477f5022d7de012b8ff1ea8f767195c263f3 | ac582ea8a0abf158dab748fde61c7499f384d06a |
refs/heads/master | <file_sep>class CommentsController < ApplicationController
respond_to :json, :js, :html
def create
@article = Article.find(params[:id])
@comment = @article.comments.create(text: params[:comment])
end
end<file_sep>class Reply < ApplicationRecord
belongs_to :comment
has_many :reply_comments, dependent: :destr... | f784f37856c045bcddf56195eb466802dbbd18a9 | [
"JavaScript",
"Ruby"
] | 8 | Ruby | mylara62/Westagilelabs-demo-blog | 07cf19c9e4535dc03cf8e0f03a65eceaed918553 | 02c3cfad899b9258f3dbb0d1ef2e204eb0c42763 |
refs/heads/master | <file_sep>import numpy as np
import re
def make_batches(size, batch_size):
nb_batch = int(np.ceil(size/float(batch_size)))
return [(i*batch_size, min(size, (i+1)*batch_size)) for i in range(0, nb_batch)] # zgwang: starting point of each batch
def pad_2d_vals(in_vals, dim1_size, dim2_size, dtype=np.int32):
... | d4d713d44bf35e3748483ebe56e9939b68e2e45a | [
"Markdown",
"Python",
"Text"
] | 18 | Python | shizhouxing/AdvParaphraseIdentification | cf0a2e43494a23c68237ab6dfe06972477a879f9 | 4dd3b2174e65fc10bec507d6f8bdd8002d8513bb |
refs/heads/master | <repo_name>recaifurkan/My-Java-Repos<file_sep>/JavaSwingTwoWayBinding/src/main/java/com/byrfb/lang/types/BindiableShort.java
package com.byrfb.lang.types;
public class BindiableShort extends AbstractBindiableData<Short> {
}
<file_sep>/JNativeKeyboardAndMouseInputsSendNet/src/main/Main.java
package main;
import Comput... | 16deca99d9b935169155701aab9bdbdc79c4859a | [
"JavaScript",
"Markdown",
"Makefile",
"INI",
"Gradle",
"Java",
"Python",
"C",
"C++"
] | 117 | Java | recaifurkan/My-Java-Repos | 0b8c51d710a31509e42dc4885810c20f7b3c6ae6 | 0b90fc05cf7de08eb669661bfe16c269df77ac3e |
refs/heads/main | <repo_name>NatalyaKopylova/algoritms-lesson3<file_sep>/lesson3/main.swift
//
// main.swift
// lesson3
//
// Created by Natalia on 21.09.2021.
//
import Foundation
print("Hello, World!")
| 642445e5b2a8ecc67850c247ccef08c386a4bbb3 | [
"Swift"
] | 1 | Swift | NatalyaKopylova/algoritms-lesson3 | 4534b7c38b7f08cd995ce7bfff97814214441538 | f2aa351deac26c3b0c3a3bceff0213877d94dcbc |
refs/heads/master | <repo_name>drizmiz/SXDS<file_sep>/练习5/5.1 出栈序列统计.cpp
// 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
using namespace std;
int Calc[20][20]; // DP
int calc(size_t n)
{
for (size_t ss = 0; ss <= n; ++ss)
Calc[0][ss] = 1;
for (size_t N = 1; N <= n; ++N)
{
Calc[N][0] = Cal... | 38792baea8f9da9a605a1cf82702294aa923d18e | [
"Markdown",
"C++"
] | 37 | C++ | drizmiz/SXDS | d92747769379910e33f9b1e61635fd45cc465515 | b0e2c4e316fa576f02b7e4da9ea81e37650f9413 |
refs/heads/master | <file_sep><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<par... | 9913a57a9c5ea365c3a156dad15c46716e037ede | [
"Markdown",
"Java",
"Maven POM"
] | 8 | Maven POM | aerogear/ups-mock-data-loader | 0dc2656a10232a7cc2079e48447e0468a9d92a0a | cfd972b84118cd940b0cc3f25f1e56e2e0b7739d |
refs/heads/master | <file_sep>package bean;
import java.sql.SQLException;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Stateful;
import dao.ClientJPA_DAO;
import entity.Client;
@Stateful
@Local
public class ClientBean {
private ClientJPA_DAO clientJPA_DAO = ClientJPA_DAO.getInstance();
public void create(Client... | 8923fb84e88a04273eab8aa87e4e5b3d6a46e72e | [
"Markdown",
"Java",
"PHP"
] | 8 | Java | joaohiago01/Food-Menu | b4f17dfb347ac19521fdbd3f7aa92380ede7c8b7 | dab2776904f64ce8b9fee2b74be393e7a410893a |
refs/heads/master | <file_sep>using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RockSpawner : PlayerEnterExit
{
[SerializeField] GameObject RockPrefab;
[SerializeField] float rockSpawnInterval = 4f;
IEnumerator rockSpawn;
private void Start()
{
rockSpa... | bb48e3ed19d332cbb91500bc7168b82d2962379f | [
"Markdown",
"C#"
] | 48 | C# | M0rdhau/Platformer_Project | e3859e19f9e962c4e91a4c113cc7339425da4bb5 | afdebadb0fb48fb2397ac2eeb3f4292eb676ecd6 |
refs/heads/master | <file_sep>#line 1 "F:/MEOCloud/KPP/Electronica/PIC Progs/MikroC/ZigBee Remote IO V1.0/Config.c"
#line 37 "F:/MEOCloud/KPP/Electronica/PIC Progs/MikroC/ZigBee Remote IO V1.0/Config.c"
const enum TMcuType MCU_TYPE = mtPIC18;
const unsigned long BOOTLOADER_SIZE = 7400;
const unsigned int BOOTLOADER_REVISION ... | 8959160664d9ef8c376ffff4530d84c96eed9549 | [
"C",
"C++",
"INI"
] | 10 | C++ | ruisebastiao/ZigBee-Remote-IO-V1.0 | cf7ca55bb00d5d0cc260aebb9ed836cdb11a78ba | 2bcaab5611fa4942bead19b1210bccb108fc9a24 |
refs/heads/master | <file_sep>package com.kluszynski.proxy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
class NumberRepositoryHandler implements InvocationHandler {
p... | 6a44dd57bed568d09ed986eac6f1c8a8c168a1ac | [
"Markdown",
"Java",
"Gradle"
] | 55 | Java | krzysztofLuszynski/sandbox | a2e4fdff956613ef190860cb28dc40209b34e839 | 83066e0ed5bc61fca589e7445ae9752a0fa23c8c |
refs/heads/master | <file_sep>"""
Start uniform cost search from root node where is (0, 0), the goal is (width - 1, height - 1)
Priority search by using heap queue
Priority is decided by cost, which has only backward cost
Cost = backward cost
Backward cost is the number of step
Backward cost is updated if smaller backward cost is found
E... | 807589713da31a9f93b88d46db1b1f179120f9ac | [
"Python"
] | 2 | Python | queuestack/astar-search | f5453a2aac5535b0f786465ba91b52f43bc14623 | 1702544cf7753ed4812621c62fe8d9bf74e7c767 |
refs/heads/master | <repo_name>maxPrakken/TextAdventure<file_sep>/TextAdventure/NavMaster.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TextAdventure
{
class NavMaster
{
public List<Room> allRooms = new List<Room>();
public Room c... | ff7d199699805dcbb2217d54c04674fc67052ef6 | [
"C#"
] | 6 | C# | maxPrakken/TextAdventure | ca3113d6c5d8de32aca8d3e060c716e774eab018 | e6ef773ddc251f52a14a839047016db83d6c0953 |
refs/heads/master | <file_sep>var initialCats = [{'clickCount' : 0,
'name' : 'Tabby',
'imgSrc' : 'img/prayingCat.jpeg'},
{'clickCount' : 0,
'name' : 'Evrica',
'imgSrc' : 'img/wonderingCat.jpeg'},
{'clickCount' : 0,
'n... | 4a8f314d1ad4e08e96af10e5c391764e6570b06b | [
"JavaScript",
"Shell"
] | 2 | JavaScript | IgorPelevanyuk/CatClicker-Knockout | 65ef5540631e1e6bb93c3f715a091f3d5bab4ea4 | 9e11ea6de522f643924adc9cd2bedaa4a2bc5301 |
refs/heads/master | <repo_name>tobylockyer/terraform_example<file_sep>/cloudwatchagent.sh
#! /bin/bash
apt-get -y install wget zip # just in case!
INSTALLDIR="/tmp/cloudwatchinstall"
mkdir $INSTALLDIR
cd $INSTALLDIR
wget https://s3.amazonaws.com/amazoncloudwatch-agent/linux/amd64/latest/AmazonCloudWatchAgent.zip
unzip AmazonCloudWatchAgen... | 2395dff05597161ab3fbbc80828a6cc4186b5a01 | [
"Shell"
] | 1 | Shell | tobylockyer/terraform_example | c66a7da4099dc271708e9db8f43f335ebcc979ed | 53ad399c00a5dbaf691521f03330ed74093014c5 |
refs/heads/main | <file_sep>This package can be used to host a wiki on a [flask-view-tree](https://github.com/fenhl/flask-view-tree)-based website.
# Usage
First, symlink `wiki` inside your template folder to the `templates` directory in this repository, or write your own versions of these templates. If you choose the first option, ma... | 11b1cafb4e36b2f32598d8bc606dbf1b247524e9 | [
"Markdown",
"Python"
] | 3 | Markdown | fenhl/flask-wiki | 25a20d9bc5c6712349b79876025fa35c0f4e2ade | 13bea46f4735a174258af955c40a1abe795e54d3 |
refs/heads/master | <repo_name>borguss2014/ParticleSystem<file_sep>/particle_system.h
#pragma once
#include <iostream>
#include <memory>
#include <vector>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glad/glad.h>
#include "timestep.h"
#include "Shader.h"
struct particle_data
{
... | da61c34472dc44df93605aeddf7db82843ff6544 | [
"Markdown",
"C++",
"INI"
] | 8 | C++ | borguss2014/ParticleSystem | 189a53027da099ccd85d2bc7daa497565a68b9d6 | d8427e6741a8ce22feea74a1b426c760df733214 |
refs/heads/master | <file_sep>//
// VCMenuPresenter.swift
// RealIOS
//
// Created by <NAME> on 18/11/2018.
// Copyright © 2018 <NAME>. All rights reserved.
//
import Foundation
import RealmSwift
protocol VCMenuDelegate{
func SuccessProcess(message:String)
func FailedProcess(message:String)
}
class VCMenuPresenter:NSObject{... | 91c7249b22aa73e1d6cbb3f52fd3ac8d34dd6cd5 | [
"Swift",
"Ruby"
] | 9 | Swift | ljbdelacruz/RealmIOSSwift | e315ed68db29afd6d7909d1ee09aec65f155c980 | da4f591c4d0537613c7e43380b7c2d2b4a69c3d4 |
refs/heads/master | <file_sep>use crate::node::Node;
pub struct AddNode {
name: String,
}
impl Node for AddNode {
fn evaluate(&self) {
println!("Evaluating {}", self.name)
}
}
impl AddNode {
pub fn new() -> AddNode {
AddNode {
name: "AddNode".to_string(),
}
}
}
<file_sep>pub mod gra... | 083f7f70c4ba5e41a7f8b481e72bf9a5384ddbc6 | [
"Markdown",
"Rust"
] | 6 | Rust | HolisticCoders/shelob | 06ae7196497e790d0b1ea2658fb8ade246a154ff | 4203245dff62005494c4c531fabcf51a97755e79 |
refs/heads/master | <file_sep>using System;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace cw1
{
public class Program
{
public static async Task Main(string[] args)
{
//string a = "e";
//string b = "lo";
//Console.WriteLine(... | 18d7673e77e4f2797fe635294da497310fb8e3cc | [
"Markdown",
"C#"
] | 2 | C# | s18579/cw1 | df2aed93b539a3aefbc0cccc47288fdc2fd01728 | 14e7dedb1d1a7abe3265488c7c21231ebec87b9f |
refs/heads/master | <file_sep>namespace GetRequiredSectionSample.Configurations
{
public class SampleOptions
{
public const string ConfigurationName = "SampleSection";
public string SampleProperty { get; set; }
}
}
| a25cc5704c41418736ee5b48337098568be1f1f6 | [
"C#"
] | 1 | C# | michelcedric/GetRequiredSectionSample | 9ec3482bae77a828dcf55b971a5a21b982257ab7 | 2789435fe4ac7e8b9ad54ae28ac4f011c22ae2d7 |
refs/heads/master | <repo_name>sagzain/Algorithms<file_sep>/Algorithms/src/Probabilista/Cono.java
package Probabilista;
public class Cono extends Funciones{
private double r;
private double h;
public Cono(double linf, double lsup, double r, double h)
{
super(linf, lsup);
this.r = r;
this.h = h;
}
@Override... | 5063caf74668746886cb91100b96c73b9078c6c7 | [
"Java"
] | 7 | Java | sagzain/Algorithms | ea3e03a89bf8217b8a0d959c7f44493153b092c5 | aafce7cd0967f7c761cb2768a8e092af3dcaeae6 |
refs/heads/master | <repo_name>YOLOV12/labelme2coco-keypoints<file_sep>/README.md
# labelme2coco_keypoint
This tool is to convert all labelme keypoints file to one single coco keypoints file
the following is coco keypoint format
{
"info": info,
"licenses": [license],
"images": [image],
"annotations": [a... | e0821616c8ad16455149e7223bea05990bf81670 | [
"Markdown",
"Python"
] | 2 | Markdown | YOLOV12/labelme2coco-keypoints | 92aaa0141ca50d9dffabe830c1505cfba2148a3b | 08e2bcb3528109b58be717c82dbfeb0ee74d592f |
refs/heads/master | <file_sep># Snake
<b>Класс Point:</b>
Класс с полями int x и int y, класс точек(координат, скорее)
<b>Класс Snake:</b>
Содержит в себе поле snake, представляющее собой лист точек. Метод movement реализует её передвижение путём переставления
последнего эллемента листа в начало. eatingFood добавляет в хвост зме... | eac78085e2d5c90a00b0e4e992c3169a047aeb84 | [
"Markdown",
"Java"
] | 8 | Markdown | Levatein/Snake | 4485d0753dfa9be198257239be9ca5042dd0ba9f | 53a5c361f5b613ae44102898ed7044f472e54885 |
refs/heads/master | <repo_name>tt-52101/Joystick-6<file_sep>/joystick.js
var canvasDOM = document.getElementById("joystick");
var width = canvasDOM.width;
var height = canvasDOM.height;
/*
width = window.screen.height;
height = window.screen.height;
*/
var canvas = canvasDOM.getContext("2d");
var direction = false;
var bigColor = "rgba... | 3b703c75f67c68ebe27f44d6c67cf72d8a302cfa | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | tt-52101/Joystick-6 | 4bfa78dc04a0dfb66fb30596e377f44d3679db13 | ae21b02d87cd71a75f7cdc946dab9ed5487ab333 |
refs/heads/master | <file_sep>buildscript {
ext {
springBootVersion = '1.4.2.RELEASE'
postgresqlVersion = '9.4.1212'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath group: 'org.jooq', name: 'jooq-meta', version: '3.9.0'
classpath ... | e4955d37dde682086d49fdf46789c76c5af59e58 | [
"Markdown",
"Java",
"Dockerfile",
"Gradle"
] | 7 | Gradle | ko-sasaki/springboot-example | 7bdfad2a270a4f4aec76fd51605b29c9b60fcdcb | 49fd8c9f44ecc1e586c04708fdecf1d4d3061036 |
refs/heads/main | <file_sep>import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
public class Database {
ArrayList<String> items = new ArrayList<String>();
ArrayList<Integer> prices = new ArrayList<Integer>();
public Database(){
BufferedReader br... | 139ac1d7b025e14e1a24705661761f49c1452fa8 | [
"Markdown",
"Java"
] | 3 | Java | rhalim20/Design-Assigment-1 | 89509a1f5175b8230bede0c9f7a3126782bba1d1 | cf4fb61fcfd93d11b66b84070e3c24b74453fd6d |
refs/heads/main | <file_sep>#include<stdio.h>
int main()
{
int x,y;
printf("\nENTER THE VALUE OF x:");
scanf("%d",&x);
printf("\nENTER THE VALUE OF y:");
scanf("%d",&y);
x+=y;//x=x+y
printf("\nX+=Y: %d",x);
x-=y;//x=x-y
printf("\nX-=Y: %d",x);
x*=y;//x=x*y
printf("\nX*=Y: %d",x);
... | b93de33b06b3f71d3cde89b5abfe3f967cd3d7de | [
"C"
] | 24 | C | gokkul26/personal-site | 22cd945b06d261728ebd297d893d3dd2d5bb39dc | d0cd780098387bc274022e61a6518a2d9121d8cd |
refs/heads/master | <repo_name>tranek/GASDocumentation<file_sep>/Source/GASDocumentation/Private/Characters/Heroes/Abilities/GDGA_FireGun.cpp
// Copyright 2020 <NAME>.
#include "Characters/Heroes/Abilities/GDGA_FireGun.h"
#include "AbilitySystemComponent.h"
#include "Camera/CameraComponent.h"
#include "Characters/Heroes/GDHeroCharacter.... | 51e96a61e11817c26632b96135b79f30e502158b | [
"Markdown",
"INI",
"C#",
"C",
"C++"
] | 59 | C++ | tranek/GASDocumentation | 19877c6cd777dc059ee1aa6e094eae1f3f2a4cab | 49eed255c93a18b09fea41bafd94388f0c58c25c |
refs/heads/master | <file_sep>import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.Timer;
public class game extends JFrame implements KeyListener{
class role extends JLabel{
boolean isPlayer;
ImageIcon img;
public role(String s){
if(s.equals("player")){
isPlayer = tru... | 637af45ecdf8758175c806d0f57150196b8afe2c | [
"Markdown",
"Java"
] | 2 | Java | akira9478/Raidencat | 60e4c3dbdbdfcbb2a7339234afc530493c9ea795 | 5356ee4aa71ab35a86854a297bad25a949e20fc8 |
refs/heads/master | <file_sep>class Atm {
constructor (balance, interest, transactions) {
this.balance = 0
this.interest = 0.001
this.transactions = []
}
calcInterest () {
var ret = Math.round(this.balance + this.balance * this.interest)
this.transactions.push('User calculated interest: $' + ret + '\n')
conso... | 73b7a0e3e051d84eb869df5b0d0712c17b282b4e | [
"JavaScript"
] | 1 | JavaScript | matteokg/Nightintrojavascript | 4f7ea698d3b780127db030947666cb796e38afd6 | 2fae6b4820758713097798c2940961425a2d5212 |
refs/heads/master | <repo_name>six8/thoonk.py<file_sep>/thoonk/feeds/feed.py
"""
Written by <NAME> and <NAME>. Copyright 2011 by &yet, LLC.
Released under the terms of the MIT License
"""
import json
import threading
import time
import uuid
try:
import queue
except ImportError:
import Queue as queue
from thoonk.exception... | 6b0db650769780592cf201c38eef0dbfd2154c73 | [
"Python"
] | 6 | Python | six8/thoonk.py | 5dd936489bb5218f085a98b007fc9c1c12e79845 | 55889173f02d31735eedafa7342fc0a7a7e69c4d |
refs/heads/master | <repo_name>lixianhang/JP-Safety-CAV-System<file_sep>/README.md
# JP-Safety-CAV-System
Our project is designed to solve the accident problem.
My solution is to use the IoT tech and automatical mapping and driving for searching and rescuring.
Our purpose is to build a complete system including the cloud platform , the ... | ec63171e32ae89b6eff60921f0317fbb0ac2d777 | [
"Markdown",
"Python"
] | 3 | Markdown | lixianhang/JP-Safety-CAV-System | 58094199d6666542b28a5abaa1e5e500b57a2f7e | 9399401d248dd39f8aed2ea53b4db5774f14853a |
refs/heads/master | <file_sep>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;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using System.... | e0b9e5bcddf7b9f292de047dc542a6d625a3b29d | [
"C#"
] | 1 | C# | benpieper/TestXML | 5996852f143b817f7bd9dd2fbf106861b19daf16 | 83aabd157cf603f7349ddf92db91e0e774931092 |
refs/heads/main | <file_sep>
let setLengthBtn = document.getElementById('setLengthBtn')
setLengthBtn.addEventListener('click', () => setRangeLength())
function setRangeLength() {
let rangeWrap = document.getElementById('rangeWrap')
let minRangeInput = document.createElement('input')
minRangeInput.setAttribute("type", "nu... | 7f0cf07dcabb31255e6bcce004480d115edb9a2a | [
"JavaScript"
] | 3 | JavaScript | Queenshiba/vocabularytestmaker | b12f0a3cd807795202bef075a2576f2c8a1fe919 | 13c440fe1db32001cd5c6b9b03880766b88a27c8 |
refs/heads/master | <repo_name>NavihSaid/Cotabox<file_sep>/nbproject/project.properties
auxiliary.org-netbeans-modules-javascript-nodejs.enabled=true
auxiliary.org-netbeans-modules-javascript-nodejs.start_2e_file=main.js
file.reference.-CotaBox=.
file.reference.Cotabox-public=public
file.reference.CotaBox-src=src
file.reference.src-public... | d5521015b648e6053d887349efa33418ce9c7fa1 | [
"JavaScript",
"INI"
] | 2 | INI | NavihSaid/Cotabox | c3e617883f2601818beb069b2d0bbda2029fc239 | b44f37f77abf6f36aa3580fcdbfba9719006adc9 |
refs/heads/master | <file_sep>package com.jamindy.concurrent.readwritelock.data;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/**
* Created by admin on 15-5-17.
*/
public class Reentran... | 4842afdd0582b57f50ba20f0ed4bc8f72470f85d | [
"Markdown",
"Java"
] | 9 | Java | jamindy/concurrent-learning | 6a18ea01deaafb7d72b56e84dd1a24c3dd622641 | be0b1bd47b3f9551922da668149c58502da69bee |
refs/heads/master | <file_sep># Order Me
A prototype for a food ordering application using [AngularJS](http://angularjs.org) works on `localStorage`.
An online demo is hosted on [Heroku](http://order-me.herokuapp.com/).
## Technical Details
### Used Tools
* [AngularJS](http://angularjs.org)
* [Twitter Bootstrap](http://getbootstrap.com... | 3ae6a84d37ebe9796d07b069342271babd606704 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | jucasoliveira/Order-Me | c55f7f7c5c78d4f12ca5d476e4c2e5511c7f7efc | 170da26f384dd83cb1467e18b73d311cc8ee4763 |
refs/heads/master | <file_sep># Cubic-spline
Generation of Spirals and signatire using cubic spline
<file_sep>/* SCIENTIFIC COMPUTING
MIDSEM ASSIGNMENT
****************************************************************************************
NAME - <NAME>
ROLL NUMBER - 13012300... | 546a9e297d4e238831c5061945537c25e40d303a | [
"Markdown",
"C++"
] | 3 | Markdown | anuragh706/Cubic-spline | d9886469c6c0f988e8370c7b739b6b9fab453b53 | 6179618f8e5ec54bb4bb61cd906a31b8e6e67809 |
refs/heads/master | <repo_name>YuraPuzyrev/TestNgWork<file_sep>/src/test/java/org/itstep/qa/tasks/DevByTask.java
package org.itstep.qa.tasks;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.test... | 7f5ed95054c9617f6bb4ecf91f43f86aa791f0fb | [
"Java"
] | 1 | Java | YuraPuzyrev/TestNgWork | cbce3a474e7547c70e0a437fb3901de11bd9d9bd | b6e8ea79a09f5ac5bd05887d5196c0493a574660 |
refs/heads/master | <file_sep>CC = gcc-4.1
CXX = g++-4.1
COMMON_INCLUDE = Omnibot/Common/
RTCW_INCLUDE = Omnibot/rtcw/
CFLAGS = -O3 -DGAMEDLL -DOMNIBOT -w -fno-strict-aliasing -fPIC
CXXFLAGS = -I$(COMMON_INCLUDE) -I$(RTCW_INCLUDE) -fpermissive $(CFLAGS)
CSOURCES = $(shell ls S4ND_*.c g_*.c q_*.c bg_animation.c bg_misc.c bg_pmove.c bg_sl... | c77ac12f157040f40c7e1491c1574b41ebf05a51 | [
"C",
"Makefile",
"C++"
] | 22 | Makefile | nobowned/rtcw | f9e123b6b2e7454f04a1c0107bbcc4863edd01b9 | 27bf7cab6263f75a4104028a25253bf34732402e |
refs/heads/master | <repo_name>omgitzhuy1/UtPod<file_sep>/Song.cpp
// Created by <NAME> (hd5245) and <NAME>
// EE 312 Prog 5: UtPod
#include <iostream>
#include "Song.h"
#include <string>
using namespace std;
//Constructor
Song::Song() {
this->title = " ";
this->artist = " ";
this->size = 0;
}
/*
Song::Song(... | 0787b7834eb8553855c11fb9629e5e33ee40726c | [
"C++"
] | 3 | C++ | omgitzhuy1/UtPod | 265adb2ce99a755f191d8e73c1c220f3e81915b1 | c9d7ca44acc41c439dd77786fe182abc4570036c |
refs/heads/master | <repo_name>oksanahruzka/fe-advance-hw<file_sep>/Modul2/js/script.js
let num = prompt('Введіть число от 1 до 3-х (1-Taba, 2-Sharm, 3-Hurgada)');
let res;
switch (num) {
case "1" : res = "Taba" ; break;
case "2" : res = "Sharm"; break;
case "3" : res = "Hurgada" ; break;
default : res = "Ви ввели число п... | 54e44a88c3f67601f3cf9001c853c7bbf8f43f77 | [
"JavaScript"
] | 2 | JavaScript | oksanahruzka/fe-advance-hw | a553b1df1e72547b3ed039d47abd12856f552e00 | f1dc02dd73d384f6b99f9086bc86039291215785 |
refs/heads/master | <file_sep>package template
import (
"testing"
kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api"
)
func TestNewRESTInvalidType(t *testing.T) {
storage := NewREST()
_, err := storage.Create(nil, &kapi.Pod{})
if err == nil {
t.Errorf("Expected type error.")
}
}
func TestStorageNotImplementedFunctions(t ... | 4e17c9a33a5b00579590315ad126e87694fd47d0 | [
"JavaScript",
"Go"
] | 3 | Go | ben001k/origin | 34671b3fe83b978fc6ac427567385fb5644ec48e | 99952738918be7077f01f9c9e89ae8030a2e143c |
refs/heads/main | <repo_name>junnaruse99/DS_Web_APP<file_sep>/README.md
# Build a Data Science Web App with Streamlit and Python
This is part of a Coursera guided proyect.
Since the dataset was so large that I couldn't upload it, here is the link:
https://data.cityofnewyork.us/Public-Safety/Motor-Vehicle-Collisions-Crashes/h9gi-nx95
... | 502f2cecd113e187132c1a0a70dc34f892bd60a2 | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | junnaruse99/DS_Web_APP | 02ee70278e8754f93f3ea61479d262b5b2f7292b | 670b51e227d403fbb63654b5e9d8c22856216fb9 |
refs/heads/master | <file_sep><?php
/*
|--------------------------------------------------------------------------
| Available modules
|--------------------------------------------------------------------------
*/
return array(
'Pages' => [
'menu' => true,
'dashboard' => true,
'model' => 'TypiCMS\Modu... | d3b3b42503052951b16d5cbc8087c85533c630f5 | [
"PHP"
] | 2 | PHP | fernandoalves-ink/TypiCMS | e945095615aace16e0d3064e382f6fb519e2fcc0 | 9e3a44f3868ca29ce599a0e5fea0338ee67d3669 |
refs/heads/master | <file_sep>using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.SpaServices.ReactDevelopmentServer;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.EntityFrameworkCore;
using Rollbar.... | 714b6150960fbe431b718ba4092f5ab480d20361 | [
"C#"
] | 2 | C# | bradstiff/wait-time-rest | 76312853324319d10fa4f6779978a0c99ffcd447 | 374836fbb0b6c040b2a71da9d6bdc00dc7abf588 |
refs/heads/master | <file_sep>#include <Arduino.h>
#ifndef SKIP_SPI
#include <Adafruit_FRAM_SPI.h>
#endif
#include "FRAM_Cache.h"
#include <string.h>
#include <stdlib.h>
#ifndef memmem
#include "memmem.h"
#endif
#ifdef SKIP_SPI
class Adafruit_FRAM_SPI;
#endif
typedef struct {
uint8_t manufID;
uint16_t prodID;
uint16_t size;... | 74c37b9e5c1052b9c48323bb3d6f7b806e13b436 | [
"Markdown",
"C",
"C++",
"INI"
] | 5 | C++ | Beirdo/Arduino-FRAM-Cache | 454bbbe7bc8f2600b2a05085627be65fd6cf653c | daac19e007ddb519f632309e3cc75d66fee304c3 |
refs/heads/master | <repo_name>Leva16/CarsRent<file_sep>/src/main/java/rent/Car.java
package rent;
public class Car {
private String modelName;
private boolean isCarAvailable = true;
public Car (final String modelName) {
this.modelName = modelName;
}
public String getName() {
return modelName;
}... | 8681cfda48339fa98a5a48716f0a40c087bab985 | [
"Java"
] | 2 | Java | Leva16/CarsRent | 526fdf8028360a787091d77d0992b9540b19596f | a8da951344e738bf584cd2d7abd9f43ed3d31b21 |
refs/heads/master | <file_sep><?php
require('database.php');
$category_id = filter_input(INPUT_POST, 'category_id', FILTER_VALIDATE_INT);
$query = 'SELECT *
FROM category
WHERE categoryID = :category_id';
$statement = $db->prepare($query);
$statement->bindValue(':category_id', $category_id);
$statement->execute();
$cat... | 08c47cab25c7ee5f4991121737e9ccfa86ad2af3 | [
"SQL",
"PHP"
] | 10 | PHP | CiaranMullen/php-crud | 2d70ff743aff5d45472fa1a4c6b0c9ac25021cef | f62b793841709ce04d0bb6383977ffe2a791d1fe |
refs/heads/master | <repo_name>burhanozsahinoglu/pyhton_loopy<file_sep>/simplepythonloop.py
car = ["honda", "BMW", "Audi"]
for x in car:
print(x)
<file_sep>/fibonacci.py
def Fibonacci(n):
if n<0:
print("Incorrect input. Input isn't negative!")
elif n==1:
return 0
elif n==2:
return 1
else:
... | bf481c1d85cf00aff3958114a2702a8e9b6f5270 | [
"Markdown",
"Python"
] | 3 | Python | burhanozsahinoglu/pyhton_loopy | 9776c1eb3521932ea1a51c4f5443c0cd3d5bb0af | a9789eafc5a68065eceab7e76bbc9854c15e2b71 |
refs/heads/master | <repo_name>rush4ratio/ProgrammingAssignment2<file_sep>/cachematrix.R
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# 'create' builds a new matrix
# 'get' returns martrix held
# 'getInverse' returns the inverse of the matrix
# 'set... | c263197f4e3d4f53c9f41610a2f50c5cd39e0535 | [
"R"
] | 1 | R | rush4ratio/ProgrammingAssignment2 | 0ecdb77a1ff7e4a5c22c776353b85cf0471c8964 | ae76a3dd26a623ed27f370a7f7cf20a1f4eadc0e |
refs/heads/master | <repo_name>assetcore/liability-proof-master<file_sep>/test/helper.rb
require 'minitest/autorun'
require 'json'
require 'liability-proof'
def accounts
@accounts ||= JSON.parse File.read(File.expand_path('../fixtures/accounts.json', __FILE__))
end
def root_json_path
File.expand_path '../fixtures/root.json', __FILE_... | bcddd8ac256154ce76da9c9c155940fe7af9c2bc | [
"Ruby"
] | 4 | Ruby | assetcore/liability-proof-master | fd68dd2a3eab093547c1a8cfbdf868ae6c028f90 | e7277ffac4db92866a3e4483360fdb76c78d4df6 |
refs/heads/master | <repo_name>amplience/poi-js-lib<file_sep>/src/poi-polygon.js
'use strict';
POI.prototype.polygons = function () {
var parent = this;
var methods = {
create: function (point, imgInfo) {
//Create hotspots, add class, styles, find parent, add event callbacks
var callbacks = imgInf... | 199b142bbabbaf024c599fb523c9c4313979f732 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | amplience/poi-js-lib | 4bc75f9d765f49d980bb827ac867ee0109f83bc9 | 5e08f17c5b3420e6889ccb04a0dd8e408aa0a630 |
refs/heads/master | <file_sep>#include <iostream>
#include <string>
#include <chrono>
#include <cstdlib>
#include <ctime>
long long bino(long long n, long long r);
int main(int argc, char** argv)
{
std::cout << std::string{"Start"} << std::endl;
// take argvs
int n = std::atoi(argv[1]);
int r = std::atoi(argv[2]); ... | 18ec8e68083db0294598ddc852fd32659a3a8a3a | [
"CMake",
"C++",
"Shell"
] | 6 | C++ | gisbi-kim/cpp_programming_practice | 14ee6f1b256c78070d976c845d617d3215fa3dcb | 1b7e0001a1573586ab2c389aa1daa65394eb7f0a |
refs/heads/main | <file_sep>while True:
try:
ask = input('Enter a number: ')
print('Press q to quite: ')
ask = ask.lower()
if ask == "q":
break
ask = int(ask)
if (ask % 3) == 0 and (ask % 5) == 0:
print("Fizz Buzz !! :}")
elif (ask % 3) == 0:
... | 9d9220876d7b053a789be3939ac981c28f8925c9 | [
"Python"
] | 1 | Python | Shajidur-Rahman/FizzBuzz-Python | 47656f62565dab1a6f3a3db50731fa8ecaa5dfc7 | 09f2eaf3fdff97569c4c3bcc5b0c976409dcdd62 |
refs/heads/master | <file_sep>#!/usr/bin/env sh
##############################################################################
##
## Flutter start up script for UN*X
## Version: v0.7.1
## Date: 2018-08-09 14:26:47
##
## Use this flutter wrapper to bundle Flutter within your project to make
## sure everybody builds with the same vers... | 59926aa7ced6ee759c0e22593e879fcb0a040927 | [
"Markdown",
"Kotlin",
"Shell"
] | 3 | Shell | jbarr21/flews | bbc65972bf0112300ab6115649f7453a059c7518 | 49c8c00478db8f54d17167272f6eb35cfd9c52f7 |
refs/heads/master | <repo_name>prestonjackson/chess<file_sep>/pong.js
function onLoad() {
var canvas = document.getElementById("court");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(10,10,100,100);
}
| ce971deb3718c5b0d735d9e3e36417e11c5c9603 | [
"JavaScript"
] | 1 | JavaScript | prestonjackson/chess | 710fec0bbdac74643cdae0723a183f181e5641db | 043cd8a8ebf194263363d6ecc1c904e85b36424f |
refs/heads/master | <repo_name>hacomeister/Activity-Lifecycle-Tutorial<file_sep>/app/src/main/java/com/hacomeister/activitylifecycletutorial/MainActivity.kt
package com.hacomeister.activitylifecycletutorial
import android.os.Bundle
import android.os.CountDownTimer
import android.text.format.DateUtils
import android.util.Log
import androi... | 8918028797b60cb9ae02e53045a970c267fa61a0 | [
"Markdown",
"Kotlin",
"Gradle"
] | 3 | Kotlin | hacomeister/Activity-Lifecycle-Tutorial | 047b0097cf939faf518af4d19c7776baafe01c81 | dca2e6d7e66abdbf36606b1d2fc3b054e0d0c4b8 |
refs/heads/master | <repo_name>michellebholland/sweetheartX<file_sep>/src/components/TechCheckbox.jsx
import React from 'react';
import Form from 'react-bootstrap/Form';
import '../styles/checkbox.scss';
const TechCheckbox = ({ name, onTechFilter }) => (
<Form key={name}>
<div key="checkbox" className="mt-2 ml-3">
<Form.Check... | c1f0f9581a5a91871c112ab286bf11ca2720f470 | [
"JavaScript"
] | 1 | JavaScript | michellebholland/sweetheartX | e713aae07bd69127b7a965c5f3f94e50cfc32558 | 6bcc0ca0048ca25a5fc8fcb0afcb77c66f77fef9 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Apache.NMS;
using Apache.NMS.Util;
using BussinessObject;
using Apache.NMS.ActiveMQ.Commands;
using System.Threading;
namespace SendMessToActiveMQ
{
public class Program
{
... | 98e16c2d27d3104261c63aacb711d4889d6e130b | [
"C#"
] | 2 | C# | Chau-Truong-Phat/17031361_ChauTruongPhat_TH_KT-TKPM | eb6caecd653861b66ed4407cdc577fcaacc37c5d | 910828ef372615bd9eb284e4dc8ee76eafcdbd66 |
refs/heads/master | <file_sep>package com.isagiongo.daysofserverless.controllers;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Controller {
@GetMapping("... | 32904f3dc8aa084ce6a90fb8d495afb2581f0740 | [
"Java",
"Gradle"
] | 2 | Java | isagiongo/25-days-of-serverless | 2186eb4d8390140476b4200d5a8e977d4b3e6de4 | 49cd80345c78a5df781b890955397cf670bc901d |
refs/heads/main | <file_sep>#include<stdio.h>
int fun1(int a,int b)
{
int c1,th,hun,ten,unit;
c1=0;
th=a/1%10;
hun=b/1%10;
ten=a/10%10;
unit=b/10%10;
c1=th*1000+hun*100+ten*10+unit*1;
return (c1);
}
main()
{
int a,b,c;
scanf("%d%d",&a,&b);
c=fun1(a,b);
printf("%d",c);
}
<file_sep># fish-in-trouble-water
just three stooges
... | dd6653e34a98083406231503d9b39d107afe185a | [
"Markdown",
"C",
"C++"
] | 6 | C | 201811050980/fish-in-trouble-water | 76965e63fb77d8bbd31d5f9f64590038305a7cf4 | 576c5226f655999f2f9dc3394713acff067d7b0c |
refs/heads/master | <repo_name>moodlehq/moodle-filter_moodlelinks<file_sep>/filter.php
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of t... | 6b7809f67dfc70dafa6379a9ebae81fcf4628c93 | [
"Markdown",
"PHP"
] | 4 | PHP | moodlehq/moodle-filter_moodlelinks | 92a42d0a28d04cc4c7c9d6ea643b9a884eb7d569 | a89d4dcfc80d485c974132ab35cd1006384b5869 |
refs/heads/master | <file_sep><?php
class StocktransferController extends \BaseController {
private $data = array();
protected $layout = "layouts.main";
public function __construct() {
$this->beforeFilter('csrf', array('on' => 'post'));
$this->beforeFilter('auth', array('only'=> array('Dashboard')));
$this->apiUrl = Config:... | 21cf4c819a912be9a9ad9d574a97f6954eb7dfae | [
"SQL",
"PHP",
"Shell"
] | 217 | PHP | husnieboy/rsci-wh-debenhams | b074d472bae367b3216eb0c4f8750613a26d6c7e | 9f3926dd02b7a1761af0b2e1866d6859e5277477 |
refs/heads/main | <repo_name>wenshan/mini-lifecycle-interceptor<file_sep>/src/utils/wxCompose.ts
export type INextHandle = () => Promise<any>
export type IHandle<T> = (options: T, next: INextHandle) => any
export type IComposeHandle<T> = (options: T, next?: INextHandle) => Promise<void>
/**
* 仿照koa-compose,连接拦截器方法数组
* @param handles ... | ca3976fb654b098acc6e830dfbe7894b0d74ea4a | [
"Markdown",
"TypeScript",
"JavaScript"
] | 14 | TypeScript | wenshan/mini-lifecycle-interceptor | 2c5d2e4cadf4d5115dfc83296601948fb18c05c8 | e7f7a4dfe497a6d01107829ce45e99f74b5eda53 |
refs/heads/master | <file_sep>import functools
from flask import Blueprint, g, session, redirect, url_for, request, render_template, flash
from mongoengine import DoesNotExist, MultipleObjectsReturned
from utair.models import User
bp = Blueprint('auth', __name__, url_prefix='/auth')
def login_required(view):
"""Decorator that all... | 17ab14ba40c555df202f2984f8aa8c226df66116 | [
"Python",
"reStructuredText"
] | 11 | Python | Kolaer/utair | 92b85f2fb85da414758da553c8b80419afe8a8ec | 795852b3092de0ab250f5d6181730ac347414eae |
refs/heads/master | <file_sep>import Dexie from "dexie";
import {PuzzleOptions} from "../puzzle/Puzzle";
import {ConfigItem} from "./Config";
import {CountsItem} from "./Counts";
import {TimesItem} from "./Times";
import {WasmItem} from "./Wasm";
export class EinsteinDatabase extends Dexie {
times: Dexie.Table<TimesItem, any>;
co... | acecd3496077efc365fe0d9b072a2abd59193ad4 | [
"Markdown",
"Python",
"TypeScript",
"JavaScript"
] | 60 | TypeScript | sim642/einstein-js | 7a4648ce18c65c78625a90fe62b1ace6f8f0df62 | 5dfd8cf2448079c5a2987b35829f77bf0fee97d8 |
refs/heads/main | <file_sep>console.log("vue ok", Vue);
Vue.config.devtools = true;
const app = new Vue({
el: "#app",
data: {
emails: [],
},
methods: {
mountArrayWithTenEmails() {
for (let i = 0; i < 10; i++) {
axios.get("https://flynn.boolean.careers/exercises/api/random/mai... | 9c06d3960629b244343fbbaa28636c281921d13e | [
"JavaScript"
] | 1 | JavaScript | FrancescoCina/vue-email-list | 339e81d846169cdf80fdb95853feee69a587e9eb | bb1dd38e840dadfcff0c9e04a9dd6cf8f036fd8c |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class pgLogin : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void txtlogin_Authenticate(object... | 7c305b1e3e252b7cbc674e2d30c052b9edfba938 | [
"C#"
] | 4 | C# | justrobd/CIS470_Team_A | 4f864453bdde9d64d9cb9e237575539c0c4c3c07 | 0b8fb7b1ecf09752f78ddaaa18d60a171261a772 |
refs/heads/main | <file_sep>/**TodoList
props: { items: [{ text: string, completed: boolean }]}
Renders a list of TodoItem components, passing text and completed to as props.
If the items array is empty, the component should show a span with text: "Nothing to do! :)"**/
import TodoItem from './TodoItem';
function TodoList({items}){
... | 84e5a20d49b1253eab2a31872a2fe5daa003c5f7 | [
"JavaScript"
] | 1 | JavaScript | AnnaFridman2512/TodoLost-with-react | 29005afeb6363232717c427a527f9c450e9fd610 | eda89cecba795ba4643cf249c909776327fa8c21 |
refs/heads/master | <repo_name>jdemeuse1204/GoGet<file_sep>/GoGet/Go.cs
/*
* GoGet v1.0
* License: The MIT License (MIT)
* Code: https://github.com/jdemeuse1204/GoGet
* Email: <EMAIL>
* Copyright (c) 2015 <NAME>
*/
using System.Linq;
using System.Reflection;
namespace GoGet
{
/// <summary>
/// Travels down the specified p... | a00e5503c5a964a61c29b084f1dceee79c1fd827 | [
"Markdown",
"C#"
] | 9 | C# | jdemeuse1204/GoGet | e3122b6dea1439b5402d3e75148107ddbadfbf8b | 941917c6c74d5755da190b1fc774d3a414c12a6b |
refs/heads/master | <repo_name>FDirectionClear/BerryMelonSlider<file_sep>/src/common/tools.js
export function capitalize(str) {
// 如果str是undefined返回空字符串
if(typeof str === 'undefined') {
return ''
}
// 如果str的第一个不是小写字母就返回str
if(str.search(/^[a-z]/) === -1) {
return str
}
return str.slice(0,1).toUpperCase() + str.slice(1)... | 1c3117244d03c841abb006e44a06a6022911d045 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | FDirectionClear/BerryMelonSlider | 58eb4839903155c02057e51bc40d7b0c52506374 | 0d77fa3c406f354f6da59fe1c3bd6783dbf916a2 |
refs/heads/master | <file_sep>#!/usr/bin/env python
#-*- coding: UTF-8 -*-
# autor: <NAME>
# date: 2015-04-15
# mail: <EMAIL>
# version: 1.0
##################################################################################
# version 1.0 release notes:
# Initial version
# Requisites:
# library configobj To install: "apt-get install ... | ade66d5717f9e3698d78b7acbfbe22dc4009a2f2 | [
"Python"
] | 1 | Python | crueda/FR24 | 555f2e2f3148d162460ae758aa721532614c3e80 | e548aa0fe7299ad9bc09dd205b2abe705117dd3b |
refs/heads/master | <file_sep>export const formatPrice = (curr, val) => {
if (val < 0) {
return `-${curr}${Math.abs(val)}`;
}
return `${curr}${val}`;
};
<file_sep>import { combineReducers } from "redux";
import itemReducer from "./itemReducer";
import discountReducer from "./discountReducer";
const rootReducer = combineReducers... | fb1f4bd814d0fd44a380c458d19021c2aac4a18c | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | agnostic79/purchase-summary | 94d3362b847e24acb7bf260e2faa785943b9716b | dc5d7cb4bd0ea0de7e29c32dd21e34393626b498 |
refs/heads/master | <file_sep>def run():
print ("status ")
pass
<file_sep>#!/usr/bin/python3
import sys
import commands
def usage():
print ("usage: [start|stop|status] command [...]")
sys.exit(1)
if __name__ == "__main__":
if len(sys.argv) < 2:
usage()
if not hasattr(commands, sys.argv[1]):
prin... | 49a4fe9bc568478ed19c4ad4f528bc539d343bb8 | [
"Python"
] | 7 | Python | zep715/leaf | 2f27f36a6ee3b08e113379e3c531860811cc8946 | 9e918f1cef50476ebd5c7279a4a69eaa7763016c |
refs/heads/master | <file_sep>package com.xuan.mix.compile.impl;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import com.xuan.mix.compile.CompileException;
/**
* @author xuan
* @since 2020/10/19
... | d8714cd695b4975fbacf82b2b14bb06a89be63bb | [
"Java"
] | 2 | Java | jixiar/xutils | f5afa42393795cc3a5f04e77a9df07236c8b04cf | 1f068b5130a0e4e58c48d4b2a9b3e18a63ff266d |
refs/heads/master | <repo_name>KisLupin/notepad-java<file_sep>/src/common/Common.java
package common;
public class Common {
public static final String HYPHEN = "-";
public static final String EMPTY = "";
public static final String NEW_LINE = "\r\n";
public static final String BLANK = " ";
public static final String QU... | 08dbe3f42ca78b3372bd38397e0203a39ede48dc | [
"Java"
] | 3 | Java | KisLupin/notepad-java | 78ea64ac8284a447bc0c3e085bdf9c60436bacb2 | aa5664c07d9bfef5e1c10bd4ea9a1be25799745f |
refs/heads/master | <file_sep>module Tugboat
module Middleware
class InfoDroplet < Base
def call(env)
ocean = env["ocean"]
req = ocean.droplets.show env["droplet_id"]
if req.status == "ERROR"
say "#{req.status}: #{req.error_message}", :red
exit 1
end
droplet = req.... | f330a22fd2719a68fa0f004bcadeeb3dc7723162 | [
"Ruby"
] | 1 | Ruby | devwaker/tugboat | 33d4647008f57eef72c0926372de621c6dc62745 | 1966a28cf5dc6256b7b12781efba1ec9df53207f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.