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>MXCompFin/MXCompFin.github.io<file_sep>/google_finance/google_finance.Rmd
---
title: "Getting data from Google Finance"
author: "<NAME>"
output:
prettydoc::html_pretty:
theme: cayman
highlight: github
---
## Getting data from Google Finance
In this lecture we'll create a python code that can be u... | 85f5eab0a38d5ffc741c4e0ea7bfb39c83349a3e | [
"R",
"RMarkdown"
] | 7 | RMarkdown | MXCompFin/MXCompFin.github.io | bd721240b7d31904de1a18fb1df48fec111dca31 | d7ef5fd598eed5e122e862ad98fef21299d0405e |
refs/heads/master | <repo_name>Viterbo/minecraft<file_sep>/README.md
sudo ln -s ${PWD}/minecraft.sh /usr/bin/minecraft
sudo apt-get install --no-install-recommends gnome-panel
gnome-desktop-item-edit ~/Escritorio/ --create-new
<file_sep>/minecraft.sh
#!/bin/bash
cd ~/Minecraft
java -jar Minecraft.jar | 5cd27f2dd4e68377ad420f56639e68c196bf1669 | [
"Markdown",
"Shell"
] | 2 | Markdown | Viterbo/minecraft | e5a77ed88f5d3e55ef64d0691e3d3c135fc34eb9 | f048f972977b1179b5374cc62b5fc342dbd01afd |
refs/heads/master | <repo_name>ugurozturk/SingleBeepSound<file_sep>/SingleBeep/Program.cs
using System;
using System.Threading;
using System.Threading.Tasks;
using NAudio.Wave;
namespace SingleBeep
{
class Program
{
static async Task PlayBeepAsync(WaveOutEvent outputDevice)
{
await Task.Run(() =>
... | 128baacf88dd8ad30eeadf2a71d6545bf433d1cd | [
"C#"
] | 1 | C# | ugurozturk/SingleBeepSound | ea68d9972b198c828ee4dda920e7c08738719bc9 | 456aa0560365a484bf24ed51c61b32b43201fee7 |
refs/heads/master | <repo_name>yashgurbani/hopfield-ws<file_sep>/graph-characterization.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: yash
"""
import datetime
import matplotlib.pyplot as plt
import networkx as nx
n = 128
k = 20
p = 0
while (p <= 1):
filename = "_".join([str(n), str(k), str(p)])
name = filename +... | ebfe4af13730ba8a575667c1386955ba5e556d51 | [
"Python"
] | 11 | Python | yashgurbani/hopfield-ws | 3821f02a87d204de21a7180464c23551fb51da67 | 1e9a947c70028b933d47f33af42349e53343bea8 |
refs/heads/master | <repo_name>looricardoso/NomeCompletoJs<file_sep>/index.js
let nome = prompt('Digite seu nome: ');
let sobrenome = prompt('Digite seu sobrenome: ');
alert(`Nome completo: ${nome} ${sobrenome}`);
sobrenome = sobrenome.toUpperCase();
alert(`Nome de catálogo: ${sobrenome}, ${nome}`); | 00f61f31d469188185d3fd1df9bbf9e1947f4d19 | [
"JavaScript"
] | 1 | JavaScript | looricardoso/NomeCompletoJs | 9eb28305a30f9843d13086a7d86adfcab7b63370 | f0e83844bd52393e7a59e67c8bdc35a2f552046c |
refs/heads/master | <repo_name>damiangene/UNISA-assignment-2<file_sep>/Makefile
default: compile run
compile:
g++ *.cpp -o main
run:
./main
clean:
@rm main<file_sep>/assignment 2.cpp
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
//declaration of functions
string welcome();
void print_seats(string f... | ace7c2d71bd133ecdfbf1690d17f936891c4f45b | [
"Makefile",
"C++"
] | 2 | Makefile | damiangene/UNISA-assignment-2 | 97e005edb8336faded8d241c2a5a291eeb8c6ac6 | 1d3a3f555f583aa7b14e72b0a819f630a8277e5e |
refs/heads/master | <repo_name>alexanderwood/bioinformatics-algorithms<file_sep>/IndividualFunctions/GreedyMotifSearchWithPseudocounts.py
# Copyright <NAME> 2016.
# Solutions for Coursera's Bioinformatics 1 Course.
import itertools
import sys
import numpy
# Store as global variable since its values must be constant.
keys = 'ACGT'
... | f4db060f0ea93f8a8c0da29e66e782ac7d74d8ae | [
"Markdown",
"Python"
] | 18 | Python | alexanderwood/bioinformatics-algorithms | e22b50fc7235e63f095aa6756cef469776e3d362 | 97c33df2f5fc6264f880ef58620b65b720b03622 |
refs/heads/master | <repo_name>fastz123/4th_revolution<file_sep>/4th_revolution-master/4th_revolution-master/bigdata/bigdata/home.selection/bigdata/sql/sql_test/10_cust_rcpt_test.sql
CREATE TABLE RCPT_ACCT
(
SSN CHAR(13) NOT NULL,
ACCT_NO CHAR(10) PRIMARY KEY NOT NULL,
NEW_DT DATE,
CNCL_DT DATE,
RCPT_AMT DECIMAL(15,0)
);
INSERT... | 890db22bdf8ad2cea556325e51c94dd0fd63e4f3 | [
"SQL"
] | 17 | SQL | fastz123/4th_revolution | fd667fadfe952c45a0631c8b7f42172c34f6b833 | d2173211bfcd7e55806c5ec12f04549893b5e67d |
refs/heads/master | <repo_name>meadoch1/bin<file_sep>/pingcmme3
#!/bin/bash
curl https://env3-$1.integration.covermymeds.com/_ping
printf "\n"
<file_sep>/tmux-onlife-kill
#! /bin/bash
tmux -S /var/tmux/liveon send-keys -t liveon:3.1 C-c
tmux -S /var/tmux/liveon send-keys -t liveon:3.2 C-c
tmux -S /var/tmux/liveon send-keys -t entity:3.1... | 7d9ed6da84d9cb0f5cb62886ec4b264909795b27 | [
"Shell"
] | 45 | Shell | meadoch1/bin | fda2bcbec539c3a01b959272e157eee314ce8375 | 114e5f9c841f50c50ecbe2f2072d05a5e7dd51d4 |
refs/heads/master | <repo_name>cybertron/openstack-virtual-baremetal<file_sep>/doc/source/host-cloud/patches.rst
Patching the Host Cloud
=======================
The changes described in this section apply to compute nodes in the
host cloud.
Apply the Nova pxe boot patch file in the ``patches`` directory to the host
cloud Nova. ``nova-p... | 3cd681227ef57f47b2729c1c8d83b933d3bdc3f6 | [
"reStructuredText",
"Makefile",
"Python",
"Text",
"Shell"
] | 33 | reStructuredText | cybertron/openstack-virtual-baremetal | dcd546609c5362610b885eae02ae1055343e11ab | f001c66930362d9643eba5330907ff34a789421b |
refs/heads/master | <file_sep>#define SNAKE_SYMBOL '@' /* snake body and food symbol */
#define FOOD_SYMBOL '*'
#define MAX_NODE 30 /* maximum snake nodes */
#define DFL_SPEED 50 /* snake default speed */
#define TOP_ROW 5 /* top_row */
#define BOT_ROW LINES - 1
#define LEFT_... | 1bdd10ff97c6b0e17599519de9244b7dd9728fa3 | [
"Markdown",
"C"
] | 2 | C | TianYJ1/Snake | c561d1e172074c6ec8845fd66802326dfd167525 | b4e3b8a036153073e49157f23e39ee9fdbdf3390 |
refs/heads/master | <repo_name>pinyinc/pinyinc.github.io<file_sep>/pinyin.py
import sys
import string
"""
Create a data structure that can be globaly used and holds each vowel of every tone
"""
# Now you understand what is a promgramming 'chores'
vowels = {'a': ['a', 'ā', 'á', 'ǎ', 'à'],
'e': ['e', 'ē', 'é', 'ě', 'è'],
... | 8aa66d89e37e4eedf7f1fde915d92eb33b878fdc | [
"Markdown",
"Python"
] | 2 | Python | pinyinc/pinyinc.github.io | 141a9a2086e6463369e9904dd9168fa62e823e04 | 87e00cdeaa859992f77b9d4f78cfb23f4079c770 |
refs/heads/master | <repo_name>lukesilvia/zsh-peco-history<file_sep>/zsh-peco-history.zsh
# zsh-peco-history
# Search shell history with peco when pressing ctrl+r.
# https://github.com/jimeh/zsh-peco-history
#
# Based on: https://github.com/mooz/percol#zsh-history-search
# Get peco from: https://github.com/peco/peco
#
if which peco &> /de... | a740d7dcd29a41bd21f89e126af5c27f957cdf24 | [
"Shell"
] | 1 | Shell | lukesilvia/zsh-peco-history | 5e81b474a193220b6a3332b22f0c57151228b734 | ad67808e77536f6fec7ed89e63cb62432ccb604b |
refs/heads/master | <repo_name>sondh0127/doclabel<file_sep>/frontend/src/pages/project/task/service.js
import request from '@/utils/request';
import { PAGE_SIZE } from '@/pages/constants';
export async function fetchTask({ projectId, params, data }) {
return request(`/api/projects/${projectId}/docs/`, {
method: 'GET',
params: {... | ddd797595216a3694bd64d02ef7858fc95aeecd1 | [
"JavaScript",
"Python",
"Makefile",
"TypeScript"
] | 89 | JavaScript | sondh0127/doclabel | 2cadea9fc925435aea49ac0b56c29474664ade4e | 062c1a349b24e3d8683209e4348340fcf4491969 |
refs/heads/master | <repo_name>HonQii/Darkroom<file_sep>/Darkroom/Crafts/ResizeCraft.swift
//
// ResizeCraft.swift
// Darkroom
//
// Created by HonQi on 2020/5/31.
// Copyright © 2020 HonQi. All rights reserved.
//
#if os(macOS)
import AppKit
#else
import UIKit
#endif
public struct ResizeCraft: DarkroomCraft {
public enum FitMo... | bd22316c5b13917e1ca89ae5d64af62f85aea03c | [
"Swift",
"Markdown"
] | 7 | Swift | HonQii/Darkroom | 3d5d7e20fcb3ca6108ab1f416db98f662efd8eae | e52a3c79c64341306b1485ec73a198a0253e78b2 |
refs/heads/master | <repo_name>Glindorf/Flinter<file_sep>/Profile.cs
namespace Flinter
{
/// <summary>
/// This class represents a person profile,
/// for instance for a dating website
/// </summary>
public class Profile
{
#region Instance fields
private Gender _gender;
private EyeColor _ey... | e15aef24e89d0c6db9baaeefc00faef066b640e8 | [
"C#"
] | 1 | C# | Glindorf/Flinter | f1cfd980903137ec575737b5702a171b2f08e5b8 | ca62e3b5591c281680b693ce6a91451bc1b5377d |
refs/heads/master | <file_sep>
# two-phase classifier
# two-phase classifier
# two-phase classifier
# This classifier treat with 5 classes excluding Others
# Non-profit organization, for-profit organization and Medias are treated as one classes in first phase
from sklearn.svm import SVC
from sklearn.tree import DecisionTreeClassifier
fro... | d093ed26153075347e325369935d9050728fcede | [
"Python"
] | 10 | Python | CodeBreakPP/TwitterUserType | 0e3703e89fb4418357be953f82b044050ca2bf17 | 3267e2dc0dd7a61af317d5f955ad0d8d14b38dcf |
refs/heads/main | <file_sep>//
// ImageSingleton.swift
// homeDepotChallenge
//
// Created by RaveBizz on 2/8/21.
//
import UIKit
class ImageSingleton {
static let shared = ImageSingleton()
private var internalCache = NSCache<NSString, UIImage>()
private init() {}
func getImage(with url: URL, upd... | 2d3093327fda506617a5d7cf006a1a11311efef8 | [
"Swift"
] | 6 | Swift | ganymede30/Swift_Examples | f12a1453b3cc966beb8305189e3c479cfd9f3e29 | 70f013654839e7e21b2004c21a35b41c2f0e8b6e |
refs/heads/master | <file_sep>/*\
* 7seg - v0.1
* Web: http://home.kal9001.co.uk Email: <EMAIL>
*
* Copyright (C) 2015 Kal9001
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either ve... | d1a9c20d198144e3ce8d0ed34055fcac17f69b5c | [
"C",
"Text"
] | 6 | C | kal9001/AVR-small | 2e4b6a1846cdd4676dcd16efa38728c1098ccde3 | 482c3a946f08e569739ed6b0acae7dc19ad2a9c4 |
refs/heads/master | <file_sep>// import { DynamoDB, EC2 } from 'aws-sdk';
// import { APIGatewayEvent, Callback, Context, Handler } from 'aws-lambda';
// // import AWS from 'aws-sdk';
// // Set the region
// const tempKacper: Handler = (event: APIGatewayEvent, context: Context, cb: Callback) => {
// const params = {
// T... | eb93ce1764ebd12a671c629ae46493e1625c4682 | [
"JavaScript",
"TypeScript",
"JSON with Comments",
"Markdown"
] | 15 | TypeScript | vazco/livescan | 8f17b8ef3caf84401f3e98ae7073552e5ead2f65 | 12db6ecdc259d0d7b383712a24a295aa73a21738 |
refs/heads/main | <repo_name>jack-nonnie/CPE593DataAnalysis<file_sep>/README.md
# CPE593DataAnalysis
In this project I create a automated data analysis driver.
Given a set of input and output data it tries to fit the data to a constant value, linear function, quadratic function, exponential function and a sine wave.
It works for both In... | fb3b548a950385bd0973425588101b04fee7f2fa | [
"Markdown",
"Java"
] | 3 | Markdown | jack-nonnie/CPE593DataAnalysis | c0c092cb742b776a7af307ca5c2cbb47f4f3b315 | d0e5f398cf678317c563f6742a29786cd124f3b3 |
refs/heads/master | <file_sep>import ast
import sys
import pytest
from pyp import find_names
def test_basic():
assert (set(), set("x")) == find_names(ast.parse("x[:3]"))
assert ({"x"}, set()) == find_names(ast.parse("x = 1"))
assert ({"x", "y"}, set()) == find_names(ast.parse("x = 1; y = x + 1"))
def test_builtins():
... | b5b58dd11e4107f232973bba189c982e549d7c8f | [
"Python"
] | 1 | Python | sailfish009/pyp | b06421dcccbc57f118e166fd683053715257695b | ad7374c25d8adb1e52c8b19ee8b627ad6a29aa29 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Ramy_Shop.PL
{
public partial class FRM_MAIN : Form
{
//Instance fro... | e1991e4af712417b69ed63497f792da56f3c1016 | [
"C#"
] | 3 | C# | mahmoudFaragallah/Sales-Management | 5c017fe46178058637ba996616545c371bfc64f7 | d389c0c2aac4a71ee0cd536c22a7e15d7ea2c9da |
refs/heads/master | <file_sep>import csv
import pygal
from scipy.interpolate import interp1d
import numpy as np
""" This project attempts to evaluate whether advancement on different
portions of the football field is more valuable. It quanifies the values
from a team's own goal line up to the opposing teams. It does this by
lo... | a7647f9fc42bada00cebc99a1b77e933071b6937 | [
"Python"
] | 1 | Python | mrmcmullan/expected_points | 98f2bd9362d8003871ee07ae2de6e2393b6e907b | 436f6d47a351ecc4e1a08fdd6386dcadb48844eb |
refs/heads/master | <file_sep>package io.aggreg.app.provider.publishercategory;
import java.util.Date;
import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;
import io.aggreg.app.provider.base.AbstractSelection;
import io.aggreg.app.provider.publisher.*;
import io.aggreg.app.provider.category.*;... | 5ceff2be11f6e1012f6df9fe0da18207f3d131fe | [
"Markdown",
"Java",
"Gradle"
] | 25 | Java | jokamjohn/aggregio | 6e8bd9f3fcc49773d84f7ea6d402525c2feeffb1 | 5f9a87860782cd340f6ffebaad7664329928c30d |
refs/heads/master | <file_sep><?php
echo 'ooops!! i did it again';
?> | bef3e736c025309a88677a06fb7a089bce6de629 | [
"PHP"
] | 1 | PHP | ralphskie/test1 | 2b71a649be71e06545519278ecc67d5f10f01329 | c7364e2cb63aec4e8845256dcbc3ac56434a095a |
refs/heads/master | <file_sep>type MessageNode = { [segment: string]: string[] };
type MessageWithFieldNode = {
[segment: string]: {
[field: string]: string | string[];
};
};
export type FieldComponent = {
[component: string]:
| string
| {
[sub: string]: string;
};
};
export type MessageWithFieldAndCompone... | 19cc6b6d5695b4b4a9dcba186aea9e4ac970812b | [
"TypeScript"
] | 2 | TypeScript | campfhir/hl7-mapper | 0bae50ee18a79deca30f74ad5657c8aa2549def6 | 9852f65921663571003f6ea63202c2680fd24c63 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Direccion;
use App\Http\Controllers\AuthController;
use Illuminate\Http\Request;
class RedireccionController extends Controller
{
public function abrir ($short) {
$direccion = Direccion::select('url')->where('short', $short)->first();
retur... | ce7a182093630950e0b5849faec905f1d4855e95 | [
"PHP"
] | 3 | PHP | FelipeUFRO15/Taller-1-startup | f8f82bee2d77c4cebb8acca62d0c566a8d63c0c9 | 01341527b20e7714a1e12f98483222b64acfa1df |
refs/heads/master | <file_sep>package website.marcioheleno.twitterreativo.model;
import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Siz... | b1edd63cd79c154222b9630959d363341e1062df | [
"Java"
] | 1 | Java | marcio012/twitter-unifor-back | 52c60222107b7985d6357a3056dae0af912d8d76 | 066ff3b4ad6b8ff974ec5e3d4d17a9ec7926c1fa |
refs/heads/master | <repo_name>EnzoCodes/AuthTests<file_sep>/assets/javascript/loginPage.js
$(document).ready(function() {
console.log("JavaScript Up!");
var config = {
apiKey: "<KEY>",
authDomain: "imagewordmatch.firebaseapp.com",
databaseURL: "https://imagewordmatch.firebaseio.com",
projectId: "imagewordmatch"... | f129d1d8d04e9b221e830cafdbf9beb5897d63da | [
"JavaScript"
] | 1 | JavaScript | EnzoCodes/AuthTests | e2491e8f8231697c14a49e7c75ebc7d8a7e72643 | 209ade2ecd573c7eed2b80fd102b81163e5458b7 |
refs/heads/master | <repo_name>dtjm/webworker-demos<file_sep>/README.markdown
Web Worker Demos
================
Just messing around with Web Workers.
This one starts up a bunch of Web Workers who each emit the value of
`Math.random()`
The master page then takes the average of all values that it has ever
seen for each worker. I was hopi... | fbbab696ddb831f9d728dfd2c15c5893e86f02f7 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | dtjm/webworker-demos | 812ce155ce808bdf886f3eb5d5058294b895cfe8 | 16cab9cf27d65213f790c3f87de3706e4e6ac75a |
refs/heads/master | <file_sep>#!/bin/bash
#install ruby
curl -o rubystack-2.3.0-0-dev.run https://downloads.bitnami.com/files/stacks/rubystack/2.3.0-0/bitnami-rubystack-2.3.0-0-dev-linux-x64-installer.run
chmod +x rubystack-2.3.0-0-dev.run
./rubystack-2.3.0-0-dev.run --mode unattended --disable-components varnish,phpmyadmin,rvm
#... | 96598e44815c471d60732ecc35597001edae8932 | [
"JavaScript",
"Ruby",
"Shell"
] | 6 | Shell | gburgett/reclaimed_site | 23f8ab9351067d28b71b65ea02a2b33f97149881 | a5ec95ed69849e8a1ede443f3fd178033c8bd6b4 |
refs/heads/master | <file_sep>#pragma once
// listbox 对话框
class listbox : public CDialogEx
{
DECLARE_DYNAMIC(listbox)
public:
listbox(CWnd* pParent = NULL); // 标准构造函数
virtual ~listbox();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_MFCAPPLICATION1_DIALOG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX)... | c4dce258bf8ece98f685fbe98ad5dbbe702d45e7 | [
"C++"
] | 5 | C++ | lu-kuan/FileName2MD5 | 360ee8ab5fef1f358111b02adb700b48438988a3 | 9e2efdc498fd522109eb26f33bb2de0d3d486d96 |
refs/heads/master | <repo_name>NizarHafizulllah/aplikasi_pu<file_sep>/application/modules/coba_map/views/coba_map_view.php
<!DOCTYPE html>
<html>
<head>
<title>Simple Map</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<style>
/* Always set the map height explicitly to define the s... | c886aec23e09aaa1a7a236837808a431eb4db931 | [
"SQL",
"PHP"
] | 8 | PHP | NizarHafizulllah/aplikasi_pu | 41b4c0d2e469a995b6e31ee076d329230f5562d8 | 433669259cd52f7745df8cbdbfd6f0d8d97d7c18 |
refs/heads/master | <repo_name>vjayathilaka/springDemo<file_sep>/src/main/java/com/demo/demo/jdbc/PersonJDBCDao.java
package com.demo.demo.jdbc;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyR... | 76f6c65621299d00955a1f00c8149cba04b37bd5 | [
"Java",
"SQL",
"INI"
] | 3 | Java | vjayathilaka/springDemo | 3e5cf98f064dbd05cfd87175f01605bacf7ae926 | fe9b274c8bea97bdb63c8816d81ae163c1944ccf |
refs/heads/master | <file_sep># Generated by Django 3.0.3 on 2020-03-01 12:12
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | f0aa47199c5f58c916718400ee18e4a8efd543a8 | [
"Python",
"reStructuredText"
] | 10 | Python | AlexanderUstinovv/body_mass_calculator | 0cefb6e0d0785d9045959493b4553390a6c58dc7 | 1aaa7a327e48c347771bc7b83ae4a9da75d4e94d |
refs/heads/master | <file_sep><?php
/**
* Spiral Framework.
*
* @license MIT
* @author <NAME> (Wolfy-J)
*/
namespace Spiral\Stempler\Behaviours;
use Spiral\Stempler\BehaviourInterface;
use Spiral\Stempler\HtmlTokenizer;
use Spiral\Stempler\Node;
use Spiral\Stempler\Supervisor;
/**
* Replaces specified block (including tag) wi... | 570bd254ef80a730cb21c3e745dc16d2a9a3f309 | [
"Markdown",
"PHP"
] | 260 | PHP | tuneyourserver/components | e45beb56171d6e05962ee5146604292eba29bf64 | be1d0c37755d6b92ad88d5c2ba129f4eef4f65a5 |
refs/heads/master | <repo_name>BrittanyTinnin/combine-reducers-online-web-ft-092418<file_sep>/src/actions/index.js
export const addAuthor = author => {
console.log("app hit the addAuthor() in actions/index.js")
return {
type: 'ADD_AUTHOR',
author
};
};
export const removeAuthor = id => {
console.log("app hit the removeAut... | 921ccbc801fc688f97d3f67a6a4417b715c1f892 | [
"JavaScript"
] | 1 | JavaScript | BrittanyTinnin/combine-reducers-online-web-ft-092418 | f36b624fb2285854ef5abf558cf8708639a9eb1e | e714739afc981ba3ab68b0484dd513a1c8a4011b |
refs/heads/master | <file_sep>using bh.Shared;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.ResponseCompression;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
us... | fdefac9d0950c0d2b69f4a89fbc4a2d8982b0942 | [
"C#"
] | 2 | C# | upretymadan45/BlazorBasics | 717f6b8a170b17da72bf504ef17a5245084308ec | cbc444b0457036206691670bcb1fba0c629a9f0d |
refs/heads/master | <repo_name>thewakingsands/ZeffUI<file_sep>/data/content_type.js
// Content manually placed over from https://github.com/quisquous/cactbot/blob/main/resources/content_type.ts because this project doesn't support typescript
var content_type = {
BeastTribeQuests: 13,
Companions: 12,
CustomDeliveries: 25,
D... | 9701c59142fc92a25ce8b253233c352017b18958 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | thewakingsands/ZeffUI | 54f9e79a174594595aa22bd31d9a74106c1d4021 | 5071224c3d0c623ed6a7d7f1e9814eb85e0d55d5 |
refs/heads/master | <file_sep>for i in (1...101)
if (i % 3 == 0) and (i % 5 == 0)
puts "FizzBuzz"
elsif (i % 3 == 0)
puts "Fizz"
elsif (i % 5 == 0)
puts "Buzz"
else
puts "#{i}"
end
end
| 00378bb6ce311d1c3475a41008a5215776a6a732 | [
"Ruby"
] | 1 | Ruby | shinyamagami/fizzbuzz_in_ruby | 8065358446e0df997161a0225f96b299ffcc1c4a | 039971e90ffb5c0097aa8e506bf426aa458dc5cc |
refs/heads/main | <repo_name>merihamidah/atw-project02<file_sep>/project/index.js
const express = require ('express')
const app = express();
const port = 3000
const path = require('path')
const bodyParser = require('body-parser');
const mongoose =require('mongoose');
const { Schema } = mongoose;
app.use(express.urlencoded({ extended:tr... | 61e56f1b7991a120d09e8c89ed42afec89928480 | [
"JavaScript"
] | 1 | JavaScript | merihamidah/atw-project02 | 832bd47c050036bd9a588ebadc6478d2cad82d31 | e5a934874c29f946437eabbe36bbdf9c57bff2e7 |
refs/heads/master | <file_sep>// function
function playVieo() {
// video.play();
const match = video.paused ? 'play' : 'pause';
video[match]();
}
function changeButton() {
// console.log('btn')
const btn = video.paused ? '►' : 'l l';
button.textContent = btn;
}
function skipFuncton(e) {
// console.log(this.d... | b43da19737216d9b1981204702198087f75f31d6 | [
"JavaScript"
] | 2 | JavaScript | Illia-Sokol/JS30 | a8febb42abc00c458a3322581c93088c6c61a23c | 658dc9e9370fff088b0f75add29621f3e5b2bd38 |
refs/heads/master | <repo_name>ganeshkumar/cf-to-tf<file_sep>/tests/cleanHCL.js
const cleanHCL = require('./../lib/cleanHCL');
const path = require('path');
const fs = require('fs');
test('clean', () => {
const cwd = path.basename(__dirname);
const hcl = fs.readFileSync(cwd + '/fixtures/example.tf', 'utf8');
const expected = fs.readFi... | 0eaec5ad7c3357b2d238ed5e36f22e878ebc057b | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | ganeshkumar/cf-to-tf | 733274defc3e4d1d566f31e5a2d962321bd50f35 | b2395d05d12f7ae2464f00b5d79bb8cef13a40d0 |
refs/heads/main | <file_sep>import discord
from discord.ext import commands
everything = {
'level': [
'Used to show own or someone else\'s level',
"level target",
"target here is the member whose level you wish to know (can be mention, id or username), if no target specified, own level is shown"
],
'... | caad5625aecf4f3cd7cda69a1c138ee405ee4aed | [
"Python",
"Text"
] | 8 | Python | mihirsh02/Zeta | 66830b296996a94df1e5b4ad42a2997fc6beeb79 | 875b66223c87f8da9acd809bc604ee90739c04b8 |
refs/heads/master | <repo_name>farjana-dipa/Estate-Agency-Projects<file_sep>/js/main.js
// SCROLLUP BUTTON
const scrollUp = document.querySelector('.scrollUp');
window.addEventListener('scroll', () => {
if(window.pageYOffset > 300){
scrollUp.classList.add('active');
}
else{
scrollUp.classList.remove('active');
}
});
// ... | 46decbaeeb606cefc0c1e70b2fda24d700847ebc | [
"JavaScript"
] | 1 | JavaScript | farjana-dipa/Estate-Agency-Projects | 8fe2f2291dc2ace0ccd4c186cf9cbed9720cbbf9 | d893e296e1599b37fd8947de8ed24bb9171503f8 |
refs/heads/master | <repo_name>DeepakR63/Fund<file_sep>/component/messagebox.js
import { toast } from 'react-toastify';
//Show the message using toaster.
export function messageBox(msg)
{
if (!toast.isActive())
{
return(
toast.update(toast(msg,{autoClose:false}),
{
position:... | d864c4039cab15022942f1823ae0acccd3c8a3d8 | [
"JavaScript"
] | 6 | JavaScript | DeepakR63/Fund | 15f32f2395b7a6b2772be1dafc495dfe52d69dc7 | 188de1f5286fe15304f7efbbef153c99bab03c3c |
refs/heads/master | <repo_name>LuckyFox1/JQueryPlugin<file_sep>/js/script.js
$(function () {
var width;
var boundaryWidth = 980;
var isSlider = false;
var gallery = $('#gallery');
var images = gallery.children();
var amountImages = images.length;
if ($(window).innerWidth() < boundaryWidth) {
isSlider =... | 6681447490ec01d482081296769a517c5121fbcd | [
"JavaScript"
] | 1 | JavaScript | LuckyFox1/JQueryPlugin | 5d34c063d98f63660f24783ee2386e37abc96518 | fd3fb5b0e4e13ccf3cc9f3b157d96ca6a1935eef |
refs/heads/master | <repo_name>EyalBrilling/FlightSimulator_Web<file_sep>/Models/ServerManager.cs
using FlightSimulator_Web.Controllers.Models;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
namespace FlightSimulator_Web.Models
{
public c... | d6a3fa1896f37a52fc97c8ae6edbedd268d302d5 | [
"C#"
] | 8 | C# | EyalBrilling/FlightSimulator_Web | 36064e7085d6e6766269f0206ba17b9d3d92d918 | dfec653d2ed6b663f860b2d8de27555c057cc295 |
refs/heads/master | <file_sep>import numpy as np
from sklearn import datasets
from sklearn.neighbors import KNeighborsClassifier
iris = datasets.load_iris()
iris_X = iris.data # use iris_X.shape --> SHAPE shows the dimensions. it's a property of numpy arrays
iris_Y = iris.target
np.random.seed(0)
indices = np.random.permutation(len(ir... | c37f8de740f54f9d291f710f17b5787af43d5b8a | [
"Python"
] | 3 | Python | fedegott/Intro_Machine_Learning | f8b47bd4adf3e8a24f76230cb67869165a08e5b3 | ac27bdd80c1aa467073c8e92fa5de0176e74a561 |
refs/heads/master | <file_sep># Text-Encryptior
http://wordencryptior.appspot.com/
Take text as a string. Then each alphabet replace with their ascii value with some addition/deduction.
<file_sep>#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use th... | 03ebdb4195adf897cae29875e3662e18bb99f0b2 | [
"Markdown",
"Python"
] | 2 | Markdown | Kimbbakar/Text-Encryptior | 0f8ac9c1cbb3fc3171ee377588737ae2f5444550 | 85e83673f5de35eeb6d6229e468369ca682422e5 |
refs/heads/master | <repo_name>ArnabBasak/PythonRepository<file_sep>/python programs/calculator with function.py
#program to create calculator using function
def add(x,y):
z = x+y
print('addition is: ',z)
def sub(x,y):
z = x+y
print('substraction is: ',z)
def mul(x,y):
z = x*y
print('multiplication is: ',z)
def div... | 838d23e9590bc855926628d0f7b4ffe73e108565 | [
"Python",
"HTML"
] | 205 | Python | ArnabBasak/PythonRepository | 388478fd33c4ed654eb6b1cba5e0cbdcfb90cf0e | ca475b1bc728ede1e033c54f40392f5b4c3494d4 |
refs/heads/master | <file_sep>'use strict'
console.log('\x1Bc')
const LOG = true
const DEBUG = false
global.cleanArray = actual => {
if (actual && actual.constructor === Array) {
let j = 0
for (let i = 0; i < actual.length; i++) {
if (actual[i]) {
actual[j++] = actual[i]
}
}
actual.length = j
r... | 8f54fd087b02d5149cceaa7f58b17bcdcc51b5da | [
"JavaScript"
] | 2 | JavaScript | ShyRabbit-web/ttps-github.com-spAnser-discord-coc-war-announcer | 29de7da0c230b26b4acd08d2d32125c8bb82cd11 | c898c351ac1f9c2413f4754123621667abd4dae3 |
refs/heads/master | <repo_name>chenop2/interview-algorithms<file_sep>/src/Trees/BalancedTree.java
package trees;
/**
* Created by Chen.Oppenhaim on 3/7/2016.
*/
public class BalancedTree {
public static void main(String[] args) {
TreeNode root = TreeMockHelper.createTree();
System.out.println(isBalanceTree(root));
... | fd09114466f4b2678206aab6f13b899140e86950 | [
"Java"
] | 5 | Java | chenop2/interview-algorithms | 62c695cbc1dc6ee5da52332727af16f18b4e5462 | ba2affd8859314cec8ec59641aaff0b1587acd6c |
refs/heads/main | <file_sep>package me.doupay.sdk.net
enum class Language(var language: String) {
en_US("en_US"),
zh_CN("zh_CN"),
zh_TW("zh_TW"),
}<file_sep>package me.doupay.sdk.net.exception
import me.doupay.sdk.Constants.language
import me.doupay.sdk.net.Language
enum class ExceString(
var us: String,
var cn: S... | 3d11e747e7aa4c601ddfa79adea104c702ad86ee | [
"Markdown",
"Java",
"Kotlin",
"Gradle"
] | 25 | Kotlin | doupay/doupay-java | 19be1e3b53f8edce926e5f68394278e5814bba06 | 94ec04a360cdcca06aa4b0b7a0b32957e7910af4 |
refs/heads/master | <repo_name>syo16/Advanced-Unix-Programming<file_sep>/section7/test7-4.c
#include "../apue.h"
int main(int argc, char *argv[]) {
for (int i=0; i < argc; i++) {
printf("%s\n", argv[i]);
}
}
<file_sep>/section7/test.c
#include "../apue.h"
int main() {
printf(getcwd());
}
| 7f9410d62278557833feb6bd14139e16041a73ed | [
"C"
] | 2 | C | syo16/Advanced-Unix-Programming | 18957bb921fd8a722428fb9ba1e03d687b3af588 | 0ac5695f410b615f527f87c2b2b7e7b57f3c6605 |
refs/heads/main | <repo_name>kidandcat/gigya-flutter-plugin<file_sep>/example/ios/Runner/GigyaProviders/GoogleWrapper.swift
//
// GoogleWrapper.swift
// GigyaSwift
//
// Created by <NAME> on 15/04/2019.
// Copyright © 2019 Gigya. All rights reserved.
//
import UIKit
import GoogleSignIn
import Gigya
class GoogleWrapper: ProviderWra... | db11cd19ab46d259b4ca4a0b3fccee948929bec7 | [
"Swift",
"Kotlin",
"Markdown",
"Gradle"
] | 15 | Swift | kidandcat/gigya-flutter-plugin | e077647958ed5b31b10b7306cd01013ffa88ef2a | 3c07de148a64b1408a8bb190e854d03930237b56 |
refs/heads/master | <repo_name>NNN-kakimoto/sample_laravel<file_sep>/README.md
# フォームを使うサンプルアプリのリポジトリ
## メモ
- kakimotoが作る
- Aoki先輩にプルリク(とりあえず)
- コントローラとビューを作成してフォーム画面でなんやかんやするまでやる<file_sep>/app/Http/Controllers/top.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Con... | 2391976fc12435dc9cd589416b413171ee20e209 | [
"Markdown",
"PHP"
] | 2 | Markdown | NNN-kakimoto/sample_laravel | 4970921893d024a28af3efac7fb4cbf0e8a6e4ad | b906c78f574eaeeaaed124ff07a5e285771ebaa1 |
refs/heads/master | <repo_name>TomSpencerLondon/fizzbuzz<file_sep>/app.rb
require 'sinatra'
require './lib/fizzbuzz.rb'
enable :sessions
get '/' do
p session
@result = fizzbuzz(session[:guess].to_i)
erb :index
end
get '/fizz' do
session[:guess] = params[:guess]
redirect to ('/')
end
<file_sep>/README.md
Fizzbuzz Game
=====
Th... | b2bab18c69283ce9acf4985efdcbb7fa3d13681f | [
"Markdown",
"Ruby"
] | 3 | Ruby | TomSpencerLondon/fizzbuzz | 49c6146c88cfbc75ec6f83ce344f84bd66fb0099 | 71759afc34033cfeb7a3c141b3a2d0048e6b7c0b |
refs/heads/master | <repo_name>Mrz12345-controller/WxDemo<file_sep>/src/main/java/net/com/wxdemo/config/WeChatConfig.java
package net.com.wxdemo.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
@Component
@Pro... | 7a5248267e5fe979bc0254136f227338edcbf1d7 | [
"Markdown",
"Java"
] | 3 | Java | Mrz12345-controller/WxDemo | dae7c7bd316cbd47a276d2f467635198e5e2a72b | 1c87675e4660baa90ce49368f1e3846e16211354 |
refs/heads/master | <repo_name>mohammed-albeltagi/Library<file_sep>/Library.Repositories.Interfaces/IRepository.cs
using System.Linq;
using System.Threading.Tasks;
using Library.Models;
namespace Library.Repositories.Interfaces
{
public interface IRepository<T> where T : BaseEntity
{
IQueryable<T> GetAll();
Task... | 215b79c968c47f7580abe3bc068530049315c39e | [
"Markdown",
"C#",
"TypeScript"
] | 14 | C# | mohammed-albeltagi/Library | 22161799f03e64a3323d6acb2b9c2b926a9d7301 | fe73f926992a53f280f559db9a48a738993e260b |
refs/heads/master | <file_sep>from models.corridor import Corridor
from text import epilogue, intro, run_corridor
def main():
corridor = Corridor()
with open("book/001-intro.md", "w") as intro_file:
intro_file.write("# Introduction\n\n")
intro_file.write(intro(corridor) + "\n\n")
corridor_history = (
... | 233942c865865bc6cc9069a01e8ac77e8fadb258 | [
"Markdown",
"Python",
"Makefile"
] | 9 | Python | LuRsT/the_longest_corridor | 93e64171b723a99f1c1364364734977bb23eab10 | d13e248c258a29aeb79c41152509cab55913bfca |
refs/heads/master | <file_sep>using System.Collections;
using UnityEngine;
public enum TILETYPE
{
NORMAL = 0,
STAIR,
TRAP,
WALL
}<file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public struct Tiles
{
public TILETYPE _type;
public Transform _tile;
}
... | 737aedc37a94133bca97e7d280cd956f175e94cc | [
"C#"
] | 3 | C# | GameDeveloperr/Avoid-Police | ddd1c055b9d42cfa697f0bf95e10f923ba8e2c96 | c2a70334fee1fe8de862e8de55d09ab6124384e2 |
refs/heads/master | <repo_name>sf-kansara/mongo<file_sep>/example/raw.js
const qe = require('../lib');
let query = qe('office_collection')
.raws(
['eq', 'character_name', '<NAME>'],
['notin', 'habits', 'manager', 'adult', 'HR'],
['select', true, 'name', 'age', 'address'],
['select', false, '_id'],
['>', 'age', 96],
... | d4ac2a9e41dbb0478d348fbed50de5b2841b72c3 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 32 | JavaScript | sf-kansara/mongo | 546c2f74126be1923d9fed3ac375c8150637d69e | 24de55cbf122ef3c7442a852fc2c099e02e322b3 |
refs/heads/master | <file_sep># SpiderGame
A squad of robotic spiders are to be sent to explore micro fractures on the wall of a building!
This wall, which is rectangular, must be navigated by the Spiders so that their on-board diagnostics can get a complete view of the wall from close up before sending the data back to the control de... | 9b98ee9381804b8a8f471be761785ac85852bc03 | [
"Markdown",
"PHP"
] | 6 | Markdown | kedika/SpiderWall | 1b6db7d673e8a491ac7187c474d3bbb3797c202f | 7701c410794511dcb90ebe01919a8874ce422dd8 |
refs/heads/master | <repo_name>revialim/processing-webapp<file_sep>/public/cube-script.js
//cube initial setup
window.CubeContainer = {
alias: "genericCubeAlias",
boxX : 100,
boxY : 100,
cubeSize : 90,
rotX : 0.5,
rotY : 0.5
};
var cube1 = CubeContainer;
window.CubeArray = [cube1];
//list of all cubes
var allCube... | 23b57f4b4ea670bcfb2a5b302d3f1697591bdc3f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | revialim/processing-webapp | 7c1f8f253156982d8c473cb86c62d36b382dd8e9 | 323717e5ae607815d86acd394d1087cf8d5834e0 |
refs/heads/master | <file_sep>## makeCacheMatrix takes as argument a square invertible matrix
## and returns a list of getter and setter methods for the matrix
## and its inverse.
## code of the form 'X<<-Y' assigns to X in the parent environment
makeCacheMatrix <- function(x =matrix() ) {
xinverse <- NULL
set <- function(y) {
x... | 6a2d44c6012f0715f1b1a3ca7c83bf07cb380d64 | [
"R"
] | 1 | R | jjsjamesj/ProgrammingAssignment2 | 21a0ca6fcf7b7e1fe7ade54d7ad7b38dea078125 | c4ef17755fb8a1fa1ed9f03d88fd428bbccc22ec |
refs/heads/master | <repo_name>zCodeLAT/STFapp<file_sep>/application/controllers/Registro.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Registro extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->helper(array('getmenu'));
$this->load->database... | f83c406d31368005009d6e03159787ec823b5f25 | [
"PHP"
] | 2 | PHP | zCodeLAT/STFapp | f706b289a4112de762cc00f92555d8fedb174a31 | fd357138a43053929fd374d2000822e0f5cd1d38 |
refs/heads/master | <file_sep>/*
Comentario sobre las funciones:
- Las funciones son objetos
- Las funciones tienen propiedades
- Pueden asignarse a una variable
- Pueden pasarse como argumento a una función
- Pueden retornarse
*/
//mi primer funcion
function saludar (nombre) {
console.log(' Hola ' + nombre);
};
saludar('grupo de... | 3c1ffb8fefeee2c9facfc4d078483e856601cc9c | [
"JavaScript"
] | 1 | JavaScript | max-munoz/Material | 9a9b7b62a61fa90b0011e92a102e8c559260b801 | c2ebd9b8a5ce63dce0f85482a993323ad8a26b67 |
refs/heads/master | <repo_name>StoneAngelTechnologiesLLC/ProductOrderForm-CS<file_sep>/CIS345Deliverable01/OrderAppJohnPietrangelo/OrederAppGUIForm.cs
//<NAME> CIS345 Tues/Thurs 9am <<<Late Submission>>>
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using Syste... | 467d8d9236941f98edcbb6e65030d66715256d6e | [
"Markdown",
"C#"
] | 2 | C# | StoneAngelTechnologiesLLC/ProductOrderForm-CS | 899b10025a4ba58a684828bd6a8905282843e254 | 7c66a539d4050c2fbeca33320f71651cf9e87bac |
refs/heads/master | <repo_name>johnfelipe/mathamagik<file_sep>/app/helpers/application_helper.rb
module ApplicationHelper
MAX_PER_ROW = 5
SPANS_PER_NUM = 2
TOTAL_SPANS = 12
#OPERATIONS
OP_ADDITION = 1
OP_SUBSTRACTION = 2
OP_MULTIPLICATION = 3
OP_DIVISION = 4
OP_UNKNOWN = 0
def getoperation(action)
puts "OP action is" + ... | 397b3d9e15c83f75784dfd26bcd615680804b427 | [
"Markdown",
"Ruby"
] | 11 | Ruby | johnfelipe/mathamagik | c4aff781fed6037dc58b2a30ee96c44e02178a12 | 41d57f632d4c00a70105386791e477321f8797f5 |
refs/heads/master | <repo_name>taichi0529/ios-practice02<file_sep>/README.md
# ios 練習その2
## 内容
- GCDを使った並列プログラミング(キューを使った非同期処理)
- WKWebViewの表示(今後アップデート予定)
## GCDを使った並列プログラミング(キューを使った非同期処理)
iOS(macOS)は並列プログラミングをするときにキューを使った非同期処理として実装出来るようになっています。
自分でスレッド管理をしなくてよくなります。JavaScriptで非同期処理になれていればほぼほぼ違和感なく使えます。
デモでは実行すると「計算中...」と出ます。これはフィボナッ... | 4d70cc621a8e01be46f83f82b2412848f794569b | [
"Markdown",
"Swift"
] | 2 | Markdown | taichi0529/ios-practice02 | 6964cf96c123e4e86c21a5adf481f0d9a1d423ef | 5d61b7a1e1fa37d35ab4ff6a52a99119ccd70fc0 |
refs/heads/master | <repo_name>BlueSkyDetector/blank_detector<file_sep>/blank_detector.py
#!/usr/bin/env python
import ctypes
import struct
from logging import getLogger, StreamHandler, FileHandler, Formatter, INFO
import subprocess
import select
import threading
import time
import os
import signal
logger = getLogger(__name__)
formatter... | 4c5c7a8776e1121965723e43100e585c59bb96b1 | [
"Markdown",
"Python"
] | 2 | Python | BlueSkyDetector/blank_detector | 8275885513780c4fc0482527f875d49f86260566 | 8160d7408b2882d8d766ae571f952fb644a9b2d9 |
refs/heads/master | <repo_name>bdtexas/Selenium2Library<file_sep>/src/Selenium2Library/keywords/__init__.py
from .logging import LoggingKeywords
from .runonfailure import RunOnFailureKeywords
from .browsermanagement import BrowserManagementKeywords
from .element import ElementKeywords
from .tableelement import TableElementKeywords
from .f... | eaa951a405b02175c08eb6e04285df0e496e253e | [
"Python"
] | 1 | Python | bdtexas/Selenium2Library | db0ae4fb856d37d5119be899df4429a2f5ab5ab8 | 6df67f59ba5f3d1ecfdf74bac5872e173bf74b9d |
refs/heads/master | <repo_name>sunshu/common-app<file_sep>/common/src/main/java/sunshu/me/common/widget/AdapterCallBack.java
package sunshu.me.common.widget;
/**
* author:sunshu
* time:2019/2/24:22:57
* desc:
*/
public interface AdapterCallBack<Data> {
void update(Data data,RecyclerAdapter.ViewHolder<Data> holder);
}
<file_se... | c02d1c05edcde5b38ad5ac1145d5be977faa32d3 | [
"Markdown",
"Java"
] | 5 | Java | sunshu/common-app | bb2eed636f8b495a05fe628a4bccf942cd3f28fd | 98a3cdf916620b965e327cbac1256cad2038235c |
refs/heads/master | <repo_name>jovysun/UU<file_sep>/README.md
# jQuery插件集
## 前言
很早之前写的,现在用的场景应该越来越少了,简单整理下作个纪念吧。
## 插件包括
弹出框,倒计时,tab切,焦点图,商品轮播图,滚屏,插入多媒体(微博,flash等),懒加载。
## 配置
具体参数见注释
## 示例查看
```shell
npm install
```
```shell
gulp
```
<file_sep>/lib/UU-2.1.js
/*
* 依赖jquery1.7以上版本
*/
var UU = UU || {};
var products = undefined == pro... | 6ac23d2060d98a1356adf5b019e346fbd9f97682 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | jovysun/UU | 138dc44c33dfdb06423a7f158a132205a4fef051 | d8ad119c0bdd0cb53126bda70f720b7da5a3d171 |
refs/heads/master | <repo_name>vsypraktikum/web<file_sep>/Mattes/2/app/view.py
# coding: utf-8
# sehr einfache Erzeugung des Markups f�r vollst�ndige Seiten
# jeweils 3 Abschnitte:
# - begin
# - content
# - end
# bei der Liste wird der content-Abschnitt wiederholt
# beim Formular nicht
import mako
import codecs
import os.path
import stri... | 88a09da8a01b01316da0eff9f3f61f0cd2dfad78 | [
"HTML",
"JavaScript",
"Markdown",
"INI",
"Python",
"C",
"Shell"
] | 88 | Python | vsypraktikum/web | 47ec56a275891e041646edb1612b905c17fdfc04 | 6bb80e20ca57480e3315911f509492a8e703bd33 |
refs/heads/main | <file_sep>package middleware
import (
"github.com/gin-gonic/gin"
"github.com/liuvigongzuoshi/go-kriging-service/internal/app/config"
)
// RateLimiterMiddleware 请求频率限制中间件
func RateLimiterMiddleware(skippers ...SkipperFunc) gin.HandlerFunc {
cfg := config.C.RateLimiter
if !cfg.Enable {
return EmptyMiddleware()
}... | f03ddb33a6cae98a44c135394ab99b11fb54e683 | [
"Markdown",
"TOML",
"Go Module",
"Go"
] | 18 | Go | liuvigongzuoshi/go-kriging-service | 92682a10d955376fa6964e2a54828f46363c5821 | 50f118d711d12bcd61142d264fc70dae7eae77eb |
refs/heads/master | <repo_name>AlvaroOrduna/alvaroorduna.github.io<file_sep>/Gemfile
source "https://rubygems.org"
ruby RUBY_VERSION
gem "jekyll"
gem "sass"
gem "jemoji"
<file_sep>/_includes/portfolio/summary.html
<h2>
<i class="fa fa-user"></i>Summary</h2>
<div>
<p>I am currently finishing a Master Degree in Computer Engineering at ... | 1576831ee38c7292d3b24dfd2ed44eee0cb5f91d | [
"Markdown",
"Ruby",
"HTML"
] | 5 | Ruby | AlvaroOrduna/alvaroorduna.github.io | 13f997389ba25a5960a286cc4ac88bd0d8f97419 | f53ef20bdaa77b5c00cde8775557f8d59f02b9e9 |
refs/heads/master | <repo_name>levsha87/meditation-app<file_sep>/main.js
const song = document.querySelector('.song'),
video = document.querySelector('.vid-container video'),
play = document.querySelector('.play'),
replay = document.querySelector('.replay'),
outline = document.querySelector('.moving-outline circle'),
forwardRigh... | 3fddea57daa6cfec49861950bef5b51c983c1ec2 | [
"JavaScript"
] | 1 | JavaScript | levsha87/meditation-app | 6490339c0bf6e57696a98e4414904d0dfea118df | f4aa7535e43f7e17165118b01b6fdc212c852939 |
refs/heads/master | <repo_name>EduardoDuQuesne/challenge-number-loop<file_sep>/script.js
//What is the difference between the sum of the squares of the first
//ten natural numbers, and the square of the sum of the first ten
//natural numbers
let sumNum = 0;
let eachNumSquare = 0;
for (let i = 1; i <= 10; i++) {
eachNumSquare += i... | a302ee16e5adabae76723dee3b80c94d1c5c3a69 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | EduardoDuQuesne/challenge-number-loop | f813d59063493fdff632b848a91e0522589e5e5c | e33e0542fd16ceb831f264cd660cec9e01f6c1d3 |
refs/heads/master | <file_sep># benchinit
Benchmark the initialization cost of your packages or programs.
Requires Go 1.19 or later.
go install mvdan.cc/benchinit@latest
This includes the cost of `init` functions and initialising globals.
In other words, a package's contribution to the slowness before `main` is run.
### Quickstart
B... | b72a4f830a8b32156a2d902ccdd9053215d2d1c4 | [
"Markdown",
"Go Module",
"Go"
] | 6 | Markdown | mvdan/benchinit | a1c84b4c2101da1204889faea72b9e16e7fb85d7 | 8f2043de8551529c7a646947bb94defc35a0b018 |
refs/heads/dev | <file_sep>var vow = require('vow'),
vowFs = require('vow-fs'),
fsExtra = require('fs-extra');
modules.define('providerFile', ['logger', 'util'], function(provide, logger, util) {
logger = logger(module);
provide({
init: function() {
//stub method
},
/**
... | e7aeb80373a58621f61f9be963d1775a5491dd74 | [
"JavaScript",
"Markdown",
"Shell"
] | 35 | JavaScript | pulpiks/jsboom-bem | bccd6d55f5acafb3e7aea5f8877684614d2fade2 | 8eae385da02d8e967dff96330bcfb3009f3a685b |
refs/heads/master | <repo_name>moesurevo/nan3_backend<file_sep>/app/Repositories/Replier/ReplierInterface.php
<?php
namespace App\Repositories\Replier;
/**
* Interface DashboardRepository
* @package App\Repositories\Dashboard
*/
interface ReplierInterface
{
// public function findOrThrowException($id);
public function... | 02103acf1a6ca34896e8ac00721fa846a35c4d4f | [
"JavaScript",
"PHP"
] | 29 | PHP | moesurevo/nan3_backend | 6b4abf30811b6c68fd5549459b6313dfcb4eaa96 | 33e4a9140971c563a16857da1b217cc11ee15908 |
refs/heads/main | <repo_name>Yoskele/freeBackLink<file_sep>/src/components/createAccount/CreateAccount.js
import React, { useState, useContext } from "react";
import firebase from "../../Firebase";
import { Redirect } from "react-router-dom";
import { AuthContext } from "../contexts/AuthContext";
const CreateAccount = () => {
const ... | ef0539ed12e1e30181db98d1cc9ad6e459cb8bec | [
"JavaScript"
] | 10 | JavaScript | Yoskele/freeBackLink | 6020ceca5e7d05e2bb30326c2a40e7f13fcda8f3 | 6ef55eaacf4bb5cbe91011fa7cd3bc024377ca57 |
refs/heads/master | <repo_name>shreyakapadia10/assignment2-module2-solution<file_sep>/app.js
(function () {
'use strict';
angular.module("ShoppingListCheckOff", [])
.controller("ToBuyController", ToBuyController)
.controller("AlreadyBoughtController", AlreadyBoughtController)
.service("ShoppingListCheckOffService", ShoppingListCheck... | 5d8b38c78585bbe97fa5337d8d19fbafe97765b0 | [
"JavaScript"
] | 1 | JavaScript | shreyakapadia10/assignment2-module2-solution | d6b5a142887f61476873e619ba764d5d7bd3213b | 29a9c63c557fa62878d6f35027f37c3adde36b76 |
refs/heads/master | <repo_name>harmingcola/photosorter<file_sep>/src/main/java/org/seegee/photosorter/utils/ImageUtil.java
package org.seegee.photosorter.utils;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
public class ImageUtil {
public static boolean isImage(File file) {
String fileName = file.ge... | 5764b9b3eeedf86aaa3d1701c72dd95a0ee01593 | [
"Java"
] | 5 | Java | harmingcola/photosorter | 958413b5ee2c17517255cc629138bdb2d75a2cea | 26a7cc39e01237af949e0e6e5a3b4a72f1a0f710 |
refs/heads/master | <file_sep><?php
Route::get('/', 'WebCrawlerController@get');<file_sep><h2 align="center">Web Crawling Using PHP</h2>
## About
This is a very simple Web crawler with the following functionalities:
- Can get total number of words in a page
- Can get average title length
- Find the number of unique internal and externa... | 78277b8b56fd0c4cbcacb34092f1bd1daea2b477 | [
"Markdown",
"PHP"
] | 5 | PHP | CudaRabbani/WebCrawler | 93ff25a65cefc0df2ad2704b0b91f3e5f4bde57d | e7418b1f9a6a6b9baa0d049a05eae4b58867191f |
refs/heads/main | <file_sep># Copyright 2020 getcarrier.io
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 6412e4382e55fdfe362886aa5342c04ea401c648 | [
"Markdown",
"Python",
"Text"
] | 25 | Python | hunkom/arbiter | 3d7aa1e225c311696e086429bc78bdc7f0f477e2 | e42a0c3c23805a2d6ecb7e6751e7ca4443f0effd |
refs/heads/master | <file_sep>package com.example.luckyticketkotlin
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.EditText
import android.widget.ImageView
import android.widget.Toast
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanc... | 5b2e664bbf4179b3bc6ab00acf229edf4ec7e92f | [
"Kotlin"
] | 1 | Kotlin | MRAndrd/LuckyTicketKotlin | fb492ee645416cf698b90b9c5c6cb913a10ce5f5 | 0f59991fc25e78440b32670ed7e388cf125e5bc5 |
refs/heads/master | <repo_name>aman0511/geekapp<file_sep>/run.py
import os
from app import app
port = int(os.getenv('VCAP_APP_PORT', 5000))
if __name__ == "__main__":
app.run(debug=True,port=int(port))<file_sep>/app/oauth.py
from rauth import OAuth1Service, OAuth2Service
from flask import url_for, request, redirect, session
from config... | 45497c3c985e8a5a265303dc43550bcc3c475824 | [
"JavaScript",
"Python",
"Text",
"HTML"
] | 8 | Python | aman0511/geekapp | b18cdc92c430b719f2efd0b97b073f6fae475492 | ed29ed21e7db48eafcdd458dc04b06cb95a11c51 |
refs/heads/master | <file_sep># SecretHoldEm
A Texas hold 'em poker game implemented as a Secret Contract for the Secret Network
Demo: https://holdem.enigma.co
<file_sep>.PHONY: all build clean store find-floating-points
all: build
build:
RUSTFLAGS='-C link-arg=-s' cargo build --release --target wasm32-unknown-unknown --locked
wasm-... | 4fdd0c04972b5ad3b918894fb141693571f40885 | [
"Markdown",
"JavaScript",
"Makefile",
"Rust",
"Shell"
] | 5 | Markdown | lindlof/SecretHoldEm | 3b8043e8bc0661a7ead1274bdf802f0b10bda4f5 | 7ea5990461b230392982c3d1d5c213de3727987d |
refs/heads/master | <file_sep>//
// ViewController.swift
// CarAppIOS2
//
// Created by <NAME> on 5/8/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var carImages: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
... | 9660a958382e74130ea9a5e60d2b5e8a38fa447a | [
"Swift"
] | 1 | Swift | Dylansweaver/CarAppIOS2 | ed130594ceb44c1291801b639c3879df656ca317 | 16d8e42589b66c932519a5034073d1a72c39d4df |
refs/heads/master | <repo_name>troynt/serialize.js<file_sep>/README.md
# Goal
A lightweight $.param to be included in your JS.
# Notes
There are some slight differences between $.param and the function provided here.
decodeURI($.param({a: [1,2,3]})) produces a[]=1&a[]=2&a[]=3
decodeURI(serialize({a: [1,2,3]})) produces a[0]=1&a[1]=2&... | 28a0b2e5b9b1ee802af32edd72062405607592de | [
"Markdown",
"JavaScript"
] | 2 | Markdown | troynt/serialize.js | a2910f3d08077437c9d4e0d839308625a7c86668 | b37717d3d6f2cabb692d4566feef7aa05d4758c9 |
refs/heads/main | <repo_name>ponaravindb/StudentRecordMaintenance<file_sep>/fileexist.c
#include<stdio.h>
#include<conio.h>
/*
int isFileExists(const char *path)
{
{ // Try to open file FILE
*fp = fopen(path, "rb");
int status = 0; // If file does not exists
if (fp != NULL)
{
... | e3ff48f08a6e59897e5dd31d5f872a6d5be62ed2 | [
"C"
] | 2 | C | ponaravindb/StudentRecordMaintenance | 522bbe8456625d9021c46458bc0a6242001e590e | 4ad0f90014072da2cc2e0fd725b77ca7ce1855ba |
refs/heads/master | <repo_name>felipepessoto/InstaEvent<file_sep>/src/Instaeventos.Web/Controllers/EventController.cs
using Instaeventos.Core;
using Instaeventos.Web.ViewModels;
using System;
using System.Linq;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace Instaeventos.Web.Controllers
{
public partial class EventCont... | ea40725240159712dbdee204a51a61d72b50ccd9 | [
"C#"
] | 9 | C# | felipepessoto/InstaEvent | b21d563fbd2f38db4e0a633fb68deadf01df93ce | d07366aaa04155c81389ff59352ca7243d33f097 |
refs/heads/master | <repo_name>thomascolomba/vue_simpleEventBus<file_sep>/README.md
# ejemplo12
## Project setup
```
src/events/BusinessEventList.js -> list of business events
src/view/Home.vue -> emits an event
src/components/HelloWorld/HelloWorld.js -> receives the event
<file_sep>/src/components/HelloWorld/HelloWorld.js
import EventBu... | aa11b57b85398d7e866dd624618e30d411a8dcce | [
"Markdown",
"JavaScript"
] | 2 | Markdown | thomascolomba/vue_simpleEventBus | 47de12d56cbea7920c24f18f235e977d20e520e1 | e6635ff8f9cd0561f994d70db83a0af5a8bfd9de |
refs/heads/master | <file_sep># che-sample-custom-openocd-extension
Sample Eclipse Che Plugin to create custom actions for gdb-openocd debugger
<file_sep>/*******************************************************************************
* Copyright (c) 2012-2016 <NAME>.
* All rights reserved. This program and the accompanying materials
*... | f51804dee40f52c9394e49958963b666650c2f95 | [
"Markdown",
"Java"
] | 3 | Markdown | schervet/che-sample-custom-openocd-extension | 8b1644f865639a401f3709f34b806a476c37e1fe | 6e39cf341a74e2952805c1c23989691f4a031d9c |
refs/heads/master | <repo_name>yoramdelangen/timecap<file_sep>/app/Http/Controllers/Api/RegistrationController.php
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Models\Registration;
use Illuminate\Http\Request;
class RegistrationController extends Controller
{
protected $registration;
p... | 75a4b129fef2be18377a8f1b144c6eb6a486ed19 | [
"JavaScript",
"Markdown",
"PHP"
] | 10 | PHP | yoramdelangen/timecap | 8a13290c79a25a1ee321245c879caba16fbecb86 | ab721e10caef6b72f3531e70ca497a12e81736dc |
refs/heads/master | <file_sep>#!/usr/bin/python
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import getpass
import time
email=raw_input("email: ")
password=<PASSWORD>("Password: ")
driver = webdriver.Firefox()
driver.get("http://www.quora.com")
time.sleep(5)
Form=driver.find_element_by_xpath("//div[@... | 61fa9421ef915aab6f9aada898df5d1c8245e261 | [
"Markdown",
"Python"
] | 2 | Python | viv1/Q_api | 13e216fba7d001a6be50a90c840407abb197c094 | 2b73979f26de9d589d552b211fc46e8f456f35a4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.