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>Diyabanerjee/Games-react-app<file_sep>/src/tictactoe-react/components/Board.js
import React from "react";
import Square from "./Square";
/*creating a functional component*/
/*here we are going over each square and then passing the square in the board into the Square component */
const Board = ({ squares, ... | 895221c02b8357bb17f8ebeff9dce46e4a733235 | [
"JavaScript"
] | 7 | JavaScript | Diyabanerjee/Games-react-app | b6b6c93572d8000003b2fad63de13f268648f11a | dcbffadd2ce033bf1b299dbf9a5cd54e039f12a3 |
refs/heads/master | <repo_name>Hoshiya1/MyBBS<file_sep>/user/models.py
from django.db import models
# Create your models here.
class User(models.Model):
uid = models.AutoField(primary_key=True)
email = models.EmailField(unique=True, db_index=True)
avatar = models.ImageField(upload_to='avatar', null=True, blank=True)
name... | ceda2056f17e1e81b92e4f550e23445859a572ab | [
"JavaScript",
"Python",
"Markdown"
] | 11 | Python | Hoshiya1/MyBBS | 69c8136424bdeb1780580a21b4203d234b506421 | 4f9eb35773e8341fb446c2897294d47937b5b7a6 |
refs/heads/master | <repo_name>gnsilence/HangfireHttpJob<file_sep>/README.md
[](https://www.nuget.org/packages/Hangfire.HttpJob.Ext)
2022-08-26
====
- 增加配置参数 DeleteOnFail
- 设置后当接口中请求的数据返回非200状态则将任务标记为删除状态(标记已失败在新版本中通过重试特性设置无效应该是hangfire的bug 后续会修改为失败状态)
2022-7-29
====
# 新增:暴露... | 0e5ad04293a60cf0289dbc1bca6297a6472b45b7 | [
"Markdown",
"C#",
"Dockerfile",
"SQL"
] | 43 | Markdown | gnsilence/HangfireHttpJob | 5fb5f6337e848d653c43def13208904963732153 | 7b2a586a152f5ad9b0ccd35748c98c55172e444c |
refs/heads/master | <repo_name>jjabby26/mywebsite<file_sep>/src/components/Cards.js
import React from 'react';
import './Cards.css';
import CardItem from './CardItem';
function Cards() {
return (
<div className='cards'>
<h1>Check out my Skills! </h1>
<div className='cards__container'>
<div className='cards__wrap... | b8c87c90739f0cb04c4e14340d199b0d107d7446 | [
"JavaScript"
] | 4 | JavaScript | jjabby26/mywebsite | 0123b0955cd7ad602f7f85989315e4b90577d032 | 4c5c3f1588ce02e2c2a98113c835b3b153dc7486 |
refs/heads/master | <file_sep>#!/usr/bin/env ruby
require_relative '../config/environment'
puts "Hello. Welcome to Tic Tac Toe (patent pending). Would you like to play a 0, 1, or 2 player game? Enter '0', '1', or '2'."
number_of_players = gets.chomp
puts "Who should go first and be 'X'? Enter '1' for player 1 or '2' for player 2."
fir... | 3db54d89a73cc6bd8efe7a3add8eef1dec9e4975 | [
"Ruby"
] | 4 | Ruby | MatthewSerre/ttt-with-ai-project-v-000 | bd696fe6b454360f680603aa342666ac0fb892c7 | 7ef927c8e9de464edb004829b060d0fbd27160d2 |
refs/heads/master | <file_sep><?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class CategorySeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$methods = [
'efectivo' => [
'caja chica#', 'nóminas#', 'maqu... | e05870ca1bc8c73fa4266f4900612c93407718b7 | [
"Markdown",
"PHP"
] | 81 | PHP | darinelcruzz/consorcio | 88a26b0685f37f5a174060f65631f4cdd143f4d2 | f5841204712a4da74e3700605607529ca2371237 |
refs/heads/master | <repo_name>hemantsharma4/assignment<file_sep>/src/main/java/Application.java
import java.io.File;
import java.io.IOException;
import com.assignmanet.coffee.machine.service.CoffeeMachine;
import org.apache.commons.io.FileUtils;
public class Application {
public static void main(String[] args) throws IOException {
... | 8ab486bf616b159752307ff115ea277526ec76b5 | [
"Markdown",
"Java"
] | 5 | Java | hemantsharma4/assignment | 6500679c64adb2a6ef19e660aa28a4e57974c468 | 5c24c335acd7268a4886515e77820fba1aa82d58 |
refs/heads/main | <file_sep>#include <iostream>
#include <fstream>
#include <queue>
#include <stack>
#include <string>
using namespace std;
class Math {
public:
string math_exp;
string postf_not;
queue <string> q;
stack <string> s1;
stack <double> s2;
};
string initialization (string exp) {
string str1, str2, str3, init;
... | 2fc483044f1cb1c5cf65eca00fe770cf4bcbe0c6 | [
"C++"
] | 4 | C++ | dashakotova0702/data-structures | 8320b61ed08e29c6f41fae99d346d424e45eb3f3 | 4ed4f6595eb248d00d82a8ae4aeab36911f2b514 |
refs/heads/master | <file_sep><?php
declare(strict_types=1);
/**
* Created by PhpStorm.
* User: Lukasz
* Date: 2017-12-01
* Time: 10:22.
*/
namespace Ddeboer\Imap\MailboxesParser;
/**
* Class MailboxesParser.
*/
interface MailboxesParserInterface
{
/**
* Set language for parser.
*
* @param string $lang
*/... | f9a7205826e18d191c7d6041901f80c2dc9fdd04 | [
"PHP"
] | 9 | PHP | piernik/imap | bb972bc24fe53283500e6b4993bfa7c153ca450b | 88ef6e96952863bc482e3c0f8fba61836d788e5f |
refs/heads/master | <repo_name>mkoo21/salesforcesdk5-ios-install<file_sep>/install
#!/bin/bash
#Place podfile with project name where it needs to be (assuming git clone executed from project root)
PROJECT_NAME=$(awk -F"[ '.]+" '$1 == "project"{print $2}' ../ios/Podfile)
echo "Writing Podfile for project $PROJECT_NAME \n"
sed -i '' "s/for... | db1c669e7d8711cc8e583272f05222abe6c0c2c7 | [
"Shell"
] | 1 | Shell | mkoo21/salesforcesdk5-ios-install | 3a03b7ac8ee9c6d863c4915d62cee69e62598370 | 5e416fd1086bf5c0f9f3004bd4f431172ea09b90 |
refs/heads/main | <file_sep>package com.cts.service;
import java.util.ArrayList;
import java.util.List;
import com.cts.observer.INotificationObserver;
public class NotificationService implements INotificationService{
List<INotificationObserver> observer=new ArrayList<INotificationObserver>();
@Override
public void AddSub... | 2f27efd502d9795d10b75b65a14e0d00ea715faf | [
"Java"
] | 15 | Java | CDE20IJ012-Ruksar/Design-Priciples | c9117c731b16efd1640abccce1944aec43c7f2af | d86b0f4fa358220e503e51904eeac2a89e23631a |
refs/heads/master | <repo_name>vlames/receiptcreator<file_sep>/Cargo.toml
[package]
name = "pdf"
version = "0.1.0"
authors = ["<NAME> <<EMAIL>>"]
edition = "2018"
[dependencies]
printpdf = "0.2.10"
<file_sep>/src/main.rs
// File: main.rs
// Description: the file provides the overall program flow
mod pdf;
extern crate printpdf;
use std::... | 6094d85d7d3865de7c6459fe86fd37a03d1ef70f | [
"TOML",
"Rust",
"Markdown"
] | 4 | TOML | vlames/receiptcreator | 6989faf076683778e6c475ff1df893b12bda25bd | d86d8651f48269c29a97c13f8394c53eb5d384e8 |
refs/heads/master | <file_sep>import React, { useState } from "react";
import { StyleSheet, View, TextInput } from "react-native";
import { Input, Button } from "react-native-elements";
import Icon from "react-native-vector-icons/FontAwesome";
export default function EditTodo(props) {
const [text, setText] = useState(0);
return (
... | cd4cee3fe06518473738bf885a09482cd5670ad3 | [
"JavaScript"
] | 2 | JavaScript | teemshn/test-project | 1e7be37b9e6c95fc0d1cb6f4aa477f5755af75b7 | 7bddca9f3470a70c93ee50895a14906a5aa990fc |
refs/heads/main | <file_sep>const {
returnTwo,
greeting,
add,
multiply,
divide,
subtract,
} = require("./functions");
test("should return 2", () => {
expect(returnTwo()).toEqual(2);
});
test("should return Hello {name}", () => {
expect(greeting("Susan")).toEqual("Hello Susan");
});
describe("maths", () => {
test("should retu... | c15965c5cf47984aacf01cf75818a90c97a9849a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jxcoulton/w6d3-tests | 28b09d3b3f4d324099e180fb56af3f000880b690 | 304e1e6009b3c277ec3b6855e53ddea6176aad54 |
refs/heads/master | <repo_name>poonamsweet/my-django-app<file_sep>/app/models.py
from django.db import models
# Create your models here.
class Post(models.Model):
title =models.CharField(max_length=100)
content = models.CharField(max_length=100)
postedbyname= models.CharField(max_length=20)
date = models.DateField(defau... | c9b66d53675f4ecdabb4e7bb0104ceb005cadb56 | [
"Python"
] | 3 | Python | poonamsweet/my-django-app | 67514785bb57878fb1dc28639e6340869559a3b4 | a7e68a5a9aa5e48850ec7074d898c3cef3f0081b |
refs/heads/master | <file_sep>package com.uniclans.ophthalmology.modules.diagnose.service.model;
import java.util.Date;
import javax.persistence.Column;
import com.uniclans.ophthalmology.basecomponent.utils.PageVo;
/**
* 医生确诊记录表Vo
*
* @author Stanley
*
*/
public class DiagnoseRecordVo extends PageVo {
private String id;// `ID`'... | c83699c1589c07aa78b825fa7d709886a2974e5b | [
"JavaScript",
"Java"
] | 79 | Java | caiqin/ophthalmology | c50741aa348585d4b55b023cd6f13627c5c8ef29 | 3e5382e39b15e42fbb609f6adb68b64f9fb2820e |
refs/heads/master | <repo_name>leducdo/quanly<file_sep>/src/page/tuyen-dung/tuyen-dung.js
import React from 'react';
import './tuyen-dung.scss';
class TuyenDung extends React.Component{
render(){
return(
<React.Fragment>
<h1>tuyen dung</h1>
</React.Fragment>
)
}
}
export de... | c74eee55a48376cdb5f024b4538a35ee8d8e7e9c | [
"JavaScript"
] | 4 | JavaScript | leducdo/quanly | c0611aeafa74fd4b20358a794e45b4bfbadc7aa4 | 1fc6e20ddbd94c61039493aa2e46349b2900a88d |
refs/heads/main | <repo_name>Gael-Henrot/P3_BattleGame<file_sep>/P3_BattleGame/main.swift
//
// main.swift
// P3_BattleGame
//
// Created by <NAME> on 19/04/2021.
//
import Foundation
//======================
//MARK: Global functions
//======================
//This function read the console line (avoid optional)
func nonOptionalRe... | 76a9ec3ec5630908ed979f759b0257ab87901166 | [
"Swift"
] | 1 | Swift | Gael-Henrot/P3_BattleGame | 3033a03c136150c24ae0a14e72a92943f820f5cb | 7eb2207f72eb376165da6f143e4f654d7cac3c0f |
refs/heads/master | <repo_name>SausanCantik/descriptive-stats-phenotype-data<file_sep>/03. Null data treatment/fillna_numerical.py
'''A function to replace null in column with numerical data. NaN
is replaced by the group mean.
'''
def fillna_numerical(numeric, dataframe):
import numpy as np
mean_values = group_means(numeric... | b2b284fd2055b1476670f5ba891eae59afb85c02 | [
"Markdown",
"Python"
] | 17 | Python | SausanCantik/descriptive-stats-phenotype-data | 04aab439530013b78cdf8f850d2f1c06fa73cbd7 | 2e2837ec76cdf449b9d3724a69d78f8a9a9114be |
refs/heads/master | <file_sep>#!/usr/bin/python
__author__ = 'as1986'
def get_url(song_title):
from bs4 import BeautifulSoup
import requests
to_return = []
r = requests.get('http://mojim.com/{}.html?t3'.format(song_title))
soup = BeautifulSoup(r.text)
for link in soup.find_all('a'):
if 'twy' in link.ge... | dbaf8402b17db756987611e7b27706f7d728aeee | [
"Python"
] | 4 | Python | as1986/lyrics_crawler | 5ad0924d54b96e199328c8c27129e7ee29d2a4d9 | ccd41e75a2cc4b6e182efa12f0bf8ca8d613d265 |
refs/heads/master | <repo_name>r0shanbhagat/HiltExample<file_sep>/app/src/main/java/com/example/demoapp/api/ApiService.kt
package com.example.demoapp.api
import com.example.demoapp.models.EmployeeResponse
import retrofit2.Response
import retrofit2.http.GET
interface ApiService{
@GET("employees")
suspend fun getEmployees():Respo... | f1b72a0edd96808bc3012533b9debe0590c741bb | [
"Kotlin"
] | 4 | Kotlin | r0shanbhagat/HiltExample | 27a3ad9e894bc4bb5cf72986cc1e7b14b08c2656 | 844d1e7c47cd463fab37d0dcc5eaab8e657bcd69 |
refs/heads/master | <repo_name>cpryor24/jQuery-Twitter-v1<file_sep>/js/main.js
$(function (){
var User = {
handle: '@bradwestfall',
img: 'brad.png'
}
var composeStr = $('#template-compose').html();
var composeTmpl = Handlebars.compile(composeStr);
var tweetStr = $('#template-tweet').html();
var tweetTmpl = Handleb... | cd8c3c740c9e495b6f8280b04ab3d4ed5e7264e7 | [
"JavaScript"
] | 1 | JavaScript | cpryor24/jQuery-Twitter-v1 | 592448e498cd5d90a6d41bd525c69d276defdae2 | 82d64df756cb4f0d24cad130f2f4f1f81f713e43 |
refs/heads/master | <repo_name>fosco/react-mobx-test<file_sep>/src/appStore.js
import { decorate, observable, computed, action } from 'mobx'
class Store {
employeeList = [
{ name: "Genny", salary: 15 }
]
addEmployee(employee) {
this.employeeList.push(employee)
}
clearEmployeeList() {
this.emp... | 6bd2b393660355353535ee3ab15f40c342e05daa | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | fosco/react-mobx-test | 70fc5d69523456f5c82d67098ca6b655b9965675 | 9add0db36c1359194a11fa023843c80916d0cafa |
refs/heads/main | <file_sep>from PyQt5 import QtWidgets, QtGui, QtCore
from Label import Ui_HW1_GUI
import sys
import hw1_1
import hw1_2
import hw1_3
import hw1_4
import hw1_5
class MainWindow(QtWidgets.QDialog):
def __init__(self):
super(MainWindow, self).__init__()
self.ui = Ui_HW1_GUI()
self.ui.setupUi(s... | 8238495efcb547993725746a1c0519e28e17756c | [
"Python"
] | 8 | Python | JustinElGG/CVHomework | 8fac766da56908e48c4e3e58f0c7ca54f26b7ea9 | cbbd4fd786bb71bb4f4b39afd4c357f23b91f6c0 |
refs/heads/master | <repo_name>kheirod/opencv_facerec<file_sep>/opencv_face_3.py
import numpy as np
import cv2
import math
#import time
my_list = []
#fecev= 0
#nosev=0
i=0
pnx =0
pny =0
npx=0
npy=0
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade_eye_tree_eyegl... | 157efd44b2a506dec28cd39235a166645cc71dfe | [
"Python"
] | 1 | Python | kheirod/opencv_facerec | b7a9ed700a871858ab951bbe40d07bfff3187565 | 7ed8fbec6f073675b946b005b480c96b2adde3cd |
refs/heads/master | <file_sep>package com.example.myapplication;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.os.CancellationSignal;
import android.view.ActionMode;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuItem;
imp... | fe2108e21dd7753347b201408a0701f45943bd98 | [
"Java"
] | 1 | Java | Ahmed-Basalib10/TypesOfMenusInAndroid | 884b321c580ff2b90a965c72678a29621b2a7087 | 7bfe0f275e15acaa86eef485829f58d416cddb4f |
refs/heads/master | <file_sep>from django.db import models
class Currency(models.Model):
name = models.CharField(verbose_name='Currency name', max_length=100, unique=True)
rate = models.FloatField(verbose_name='Currency rate to Rouble')
def __repr__(self):
return f'{self.name}: {self.rate} Roubles'
def __str__(... | 954c312ac8dab3a6b68aa3c613446bbbb92cfa50 | [
"Markdown",
"Python"
] | 6 | Python | s1q/drf-test | c97eb4f1969494f1c9a3f54ef695a5dddafcf320 | a88ba085d033f7cefce3514f09e0d6f7372bd37a |
refs/heads/master | <repo_name>saimanojy/Flames<file_sep>/app/src/main/java/com/example/saimanoj/flames/MainActivity.java
package com.example.saimanoj.flames;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;
import andro... | 350be5b211f7cadf71ac097f611f9b170cb92d6c | [
"Java"
] | 2 | Java | saimanojy/Flames | 0e9eda79e6bbf682243eed7d7c71ee17db5fd683 | e392ff754cdea0925bf0d4a10e23c4fdb89b8328 |
refs/heads/master | <file_sep><?php
session_start();
if (!isset($_SESSION['userid'])) {
header("Location: index.php");
exit;
}
require 'database.php';
if (!hash_equals($_SESSION['token'], $_POST['token'])) {
die("Request forgery detected");
}
if (isset($_POST['story_id'])) {
$story_id = (int)$_POST['story_id'];
$... | 75cf38bcf0f6d134b76532c8a43ca55d75eeeb76 | [
"Markdown",
"SQL",
"PHP"
] | 12 | PHP | MajorGrinch/CSE503M3-G | 756407dced5b0111e80e86b72008a218e7cbabf3 | e03a914dd882e5b7b8fee1982b146c9e1823f9c4 |
refs/heads/master | <file_sep>//
// FilterViewModel.swift
// Modal
//
// Created by <NAME> on 20/08/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
import Foundation
import RxCocoa
import RxSwift
class FilterViewModel {
var filtersSelected = BehaviorRelay<[Filter]>(value: [])
var orderBy = BehaviorRelay<Sorting>(val... | 30ff08a70699f68cce0e6323f0d6b042c32a4b00 | [
"Swift"
] | 20 | Swift | bsalves/iosmodal | a0da0ee77bdadf0b0e63bc35bf33cd63ab049b1e | e166cbff09b69bfcaad52fcf23cd47017a84aaaf |
refs/heads/master | <repo_name>cnboker/ironCloud<file_sep>/app/src/containers/Full/index.js
import React, {Component} from "react";
import {bindActionCreators} from "redux";
import {connect} from "react-redux";
import Header from "../../components/Header/Header";
import Sidebar from "../../components/Sidebar/Sidebar";
import DMSSidebar f... | 846c1baf409636949d0fff451a6482a5e8d031a5 | [
"JavaScript",
"C#",
"Markdown"
] | 179 | JavaScript | cnboker/ironCloud | 523556918fa18aacfcfaed03f6cfc4158ba583c8 | e943125d29f2482000139230a87261479eae5b25 |
refs/heads/master | <file_sep><?php namespace Alxy\Facebook;
use System\Classes\PluginBase;
/**
* Facebook Plugin Information File
*/
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' ... | 550cbb5413c406b7dcb7d5721c699aba604a8a69 | [
"Markdown",
"PHP"
] | 2 | PHP | alxy/oc-facebook-plugin | 14f45b6d45d4a46f3444a7e74b9ae4b1dbbbaeab | 27f5ade0969d41e1c06c168570f6944f63840237 |
refs/heads/master | <repo_name>Czewen/Granblue-character-guesser<file_sep>/react-backend/client/src/GameInterface/ImageCard.js
import React from 'react';
import '../css/my_styles.css';
import '../css/image_card.css'
function ImageModal(props){
if(props.src === undefined)
return null;
const zeroOpacity = {
'opacity': '0.0'
... | 2040bb2197cc2eb1cee1c764e2affec479baf7a5 | [
"SQL",
"JavaScript",
"Markdown",
"INI",
"Text"
] | 25 | JavaScript | Czewen/Granblue-character-guesser | 2859dd90981cc7130d0857707c07ce1036f6ac9a | 9494afe6fd8aef83f96d96efde603eb9a9ee0854 |
refs/heads/main | <file_sep>import './App.css';
import Propsfn from './components/Propsfn';
function App() {
return (
<div className="App">
<Propsfn name='React'/>
</div>
);
}
export default App;
<file_sep>import React from 'react'
const heading={
fontSize:'30px',
color:'green'
}
const Propsfn =(props)=><h... | 7a2180047c23d8dd96a575618cb7e8522227f40f | [
"JavaScript"
] | 2 | JavaScript | shankarkasala/function-props | 61c14406cdb83bb9127ef9154036016ece802320 | 5a4a7aec832c035af06b69f120a103bfe83238b9 |
refs/heads/master | <repo_name>ElsaRong/Utility-Scripts<file_sep>/README.md
# Utility-Scripts
Utility Python scripts 保存一些常用的Python脚本
<file_sep>/txt2xls.py
import os
import sys
import xlrd
from xlwt import *
if __name__ == '__main__':
file_path = r'C:\Users\Elsa\Desktop\origin_data\origindatawindow.txt'
f = file(file_path,'... | 320e7f242c1f102bf489330de2abe314bf2deb88 | [
"Markdown",
"Python"
] | 2 | Markdown | ElsaRong/Utility-Scripts | f7d4388e41e9b526531688929ee0b015e8b6e1b6 | f1e5c2ae7b75a55f0c62ac6d46599b2b5e29ea41 |
refs/heads/master | <file_sep>use amethyst::{
prelude::*,
utils::application_root_dir,
GameDataBuilder, Application,
renderer::{
plugins::{RenderPbr3D, RenderToWindow}, //RenderSkybox},
types::DefaultBackend,
RenderingBundle,
},
core::TransformBundle,
assets::PrefabLoaderSystemDesc,
... | 265edd647db566897a4d8e08db7f02ea3fdb6555 | [
"Markdown",
"Rust"
] | 5 | Rust | ashneverdawn/box-stacker | a009022a5c64a6cfab91220ff684c24e9060360b | 4e9fca3b14af56040d3384baee531644c8787b75 |
refs/heads/master | <file_sep>import React from 'react';
import logo from './logo.svg';
import './App.css';
import {Element} from '../../components/Element'
class App extends React.Component {
constructor(props) {
super(props)
this.state = {
elements: []
}
}
componentDidMount() {
fetch('http://localhost:1337/e... | bdc368d060fc8074d93c13e36d8f19c10dc390a9 | [
"JavaScript",
"TypeScript",
"HTML"
] | 18 | JavaScript | AndriiPetrov/FL-11 | 5d8678e643f871b0b101057f68d71319b1844e22 | e6b425097fc0d6a19570501ba9dfd223df5fbc4e |
refs/heads/master | <repo_name>m4bwav/Kidoju-Widgets<file_sep>/test/browsers/window.assert.test.js
/**
* Copyright (c) 2013-2016 <NAME>. All rights reserved.
* Sources at https://github.com/Memba
*/
/* jshint browser: true, jquery: true, mocha: true, expr: true */
;(function (window, $, undefined) {
'use strict';
var expect... | 92721a8368252e31ff31de9614bba87dc29799d5 | [
"JavaScript",
"Markdown"
] | 28 | JavaScript | m4bwav/Kidoju-Widgets | ed77b7fb9c041ea3d0932097a6130c30af43cb56 | 72b5821702c349fb7884e9327a5c488f4e60ae74 |
refs/heads/master | <file_sep># Global variables:
ids <- 75000 # Max number of ids per token every 15 minutes
f <- list() # Vector where user_ids from followers will be appended
# Function to get all the followers from a user with pagination
GetFollowersRecursivePagination <- function(userId, followers, page) {
if (ids == 0) {
# ... | 70b4f9818c764a8338cb63757850a248aec5e28d | [
"Markdown",
"R"
] | 4 | R | guzmanlopez/BikeVirtualCommunitiesNetworkUY | 0fd92a3ebf943e1eb2537f36458a9bb13c812166 | 08bb6b4ce0b31eae9f0adb3c560edf738aa37a10 |
refs/heads/master | <repo_name>zergov/adventofcode2015<file_sep>/day16/day16.rb
sues_list = {}
File.read('input').lines do |line|
parts = line.chomp.strip.split(':')
sue_no = parts.shift.split.last.to_i
properties = parts.join.split(',').map(&:strip).map(&:split)
sues_list[sue_no] = properties.each_with_object({}) do |property, ... | 52de33f68a683b214028a04b6ab25505b365c67d | [
"Python",
"Ruby"
] | 21 | Ruby | zergov/adventofcode2015 | 647450466726c7d7b9be4db9ee7200b2dd1b7914 | d8ca4607f5d0e6532c7139e75fdc9328dfad5494 |
refs/heads/master | <file_sep>import { createStore, combineReducers, applyMiddleware, compose } from "redux";
import thunk from "redux-thunk";
import userReducer from "./reducers/userReducer";
import categoryReducer from "./reducers/categoryReducer";
import productReducer from "./reducers/productReducer";
import cartReducer from "./reduce... | ab643fbd42829ed5b42a92dc02e91b258fa5951d | [
"JavaScript"
] | 38 | JavaScript | PhienNguyenHoang/aware | 4f32fdf33af3d64da979029f2e2525366095ec20 | 4a70f8ec01f813299702c3765c37df3dd93e092f |
refs/heads/master | <repo_name>wtmlima/HelloPython<file_sep>/tkinter.py
#### FUNCIONA EN PYTHON 2, No funciona en Python3 ###
#TKINTER
#Setup Main loop Shutdown
import Tkinter as tk
window = tk.Tk() #Class constructor for a window object
def saveText():
cadena1 = textBox.get()
fx = open("fileForm.txt", "w")
fx.write(cadena... | 95763b98967745b2bc80aa18a5355386d347c4b0 | [
"Python"
] | 12 | Python | wtmlima/HelloPython | 549166abfc9ae2d8492ea7166bbe9e4b8b3d8770 | 47b2608614887945c2810a7dd2ad8670a2751f81 |
refs/heads/main | <file_sep><!DOCTYPE html>
<html lang="tr" class="no-js">
<head>
<!-- meta character set -->
<meta charset="UTF-8">
<link rel="canonical" href="https://educatory.ml">
<meta property="og:title" content="Educatory"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://educatory.ml... | 795bffa238041a65cb25c5f728b217a2542a9209 | [
"Markdown",
"PHP"
] | 7 | PHP | HopeSweaty/educatory | af68eb1e064a8032617a440de884c669a00fe5c1 | bdac9b9a568ae1fce7b3d9be161ecae5fc338f9a |
refs/heads/master | <file_sep>from scipy.stats import pareto
from scipy.stats import hmean
from functools import wraps
from timeit import default_timer as time
import numpy as np
import pickle
def measure_time(f):
"""
decorating function to measure time of function f execution
:param f: function whose time is meas... | efd523b76746a773098474d7739ea593bf48a893 | [
"Python"
] | 2 | Python | vrbaj/pareto_estimators | 26e0b664920938fbaf8b8970fda37b586b15c163 | 3614b1b0e324862e294ad4356117e6e3e9b873c5 |
refs/heads/master | <repo_name>harshadvali11/project2<file_sep>/myapp/views.py
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def wish(request):
return HttpResponse('hai how r u')
def hello(request):
return HttpResponse('hello django') | f8ff82e62114903ff18920b5e9ef4ff52afdde9f | [
"Python"
] | 1 | Python | harshadvali11/project2 | 22a10b6b3e59b13598038e85a7727206fe64c6d3 | e7b6a4d7f37caa71430b57980e414592b25b8cde |
refs/heads/master | <file_sep>#!/usr/bin/env zsh
CWD="$(cd "$(dirname "${(%):-%x}")";pwd -P)"
SCRIPT="$(readlink -f ${(%):-%x})"
TMP_BASE="${TMPDIR:-/tmp/}$(basename ${SCRIPT%.*} 2>/dev/null)"
# Backend config + defaults
BACKEND="${AUTOVAULT_BACKEND:-1pass}"
BACKEND_PREFIX="${AUTOVAULT_BACKEND_PREFIX}"
case "${BACKEND}" in
1pass ) ... | 362f966d2bc69077a2b8aac2e683a5fe6d1030b8 | [
"Markdown",
"Shell"
] | 2 | Shell | ev0rtex/autovault | acc4d7a0e462ee19bad1043841c8a436ff16094d | 0b7d5775ee5c725f24f943a29032634855d0e3d3 |
refs/heads/master | <repo_name>BenConrads/my_shiny_dash<file_sep>/deploy.R
# install.packages("rsconnect")
rsconnect::deployApp()
<file_sep>/server.R
library(shiny)
shinyServer(function(input, output, session) {
textForRender <- reactive({
p(input$text_inp)
})
output$text_outp <- renderUI({textForRender()})
})<file_sep>/READM... | 389b949441ae6372e09b522c936334475481d15b | [
"Markdown",
"R"
] | 4 | R | BenConrads/my_shiny_dash | be4483407a9df844e7a07ea6283bc2e5095b81c7 | 8e122ca7ceb81df16f5a9811a0591fcdee8390d9 |
refs/heads/master | <file_sep><?php namespace Vdbf\Configuration;
class ConfigurationManager implements Configuration {
const DEFAULT_VALUE_REQUIRED = null;
protected $configurations = array();
public function __construct($configurations = array())
{
$this->configurations = $configurations;
}
... | ee4985f1e706d323c879df5acc8f7099d44fdfa3 | [
"Markdown",
"PHP"
] | 11 | PHP | eelkevdbos/cascading-config-php | 9110ae44b45aa2d7f587053afcc4ea62e3f6011d | 7baff149092115f664a6e170ed6d1af1668394de |
refs/heads/main | <file_sep><?php
$dtaabase = new CreateDb();
class CreateDb {
public $servername;
public $username;
public $password;
public $dbname;
public $tablename;
public $con;
//class constructer
public function __construct($dbname = "Newdb", $tablename="Productdb", $servername=... | a1e51ef656d7d1ebb8eac1c226c43b95c6026d3b | [
"Markdown",
"SQL",
"PHP"
] | 15 | PHP | yradwan147/OnlineStoreDemo | ce6a3a17beddf5a67b8007a01fa00c05b61f16af | fe7485e3623ce73ffed352dd83d312408dd6cba4 |
refs/heads/master | <file_sep>print(1+1)
print("hello world")
print(4)
a = type('hello world')
b = type(123)
c = type(123.567)
d = type("123")
e = type('123')
f = type("a")
print(a)
print(b)
print(c)
print(d)
print(e)
print(f)
#print(hhh)
hhh = 'abc'
print(hhh)
print(type(hhh))
aaa = hhh+'3';
print(aaa);
print(type(aaa));
hhh = 34
print(h... | 678a5dd9d1706939f712069a79fd03ce7bd18f17 | [
"Python"
] | 1 | Python | msp233/ThinkPython | 1eb1a085086d736c211f7ed7c314c1ae043994ea | 871d91be6e118afc5a83407b6cfa139d18d886d6 |
refs/heads/master | <repo_name>iagainey/LazyReference<file_sep>/src/main/java/org/iag/utility/singleton/LooseSingleton.java
package org.iag.utility.singleton;
import java.lang.ref.Reference;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Predicate;
import java.util.function.Supplie... | 5e370a02924781c3d8e75e1cdb595c51dc952da2 | [
"Java"
] | 2 | Java | iagainey/LazyReference | 5e65e5a223ca9c1cda750045fb141ce9975fcb19 | 2fc0f4abe3598597c2c42b3c46b9dbd8609c4129 |
refs/heads/main | <repo_name>jared-p/cosc360-team10<file_sep>/js/header.js
const navSlide = () => {
const sandwich = document.querySelector('.sandwich');
const nav = document.querySelector('.nav_links');
const navLinks = document.querySelectorAll('.nav_links li');
//toggle
sandwich.addEventListener('click', () => {
nav.cl... | 71f3ba7a269de0e32b8647259d5afd1c8c45eb0f | [
"JavaScript",
"Markdown",
"PHP"
] | 20 | JavaScript | jared-p/cosc360-team10 | b79e0aadbbac804cd8238accda25bc9aa2a80212 | eacb71950a025b498f67094bb6764eaeb7a5972d |
refs/heads/master | <file_sep><?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBarangsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('baran... | c4ccb7a7cb9b288e04f34aaa920cd97b5eb6a3ce | [
"PHP"
] | 1 | PHP | Redmist-bit/laravel-jwt | b77c196923b758b42995a89c6c9cc57e23f59461 | b404a2a13ee9229c7c96e42cb0cd3b8777c2a72b |
refs/heads/master | <repo_name>anubisthejackle/NNodeBot<file_sep>/tracking.js
/*
The idea here is to compile all of the User tracking into a single object.
*/
module.exports = function tracker(name) {
return {
botName: name,
nicks: {},
/*
Weights is an object of objects.
{
'#channel': {
'Huey': {
weigh... | c171971dc4667565c78c1bb357ec22f4fab7a8e3 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | anubisthejackle/NNodeBot | a4e68f1cf1bc42c9fac0cb8a975ca88ade5c5641 | 92fdbc970d0cd0c79520a86f9bc7fb9cbfacc10a |
refs/heads/master | <repo_name>cran/yCrypticRNAs<file_sep>/src/my_coverage.cpp
/*****************************************************************************
my_coverage.cpp
Code modified from: https://github.com/ryanlayer/bedtools/blob/323b65f37ffb846b4216b0939700a0cb5f41182e/src/coverageBed/coverageBed.h
Date of modification: 2015/1... | b656b8a9c1b4332156f5f3274641324644c19986 | [
"C++",
"RMarkdown"
] | 7 | C++ | cran/yCrypticRNAs | ca462a664170c4d75c3c5f69aed78bf3447a833e | 2da6744ab08cf721521105fbd541ff0672bd437a |
refs/heads/master | <file_sep>// Hero
function Hero(game, x, y, hero ,side, nbr){
Phaser.Sprite.call(this, game, x, y, hero);
this.anchor.set(0.5, 0.5);
this.game.physics.enable(this);
this.body.collideWorldBounds = true;
this.animations.add('stop', [0]);
this.animations.add('run', [1,2], 8, true);
this.animations.add('jump', [3])... | 99db1220bb2b9206af3af2270da7a18802d74cd1 | [
"JavaScript"
] | 1 | JavaScript | WhyNotMrt/PvP | 20713d8cff018f29248ebe5f26d31de03d846126 | a10e3876b88d7bf9b959ffc3ed565475946393df |
refs/heads/master | <repo_name>eddddddy/ReFORM<file_sep>/README.md
# ReFORM
**R**ecommendation **E**ngine **For** **M**yself (though it can be for anyone if the model is trained on different data)
This is a content-based recommendation system for music that is tailored to my specific tastes. At the heart of the system is an LSTM auto-enc... | 7e99f0677c5f758b3510d16428e3ad5a0ec61890 | [
"Markdown",
"Python"
] | 10 | Markdown | eddddddy/ReFORM | ddfe4155494fcd88dfbb45842efa5ef9feea871a | b68bf1e1980c2ddef5cc1f871ccc684edb2e64c0 |
refs/heads/master | <repo_name>lililala0112/snewup<file_sep>/lib/header.php
<header>
<div class="nav_header">
<h1 class="logo"></h1>
<nav>
<ul class="nav_bar">
<li class="active"><a href="index.php">首頁</a></li>
<li><a href="#">螺旋訂做</a></li>
<li><a href="#">商品總覽</a></li>
<li><a ... | 72d80f391584f362a94d9adf69fe28b875fc9afd | [
"JavaScript",
"PHP"
] | 7 | PHP | lililala0112/snewup | 062f5be5dcc9d6a49c3cee7beea059372ee95a22 | df086bffc34da5278bc6b84123a4440f4bd257a5 |
refs/heads/master | <file_sep>import React, { useEffect, useState } from "react";
import { View, Text, StyleSheet } from "react-native";
import RadioForm, {
RadioButton,
RadioButtonInput,
RadioButtonLabel,
} from "react-native-simple-radio-button";
import useUpdateEffect from "../components/useEffectupdate";
import categories from "... | 130bfc0358b9ea52db63a5f70c283a9b9e406fb4 | [
"JavaScript"
] | 1 | JavaScript | saadbhnas/libs | b3c7fd372575fe4e883fdbe175cb9f021731c6e0 | 9a35143b94c40da5bf89d2cfd5b74da4b93932c4 |
refs/heads/master | <repo_name>yandroskaos/plusket<file_sep>/deploy/api/hello.js
const api = {};
var PS = {};
(function($PS) {
"use strict";
$PS["Main"] = $PS["Main"] || {};
var code = $PS["Main"];
var hello = function (name) {
return "Hello " + (name + " from purescript");
};
code ["hello"] = hello;
})(PS);
api . co... | be08ce1767a94260f2448dc0e476fc875638520e | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | yandroskaos/plusket | 56fad12ada1cabd0e6ea733334e03b8be29809a7 | 9674a3b1932f1a5ab9efec9c084eea8b5f2fc911 |
refs/heads/master | <file_sep>const express = require('express')
const path = require('path')
const cors = require('cors')
const bodyParser = require('body-parser')
const apiRoutes = require('./routs/api')
const app = express()
app.use(bodyParser.json())
app.use(cors())
app.use('/api', apiRoutes)
const PORT = process.env.PORT || 3000
a... | ea936fe02ec15b5890482764709fbb634a5d969e | [
"JavaScript",
"SQL"
] | 4 | JavaScript | DesperadoUA/vue-work | 9a1b7d9d49d2d1f96909c07c4d2850f737b4af16 | 9e64095915a2f6d12a4c39a76f9d6eb39473a182 |
refs/heads/master | <file_sep># Prey and Predator
## Description:
A world of 10 x 10 cells occupied by prey and predators. This stimulates the predation cycle. Preys are represented by lower case letters ('a' to 'z' indicating generation) which can move and breed. Predators are represented by upper case letters ('A' to 'Z') which can move... | 0c457adec59419bf8db8bb7b8127c46dac11b177 | [
"Markdown",
"C++"
] | 5 | Markdown | tracymeng2000/PreyandPredator | f4126f0b6e2fda60ac62e7ed9ac19e48c1f1502a | 7890d747220b247695d87fbf98a41e32691e2889 |
refs/heads/master | <file_sep>var fs = require('fs');
console.log('Simulating vrtest image generation from source files into images');
fs.copyFile('src/test_01.png', 'tmp/output/chrome/test_01.png', (err)=> {
if (err) throw err;
console.log('src/test_01.png was copied to tmp/output/chrome/ directory');
});
fs.copyFile('src/test... | f5819e736ba136888fbf0a6348b60aee2a513518 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mtkachenko2/VRPOC | fd24daa242eb5f430e64f7345e81d62446b846d3 | 59881616c5bade2ee7b4586ee077cbe644c3cc91 |
refs/heads/master | <file_sep>//
// Created by scorpion on 06.03.16.
//
#pragma once
struct LCG // for portability: 48-bit random numbers engine used in Java
{
static const int64_t LCG_MULT = 0x5DEECE66DLL;
static const int64_t LCG_ADD = 0xBLL;
static const int64_t LCG_MASK = (1LL << 48) - 1;
int64_t state;
... | 1731ef1fbb50e6c8216d89a3e40fbb807136a33e | [
"C",
"Python",
"C++",
"Shell"
] | 17 | C | antongulikov/veecontest | 0db07ffe9037ff365f0376480d2b9339f87aaf75 | 4743e7b29003c10955ea4bdbf1a04873846fca52 |
refs/heads/master | <repo_name>lago2015/Forager<file_sep>/Forager/Assets/Code/Player.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Player : Character
{
private GameOverManager gameOverScript;
private int[] materialInventory =new int[4];
int amountCarrying = ... | 37a48438df67250570eaeb61fba055837a305ba9 | [
"C#"
] | 18 | C# | lago2015/Forager | 95c1b603e57dc2c71a2b7a124f31e729e1e57d07 | 11651c2563bddd1d0b41ff09102fad07db784d0e |
refs/heads/main | <repo_name>senthilkumar11/TweetAppAPI<file_sep>/Dockerfile
FROM openjdk:8-jdk-alpine
LABEL maintainer="Senthilkumar"
VOLUME /main-app
ADD target/Tweet-0.0.1-SNAPSHOT.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar","/app.jar"]<file_sep>/src/main/java/com/app/tweet/service/impl/TweetServiceImpl.java
package com.app.tw... | 1cc5a9c5162b41791eac14b8e83e5e4d1a81e52b | [
"Java",
"Dockerfile",
"Shell"
] | 8 | Dockerfile | senthilkumar11/TweetAppAPI | 5fa8ca34b0c1cd125c220b5c16b3825c365cb6c4 | 7fe79b0beb9395151e1aa018e9dac831ca57abe0 |
refs/heads/master | <repo_name>nilsgumpfer/DeviceThermometer<file_sep>/src/ThermometerServer/Thermometer.java
package ThermometerServer;
import ThermometerServer.interfaces.ThermometerClientInterface;
import ThermometerServer.interfaces.ThermometerServerInterface;
import de.thm.smarthome.global.beans.ActionModeBean;
import de.thm.smartho... | 80825d75872bf44af9b89c16576fad9457e68a01 | [
"Java"
] | 2 | Java | nilsgumpfer/DeviceThermometer | aba97cc34657ca8b7eb8ee93687c35312707fcd5 | badcb3c71304cdf0f0f26d9b28f107346b83ad94 |
refs/heads/master | <repo_name>ma1zwoz1/UMASS_C_Scripts<file_sep>/zwozichp3.c
/*******************************************************************************************************
Title: PROGRAMMING ASSIGNMENT #3
Name: <NAME>
Description:
Write a C program that calculates and prints the average of several grades entered by the user... | b178818ce4c5f5f3e709b297ab7885c46c8b96d0 | [
"C"
] | 6 | C | ma1zwoz1/UMASS_C_Scripts | f87aa8aef1360d2f4cedff7cd1f6314528e67bb6 | 131bc1a46ce4bb0b062185312a06eed770dd22b1 |
refs/heads/master | <repo_name>m0rgul/Hefast<file_sep>/README.md
# Hefast
<NAME>
<file_sep>/public/js/angular/factory/schedule/schedule.js
angular.module('factorySchedule', ['factoryNav']);<file_sep>/public/js/angular/factory/clients/clients.js
angular.module('factoryClientsPage', ['factoryNav'])
.controller('factoryClientsController'... | 75895f58cdaaadbb7c32adf24aecf578f94a57af | [
"Markdown",
"JSON",
"JavaScript"
] | 31 | Markdown | m0rgul/Hefast | 4ea3ef509463ef68030a4ac7111b9d4f30ddfe64 | 90995217c0ce0612587c0650f527dbc22eccd3ab |
refs/heads/master | <file_sep>-- Clean Function --
newaction {
trigger = "clean",
description = "clean the software",
execute = function ()
print("clean the build...")
os.rmdir("./build")
os.rmdir("./bin")
os.rmdir("./obj")
print("done.")
end
}
workspace "SoLoader"
location ("build/" ..... | 7278e8146a245a7e7bd140eb1799d50703071ae5 | [
"C++",
"Lua"
] | 2 | Lua | Polarhigh/SoLoader | 521a1496983383fd72427b91aeab815a976602ec | 54fbcf650437337f2872b4b0b8c9bc7646cc29f5 |
refs/heads/master | <repo_name>MIrtiza/WeatherApp-React-RestAPI<file_sep>/src/components/weather.jsx
import React, { Component } from 'react';
export default class Weather extends Component{
render(){
return(
<div className="weather__info">
{/* this is if condition in reactjs */}
{... | 049d623598cdf311f140cacb748da5e64632b48a | [
"JavaScript"
] | 1 | JavaScript | MIrtiza/WeatherApp-React-RestAPI | c2d268277d0792349f04c0045b94dd1c5720f4db | ee3e72c005ea52de11c7002db4e6e0412e163eef |
refs/heads/master | <repo_name>guyt101z/hello-javacard<file_sep>/src/ToolkitAppletExample/MyToolkitApplet.java
/**
* Example of Toolkit Applet
*/
package ToolkitAppletExample;
import sim.toolkit.*;
import sim.access.*;
import javacard.framework.*;
public class MyToolkitApplet extends javacard.framework.Applet implements
... | 75a5db7d699937f9986dc80d43cfd742f8f194d1 | [
"Markdown",
"Java"
] | 2 | Java | guyt101z/hello-javacard | fb9e6178ce5226bffe6f9dc25c2e4f147096b9eb | 1c2a13d5c821feb0f6280292df7fbcf2688c633b |
refs/heads/master | <file_sep>function solve() {
const Validators = {
stringMustBeBetween(inputString, min, max){
if(inputString.length < min || inputString.length > max){
throw Error(`String must be between ${min} and ${max} characters long.`);
}
else{
return inputString;
}
},
isString(i... | 0d5083917589ff8ce1f6283a17272261949c4662 | [
"JavaScript"
] | 1 | JavaScript | startere/App-stores | d6e0d39ff054b37b44bb6e237f4a78ba3be683af | adad249d028d861c5a5a3e9a404d9d0b1a3a1c48 |
refs/heads/main | <file_sep>pulic class hello{
pulic void hello{
System.out.println(this is hello);
}
}
| 992820938f623fff77828824c14dd2ad62f246c9 | [
"Java"
] | 1 | Java | wj106/demo1212 | 2d4fe63a7035ec9d05778c83a0fa399f3e24cf0f | f8aa30af7ca0f85e2b3a8579b1442fea67a5354d |
refs/heads/master | <repo_name>Marilv10/myapp<file_sep>/app/Router.js
import React from 'react';
import { createSwitchNavigator, createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import LoginScreen from 'ejercicio1/app/screens/LoginScreen';
import HomeScreen from 'ejercicio1/app/s... | f9ffbe0f1172cc26762f73672fc7c6bd797ede5d | [
"JavaScript"
] | 5 | JavaScript | Marilv10/myapp | caa4d1389df09ea03108ec115d7da29c2a259af9 | 3354bab3c9eac9937c516383e4b283ee327ef2b8 |
refs/heads/master | <repo_name>zkochan/mutate-dom<file_sep>/lib/mutator.js
'use strict';
var forEach = require('array-foreach');
/**
* A helper for mutators creation.
* @param {mutatorCallback} fn - A function that's doing the mutation.
* @returns {Function} - Mutator.
*/
function mutator(fn) {
return function() {
var props = ... | 2db0fe3d5964d7b54de5dda3489b329784a01d85 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | zkochan/mutate-dom | 5109e5f8b86d4df2f216457473c2f0c18b04be3b | 1031cc9c6aa31186da608b6bc87b08304ca64c30 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
namespace TrailerPaulista
{
public partial class FornecedorF... | 91976a67b2974feedb90a9264560cfd2d6e0537a | [
"Markdown",
"C#"
] | 11 | C# | Haple/Sistema-Administrativo-CSharp | 466a087bb24313fd31c66915c76e0bdd5a2b8166 | 9b0c622dc6602eab52ba1c0a6d8eabdcd27e37fa |
refs/heads/master | <file_sep>from abc import abstractmethod, ABC
from sys import exit
from time import sleep
from pygame import event as pg_event, display, QUIT, quit as pg_quit, MOUSEBUTTONDOWN
from constants import Constants
from resources import Resources
class SceneBase(ABC):
"""
A class from which all types of scenes mus... | d3c9f28e1ab6cb3bd88db6378d849ffd9a2da795 | [
"Markdown",
"Python",
"INI"
] | 12 | Python | logiczsniper/TakeOff-Revisited | fd6ceca39b4395daed165753cac7bb6cbfb2b485 | b50e7bb5832492b5e20fef2c79bedae53186b7c1 |
refs/heads/master | <repo_name>matc04/PruebaCaol<file_sep>/resources/views/comercial/pizza.php
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-3d.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script type="text/j... | c4e497cefcf1ba9e2330737bca8cf55c79b2e3b1 | [
"Markdown",
"PHP"
] | 12 | PHP | matc04/PruebaCaol | 5be885dcb976427e33a4cf0c2ea7568888c0b20a | 7e59fb2b1f53674eb6460370c042c32881d66a28 |
refs/heads/master | <file_sep>// Playground - noun: a place where people can play
// THIS IS AN OSX PLAYGROUND
import Cocoa
import Foundation
var str = "Hello, playground"
var thisReal = 2.3
let myconst = "Fo real ;)"
thisReal = 3.13333337
let label = "The width is "
let width = 13
let widthLabel = "foo \(label) + \(width + 5)"
var r... | 8dacea12c4c53ed3b18cea1a2a991940cd8cb7fe | [
"Swift"
] | 2 | Swift | SteveClement/SwiftPlaygrounds | ef5a6e780ee5fd5a6e4787466fd31252132bf35f | 2715745b6e2ac299c66984fb9d6f17ba3c4856d1 |
refs/heads/master | <file_sep>@(order : Order , user : User)
@import helper._
@import helper.twitterBootstrap._
@main(user) {
<h1>ORDER DETAIL</h1>
<div>
<table>
<th span="2">Orderdetail</th>
<tr><td>OrderCode : </td><td>@order.orderCode</td></tr>
<tr><td>Order Date : </td><td>@order.orderDate</td></tr>
<tr><td>Sales Person: <... | 906e60fea8ebaa19b111308a0a14a0f33d0bd902 | [
"JavaScript",
"SQL",
"HTML"
] | 4 | HTML | witchlove/b4b | 2bbb6e09cd735002e1b21efbd817f69319472bca | dab42050a0ccb54308589fc661450f09617dd283 |
refs/heads/master | <repo_name>ericwm76/javascript-foundations<file_sep>/mythical-creatures/exercises/wizard.js
class Wizard {
constructor(obj) {
this.name = obj.name;
this.bearded = obj.bearded;
this.bearded = this.bearded === undefined;
// This is another way of writing the conditional
// if (this.bearded === undef... | 9eba17c509e898c2a0d57f0fbbfdc61e210513d0 | [
"JavaScript"
] | 1 | JavaScript | ericwm76/javascript-foundations | 89cb4a0bd7f9e96e457ab44b8d666eee86c218b1 | c621775dd7ed6bda97d8081d531693265e063b6d |
refs/heads/master | <repo_name>Jan-Jelinek/match-three-puzzle-game<file_sep>/a5-p2.py
import stddraw
import random
from color import Color
def generateBoard(time):
board = []
if time != 9999:
numberOfObjects = 6
else:
numberOfObjects = 8
for i in range(11): #9
board += [[]]
for a in range... | b8bbd02e81bf0cf09301d8c4a7960174aface8e3 | [
"Python"
] | 1 | Python | Jan-Jelinek/match-three-puzzle-game | efee4f0eac53b94c8a9286ee989e26fbea786274 | f21ef9ab95e96e3e686a64993f89ecb2ab9a2658 |
refs/heads/master | <file_sep>namespace ConsoleApp28.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class Annotationtable : DbMigration
{
public override void Up()
{
RenameTable(name: "dbo.Tillverkares", newName: "TillverkareUtanS");
AlterColumn("... | e24d76aeedd511fa00e92b3ede6feec083675008 | [
"C#"
] | 4 | C# | lejonmanen/EfDemo20171128 | 9d57d376e7b9d594604692b9a36831b72bf35af7 | de6085a332081a1bd7ad5a6f4dc384a50b12c0be |
refs/heads/master | <file_sep># The following functions are written to save time in computing inverse of a matrix when inverse of the same matrix is computed again and again.
# In case of repeat computations the cached data can be reported. On the command line run the following commands in sequence:
# s<-makeCacheMatrix()
# s$set(matrix(c... | 9faa2b9f8e437972add0452b8d3a802ff4e702d1 | [
"R"
] | 1 | R | chea16/Assignment2 | e10b22667ef6fff78620e04e3cbc1dadd6a34ec5 | 9d97386158f6eaa228accb97fb11de77d10457a5 |
refs/heads/master | <repo_name>Brev860/FSW-115_COW<file_sep>/week2/Testing APIs in Postman/Untitled-1.js
,
{
"category": "Science & Nature",
"type": "multiple",
"difficulty": "hard",
"question": "An organic compound is considered an alcohol if it has what functional group?",
"correct_answer": "Hydroxyl",
"incorrect... | 8285a7f5a9128b1e6f8f4c637ca59bffbbda84ad | [
"JavaScript"
] | 5 | JavaScript | Brev860/FSW-115_COW | da61a8cb7375852a25f8c355ce115dd47ac14d33 | 5505cd79381f9415756b15cca26150dd0c9ffe92 |
refs/heads/master | <repo_name>TigN/loginsight-logger-golang<file_sep>/loginsight/loginsight.go
package loginsight
import (
"fmt"
"net/http"
"io/ioutil"
"bytes"
"encoding/json"
)
type CfapiTarget struct {
host string
urlPrefix string
client http.Client
ownIPAddr string
}
func newCfapiTarget(target string) CfapiTarget {
client... | b28bd169328c66f05775dab1663389354873a2fa | [
"Markdown",
"Go"
] | 2 | Go | TigN/loginsight-logger-golang | cf3e93c2c8327a85b74e89f60ea2f99cbee11817 | 00cf190d48f2ff6cb8906c3f24ccef170843caba |
refs/heads/master | <repo_name>WigodskyD/Data-607<file_sep>/Data_607_Final_Presentation.Rmd
---
title: "Data_607_Final_Presentation"
author: "<NAME>"
date: "May 10, 2018"
output: html_document
---
<body style="background:
linear-gradient(63deg, #e2e2e2 23%, transparent 23%) 7px 0, linear-gradient(63deg, transparent 54%, #dddbf9 28... | 8811f5420228fdbbbaa6261e5b35aa79e6c70b04 | [
"Markdown",
"SQL",
"RMarkdown"
] | 11 | RMarkdown | WigodskyD/Data-607 | ddaf81f3947561224185fa25b80e94d2172ffaf2 | 6db5c20fb378617ae453e3a08ab750004371f475 |
refs/heads/master | <repo_name>Stasenin/rozetkaPO-masterJenkinse<file_sep>/src/test/java/Test_this/RozetkaTest.java
package Test_this;
import Test_this.Test_this.MainPage;
import Test_this.Test_this.RegistrattionPage;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static Test_... | 7574ed56e2afdeb6d1147f7200db3d71669603ac | [
"Java"
] | 2 | Java | Stasenin/rozetkaPO-masterJenkinse | cfe4873380cdcce7795902959fb13f19d8668581 | 15631c529e1a24dc5f341ae331316656a58be91b |
refs/heads/master | <repo_name>sillva7/SQLiteDataBase_Students_AndroidLessons<file_sep>/Student.java
package Meple;
public class Student {
int id;
String faculty;
String last_name;
String first_name;
int av_grade;
public Student() {
}
public Student(int id, String faculty, String last_name, String firs... | ef506816073154c204a8c4b8cc6d3a54b2c3cdee | [
"Java"
] | 1 | Java | sillva7/SQLiteDataBase_Students_AndroidLessons | 3bd8d642b000a31251a1971cc8750c4b572b4f1f | a4348fd152a80b91344d7fd22b31e2336e4a3d7d |
refs/heads/master | <repo_name>EduardoMiravalls/dynamic-strings-library<file_sep>/src/DStrings_test.c
/*
* File: DStrings_test.c
* Author: <NAME> <<EMAIL>>
*
* Date: 2014-08-30 16:45
*/
/*
* Dynamic C Strings library.
* Copyright (C) 2014 <NAME>
*
* This program is free software: you can redistribute it and/or mo... | 8ed5bd0e85d24d63ee0376c51e92df85798b1428 | [
"C",
"Makefile"
] | 4 | C | EduardoMiravalls/dynamic-strings-library | 827608b2f7f9a743e9fb41ee5df51ff54156a20d | 1fc46503e70720ebbfc472640e7c6b68b7ebaf50 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/*Question 1 - Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5, between 2000 and 3200 (both included). The numbers obtained
should be prin... | be81991e0be1d0da5f23243a37727811b3a9e28b | [
"C#"
] | 1 | C# | brockbarlow/warmup-questions-in-C-Sharp | 02115fd9d3fdfc655e380bc6e588460bc0d79047 | 285cb14687280784d6b7226533152b73ffe600bc |
refs/heads/master | <repo_name>ArtemVasilenko/FifteenNew<file_sep>/Fifteen/FifteenViewController.swift
import UIKit
class FifteenViewController: UIViewController {
@IBOutlet weak var pole: UICollectionView!
private var numberCell = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", " "]
... | 467d74251acad147929ac7f350821b4a4b19a296 | [
"Swift"
] | 2 | Swift | ArtemVasilenko/FifteenNew | ad52ed900523470c97fc7ba58fe491bdf582200c | 04fa652d647ee1d241dce2c9b93e8137b4eec344 |
refs/heads/master | <file_sep>require 'redis/rails/instrumentation'
<file_sep>require 'redis'
require 'redis/rails/instrumentation/logging'
require 'redis/rails/instrumentation/version'
require 'active_support'
require 'sweet_notifications'
class Redis
module Rails
module Instrumentation
Railtie, LogSubscriber = SweetNotifica... | 3c212b77bf9c533dc687e7a07cbb944a6b33bb45 | [
"Markdown",
"Ruby"
] | 9 | Ruby | lautis/redis-rails-instrumentation | 839d7e71a9a42e816ecbdc90187ebf915ce53462 | 59721cc329f5c6e793f2b369e0a5404fbb0e62f3 |
refs/heads/master | <file_sep>import org.webbitserver.HttpHandler;
import org.webbitserver.HttpRequest;
import org.webbitserver.HttpResponse;
import org.webbitserver.WebServer;
import utils.FuriTemplateEngine;
import utils.HttpVerbHandler;
import utils.UriTemplateEngine;
import utils.UriTemplateHandler;
import java.util.Map;
public class... | c22d5393ed930153bab6f7885b2abd5db6e5fa3a | [
"Markdown",
"Java"
] | 4 | Java | Ayushbandil0007/SmartCartServer | d63ec134ec7da95876eaa0f2e108456ac47b6388 | 6797d05fb37911f193b6a4e08882991e2ebc67db |
refs/heads/master | <repo_name>haibison/JRAndroidEncrypter<file_sep>/scripts/jr_android_encrypter.rb
#!/usr/bin/env jruby
##
# Copyright (C) 2015 <NAME>
#
# See the file LICENSE at the root directory of this project for copying
# permission.
require 'digest'
require 'optparse'
require 'ostruct'
SAMPLE_JAVA_FILE_NAME = 'JrAndroidDecrypt... | a69c3b7cfe8cf3e9b7e19c1f53b30001fd099050 | [
"Markdown",
"Java",
"Ruby"
] | 3 | Ruby | haibison/JRAndroidEncrypter | deb1c75489de5281b472b84ee6677dd2a38def19 | 583de2a835f9cae59339f5a0e45381eaa2db2b0b |
refs/heads/master | <file_sep><?php
session_start();
include "authentication.php";
include "config.php";
$page = isset($_GET['page']) ? $_GET['page'] : 1;
$limit = 3;
$offset = ($page-1)*$limit;
$sql = "SELECT * FROM users LIMIT $limit OFFSET $offset";
$query = mysqli_query($link,$sql);
?>
<!DOCTYPE html>... | 0cfb79af73c0a033f9539b7f87432170994df332 | [
"Markdown",
"PHP"
] | 3 | PHP | Setyonugrohobtr/MyEBook | 594d1cf67c2c4c82d7e1320886b5bcd132cde16a | 7b0ca13d42dc30a8d2aaeff3fc8eef94f2c98cc5 |
refs/heads/master | <repo_name>PauliusPo/Pizzeria<file_sep>/src/lt/bit/pizzeria/Sauce.java
package lt.bit.pizzeria;
public enum Sauce {
}
<file_sep>/src/lt/bit/pizzeria/MenuItem.java
package lt.bit.pizzeria;
public interface MenuItem {
}
| def47e3d0a70510c9607f1052ca30b514def50b6 | [
"Java"
] | 2 | Java | PauliusPo/Pizzeria | 1737e1f2c6c9f74c2f35edbf4a81e45f6b642b50 | a081f04871111bd4887c87f9f655ad066c28fa0f |
refs/heads/master | <file_sep>#ifdef HAVE_NCURSES
#define Uses_THardwareInfo
#define Uses_TKeys
#define Uses_TEvent
#include <tvision/tv.h>
#include <ncurses.h>
#include <internal/ncursinp.h>
#include <internal/getenv.h>
#include <internal/utf8.h>
#include <internal/codepage.h>
#include <internal/constmap.h>
#include <string_view>
/* T... | 89181111e7bb147128632e610fba6372c2b0131c | [
"CMake",
"C++"
] | 7 | C++ | dasbluehole/tvision | 7949a57ec31c3fe6a95c9d427fccaa75cfb72693 | b3bf828c282794514e196dcf9a495a732609191e |
refs/heads/master | <file_sep>class Event < ActiveRecord::Base
has_one :location
has_many :attendees, :dependent => :destroy
validates_presence_of :name
accepts_nested_attributes_for :location, :allow_destroy => true, :reject_if => :all_blank
end
<file_sep>module ApplicationHelper
def title
base_title = "This is my first serious ra... | ac2d8890e638a0b3b82ce7a6042f6dba65563939 | [
"Ruby"
] | 3 | Ruby | gran/first_rails_blog | f681eff78399d2d151997bb99bb077e4c2786b3e | bd515a6e7cc15d89be88793a71f1c62dc853d037 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.