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>luther168/MavenSSM<file_sep>/WebModule/src/main/java/cn/luo/web/entity/sbss/response/GetTaskListResponse.java
package cn.luo.web.entity.sbss.response;
import cn.luo.web.entity.sbss.Task;
import java.util.List;
/**
* @author Luo
* @version V1.0
* @description description
* @createTime 2018/1/27 19:38
... | 56c6f46ab68f8e4b8d85f1c8bb397a9bf91f5d99 | [
"Java",
"Maven POM"
] | 12 | Java | luther168/MavenSSM | 33ed4c6e6938c108430c6314687951bcede8081f | 19dd1b2a67669fe4485e3a37d69012fa24748ff0 |
refs/heads/main | <file_sep># The following script passes two arguments. The first is for the specified date - 0310, 0312, and 0315. The second is for the specified time. The analysis results in easily finding the roulette dealer
# at a specified time.
awk -F" " '{print$1,$2,$3,$6,$7}' losses_Dealer_Schedules_DateAdd | grep $1 | grep... | 11d7453c991994b048ef2d428342033e3b780de3 | [
"Shell"
] | 2 | Shell | hessianhobs/ucsdcybersecuritytrilogybootcamp | e25ecf7cdbb269ecb65c085f3d73f512c38c9728 | 974aa0f21887f51ea60cb1cb5755241b74511fb3 |
refs/heads/master | <repo_name>semen-gen/WorkBook<file_sep>/src/task11/Main11.java
package task11;
public class Main11 {
public static void main(String[] args) {
simple(121);
}
public static void simple(int x) {
boolean simpleInt = true;
if (x > 0) {
for (int i = 2; i <= Math.sqrt(x); i+... | 660abd57445eca44048fdce875f8ea04ea7353a3 | [
"Java"
] | 4 | Java | semen-gen/WorkBook | 18b985ec734c522dca6011a95d735bd8f372eb22 | 372c93138c4bd1a0ded0be7f4ada531af5e598db |
refs/heads/master | <repo_name>melletL/pokedex-express<file_sep>/index.js
const express = require('express');
const jsonfile = require('jsonfile');
const file = 'pokedex.json'
/**
* ===================================
* Configurations and set up
* ===================================
*/
// Init express app
const app = express();
/... | 137187b9739de8a118716cb4ea2043ba032a7080 | [
"JavaScript"
] | 1 | JavaScript | melletL/pokedex-express | fe134d374e2d56ce0392bdd42223b3f9233fa456 | 8dbe8ca8029f3dbc292ec5a1fa315aa83c559b64 |
refs/heads/main | <file_sep># wp-custom-node-importer
Importer for wordpress from XLS files
| 214ae0482dcea0b6a50a3382784651339573beba | [
"Markdown"
] | 1 | Markdown | webislife/wp-custom-node-importer | 44e75bec57af2ca0b477530ad9ae1246664e903f | 78f8f09e853ddc5d593a99104f1b77c95a6e018d |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<center>
<?php
include "/include/include.php";
$typelist=array(1=>"数码",2=>"服装",3=>"车");
?>
<br><br>
<h3>浏览商品信息</h3><br>
<table border="1" width="800">
<tr>
<th>商品编号</th>
<th>商品名称</... | f7e25d70e3a8f375deb84494a924c64f378f7849 | [
"PHP"
] | 9 | PHP | huihuihuizhi/goods | fb2553b6086622f0f9b5089f33f968382eafe8d6 | 8e41516d6a4c0fbf64bd9a2f89087d72c18ba608 |
refs/heads/master | <repo_name>jbertran/apsProject<file_sep>/README.md
# apsProject
Project for the APS course, M1S2 at UPMC: an interpreter of a mini-Pascal language.
<file_sep>/prolog_gen.h
#ifndef __prolog__
#define __prolog__
#include "ast.h"
void print_program(FILE* f, Program* prog);
#endif
<file_sep>/ast.h
#ifndef __TYPES__H_
#... | b98373e7aea640b57be7198af371d9e8499612dd | [
"Markdown",
"C",
"Makefile"
] | 9 | Markdown | jbertran/apsProject | 8c59e03cedcb820b6d83e0a3928ee030d8b2efd9 | eb456644fb44b851095a9ede9a494c28f4282c3a |
refs/heads/master | <file_sep>'''
Contains all the utility funcs.
'''
import os
import re
import sys
import imghdr
def delete_layout(layout, delete_container=True):
if layout is None: return
for i in reversed(range(layout.count())):
item = layout.itemAt(i).widget()
layout.removeItem(layout.itemAt(i))
if it... | f669a153e1e87163bd36c34a0f85e5a9072d0234 | [
"Markdown",
"Python",
"Text"
] | 7 | Python | yorinasub17/Captricity-Desktop-Uploader | 9b19b98f181d7ae8216b10d8f2df59e42fd71eb7 | 9d9c1d011c821eb96e42bba39f77ed7d61bfd7e6 |
refs/heads/master | <repo_name>hebertjulio/TripPlanner<file_sep>/src/screens/TripsScreen/index.js
import React, { Component } from 'react';
import { View, Text, FlatList } from 'react-native';
import Trip from './Trip'
import isIphoneX from '../../utils/IsIphoneX';
export default class TripsScreen extends Component {
static naviga... | c4e8f1fc9b9ee1850b3bf38cb6d1ea0537e60275 | [
"JavaScript"
] | 4 | JavaScript | hebertjulio/TripPlanner | 22ddd304e3a2e665188efc7e71253c46a6387cd2 | ba43f4c07e8216e3fd883384a94bf7aa5ef6172b |
refs/heads/master | <repo_name>Yasin92X/carousel.js<file_sep>/readme.md
# carousel.js: 高性能网页轮播库
> carousel.js是一个异步执行的网页轮播JS库,具有性能高,定制性强,SEO友好等优点,是制作高性能网站必备的JS库之一
## 使用方法
* 在网页头部引入carousel.js,推荐添加async异步执行
* 编辑基础的HTML和CSS代码,使carousel在不运行的情况下,可正常查看,基础的符合carousel.js规范轮播结构包含以下四个组件:
* carousel-container: 轮播容器,包含所有的轮播组件
* carousel-scroll... | 9452d1d324831b07912b6e41ad41b1a3f79da23d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Yasin92X/carousel.js | 681286643e6005f7caa2dbbc14ff25a45c666f02 | d6e3266db70db9f8b30dbd5e8ad9772a26fb4f6b |
refs/heads/master | <file_sep>/**
* Created by Алексей on 09.07.2017.
*/
import React, {Component} from 'react'
import Order from './Order'
import Crm from './Crm'
import './main.css'
class Content extends Component {
render() {
return <section>
<Order />
</section>
}
}
Content.defaultProps = {
... | daef3be7bb69ba00e5f27cd9532250dd3b17445e | [
"JavaScript",
"JSON",
"Markdown"
] | 43 | JavaScript | AlekseyChepurko/Clothes | 77f9629a7bb78c98442879c30518c0c6736f1122 | 27ab6ee67cb59aeffc0ff3b881ea4fb27f5fc8d3 |
refs/heads/master | <repo_name>mullfuchs/voteapp<file_sep>/seeders/seed.js
module.exports = function(db) {
db.vote.create({
mVote: 0,
fVote: 0,
}).success(function() {
});
};<file_sep>/index.js
var express = require('express');
var path = require('path');
var app = express();
var db = require("./models");
app.set('vie... | 85d6440cbaec7783b327510c102775c42c4dd77f | [
"JavaScript"
] | 2 | JavaScript | mullfuchs/voteapp | 2586e7077ae8acb4a05fd8edc3744ec6f6d9a819 | 4959d5410790ad3a82eeebef690119ca35adf5fe |
refs/heads/master | <repo_name>zhengsz123/travelBud<file_sep>/travelbudcore/src/main/resources/db/migration/V4.07__Delete_gasId_column.sql
ALTER table station
Drop column gas_id;<file_sep>/mvc/src/main/java/com/travel/mvc/config/SecurityConfig.java
package com.travel.mvc.config;
import com.travel.mvc.extend.security.MyAuthenticaitonEntry... | 30ba6429083361742eb90e957c50187296997a65 | [
"Java",
"SQL",
"Dockerfile",
"Shell"
] | 38 | SQL | zhengsz123/travelBud | 019902f242eea0dc7e2350574baa82952c103fc5 | 73eb1dd5d9eb1e862ab44c68b170f1c92c29c4c0 |
refs/heads/master | <repo_name>soumilkanwal80/Anomaly-Detector<file_sep>/preprocess.py
# This script extracts reshapes each video into 171x128 and stores them as a folder of frames, and creates our train-val split.
import os, cv2, threading, shutil
import numpy as np
DATASET_PATH = "./dataset/"
FEATURE_PATH = "./train_an/"
VAL_PATH = "./... | dba5673ec7374586ba32e1e2689a1f8b70751c74 | [
"Markdown",
"Python"
] | 7 | Python | soumilkanwal80/Anomaly-Detector | 5b1869a646a4d7fb5421577a406f893204ef80b1 | 20de1194c5a3dc3134f32c04657e772c4e6f4b81 |
refs/heads/main | <repo_name>Eev-Main/PeliculasTC5<file_sep>/Program.cs
using System;
using System.Collections.Generic;
namespace Peliculas
{
class Program
{
static void Main(string[] args)
{
List<string> nombresDePelicula = new List<string>();
nombresDePelicula.Add("Toy Story");
... | 4a6cd241e47d0a9f5d9e9738cae56b34864caa46 | [
"Markdown",
"C#"
] | 2 | C# | Eev-Main/PeliculasTC5 | a2f4903f35ed5697e5bf38d53c94fb2a59af2b0e | 7b1adb450b115137140a9cd8704454d2df7b435a |
refs/heads/main | <repo_name>JohnDominicJasmin/QuizGameInJava<file_sep>/src/Computer_Category/Cat4.java
/*
* 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 Computer_Category;
import QandA.front;
i... | 3a614332184b60d05a9039779dd4b83e345ee140 | [
"Java"
] | 5 | Java | JohnDominicJasmin/QuizGameInJava | f2f960710d999a536f97c146341107ad63c69af2 | fd8e1167708b4768b7871a8f9bde658ed00408e4 |
refs/heads/master | <file_sep># bike
Bike class in Python
from Coding Dojo work
<file_sep>class Bike(object):
def __init__(self, price, max_speed):
print 'New Bike'
self.price = price
self.max_speed = max_speed
self.miles = 0
def displayInfo(self):
print "Bike Price:", self.price
print "Bike Max Speed:", sel... | 87c3d3c6208f4da9aa9751467ad6aff56822c93c | [
"Markdown",
"Python"
] | 2 | Markdown | daver234/bike | 9124d64cafa241503f44027b30756ce625cff0b8 | 9ce1e55de3d50cff679cb602b17db8f85b33a1da |
refs/heads/master | <repo_name>nosthas/Rock-Paper-Scissors<file_sep>/js/game-logic.js
// All code should be written in this file.
// Player One Variable
let playerOneMoveOneType;
let playerOneMoveOneValue;
let playerOneMoveTwoType;
let playerOneMoveTwoValue;
let playerOneMoveThreeType;
let playerOneMoveThreeValue;
// Player Two Variable... | 40699a329faea8e7f714e9ddfefd814d8cf33873 | [
"JavaScript"
] | 1 | JavaScript | nosthas/Rock-Paper-Scissors | 8e523fd274159fbf276bb7e6c9a2b5905de1075e | 37322699d5ccbce8cde77791b7c5ef5e4d6b4b94 |
refs/heads/master | <file_sep><?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Form\Extension\C... | dc7185741fe16c168e2dc27a0862649f82f03ac4 | [
"PHP"
] | 1 | PHP | aleher86/totem-ticket | abcc89818091cbf8f99b3858580469535f2334c7 | fa8340db88b48fad60d2d68833b8451c47b8c94d |
refs/heads/master | <repo_name>gilesw/aws-carb<file_sep>/lib/aws-carb/monkey_patches.rb
#!/usr/bin/env ruby
# monkeypatch shell spinner to fix some bugs..
module ShellSpinner
class Runner
def wrap_block(text = nil, colorize = true, &block)
with_message(text) { with_spinner(&block) }
end
private
# FIXME: better ... | 74feb1cf3810e2d8164fc92401e4c80bc7f3ccc7 | [
"Markdown",
"Ruby"
] | 10 | Ruby | gilesw/aws-carb | 441623fe906e493724ff0682a9c88b9636b18a78 | 426aad31d372ee54474c740d5a52871d5239294d |
refs/heads/master | <file_sep><?php
/*
Template Name: Original
*/
?>
<?php get_header(); ?>
<article>
<section>
<h1>original</h1>
</section>
</article>
<?php get_footer(); ?>
<file_sep><?php get_template_part('common/head'); ?>
<header>
<h1>header</h1>
</header><file_sep><?php
add_theme_support("menus");
register_sidebar(
a... | 43db525969bcaea2b85b0fefc19689460674b940 | [
"JavaScript",
"PHP"
] | 8 | PHP | kadotami/wp-template | 9f6a9c21458dec6c6963a23fa3437befc5946b5b | ac185b781294ed7da5c958820dfe5be1f0b93c15 |
refs/heads/master | <repo_name>vszed/FlappyBird<file_sep>/Assets/Script/GroundAndTube.cs
//由于地面和水管移动要同步=>放弃单一职责=>高度集成
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GroundAndTube : MonoBehaviour {
private Data D_ins; //数据单例
// Use this for initialization
void Start ()... | 96d699f0411d0e7968d6280d975423f68404f1cb | [
"C#",
"INI"
] | 6 | C# | vszed/FlappyBird | 500e3ffbd977dc0e6b2143e840d8a5c338155e1d | b1f7b6fc8f8c28d56946cd22d75e4ea4afd7ab04 |
refs/heads/master | <repo_name>nitschkematthew/Symbiodatabaceae<file_sep>/Combining_databases/combining_databases.rmd
---
title: "Combining ITS2 databases"
author: "MNitschke"
date: "23/04/2020"
output: html_document
---
```{r}
library(tidyverse)
library(readr)
library(Biostrings)
library(ape)
source("../Helper_functions/help.R")
```
# ... | 94052b5d0f024844d5f46cfa57eda9b264017c40 | [
"Markdown",
"R",
"RMarkdown"
] | 6 | RMarkdown | nitschkematthew/Symbiodatabaceae | 2320cbdda104c451f837ab62869941574c2d2071 | c368afbf0bce252da805f61f902e6861035c383c |
refs/heads/master | <file_sep>package main
import "fmt"
func main() {
fmt.Print("Enter text: ")
var input string
fmt.Scanln(&input)
fmt.Print(input)
fmt.Print("Enter text: ")
var number int
fmt.Scanln(&number)
fmt.Println(number)
}
| 9a27e5413284122ac004e5e095e30e46900e3a4e | [
"Go"
] | 1 | Go | Necuser1/golang | 760ed8eaf16fd60c56f93911a6bb94c11b1207e5 | 0c67bec2b06b0b5479a96d2aea03f36b9caa0ef9 |
refs/heads/master | <repo_name>zoyi/sdk-ibeacon-ios-kddi<file_sep>/ZBeaconKit/MonitoringManager.swift
//
// MonitoringManager.swift
// ZBeaconKit
//
// Created by 이수완 on 2016. 10. 31..
// Copyright © 2018 ZOYI. All rights reserved.
//
import Foundation
import CoreLocation
protocol MonitoringManagerDelegate: class {
func didEnterBe... | ccf79aa3a53e3707cd0019f05272cbad9ad58402 | [
"Swift",
"Ruby",
"Markdown"
] | 17 | Swift | zoyi/sdk-ibeacon-ios-kddi | e3847c6389a24c119e0630652618ca40938987d6 | b46a2ea316e1211bfbb40f0bbfa2a49b1d13b33a |
refs/heads/master | <repo_name>TatoProgramming/WebGLProjects<file_sep>/terrainGen/README.txt
You do have to run this using a webserver
Features:
Blending the water
Random terrain generation
Skybox
<file_sep>/billards/Artem.js
/**
* Created by Taylor on 9/12/2017.
* decided to create a JS library for this class.
* I can develop it ov... | 87bd3fa769d95d80b990d1ad7e7ab404342e02a3 | [
"JavaScript",
"Text",
"Markdown"
] | 12 | Text | TatoProgramming/WebGLProjects | 983ff8ae082b3dad703d8ff474648f8c607a3239 | 16e85cb9662847bdcbc9db4fa3c56af7a65edcfd |
refs/heads/master | <file_sep>//Assignment Operators
let x = 5;
//Addition Assignment
x+=1; //x = x + 1
//Subtraction Assignment
x -= 1; //x = x - 1
//Multiplication Assignment
x*= 1; // x = x * 1
//Division Assignment
x/= 1; // x = x / 1
//Remainder(or Modulus) Assignment
x %= 2 //x = x % 1
//Exponential Assignment
x**= 1 //x= x *... | 73a7c29f9caa3565e8761423877620ec8a79e567 | [
"JavaScript"
] | 15 | JavaScript | Bcb67/jsFundamentals | 8d6cdf7ced7c5eaf09a1daafa51b8843b6d93699 | 53746466364e2035ba0ac7ad9fa39ff5bc590171 |
refs/heads/master | <file_sep>#!/Users/shanyang/Applications/anaconda3/bin/python
import systemstructure;
import displacement;
import intensity;
import normalcoordinate;
import numpy as np;
# all the input files follows the same atomic order and they are following the same atomic order as in TDEP
def main():
""" import POSCAR SPOSCA... | 8890b5fe6ca3c2f4fe3731ea11e405cf010e41a1 | [
"Markdown",
"Python"
] | 9 | Python | syang-creater/atomic_motions_under_photo_excitation | dc0e576ba85f1a17121f87cc89a45109158920df | e295029dd0321834fc0284d14ef17e38e0da7486 |
refs/heads/master | <repo_name>matthewmorrone/newsImprover<file_sep>/README.md
# newsImprover
chrome extension that does what it says, drastically so
<file_sep>/improve.js
var replacements = {
"Witnesses":"These dudes I know",
"Allegedly":"Kinda probably",
"New study":"Tumblr post",
"Rebuild":"Avenge",
"Space":"Spaaace",
"Google G... | d0d94fb53d71139b34c0c10ccdefed14f24e6251 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | matthewmorrone/newsImprover | 4feaaa83b984e6d458d948291eed43217e3eab15 | 5076f7743137fcf784205a54708a17f7f4b8fc41 |
refs/heads/master | <file_sep>report({
"testSuite": "BackstopJS",
"tests": [
{
"pair": {
"reference": "..\\bitmaps_reference\\backstop_default_todo_app_homepage_0__0_phone.png",
"test": "..\\bitmaps_test\\20190607-115702\\backstop_default_todo_app_homepage_0__0_phone.png",
"selector": "",
"fil... | 385c8ea2a3540bb99689c6ea9d26d9cd3711544c | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Geziii/E2E_and_Backstop | 9afd23b9d3f7b9bbf137676deab505da25ea3d51 | 4cfa2c508d9353f072107ce66809f9ef2fec5cc6 |
refs/heads/master | <file_sep>
import React, { Component } from 'react';
import {
View,
ScrollView,
Text,
Button,
} from 'react-native';
import { SearchForm } from '../components/SearchForm';
// import DrawerNavigator from '../Routers/DrawerNavigator';
// import { StackNavigator, DrawerNavigator, TabsNavigator } from '../Routers'... | 58301a342e030a0504061fec3adeec6b897fd487 | [
"JavaScript"
] | 1 | JavaScript | DanielSameh/MidMe | 1122c46d6e44c941a55397cf163e6b3651505b54 | 04fc299b4f9025e1b989d075645acb3deab8ce3a |
refs/heads/master | <repo_name>k-hamada/exercism<file_sep>/go/error-handling/README.md
# Error Handling
Implement various kinds of error handling and resource management.
An important point of programming is how to handle errors and close resources
even if errors occur.
If you are new to Go errors or panics we recommend reading
... | 9411dd9c527086104b8fa016bdc904694fbbd607 | [
"Markdown",
"TOML",
"JavaScript",
"Rust",
"TypeScript",
"Go"
] | 146 | Markdown | k-hamada/exercism | 6f728c688353944e4b12f53fdadc49893047fc53 | 92c3bdd1eeaa6fabeedafe2fe94d8896b468d65d |
refs/heads/master | <file_sep>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "Licen... | c508a344cb212a2f6c2af67220e097b7d6847f08 | [
"JavaScript",
"Java",
"Markdown"
] | 3 | JavaScript | xwangly/CordovaDemo | 48317da1f7728e5978c0cfbad1a9fa9808104f36 | 8a5f3974d9e06a37859739dc4760ab22b68d56bc |
refs/heads/master | <file_sep># これはHello Worldと表示するプログラムです
puts "Hello World"
# これはコメントアウトされるため何も処理を行いません
# puts "Hello Ruby"
# ↓ここに全角スペースがある
puts "Hello World"<file_sep>def register_book
# 本の著者、タイトル、価格をユーザーに入力させ、保存する
puts '著者を入力してください'
puts 'タイトルを入力してください'
puts '価格を入力してください'
gets.to_i
end
def show_books(books)
puts "見... | 9c3838757d9bf79b53ffa4754a3a22113ec87eaa | [
"Ruby"
] | 4 | Ruby | okamoto-shinichiro/sample | bf287ff9831b58da0420bf02545f8b93f39ed41b | 23bfb51de8286e5eaf137838792543cb048d6fc6 |
refs/heads/master | <repo_name>numinix/numinix_product_fields<file_sep>/catalog/YOUR_ADMIN/includes/npf_includes/prebuilt_fields/markup/install.sql
ALTER TABLE `products` ADD `products_markup` FLOAT DEFAULT '0' AFTER `products_price`;<file_sep>/catalog/YOUR_ADMIN/includes/npf_includes/prebuilt_fields/ground_only/YOUR_ADMIN/includes/npf_in... | e949d007b62468ff3fe063da83f88e7fb87cf1eb | [
"SQL",
"Text",
"PHP"
] | 50 | SQL | numinix/numinix_product_fields | 5c514720686ec451ff49ce98392c5f08bb01caf9 | e61e919668801557b21ea92ee9d7f50e765fd6eb |
refs/heads/master | <repo_name>paulm29/resume<file_sep>/resume_angular.js
var app = angular.module("myApp", ["ngRoute"]);
app.config(function($routeProvider) {
$routeProvider
.when("/", {
templateUrl : "career_objectives.html"
})
.when("/career_objectives", {
templateUrl : "career_objectives.html"
})
... | 926606b46ed6747958466fc16d08bb8b31b2ef1d | [
"JavaScript",
"HTML",
"Markdown"
] | 4 | JavaScript | paulm29/resume | 34d8713b7009f2569c197120512a2475f48c2049 | b3b4e70fd0edae605da7d1661ef4f99862756125 |
refs/heads/master | <repo_name>fipanther/posprop<file_sep>/load.py
"""
____ __ _________
/ __ \____ _____ / \/ / ____/
/ /_/ / __ \/ ___/ / /\_/ / /
/ ____/ /_/ (__ ) / / / / /___
/_/ \____/____/ /_/ /_/\____/
Import data
<NAME>, Australian National University
v. 1.2
"""
f... | 2d61451ac360bad58555b7732d9fd2e600642459 | [
"Python"
] | 3 | Python | fipanther/posprop | c0e568f53a479be76a35751757bc12bb9f8a753c | af219e46c15703c2c069d1e3afcf954a446dd409 |
refs/heads/master | <file_sep><?php
class Ukm extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->helper('cookie');
$this->load->helper('url');
$this->load->helper('form');
$this->load->model('ukm_model');
$this->load->model('data_model');
}
public function buat_proposal()
{
if... | c347f7449d83e8815e997e57ea42f388684c211c | [
"Markdown",
"PHP"
] | 20 | PHP | fauzannaufan/UKMJaya | e4dc87d90b65e7314b8a038b6e413097b06e60f5 | a493cff510b3bfb8d04627c0827e4c5527d5e22b |
refs/heads/main | <file_sep># iOS15-UIRefreshControl-issue-reproduction
https://developer.apple.com/forums/thread/691858
https://user-images.githubusercontent.com/1888355/136479136-860fcf8d-dbc9-4145-a466-6e0ca711092d.mp4
<file_sep>//
// ViewController.swift
// DemoRefreshControl
//
// Created by Muukii on 2021/10/08.
//
import ... | d4a9bf0b9236d4d702b465dbf10b67a77fd8d854 | [
"Markdown",
"Swift"
] | 2 | Markdown | muukii/iOS15-UIRefreshControl-issue-reproduction | 3333272ceb0b2efcf557f3f1515c9d54eb0d3643 | 66bbdf0b5dc5c7ca53ae4b10915a552cef2f25c4 |
refs/heads/master | <file_sep>import discord
from discord.ext import commands
import urllib.parse, urllib.request, re
import datetime
import os
import random
import traceback
import bs4
import asyncio
import threading
import requests
access_token = os.environ["BOT_TOKEN"]
client = discord.Client()
badword_list = ['섹스', '느금마', '애미', '애비... | f07523e6955bf6c6692d2d1784d26d30f2b74990 | [
"Python"
] | 1 | Python | owo-hub/b2n1 | d6b72302beeb1b7b5b29dc68bab5faeea1543575 | 78033276d426ae99d93db640fd4d57199f401104 |
refs/heads/master | <file_sep>import React from 'react';
import { StyleSheet, View } from 'react-native';
import { NativeModules, LayoutAnimation, TouchableNativeFeedback, Text, PanResponder, Animated } from 'react-native'
const { UIManager } = NativeModules
UIManager.setLayoutAnimationEnabledExperimental &&
UIManager.setLayoutAnimatio... | f9f7b57638417d034b22304387209297394e3d03 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | atopus/rn-mock-layout | 57622e275b0faa4aedebbe3fd72732d128a95fa2 | c3eebc15d74b622940319fc3e34fc14609351248 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import {CardElement, injectStripe} from 'react-stripe-elements';
class PaymentForm extends Component {
constructor(props){
super(props);
}
state = {
stripeToken: "",
name: "",
email: "",
productData: {
price: this.props.price,
... | 1b1e4ff86f25f956f9c84f85c18153b78b04f90a | [
"JavaScript"
] | 2 | JavaScript | AldoHub/React-Stripe-Elements | 75bb207c66b675419b440d9498284dac0512b945 | 88f97f601475b0f45bfe43a375dc4e615be32415 |
refs/heads/master | <file_sep>jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://192.168.127.12:3306/springmvc?characterEncoding=utf-8
jdbc.username=root
jdbc.password=<PASSWORD>
<file_sep>package edu.dlpuzcl.springmvc.controller;
import edu.dlpuzcl.springmvc.pojo.Item;
import edu.dlpuzcl.springmvc.pojo.QueryVO;
import edu.dlpuzcl.s... | 1733a1981f35bafbdb8a3a51cb8fbf9610cec39d | [
"Java",
"INI"
] | 2 | INI | dlpuzcl/springmvc | 96be95e382717cd899f638632f729da00865761f | ff25c05fabd80dc9a4da8fdb8c26c2e59427f9b0 |
refs/heads/master | <repo_name>jurastrol/11-peliculasapp<file_sep>/src/app/components/pelicula/pelicula.component.ts
import { Component, OnInit } from '@angular/core';
import { PeliculasService } from '../../services/peliculas.service';
import { ActivatedRoute, Router } from '@angular/router';
import { Location } from '@angular/common';
... | 1915d457300b907387517b75a7ffbc8528a8dfd0 | [
"TypeScript"
] | 4 | TypeScript | jurastrol/11-peliculasapp | c9d5efbe542a82bc40492812ceec35db1f09977f | dbb457a2540379babaa1a73a73ff508e3344dc6d |
refs/heads/master | <file_sep>import { Injectable, EventEmitter } from '@angular/core';
import { Headers, Http, Response } from '@angular/http';
import 'rxjs/add/operator/toPromise';
import { Product } from './../models/product';
import { SearchProductInput } from '../models/searchProductInput';
import { ProductCart } from '../models/pr... | 881562ba34d0dd83adae5da5ad17d12b1217b38d | [
"Markdown",
"TypeScript"
] | 17 | TypeScript | SimassoftCodeChallenge/desafio-web-developer | 311f7fe02c596d146a4f4a800d1751e1e4d233f9 | 6bf159e6ec0afdf22653dab6872ab950d5f315fc |
HEAD | <repo_name>amerizalde/html5gamedev<file_sep>/static/js/createjs_proj/level06.js
(function () {
var stage,
shapes = [],
slots = [],
score = 0;
/* Create a Queue */
function init() {
loadComplete();
}
function loadComplete() {
setupStage();
addActors();
}
/* Setup the Stage and Loop */
functi... | a6c80fcda11c7409719ac6961009ab6fef6acad3 | [
"JavaScript",
"Python",
"Markdown"
] | 33 | JavaScript | amerizalde/html5gamedev | 67a733505619bf95961780821fda26b99cbc458e | f79c6c26c852b4ed25e970aac99628773d89dc54 |
refs/heads/master | <repo_name>erik-sn/web-app<file_sep>/Dockerfile
#
# ---- Base Node ----
FROM node:10.16.0-alpine AS base
# set working directory
WORKDIR /code
# copy all code here
COPY . .
#
# ---- Dependencies ----
FROM base AS dependencies
# install node packages
RUN npm set progress=false
# install ALL node_modules, including 'dev... | 6af58b0b14c6ba90686b0f5fca61dd50828d2645 | [
"Markdown",
"JavaScript",
"Dockerfile"
] | 7 | Dockerfile | erik-sn/web-app | 49c1b39c36d37fcacf75762ec734c617bca3e181 | fd4ba2753112a3e0333c64237c2e81b51e4b6912 |
refs/heads/master | <repo_name>JasonLiuys/Flask<file_sep>/venv/venv/hello.py
from flask import Flask #导入Flask拓展
app = Flask(__name__) #创建Flask实例
#需要传入__name__,作用是为了确定资源所在的路径
#Flask中定义路由是通过装饰器实现的
#路由默认只支持GET,如果需要增加,需要自行指定
@app.route('/', methods=['GET', 'POST']) #定义路由及视图函数
def index():
return 'hello flask'
#使用同一个视图函数,来显示不同用户的订单信息
#... | 73437e6968c6732353e3c5d45b1fb46f0bca3350 | [
"Python"
] | 3 | Python | JasonLiuys/Flask | 47f059ede4c4e5abd143a4d6449373add3df5a90 | 57c3986e17137c108eb355d7e48db351dc4259cb |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Mail;
use Redirect;
use Auth;
use Session;
class MailController extends Controller
{
public function enviarCertificado(Request $request){
// dd($request->all());
global $emailto;
$emailto = $request->all()['u... | 2cd22f51b0e7caa00bb4e3879cb640332773913c | [
"JavaScript",
"SQL",
"PHP"
] | 17 | PHP | samir04m/votacionesUnimagLaravel | 502994545971c2b77a81583e383aceb6ed2ffb70 | 43ee97b934739dc3bce22e970d7005fda0e25ee4 |
refs/heads/master | <file_sep>window.onload = function() {
makelist();
document.getElementById('dish-form').addEventListener('submit', addRecipe);
}
function makelist(){
console.log("hi");
var goodDishes, badDishes;
var dishes = [
"Roasted Brussels Sprouts",
"Truffel Salt Burrito",
"Vegan Philly Style Cheese Steak",... | a5f5a87a242603712351a4707305ac75e43b5daf | [
"JavaScript"
] | 1 | JavaScript | edvio4/javascripted-brussels-sprouts | ab213189b96013ce3d20cdc3ab74c363a96613c4 | 0f6ca569682b19e6996c0159f83705efab8e4619 |
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 com.siscon.view;
import SIGU.paneles.SIUPanel;
import SIGU.recursos.Arena;
import SIGU.recursos.Grid;
impo... | e5369f6b4965e621187fbf265bd5f44869017dc3 | [
"Java"
] | 6 | Java | rudolfPaco/siscon | c8ef26c7abe1a7e38fe831257786be58a9704b73 | b8e973600ce00c0728debc0daa810ab3022383ba |
refs/heads/master | <file_sep>/* global describe, it */
var wordomat = require('../')
var should = require('should')
describe('basic', function () {
it('should exist', function (done) {
should.exist(wordomat())
should(typeof wordomat()).equal('object')
done()
})
it('should have default options', function (done) {
sh... | 884f9d1f7d463e04100bf1833acd702945242db0 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | kennethormandy/word-o-mat | bcf0847728a2a5dcfa07a1927b7a4938495d58a5 | b39eafd217df74e1db3f14e88db720dbe409f5e0 |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
@Component({
selector: 'app-tab-discovery',
templateUrl: 'tab-discovery.page.html',
styleUrls: ['tab-discovery.page.scss']
})
export class TabDiscoveryPage {}
<file_sep>import { Component } from '@angular/core';
import { Router } from '@angular/router';
@Com... | 241c62d80659256f41cc136b9af1cd15d5a962da | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | scofieldwenwen/QAapp | 5cc80a5d550057d3254ba7561aa525108e19f5a0 | 30df472f81f61572ba7e1a2f1d03c65f6d19b891 |
refs/heads/master | <repo_name>2655398311/weibo_extract_Emotional-analysis<file_sep>/strategy.py
# -*- coding:utf-8 -*-
from pyhanlp import HanLP
import pandas as pd
import random
from collections import defaultdict
import re
class TrieNode(object):
def __init__(self, value=None):
# 值
self.value = value
# fail指... | cdb8103123317f237d668fd5c4c703b31479f6d9 | [
"Markdown",
"Python"
] | 5 | Python | 2655398311/weibo_extract_Emotional-analysis | bd56ecd1f53fee408003508fe1759df82c0c869a | 78c815bbabd0013f294a3e7db48d584faa752932 |
refs/heads/master | <file_sep>using UnityEngine;
using System.Collections;
public class Redo : MonoBehaviour {
public AudioClip button;
private UnityEngine.iOS.ADBannerView banner = null;
private void OnMouseDown(){
GetComponent<AudioSource>().PlayOneShot(button,5f);
AutoFade.LoadLevel("Game" ,0.5f,0.5f,Color.white);
/*banner... | 4b6f010edbee8d0509aa595eccee7224d2302c6f | [
"C#"
] | 15 | C# | benjaminyue/BoboChallenge | 6020d1e523c055f2839c76fdd0ecb4e35dc9fdf4 | 1ddef562a1765084852b4f02655ba83ffc8c6a0e |
refs/heads/master | <repo_name>amyhenning/todo<file_sep>/spec/factories.rb
FactoryBot.define do
factory :task do
title "Do the dishes"
done false
end
end<file_sep>/README.md
# ToDo
ToDo is a single-page to-do list application that uses jQuery to allow for dynamic creation, status updates, deletion, and highlighting of tasks.
## Fe... | 90f913cebbe31cf0fe1b5c224402082cfecb85a8 | [
"Markdown",
"Ruby"
] | 2 | Ruby | amyhenning/todo | 495cc64d10384df5b09a5b5be930ab5d59d6534c | 3ab3965dda161bd7ae3ab5c3905640406325c56b |
refs/heads/master | <file_sep>import datetime
from django.db import models
from django.template import Context, Template
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.fields import AutoSlugField
from django_extensions.db.models import TimeStampedModel
ROLE_CHOICES = (
(0, _('Project Leader')),
... | f3cbdec1bc5bf31c56139f24a96f4718d380dbdd | [
"Python"
] | 16 | Python | peyton/pphoto | 53f2e1309b8ec5a5bf29ad7d09b805ad945a5010 | 17f27bfee540f7bd5772e77bc1088e96bd68ce3d |
refs/heads/master | <repo_name>serjolas1/store<file_sep>/requirements.txt
Flask
Flask-Session
cs50
<file_sep>/app.py
from cs50 import SQL
from flask import Flask, render_template, redirect, request, session
from flask_session import Session
#create app
app = Flask(__name__)
#configure app
app.config['SESSION_TYPE'] = 'filesystem'
app.co... | 2a55652cbe5f130c8762c5e9a65b53ed4515193d | [
"Python",
"Text"
] | 2 | Text | serjolas1/store | 6fffadbd728c5366ec9754db15213afc04083aa8 | c35045f24645fb2ed58848d24594981ca313dd48 |
refs/heads/master | <file_sep># Way2Automation - A demo project to show automation of Way2Automation demo site
<file_sep>[SuiteResult context=AutomateWay2Automation]<file_sep>package com.way2automation.common;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.Ex... | b23b8f45f41ebf4fb80418d9cb342c9e7e00a4e1 | [
"Markdown",
"Java",
"HTML",
"INI"
] | 4 | Markdown | TheGeekonQuality/Way2Automation | bc067b233faf7afa87a1bf700c0eb7e478df650a | f60bb9020f92ba4c5a3d33b5a5c68c70c3472633 |
refs/heads/master | <file_sep>const Koa = require('koa')
const cors = require('@koa/cors')
const InitManager = require('./core/init')
const bodyParser = require('koa-bodyparser')
const catchError = require('./middlewares/exception')
const app = new Koa()
require('./app/models/user')
app.use(cors())
app.use(bodyParser())
app.use(catchEr... | c3f034f1ab8885928800f19d9f4c3d37022edf14 | [
"JavaScript",
"Markdown"
] | 36 | JavaScript | HytonightYX/noter-v2 | 0ddd29d0b1abaa97014af124ff62739079d85f1f | 9a2b8913bf21056518bac697512f3623b9995559 |
refs/heads/master | <file_sep>import java.util.ArrayList;
public class StackDetails {
private int maxHeight;
private int totBlocks;
private int maxIndex;
private ArrayList<ArrayList<Block>> stack = new ArrayList<ArrayList<Block>>();
public StackDetails(int maxHeight, int totBlocks, ArrayList<ArrayList<Block>> stack, int maxInde... | 5040b86a5764b4fb516727e8cb49125fd817ef8c | [
"Markdown",
"Java"
] | 3 | Java | kielong/algorithmsAssignment11 | 3c3b7f90c4dbb387713eea4f50cfdbe1e012eadf | 37e58baab0377b941520f22026f991afc28c00ba |
refs/heads/master | <file_sep>import styled from 'styled-components'
import colors from './../styles/colors'
export default styled.h2`
padding-bottom: .3em;
font-size: 1.5em;
color: ${colors.main};
border-bottom: 1px solid ${colors.main};
`
<file_sep>import styled from 'styled-components'
export const BitcoinIcon = styled.img`
... | 3d6535eb286d37abf1df043331301b4224487008 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | zamarrowski/bitcoin-stats | 03b0a2cb7a2226592473678396a7ae9c57b5af9d | 991ccfcab8fa9acf6b6bec971a026cfb66a1e1f6 |
refs/heads/master | <file_sep>#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <vector>
#include <memory>
#include <iomanip>
using namespace std;
int ** RandomMatrix(int size, int range)
{
int ** matrix;
matrix = new(int * [size]);
for(int i=0; i<size; i++)
matrix[i] = new(int [... | 933f27fa147798e07cf9a6d6c7550a13ee2edfe0 | [
"C++"
] | 1 | C++ | chienyld/zigzag | 2f8982b624b247af1b1c50112a947e1b02e80d85 | 403d24e55097b3191cc4d41803f045b30d912d99 |
refs/heads/master | <repo_name>elnormous/sgscript<file_sep>/ext/sgsapitest.c
#include <stdio.h>
#include <time.h>
#define SGS_INTERNAL
#define SGS_USE_FILESYSTEM
#include "sgs_int.h"
const char* outfile = "apitests-output.log";
const char* outfile_errors = "apitests-errors.log";
#define DEFINE_TEST( name ) static vo... | 5294a28e27e4b5ccaf8297dfb17593451d48d593 | [
"HTML",
"Makefile",
"Text",
"C",
"C++"
] | 26 | C | elnormous/sgscript | 97a5676239a3e1ebad082829e62460f8cd02bcc6 | 2bb8a1286f777d39267e0bc22e82eb473a0ec1e6 |
refs/heads/master | <repo_name>r4stered/AppletQuiz<file_sep>/index.js
$(document).ready(function () {
var allCorrect = true;
console.log('Configuring Dragula for containers w/ d.gebt');
var drake = dragula(
[
document.getElementById('options'),
document.getElementById('catA'),
document.getElementById('catB'),
document.get... | 7e9fb2d391425f2501798bad957f3c7d5d92b9b4 | [
"JavaScript"
] | 1 | JavaScript | r4stered/AppletQuiz | 1811f03053496f2f728d0acca0fd56ce5f813d63 | 3ab4c67fc760891751ceed37ac21d1d161066910 |
refs/heads/master | <file_sep>/* ------------------------------------------------------------------
* node-gotapi - http-server.js
*
* Copyright (c) 2017, <NAME>, All rights reserved.
* Released under the MIT license
* Date: 2017-01-03
* ---------------------------------------------------------------- */
'use strict';
let mFs = require('f... | 0f2d7238c76890efb1bbd257b83caecd9c8d84e2 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | TakayukiHoshi1984/node-gotapi | e2535257280500d25a802d9cd79083b1f0eb7605 | f66c009caa31490c63b355cb0e85c9d3c570f00e |
refs/heads/master | <file_sep>module Cenit
module BuildInApps
module OauthHelpers
def self.included(m)
m.controller do
def if_can?(action, model = nil)
error_description = nil
if (auth_header = request.headers['Authorization'])
auth_header = auth_header.to_s.squeeze(' '... | 3fa4e4cedaaef33ac3e5e4ad9e66b787ddd1bd6b | [
"Ruby"
] | 5 | Ruby | cenit-io/cenit-build_in_apps | 31369fdcaf871938f4178d311a2230f760afc5cc | 286427eaba2674d8179a32f6cffb3a4803bba71d |
refs/heads/master | <file_sep>const {sequelize} = require('../../../core/db')
const {Sequelize, Model} = require('sequelize')
const ObituaryAlive = require('../../models/obituary/ObituaryAlive')
const ObituaryLonely = require('../../models/obituary/ObituaryLonely')
const ObituaryInfernal = require('../../models/obituary/ObituaryInfernal')... | 3ad1eab732a1ae7cfc74d968dde09d67d6085f25 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | wangtiant/underground-serve-node | 06ab9b5107101243887a5f6da4c81ec337d46cc0 | 4e04750d84f4f56e572bdcdfd1db4291b4d8baea |
refs/heads/master | <file_sep>//<NAME>
//8606
package userApplication;
import java.io.*;
import java.util.Scanner;
import java.util.ArrayList;
import java.io.FileWriter;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.File;
import java.io.FileOutputStream;
import ithakimodem.Modem;
import java.lang.... | 002b4c35bf67576072692f7d19370d8b3fffee0e | [
"Java"
] | 1 | Java | ypatiapd/Networks | 0fd04a9889a0865675dd5ade4c3b6bb102c5961f | 46c1448e8dc0a4aa24f33b49b8b4de6326a4d9e1 |
refs/heads/master | <repo_name>EliasFerguson/MKS21X-LinkedList<file_sep>/LinkedList.java
class MyLinkedList {
private int size;
private Node start,end;
public MyLinkedList() {
size = 0;
}
public int size() {
return size;
}
public boolean add(Integer value) {
if (size == 0) {
start = new Node(value);
end = start;
... | 473f7e766fda433fe2d446944e8fc3dee2045c1c | [
"Java"
] | 1 | Java | EliasFerguson/MKS21X-LinkedList | b64fe7a512f68189d5ab7eea8329ced8065bc39d | ed6781395a43a21accca108eb760bde68800d36a |
refs/heads/main | <repo_name>cgomezm/APIWorkshop<file_sep>/Controllers/TokenController.cs
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Tokens;
... | 37fabe30198b9695663ca49353795bf8644d30dd | [
"C#"
] | 6 | C# | cgomezm/APIWorkshop | 0f1c96fdf039cbe659e030946b6ff5bca6e130a2 | 30b63a177807a45305d86ecb51bd9cf1956fa936 |
refs/heads/master | <repo_name>darthyody/generator-yody<file_sep>/README.md
# Yeoman Generator - yody
## Installation
1. Install Yeoman
2. Copy this repo
3. Run: 'yo yody' to initialize.
## Features
* Jade
* Sass
* Bootstrap
* jQuery
* grunt
<file_sep>/generators/app/index.js
var generators = require('yeoman-generator');
/* static funct... | a40e6705cebd2c35077a1450600ccebc545b98c4 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | darthyody/generator-yody | d394c7a704d1e54b4db113333096f9494f4cd994 | a5bad7726b52a8cbe7a932a2cad9f92afd5be3bf |
refs/heads/master | <repo_name>SSKJ-Android/SSKJ-Java<file_sep>/app/src/main/java/com/sskj/hub/utils/PopUtil.java
package com.sskj.hub.utils;
import android.Manifest;
import android.app.Activity;
import android.graphics.drawable.ColorDrawable;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
impo... | b85a9b0a2fa1b2d98d3e407900d18ce06a341dbe | [
"Java",
"Gradle"
] | 32 | Java | SSKJ-Android/SSKJ-Java | 31f5fcd9fdee3dd08fa246ca2563b111f57df158 | b0cc032b97a2288b4f5b75d221349b67384c3400 |
refs/heads/master | <file_sep>/* Hamming and parity calculations */
/* Copyright 2015 <NAME> <<EMAIL>> */
unsigned char hamming84(unsigned char d)
{
unsigned char d1 = d&1;
unsigned char d2 = (d>>1)&1;
unsigned char d3 = (d>>2)&1;
unsigned char d4 = (d>>3)&1;
unsigned char p1 = (1 + d1 + d3 + d4) & 1;
unsigned ... | f34b09185b397708aade83f32cfd830855922c8f | [
"C"
] | 3 | C | yaba/raspi-teletext | ad1dc176f21c52a27ee58c6b25ef53a0a812e07a | 31979623c8ed19fa58e8c7e74bfebd95f1ab50c9 |
refs/heads/main | <file_sep>package com.bank.cqrs.command.aggregate;
import java.math.BigDecimal;
import org.axonframework.commandhandling.CommandHandler;
import org.axonframework.eventsourcing.EventSourcingHandler;
import org.axonframework.modelling.command.AggregateIdentifier;
import org.axonframework.modelling.command.AggregateLife... | ec9535b1b6d872c30338536087238ee5b7d2ab44 | [
"Java",
"INI"
] | 5 | Java | m-elbastawisi/bank-management | e96a42884d5177e43440d6ce1864ddd3b5e05078 | 55bb1f3215110dec392073c90d67114d6c8e76c1 |
refs/heads/master | <file_sep># When done, submit this entire file to the autograder.
# Part 1
def sum arr
# YOUR CODE HERE
arr.inject(0, :+)
end
def max_2_sum arr
# YOUR CODE HERE
arr.sort.last(2).inject(0, :+)
end
def sum_to_n? arr, n
# YOUR CODE HERE
arr.permutation(2).to_a.any? { |x| x.inject(0, :+) == n }
end
# Part ... | 53f4213e80119313d0dd775a3acb3c453f1ec037 | [
"Ruby"
] | 1 | Ruby | Abishalini/hw-ruby-intro | 76ab6f0640c2c2760ea58f86b2cc4c03968fc872 | 48b219b91ec65df8bb96e2113b88a57bfa89b7c7 |
refs/heads/main | <repo_name>alsrua7222/SeleniumNaverCafeWrite<file_sep>/1.0.1/run.py
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
import pyperclip
import time
class Naver():
def __init__(self,... | a751fccf84131bdde4cf50f08db94456c4a47e99 | [
"Markdown",
"Python"
] | 4 | Python | alsrua7222/SeleniumNaverCafeWrite | 63cfc5df0c9487048e50fef9dbc9d8e67071e75b | 924d954df8e6c8469044357fe321283e615a4706 |
refs/heads/master | <repo_name>dferguso/ExData_Plotting1<file_sep>/plot1.R
rm(list=ls())
## memory estimation assuming all 9 columns are numeric
## this estimate is not very accurate based on results from object.size()
fLines = 2075259 ## Number of rows
fCol = 9 ## Number of columns
ByteSize = 8 ## 8bytes /numeric
bYtesperMB = 1024*1024 #... | 2bdb60f717762605529899c473cb4a839f2ec1e8 | [
"R"
] | 2 | R | dferguso/ExData_Plotting1 | e21f292cb21c5e930c1bcd665296721a6233852e | f8a4a3d20ac9c5aa561d779e118afef38d64de0d |
refs/heads/master | <file_sep>package com.tencent.nemo;
import com.sun.javafx.util.Logging;
import net.coobird.thumbnailator.Thumbnails;
import net.coobird.thumbnailator.filters.Watermark;
import net.coobird.thumbnailator.geometry.Positions;
import javax.imageio.ImageIO;
import javax.imageio.stream.ImageOutputStream;
import javax.servle... | 809eda9f154ec7ce9dd8ac41b08f3ccdcc1bc94e | [
"Java"
] | 2 | Java | hitYOUcry/litelite | b3e05da26e2dcdc2155d86dc91879abe0639f962 | 43418cc73363856e07b10f02f1f88eb856dedb05 |
refs/heads/master | <repo_name>numb3rcruncher52/GettingAndCleaningDataCourseProject<file_sep>/run_analysis.R
## run_analysis.R
##
## Author: Max
## Date: 4/14/2016
##
## This script downloads accelerometer data from the Samsung Galaxy S
## smartphone and cleans it up for analysis for the Getting and Cleaning
## data course project from C... | 42baa975cefff2ac6d5e85fb65c406e6050c9610 | [
"Markdown",
"R",
"RMarkdown"
] | 3 | R | numb3rcruncher52/GettingAndCleaningDataCourseProject | b6d2ad176d1d5bf18630301762c536dc07c8780e | 7444fa9dab37349159534a47ea6d6d7f0cbaef02 |
refs/heads/master | <repo_name>Justduma/Trattoria<file_sep>/build/js/main.js
// open/close popup
var catch_event = document.querySelector('.slaider'),
popup = document.querySelector('.popup'),
popup_close_btn = document.querySelector('.popup__close-btn');
var temp_popup_class = '';
catch_event.addEventListener('click', function(e... | bd6db15887dd724f6b6b630e196bd6885f5f5e1e | [
"JavaScript"
] | 2 | JavaScript | Justduma/Trattoria | 3d9f72aeb15179bdd0ad11aa19decafd6519b453 | c47f594a9f32b30d35592c006bf4e978e61180cc |
refs/heads/master | <repo_name>DineshShelke/LoginSignupFragment<file_sep>/README.md
#Login-and-Signup-in-Android
**Description**:
I have developed below three modules in android:
- User Signup
- User Login
- Initial Setup (Welcome Screen)
The User Signup module creates a new user in the SQLite database. Once registered, users can ... | 5bc43e6e2859f066410bc4a2f62d2ce2e9e44fa6 | [
"Markdown",
"Java"
] | 3 | Markdown | DineshShelke/LoginSignupFragment | 370042f0a6eb50ada4274e83776dd9a8619d8846 | ffeac2ebba19428f58663a96a557c7987b2371f5 |
refs/heads/master | <file_sep>// 全局请求封装
const token = ''
// 主域名
const apiUrl = ''
const baseRequest = (url,method,params) => {
return new Promise((resolve, reject) => {
uni.request({
url: apiUrl + url,
data:params,
method:method,
header: {
'Content-Type':'application/x-www-form-urlencoded' //自定义请求头信息
},
}).then((r... | 70c6a156002a7cc20f36665949e11f716bf59563 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | hjqyz/HJGZApp | 230331fc556dc6e5946cdf40283b1d61919d29f3 | 51a22183be081488690ba265627041ca56d7a8ce |
refs/heads/master | <repo_name>islamfatema/demoTest<file_sep>/src/test/java/random/test/BrowserUtility.java
package random.test;
import org.testng.annotations.Test;
import org.testng.annotations.Test;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.op... | 7489ff80d29ddd79e61e55c8a9a020f84b952ea2 | [
"Java"
] | 1 | Java | islamfatema/demoTest | 0d4f0addb937bf1e5499e16d26ea49c46ff17855 | ccaabcc79ab55a1db7936a5a7af97c0ab495fedd |
refs/heads/master | <repo_name>geomural/react_task3_2<file_sep>/README.md
<NAME>
Домашнее задание 3.2
<file_sep>/src/components/Listing.js
import React from 'react';
import PropTypes from 'prop-types';
import Item from './Item'
function Listing(props) {
const {items} = props;
let data = items.map(element =>
element.url... | f4bd3560b916faee0f5d72d0d6499671b8f33dda | [
"Markdown",
"JavaScript"
] | 3 | Markdown | geomural/react_task3_2 | 090d9983a046290834bb3e8fd6f1c9924c1b0368 | 743a6813b85266bd102939ff3f51dc02eb2fae00 |
refs/heads/master | <file_sep>package de.mario222k.myapplication
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import de.mario222k.gdglib1.LoginFragment
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity(), LoginFragment.LoginListener {
override fun onCreate(save... | 16bc3a69bc79c365398b04e11a66a8d26b1bc9f9 | [
"Markdown",
"Kotlin",
"Gradle"
] | 4 | Kotlin | mario222k/gdg_example_1 | dd0acf2341002680eea2a53802ed68842ca87721 | 51127858e20726c0d189c0b89cbb00498da4a7c9 |
refs/heads/master | <file_sep>import React,{Component} from 'react';
import {Form,Button,Message,Header} from 'semantic-ui-react'
import axios from 'axios';
class AddCollector extends Component {
state = {
firstname:'',
lastname:'',
email:'',
password:'',
errors:{},
msgerror:''
... | dfa29b7fd207c5b1e4a60d5513be1f28cbeb64b8 | [
"JavaScript"
] | 3 | JavaScript | ELTEGANI/i-SurveyAdminDashBoard | dd00dd3d238fb41f7a0ec12ca170800ea63cf020 | 26368d3c1820b2d917af9990901e7770d4bc0bf3 |
refs/heads/master | <file_sep>#define kbd_es_es
#include <Keyboard.h>
/*
* Generated with <3 by Dckuino.js, an open source project !
*/
void typeKey(int key)
{
Keyboard.press(key);
delay(50);
Keyboard.release(key);
}
/* Init function */
void setup()
{
// Begining the Keyboard stream
Keyboard.begin();
// Wait 500ms
de... | 27b360e88870a51a22fce536f568e4b92b228da9 | [
"C++"
] | 1 | C++ | hackuna885/4_SuperHAckMejoradoRemoto | 9dedfd032e9ef490292087013c7d512d56c39ca7 | 338689b7659c406c3c1f190d62f46810f44a84a4 |
refs/heads/master | <repo_name>CaoyangLeeAndroid/RxProject<file_sep>/app/src/main/java/www/weimu/io/rxproject/ui/page/news/list/NewsListPresenter.java
package www.weimu.io.rxproject.ui.page.news.list;
import com.orhanobut.logger.Logger;
import io.reactivex.disposables.Disposable;
import www.weimu.io.rxproject.backend.retrofit.base.OnReq... | 9b976a2c1f85530d5eb2c293da55afdc1e6cc037 | [
"Java"
] | 5 | Java | CaoyangLeeAndroid/RxProject | ad08fd7a9578c38261e2dc605d2d04d334e7ec9e | 9aff137ecc66e3fc19361ad096c497ac374a7251 |
refs/heads/master | <repo_name>bern/lunch-bot<file_sep>/tests/lib/handlers/test_alert_leaving.py
import pytest
from lib.handlers.alert_leaving import handle_alert_leaving
from lib.models.plan import Plan
@pytest.mark.parametrize(
"args", ["alert-leaving", "alert-leaving tjs 12:30 another-arg"]
)
def test_alert_leaving_not_bad_args(... | 879f3e396e2beb97cfc51a8841febfdcf21ad70e | [
"Markdown",
"Python",
"Text"
] | 36 | Python | bern/lunch-bot | 8770bac9e7a824d9ed75e7aa3abcc112be840509 | 7293bd104d1be2a5ddd6572177c2bec800870466 |
refs/heads/master | <repo_name>jlrickert/clipvault<file_sep>/clipvault/cmd/__init__.py
import sys
from ..vault import vault as vault_
from .snag import SnagCli
from .vault import VaultCli
def snag():
args = sys.argv
cli = SnagCli(args, vault_)
sys.exit(cli.run())
def vault():
args = sys.argv
cli = VaultCli(args, v... | fa8e5ecf0a861125881f22a579ccadbec9608cf8 | [
"TOML",
"Python",
"reStructuredText"
] | 9 | Python | jlrickert/clipvault | 37eeba923b095873085049b0547cbc1de0b9897d | 00f397b8dca82f140956bf3c8d1beea0150f89cf |
refs/heads/master | <repo_name>C0dak/amass<file_sep>/amass/activecert.go
// Copyright 2017 <NAME>. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package amass
import (
"crypto/tls"
"fmt"
"strconv"
"strings"
"time"
)
type ActiveCertService struct {
BaseAmassS... | fb1e70a1ca7356e81b23e7485a2c45708401db65 | [
"Go"
] | 1 | Go | C0dak/amass | 1e8d79e659075594c5fb7790a5bc9ed38bad204b | 412bbc4be74f8f87820b6f3759d1a90ee93c4c8b |
refs/heads/master | <file_sep>[](http://gruntjs.com/)
##Lab for RequireJS + grunt-contrib-requirejs + AlmondJS
#### Resources:
* http://requirejs.org/
* http://requirejs.org/docs/optimization.html
* https://github.com/gruntjs/grunt-contrib-requirejs
* http://gregfranko.com/requi... | c99e8b3fdd37d54895f74a852e5a77ae7f4dbf95 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | AgtLucas/require | 2f5f7ac75df5c7d239ffdad2b4664e675d273a6a | e3299ef44470721d74ee66dda38461e20bd7dd00 |
refs/heads/master | <file_sep>var flowFile = session.get();
if (flowFile !== null) {
var StreamCallback = Java.type("org.apache.nifi.processor.io.StreamCallback");
var IOUtils = Java.type("org.apache.commons.io.IOUtils");
var StandardCharsets = Java.type("java.nio.charset.StandardCharsets");
flowFile = session.write(flowFile, n... | ad70af0dd9b6fe46393a4828ae91f15ac27ecc8f | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | chnbohwr/nifi_compose | 04787d2ed723ddbc322d36d8f6869a813db5c1b7 | a90404b21082d745b0cab4611d03a6c8e7b95442 |
refs/heads/master | <repo_name>brendannee/bikesy-native<file_sep>/app/services/weather.ts
import config from '../../config.json';
import CoordinateType from '../types/coordinate';
// Only fetch weather info every 5 minutes
const cacheWindow = 5 * 60 * 60 * 1000;
let weatherFetchTime;
let weatherResults;
export const getWeather = async ... | 81abaa5520b9c90ceae7a3d7573c8ee0a16a0c21 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | brendannee/bikesy-native | 6d10183f4a5f38ac6846fa0fd2c730f68dea02b4 | 14851393dda2be911c722beabe6a7073c5e0b868 |
refs/heads/main | <file_sep>import React, { useCallback, useState } from 'react';
import { styled } from '@material-ui/core/styles';
import { AppBar } from '../AppBar';
import { CatGrid } from './CatGrid'
const HomeContainer = styled('div')({
flexGrow: 1,
display: 'flex',
flexDirection: 'column'
});
const Home = () => {
co... | 051271f4ba6e9f01b76ffd83bc3b4ec6f5f02b9e | [
"JavaScript"
] | 4 | JavaScript | Radzell/probable-cat | 4a80ed0e85849b0f85997d9851d8cc1ab09a0a3e | 419ad8be612fda726950b023a6e3d38d6c8b9626 |
refs/heads/master | <file_sep>(function () {
require('angular-translate');
angular.module('app.translate', ['pascalprecht.translate'])
.config(config)
.factory('translateService', translateService);
/* @ngInject */
function translateService($translate) {
var service = {
changeLan... | 761be43fb9b5eb0528828a1a0067a574004b3f3d | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | civanm/PL_CIM | 1ccc1b2d7762f3342a5d988b5b50bade932c71af | 015d5e083862050db59f11fdbbf439f7f36e1577 |
refs/heads/master | <repo_name>maximebj/wp.theme.oop<file_sep>/header.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?... | 860350f71a68037a85304dd6688510144e4b811f | [
"PHP"
] | 9 | PHP | maximebj/wp.theme.oop | 4f8d71d9740c8057241d8d6b969cc8c4621e5ad8 | aaf6d3398cf81e721f6e59aa534b1a3936526f11 |
refs/heads/master | <file_sep>using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System;
namespace FluxEditor
{
public class FSettings : ScriptableObject
{
[MenuItem(FSequenceEditorWindow.MENU_PATH + FSequenceEditorWindow.PRODUCT_NAME + "/Create Flux Settings", false, 101)]
public stat... | d4b216d868d7c3426bf83c7da0f08bce99ff8ee5 | [
"Markdown",
"C#",
"Lua"
] | 191 | C# | B-CK/X-lua | 68b0f001aefeeebc122f2d0ed23e1ff8f8363191 | 4b23b23b78630f26314c93ae53042ece9feb9893 |
refs/heads/master | <repo_name>Mnantier/dana-project<file_sep>/Dana.java
package com.mnanti.rdftp;
import java.io.InputStream;
import org.apache.jena.query.*;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.util.FileManager;
public class Dana {
static final String file = "... | ec36b499495592a8228bc518988cf71d05adac69 | [
"Java"
] | 1 | Java | Mnantier/dana-project | 75cdfaba52c5db6382305806efbe210e5232ec08 | 9910a32da6bb860fb4ed5537b4f30c232d665d88 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.