branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>#include <stdio.h>
int main(void) {
int arr[6]={8,4,1,9,6,2};
int sort[6];
int ctr, count, min;
for(ctr=0;ctr<sizeof(arr)/sizeof(arr[0]);ctr++)
{
sort[ctr] = arr[ctr];
}
for(ctr=0;ctr<sizeof(arr)/sizeof(arr[0]);ctr++)
{
for(count=ctr+1;count<sizeof(arr)/sizeof(... | 5bbf215d5a562bb308ea83ed6656eee828695862 | [
"C"
] | 1 | C | GayathriPrabha/sorting-max | a2d5593e22a39cdf66fc9d7d9f977580c61e8b80 | f83c275777b7680cd4967176c26c251c847fbec3 |
refs/heads/master | <repo_name>bingwenwuhen/tornado<file_sep>/ca.py
__author__ = 'Administrator'
import os
import tornado.web
import tornado.ioloop
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello world")
def post(self):
self.write("hello xiaxuan")
if __name__ == "__main__":
s... | ba2dcc2b3305b466cba267155791487b15f6fa86 | [
"Python"
] | 2 | Python | bingwenwuhen/tornado | ceba4bd143c557c46ab1627d5abdbc60d48d3f60 | 07f97ce13a298efb0ddfe4d57e1235a3c478a93e |
refs/heads/master | <file_sep>#ifndef PRECODE
#define PRECODE
#include <stdio.h>
#include <gtk/gtk.h>
struct card{
int num;
char name[1024];
int acquisition;
int type;
};
GdkColor red;
GdkColor green;
GdkColor gray;
GdkColor blue;
GdkColor yellow;
GdkColor color_tmp;
struct card card_list[256];
char mCardNum[1024];
i... | ee3e3f8efa080318fbcfcb27b3e90c3eb113adef | [
"C",
"Makefile"
] | 4 | C | sysuke/pol_card | d8b9c831e54aed11db2a0c265bbec91ac86e23d9 | ccf05fe72d336cbb14fe235dc163679b18c31ea2 |
refs/heads/main | <repo_name>Sahana012/Python-Code<file_sep>/forloop.py
myfriendlist = ["alina", "theresa", "maliha"]
for friend in myfriendlist:
print(friend)<file_sep>/countwords.py
introstring = input("Enter your introduction: ")
wordcount = 1
charcount = 0
for i in introstring:
charcount = charcount + 1
if(i == ... | af70f2fba7e85cbf2b13eface214dbef54c05fdb | [
"Python"
] | 5 | Python | Sahana012/Python-Code | ff71d4548c992347ad63a114fc280cc2b44fa2cf | a21537dbe9f687575b2d45e8b0854e90df0acc1e |
refs/heads/master | <repo_name>estark37/ratout<file_sep>/Makefile
all:
gcc -o ratout ratout.c -lcurl
gcc -o ratout-server ratout-server.c -lcurl -I /usr/include/libxml2 -lxml2<file_sep>/ratout.c
#include <stdio.h>
#include <stdlib.h>
#include <curl/curl.h>
#include <time.h>
#include <string.h>
#define REQ_FILE_PATH "/Users/estark37/Dro... | aca2971d17ae9cc6a095697c86d519910afb1fe6 | [
"C",
"Makefile"
] | 3 | Makefile | estark37/ratout | 3b44db92f1af082d344e10285e41c7a402b0b57a | 4cc0835697f1809bc68fb75553771a3e31f9a94b |
refs/heads/master | <repo_name>aspcodenet/CmsIocCore<file_sep>/CmsIocCore/Models/User.cs
using System.Collections.Generic;
namespace CmsIocCore.Models
{
public interface IMyLogger
{
void Log();
}
class Logger : IMyLogger
{
public void Log()
{
}
}
public interface... | defbacd4f0b25b1f1dbcf461e8da3cdb11177538 | [
"C#"
] | 1 | C# | aspcodenet/CmsIocCore | 010aa18f9f998e3fac8c7c6553db1945deebbc2c | e2ce3925e45feb75612e6e6933d0d2d012b32d2f |
refs/heads/master | <file_sep>import React from "react";
import { connect } from "react-redux";
import styled from "styled-components";
import { motion } from "framer-motion";
const variants = {
open: {
x: 0,
y: 0,
opacity: 1,
transition: {
x: { stiffness: 1000, velocity: -100 },
},... | 6b700eaf51bacdc6a3ce62e1cb35909091d7d09c | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | wallacelim97/personal-website | 7fa2ebda562d9eab9eaf3e2f6d2a357f55e687f0 | ddc2dd0e67402d0ed3818ce08421cfdc238678eb |
refs/heads/dev | <file_sep>import Phaser from 'phaser';
import setUserName from '../script';
import { putScore } from '../config/leaderboard';
export default class PlayerInputScene extends Phaser.Scene {
constructor() {
super('PlayerInput');
}
create() {
const latestUser = setUserName().getUserData();
if (latestUser... | b511d02feb7bb7750314793ded785b18a753d4a5 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | kelibst/ninjaskrill | 0f90119a6daf66a4a62f24cf5feab8c44d04e2c9 | a82776e4b20e46925d12f7f932ffa1c875b32ee4 |
refs/heads/master | <file_sep>/*jshint curly: true, asi: false, funcscope: false*//*globals $:false *//*globals console:false */
$(function() {
"use strict";
$('#search').on('click', function () {
var searchTerm = $('#searchTerm').val();
var url = "https://ru.wikipedia.org/w/api.php?action=opensearch&search=" + se... | 7431f5328382542db62d3053cfaa0c7f23e3caa2 | [
"JavaScript"
] | 1 | JavaScript | SviatoslavK/GoIT_JS_15-16 | 897079e3a3220eebaeb82218ecc033da0e920484 | 69c14d4a90aa71062a6a7abd1df5ad297ef1b9bc |
refs/heads/master | <file_sep>-- require controller module
local storyboard = require "storyboard"
local scene = storyboard.newScene()
local widget = require "widget"
local g = require( "mod_globals" )
local json = require "json"
-- configs
-- hide device status bar
display.setStatusBar( display.DefaultStatusBar )
display.setDefault( "ba... | ceba205cb53efb0bec956e749edb78913b478b27 | [
"Lua"
] | 11 | Lua | jairus/mondano | af575f5d85c4d016b40b627331d1561e88da23f5 | 2163e85b8b8556760d9ab24d7bc7aa722451cfaf |
refs/heads/master | <repo_name>383366204/kt<file_sep>/src/store/index.js
import Vue from 'vue';
import Vuex from 'vuex';
import config from '../config/config.js'
Vue.use(Vuex)
const state = {
isIndex: true, //判断是否在首页
isLogin: false, //判断是否有登录
addresses: [], //收货地址
cart:[],
checkOutGoods: [],
token: null,
userInfo: {
nic... | 399ed14f8ca4431046678e03a0d97cb28c7cca8f | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | 383366204/kt | fd1e437678272f6b401e54a4d730e324567ea6e2 | b2bb1f1a019488be274e65495af1b612cae99c0c |
refs/heads/master | <repo_name>minhchuduc/Project_2<file_sep>/Basic_1.py
#Coding time: 1 minutes
def reverse_string(string):
return string[::-1]
if __name__ == '__main__':
input_str = raw_input('Input string: ')
output_str = reverse_string(input_str)
print "Reverse string is:", output_str
<file_sep>/hvn_spiral.py
# Ti... | 210622965585479e8cd00c73a2be73920fd0f644 | [
"Python"
] | 5 | Python | minhchuduc/Project_2 | 6bdbdd39a69c0ad2ad4886d91f6b3dba22c0664a | 005e2cf0aa559a157ec92a61e36b4d1da8c2b63b |
refs/heads/main | <file_sep>contenu = open("sequences.fasta", "r") #ouvrir le fichier fasta
description = open("descriptions.txt", "w") #créer fichier text où on insérera les descriptions
ids = open("ids.txt", "w") #créer fichier text où on insérera les ids
compteur = 0
for ligne in contenu:
if ligne[0] == ">": #si le pre... | 0cebeee5eece7457ec8af291c004d1aba2f5f770 | [
"Python"
] | 1 | Python | haddad-github/FASTA-Sequence-Reading | 22f966fce8da477475972f6b255bc9e737937f19 | b10e28b4d8c8bf0f6ecb2f0f951344b49b3b6247 |
refs/heads/master | <file_sep>package com.example.myapplication
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.example.myapplication.databinding.ActivityMainBinding
import com.example.myapplication.dependencyInjection.Injectable
import com.example.myapplicat... | 8a6e392feb87122272f9516f57ec55b6a2969cb6 | [
"Kotlin",
"Gradle"
] | 6 | Kotlin | korydondzila/kotlin-centerflow | 306f9c13abfe12b67941f5096c2a17b8836c9c17 | d6c36f1adc9979f12e598cd02b7ed47bd5c40e9d |
refs/heads/main | <repo_name>Chooosa/studio-front<file_sep>/src/components/ErrorFallback/error-fallback.component.jsx
import React, { useEffect } from 'react';
import axios from 'axios';
import { useLocation } from 'react-router-dom';
import moment from 'moment';
import { deviceDetect, browserName, browserVersion } from 'react-device-de... | d0d537faf542054303d75cf024d97902318301f8 | [
"JavaScript"
] | 80 | JavaScript | Chooosa/studio-front | ecc187e653f4a2a58652ca8d0cbb698fd158a574 | 6dacabb35a95514d2501d6e5af0d8e85b6ccd215 |
refs/heads/master | <file_sep>class CoffeeMachine:
def __init__(self, milk,coffee,sugar):
self.milk = milk
self.coffee = coffee
self.sugar = sugar
def make_coffee(self,milk,coffee,sugar):
if milk > self.milk and coffee > self.coffee and sugar > self.sugar:
min = milk - self.milk
min2 = coffee - self.coffee
min3 = su... | 80ae2211de8072ec381271e81a0e77f900dc3750 | [
"Python"
] | 1 | Python | muslinovsultan/ekzamen | 92260712b64cd49f43f3fdbe7ebdebca3ff78358 | 6528e281d172b0a8a1417118b62eefc9a8c64787 |
refs/heads/master | <file_sep>//
// ViewController.swift
// SimpleAnimations
//
// Created by <NAME> on 20.09.2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
import Spring
class ViewController: UIViewController {
@IBOutlet var animationView: SpringView!
@IBOutlet var detailsLabel: SpringLabel!
let ani... | 9421939cad76f7c321fea9cb16602359834e3c6c | [
"Swift"
] | 2 | Swift | KevinWendelCrumb/SimpleAnimationsApp | aa17ffe3bf6802e9641f283df1db7f0355997c74 | 0b7d651c16d1c0275571cba43bd20b8b15278b23 |
refs/heads/master | <file_sep>package DoAn;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
public class kiemtra {
public static boolean isNumberic(String x) {
try {
Double.parseDouble(x... | 7df50ecc698ce6dd163e14f7607b64f50a914591 | [
"Java"
] | 8 | Java | haidang-lhd/oop | e47feac391afb0bec331e48421d5f19fd53e6b5e | 1e3e9474ade5a6b323fdb22ce69e413e5554a738 |
refs/heads/master | <file_sep>import java.util.Random;
import java.awt.Graphics2D;
public class Pipe {
private boolean active;
private int gapSize;
private Sprite spritePipeUpper,
spritePipeLower;
public Pipe(String spritePathU, String spritePathL, int gapSize) {
Random rand;
int pipeWidth, pipeHeight, lowerPipeU... | 06c6ac805ce9556ee6a940fb3ddee861388908c7 | [
"Markdown",
"Java"
] | 3 | Java | e3ntity/java-flappybird | b1a0b52e5b7fc8f279974e1a90b472d5a9636256 | ac805a43f3950320c52b236a41f263bb44a7e4c7 |
refs/heads/main | <file_sep>var mouse_event="empty"
var lp_x,lp_y
canvas=document.getElementById("mycanvas");
ctx=canvas.getContext("2d");
color="black";
width_of_line=1
canvas.addEventListener("mousedown",my_mousedown);
function my_mousedown(e){
mouse_event="mousedown";
color=document.getElementById("color").value;
... | b69b6a70cc6eed25e83cbb0e38dcf2a7b56cc1b7 | [
"JavaScript"
] | 1 | JavaScript | Manish2468/Paintingcanvas | a8fe6fe09912ef7df26899a02825212094a14d45 | 7ceb8fd94123ff1cddecb0c099a3b460d7b80042 |
refs/heads/master | <repo_name>CeramicSkate0/BadcCommandLine<file_sep>/ComLine.c
/**
* After reading user input, the steps are:
* (1) fork a child process-X
* (2) the child process will invoke execvp()-X
* (3) if command included &, parent will invoke wait()-X
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sy... | ec47493d7cf3ba82ee19e4b43c5861929460386a | [
"Markdown",
"C"
] | 2 | C | CeramicSkate0/BadcCommandLine | 3f32d6fecec74bb044d98739ae30dba12a6d876d | e4d4d5165286d1d5052a428ce7b2b29caed27353 |
refs/heads/master | <file_sep># scrape_last.fm
Use to scrape users, music, and related information using Last.fm API.
# getUser
Scrape users from a Last.fm group. Save usernames to user_list.csv.
# getTracks
Scrape banned and loved tracks for each user in user_list.csv. Save results to user_BannedTracks.csv, user_LovedTracks.csv, and u... | 4b2598eeb0492413892072f9dc621cfe8fd83aa0 | [
"Markdown",
"Ruby"
] | 5 | Markdown | taozhaojie/scrape_last.fm | 75761befbe64585555a7f2c007e7015ee3c269f8 | 7266ef5f1bec80e8677695929db4605fe57c3caa |
refs/heads/master | <file_sep>import os
os.getcwd() # returns the current directory
os.chdir('D:\DESKTOP') # changes the directory
os.system('mkdir today') # Run the cmd mkdir in the system shell
import os
dir(os)
help(os) #help
import shutil
shutil.copyfile('data.db', 'archive.db')
shutil.move('/bulid/executables', 'install... | 11c901e6e69107c96f64315d6369b90647e0e023 | [
"Python"
] | 1 | Python | qinyanjuidavid/Hands_On_Python | 0a2af169a596b5e3a4a4790632b46c9ef6847faa | 2fce51742d6fc09bb10123a4b3b58a220a6c6b48 |
refs/heads/master | <repo_name>quanhieu188/QLCoffeeShop<file_sep>/DoanhThu.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QLNVApp
{
class DoanhThu
{
public string KhachHang { get; set; }
public string Date { get; set; }
publ... | 71f4475fe084b98c3d3abd1568b5603e0f43433a | [
"C#"
] | 10 | C# | quanhieu188/QLCoffeeShop | daf2de8b9c6ebcf5c10c7f776a6b374b3654cd13 | 1a9e077ffe70395f56653602831a1cf08b226c61 |
refs/heads/master | <file_sep># -large-integer-arithmetic-algorithm
a program in VS C++ 2017 to implement the large integer arithmetic algorithm shown in class. Let's assume the threshold to switch from the large integer arithmetic algorithm to the standard multiplication algorithm is 2. When your program is running, it should first prom... | 5596eae1b27528ac0bd96505c390a13c89dc9b34 | [
"Markdown",
"C++"
] | 2 | Markdown | jiahuij/-large-integer-arithmetic-algorithm | 64ff9ce87f677cb1c1f6deed5d465383cb01e546 | b6a6053e043fc3e0ee0a16adbb6fc5f713510b4c |
refs/heads/master | <file_sep>---
layout: docs
title: Ideas
---
The ideas are the foundation of Sagefy's architecture. The ideas are broad and based on highly common patterns in memory and learning research. Use the ideas to provide a sense of direction.
1. Do One Thing at a Time
2. Set & Adhere to Goals
3. Adapt to Prior Knowledge
4. B... | b8b246311fdd54dfa9b18dbd7a5b59fe1a235c73 | [
"Markdown",
"JavaScript",
"Dockerfile"
] | 5 | Markdown | kelre/sagefy | 863fad1dffe58f194bc7dee8f5eb29ee7a88859c | 6270206241979bb2f2b00aceef2bce0d3a9cd879 |
refs/heads/master | <repo_name>andershow7/curso_java_ee<file_sep>/src/main/java/br/com/restful/resource/HelloResource.java
package br.com.restful.resource;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import ... | a79746aa455c32a3a039e3677480d53d0c76070d | [
"Java"
] | 1 | Java | andershow7/curso_java_ee | 7d32f288a4b4f3171bfe4e41417bdea7af9bc79d | 60e1dc9d0aaf7773d301b79afc6a687117f39e14 |
refs/heads/master | <file_sep>import { response } from "express";
const API_TOKEN = "CLE_API";
export function getDataApi(link){
const url = '' + API_TOKEN;
return fetch(link)
.then((response) => response.json())
.catch((error) => console.log(error))
}<file_sep>/**
* Sample React Native App
* https://github.com/faceboo... | a26882a20ccbd66732dfa779f0c5e88cade32e36 | [
"JavaScript"
] | 11 | JavaScript | De-jacques/reactapp | 22ce78a4966f007d489cd2786d42e89aeb608503 | 87e88acc506923c713bb47aa0902999107e12e6e |
refs/heads/master | <repo_name>nhnifong/breadability<file_sep>/src/breadability/__init__.py
VERSION = '0.1.9'
import client
from scripts import newtest
| b5a5de5b6343e0d571b5d16caffde494600b9245 | [
"Python"
] | 1 | Python | nhnifong/breadability | bd226ad09336414020ce398b7a73b390ac6d29fc | 59dc8595c5d1181513d65e47bd7965f7d0ece4a4 |
refs/heads/master | <repo_name>bruno-source/skywatch-data-sources<file_sep>/requirements.txt
aspy.yaml==1.3.0
attrs==19.3.0
beautifulsoup4==4.8.1
certifi==2019.9.11
cfgv==2.0.1
chardet==3.0.4
Click==7.0
coverage==4.5.4
identify==1.4.7
idna==2.8
lxml==4.4.2
more-itertools==7.2.0
nodeenv==1.3.3
packaging==19.2
pluggy==0.13.1
pre-commit==1.2... | 7a80167286c7edb2da58f53de44c63f692c57aab | [
"Markdown",
"Python",
"Text",
"INI"
] | 8 | Text | bruno-source/skywatch-data-sources | b543f4dcb3a383d165f2fff6de0949ed4d7b0f45 | a7a48727e957d9990994e6c8c12e385a65460fae |
refs/heads/master | <repo_name>oserr/recognizer<file_sep>/my_model_selectors.py
import math
import statistics
import warnings
import numpy as np
from hmmlearn.hmm import GaussianHMM
from sklearn.model_selection import KFold
from asl_utils import combine_sequences
class ModelSelector(object):
'''
base class for model selection (... | c6c5bf04b73effeb3c34282b57a9160c1268d926 | [
"Python"
] | 1 | Python | oserr/recognizer | 9b23d1f415d393e5a96104df4832d404e1c2b7a1 | 4958d31e260ab04ad5c21eb39b8bc85656a8becf |
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 Controller;
import Model.model;
import View.View_Pasien;
import sisfopasieninap.Aplikasi;
/**
*
* @a... | a43e6ba111409026a2d3319aa830eac4511cb8ae | [
"Java"
] | 1 | Java | faisalfrtz/Tubes_PBO_Kelompok8 | 57ec60d11574e589ad640e371bb2ec1c5f2983f2 | 879639514a89dd875cc853feae34e7b9192ba11c |
refs/heads/master | <file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.border{
width: 0px;
height:0px;
... | 0417e7dccd8a92384ec72eb5ce40a2c89377ecc3 | [
"JavaScript",
"HTML"
] | 11 | HTML | zwjsoft/web | a0e30ec970f1431e4e57c2092d4b35986a75ac61 | 9f224d13eeab701ddecbde282405240266accf56 |
refs/heads/master | <repo_name>hosnimubaraq/C-Programming-Assignment<file_sep>/no2(a).c
float do_it (char a,char b, char c) //header function do_it()
//<NAME> 17/U/3772/PS
<file_sep>/no4.c
/*function addarrays()*/
int c[] = {};
void addarrays(int a[], int b[], int x) {
int i = 0;
while (i < x) {
c[i] = a[i] + b[i];
i++;
... | dd7ef33e610a1715721cacb864d6a1992c15bccf | [
"C"
] | 4 | C | hosnimubaraq/C-Programming-Assignment | 7b2d1f50099445d39e6653c29c175e4a94d3c97c | 5d57bfd87bba3acc711f92c37e1e2e40eb71881e |
refs/heads/master | <repo_name>hardliner66/sleep-rs<file_sep>/README.md
# sleep
## About
Windows has no simple tool or command to wait for a certain amount of time while executing a batch file.
I already have rust installed on all my computers so I thought it would be fitting to create a simple sleep command which can be installed dire... | e05301af4beaa6339c0214ef23c5bf6d26b135e8 | [
"Markdown",
"TOML",
"Rust"
] | 3 | Markdown | hardliner66/sleep-rs | 566ba4cf0e8f08884332c6c87277090495241554 | 757eadb3294572118edd5c85992e869a9bf77b85 |
refs/heads/master | <file_sep># shopping-cart-service<file_sep>package service
import (
"github.com/google/uuid"
"shopping-cart-service/src/main/dao"
"shopping-cart-service/src/main/domain"
)
var cartDao = dao.CartDao{Carts: make(map[uuid.UUID]domain.Cart)}
func CreateOrUpdate(c *domain.Cart) *domain.Cart {
return cartDao.CreateOrU... | 22dcc5f527b08c95d690dc0f2e6c241878a9dec1 | [
"Markdown",
"Go"
] | 10 | Markdown | holmergaitan/shopping-cart-service | 1ecfcb1911ede35bcea127811a3eedbfbfefce88 | 08de4e2ec047776ccb599bb0b9c96f692a86ea3f |
refs/heads/main | <repo_name>ricardopraxedes/nestjs-training<file_sep>/README.md
## Description
Practice with [Nest](https://github.com/nestjs/nest) framework.
<file_sep>/src/players/players.controller.ts
import {
Body,
Controller,
Delete,
Get,
Param,
Post,
Put,
} from '@nestjs/common';
import { CreatePlayerDto } from '... | 4898ee328e0bc8f4ef593c651be42658a119899e | [
"Markdown",
"TypeScript",
"YAML"
] | 6 | Markdown | ricardopraxedes/nestjs-training | d64fc45ab0ed7dde34171b2c236e9620a8ababf1 | 2ac862b0c0f3636fde2f9f9683af97fbb8e6d0df |
refs/heads/main | <file_sep>// Assignment Code
//do you want to use Upper Case characters - var = globally scoped
var upperCase = ['A','B','C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X','Y', 'Z']
//Array of lower case characters - do you want to use Lower Case
var lowerCase = [... | ea22462ddcac2d1c821cee399dd346f3acb13bc5 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Jacqieq6464/password-generator | 47e26a9fa2d708d8c0eff2704412a8307b79b6e5 | 94d366753ef7084c3998b0c9c302eb7c2ff98764 |
refs/heads/master | <repo_name>dlcnd/pathapi<file_sep>/README.md
# pathapi
<file_sep>/pathapi.py
#!usr/bin/env python
#coding:utf8
import sys
import re
def project(path):
"""
경로를 넣으면 project 이름을 반환.
"""
p= re.findall('/prject/(\w+)',path.replace("\\","/"))
if len(p) != 1:
return "", "경로에서 project정보를가져 올 수 없습니다"
return p[0],Non... | 9409f33072375b5b5e94cb47da40a7bdd3f3ae2a | [
"Markdown",
"Python"
] | 3 | Markdown | dlcnd/pathapi | 01daf04a559add9f5ac0ad39049d09c79ba251ba | 5e3b5c92d5389136e3fa71ac8d99adb789a0ccb3 |
refs/heads/master | <file_sep>from sys import argv
adjective, color, noun = argv
prompt = '>'
print(f"I know the teacher is very {adjective}. Sometimes he wears a {color} shirt with {noun} on it.")
print(f"Name an item")
iteam = input(prompt)
print(f"Name a place")
place = input(prompt)
print(f"Name a person")
person = input(prompt)
... | c0d7fb6e0b072be9a722ea1d1f6b8019cb167c70 | [
"Python"
] | 3 | Python | mekhaabraham03/MadlibProject2 | 6d0e87af4a69d2c80390812a35c57eab6c936652 | f20094b8f236b4c19c79b4d18ec8e00bdffb9e66 |
refs/heads/master | <file_sep>compare_cols_naive <- function(x, y, col, tolerance) {
}
| a423eaa451e79c77a115824057b2f47a0fa993f7 | [
"R"
] | 1 | R | ryanbthomas/safelyexample | af802a091a0b7a53e9e877b4ed1c993df70d5cd1 | 70bb62088321c2911c19e1f7cf17932388c535b8 |
refs/heads/master | <file_sep>Docker image containing PyCharm IDE
<file_sep>FROM ubuntu:16.04
MAINTAINER <NAME> "<EMAIL>"
# Configures operative system dependencies
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && \
apt-get update -q... | b9733faadd8862678fbf3b73c2772379cab49692 | [
"Markdown",
"Dockerfile",
"Shell"
] | 3 | Markdown | ali1rathore/pycharm-docker | 90f1f4ed8b469b479d9a48e2af1cd3357274ff99 | 01a4edac6acb3352e13936333b78335170c1c2b1 |
refs/heads/master | <repo_name>tuandat95cbn/LTSS<file_sep>/Code/quicksort.cpp
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
#include <time.h>
int n;
int a[1000000],*localArr,*reciveArr;
int nold;
MPI_Status status;
int rank;
void readData(){
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
}
void p... | b64c00eb6cbde754be6c83132f76d4ef160a1370 | [
"Markdown",
"C",
"C++"
] | 13 | C++ | tuandat95cbn/LTSS | 19e2a3b59a4ebdb038012ae1cb3ff973089f9907 | b64e8d8e64c58993f2a982cb318dfcae8bbe657a |
refs/heads/master | <repo_name>shangzhouye/final-project-numg<file_sep>/README.MD
# Mini Golf
*<NAME>, <NAME>, <NAME> and <NAME>*
## Demo
<p align="center">
<img width="600" height="450" src="https://github.com/shangzhouye/final-project-numg/blob/master/pictures/demo.gif?raw=true">
</p>
For a video of the robot in action, [please wa... | 9892ea32dafa863ef97899ff2ea00f8538dabb46 | [
"Markdown",
"Python",
"Shell"
] | 11 | Markdown | shangzhouye/final-project-numg | 710ce352d21ac474b64052b0f20951a4ff5ae408 | 9678244b7c6c738eb0bcef89d68af7f8c2c7594e |
refs/heads/master | <file_sep>
function limpa_formulario_cep() {
//Limpa valores do formulário de cep.
document.getElementById('rua').value = ("");
document.getElementById('bairro').value = ("");
document.getElementById('cidade').value = ("");
document.getElementById('estado').value = ("");
}
function meu_callback(conteudo) {
... | e997a500e36103f80ab2893a781abb7a09d6d0a1 | [
"JavaScript"
] | 1 | JavaScript | furstsoo/PI3 | 12fc2c0eb684aaad6a1e5f718441d476e893b03a | 04b8a23a84063e2abc9da4cb7e7cc50170b4d32f |
refs/heads/master | <repo_name>dmignosa/CS399<file_sep>/searchingProject/src/searchingProject/heapSort.java
package searchingProject;
public class heapSort {
public heapSort(){
}
//main heapsort method, builds the heap from the completely unsorted list
//then sorts it by swapping the top of the heap with the last value and findin... | d6c0772a69365a6685d6b361bdfd3cca9625c6cc | [
"Java"
] | 3 | Java | dmignosa/CS399 | 058cc6ef634b7483b4183163119c0876baa39ca5 | 29d10629316ef3a8517b7d34e7e7d3a8af01903f |
refs/heads/master | <repo_name>Amit-singh311/EmployeeApp<file_sep>/src/actions/types.js
export const EMAIL_CHANGED = 'email_changed';
export const PASSWORD_CHANGED = '<PASSWORD>';
export const USER_LOGIN_SUCCESS = 'user_login_success';
export const USER_LOGIN_FAIL = 'user_login_fail';
export const USER_LOGIN = 'user_login';
export const E... | 797017bb55688e124dba365794daf936f6632774 | [
"JavaScript"
] | 1 | JavaScript | Amit-singh311/EmployeeApp | 4f37b3f5dc837d26c2ae6b3de4b95b9a0d5b2890 | 14f64140c4c1e82e1fd44340d551e77f720dfe0f |
refs/heads/master | <repo_name>ValentynKurylo/python2<file_sep>/main.py
list=[{'name': 'mouse', 'price': 200}, {'name': 'table', 'price': 400}, {'name': 'phone', 'price': 4000}]
bought_thing = []
n = 100
while n != 0:
print("1 - Create notice" )
print("2 - Show all notices")
print("3 - To buy something by name of notice")
... | 3d266f3acd31e88ac817b2a49d44bef17980664e | [
"Python"
] | 1 | Python | ValentynKurylo/python2 | f7659d3d03e57dd394cdf62c3f998da3e7ea6882 | bf98422858f43edde882b7016ceff0698308e19b |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sandbox
{
class Program
{
static void Main(string[] args)
{
int x = 5;
int z = AddTwoNumbers(6, 4);
Restaurant mcDonalds =... | c7e688e85546703a5c75c9279f9140ca09435e31 | [
"C#"
] | 7 | C# | krntranslation/UserStoryTest | 4a9171511a89698dcc12e5fd5106d7d17c583e03 | 8df898e85142d594f23c1fe7bfcd31f0cbddaa6a |
refs/heads/master | <repo_name>lazargal/maman-13<file_sep>/Maman13Q1/src/MenuFileReader.java
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class MenuFileReader
{
private ArrayList<MenuItem> m_menuItmeArray = new ArrayList<MenuItem>();
... | c03dc8f3857c3ebfa3448aa20f6794cd3fd40e93 | [
"Markdown",
"Java"
] | 4 | Java | lazargal/maman-13 | b1929829d3ba820009c5f00f42e52b180c2acaa3 | a55a904c41e067e0fc304098c5ec1c8c2f90ec56 |
refs/heads/master | <repo_name>Skill-Zozo/AmazonCHALLENGE<file_sep>/Host.java
/* Author: <NAME>
* Date: 15/10/2014
* Description: Object class to keep the host details
*/
public class Host
{
private String id;
private InstanceType type;
private int totalSlot;
private int emptySlot;
private int usedSlot;
private int i = 0;
public ... | 1305d79c5f2f2ad2bebe315b0e7e953604c91f61 | [
"Java"
] | 1 | Java | Skill-Zozo/AmazonCHALLENGE | b2a6cda3cac1cea3163d65f566f08ee56dd93f2c | 6120d81953478eb3d963f41c0ad6c54645a394a3 |
refs/heads/master | <repo_name>swcunba/Algorithms<file_sep>/2839(3&5_미완).cpp
#include <stdio.h>
#include <iostream>
using namespace std;
int main(void)
{
int N, sack;
cin >> N;
if (N % 5 == 0)
{
sack = N / 5;
printf("%d", sack);
}
if (N % 5 == 1)
{
if (N != 1)
{
sack = N / 5 + 1;
printf("%d", sack);... | 320fe4fbbdbc695cb5bbeab253ac0abc0b6380ee | [
"Python",
"C++"
] | 98 | C++ | swcunba/Algorithms | 7e9e89738fbc573156c0bb8aae080856b7fecdfc | 2d97ab825edab07498cf6a94c6d6245318304a43 |
refs/heads/master | <file_sep>/**
* @author <NAME> <<EMAIL>>
* @description Get notified
* @version 20181207
*/
'use strict';
// --- configuration --- //
// apiUrl: api url to test every x secondes (eg: https//test.com/api/example/)
// timer: in milliseconds (eg: 5000 for 5 seconds)
// --------------------- //
const apiUrl = ''
const... | a467562ccfb882a7cb7ef6d44bf449744933767a | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | btronquo/chrome-extension_notification | 3e54a0ee5fb4b3ec0e881f9ae65c0f34411ef2ee | fe255d4f67fff231bfcad195ebda2705201ec6cc |
refs/heads/master | <repo_name>mgprathik27/Foodrunner<file_sep>/client/src/app/models/foodQuant.ts
import {Food} from './food';
export class FoodQuant{
_id : string
food : Food;
quantity : number;
};<file_sep>/config/database.js
var mongoose = require('mongoose');
module.exports = {
database : "mongodb://localhost:27017/foodrunn... | e1583d2d0af34d8cf1c57578d7caa43d0934356a | [
"JavaScript",
"TypeScript",
"HTML"
] | 21 | TypeScript | mgprathik27/Foodrunner | 407de276e13ef0dad7a7dc3c91959b015d548cfa | 8d8164743e96342b83dc8590c0a5d1c049d65e0f |
refs/heads/master | <file_sep>const boxes = document.querySelectorAll('.box');
window.addEventListener('scroll',checkBoxes)
checkBoxes()
function checkBoxes(){
const triggerBottom = window.innerHeight/5*4;
boxes.forEach(box => {
const boxTop = box.getBoundingClientRect().top
console.log(boxTop,triggerBottom)
if(boxTop < triggerBot... | 56d67afb11fd59d4b652fd67c0629b9af11a2f23 | [
"JavaScript"
] | 1 | JavaScript | karthig-eng/Blurry-Loading | 335f9d0e8f47732e23bac3ad8002d1f94df59a33 | c786c76612aaf67870a439f02fb6e484d538a678 |
refs/heads/main | <file_sep>---
layout: post
title: "Getting Started with Ngrok"
date: 2020-06-05
categories: energize
---
I started working with ngrok in the last two days to set up my Alexa Skill
testing. I installed ngrok using Chocolatey and watched a [Flask-ask + ngrok
start guide]. I followed the guide to connect a basic Pytho... | 92ac84ea93f27034f2a5ef932eea93d4a397b996 | [
"Markdown",
"Ruby"
] | 21 | Markdown | tactlessfish/tactlessfish.github.io | 19e8ca1865b49cdd885638dc9a15dba7d0ad7af3 | 5d240c55b8c3b8ad808bd8b2cb7ac82090a8b313 |
refs/heads/master | <file_sep>//
// ViewController.swift
// DAy8iOS
//
// Created by MacStudent on 2019-03-12.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.readInformationPlist()
// Do any ... | d64adc8d4b7c7489328b359fa6a934f6ffc551ee | [
"Swift"
] | 1 | Swift | emilabz/DAy8iOS | c258b0e88c639794e32c9851f2882b256b13b22a | 6e78551c49aa9717c2fee05cedcea38a21d65699 |
refs/heads/master | <file_sep>import { resolvePackage } from '@shared/resolvePackage';
import babelCore from 'babel-core';
import * as t from 'babel-types';
import fs from 'fs-extra';
import * as path from 'path';
import File from './File';
export interface IModule {
sourcePath: string;
destDir: string;
destinationDirName?: string;... | f0c2577c075ef49f018d02c8cbcb3a2793812ab0 | [
"TypeScript"
] | 5 | TypeScript | roland-reed/nanachi-cli | 743fc7978b334f8c6be434c3c56b72c6783599b2 | a1bf2b420a366d7ed3b684635c337be5dae3d6be |
refs/heads/master | <file_sep>/* mmtuts
<?php
if (isset($_POST['submit'])) {
$name = $_POST['name'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$mailTo = "<EMAIL>"; /*will not work gmail blocks php mail*/
$headers = "From: ".$mailFrom; /*if this worked it would actually show who mail is from*/
$txt = "You have ... | 90e070358922473485a8943cd0fefd0b50f0cb54 | [
"PHP"
] | 1 | PHP | DPerry113/My-First-Portfolio | 017a04b75a21cf9a62bf6993bb1efc1193f7439a | 89ae49c806bd4034325a1d0835e11ca648ff6d15 |
refs/heads/master | <file_sep>#include "block.h"
Block::Block(uint64_t nIndexIn, const string &sDataIn) {
_nNonce = -1;
_tTime = time(nullptr);
_sHash = _CalculateHash();
}
string Block::GetHash(){
return _sHash[0];
}
Block Block::MineBlock(uint64_t nDifficulty, string WalletAddress){
_sSender = "SYSTEM";
_sRecipien... | 41c6bb0ed7c7373b2ec171eedbaf33e0fb5027c7 | [
"Markdown",
"Makefile",
"C++"
] | 8 | C++ | haanhduclinh/blockchain | d3762cfaa24931307a07792685fe966ce395b55e | 5e5e837917e75cc2e397820558f33ae7a7cde45b |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
import os
import glob
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from keras.models import Sequential
from keras.layers import Convolution2D, MaxPooling2D
from keras.layers import Activation, Dropout, Flatten, Dense
from keras.preprocessin... | 446ac1c8362a53c5bc2f86f2067d079281b81305 | [
"Python"
] | 2 | Python | nyantaco/CrackCheck | 47924c29d2ef89a31ddf59ebe3a8360fc9332a41 | 11fd409d4fee07f20b60b92271e5f7bbeea23f21 |
refs/heads/master | <repo_name>ArseniyCool/1.Beginning<file_sep>/ENG/Gyroscope.py
a = input("Enter your name:")
b = input("Enter your surname:")
c = input("Enter your favourite animal:")
d = input("Enter your zodiac sign:")
print('Individual gyroscope for the user', a, b)
print('Who were you in last life:', c)
print('Your zodiac sig... | 84b1b163d99d389ff2c68be0675fb51e294acb6c | [
"Markdown",
"Python"
] | 14 | Python | ArseniyCool/1.Beginning | 52a68996436e05522ab34b73ed1b381396901985 | c96f244019c1397d9adb22ced36d833ddcf7ec3c |
refs/heads/master | <repo_name>himicakhurana/didyouknow<file_sep>/README.md
MAGIC Mentoring Project:
Made by <NAME> and <NAME>.
This project is called Did You Know. This project is a fun way to learn about world problems by using trivia! There are many questions
to answer and to learn! There are 5 categories and you can choose which on... | 19839f25a23ea14b2c6dc71ab9498878c1cf330d | [
"Markdown",
"JavaScript",
"HTML"
] | 3 | Markdown | himicakhurana/didyouknow | 1c6d9255c19e991cc95e8d47ab9f60a64d8e0638 | 04f87dabd2aacf67c440033f8a47da3acd73b03b |
refs/heads/master | <repo_name>thinhhuynh/django-bulk-update-or-create<file_sep>/tests/README.md
# tests
This is a django app to run tests on `bulk_update_or_create`.
`manage.py` has been patched to include parent directory in `sys.path` so you can simply run:
```
./manage.py test
```
`pytest.ini` added to make it easier to run tests ... | 95f0e5f42dbfd04004ae35caf06562dde3dec89f | [
"Markdown",
"Python",
"Makefile",
"INI"
] | 10 | Markdown | thinhhuynh/django-bulk-update-or-create | a1f20ff146b3e5fd9612e77f799d9233488fe71a | 9ba7e5f5fdf9fb61a5c1bf1a391ee7ea1a319aad |
refs/heads/master | <repo_name>nerudxlf/numberErdos<file_sep>/README.md
# numberErdos
number Erdos
<file_sep>/numberErdos.py
AVTOR = "<NAME>" # Константа
stringNameArticle = []
stringNameAvtor = []
stringNameAvtorOne = set()
stringNameAvtorTwo = set()
nameAvtorResult = []
def addArr(List):
"""Фунция обработки строки"""
... | e0e77ac8813ddc2a4edc745a88635833d79e14cb | [
"Markdown",
"Python"
] | 2 | Markdown | nerudxlf/numberErdos | 38ddfd2c0e6d9a3482e4387c80092718ac6113ec | 00772e8477c3684889f8a676b65ff4bfadf21c53 |
refs/heads/master | <file_sep>#include "Window.h"
Window::Window(int width, int height)
{
window = NULL;
this->width = width;
this->height = height;
}
Window::~Window()
{
glfwTerminate();
}
void Window::createWindowHints(int majorVersion, int minorVersion)
{
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, majorVersion);
glfwWindowHint... | 55964e4e244f02d3ab553ed04c4e01e729c84611 | [
"Markdown",
"C",
"C++"
] | 5 | C++ | zhmak/GameEngine | 91ac085fd70d83fd00d7da7b594cb38f2e739431 | 4377833bc574d53753a87d93baa6a1769a239973 |
refs/heads/master | <file_sep>## Sobre o projeto
- Interface de um catálogo de busca de filmes que consome uma API.
## Pré-requisitos
- Ter instalado o Gerenciador de Pacotes do Nodejs (npm).
## Instalação
- Primeiramente, baixe ou clone o arquivo.
- Entre na pasta do arquivo pelo terminal e execute o comando:
```
npm install
```
- ... | d14e044ea9f49e31ba50ca2bfc6bfb1181cbedef | [
"Markdown",
"JavaScript"
] | 3 | Markdown | guilhermefaleiros/proj-filme-frontend | 4e3a2c545fde02653b25c10f04540ed9db736354 | 15f175f68c5ccbef6478f327b3db0d028abd7f9c |
refs/heads/master | <file_sep>import React, { createContext, useState } from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';
import "../node_modules/bootstrap/dist/css/bootstrap.min.css"
import './App.css';
// import {BrowserRouter} from "react-router-dom";
import {Route, Switch} from "react-router-dom";
import About from './Compo... | 5f02ace119ad5b331e927b320ad6cd3cd26cd975 | [
"JavaScript"
] | 18 | JavaScript | anurag181298/tsmsite | 0a650c592577894e129755d3ddcd763ff6607952 | 0bf3c8da59e65800c6882da7262812472dab6175 |
refs/heads/master | <file_sep>module.exports = function(grunt) {
//load plugins for grunt
[
'grunt-cafe-mocha',
'grunt-contrib-jshint',
'grunt-exec'
].forEach(function (task) {
grunt.loadNpmTasks(task);
});
//configure plugins
grunt.initConfig({
cafemocha: {
all: { src: 'qa/tests-*.js', options : {ul: 'tdd'} }
},
j... | 6f3eb085472bc3175147ad70315fc2f2219d34cd | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mcpengelly/sandbox-node-app | 2776fddbd06c364991a0c1c9d798a51a2db49f06 | 6001e9a3d48534251b718d94b52e37470fd39c8b |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
import { environment } from './../environments/environment';
import { io } from 'socket.io-client';
@Injectable({
providedIn: 'root'
})
export class ServerService {
socket = io(environment.SOCKET_ENDPOINT);;
constructor() { }
listen() {
this.socket.o... | 1ffba7bf649f7d234891ae0412fcedc4592fb05a | [
"TypeScript"
] | 2 | TypeScript | Konntroll/coup | f967aff0824248029fcf0a33d85d417639956e81 | da7d80c473ad9a9692813109c59f27ae89cccfc9 |
refs/heads/master | <repo_name>litmus/fake_braintree<file_sep>/spec/spec_helper.rb
require 'spork'
Spork.prefork do
require 'rspec'
require 'fake_braintree'
require 'timecop'
require 'bourne'
def clear_braintree_log
Dir.mkdir('tmp') unless File.directory?('tmp')
File.new('tmp/braintree_log', 'w').close
end
Dir[Fil... | 012a0ec50b92c73a9c396e8e1a4a6fa4782d6cdd | [
"Ruby"
] | 3 | Ruby | litmus/fake_braintree | df1660fdaf266c8be7b2d8c986f3801c547dc136 | f34d55c6e2355d40803bdff59e4b3e81a1da576c |
refs/heads/master | <file_sep>var express = require('express');
var router = express.Router();
var signupModel = require('../database/db').signupModel;
router.get('/', function(req, res, next) {
signupModel.find(function(error, doc) {
if (error) {
console.log("mongodb find error : " + error);
var dat... | 230787bf50ec17434ddaa9b94bce7d7f99040040 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | dida-1894/hr-rixin | 9a7fb7148b33d7a41cafb36ac9a15100690ebfd9 | fa4825e6102bbbf4f42d1fec6bae134c22407226 |
refs/heads/main | <file_sep>import axios from 'axios';
const GITHUB_API_URL = 'https://api.github.com';
const GITHUB_TOKEN = process.env.REACT_APP_GITHUB_TOKEN;
const request = axios.create({
baseURL: GITHUB_API_URL,
headers: {
'Content-Type': 'application/vnd.github.v3+json',
Authorization: `token ${GITHUB_TOKEN}`,
},
... | 1b9e8cfa18d1350acf16c54dc1d61adc68fc93c7 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 7 | TypeScript | dak2/github_contribution_stats | 8ca567c8e077463725a2c432a65a071028c7b5b2 | 39ef80f21425aaa06756bf94a4a24efb1db35f53 |
refs/heads/master | <file_sep># SimpleRestApiServer
## Getting Started
### Prerequisites
Docker
Make
git
### Installing
``git clone https://github.com/VanLePham/simpleRestApiServer.git``
``make docker_build``
``make docker_run``
If running locally, in your browser hit:
``http://localhost:8080/users``
## Deployment
Add addi... | 0e9b1516b197b67e244e3649986944e7e7bdd781 | [
"Markdown",
"Java",
"Makefile"
] | 3 | Markdown | VanLePham/simpleRestApiServer | 9f9d81d7cf3dfd9ca5b3b99b64ea921cb9fb67b7 | 7820a23cbe12f3e170dc860d10c8ab521c73585f |
refs/heads/master | <repo_name>MrZhousf/MaterialDesign<file_sep>/README.md
# MaterialDesign
Material Design:质感设计
### 相关截图


### 有问题反馈
在使用中有任何问题,欢迎反馈给我,可以用以下联系方式跟我交流
* QQ: 424427... | b6c11a195fa6d05ee5ce0146292489b532fa69f3 | [
"Markdown",
"Java"
] | 2 | Markdown | MrZhousf/MaterialDesign | 759184c9cf2f1544446d68626cf6d57700264359 | 21e0c7f3ef039b4edca86a4c67f6f89651ea5407 |
refs/heads/master | <repo_name>Angelicogfa/algoritmo-genetico-maximizar-funcao<file_sep>/MaximizarFuncao/Main.cs
using AlgoritmoGenetico;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ZedGraph;
namespace MaximizarFuncao
{
public partial class Main : Form
{
private Populacao populacao;
... | ae3191a5c8d43b8fd2cb9ec75645c172a4546530 | [
"C#"
] | 8 | C# | Angelicogfa/algoritmo-genetico-maximizar-funcao | b614ad4d1d397e8a9af500709b209f7295cffdf4 | c57e99377214f4431fb82e930b3257d76c5bd110 |
refs/heads/master | <file_sep># import os
# import sys
# import json
# target = sys.argv[1]
# with open(target, 'r') as reader:
# json_str = reader.read()
# json_lists = json.loads(json_str) # dict, read
# with open(target, 'w+') as writer:
# sorted_list = sorted(json_lists, key = lambda i: i["date"], reverse = True) #... | cd1717c43b727118c11c2c741b8012e8b2d53b49 | [
"Python"
] | 2 | Python | steadylearner/scrapy-examples | 8f5ecbeb837653b5b20a1b0a1149cd078067c80f | adb79e3ed5bb39b81ed641b0f9d840951a8cfa9c |
refs/heads/master | <repo_name>mattoffice/SilverlakeMock<file_sep>/src/settings.js
module.exports = {
port: 5000,
silverlake_service_port: 5001
}
| 6d0714a23a584e9e7fe55331182b37590f8af894 | [
"JavaScript"
] | 1 | JavaScript | mattoffice/SilverlakeMock | 8a8a69079c9eaa3d8af1bcbbe571f443a761205e | f2fc9a82f06fc9328dcd8a159f7fb307005ee9f2 |
refs/heads/master | <file_sep>var knex = require('knex')({
client: 'pg',
connection: {
host: '127.0.0.1',
database: 'test_db',
user: 'development',
password: '<PASSWORD>'
}
});
const query = process.argv.slice(2)[0];
console.log("QUERY", query)
knex.select('*').from('famous_people').where({fir... | 889cd70d8b27688441cfc662e666ffe636ef3675 | [
"JavaScript"
] | 1 | JavaScript | superskyy/Test_db | 3304274df130eb6335424738db200c41c1283990 | f8b1ce6e5232737fb80d185319806c6bfeefcef7 |
refs/heads/window | <file_sep>"""
这个程序直接将不同关节的三位坐标作为图像的RGB分量做2维卷积
将前后帧之差(time_diff)放入feature map中
acc稳定0.8
"""
import cv2
import h5py
import numpy as np
import scipy.stats as stat
import json
import tensorflow as tf
from tensorflow.keras.initializers import TruncatedNormal, Zeros
from tensorflow.keras.layers import Conv2D, Dense, Dropout... | 846cb83d555efe8562ed129ba0f6fc4d4d7101de | [
"Python"
] | 11 | Python | Mostro-Complexity/skeletal-action-recognition-cnn | 7d5235f6aa504b1bd1171e055058bcf60ea8cfa1 | 473e85196575bef375e3b412f241087648f411d8 |
refs/heads/master | <repo_name>tk-ozawa/hotwords<file_sep>/README.md
# hotwords
複数のニュースサイトの記事タイトルの固有名詞を抽出し、
それぞれの単語を登場頻度でソートしてホットワードを割り出すプログラム
<file_sep>/func.php
<?php
/**
* $sentenceの構造は以下の通り。
* サイト別配列
* └項目別配列
* └タイトル名
*/
function keyphrase($appid, $sentence) {
if (empty($appid) || empty($sentence)) {
return false;
}
... | b2fbcd2e31b91dbf2fb1a6732d894a79b14da7f5 | [
"Markdown",
"PHP"
] | 3 | Markdown | tk-ozawa/hotwords | 19352249a8d81e8977986b7c89f3be6eb72ef66d | b4a0eb7f1300d77bf91bab8c9b2fe0651514c684 |
refs/heads/master | <file_sep>import { GET_TASKS, GET_ERRORS, ADD_TASK } from '../actions/types';
const initialState = {
task: []
};
export default function(state = initialState, action) {
switch (action.type) {
case GET_TASKS:
return {
...state,
task: action.payload
};
case ADD_TASK:
return {
...state,
ta... | c151813be925e56d44b871dfc9fcf8b1928691ef | [
"JavaScript"
] | 5 | JavaScript | Code7unner/bee_jee | 2b6aaa0696efdaaa78e6306a008ae5e224f83fe6 | 72b6f99569041a58b359c1e084b1c0d79c1cd10c |
refs/heads/master | <repo_name>michaelberge8/multilayer-perceptron-1-hidden-layer<file_sep>/neural_network.py
import matrix
'''
File name: main.py
Author: <NAME>
Date created: 7/19/2018
Python Version: 3.8.1
'''
class NeuralNetwork:
def __init__(self, input_nodes, hidden_nodes, output_nodes):
self.... | 90aec38e792a9d25347a68438c9ca58395af1da6 | [
"Markdown",
"Python"
] | 3 | Python | michaelberge8/multilayer-perceptron-1-hidden-layer | c5af60810681bb1ff4a57228182668ef58fd7d6b | ee4db53b7325267bdf0586558b82df880325dd4d |
refs/heads/master | <file_sep>"""
remove_first_and_last(list_to_clean):
html = ['<h1>', 'Some content', '</h1>']
remove_first_and_last(html)
=> 'some content'
"""
def remove_first_and_last(list_to_clean):
_, *content, _ = list_to_clean
return content
html = ['<h1>', 'Some content', 'more content', '</h1>']
print(remove_first_and... | 53d8869e8ef76829b34c980b2221dde9a71dbae4 | [
"Python"
] | 1 | Python | Uthaeus/devcamp_python | e4cbef62bc015e56f3b9dffa58fa573b67be746b | 203765d6ca6a70317bc48def2019d2356d087c01 |
refs/heads/main | <repo_name>eakischuk/whats-in-my-food<file_sep>/app/poros/food_item.rb
class FoodItem
attr_reader :gtin_upc, :description, :brand_owner, :ingredients
def initialize(food_info)
@gtin_upc = food_info[:gtinUpc]
@description = food_info[:description]
@brand_owner = food_info[:brandOwner]
@ingredients = ... | 8230168aecf6a200f4ddb3dcd00a2ee478f9e108 | [
"Ruby"
] | 8 | Ruby | eakischuk/whats-in-my-food | 4a59f61e4f5bf5da720efcdb6dc52a9e48e4e7bd | bb5c3c0065514e6eb789514de4bdd6e43b3b5b87 |
refs/heads/master | <repo_name>eNzyOfficial/KissAutoplay<file_sep>/src/bg/background.js
chrome.omnibox.onInputEntered.addListener(function(text) {
let searchURL = '';
switch(text.substr(0,text.indexOf(' '))) {
default:
case "anime":
case "a":
searchURL += 'https://kissanime.ac/Search/?s=';
... | face4ab2b1297b4e2e4a01540118290ee03f4c65 | [
"JavaScript"
] | 2 | JavaScript | eNzyOfficial/KissAutoplay | 6fca8dcb407fe535a767150a244a66e18c8b1559 | a80bb56d6de0e124204eb4737def61496639160e |
refs/heads/master | <file_sep>using MahApps.Metro.Controls;
using NastoiModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
usi... | b0515499369c4eeb029807aa58d1b550e4fbd2d0 | [
"C#"
] | 14 | C# | yuramanzyuk/nastoiList | ef719517f028cbdc71d1e9661ce0bfb71963ae7e | da81998fbe5b3ef00fe223a8b6930d3cf599a908 |
refs/heads/master | <file_sep>from flask import Flask, render_template, request, redirect
import requests
import json
import pandas as pd
from bokeh.plotting import figure
from bokeh.models import ColumnDataSource, RangeTool, HoverTool, CrosshairTool
from bokeh.layouts import column
from bokeh.io import show
from bokeh.embed import compo... | 3cc89e7fe92be93801ebaab802c4e4df6a64e4e1 | [
"Markdown",
"Python"
] | 3 | Python | alssica/pyBoken-stock-picker | 4513e3880cebf6db666b168bf12c6c934451e2dd | 218b14f6a34a758f96100571fcad4a23c5718076 |
refs/heads/master | <repo_name>giangnhattruong/warbler_frontend<file_sep>/src/store/reducers/currentUser.js
import { SET_CURRENT_USER } from "../actionTypes";
// after a user logged in, they will be authenticated
// and we will see all of their info
// when they log out, we change the state back to it's default
const DEFAULT_USER_STATE =... | b26a902ed0f204034523f395ba0a1cecb69bb23b | [
"JavaScript"
] | 5 | JavaScript | giangnhattruong/warbler_frontend | b7b9ecafa19aa6f13483181538cdbc10ae038c38 | 0d94b74e360d3727b78fd6896769b6d8bd3cbea4 |
refs/heads/master | <repo_name>jotatoledo/Graphiti<file_sep>/test/Graphiti.Test/Edges/EdgeTests.cs
// <copyright file="EdgeTests.cs" company="Graphiti">
// Copyright (c) Graphiti. All rights reserved.
//
// Licensed under the MIT license.
// See LICENSE file in the project root for full license information.
// </copyright>
namespace Grap... | a73b3cf297b4290e735c77303813cf396aa00d3d | [
"Markdown",
"C#"
] | 34 | C# | jotatoledo/Graphiti | 352f6a3abc7481e16689f4a3115efd917bf55e42 | b358c18beeb2753ce663dfaaee363486a13d0261 |
refs/heads/master | <file_sep>import utilities.custom_logger as cl
from selenium.webdriver.common.by import By
import logging
from base.basepage import BasePage
from pages.home_page.navigation import NavigationPage
from pages.home_page.login_page import LoginPage
class DiscountsPage(BasePage):
log = cl.customLogger(logging.DEBUG)
... | 0e93ebb0d3def4856703cccb3b61af492243b489 | [
"Markdown",
"Python"
] | 22 | Python | anetakanka/PrestashopSeleniumTests | 2d59e694cb851fa7aa6e6001a5929faf092d1243 | a94f61575f4d0154a533fd6e346ecdad2542c03e |
refs/heads/master | <file_sep>// サイズ設定
const width = window.innerWidth;
const height = window.innerHeight - 200;
let isRotateX = false;
let isRotateY = false;
let isRotateZ = false;
const xrotateElement = document.getElementById('xrotate');
xrotateElement.onclick = function () { isRotateX = !isRotateX; }
const yrotateElement = document... | cee2764fcd0eee50886a42ad54d51810411be5fc | [
"JavaScript"
] | 1 | JavaScript | Kotokaze/three-js | 4d8eeae4bcc61e6194731b5ed13dec5c225834c9 | 0bb5be919aa4bbee7d605f69aec4b257b8916e2e |
refs/heads/master | <repo_name>hadijakay/Project-Proposal-Guide<file_sep>/proposeENG4SJproject.sh
#!/bin/bash
# This script gets a username from .gitconfig. If it indicates that your default username is an empty string, you can set it with
# git config --add github.user YOUR_GIT_USERNAME
# Gather constant vars
# CURRENTDIR=${PWD##*/... | 764737a0ecad6efcadb3ba586352c34628ef014d | [
"Markdown",
"Shell"
] | 6 | Shell | hadijakay/Project-Proposal-Guide | 1e22860b460ae5555cc80c319c4dd635c5fd85f2 | 903a61781f0a8257fdcf6c93354961c074ec6c3c |
refs/heads/main | <file_sep>#include <stdio.h>
#include <stdint.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <sys/time.h>
#include <hd44780.h>
#include <pcf8574.h>
#include <string.h>
#include "periph_sdcard.h"
#include "LCD/LCD.h"
#include "home.h"
#include "RotaryEncoder_Adapter.h"
#include "../men... | e6829ba723ee6c12337c7de59b1866e74c1e1756 | [
"Text",
"C",
"CMake",
"Makefile"
] | 9 | C | MickWerf/Proftaak-2.3-Individueel-Rotary-Encoder | fbb351237b2623ca26ff7f342f250afd5bf081f6 | 333f17f37bda534e1048305772f8f2c002a8bd18 |
refs/heads/master | <repo_name>RPadilla3/contacts<file_sep>/src/js/detail-view.js
(function() {
'use strict';
window.contacts = window.contacts || {};
window.contacts.showDetails = showDetails;
/**
* Show details of current contact
* @param {Object} contact information about contact
*/
function showDeta... | f06b202740f78e10e60a86487cd9817bf508f424 | [
"JavaScript"
] | 1 | JavaScript | RPadilla3/contacts | 823f6b93d3b143ecfa7ad9cfd4e8d5829408c32b | b377b2f2dc16deeb2dcb3b335a6cb7ae739c7e96 |
refs/heads/master | <file_sep>public double GetRandomNumber1() {
Random random = new Random();
return (random.nextDouble() - 0.5) * 2;
}
public double GetRandomNumber2() {
Random random = new Random();
return (random.nextDouble() - 0.5) * 2.99;
}
Commit comm = new commit;
Hello World!!!<file... | 701f69f2c4a1c167d7cf882e438fcfb7116addd1 | [
"C#"
] | 2 | C# | armanok/CodeReview | 03df46d65d8a48d5c25b9a324c485d022167940f | caaee8728d9a56c26655a7d2f1ccbf213231d9bd |
refs/heads/master | <repo_name>jaycork93/BCGame<file_sep>/FBullCowGame.cpp
#pragma once
#include "FBullCowGame.h"
#include <map>
#define TMap std::map // to make syntaz more Unreal freindly
using int32 = int;
FBullCowGame::FBullCowGame() { Reset(1); } // Default Constructor
int32 FBullCowGame::GetCurrentTry() const { return My... | 1b29cb79a68fbd524a69882db61a9a4a4426b891 | [
"Markdown",
"C++"
] | 3 | C++ | jaycork93/BCGame | 6b97f7efd6ffcaa55bce9d68fbdb31cfc02f0af1 | b8b97445124eb080096dba6780f3ddedd33aad3b |
refs/heads/master | <file_sep>require 'json'
require_relative 'backstageadapter.rb'
class ScriptRunner
BACKSTAGE_URI = "http://www.backstage.com/casting/open-casting-calls/nyc-auditions/?page="
def run
adapter = BackstageAdapter.new
# parser = Parser.new
# lpn = adapter.getLastPageNumber
# newList =... | f79e1d6e4e950c48ede360f4bd4c78a17f0df3b3 | [
"Ruby"
] | 2 | Ruby | skoltz/for-jake | 8f49030cad2c00518c0e5e1f1d5d2549711430c9 | 4f1fb2bc717f910af579336aa9d07593c62907d6 |
refs/heads/master | <repo_name>Emurasoft/HTMLBar<file_sep>/mui/HTMLBar_loce/resource.h
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by htmlbar_loce.rc
//
#define IDS_SURE_TO_UNINSTALL 1
#define IDS_VERSION 2
#define IDS_MENU_TEXT 3
#define IDS_STATUS_MESSAGE ... | 1946cd6b5a64e231f8bf6eb3d38ad8ca67701386 | [
"C",
"C++"
] | 5 | C | Emurasoft/HTMLBar | a5c5cc7d6c45f70aeae7d6aa34002bc4b0a2903b | 9a12487a47dabd81dfd116f02a8aee591cad80cb |
refs/heads/main | <file_sep>#!/bin/sh
if [ "$#" -eq 3 ]; then
python3 RubiksCube.py "$1" "$2" "$3"
elif [ "$#" -eq 2 ]; then
python3 RubiksCube.py "$1" "$2"
else
python3 RubiksCube.py "$1"
fi<file_sep># CubeAI
This is a program that can solve a 2x2 Rubik's cube using a variety of search methods such as Breadth-First Search,... | 25b686cfa5c062c1efb49b02349d0ea89fd96fb3 | [
"Markdown",
"Python",
"Shell"
] | 3 | Shell | is386/CubeAI | dfcf5bef210b57469439c150c5e5c46083d10515 | 1e55d9f93ab278feb6cf9b30a9f3385e4a7d50d6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.