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>kioster/calculator<file_sep>/arithmetic.cpp
#include <QString>
#include <QStringList>
#include "arithmetic.h"
QString add( QString &fore_ , QString &back_ )
{
if ( fore_[0] == '~' )
{
fore_[0] = '-' ;
}
if ( back_[0] == '~' )
{
back_[0] = '-' ;
}
QStringList fo... | df3886b13100411474331ddb0e0fd3898a4bbc4d | [
"C",
"C++"
] | 8 | C++ | kioster/calculator | d4837331c7fddd2110ed203be38c17cbfb29c499 | b57ba6fef758ff8ddc57028fda378d050f5b6561 |
refs/heads/master | <repo_name>paibamboo/vortigern<file_sep>/src/app/redux/IStore.ts
import { ICounter } from 'models/counterModel';
import { IStars } from 'models/starsModel';
export interface IStore {
counter: ICounter;
stars: IStars;
};
| e4b169eac76c4c4952cb35c1291ead801b1132e2 | [
"TypeScript"
] | 1 | TypeScript | paibamboo/vortigern | f22fb58b0bc8a51e8d187b00a102f7c5fb243c15 | 3efa7ed33aa6df501455cf09347b71746e1cb65e |
refs/heads/master | <file_sep>console.log('------------st task10');
/*
Task#10 Accounting
Write an expression using higher-order array methods
(say, filter and reduce) to compute the total value of the machines in the inventory array.
*/
const inventory = [
{type: "machine", value: 5000},
{type: "machine", value: 650},
... | 55590bb2c9c5d6112a9b4192cbd7e56b169d339b | [
"JavaScript"
] | 10 | JavaScript | kelya513/es6_practic | 11ac58932e004d02581abc508a2e014144dbf8e9 | e16050c77eaf3ca3cb8762b0e3183a8ea492b43a |
refs/heads/master | <file_sep>Using Rails version: 5.2.3 with Ruby 2.5.5
_________________________________________________________________________________
This is a simple rails messaging app that I am creating as part of 'The Complete
Ruby on Rails Developer Course' by <NAME> and <NAME> on Udemy.
This web application makes use of the ... | 9669f69dfa67b50397d6582830ad3a835bfac102 | [
"Markdown",
"JavaScript",
"Ruby"
] | 22 | Markdown | QuestionMark97/message-now | 29d7afade241421b7d8a78f048a3f77902f237ef | 9a5c3abdf68f4f3574277f4ade27d0e7f4e1d050 |
refs/heads/master | <repo_name>JakeFallows/NoobLab<file_sep>/src/main/webapp/cpp-post-js.js
//LAUNCH WORKER
Module["print"] = function(msg) {
var t = new Date().getTime(); while (new Date().getTime() < t + 2);
cout(msg); //,"color:white; padding-left: 15px;");
};
Module["clear"] = function() { console.clear(); };
Module["printE... | 999869a0914a29aad69603c9d9363aecf8423f59 | [
"JavaScript"
] | 1 | JavaScript | JakeFallows/NoobLab | 0248786b97f968677c0bea5170d49be65a3c5911 | d0ada2269b8a0e972624fe61365d1d79737d63ff |
refs/heads/master | <file_sep>package com.sap.ward.iot.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Entity
@Table(name = "iot_sensor")
@NamedQueries({ @NamedQuery(name = "Sensor.getAllSensor", qu... | 14bc4d1a32c670b7ded58bb46aa52919d334ff8d | [
"Java"
] | 1 | Java | wardpeng/cloud-espm-v2 | cba608cd1d53508cb3a768bbb38fe1c3ed885639 | f60b519e4fbb539043f9b5e0aa59bd69173945b8 |
refs/heads/master | <repo_name>luisdiazvenero/musicapp<file_sep>/src/api/config.js
export default {
appname: "musicapp",
apiKey: "<KEY>",
secret: "<KEY>",
registeredTo: "luisdiazvenero"
}
// Application name musicapp
// API key <KEY>
// Shared secret <KEY>
// Registered to luisdiazvenero | b2b5343e06e66a1f83df773c3cefe3c3338a3725 | [
"JavaScript"
] | 1 | JavaScript | luisdiazvenero/musicapp | bbdcb1be6311f421ea82c16ed48f48ce2ba94985 | 221373eb11a70b6cc78223bee0c38f44bdda0952 |
refs/heads/master | <file_sep>module Idobata::Hook
class Yukai < Base
name '夕会'
identifier :yukai
icon_url 'http://suzukimasashi.github.io/assets/images/SKE48/kato_rumi/00004.jpg'
end
end
<file_sep>require 'spec_helper'
describe Idobata::Hook do
describe 'configuration' do
Idobata::Hook.all.each do |hook|
... | 39f2bdccb7ca67c596e985b648f46ecd9ec3eeb0 | [
"Ruby"
] | 3 | Ruby | SuzukiMasashi/idobata-hooks | 1216c63d510f85e2188a622c4c81a20961344c62 | 542e642d96c43b1463d6db07aab454e25ebc9bbe |
refs/heads/master | <repo_name>hzhh123/bootstrap-work<file_sep>/demo1/js/default.js
$(function(){
//设置侧边导航栏的panel-body高度
setSidebarWidth();
setView();
$('#data').jstree({
'core' : {
'data' : [
{ "text" : "根节点","icon":"fa fa-folder", "children" : [{
... | 913feb3bafb2117060e6c2c71fad3cb2ad2f795a | [
"JavaScript"
] | 1 | JavaScript | hzhh123/bootstrap-work | 9ec7b81f4db4f14ba475ba03749068aeeb85912a | 060a52ff5f47c51087825007b476f45cb166e45b |
refs/heads/master | <file_sep>#!/usr/bin/env node
var path = require('path');
var Promise = require('promise');
var debug = require('debug')('index:bin:handlers');
var base = require('taskcluster-base');
var taskcluster = require('taskcluster-client');
var data = require('../index/data');
var Handlers = r... | 9d813927aa90bbc2087a8b6046e9e1c18c9cb708 | [
"JavaScript"
] | 5 | JavaScript | petemoore/taskcluster-index | ccc0e0d370c2d1a85483bf5d68fd198705c7d40d | cbc312af4b4a97079b65e1551e5187bab5999190 |
refs/heads/master | <file_sep>次の歌詞サイトからスクレイピングして、米津さんが作詞した歌詞を全て取得
https://www.uta-net.com/
lyric_scraping.ipynb: スクレイピングするためのコード
米津玄師_lyrics.txt: 米津さんが作詞した歌詞
米津玄師_musics.txt: 米津さんが作詞した曲名
<file_sep># yonedsu_lyric
米津玄師さんの歌詞をAIに学習させた。
そのために必要な自作モジュールをアップロードしています。
dataloaders.py: ミニバッチを生成するために必要なデータローダー
datasets.py: データセットを生成するためのクラスが実... | 5a539d7ec3971f65a7ba0ee793caf4ddfae133c6 | [
"Markdown",
"Python"
] | 7 | Markdown | daiki-noguchi/yonedsu_lyric | 482a03d3edadf7a5c4e05c0c7ba36eb4665b4f7b | 80ef72a1a798efafad1042c4fda739af82c2db5a |
refs/heads/master | <file_sep>package dany.caro.loginkotlin
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreat... | 11ac28c919837a85f395339236664550a86eb95e | [
"Kotlin"
] | 1 | Kotlin | danyca13/LoginKotlin2 | 33af29df52664765129af669ea79a8e39a08dfc1 | eb6019fed6766dfb38f3af5c04769e3cffc232f5 |
refs/heads/master | <file_sep>Это моя первая игра, написанная на Ruby :))
<file_sep># Моя первая игра на Ruby
str = "Вас приветствует игра ◄◄◄ ОДНОРУКИЙ БАНДИТ ►►► "
timer = ". "
1.times do
str.size.times do |x|
print str[x]
#d = (1 + rand(50)).to_f / 100
sleep 0.2
print ""
end
puts ""
puts "Автор: <NAME> ©2019"
... | 5f823a1ca1c51d57495e215368338df5d9d22f48 | [
"Markdown",
"Ruby"
] | 2 | Markdown | stigmat-svo/OB | 304af249ee130397d5cd80d8eec7c2dcdc144705 | 6f877f58c403fd67606755abbdb26f17abecc052 |
refs/heads/master | <file_sep>import Vue from 'vue'
import Router from 'vue-router'
import Store from '@/store'
import Main from '~@/main/'
// users
import SignUp from '~@/users/signUp'
import SignIn from '~@/users/signIn'
Vue.use(Router)
const LOGIN_ONLY = (to, from, next) => {
Store.dispatch('updateUserInfo')
.finally(() => {
... | 38b7a53b8e3510c1692bc0e138407a2f36754a1b | [
"JavaScript"
] | 3 | JavaScript | ldc84/vue-project-1 | 098132a7b630aa36729dd066af321c33c521e18e | 8135606eaeef96553763994d6ad0ea83bb2b66ad |
refs/heads/master | <file_sep># SpotkajmySie
Aplikacja służy do przedstawiania propozycji możliwych terminów spotkań na podstawie kalendarzy dwóch osób. Aplikacja przyjmuje na wejściu dwa kalendarze które zostają podzielone na zbiory rozpoczęcia oraz zakończenia planowanych spotkań. Następnie zostają posortowane oraz połączone te które si... | afa7b14fcefdaa02db0df54cae32085fca7e0501 | [
"Markdown",
"Java"
] | 4 | Markdown | JaroszPatryk/SpotkajmySie | 83737e0b08f816521ee8fe0d5cc558a930d5f283 | 8b2970a12614ec9147d26a8885fb6d87918b8ca0 |
refs/heads/master | <repo_name>rainmodred/typical-arrays-problems<file_sep>/src/index.js
function isValidArray(array) {
if (array === undefined || array.length === 0) {
return false;
}
return true;
}
exports.min = function min(array) {
if (!isValidArray(array)) {
return 0;
}
return Math.min(...array);
};
exports.ma... | 32a24e40f716892d8c35ce8e12c99a1932ca3efa | [
"JavaScript"
] | 1 | JavaScript | rainmodred/typical-arrays-problems | 61f17aafa69d4012571cbdafd5b4d26d49c8f150 | cd760baa2554bae5fd4744c518225a8351932d8b |
refs/heads/master | <repo_name>steveWinter/OneupUploaderBundle<file_sep>/Uploader/File/FilesystemFile.php
<?php
namespace Oneup\UploaderBundle\Uploader\File;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpKernel\Kernel;
class FilesystemFile extends Uploa... | 2630e076cfda690baa30387226cd5d0213ac8fc9 | [
"PHP"
] | 4 | PHP | steveWinter/OneupUploaderBundle | f800365c33f8ba7a5fd7542967c2303dad74c542 | bcaf7411c2bbc60dad539195ddd04a5b57954b29 |
refs/heads/main | <file_sep>var savedUserInput = prompt ( "hello" ) ;
console. log(savedUserInput) ;
document.getElementById("username") .innerText = savedUserInput;
//tooltip
$(function () {
$('[data-toggle="tooltip"]').tooltip()
}) | b4291c4534c2178295e5f2fea1410c33ded643ac | [
"JavaScript"
] | 1 | JavaScript | NourrKhalil/web-design- | beb82d4b7af266cb08fe1ed85c814c2c8e0bf0b6 | 2cd3c3c847cede517b80073afa60a05e8d72cb6a |
refs/heads/master | <file_sep>package com.example.miguelvzz.datospersonales;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
im... | 95f06971dae0bafbc384bf14ae898fc42ec14b5d | [
"Java"
] | 1 | Java | miguel144a/Activities-Android | 446b5eb7b5f449543e7ef17e42742e2580d0bf5c | 95999a4f80307b8c0e4d07140098ba4376396d09 |
refs/heads/master | <file_sep>import pygame, sys
from pygame.locals import *
import random
pygame.init
windowSurface = pygame.display.set_mode((800, 600), 0, 32)
pygame.display.set_caption('game')
brown=(190,128,0)
black=(0,0,0)
green=(0,128,0)
blue=(0,0,255)
white=(255,255,255)
red=(255,0,0)
xtree1=[200,250,100,225,350]
ytree=[200,50... | 598a83ad9ec88a73afa53196c294073043013e71 | [
"Python"
] | 1 | Python | emenesesayc/first-pygame-game | 80c30e25fba661b4173f72875b98b6c296466c93 | 40a52a6e05b004733613e7b6be1fb7ab004cdd26 |
refs/heads/master | <file_sep>//
// SubscribeViewController.swift
// SubscriptionPrompt
//
// Created by <NAME> on 5/3/16.
// Copyright © 2016 binchik. All rights reserved.
//
import UIKit
public protocol SubscriptionViewControllerDelegate {
func subscriptionViewControllerRowTapped(atIndex index: Int)
func restoreButtonTappe... | 5d40919f6ea849593c667bb45f8404b648f74038 | [
"Swift",
"Ruby",
"Markdown"
] | 7 | Swift | binchik/SubscriptionPrompt | cfe2808fee7ab8d9183f90ecd20ce6687e883ddc | c13e0562bb7f15f14e85150b3084acdb239afe01 |
refs/heads/master | <file_sep>
## The function makes a special matrix that can cache it's inverse.
## Sets value of the matrix
## Gets value of the matrix
## Sets Inverse of the matrix (After cacheSolve)
## Gets Inverse of the Matrix (After cacheSolve, Before gives value "NULL")
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL... | f23794dc64fa568e99a6e00a305dcebe3baf4192 | [
"R"
] | 1 | R | JacobMcNab/ProgrammingAssignment2 | 6cbdbae63fbba4e3a55d890d38947571a3561f39 | f0ec5e346cd717b4bc2564ba49f236d41cf20741 |
refs/heads/master | <repo_name>traderadm/TraderCore<file_sep>/taupotrader.co.nz/cache/tpl_webid-bootsrap-standard_yourauctions_sold.tpl.php
<script type="text/javascript">
$(document).ready(function() {
var relist_fee = <?php echo (isset($this->_rootref['RELIST_FEE'])) ? $this->_rootref['RELIST_FEE'] : ''; ?>;
$("#processrelist... | 4eb4495ed33a5a0ccfab795bf394b1fcc9b01744 | [
"PHP",
"Shell"
] | 19 | PHP | traderadm/TraderCore | 932be7e683f037a0ffee46b2e683fe684ebe72ff | 7698e56adab25f2fe463d92444bfc6193554ad47 |
refs/heads/master | <repo_name>chengren/GetData<file_sep>/README.md
README
=======
getdata
GitHub repository for the Getting and Cleaning Data course on Coursera
Script Dependencies:
reshape
Instructions:
Extract the data from the URL (zip) provided by the instructions page on Coursera. You should put the data in the working directory ... | c6e935da69cea1395e7c9e936c03142720cde621 | [
"Markdown",
"R"
] | 2 | Markdown | chengren/GetData | ef38088aa5dbfb6b0696b0af012bbf4432265c10 | f3248aa9f1c48b107dd7a96bd373fd1c338e10e1 |
refs/heads/master | <repo_name>jsivportfolio/react-next-ecommerce-sample<file_sep>/pages/api/products/[category].js
import data from './data.json';
export function getProductsByCategory(category) {
const products = data.filter((product) => product.category === category);
console.log('[category].js category filter = ' + category)
re... | 5d925a1c33fc938a21ad629d7c33834862e0a59e | [
"JavaScript"
] | 6 | JavaScript | jsivportfolio/react-next-ecommerce-sample | 60a697e7483908db6b1578432843b96d5dc7afa6 | 2b3e4e5a791d1acf871474ea79db14ef06da5c8b |
refs/heads/main | <file_sep>const users = [
{
name: 'Prince',
age: 28,
gender: 'M',
hobby: 'coding',
avatar: 'avatar0.png',
},
{
name: 'Peggy',
age: 27,
gender: 'F',
hobby: 'cooking',
avatar: 'avatar1.png',
},
{
name: 'Seth',
age: 30,
gender: 'M',
hobby: 'gaming',
ava... | f082be48c73dd45bae07f807442d8ce8fba7e6a4 | [
"JavaScript"
] | 1 | JavaScript | PRINCEKK121/programmingForEntrepreneurs | 940b56f69570a03381933e48c8523746668ac955 | 557c0cf26d730c50c551901eebdc4d47b308c6a3 |
refs/heads/master | <repo_name>YohanesDemissie/whiteboard-challenge<file_sep>/whiteboard-challenge-19/solution.js
'use strict';
const SLL = require('./sll');
const solution = module.exports = {};
solution.linkedList = (tree) => {
if (!tree) return null;
if (typeof tree !== 'object') return null;
let arr = [];
let sll = new SLL()... | 0d339a45733db40ab82d2042ccabfb2c4581d1db | [
"JavaScript",
"Markdown"
] | 53 | JavaScript | YohanesDemissie/whiteboard-challenge | 97aafeedf739f909974333d57ce2b213c4d32278 | 7b6ffe457751e85f51b6e4ded788ad59227b3cc7 |
refs/heads/master | <repo_name>Yamato0516/teleco<file_sep>/gulp_tasks/clean.js
var
$ = require('gulp-load-plugins')(),
gulp = require('gulp'),
config = require('./config'),
del = require('del');
gulp.task( 'clean', del.bind( null, [ config.dest ] ) );<file_sep>/src/special_contents/teleco/assets/scripts/scripts.js
// -----... | 6711495cf119cdb3a187c2d71a3b7a5a9ab68519 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | Yamato0516/teleco | b32226023d1130d171e874b6930a54642bd8b2af | b61080be7550a433d99394c5b684a857609c8067 |
refs/heads/master | <repo_name>Elza-Espina/Laboratory-Equipment-Inventory-Software-System-<file_sep>/application/models/LaboratoryModel.php
<?php
class LaboratoryModel extends CI_Model {
public $labID;
public $labName;
public $description;
function __construct(){
parent::__construct();
}
... | 973dd02ca7365876984a797a3e797c3ae1caa2d6 | [
"PHP"
] | 8 | PHP | Elza-Espina/Laboratory-Equipment-Inventory-Software-System- | 0afb8acde124cb5ee3e51137f16df114d8bba0f4 | e38327f407a09883ba2c550606359e6d4b1a25ad |
refs/heads/main | <file_sep>#include <arpa/inet.h>
#include <ctype.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#define MAXLINE 8192 /* Max text line length */
#define LISTENQ 1024 /* Second argument to listen... | 1e37713e809e402bbac31b2e8d0432095898b218 | [
"C",
"Makefile"
] | 2 | C | aacastillo/Network_Programming | f3cbf4d4730a59e7fa7409989a692c39cacd33df | ecc9eae4bb17684a662ab8973e6b6751a219b188 |
refs/heads/master | <repo_name>wakawaka427/tumvie<file_sep>/app/src/main/java/jp/co/wakawaka/tumvie/searchlist/Item.java
package jp.co.wakawaka.tumvie.searchlist;
import android.graphics.Bitmap;
/**
* Created by wakabayashieisuke on 2016/07/05.
*/
public class Item {
public int id;
public String postId;
public String sourc... | be3da5ceaaf4233ac2ba7548dc26408f5182775d | [
"Java",
"Gradle"
] | 5 | Java | wakawaka427/tumvie | 56b4ad2785831c5ae5ae1f2ab6a433a11c420459 | dea55f9ba3383de3473204c4b909526e8be5ed23 |
refs/heads/master | <repo_name>jonathan-91/shell-scripts<file_sep>/remote-message-log-analysis.sh
#!/bin/bash
# -- Analyze remote host's message log --
SYSIP="$1"
WC=$(echo $SYSIP | grep "." | wc -l)
if [ "$WC" == "0" ]; then
read -p " --- Please enter the IP of the system: " SYSIP
fi
ssh $SYSIP <<'EOF'
for i in `ls /var/log/messa... | 162a123aaf875a2bc986e3f30ebe685f37838cb3 | [
"Markdown",
"Shell"
] | 3 | Shell | jonathan-91/shell-scripts | e14a5ee80ea4697946d7471de282a926b233023f | 4f1c846ccfc2adb27510f3c0c274aa11b66c0d44 |
refs/heads/master | <repo_name>yusufshakeel/adventofcode2019<file_sep>/src/0202.js
/*
--- Part Two ---
"Good, the new computer seems to be working correctly! Keep it nearby during this mission - you'll probably use it again. Real Intcode computers support many more features than your new one, but we'll let you know what they are as you ne... | 0909bc1b283f29088c4a654824e0175e0b531911 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | yusufshakeel/adventofcode2019 | b7f873392acc1cfd290185de1151c9b625c834e5 | 55c501f5aa866c4f7672cf7b13a2de8eb5f3d422 |
refs/heads/master | <file_sep>#pragma once
#include<iostream>
#include<vector>
#include<string>
class Animal {
public:
Animal(std::string inName, int inEnergy = 100) //名稱跟初始體力
: Name(inName), hungry(0), energy(inEnergy) {};
//傳入消耗量,回傳飢餓度
int feed(int amount) {
hungry -= amount;
hungry = std::max(0, hungry);
return 1;
}
virtu... | dbe56a74097ef46f926f92734a24b24d125903cd | [
"C++"
] | 2 | C++ | MuMuShy/zoo | b829a441c7f864b6bd4fca1539255b1f60714c51 | e5ea2a9d57c64cf43f1a9eff5ec98a1487c05e3d |
refs/heads/master | <repo_name>marcusnjones/wpphpinfo<file_sep>/README.md
# wpphpinfo
A WordPress theme used for quickly displaying your PHP configuration.
<file_sep>/index.php
<?php
/**
* This is the only template file included in this theme.
*
* It is used for quickly displaying your PHP configuration.
*
* @link http://php.ne... | dba0d412d7a2f1b19f03accc08e8bca8beea38ea | [
"Markdown",
"PHP"
] | 2 | Markdown | marcusnjones/wpphpinfo | 545f1559534ccc618ac295207f0ca7a659ae12b6 | e74306e0fac3a5a5ba67d4002aa63f618e3924c4 |
refs/heads/main | <file_sep>var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var lines = input.split('\n');
var a = [];
var i,positive = 0,negative = 0,even = 0,odd = 0;
for(i = 0;i < 5;i++){
a.push(parseInt(lines.shift()));
}
for(i = 0;i < 5;i++){
if (a[i] % 2 === 0) {
even++;
}
else if(a[i] !== 0){
... | 449630ce1433d3571a5e917f20207a952510ed64 | [
"Ruby",
"Lua",
"JavaScript",
"C#",
"Python",
"C",
"Go",
"Kotlin"
] | 8 | JavaScript | bilash-biswas/1066 | 793b163f9eade8a79f39b6edc4815d00c60be9c4 | 92ea3e8fcd22be46228d6f7443343cf9255259e0 |
refs/heads/master | <file_sep>from flask import Flask , render_template , jsonify
import csv
import random
import pprint
import config
import requests
app = Flask(__name__)
@app.route("/")
def Home():
with open('netflix_titles.csv',encoding="utf8") as f:
read = csv.reader(f)
row = random.choice(list(read))
... | d51d60f489d3cef866ff362411b624f46f231b35 | [
"Markdown",
"Python"
] | 2 | Python | Imkdshah/Flask | 5f9cc99422b83e3a9fc508cd12178ad3c8c72c79 | d1b16c502c21605aa050704a12cfe35bf2c08414 |
refs/heads/master | <file_sep>/**
* Export all publicly accessible modules
*/
<file_sep># dynamicbuffer
A dynamic drop-in replacement for Node.js Buffer API
| 5e5a8d12f7343b2b7ba074aba15534ed56b4caae | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | sampathsris/dynamicbuffer | 594c175d088917cab0943bb871ee20cb06e9d851 | abef6525b76beee9d876ed4e2388e79a15253186 |
refs/heads/master | <file_sep>// Copyright 2012 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | d4712c365428619e223086f2ac962d5a50f05e09 | [
"C++"
] | 1 | C++ | emaxerrno/Impala | 0005da9cb71f5a4a4ed6bb1dfcd74f8526cd8316 | 59e7425dc150be93bae903574c10bba24d274d0c |
refs/heads/master | <file_sep>def start():
print("Welcome to basic calculator")
while True:
try:
num1 = int(input("Enter a number: "))
op = input("Enter an operation: ")
num2 = int(input("Enter another number: "))
for operation in op:
if operation == "+":
print(f"The answ... | 502b5d31630ddb5f16351986fb89825f5b60810b | [
"Markdown",
"Python"
] | 2 | Python | jav1anpry5ce/Calculator | d3f9e5d2a5333d8f0e3fcc115bc974beee4181b4 | d3dee89c0cf7bfbde89a7f320714967eadc9bf3a |
refs/heads/master | <repo_name>aviolette/cftfchrome<file_sep>/build.sh
rm cftfchrome.zip
zip cftfchrome.zip background.js icon.png jquery-2.1.1.min.js manifest.json options.html options.js popup.html popup.js logo128x128.png logo48x48.png
zip -r cftfchrome.zip bootstrap
<file_sep>/options.js
function loadSettings() {
chrome.storage.syn... | 6e96d4a5edba333c51cd633955aaa154cc7be91c | [
"JavaScript",
"Shell"
] | 3 | Shell | aviolette/cftfchrome | c9689f03d7fa11360e3bf37c90c9ae5d1fe57ecb | 2aa9a50633342510205276acf2338464458ebf58 |
refs/heads/master | <repo_name>therewillbecode/CaesarCipher_py<file_sep>/index.py
__author__ = 'Tom'
import math
class CaesarCipher(object):
def __init__(self, shift):
self.shift = shift
def encode(self, str):
print(str)
str = str.lower()
shifted = [chr(self.map_encode(x, self.shift)) for x in str... | 948457c0dbb47751a0a1235307cb056967cd8e57 | [
"Python"
] | 3 | Python | therewillbecode/CaesarCipher_py | 268e88c2fc10a4347eaaf8780dd3441510be3f01 | dd891cda616896353b61ac11d9bce7d2af8a5396 |
refs/heads/master | <file_sep># feed2
Mobile Feed App
<file_sep>
export default function($scope, $stateParams, $sce) {
const s = $scope
const post = s.model.posts[$stateParams.id]
s.content = $sce.trustAsHtml(post.content)
s.title = post.title
}
<file_sep>import angular from 'angular'
import Firebase from 'firebase'
import _ from 'lod... | 0734f29fda097e3a26ba57037a0e0ab6d9c11093 | [
"Markdown",
"JavaScript",
"Shell"
] | 8 | Markdown | tserdyuk/feed2 | f84bb7b3fe256658dd2f12f6adffbcd15c0da5ef | 32a909490c9922b6ed79348086a085ff48111229 |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
"""eddy_prediction.py: This file defines the functions used for predict eddies
with data assimilation methods."""
__author__ = "<NAME>, <NAME>, <NAME>, <NAME>, <NAME>"
__date__ = "January 2021"
__version__ = "1.0"
__maintainer__ = "Not maintened"
__email__ = [
"... | a93dcbdf727ea6e430e38a1647cddc04dd1d45b6 | [
"Markdown",
"Python"
] | 14 | Python | lordastorios/Projet_3A_IMTA | aabeb9ff99f2ea8d628db5c63ac6f8ebbe346313 | 12d178a9a19f8e931f6037fdf45b0c2ec225c4a2 |
refs/heads/master | <repo_name>AhmedSafwat1/DataStrucutreCode<file_sep>/rev-c++/main.cpp
#include <iostream>
#include <string.h>
using namespace std;
class Test
{
public:
Test()
{
cout<<"www";
}
};
void call(Test x)
{
cout<<"";
}
int main( )
{
Test t;
Test g = t;
call(t);
}
<file_sep>/t/main.cpp
#include <io... | f107594cefc5122d7f1f08e203c0e83b3ed14fe4 | [
"C",
"C++"
] | 9 | C++ | AhmedSafwat1/DataStrucutreCode | d7db921c159e32112527fd2257ef7571aeb13de1 | 3f4a21b45c2eba0e285f8257d32ce7d6c26446e5 |
refs/heads/master | <repo_name>luisalbertoc/laravel_mantenedor_usuarios<file_sep>/resources/views/header.php
<link rel="stylesheet" href="<?php echo asset('css/bootstrap.min.css')?>" type="text/css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<h1>Id: <?= Session::get('id'); ?></h1><file_sep... | ed021bc1e19e1070c4c448e9abb239b103dfc99e | [
"PHP"
] | 6 | PHP | luisalbertoc/laravel_mantenedor_usuarios | 8acde1787cae1cd9cb916c56df849ee933c6ff60 | a4dea946d8c96afef4f18e3a30f816280275d139 |
refs/heads/master | <repo_name>ylevi33/octane-bamboo-plugin<file_sep>/src/main/java/com/hp/octane/plugins/bamboo/octane/BambooPluginServices.java
/*
* Copyright 2017 EntIT Software LLC, a Micro Focus company, L.P.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... | 4df260ff4a788443beb1e4ebf0da936ca92b1bf9 | [
"Java"
] | 1 | Java | ylevi33/octane-bamboo-plugin | 4f1d9aaecb4178b2d59787b0c280a81743e7299d | 06d1ed4a40355713c849e32bdb74c06771c72f70 |
refs/heads/master | <repo_name>chris-schmitz/vue-cli<file_sep>/lib/vue2-version-warn.js
var chalk = require('chalk')
module.exports = function (template, name) {
var vue1InitCommand = 'vue init ' + template + '#1.0' + ' ' + name
console.log(chalk.red(' This will install Vue 2.x version of template.'))
console.log()
console.log(... | 7dfec5253925efe3eeb2c8f11577f821563ac64a | [
"JavaScript"
] | 1 | JavaScript | chris-schmitz/vue-cli | 179136a1e65d8824736641035e8c9bf2b625e9e1 | 404faf45bb12c9542e7c09c400aa142878b741e8 |
refs/heads/master | <file_sep>require 'rubygems'
require 'net-ldap'
class SessionsController < ApplicationController
def initialize(req = nil)
if req != nil
@_request = req
end
end
def show
end
def check_auth
if !is_logged_in
redirect_to "/"
end
end
def is_logged_in
if session.has_key?("c... | ea9ac704861dc7d71a0d307bc824c65781f534cf | [
"Ruby"
] | 3 | Ruby | robtcallahan/myblog | 8086e8dd71185d23679f247ef839d07aae528453 | 019fc75c0c46ff366854b9c8374669b5ddd90d0d |
refs/heads/master | <repo_name>Fred-Victor-YANG/WeShop<file_sep>/conn.php
<?php
$servername = "127.0.0.1:8080";
$username = "root";
$password = "<PASSWORD>";
$dbname = "myDB";
$conn=mysqli_connect($servername, $username, $password, $dbname);
if (mysqli_connect_errno())
{
echo "连接失败: " . mysqli_connect_e... | 5fd83ae6b90332b3bb784ec7064058773ad5624c | [
"PHP"
] | 4 | PHP | Fred-Victor-YANG/WeShop | 278664761a4bea6649e89d97e6556d61e3153ddf | 4228a0eef939b24fefefee21ad48e76957a1155c |
refs/heads/master | <file_sep>import {Animal} from './Animal'
export class Dog extends Animal {
constructor(name: string) {
super(name);
}
bark() {
console.log("Woof! Woof!");
}
}
<file_sep>import {Dog} from './Dog'
const dog = new Dog("Bob");
dog.bark();
dog.move(10);
dog.bark();
console.log(dog.name) | 36b91a7ed14b482f3a69334ebe8e14f29eebb893 | [
"TypeScript"
] | 2 | TypeScript | AnastasiiaPosulikhina/ASPNETCoreAppWithAngular | 66f838099aceda1f8046cfd45ae903557d9a9c5b | 4529b77de8f022ead238f0599b9603a243d21309 |
refs/heads/master | <file_sep>#### element框架message组件源码
如果项目中引入了element,可以从node_modules里找到element-ui来查看源码,如果没有引入可以从github上搜索element源码库,来查看源码。
下面我们来一步步的查看源码,首先来看message是如何挂载到Vue上,并找到组件的引入位置。
```
/* src/index.js */
import Message from '../packages/message/index.js';
//在index中引入message组件,并将其挂载到Vue对象的原型链上
Vue.prototype.$message = Message;
`... | 79ccc6714eb13c74da94075f03d2a9871c80b821 | [
"Markdown",
"JavaScript"
] | 11 | Markdown | menglol/VueTest | 1fa8edf1f719c0f43cd41f2acdc6322b2457ada8 | 9d110d9a25307f398d27550a76b88f9cee9bf2a2 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Thu Jul 4 17:17:20 2019
@author: Ge
"""
import os
import csv
import math
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.cluster import DBSCAN
from scipy.spatial.distance import squareform, pdist
from math import sin, cos, asin, sqrt, radi... | ad61d4ad809074dd7ac13cfa1bbab18cbccf1c15 | [
"Python"
] | 3 | Python | linge630/dissertation | ee5584c3f310ef51fe05c036cfea5051caf6dc78 | 04e16650da0a0795e32fdfa1207ab163f2dcab61 |
refs/heads/master | <file_sep># OSU-CS290
Repo for Oregonstate eecs CS290 projects
<file_sep>
class RealProgram{
public static void main(String[] args){
System.out.println("I am a real program that really does something!");
System.out.println("Watch me math.");
int a = 1;
int b = 2;
System.out.println("... | 7c84727f598c5dffa379bcd02dc8c822bee7f432 | [
"Markdown",
"Java"
] | 2 | Markdown | Dylan-Mead/OSU-CS290 | 8badbc18a150a5f87aa00163043d0ed68c162347 | 47c647ba8911dcc738f05bcc359386842cd9db15 |
refs/heads/master | <repo_name>Tembocs/learn_pymongo<file_sep>/main.py
# main.py
"""Learning PyMongo."""
from pymongo import MongoClient
import pandas as pd
# This is for easy of testing
def create_collection():
"""Create collection and return it."""
client = MongoClient()
db = client.tutors_db
coll = db.tutors
retur... | 88553b3362eaa13b7a4f424a924426b6b58c8802 | [
"Python"
] | 1 | Python | Tembocs/learn_pymongo | cb2139f99d28e7d5f412dc3b28d72048d6e6a8a5 | 2581c1f3826277c1a08dca15485a556adcb94786 |
refs/heads/main | <file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Student Management System</title>
<link rel = "icon" href = "icon.ico" type = "image/x-icon">
<link rel="stylesheet" href="styles.css">
<link r... | 8cc3f45a41f3435d96078e256271c5c4a747a032 | [
"PHP"
] | 10 | PHP | vaishnavi362/SMS | ebc7ceb196bb26b0927ed56fd3a67002f20ba834 | 29172462ecdd16fba5ba08f383801cd3324f0d19 |
refs/heads/master | <repo_name>williamJmelton/sku-easy<file_sep>/src/environments/environment.dev.ts
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `index.ts`, but if you do
// `ng build --env=prod` then `index.prod.ts` will be used instead... | 2b32e71d833df4257fda1ea5eeff757b7bc3c90e | [
"TypeScript"
] | 7 | TypeScript | williamJmelton/sku-easy | 96d41660d29ad8adc88599cdc0ba683d8d80381f | 6c54a5fb9f7919481c9e84d48113f770d6f2f3ab |
refs/heads/master | <repo_name>nicolas-bancel/master-react<file_sep>/src/Button.js
import React from 'react';
class Button extends React.Component {
render() {
return (
<button className="btn btn-primary">{this.props.text ? (this.props.text) : ('Veuillez mettre un texte pour ce bouton')}</button>
)
}
}... | 5207649dfaf9d7b97d9d32b3d515b10598874037 | [
"JavaScript"
] | 1 | JavaScript | nicolas-bancel/master-react | a7ba11c918055d1e51801eeb93f83e8335f66cca | b38434de016546d624892c34fcb97f5a3f285502 |
refs/heads/master | <file_sep># set working directory
setwd("~/Coursera/4ExploratoryDataAnalysis/Project1")
# make sure the plots folder exists
if (!file.exists("PNGfiles")) {
dir.create("PNGfiles")
}
# load data
dt <- read.table("dataTrans/power_consumption.txt", sep = "|", header = TRUE, ,na.strings='?')
# open device
png(fi... | 6b66d970e1081d14cdbc4a02d4ca0b56783f22da | [
"R"
] | 5 | R | GloriaSalmoral/ExploratoryDataAnalysis | d23c34d9323a794df8173dda704e784722d4c61e | c3c2c64fa492ea9a7eaa5e86a463c8e41a19aa22 |
refs/heads/master | <repo_name>awrush/feedjira<file_sep>/lib/feedjira/date_time_utilities.rb
# rubocop:disable Style/Documentation
module Feedjira
module DateTimeUtilities
# This is our date parsing heuristic.
# Date Parsers are attempted in order.
DATE_PARSERS = [
DateTimePatternParser,
DateTimeLanguageParser,
... | 66ae96e4c0f6d6930ebb4df085d6b8c30d7d723a | [
"Ruby"
] | 2 | Ruby | awrush/feedjira | c8c521dd6258370c58b015a64a4c25a6a20532ec | 506ce2fb63c3ae35ea69a583aaef6024ab8aa4cc |
refs/heads/master | <file_sep># MeanCourse App
- This project was created by me to investigate Angular framework and how it can work with node as i have always been a MERN Developer not a Mean Developer
# Structure and how to deploy the app
- This application is divided into 2 apps
- A backend app written in Javascript using **NodeJ... | f81d211f2de0bba5979e8ddb6090eedb7b89696f | [
"Markdown",
"TypeScript"
] | 2 | Markdown | mohamedsamir1495/mean-course | 4b8647f427e276870df35d4e003f5463263909cc | af2dfd94eeb51e81645b2e03d0c36b1a9c4a89b1 |
refs/heads/master | <file_sep>self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "542aa3b9da3710315da080ea08bf9867",
"url": "/index.html"
},
{
"revision": "<PASSWORD>",
"url": "/static/css/2.bcddf60d.chunk.css"
},
{
"revision": "5542c29b267a4d6af721",
"url": "/static/css/main... | 47b3df1b84daf35603b5a53f1c2177237d2bff35 | [
"JavaScript"
] | 1 | JavaScript | Syed-Talha-Hussain/covid-19-tracking-app-react | 4725bbbec1d61dbb6bab0ff5fbc416788dfe9924 | ce24a5f3c8c279619c142ccfda46501530837613 |
refs/heads/master | <repo_name>mrmanhluc/webthiepcuoi<file_sep>/info.php
<?
$sql=mysql_query("select * from khachhang where makh = ".$_SESSION['makh']."");
$row = mysql_fetch_array($sql);
?>
<div id="registry" style="width:400px;">
<p class="login" style="padding:5px;"><p >Email:</p> <span class="info"><? echo $row['Email']?></span></... | a537736b5da6324fcee93ff0540a0baa17668207 | [
"JavaScript",
"PHP"
] | 37 | PHP | mrmanhluc/webthiepcuoi | e961e2185ce68a85991b343757c3a35809d84804 | e69c6b40c326afa62db81393e441560734565e6d |
refs/heads/master | <repo_name>Meeravalishaik5/HandsOnHtml<file_sep>/HtmlBasics/HtmlPage3.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<table border="1" style="border-collapse:collapse" >
<thead style="background-color:lightgreen">
<tr style="border-left-width:... | 75a5297ef4348c43fe07ebc4cce141a4dca95839 | [
"JavaScript",
"HTML"
] | 2 | HTML | Meeravalishaik5/HandsOnHtml | 6b589f9cb63e84c45b52df2d6a6b1a7fbc420a81 | 0d733a2ea24a56c4aba9259ce8dede11f614e341 |
refs/heads/master | <repo_name>Miltonrubio/LoginMartino<file_sep>/IniciarSesion.php
<?php
require 'conexion.php';
?>
<HTML>
<HEAD>
<META Charset="utf-8">
<TITLE>Login</TITLE>
</HEAD>
<link rel="stylesheet" href="css/estilo.css">
<header>
<section class="contacto">
<div class="container quit... | df36d63ff8388e9be23c51428bcdae7ad7dfefe2 | [
"PHP"
] | 3 | PHP | Miltonrubio/LoginMartino | 7a1d7ef8f6c535471c587271952291ad486e1d9b | 65eff3588bd7c3f5420cd1254559d355b24c53cc |
refs/heads/master | <repo_name>socrates77-sh/myPIC<file_sep>/try/asm.c
#include <pic16f87.h>
#define Nop() __asm__("nop")
#define ClrWdt() __asm__("clrwdt")
#define Stop() __asm__("stop")
char c_a;
const char c_b = 100;
void main(void)
{
c_a = T2CON;
//c_b = KBIM;
PORTA = c_a + c_b;
PORTB = c_a - c_b;
__asm
movai 100
... | a884d72a935d3a952eb4d8fc75082d3da8d952c0 | [
"C"
] | 2 | C | socrates77-sh/myPIC | 13297dec412d1d180a3716234466cc87c4e2c19c | d408c5518b99bdfb7d916557aec261cb4f28a012 |
refs/heads/master | <file_sep>pi-tools
========
A selection of scripts and repos for my pi.<file_sep># GPIO Code
A set of python scripts I've been using to play around with the Raspberry Pi GPIO Connections. Pretty much all of these require the `RPi.GPIO` python library
<file_sep>#!/usr/bin/python
import time
from RPi import GPIO
# D... | fd5c0c91e28deb7d550ed130ab9f82348a12e6f7 | [
"Markdown",
"Python"
] | 3 | Markdown | tarnfeld/pi-tools | 646569df564cbeeced6d74f7cb1b0b5cbd098041 | 471442101a3024d2409892c028c641019ff5bd26 |
refs/heads/master | <file_sep># Haxoring
<p>This is real authentic haxoring. Basically breaks into all the devices on your network and copies their data to your computer.</p>
<blockquote>Use this to go ahead learn more about hacking. Scripting details will be explained simply after the fact. Make sure not to use this illegally!</blockquot... | 109682c726b9c60f7e25d59c9f97244ffb9a4fe2 | [
"Markdown",
"Python"
] | 2 | Markdown | moogloof/Haxoring | 8b05a1805a52f10126f9df95aa136558978c8bf6 | 728cc3fde31a3d68ffc4058bf3f72f6a497e0bf1 |
refs/heads/master | <file_sep><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<mod... | b070cd4ebccf0472aa254869868c5e70f981e394 | [
"Java",
"Maven POM",
"INI"
] | 4 | Maven POM | nickwilde0/query | 974dfe0cc02634a9aed62b793d6ae80acaaa79a0 | 03e22fe48f5c1f26946a309b45b28f64c368bd12 |
refs/heads/master | <repo_name>msquarme/Parallel-Corpus<file_sep>/Scraping.py
from bs4 import BeautifulSoup
import requests, re, os, sys
from urllib.request import urlopen
from glob import glob
import pandas as pd
EN_URL = "https://www.jw.org/en/library/bible/nwt/books/"
AM_URL = "https://www.jw.org/am/ላይብረሪ/መጽሐፍ-ቅዱስ/nwt/መጻሕፍት/"
TI_URL... | 9b80cdadf92d1a4249a92bf0ea83d2a6c73c267f | [
"Markdown",
"Python"
] | 2 | Python | msquarme/Parallel-Corpus | 9320b9733b500ba185195879bb5edd3aea57927e | 2d114ec35162f8530e6ff158a98c7a9822af80dd |
refs/heads/master | <repo_name>neilcb/MyColorMarker<file_sep>/MyColorMarker/ViewController.swift
//
// ViewController.swift
// MyColorMarker
//
// Created by <NAME> on 3/12/17.
// Copyright © 2017 mufg. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.view... | 0d894953445b007c3fe928eb26448621c483b520 | [
"Swift"
] | 1 | Swift | neilcb/MyColorMarker | 8a706a5bb3d59269a3d4a1efa985caba97bc11e5 | e1ce92a8406d32b8b4250b8195a6b5bd6411b42b |
refs/heads/master | <file_sep>dia = int(input())
mes = int(input())
if ((mes == 1 and dia <21) or (mes == 12 and dia > 20)):
print("capricornio")
elif ((mes == 1 and dia >20) or (mes == 2 and dia < 21)):
print("acuario")
elif ((mes == 2 and dia >20) or (mes == 3 and dia < 21)):
print("piscis")
elif ((mes == 3 and dia > 20) or... | 9cdb92e0e7fc0b4a06e72e7c2cbaffc9b15ff0d7 | [
"Python"
] | 1 | Python | CUCEI20B/actividad07-zodiaco-Denilson-Vallejo | 2f9e893a19063f58a85008742e46fe5d8357051f | 9f5bde5feefd192773a562cafee5d1ca1c727f64 |
refs/heads/main | <file_sep>import './App.css';
import Sketch from 'react-p5';
function App() {
let x, y;
const setup = (p5, canvasParentRef) => {
// use parent to render the canvas in this ref
// (without that p5 will render the canvas outside of your component)
p5.createCanvas(p5.windowWidth, p5.windowHeight).parent(c... | c82926a53083ba24a8b8624de61862787b719e78 | [
"JavaScript"
] | 1 | JavaScript | davidalexandercurrie/sandro-album-release | 95c3bd5481f334eba59d1e93164ee0900bb8dafe | f7e27fbb08a6cc7ab2131c65dc4365043cef6102 |
refs/heads/master | <repo_name>MarkFrankle/Discord-Python-Example<file_sep>/PrawTutorial.py
import praw
reddit = praw.Reddit(client_id = 'pfT97fO7k9D8PA',
client_secret = '<KEY>',
username = 'KingofSpaniards',
password = '<PASSWORD>',
user_agent = 'prawtutori... | d918aa199acceeed8764b92e84b5bbfd0d8480de | [
"Markdown",
"Python"
] | 2 | Python | MarkFrankle/Discord-Python-Example | c526f92cec73f91923d2af759f3a5b7517ca9e0a | 03d0323733739d9113dcb514475744e5cfbd912a |
refs/heads/master | <repo_name>alanipn94/huesos<file_sep>/Axial/Cabeza/Back.cs
private void huesoFrontalButton_Click(object sender, RoutedEventArgs e)
{
hueso = (int)Hueso.HuesoFrontal;
var converter = new System.Windows.Media.BrushConverter();
var brush = (Brush)converter.ConvertF... | c4b5c0a48f47294bb72ce047fc7041f24184fe39 | [
"C#"
] | 2 | C# | alanipn94/huesos | d7e89752dcc40a7a2b529ecfca84e3c1dfe6e036 | e9f6974d73e03551d6d2197eb81cdfbe3709fb4e |
refs/heads/master | <repo_name>Yukinyaa/MSNOTI<file_sep>/README.md
MSNOTI
[github page](http://yukinyaa.github.io/MSNOTI)
<file_sep>/script.js
function toBoolean(str) {
if(str === null)
return null;
if(typeof str === 'boolean')
return str;
if (typeof str === 'undefined') {
return false;
} else if... | 025b4da61d32dc356c9da3e9eb0ddfc4060203b4 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Yukinyaa/MSNOTI | 192c9b9b74a94bce244b22d66a444d340a964edf | 765ca5769a08d5d1e4b3d1e68d9006c4d7d730d8 |
refs/heads/master | <file_sep># Make dictionary containing my:
## Name
## Age
## Country of birth
## Favorite language
about_me = {
'name': 'chris',
'age': '22',
'country of origin': 'USA',
'favorite language': 'Python'
}
# print about_me['name']
def reading_dictionaries():
for key, value in about_me.iteritems():
print "My " + key... | cdb845368db08e3361de9e893c8702a0b9f65cd6 | [
"Markdown",
"Python"
] | 17 | Python | cmarr31/Chris_Marr | feaea1afbaf1e7a38d44c790f17f0c9b3ed7762b | a0ce9b6e31212882463510c928fe6ad517ea6093 |
refs/heads/master | <file_sep>package Pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.apache.logging.log4j.*;
public class VehicleVerificationPage extends AbstractWebPage {
private static final Lo... | a66171c48fe91b60e54e4b2f79f224e878a5f20a | [
"Markdown",
"Java",
"INI"
] | 7 | Java | devadathpt/VehicleRegCheck_PageObjectModel | 009904ade820682725e94d50b9dde2a383e3bb92 | d0e425605c13bd2b4896bd53816335f6e658c6ff |
refs/heads/master | <file_sep>from django.shortcuts import render,redirect
from django.contrib.auth.models import User
# Create your views here.
def register(request):
if request.method=='POST':
first_name = request.POST['first_name']
last_name = request.POST['last_name']
username = request.POST['username']
... | 6bed0c9fe23dd4f34f3f387f161a008437c7364f | [
"Python"
] | 1 | Python | okmar2050/repo2 | 3e0ef7ca43a798e16a9fc1d00d00bb78d713f510 | 47e78e5ae9f804b30989267a481c61ff0d75722a |
refs/heads/main | <file_sep>
func countSort(_ array: [Int]) -> [Int] {
guard array.count > 0 else {
return array
}
let maxElement = array.max() ?? 0
var countArray = [Int](repeating: 0, count: Int(maxElement + 1))
for element in array {
countArray[element] += 1
}
for index in 1 ..< countArray.count {
let sum... | 9701634e5f2e9fa4d9699787da0f8e34c0af7e30 | [
"Swift",
"C++"
] | 8 | Swift | mastermanav09/Hacktoberfest21_Algo_Collection | 1f69e28d9082c0d5607c6145aeb6feb44264289f | b2000592b0bad371494f9d8202eebb5ff487bac3 |
refs/heads/master | <repo_name>HaynesStephens/year1project<file_sep>/venv/lib/python3.6/site-packages/mplkit/cmap.py
import matplotlib
from matplotlib.colors import Colormap, LinearSegmentedColormap, ListedColormap
import numpy as np
class WrappedColormap(Colormap):
"""
`WrappedColormap` wraps around an instance of `matplotlib.colors.... | b84ccd1ea70714c0f4ad67b687bed377f80e2566 | [
"Python"
] | 22 | Python | HaynesStephens/year1project | 2e6e820ab413b51975a932c7add88077c0ad7199 | da8762371ae669fcea15ee2d9cc99746a2715027 |
refs/heads/master | <file_sep>#!/usr/bin/env ruby
module MailConfig
DB_HOST = "localhost"
DB_USER = "root"
DB_PASS = ""
DB_DB = "mailserver"
end
<file_sep>create table domain_admins (
domain_id integer references virtual_domains(id),
user_id integer references virtual_users(id),
primary key(domain_id, user_id)
);
alter table vir... | 9fc37e49085006fdf3d4d2e4d58f548268d85805 | [
"JavaScript",
"SQL",
"Ruby"
] | 4 | Ruby | duckdalbe/mailadmin | d360d82d0cb75a371e628850ef8e7ac3bfc2a056 | d53293d9560dad66404af2f75b9d84fb2362895e |
refs/heads/master | <file_sep>#!/usr/bin/env bash
bundle exec jekyll serve --config _config.yml,_config_lip6.yml
<file_sep>#!/usr/bin/env bash
bundle exec jekyll serve --config _config.yml,_config_github.yml
<file_sep># arthurcharpentier.github.io
[Web site](http://arthurcharpentier.github.io)
<file_sep><!DOCTYPE html>
<html>
<head>
... | 6c62abcf29373957b9da221ed16d9813ca2aa6c5 | [
"Markdown",
"HTML",
"Shell"
] | 4 | Shell | freakonometrics/arthurcharpentier | f01c55cc177668f5a763dd223f3dba3cf8c203de | a1e6b68d2863a1ea22f9c0f2535e9d29ed9329a1 |
refs/heads/main | <file_sep># ShenwuAutopilot
A little tool to help my character in Shenwu grow by himself without me tapping on the phone
Goals:
1. Automatically login to game when guild banquet event starts and claim rewards.
notes: a. Adjust for daylight saving time caused 1hr difference local time(EST) against server time(UTC+8)... | 65ee0d70c8cfd4b208fd476a01a3828092e55a7d | [
"Markdown",
"Python"
] | 2 | Markdown | Kita11911/ShenwuAutopilot | f60c5921ded109204f4856d2db104d11afe344a8 | eb56be6c951207c7af32e2dd3fe0b9228fa4b3d7 |
refs/heads/master | <file_sep>/* OpenSceneGraph example, osgprerendercubemap.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | f6935d1bc09a1f32aa9c749626f3b5a25bec43df | [
"C++"
] | 7 | C++ | willwang26/vvindow | 7cdaf0c34ee8422267958d2506b0ce327bf6c9b9 | b7da53dd72509541242a74a6b7e5872ed5d08709 |
refs/heads/master | <repo_name>EzequielMonforte/ControlEstacionamiento<file_sep>/ControlEstacionamiento/Capacidad.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ControlEstacionamiento
{
class Capacidad
{
public static int cantidadMax = 50;
public sta... | de384fc4a56fe955328c176900a3929835f436f0 | [
"C#",
"C++"
] | 3 | C# | EzequielMonforte/ControlEstacionamiento | bef4927215fd3df91378d85d835c108d14da576c | b2038b934d5abd125f21526aa75acb7a8177de90 |
refs/heads/master | <repo_name>sanjevk/Atom<file_sep>/hello.py
print("Sanjev")
print("Habeeb New")
| 87bbb434dc694db29f973cfd45ade371acdad70d | [
"Python"
] | 1 | Python | sanjevk/Atom | 6faef8a7a8b3fef494c0d1b0279963dab6a510e3 | 26e13ea360de61d53cca4e872316ee1a52d7606a |
refs/heads/master | <file_sep>---
title: "Getting Started"
weight: 1
anchors:
- title: "Requirements"
url: "#requirements"
- title: "Installation"
url: "#installation"
- title: "Configuration"
url: "#configuration"
- title: "Setup"
url: "#setup"
- title: "Create a template"
url: "#create-a-template"
- title... | 9937359deabcc1c56e534c11fa91d0cf54f5cb50 | [
"Markdown",
"Ruby"
] | 6 | Markdown | sparkleformation/sparkle-guides | c798285e0d42a0ec1256a2d757bd5ed2f496e908 | 864b688e5c4702b894bbf6fcd5e8605e110e80f2 |
refs/heads/master | <file_sep><?php
//include '../../controlador/conexion.php';
include_once '../../libreria/conexion.php';
function getContraparteById($id_contraparte){
$sql = "select * from contraparte where id_contraparte='".$id_contraparte."'";
//echo $sql;
$lista = consulta($sql);
return $lista;
}
function getContrap... | f5f8f4a759b3ba20484d11f6fa59b664f6b0218f | [
"JavaScript",
"SQL",
"Markdown",
"PHP"
] | 143 | PHP | wilfridoSantos/defensoriaPublica | bfe8f0ef5f8b34e3cbe58973e91dd203ae295ecd | d1df3f7f7de032e937dc44f54222a37c028657e0 |
refs/heads/master | <repo_name>georgercarder/Sudoku_in_React<file_sep>/src/prev/game.js
import React from 'react';
import './index.css';
import Board from './board';
class Game extends React.Component {
constructor(props){
super(props);
this.state={
prepuzzle: this.props.puzzles[Math.floor(Math.random()*30)].puzzle,
... | 479a7c38025a7f08abbbd64175d6f596163663b5 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | georgercarder/Sudoku_in_React | 9ef4e6fcb6eaf21846ee4a0411a683e353a4f829 | 453bfcb055c9e07c6848786744506f9321b89f17 |
refs/heads/main | <repo_name>DavidCasc/4001_Final<file_sep>/makefile
all: DB_Server DB_Editor ATM interestCalculator
DB_Server: DB_Server.c shared.h
gcc DB_Server.c -o DB_Server -lm
DB_Editor: DB_Editor.c
gcc DB_Editor.c -o DB_Editor -lm
ATM: ATM.c
gcc ATM.c -o ATM -lm
interestCalculator: interestCalculator.c
gcc interestCalculator... | 04542b79cffbe1e1cc22bdf6c92fccac92ccb470 | [
"Text",
"C",
"Makefile"
] | 7 | Makefile | DavidCasc/4001_Final | ed242c3abeab8083441a8ca50fb233c094ff3656 | ae9594fc632a88497db33e5236b08d1457a09b33 |
refs/heads/main | <repo_name>apeso00/MazeGame<file_sep>/Assets/Scripts/CountdownController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CountdownController : MonoBehaviour
{
public int countdownTime;
GameObject gm;
Text countdownText;
// Start is cal... | 5e1b633763283bc0126c0889bba207821ee414dc | [
"C#"
] | 2 | C# | apeso00/MazeGame | 1ba81421304a75aa9f86c859da15b527ffd182cf | 5a4095ae60b6215dd6b80eb72d00cfe80415a5b2 |
refs/heads/master | <file_sep>public class sum
{
public static void main(String[] args)
{
int a,b, c;
a=10;
b=20;
c=20;
c=a+b+c;
System.out.println("Sum of 3 numbers: "+c);
}
}
<file_sep>class {
[B[A[B[A[A[A[A[A[B[A[B[A[B[A[B[A[B[B[B[C[C[C[C[C sum {[D[D[D[C1[C
[A[Bpublic static void main(Strin... | 676b16825a51f88a131b7df5652314f0ab31c118 | [
"Java"
] | 2 | Java | SRIRAMBS1/Devprogram1 | 6561b9212d70889297ebac4c36a26e64f103a28e | de145ec37378bc7a197a43d78f497933b861a213 |
refs/heads/master | <file_sep>import React from 'react';
export const MovieDetails = (props) => {
if(!props) return null;
return(
<p>{props.show_title}</p>
)
}<file_sep>import React from 'react';
class MovieSelect extends React.Component {
constructor( props ) {
super( props )
this.state = {
selectedIndex: und... | a28706d898751220ab96f5a92f474f92faa117d3 | [
"JavaScript"
] | 4 | JavaScript | danie16arrido/tarantinopolis | 27c5f98ece79f9d2390b2a1a3800900be4296813 | d3e4ebf9946d2ebd0f5d73d81fe4b33de968f394 |
refs/heads/master | <file_sep>/*
Rikaisan-universal
Copyright (C) 2018 eyeS Code
http://code.google.com/p/rikaisan-universal
---
Originally based on Rikaikun
by Erek Speed
Copyright (C) 2010 Erek Speed
http://code.google.com/p/rikaikun/
---
Originally based on Rikaichan 1.07
by <NAME>
http://www.polarclo... | 149c946f3472eaa21cc43bcd803faa577db31f50 | [
"JavaScript"
] | 2 | JavaScript | eyescoder/rikaisan-universal | 94fe05a378a2484cbe5cb65c84cd1ba489a5a875 | c4bf0a4af31fa72042254d772fcf1c9e2c73142c |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apiapp', '0003_auto_20160111_2342'),
]
operations = [
migrations.AddField(
model_name='list',
... | 7dcd8de622405f81c97fdcab6b4c64e6194f137b | [
"JavaScript",
"Python",
"Text"
] | 23 | Python | dopeboy/leaderboard | 6430881177615925640eb25233083cee632226dd | 5182aa65543ea5fee4a2af5a19ca0560593ae77b |
refs/heads/master | <file_sep>package com.example.demo.config;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.slf4j.Logger... | 5e4d702e793ea97740bb5c04f673bd155b256f30 | [
"Java"
] | 1 | Java | zhangqianvvip/SpringSecurity-3 | f091763e5f0b7cf8a3d91958e59ab2a4b6269dcc | eb88475d202be9090a8f0398c44ae98eb86ec3b3 |
refs/heads/master | <repo_name>rossense/RossenseConstruction<file_sep>/subscription.class.php
<?php
/*
Rossense Construction - Subscription
Version : 1.0
Author : rossense
Email : <EMAIL>
Site : http://www.rossense.com/
GitHub : http://www.github.com/rossense/RossenseConstruction
License : MIT License
*/
/*
* DAT... | 7cd511fcb70bfe28123804acf95bad2d1e2211b3 | [
"PHP"
] | 1 | PHP | rossense/RossenseConstruction | 19b452459e9d81fdf961b7c47dcb09263c232a42 | 4161524a35cb35137b2055a5edbb2228f8ec2ed7 |
refs/heads/master | <repo_name>talonx/aws-rss-alerts<file_sep>/README.md
# aws-rss-alerts
Polls the RSS feeds from the AWS status page. The output can be piped to various alerting systems, which will be developed as plugins.
<file_sep>/awsfeedparser.py
import feedparser as fp
import argparse
import time
class AWSStatus(object):
... | 3bb104f9d941fe9d5f0c0a97ce2cceba3da8bec7 | [
"Markdown",
"Python"
] | 2 | Markdown | talonx/aws-rss-alerts | cad4f25317dbb6541fa2519485cd17a787d6d21c | 545b47c28aa843cb6400a0d75cbd07ee4bd558e4 |
refs/heads/master | <repo_name>liuchang001-abc/ssm<file_sep>/heima_ssm/heima_ssm_service/src/main/java/com/panku/ssm/service/IProductService.java
package com.panku.ssm.service;
import com.panku.ssm.domain.Product;
import java.util.List;
public interface IProductService {
/**
* 查询所有的产品
*
* @return
*/
public ... | 11049729af18449e3062185755123fe9cb5c895a | [
"Java"
] | 1 | Java | liuchang001-abc/ssm | b1075be1abf64995a3b54a1c0f1d78e68a8c73b5 | 7ea1b09af1c6e60be4c5e46908a0bced716146fd |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.