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>EzaiLWade/WWX<file_sep>/pages/music/music.js
Page({
onLoad:function(options){
var that = this;
wx.getSystemInfo({
success: function(res){
that.setData({
scrollHeight: res.windowHeight - 75
})
}
})
},
onReady: function (e) {
// 使用 wx... | 3c6919a989cb30d9cf25b57115be87f0a762ad46 | [
"JavaScript"
] | 1 | JavaScript | EzaiLWade/WWX | ae01ea21541a3cf8822d47361f002c77f2e01047 | ff36e61370c5135b560f18a899c6e9422af0c3c6 |
refs/heads/master | <repo_name>PaladinHZY/ZYNQ_AXI_Test<file_sep>/build/Makefile
setup:
vivado -mode batch -source ZYBO_AXI_Test.tcl
clean:
rm -rf *.log *.jou project_1
build:
vivado -mode batch -source build.tcl
sdk:
xsct sdk.tcl
<file_sep>/sdk/AXI_Datalink_Test/src/main.c
/*
* main.c
*
* Created on: Jun 8, 2018
* Autho... | b88069a4a5d4e38fa106e21bd36d1fee26e76bbc | [
"C",
"Makefile"
] | 3 | Makefile | PaladinHZY/ZYNQ_AXI_Test | 6bd60fffb30f19017470eb37a7c36126e4578fb3 | bbd09ef062a4ad5f5214b527a2736ccf1ac5156e |
refs/heads/master | <file_sep># vim-neon-dark
A dark theme for vim/neovim based on MattDMo's SublimeText [Neon-color-scheme](https://github.com/MattDMo/Neon-color-scheme).
Please note that this theme has slightly diverged from the parent theme over time as more and more specialized syntax groups were added to the original.
![neon-dark e... | 1a773bd4bb441b33747c2f1eb2f8d5f9d0d77175 | [
"Markdown",
"PHP",
"Lua"
] | 3 | Markdown | nonetallt/vim-neon-dark | 22d7a6c34aa15b834842b6759d3733fa34622abc | f22befa8fa9341be1ac9bf97d7eb474bb73001de |
refs/heads/master | <repo_name>KamillaKatz/flickr-gallery<file_sep>/src/components/App/App.js
import React from 'react';
import './App.scss';
import Gallery from '../Gallery';
class App extends React.Component {
static propTypes = {
};
constructor() {
super();
this.fullScreenImage = this.fullScreenImage.bind(this);
... | 990b5ba3a84980e8f4512cfda6a312aea76908b0 | [
"JavaScript"
] | 2 | JavaScript | KamillaKatz/flickr-gallery | 6e867aa7b9dec7f7cd47e018543a6723bc28daf9 | fa8dfe15edb20dd45a908bf5fd3b79ec13957061 |
refs/heads/main | <repo_name>VSADX/postoffice.js<file_sep>/README.md
# PostOffice
PostOffice helps you create *more* reusable functions.
+ **Powerful**: PostOffice lets you create simple functions, then bind any of the parameters you choose.
Like `.bind` in JavaScript, binding a parameter creates a copy of your function. This w... | c06f11ac2fbb04cb00ee8c9841f39a6ef38eee57 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | VSADX/postoffice.js | da5440e4a08b05b4ed8c48dda5febe590e802793 | 4c360cb7e198f72b7dd5a3dbd55c9d2341c87de1 |
refs/heads/master | <repo_name>lfeitosa/homologator<file_sep>/Homologator.py
import json, requests, os
import sys
import smtplib as s
from email import encoders
from email.mime.text import MIMEText
from email.MIMEMultipart import MIMEMultipart
from dictor import dictor
import requests
def main():
banner()
opcao_menu = int(input... | d4a20ab5d3c6f17d81ef743c29e5dab048d918bb | [
"Python"
] | 1 | Python | lfeitosa/homologator | bce23f481f8019dd7bc94c1e8d95bbc8ca1b84ff | f6546574be5e5706bd5f72cd2f8ab0f092b7bb67 |
refs/heads/master | <file_sep>var mongoose = require('mongoose');
// Comment Schema
var CommentSchema = mongoose.Schema({
autor: String,
comentario: String,
data: String,
dataCompleta: String,
email: String,
site: String,
outros: String,
})
module.exports = CommentSchema;<file_sep># Blog template
Template de blog usando roteament... | 6c32a2c835a5f4622eebfae089401de5216671f0 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | wilkerHop/blog | 0904b9559f054f09a38dd2f0e829eb7fb88a8bc7 | 7081ff5aa3c5180cb4046e17abfc0a41e7c12a80 |
refs/heads/master | <repo_name>danico90/yii2-boilerplate<file_sep>/web/src/js/pages/page.js
/*
* Page
*/
console.log('Page');
<file_sep>/web/src/js/components/component.js
/*
* Components
*/
console.log('components');<file_sep>/db/1.sql
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- ... | 799a7f0a6f034665623fa7c0613b630bd6f20da8 | [
"JavaScript",
"SQL"
] | 3 | JavaScript | danico90/yii2-boilerplate | 0c62653cf6719fc04ab01632e54b512a2d36ae75 | 9eecbe4caefb41a0f623c1b766539778c3e52a45 |
refs/heads/master | <repo_name>ibanez1/lab-angular-data-binding<file_sep>/starter-code/src/app/food-list/food-list.component.ts
import { Component, OnInit } from '@angular/core';
import foods from '../foods';
@Component({
selector: 'app-food-list',
templateUrl: './food-list.component.html',
styleUrls: ['./food-list.component.css']
... | ef23e5b3ed876bca5a423a5eb2a9a9044f248544 | [
"TypeScript"
] | 1 | TypeScript | ibanez1/lab-angular-data-binding | 66af0ff072fd4b576a6326431bec6251d43e4025 | eb0265e9d455ab5cab9cbab0c938830eb00d3168 |
refs/heads/master | <repo_name>shihanng/gogettext<file_sep>/README.md
# gettext in golang
[](https://travis-ci.org/ojii/gogettext)
## TODO
- [x] parse mofiles
- [x] compile plural forms
- [ ] non-utf8 mo files (possible wontfix)
- [x] gettext
- [x] ngettext
- [ ] ma... | 5f8e82c36de4ef61e043961a00c29d85fc48ff60 | [
"Markdown",
"Go"
] | 5 | Markdown | shihanng/gogettext | 4c4e0aec8eba8f2842e06db9cc7f0a3789666371 | 19b1a1603525efb3ae2f5d59f0dea268700f8b8a |
refs/heads/main | <file_sep>hIIIIIIIIIIIIIIIIIIIII!!!!
| 02aba9249e4919292b5f419c5aac665091a0be3c | [
"Python"
] | 1 | Python | eshmet/gitinitpython | dc459df3dfd850be06a67f6f558bc8b62d11a8ee | 099ba3e21677eff6c514b483780a256689b6ee71 |
refs/heads/master | <file_sep>import path from 'path';
import { Request, Response, Router } from 'express';
import http from 'http';
import LoggerFactory from '../util/LoggerFactory';
import { async } from 'q';
const logger = LoggerFactory.getLogger();
export class DispatchController {
/**
* GET /
* Home page.
*/
... | 1c6e5f117d6f75c3598d4387ea3ebd485cadf32e | [
"TypeScript"
] | 1 | TypeScript | tomatono-git/ts-express | 13d39d2989948c9e3404cfaa749cb30943a0d909 | a75a3130ed7c0d269382c100bf0b058f96b178f7 |
refs/heads/master | <repo_name>GalDude33/SnakeRL<file_sep>/policies/policy_ConvDQN.py
from keras import Sequential
from keras.layers import Flatten, Dense, Conv2D, BatchNormalization
from policies.policy_BaseDQN import BaseDQN, SQUARE, NO, FLIP, SPATIAL, FULL
class ConvDQN(BaseDQN):
"""
A Deep Q-Learning implementation with a C... | 843e7dc80b337f0fb4079ae05a08f7daa180ecf5 | [
"Markdown",
"Python"
] | 14 | Python | GalDude33/SnakeRL | e6161f1aad3c8d1ea54975efb0cd7c21b1736867 | c30c0ad799308a244cd0226caaf07890a22ffc90 |
refs/heads/master | <file_sep>require 'sinatra'
require 'uri'
require 'net/http'
Sinatra.new do
configure :production do
require 'newrelic_rpm'
end
get '/' do
if params[:uri] && params[:callback]
handle_jsonp_request
else
handle_invalid_request
end
end
def handle_jsonp_request
json = Net::HTTP.... | 202ca124bdc171c46d5b453117dc110457ca6924 | [
"Markdown",
"Ruby"
] | 2 | Ruby | 6/jsonpfy | 101193835f891c5abd054146020eda991e96bdff | f9f25b18bc69a938b8c31b701e50d5353c5a519c |
refs/heads/master | <file_sep>import { useState } from "react";
const useFetch = (url) => {
const [isLoading, setIsLoading] = useState(false);
const [hasError, setHasError] = useState(false);
const [searchResult, setSearchResult] = useState(null);
const fetchFunction = async () => {
try {
setIsLoading(true);
con... | ae39785f7733fe3f8a96471fa25f870143c56e8c | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | Marwa-kwara/React-Project-class-31 | 6a79bc7c51ebf6e142a0c840334e1ff534dd7fea | afc8fc020e83a3d7e5e0f961584ce95250db7521 |
refs/heads/master | <file_sep>const mongoose = require("mongoose");
const dbUrl = "mongodb+srv://Waleed:1458@cluster0.h9e71.mongodb.net/<dbname>?retryWrites=true&w=majority";
mongoose
.connect(dbUrl, {
useNewUrlParser: true,
useCreateIndex: true,
useUnifiedTopology: true,
})
.then(() => {
console.log("Database Conne... | ba028ee8cea4341e12098b386a563f5384a0c309 | [
"JavaScript",
"Markdown"
] | 40 | JavaScript | hamzaasmat/hashcrafts | 9f1c03a40e6c54f91ce5295aea918bdff09e7d74 | d0652fb46a983b5bc209c260cbcf79600a67c4ce |
refs/heads/main | <file_sep>import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import { App } from '../App';
import Plot from 'react-plotly.js';
// How to test React components developed using React-Plotly
// https://github.com/plotly/react-plotly.js/issues/176
describe.skip('com... | 8caa67ad74abf27c3f8df65fefc47fbb6a9e0151 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | spialelo/redux-refresher | 8328fb65eeddb6308447a32e864bc3d3b6af5a3b | 47c0f140a95b5b9d7d49579f3773545b26d708ff |
refs/heads/main | <repo_name>RoniLandau/VimeoQA<file_sep>/Test Suites/UserTestSuite/VimeoQA.ts
<?xml version="1.0" encoding="UTF-8"?>
<TestSuiteEntity>
<description></description>
<name>VimeoQA</name>
<tag></tag>
<isRerun>false</isRerun>
<mailRecipient></mailRecipient>
<numberOfRerun>0</numberOfRerun>
<pageLoadTimeo... | c8f45f26304e3045c5ecf392ce89afc9ef78308b | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | RoniLandau/VimeoQA | 5c17248cc9b4de8754ecaad4c24587393be49d3b | d1e69835a0b250e11fa8239848d5734164888dd0 |
refs/heads/master | <repo_name>BartoszMakowski/put-various-exercises<file_sep>/mwp-arduino-dht11/termometer.ino
#include "DHT.h"
#define DHTTYPE DHT11
const int LED1 = 8;
const int LED2 = 9;
const int LED3 = 10;
const int BEEP = 11;
const int BUTTON = 7;
const int DHT_DATA = 2;
int F;
float humidity, temp;
bool beep_status;
DHT dht(DHT_... | 97f7bf7e0ab730151883596771970e4c960f5037 | [
"C++"
] | 1 | C++ | BartoszMakowski/put-various-exercises | 9cfa5fe4625622a3568f5a39d2d45d3ebfedaced | 3134235c93428c6b9bff9d473b4675ffe7678d6e |
refs/heads/master | <repo_name>binwick/angularjs-learning<file_sep>/code/041-jquery/app/index.js
var app = angular.module('app', []);
app.controller('firstController', ['$scope', '$filter', '$location', '$anchorScroll', function ($scope, $filter, $location, $anchorScroll) {
$('.multiple_upldprev:last').each(function () {
// al... | 41facda0111aa12a6f0123e65f6049facfa01019 | [
"JavaScript"
] | 9 | JavaScript | binwick/angularjs-learning | 162583b2c59faee6c438dded2512d7b177dfeebb | ef2742716b59d9255858f2263f50127ce6419dd1 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
import tensorflow as tf
from utility import *
import os
import scipy.io as sio
import numpy as np
import math
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
config = tf.ConfigProto()
#config.gpu_options.per_process_gpu_memory_fraction = 0.9
#con... | 31b428b72a4c8a1d709b6508f57a89274a58896f | [
"Markdown",
"Python"
] | 4 | Python | nullhty/DRCN_Tensorflow | 9c9c0b7e305125eda01cc6db468f353a1173514f | ecabe6a8994321790c9268b0bd061ef707a7c15e |
refs/heads/master | <file_sep>const Component = require('./component-files');
const fs = require('fs');
const YAML = require('yaml');
const path = require('path');
class Structure {
folder = "./src"
static isArray(obj) {
return obj.length !== undefined
}
constructor(configFile, folder) {
const file = ... | 3cb9b9753b50ea52ae090df2e095fcfd26cf111c | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | leonidpodriz/create-react-components | 097397e6fbb9ea8717db99807825a892c631fbd0 | 5b8832f901d43d66814c9e5f9fa7f6f07795cfdf |
refs/heads/main | <repo_name>ukun1708/UserInterface<file_sep>/Assets/Scripts/Scrolling.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Scrolling : MonoBehaviour
{
public GameObject scrollContent;
private Coroutine coroutine;
public void scrollVerticalPlus()
{
if... | a0f3891e53d749d9ba68fa37fd28fa07da9827de | [
"Markdown",
"C#"
] | 8 | C# | ukun1708/UserInterface | d2b251080bde80fd6bb886fae109dab5be1ec9ca | 1dc8ebfdf4d4f281d18562a94de71eb510b4175b |
refs/heads/master | <file_sep>// Test away!
import React from 'react';
import * as rtl from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import Controls from './Controls';
afterEach(rtl.cleanup);
let wrapper, toggleLockButton, toggleCloseButton;
const mock = jest.fn();
beforeEach(() => {
wrapper = rt... | a131d1ebc269ec2b7d9dfbbf0a29b44f07f181c2 | [
"JavaScript"
] | 1 | JavaScript | Funmi7/webtesting-iii-challenge | bc40577d439b20e9f1bb34fb9e080e2dc39f3813 | 409a3d22aa4e48d4102aa44f870896ce1d2ac40a |
refs/heads/master | <repo_name>Rafael-Soares/ProjetoFinal<file_sep>/DesenvolvimentoBack/apps/institucional/migrations/0017_auto_20210411_2236.py
# Generated by Django 2.2.20 on 2021-04-12 01:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('institucional', '0016_auto_2021... | f2963f08189a832aaf413b7627cbe864fc80c1ee | [
"JavaScript",
"Python",
"Text",
"Markdown"
] | 30 | Python | Rafael-Soares/ProjetoFinal | 604edb949ef91d6482778edab835f427c08e8369 | 4cadfd5fb5af9f628592a7f8d742793631d31cf2 |
refs/heads/master | <file_sep>package main
import (
"fmt"
_ "github.com/nativeborncitizen/dm/storage"
)
func main() {
fmt.Println(`Date&time management system
v. 0.1b`)
}
<file_sep>package storage
import (
"testing"
"time"
"github.com/nativeborncitizen/dm/storage"
)
func TestNewTask(t *testing.T) {
a := sto... | 2d39fa7d29254f44cb98105fa4e3001808b53ce2 | [
"Go"
] | 4 | Go | nativeborncitizen/dm | 6bf53065da17499cd476be5a68e95d0255ed11a3 | bbf477fa56bc21503ebca9cf1301f946af4f692c |
refs/heads/master | <repo_name>yalov/yalov.github.io<file_sep>/_drafts/example.md
---
layout: post
title: Пример
project: false
post_on_sidebar: false
fullwidth: false
hidden: false
permalink: example # if don't want /year/
tag:
- tag1
- tag2
category: category1
disqus_comments: true
disqus_identifier: 5959e11a-f0e8-5b4e-838d-0... | 357f46a25355a57b068f909f01b1dd6373f16bd3 | [
"Markdown",
"JavaScript",
"HTML",
"Ruby"
] | 20 | Markdown | yalov/yalov.github.io | d05e61ed88c6a8da5863cba8d395faf8ebce4d35 | 41470f1be4c41e199fa23ab6ff057155fb7c2391 |
refs/heads/master | <file_sep>import React, {createContext,useContext, useReducer} from "react";
export const StateContext = createContext();
export const StateProvider = ({reducer,initialState,children}) => (
<StateContext.Provider value={useReducer(reducer, initialState)}>
{children}
</StateContext.Provider>
);
//T... | 968e7df25e4d831d92dfd7dc2efd6e6c76ba1147 | [
"JavaScript"
] | 3 | JavaScript | abdulazizcode/amazon-clone | ec35a5f642c1b1e266a922963a599acf5e2951a6 | bb99fc1ac2f51707c781eb373aef33c1274d108e |
refs/heads/master | <repo_name>goodapiyes/LinuxCmd.Net<file_sep>/LinuxCmd.Net/Models/LinuxVmstatInfo.cs
namespace LinuxCmd.Net.Models
{
public class LinuxVmstatInfo
{
/// <summary>
/// 处于运行的状态的进程数
/// </summary>
public int run { get; set; }
/// <summary>
/// 进程被cpu以外的状态给阻断了,
... | 9544c4bae16fca4e3c7f31f11c494623d3252486 | [
"Markdown",
"C#"
] | 23 | C# | goodapiyes/LinuxCmd.Net | 0d8836dda3d67f0c712540b2da59d2e419123fc9 | d48481808a0536ba6f26ee1d2c1bd6e8518e399e |
refs/heads/master | <repo_name>jhsziit/wechat<file_sep>/src/router/index.js
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const router = new Router({
routes: [
{
path: '/',
component: r => require.ensure([], () => r(require('../pages/index'))),
children: [{
path: '',
redire... | 2e11480c96b861545ff8a2dca0f94b42c919c65a | [
"JavaScript"
] | 4 | JavaScript | jhsziit/wechat | a42684dbd3622cab1ca86983c878c962f8ab43d4 | 455faeb08622dbb93c8ed101f69cccfc792541ce |
refs/heads/master | <repo_name>Damian96/my-configs<file_sep>/shell/ytdl.sh
#!/bin/bash
link="$(youtube-dl --get-url --format bestaudio/best $1)"
ffmpeg -i "$link" -c:a copy out.mkv
wait
unset link
exit 0
<file_sep>/shell/starwars.sh
#!/bin/bash
telnet towel.blinkenlights.nl
exit 0
<file_sep>/shell/sptest.sh
#!/bin/bash
# Insta... | 7f16162d36d5a42fc3a4cc5e52f0c93ee04b6dc0 | [
"Markdown",
"Shell"
] | 4 | Shell | Damian96/my-configs | ca8c5b09ff3a6dbb264acc1d058620e808a93535 | b95874f2057f538c4f5004abae8092c5484fb156 |
refs/heads/master | <file_sep><?php
require_once("common.php");
require_once("twitter.php");
$debug=1;
require_once('/www/govalert/streams/interpol/tasks.php');
interpolIzcheznali();
interpolProcessIzcheznali();
?>
<file_sep><?php
/*
links:
0: новини http://www.nek.bg/cgi?d=101
*/
function nekSaobshteniq() {
setSession(6,0);
ec... | e4b7d78ba2f1f5af7f1b26a49300750586abe48e | [
"PHP"
] | 5 | PHP | aquilax/GovAlert-framework | ce5b20a4909eba30eca874793b3635e4211ed141 | e61362ace3cd88ceede3f95c3f07ca80087c4515 |
refs/heads/master | <repo_name>masterdodo/Hoteli<file_sep>/iud/nov_hotel.php
<?php
if (isset ($_POST['submit']))
{
session_start();
//Zahtevam povezavo na bazo
include ('../x/dbconn.php');
//Urejanje slike
$username = $_SESSION['username'];
$hotel_name = $_POST['name'];
$picture_path = "../assets/hotels/";
... | 6ba3545af345a2c1384d4b27578b9a09cc179935 | [
"JavaScript",
"SQL",
"Markdown",
"PHP"
] | 22 | PHP | masterdodo/Hoteli | dacde95f73f8f306175e61be259f72ed8c2a1c93 | b33f2975a95b89d24e08461f065a2e451a156fc2 |
refs/heads/master | <repo_name>dberman4/TicTacToe<file_sep>/P11.java
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
public class P11 {
private static final int STARTING_MOVE = 4; // the first move of the player X
private static char winner;
private static int numOptimalSolutions = 0;
public static... | d338eed3c4c9f3bf067292225ff8e9342d96a455 | [
"Java"
] | 1 | Java | dberman4/TicTacToe | 815483d928e5cd83a9e102d1734e325666f69e91 | 075def32bb758f89ef469655ea769ac3dcc3dce1 |
refs/heads/master | <file_sep>import os, sys
lib_path = os.path.abspath(os.path.join('..'))
# cur_dir_path = os.path.abspath(os.path.join('.'))
sys.path.append(lib_path)
# sys.path.append(cur_dir_path)
import unittest
import proj10
import cards1
import cards
import pickle
cards = cards1
class TestProj10(unittest.TestCase):
"""
... | 9eeb45dd91033ee0f83f12c5eb559a896b6a9f5b | [
"Python"
] | 1 | Python | atbe/CSE-231-Project10-UnitTest | a91c45197a80bc1c78b33d41413c3d6315857130 | 0a0ff6204200f4e16d735ec16cf59b4b5f67bfe1 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/// <Summary>
/// This file contains some utilities commonly used.
/// </Summary>
namespace TFSCodeCounter
{
public class CounterConfig
{
public string Tfs { get; set; }
public string Project { get... | 94acfd58c80681c8f26a634e159ca855f406630f | [
"C#"
] | 2 | C# | mummily/TFSCodeReviwer | eea9db645a0f083e7e33a6c59d80ff21ccf6bd34 | 398f0d3c0244105623c146a0c6d0bfc22c98abfb |
refs/heads/master | <repo_name>stackbit-projects/smart-lavender-18342<file_sep>/gatsby-config.js
require('dotenv').config()
module.exports = {
siteMetadata: {
title: `Gatsby Agency Portfolio`,
description: `A portfolio for your creative shop`,
author: `@JacobKnaack`,
},
plugins: [
`gatsby-plugin-eslint`,
`gatsby... | 5e6d6833302d00a88a207d3ecc54af29b0c15b86 | [
"JavaScript"
] | 1 | JavaScript | stackbit-projects/smart-lavender-18342 | df2d8fabc24b1cdcf060ba9a8b23da2d42c03b01 | cafcd41064d3d40833122378b796b1d86d1a9ed1 |
refs/heads/main | <repo_name>nguyenthanhlongcoder/ApplePie<file_sep>/ApplePie/ViewController.swift
//
// ViewController.swift
// ApplePie
//
// Created by Apple on 03/03/2021.
//
import UIKit
class ViewController: UIViewController {
var listOfWords = ["buccaneer", "swift", "glorious", "incandesent", "bug", "program", "huta... | a6dd2cc131c45ef575fe81d9249e64435a89e9b8 | [
"Swift"
] | 1 | Swift | nguyenthanhlongcoder/ApplePie | 52838c40a201f104f83c732d66ff5c98daaba695 | 0b8f37e3bcf93453f128efb7b6eae5c906953afa |
refs/heads/master | <repo_name>briandixn/python_scrapper<file_sep>/prac.py
"""for the shell . ./venv/bin/activate"""
from bs4 import BeautifulSoup
from mathematicians import simple_get
"""from the blog"""
raw_html = simple_get('https://realpython.com/blog/')
"""----len(raw_html)"""
g_html = simple_get('https://soundcloud.com/theaipodca... | efad2ba7044e0fae50040fc6ae144f6acd74fb41 | [
"Python"
] | 1 | Python | briandixn/python_scrapper | ca5cfff8b01c847dfaa6733798532dcd1969e485 | 0f30a25af3beffd9197816fd65e4d56d8ed36dbd |
refs/heads/master | <file_sep>def calculate_discount(item_cost, relative_discount, absolute_discount):
if item_cost < 0:
raise ValueError("Item cost cannot be negative")
elif item_cost == 0:
raise ValueError("Item cost cannot be zero")
if relative_discount < 0:
raise ValueError("Relative discount cann... | 2a550660812297e9d11f91af2fa84ad2d13771c3 | [
"Python"
] | 2 | Python | bxb0451/discount_calculator | 6184079dcbcac6aca33de945142e7da5194f22b2 | dbeff1c6c908452710adab489600ec1e58235570 |
refs/heads/master | <repo_name>smadhumitha11/AutomationFramework<file_sep>/src/main/java/AutomationFramework/pages/LoginPage.java
/*Author : <NAME>
*************************************************************************
Elements of Login Page is identified and Actions for login page defined
*************************************... | 8bc1957302b0d2fcd8f40c4c84afb09bc8b124e3 | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 5 | Java | smadhumitha11/AutomationFramework | 43bf99556135f3cb2860ae8a4c9ae9b5a721c1bd | c1646e8ed2a82b72f7722a21f4cf9806f84b9723 |
refs/heads/master | <repo_name>segunAA/tbible<file_sep>/db.py
from sqlalchemy import create_engine
from datetime import datetime
class Bible():
reader = create_engine("sqlite:///ampc.sqlite3")
def __init__(self):
pass
def getBook(self, book):
sql = ''' SELECT osis, human, chapters
FROM books
WHERE human = '{book}' OR... | 63c7ba726e44afc7c8f200e13e7aa72e26b70390 | [
"Python"
] | 3 | Python | segunAA/tbible | c572717f94230a871a756ae828e5e93686be9ed3 | fbf1c172ac2079e959203980b33f3c530c3ef982 |
refs/heads/master | <file_sep>import { Component, OnInit,EventEmitter, Output } from '@angular/core';
import { MouseEvent } from '@agm/core';
@Component({
selector: 'app-map',
templateUrl: './map.component.html',
styleUrls: ['./map.component.css']
})
export class MapComponent implements OnInit {
@Output('seleccionarEvent') selec... | 13f8a2ba6ace50c2d3426cd4e4b153e824c66a41 | [
"TypeScript",
"HTML"
] | 4 | TypeScript | albert0ns/weather-map | 97134807abfadbbc9c413b6a6e69ccb5fb03ca0f | fac4b0551bc832126313f42c956afc318e3fc0d5 |
refs/heads/master | <repo_name>ericmasiello/stylelint-config-ericmasiello<file_sep>/index.js
module.exports = {
bem: require('./bem'),
cssModules: require('./cssModules'),
};
<file_sep>/.stylelintrcBem.js
const { bem } = require('./');
module.exports = bem;
<file_sep>/__tests__/bem.test.js
const { bem: config } = require('..');
c... | c6b5252b9f543512eb761135cbfdb02054ca4b99 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | ericmasiello/stylelint-config-ericmasiello | edf5b6358c4f05edb51c289f74d7210d1e29de04 | ef0a480669d051bce0e7eaffcda3906f18c6972b |
refs/heads/main | <file_sep>/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function main(a: number, b: number): number;
export function __wbindgen_malloc(a: number): number;
export function __wbindgen_realloc(a: number, b: number, c: number): number;
export const __wbindgen_export_2: WebAssembl... | a7d8d492060ba4d4745b5f99b1db3fc679ff974d | [
"Markdown",
"TOML",
"TypeScript",
"Rust"
] | 9 | TypeScript | cldershem/iced-rs-website | 951ad5e986569bdd05b697b8c9629850b898c7ec | a82125a3d830dd65b53d431e0c6344993fdf72ec |
refs/heads/master | <repo_name>FultonSlide/ReactRouter<file_sep>/src/reducers/rootReducer.js
const initState = {
posts: [
{id: '1', title: 'Flash Flooding in Melbournes East', body: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veni... | 069b101c89ca593a0a3e631d8dfdcd3b08d5d042 | [
"JavaScript"
] | 1 | JavaScript | FultonSlide/ReactRouter | 0f2e9ed72a7584b5ee7d1e238593c5f34146edd4 | 6a2d66f91224293d63a4e786f4565e9f2370be58 |
refs/heads/master | <repo_name>phnavarrete/backend_TPN3<file_sep>/tp3_backend.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TRABAJO PRACTICO Nº3</title>
</head>
<body>
<h1> EJERCICIO 1 </h1>
<h2 style="color:BROWN">
<?php
$n=1;
while ($n <= 100) {
echo "$n</p>";
$... | 64473235f3033090223882fa3342b9817aa38e6e | [
"PHP"
] | 1 | PHP | phnavarrete/backend_TPN3 | 7c43cddcda7635ebcbb2f67041e0abcf59de200d | 9ba6d0be33d147aaacb71d67a811c174c76931f6 |
refs/heads/master | <file_sep>---
title: hexo_github
date: 2016-11-15 15:13:06
tags:
---
steps:
1.local
============
1.1 download nodejs
https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-x64.tar.xz
1.2 uncompress
tar -Jxvf
1.3 sudo cp -ar node... /usr/local/
1.4 set node and npm PATH
export NODE="/usr/local/node"
export PATH... | b429c3085d99ce7258f1f618f7e8e73658f85cd3 | [
"Markdown",
"C"
] | 4 | Markdown | spartacus429496/nature | c77f8d11a91f7d4ab35b7b3f9f045f3ef998d64c | 75ba68c85834abfe8c5a7fda8ae6170ed25fbd48 |
refs/heads/master | <repo_name>JustynaJPL/ProAngular-SportsStore<file_sep>/src/app/model/order.model.ts
import { Injectable } from "@angular/core";
import { Cart } from "./cart.model";
@Injectable()
export class Order {
public id:number;
public name:string;
public address:string;
public city:string;
public state:string;
public zip:... | a2f92ff1af00f04890f40cc13b5bc651581cda8f | [
"JavaScript",
"TypeScript"
] | 7 | TypeScript | JustynaJPL/ProAngular-SportsStore | 527650f2ecde1c1998d3e5bb2b1051d25ff28c36 | 08a35dd220673e520792bc63675650c60c3a85ef |
refs/heads/master | <repo_name>sarthak77/Undo-Logging<file_sep>/20171091_1.py
import sys
def readinput(file):
"""
Returns contents of disk and transactions
"""
Disk,Tran=[{},{}]
with open(file,'r') as f:
#read first line
fl=f.readline()
fl=fl.strip().split()
for i in range(0,len... | 892bc9e9902f2a6e44c727937d24d5e6c1fb5eab | [
"Markdown",
"Python",
"Shell"
] | 4 | Python | sarthak77/Undo-Logging | b0b74a3ffa2f7edcb6d65d355415083533f76374 | a802ba9157a8a43c117f08fb8bd0aada6483cd7a |
refs/heads/main | <file_sep>import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
//Nous indiquons au moteur de rendu DOM que nous allons réhydrater l'app une fois qu'un rendu sera obtenu côté serveur.(méthode hydratation)
ReactDOM.hydrate(<App />, document.getElementById('root'));
<file_sep>import path... | 260d3184214e22e48db3bd00e5d1cdd49eb86a0a | [
"JavaScript"
] | 2 | JavaScript | Sentelnia/ssr_training | e0b5a2f4acafc289a999122776cecd0db50fe052 | 3f8c97d0460685fc26f77d7993059df9dee9ddf3 |
refs/heads/master | <repo_name>eastar-dev/EastarOperaXInterceptor<file_sep>/operaxinterceptor/src/androidTest/java/dev/eastar/operaxinterceptor/event/OperaXEventTestKt.kt
package dev.eastar.operaxinterceptor.event
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import dev.eas... | 0ce91a1d781f63684966795e693e4a4748624d98 | [
"Kotlin",
"Gradle"
] | 9 | Kotlin | eastar-dev/EastarOperaXInterceptor | 9151bdfb240c4f41fd9c36a6b6c56048d2ecd73e | 4e703b44adbafd82f68f9635af2690613bbab50b |
refs/heads/master | <file_sep>package com.ceej.controller;
import com.ceej.model.Article;
import org.junit.jupiter.api.*;
import org.mockito.Matchers;
import java.io.File;
import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.mock;
i... | 08c9b5c9a069fccb289ed6146dc8138d6fb350ef | [
"Markdown",
"Java"
] | 2 | Java | yuanfeif/Testing-Timeline | d848b872467ffb77e4ffc7bae40ebf273c8b9ecf | c6ea97e4623970d620d2f035978fd3f5595f8e60 |
refs/heads/master | <file_sep>## test
##test2
| 1c7ad5eef97c6a50941300b00af91e0aecaa985a | [
"Ruby"
] | 1 | Ruby | davehenton/doesitworkwith.js | 4192d1878777040f73d39e4db2bb3761e87cf005 | 5a716e37f26cd5ef577a2c2512aa6508366d7454 |
refs/heads/master | <repo_name>bmvermeer/jhipster-snyk-examples<file_sep>/src/main/java/io/snyk/bmvermeer/jhipsnyk/web/rest/vm/package-info.java
/**
* View Models used by Spring MVC REST controllers.
*/
package io.snyk.bmvermeer.jhipsnyk.web.rest.vm;
<file_sep>/src/main/java/io/snyk/bmvermeer/jhipsnyk/repository/package-info.java
/**
*... | 930c666293a1e18132f417f0e8f3b4534b5dc052 | [
"Java"
] | 4 | Java | bmvermeer/jhipster-snyk-examples | 9968e0d1efb6de0aa0957dba24391a77e6df3f78 | e401c151c77144e133bf64a125e1c7cd42943c24 |
refs/heads/master | <file_sep><?php
/**
* Created by <NAME>.
* User: smoqadam <<EMAIL>>
* Date: 8/13/2016
* Time: 8:22 AM
*/
namespace Smoqadam\Js;
use stdClass;
use yii\base\Component;
use yii\helpers\Json;
use yii\web\View;
class Js extends Component
{
/**
* Position in the page
*
* @var int|string
*/
... | 12930d088d2d3e05bbc03409043969f65b374531 | [
"Markdown",
"PHP"
] | 2 | PHP | smoqadam/yii2-php-vars-to-js | 931a9bb946b05717392abe520cea5d3952e02daa | 8fba6198af498633167f4d341193c37c91636e30 |
refs/heads/master | <file_sep># Surf-forecast
enter a coastal city and get current wave size and water temp.
Buttons to switch from Celcius to Fahrenheit and Meters to Feet.
REPL code: https://repl.it/@rmccorkle46/StunningWateryWebsphere
Link: https://stunningwaterywebsphere--rmccorkle46.repl.co/
<file_sep>
//stormGlass Api will retur... | 18279c8248ad42b2e70b07767aeb3778b8457863 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Aloha46/Surf-forecast | 84cd218faf5f6d2be1ac3ef5a1c10bfff50fff5d | 70b2e4c7801425c297b5c0d626c81d493a89c3b1 |
refs/heads/master | <file_sep><?php
/**
* Author: <EMAIL>
* Date: 8/24/15
* Hope this helps you, please at least leave my name in place
*
* Update 2017-05-03
* by <NAME>
* https://github.com/maruisd
*
* Thanks to avenirer, for putting me on this path.
*
* Load it
* $this->load->helper('fonticons');
* or
* autoload['help... | d5606d09af42d9fa649311bf4ebf59804701644a | [
"Markdown",
"PHP"
] | 2 | PHP | maruisd/ci-fonticons_helper | cd296b0c87e20cf6477e70c6b05c8b3da4cb68b1 | 99937806d01edcd17bd2b973299e3f4047bb7913 |
refs/heads/master | <file_sep>#include <oss_c_sdk/oss_define.h>
#include "aos_log.h"
#include "aos_util.h"
#include "aos_string.h"
#include "aos_status.h"
#include "oss_auth.h"
#include "oss_util.h"
#include "oss_api.h"
#include "oss_config.h"
#include "oss_sample_util.h"
void create_select_object_metadata(int* rows, int* splits)
{
a... | ec0283fc0dd6b46485adce5bf60034b470edc4a1 | [
"C"
] | 1 | C | qixu001/aliyun-oss-c-sdk | 901c2179638d1c3eaaf995a514b732ed32943dc6 | ac1b1331fe2b6d412e8d2e4d49adbb956bb6f3b7 |
refs/heads/master | <repo_name>heriyantoliu/codepipeline<file_sep>/main.go
package main
import (
"encoding/json"
"net/http"
"os"
"strconv"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamod... | 5547eddef3e8f4fe34de5f4f1b1f9b9d7c6c8f14 | [
"Go Module",
"Go"
] | 2 | Go | heriyantoliu/codepipeline | 4086c3e3d409eb10eeaad2032c9921f068a0483b | ee031d342c73cac85ca2a6eaea6ec5e11716b5ad |
refs/heads/master | <repo_name>Naincy47/DFS-1<file_sep>/floodfill.py
# Time Complexity : O(m*n)
# Space Complexity : O(m*n) Recusion stack
# Did this code successfully run on Leetcode : Yes
# Any problem you faced while coding this : -
class Solution:
def floodFill(self, image: List[List[int]], sr: int, sc: int, newColor: int) -> Li... | c222ed173f9315a1b061de883558c0e9e5ba515d | [
"Python"
] | 2 | Python | Naincy47/DFS-1 | 1aa6430a4c360d15a5a560ff761ff450a6164824 | 655291cf4c2cd73afa0bd53be4eb43a57e13721b |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Bean;
import DAO.PersonaDao;
import DAO.PersonaDaoImplement;
import Model.Persona;
import java.util.List;
import jav... | 25efdfc41d0c9c07963e8e7e169ba1f927ab9c7d | [
"Java"
] | 1 | Java | eloppezo/ssh---56a2725f0c1e66d76f00009b-jbosstest-demates.rhcloud.com---git-jbosstest.git- | ec4720cffa7d72d3caadb696befabc647d83e5fb | bbfe5580e8dac9aa2d9f49d9fe0f4fbfb8b03f06 |
refs/heads/master | <repo_name>jleeisme/arrayOfLight<file_sep>/arrayOfLight.js
function arrayOfLight(x) {
var array = [];
for (var i = 0; i <= x; i++){
array.push(i);
}
return array;
}
console.log(arrayOfLight(5)); | 4841a23334678a62a0fee4c5fc9a846749456120 | [
"JavaScript"
] | 1 | JavaScript | jleeisme/arrayOfLight | 282ba24d2b65f592d636b659b85b0ecf011a934c | c91be81559b972557ddc35ba7fd8a31b5356fafb |
refs/heads/master | <repo_name>OlaAcademy/microtao<file_sep>/src/main/java/com/xpown/mybatis/BaseMybatisDao.java
package com.xpown.mybatis;
import java.io.Serializable;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public abstract class BaseMybatisDao<E,PK extends Serializable> extends MybatisDao imp... | 5f378d732518417ca40f8d3bdfcd2181fc966a7f | [
"Java",
"Maven POM",
"INI"
] | 16 | Java | OlaAcademy/microtao | 762dd8a3dfa8fb2f8bdabb178634f5c3bda022a7 | 9433e802e5661829102c0355f85450277e5513ce |
refs/heads/master | <repo_name>jinyanroot/cicd-demo<file_sep>/slave-java/change_sshd.sh
#!/bin/bash
echo root:root@123 | chpasswd
sed -i "s/^PermitRootLogin.*/PermitRootLogin yes/" /etc/ssh/sshd_config && /etc/init.d/ssh restart
<file_sep>/cicd-linux.sh
#!/bin/bash
# Start Jenkins Slave
docker run -d \
--name slave-java \
... | 54768eea0b9f9f73ece708eed913bf2f3cded7c9 | [
"Markdown",
"Shell"
] | 3 | Shell | jinyanroot/cicd-demo | 43e4a06afda7a6393206e2fd8044bee429a73cb8 | be5ca466b350daac228f3f112c6d36d3ae42ba04 |
refs/heads/master | <repo_name>dance2die/Book.AspNet.WebApi2.Chapter08<file_sep>/WebApi2Book.Data/QueryProcessors/ITaskByIdQueryProcessor.cs
using WebApi2Book.Data.Entities;
namespace WebApi2Book.Data.QueryProcessors
{
public interface ITaskByIdQueryProcessor
{
Task GetTask(long taskId);
}
}<file_sep>/WebApi2Book.Web.... | 74841baa82b582b0a0a2e7f21f8b33bd3bfc6eec | [
"C#"
] | 12 | C# | dance2die/Book.AspNet.WebApi2.Chapter08 | c3d6cf23f0ae402e13da50e102d366793f7b93d1 | e44e354d790362616950a5ff01f180f75d01c5c7 |
refs/heads/master | <repo_name>Limych/Rates<file_sep>/server/Loader/MoexLoader.php
<?php
namespace Loader;
use Model;
class MoexLoader extends BaseLoader {
public function load(){
$hash = sha1(date('r'));
$timestamp = time();
$url = "http://www.moex.com/iss/engines/currency/markets/selt/securities.json?iss.meta=off&iss.only=sec... | 980f8db780917398ac6d1410a95583616462a396 | [
"Java",
"PHP",
"INI",
"Gradle"
] | 21 | PHP | Limych/Rates | 47d040321e95364abd116a2a7471ce900b24d65b | 9196dcd1fedf6b270f03744b3158cdacf2dac27a |
refs/heads/master | <file_sep>require "wiringpi_kb_adapter/version"
module WiringpiKbAdapter
begin
require 'wiringpi'
rescue LoadError
require File.expand_path('../wiring_pi', __FILE__)
end
end
<file_sep>require 'spec_helper'
module WiringPi
describe GPIO do
let(:input_pins) { {goal_a: 0, goal_b: 3, start: 4} }
... | b2f6c47816cab0f603dfa572c752ce792b8a6d4f | [
"Ruby"
] | 6 | Ruby | spaghetticode/wiringpi_kb_adapter | 67da8572f46ad06bfb72c7826c9187a43a6755ea | b5a1d5de39c83c096f74b390cdbbb0d9badd82c1 |
refs/heads/main | <file_sep>from django.db import models
from django.contrib.auth.models import User
TYPE_1=1
TYPE_2=2
TYPE_3=3
TYPE_4=4
TYPES = (
(TYPE_1, 'Bullet'),
(TYPE_2, 'Food'),
(TYPE_3, 'Travel'),
(TYPE_4, 'Sport'),
)
# Create your models here.
class BookJournalBase(models.Model):
name=models.CharField(m... | 71fd8c476a9e823aeaf1049ee649ff8e84cf152a | [
"Python"
] | 7 | Python | ArystanIgen/Midterm | 386f0eb94f7d8d130b699b269936b563534a40da | 0a6924e50bf1c3fc6daa876f447f275c11ea279a |
refs/heads/master | <file_sep>// Copyright (C) 2020 <NAME> <<EMAIL>>
//
// This file is part of libsurakarta.
//
// libsurakarta is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your op... | 927e856da25797d04b77d00ddcab2dd3f33056e9 | [
"Markdown",
"CMake",
"C++"
] | 17 | C++ | SurakartaArcade/libsurakarta | 86ce804fbd45e0e258bcf4a1a86271642fa06501 | 12670a374fe0a544708b35468354e6e87f27825f |
refs/heads/master | <file_sep>import numpy as np
import pandas as pd
from math import exp
import copy
from sklearn import preprocessing
# Feed Forward helper methods
def sigmoid(value):
if value < 0:
return 1 - 1 / (1 + exp(value))
else:
return 1.0/(1+exp(value * (-1)))
def sigma(matrix_weight, matrix_input, bias... | b159703f0c84bdb046676667599a8b24975e64b3 | [
"Markdown",
"Python"
] | 2 | Python | kevinandrianliu/Mini-Batch-Gradient-Descent | c26529d8239e07043c2a3208e45ebbf41a2f5495 | 722f8d61751e256922d3b012e422245c51a1f395 |
refs/heads/master | <repo_name>kelvin04/basic-phyton<file_sep>/Final-Project/final_project.py
import smtplib
import os
from os.path import basename
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
final_project_file = "final_project.py"
email_list_file ... | 12d72f6685de339d3aeb681cb1ae7cba3b4e7d5c | [
"Markdown",
"Python"
] | 7 | Python | kelvin04/basic-phyton | af4a1592f1c9acd2a3779167f5cfe93ec8aa7ef6 | a193e82de991e0f2aea21379413d68ba23d0fd33 |
refs/heads/master | <repo_name>shiyang07ca/spider<file_sep>/README.md
## 爬虫练习
### 程序说明
编写两个线程对象分别维护两个队列,一个用于保存URL及深度,另一个负责将爬取到的内容存储至本地,
主函数在spider.py中负责初始化两个任务队列。
### 使用说明
终端输入
<code>python3 spider.py -u http://www.yingjiesheng.com -d 2</code>
将自动爬取不同深度的网页及链接(默认为2),输出内容保存至"Downloads"文件夹下,
格式为"A\[B]",
A表示HTML的编号,B表示保存页面的URL深度。
### 参考链接... | 170f668089017a2d4dee6f9cacb55343581e639b | [
"Markdown",
"Python"
] | 4 | Markdown | shiyang07ca/spider | 365d6aded884e002dd22b56b5d1e8136d776da53 | df5e86e42ef6f473b8d5f9f8f3fe4d8dc24ea2c0 |
refs/heads/master | <repo_name>fernandomarins/pygame<file_sep>/pygame.py
# coding: utf-8
# In[ ]:
import pygame
pygame.init()
screen = pygame.display.set_mode((900, 700))
def checkCollision(x, y, treasureX, treasureY):
global textWin, screen
collisionState = False
if y >= treasureY and y <= treasureY + 40:
if x >=... | 3b34a331098365256c3618014329395ea607a1ef | [
"Python"
] | 1 | Python | fernandomarins/pygame | 2e0efd68b2bf76f38a07d339de05d36018a83704 | 2dda745ff2a707fc670b03dabcabd95a038f9d59 |
refs/heads/master | <file_sep># 学习Spring源码的一些实例、心得
## ioc相关
有2个祖宗级接口:`BeanFactory`、`BeanDefinition`
`BeanFactory`有很多的实现类,`DefaultListableBeanFactory`就是其中之一。
`DefaultListableBeanFactory`里面就有一个`Map<String, BeanDefinition> beanDefinitionMap`, 这个Map对应到`beans.xml`文件,它的key是bean的名字,BeanDefiniton就是bean的定义。Spring容器只要根据这个Map,就能够产生各个bean对象了。<fil... | b98c0a5aa4b8fd475b69a77fdbb9f4c5930204c0 | [
"Markdown",
"Java",
"Maven POM",
"INI"
] | 83 | Markdown | Changer119/examples | e0639e143d0e88a7203d38442eb2819250973cff | 0ddca1da46205e5c0b15b5c42dd572c3c4689603 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ChangeScene : MonoBehaviour
{
private List<string> _scenesNames = new List<string>() {"A", "B"};
void Update()
{
if (Input.GetKeyDown(KeyCode.Space))
{
... | c60a09b560ab6aadb705bcd8e620e5551946af4c | [
"Markdown",
"C#"
] | 2 | C# | IanGRap/GameGraphicsHomework2 | 3e50e4c61409c42fcf3e1b8e9d2e7133b251c882 | 5c2a3f1619f489f1c7762cf038b59ed2aa8bf369 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jul 22 02:28:47 2017
@title: PCW_bot
@author: SimplyAero
"""
import os
import re
import sys
import json
import urllib.request
from telegram import (
InlineQueryResultArticle,
InputTextMessageContent,
ParseMode
)
from telegram.ext... | 577221ef7f366fd76907b65ae49a87d07b799d0c | [
"Python"
] | 1 | Python | pokemoncentral/wiki-telegram-bot | 1f4dffa6759e0ecb65f626a89864887245e3f296 | 3f581a26032526c477cd8cb75b0b3fda5fb50ea3 |
refs/heads/master | <repo_name>Kibaek/Java_project<file_sep>/zJavaProject/src/main/java/java63/servlets/london/ProductListServlet.java
package java63.servlets.london;
import java.io.IOException;
import java.io.PrintWriter;
import java63.servlets.london.dao.ProductDao;
import java63.servlets.london.domain.Product;
import javax.servlet.Ge... | 889d397c86258c3a0d505c985c2d83d21dd51f7f | [
"HTML",
"JavaScript",
"Gradle",
"Java",
"Text"
] | 19 | Java | Kibaek/Java_project | 40e83ceb829d84e759d454f156c0b540cccd8ad0 | 793e887e7c8dc42ff5688b308c70782092d3d9b1 |
refs/heads/master | <repo_name>morsssss/amp-ecomm<file_sep>/src/server/server.js
const express = require('express');
const request = require('request');
const path = require('path');
const fs = require('fs');
const productApiManager = require('./ApiManager.js');
const mustache = require("mustache");
const formidableMiddleware = require('e... | 76a1966c2636a687c70c0a23f87d07e42a1ebb25 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | morsssss/amp-ecomm | d264a450e8d3b3e126f5a2afd5087fc521d2ceef | 668471d06a630ba41eb543221934865c380ab665 |
refs/heads/main | <file_sep>import styled from 'styled-components'
import { Link } from 'react-router-dom'
export const Container = styled.header`
display:flex;
justify-content: space-between;
padding:1em;
align-items:center;
color:#fff;
background: #3c4b4d;
margin-bottom: 0.5em;
font-size:1rem;
`
export... | 5329a8f19696085fed3a7eb3dd00b2a5c4c74ac6 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | haris588/React-beerium | f8cd1dbc6d1df6cf42ce1eda5d3bbfe3495be93d | c8d1d4b65afa711b43fe7a71a431c0ad4fe7688b |
refs/heads/master | <repo_name>shimmer24/SamsungAudioEngine<file_sep>/common/uninstall.sh
#!/sbin/sh
app="SapaAudioConnectionService
SapaMonitor
SplitSoundService";
bin="apaservice
jackd
jackservice
profman
samsungpowersoundplay
media
sae";
etc="apa_settings.cfg
audio_effects.conf
floating_feature.xml
jack_alsa_mixer.json
sapa_feature.xml... | 6a5ae8ed5937adf485ddbe303d77bcf1456c46c7 | [
"Markdown",
"Shell"
] | 4 | Shell | shimmer24/SamsungAudioEngine | 80dbe2a8461fc974235c095e1371bc7179e2273a | 9bdf61815320745e9ee00b264408c73261a04481 |
refs/heads/master | <file_sep>import java.awt.*;
/**
* Created by student on 11/16/17.
*/
public class Game {
private int[][] gr;
public Game(){
gr = new int[3][3];
}
public void draw(Graphics2D g2, int w, int h){
for (int r = 0; r < gr.length; r++) {
for (int c = 0; c < gr[0].length; c++)... | 567fde09c1f5ee13221f99d019b4fe155634ebf9 | [
"Java"
] | 2 | Java | LiangL2020/TicTacToe_ | 11d7f37e1e6f78f5fd5a71e1df8178d5fefdedaf | 8943d4e6923e60eb4c4452eed678f6c6e4717de4 |
refs/heads/master | <file_sep>/**
* Created by Hunter on 2015-03-08.
*/
public class CalculatorDouble implements CalculatorDoubleImp {
@Override
public double add(double a, double b) {
return a+b;
}
@Override
public double sub(double a, double b) {
return a-b;
}
@Override
public double mul... | 2464a0f9293a78096026559aada165b44985f38a | [
"Java"
] | 18 | Java | padamaszek/TAJ | de852c11ff1995613c4fbe4fe3a36b899b52cef3 | f248e5c4d4ec27d533feddd0e504cb7806be96b9 |
refs/heads/master | <file_sep># Meow Tax App Thing
Sister. You can start modifying this app to make it what you wanted to have.
It's very documented. See index.js and the public/ folder.
<file_sep>/*
Sis.
Ok, so. The first thing is to use Express. It's a package for Node that folk made
and it makes servers.
*/
express = r... | 280e832f7e8f6c114864bf7eb3e7952aa23fdc96 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | notauid/meow-tax-app-thing | 753e025de9db42df5194fe75cf8a9828d8f56f2f | 1e38f12420fbfe922ced2e8323f3f370335c5088 |
refs/heads/master | <file_sep># Import packages
import tensorflow as tf
import pandas as pd
import numpy as np
import os
os.chdir('C://Users//vnino//Desktop//CE888 - Assignment 2//Python code//mushrooms//data')
import random
# Fetch the dataset
names=['label', 'cap_shape', 'cap_surface',
'cap_color', 'bruises', 'odor',
'g... | 7c40f6604e46442ed5d299de9b11eba9cbbde2ec | [
"Markdown",
"Python",
"Text"
] | 13 | Python | vninodez/ce888labs | 898860428720a14d4d7ec9973fb70919638e3855 | 10990207502758d56f422edeb757481eba734933 |
refs/heads/master | <repo_name>prakhar-agarwal/Google-Street-View-House-Numbers<file_sep>/digit_predict.py
import numpy as np
import tensorflow as tf
import random
sess = tf.InteractiveSession()
x = tf.placeholder(tf.float32, shape=[None, 32, 32, 3])
y_ = tf.placeholder(tf.float32, shape=[None, 5])
y_1 = tf.placeholder(tf.float32, shape=... | dcb13ae073dd0ddc9601b764448a6d709b7b1b73 | [
"Markdown",
"Python"
] | 7 | Python | prakhar-agarwal/Google-Street-View-House-Numbers | 0b4019e12c6251abbc93f4958ccae3a485d64ec6 | a3c90e80caa92a9ad1e5f2df143f3d070071e48b |
refs/heads/master | <file_sep>using UnityEngine;
using System.Collections;
public class id_player : MonoBehaviour {
public Transform player;
public Collider2D [] live;
public GameObject newPlayer;
public GameObject aux;
// Use this for initialization
void Start () {
aux = (GameObject) Instantiate(newPlayer, transform.pos... | 025e5dc66f4137e650832e99186021e68598d392 | [
"C#"
] | 5 | C# | artphil7/Unity | d9bd2ddf180ccb97a8368f9729b2ca436282a8a1 | 4e7fd318623d74ee821ea51d9b8d452f967bb771 |
refs/heads/master | <repo_name>wallabyway/glesjs<file_sep>/jni/Android.mk
LOCAL_PATH := $(call my-dir)
# afaik V8 uses v7a, so we might as well use it
APP_ABI := armeabi-v7a
# First, define local static libraries for use in LOCAL_STATIC_LIBRARIES
# We need all of these for V8 to run.
# We put them in jni/lib, but we could also put them ... | 1a6750f4356be1023db1b142579266480bc9a55b | [
"Markdown",
"Makefile",
"Java",
"C",
"C++",
"Shell"
] | 11 | Makefile | wallabyway/glesjs | 8b1df7882ad89aeaba85ef46ecddf67851bd2168 | 1b5675d073309df1ff17272cee416c57438fd0b3 |
refs/heads/master | <file_sep>var router = require('express').Router();
const db = require('../models/index').sequelize;
const Products = db.model('store_inventory');
router.get('/', function(req, res){
// var limit = getQueryVariable('limit')
const limit = req.query
console.log("?limit=20", req.query)
Products.findAll(limi... | b4e73c6f5809e8a8d1651b24a5843ffee223b6be | [
"JavaScript"
] | 2 | JavaScript | Thomas-Flynn/JS-1150-Redbadge-Challenge | 1570785be4cee0d647910fcc89a36df11c0d6779 | 0dc26f695f606a5a84592704bd7396fc99168cac |
refs/heads/master | <file_sep>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QAction>
#include <QString>
#include <QFileDialog>
#include <QMessageBox>
#include <boost/filesystem.hpp>
#include <set>
#include <fstream>
#include <sstream>
#include <string>
#include <QString>
#include <unistd.h>
#include <boost/date_time/posix_t... | 22c57b2b8f2a7f4b4a8e3fb5cea57a3edd2b500c | [
"Markdown",
"C++"
] | 2 | C++ | qdore/myblog | 3adc6be422edd9f6baa54873859fa0dc9be20fe0 | e514fbd2480bd355f3d2189a61706d3cf6f66529 |
refs/heads/master | <repo_name>JoshuaTPereira/rescue-mission<file_sep>/app/controllers/answers_controller.rb
class AnswersController < ApplicationController
def create
@answer = Answer.new(answer_params)
@answer.write_attribute(:question_id, params[:question_id])
if @answer.save
redirect_to Question.find(params[:quest... | bb4048da6f72ac86d975514338e4d0ec9468ec68 | [
"Ruby"
] | 2 | Ruby | JoshuaTPereira/rescue-mission | 4f9a88f49af0277fb2a67c47701cdc86efe3be0d | 4c414b66d68b723bbae1b2cd3cedab07e46cd0fa |
refs/heads/master | <repo_name>rithinsuryasainadh/Connect4<file_sep>/submitted_code/README.txt
# Connect4
NAME : <NAME>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
UTA ID : 1001365726
---------------------------------... | 1b783febaec48af571f024a85ed86dc618ee99e9 | [
"Markdown",
"Python",
"Text"
] | 3 | Text | rithinsuryasainadh/Connect4 | 46ce67af901d81a681b05fc5e424793103fd23c1 | 955b59021656c0f6cf45c09c5d52f2c6ac2d72ac |
refs/heads/master | <repo_name>moisterrific/FTWProtection<file_sep>/README.md
# FTWProtection
Replaces for the worthy bombs with other projectiles
On for the worthy, skeletron prime bombs will destroy tiles when they explode and bombs can fall out of trees when shaken or when pots are broken.
These are replaced with non-destructive pr... | 6d5b7b9f1c536e67f8346282443bb508eb83affb | [
"Markdown",
"C#"
] | 2 | Markdown | moisterrific/FTWProtection | 10cfdbcda380ce182cf88bf61177885d4134a00f | 0c876f70acb8823b51bacf813cb46ac4da4ee859 |
refs/heads/master | <repo_name>serge-medvedev/tonos-cli<file_sep>/src/debot/term_signing_box.rs
use crate::crypto::load_keypair;
use super::term_browser::input;
use ton_client::crypto::KeyPair;
use std::io::{self, BufRead, Write};
pub(super) struct TerminalSigningBox {
pub keys: KeyPair
}
impl TerminalSigningBox {
pub fn new() -... | deb18642dc63c46a55b58e20c47fd65998ed3954 | [
"Markdown",
"Rust"
] | 8 | Rust | serge-medvedev/tonos-cli | 28e467fe44306864bcf00d57b2666a771429c0c6 | 45b507fab5bece18cf057e39e3f5530d32e4eee3 |
refs/heads/main | <repo_name>chaitalijadhav27/Java-Essentials<file_sep>/Employee.java
class Employee
{
String name;
int age;
String city;
Employee(String n, int a, String c)
{
name=n;
age=a;
city=c;
}
void display()
{
System.out.println("The Name is "+name);
System.out.println("The Age is "+age);
Sys... | 1e2f6f42f18dde0548114bc558c8a03c3c5420e4 | [
"Java"
] | 1 | Java | chaitalijadhav27/Java-Essentials | b82fdfe32758f94610ce4f8d9608d56d17356306 | 44132f4981a9c8e02ec452067e1c90dc6035da1e |
refs/heads/master | <file_sep># To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
A=int(input("ingrese un numero\n"))
B=int(input("ingrese otro numero\n"))
C=int(input("ingrese un nuemero\n"))
if(A > B ... | abf0ffff4618c5e6a50bf1b97638e887c88c56ed | [
"Python"
] | 1 | Python | Alexvaster95/grupo-6 | f476a11c5e99bef901fff01161e507cf8a2b3a44 | 772b71ee5b557fc82ab5f829f036d2994e987a34 |
refs/heads/master | <file_sep># BingWallPaperAutoDownload
## lower quality image
<file_sep># BingWallPaperAutoDownload
## deprecated

<file_sep>import requests
import json
import urllib.request
import re
import os.path
... | e7b6ac211b9a0f95af85cc1dbddb2ae1e316251d | [
"Markdown",
"Python"
] | 4 | Markdown | zyhibook/BingWallPaperAutoDownload | 0efb9176f989bd65540c55af1ca418560232e5dd | bf371eea8ebcc41b09622f7a66d183bdc710e5e1 |
refs/heads/master | <repo_name>sidharth3000/Burger-Builder-1<file_sep>/src/Container/BurgerBuilder/BurgerBuilder.js
import React, {Component} from 'react';
import Aux from '../../hoc/Auxiliary';
import Burger from '../../Components/Burger/Burger';
import BurgerControls from "../../Components/Burger/BuildControls/BuildControls";
import Mod... | ca4007a84f0f45f2b982134fda3896bf64c26fda | [
"JavaScript"
] | 1 | JavaScript | sidharth3000/Burger-Builder-1 | eb11f08092ac553f7be544429c9eff98c35b2e5a | cfd4d94d7607de33ed4b06c4bc93e8f5f7de251a |
refs/heads/master | <repo_name>99rupali/lab2<file_sep>/where.cpp
#include <iostream>
using namespace std;
class Node{
public:
//data
int data;
//pointer to a next node
Node * next;
//construct that make ptr to NULL
Node(){
next = NULL; }
};
class Linkedlist{
//Head and circles are linked together
public:
//Head-> Node type ptr
... | ad83e195147dc5b824f4694d606adce34b2852dc | [
"C++"
] | 1 | C++ | 99rupali/lab2 | 38e33236fe2af53d7576463e96d9393436eba5e4 | b288b0a36d654eb360827219ad669d4a63f05dab |
refs/heads/master | <file_sep>import ExpensesPage from "../frontend/pages/ExpensesPage";
function Index() {
return <ExpensesPage />;
}
export default Index;
<file_sep>import React, { useState } from "react";
import { useSpring, animated } from "react-spring";
import styles from "./ExpenseItem.module.css";
import Button from "./Button"... | 565ee8aa020f38e260937051391b9655315580e6 | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | Martialis39/next-expenses | 60ae3786404af35036c3a268792ee4283ce83e58 | 305b6b5c620e63c8b3ba9d64d8c6da0e2661bb81 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.