branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>Bdch90/Diary<file_sep>/java/src/main/java/com/java/service/jwt/JwtProvider.java
package com.java.service.jwt;
public class JwtProvider {
}
| 3828310f83bb72f876fa800b41cf2cb4e80a4ec7 | [
"Java"
] | 1 | Java | Bdch90/Diary | 9ffe5d121ee3914093224e5cc3f0952a8ef8cb70 | c488e01d8f6df1b9653533675bc7d2d5de0f16cf |
refs/heads/master | <file_sep>import { createStore, applyMiddleware, compose } from 'redux'
import reducer from '../reducers'
import products from '../data/products.json'
import thunk from 'redux-thunk'
const middleware = [thunk ]
const initialState = {
products: products,
clicked: products.clicked
}
export const store = cre... | 8c817203f89ffd7d0f68ec8613731bd1f7205d17 | [
"JavaScript"
] | 4 | JavaScript | mosbyts/auto-shop-redux | c0ba4920b1d2c003813802bcf3daf62250739809 | 5f7dab1c2cfbe818faa5e118083ea52736c6eaf4 |
refs/heads/master | <file_sep>import wepy from "wepy";
import { IServices } from "../../app";
import { getServices } from "../../core/services/GetServices";
export default class Home extends wepy.page {
public services: IServices;
public data = {
companys: [],
};
public onLoad() {
this.services = getServices(this);
}
... | f06922bbc543a9b32de4f52e0ab9961964c4a8e6 | [
"TypeScript"
] | 5 | TypeScript | niuba/wepy-ts-template | 06c09c7157e870a2b00891023fa8f4d8d0c11345 | 45c47342d93677a6bc4bfd6e3da730b45ef71c59 |
refs/heads/master | <file_sep>using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Basic menu to clear cache
/// </summary>
public class ClearCacheMenuItem
{
[MenuItem("Core Framework / Clear Asset Bundle Cache")]
private static void ClearAssetBundleCache()
{
//Get all cache pat... | 6b56ab2f336ff8c76a25b34c1146427a96bca118 | [
"C#"
] | 18 | C# | hellomercury/unity_core_example | 669f8463d739fbda9577e5a05f28408ff4f38761 | 31218d6dc86c4c622098dbe2cf6e8c85bbca1972 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import {Router,ActivatedRoute,Params} from '@angular/router';
@Component({
selector: 'app-single-post',
templateUrl: './single-post.component.html',
styleUrls: ['./single-post.component.css']
})
export class SinglePostComponent implements OnInit {
pu... | b83b0bd7691b961973683bdbe10edcefe0d7ebdd | [
"TypeScript"
] | 6 | TypeScript | RichGlitch/GlitchSite | 7622d8064c45d21d4f1547fc7989646d81b0246c | 382d1be05761b2071ea65a2c8464487fcfcfe5fe |
refs/heads/master | <repo_name>GhulamMustufa/inferstat-project<file_sep>/src/components/About.js
import React, { Component } from "react";
class About extends Component {
render() {
return (
<div id="aboutUs" className="section-padding">
<div className="container">
<div className="page-title text-center">
... | 71abf0495d9c649b62b2ecf8f79783f6c522d7ec | [
"JavaScript"
] | 7 | JavaScript | GhulamMustufa/inferstat-project | a6d62a2f4c831e1d5d95aa6dc7d6c37cb4df9a27 | a7fbbd161cc051d519e2c28b3f0d35f093753304 |
refs/heads/master | <file_sep>package com.eyeieye.melody.demo.util;
import com.eyeieye.melody.util.StringUtil;
import org.apache.commons.codec.digest.DigestUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class MD5Encode {
private static final Logger logger = LoggerFactory.getLogger(MD5Encode.class);
/**
... | c8dd7740a5c2291bd423ba7cf20caf464211c7e0 | [
"Markdown",
"Java",
"INI"
] | 22 | Java | eyeieye-demo/melody-demo | 8c583de0299c556935d9f37abf42b2b12324420d | a89bb6178c684e2d5cffccd688aafb52b1405574 |
refs/heads/master | <repo_name>klonkiponk/Test1<file_sep>/template/header.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<t... | 1a2e4de943fbc51b0c6110c136a3a5e57ae982c9 | [
"PHP"
] | 5 | PHP | klonkiponk/Test1 | 337c9f37997076ef9f17c78d8483047515c6e8db | ac3560f926e8de1804a448abe1eab4859822ea3e |
refs/heads/main | <repo_name>nconder/ATAK-Certs<file_sep>/atakofthecerts.py
#!/usr/bin/python
import subprocess
try:
from OpenSSL import crypto
except ImportError:
subprocess.run(["pip3", "install", "pyopenssl"], capture_output=True)
from OpenSSL import crypto
import os
import getopt
import sys
import random
from shutil import c... | ae7bff325fc93d0df0ef90950826701cfa09c2de | [
"Markdown",
"Python"
] | 3 | Python | nconder/ATAK-Certs | f6eb017db996e11f203537d11fff9ac42fcdafd2 | 86b146563b86e76876c6a6df1ae64abf382fb416 |
refs/heads/master | <file_sep>var btn = document.getElementById("get-records");
btn.addEventListener('click', buttonHandler());
function buttonHandler () {
console.log("You have clicked");
toggleButton(false);
getRecords();
}
function toggleButton (loaded) {
// fix this method to change the button text
this.innerHTML = loaded... | b8386757cb144bad314877a74248fd2470eca51b | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Willibaur/debbuging-test-Javascript | ee11d6f7b6a83221225c685c689bf78b735a1234 | 8f2a8e4e2d5e5a7e35e0e026303dd8273a10fba9 |
refs/heads/master | <repo_name>blimika/bukutamu<file_sep>/app/Http/Controllers/MemberController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Midentitas;
use Illuminate\Support\Facades\Session;
use Carbon\Carbon;
use App\Mjk;
use App\Mkatpekerjaan;
use App\Mlayanan;
use App\Mpendidikan;
use App\MKunjunga... | 09a1051905180f984fdf775590f7013b6912780c | [
"PHP"
] | 22 | PHP | blimika/bukutamu | d05d9c57975c4bd5ea28d18cc53ccafe55bf7802 | 8cb99fae5bfd3b205fea3d3a128116b304b55509 |
refs/heads/master | <repo_name>lhamon31/MFbutterflies<file_sep>/comparison_to_orange.R
#script for comparing our mf sightings vs. those seen at the county level
#asking a few questions
#do we see things in different proportions vs. orange county as a whole?
#which plants could be used to encourage diff. species?
#load up data
#hlg
... | 2c35de752019f43c8f4409659a1a23ad2665ffd6 | [
"R"
] | 4 | R | lhamon31/MFbutterflies | 3c816a3cf200fab22ba2e4edcb5b870e75c8f4df | d310ef62bc1f30b167931432ad3cefb9c0530c65 |
refs/heads/master | <repo_name>bsingr/docker-haproxy-reverseproxy<file_sep>/README.md
# Docker HAProxy Reverse Proxy
## Run
$ docker run -e TARGET=www.example.com:80 -p 8080:80 bsingr/docker-haproxy-reverseproxy
$ curl -s localhost:8080 | grep h1
<h1>Example Domain</h1>
## Build and Publish
$ make
## License
[M... | d991c1ed80f7017c62978988197f4ca31321ffb1 | [
"Markdown",
"Makefile",
"Dockerfile",
"Shell"
] | 4 | Markdown | bsingr/docker-haproxy-reverseproxy | 7f1333ea705529c3a766838c88553c8a1f9a1a63 | 5254fc3d4daae99559355f559b070c2cf253d78c |
refs/heads/master | <repo_name>abhinavec1/Network_based_scripts<file_sep>/Codes/ARP_Spoofer/arp_spoofer.py
import scapy.all as scapy
import argparse
import sys
import time
def get_arguments():
parser = argparse.ArgumentParser()
parser.add_argument("-t", "--target", dest="target_ip", help="Target IP ")
parser.add_argum... | b6afcbbd6c68eb01180fe0dd06a13f187c753157 | [
"Markdown",
"Python"
] | 3 | Python | abhinavec1/Network_based_scripts | cdb49f7e5cca940e2e5a6b4215f79a5ee0594d8a | c0dbbff8879778a2dd4385332106086f887478af |
refs/heads/master | <file_sep># This Python file tests the basic Google Maps methods
# import packages
import googlemaps
from datetime import datetime
import json
# initialize Google Maps API using the confidential key
gmaps = googlemaps.Client(key='<KEY>');
# geocode
geocode_results = gmaps.geocode('Golders Green Station, London NW11 ... | ca4ae28836a3a99ec338a6fcd63e7e84cd07f6c6 | [
"Python"
] | 10 | Python | wenjian0202/amod-demand | a344524b4aac63b321bff82978a738f3b858116b | 475f486abc1de4f4e64585ca1c3ff468a655cf33 |
refs/heads/master | <file_sep>export interface IKey {
accessKeyId: string
secretAccessKey: string
associateTag: string
}
export interface IProduct {
asin?: string
brand?: string
category?: string
color?: string
description?: string
featureBullets?: string[]
name?: string
height?: number
image?: string
images?: ... | 605fa2cfc7f1f8c4a66b60f1a1a83b43c95c8291 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 16 | TypeScript | mcrowe/amazon-product-api | 4d0a4b6af2c96c0f9342f9de1eedb5b2f73bbf56 | 8ae95f2a5e17a182a699c457e937aa1c085d5874 |
refs/heads/master | <repo_name>perekskog/playground<file_sep>/Cucumber/src/test/java/se/perekskog/common/TestServer.java
package se.perekskog.common;
public class TestServer
{
}<file_sep>/Cucumber/src/main/java/se/perekskog/Calculator.java
package se.perekskog;
public class Calculator
{
public Calculator()
{
state = 0;
... | f86eee65299d0e15264d396c45cd1bbe8468ddc8 | [
"Markdown",
"Maven POM",
"Java",
"Python",
"C++"
] | 8 | Java | perekskog/playground | 481db9c8e6a9f3e1d1f58ab19c2c61b054101a74 | 6ce7684434f53a7297c151accba28a647b84991a |
refs/heads/master | <repo_name>gitter-badger/rakpy<file_sep>/tests/test_packets.py
# -*- coding: utf-8 -*-
import pytest
from rakpy.protocol import decode_packet
from rakpy.protocol.packets import Packet, UnconnectedPing
def test_packet_id():
class DummyPacket(Packet):
class Meta:
id = 0x42
structur... | 8926cf4bd133ba70be227a60255a73eb6a2c6f26 | [
"Python"
] | 5 | Python | gitter-badger/rakpy | 5778e62f1ca711d0e190905a4c9feef803b37b69 | d21a91b04d8c6ffd5bb1540d34d00c3950e8cdd7 |
refs/heads/main | <file_sep>package application
import (
"context"
"fmt"
"github.com/go-redis/redis/v8"
"log"
"strconv"
"time"
"urlserver/infrastructure"
)
var urlPage = "http://www.zidu.top/go/%s"
var incrementKey = "url:id:increment:"
var ctx = context.Background()
var rdb = redis.NewClient(&redis.Options{
Addr: "redis... | 98e8ea1e0b4c6996fc70a218be64b8e530e393b5 | [
"Markdown",
"Go Module",
"Go"
] | 6 | Go | imayou/urlserver | 9721921234d58f26a7d8b3b0199b9304f7fe949b | 6d0644fe172f40284d0ab165e8009adde5bb3570 |
refs/heads/master | <file_sep>import math
#Polozenie routerow
P1 = [0, 25]
P2 = [45, 25]
P3 = [45, 0]
#Odleglosc telefonu od routera
r1 = 0.6
r2 = 38
r3 = 21
#1
exx = (P2[0] - P1[0]) / (math.sqrt(((P2[0]-P1[0])**2)+((P2[1]-P1[1])**2)))
exy = (P2[1] - P1[1]) / (math.sqrt(((P2[0]-P1[0])**2)+((P2[1]-P1[1])**2)))
#2
ix = exx*(P3[0]-P1[0])... | 018e6e4cb8158648930fc3241548ac032906f6ef | [
"Python"
] | 9 | Python | Kamillpg/ZIwGProjects | 1a7eff2f4f48496d3198bc9642f2c39fba42b609 | ed1cd4ed11a0e1f9a496c410475290f3e0d38883 |
refs/heads/master | <repo_name>dilan-patel/MovieApp<file_sep>/Movie_Application/Movie_App_Core/Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace Movie_App_Core
{
class Program
{
... | b7886d998fea54470d9caed10e5a8ad062827754 | [
"Markdown",
"C#"
] | 2 | C# | dilan-patel/MovieApp | 6043f76cecf8deaa87888ca0e163d6f5527f1b93 | b34ce54810d0da092f4ccb12ef3407cc19cf088a |
refs/heads/master | <repo_name>kongpengcheng/SerialPortDemo<file_sep>/app/src/main/java/com/example/shen/serialportdemo/activity/MainActivity.java
package com.example.shen.serialportdemo.activity;
import android.app.Activity;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.util.Log;
import androi... | 2b3c5bac66aec7b8fe6eb7703cf0000f4d6b68a2 | [
"Java"
] | 2 | Java | kongpengcheng/SerialPortDemo | f6ce64acb431bb6788c78e435d281610d6e4150a | 69d53847884ad12df1f0714121799b2a5d222e82 |
refs/heads/master | <repo_name>andrews441/ExData_Plotting1<file_sep>/plot4.R
plot4 <- function() {
data <- read.csv("household_power_consumption.txt",
colClasses=c(rep("character",2),rep("numeric",7)),
sep=";",
na.strings=c("?"))
data <- subset(data,data$Date=="1/2/2007" | data... | 6426e4ffdfdde6a229e38468262e39e34cf583cd | [
"R"
] | 4 | R | andrews441/ExData_Plotting1 | aa9014b79e7ef216295813c64fb6211a9a804a08 | 339f096200ba8ac489963c0d67db6187348bda7b |
refs/heads/main | <file_sep># A file for any helper functions we use
# Created 12/4/18
import pygame
# Initialize the font module
pygame.font.init()
# this class will be used to render the text that will go onto the screen
class Renderer:
def __init__(self, screen):
# Initialize the pygame screen, for drawing in render_te... | f05fc1d482ba9ecc8e26e26312716ea60dedc99a | [
"Python"
] | 5 | Python | FarazHossein/TronGame | a0ebe3421965992f721545827903e53110c61584 | dd81720fad4b22db3c0593e0fd96a0fb33557758 |
refs/heads/main | <file_sep># Form-Securety-exercises-PHP<file_sep><?php
// .............. 1 .............
/*
Următorul exemplu va curăța şirul de tag-uri periculoase < >:
*/
// function tag($p){
// $p = str_replace("<", "<", $p);
// $p = str_replace(">", ">", $p);
// return $p;
// }
/... | 629f17223ea09cb968d060a713143f4f91150f38 | [
"Markdown",
"PHP"
] | 2 | Markdown | Beny14/Form-Securety-exercises-PHP | 7d95d295cd1ddc98419ab4275f68159baa0b211f | d26a0573d00ad0196f472935501983db49c45ff2 |
refs/heads/master | <file_sep>package com.example.moviedb.ui.screen.moviedetail
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.example.moviedb.data.model.Cast
import com.example.moviedb.data.model.Crew
import com.example.moviedb.data.model.Movie
import com.example.moviedb.data.repository.Mov... | 569147e3b873a336bb125116f35cf2a3974853da | [
"Kotlin",
"Gradle"
] | 16 | Kotlin | vikasnikam/MovieDBTest | 41841e59c4791a00d542c7c7de6f47247b7d75bd | 41f3658b08795fcddb2d230be845ad083a688509 |
refs/heads/master | <repo_name>carmelohuesca/game-ppt<file_sep>/test/SpockGame.spec.js
describe('Especificaciones SpockGame:', function() {
var game;
var PLAYERONE = 'juan';
var PLAYERTWO = 'jose';
var ROCK, PAPER, SCISSORS, LIZARD, SPOCK;
var DRAW, PLAYERONEWINS, PLAYERTWOWINS;
beforeEach(function() {
ga... | 530128482aa3d9c1b228f508e9a8b0a168ff8300 | [
"JavaScript"
] | 2 | JavaScript | carmelohuesca/game-ppt | 83285dac0ead235108413916ffbdacdfd672c4e3 | 5278cddf7dca74a2698f274079bfb6a3c6cf4ffe |
refs/heads/master | <repo_name>MGunner/DlCafeBazzar<file_sep>/DCafeBazarBot.php
<?php
ob_start();
/*
─═ঊঈঊঈ═─╮
DCafeBazarBot
V 1.o
─═ঊঈঊঈ═─╯
*/
define('API_KEY','توکن شما');
//-----------------------------------------------------------------------------------------
//فانکشن MrPHPBot :
function MrPHPBot($method,$datas=[]){
$url = "htt... | 4f0cf7eb90302d8dcd466211f83daaa2c3ab9be6 | [
"PHP"
] | 1 | PHP | MGunner/DlCafeBazzar | e4a896e11efae9401cf8f5e8306e276cc92d6624 | 641f163e323ebaa12cc252b76a6a7fda59a47f12 |
refs/heads/master | <file_sep>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;
using veterinaria.Models;
namespace veterinaria
{
public partial class Registrar : Form
... | ab9e21c5fc1f32a1f4522d148dfeb18546c86ff0 | [
"C#"
] | 3 | C# | laortizt/veterinaria | 6b54db100a1f1293944bbebdc589f37be334c8ea | 4b7bbfd130a8d98c925c3abc35379293e4259da9 |
refs/heads/main | <file_sep>module.exports = (sequelize, DataTypes) => {
const ReplyReply = sequelize.define(
"ReplyReply",
{
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true,
},
content: {
type: DataTypes.STRING,
allowNull: false,
},
},
{ underscored: true }
);
Rep... | 9e52dca6556b4ada738a5183daacd0783e818788 | [
"JavaScript"
] | 16 | JavaScript | ruatapattan/intersiasts-backend | afbbc12131daa65a28678bf8280225a8d93c59f3 | 54c08f977e2b7681ada72169095a5ca112518306 |
refs/heads/master | <file_sep># Deep Learning using Keras
Prerequisites:
- Python 2.7 64-bit (Recommend to use Enthought Canopy or Anaconda)
- SciPy with NumPy
- Matplotlib
- Theano (http://deeplearning.net/software/theano/)
- Keras (https://keras.io/)
- Seaborn (http://seaborn.pydata.org/)
Projects:
- 1. CNN for recognizing MNIST hand... | 553f93e7fdc682b9955ee1d173611049c80ed40e | [
"Markdown",
"Python"
] | 3 | Markdown | rygiggsy/DeepLearning_Keras | 48e528e943068f1e2acc9585fae8f91975b26836 | a0e9c497a794088beb037186324dcc84d88881d7 |
refs/heads/master | <repo_name>tknrhys16/DQruby<file_sep>/main.rb
class Brave
end
| d037721efb8296e6e478d08dfd37d67e68425ebe | [
"Ruby"
] | 1 | Ruby | tknrhys16/DQruby | 776d388daa67cde7e6764b307b90c8a14f027aa5 | 4984613b6cac333b4f1b309b757e9e5e5049e293 |
refs/heads/master | <repo_name>kodehaus/yahooStats<file_sep>/config/index.js
// config.js
const dotenv = require('dotenv');
const result = dotenv.config();
module.exports = {
port: process.env.HOST_PORT,
httpsPort: process.env.HOST_HTTPS_PORT,
hostUrl: process.env.HOST_URL,
yahooRedirectUrl: process.env.YREDIRECT_BASE_URL + ":" + ... | 536c8acc56fe4906de04b9586b80beb7fa5635e7 | [
"JavaScript"
] | 3 | JavaScript | kodehaus/yahooStats | 8598a5fbcbfa726cff0c4ee736c74f9f4824b2c4 | 38362c3e14212f7bcd5b9d399066bce8326828c5 |
refs/heads/master | <repo_name>TheyCallMeAlexander/Tennis<file_sep>/pages/index.js
import Tennis from "../components/tennis";
export default () => {
return <>
<style jsx global>{`
body {
margin: 0;
}
`}</style>
<Tennis/>
</>
};
<file_sep>/components/tennis.js
// let windowO... | 4b36be587024d083ca53ecc13ec9ff82048a27a1 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | TheyCallMeAlexander/Tennis | 2dd9c09f783122d281077b2d95188e1389f84e41 | 9f90e18b278d73735960810e3dd3c4fd693f30b4 |
refs/heads/master | <file_sep>$(document).one('pageinit', function() {
showRuns();
$('#submit-x').on('tap', addOrEditRun);
$('.delete-run').on('tap', deleteRun);
$('.edit-run').on('tap', editRun);
$('#clear-runs').on('tap', clearRuns);
function showRuns() {
var runs = getRuns();
var len = runs.length;
... | d619530be4f1a7173ac7064dc224456666d1b7db | [
"JavaScript"
] | 1 | JavaScript | jadetiger88/jt-js-jq-mobil | 640b80dc726f8ddc699394a4a557ce3a1238ecf7 | d3fc1bff8a3f1f84809884d029c3c58ca32ede44 |
refs/heads/master | <repo_name>sandipk01/Maximum-Problem-using-Generics<file_sep>/src/test/java/TestMaximumValue.java
import org.junit.Assert;
import org.junit.Test;
public class TestMaximumValue {
private MaximumValue maximumValue;
@Test
public void findingMaxIntegerValue_GivenFirstParameter_ShouldReturnMaxValue() {
... | 6b3decda3fd97b85cff3989fec0b63bd06fff4d5 | [
"Markdown",
"Java"
] | 2 | Java | sandipk01/Maximum-Problem-using-Generics | f49cf0bab2388210c3b54f6c6fcbc10eb383b725 | adfafb9389021c492ffcfa5034f516c5396cdeb4 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement; //Make sure to add this for access to the SceneManagment class.
public class collisionTester : MonoBehaviour
{
public GameObject spikes;
public GameObject spike;
public GameObject t... | aed33436e2034368fe7e043e55ea14658de46240 | [
"C#"
] | 2 | C# | williamfeeney123/Final | e7c3fbbdac03656f59768f7749beb4ab04756ec1 | c3318a4bd59f06ff4da530f90ab567b051a719a6 |
refs/heads/master | <repo_name>shristy/hello_world<file_sep>/add.py
a=4
b=6
c= a+b
print c
| 2ba0718280a7de27b3e1145cdd3526e6ed5ace98 | [
"Python"
] | 1 | Python | shristy/hello_world | b609114b860fecf434661f6d0f4f739b008d36eb | 1dfe209756646acf67257f3f5f04ae14161d8d0b |
refs/heads/master | <repo_name>jettero/term--ansicolorx<file_sep>/new-version.sh
#!/bin/bash
git clean -dfx
files=( $(grep '\$VERSION\s*=\s*.[0-9._]+.;' -Erl) )
echo
echo files to update:
grep -Er '\$VERSION\s*=\s*.[0-9._]+.;' --color=always
echo
DEFAULT=$( grep -E '\$VERSION\s*=\s*.[0-9._]+.;' < "${files[0]}" | sed -e s/[^0-9._]//g )... | 4b96852ae6f47f79a47b454ffab3b1f4814ac4e9 | [
"Shell"
] | 1 | Shell | jettero/term--ansicolorx | ddf747332f7e5eaa75f85d55bbdbbb5dbe4428d9 | 9c2f274c214244b4a6d3276f9258233684f1583d |
refs/heads/master | <file_sep>/*
* This file is part of BlueMap, licensed under the MIT License (MIT).
*
* Copyright (c) Blue (<NAME>) <https://bluecolored.de>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Sof... | eb82af826a08af115da79e180bcc219268ff758e | [
"JavaScript",
"Java",
"Markdown"
] | 5 | JavaScript | Katrix/BlueMap | aaaaf7e18adfdda2abe7d4bcd28867a28e5cfed9 | 3cb383afe1a7aa4488e756cee5910bf0f6af9ba4 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EnterpriseAutomation.lumino.appcode;
using System.Data;
using System.Data.SqlClient;
namespace EnterpriseAutomation.lumino
{
public partial class Main : System... | 19f0bcf69e4d50fe8f8a87648878b22b2d36b3ae | [
"C#"
] | 7 | C# | AbdullahAmjad-786/CostAutomation | e9db9cd2c93aef8efc30e119ddd3ede3fa2538e5 | 0b24bdf6b0b5e19191a57873f674e17e4c2bda1a |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Users;
class PagesController extends Controller
{
//
public function index()
{
return view('index');
}
public function play()
{
return view('pages.play');
}
public function contact(... | d64f599562287392c836fedb0f663b1b52ed9f1f | [
"JavaScript",
"PHP"
] | 5 | PHP | kevilondo/Guessit | 236b48ec672cfeb570e165dc210a404ad0ff2740 | 99be84afd5acf55f1ca48d9bbf1d7c9d94ef3418 |
refs/heads/master | <file_sep>namespace org.antlr.codebuff.misc
{
using ParserRuleContext = Antlr4.Runtime.ParserRuleContext;
using MurmurHash = Antlr4.Runtime.Misc.MurmurHash;
/// <summary>
/// A key that identifies a parent/child/separator relationship where the child
/// is a sibling list. The separator must be part of key so ... | bd9baadc9ece46b860488b63c24c40e41bbd966a | [
"Markdown",
"C#"
] | 50 | C# | kaby76/cs-codebuff | 0ac3dfdd8720d596f7541fcc39f2884b209fafeb | 106d08e0771de36e90bf9ed25800a84cd66e4176 |
refs/heads/master | <file_sep>//
// FlickrOperation.swift
// Virtual Tourist
//
// Created by <NAME> on 10/06/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
import Foundation
protocol FlickrNetworkOperationProcessor: AnyObject
{
var request: NSURLRequest { get }
func processData(data: NSData)
func handleError(... | c1fbe00ea41fab688da6c6a1a591ef0c9a7ae2cb | [
"Swift"
] | 19 | Swift | maarut/Virtual-Tourist | 65b5988dc6d04f2abcf558fa437fa1ff6225bf5d | f169b933a3ba97777827d49fb4338b84c0fba63e |
refs/heads/master | <file_sep>package ru.skillbranch.kotlinexample
import org.junit.Assert
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
... | 830152d8bbcafa30438bcc272e3f5ef0ac487480 | [
"Kotlin"
] | 3 | Kotlin | BKulesh/android-middle-2019 | ef3c122cb9c61f1122e1698d607d9bf840d07183 | de47f8b13230f1a15a2b1a84ad52c771d6b9b25b |
refs/heads/master | <repo_name>pombredanne/calico<file_sep>/setup.py
#!/usr/bin/env python
# Copyright (c) 2014 Metaswitch Networks
# All Rights Reserved.
#
# 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 a... | 2a9000448d67759480a9292f4bb8706d68939926 | [
"INI",
"Python",
"Makefile",
"Shell"
] | 11 | Python | pombredanne/calico | d935aca8e5935d449c1d880b03cfb5befd3e0e3c | 5117bd4a9165a962ddde6b504ee367d804ed8a86 |
refs/heads/master | <repo_name>pushkar205/python-program.<file_sep>/ex6.py
import smtplib
try:
s=smtplib.SMTP('smtp.gmail.com','587')
s.starttls()
sender='<EMAIL>'
receiver='<EMAIL>'
msg="peace!!!!"
s.login(sender,'dd<PASSWORD>')
s.sendmail(sender,receiver,msg)
except:
print("some error occured")
else:
print("message sent succesf... | 55f607dd0429ae6ecd76c0a66ab8e6956bfff8ae | [
"Python"
] | 7 | Python | pushkar205/python-program. | cc283e756f12c68fb2e882c74b5a528a3dc4c7b1 | c6b8b6fe0d5cc1edd87c030ce1ac25199280e667 |
refs/heads/master | <file_sep>using Com.Bateeq.Service.Masterplan.Lib.BusinessLogic.Implementation;
using Com.Bateeq.Service.Masterplan.Lib.Interfaces;
using Com.Bateeq.Service.Masterplan.Lib.Models;
using Com.Bateeq.Service.Masterplan.Lib.Services;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
usin... | 368b7029dc46cfc3f70f1287598d6ff17ec86ebf | [
"C#"
] | 19 | C# | AchmadSetiaji/com.bateeq.service.masterplan | 8345ca9d79ebcb9f97640178f3234e5f42ffd3e1 | 8b86e7070b16c8e158accd3a04e8a2d861a68f7c |
refs/heads/master | <repo_name>mdelder/nucleus<file_sep>/README.md
# nucleus
Minimum cluster registration and work
<file_sep>/pkg/operators/spoke/controller_test.go
package spoke
import (
"fmt"
"strings"
"testing"
"time"
"github.com/davecgh/go-spew/spew"
fakenucleusclient "github.com/open-cluster-management/api/client/nucleus/clie... | 16159d33a80feea416dfa50c8344274d3d3baf41 | [
"Markdown",
"Makefile",
"Go",
"Dockerfile",
"Shell"
] | 13 | Markdown | mdelder/nucleus | 249448baea60bb7d36bf7ea1c432e54623de372d | 511cdc1f493593e8b90114b025f5117585fa1d9a |
refs/heads/master | <file_sep>#!/usr/bin/env python3.7
# coding: UTF-8
import datetime
import json
import os
import requests
def get_room_temperature():
headers = {
'accept': 'application/json',
'Authorization': 'Bearer ' + os.environ['REMOTOKEN'],
}
response = requests.get('https://api.nature.global/1/devic... | 5d0b130c4e9e5b32a6f6f9d47dcb2bd514740d31 | [
"Markdown",
"Python"
] | 2 | Python | tkmru/remo_to_mackerel | 0417d0b27393a46e10b9fb6fa85e93fa91af4d85 | 99c54b7a808d99476400a283def3a1c0abfda8b0 |
refs/heads/master | <file_sep>#include<stdio.h>
void draw(int n,int x) {
for (int j = 1; j <= 2*x-1; j++) {
if (j != x - n && j != x + n) {
printf(" ");
}
if (j == x - n || j == x + n) {
printf("* ");
}
}
printf("\n");
}
int main(){
int x;
scanf("%d", &x);
int n = 0;
for (int i=1; i <= x; i++) {
draw(... | c7c307c12eea61e36e84cc03ab9b2f8de22a5113 | [
"C++"
] | 1 | C++ | 63010749/week_8_no_1 | 57e2ee7bb03f5c3d1b865319d46e0c60de7af3bd | f3415d1f6dd243642be9b35e5ef839269287d167 |
refs/heads/master | <repo_name>mamalisk/nodeAndNano<file_sep>/server.js
//setup Dependencies
var connect = require('connect')
, express = require('express')
, io = require('socket.io')
, port = (process.env.PORT || 8081)
, nano = require('nano')
, IDProvider = require('./idprov/idProvider')
var idprov;
//Setup Expres... | 1119a21f8a236f2640fe279f415618c91d3bcc82 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mamalisk/nodeAndNano | 85e69df39affa6ea560764908c756bb5033c5479 | ab4221f2c81e8cf4ca221b34d43fa9041b3667b6 |
refs/heads/master | <repo_name>heseba/wotdl2api<file_sep>/implementations/ledvance_motion_sensor.py
from flask import jsonify
import requests
import json
MOTION_ENDPOINT = "http://10.0.1.200:80/api/E70AB7E7DB/sensors/2"
TEMPERATURE_ENDPOINT = "raspberrypi.local:80/api/E70AB7E7DB/sensors/3"
def get_motion_ledvance():
response = re... | 256f6b2dc76ce7010b6e215c0d157275c1db41c0 | [
"TOML",
"Markdown",
"Python",
"Text",
"Shell"
] | 20 | Python | heseba/wotdl2api | ff4f76d66b45c74d318a6e0701e0decd40623e76 | b8b683d1474cf8432829a634de23a93476fb55b5 |
refs/heads/main | <repo_name>Jacykow/WZK<file_sep>/Assets/Scripts/View Models/SecretTrivialViewModel.cs
using System;
using UniRx;
using UnityEngine;
public class SecretTrivialViewModel : MonoBehaviour
{
public FieldContainer inputFieldContainer, outputFieldContainer;
private void Start()
{
inputFieldContainer.Add... | 1720310154b649fe99c8b63b3080aaf692925e40 | [
"C#"
] | 15 | C# | Jacykow/WZK | 90b6407626cabe9e76295209b25e63bd1ede6b0c | 6648759222daaf1e5bb5f452114d4c901da72a13 |
refs/heads/master | <file_sep>## Express with TypeScript
A basic Express Server and Socket.io built with TypeScript.
# Requeriments
Clone this repository.
Run `npm install -g tsc` and `npm install -g nodemon`.
# Local Server
Run `npm start`.
<file_sep>const socket = (window as any).io();
interface ChatMessage {
message : string;
... | ec0e538eced85b2aef34479e775141883523ff40 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | Bodeclas/express-typescript | 3f51ceb30fe95920f1c2a9aa8c44c472e2c59990 | d69f51e074e79140706387b08b9a6d4d2cd18e03 |
refs/heads/master | <file_sep><?php
namespace Doomy\Migrator;
use Dibi\DriverException;
use Doomy\CustomDibi\Connection;
use Doomy\Ormtopus\DataEntityManager;
class Migrator
{
const DB_CODE_TABLE_DOES_NOT_EXIST = 1146;
/**
* @var Connection
*/
private $connection;
/**
* @var DataEntityManager
*/
... | 38e5198fdb40f7aa24f4482256f3000420706273 | [
"JSON",
"PHP"
] | 4 | PHP | doomy/migrator | 6e3c02fae3ce488c94933517733f87588f892852 | dc004bae4e2f8a7c8d507da74c792c02e7d59f6e |
refs/heads/master | <repo_name>abeltran85/App-Nubiq<file_sep>/app/src/main/java/es/fairshall/appnubiq/Model/User.kt
package es.fairshall.appnubiq.Model
class User {
var id_client:Int=0
var nombre:String=""
var password:String=""
constructor(){}
constructor(id_Client: Int, nombre:String, password: String){
... | 5645829e1c00a0caeb75f9d8e3b87843bf612249 | [
"Kotlin"
] | 5 | Kotlin | abeltran85/App-Nubiq | 0bd37c5a983250ab42b2f5962699fe6ee50f12f9 | bd210a6220c9fa623015407fbf14e47f4dc8121d |
refs/heads/master | <file_sep># paste.ratma.net
the code behind paste.ratma.net
<file_sep><?php
declare(strict_types = 1);
require_once (__DIR__ . '/../api_common.inc.php');
http_response_code ( 500 );
$id = ( string ) $_POST ['id'] ?? NULL;
if (false === $id) {
http_response_code ( 400 );
die ( 'invalid id!' );
}
class Res {
public $... | e956da4ab7049cf67f9537f292c66c95886df322 | [
"Markdown",
"PHP"
] | 10 | Markdown | divinity76/paste.ratma.net | 965573c8cb92630f8eed1feae2d7d75ae82f7cff | 57b0f9ec83bbd384cea29ac1431730553633c394 |
refs/heads/master | <file_sep>FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 80
FROM microsoft/dotnet:2.2-sdk AS build
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
WORKDIR /src
COPY /src .
RUN dotnet restore BaGet
RUN dotnet build BaGet -c Release -o /app
FROM build A... | 80ab672896fcb981f01b51f97c60fcb7ea2db471 | [
"C#",
"Dockerfile"
] | 7 | Dockerfile | Chang228/BaGet | 89c75ee891592f01e843ae97893b939f338b3ca9 | f96cfb0841635c1e17c725113444fcae671d500c |
refs/heads/master | <file_sep>using System.Collections.Generic;
namespace XamarinForms.Controls.Model
{
public class MockData
{
public MockData()
{
this.Kullanicilar = new List<Kullanici>();
Kullanicilar.Add(new Kullanici()
{
Ad = "Kamil",
Email ... | 27b75b5f7f4fbbe380491f75a341bbb5e1582889 | [
"C#"
] | 5 | C# | daglia/XamarinForms.Controls | a0bf7b3859d8b64a387b8b92946cd66f98565598 | d0ac3f92e3cbf82e170768b985d3f8ede0375c87 |
refs/heads/master | <repo_name>yjyang/myshardingfordata<file_sep>/src/main/java/com/fd/myshardingfordata/helper/IConnectionManager.java
package com.fd.myshardingfordata.helper;
import java.sql.Connection;
/**
* 数据库连接管理
*
* @author 符冬
*
*/
public interface IConnectionManager {
Connection getConnection();
/**
* 开启事务
*
* @... | dc98dd41586475d8ff555ae0b43ad80e635a996f | [
"Java"
] | 2 | Java | yjyang/myshardingfordata | 465eee7ed1e33d62018116b0c4bfdf6b1d6e28a7 | 98cd8756e66cff80e7d52925c5f42cf9b557d3f8 |
refs/heads/master | <repo_name>txcism/txcism.github.io<file_sep>/build.py
#生成主页面
#待解决:根据文件创建时间来排序
#
import os
main_name = 'index'
file_head = '''
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
p {font-size:24px; text-indent:120px;}
div {font-size:20px; text-indent:240px}
a:link {text-decoration:none;}
a:vis... | a9e6056ff758b2eab0e585463af365bf34d8eaf7 | [
"Python"
] | 1 | Python | txcism/txcism.github.io | 9789c24e889de9f066922434e598f194975d17e7 | 52e6737f4deeb1c5303534c1d9715e4af1b38c35 |
refs/heads/master | <repo_name>herpiko/akarata<file_sep>/index.js
'use strict';
import _ from 'lodash';
import Morphological from './lib/morphological_utility.js';
const totalSyllables = Morphological.totalSyllables;
const removeParticle = Morphological.removeParticle;
const removePossesive = Morphological.removePossesive;
const removeFi... | bf6e7c7a79de8d9b916f2cdfb062592fccfff289 | [
"JavaScript"
] | 1 | JavaScript | herpiko/akarata | 7abd2e976bac6881531d2c413c745902adef2f21 | 4d38e58336d8c6d83801c534917f2263eb8f7a3c |
refs/heads/master | <file_sep>// *****************************************************************************************************************************************
// **** PLEASE NOTE: This is a READ-ONLY representation of the actual script. For editing please press the "Develop Script" button. ****
// *****************... | cfd032677b8a32a4d3f0e8991c464f9a2a4576eb | [
"C"
] | 1 | C | CMPLT-D-ITC/loadrunner-tests | 4c299e115f88da0f982bf527813b77fee76a4273 | a3e7aae5e6035da0ad7e0568be4b934e45fdc405 |
refs/heads/master | <file_sep>using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Mandrill.Serialization
{
internal class UnixDateTimeConverter : DateTimeConverterBase
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
long val;
... | bddeb547852ed50ba55b3b2a0a3362614b4ed030 | [
"C#"
] | 1 | C# | colincass/Mandrill.net | 8ea5db07c62e482a67054ef912d7f1e6be142e8c | 134f79ec2568dcfa5e47e8077cd554f4982f776d |
refs/heads/master | <repo_name>stazbass/electrosimmod<file_sep>/src/base/CircuitNode.java
package base;
import java.util.Vector;
public class CircuitNode {
int x, y;
private Vector<CircuitNodeLink> links;
boolean internal;
CircuitNode() {
setLinks(new Vector<CircuitNodeLink>());
}
public Vector<CircuitNodeLink> getLinks() {
r... | 64a0a3a6c0373038ece269a0800942f7715b14af | [
"Java"
] | 3 | Java | stazbass/electrosimmod | fdd042dde985fd7577d768409cb08ea9a4efbc69 | 8a1fc2e8f80f0afa75c22bdd58368310402ff277 |
refs/heads/master | <file_sep>#!/usr/lib/mongosync/environment/bin/python3.6
import errno
from math import floor, ceil
from errno import ENOENT, EDEADLOCK
import os
import signal
import subprocess
import time
from datetime import datetime, timezone
from bson.objectid import ObjectId
import pymongo
from pymongo.errors import PyMongoError
f... | 8877c8402983bc627a19ea1a61f4f4ef380f2212 | [
"Python",
"Text"
] | 11 | Python | gilles-degols/mongosync | b4b14f583e697c1b54dbb1f3ed17eb97d567aed9 | d54004d3ebe055dd63c9d51882d22dd8227f0698 |
refs/heads/master | <repo_name>localdavid/SneakerSite<file_sep>/js/interactive-svg.js
$(function(){
// jQuery.load loads the SVG file into our #stage div and give it the class svgLoaded which we’ll later use to trigger our intro animation. Important: We load the SVG using JavaScript to gain access to its DOM. Chrome (and maybe other b... | 1c22aaaa5c7630c0c1d299b400d37c2735dd0ef8 | [
"JavaScript"
] | 1 | JavaScript | localdavid/SneakerSite | bc08497f6d639364f6c0d4d0900089958050b215 | 9b02a52881736b958d508ab2528ca86b8201b634 |
refs/heads/master | <file_sep># Js-1-to-67
Assignemnt
<file_sep>// Chapter # 1
alert("Error ! please enter a valid password");
alert("Welcome to Js land \n Happy coding !");
alert("Wlecome to js land");
alert("Hello i can run js through my web browser console");
//Chapter # 2
var username="basit";
var myname="K... | 546d6d3f9730c48750ec35ff0b86934dd89ba5d5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | basitkhatri123/Js-1-to-67 | 0ec0674745d06c7397e9fa4dc1a68910097b1ed7 | bbadfa67ec62eee7cf66e9c6afa159b728b4d511 |
refs/heads/master | <repo_name>Ykhankar/demoproject<file_sep>/index.js
<script>
console.log("hii How are You....Yogesh");
</script> | f5e0092b1c5650550676a5b87b2261bccc405108 | [
"JavaScript"
] | 1 | JavaScript | Ykhankar/demoproject | 78997a8f0a4f746bfefddf8a5717a56b40f018a8 | 3fb2dd0a8df21734f4830284354d3db657b47a1a |
refs/heads/master | <file_sep>// My first aysnc i/o - same as above but doing it ayschronously, meaning using readfile()
// as well as idiomatic Node.js callbacks
var fs = require('fs');
fs.readFile(process.argv[2], 'utf8', function (err,data) {
if (err) throw err;
console.log(data.split('\n').length - 1);
}<... | e174e3e80d5b765e95ff22fdc96e763bf853969e | [
"JavaScript"
] | 6 | JavaScript | kumarpav/learn-node | 7623ee5f2d41ccde422c0b751257e463231ab716 | 41e82432139f1bb184ca069fe74799befeb9ad15 |
refs/heads/master | <repo_name>UnrealEngineRepos/BRGame<file_sep>/Source/BRGame/Public/SWeapon.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "SWeapon.generated.h"
class USkeletalMeshComponent;
class UDamageType;
class UPar... | 3f9792d3e9445855c132b6a343cbfb40fa85b237 | [
"Markdown",
"C++"
] | 11 | C++ | UnrealEngineRepos/BRGame | ad0370efe8094de5b28e0c0bc6d8c6cc21ed91b1 | 1385d2f1b0e2c327948e285d1b567dfb67c9cfb2 |
refs/heads/master | <repo_name>ccpend/mp-converter<file_sep>/src/build.js
import Compile from './compile'
exports = module.exports = function(options){
let compile = new Compile(options);
compile.build();
}
<file_sep>/src/command.js
#!/usr/bin/env node
import program from 'commander' ;
program
.version(require('../package.json').... | b1425a309f1d4d9578d3c1a6942d830be96106de | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | ccpend/mp-converter | 5c56c9a8f30d9c2cf917110e3c0e9fc29bf69709 | faf075cdbd5c37251f2e4a97c4a92e3229aa643b |
refs/heads/master | <file_sep>import os
from flask import Flask
from flask import render_template
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv(), override=True)
app = Flask(__name__)
@app.route('/')
def root():
return render_template('index.html')
@app.route('/maps/embed/')
def maps_embed():
return re... | f1a50daf90cd6c77c8351cfa9f1a151bae95176c | [
"Python",
"HTML"
] | 2 | Python | pmatsinopoulos/test_google_autocomplete | 9da3a18589e607e47d98ed8478533ecc4ae2a330 | 0bdf0c3aa9f9464098e6a5ec0769e239c698fcfd |
refs/heads/main | <repo_name>aarav21/Frame-around-Webcam---P5.js<file_sep>/main.js
function setup(){
canvas = createCanvas(400,300);
canvas.position(250,350)
video = createCapture(VIDEO);
video.hide();
tintColor=""
}
function draw(){
image(video, 0,0,400,300)
tintColor = document.getElementById("... | b0976d3af8aa11807c43d53581161bb0b279104c | [
"JavaScript"
] | 1 | JavaScript | aarav21/Frame-around-Webcam---P5.js | 9526dedd18b4c277a958ba89985419556ae4592a | 7f7ad5a6deef2b58b4cb65e903c53c31e58fe7a2 |
refs/heads/master | <repo_name>huangweijie0308/file-manage<file_sep>/src/file/File.php
<?php
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: huangweijie <<EMAIL>>
/... | 821e0ba0f3e56c379c9c95adce5d36a66fe8c3c9 | [
"Markdown",
"PHP"
] | 2 | PHP | huangweijie0308/file-manage | 7a01028004c4cf0f31c3594908e33b8f7e012bcb | 98355c48516daa99612dfd4a3f6bdffbf4336298 |
refs/heads/master | <repo_name>Audre/cis237inclass2<file_sep>/cis237inclass2/Hanoi.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cis237inclass2
{
class Hanoi
{
public void moveDisk(int n, char source, char auxilary, char destination)
... | 77763e5b9c08dda857c65761bd8189a8ff307721 | [
"C#"
] | 1 | C# | Audre/cis237inclass2 | a8c5aff9440ac540a9f12735afe25dc186f99f30 | e33b669b0c518d30604a1482e559182d7217ec24 |
refs/heads/master | <file_sep># Temp Hooks
<file_sep>// @ts-nocheck
import React, { useState } from 'react'
export default function Title() {
return <>
<h1>Temperature in °K</h1>
</>
} | 34e9c7ddb327870bede8fe526980e6d911aa01a0 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | jbryan382/temp-hooks | 3dc858a8bba8e02b81f400c2327df9f999e6f5e9 | a968c75bbbab8a187ad48c99c84fc3047fa46787 |
refs/heads/master | <file_sep>import os
import sys
path = os.getcwd()
name = sys.argv[1]
path = path+'/'+name
files = os.listdir(path)
i=1
for file in files:
os.rename(os.path.join(path,file), os.path.join(path, name+'.'+str(i)+'.jpg'))
i+=1
<file_sep># Helper Scripts
Collection of scripts that I frequently use in my Image Pro... | a3e48885987e895d0d33b5dd903d51aaf4d21ce6 | [
"Markdown",
"Python",
"C++"
] | 8 | Python | das-amrit/helper_scripts | fdca380e55bfaee5cf5fb3365421931513501db7 | 2e17c0c585356dd6cf9bd84b5082f6a20dd815f7 |
refs/heads/master | <repo_name>altoveros/test<file_sep>/print.py
RRTable = {}
Flag = True
while Flag:
name = input('Enter the host or domain name (Exit to quit program): ' )
if name == "exit":
Flag = False
else:
DNSQuery = input('Enter the type of DNS query (0. A, 1. AAAA, 2. CNAME, 3. NS: ... | 19591e8bb7a640aceca86f77464976be6e00f9a4 | [
"Python"
] | 1 | Python | altoveros/test | 88573521071116bc3f7488021a62a8eb8cd99801 | d07334559a0a26d57762cbaf8c7419a0f4be4cdc |
refs/heads/master | <repo_name>go6887/aws-cloudwatch-logs<file_sep>/README.md
# aws-cloudwatch-logs
AWS CloudWatchからPythonでLogを取得
## Usage
```
python get_cloudwatch_logs.py --from_date YYYY-MM-DD --to_date YYYY-MM-DD --group_name /aws/lambda/xxxx --profile default
```
<file_sep>/get_cloudwatch_logs.py
import boto3
from datetime import d... | 6c1b0b32f01955d9d0b18f67d4d99b2c5f6c157e | [
"Markdown",
"Python"
] | 2 | Markdown | go6887/aws-cloudwatch-logs | c1021ddde0f33efb6bbfada56b5487d3d0f3d9f8 | e4be22f3302bd17744853b9b664967145462a9b3 |
refs/heads/master | <repo_name>dqdv/DqDv<file_sep>/WebApp/src/app/auth/state/auth.effects.ts
import { Injectable } from "@angular/core";
import { Router } from "@angular/router";
import { Actions, Effect } from "@ngrx/effects";
import { Observable } from "rxjs/Observable";
import "rxjs/add/observable/empty";
import "rxjs/add/observable/o... | 4b942ce933b0c513a4bb86b7cbeb5a2a3cf2c691 | [
"Markdown",
"C#",
"TypeScript"
] | 59 | TypeScript | dqdv/DqDv | b7cf466e8f1b53ad32e723021cd656f9766d8207 | 05ccf735df6d41f70f3500265fe236cd04fb2933 |
refs/heads/master | <file_sep>using CSAc4yClass.Class;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
... | 31f278997e69690ddba2f2cf2dae1d7b867a2218 | [
"C#"
] | 1 | C# | d7p4n4/CSFlowDocumentTry1 | 96b75eae450470c0ab157f12109ce3ba1c56ef86 | d11e5dd446fa7fb455c4ead933d3e6ed1b086885 |
refs/heads/master | <file_sep>/*
* Author - <NAME>
*/
import type {
StartGameAction,
PlayPieceAction,
UpdateConfigAction,
PlayerConfig,
} from "./types";
import type { Player, BoardColumn } from "../types";
/**
* Action causing the state of the game to reset, but not configuration.
*/
export const startGame = (): StartGameAct... | 4cb011520c237ff60bc6311700492af2fc64f063 | [
"Markdown",
"TypeScript"
] | 15 | TypeScript | danielmcmillan/connect4app | d73fd705ef6736905353d588d18506a5a6df1e32 | 598c39d6ea74feb9ff31f7844add7098a163aa09 |
refs/heads/main | <file_sep>require 'rails_helper'
describe 'As a visitor' do
before(:each) do
snape = Professor.create(name: '<NAME>', age: 45, specialty: 'Potions')
hagarid = Professor.create(name: '<NAME>', age: 38, specialty: 'Care of Magical Creatures')
lupin = Professor.create(name: '<NAME>', age: 49, specialty: 'De... | f27b3109e8ac5c6a27bcf975df08f1732e1a6537 | [
"Ruby"
] | 2 | Ruby | RetynaGirl/hogwarts_mod2 | 0477ace859bd5222a412b9e52db745298748f6f6 | 0b49009b45b20f3dfb483a4f8bd5c6cebf784f08 |
refs/heads/master | <file_sep>import React, {Component} from 'react';
import Modal from '../../components/UI/Modal/Modal';
import Aux from '../Auxiliary/Auxiliary';
const withErrorHandler = (WrappedComponent, axios) => {
return class extends Component {
state = {
error: null
}
// network errors a... | 454ea6b947bc1d97afb9c9d8e15eca762f1493c1 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | bioprogram1316/Build-A-Burger-App | 9acb2d7fb9816858aa1d244293a18b0e7d261ecb | 86adcf903e4ab811d20a1d7024303e1f65dcc35a |
refs/heads/master | <file_sep>package com.acrylic.universalloot.pseudoloot;
import com.acrylic.universal.gui.PrivateGUIBuilder;
import com.acrylic.universalloot.GUILoot;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
public interface GUIPseudoLoot<T extends GUILoot> extends PseudoLoot<T> {
@NotNull
P... | 84dd3d30b27168f8a1d2e2dbd711bf68f14912ea | [
"Java"
] | 8 | Java | Acrylic125/AcrylicLootSystem | 8d04cec295a996730a1c90c9791bee7d9ffab7a2 | ad2f566f50c3c9c013d412af683e1c6875e63cb2 |
refs/heads/master | <file_sep># Huawei_Honor_Cup_华为
<b>Problem:</b>
<br>
An image was divided into a grid of <b>m</b>x<b>m</b> squares and shuffled. Reconstruct the original image
<b>Solution approach:</b>
<br>
For each square block in the shuffled image, calculate the root squared difference between it's
borders and all the other block... | 4478d5ee508e9d203ddadc569ac18edb597f7492 | [
"Markdown",
"Python"
] | 3 | Markdown | Lucas1Jorge/Huawei_Honor_Cup | 0343c1e11161324295b5224e1c058d305643b6e9 | a191721506ca935b899d34c864adbd564ae56fff |
refs/heads/master | <file_sep>import graphene
from graphene_django.types import DjangoObjectType
from .models import Snippet
from datetime import datetime
class SnippetType(DjangoObjectType):
class Meta:
model = Snippet
class Query(graphene.ObjectType):
all_snippets = graphene.List(SnippetType)
def resolve_all_snipp... | 9b6fe61748d45d9af3a997dee6f9688ef12420c1 | [
"Python"
] | 1 | Python | jayant3787/DjangoGraphQLTest | be03ff3714c51528357a705b0481256b16e86215 | c96d5b6fe9fce49797fe4a539079322cd4a381be |
refs/heads/master | <repo_name>lzjin/SideBarView<file_sep>/sidebar/src/main/java/com/lzj/sidebar/SideBarLayout.java
package com.lzj.sidebar;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util... | f949d3d6e3d3b27bf16978591655cd77cf09da84 | [
"Markdown",
"Java",
"Gradle"
] | 8 | Java | lzjin/SideBarView | 1810123285fff7878896e8aed26a72bcde959118 | 566fa0ab44a1755344f92f56664797d9c8a6587a |
refs/heads/master | <file_sep>import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import requests
import json
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
pass
else:
ssl._create_default_https_context = _create_unverified_https_context
source_brad... | 9c1532b7536788446f493e0fca4af4df2a95d99f | [
"Python"
] | 1 | Python | analetisouza/taxa-dolar-credito | 89a81f05107d8847223c558bf7178b808862b904 | aa83c5df0ac8ee684b27580fcae56b5fdee8dc76 |
refs/heads/main | <repo_name>gilrg18/epamFront<file_sep>/myshop/src/modalComponents/AddModal.js
import { Modal, Button, InputGroup, FormControl } from 'react-bootstrap';
import React, { useState } from 'react';
import Api from '../API/Api';
const AddModal = (props) => {
const [item, setItem] = React.useState({
itemID: "",... | 8fa13d6d32368e070f84bd503295fc58e9bbbb51 | [
"JavaScript"
] | 13 | JavaScript | gilrg18/epamFront | 38a65d07fce49e7a4c98eb108694b7e93d9f5145 | 22ed9156a26b150a1e51ce940dc11aa10b1dc176 |
refs/heads/master | <repo_name>wangwanchao/Talk<file_sep>/Talk/Home/Model/UserModel.class.php
<?php
namespace Home\Model;
use Think\Model;
class UserModel extends Model{
// public function __construct(){
// parent::__construct();
// echo '\Home';
// }
//规定属性命名$_scope
protected $_scope = array... | 6491ded517a5499761b4cf477b72c3fc8c23107e | [
"PHP"
] | 4 | PHP | wangwanchao/Talk | ba88e85dcc4e2ca5dbdc370d6418fc873b8e6749 | 034a0ecbf18a4c054219f6dfc035d2aef879c8ec |
refs/heads/master | <file_sep>//
// ViewController.swift
// TriviaGame
//
// Created by 24NilaDharmaraj on 7/18/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
var questions = ["Which singer’s real name is <NAME>?", " What is the name of Batman’s butler?", " What... | 7e606c179bb7846e542b21b715611aba88cd357b | [
"Swift"
] | 2 | Swift | niladharmaraj/TriviaGame | f9b22d5bcc35e7c33b1128be00412c9a9dd58dd3 | 5406480fd1942d70ec99d61224d3cc36adef1269 |
refs/heads/master | <file_sep># data-structures-kata
Practicing data structure manipulation
<file_sep>const {
LinkList,
pushNode,
unshiftNode,
insertNode
} = require("./linkedLists");
describe("Linked List", function() {
it("should have its own value", function() {
const actual = new LinkList("Sam");
expect(actual.value... | 593751de71fbc4a4b729fc543511d6ef98d3c8a8 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | EthanEFung/data-structures-kata | ee15e27fbfefd6c84d6387ed71c5813d0c3b3b78 | a051695e56fdd0c6750f623fe1ab9ebfd58eb9ee |
refs/heads/master | <file_sep>package per.owisho.book.thinkingInJava.chapter21_2_2;
public class Exercise21_2_2_1{
public static void main(String[] args) {
for(int i=0;i<5;i++){
new Thread(new Exercise21_2_2_1Thread()).start();
}
System.out.println("线程启动结束");
}
}
class Exercise21_2_2_1Thread implements Runnable... | 0dd02914e2d2baee92f6da95b46714201a0643cb | [
"Java"
] | 1 | Java | owisho/thinkingInJava | 2e1659050b1cd0a42fb6dd43f43630999ddf4ef5 | e3e688830531c7070bf9c5046763299908d6793c |
refs/heads/master | <file_sep>Quick and dirty multiple choice grader; answer key needs to be UNnumbered, test number lines need to correspond to questions. Note that it uses substring matching to determine the correct answer, so it is VERY easily abused. But the output gives you everything at a glance, so this is still relatively useable ... | d1bfe67c95d6e67f85affa5acf34a9c60aa98d62 | [
"Markdown",
"Shell"
] | 2 | Markdown | jrm4/mc-grader | 5a69b40133a9f0a84f25be17f9c084db89212fc8 | b910de96905aba36bda4f2c32978ab7da51d623c |
refs/heads/main | <repo_name>frozenca1ne/Arkanoid<file_sep>/Assets/Scripts/PickUps/PickUpBallScale.cs
using UnityEngine;
namespace PickUps
{
public class PickUpBallScale : MonoBehaviour
{
[SerializeField] private float scale;
private Ball _ball;
private void Start()
{
_ball = FindObj... | dfc196ad45053ed7c5d933d188f5984e98180b5a | [
"C#"
] | 17 | C# | frozenca1ne/Arkanoid | 8b0f95fb8636123d0b539714af4838a9f1caf036 | 61b1dfc90168b82747869252c83ae3861f44d071 |
refs/heads/master | <repo_name>arga1234/garuda_indonesia<file_sep>/production/bismillah.php
<!-- Buat Preview Data -->
<?php
// Jika user telah mengklik tombol Preview
if(isset($_POST['preview'])){
//$ip = ; // Ambil IP Address dari User
$nama_file_baru = 'data.xlsx';
// Cek apakah terdapat file data.xlsx pada folder... | 9bd261505d9aa3d190a403d0ba2f171c31ffa2d0 | [
"SQL",
"PHP"
] | 4 | PHP | arga1234/garuda_indonesia | b68466bb296a8f3dfc6850cd636de5d45e3c44f4 | a7baad8d1a98e25b5db2982687235ddc320108f7 |
refs/heads/master | <repo_name>bzalasky/tcomb<file_sep>/test/getTypeName.js
/* globals describe, it */
var assert = require('assert');
var t = require('../index');
describe('t.getTypeName(type)', function () {
var UnnamedStruct = t.struct({});
var NamedStruct = t.struct({}, 'NamedStruct');
var UnnamedUnion = t.union([t.String, t.N... | c9856b9ecadbb637c80f3dfd3f38ea136c61dae2 | [
"JavaScript"
] | 1 | JavaScript | bzalasky/tcomb | 46fffa7f3b5ce80186bce6467f0995d82407d3cf | 47faa08df11f7f56ac4d5ccad8f12b53acba37a4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.