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>using AutoMapper;
using Manager.API.Data.Models;
using Manager.Shared.Models.DTOs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Manager.API.Profiles
{
public class DTOProfile : Profile
{
public DTOProfile()
{
C... | e9287521e1b64d59e01a583bebca5e3f8b40f12f | [
"C#",
"SQL"
] | 14 | C# | ASxCRO/machine-manager | 31aff59f33302c9b02ee1546982152c681eb7dd2 | 26ae7c580563d825f990df18154ca530c8c1a086 |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
def config():
mysql = {'host': '127.0.0.1', 'port': 3306, 'username': 'liunian', 'password': '<PASSWORD>.', 'db': 'python'}
return mysql
if __name__ == '__main__':
config()
<file_sep>import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path... | f07349be04a68a96c63b2682e57952352f5b464a | [
"Markdown",
"Python"
] | 8 | Python | gaotiefeng/Reptiles | 46f0a1b5b8364385069b72750749fdabeeaacdfc | da0418e3c6c786348c680e8fcf254bdf6fc6ca81 |
refs/heads/master | <file_sep># How to reproduce the results
In order to reproduce the results all one must do is place the files found in the data folder in the R code folder into their directory
then simply change the second line of the R code so that it reads:
path <-"[path to where you stored the data]".
After this you should only ... | dea0842c2113449dc9163a2f3a88f8e20331841b | [
"Markdown",
"R"
] | 2 | Markdown | SloanStinnett/Final-Project-for-DScourseS19 | 817620589d16d24039aa82e39e4a674027528539 | 11ff01d851a393e1d7a9577385acc88cb8d1f89a |
refs/heads/master | <repo_name>avinashmkb/shoutout_app<file_sep>/app/models/feedback_topic.rb
class FeedbackTopic < ActiveRecord::Base
end
<file_sep>/app/mailers/notifier.rb
class Notifier < ActionMailer::Base
default from: 'SMS SYD <<EMAIL>>'
default subject: 'You have recieved a SYD feedback'
default cc: '<EMAIL>'
# Subject can ... | 64738b9e03836bc65683cc25ab84efed88d1a20d | [
"JavaScript",
"Ruby",
"HTML",
"Markdown"
] | 81 | Ruby | avinashmkb/shoutout_app | 95f333f428c6bacd68b449c633d4ca61076f7f16 | 98ad28d293eae4a7093d7682942b56317d05f59e |
refs/heads/main | <file_sep>using System;
public record ImmutableStudent {
public int id { get; init; }
public string givenName { get; init; }
public string surname { get; init; }
public Status status { get; init; }
public DateTime startDate{get; init;}
public DateTime endDate{get; init;}
public DateTime? gr... | 42b9f464e18261b9b1720a5e1a907662fef095de | [
"C#"
] | 4 | C# | YoHype/Assignment2-main | e43aeda96e33acc8d9febc0af6a1d848f0702ccc | e1ea28994d2428ae24d08d1fd18144067e59ef1f |
refs/heads/master | <repo_name>mckayfenn/PCBuilderApp<file_sep>/PCBuilderGuide/Parts.swift
//
// Parts.swift
// PCBuilderGuide
//
// Created by u0939404 on 4/10/17.
// Copyright © 2017 Fenn/Phelps. All rights reserved.
//
import Foundation
/// An interface for all of the parts to have
protocol MyParts: class {
var _ram: String?... | 3f5b0d87748f2a28820cf9ac844874e7a22f379a | [
"Swift",
"Markdown"
] | 18 | Swift | mckayfenn/PCBuilderApp | e90418e60947d03a2fbe70280965439a5815eca6 | bd7f7b345e872f7c90147a6d2734a86355bdb1f3 |
refs/heads/master | <repo_name>rajlm10/Budget-calculator<file_sep>/app.js
//BUDGET CONTROLLER
var budgetController=(function(){
var Expenses=function(id,description,value){
this.id=id;
this.description=description;
this.value=value;
this.percentage=-1;
};
Expenses.prototype.calcPercentages=function(totalIncome){
... | 042d06d9be9b488afbea8d50eef1e7d0ec6141fa | [
"JavaScript"
] | 1 | JavaScript | rajlm10/Budget-calculator | 43d54116c774fed3c4dfbba98417886c539aa6ac | 3ad524ed046c05188fc0d8bf57a2af0dc62a4c93 |
refs/heads/master | <file_sep># mc
Like netcat but UDP Multicast
## Usage
```
mc 192.168.3.11:1337
```
<file_sep>package main
import (
"encoding/hex"
"fmt"
"net"
"os"
)
func main() {
addr, err := net.ResolveUDPAddr("udp", os.Args[1])
if err != nil {
fmt.Println(err)
}
l, err := net.ListenMulticastUDP("udp", nil, addr)
if err... | 5081baa50f9cbda9021ead9f3c845c60d01b827a | [
"Markdown",
"Go"
] | 2 | Markdown | ottojo/mc | d25bfa23d2aaf908f051deb0dec3ca65a839817e | 452145b904694a09ec5e434a3ee526e111c9cb63 |
refs/heads/master | <repo_name>sen15recess/HearMeOut<file_sep>/app/src/main/java/recessminds/hearmeout/FirstService.java
package recessminds.hearmeout;
import android.app.Activity;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.os.Build;
import ... | 4553b27a5998f7216147e9d445b492260b947aca | [
"Java"
] | 2 | Java | sen15recess/HearMeOut | ca6281c8813983b387def852e5460f558a32fd5f | c2afd5249ce937fd6416264d2d1106467534d2cd |
refs/heads/master | <file_sep>function fetchAdmin() {
$.getJSON('http://covermeonline.com/db.php', function(data) {
updateCover(data);
updateLastUpdated(data);
updateLine();
updateDeals(data);
loadDealsInTextBoxes(data);
});
}
function updateCover(data) {
var lion_cover = data[2]["Bar Cover"];
document.getElem... | 4fad28a2059abf2ee09a1a2f054d716bd74fdecb | [
"JavaScript"
] | 3 | JavaScript | eckels/illinoistestinglines.com | 1ec4ce6e51e09377b4d1296ec995c1bde15edab5 | bd6c1a5fdaaf7c635f46beb744292b25287c7abe |
refs/heads/master | <repo_name>harris-salimo/express-adidiko<file_sep>/routes/adidy.js
const express = require('express');
const passport = require('passport');
const {Adidy, Mpandray} = require('../models');
const router = express.Router();
router.get('/', passport.authenticate('jwt', {session: false}), async function(req, res, next){... | da692972d307ea46efcb40659514e50cf1e89b49 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | harris-salimo/express-adidiko | 8f7b31e090f48eb6d1d4b0228d68d256e851a74d | 4727eaf0b3c28b0f6d9bef714bb800c1e217ab91 |
refs/heads/main | <repo_name>jward-bw/puzzler2020<file_sep>/README.md
# puzzler2020
My solutions to the 2020 Christmas puzzler.
To build the binaries install rust and then run `cargo build --release` in this directory or any sub-directory. The binaries will be built to `target/release/[quick|short]`.
Both of my solutions are written i... | ad65d9c4e542ea419e2634bb03ed0138d88b4f1b | [
"Markdown",
"Rust",
"TOML"
] | 4 | Markdown | jward-bw/puzzler2020 | ceba66a03336831402cb9ad749c361fcb6f5fb55 | 149c72d9c7ab8b9ab302ad164b9966b3598e2c54 |
refs/heads/master | <repo_name>itschoz/PAPER_GAZEBO<file_sep>/src/navigation_goals/src/create_bool.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Jan 10 11:16:00 2014
@author: <NAME>
Snippet of code on how to send a navigation goal and how to get the current robot position in map
Navigation actionserver: /move_base/goal
... | c190f88bc597b863e4f06b4286d945bc02a6849f | [
"Python",
"CMake"
] | 6 | Python | itschoz/PAPER_GAZEBO | aec327436075ad9da604be12e21fd0b51d4b3a13 | ff4dab09ee709d22da5a5b380b44fc89d1b62b03 |
refs/heads/master | <repo_name>chef/chef-provisioning-azure<file_sep>/lib/chef/provider/azure_sql_server.rb
require "chef/provisioning/azure_driver/azure_provider"
class Chef
class Provider
class AzureSqlServer < Chef::Provisioning::AzureDriver::AzureProvider
action :create do
restore = Azure.config.management_endpoin... | e813192310f1e6f5c1f752f4985a3e452477bb83 | [
"Markdown",
"Ruby"
] | 23 | Ruby | chef/chef-provisioning-azure | e836ea18ec2c776866900a61296005f799c57bee | 8ad9ea46131ce5deac5cef6b406a36b129add01e |
refs/heads/main | <file_sep># [Unity3d] Quickstart Template 2D
A simple unity3D template for games projects 2D.
Create by: <NAME>
<file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyController : MonoBehaviour
{
private PlayerController player;
private bool isCollided = fal... | 9497dc76b2bb8e09c102a97676dcc451cb12ef19 | [
"Markdown",
"C#"
] | 7 | Markdown | matheusmaiadev/unity3d-quickstart-template-2D | 0f1f570a8400cac423d808244ccfadc8af6441f9 | daed0d5fd60a716be0db745390554985718ce0e4 |
refs/heads/master | <file_sep>
require_relative 'transaction'
require_relative 'viewable'
require 'csv'
module Banco
class Reader
include Viewable
attr_reader :all_from_csv, :report_name, :csv_file_name
def initialize(csv_file_name, report_name)
@csv_file_name = csv_file_name
@report_name = report_name
@... | 0fef71e5b8acdf5d6b7c81b1d52661bd41e65817 | [
"Ruby"
] | 10 | Ruby | s33dco/banco | 93986ca29c8127e36bf1b48b1a795fe315b8d7ad | ecd4c8a5598cfc02e00932c8d955fa5e19393f84 |
refs/heads/master | <repo_name>jweir/elmish<file_sep>/elmish.rb
module Elmish
def Actions(n)
n.each_with_index do |term, _index|
name, type = term.split(/\//)
if type
action = const_set name, Class.new(Union)
action.type = Object.const_get(type)
define_singleton_method(name) do |value = nil|
... | abc1d19e208967b937e5b0244dd8ab4ee76f5f76 | [
"Markdown",
"Ruby"
] | 3 | Ruby | jweir/elmish | ffe868d633ff106702f16a5fa1f601600692d611 | c7107fc5eb3eb333c5e4841a4f9c3c690da0d151 |
refs/heads/master | <repo_name>michelleoj/BWA-Website<file_sep>/resources.php
<?php include('Includes/header.php'); ?>
<div class="contentBox">
<div class="row">
<hr>
</div>
<p style="font-family: 'Goudy Bookletter 1911', Georgia, Times, sans-serif">
<h2>Resources</h2>
<p>
<center>Click to download</center><br... | 5fd5f67b0b5e0ad5dcc851ff3046fb7313cc3ac8 | [
"JavaScript",
"Markdown",
"PHP"
] | 12 | PHP | michelleoj/BWA-Website | 8bdd448875d421cc3235fae131a8f9bf47079386 | 84b099a9e479ac76d1a42757d0f2c63db9fe09c0 |
refs/heads/master | <repo_name>rockcoolsaint/wafi<file_sep>/app/controllers/transactions_controller.rb
class TransactionsController < ApplicationController
before_action :set_account
def transfer_page
end
def transfer
@errors = []
if (@sender_account.present?) && (@sender_account.balance - @amount.to_d < 0.00)
... | b07acc947d1665fe292d10adc9d76ebfeebbb7ba | [
"Ruby"
] | 3 | Ruby | rockcoolsaint/wafi | ed15b8367010a7ead6d5b0ae58cb3d9c059a804f | 974250b0c31c24c1c51849389d4706333d44df54 |
refs/heads/master | <file_sep>package FormAPI.api;
import cn.nukkit.form.window.FormWindow;
public interface FormImpl {
FormWindow get(String name);
FormWindow get(int id);
int getId(String name);
void add(String name, FormWindow formWindow);
}
<file_sep># FormAPI for NukkitX
###### Keep track of form sending from ... | 8ba4f8a26bda8f94c3910870b94498ad3a3881e2 | [
"Markdown",
"Java",
"Gradle"
] | 3 | Java | iAtomPlaza/FormAPI | 5ce2f7538b550657e54989c4ba45a100a15352d6 | 8565e78aed4a75aecedf147f7250f16aec636667 |
refs/heads/main | <file_sep>var firebaseConfig = {
apiKey: "<KEY>",
authDomain: "let-s-chat-web-app-90bcf.firebaseapp.com",
databaseURL: "https://let-s-chat-web-app-90bcf-default-rtdb.firebaseio.com",
projectId: "let-s-chat-web-app-90bcf",
storageBucket: "let-s-chat-web-app-90bcf.appspot.com",
messagingSend... | dad75369715a1910252d13b4805736e47e470327 | [
"JavaScript"
] | 1 | JavaScript | Tanvisingh10/project-94 | 98343488a73c9c04479f585eb7d2dd7c10e61ece | b0064078467e646cefcf131e3a07c8c7e2675121 |
refs/heads/master | <file_sep>import express from 'express'
import cors from 'cors'
import { connect, set as mongooseSet } from 'mongoose'
import errorMiddleware from '@middlewares/error.middleware'
import FeatureToggleRoute from '@components/feature-toggle/feature-toggle.route'
import CustomerRoute from '@components/customer/customer.rou... | 02158532fadd58542c73a258f8ad599362e241eb | [
"Markdown",
"TypeScript"
] | 35 | TypeScript | artyMh/feature-test-app | 3c25d9b44cdff8b703dc2ca2ce4c216d71482a01 | 7973487b825a933a2d3a31620e4d2db75ea0e731 |
refs/heads/develop | <file_sep>/**
* Copyright 2016-2017 The Reaktivity Project
*
* The Reaktivity Project licenses this file to you 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/licenses... | cb1f7908cc906489cd9aa4a1522990b91385879a | [
"Java"
] | 2 | Java | dpwspoon/nukleus-http2.java | 44f6239d84536a046f3f7cdfd9d50f2870d02752 | 6126de146a1c5cf44ea96eaa8d5ec8ea223b702c |
refs/heads/main | <repo_name>Kot-Anna/BlogPost-TeamProject<file_sep>/include/profileupload.php
<?php include('../config.php'); ?>
<?php include('registration_login.php');?>
<?php
//when we click the button
$userid = $_SESSION["user"]["id"];
if (isset($_POST['submitedit'])){
$errorlist = [];
$fname = $_POST['edit-name'];
... | 180c22a8b55cc23d3ed5ee0ba5c2ca313fd3e38a | [
"JavaScript",
"Markdown",
"PHP"
] | 17 | PHP | Kot-Anna/BlogPost-TeamProject | 3ded51719f2f15c9e2e7fe8f3ea4694620020749 | db941c40049dd7204937b6a37249e4c87df42571 |
refs/heads/master | <file_sep>package com.android.assignment.trendinggit.ui.repository
import android.R.attr.fragment
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.ViewCompat
import androidx.core.view.doOnPreDraw
... | e2065272859f26237de7e4a434d1d74bf0ac81ba | [
"Markdown",
"Kotlin",
"Gradle"
] | 31 | Kotlin | prdp89/Trending-App | 28394bbf2157b5c1b1f46e01f9cd6a23a684b23d | 4b0d611337f36dd000167c49af9b99baa476de9a |
refs/heads/main | <repo_name>TMTien3004/Bank-Management-System<file_sep>/system.h
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define max 10
int count_arr[max] = {0};
struct client
{
int acc_no;
char name[20];
char gender[2];
int age;
char phone_num[10];
long balance;
};
struct client clientreco... | 8efb884e22b4ad0c50403589a3a6ccf2b27a5cc3 | [
"C",
"C++"
] | 2 | C | TMTien3004/Bank-Management-System | ea0d2194932f8e638843da39cfe33d97ab8bacd4 | dcb536ab0366d7891cc7a30a063deeaa19ce2dbe |
refs/heads/master | <file_sep>export const equals = (e1, e2, equalCondition, strict=false) => {
if (!equalCondition || typeof equalCondition !== 'function') {
return strict ? e1 === e2 : e1 == e2;
}
return equalCondition(e1, e2);
};
//
export const contains = (collection, element, equalCondition) => {
if (!collection) {
th... | cd42fc636b1188c5aa9f9979d577c11689406f42 | [
"JavaScript"
] | 10 | JavaScript | BaoXuebin/xdbin-miniapp | 968b1ea32c6c6cbceb7d52d7355837c90eff4d1a | 659ddcbb55210335221339e01a7340820ac54d70 |
refs/heads/master | <repo_name>rcbiswal/iaac-mycommunity<file_sep>/install_apache.sh
#! /bin/bash
yum update -y
yum install httpd -y
service httpd start
chkconfig httpd on
yum install git -y
git clone https://github.com/rcbiswal/mycommunity-project.git
cp -p ./mycommunity-project/* /var/www/html/ | 8fa7c484270338e0c903dd456bc48ade0a0af6cc | [
"Shell"
] | 1 | Shell | rcbiswal/iaac-mycommunity | df8c3ce21e9bd9a79bfd00752dd841c241596f29 | 9da1159912a3a1de66630c3d9a7f719082dc75a4 |
refs/heads/master | <repo_name>cDrucky/base-react-app<file_sep>/README.md
# base-react-app
This is a base app with prettier and linter config.
I use this as a jumping point for any freelance React apps that I plan on creating.
It has the prettier config I prefer, Parcel, Reach Router, eslint, and other various config settings.
Feel fr... | 14958e008ccfaa1263b527f42b1c5ca0f24e5f82 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | cDrucky/base-react-app | 74b486802ebf9ed6f97e41a9818c136cd94acac6 | 8d0d6030fcf9aef58052ffb233d06f073a1891e3 |
refs/heads/master | <file_sep>sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/ui/model/json/JSONModel"
], function (Controller, JSONModel) {
"use strict";
return Controller.extend("Camera.controller.Home", {
onInit: function () {
this.getView().setModel(new JSONModel({ //modello di default gestito da controller (alias empty ... | 84d4fd13938885aea45f7535aeaddd69deb2a09b | [
"JavaScript"
] | 2 | JavaScript | gf-espedia/JobsScheduler | 7e4fdcc876267aaf0d2a112ab970df3b8fd9b27f | dd5a9319028ba2c36e4f8d75135b3ce6bba635aa |
refs/heads/master | <repo_name>smx-smx/RekoEclipse<file_sep>/RekoEclipse.plugin/src/main/java/com/smx/rekoeclipse/plugin/StatusHandler.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 com.smx... | e4c2e48a11a0cf8a9087bdd842151e6ba01721b0 | [
"Markdown",
"Java",
"Maven POM",
"INI"
] | 19 | Java | smx-smx/RekoEclipse | c9ddca0c54ae2eda4c6ae80214339537750b1c62 | 450f9b24d7952987b082f1f59ad4f9d3a85f97b0 |
refs/heads/master | <file_sep>import sys
import os
#from PIL import Image
from tensorflow.python.keras.preprocessing.image import ImageDataGenerator
from tensorflow.python.keras import optimizers #Optimizador para entrenar el algoritmo
from tensorflow.python.keras.models import Sequential #Ayuda a hacer redes secuenciales
from tens... | 0e21c91c8f343a1b9ea3696eaa4e3970b5333b2a | [
"Python"
] | 2 | Python | pldelao/practicas | b9de54d2ca9afe888cf333a718398c317ec5c601 | f4d73a3ba969f89c99a8f19ddc5300c8765b7df0 |
refs/heads/master | <file_sep><?php
$host = "localhost";
$serverName = "root";
$serverPassword = "";
$dbname = "user1";
$connection = mysqli_connect($host, $serverName, $serverPassword, $dbname);
?>
<file_sep><?php
session_start();
if(ISSET($_POST['message']))
{
$link = mysqli_connect('localhost', 'groupchat', 'groupchat', 'users');
i... | 9da0bab40ac84cb1d352292037f1690f72179c3f | [
"PHP"
] | 4 | PHP | Abhi52425/project | 0c118b715de162d899b130b264e05d7440a00af5 | fb6e4e0511ad723fe0fa2e203027b45153d20359 |
refs/heads/master | <file_sep>import React from 'react';
import ReactDOM from 'react-dom';
import fetch from 'isomorphic-fetch';
class App extends React.Component {
constructor(){
super()
this.state = {
items: [],
}
}
componentWillMount() {
fetch("https://www.reddit.com/r/newsokur/.json")
.then(responc... | 6e64f3cfbd939a6f411aa810fc0a8bd0734bb93d | [
"JavaScript"
] | 2 | JavaScript | lanocci/react-yarn | 5d18405eeb2f2463d73e331a0ede1d4cf82cae82 | 250228f50b07cc316ca0612d66ad0c432c6e6ffe |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;
namespace Controlador
{
static class Program
{
private static int nombre;
private static int codigo;
pub... | 89031eba3aaf6e973d019d349b79f5efd32499da | [
"C#"
] | 1 | C# | Leinadh/TallerGit | 92b2ad4643d1c6b294691a346f7dbb16fd841d30 | fbe1433b4a4d456b13b647429f43c63e5c9cafa9 |
refs/heads/master | <file_sep># Android TV project.
项目截图


:
def run(self, edit):
region_set = self.view.sel()[0]
region_text = self.view.substr(region_set )
region_text_list = re.split("\n{2,}", region_text)
se... | 6f6e38fa68b31b36bc976c3f61d4e88d955f9300 | [
"Markdown",
"Python"
] | 2 | Python | fountainer/ReWrap | 00c06b84cc9682d77dac6d598d7fb7364d4ed09a | 81557a91585a09705025711b8ae3f7bb430ab051 |
refs/heads/master | <repo_name>ITKWeb/MiaMiam<file_sep>/public_old/javascripts/services/network.js
app.factory("Network", ["$http",
function ($http) {
var isMocked = false;
var isLoginMocked = false;
var peopleList = [
{"name": "Marine",
"surname": "Miquet", "car": "Twingo de noël", "places": 3},
{"name": "... | 80ebd74cf89746dac020dc97a053b2bc9a03afdb | [
"JavaScript"
] | 6 | JavaScript | ITKWeb/MiaMiam | 5b9cce854dbc9e5ad98a5c4d27c90f66ca658b12 | 4d384d993a8bf96905355ddecc533a4d328ecf56 |
refs/heads/master | <file_sep>import numpy as np
if __name__ == '__main__':
f = open('data/modified_data_all', 'r')
new_file = open('data/sampled_train', 'w')
for i, line in enumerate(f):
line = line.strip()
line_split = line.split(' ')
if line_split[-1] == '1':
new_file.write(line + '\n')
... | e9494b589ff7cff13a8f44a92c3c3cfc56432612 | [
"Python"
] | 21 | Python | cultivater/ChangePhone | 01389d761372769474eef260327911bba7622abf | 073f94d1014d5b3f0d505ae4d85e29d28f51d527 |
refs/heads/master | <repo_name>isu-meta/Metadata-Training<file_sep>/metadataTraining_session14/materials/image_extractExifMetadata.py
#****************************************************************************************************************************************************
#
# This module is designed to pull "Image ImageDescript... | 69be16eeeb0519e443afacadf8407a46c8b3f32e | [
"Markdown",
"Python"
] | 9 | Python | isu-meta/Metadata-Training | 9e36dc0346e9e874065dae77fdc30113cdaf1c0a | 00d43d981d9f602c21470b0a0466f4d1534cc01d |
refs/heads/master | <repo_name>Sadestevens/travelapp<file_sep>/travel/db/seeds.rb
# 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 rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicag... | b25f8dd5cc4cf15e6b3ee07fa2ae53dfe06e7002 | [
"Ruby"
] | 7 | Ruby | Sadestevens/travelapp | 4aa0130fca13e0cc1ea06fdaaee1263e8b76a2d4 | fb52974a377ee4331f790e228bfa45ff7ba1e439 |
refs/heads/master | <repo_name>fhssn1/open.gl-depthstencils<file_sep>/p6.c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <GL/glx.h>
#define PNG_DEBUG 3
#include <png.h>
#include <kazmath/kazmath.h>
#define M_PI 3.14159265358979323846f
#ifndef nullptr
#define nullptr NULL... | 15f834ae8c7f7c1b167a81a40c32c17a9fd46f66 | [
"C",
"C++"
] | 2 | C | fhssn1/open.gl-depthstencils | 24474d664aac12051588bdd22ce17b1e5271cb7f | 02568ac6893898781d723a9e6e61effcd111ad01 |
refs/heads/master | <file_sep><?php
/**
* @var $level int
* @var $categories array
* @var $category \app\models\MenuItems
* @var $this \app\components\CommonWidget
*/
use \yii\helpers\Html;
use \app\models\myModal;
?>
<?php foreach ($categories as $category): ?>
<li id="<?= $category->id ?>" class="<?= !$category->children ? '... | 6a365072c68e37b1d5f9bed29433c799e1531fd4 | [
"Markdown",
"JavaScript",
"PHP"
] | 15 | PHP | a-s-kash/test-category-tree | 8777e1f151c3d86b9508fb4de3522bcd8dbfc836 | 4696776b0db4ea2414994c1f58bf0dd1b52730d4 |
refs/heads/master | <repo_name>poorva29/gilmour<file_sep>/test/testservice/subscribers/test_subscriber.rb
class TestSubscriber < TestServiceBase
Topic = 'test.topic'
WildcardTopic = 'test.wildcard.*'
Simulation = 'simulate.topic'
Republish = 'test.republish'
def self.get_callback
@callback
end
def self.callback
@ca... | 07430580f188b4daa45a632a01ffaed9775228ff | [
"Markdown",
"Ruby"
] | 14 | Ruby | poorva29/gilmour | 4e386b31bc8e220e2bb1bcc8080c75bbf8e20734 | dd24296bcbc79c0ce179e9eca337e1b5bf1cbcad |
refs/heads/master | <repo_name>wademauger/React-Typescript-Parcel-YABR<file_sep>/src/utils/weekGen.ts
const MDYtoDate = (M, D, Y) => (new Date(`${M}/${D}/${Y}`));
/**
* @param startDate the Date of the sunday at the beginning of the week
* @param rolloverLimit the number at which the current month ends, where the next month should be... | 6611a725f58dbface9c0eab11534d567c1962482 | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | wademauger/React-Typescript-Parcel-YABR | 6f38e17a3d582c6c6126511eba0f02be70c18dd5 | e3212d50a20889f3010b793926c00905b14376e3 |
refs/heads/master | <file_sep>#include <errno.h>
#include <fstream>
#include <getopt.h>
#include <iomanip>
#include <iostream>
#include <libgen.h>
#include <string>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unordered_set>
#include <wait.h>
#include <vector>
#include "astree.h"
#include "auxlib... | 1572671bb03c65032b189fd7fca23223b843bf76 | [
"Markdown",
"C++"
] | 2 | C++ | EthanYu22/C-Plus-Plus-Compiler | 2b101e86d71d3e887615918c0b4dafb1082af40e | facc98076f89e89258d32056976e237e2640b2e9 |
refs/heads/master | <file_sep>/**
* Created by lang on 2015/6/28.
*/
var fs = require('fs');
var str = '异步写文件并读取';
fs.writeFile('./text.txt',str,
{encoding:'utf8',mode:0666,flag:'w'},function(err){
if(err){
console.error('写文件错误');
return 0;
}
fs.readFile('./text.txt',
{enco... | 9232636b1a2fdffd2af7a75798cd862686ccdfff | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | langzhining/node_201503 | 1ff338758c7b68c0ce4bba5bfc9fdab99ef4a1a7 | 5b18b56fe9679a357a2f5d79bfd791dfee9ad3f4 |
refs/heads/master | <repo_name>spiritfilledtega/django-deployment-example<file_sep>/BrainTask/ProTwo/populate_appTwo.py
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ProTwo.settings')
import django
django.setup()
import random
from faker import Faker
from appTwo.models import Topic, Webpage, AccessRecord, User
fakegen = Fa... | 798a5f08433cdcfdae778fb495f3db994b7b8ec4 | [
"Python"
] | 3 | Python | spiritfilledtega/django-deployment-example | 1815bfc83da3ff3a1795587dc7661b3ceacc20c9 | 833fc458ea72e96a2485b1f29daba8c81a5c8b8e |
refs/heads/master | <repo_name>littlesaurabh/SpendWise<file_sep>/src/app/pages/analytics/month/month.page.ts
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import { AnalyticsService } from '../analytics.service';
import { Chart } from 'chart.js';
import * as jsPDF from 'jspdf'
@Component({
selector: 'month',
t... | f122ee193f598c0b960ffd16d5b7250ead10f77d | [
"TypeScript"
] | 8 | TypeScript | littlesaurabh/SpendWise | 920c85a1452d1a0b17fce16671cf311e9096c625 | 87d7b9f68ef69451799eb89e0507dd83c7fcdb1e |
refs/heads/master | <repo_name>chunerlaogong/YiYuan2018-HW_V2.0<file_sep>/TAG_COMMON/struct.h
#ifndef struct_h
#define struct_h 1
#define MaxheartBeatCnt 4
#define RfReciBufferSize 50
#define TxReciBufferSize 50
#define LastCmdTempBufferSize 50
#include <math.h>
#define GetSignChangTolong(x,n) (((x&0x8000)!=0)?(-(((long)(-x))... | 4022d33fc6b77c2e3f9869e91ace647bb4fbffb0 | [
"Markdown",
"C",
"Text"
] | 60 | C | chunerlaogong/YiYuan2018-HW_V2.0 | e56907838bd9a6160af194776dfc9a804fdb0547 | 1adbbd671153ab943d9acd5d502d3bcb96057ae9 |
refs/heads/main | <repo_name>pmsdOliveira/water-quality-knowledge-discovery<file_sep>/README.md
# water-quality-knowledge-discovery<file_sep>/csv_arff_converter.py
CSV = 'C:\\Users\\Utilizador\\Desktop\\data\\water_potability.csv'
ARFF = 'C:\\Program Files\\Weka-3-8-5\\data\\water_potability.arff'
RELATION = 'water_potability'
ATTRIBUT... | bbcdc57d1b9542db44a73dbb98c9a0361d0d2036 | [
"Markdown",
"Python"
] | 6 | Markdown | pmsdOliveira/water-quality-knowledge-discovery | c9bba96d7d95c6d3bdaad15a0cc6cca5b1f9f55c | 52f20d8f57571b44e820894635b5980ff4cda92b |
refs/heads/master | <repo_name>ashutosh3027/Rebate-Devjams<file_sep>/README.md
# Rebate (Devjams Hackathon)
## Project Setup
- Clone this repository And follow the bottom Instructions to setup both frontend and Backend.
### `Frontend-setup`
``` bash
npm install
```
``` bash
npm start
```
- Frontend has started on https://localhost:30... | 7a8e7b89e64ed288d9213429268f3418d0a40892 | [
"Markdown",
"Python",
"JavaScript"
] | 16 | Markdown | ashutosh3027/Rebate-Devjams | b272ef505a9948cfa930e63858af12a5a17824ac | 35f53f3c511e9c2fcbd43263a99e969ebbd36d6d |
refs/heads/master | <file_sep># CHANGELOG
## 1.0.6
- new method: memberExpressionReduction
## 1.0.5
- improve: logicalExpressionReduction
## 1.0.4
- new method: typeofOperatorReduction
## 1.0.3
- new method: ternaryOperatorReduction
- improve: binaryExpressionReduction
## 1.0.2
- new method: logicalExpressionReduction
- improve:... | 9b3675f3c97e6490ca1367c93bc46d8fe16990aa | [
"Markdown",
"JavaScript"
] | 2 | Markdown | buxlabs/astoptech | 2d9b9e7f332110735af1c8fa4f628a178054ea64 | a80a112266e994d9251899da1e34a1b2d1f795ee |
refs/heads/master | <file_sep>from django.db import models
from django.utils.translation import ugettext_lazy as _
from foundation_tenant.models.base.abstract_bigpk import AbstractBigPk
from foundation_tenant.models.base.abstract_thing import AbstractThing
from foundation_tenant.models.bizmula.workspace import Workspace
from foundation_te... | 8ac22dadac75a6968209997eae693db312deeef3 | [
"Markdown",
"Python",
"Text",
"HTML"
] | 351 | Python | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | 9b7c420d35806850da7e3ce66cffccfbc263bea2 |
refs/heads/master | <repo_name>BenQuigley/CDA_bot<file_sep>/bot.py
from requests import get
from bs4 import BeautifulSoup
from datetime import date
# Get the headline article from the website of local news sources
cdaPress = str(BeautifulSoup(get('https://www.cdapress.com/news/local-news').text, features='html.parser').find('div', class_... | 2b8653e1cd2cfa386cef68ee9ebf7c58ea2c65ea | [
"Python"
] | 1 | Python | BenQuigley/CDA_bot | 7341af7627fe5b88fba34385b6a102f47ff1ed1f | 20a87a648f1090ac4eaebeb4606905f3c84a86f6 |
refs/heads/master | <repo_name>atilafreitasjr/pastori<file_sep>/class/Historico.php
<?php
/*
* 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.
*/
/**
* Description of historico
*
* @author atila
*/
class H... | f6873867901274327e3d5efd871a772777cd28a7 | [
"Markdown",
"PHP"
] | 5 | PHP | atilafreitasjr/pastori | 04bc1bd10ccd3ac7c964744bda9610e2d0ef61b2 | d22c1650fd3d041423e92b3533f66edb12b11bbd |
refs/heads/master | <file_sep># this module is required for parallel processing
# parallel requires functions/classes to be in __main__ or already referenced.
# as this code is quite complex, the latter is preferred
import time
import timeit
import math
import numpy as np
from scipy import sparse
from copy import deepcopy
from scipy.stats... | 953d1e0b075f2a027fd01a271d5b65a7d64a458f | [
"Markdown",
"Python",
"Shell"
] | 15 | Python | julianhatwell/explain_te | 349d207fc02abe2e78e9f59bcca512e1986f8886 | 8f5092923b0738a36f30b9d6da3152b6bfa6fb33 |
refs/heads/master | <repo_name>whuzqlzq/JfxJsoupHtml<file_sep>/src/zq/javafx/jsoup/html/http/HttpExecute.java
package zq.javafx.jsoup.html.http;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.log4j.Logger;
import zq.javafx.jsoup.html.config.Config;
import zq.javafx.jsoup.html.util.Encode;
import java.util.HashMap... | c1c21d62b4441d48c7cb872b18cedfa02c0e61d1 | [
"Java"
] | 6 | Java | whuzqlzq/JfxJsoupHtml | 1b34418042d30af6f74a107e20b2549cadc8bd43 | 9333ef1af1c1033a97aac7f94552408120e7525a |
refs/heads/master | <repo_name>SociopathKP/Login_API<file_sep>/Login/urls.py
from django.contrib import admin
from django.conf.urls import url , include
from Test import views
urlpatterns = [
url('admin/', admin.site.urls),
url(r'^data/', include('Test.urls'))
]
<file_sep>/Test/models.py
from django.db import models
class Su... | 2af3ef0f71d432dddf31ed764393fac2b883ab68 | [
"Python"
] | 6 | Python | SociopathKP/Login_API | 7e177f68013cf70ac015c7862cd16673399d3784 | eaebe8b6950e9ded30c462ec114337acce3e31b4 |
refs/heads/master | <file_sep># MinnesotaOpioid
### Analysis of opioid prescription rates in Minnesota
## Because of the experimental nature of this analysis, I haven't written great code. It's mostly proof of concept for the tools I'm demonstrating.
Start with script StandardizeOpioid.py and, from files OpioidData????ByCounty.txt in Ra... | b987dd49d66b8f8c49220eefe646b7da59070702 | [
"Markdown",
"Python"
] | 7 | Markdown | rvatassery/MinnesotaOpioid | 44ab51891447d855189208cbaf52b3d06cb8f502 | 038dbf2a94be8171864453ab1ee7606671efc0eb |
refs/heads/master | <repo_name>ddemented/render-model<file_sep>/say.sh
#!/bin/bash
MESSAGE=$(php -r "echo urlencode(\"$1\");")
curl --data "" http://localhost:3000/say?message=$MESSAGE
say "$1" -v "$2"
curl --data "" http://localhost:3000/shutup
<file_sep>/public/images/build.sh
#!/bin/bash
echo "Creating robot spritesheet..."
rm -rf... | 9a36296b62200497d1020f21d35709aa0f0459b0 | [
"JavaScript",
"Makefile",
"Markdown",
"Shell"
] | 5 | Shell | ddemented/render-model | c6aa2549410e2bce7a668ceb385f21871ec761bd | 2fd05356f2b534f3bc1bf25b21719d453cd910a7 |
refs/heads/master | <file_sep>//
// launchScreenController.swift
// the learning app concept
//
// Created by omar on 5/31/19.
// Copyright © 2019 omarnader. All rights reserved.
//
import UIKit
class launchScreenController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColo... | a7b5c8b5da6fa1229b2bd8dbbe16e89a0d1a1241 | [
"Swift"
] | 4 | Swift | 0mAr5422/the-learning-app-concept | a9dd490c015ec5923d468c2f9c0352736cc50bcf | 2c704f76b7f74575eaf5ba8ee1f4e82f3990bf37 |
refs/heads/master | <file_sep>#ifndef TACT_SWITCH_H
#define TACT_SWITCH_H
// タクトスイッチを表すクラス
class TactSwitch {
public:
// スイッチの状態を表す型
enum State {
SW_UP, // 上がっている
SW_DOWN, // 下がっている
SW_PUSHED // 押された
};
private:
const int pin_; // ピン番号
// 押されたと認識されるのに必要なカウント数
const int push_count_;
int down_count_; // 下がってい... | 4c3c6cf6f2fa357990b081b4b1eb05f75c68e98f | [
"Markdown",
"C",
"C++"
] | 33 | C++ | hinanjo-tedasukekun/refugee_input_device_2 | 2aea599d519454000d25644795b363a1da603b1f | 0ca23d4dc93161d7322e24bb37d94cba89297747 |
refs/heads/master | <file_sep>import SmoothScroll from './modules/SmoothScroll';
var smoothScroll = new SmoothScroll();<file_sep>import $ from 'jquery';
class MobileMenu {
// dom selection usually and firing events when a page loads.
constructor(){
this.menuButton = $('.mobile-menu');
this.events();
}
//events to watch ... | f7650b343464c67a83f480310c8f6380721c1567 | [
"JavaScript"
] | 2 | JavaScript | gLo-810/cs-static | 58f1f3d5153ae078d2e04e362385baa3773a3afd | 72b1050d3f8d50b6f59b466fc023dc99dee5e4e9 |
refs/heads/master | <file_sep># riff-team-api
The riff-team-api provides a REST (http) and websocket interface for Riff teams.
## Resources
Build tool, components, development tools, deployment...
- [Resources][]
[Resources]: <./docs/resources.md> "riff-team-api resource doc"
## Development notes
The [article by <NAME>][proj-org-ar... | 2942ea0484f9673c1a31ec8193081d01331dafb3 | [
"Markdown",
"TypeScript",
"Makefile"
] | 18 | Markdown | mlippert/riff-team-api | 4cefef74c0edb5b1360f256c789d009ed6201a77 | 0a962efef2bf9d261414d93875e2b479a3c31eb2 |
refs/heads/master | <repo_name>FacuLbsz/ionic2<file_sep>/myFirstApp/src/app/app.module.ts
import { NotePage } from './../pages/note/note';
import { CardDetailPage } from './../pages/card-detail/card-detail';
import { DumyVideosPage } from './../pages/dumy-videos/dumy-videos';
import { NgModule } from '@angular/core';
import { IonicApp, Io... | 4e9e0c81bc21cb3f2c827d1d05f4a86526cfa3dc | [
"TypeScript"
] | 2 | TypeScript | FacuLbsz/ionic2 | 71e88b7ffa38a29b93993287acb96c9f7663aa4f | dc049e9e7b0c16628fd463e0bb09b7ee23b24a42 |
refs/heads/master | <file_sep>#Reviews

#Online demo example
http://przeor.github.io/react-router-flux-starter-kit/#/
#Dependencies
node, npm
gulp (npm install -g gulp)
httpster (npm install -g httpster)
#Installation
From "reactJS-flux-starter-kit" directo... | d27461a8f6250ae368fbe5b5c645d496340d506b | [
"Markdown",
"JavaScript"
] | 6 | Markdown | przeor/react-pdfjs-viewer-playground | 2d2a7c53fa5dd0413fe4c236a2b9f52f652c7560 | 22fe9910819b75d373ae4d122ad09f2f61f1501f |
refs/heads/master | <repo_name>lzabala/Patrones<file_sep>/src/config/AppConfiguration.java
package config;
public class AppConfiguration {
private static AppConfiguration appConfig;
private String idioma;
private String pathToFile;
public String getIdioma() {
return idioma;
}
public String getPathToFile() {
return pathToF... | 66a477128241200ae7b8185387b4ef30f041c1c2 | [
"Java"
] | 3 | Java | lzabala/Patrones | de84fc105d8295f0c9f2a105cff43cdad4815ab7 | a0f97b520028d29226f243a959d18bba137065a6 |
refs/heads/master | <file_sep>package com.suite;
import com.test.Test18;
import com.test.Test12;
import com.test.Test13;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
Test18.class,
Test12.class,
Test13.class
})
/*
@Test
public void fun12(){
... | 2a8b78fe318a5c8153f938e001ef91f043f1f82d | [
"Java"
] | 2 | Java | mwf5310/perfect | 4043bf8133707b3fd617c147e8f2ebdf4ede691f | e5bb437822d56701f7a0aeef646ede550ba747d6 |
refs/heads/master | <file_sep>import datetime
import simplejson
import string
import os
from stat import *
# Todo remove n^2 (easy fix), simplify
class Template:
abstract_header = ''
abstract_variables = ''
abstract_variable = ''
abstract_properties = ''
abstract_property = ''
abstract_footer = ''
def load(... | 329c389847d8c53b0e1cb7aea3500253e4e39c60 | [
"Python"
] | 2 | Python | stephan83/esoteric-framework | f21d2d2b82de7b3c2bc3d36b2f17f2c8fc8b5ffd | e03d1278aa61a450080075f423e049cca09b5e1c |
refs/heads/master | <file_sep># !/bin/python
# Author: <NAME> <<EMAIL>>
# Description: Getting fancy with linear regression.
# Using gradient descent to evaluate linear regression problems.
# Imports
import numpy as np
import decimal
# Linear Regression class
class LinearRegression(object):
""" LinearRegression model """
# P... | 1bfb0fc66e5668fa74d38bff9fa68690362205db | [
"Markdown",
"Python"
] | 4 | Python | matheus-santos/linear_regression | 370bdd48b6293e861f8d3521ab6ecea9750600df | 7ff4e95ef560fc5e3da481a8b25073c9a67cad4e |
refs/heads/master | <repo_name>wokeupsleepy/moon-law<file_sep>/resource_sharing/isk.py
"""
This is a discussion on how isk is pooled and distributed.
"""
<file_sep>/decision_making/central_planning_committee.py
class CentralPlanningCommittee:
def __init__(self, chosen_philosophy):
self.small_line_break = "------------------... | 0d222131ef514126d1a0189bb1d4a55ee1dd259a | [
"Python"
] | 3 | Python | wokeupsleepy/moon-law | 6938daeb8f18ae4b129b21d8de327777fc870b7c | 91837a1c3aeef9e296133b9221179218cadf5bf2 |
refs/heads/main | <file_sep>const express = require('express')
const userPage = express.Router()
userPage.get('/booking', (req, res) => {
return res.render('booking')
})
userPage.get('/thankyou', (req, res) => {
return res.render('thankyou')
})
userPage.get('/member', (req, res) => {
return res.render('member')
})
module... | d1ce41fd03ac9f438958ad068b4ac518c5ca1e2f | [
"JavaScript"
] | 1 | JavaScript | EasonLee1128/Taipei_day_trip_nodeJS | c3b57f07e285ebdf975f03847ebfebd575b6d4cb | 565abe6cddc2d6d603a6970291b645c17631e034 |
refs/heads/master | <file_sep># paceCalculator
A calculator to determine track workout paces based on race times
## Updated for heroku's newer runners
<file_sep>var paceController = (function() {
var goalTime = function(distance, units, rawTime) {
this.distance = distance;
this.units = units;
this.distInMeter... | f7bc2c8a84da1a54b314670d660a1e1c6e0c8b43 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | joycemr/paceCalculator | 007fa0270350f1e7fed3a96ec60b2c1632175139 | 8e106c5f37eb1b1592668edf73ab39c978be0c76 |
refs/heads/master | <repo_name>ivanmaulana/todo-list<file_sep>/README.md
# Simple Todo-List (made with Angular 4, Bootstrap v4, toastr)
Demo Visit [Here](https://todo-list.agri.web.id).
## Installation Guide
Run `npm install -g @angular/cli` to install Angular-CLI. This is required, because this project built with Angular CLI.
Run `n... | 234005bdc611af1dbf4feaf4276fc44a38a0ee6b | [
"Markdown",
"TypeScript"
] | 2 | Markdown | ivanmaulana/todo-list | 6af11c0f2adaa275fc90d30f7b76afbedc9f4bd3 | 85832d9f8bc938bb22ec35d77c32fa698637912b |
refs/heads/master | <repo_name>SuchithShivakumar/JenkinsSampleExample<file_sep>/HelloWorld.java
public class HelloWorld{
public static void main(String[] args){
System.out.println("Running In Jenkins");
for(int i=1;i<=10;i++){
System.out.println("Hello World ..."+i);
}
System.out.println("Successfully");
}
} | 607f67075666486c6e2490c2749b2f0e3b4da4df | [
"Java"
] | 1 | Java | SuchithShivakumar/JenkinsSampleExample | d4fd80b41849df8d54608ee8bfaf309dfbc010f7 | cb28be511a8e095f89425eb78f29e9e94057f890 |
refs/heads/master | <file_sep>radio.onReceivedValue(function (name, value) {
if (name == "Left") {
bitbot.oledText(name, 0, 0, false)
bitbot.oledNumber(value, 50, 0, false)
if (value == 1) {
led.plot(0, 4)
led.plot(0, 3)
} else if (value == 2) {
led.plot(0, 1)
... | ef4b794e1b1273c0bb09f5819f2c565f5bd082bb | [
"TypeScript"
] | 1 | TypeScript | xfunctions/receiver | 86ba84d9d08fc328682f294cbb964fd8963fd5e1 | 40cf90a08941ae79b1e0c38e9e1a4b4d6867db40 |
refs/heads/master | <file_sep>/**
* Copyright (c) 2013 <NAME>
* See the file license.txt for copying permission.
*/
(function(Webvs) {
/**
* @class
* A component that simply runs some avs expressions.
* Useful to maintain global state
*
* @param {object} options - options object
* @param {string} [options.code.init] - code to b... | 9ac384b483c9c644ddf1dd7d96727f245f1266ec | [
"JavaScript",
"Markdown"
] | 26 | JavaScript | bendoh/webvs | dbba1d13d7347b16727acc2fd67d6ad93d01de1d | 4f24323bf3e76f17034a91ab7c70a6422c1b7c3c |
refs/heads/master | <repo_name>slester87/critical_path_analysis<file_sep>/CriticalPath.py
import networkx as nx
class Activity:
""" Point class represents and manipulates x,y coords. """
def __init__(self, activity_index, predecessor_array, activity_name, activity_duration):
self.activity_index = activity_index
... | 6333119d1de38728eb54909b3d1d1ce69f033451 | [
"Python"
] | 1 | Python | slester87/critical_path_analysis | d35f60d74f045c19d538b3edbfee34727363eb2f | 605baa6391854b2ea68d2a2fac72b64e68bff0db |
refs/heads/master | <file_sep>import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.optim as optim
from torch.utils.data import DataLoader
from nets.frcnn import FasterRCNN
from nets.frcnn_training import FasterRCNNTrainer, weights_init
from utils.callbacks import LossHistory
from utils.dataloader imp... | 933d9814d6447b807d41091a67217c3f35655fb2 | [
"Python"
] | 1 | Python | Unrealluver/faster-rcnn-pytorch | 5fe662ef75fd2a3fdfb63bf4ecad2c2a0b20f252 | 1d8d1819454f6200cb16cf25cb3498311394a429 |
refs/heads/master | <file_sep>var ul = document.querySelector('.content>ul')
var coffee = document.querySelector('.coffee');
var banar = document.querySelector('.banar');
var content = document.querySelector('.content')
var fix = document.querySelector('.fix>ul');
var fixBox = document.querySelector('.fix');
var titleItem = document.query... | 7a3b85006c953e9868260863c806509a8cfbcc1a | [
"JavaScript",
"HTML",
"Markdown"
] | 15 | JavaScript | cs1057327022/JavaScript | c6b01103c4829df0cb2bfc013c51148fc29e7595 | 72d48cd939997cf2a2cc3565d8c1cea4a84aeacb |
refs/heads/master | <file_sep># button-plugin
Spur plugin to add button features to a React component
<file_sep>var SpurEvents = require('spur-events');
var addListener = SpurEvents.addListener;
var removeListener = SpurEvents.removeListener;
var interationLock = require('spur-interaction-lock');
var current = {};
addListener(window, 'p... | 781b972c1be5caf383e4be1d378241f8c02cc9a9 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | spur/button-plugin | 485dae039ece467795db6a584bf5892cb5e85dfc | f53c89bbb533009f2dded8da4c0613013d89c83c |
refs/heads/main | <repo_name>lakshaysharma14/competitive_code_samples<file_sep>/474D.cpp
// User : mrhagrawal.
// Mail : <EMAIL>
// LinkedIn : http://bit.ly/honeylinkedin
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define mo 1000000007
// lli fact(lli k)
// {
// lli ans =1 ;
// while(k--... | b7c31f221286ceefec9a95f6f15260fe71d74c3b | [
"C++"
] | 1 | C++ | lakshaysharma14/competitive_code_samples | df40d72ac26b16c07f02eea63fa4df6f6266d0a9 | fc28fa8050b226bd4f7fe1c7b97f9f68a30f556d |
refs/heads/master | <repo_name>qsz/qlex<file_sep>/config/base.js
'use strict'
let path = require('fast-path'),
ExtractTextPlugin = require('extract-text-webpack-plugin'),
appPath = path.resolve(__dirname, '../../../', 'app'),
publishPath = path.resolve(appPath, '../', 'publish'),
publicPath = path.resolve(appPath, '../', '... | d89703170bea34c3336f52292bd2305e6fe73581 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | qsz/qlex | 4fabe2fe567d9def70e7d9a3d0ca87328f1a59d8 | f630ef7e8b0ae9aafb05cdeb250fba0521475047 |
refs/heads/master | <repo_name>yayuntian/hpcap<file_sep>/hpcap_replay/hpcap_replay.c
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <sched.h>
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <numa.h>
#incl... | a2872a8f7f729aefbefd20865b00876241bb737e | [
"C",
"Makefile"
] | 6 | C | yayuntian/hpcap | 9274a34585e8fb1f57d2982bd1f7e6543169ed9b | 9d0c83ecaac4f52baf39c6dc70e43f1ce4503f41 |
refs/heads/main | <repo_name>egehurturk/JavaAlgorithmMedian<file_sep>/README.md
# Algorithm
Given two arrays (n1, n2), first merge these arrays.
Then find sort the merged array in an ascending order
Then compute the median of the sorted and merged array
Print the result
Performance: 
... | 54d70f28eacdfb8f966a1296dada01def2727150 | [
"C#"
] | 3 | C# | GhassenASKRI-Git/CoffeeMaker | beb3a6af052531fef6632c363d8f3720ef90f2c6 | 8f6340f7bbf81356ccbab68b38ae9e3ec03a63a8 |
refs/heads/master | <file_sep>function isBalanced(str){
let brackets = [];
let result = 'YES'
for(let i = 0; i < str.length; ++i){
let char = str[i]
//LEFT BRACKETS
if(char === '(') brackets.push(char)
else if(char === '{') brackets.push(char)
else if(char === '[') brackets.push(cha... | b250c0a7dd85e33729ee7d52a12e4dd94452cf29 | [
"JavaScript"
] | 1 | JavaScript | brembo97/Coding-Questions | 8611c7a18ae75afd8b79f3c693524b52c632d2d4 | 816ddfffcc61036a19a1b2002569f33a121d9e6f |
refs/heads/master | <repo_name>Deepashree2829/OrderManagement<file_sep>/src/app/login/login.component.ts
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginCo... | 4f74fbf42f5b639559a49a6b9df2f22b15fb75f3 | [
"TypeScript"
] | 4 | TypeScript | Deepashree2829/OrderManagement | 8af25c15c32dcb0822a0cb00cc780369b8f363ef | 8446aa6b87351a08601ff7a7f8513f57a1457817 |
refs/heads/main | <file_sep>
"use strict"
/*This is the call
*/
const url = "https://api.openweathermap.org/data/2.5/weather?q=Davie,fl,840&APPID=";
//This is the Ajax call
$.ajax({
url: url,
success: function (result) {
console.log(result);
console.log(result.name);
$("#location").text(result.na... | 3d38e6fb938ee4ad41ec2298fe24d27c4fe98ea4 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | MailingDelgadoMedina/myWeatherApp | b45e84788f60c429c5df2b3f62ec5c29843384c1 | 63ae6ec369d7c224643c4ff92edc14e9555686ab |
refs/heads/master | <repo_name>arifpro/gp-react<file_sep>/src/components/Home/Testimonials/Testimonials.js
import React from 'react'
import './Testimonials.css'
import testimonials1 from '../../../img/testimonials/testimonials-1.jpg'
import testimonials2 from '../../../img/testimonials/testimonials-2.jpg'
import testimonials3 from '../../... | c55df3c22eea14c775e324ac00995580270c9618 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | arifpro/gp-react | 3e53824477aa187d07e0f1b99df06ca53823fea1 | 5e1e31b6324455c7f72ce4e284f50ee840a6f427 |
refs/heads/master | <repo_name>i-lateral/silverstripe-childhubpage<file_sep>/code/control/ChildHubpage_Controller.php
<?php
class ChildHubPage_Controller extends Page_Controller
{
public function PaginatedChildren($limit = 9) {
$list = $this->AllChildren();
$pages = new PaginatedList($list, $this->getRequest());
... | 164e7fef760597262d9d02740e58ad5dadc1849c | [
"Markdown",
"PHP"
] | 3 | PHP | i-lateral/silverstripe-childhubpage | a859d731109a18a85f4e8e6ae1461efe2cc9b341 | 51608fc45a968591b3166bfc21c68e6dc10ac1fb |
refs/heads/master | <file_sep># Write a class to hold player information, e.g. what room they are in
# currently.
from room import Room
class Player:
def __init__(self, name, current_room):
self.name = name
self.current_room = current_room
def __str__(self):
print(f"{self.name} is currently in {self.c... | b0a7352e55ef424d41b9eea3f850274389bda3a4 | [
"Python"
] | 2 | Python | CodyMorley/Intro-Python-II | 36497227dac33353de3eaaecf2c263e3cb9340cc | 03154a837a58ef78090d9ab1d0682c7f20f06829 |
refs/heads/master | <repo_name>vmalkoch/angular-end2end<file_sep>/e2e/app.e2e-spec.ts
import { EndAppPage } from './app.po';
describe('end-app App', () => {
let page: EndAppPage;
beforeEach(() => {
page = new EndAppPage();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(page.getPa... | 911f2b554bc3d5745ae61389bd2b7745c2d5dc9d | [
"TypeScript"
] | 1 | TypeScript | vmalkoch/angular-end2end | bf5de970b2cf67f5ff84a09f908418937a0bd0f3 | 61eae5e6ddefa3c01813e0181a45c54a96e47173 |
refs/heads/master | <repo_name>DikeDanny/elearn<file_sep>/main/resources/elearn.sql
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Client : localhost:3306
-- Généré le : Dim 25 Novembre 2018 à 00:48
-- Version du serveur : 10.1.34-MariaDB-0ubuntu0.18.04.1
-- Version de PHP : 7.2.10-0ubuntu0.18.... | 0251e0497c36069ee25a5aec3767ef1ed98cde00 | [
"Java",
"SQL"
] | 6 | SQL | DikeDanny/elearn | 295b6aa486d46d7b8be7460c510401e5a6a9820f | 82a248d6b101f64416c851d64e46a929766cd3b5 |
refs/heads/master | <repo_name>jojacino/Scientific_Calculator<file_sep>/README.md
# Scientific_Calculator
JavaScript Scientific Calculator
_________________________________________
To View click link below
https://compassionate-bohr-527437.netlify.app

<file_sep>/script.js
/**** Javascript Design... | 7f0d397cb886b3e44b29c504bd8b0a3ea6d0f649 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | jojacino/Scientific_Calculator | b315f017ddcbae77585f8e100071fd00fe3949ec | e4bc52d41ccd0c3946b3eec222347bf86daa17b5 |
refs/heads/master | <file_sep>version: '3'
services:
apps:
build: apps
# env_file: nodejs-service/.env
environment:
JAEGER_SERVICE_NAME: main-service
JAEGER_NODEJS_APP_NAME: nodejs-app
JAEGER_PYTHON_APP_NAME: python-app
JAEGER_SAMPLER_TYPE: const
JAEGER_SAMPLER_PARAM: 1
# by default, jae... | fd03991b24813a954782356a4b2c89abd605762c | [
"YAML",
"JavaScript",
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 10 | YAML | mattiacapitanio/distributed-tracing-with-redis | cc7ca82e5e644783891c36986b053e7ff9d46bca | a981552c4410830f60ff67cb7e579922724930cc |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using it.polito.appeal.traci;
using de.tudresden.sumo.cmd;
using de.tudresden.ws.container;
using System;
public class SumoBehavior : MonoBehaviour
{
public GameObject carPrefab;
public GameObject lanePrefab;
public f... | ae13c45618412ddc524fe888af0dcc004a9bba2e | [
"Markdown",
"C#"
] | 5 | C# | iamrohit1/Aarty | f1685262df19b17afc219bc08d8d995c9275fc8a | 29e7ed48f02a5b06873cf47056dbdb5e15d3018e |
refs/heads/main | <repo_name>italia/bootstrap-italia<file_sep>/docs/organizzare-i-contenuti/immagini.md
---
layout: docs
group: organizzare-i-contenuti
toc: true
title: Immagini
description: Documentazione ed esempi per l'inserimento di immagini responsive, che quindi non diventano mai più grandi dei loro elementi genitore.
---
Le imma... | 269768bbc80b4bfb38a856517bb741fa6a2a1869 | [
"Ruby",
"YAML",
"HTML",
"Markdown",
"JavaScript",
"Python",
"Text",
"TypeScript",
"Dockerfile",
"Shell"
] | 189 | Markdown | italia/bootstrap-italia | b5b7a6e1406e06873edf08bce69502bfca146a19 | 4dc97474fead2e59605c3951ef80135ec77382a4 |
refs/heads/master | <file_sep>This folder contains the following 5 files:
* RScript:
- R-script used for the comparative regression analysis of 3 models all using a negative binomial general linear model. It can be opened in R. All relevant tests and plots are contained in the R-script
* QGISScriptKilledByPolice.py: >
- ... | 8aaee47d7a839f20e95c7677da62a8dbfeab7152 | [
"Markdown",
"Python"
] | 4 | Markdown | bigdata-i523/hid347 | a19913c17dd3291fc9d37f3df47295527d1870cd | 622494cd38f4ee3c99958bd54dfa37987af65983 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.