branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>vinett-de/itedd<file_sep>/db/seeds.rb
user = User.where(email: '<EMAIL>').first_or_create!(
password: '<PASSWORD>',
password_confirmation: '<PASSWORD>',
admin: true,
approved:true
)
user.user_group ||= UserGroup.create! name: 'Ruby Dresden', website: 'http... | 218586be0afca813069f26d1cabc9ac5630f3535 | [
"Ruby"
] | 2 | Ruby | vinett-de/itedd | cf2d8c80ec3b6ccf8646fb9d019bcb1bdec2a3f0 | 1534f0eca81865510837a106fb7f28fc6f4627de |
refs/heads/master | <repo_name>steliyansyarov/Tetris<file_sep>/README.md
# What I learned:
* Writing first program on javascript
# Task:
Creating a version of the game `tetris`.
## How to run:
Opening the html file in the browser should start the game.
If the game doesn't start uncheck `Block third party cookies` in the browser setting... | 5a1f0eea44a3d1f0cd6279b28e03d08eb7a711d3 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | steliyansyarov/Tetris | f77045c46ac7f060d3c3f835b9ed2d69c1eca5c9 | 18b4acd25cd3b252f2d754d328c8c3688b715bbc |
refs/heads/master | <repo_name>LTSteve/NeonShift<file_sep>/Assets/Scripts/InfiniteRunner.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InfiniteRunner : MonoBehaviour
{
public PlayerController2D player;
private GameObject chunkRoot;
private GameObject[] chunks;
private fl... | 5348f0acd791002e8c8ac5db1b0b5ea1785a65d5 | [
"C#"
] | 1 | C# | LTSteve/NeonShift | 8f527eee8a2284383eb12457a3eeada4d49f62c7 | ad3e3368737ee57eca3e05a56e90e54dd578c6eb |
refs/heads/master | <file_sep>//
// ViewController.swift
// SensorAcelorometer
//
// Created by <NAME> on 11/07/19.
// Copyright © 2019 Apple Academy. All rights reserved.
//
import UIKit
import CoreMotion
class ViewController: UIViewController {
let motionManager = CMMotionManager()
@IBOutlet weak var viewImage: UIVie... | b9277efce71700a079338b5e9a9d44241df09139 | [
"Swift"
] | 1 | Swift | mparhusip/SensorAcelorometer | cc40e8aa3bd41583179610f65b6070663a66ae16 | 29ec1e8a1858827fdd87bb8f7796dd3f7c0f683e |
refs/heads/master | <repo_name>kudo1218/php_lesson_1-2<file_sep>/top.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>課題1-2</title>
</head>
<body>
<form method="post">
<input type="text" name="text"><input type="submit" value="OK">
</form>
<?php
$fruits = ['apple', 'orange', 'strawberry'];
$r... | cce14812c41ae684a7729a7e0d136d978eb666f5 | [
"PHP"
] | 1 | PHP | kudo1218/php_lesson_1-2 | 6fe48b0124b2145783ba27acbc550850a13b0249 | 181b1ca0cd6b6bd095b081fef0079613d531122f |
refs/heads/master | <repo_name>bgao11/MyExamples<file_sep>/language/src/main/java/com/zzmstudio/learning/language/WithoutGetter.java
package com.zzmstudio.learning.language;
/**
* Created by IntelliJ IDEA.
* User: gaob
* Date: 2/14/12
* Time: 4:03 PM
* To change this template use File | Settings | File Templates.
*/
public class Wi... | 865ab936dd64f057b375dc75e850ca9c9048f9d8 | [
"Java"
] | 2 | Java | bgao11/MyExamples | 57b205102a8dfee7f1cb0209c7a1c74c4cc2d981 | 9363380a8e20a5d47f96e7e344b041f3ef7b82e3 |
refs/heads/master | <file_sep>#region Header
/**
* JsonDataTest.cs
* Tests for the JsonData class.
*
* The authors disclaim copyright to this source code. For more details, see
* the COPYING file included with this distribution.
**/
#endregion
using LitJson;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using... | 247b39421a7a6da0038ab27c725040fd47a8bb25 | [
"C#"
] | 3 | C# | cstensonpv/LitJsonUWP | 50aea833ab9e9e77961a968d195cd9415fc139e5 | 7741a1d086f43e1f6fd1c5ab58db83c3e3822076 |
refs/heads/main | <repo_name>charlesincharge/caltech-ee148-spring2020-hw01<file_sep>/run_predictions.py
import argparse
import pathlib
import numpy as np
from scipy.ndimage import gaussian_filter
from scipy.stats.stats import pearsonr
import skimage.measure
import json
from PIL import Image, ImageDraw
from joblib import Parallel, delaye... | 17c67364373d15fa558f85b91023b7434aea12c7 | [
"Python"
] | 1 | Python | charlesincharge/caltech-ee148-spring2020-hw01 | b4769165345104eb7684cae873754b6dc6e1d4fc | b4d0402fe7139fe48f306222c5fd808f7aa8bb07 |
refs/heads/main | <repo_name>Maria16339/6.4<file_sep>/Source.cpp
//Source.cpp
#include <iostream>
#include <string>
using namespace std;
template <class T>
class massif
{
T* v;
int size;
public:
massif(int newsize);
massif(massif&);
~massif();
T& operator [] (int index); // індексування
massif& operator = (const mas... | eb81b5716f088ed7fe4df371f454dcd3f804f19c | [
"C++"
] | 1 | C++ | Maria16339/6.4 | aa72609501321963403d30ff174f8605cd59c6a5 | a8373fd1ec209091b0e2a0e94cabaaed41b441e2 |
refs/heads/master | <file_sep>import uuid from 'uuid/v1';
const initState = {};
const itemReducer = (state = initState, action) => {
switch (action.type) {
case 'ADD_ITEM':
console.log('Add items', action.item);
return state;
case 'ADD_ITEM_ERROR':
console.log('create project error', action.err);
return ... | 9e76eb0fd9037fa863a5a63c6048cff95568606b | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | LucasZapico/state-of-the-workshop | 4e764369ee7cf6b8f9fb29e1a3b5c44cedd01d5c | b0a0c9e992b8a737635e7a10af0caa5acef37a9f |
refs/heads/master | <repo_name>Clark124/yilianghua<file_sep>/src/pages/SelectStock/List/index.js
import React, { Component } from 'react'
import './index.scss'
import { selectStockList, deleteSelectStock, deploySelectStock, canceldeploySelectStock } from '../../../serivce'
import { Pagination, Modal, message } from 'antd'
export default ... | be4e6c19ecadbbd48a08746eb0e27d0b11c07ebb | [
"JavaScript"
] | 47 | JavaScript | Clark124/yilianghua | fccf6e63eda8c203b30e7e419b5b095e34c614ff | ce2795e4cd8952b254ed8ab6582acddb3b0ffe14 |
refs/heads/master | <repo_name>ertert1/KRST<file_sep>/src/main/java/kk/sums.java
package kk;
public class sums {
public static float sums_rl(float k1){
float sum =(k1*1.2f)/220;
return sum;
}
}<file_sep>/README.md
[](https://travis-ci.org/ertert1/KRST)
<file_sep>/... | df34a2a31d7495adce6245631886d35be4ab534a | [
"Markdown",
"Java"
] | 3 | Java | ertert1/KRST | 738763d8938e5c1eab82ed53b052b940052f2d08 | 30c0d642ee5f0c259c926acc1f55b42b4fbd717e |
refs/heads/master | <repo_name>sake-wo/remote_repo<file_sep>/test.py
#!/usr/bin/python
print("hello")
print("hello")
print("beijing")
print("welcome")
print("from")
| 65b72f154919cb4b7377d5e5d7d3c0c80a58e6f1 | [
"Python"
] | 1 | Python | sake-wo/remote_repo | f3691c04fcd7ea97477d50f33ba46cfdc37c2a5f | 2695093c5e9ce8684695eaf3d9062509a7388e72 |
refs/heads/master | <file_sep>//
// AlertView.swift
// Weishangcheng
//
// Created by Rain on 16/5/18.
// Copyright © 2016年 zykj. All rights reserved.
//
import UIKit
import SwiftyJSON
protocol AlertViewDelegate {
func closeEvent(type: Int)
func selectVIPType(state: Int, amount: String, descript: String)
func loginEvent(... | a6720da4eb18ed819d22ff27e58a3acf8fc2573b | [
"Swift",
"Ruby"
] | 21 | Swift | Rain-Li/Weishangbao | fcd3805ef627e69aad43e1951d3fb25bbb434bee | 25e1af28e86bc56881a76a973b092f9c7509129d |
refs/heads/master | <repo_name>kentgray/FFCN<file_sep>/FFCNMaintenance/FFCNMaintenance/Controllers/tlkpHomeClosedsController.cs
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using FFCNMaintenance.Models;
namespace ... | 01d9aa5d9552004c643bba46a9b60c20331973d3 | [
"C#"
] | 20 | C# | kentgray/FFCN | 392942f60adab5e073b1319387846543978e8352 | ddf3091e710b06f76e797a18d3f80a006e102eff |
refs/heads/master | <file_sep>export const convertToFormdata = (params: any) =>
Object.keys(params)
.map(key => {
return encodeURIComponent(key) + '=' + encodeURIComponent(params[key]);
})
.join('&');
<file_sep># Build the dev image
FROM node:10 AS dev
RUN mkdir -p /srv
WORKDIR /srv
ADD package*.json ./
RUN npm install... | 9164f03c1e573e5cfa5fc6b87b66836e459aceac | [
"TypeScript",
"Dockerfile",
"Shell"
] | 18 | TypeScript | krisvegh/syno-audio | e7983fb70a58b58fbdb6c930f443dfad6723cba7 | a75290cf1a0b7addaf1927dbe8a125aa4508a1a9 |
refs/heads/master | <file_sep><! DOCTYPE html >
<html>
<head>
<title>Playstore</title>
<link rel="stylesheet" href="../css/googleplaystore.css">
</head>
<body>
<div class="top">
<div class="logo">
<img src ="../media/logo2.png">
</div>
</div>
<ul>
<li><a class="active"href="home.html">home</a></li>
<li c... | 1603e3f4963ca5583c76661d7dd9c3b3d83200fe | [
"JavaScript",
"HTML"
] | 4 | HTML | Navkaur-web/Web-Technologies | fef7eca9094da7f7f4b242e752dbdb7543b2d555 | e29749390357940afb97a8646ae4f085edfc5236 |
refs/heads/main | <file_sep>import {GET_GITHUB, GITHUB_ERROR} from '../types'
import axios from 'axios'
export const getGithub = () => async dispatch => {
try{
const res = await axios.get(`https://api.github.com/users/bahtiar/repos`)
dispatch( {
type: GET_GITHUB,
payload: res.data
... | 205c5063dc829e92c9e8204426b1e88e9644b902 | [
"JavaScript"
] | 1 | JavaScript | bahtiar/test-softwaseni-reactjs | 274fb78f6c6a4b3425a1b6d1c442b2589543120a | e078661f174b1e0c756049cf3532fd74fd9930ef |
refs/heads/master | <file_sep># PID Controller Project
This is a writeup for PID Controller Project.
## PID Control Update
The implementation of PID Control is given at line:62 in `main.cpp`.
The update at time step $t$ is calculated by the following way:
$$
S_{t+1} = -K_p e^{\rm{cte}}_{t} - K_d (e^{\rm{cte}}_{t} - e^{\rm{cte}}_{t-1... | 810133b2a157a7a1a2f148f78010e1ad3ccf8eab | [
"Markdown",
"C++"
] | 2 | Markdown | i-aki-y/CarND-PID-Control-Project | d0322401642166c620a9dc26cb0a1c8cea2305c3 | 5bc9fbed8fc827e1994769e5d8ba6c93e99a7192 |
refs/heads/main | <repo_name>akondshaheen/LongestSubCcontiguousSubarray_TechChallenge<file_sep>/Readme.md
##Kadanes algorithm | Longest sum contiguous subarray
<file_sep>/src/Main.java
public class Main {
static int longestSum(int[] arr) {
int max = 0;
int max_sub = Integer.MIN_VALUE;
for (int i = 0; i < a... | d47eb189528118e29e3fe4738e0ca1511ead89f5 | [
"Markdown",
"Java"
] | 2 | Markdown | akondshaheen/LongestSubCcontiguousSubarray_TechChallenge | f4e2412998ca5eed31c0576a259ecdf3122a8cf1 | 509bf948a04773807d152c6ddabfbeafda1a6f1c |
refs/heads/master | <file_sep># FriendFinder
Uses JavaScript, Express, and Node.js with a survey to create profiles for new members and math them with users with similar scores on the survey.
<file_sep>// html routes are to help direct the user
// when they click on a link, the router will understand what page to give them.
var path = re... | cd12c1de57696d88478889329d1bfa8006e644de | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Superunknown1103/FriendFinder | 396ee174b16015d2cf70e9a1fb925393ae267196 | 8d301fad9f3b96d9358f59c8593f9376571d6472 |
refs/heads/master | <repo_name>sparkskapil/SMI-Hackathon2018<file_sep>/Homepage/migrations/0005_auto_20180331_0842.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-31 03:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
... | 02880bfba044e866d9cf30fb27ee8cf86dd40db8 | [
"Python"
] | 9 | Python | sparkskapil/SMI-Hackathon2018 | 322eaaf093891add896157a3053210d6854e944b | 4d267d304b2dda0ce6ed8784638c1e5a4f6eba68 |
refs/heads/master | <file_sep>from mininet.topo import Topo
from mininet.net import Mininet
from mininet.node import CPULimitedHost
from mininet.link import TCLink, TCIntf
from mininet.util import dumpNodeConnections
from mininet.log import setLogLevel
from mininet.node import RemoteController
from mininet.util import custom
from time im... | 09f6c2ca9ad4ce5b47d90fbd5e4f9e0ca0f9e7e3 | [
"Python"
] | 1 | Python | ismaelse13/ETMininet | a9fd39bd10f74689917acfda18cbacd7d3563dfe | c9859d62abd93ca4b7a7e0e57d6d56a00942ff91 |
refs/heads/master | <repo_name>stepsgithub/moodle-block_pick_students<file_sep>/README.txt
安裝方式:
1. 請將pick_students資料夾放置在moodle中的blocks資料夾之內
2. 點選 網站管理 > 通知 => 確認安裝成功
3. 安裝完成後請將『挑選學生』區塊新增至合適的位置(建議可放置在「系統管理」或「課程」頁面之下)
使用方式:
1. 點選「挑選學生」區塊中的「已選課的用戶」。
2. 依序選擇「學校」與「班級」,會列表出在系統中符合的學生名單。
3. 接著選擇「類別」、「課程」與「角色」,按下「核準」。(若是在課程頁面使用,只需要選擇角色)
4. 會再進行... | 0613bb6ac1d4f22aca60c96f9a75ee86024e54b5 | [
"JavaScript",
"Text",
"PHP"
] | 10 | Text | stepsgithub/moodle-block_pick_students | 9b286c151ac2d98f068f1aad618e2d4ddb0f2b09 | d251842a25f568db28f42e117dfa1447f39c8480 |
refs/heads/master | <file_sep>import React, {Component} from 'react';
class Cita extends Component {
render() {
return (
<div className="media nt-3">
<div className="media-body">
<h3 className="nt-0">Nombre Mascota</h3>
<p className="card-text"><span>Nombre d... | 100d09d0cb65b074f78092d0b5c8020d704429a9 | [
"JavaScript"
] | 1 | JavaScript | KevinVinograd/citasreact | 42a9318451b5a73788708ba443d92570fd1c4895 | 3e37886d292ee368f859c3a45a81562ba4b2546c |
refs/heads/master | <repo_name>x-cold/egg-puppeteer<file_sep>/config/config.default.js
'use strict';
exports.puppeteer = {
browser: {
args: [
'--no-sandbox', '--disable-setuid-sandbox',
],
dumpio: true,
ignoreHTTPSErrors: true,
},
maxPage: 4,
maxPageCount: 4,
emulateDevice: 'iPhone 6 Plus',
};
<file_sep>/R... | 8144c7e07c825590d167e23354dd9432fcb391fb | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | x-cold/egg-puppeteer | b95516ec0a575219e321e96fa260f5b557119def | 4818575b039f04257e8f57a71128c61c9ab297b7 |
refs/heads/master | <file_sep>//
// main.cpp
// Inheritance 2
//
// Created by iMac on 03.12.17.
// Copyright © 2017 Inheritance 2. All rights reserved.
//
#include <iostream>
/*
class TestClass
{
public:
static int x;
};
int TestClass::x = 0;
*/
// extern int y;
// 1. Constructor to WhiteHuman, BlackHuman, YellowHuman, RedHuman
... | e218079b981dc0d6a824c06a86cdf4e2c5efff56 | [
"C++"
] | 1 | C++ | RS-Radist/Inheritance | 5e0344d3d51427c4e53b054dff734db72264d292 | 65db86365b386bcc2ca77dc291f73b8e47e71a8a |
refs/heads/master | <file_sep>import sounddevice as sd
import numpy as np
from math import pi
from queue import Queue
import matplotlib.pyplot as plt
from ua101_node import UA101
fc = 5000 # Hz
record_threshold = 0.5 # begin recording when this value is exceeded
ua = UA101(fc, record_threshold)
fig, ax = plt.subplots()
plt.plot(ua.tax... | d47a8ff0b42c01867bc4c764d41700b1fe7ddfee | [
"Markdown",
"Python"
] | 10 | Python | nedlrichards/bi_aural_simulation | 00fddfc7011be369e2bf30d8dbed913e3b55da32 | 953318b35381859f006c2a901af151b97a065faa |
refs/heads/main | <file_sep>package com.weatnet;
public class City {
private int z;
private int x;
private int y;
private int id;
private String name;
private double lon;
private double lat;
public City() {
}
public City(String name, int id, double lon, double lat, int z, int x, int y) {
... | 86b8e2a328e369957fe7131659cbe840dc0c55d8 | [
"Markdown",
"Java"
] | 3 | Java | aycandv/weatnet-comp-416 | 9c461becf3b780990d983b7fd3d8470cc0a69841 | bf436f1ac4a69d8cc0ce169f310492aaf7ca0e74 |
refs/heads/master | <repo_name>rjwhobbs/get_next_line<file_sep>/gnl_pro3.c
#include "get_next_line.h"
static char *ft_strrealloc(char *s1, char *s2)
{
char *new;
new = ft_strjoin(s1, s2);
ft_strdel(&s1);
return (new);
}
static int temp_check(char **temp, char **line, char **del_temp)
{
char *nlp;
nlp = NULL;
if (*temp)
{
nlp... | e62f40e93192fc8f135be5b6fdadc5f54d995823 | [
"C"
] | 6 | C | rjwhobbs/get_next_line | b9f23aff492ec8ae109a82b98c9417185bc4e38f | 93e835c4cedf49dbecb35b07ea05f15436e69050 |
refs/heads/main | <repo_name>Restkand/CRUD-Sederhana<file_sep>/CRUD.py
Mahasiswa = ["Dodi", "Joko"]
def show_data():
if len(Mahasiswa) <= 0:
print ("Data belum ada")
else:
for Indeks in range(len(Mahasiswa)):
print("[%d] %s" %(Indeks, Mahasiswa[Indeks]))
def insert_data():
mahasiswaBar... | 5b7b291c5993c5e49be50bf284a02bef77ddfcc1 | [
"Markdown",
"Python"
] | 2 | Python | Restkand/CRUD-Sederhana | 9a39fce35db6f119830c916ae0708627cdf73b4c | 1152f8e70ffc9dc8697f727a6c6b125b82ac4c81 |
refs/heads/master | <file_sep># NodeParis
## Installation
### Récuperation du projet
```cli
git clone https://github.com/CodeTrainerFormation/MEAN.git
```
### Installation des dépendances
```cli
npm install
```
### Lancement du projet
Attention, un serveur MongoDB doit être lancé !
```cli
node|nodemon app.js
```
<file_sep>var timel... | 70f0e72c13b7331b83c3f7a8056278eae5007a9e | [
"Markdown",
"JavaScript"
] | 15 | Markdown | CodeTrainerFormation/MEAN | 99c00563e421bcebbb5cb605a6e59985858b7753 | c0ccd4958e4aafaa92fca21623e72270784c8eab |
refs/heads/master | <repo_name>WolfyPixel/wpf-calculator<file_sep>/wpfCalc/wpfCalc/MainWindow.xaml.cs
using System;
using System.Windows;
namespace wpfCalc {
/// <summary>
/// Calculator
/// </summary>
public partial class MainWindow : Window {
double register;
string operation;
bool insertionStar... | cdd48aa28a421c121259ade34744ce9213ed2bf0 | [
"Markdown",
"C#"
] | 2 | C# | WolfyPixel/wpf-calculator | cb7d6031d4a45b6fdd9f7a3d433c59bfeb3cf9fe | 0ea0981d4d683c8b677dddcfabd852572499101f |
refs/heads/master | <repo_name>xieyixue/openvas-docker<file_sep>/bin/start.sh
#!/bin/bash
HTTP_ONLY=${HTTP_ONLY:-}
set_http_only=""
if [ "$HTTP_ONLY" = "true" ]; then
set_http_only="--http-only"
fi
echo "Start ssh"
/usr/sbin/sshd -D
echo "Starting Redis"
mkdir -p /var/run/redis
redis-server /etc/redis/redis.config
echo "Starting Ope... | 494e30aacb87797fb8278dd272f6b31a3495ff9a | [
"Shell"
] | 1 | Shell | xieyixue/openvas-docker | 9dadbf27481945cd3795d5f8c920bf77a8fff002 | 9e4765918d1d922bad9a82c4f3e272b73045e6e0 |
refs/heads/master | <repo_name>namithashetty/ClinicalTrials<file_sep>/Clinical_Trial_Analytics/client/js/views/subscribe.js
$(document).ready(function(){
var sc = new SubscribeController();
// login retrieval form via email //
var sev = new SubscribeEmailValidator();
$('#subscribe-form').ajaxForm({
url: '/subscribe',
befor... | 2a4ddf00053741e699ddc92884a5d9fa36d497a3 | [
"JavaScript"
] | 6 | JavaScript | namithashetty/ClinicalTrials | dcd776a75e178130b49bc20add6e47f63e123724 | de8325303df3540ecb89760f54984ab7e3467f31 |
refs/heads/master | <repo_name>6netic/moli<file_sep>/src/Migrations/Version20181209185345.php
<?php declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20181209185345 extend... | 56209c0d4863f8b3e7e16a92f334938aa84158e7 | [
"JavaScript",
"PHP"
] | 8 | PHP | 6netic/moli | ddd375a2f90c6836de01323ff3f77e1a4565158c | 36bee8fb727d1f5c16287be941f411d64ed91747 |
refs/heads/master | <repo_name>zzwt/memo-card<file_sep>/pages/index.js
import { useState, useEffect } from "react";
import Head from "next/head";
import {
Button,
Card,
Image,
Transition,
Container,
Grid,
Header,
Dropdown,
} from "semantic-ui-react";
const cardsOptions = [
{
key: "1",
text: "12",
value: 12,
... | f8ebcdc3a2f331945e9f7b17c54858c158d8abc2 | [
"JavaScript"
] | 1 | JavaScript | zzwt/memo-card | d8e7c3e0f5a1062efaf76669921e4db4eb48009b | 156189188ed54c2bf5d070f1d961eba62a86c854 |
refs/heads/master | <file_sep>import BaseProvider from './base';
import * as vscode from 'vscode';
import { IPluginSettings, IStyleBlock } from '../types';
export interface IStyleBlock {
syntax: string;
content: string;
range: [number, number];
}
export default class EmbeddedProvider extends BaseProvider {
constructor(
private r... | 0b4ff83440dd380c0fb7ce3937dee9628b8767ec | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | mfoonirlee/vscode-csscomb | 6c043e68d2cdf76527fb5ed68ea7773267667515 | 98491cb2a045c858510662b022557eca85f5cbd7 |
refs/heads/master | <file_sep>#!/usr/bin/env python
# coding: utf-8
# In[1]:
#Import all required libraries for reading data, analysing and visualizing data
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
get_ipython().run_line_magic('matplotlib', 'inline')
from sklearn.preprocessing import ... | a4546ac3294f581ac17daa369f06ef8b9a055222 | [
"Markdown",
"Python"
] | 4 | Python | srivastavanishtha/AI-ML-Algorithms-using-Python | feae209cea5327156d0181a3a3baa5384d3e3cb7 | aacf4ce16630c2af2d098b407f7963552b2a5f75 |
refs/heads/master | <repo_name>chenalon95/SPL3<file_sep>/Client/makefile
CFLAGS:=-c -Wall -Weffc++ -g -std=c++11 -Iinclude
LDFLAGS:=-lboost_thread -lboost_system -pthread
all: Client
g++ -o bin/BGSclient bin/ConnectionHandler.o bin/echoClient.o bin/EncDec.o bin/UserWrite.o bin/UserRead.o $(LDFLAGS)
Client: bin/ConnectionHandler.o b... | b981d95126cb1cb12a91451812142f728be5f094 | [
"Markdown",
"Java",
"Makefile",
"C++"
] | 17 | Makefile | chenalon95/SPL3 | 19121e5c0e6d427052b9c9c2ec2cb7e480269f93 | 70b25462fa5b72c718fe2ca9b1fb08f3a7d1270a |
refs/heads/master | <file_sep># Server Selector API
This project is a Proxy API that consumes an external API and transform the external API into a list of regions (getRegions) of filters the list of servers (getServers) if the name of the region is provided, otherwise it will return the whole list.
### Technologies
This is a project th... | 787b8c9be6538514f5e73d78d229f75ede42318f | [
"Markdown",
"Python"
] | 2 | Markdown | Shinkei/serverSelectoAPI | 0ec0e8cfdf4dea1508d4c637dd6fec0110b05235 | 67edeef37d000a76191c952fc0790e09f3028ccd |
refs/heads/master | <file_sep>/*global self*/
import Promise from './promise';
export default function polyfill() {
var local = (typeof global !== 'undefined') ? global : self;
var P = local.Promise;
if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) {
try {
var K = function (r) { P.c... | d28d450a8d692ebeb1585672a3c42360b9f1fa41 | [
"JavaScript"
] | 1 | JavaScript | DelkTsai/es6-promise | 061d2b2e915eb030b2c62b91e682a1c31c6f9d3c | 282bcdfe81f70a62842f1bde9244ad250356527d |
refs/heads/master | <repo_name>ReverendCode/AndroidThingsTest<file_sep>/app/src/main/java/com/vaporware/reverendcode/androidthingstest/StartActivity.kt
package com.vaporware.reverendcode.androidthingstest
import android.accounts.OnAccountsUpdateListener
import android.app.Activity
import android.os.Bundle
import android.util.Log
import a... | 3ce9120663f467116402386d0fe714ebacc4582c | [
"Kotlin"
] | 1 | Kotlin | ReverendCode/AndroidThingsTest | 14538d0dfe5792ee6aa77047271779cc6b2500a9 | 87988d1119308434409d20e0b7e4e67eeda57f4d |
refs/heads/master | <file_sep>beautifulsoup4==4.3.2
django-mptt==0.6.1
django-nose==1.3
flake8==2.3.0
freezegun==0.2.2
gnureadline==6.3.3
ipdb==0.8
ipython==2.4.1
jedi==0.8.1
mccabe==0.3
mock==1.0.1
nose==1.3.4
pep8==1.6.2
pyflakes==0.8.1
python-dateutil==2.3
<file_sep># coding=utf-8
from captcha.fields import CaptchaField, CaptchaTextInp... | 567eee928d7d4cbfb844d7093849506494b726f1 | [
"Python",
"Text",
"reStructuredText"
] | 14 | Text | ptaack/cmsplugin-feedback | 8cd7085348cf38b801dd3d33d38f33dcc0dfe75f | c3c63374b2278de6dfd74e8af2f58b2ecbbf48b4 |
refs/heads/main | <repo_name>millibee/classy-chirper<file_sep>/src/App.jsx
import React from "react";
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
count: props.initialCount,
chirps: [
{
username: "@Tina_Burper",
message:
"I don't need... | 544adead57adff331497b63e2b905b498b9506bd | [
"JavaScript"
] | 1 | JavaScript | millibee/classy-chirper | 4de44147a008dd828f1cdfe0a86b3143e0231bbd | e7f12135a9d87d3d224290917e040fe75a49b558 |
refs/heads/master | <repo_name>Capwell/sy.itplace<file_sep>/src/AppBundle/Controller/GitHUbController.php
<?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
class GitHUbController extends Controller
{
/**
* @Route("/showTab... | e2c18df1108f7b3031094fb31f0ea3e636f3047e | [
"Markdown",
"PHP"
] | 5 | PHP | Capwell/sy.itplace | fbcf980cedfd59aa8201a122d9e8f62e8bc04c17 | d9d511508c4d643b6e8e1e77b7839cd4ac037cbb |
refs/heads/master | <repo_name>royzhu0830/CPTG<file_sep>/desktop.ini
[LocalizedFileNames]
CPTG.java=@CPTG,0
<file_sep>/type-search-index.js
typeSearchIndex = [{"p":"<Unnamed>","l":"Pieces"}]<file_sep>/CPTG/Pieces.java
//testing 123
public class Pieces {
//properties
/**name of the piece*/
public String strPiece;
/**number correspondin... | f0f9900343616f75bcc96708170dcffd706f6746 | [
"JavaScript",
"Java",
"INI"
] | 6 | INI | royzhu0830/CPTG | 53a7cfb680d57614c023667c625390870411b9d5 | d470484135cd32435fc2b5c65d226e1cf3df7ab4 |
refs/heads/master | <file_sep>// Code your solution in this file!
let hq = 42;
function distanceFromHqInBlocks (pickupLocation) {
//returns the number of blocks given a value
return Math.abs(pickupLocation - 42)
}
function distanceFromHqInFeet (pickupLocation) {
return distanceFromHqInBlocks(pickupLocation)* 264;
// calls distan... | b5a4ed0e3b23b7f114cac1976c3237a644e154fa | [
"JavaScript"
] | 1 | JavaScript | stefclaus/js-basics-functions-lab-v-000 | 42030fce775162a97a584e206f59327046303e35 | 9adf5e2b4c4106b85faff655bf1ff1c74101c914 |
refs/heads/master | <file_sep>package com.jpdickerson.week6day4hw.view.activities;
import android.arch.lifecycle.ViewModel;
import android.content.Intent;
import android.databinding.BindingAdapter;
import android.databinding.DataBindingUtil;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.... | 419f6c10b3de655b82c67256578c553319059d66 | [
"Java"
] | 2 | Java | dj911ice/MACA_wk6day4 | e2efc0195a9256f09eabd40cf604f18732562f39 | 4d72a5aa4616fc8b19de063ba339903c6c4d0539 |
refs/heads/master | <file_sep>#include <stdio.h>
#include "test_mvi.h"
#include "../src/machine.h"
#include "../src/utils.h"
#include <string.h>
#include<stdlib.h>
#include<string.h>
#include "execute.h"
int test_or(char *buffer, int value)
{
printf("-------------------------------------------------------------------------------------... | bc7a27560e1c17b8ddd7a270de43b83a3ef7b848 | [
"Markdown",
"C",
"Makefile"
] | 34 | C | Suloch/virtualSatoshi | e379ff9ff39b0910d58a6596a375fa4207792ca5 | 22cb12cedbd21c061d839cabab218db962cc6e5a |
refs/heads/master | <repo_name>abaeve/sde-service<file_sep>/handler/type_query_handler.go
package handler
import (
"fmt"
"github.com/abaeve/sde-service/model"
proto "github.com/abaeve/sde-service/proto"
"golang.org/x/net/context"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)
type typeQueryHandler struct {
s *mgo.Session
}
func (tqh... | c3063c53e6367cfc99165070696ceb7470bf2432 | [
"Markdown",
"Go"
] | 4 | Go | abaeve/sde-service | f616f6bf27ec258701af7b6a35abfda7ca9f14fe | 8a07cec256ab41d7b2aee9110c6ec9f6d8e6af94 |
refs/heads/master | <repo_name>veenat/Problem-codes-<file_sep>/README.md
# Problem-codes-README
This repository contains the code for common datastructure problems
<file_sep>/min_heap.cpp
#include<iostream>
using namespace std;
class MinHeap
{
int heapArray[10];
int counter=0;
public:
//Function to insert the elements into the mi... | 59f1edd9e0f3b7ac4a5a6d8d924a0fac7530e36e | [
"Markdown",
"C",
"C++"
] | 4 | Markdown | veenat/Problem-codes- | 3d5fb47099230a93b872c78760ccba4e1060fcd6 | d6aef439c0ad39ba257e8f1185fd501e0e625c07 |
refs/heads/master | <repo_name>marif1901/LeetCode_JavaSolutions<file_sep>/HeapSort.java
public class HeapSort {
public void heapsort(int A[], int n ) {
for(int i = n/2-1; i>=0;i--) {
maxheapify(A,n,i);
}
for (int i= n-1; i >=0; i--) {
swap(A,i ,0);
maxheapify(A,i,0);
}
}
void maxheapify(int A[], int n , int lar... | 32aa80044de39c56a3a14c7707f05a5c680b5311 | [
"Java"
] | 1 | Java | marif1901/LeetCode_JavaSolutions | aeb0f61cab012fad8f6f8f3a4ba93a8d24ff6d33 | 413cefbd6e63072cc2a436ba059affbbe5508b9c |
refs/heads/master | <repo_name>HappyHeyoka/microzed_oled128<file_sep>/oled_example2/src/moodlight_example.cpp
/*
* Simple sketch that cycles the display through available hues,
* keeping a solid 100% saturation value,
* simulating slowly circling the HSV colour wheel.
*/
//#include <SPI.h>
//#include <SD.h>
#include <cmath>
#include "... | 9534c90e5762a9afb4dc045ad8ec461379e8b6ed | [
"C",
"C++"
] | 11 | C++ | HappyHeyoka/microzed_oled128 | 47c6795f32783c2faf46708fceaf237139a555df | dffad0cc1d3c771f87b8d974538f176dba7caef9 |
refs/heads/master | <file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This script implements the VMChecker's Web Services.
It's based on apache2 and mod_python.
"""
from __future__ import with_statement
# Use simplejson or Python 2.6 json, prefer simplejson.
try:
import simplejson as json
except ImportError:
import js... | 869c345570ac8bbc818b57bab178bac8e067dc3e | [
"JavaScript",
"Python"
] | 2 | Python | mgax/vmchecker-ng | 93cbd133540c69e51450c34626f3341068672f68 | c6d7dab262cac957417c395fefa99af30612102d |
refs/heads/master | <file_sep>// JavaScript Document
var isLoadingFinish = false;
var loadImage = null;
var headIconUrl = "images/icon1.png";
var isStartCombin = false;
$(function(){
$(".loading_box").click(function(){
if(isLoadingFinish){
$(".loading_box").hide();
$(".hlv1_box").show();
}
... | 86e12a65d478601472ed398f7db4a78c1f25caad | [
"JavaScript"
] | 4 | JavaScript | libing070/animation | 6390a16305c4ea21d0937b6768323f31e885b239 | 43541e6f87bcc806b6d59369e4b48b5d85da9a93 |
refs/heads/main | <repo_name>16mnd/classifier--KNN-regression-etc<file_sep>/KNNwon.py
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import matplotlib.pyplot as plt
import seaborn as sns
import os
for dirname, _, filenames in os.walk('/kaggle/input'):
for filename in filen... | 99b89f32bdf6403a44252fd434217df86388c5a7 | [
"Python"
] | 1 | Python | 16mnd/classifier--KNN-regression-etc | fbedbc73fe19ec9a391d9c8521d759ebff4076a3 | f374acad82650e5384b7bd396b350ae362305bff |
refs/heads/master | <file_sep>import React from 'react'
import '../App.css'
import { connect } from 'react-redux'
import { passLogin } from '../store/auth/actions'
import { compose } from 'redux'
export default WrapComponent => {
const withAuth = (props) => {
const unAuthen = () => (
<div className="unauthen">
... | 9dae5662b877b0d4ee7fea6b4bfb0ac643d336fb | [
"JavaScript"
] | 5 | JavaScript | sixgeat1997/redux-addlist | a39eb7814dda111e8239ce8cdf97b65d3587b435 | f3d3bb5a3c491f13668bfbb549c967f19c6b9c98 |
refs/heads/master | <file_sep>package game.core;
public enum Difficulty {
EASY, MEDIUM, HARD
}
<file_sep>package game.core;
import ui.SquareUI;
public class Square {
/* Members */
private Board board;
private int x,y;
private SState state = SState.EMPTY;
private Players[] players = null;
private boolean hotspot = false;
priva... | 6d305da735565029a672f6f2579c586adf8373ab | [
"Java"
] | 9 | Java | aeastrolabe/18 | a49c1dc2063a343b4caf2ca019bef5177acda7d6 | 3ff265c2159f1673396847706cd34e287292ab03 |
refs/heads/master | <file_sep>package course;
import java.util.List;
public class Course {
private final String courseCode;
private String courseName;
private boolean firstSem;
private boolean secondSem;
private boolean summerSem;
private List<String> preReqs;
public Course(String code, String name, boolean sem1, boolean sem2, ... | 8a86c8481bc4df9d6e02f5e77bf2bd29c26b5ccf | [
"Java"
] | 2 | Java | blakebodycote/uqCourseScraper | a95b57aae7ba2ed0f5cae71cb695e56152d247d7 | 17ee051a37fd11696e4e3ee04e48a2e3748b09d1 |
refs/heads/main | <repo_name>TomaszBednorz/Pygame_Snake<file_sep>/credits.py
import pygame
import sys
from basic_functionalities import surface_size, screen, font32, font96, draw_board, red_color, black_color, draw_string
def draw_credits_state():
credits_txt = ["Snake icon made by Freepik from www.flaticon.com",
... | 42dfcc424220d847c36866f38f38bb49a70773dc | [
"Markdown",
"Python"
] | 7 | Python | TomaszBednorz/Pygame_Snake | 2c04a65155dd2c091ed7aaba6e76d8957d843467 | 3d0d0942822bcf26c87e4c2efc6b243a07f4106e |
refs/heads/master | <file_sep>import numpy as np
import pandas as pd
import random
from scipy import ndimage
from sklearn.model_selection import train_test_split
import keras
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
fr... | 1e02da84d4318068371a7bd52d2b49481e33ea0f | [
"Python"
] | 4 | Python | O-LA-LA/K_Statoil | 01dbad548beb9d39ae6969af73cfc286c88cd642 | 4b9b4d837e0eec6875252573aa11c9e56df5b362 |
refs/heads/master | <repo_name>talhahum/gianluca<file_sep>/gianluca.py
from math import sqrt
def get_data(file_name):
f = open(file_name)
lines = f.readlines()
f.close()
return lines
def data2int(data):
int_data = [int(i) for i in data]
return int_data
def sort_data(int_data):
list.sort(int_data)
retu... | 527bd0a14b73ee17f25203edff0ef6d3922e2fa9 | [
"Python"
] | 1 | Python | talhahum/gianluca | c4aaf86b8376cb8f5d371878db57f1d77ea10044 | baf9aa5da992476689d62fa3d5f7069b4fa4ef21 |
refs/heads/master | <repo_name>rlteach/TeachSpaceWar<file_sep>/Assets/Scripts/Helper scripts/DemoTiming.cs
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class DemoTiming : MonoBehaviour {
public bool SimulateLatency=false;
public Text SpeedSliderText;
public Slider SpeedSlider;
public T... | 89ff87ff9093a21ec69dd17bd609a73ac410084a | [
"C#"
] | 7 | C# | rlteach/TeachSpaceWar | c6c3822001d7860d848c7fdbe287ad8521dc5187 | 3a3c769fce0d03454df65012edacb352184b50ce |
refs/heads/master | <repo_name>poe21/node-express-reddit-clone<file_sep>/forms.js
// sign up
function signup(callback) {
callback(null, `
<div class="form">
<div class="form-wrapper">
<h2>Sign Up</h2>
<form action="/signup" method="POST">
<input type="text" name="username" placeholder="Enter a username" requir... | b71cdfe820e4eab54908d636360d60d7642b3375 | [
"JavaScript"
] | 3 | JavaScript | poe21/node-express-reddit-clone | d4e1d3f75331f91a7f8cec787d06989e6eb2ec2d | 9381fe1677ede7d13b2694fc2a07dd344f11ee94 |
refs/heads/master | <repo_name>AmitShah/court-smash<file_sep>/Assets/Network/MqttNetworkManager.cs
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using System.Net;
using uPLibrary.Networking.M2Mqtt;
using uPLibrary.Networking.M2Mqtt.Messages;
using uPLibrary.Networking.M2Mqtt.Utility;
using uPLibrary.Networking.M2Mqtt... | 39661f3ae0d98537eee4cf5c085d074b9db4fbee | [
"C#"
] | 4 | C# | AmitShah/court-smash | 6efdf0dc19887a56acb3de7fd5e8848a16036c2b | 4f90aabac22fdaad2600f40b72d27551d8ff488e |
refs/heads/master | <file_sep># AzureDevOpsStorage
Basic test repo
<file_sep>#!/bin/bash
echo "Defining Constants"
FOLDERS_TO_CREATE=("folder_to_delete_1" "folder_to_delete_2" "folder_to_keep")
FOLDERS_TO_DELETE=("folder_to_delete_1" "folder_to_delete_2")
CONTAINER_NAME="datalake"
RESOURCE_GROUP="rabosrrg"
STORAGE_ACCOUNT="rabosrsa${RAND... | 7889801d96af1cacb4dd500b0a5eec3b48436cc6 | [
"Markdown",
"Shell"
] | 2 | Markdown | Sruinard/AzureDevOpsStorage | ac4dc9bc71593c67d15234a8983dd3f7d977854f | 8a5680ccd94f78a07c65e9b56a36e907394c554c |
refs/heads/master | <file_sep># robot chip sorters #
## I don't know what to do! So, gather information ##
initial state
bot 1 [3]
bot 2 [2,5]
bot 2 has 2 chips, so distribution is triggered.
bot 2 gives 2 to 1
bot 2 gives 5 to 0
bot 2 has 2 chips, so distribution is triggered.
bot 1 gives 2 to output 1
bot 1 gives 3 to bot 0
bot ... | 1ecedacc4876cf84b9b782c2e62b717fc340e384 | [
"Markdown",
"Ruby"
] | 72 | Markdown | tnordloh/adventofcode_2016 | c32fc9156174e906d4051e31f33cf3f9697a3012 | f227a2fd18965bf9f2a9a5f4af01ca3283df8833 |
refs/heads/main | <file_sep>package hellojpa.domain;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
/**
* <pre>
* 서비스 명 : hellojpa
* 패키지 명 : hellojpa.domain
* 클래스 명 : BoardDetail
* 설명 : 일대일 식별 관계 자식 엔티티
*
* ===================================================... | 1c4cbc6ab25bc9530fe507a4ff9d9913096296c3 | [
"Markdown",
"Java"
] | 23 | Java | kenux196/spring-jpa-learn | 459e219fcebcfb40537a7a1173b9d86d38104695 | fec343e8e25eb2b8121156e2b591040d372f9cf8 |
refs/heads/master | <repo_name>liwenqiu/coding<file_sep>/squash-rec.md
# first
# second
one squash
two squash
three squash
1
2
<file_sep>/main.c
#include<stdio.h>
int main(void) {
printf("hello pr\n");
printf("rebase\n");
return 0;
}
<file_sep>/README.md
# coding
## title
## this is lucia's edit
commit first
commit s... | 79d2be515e2b4aa220544dc6027e241f727070fb | [
"Markdown",
"C"
] | 5 | Markdown | liwenqiu/coding | c91198b4145c5826170d98a5cc85e1654204cd12 | 050a396bdc40d4125c8ff98e5a5a008bc16790c3 |
refs/heads/develop | <repo_name>pavelumnikov/TPF<file_sep>/tpf/CpuWorker.h
#pragma once
#include "Worker.h"
namespace Parallel {
class Scheduler;
class CpuWorker : public Worker {
public:
CpuWorker(Scheduler* scheduler, Sync* sync);
void Execute() override;
private:
int _waitCount = 0;
Scheduler* _scheduler;
};
}<file_sep>... | 2978cdbaed04cf2cd3914e8560b742e1b328a594 | [
"C",
"C++"
] | 28 | C++ | pavelumnikov/TPF | 2172850633d2cdd59a4733a35389345e69afab32 | b5be98b863933ee5fdf1e2e998b7139b99356410 |
refs/heads/master | <repo_name>pramodrapolu/VelocityVR<file_sep>/Assets/Scripts/SampleApp.cs
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System.Collections.Generic;
using com.wayfair;
using System;
/// <summary>
/// Sample App that ties everything together
/// </summary>
public class SampleApp : MonoBehaviou... | bb1d94d42f5f7fdd07fe113fddbba5def6bc5461 | [
"C#"
] | 9 | C# | pramodrapolu/VelocityVR | 28ad7eaeb8821022fa9606c14433ac9edf1036f0 | 9f843ed4f86ca1cbd8912cf135ace486ba1b8d9a |
refs/heads/master | <file_sep>class MoviesController < ApplicationController
def show
id = params[:id] # retrieve movie ID from URI route
@movie = Movie.find(id) # look up movie by unique ID
# will render app/views/movies/show.<extension> by default
end
def index
@all_ratings = Movie.all_ratings
#order
if Movi... | 9d0e84eaf192548c0f1340c5c20f1e71c4415758 | [
"Ruby"
] | 2 | Ruby | gustavHsiung/SuperRottenTomato | 34402b64cf471e3d58b10b1864d428211b5d294b | 2d94774bd05805ab17b62470a3cb6e57723c6463 |
refs/heads/master | <repo_name>Jia21/Epistasis<file_sep>/eben_new.R
setwd('~/Dropbox (Personal)/Coloncancer/');
library('EBEN');
mi <- read.table("bc_matrix.txt",header=T);
mi <- as.matrix(mi);
mi2 <- mi[,which(mi[nrow(mi),]!='NA')];
#write.table(mi2,"mi2",sep='\t',quote=F,col.names = T,row.names = F);
target <- as.matrix(mi2[nrow(mi2),... | 6e93b8482c5e004aea934b58de951493ac18b1f2 | [
"Markdown",
"R"
] | 2 | R | Jia21/Epistasis | 4fb52cd5ea5f1a6f3fb1c59ed99dd0df84801043 | 1c34fe06e72ac6c62188f4e2e94ccd02cb3b365b |
refs/heads/master | <file_sep>/**************************************************************
***************************************************************
***************************************************************
*** ***
*** ID INFORMATION ... | f42b2e9b26309044d42bf9245b0c941d187645da | [
"C#"
] | 2 | C# | emoreno619/Csharp-coursework | b3c0b83ddc834cede78c60941730954961ec59ce | 8b5a586238d2e867ed7d0685ed31f59b832d7b98 |
refs/heads/master | <repo_name>syeshenko/FirstTask_OOP<file_sep>/src/kz/epam/lab1/Main.java
package kz.epam.lab1;
import java.util.ArrayList;
import java.util.List;
import java.util.Collections;
import kz.epam.lab1.item.MonthlyFeeSort;
import kz.epam.lab1.plan.*;
import kz.epam.lab1.item.MobileProvider;
public class Main {
public... | e4205e15cdc56514ac83fc744b69fd2761b6398e | [
"Java"
] | 4 | Java | syeshenko/FirstTask_OOP | 8ec6ef9bc86408a8de59a36920d82eab09771334 | 9cbe9119f10ccb7990cb2020de55ec1795e036e5 |
refs/heads/master | <repo_name>hamza12233/tailor-app<file_sep>/db/migrate/20210208134611_change_experience_string_to_decimal.rb
class ChangeExperienceStringToDecimal < ActiveRecord::Migration[6.0]
def up
change_column :tailor_skills, :experience, 'decimal USING CAST(experience AS decimal)'
end
def down
change_column :tail... | 528e294efe0d8130521ab866e8413b3f658aa920 | [
"Ruby"
] | 82 | Ruby | hamza12233/tailor-app | 5d3ff88e01a1e3d790c6dc2eb0142c73907831db | a298a8c0d483b7265672ee7cf93560935157312e |
refs/heads/master | <repo_name>SantiagoYoung/Spider<file_sep>/douban.py
#__author__: viber
#_*_ coding: utf-8 _*_
import requests
from bs4 import BeautifulSoup
import re
import time
header = {
"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36"}
... | 4257ef3716c0dd1d22de8fc5a0d2ef1c82d89bf9 | [
"Python"
] | 9 | Python | SantiagoYoung/Spider | 0ab6ee65cd9549fd1316f37dfd421a9eac21d37a | 129f4a369a9f810742616a82905049225c4e38cf |
refs/heads/main | <repo_name>CartyLinuxCPU/Menu-Math<file_sep>/README.md
# Menu-Math
upload de arquivos com barra de progesso matematicos basicas com Python
<file_sep>/matematica_basica.py
import time
from datetime import date
nome = '''
██████╗ █████╗ ██████╗ ████████╗ ██╗ ██╗ ██╗ ██╗ ███╗ ██... | f1d5c519c9d4ecdf6f3bd619febbbd096de7d7d7 | [
"Markdown",
"Python"
] | 2 | Markdown | CartyLinuxCPU/Menu-Math | 878c4f518d48798981fb05ae79727d9c837e30b9 | 17199daa4321b4a2751fb2715613daf8cc3e86d1 |
refs/heads/master | <repo_name>mfinkelstine/taskAutomation<file_sep>/lib/dataform.php
<?php
include "dbconnect.php";
include "function.php";
$parts = explode('&', $_SERVER["QUERY_STRING"]);
#$parts = explode('&', $_SERVER["QUERY_STRING"][1]);
#echo "Data from web" . print_r($parts)."\n";
foreach ($parts as $part) {
#echo "foreach Data ... | 4fcae72a9196c2eb90c1ac5536397f55bcbe3562 | [
"Markdown",
"JavaScript",
"PHP"
] | 8 | PHP | mfinkelstine/taskAutomation | 376821f644b4eb7ccd239647975b5f026fb0bb7e | 752417989e4a07228014abbadddb2355890355ee |
refs/heads/master | <file_sep>require 'formula'
class Php54Apc < Formula
homepage 'http://pecl.php.net/package/apc'
url 'http://pecl.php.net/get/APC-3.1.10.tgz'
md5 'f4a6b91903d6ba9dce89fc87bb6f26c9'
head 'https://svn.php.net/repository/pecl/apc/trunk/', :using => :svn
depends_on 'autoconf' => :build
depends_on 'pcre'
def... | 99616f806c1712d3842a6abcb45e098e1a824e47 | [
"Ruby"
] | 4 | Ruby | BrianGilbert/homebrew-php | 4ed964c5179e9a8be9087fe7228384f38a30ae43 | 6070c2eb0412358dfbd81b39c3b945185b5815f5 |
refs/heads/master | <file_sep>var sqlite = require('sqlite3').verbose()
, db = new sqlite.Database(__dirname + '/../db');
db.serialize(function () {
db.run(['CREATE TABLE items (id INTEGER PRIMARY KEY AUTOINCREMENT, v INTEGER, date DATETIME',
'text TEXT, type TEXT, x INTEGER, y INTEGER, z INTEGER, w INTEGER, h INTEG... | eb380af28bd3162542a4ce1da8f555b9e5f6fde2 | [
"JavaScript",
"Markdown",
"Shell"
] | 6 | JavaScript | geta6/hypermemo.js | 5d8a6f04bd2fc4ef8cad8ef11a7d22a0aa8f88e1 | 45fea77d72a094430c3229ef979237bcb9e66f24 |
refs/heads/master | <repo_name>lisiao/-<file_sep>/333.php
<?php
echo '11222';
?>
| dcbfadc9172e2d3a99733ab946e2137f502ade54 | [
"PHP"
] | 1 | PHP | lisiao/- | 19524b2cb9bb17fb7a256774652f80797939f099 | 988bbfa20ff2c31b7af38460b41cd72ae910012e |
refs/heads/master | <file_sep>import numpy as np
class sph2cart (object):
def __init__ (self,az,el,r):
self.az = az
self.el = el
self.r = r
self.output = {}
def convert (self):
x = self.r *np.sin(self.el)* np.cos(self.az)
y = self.r *np.sin(self.el) * np.sin(self.az)
z = sel... | e38f3b7aae81be41c08d9b12f5595a258700c409 | [
"Markdown",
"Python"
] | 8 | Python | Sfletche132/Monte-Carlo-Simulation-of-Nuclear-Fission | dfdcdeda458f94278a15744c9843f90b791a532c | 2e63e1c757344b715980b76aeb62561a0c740d47 |
refs/heads/master | <file_sep>package com.panapptix.weather;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;
import android.content.Context;
import java.util.List;
public class MainViewModel extends ViewModel {
private PlacesRepository mRepository;
private LiveData<List<Place>> mPlaces;
priv... | c6fa6c3f9bc0a98bdac6f3e4e57def0fccfee4fb | [
"Java"
] | 5 | Java | omolenaar/Weather | 4e159552fdf979e8c027e7a0c80f9d546141e455 | a68e605c03d455d2f1e175381c00b18f73ead82f |
refs/heads/master | <file_sep>//
// Created by TobiEgger on 17.02.2020.
//
#ifndef DRONE_SYNCHRONIZATIONOBJECTBASICIMPL_H
#define DRONE_SYNCHRONIZATIONOBJECTBASICIMPL_H
#include "SynchronizationObject.h"
#include <memory>
//DeFacto Mutex
class SynchronizationObjectBasicImpl : public SynchronizationObject {
protected:
SynchronizationOb... | 2067a1a0086dcd24aa9b0122f9593e2d62f617d0 | [
"C++"
] | 7 | C++ | crispycookies/LENTIA | 592273f4836880785a04699c69539b336316adf8 | 6633acdf35b0a4c989612bc3c8139eff111273de |
refs/heads/master | <file_sep>cat isi.s tests/m8.s > exe.s
1521 spim -file exe.s | sed -e 1d
<file_sep>// COMP1521 18s2 Week 10 Lab
// dns.c ... simple DNS lookup client
#include <stdio.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
int main(int argc, char **argv)
{
st... | c83ef85df41e24317c44b58ef703893470427842 | [
"Markdown",
"C",
"Shell"
] | 26 | Shell | hharryyf/COMP1521 | 0286cd4f96f97f707222d76140e0a3668e2c9cbb | 53d041713b2f44b077badf177ceda171fd80ff43 |
refs/heads/master | <repo_name>CryogenicPlanet/CSCA48<file_sep>/Random/binaryTree.c
#include <stdio.h>
typedef struct binaryTree
{
float data;
struct binaryTree *left;
struct binaryTree *right;
} BinaryTree;
int main(int argc, char const *argv[])
{
return 0;
}
<file_sep>/Assigment/A2_Distro/runner.py
import o... | d40ce13762921fa99edffd0e8090bcc58bebb14e | [
"Markdown",
"C",
"Python"
] | 18 | C | CryogenicPlanet/CSCA48 | 82c86894e030436b1a24955820ce3cf1a12882ed | 37d1ba34fcc3a73e4444e990a19a123f38581c1f |
refs/heads/master | <file_sep># encoding: utf-8
require "logstash/devutils/rspec/spec_helper"
require "logstash/filters/date_formatter"
puts "Skipping date formatter tests because this ruby is not jruby" if RUBY_ENGINE != "jruby"
RUBY_ENGINE == "jruby" and describe LogStash::Filters::DateFormatter do
describe "formatting to localized ... | d47e41bbf91d536d63a011f3c10012194bc99085 | [
"Markdown",
"Ruby"
] | 3 | Ruby | robertzengcn/logstash-filter-date_formatter | d24327a64e659fe5864b9210921c6d3784408f20 | c6efee493f243ac8ec4f7e91af7eb52c6eea6502 |
refs/heads/master | <file_sep>//
// ChatLogController.swift
// Chat App
//
// Created by Louis on 28/10/2016.
// Copyright © 2016 Wepro Co. Ltd. All rights reserved.
//
import UIKit
import Firebase
class ChatLogController: UICollectionViewController, UITextFieldDelegate, UICollectionViewDelegateFlowLayout, UIImagePickerControllerDel... | a416faed1187c32c51be4bc627ef1a5d88357d2e | [
"Swift",
"Markdown"
] | 2 | Swift | louisdalligos/Chat-App | b1e77ee0b0f3d4ed46a1c5d6906dec0ffc676e93 | 91e9241dd3b69891202976c328791f6753af481e |
refs/heads/master | <repo_name>annish8055/CSV-comparator-using-python_2_Final<file_sep>/__main__.py
import pandas as pd
import os
import csv
import json
import codecs
path = './csvfiles'
files = []
#createing CSV comparision result to display on the web page
def data_set_creator():
#json objet to store pass fail result ... | 5fd26dc084a1bae6266526609fe8693afab26ddc | [
"Markdown",
"Python"
] | 2 | Python | annish8055/CSV-comparator-using-python_2_Final | ba2207e9e15cd50e8ec7bf6e991bb189ed392c7d | 2735fbd7af6cf2f1b565a55867407aed7f7d8daa |
refs/heads/master | <file_sep>from django.db import models
class Course(models.Model):
course_id = models.IntegerField(primary_key = True)
course_name = models.CharField(max_length = 32,verbose_name = "选修课程")
course_teacher = models.CharField(max_length = 32,verbose_name = "授课教师")
class Meta:
verbose_name_plural =... | 180310231b4a42a8621368785f07ec2f42ee6c09 | [
"Python",
"HTML"
] | 74 | Python | mgaic/django | e0400ea1b311b52f4ead490b698bf24049237c71 | a3e7c972b534bc2ef51c74a97cf88dc96c57e427 |
refs/heads/master | <repo_name>georgerobinson/logarchive<file_sep>/logarchive/dispatcher.py
from core import (FileFinder, LogArchiver, NoFilesMatchedException)
from archivers import (Archiver, TarArchiveDriver, BzipTarArchiveDriver,
GzipTarArchiveDriver, LzmaTarArchiveDriver,
ZipArchiveDriver... | e4d47aee496d0e45d558b4e2a0673b09af500fff | [
"Markdown",
"Python"
] | 9 | Python | georgerobinson/logarchive | 8e46562d7edf89012b56c6d06990b0487810764d | b045d6340da71019cff967a0e0267fc15f109caa |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package hilos;
/**
*
* @author hugo
*/
public class ProcesoAsincrono extends Thread{
//const... | d375cd7fc22786fd585ebdfe7731d3c660e57c87 | [
"Java"
] | 3 | Java | hugobepa/hilos | 1eb61686dafaac0b2f6fb7e9d5f6b7b337d13530 | cf8a67bbe70b7cfcd0cf16968feba66386d525f8 |
refs/heads/master | <file_sep>/* INDEX FILE
This file, from a module perspective, behaves as the duck file form the original proposal.
It exports as default the reducer function of the duck.
It exports as named export the selectors and the operations.
Optionally it exports the actions and types if they are needed in other ducks.
Cribbed... | b4635a9286a0f423ed349ab5c8f2f4613ecc4148 | [
"Markdown",
"TypeScript"
] | 9 | TypeScript | darthbob88/Cribbage-CRA | cb8cd50efe2550d46d5c6f2444f1056de7cafb75 | 4eeaebb1065c0333689167f3a9002f93a85e8a28 |
refs/heads/master | <file_sep>---
title : Shiny App for evaluating stock on Bullish/Bearish signal through moving averages
subtitle :
author : <NAME>
job : Coursera Data Science Student
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, h... | 87c1b09e2a7fc05460f8871a74dfd45a373bf91f | [
"Markdown",
"R",
"RMarkdown"
] | 4 | RMarkdown | hionghwee/Course9 | 85a88fe54a15175af5f691db82bc1a9976fc932d | 147f5f7450567e26f915a632752d47e67dc7490e |
refs/heads/master | <repo_name>GranoDeAvena/MatchThree<file_sep>/scripts/asset_manager.js
function AssetManager () {
var assets = {};
var EXTRA_AMOUNT = 50;
var objects = [];
var min = [], amount = [];
this.addItem = function( _type, _obj, _amount ){
var a = assets[ _type ] = [];
min [ _type] = _amount;
amount [ _type] = ... | d3cc10e9124cfeabb1237f8c05b7b997f3d1c282 | [
"JavaScript"
] | 10 | JavaScript | GranoDeAvena/MatchThree | 226565f11ca42fd7694ecdd574873086dee85b99 | 7283b2786f418303f26a57bf01bae4b52dd65745 |
refs/heads/master | <file_sep>module.exports = {
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"modules": true
},
"ecmaVersion": 2017
},
"rules": {
"array-bracket-spacing": "error",
... | 4c70b03073b9cd1cb7a21ceb858e3030031739da | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | the-spyke/eslint-config-general | 602e2ebb91e8371b61c0108c5e1b9d68b898a6ac | b2e175bb49b5622da9b220ede9c9df82604db12a |
refs/heads/master | <file_sep>package com.atchaohu.graduate.component.action;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.atchaohu.graduate.base.imp.BaseActionImp;
import com.atchaohu.graduate.compo... | ecc1e38ed22e450be65ee04df0b669969b7081a6 | [
"Java"
] | 21 | Java | LoveBabyPig/Project | 67627851cdbfb5c4a619838d8a082265d6b17d2b | 99db27d75af81ddce697f6dc99456b5ce9af46ed |
refs/heads/master | <repo_name>guilherme/puzzlenode--14<file_sep>/twitter_stream.rb
class Profile
PROFILE_REGEXP = /@?([a-z_]*)/
@@instances = []
attr_reader :name
attr_accessor :tweets
def self.find_or_create(profile_string)
@@instances.each do |instance|
if instance.name == profile_string.match(PROFILE_REGEXP)[1... | 4502d049f3a82f4e1cf637ba3301af4802da1125 | [
"Ruby"
] | 3 | Ruby | guilherme/puzzlenode--14 | 6d86e1c5fc6270caaa410d50496da74edb30b490 | 6790049fabfed778d523e3e93cbff2a4922cd6ca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.