branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/main | <repo_name>FuramyD/linkedin-redesign<file_sep>/client/src/app/pipes/pipes.module.ts
import { NgModule } from '@angular/core'
import { CommonModule } from '@angular/common'
import { NamePipe } from './name-pipe/name-pipe.pipe'
import { PrefixPlusPipe } from './prefix-plus-pipe/prefix-plus.pipe'
import { MaskedPhonePipe... | 2bdaaaeea9d413c83aec9f5ddeb6b190b03b80d9 | [
"Markdown",
"TypeScript"
] | 118 | TypeScript | FuramyD/linkedin-redesign | 89e79859a81f593fb4d9630cd2e7b3d34abd7910 | 8b53ca5e21b4d30e605d36101b79a4e1cf80407c |
refs/heads/master | <file_sep>const passport = require('passport')
const LocalStrategy = require('passport-local').Strategy;
const FacebookStrategy = require('passport-facebook').Strategy
const GoogleStrategy = require('passport-google-oauth20').Strategy;
const bcrypt = require('bcryptjs')
const db = require('../models')
const User = db.U... | d915524770bd7961a4d63954d21d062eec496eb5 | [
"JavaScript"
] | 10 | JavaScript | duaifzn/res_forum | e4546e1b31fb47c4a100d161f234396895283c9c | be2d41e599cba14c784b5588700f108665d32fd1 |
refs/heads/master | <file_sep>let pronoun = ['the', 'our'];
let adj = ['great', 'big'];
let noun = ['jogger', 'racoon'];
var texto = ""
for (var i = 0; i < pronoun.length; i++) {
for (var j = 0; j < adj.length; j++) {
for (var a = 0; a < noun.length; a++) {
console.log(pronoun[i] + " " + adj[j] + " " + noun[a] + ".... | 6beb45390d56b176029b654bccc7085636c935b0 | [
"JavaScript"
] | 1 | JavaScript | felipemat6767/DomGenerator | 5aab1c7ef5d8e022a15c92da0d76f3cdd26268a4 | f596d308866a74f18f4e08dca402c8da4c473d64 |
refs/heads/master | <repo_name>suzanamelomoraes/loan-calculator<file_sep>/README.md
# Loan calculator
Application in vanilla JS that allows the user to calculate loans.
The user can calculate loans after inform values of amount, interest and years to repay. The calculator returns the cost of the monthly payment and how much is going to ... | 8be6e98e140282b96bbd6ddd78f7bf54c1ee5204 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | suzanamelomoraes/loan-calculator | aa9028aada3e4cbc159a7d3216d35f17eb3761f2 | b8d7c7827cd561813e91b06768cfbd5e186955ab |
refs/heads/master | <file_sep><div class ="index">
<h3>Listado de Productos</h3>
<table>
<tr>
<tr>
<th><?php echo $this -> Paginator -> sort('name', 'Name') ?></th>
<th><?php echo $this -> Paginator -> sort('id_local', 'Local') ?></th>
<th><?php echo $this -> Paginator -> sort('amount', 'Amount') ?></th>
</tr>
... | c61dcdd23bba516cb8e930dfeca5a42fd9c7cfb5 | [
"Markdown",
"PHP"
] | 22 | PHP | dantecarlo/Almacen | ea984e80eb6d148e0d291bf89b2414900d827ec1 | cfa2d8bf9a08656a3afb5d2da98c037f53abfa88 |
refs/heads/master | <repo_name>a139169370/Modify_Naserver_UsersPassword<file_sep>/ReadMe.md
在导入Excel的时候密码第一位为0时Excel自动将0抛弃;脚本将所有5位数密码更改为0+原5位数密码,即“<PASSWORD>”;
因避免密码泄露,未提交.class文件和user.java文件,若有需要请自己添加
-by 龙猫
-2018/10/16
<file_sep>/src/Main.java
/*
function:在导入Excel的时候密码第一位为0时Excel自动将0抛弃;脚本将所有5位数密码更改为0+原5位数密码,即“身份证后6位”;
author:龙猫
date... | bd1807230d470d5c10e9f1d6e7f6c4a51ac35398 | [
"Markdown",
"Java"
] | 2 | Markdown | a139169370/Modify_Naserver_UsersPassword | 2fd145931146879aa158a715448e958cd8cf9de9 | f94a2573a3483a7f75cb5e977309750c1c1a9229 |
refs/heads/master | <repo_name>okayamarb/pheasant-app<file_sep>/middleman/Gemfile
source 'http://rubygems.org'
gem 'therubyracer'
gem 'uglifier', '>= 1.3.0'
gem 'slim', '~>2.0.2'
gem 'middleman', '~>3.2.2'
gem 'rack-cors', require: 'rack/cors'
# Live-reloading plugin
gem 'middleman-livereload', '~> 3.1.0'
# For faster file watcher upda... | 3bcc6cefe36a19812fbba68e6411a44d46d730f9 | [
"Ruby"
] | 2 | Ruby | okayamarb/pheasant-app | 3f7cae6fb3054325d93aa4f7b616544c92ac9a51 | cc3ca2c401de584e01d46dbc8ccbee1c7e7260cf |
refs/heads/master | <file_sep>from setuptools import setup
setup(name='rubiks_cube_gym',
version='0.0.1',
url="https://github.com/doublegremlin181/rubiks-cube-gym",
keywords='environment, agent, rl, openaigym, openai-gym, gym',
author="<NAME>",
author_email="<EMAIL>",
license="MIT",
install_requi... | ecd4dba6bc2881fe34af1bf891311fff47dbc5d7 | [
"Python"
] | 3 | Python | paritoshk/RubiksCubeGym | 28228c6a139197fdac4e0c113919d67aa16bb8da | f3b5ed2206fa897129eef71eb8cf57be6b41794c |
refs/heads/master | <file_sep>var assert = require('assert');
var otk = require('../lib/token.js');
var yesterday = new Date(Date.now() - (24 * 3600 * 1000));
var tomorrow = new Date(Date.now() + (24 * 3600 * 1000));
var testPassword = "<PASSWORD>";
var cipherId = 2;
// Test decode (token generated from 3rd party OpenToken lib)
!(funct... | ee0f8ac5fa56f897470b887312dcde9377026796 | [
"JavaScript"
] | 1 | JavaScript | airicyu/node-opentoken | d2d80133f1f8528d44138b6a2f191c802237f926 | 04ddf79aabb6820e54c5591a21e2b3e4f4793e18 |
refs/heads/master | <file_sep>using EjercicioPractico.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace EjercicioPractico.Controllers
{
public class CocheController : Controller
{
// GET: Coche
private EjercicioPracticoContext db;
... | 56a6c89e2aea3fe03b3be2e0072ac108a9b4e9f4 | [
"C#"
] | 11 | C# | GersonCaballero/Ejercicio-MVC | 3f37c88586c45fb78ea80d532444c39c08185683 | 0949f9c18564b124e13d855c9ec654cea5760ad4 |
refs/heads/master | <repo_name>krunalmiracle/ReactJS-Tutorial<file_sep>/src/Tweet.js
import React from 'react';
import './Tweet.css';
function Tweet({name,message}){
//We can use the imported data anywhere
return(
<div className="Tweet">
<h2 className="tweet_inline">{name}: </h2>
<p className="tweet_inlin... | be7df8571b2f2bbc6751c98ced17517a86ce7dcf | [
"JavaScript"
] | 1 | JavaScript | krunalmiracle/ReactJS-Tutorial | 0895c17945da547d0977b7e9a0f6bd07f3f49784 | 6b8eb065852bf36c410232080b63eaf347722221 |
refs/heads/main | <file_sep>var hp=0;
function lumos_fn(){
if (hp==0){
document.getElementById("wand").src="https://cdn.instructables.com/ORIG/F8I/P58P/H82UF7YE/F8IP58PH82UF7YE.jpg?auto=webp";
document.getElementById("lumos").value="NOX";
hp = 1; }
else if (hp == 1){document.getElementById("wand").src="https:/... | f8de7a21300a899c1359bb998433e58a63b996db | [
"JavaScript"
] | 1 | JavaScript | Christino2020/Project60 | 28f85ffffb3ff65d483a37f9078fa3446968c078 | bc006b72ad422c91a63bc6c7aeabfad1211f3237 |
refs/heads/main | <file_sep>import React, {Component} from 'react';
import { Bar } from 'react-chartjs-2';
class Chart extends Component{
constructor(props) {
super(props);
this.state = {
chartData:{
labels: ['Dog', 'Cat', 'Bird', 'Fish', 'Turtle', 'Rabbit'],
datasets: [
{
label: 'O... | 86f0919353baa522bd370f552cf19a97d671d658 | [
"JavaScript"
] | 1 | JavaScript | peter-newton/project_2 | 7017903a23d7bedf379e1eae7e2c319b0d8fa99b | 45ccfbfc6de5e7591abb287530c33cfc030c5924 |
refs/heads/master | <file_sep>using Newtonsoft.Json;
using System.IO;
/// <summary>
/// Author: <NAME>
/// Date: 2017-12-28
/// Most of this code found on: https://stackoverflow.com/questions/6115721/how-to-save-restore-serializable-object-to-from-file
/// </summary>
namespace GarageShopBooking
{
class FileHandler
{
/// <... | 3a3eec3a6b5b29035970fd1c957b5f11f0534d0b | [
"C#"
] | 15 | C# | zarkroc/GarageShopBooking | 55de8c20c985db805f9d9e78715a7efe7403ac0c | 3f4bff78da4f911b0ec747f1b44351756e6d2238 |
refs/heads/master | <file_sep>module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
config:{
vendorsFilesToCopy : {src: 'bower_components/jquery/jquery.min.js', dest: 'www/scripts/jquery.min.js'},
assetsFilesToCopy : {expand: true, c... | 4513b38f962ed2b919d1c7acd1bfed90ddf9bffb | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | saadBanaoui/C-M | d817b3e47225be8e4b5615f8be8cfa72852baa80 | d1abaab3913138436e011e5a05eb18f883a0c074 |
refs/heads/master | <file_sep>//
// Author: Devil323
//
using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Specialized;
using System.IO;
namespace Mobius
{
public class IniFileManager
{
private string myIniFileName="";
private bool myFileReaded = false;
private SortedList myF... | ecc53e4b26821e8aaeaa7b57d908189a70509ad4 | [
"C#"
] | 7 | C# | BackupTheBerlios/mobius | bcd11d1e5581bc98e4ef17addab76606617bed2d | e5b0b26165f9f987d0ede849e852ada2ac32120a |
refs/heads/master | <repo_name>devloperrr/Myproject<file_sep>/conversion.php
<?php
$km=1;
$m=($km*1000);
$cm=($km*100000);
$in=($km*39370.08);
$ft=($km*3280.84);
print"Dear user 1km=$m meters and $cm centimeters and $in inches and $ft feets";
?> | e971f85ccc5e4d0fd181ec407102330e02aa6792 | [
"PHP"
] | 1 | PHP | devloperrr/Myproject | fae5bdd727e440147e0b44252c1ebe625bf2ff08 | 534e59f7464a3f19e696a05b6879dca282e7244a |
refs/heads/master | <file_sep>
import pandas as pd
import numpy as np
import traceback
def get_valid_dataframe_single_page(df,bank_name,page_num):
bank_name = bank_name.strip()
rows = df.values.tolist()
#################################### Header Extraction ###################################
headers = []
last_column ... | 66bbd89a09bc51ff97d4d7451aa8ce5b29e132e8 | [
"YAML",
"JavaScript",
"Markdown",
"Python",
"Text",
"Dockerfile",
"Shell"
] | 41 | Python | tayalanuja/hdfc | 29a0b01a5c40f9badfe6edd710266546a81cf089 | f468d049bf338863053a3450d5f085f1addac612 |
refs/heads/master | <repo_name>Simplesmente/calculadora-js-bdd<file_sep>/spec/calculadora/subtracaoSpec.js
describe("Suite de testes de subtração", function(){
var calculadora = require('../../src/js/calculadora.js');
it('deve retornar 5 para 8 e 3', function(){
expect(calculadora.subtrair(8,3)).toEqual(5);
})
i... | b788e8633231d6ed812f53e0ec28864f5dd65535 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Simplesmente/calculadora-js-bdd | 0321f1a17bbdc512b9fb956efc1ac9ada707585c | e08b654d193dd1988e964910c548845ab63b251a |
refs/heads/master | <repo_name>StevenRParker/ServletJSP<file_sep>/src/casestudy1/Student.java
package casestudy1;
import java.io.Serializable;
public class Student implements Serializable {
private static final long serialVersionUID = 1L;
public String id;
public String name;
public String subject;
public int score;
public ... | 331b8b0ea57f6e2817c3ab2bdfface2b11c6b05a | [
"Java"
] | 1 | Java | StevenRParker/ServletJSP | b8562ce8218a3bc8d09861d5814cffa25e7e6249 | c040aeea02ff956a497e05b579510573cbbe3b30 |
refs/heads/master | <file_sep>import React, { Component } from 'react'
import { withRouter } from 'react-router'
import { Menu, Segment } from 'semantic-ui-react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { logoutUser } from '../../actions/auth'
class LoggedInNavBar extends Component {
lo... | 8bfaaa710116328cb2a0e1e08e8324bac5afa770 | [
"JavaScript",
"Markdown"
] | 24 | JavaScript | jtynerbryan/better-sounds | 3936dbbd6bba6b211557f49ee0ce1e53b4b394fe | 7a02cb1763851da42c1992a947750023c67bf8d7 |
refs/heads/master | <repo_name>chuandajiba/ShouBei<file_sep>/src/main/java/com/wx/microprogram/Entity/OneTask.java
//package com.wx.microprogram.Entity;
//
//import com.wx.microprogram.Pojo.OneTaskMutiId;
//
//import javax.persistence.*;
//
//@Entity
//@IdClass(OneTaskMutiId.class)
//@Table(name = "one_task")
//public class OneTa... | a239c662979de3e726ff3ef1c329be100ec62737 | [
"Markdown",
"Java",
"SQL"
] | 21 | Java | chuandajiba/ShouBei | 29091d4591c86ca9cc08e795eeab04d610b0103c | 8c710444832e5979e52d5e71fabb2c1ac923af59 |
refs/heads/master | <file_sep>/*
package com.phoenix.service.hystrix;
import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;
*/
/**
* @author tianFeng
* @version 1.0, 2018/07/30
*//*
public class CommandHelloWorld extends HystrixCommand<String> {
private String name;
*/
/*protected C... | 72267bdacbd9c1de48a6a799d998ff86ebc8bf15 | [
"Java",
"Maven POM"
] | 21 | Java | parkdifferent/springboot-demo | 004d580667bd027a526fae0c96ebe3bf50e6a2c6 | 27a3e2a4e435eef8c256b2c810d2005822063589 |
refs/heads/master | <file_sep>import React from 'react';
import Sider from './Sider';
import {Layout} from 'antd';
import { withRouter } from 'react-router-dom';
import './Experience.css';
import banner from "../Images/beach.jpg";
const {Content} = Layout;
const Experience = props =>(
<Layout className = "layout">
<Sider ... | 9f747afea3421cc7eb0b69e3ca463140c65d7233 | [
"JavaScript"
] | 3 | JavaScript | bamfman22/my-resume | 10dccb898dcee0c2dcd72a727d7ec7f52ed22f5f | 2c31e2c7a997225047dcf8cc384fefbba121f6a9 |
refs/heads/master | <repo_name>vdoraira/MERN<file_sep>/MovieAppInReact/UI/src/js/components/GetAllMovies.js
var MovieList=require('./MovieList');
var GetAllMovies = React.createClass({
getInitialState:function(){
return{
data: null
};
},
loadCommentsFromServer:function(){
$.ajax({
url: '/api/movies',
t... | 1f8f30ac33adf40cf052d3cfe1c201630672d740 | [
"JavaScript",
"HTML"
] | 21 | JavaScript | vdoraira/MERN | 7a7827ff6bf6409a2aed2f4121274685d1af78f6 | 676bef921a00edd09d84ae47a47fcb373fdbc5a2 |
refs/heads/main | <repo_name>HieroDesteen/social_network<file_sep>/social_network/engine/urls.py
from rest_framework import routers
from engine.views import PostViewSet
router = routers.DefaultRouter(trailing_slash=True)
router.register('posts', PostViewSet)
urlpatterns = router.urls
<file_sep>/social_network/users/urls.py
from django... | 16695d0f9646d66a6a99221fc44aba539c0f3125 | [
"Markdown",
"Python",
"Text"
] | 14 | Python | HieroDesteen/social_network | c17e5ae464201a1d6898b600293104dbeb897247 | 8dc0b34403471bd0c94e0b6b4fea45fd90f443af |
refs/heads/main | <file_sep>#![allow(clippy::blacklisted_name)]
use crate::BoxError;
use crate::{
extract,
handler::{any, delete, get, on, patch, post, Handler},
response::IntoResponse,
routing::MethodFilter,
service, Router,
};
use bytes::Bytes;
use http::{
header::{HeaderMap, AUTHORIZATION},
Request, Respo... | 3fc657cb484164d28f503f94d5e4ef7910e55841 | [
"Markdown",
"Rust",
"TOML"
] | 69 | Rust | heliumbrain/axum | f5f6fa08f3691ab35b05128d848eb8e166d84c2b | d94221d786b24057d24d459f1694dd5444059372 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
#Python Imports
from operator import add
import sys
from datetime import date, datetime
from ast import literal_eval
from itertools import permutations
#Spark Imports
from pyspark import SparkConf, SparkContext, sql
from pyspark.sql import SQLContext
from pyspark.sql import Dat... | 74521d1cd42a233694634ebd368d09715b2384c6 | [
"Python"
] | 47 | Python | AkhilReddy/MySparkWork | 556089f7ecb23febd67348a7ccc6f1abd018ccc9 | c82f587cce81e6814de324c01f4d9c5a5fc087ce |
refs/heads/master | <file_sep>import SeacrhIcon from "@material-ui/icons/Search";
import DescriptionIcon from "@material-ui/icons/Description";
import PlayCircleFilledIcon from "@material-ui/icons/PlayCircleFilled";
import ThumbsUpDownIcon from "@material-ui/icons/ThumbsUpDown";
import SettingsIcon from "@material-ui/icons/Settings";
impo... | 450cc2d4758cca0a39674f1720b9a43ae1bdd643 | [
"JavaScript"
] | 3 | JavaScript | sujithvarma/refactored-dapp | 91b30ed63d89b1cfddde05c33fd67fc253a14827 | b1a646f888070b3d092d7db5787e2769a4863fa7 |
refs/heads/master | <repo_name>alex6673/MVVMDemo<file_sep>/MVVMDemo/Base/Base+Extensions.swift
//
// Extensions.swift
// MVVMDemo
//
// Created by <NAME> on 2020/9/12.
// Copyright © 2020 <NAME>. All rights reserved.
//
import UIKit
import RxSwift
import RxCocoa
protocol Reusable: class {
static var reuseIdentifier: String { get... | c3899c1db7ecf12b3ee30003605720ad7c350392 | [
"Swift",
"Ruby"
] | 12 | Swift | alex6673/MVVMDemo | 7f18a8f185a3aefd8054efa69018a623bfd9b6c6 | cff4b53c8b5316fd96a0ac46a61a69c165396fbd |
refs/heads/master | <file_sep>// RADIUS
export const borderRadius = 3;
// SPACING
export const small = 10;
export const medium = 15;
export const large = 25;
<file_sep># Environment Config
### List of env variables
"set-dev": "shx echo \"export default 'dev';\"> active.env.js",
"set-stage": "shx echo \"export default 'staging';... | a017d1327760cec34e1d02e2174cc4e499baca4a | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | Marko-D/sixth-app | 15d3067c001d0dd002ed6e792d49625b0a707e40 | 4168a999e6a66e38ab42c2cae007c12c74529063 |
refs/heads/master | <file_sep># DynamoDB Viewer
This is for DynamoDB viewer. You can see DynamoDB contents.
# Preparation
You can arrange ```application.yml``` file for your own URL. Default value is below(us-east-1).
```application.yml
amazon:
dynamodb:
endpoint: https://dynamodb.us-east-1.amazonaws.com
```
As precondition, this... | b46bf870585e5737969622968edfee6a1ccd3e80 | [
"Markdown",
"Java",
"JavaScript"
] | 3 | Markdown | kojiisd/dynamodb-viewer-java | 402b50f0bdeb68c1001e9d5d0281df96415b4d65 | 534d7a44a856f6ed04d68005922dec2e827ef3a3 |
refs/heads/master | <repo_name>Semty/SocialBannersApp<file_sep>/SocialBannersApp/SocialBannersApp/Extensions.swift
//
// Extensions.swift
// SocialBannersApp
//
// Created by <NAME> on 21.06.2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
import Foundation
import Cocoa
extension NSView {
func createGradientLayer(withFi... | 15a86f4f75fdedd883efc8da9d09ed973d7d4c9f | [
"Swift",
"Markdown"
] | 34 | Swift | Semty/SocialBannersApp | e598b70c50f363943f6b9de0eb473ccefa0d6706 | 9b74a373eb0df4ca44f35ae339d701a63d12134e |
refs/heads/master | <file_sep>from .models import Details, Experience, Education, Project
from django import forms, template
class ProfileForm(forms.ModelForm):
class Meta:
model = Details
fields = ['first_name', 'last_name', 'birth_date', 'gender', 'contact', 'address', 'facebook', 'github', 'linkedin', 'photo']
cl... | 45e8e31e3acbb46d3052da65699d886f0e0e446b | [
"Python"
] | 5 | Python | rajat19/Biografya | 39c01a8527a74497b6cdb799b7cc56fd4c8832a6 | 1594fc9f0196715004f401aceb31c647fc951af5 |
refs/heads/master | <file_sep>const path = require('path');
const paths = {
assets: path.resolve(__dirname, './src/assets'),
styles: path.resolve(__dirname, './src/assets/styles'),
images: path.resolve(__dirname, './src/assets/images'),
fonts: path.resolve(__dirname, './src/assets/fonts'),
components: path.resolve(__dirname, '.... | 1522defb550cecfe37b32fd15e670820af709c52 | [
"JavaScript"
] | 3 | JavaScript | nikolalakovic85/react-demo | cff89c3103e301289b9a671a7cef467ab0863523 | 0e01b7985e7f964f9e937066acb95e7bf88961fb |
refs/heads/master | <file_sep>//karim
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RockPaperScissors
{
public partial class frmPlay : Form
{
i... | 2be5e5756d5b846aee2c8da7360e861d9ac40e7c | [
"C#"
] | 2 | C# | karimeltabche/RockPaperScissors | 5db400738006e7a042bf1967c9b90c39296fe6e4 | 2b4856f43c998e329d1747a7ef54959880913432 |
refs/heads/master | <repo_name>namseohyeon/herethon-project<file_sep>/hereapp/views.py
from django.shortcuts import render, redirect
from .models import Email, Result
# Create your views here.
def index(request):
return render(request, 'index.html')
def new(request):
return render(request, 'new.html')
def showresults(request):
... | bf28ec5bca25ba3dbf44ae9e1c6f88f0e306fa32 | [
"Python"
] | 2 | Python | namseohyeon/herethon-project | 65a2d30ce4f8a832ec9770321054df90570845c5 | cb06ec41c23d285c6d9574557580873947f69cf7 |
refs/heads/master | <file_sep>require 'spec_helper_acceptance'
describe 'pulsar class' do
context 'default parameters' do
# Using puppet_apply as a helper
it 'should work idempotently with no errors' do
pp = <<-EOS
user { 'galaxy':
ensure => present,
}
group { 'galaxy':
ensure => present... | a272f897b35313672a06088c861dc8feeb4f4ca2 | [
"Markdown",
"Ruby"
] | 3 | Ruby | millerjl1701/millerjl1701-pulsar | bfcaf889fda08fb6fb0810db5fa1c87c13db06c6 | fc7f26912c68faf2934c80fb447907c0e45d8a38 |
refs/heads/master | <file_sep># FuzzyCruiseController
Implementation of Greg Viot’s Fuzzy Cruise Controller using Fuzzy Logic.
## Introduction
Many fuzzy control systems are tasked to keep a certain variable close to a specific value. For instance, the speed of the cruise needs to be kept relatively constant. A fuzzy control system links... | 0f9ed3a47afe665cf3092ab785be1c05ceaa14e7 | [
"Markdown",
"Python"
] | 2 | Markdown | anushkavirgaonkar/FuzzyCruiseController | 9b45f865895a674260e3af96b63f9d48a82630bd | 35ae4f9490604b9c11221d5955ec8bd315f7ed4f |
refs/heads/master | <file_sep>package com.edufabricio.server.route;
import com.edufabricio.server.exception.BadRequestException;
import com.edufabricio.server.exception.ResourceNotFoundException;
import com.mongodb.BasicDBObject;
import com.mongodb.util.JSON;
import lombok.extern.slf4j.Slf4j;
import org.apache.camel.Exchange;
import org.... | 71656b2feb0eeb4c3153ffa87a6dfb84eb6778c5 | [
"Markdown",
"Java",
"Maven POM"
] | 10 | Java | dufabricio/camel-mongodb-queue | 2833d5a365aa832e7eb8d348b79c4a5bd410b13e | 0043cb1fcb3a00e4a330af6b9b10d928e3ae81b5 |
refs/heads/master | <repo_name>DamZera/visual_stability<file_sep>/src/sobel.C
#include "tracking.h"
int main(void){
Mat frame,frameOrig, sobel;
namedWindow("MyCam",1);
std::vector<Point> vect;
VideoCapture cap(0); // open the default camera
if(!cap.isOpened()) // check if we succeeded
return -1;
cap.set(CV... | 62874e61059cb9af4c47f782c7063302d0165985 | [
"C",
"Makefile",
"C++"
] | 16 | C | DamZera/visual_stability | ff54be2b7d32a64ebef2fb85a7fa42849a5a4331 | 62153732323e9471cb04c612a75b38056d9dc5fe |
refs/heads/master | <repo_name>Skowryk/thehangman<file_sep>/src/routes/Home/components/HomeView.js
import React from 'react'
import GuessedWord from './GuessedWord'
import MissedLetters from './MissedLetters'
import Hangman from './Hangman'
import './HomeView.scss'
const WIN = 2
const LOSE = 1
export class HomeView extends React.Compone... | 99fe23066e1c0d503292ce44a3bccaa9e26640d9 | [
"JavaScript"
] | 1 | JavaScript | Skowryk/thehangman | 1c78df5ad2e3b60ab0afdc2f4b70efc2f73bf472 | 90bd4454031cdc9c1638eaf9adf62685f1c32443 |
refs/heads/master | <file_sep>启动项目
### `yarn start`
打包项目
### `yarn build`
# 改项目为四种数据管理
简化stort操作的方法
### 1 stort hooks
## useSelector 获取数据
## useDispatch 修改数据方法
传递的数据比较简单时
### 2 context
## createContext 创建context 并export
## <Context.Provider value={{n, setN}}> 初始化value 中的两个数据为useState 创建
## 引入Context 并 const {n, setN} = useContext(Cont... | b4393df0d42d6b758190fa3f9d1af02a823ca050 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | Ray1314/react-hooks | ed4fa3cb43d1017d9b9f93b8e65eeef4bb2d87be | ca01709e23ad968f5f2474bc8e68db2e48a7dc18 |
refs/heads/master | <file_sep>'use babel';
export default {
config: {
terraformExecutablePath: {
title: 'Terraform Executable Path',
type: 'string',
description: 'Path to Terraform executable (e.g. /usr/local/bin/terraform) if not in shell env path.',
default: 'terraform',
order: 1,
},
blacklis... | 523c1bb3ac8e7ea8310bb9f6723bfe4accb2628c | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mschuchard/linter-terraform-syntax | cd15e6b8f233c07cacfb70cfc9e5fd41b60e73b6 | ac70f8bc8e73c8e04cb5ed71af6b5967d49a6177 |
refs/heads/main | <file_sep>from django.urls import reverse_lazy
from django.views import generic
from .forms import Predioform
from .models import Predio
class Predioview(generic.ListView):
model = Predio
template_name = 'listpredio.html'
context_object_name = 'predio'
class Predioinsertar(generic.CreateView):
model = ... | 214e67e48b5f9c24bd64d9c04c94db86ee0c85e0 | [
"JavaScript",
"Python",
"Text",
"Markdown"
] | 29 | Python | efnaranjo6/arcerojas | ace90508d2a95f837c255f9245af3d1bff0d8f02 | 238542f11a91958cf5d3221781c8425c23a8a1c1 |
refs/heads/develop | <repo_name>maikforte/project-mango<file_sep>/frontend/src/app/hris/shared/sidebar/modules.ts
import { ParentModule } from '../../../model/parent-module.model';
import { ChildModule } from '../../../model/child-module.model';
export function initModules(): Array<ParentModule> {
let modules: Array<ParentModule>;
... | 44a16d88b9ae0c8867602a4e84e0b9e99bf96720 | [
"TypeScript"
] | 5 | TypeScript | maikforte/project-mango | d61ecaa17e14b396a51977c9e5f2ce356ddf3493 | 86f934cc63fda4b69e6441f7f51f4405f942c605 |
refs/heads/master | <file_sep>/* eslint no-restricted-globals: 'off' */
// Turn duration of the movies from hours to minutes
function turnHoursToMinutes(moviesArray) {
return moviesArray.map(function (elem) {
var hours = 0;
var minutes = 0;
if (elem.duration.indexOf('h') !== -1) {
hours = parseInt(elem.dura... | 68152b18d2a2852ab140f90e093026c25e223ecc | [
"JavaScript"
] | 1 | JavaScript | esthvega/lab-javascript-all-times-movies | 64d18364aa2d2e37bc9aebc7961a796767413a6b | 6a1321a8b731f63ba2cce3a0ed8d0f711b956b1d |
refs/heads/master | <file_sep>from django.db import models
class Item(models.Model):
# items
TYPE_CHOICES = (
('01', 'ARM CHAIR'),
('02', 'COUCH'),
('03', 'COFFEE TABLE'),
('04', 'DESK'),
('05', 'BED'),
('06', 'DINING TABLE'),
('07', 'DINING CHAIR'),
('08', 'SHELVING')
)
store_name = models.F... | 453abe251b7646e18af75e1980267e155e1d1c1c | [
"Markdown",
"Python",
"Text"
] | 6 | Python | fromtheothershore/ikealternative | 63bf5bdd396879865b2c95cc9ab59f08113bc152 | 13bbc95aaf708cc39eb2be509813074dcb85a5a8 |
refs/heads/master | <repo_name>Raydextert/Arcengine<file_sep>/GisDemo/Command/AddJunctionFlagTool.cs
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using ESRI.ArcGIS.ADF.BaseClasses;
using ESRI.ArcGIS.ADF.CATIDs;
using ESRI.ArcGIS.Controls;
using System.Windows.Forms;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcG... | 01e219923ebc32d1b2a7d37e0354e0701c901e75 | [
"Markdown",
"C#"
] | 21 | C# | Raydextert/Arcengine | e829618ba306cf1e54a98d9048292513283ae118 | 1cb1731f8d02e30064e3ab39eea9ab09537102f9 |
refs/heads/master | <file_sep>function verificar(){
var nome = document.forms['formulario']['nome'].value;
var email = document.forms['formulario']['email'].value;
var assunto = document.forms['formulario']['assunto'].value;
var mensagem = document.forms['formulario']['mensagem'].value;
// verifica se estão em branco
... | 81a20a4054a609dc0763d3bf322182f73e55210b | [
"JavaScript",
"PHP"
] | 4 | JavaScript | Allyson1602/emailProfessor | e223cbf58dd385ea1860a5fbea80f72c33a49e27 | 2c31207d2a52de22aad0f6ba2dfb066f3c2cf98e |
refs/heads/master | <file_sep>using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace GetCurrentDirectoryUnitTestProject
{
[TestClass]
public class GetCurrentDirectoryUnitTest
{
[TestMethod]
public void TestMethod1()
{
Console.WriteLine(System.IO.Directory.GetCurrentDir... | 49ef529bc3fd1039ff1eefdafedbef1545fe21bd | [
"Markdown",
"C#"
] | 3 | C# | ChrisWongAtCUHK/CSharp-GetCurrentDirectory | 9c4d7dea91b42651f13f186e71bc79b830f98115 | 5086b03cbde256d91875bb7e3685097345a1f4bc |
refs/heads/master | <file_sep> //gcc -pthread -o servers $(mysql_config --cflags) servers.c $(mysql_config --libs)
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <errno.h>
#include <strings.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
... | ded6cc93695b49280c68ed903fee34ef88c2cc68 | [
"Markdown",
"C",
"Makefile"
] | 7 | C | tejasgujjar/Public-transport-interactive-server-client-design | e298a14edf0ef8b2e4ad5838d12718b8e4bf57ff | 84144ee184ef107fb9ea649c3989b0289d486d10 |
refs/heads/master | <repo_name>powercode-team/RedditCloneSample<file_sep>/README.md
# Android RedditCloneSample (1.0.0)
*Android project*
---
### The purpose of the RedditCloneSample is to demonstrate code we write in [PowerCode](https://powercode.us)
## Features
1. View top rated topics
2. Up-vote and down-vote topic to make it move... | c6869ff31b368d127e93cfcd08b4f49605dd5320 | [
"Markdown",
"Java",
"Gradle"
] | 29 | Markdown | powercode-team/RedditCloneSample | 2438a191c9b86615769e172bc9702b766b11077b | 304654a1916e3f02c631cd559d6d597c8fb87105 |
refs/heads/master | <file_sep># encoding: utf-8
module DOTIW
autoload :VERSION, 'dotiw/version'
autoload :TimeHash, 'dotiw/time_hash'
end # DOTIW
module ActionView
module Helpers
module DateHelper
alias_method :old_distance_of_time_in_words, :distance_of_time_in_words
def distance_of_time_in_words_hash(from_time, ... | 46ae1fe42e03aea6f1b066b44d616c367fe6ee37 | [
"Ruby"
] | 1 | Ruby | whitered/dotiw | 3bef7ca8282237dd499741879b601e2b054173eb | 6d4481db8d1f19b222491fb17d38021c58f70283 |
refs/heads/master | <repo_name>PetarGK/microservice-example-cicd<file_sep>/lib/lambda-stack.ts
import * as cdk from '@aws-cdk/core';
import { NodejsFunction } from '@aws-cdk/aws-lambda-nodejs'
import { Runtime, Alias } from '@aws-cdk/aws-lambda';
import { LambdaDeploymentGroup, LambdaDeploymentConfig } from '@aws-cdk/aws-codedeploy';
impo... | 5c8d8828a4f3a4b2c48f474a6196e15696f63695 | [
"TypeScript"
] | 2 | TypeScript | PetarGK/microservice-example-cicd | 611346bf16748c1a312706a2f328f6778e5c3e4d | f371effe04b066bd620244223d7068e890722491 |
refs/heads/master | <file_sep>-- VIEW 1:SE
-- Relations involved: employee, adoptionapplication
-- Creates a view showing information on all employees not currently assigned to an adoption application
CREATE VIEW unassigned_employees
AS
SELECT eid,name
FROM employee
WHERE eid NOT IN (SELECT eid FROM adoptionapplication)
-- QUERY:
-- Resu... | 13ef11586035a2fc319e5e5d823bf5fe1b954937 | [
"Markdown",
"SQL"
] | 7 | SQL | denny6389/Pet_Adoption_Center | 83b88035360327cd464c326f608af7c98c56552b | 702c57d9cdd08ae851ad59540761f9c2c8e810d1 |
refs/heads/master | <file_sep>/**
* Class representing a sub-board of nested tic-tac-toe(aka Tic-Tactics) game.
* A sub-board is essentially a regular tic-tac-toe board.
*
* @author <NAME>(<EMAIL>)
* @version 1.0
*/
import java.util.Arrays;
public class SubBoard{
private int[][] board;
private static final String horizon... | ad6e999ccdc0fbcd60f775af5228433fb9e4090a | [
"Markdown",
"Java"
] | 6 | Java | NP-compete/Advanced-TicTacToe | f40becfd492e4032062a7249d212e726a3f7df23 | 68de7a45e08432439338b2b0b9ce6b16f17bd3ef |
refs/heads/master | <repo_name>jolna/ExData_Plotting1<file_sep>/plot3.R
#read all data
allPCData <- read.csv("./household_power_consumption.txt",header = TRUE,sep=";", stringsAsFactors = FALSE,na.strings = "?")
#convert Date column to Date object
allPCData$Date <- as.Date(allPCData$Date,"%d/%m/%Y")
#select only a subset of rows from the b... | 3e981486c9124a4abe9bc7bd6f7c0ea7cdccc515 | [
"R"
] | 3 | R | jolna/ExData_Plotting1 | abeafff2ec9cc6a4c9738f3f74845a412db7506a | 78c73beb0b83152dd7091960f4456a2848c99818 |
refs/heads/master | <file_sep><?php
/**
* Bootstrapping, setting up and loading the core.
*
* @package LanayaSystem
*/
/**
* Enable auto-load of class declarations.
*/
function autoload($aClassName) {
$classFile = "/{$aClassName}/{$aClassName}.php";
$file1 = LANAYA_INSTALL_PATH . "/system/" . $classFile;
$file2 = LANAYA_... | 6c23519132c9b7c964a70d5462f55ec65cd74df1 | [
"PHP"
] | 1 | PHP | anthuz/lanaya_km4 | 664fb7b9987acefd90dcc4f8614162ea69958ae6 | 8232cf6ae08eed2eabea5f5c8098f287f49d6edc |
refs/heads/master | <file_sep>const { prompt } = require('inquirer');
const {databaseQuery} = require('./databaseQuery');
const nameNewDept = async () => {
const departmentQuestion = {
type: "input",
name: "name",
message: "Enter the name of the new department: ",
validate: function(text) {
... | 11e159409f37bfd50ba83553daed820a8d096348 | [
"JavaScript",
"SQL",
"Markdown"
] | 12 | JavaScript | AGr2020Xman/employee-manager-cli | d78c93c76123f82994cf2ee99fafbb817b1b8e7c | c1bdcad436158f160de27292b5e493c995d464e8 |
refs/heads/master | <repo_name>hahagipe/try001<file_sep>/try1207/check_uni_api.php
<?php
//尋找是否有帳號存在:true-存在,false-不存在
$uni_username = $_POST["uni_username"];
require_once("dbtools.inc.php");
$conn=create_connect();
$sql = "SELECT * FROM member WHERE Username = '$uni_username'";
$result = execute_sql($conn, "demoDB", $sql... | 649ba363ce4a67fbc3fc382f0cb56a51270dd024 | [
"PHP"
] | 6 | PHP | hahagipe/try001 | d76685c339015c493aa1b512147b6fb6060ffe6e | e07486f8857d6bd2eabd3d75392000ce11e1ca59 |
refs/heads/master | <repo_name>AliShaikh94/stackapp<file_sep>/app/src/main/java/com/alishaikh/wagchallenge/UsersListViewModel.kt
package com.alishaikh.wagchallenge
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.Transformations.map
import android.arch.lifecycle.Transforma... | d61360bf9dffacdf637fffcab8ab9992de8a1625 | [
"Kotlin"
] | 10 | Kotlin | AliShaikh94/stackapp | 28b1c6c5fc9490ba33aa72e82c88d8d16eda075f | be672730a934f97b8005751519843975e7d9d7f4 |
refs/heads/master | <file_sep>package util.fileConvert;
import org.apache.pdfbox.exceptions.COSVisitorException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.*;
import java.util.List;
/**
* Created by Kennen on 2... | 5aa56cd6c00c780b39e30c4d88496c15298eedb8 | [
"Java"
] | 4 | Java | ddakshe/Preview | 3a72cec1ada5252aa0780917285885e44c40b284 | 7671dc3a0e43ca265f3e8234710a5f6f73201f02 |
refs/heads/master | <repo_name>ferdysan/js-slider<file_sep>/main.js
$('.next').click(function() {
//salvo la posizione attuale dell'immagine in una variabile
var img_corrente = $('.visible');
//seleziono la prossima immagine a quella img_corrente
var prox_img = img_corrente.next('img');
//controllo se prossima img è maggior... | c6e394be05fef3b30bfed5a57ce8f59b5ec9ad07 | [
"JavaScript"
] | 1 | JavaScript | ferdysan/js-slider | 8574aa4b73e85d58c2c8cef0d6706eb58b360582 | 0702fcae4f69b3ca86d44aa7c758b05a9fa67005 |
refs/heads/main | <repo_name>guillaume-alves/School<file_sep>/src/ecole.sql
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64)
--
-- Host: localhost Database: ecole
-- ------------------------------------------------------
-- Server version 8.0.23
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @O... | 713fdd7d7e6c89636b188e7e8a05e0400c64b6e8 | [
"Java",
"SQL"
] | 3 | SQL | guillaume-alves/School | d82ddd3a58a5416753cbb5a84b4afb0b3dcb9838 | 224b3fbb2c215ccdded3d5c2f84a3be564d3edb4 |
refs/heads/master | <file_sep>// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
====================================================... | 8ab8b91cc9517aa69ff9f85c5c0a86d49d09caba | [
"Markdown",
"C++"
] | 4 | C++ | BraidedMantis7/Stealth_Game | 428b93464c512ad8e841ca93ce579c59766a573c | 213861cc79172f8714f616d9052a0af8b1808721 |
refs/heads/master | <repo_name>midhunhk/feed-parser<file_sep>/BIotD/src/com/ae/feeds/reader/tests/UtilsTest.java
package com.ae.feeds.reader.tests;
import com.ae.feeds.reader.utils.FeedUtils;
public class UtilsTest {
public static void main(String[] args) {
testGetFileExtension();
testReadableFileSize();
}
public sta... | 43819eaaf45cebd7afe3bfa07c7bccd5e3f17413 | [
"Markdown",
"Java"
] | 4 | Java | midhunhk/feed-parser | 4fd41ac6eefb4cce47d20855f79a3d5a027637dd | 5655586e66518b1b830b72df9a1e2427369e247d |
refs/heads/master | <repo_name>Python3pkg/Lightstreamer-example-Chat-adapter-python<file_sep>/chat.py
#!/usr/bin/env python
'''An example of Lightstreamer remote Chat Adapter, which enables the exchange
of messages sent by users accessing the client Chat Application demo.
'''
import logging
import time
import argparse
from threading impor... | bbce1d3ad5db911b8387e9b7b0f69a48152675b5 | [
"Python"
] | 1 | Python | Python3pkg/Lightstreamer-example-Chat-adapter-python | b5520d45ae2f20e340923128866104a4cc126ff4 | f986f7981582d9e48339a4714c2a5eafc29f80af |
refs/heads/master | <file_sep>package ir.nilva.abotorab.db
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import ir.nilva.abotorab.model.Row
class Converters {
@TypeConverter
fun fromString(value: String) =
Gson().fromJson<ArrayList<Row>>(value, object : TypeToken... | eab6f7f55530707fb6c875d01bc7ab9963f5e57a | [
"Java",
"Kotlin",
"Gradle"
] | 57 | Kotlin | mahdihs76/Abotorab | 4a543f416f0b5a2aab6079f1e149536c9582bc50 | b857d1fb7da7094cc3f36a640d97b34c3f09b699 |
refs/heads/master | <repo_name>daegren/lhl-aug19-w2d1<file_sep>/katas/repeatingNumbers.js
const repeatNumber = (value, repeat) => {
let output = "";
for (let i = 0; i < repeat; i++) {
output += value;
}
return output;
};
module.exports = data => {
let output = [];
data.forEach(([value, repeat]) => {
let repeatedStrin... | da7a89439a85d50b49e8419165e4a1ea50b47101 | [
"JavaScript"
] | 4 | JavaScript | daegren/lhl-aug19-w2d1 | 39e91640cd62c01f8b0172547252dd65bb9aed7f | 2120ad32c045119dc97e15e4cb0546ebde75ae47 |
refs/heads/master | <repo_name>RaoShridhar/security-poc<file_sep>/src/main/java/com/github/aha/poc/security/controller/LoginController.java
package com.github.aha.poc.security.controller;
import java.util.Map;
import javax.annotation.security.RolesAllowed;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... | ac7a61566baed5d74737a69ade2907c1b67af68f | [
"Markdown",
"Java"
] | 6 | Java | RaoShridhar/security-poc | 71146a2f528e623a814deb31be131a94f865da16 | cf3f9bb2b75bb951fdb3da1dd090a551cb6c6320 |
refs/heads/master | <file_sep>/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hoja.de.trabajo6;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.TreeSet;
import java.util.Set;
import java.util.LinkedHashSet;
import javax.swing.JOptionPane;
/**
*
* @autho... | 28e060c663e19d3da78ed73e4fb00eee88b0223a | [
"Markdown",
"Java",
"Python"
] | 4 | Java | Jorest/Hoja-de-trabajo6 | ddb9d94246b9d113957d94f419ccaadcda3c1214 | 0f5fb01f2e1f4e56c5416616544e0fa1ddaa89c6 |
refs/heads/master | <repo_name>jimivine/sortingalgorithms<file_sep>/Sorting Algorithms Year 2 CW/src/findelement_d/Question1_Part3.java
package findelement_d;
import java.util.Random;
/**
* - Question 1 Part 3 - Finding the worst case runtime complexity
* @author jimivine
*/
public class Question1_Part3
{
/**
* @param args t... | ca9d590a997fa8535ef00e1a4b1098e625852123 | [
"Markdown",
"Java",
"INI"
] | 3 | Java | jimivine/sortingalgorithms | 07862dd5a3edc4e7e59a4285a28b1c9104cdc551 | 867e73af16f1c6d8c9688c7c4548f5e549013154 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace Predvajalnik
{
class Premetanka
{
private Image imageSheuldet;
private int[] widthParts;
private i... | 722ff37aefbe9903d9e7b8f57766a4aebb312faf | [
"C#"
] | 3 | C# | cvirnus/RobiCvirnPraktikum | b36b4b1c2bc3c0d7e7d002e2ff339851d10f1388 | 0879d91a63f3392f0bf9d59dfa4ae45d11ed3e1e |
refs/heads/master | <file_sep>buildings = [
[2,9,10], // b#1
[3,7,15], // b#2
[5,12,12], // b#3
[15,20,10], // b#4
[19,24,8] // b#5
]
var getSkyline = function(buildings) {
var height=[];
for(var i=0; i<buildings.length; i++) {
var building = buildings[i];
height.push([building[0], -build... | a80703f729ad06909956c28145fc6030fc32274b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ThomasAbear/problems | a429cc7ea12020525941dd0977771a4482fc7c30 | e0e02372ad53cc97271df99476250eb911dae807 |
refs/heads/master | <repo_name>Iannery/SBTRAB1<file_sep>/Montador.h
/****************************************
* Trabalho 1 - Software Basico *
* *
* <NAME> *
* 170144739 *
* *
* Versao do compilador: ... | a929381dc6d0d79c1e358eb964571da9b927885f | [
"Text",
"C++"
] | 4 | C++ | Iannery/SBTRAB1 | b2cd0967a6585c109ee74a45c7e932cb3c9790ad | 5ba068b29547de4c9a96dcfea1ca5edcf0924eaa |
refs/heads/master | <repo_name>azeezat/Products-Web<file_sep>/README.md
# Products Web
product information portal
### Local Setup
A step by step series of examples that tell you how to get a development environment running
Clone the repo from github and install dependencies through npm.
```
git clone https://github.com/azeezat/Produc... | 807371c970512384d56a18f6e40b0de515b53f33 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | azeezat/Products-Web | 8b7054400342c8f105a73e70a1b6e4de307aa94f | df824c4d6b94fd0284d7a3191bf55aa45e530904 |
refs/heads/master | <file_sep>rootProject.name = 'stack-tracker'
<file_sep>Stack-tracker
=============
Uses the javassist api to trace the sequence of all methods that get called when a given method is called.
<file_sep>apply plugin: 'java'
apply plugin: 'maven'
group = 'stack-tracker'
version = '1.0-SNAPSHOT'
description = ""... | 0050f7d5eacd563b7e683087c171780d4c3e1329 | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 5 | Gradle | bdmogal/stack-tracker | 1929e474912d5cddf064fe645dcdf69b6972cee1 | 5265610d29f6f09d9bdbb5a70f4c4f7729446aeb |
refs/heads/master | <file_sep># Puppeteer Lab
A lap for experimentation with puppeteer
## goto
Run
```shell
node goto.js
```
to view benchmark for reading a local html file with `goto`.
## goto:waitUntil
Run
```shell
node goto_waitUntil.js
```
to view benchmark for reading a local html file with `goto` with `waitUntil: networkidl... | af74d474622ac0132e26662c81e1b3843e8712f3 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | varshard/puppeteer-lab | 2c15f26dbef5f074062f24ed9cc912ce60fb010e | 7ac56de1aa3f55d1a87d11b8b24bfdbf1b5a2c10 |
refs/heads/master | <repo_name>lojorob9/boxProject<file_sep>/java.js
$(".box1").click(function(){
$(this).toggleClass("darkMode");
}); | db698b98abb1ace4a389822d5e72baef69e09be3 | [
"JavaScript"
] | 1 | JavaScript | lojorob9/boxProject | 35ce5a5b298486577ff72206132c9d43f7313185 | ab0b74b99ee3f0bbf0dc5096eeb2636876147a5f |
refs/heads/master | <file_sep>import asyncio
import websockets
class ProtocolStateMachine:
def __init__(self, name):
self._name = name
class ProtocolV1:
def __init__(self):
self._connections = dict()
print(f"LOG: CREATED PROTOCOL")
async def initialize(self, websocket, path):
print(f"LOG: INI... | 29383bc25eca88f041b779c4cbf758e2b1740cf1 | [
"Python"
] | 1 | Python | fernanlukban/sdp | 786b811f88c6964350712b90674613c3dacc760b | 83f5b585ebb90f357285e7a759202376c7d2d683 |
refs/heads/master | <repo_name>Snehabhatt61/product<file_sep>/src/Components/ProductName.js
import React from 'react';
import { Link } from "react-router-dom";
class ProductName extends React.Component {
render(){
let productId = localStorage.getItem('currentId');
const ProductLists = this.props.productName;
return ... | 5e6632c2862e2839de49d90f66fa714cb3297e51 | [
"JavaScript"
] | 5 | JavaScript | Snehabhatt61/product | a901123f2a1ed1ac48d5803462ec61ac34e2ebcf | b82805e95b6442e01e2a60401ddbed6b7b146b3d |
refs/heads/master | <file_sep><?php
/*
* Paiement Bancaire
* module de paiement bancaire multi prestataires
* stockage des transactions
*
* Auteurs :
* <NAME>, Nurs<EMAIL>
* (c) 2012-2019 - Distribue sous licence GNU/GPL
*
*/
if (!defined('_ECRIRE_INC_VERSION')){
return;
}
// securite : on initialise une globale le temps de la... | 2bc9c1b5862752a64e95fd2957fc79dc8e7f48c0 | [
"PHP"
] | 1 | PHP | tofulm/bank | e16f52df3bdc7739b617d376d439a216f9e74d0f | 6c07c9be0b816403380c6a42e86d19d462159c97 |
refs/heads/main | <file_sep>Dataset on which the model is trained is avilable at kaggle over [here](https://www.kaggle.com/c/facial-keypoints-detection/data)
## Dependencies
1. OpenCV
2. Matplotlib
3. Numpy
4. Keras
5. Tensorflow
## Usage
Run [camera.py] to see the results
<file_sep>import cv2
import numpy as np
from model import Face... | b918c54a88ed56a9441b3ae105fa02d655dddf1d | [
"Markdown",
"Python"
] | 2 | Markdown | PrateekSharma9399/Facial-Feature-Recognition-project-NN | 8fa7d9d8e83c144ec82ab4c9e4a76666e615a740 | 4ef8ee6e58c6ed546b7be81e4475a868d25f0361 |
refs/heads/master | <file_sep>const CONSOLEIMAGE = document.querySelector(".consoleImage");
function flip() {
CONSOLEIMAGE.transform = "scaleX(-1)";
}
CONSOLEIMAGE.addEventListener("click", flip(), false);
//CONSOLEIMAGE != null ? console.log("It worked!") : console.log("Try again");
| 449a3d030d1682df00f4076c94afeb9f01aab91b | [
"JavaScript"
] | 1 | JavaScript | SHorne41/Website-MyLifeInBlogForm | 983f872d34fcfc1f5c342570c4df62444443afec | 034ebea0b66ac829192e82799f191c1d93919f07 |
refs/heads/master | <file_sep>## Scraping script, written for gathering data about the groups in meetup.com, for capturing the various attributes:-
## 1. Data of the group, its founders, date of forming, total members, location, etc.
## 2. The genres/description associated with the groups.
## 3. Information about the members of the gro... | ea0e24cccd6d81dbd105cf25b6e9bbdc743d9835 | [
"Markdown",
"Python"
] | 5 | Python | pavanchungi/Meetup-groups_Data-Scraping-and-Analysis | 38df209cef2cba4e14a636d34aa597c517c2ffe4 | 5628da9e71cb8f17b5397786acf9865631a36a52 |
refs/heads/master | <repo_name>HelenChen98/badges-and-schedules-v-000<file_sep>/conference_badges.rb
def badge_maker(name)
return "Hello, my name is #{name}."
end
def batch_badge_creator(attendees)
array = []
attendees.each do |member|
array << badge_maker(member)
end
array
end
def assign_rooms(attendees)
array = []
in... | c0a5e626983e9a58dff66474d290df6eff371bf0 | [
"Ruby"
] | 1 | Ruby | HelenChen98/badges-and-schedules-v-000 | 3fe5689a0e5d7fe8ca80facfa35acdbb9711fb14 | d925ccef7acc08b918e842eebf314eeff5478f7d |
refs/heads/master | <file_sep>const mongoose = require('mongoose');
// To pull the string for mongodb atlas connection
const config = require('config');
const db = config.get('mongoURI'); //To get mongoURI in the variable db.
const connectDB = async () => {
try {
await mongoose.connect(db, { useUnifiedTopology: true, us... | b91b0431d5ee895ef09ea2d7a7162bf599eb331a | [
"JavaScript",
"Text"
] | 2 | JavaScript | sachetmoktan/dev-point | 8844c6b05dc0797ca0c6b524fa9a86b9e0cf1425 | 2b7e1ac8431579d7bd2307577d019c1104fb3996 |
refs/heads/master | <file_sep>package no.uio.inf5750.assignment2.dao.impl;
import java.util.Collection;
import org.apache.log4j.Logger;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
import org.spri... | 4ec3b14cae942cfcec7e5b89e61601c180ae3538 | [
"Java"
] | 3 | Java | zubaira/SS2 | fe2d9ed37ea4393d800ca03bb7f293ae601a790f | 5e584d6ee01fc1f30f81d29baa4ac88dd41e062c |
refs/heads/master | <file_sep># schoolsite
学校网站
<file_sep>import Vue from 'vue'
import axios from 'axios'
import qs from 'qs'
axios.defaults.timeout = 5000;
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'
axios.defaults.baseURL = 'http://172.16.17.32:8080'
// POST传参序列化
axios.interceptors.request.use((confi... | 0c3827e0eac1ec357d63932a93a79a9cf5e0168c | [
"Markdown",
"JavaScript"
] | 6 | Markdown | k-water/schoolsite | 20263d3d78323c04f8836807f39f0068b8637a16 | d6836157890999c638f942fae05721dd64a6b3b4 |
refs/heads/master | <file_sep>#!/usr/bin/
"""
Created on 23/01/2015
@author: adelpozo
"""
import sys
import re
import os
import string
import urllib
import time
import math
import random
import ConfigParser
#######################################################################
def read_cfg_file(cfg_filename):
"""
:param c... | 193a341bff5b82d2ac76ef5b9e786cb79327e750 | [
"Markdown",
"Python"
] | 5 | Python | whuang022nccu/mOsAiC | 973e852c5ca47419c4076813907af985bde47e72 | 059a5b12dbf9f301f8857c80584cbbc8d853d756 |
refs/heads/master | <repo_name>161710118/latihan-oop-rpl1<file_sep>/hasil.php
<?php
require_once 'orang.php';
$orang = new orang('Mzaky','bandung','XI-RPL 2','Mahasiswa');
$orang1 = new orang('Sofy','bandung','XI-RPL 2','Pelajar');
$orang2 = new orang('Taufik','bandung','XI-RPL 2','Pelajar');
$orang3 = new orang('Firas','bandung','XI-RP... | 3f08966373b40994342654f0d1f8f65805a91da8 | [
"PHP"
] | 1 | PHP | 161710118/latihan-oop-rpl1 | d9fdaa92115a0c6fb8f0648b9861fab48de2cf85 | 815585c42c76fa9bff02687e1a379a4b163ecf1e |
refs/heads/master | <repo_name>KopiSoftware/KerkoportaOS<file_sep>/KerkoportaOS/bootpack.c
#include<stdio.h>
//定义常用颜色
#define COL8_000000 0
#define COL8_FF0000 1
#define COL8_00FF00 2
#define COL8_FFFF00 3
#define COL8_0000FF 4
#define COL8_FF00FF 5
#define COL8_00FFFF 6
#define COL8_FFFFFF 7
#define COL8_C6C6C6 8
#define COL8_840000 9
#... | c8b08213c9b7c98570fd6419cf91440c13f815c3 | [
"Markdown",
"C"
] | 2 | C | KopiSoftware/KerkoportaOS | 84476a870c6ebff4adee7a5938b2a76e65dc4b6c | 14d479b7dd4cb0631a3456412e64a7437165977b |
refs/heads/main | <repo_name>AbdullahAlHarun-code/rm-invoice<file_sep>/pdfmaker/utils.py
"""renderpdf URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2.... | 637da5563b3d168c706cabe0d64af37d9f9fac4c | [
"Python"
] | 5 | Python | AbdullahAlHarun-code/rm-invoice | 6358863f8fd8967e2a78f3168e16ef6b8adc48aa | f29d775c149d8d05c03fa960ee7c9be81857f996 |
refs/heads/main | <repo_name>awais987123/Libarary-Management-System-repo<file_sep>/readme.md
#Libarry Management System in C++
#for missing files contact <EMAIL>
<file_sep>/moc_subscriberwidget.cpp
/****************************************************************************
** Meta object code from reading C++ file 'subscriberwidget.h... | 58724528af26dec0b3628e4d5bb03f7373cdff3e | [
"Markdown",
"C++"
] | 2 | Markdown | awais987123/Libarary-Management-System-repo | 6a674593a7a810a59617c4a32a155e862db59ca4 | c3acf14995b8883fc5eca12482392f0db1ac4286 |
refs/heads/master | <repo_name>DeanGaffney/breakout<file_sep>/server.js
var fs = require('fs');
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
app.use(express.static(__dirname)).listen(8000, function(){
console.log('Server running on 8000...');
})
app.use(bodyParser.json());
app.p... | 89d71581123cbf76f4c6462aa7efc765380683e3 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | DeanGaffney/breakout | 950aadb486ee8d045b123e2e39c013a74d7bd120 | ea222c44b4d047a716ee0f8370642a99b828e140 |
refs/heads/master | <file_sep>const LocalStrategy = require('passport-local').Strategy
const bcrypt = require('bcrypt')
const User = require('./models/user_model')
const GoogleStrategy = require('passport-google-oauth').OAuth2Strategy;
const GOOGLE_CLIENT_ID = process.env.GOOGLE_CLIENT_ID
const GOOGLE_CLIENT_SECRET = process.env.GOOGLE_C... | 4e372f079c949cb55df0488096d206f25e4dfdfc | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Bunty9/passport-google | 220b30eb21c9f69519ca3174ca6c26676988f40e | 676c397d7f04f067e3b75610217d584f335b5906 |
refs/heads/master | <repo_name>iSC-Labs/neon-wallet<file_sep>/app/actions/transactionHistoryActions.js
// @flow
import { api } from 'neon-js'
import { createActions } from 'spunky'
import { COIN_DECIMAL_LENGTH } from '../core/formatters'
import { ASSETS } from '../core/constants'
type Props = {
net: string,
address: string
}
export... | 2a3318a03877082a96cf564a10496727cf3532ba | [
"JavaScript"
] | 3 | JavaScript | iSC-Labs/neon-wallet | 3007e05c5081a2e77d1d9eeac9c822009d4fda3a | ed693e4e9d0ecbe8a1fc387b7176c547df6b7302 |
refs/heads/master | <repo_name>ramaprakoso/slim3-api<file_sep>/source/dds/routers/auth.php
<?php
$app->post('/login', '\DDSControllers\LoginController:postLogin');
$app->post('/signup', '\DDSControllers\RegisterController:postRegister');
$app->post('/logout', '\DDSControllers\LogoutController:postLogout'); <file_sep>/source/dds/contro... | df6ba91c184a24df1e54dbac5c6db039bcd7083f | [
"Markdown",
"PHP"
] | 12 | PHP | ramaprakoso/slim3-api | 9cdc17d45c691c2f8b4c82f2ec36bf66d60aec08 | ff2fc1b360c72c079295f5372bac644b9179d240 |
refs/heads/main | <file_sep>const router = require('express').Router();
const books = require("../db");
let actualBooks = books;
const {findIdIndex, idGenerator, writeToFile, filterData} = require("./secondaryFunction");
router.get('/', (req, res) => {
res.render('index', { dbArray: books});
});
router.get('/filter/:filter', (req,... | a0dc1d46b4e1dfc9385deb02211ed8a08cbc78fa | [
"JavaScript"
] | 3 | JavaScript | Hotiakov/web_labs | f5fc8807930294c443257f8b4ebfbb7e57b1a704 | be137bc79d1f781a7c4a34fa20823199053fe7b7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.