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/main | <repo_name>AndresG75/Console-App<file_sep>/app.js
const {argv} = require('./config/yargs');
const {colors} = require('colors');
const { borrarTarea, actualizarTarea, crearTarea, getListado} = require('./logica');
let comando = argv._[0];
switch ( comando ){
case 'crear':
console.log("Creando");
... | 52953dae8c5e5ce157e904b3e6a3bbf12770a9a4 | [
"JavaScript"
] | 2 | JavaScript | AndresG75/Console-App | 5fede46c4735b69308262c02caef1b511e27d304 | 5986d26fc0c70ef78293c83a2b71ee7188a68c93 |
refs/heads/master | <file_sep>import { shallowMount } from "@vue/test-utils";
import CountdownTimer from "@/components/CountdownTimer";
import TimerForm from "@/components/TimerForm";
import TimerStopButton from "@/components/TimerStopButton";
import TimerSpeedButtons from "@/components/TimerSpeedButtons";
describe("CountdownTimer", () =... | efa750d951aa4057320d0948c7e3907562e07ab9 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | HediJabri/countdown-timer | 99ec4c5b6fbe1edd00fbb2c31285fe8eae1f2abd | 08873f98cf2dfbde93329f1e16a433c0d40f6064 |
refs/heads/master | <file_sep>module.exports = {
extends: ["stylelint-config-prettier"],
rules : {
indentation : 2,
"string-quotes" : "single",
"number-leading-zero": null,
},
};
| af682fa87f32b96804d095bc44805622cd11fe0f | [
"JavaScript"
] | 1 | JavaScript | jennifer-shehane/react-boilerplate | 7a7e29657d59b415bee15685fb54ce358a2913a3 | 7b9405a3b07bd80acc283d57d2189d11dedc2080 |
refs/heads/master | <repo_name>MasamiYamate/TokkyClickerMobile<file_sep>/Resources/app.js
//カウント用の変数
var count = 0;
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#000000',
fullscreen:true
});
var label1 = Titanium.UI.createLabel({
color:'#FFFFFF',
//text:'I am Window 1',
font:{fontSize:38,fontF... | 58fc35587f7fbb0ac74dd57cab48af8763cc13b1 | [
"JavaScript"
] | 1 | JavaScript | MasamiYamate/TokkyClickerMobile | 22ebff61e2ddd16a3fd46e252a33c18d758ea72a | 52cbf6338dc554fe75aa5ca89d5194f32a80f2be |
refs/heads/master | <repo_name>Jeanyvesbourdoncle/PID-implementation-for-steering-angle-control<file_sep>/src/PID.cpp
//============================================================================
// Name : PID.cpp
// Author : <NAME>
// Version : v1.0
// Date : 23/06/2019
// Description : Hyperparameters Initialization... | 68be1c128e3a582a7f8d0aa83b19d06d4ea127f3 | [
"Markdown",
"C++"
] | 3 | C++ | Jeanyvesbourdoncle/PID-implementation-for-steering-angle-control | f67e5640eb6e4faea1e44962cb8486d4b081853d | 04910e7ccfddf7a2396f3f81de74b4e803b97309 |
refs/heads/master | <repo_name>josvar/gotraining<file_sep>/utf8/utf8.go
package main
import "fmt"
func main() {
c := '\U00010348'
d := '€'
e := '\U0010FFFF'
fmt.Printf("%c \n", c)
fmt.Printf("%x \n", d)
fmt.Printf("%c \n", e)
}
<file_sep>/11_switch_statements/switch.go
package main
import (
"fmt"
)
func main() {
switch "Josh" ... | 56972efc97e37b32b56188fa21d8a02ab6fa9c64 | [
"Go"
] | 15 | Go | josvar/gotraining | c118a9c876af260c4a4f2e0a8bd65203c368c62e | 5f9986eca8d0a4f56f37cd46c680eb7ca2648569 |
refs/heads/master | <repo_name>HumanGenomeCenter/java<file_sep>/src/sim/test.java
package sim;
public class test {
public static void main(String [] args) throws Exception{
/*for(int i = 0; i<1000; i++){
char[] c = Character.toChars(i);
for(int j = 0; j<c.length; j++){
System.out.println(i + " " + c[j]);
}
}
Long L... | 55b4885bd417bc9ac8b2629fb0b9273cf5d711e4 | [
"Java",
"INI"
] | 37 | Java | HumanGenomeCenter/java | f5bcc014659c629c9939a2d0e0bf5fc2b6c19193 | c63d26e0f1e1d87161d0097faacdac8c274686e0 |
refs/heads/main | <repo_name>christophermayorga/classification-exercises<file_sep>/prepare.py
from pydataset import data
import seaborn as sns
import pandas as pd
import numpy as np
import os
from env import host, user, password, get_db_url
from sklearn.model_selection import train_test_split
from sklearn.impute import SimpleImputer
de... | 823d16dcfc4fec18905b12cf3cd862f106fbd71d | [
"Markdown",
"Python"
] | 2 | Python | christophermayorga/classification-exercises | 3f8d6edd1e1b38c789701e22c0b84c879aa1bff3 | 06f815bffe478e04f6429e98f304ab015ad75553 |
refs/heads/master | <file_sep>/*
* Copyright © 2016 , <NAME>. All rights reserved.
*
*
* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY
* KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS ... | f8a667d6a75597afee05c07bafb472c727303fe1 | [
"Markdown",
"Java",
"Gradle"
] | 26 | Java | RetepRelleum/SunSpecReader | 4b13959b578e2b980fcfb6e195726cd71fcdd802 | d88ce28bdc74674dffc902c1f40ab9354aa2d3a0 |
refs/heads/master | <repo_name>Gaurav-1213/Docker_from_scratch<file_sep>/Dockerfile
FROM anaconda3:4.10.1
COPY . /usr/app/
EXPOSE 5000
WORKDIR /usr/app/
RUN pip install -r requirements.txt
CMD python flask_api.py
#step1 specify base image
#FROM alpine # Base OS (Base img) required to run t... | 9579de12f98044c14d08efade95d26613802c63e | [
"Python",
"Dockerfile"
] | 3 | Dockerfile | Gaurav-1213/Docker_from_scratch | 1a5cac3c7f1f6ba0dc51caacf4352c8ba66180d4 | f85704af2d9f4cc727bb35fa9c3c13962c0a57f8 |
refs/heads/master | <file_sep># lua-practise
just try lua
<file_sep>require("luasql.mysql")
--创建环境对象
env = luasql.mysql()
--连接数据库
connect = env:connect("push", "root", "yunnex6j7", "10.10.50.107", 3306)
cursor = connect:execute("select * from msg_client limit 10")
row = cursor:fetch({}, "test")
file = io.open("client.txt", "w+")
whi... | ae01e2c87c5779750d1cdd478260506e0dc5c92f | [
"Markdown",
"Lua"
] | 3 | Markdown | summer9989/lua-practise | 4d6ad1ad34c1927dfb6deb932e0d21d6f158121a | 8ce7fd3901c6ba6b6fac135bb81d91c4593329c2 |
refs/heads/master | <repo_name>oscar-fernandz1981/veterinaria-php<file_sep>/application/views/plantilla/header.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo ($titulo)?></title>
<metaname="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0">
... | fdc4ffa75f7bee0faf56ce48a1e8c883f179a491 | [
"PHP"
] | 5 | PHP | oscar-fernandz1981/veterinaria-php | 91e72f00a10f8fca3dad1cf1990d05102dc66c45 | 718294efc8123eb47b78b381fcebef0bd57bbfc0 |
refs/heads/master | <file_sep><?php
namespace Tests;
use Illuminate\Support\Facades\DB;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
protected function setUp(): void
{
parent::setUp();
// DB::statement('PRAGMA foreign_keys... | 50ee43fee4a87f3edf2c1fd5aa3f273a7febdef7 | [
"JavaScript",
"PHP"
] | 50 | PHP | Dejan91/event-manager | 86f77f41b1a171265d7d909eba0f867e0195589c | dc4040a40042379b22749c6792e954a99da68bed |
refs/heads/master | <repo_name>VivekPandey09032002/SS_1279<file_sep>/strawberry_stacker/CMakeLists.txt
cmake_minimum_required(VERSION 2.8.3)
project(strawberry_stacker)
find_package(catkin REQUIRED)
catkin_metapackage()
<file_sep>/task_1/scripts/aruco_detection.py
#!/usr/bin/env python3
############## Task1.1 - ArUco Detection ##########... | 2741dc2a7012a98e81c9b7da4319237d50104c1f | [
"Python",
"CMake"
] | 5 | CMake | VivekPandey09032002/SS_1279 | 58082f786c0327351cd0655de67bfd17f84e9ce4 | 5e6f8102c56f3de359f3b0c51e4a22d47f91765f |
refs/heads/master | <repo_name>randheerpolepelly/eshopper<file_sep>/app/home/home.factory.js
(function(){
function homeFactory(){
var theme1 = {
hello:function(){
alert('hello green theme');
}
};
var theme2 = {
hello:function(){
alert('yellow green theme');
}
};
if(1){
return theme1;
}
else
{
re... | 66981aac23227157b8dc2088b6f4e1e3823544bf | [
"JavaScript"
] | 2 | JavaScript | randheerpolepelly/eshopper | f9235143101e17b3153b868e24ef771cee82d7ac | a859b82e0e7314f8ce88c7bf5966130899211c64 |
refs/heads/master | <repo_name>dayxi/Exercice-Arduino<file_sep>/exo2.1_analog_b/exo2.1_analog_b.ino
int pin_w = 3, pin_r = 0, pin_r0 = 2, v=10; float a1 = 0, a0 = 0, ib ;
void setup() {
pinMode(pin_w, OUTPUT);
Serial.begin(9600);
}
void loop() {
analogWrite(pin_w,v);
delay(5000);
a1= analogRead(pin_r);
a0=... | 470d4be1949ff3aa964e3d4dee591ab8e07e7c91 | [
"C++"
] | 9 | C++ | dayxi/Exercice-Arduino | 58009e7b79afa50531d79d026892989db68450a5 | 0a781f425f3fd6f50aafa9ceb8982a2bef554b82 |
refs/heads/master | <repo_name>espaspw/Advent-Calendar-2020<file_sep>/src/data/entries/24.js
import icon from '../icons/dubbed.png'
export default (
<>
<div className={'jp'}>
<strong>2020年12月24日 (木)</strong>
</div>
<div className={'jp'}>
<p>
こんにちは皆さん。明日クリスマスです。ちょっと早いけど、メリークリスマス!<br/>
2019年2月1、ひらが... | 98ade58bb7fddca1b53fa18ceb66e33f540e35ab | [
"JavaScript",
"Markdown"
] | 24 | JavaScript | espaspw/Advent-Calendar-2020 | dc5d4f57586e89a66b4ab39a741326e23ed3e968 | b970e571f5c19566551ee67fb5732dacefeba44c |
refs/heads/master | <repo_name>surajsau/TicTacBlue<file_sep>/XO/src/com/utils/Loger.java
package com.utils;
import android.R.string;
import android.util.Log;
public class Loger {
private static boolean canPrintLog = true;
private static final String TAG = "MyLogs";
private static final String TAG_ERROR = "MyLogsError";
public st... | 327d3bc816a53e91455b6b7208297901b7f2e46b | [
"Java"
] | 27 | Java | surajsau/TicTacBlue | 9ff7cb3a1ab9672240878a07f6dce6e5da806137 | be30f6c83bceb9d3e00cc9519c8ea8e9bdec0265 |
refs/heads/master | <file_sep>import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import argparse
"""
Compare F1 Scores of the Fits vs NGram Length
"""
def compareFits(ax,df, fits, output, range, title=None, xaxis=None):
range = int(range) if range is not None else len(df)
for f in fits:
ll = df[df["... | 9adccb3dcb7edebeddadcfc84995a3fa1d7d07f2 | [
"Markdown",
"Python"
] | 29 | Python | jrrpanix/ML9 | e501bb530f82620146b2d7703c3b561b49067dd7 | 9a440e886fa2c97466da49b44b8f1580dc6b3652 |
refs/heads/master | <repo_name>admangum/lahaina<file_sep>/src/lahaina/src/common/components/loading.comp.js
var React = require('react');
module.exports = React.createClass({
render: function() {
var loading = this.props.loading;
return ( <li className="loading-indicator" style={loading ? {} : {opacity: 0, zIndex: -10... | 51e01f917eabcb993e2690b9c704e9a8a26ca3e1 | [
"JavaScript"
] | 16 | JavaScript | admangum/lahaina | 4353ed241e96cd52e4b30b541dd9a38783b7e783 | 539059e3607f5df7e383fa71fb184577a8f42320 |
refs/heads/master | <file_sep>package ristevski.petar.pc.proektna;
import android.Manifest;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Color... | ca83ecf14d48afe1b4089cb32fb2a7b7a1dfdafa | [
"Markdown",
"Java"
] | 4 | Java | PetarRistevski/Proektna | de6f6f0e1909e9106b59f93dbc3a364a074f7ae2 | 3cbfa9689166f95311084eb4641c60f89a414c27 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
namespace BadDDSec.Models
{
public class User
{
[Required]
[MinLength(2)]
public string FirstName { get; set; }
... | 5f65c8d47d1b85598c53bc90f84b05b6236104f3 | [
"C#",
"Text"
] | 13 | C# | gingerswede/DDSec | 549ad48707af906adf482c587b15c949ab562263 | 7b10e8f09a0aabf9044003bac2653632e3930013 |
refs/heads/master | <file_sep>import { handleNotFound, handleError } from "../helpers";
import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();
const authorColumns = {
author: {
select: {
username: true,
},
},
};
export const getPosts = async (req, res) => {
const { limit = 10, page = 1, so... | eef3aee5afb652142296278b742fa97a98d94c57 | [
"SQL",
"TypeScript"
] | 9 | TypeScript | zerico007/prisma-blog-api | bd222bcb2b388959f8372e09eed46c45a1dab2b5 | 1f2694b588c90059dc865449c3fdd689da02aa8e |
refs/heads/master | <file_sep>#!/usr/bin/env node
const fetch = require("node-fetch");
const box = require("boxen")
const chalk = require("chalk");
const boxen = require("boxen");
const hostname = process.argv[2]
function HostPing(name){
const info =fetch(`https://eu.mc-api.net/v3/server/ping/${name}`)
.then(res => res.json())
... | 7fec96ee15d242bac317bb8d4c85b40008f7fdd0 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Heisenburg0775/Minecraft-Server-CLI | ba4c40cca3dc19402f4a25c82883d1212de8d21a | f33b6077d4a8e0e2bb731ff080f5d63dae939491 |
refs/heads/master | <file_sep>FactoryGirl.define do
factory :idea do
title { Faker::Commerce.product_name }
body { Faker::Lorem.sentence }
end
end
<file_sep>require "rails_helper"
RSpec.describe "Idea management", :type => :feature, js: true do
scenario "User can see ideas" do
idea1 = create(:idea)
idea2 = create(:... | 38fc0e7c9e3b9624682687b6e1039717343461d0 | [
"JavaScript",
"Ruby"
] | 9 | Ruby | JPhoenx/ideabox | 1a322a88678b8d6120085136258fac071b8676e1 | cdce87c19ae53e239596d29f546093625d5c4efb |
refs/heads/main | <file_sep><?php
namespace App\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Contracts\Translation\TranslatorInterface;
class WeatherControllerTest extends WebTestCase
{
protected static $translation;
public static function setUpBeforeClass() {
$kernel = static::c... | 8bff53f9418b7ece922c564ef17b5a85033c0137 | [
"Markdown",
"PHP"
] | 3 | PHP | drashevskyi/symfony-weather-check | 939aaa4760554e378c4403880dbb999e24f1302f | f2dc2ed914177a92b7f1f000aca787fdf55d730a |
refs/heads/master | <repo_name>xfun68/api_in_rails<file_sep>/app/controllers/emps_controller.rb
class EmpsController < ApplicationController
# GET /emps
# GET /emps.xml
def index
@emps = Emp.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @emps }
format.json { render :j... | 23ed5667ed6061250c96b9beb1e296364fde6c30 | [
"Ruby"
] | 1 | Ruby | xfun68/api_in_rails | 726d48e2f4bebe26418483d2a445fe6a61870eb5 | be9967a725513d79503d4242c0c29dfeaac8528e |
refs/heads/master | <file_sep># py-introduction
# 1 - Say "Hello, World!" With Python
print("Hello, World!")
#2 - Python If-Else
import math
import os
import random
import re
import sys
if __name__ == '__main__':
n = int(input().strip())
if n%2!=0:
print('Weird')
else:
if n>= 2 and n<=5:
prin... | e9194e0b4f93d58f151af57709b0d472b4c92e33 | [
"Markdown",
"Python"
] | 2 | Python | santiagoparaella/ADM-HW1 | 3e9461877e02d467a1753a19297f02b5dd35647f | fc01696ca07d5492bb47d28b582bfeebdea987dd |
refs/heads/main | <file_sep>//
// Navigator.swift
// Tutorial_iOS
//
// Created by Manuel on 08/02/2021.
//
import Foundation
import UIKit
func navigateToSecondScreenVC (_ viewController: UIViewController, tab: SecondScreenVC.SecondScreenPage){
//let secondScreenVC = SecondScreenVC(nibName: String(describing: SecondScreenV... | 7fc903f23937dfa1d44a85dd4a387200304bd70f | [
"Swift",
"Ruby"
] | 17 | Swift | manuraal/first_app_ios | 496f1322d387ad46efcdd71bd702b52c858be456 | a95deeafe59e9d33678d691f504a913a31afb853 |
refs/heads/master | <repo_name>Bharath8877/Wiki-Search-Application<file_sep>/app/src/main/java/com/infidata/www/wiki_search/webSearch.java
package com.infidata.www.wiki_search;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public ... | 3baaca87dc7e9c4b90d0213cb10e57b0aa305909 | [
"Java"
] | 2 | Java | Bharath8877/Wiki-Search-Application | 53bfd42b257455ded4aef9b689f5abdf1ead67ae | 92c3ae86ff543dba689adedb9fd62c571b90ad88 |
refs/heads/master | <repo_name>robotmachine/bash-misc<file_sep>/nzb-watch.sh
#!/bin/bash
#
localWatchDir="/home/brian/work/"
sabWatchDir="/opt/sabnzbd/Watch/"
find "$localWatchDir" -iname "*.nzb" | while read nzbFile ; do
mv "$nzbFile" "$sabWatchDir"
done
<file_sep>/Unzipper.sh
#!/bin/bash
#
# Unzipper
#
# Usage: $> Unzipper.sh /dire... | b1f3950c4ccb314bb5f1c710c4e25d1baf2c0cc7 | [
"Shell"
] | 32 | Shell | robotmachine/bash-misc | 255b6e4fc01aaa7d15669b62f78e25bda7fceb5c | 1e6efb74a39a2d5390456f136dc07a8a6d804437 |
refs/heads/master | <file_sep>package com.example.shinycleaning;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
imp... | 5b0e04d0bf7e4dfc48005fed607c99e056e74bed | [
"Markdown",
"Java"
] | 3 | Java | wenuka97/ShinyCleaning | 1f4ab8ced2b9b56c4ebf08b94199ebd8d955738f | 0c18f4da6b52f10d471137f56cf56bfefd9ce6e2 |
refs/heads/master | <file_sep>using MyFirstAbp.Localization;
using Volo.Abp.AspNetCore.Mvc;
namespace MyFirstAbp.Controllers
{
/* Inherit your controllers from this class.
*/
public abstract class MyFirstAbpController : AbpController
{
protected MyFirstAbpController()
{
LocalizationResource =... | a6e0331cdf6a8381629887c8437b1b6723e30266 | [
"Markdown",
"C#",
"Go"
] | 44 | C# | Umi1874/StudyRepo | f9e78ff9546105343355ff5ad14f9af5fc73a5e7 | a6dfe88e52067b1af22f62549890b2f30296a1a5 |
refs/heads/master | <file_sep>require 'rails_helper'
RSpec.describe "Forecast API" do
describe "Endpoints" do
before :each do
@city = "denver,co"
get "/api/v1/forecast?location=#{@city}"
end
it "gives the current forecast for a given city" do
expect(response).to be_successf... | 10e8d98482b1d4246649eef6efa3031bb9d76a53 | [
"Markdown",
"Ruby"
] | 20 | Ruby | philjdelong/sweater_weather | 6626b0be562ad00340176e071b50454a4b833957 | 9818d56f483a51660c71b5f294e96771e345c1de |
refs/heads/master | <repo_name>justinekro/cocktail-idea<file_sep>/nuxt.config.js
export default {
server: {
port: 8600
},
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
__dangerouslyDisableSanitizers: ['script'],
htmlAttrs: {
lang: 'en'
},
title: 'AppHero - Random cocktail',
meta: ... | 832b8eea203d791768c465da56838d0365ecd06c | [
"JavaScript"
] | 1 | JavaScript | justinekro/cocktail-idea | 59953007df5759c57de31915adf31a9e341f9dbb | 30ed2806a9b193f1938958cdd26027da71a44467 |
refs/heads/master | <repo_name>muhammadsidd/Robotics-and-AI<file_sep>/README.md
# Robotics-and-AI<file_sep>/wavefront.cpp
#include <iostream>
#include <fstream>
#include <sstream>
#include <math.h>
#include <queue>
#include <vector>
using namespace std;
int main()
{
string line;
int xupper;
int xlower;
int yupper;
in... | 3bd20c33c61169aa3156d32a7ccfa6ecafd2e910 | [
"Markdown",
"C++"
] | 5 | Markdown | muhammadsidd/Robotics-and-AI | ff52f14236f9248e9cbadb3ca509417cb05e0ac8 | 7eb404167bc51fcc0955c8bfa18de0526fbf5d53 |
refs/heads/master | <file_sep>package cn.edu.tit.bean;
//报名材料
public class Material {
private String materialId;
private String recruitId;
private String openId;
private String accessory; //附件
public String getMaterialId() {
return materialId;
}
public void setMaterialId(String materialId) {
this.materialId = materialId;
}
... | dbbfc40a0323c884af8295178485c1404340ff45 | [
"Java"
] | 1 | Java | ly-wenli/recruit_info | 2dfa432981369dac96d725eb9cbb217ae37dd801 | bd88f1d1c84d8158887daa297f7a3488f8b4b8da |
refs/heads/main | <file_sep>import pandas as pd
from bs4 import BeautifulSoup as bs
from splinter import Browser
def scrape_main():
executable_path = {"executable_path": "../chromedriver.exe"}
browser = Browser("chrome", **executable_path, headless=False)
news_title, news_p = scrape_mars_news(browser)
scrape_results = {... | 8368bb34ec338316a47c801326521af9a84038b9 | [
"Python"
] | 1 | Python | rebeccaruth/web-scraping-challenge | 1615286fd3844dd988c5962e9709bd9607ba4021 | d7472ac873255808de29fa8a9915aaf9386233fa |
refs/heads/master | <file_sep>import { useState, useEffect } from "react";
import shareLogo from "../images/shareLogo.svg";
import {
Container,
Row,
Col,
Button,
InputGroup,
FormControl,
Image,
Form,
} from "react-bootstrap";
import { faSyncAlt } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@f... | ee423e5eedecc1f181265a1ae774e007d304fb77 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | ihasanmdarif/shrinkly.me | cfba275aad5d98e5cf57918781a99fcfa3aaf642 | f86e0d69676b5a70669dcfe993bdf81879dc3dc9 |
refs/heads/main | <file_sep>import Head from 'next/head'
import styles from '../styles/Home.module.scss'
import Link from 'next/link'
export default function Home() {
return (
<div className={styles.container}>
<Head>
<title>Create Next App</title>
<link rel="icon" href="/favicon.ico" />
</Head>
... | 40b7a482d4f94f405915d7c9ba4982abd81d6071 | [
"JavaScript"
] | 1 | JavaScript | rebeccanoren/ndc | cb648f24bad1eb02bbd711e30fd6cad0a6980aa5 | 316c4e7dbd0e286e2f7e91c166f606762b75cb9a |
refs/heads/master | <file_sep>
class DonationsController < ApplicationController
before_action :authorize
def new
end
def create
@amount = params[:amount]
@amount = @amount.gsub('$', '').gsub(',', '')
begin
@amount = Float(@amount).round(2)
rescue
flash[:error] = 'Charge not completed. Please ent... | 6fc52b6cb64993a672b3c0f4b16d85c25bad25df | [
"Markdown",
"JavaScript",
"Ruby"
] | 17 | Ruby | bernieroach/charityspree2 | 3874a73007a943e3e0c1731aa1cd551e74633d50 | a262368fd3aa9d3acdf758828b08a999573c87b4 |
refs/heads/master | <file_sep># androidBottleJSON
A simple Android app that uses the loopj ASYNC http library for Android to connect to a simple bottle server that serves RESTful JSON over localhost.
## Running the bottle app
*Tested with Python version 2.7 and bottle version 0.12.13**
To run the bottle app simply open Terminal and nav... | 0fb7bbd312e3d6c619db9023333d9212d5cc66a2 | [
"Markdown",
"Python"
] | 2 | Markdown | thebillington/androidBottleJSON | f0e1d0762d9cbf671114d1d4051cd858c61bd147 | c84886281c929b555bbffd2a435028262f41557d |
refs/heads/master | <repo_name>masummillat/bl-noc-vlan<file_sep>/noc-test.js
var dir = require('node-dir');
var convert = require('xml-js');
var XLSX = require('xlsx');
// display contents of files in this script's directory
var allFiles=[]
// match only filenames with a .txt extension and that don't start with a `.´
var result=[
["N... | 1cbd39f61f38c2ff97df839461a047ed9e265811 | [
"JavaScript"
] | 1 | JavaScript | masummillat/bl-noc-vlan | 3a292b6c3d721942a6295281719bbe668cf2f6b2 | 699168ed20ffc980861ad8e86493213e939ddf51 |
refs/heads/master | <repo_name>ashok997/superfans-united-frontend<file_sep>/src/actions/fetchCharactersFromApi.js
export function fetchCharactersFromApi(nameStartsWith) {
const REACT_APP_MARVEL_API_KEY = process.env.REACT_APP_MARVEL_API_KEY;
const URL =
"https://gateway.marvel.com:443/v1/public/characters?" +
`nameStartsWith=$... | e469aa06d4a8e2ceeced7fa87284d2cb819eeabd | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | ashok997/superfans-united-frontend | fcf6e1967acbb106e634cfda447bd5cd0bf9ac56 | 88b636f2a92e6b6ab64e761d3aae601dddd00e71 |
refs/heads/master | <repo_name>MBronars/hw4-group<file_sep>/visual-feedback.js
var freqA = 174;
var freqS = 196;
var freqD = 220;
var freqF = 246;
var playingA, playingS, playingD, playingF;
var oscA, oscS, oscD, oscF;
var playing = false;
function setup() {
createCanvas(500,500);
backgroundColor = color(255, 0, 255);
textAlign(C... | 2eb92a7195586e24c4a66449a9704491866e064c | [
"JavaScript"
] | 1 | JavaScript | MBronars/hw4-group | 364a91d51a186dc3cfded5bf934a91cfeda4e34e | 8edb874d25105d158ce82151cb4f7faa0136ca14 |
refs/heads/master | <file_sep>from flask import render_template
import requests
import random
import nltk
from nltk.corpus import cmudict
import re
import itertools
HAIKU = (5, 7, 5)
SYLL_DICT = cmudict.dict()
def generate_text(chain, syllables, current):
# If theres only one choice, choose it
if len(chain[current]) == 1:
... | df20925c3d131a7ebef4971104d23490a9541ad7 | [
"Markdown",
"Python"
] | 2 | Python | AnshSancheti/LiteraryHaiku | d1a85664ff606c2539bfeb4202b34a67a941ca1d | 6ca583e5e0a82d0f2aeab625c8335d123e0ec9c7 |
refs/heads/master | <repo_name>Muhannad508/MoeVM<file_sep>/README.md
# dev-ubuntu-Image
once the vm is up , run this script to install some sdk [java,nodejs] :
/scripts/setupSdkTools.sh
to run Node Server from Docker :
docker run -p 8080:3000 --name hello-node -d my-vue-node<file_sep>/scripts/setupSdkTools.sh
#!/usr/bin/env bash
... | a29c69d34353c585fb329ad2d9052f7f06a4c7c6 | [
"Markdown",
"Ruby",
"Dockerfile",
"Shell"
] | 7 | Markdown | Muhannad508/MoeVM | 0beb2e41a2ddd13d7e7efe7a35a7f3be9f82eff5 | 41feb273af6aec00ad5cba635f9c63f391f6c8a1 |
refs/heads/master | <file_sep>using Jobify.Shared.Models;
using Jobify.Services;
using System;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace Jobify.Pages.NewJob {
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class NewJobType : NewJobNavAbstr {
private Picker picker;
private Entry e... | cc2fd2f90a0e2952a9654a7a387fdd0253507684 | [
"C#"
] | 22 | C# | rjlovesu/jobify | e9e0f2f9ba595c53e249f4d6e70b771ed6088ec0 | 1c2427cbb8cf45e723a53aad6d3c9951275f423d |
refs/heads/master | <repo_name>cakocako/Restful<file_sep>/src/main/java/com/RESTful/demo/Repositories/BookRepository.java
package com.RESTful.demo.Repositories;
import java.util.List;
import com.RESTful.demo.Entities.Book;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@... | 91aa72526313c394ddef8f19efde624b2f981e6f | [
"Java",
"INI"
] | 2 | Java | cakocako/Restful | 8379b2a5157c50a580daedbdbcd98656b30ea5b1 | 72884964afd027ee8e37d12fe9e2a927bb078c68 |
refs/heads/master | <repo_name>fabiano-amaral/minicurso-2018<file_sep>/rotas/homeRota.js
module.exports = (server) => {
server.get("/", (request, response) => {
response.send(200, {
msg: "Bem vindo ao meu site"
})
})
}<file_sep>/rotas/pessoasRotas.js
var pessoas = [{
nome: "Luiz",
idade: 20,
cpf: 1,
sobrenome: "e... | dfcd147a67935230761e7947e124e90db70238ca | [
"JavaScript"
] | 3 | JavaScript | fabiano-amaral/minicurso-2018 | 12d2f700e3692aa81499ae419572b3df8f7504c3 | 1dcd5a37bc342bab2f6bcae0ad420447ee1101e0 |
refs/heads/master | <file_sep>function topView() {
var _gridPanel = new Ext.grid.GridPanel({
columns : [ {
header : "序号",
width : 120,
sortable : true,
dataIndex : 'picid'
}, {
header : "图号",
width : 120,
sortable : true,
dataIndex : 'picid'
}, {
header : "零件名称",
width : 120,
sortable : true,
da... | 8029deb75f4b56f7f40e1ef43e8356acf24330f9 | [
"JavaScript"
] | 1 | JavaScript | skyfeng530/myerp | 3b8c3d4637c9f712e88293e5be10f1ef759e9197 | 04eff183668c2ed736e8027273378c518da30186 |
refs/heads/develop | <repo_name>lalogf/capitan<file_sep>/app/controllers/users/sessions_controller.rb
class Users::SessionsController < Devise::SessionsController
def after_sign_in_path_for(resource)
resource.applicant? ? selection_url : resource.employer? ? employer_dashboard_coders_url : resource.group_id = 15 ? show_track_url(2) : sh... | ac68e770ae644bab655484e6dc18886951248c68 | [
"Ruby"
] | 2 | Ruby | lalogf/capitan | 104a2896d0ab559a5246b2fd24e0160d1c78c66d | e0591fe5cb65e3d7035be97b70a5c2fda9356ac1 |
refs/heads/master | <repo_name>AntonyHall1483/dockerfiles<file_sep>/nmap/README.md
Command to build image:
docker build -t nmap .
Command to run container:
docker run --rm -it --name=nmap nmap -Pn [port(s)] [url/ip address]
Examples:
# Scans google.com address and ports 80 and 443
docker run --rm -it --name=nmap nmap -Pn -p80,443 goo... | 3392633f5b7cdbd312e8c949af732eb1f6473846 | [
"Markdown",
"Dockerfile",
"Shell"
] | 25 | Markdown | AntonyHall1483/dockerfiles | 253310c6763cbf3a4d994e2c940a1469230a4f11 | 0d599023008e7f7802180c2e392c5224e71769c9 |
refs/heads/master | <file_sep>/*
SECTION 1:
VARIABLES
*/
//Step 1
//Write a variables called firstName that is assigned your name as a string value.
let firstName = "Luke";<file_sep>describe('Section 1, Variables', function() {
describe('Step 1:', function() {
it('should be a variable named firstName', function() {
... | e6d1e775eb47b82fecef348caa5036760ba6facf | [
"JavaScript"
] | 2 | JavaScript | przekwas/basic-js-drills-test | c5b8e2d5c2afa4d33f4a2b9a19646be391bb5077 | d74840cbca26f0a7f54d59f26140ad7383a61a27 |
refs/heads/main | <repo_name>xello-dev/sergetest<file_sep>/js/script2.js
"use strict";
}
// const answers = [];
// answers[0] = prompt("Ваше имя?", "");
// answers[1] = prompt("Ваша фамилия?", "");
// answers[2] = prompt("Сколько вам лет?", "");
// document.write(answers);
// const user = 'Serge';
// alert(`ПРивет,${user}`);
... | fa220cb54f5839fe48011c05a1c084e70d8c654d | [
"JavaScript"
] | 1 | JavaScript | xello-dev/sergetest | ab46e1a296291955ce987a58dcf613d8e6344d24 | 00e9902f62787b0105ff25ef678736aa41ec3a3e |
refs/heads/master | <file_sep>class PagesController < ApplicationController
def upload
# Create a user and session
user = User.find_or_create_by_id(1)
session[:user_id] = user.id
end
end
<file_sep>require 'rails/generators'
module S3Multipart
class UploaderGenerator < Rails::Generators::Base
desc "Generates an ... | 780d4fe31ac720aa2f0d9f6041276ff555d98ba1 | [
"JavaScript",
"Ruby",
"Markdown"
] | 29 | Ruby | contently/s3_multipart | a60db5b29035d9a0350d14d293617778bffff06e | bd9687e57629c081eb4bb1b3367d1d69ff7c11a6 |
refs/heads/master | <file_sep>{
"error": 0,
"members":
[
{
"id": 1,
"nicky": "moniu",
"email": "<EMAIL>",
"portrait": "../img/1.jpg",
},
{
"id": 2,
"nicky": "pengy",
"email": "<EMAIL>",
"portrait": "../img/2.... | 19ccffde25ec097418d255ca174eae8c6f0308c1 | [
"JavaScript",
"HTML",
"Markdown"
] | 6 | HTML | oswystan/studyweb | a7d2502b04ad9963171d8cca3a8a1e5270505d41 | 3833125205fe67c2e181959c72fee38c68909f89 |
refs/heads/master | <file_sep>#!/bin/bash
echo "******** Init database for Production "
echo "*** Get Database Environment "
# DB_URL=$CLEARDB_DATABASE_URL
# DB_URL => mysql://[username]:[password]@[host]/[database name]?reconnect=true
DB_URL=$(heroku config | grep CLEARDB_DATABASE_URL | awk '{print $2}')
echo $DB_URL
re="mysql://([^:]... | 7663c3c766e04fd0f714ceb2e2ddc4b43b1a03ef | [
"SQL",
"PHP",
"Shell",
"INI"
] | 20 | Shell | gcaggia/Astroclub | 5bd76d7a82f42ed1074bf8849e9c5486d41f8635 | 2f8737a8cf4c62ece7d8de869cd7716d5400e262 |
refs/heads/master | <file_sep>//
// CityCoordinates.swift
// WeatherApp
//
// Created by <NAME> on 08/11/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import Foundation
struct CityCoordinates {
static let novosibirsk: (latitude: Double, longitude: Double) = (55.030199,82.920430)
static let moscow: (latitude: Doub... | 24832fbd24e034835a6f1319cf9d1064a19fc561 | [
"Swift"
] | 4 | Swift | KlimkinArtem/WeatherApp | d016a7f08856ac615de3e1bc44f424aba13ddaa4 | fb30cc271441a12be8bd32747df6a8ce403d58e3 |
refs/heads/master | <file_sep># dmgr - Daemon Manager
This program will:
- Start a daemon process
- Read the daemon's master process pid from a file
- Makes sure daemon process name matches expected
- Keep track of the state of the process
- Intercept signals and pass them as commands
- Exit when the daemon process exits
It is useful f... | 8e2798839172c9b6d5ec83a04e8b737de94a78e5 | [
"Markdown",
"Python",
"Shell"
] | 3 | Markdown | anttin/dmgr | 99d64a86e92b0ae2ad5a48985e4c51702802a672 | 9daa84cd239fa588e9c57e5a7a1f6498de2b7f9c |
refs/heads/master | <file_sep>//
// CatRegisterAccountViewController.swift
// LoginApp
//
// Created by <NAME> on 1/23/19.
// Copyright © 2019 Johansson Group. All rights reserved.
//
import UIKit
class CatRegisterAccountViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
Not... | 00204877642cb3a11ec85304dec613c8c9b96908 | [
"Swift"
] | 1 | Swift | Insteration/LoginApp | d063bf5561d764c4c47ab9a64eec2d4c19abcf17 | 1ba14240599deacc5d638681c77dfaefa7874d41 |
refs/heads/master | <repo_name>xvk3/nasmshell<file_sep>/README.md
# nasmshell
## TODO:
- [ ] Check if NASM is installed
- [ ] Add "exec" function to assemble and execute instructions
- [ ] Get return value of the shellcode
## commands
1. **as, assemble** - set to assembly mode
2. **ds, disas** - set to disassembly mode
3. **bits** ... | 9b82417c09a20112dc91eb9779cad5b90c25271e | [
"Markdown",
"Python"
] | 2 | Markdown | xvk3/nasmshell | 69818f5f98f1f821ef49c5a7739c9e2f26f0fd1f | 36754d83f0b53b2ca44531d2396463ca25f54b42 |
refs/heads/master | <repo_name>amin3vdc/RedPitaya<file_sep>/jupyter/experiments/iio.py
#!/usr/bin/env python
#
# Copyright (C) 2014 Analog Devices, Inc.
# Author: <NAME> <<EMAIL>>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Fre... | 1bc792cd1b3134a0f909043ff78545621655b2ae | [
"C",
"Python"
] | 2 | Python | amin3vdc/RedPitaya | 48fb096e543dffccdb76c785d5d8cc6e1e899c9f | 6e1fea394cc6cca378714fc5b3533c264bba0f5a |
refs/heads/master | <repo_name>jackstorrie/Jack-Storrie-CES-Project<file_sep>/CESProjectRobot/robot.py
# imports
import argparse
import time
import cv2
import imutils
import numpy as np
import picamera
import gpiozero
# globals
from imutils.video import VideoStream
wheels = gpiozero.Robot(left=(7, 8), right=(9, 10))
camera = picamera.P... | 59d96e4633ed763a09d7072ea05534396d72d0e9 | [
"Python"
] | 2 | Python | jackstorrie/Jack-Storrie-CES-Project | 2ed9300b7c683db32510bb8014f72073312e079d | 082f614f5a0babfe93d0d6b642e4f634177cd1cf |
refs/heads/master | <file_sep>My name is <NAME>
And my favourite colour is red
| d74a3e734b3f5ec6f4a941b42c919ffb611f33b0 | [
"Python"
] | 1 | Python | Solaarmoon/tutorial | 025a37395a9b29e0156ab01a89bb290c780a2217 | f5fc7a11548d6f677c1023ec50482bdafae4d05b |
refs/heads/master | <repo_name>felipesantanadev/react-js-context-api<file_sep>/src/components/CreateMovie.js
import React, {useContext, useState} from 'react';
import {MoviewContext, MovieContext} from '../contexts/MovieContext';
const CreateMovie = () => {
const [movies, setMovies] = useContext(MovieContext);
const [name, setNam... | 3a3a2e72dcbebdb7badaea003c87625ac828ee04 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | felipesantanadev/react-js-context-api | 5e3498428ee26a0f48f4902cc76cca42a327c0c2 | 2e3ea37fedd81ba865f127f9166f7a5c4fc82ef2 |
refs/heads/master | <repo_name>IgnacioMilia/Charts<file_sep>/src/charts/Controller.java
package charts;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.chart.*;
import javafx.scene.chart.XYChart.Series;
import javafx.scene.control.Label;
import javafx.scene.c... | b010b90a563e727501ca4cdd29dc4db0f89f0f67 | [
"Java"
] | 1 | Java | IgnacioMilia/Charts | ec469b2ba24bf6b9b586afe22c033584846d90d7 | 0ea9f6eccb7d653496da7ea322d9de9579a665b2 |
refs/heads/main | <file_sep>import styled from 'styled-components';
const TitleStyle = styled.h1`
color: #333;
font-size: 2.875rem;
line-height: 3.5rem;
text-align: center;
margin-bottom: 8px;
font-weight: 400;
@media (max-width: 1200px) {
font-size: 2.2rem;
line-height: 3rem;
}
`;
export default TitleStyle;
<... | 79dfa0b8441f4f530b39118ca0c90712d06bbbe7 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | Mateussantis/Woke-ProcessoSeletivo | 14ef25e4b42e3f1aa6bdc79224729dd25b48247b | 7769cf25fff75b3082f010cdf413fb926ef405d0 |
refs/heads/main | <file_sep><?php
namespace App\Models\Page;
use App\Override\Eloquent\LaraframeModel as Model;
use Illuminate\Support\Str;
use Stevebauman\Purify\Facades\Purify;
class Page extends Model
{
public $incrementing = false;
protected $primaryKey = 'slug';
protected $keyType = 'string';
protected $fillable... | 4fd5960a576e3c4d3986d6b6650cfef673d1e09d | [
"JavaScript",
"Markdown",
"PHP",
"Shell"
] | 231 | PHP | cryptobuks1/cipher | 8e721a3411e35039e9015373340513d3bcdeb57d | 8982fca2cad60729dab2bf2adcb4c6e9797f9164 |
refs/heads/master | <repo_name>OfficialExedo/Lunara<file_sep>/profile-settings.php
<?php
include('classes/DB.php');
session_start();
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) {
header('location: login.php');
exit();
}
$username = $_SESSION['username'];
$id = $_SESSION['id'];
if (isset($_POST['updatep... | e28f1ccde7b60175d4f940b39493d6cff5499d89 | [
"PHP"
] | 6 | PHP | OfficialExedo/Lunara | 36640ee84a497baa17ce0005f3e01ce1cae5f87d | 0893ee2b4fc97f5ec9b29c2bcb58dfe4bebacce3 |
refs/heads/master | <repo_name>chawsunyein/ionicTutorial<file_sep>/src/app/itemreorder/itemreorder.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-itemreorder',
templateUrl: './itemreorder.component.html',
styleUrls: ['./itemreorder.component.scss'],
})
export class ItemreorderComponent i... | 9b4cf9354ec237536a5c85acddcaa474ac5ad664 | [
"TypeScript"
] | 9 | TypeScript | chawsunyein/ionicTutorial | 8fd6628c60f57d42852de0fe1626660dbb338e1a | 6db9a4a9a927458b1bb7a56af4bc30ffe28cfc85 |
refs/heads/master | <file_sep>"""
@Author : Vismaya
@Date : 2021-10-20 03:59
@Last Modified by : Vismaya
@Last Modified time : 2021-10-20 06:55
@Title : Coupon Numbers
"""
import random
class CouponNumber:
@staticmethod
def coupon_no(self, couponCount):
couponArr = []
count = 0
wh... | 263de4f8de9bfb8e82046ef87d271872eaad2de9 | [
"Python"
] | 24 | Python | vismayatk002/PythonAssignment | eaa66979e442cc01d1c6c45448dfb9296c01a9da | 4294d01a961a63e514087dce88a636b3541227bc |
refs/heads/master | <file_sep>## Atmospheric electric satellite. See [<b>atmosat.ipynb</b>](https://github.com/gusgordon/atmosat/blob/master/atmosat.ipynb).
The goal of this project is to determine what the smallest solar plane that can indefinitely sustain flight is.
The approach is to first make a model of a solar plane that can be fe... | 2ada265d893375b8d4485c321f8ef77a7b9f15b6 | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | gusgordon/atmospheric_satellite | c47ccb2b604d70afb5d5f90251b3704639b7897f | 1f467526f9f8df5e340eaf8e1a9c234cb71923ea |
refs/heads/master | <file_sep>Works as expected
```
rspec spec/batting_spec.rb
.
Finished in 0.00285 seconds (files took 0.12198 seconds to load)
1 example, 0 failures
```
Global namepsace polluted
```
rspec spec/bowling_spec.rb spec/batting_spec.rb
.F
Failures:
1) Batting does weird thing
Failure/Error: expect { self.class.co... | 95b39d852e9dc97243b78d9cf6655fe024b90c5b | [
"Markdown",
"Ruby"
] | 3 | Markdown | pratik60/rspec-pollution | 7fe50127127450fa0738ca85242b94742c82254c | 7b5aa4672ac7e611173917967e58a07de180a638 |
refs/heads/master | <file_sep># lottery
just a lottery drawing for fun
<file_sep>var gulp = require("gulp");
var del = require("del");
var webpack = require("webpack");
var webpackDevServer = require("webpack-dev-server");
var webpackConfig = require("./webpack.config");
var openUrl = require("openurl")
gulp.task("clean:dist",function(){... | 9324f3989778b266113553f8d328259800dd4237 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | zhoureal/lottery | 0233a951ba775e2a13891e92341da6a509474fa6 | f016040b7012873fa89c4462a611e8e2a84bda6d |
refs/heads/master | <file_sep>struct file {
enum {
FD_NONE, FD_PIPE, FD_INODE
} type;
int ref; // reference count
char readable;
char writable;
struct pipe *pipe;
struct inode *ip;
uint off;
};
// in-memory copy of an inode
struct inode {
uint dev; // Device number
uint inum; ... | 0dcbcaebc22cfe9857a341d56ddcc8d59a036b96 | [
"C"
] | 5 | C | saharavishag/operation-system | e3f3a8b425b051f69039e67fcce6d7b730e8c1aa | 6dfbe4537ed7242d28a03dd1d6c90bdc27e48fec |
refs/heads/master | <repo_name>quzhen12/hashTable<file_sep>/hash.go
package HashTable
func HashFunction(str string) int {
var sum int = 0
for i, s := range str {
ii := int(i) + 1
ss := int(s)
sum += ss*ii
}
sum = sum % 2069
return sum
}<file_sep>/go.mod
module hashTable
go 1.12
<file_sep>/hashTable.go
package HashTable
var ... | 074f34e07790e8ca9685039d35f1bcd571fd3f88 | [
"Go Module",
"Go"
] | 3 | Go | quzhen12/hashTable | 4053d9ad40163af337e16370df0a9891e14127de | de47015de5a51989f0c3d4190abc65dae1fdd5c7 |
refs/heads/master | <repo_name>judeagan1/hpc-vis-with-barchart<file_sep>/code.js
// Env params
const padding = 30;
const container_width = 800;
const container_height = 900;
const svg_width = container_width*3 + padding*4;
const svg_height = container_height + padding*2;
// draw svg canvas
var svg = d3.select('#svg_chart').append('svg')... | 476bb98b608ea52dceaf0dfbf93670e9d3b528f5 | [
"JavaScript"
] | 1 | JavaScript | judeagan1/hpc-vis-with-barchart | 982b2ea1b27e66d0d863b42c3610208dd83f7b62 | fa5a5cc8167455067de2981b16f89683ac72b0a0 |
refs/heads/master | <repo_name>triplewwwexpert/5th-contest<file_sep>/Vjudge 5/H.cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a1,b1,sum=0,i;
cin>>a1>>b1;
for(i=a1;i<=b1;i++){
sum +=(i*i);
}
cout<<sum<<endl;
return 0;
}
<file_sep>/Vjudge 5/B.cpp
#include<bits/stdc++.h>
using... | d8adf29fe6f32ab7ae14e63b42b637bae0c437df | [
"Markdown",
"C",
"C++"
] | 10 | C++ | triplewwwexpert/5th-contest | d19e0898f172a3241178c73c7562158c0374f5a6 | 0b273d364833f2bc40b1934f174c48e42d470298 |
refs/heads/master | <file_sep>var section = [];
var tabsChild = [];
var currentTabs = [];
var subTabs = [];
function initialize() {
tab();
if($('#tdp-detail').length)
tourismNav("detail");
}
function calcChanged() {
var val = $("#calcType").val();
}
function tab() {
var i = 0;
$("div[id^='tab-container']").e... | 67b746965ace8d465b4bdb2c567119e0675ea8d4 | [
"JavaScript",
"HTML"
] | 2 | JavaScript | DjakaTechnology/djakatechnology.github.io | 48433b52ea6335d7ee436cc1cfa0f58c88338981 | 5eff874cffb75f917f002877d82c0daac49ced38 |
refs/heads/master | <file_sep><?php
class Component {
public function renderOut() {
ob_start();
$this->render();
$result=ob_get_clean();
return $result;
}
}<file_sep><?php
echo includeJsFile("expert.js");
$filterRequest= new Collapse();
$filterRequest->setData(array("П... | d9ee12643eb38e563557c020cb66ffd59a60e2a4 | [
"JavaScript",
"PHP"
] | 47 | PHP | oskanberg/avtooffcom | 1e5245f29c59a072ad42d036db707329efd8deae | 0a0f73fb26dec3891a5491a81315607ddbd8f845 |
refs/heads/master | <repo_name>AlienCowEatCake/Wuild<file_sep>/Modules/CoordinatorStatus/StatusWriter.cpp
#include "StatusWriter.h"
#include "json.hpp"
#include <iostream>
StandartTextWriter::~StandartTextWriter(){
std::cout << std::endl;
}
void StandartTextWriter::PrintMessage(const std::string& msg)
{
std::cout << msg;
}
void Sta... | 5d0f043899e5dca79a8c8389003a0ff294172eef | [
"C++"
] | 2 | C++ | AlienCowEatCake/Wuild | 1514a749183e0f366d7e156c119901b12c455798 | 9d3ee75e15df9b7512ae1d1b265a932f4978ad2a |
refs/heads/master | <file_sep>__CreateJSPath = function (js) {
var scripts = document.getElementsByTagName("script");
var path = "";
for (var i = 0, l = scripts.length; i < l; i++) {
var src = scripts[i].src;
if (src.indexOf(js) != -1) {
var ss = src.split(js);
path = ss[0];
... | 0ba9b1c2e883d048af0bff981d8dd9f56337d967 | [
"JavaScript"
] | 1 | JavaScript | zihuxinyu/testProject | a697624446fa28bf88daf14290aa8e155cd38f10 | 8e6744ce86b69b035ae419431fa2973c093456fb |
refs/heads/master | <file_sep>module Kaminari
module Mongoid
module Criteria
extend ActiveSupport::Concern
included do
# Fetch the values at the specified page number
# Model.order_by(:name.asc).page(5)
def page(num)
limit(@klass.default_per_page).offset(@klass.default_per_page * ([nu... | 0324771a1383c65d13c71131cb2e0e9e6aaeb08f | [
"RDoc",
"Ruby"
] | 5 | Ruby | pedrobrasileiro/kaminari | 82dc93182caf675461a101e4ae31e5258bdb0b1b | 13e28999f38873124eca1e6c712e3392319569a7 |
refs/heads/master | <repo_name>PaulMing/javastudy<file_sep>/java基础2/4.多线程/README.md
## 多线程
> 背景:操作系统'向上提供接口/系统调用、向下统一管理硬件资源',其具备处理机调度能力,调度的基本单位是线程,也就是启动程序本质就是进程跑起来,然后进程中包含若干线程,有可能仅启用主线程,或者启用若干线程 -> 程序语言封装接口支持多线程API化调用,满足多线程的开发需求 => JAVA支持多线程编程,实际其就是多线程编程语言,java程序运行首先就包括'main主线程、GC线程',其它就需要手动创建线程
### 进程 && 线程 -> 计算机操作系统部分详解
> 进程:处理器进行作业调度... | 58d7cbc844956e4b00ddac16aafcd10cfe6e976c | [
"Markdown",
"Java"
] | 170 | Markdown | PaulMing/javastudy | 3579f7e79d73486ae49a53edbc5c27f066859ee1 | 85ba302021057a0a4f08c1780caf9736a88d4d2f |
refs/heads/master | <file_sep>
package Model;
import View.GUICodeAnalyzer;
import java.io.File;
import java.io.FileInputStream;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTree;
public class CodeAnalyzer {
public static void processCode() th... | 3fc08d59fc33e9edfaf3e506ac32a16de5008370 | [
"Java"
] | 2 | Java | eabohorquezg/ProyectoLenguajes | 586f8e2747f62344ec3004f74e4a118f25f741e3 | 1bdbd5d192ac5299d15ca121e823c619193d44db |
refs/heads/master | <repo_name>917163738/WolfManMurder<file_sep>/WolfManMurder/src/com/link/game/wolfman/model/GameRole.java
package com.link.game.wolfman.model;
import com.link.game.wolfman.activity.R;
import java.io.Serializable;
public enum GameRole implements Serializable {
XIANZHI("先知", R.drawable.bg_xianzhi), QIUBITE... | 5763e0fcad94a3a3892d6704fe29352b9b0fea78 | [
"Markdown",
"Java"
] | 4 | Java | 917163738/WolfManMurder | ee8902fbd5a61a76b75b6c9dce35066c2313cbcb | c5b36f1545261d8b3174337c631ee4a47bfc2ada |
refs/heads/main | <file_sep>//Let
// let a = 'Variable a'
// let b = 'Variable b'
//
// {
// a = 'New Variable A'
// let b = 'Local Variable B'
// console.log ('Scope A', a)
// console.log('Scope B', b)
// // console.log('Scope C', c)
// // let c = 'Something'
// }
// console.log ('A:', a)
// console... | 8945b0f2f97c7e31a869f878b4d79f6a90eeb013 | [
"JavaScript"
] | 1 | JavaScript | Exeldinho/JavaScript-practice | 5db8a748b6cebe7372f45246fd4d29757741483d | 0beec5f43a6cb1036965bf723be5cbe90f69c45f |
refs/heads/master | <file_sep>var mouseX = 0;
var mouseY = 0;
onmousemove = function(e){
mouseX = e.clientX;
mouseY = e.clientY;
}
var mouseDown = 0;
document.body.onmousedown = function() {
mouseDown = 1;
}
document.body.onmouseup = function() {
mouseDown = 0;
}
window.onresize = fixHeight;
//KeyPressed
var map = {}; // You coul... | 205889cba5f9c0877681109994ffb7b0523d6e8f | [
"JavaScript"
] | 1 | JavaScript | athdot/gameMaker | 6b1bb8a70cd1042348de19788b2615981ced515b | b217858a8a47b847a879ffbfdbb8bebcbc9e0144 |
refs/heads/master | <file_sep>package com.example.administrador.petshopcarrito;
/**
* Created by Administrador on 22/04/2018.
*/
public class Pedido {
private String FechaPedido;
private int IdPedido;
private double MontoPedido;
public Pedido(String fechaPedido, int idPedido, Double montoPedido, int idUsuario) {
... | fea86dee9b4e5c6eef6d1f1613c14fb03be5a9c9 | [
"Java"
] | 8 | Java | chquevedo2015/petshopcarrito | ace2c70d99174278926abc3c63fecf15f9e57ef5 | 24679afd8501978482a07a88901eb50060a55020 |
refs/heads/master | <file_sep>from main.MyMongo import MyMongo
from main.Person import Person
from bson import ObjectId
from typing import Set
class GenerateTestData:
@staticmethod
def populatePeople():
people = MyMongo("mongodb://localhost:27017", "PySamples", "People")
people.delete({})
mac... | 8e4a7222186690fe1301d55c4992e3af70a35701 | [
"Markdown",
"Python"
] | 5 | Python | DJMadShade/PySamples | f9b38c9a0082d3c82b44cfa473710a9394bc822d | 0c68de241c1fd3fe9b938ed7ef19d425111d2250 |
refs/heads/master | <file_sep>#!/usr/bin/env python
import os
import time
import subprocess
import numpy as np
from os import system
#The benchmarks to test
benchmarks = [
#Small, pure benchmarks
"even-odd",
"fib",
"merge",
"tailfib",
"tak",
#Small, imperative benchmarks
"flat-array",
"imp-for",
"... | ca90797e09aba7524513d6da35804f5c5e6161b2 | [
"Python",
"Makefile",
"Shell"
] | 3 | Python | jonsterling/cakeml | fd873e7a674bcf0a061e10cf039df64bd908b0e9 | 1e3b157d00a952b5912005e2e1d1a372109cd840 |
refs/heads/master | <repo_name>bearzx/MyRemoteController<file_sep>/SystemInfo/SystemInfo/SystemInfo.cs
using System;
using System.Configuration;
using System.Runtime.InteropServices;//导入API集合
using System.Management;
using System.Text;
public class SystemInfo
{
private const int CHAR_COUNT = 128;
public SystemInfo()
{
... | 8243e09ca11d16f28e17796c44634c5c84aa1109 | [
"C#"
] | 17 | C# | bearzx/MyRemoteController | 7dc0711ce2eeeba91383f5ab5e425a514b84daa2 | 3247b00e9f8024f65bde5ff66e50c3cf728466af |
refs/heads/master | <repo_name>QingyunSun/scs<file_sep>/src/scs.c
#include "scs.h"
#include "normalize.h"
#ifndef EXTRAVERBOSE
/* if verbose print summary output every this num iterations */
#define PRINT_INTERVAL 100
/* check for convergence every this num iterations */
#define CONVERGED_INTERVAL 20
#else
#define PRINT_INTERVAL 1
#defin... | b2389c07de22dea9d2bb841940f1f32c89cbd789 | [
"Markdown",
"C"
] | 2 | C | QingyunSun/scs | 34696ce4266a8a8b031628cf7accf6e77bffc97a | e909c8f3035c5a87e892acbc673b9998703cf5b8 |
refs/heads/main | <repo_name>diemancini/python-tdd_ci_tests<file_sep>/test_compute_stats_refactor.py
import unittest
from compute_stats_refactor import ComputeStatsRefactor
class TestComputeStatsRefactor(unittest.TestCase):
def test_read_inits(self):
csr = ComputeStatsRefactor()
return self.assertIsInstance(csr.re... | 67260de1db13b9f5fcea9e90af09d5dc62b4e4cf | [
"Python"
] | 2 | Python | diemancini/python-tdd_ci_tests | 7dca7c1aa37f7ff5d1e076b6c98773e46f9e78de | 2180c9ef665da5df6bf6761d6f6ed5858ef12aa0 |
refs/heads/master | <file_sep>
void CopyString(char pcSource[], char pcDestination[]){
unsigned char ucCharNumber;
for(ucCharNumber = 0; pcSource[ucCharNumber] != '\0'; ucCharNumber++){
pcDestination[ucCharNumber] = pcSource[ucCharNumber];
}
pcDestination[ucCharNumber]='\0';
}
enum CompResult {DIFFERENT, EQUAL};
enum C... | 93e560db5c300a5fce6c07cf82407aea9af462c6 | [
"C"
] | 4 | C | MateuszMisdziol/ppsw_obow | 72a1b4da9ab9ceaf1073c712d8d3157a3f860d95 | 6e6801ab6e64b8741215989e3e659534bb7de875 |
refs/heads/master | <repo_name>andreaswinges/AdventOfCode2020<file_sep>/AdventOfCode2020/FormDayThree.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AdventOfC... | 0033d16285cc3724f60aee45d2ca6e03d1204b5d | [
"Markdown",
"C#"
] | 5 | C# | andreaswinges/AdventOfCode2020 | 89d40e56501770e57c4108de23d9c5da046eddf8 | cd91fecf4a7c28e38018e056f04decb719b18409 |
refs/heads/main | <repo_name>xbuu/opentest<file_sep>/open_test/installer.py
import os
import time
import webbrowser as wb
def get_user():
return os.getenv('USER', os.getenv('USERNAME', 'user'))
def filexists(filePathAndName):
return os.path.exists(filePathAndName)
if filexists("C:/Users/"+get_user()+"/Desktop/File... | 855508bdc327a4a6fa8c730fccf146954c02c554 | [
"Python",
"Text"
] | 2 | Python | xbuu/opentest | 7ca37ec27cef264994f0dbee4d8c18214d05a7a9 | 40e33cd8dfea191a029578a3f73d542475958e53 |
refs/heads/master | <repo_name>mohusroom/laravel_project<file_sep>/routes/web.php
<?php
use Illuminate\Support\Facades\Route;
Route::domain(config('myapp.domain'))->namespace('User')->name('user.')->group(function () {
Route::get('/', 'HomeController@index')
->name('home');
});<file_sep>/resources/js/user/common/_share/_hamb... | 680ebccfb7a108123d7951a4120a0a65eda0f730 | [
"JavaScript",
"PHP"
] | 4 | PHP | mohusroom/laravel_project | 92a7e6a21ae9ca0b217d5ca9b744c1db0f455c3c | 05eefe54affcc6b2aca5a73fa68681786fe5ef2a |
refs/heads/master | <repo_name>is0232xf/localization<file_sep>/particle_filter.py
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 06 12:28:02 2016
@author: Fujiichang
"""
import bayes_filter
import collections
p_o_s = [[0.01, 0.01, 0.01, 0.01, 0.85, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01],
[0.01, 0.01... | 532cb6efbf12cb18eb7413144494074a88d13d4e | [
"Python"
] | 9 | Python | is0232xf/localization | a77996d0ec4213bf17631859683e451c1569ca4c | 33c76909fc2755623e28c550c2106a2a9bf7e4e4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.