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 | <file_sep># Add-ons
The core package aims to be lightweight and dependence free. While the add-ons are wrapping popular packages into the consistent API style.
## Head - [`@vueuse/head`](https://github.com/vueuse/head) <carbon-link class="external-link"/>
Document head manager for Vue 3. SSR ready. Created and maint... | cd3e49ac94889f4dc797def47a885536ba7b2f7c | [
"Markdown",
"TypeScript",
"JavaScript"
] | 18 | Markdown | Yill625/vueuse | 30e690132d5addeef78d90e2159d128122119f6d | 7f188227b5f00e500b81c4735c397b85a834cfdb |
refs/heads/master | <repo_name>fabricio22/api-controle-gasto<file_sep>/src/main/java/br/com/controle/gastos/vo/MovimentoAtualizacaoVo.java
package br.com.controle.gastos.vo;
import java.math.BigDecimal;
import java.util.Date;
import br.com.controle.gastos.enums.TipoMovimento;
import br.com.controle.gastos.models.Categoria;
public class... | e0b280be7d5febfa70f9d80232c0ac799a206e11 | [
"Java"
] | 13 | Java | fabricio22/api-controle-gasto | b1f480f32423e3c3d65c802d7ae6f2ca305506c3 | c300880e4d53e0dcb94fb01177063bf7748e2962 |
refs/heads/master | <file_sep>use std::{
convert::TryInto,
error::Error,
fmt::{self, Display, Formatter},
};
#[derive(Debug, Clone)]
pub struct BufferTooSmall;
impl Display for BufferTooSmall {
fn fmt(&self, fmt: &mut Formatter) -> Result<(), fmt::Error> {
write!(fmt, "buffer too small")
}
}
impl Error for B... | 516fee09beb3f85eaab69f713900f2023b5b7a98 | [
"TOML",
"Rust"
] | 9 | Rust | 3Hren/cleverdog | b248b5fe7c2dcda8749d650b682e66ef64d65123 | 16618150ac89e325a4803508070bbd16ad4cd0e7 |
refs/heads/master | <file_sep>case-study-churn-analysis
==============================
Mobile app user churn analysis.
A collaborative case study performed as part of the Galvanize Data Science Immersive.
<file_sep>import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from sklearn.metrics import mean_squared_error,... | 04aa24457c096994237ee656de65bcbcbe5ce701 | [
"Markdown",
"Python"
] | 5 | Markdown | DataAna1ytics/case-study-churn-analysis | 846b3c693143b26a9beb8504918a59986a19ec71 | c8afbe8d02f128430667bb494208617e32bff143 |
refs/heads/main | <repo_name>EmanuelLP/Jose_Emanuel_Lopez_Paez_IC_602_Taller_SO<file_sep>/Practica_Sockets/servidor.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define PORT 4455
#define MAX_DATA 1024
void main(){
//Estructur... | e7dbcc8219e944473ea37fb136767cd61b840df7 | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 17 | C | EmanuelLP/Jose_Emanuel_Lopez_Paez_IC_602_Taller_SO | a24d14a58f61405230487962ea5539214a15a9dc | dd5a2ea89037eef1626770401ceb5af1cc37f325 |
refs/heads/master | <file_sep>๏ปฟusing System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Text;
using System.IO;
using System.Xml;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.Web... | 380c24cbdc33e642af087449135a5ab79e3a5fda | [
"JavaScript",
"C#"
] | 17 | C# | nod2007/mayn | 83db1b4efec63bf4fd1134444f830468ff29a89f | 776741f32beccb3b458e43c52fc26c22c88704be |
refs/heads/master | <file_sep>package net.blf2.service.impl;
import net.blf2.dao.IUserDao;
import net.blf2.entity.UserInfo;
import net.blf2.service.IUserService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* Created by blf2 on 17-2-4.
*/
@Service("UserService")
public cl... | a4e7450e5c9ab0312597678482ebd1f6e4fcbe75 | [
"Java",
"SQL",
"INI"
] | 4 | Java | 469656392/Collector | 2c8506b1715d3f5bb781469732435165d18289fc | 74ca635302c0dc4c617d2317f94b19f389818132 |
refs/heads/master | <file_sep>const dynamoose = require('dynamoose');
const Schema = dynamoose.Schema;
module.exports = new Schema({
SearchTerm: {
type: String,
hashKey: true
},
StatName: {
type: String,
rangeKey: true,
index: true
},
Tweets: {
type: 'list',
list... | d13d4a4477257c96b5e8a860de60235430bc2dd4 | [
"JavaScript"
] | 3 | JavaScript | haseebelahi/hashtag-analyzer-api | cc0720a27e601855e2ef4cc13673eec0a77d752c | 2634073eaebc232aebc8d9bd02171db128ac2032 |
refs/heads/master | <file_sep>class Picture < ApplicationRecord
#picture belongs to event and user relation
belongs_to :imageable, polymorphic: true
mount_uploader :picture, PictureUploader
#picture resize validation
validate :picture_size
private
# Validates the size of an uploaded picture.
def picture_size
if picture.size ... | 44f34cdcdebc687c1587044cee2342b3b402e2ed | [
"Ruby"
] | 13 | Ruby | neha912/Event-Mangement-App | cbdcd88b487822a12df4354c5be1ed49d2662156 | 006aadcff71202f0ac81e834cf8aef20b8588e45 |
refs/heads/master | <file_sep>/*
* Created by <NAME>
*
* 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 version 3 of the License, or
* (at your option) any later version.
*
* This program is distribut... | a9f545fdfd0be90a1084c218fe7341abfdf133e1 | [
"Java",
"C",
"Makefile",
"CMake"
] | 33 | C | aarnaud1/Openings | 869f35d36d847af639fdab8cbcb7f0c7ea0f7922 | f6ef8bd48771ab7c93555103f436e2c80d6e9ab7 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Post;
use App\Like;
use Auth;
use Illuminate\Http\Request;
use Illuminate\Database\QueryException;
class PostController extends Controller
{
public function gotoDashboard()
{
$posts = Post::orderBy('created_... | f7591d33d50be499fe18205ef22903b464874f04 | [
"PHP"
] | 3 | PHP | shiki-boy/lsapp | 81577f3d0f92cf279c39e5e895ae08c9670af08e | b49545eb2a43480ba3fc5d320bdde9e5d124e9cb |
refs/heads/master | <repo_name>chinhnk/TIES437-01<file_sep>/TIES437-service/src/main/java/ties437/service/entities/City.java
package ties437.service.entities;
import org.json.simple.JSONObject;
import ties437.service.commons.OntologyConstants;
/**
* Created by chinhnk on 4/3/2017.
*/
public class City extends Entity{
public stati... | ba7ff17abb73a1b9b56ecbb60ab5a51ac4c75ef4 | [
"Java",
"Maven POM",
"INI"
] | 11 | Java | chinhnk/TIES437-01 | f11c03d9cfb179cb7086b4f5c7ba46a0bde2c6d4 | a5122ed6756d8515437ecba7dd50b438aea3816e |
refs/heads/master | <file_sep>#' @title DDT Data Set
#'
#' @description A data set collected by the US forces from the Tennessee River and its tributaries
#'
#' @format a list with 6 variables, which are:
#' \describe{
#' \item{MILE}{ the mile of the river at which the fish was taken}
#' \item{LENGTH}{ the length of the wish}
#' \item{WEI... | cc00c074d0413384363bce8cae26842d1f0d3ce3 | [
"R",
"RMarkdown"
] | 6 | R | ajmitchell715/AndrewMitchellProject2 | 923b45ab1648628315a0a8a7e6b8bb35127d29bf | a80d57427cfecb32f1750ab4d28bf86587d781e6 |
refs/heads/master | <repo_name>RotcivOcnarb/Arqdesis-Aula15<file_sep>/app/src/main/java/br/usjt/arqdesis/cliente/ListaClientesActivity.java
package br.usjt.arqdesis.cliente;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.wid... | 54009ff833cf57436fb513d98f11fcd5fe1e96b1 | [
"Java"
] | 2 | Java | RotcivOcnarb/Arqdesis-Aula15 | dec02ccfc20ca62aa7daf32fb170e02ad66b71cc | 1d05415ed26f4e5711743a3b2a4fac28b6fa07db |
refs/heads/master | <repo_name>ryancharris/dev-affirmations<file_sep>/index.js
const axios = require("axios");
require("dotenv").config();
const addTweet = tweetId => {
// Make HTTP request to hit AWS Lambda function
axios({
data: {
id: tweetId
},
method: "post",
url: process.env.LAMBDA_ADDRESS,
headers: {
... | 6780d958ab0d590998058ef99029c72f5cea437b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ryancharris/dev-affirmations | 1ec55ea704252e769804dd78feaae9f94a2a8240 | 6d6e22640daa89454b41669fb00994608995cdfb |
refs/heads/master | <file_sep>๏ปฟnamespace DynamicTeDD.Tests.test.data.SkeletonTheDynamicContextAction
{
using System;
using Microsoft.CSharp;
using NUnit.Framework;
[TestFixture]
public class SampleTests
{
[Test]
public void FirstTestWithDynamic()
{
dynamic myModelingClayInstance... | c696a3fbbb135f6192ed74a376d9fdae2d0663d0 | [
"Markdown",
"C#"
] | 6 | C# | tpierrain/DynamicTeDD | 2a3569c8a73dac1715e3933ae2de190fb00f47c0 | a8ae31b40705d974f4ce3bb9af321a3c46e3fb03 |
refs/heads/master | <file_sep>import os
import discord
import time
import random
from discord.ext import commands
from dotenv import load_dotenv
from make_gif import make_gif
print('Loading tokens...')
load_dotenv("tokens.env")
TOKEN = os.getenv('DISCORD_TOKEN')
kill_pw = os.getenv('KILL_PW')
#GUILD = os.getenv('DISCORD_GUILD')
print('... | d13f72d9a5c1510cefa1c9945e31df7e5d25c01d | [
"Python"
] | 2 | Python | jubjamie/SaltyBot | 316a80af316b3edfb456ce39ae4486f02c69865b | 22a7f72dd11ffcb2c27ab28411d03899456b7fae |
refs/heads/master | <file_sep>include ':app'
rootProject.name='ProyectoBJCS'
<file_sep>package com.isc.proyectobjcs;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
public class MenuPrinActivity extends AppCompatActivity {
... | 42250f3ddd5bf456259e8de3f9adb160507a67a0 | [
"Java",
"Gradle"
] | 2 | Gradle | johnwhick98/ProyectoBJCS | 6990eaf2533733495896820f17d7fd0f5a8f42ca | 82a204c74d5936bab8c550a24a89b6cdc6963b57 |
refs/heads/master | <file_sep>// ะะตัะฒะฐั ะทะฐะดะฐัะฐ
'use strict'
var Tc = parseFloat(prompt('ะะฒะตะดะธัะต ัะตะผะฟะตัะฐัััั ะฒ ะณัะฐะดััะฐั
ะฆะตะปััะธั'));
function TempCel(Tc) {
let Tf = (9 / 5) * Tc + 32;
return Tf;
}
alert('ะขะตะผะฟะตัะฐัััะฐ ะฟะพ ัะฐัะธะฝะณะตะนัั - ' + TempCel(Tc) + ' ะณัะฐะดััะพะฒ.');
// ะัะพัะฐั ะทะฐะดะฐัะฐ
let admin = NaN;
let name = prompt('ะะฒะตะดะธัะต ะธะผั');
... | 3fc63343da32da86e8e660c1e9079e7818d5985a | [
"JavaScript"
] | 1 | JavaScript | nsm23/JavaScrit | e416e17b2163f16b3d032acc58e8e96a44f5ae6f | 2ca49f6c308c90f0f8c37f9dc9d4e2932a656177 |
refs/heads/main | <file_sep>package proj2
// CS 161 Project 2
// You MUST NOT change these default imports. ANY additional imports it will
// break the autograder and everyone will be sad.
import (
"github.com/cs161-staff/userlib"
// The JSON library will be useful for serializing go structs.
// See: https://cs161.org... | 681c9f89a780b61ae9bbceb22dd313d1651fbfc0 | [
"Go"
] | 2 | Go | vainaviv/project2-starter-code | d0fa7175b43cb80671f333cc0e321c029baa937d | 5a5f80b249c70836f680e0cd46c50dfdd79ee8df |
refs/heads/master | <file_sep>const fs = require('fs');
const path = require('path');
const config= require('./config');
const moment = require('moment');
function ensureDir(p) {
if(!fs.existsSync(p)){
fs.mkdirSync(p);
}
}
function getAssetRelativePath(absolutePath, assetPath='/assets', replaceSplit = true){
let targ... | 17ac61946b6f74d241ad71ec06323137d86214e7 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Thyiad/puppeteer-poster | 39f642f88a596f29d7a9b406563f9f0b150d7228 | 082c799b60cb563524fea57fad8adf31f77dc88c |
refs/heads/master | <file_sep>package com.lusheng.bookcrossing.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.lusheng.bookcrossing.dao.BaseDao;
import com.lusheng.bookcrossing.model.PointsChangeRecord;
import com.lusheng.bookcrossing.service.PointsChange... | 0a17bb02ad7fa3c410648a38be7675b3a1c40f2f | [
"Markdown",
"Java"
] | 19 | Java | wosilusheng/bookcrossing | 08eda403b5852e70ed09204490d9e3e33e38fb0b | ad1d30177b52a8c59c5d3bb162faa8a2d3d9e2be |
refs/heads/master | <repo_name>Asplomer/FPSMobile<file_sep>/FPSmobileS/Assets/Scripts/Extras/Follower2.cs
๏ปฟusing System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Follower2 : MonoBehaviour {
public float speed = 1.8f;
public Transform Target;
public float timerBomber =3.0f;
public float t... | 8744b7ad7f0270f6db12054720f9446ca1470595 | [
"C#"
] | 12 | C# | Asplomer/FPSMobile | c760a7ed45a30f218b167733505509847344ae2f | f7d239a48b69c506a68493681a736d6ed72d6cda |
refs/heads/master | <repo_name>RoolApps/YetAnotherFindPair<file_sep>/gridcontroller.cpp
#include "gridcontroller.h"
/*ctor*/
GridController::GridController(Item object) : IQmlComponentController(object){
}
/*dtor*/
GridController::~GridController(){
clear();
}
/*private*/
bool GridController::checkIfSolved(){
for(int row = 0; ... | 1bf952fb6d764052d9375be74b17c2d8c4fc06c4 | [
"JavaScript",
"C",
"C++"
] | 19 | C++ | RoolApps/YetAnotherFindPair | 1caa6e9bd3d75048a8f3bfcbdc624514a4b2e053 | dc781e6f34bff3bde7bcd6f9d9796159567ac9ac |
refs/heads/master | <file_sep># Simple Electron Chat App
This is just a demo of a basic chat app using Electron and React.
The server is included and must be run using Node.js
## Tiny features
* You provide a username to enter a chat room. Server endpoint is configurable.
* Supports Markdown.
* List of connected users.
* Informs connec... | 9d8602ddab4ceaa2f148dfe09d0c3c3c3a899a08 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | Triple-Z/Eletron_Chat_DEMO | 9140da2314bffebd40f43cf54d5c93b3aa215299 | c0093ea2cc6bb0dfb0bf5938ed49cdd876a89e97 |
refs/heads/master | <file_sep>DataPostTimeSchema = Dry::Validation.Form(ApplicationSchema) do
DATE_REGEX = /\A([0-2][\d]):([0-5][\d])\s([0-3][\d])\.([0-1][\d])\z/
configure do
def is_date?(value)
!DATE_REGEX.match(value).nil?
end
def auto_date?(value)
%w(end beginning).any? { |d| d == value }
end
end
... | b6bde341a7fe48a98c591c0899996cbab937acd7 | [
"Makefile",
"SQL",
"Ruby",
"Markdown"
] | 39 | Ruby | merqlove/apisvc | 2cefabf09942c03eddb46401c3329b9fedd8f6ad | 978040ffd0da37571488d039bd864e4f0eb5244e |
refs/heads/master | <file_sep>source 'https://rubygems.org'
gem 'rails', '4.0.1'
gem 'pg', '0.17.1'
# Json builder
gem 'jbuilder', '~> 1.2'
# JavaScript
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails', '3.1.0'
gem 'jquery-ui-rails', '4.1.1'
gem 'angularjs-rails', '1.2.14'
# CSS
gem 'sass-rails', '~> 4.0.0'
gem 'compass-rails', '~> 1... | fbb32e5e508f84c6945a579a9d950e24e18dcfa8 | [
"Markdown",
"Ruby"
] | 15 | Ruby | sashasydorenko/question-answer | e1106cf1b2f70762ce7f0cbc629d7ec272310f05 | afd71f0e2263ddccac7ec84df2a1f47355281518 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Sun Jul 12 12:49:53 2020
@author: Itay
"""
# pyinstaller --onefile -w CC_GUI_Final.py
import tkinter as tk
import tkinter.ttk as ttk
from PIL import Image,ImageTk
import numpy as np
import time
import pickle
# SARSA L Parameters
alpha=0.1
gamma=0.... | 837cd06d5564344216b9289cc7ad830d8577cb54 | [
"Markdown",
"Python"
] | 2 | Python | ItayGrinberg/CCGame | bf30eb9a6c2c6a15a5587518e535626a9fdebe42 | b0153b261d7ceb8fd0f018409be64c96dbc214c0 |
refs/heads/master | <file_sep># This file was created by `documentation::extract_tests` on 2018-11-12 16:19:15.
# Once present, this file will not be overwritten and changes will persist.
# To recreate the default version of this file delete and rerun `extract_tests`.
library(testthat)
test_check("testextra")
| ec5c251b78f8e96f50edc96f8fc84e71d33b75f0 | [
"R"
] | 1 | R | cran/testextra | 47aff786d69fec69ed4e2e78d702675fb1e37be9 | 7305d853cfa25e75a90e0fba1ba4ebe35c655b62 |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
import {SecurityService} from '../services/security.service'
@Component({
selector: 'app-encoder-decoder',
templateUrl: './encoder-decoder.component.html',
styleUrls: ['./encoder-decoder.component.css']
})
export class EncoderDecoderComponent implements... | 98b26cd547dcd8a79c87577382a9374bb5bb2928 | [
"Markdown",
"TypeScript"
] | 18 | TypeScript | ZakariaNaaija/Pentbox-GUI-Frontend | c83324e7172689cd809089ea605a8a0a6b8fc7d2 | 8aeb7aa12d5ed6cdb5c03fae1175d3b54f51c9d5 |
refs/heads/master | <repo_name>Ghoris0127/cg<file_sep>/eindopdracht/interface.py
from OpenGL.GL import *
from OpenGL.GLUT import *
import ctypes
class Interface:
def __init__(self, x, y, s_hor, s_ver, c, func):
self.x = x
self.y = y
self.s_hor = s_hor
self.s_ver = s_ver
self.c = c
self.func = func
def check_pressed(self, b... | f40f4f67159419e0010f98936a1afa3f58fd3e17 | [
"Python"
] | 4 | Python | Ghoris0127/cg | 2e3c3ce60602ed15a5ee5833aa0dd083a9f152c5 | 163ec704fe086d96475e8fa388095648e75763b3 |
refs/heads/master | <file_sep>#ifndef INCLUDE_TOML_PARSER_HPP
#define INCLUDE_TOML_PARSER_HPP
#include <exception>
#include <functional>
#include <string_view>
#include "parser.h"
#include "constant.h"
extern "C" {
int toml__internal_on_section(
toml__internal_t* s, const unsigned char* p,
const unsigned char* endp);
int toml_... | ec04f4891b3ed78b769f6f79549a1f273c4be7f5 | [
"JavaScript",
"Makefile",
"C++",
"Markdown"
] | 6 | C++ | terrywh/lltoml | 489b685bcfdbec07c0f4c1d875df11f4a0902633 | 3198ae0e1c2346d1351c7002962c5dc984b8c2ca |
refs/heads/master | <repo_name>jmichaeln5/chris_g_page<file_sep>/javascript/basicslider.js
var i = 0; //Starting Point
var images = [];
var time = 3300;
// Image List
images[0] = 'pic4.jpg'
images[1] = 'pic1.jpg'
images[2] = 'pic3.jpg'
images[3] = 'pic2.jpg'
// Change Image Func
function changeImg(){
document.slide.src = images[i];
... | 9ffdacdaa56d3eec80b0c7c75433f96a11b2f162 | [
"JavaScript"
] | 1 | JavaScript | jmichaeln5/chris_g_page | bee7710c9156b223e41bd36da12acb7bd864c822 | 34306a8b0501dcaeeb141f16d827d204afe0aeb0 |
refs/heads/master | <repo_name>hirvin-faria/jogo-adivinhacao<file_sep>/adivinhacao.c
//for compile run `gcc advinhacao.c -o advinhacao.out/.exe`
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define RETRIE_NUMBER 3
int main() {
printf("************************************\n");
printf("* Bem vindo ao jogo de adivinhaรง... | 64fc5a389d423cc2d0103b89a3b6eec657944a7f | [
"C"
] | 1 | C | hirvin-faria/jogo-adivinhacao | 6eea91b0febc64830039c732b1b31739c981244f | 501443f4d0436975c652e03748daf0a8547d406e |
refs/heads/master | <repo_name>xseg18/Lab2<file_sep>/Parte 1/Heap.cs
๏ปฟusing System;
namespace Parte_1
{
public class Heap
{
internal Node[] Queue;
int p;
internal class Node
{
internal Node Right;
internal Node Left;
internal Node Parent;
IHuffman.No... | 6bdfc5b028b40a9b54cb95053ada04dbf08e7e9e | [
"Markdown",
"C#"
] | 7 | C# | xseg18/Lab2 | 53a09452ebb2aed6de6d9b9087fb81a973c4d8e0 | 65685e5c3e6d5d282616ee75c680ad3bf4375538 |
refs/heads/main | <file_sep><?php
namespace App\Actions\TicketType;
use App\Models\Ticket_type;
class UpdateTypeAction
{
public static function execute($inputs,$slug)
{
$type=Ticket_type::where('slug',$slug)->FiRSTOrFail();
$type->update([
'name'=>$inputs->name
]);
return $type;
}
... | d8d08873184c7d13b9735f8bab2a5dc21b9f590b | [
"PHP"
] | 62 | PHP | Mhdismaeel/EnableCors | f89059bf1204f59a31703b06af39e5de628dab47 | 33f77c37388fe8ada12da9439279b83a27660ff2 |
refs/heads/master | <repo_name>ichikawa0311/filter_plugins<file_sep>/dict_get.py
from ansible.errors import AnsibleError
class FilterModule(object):
def dict_get(self, a_dict, a_key):
if( not isinstance(a_dict,dict) ):
raise AnsibleError('the parameter is not dict')
if( not (a_key in a_dict.keys() ) ):
... | b476a23a65c8b1efd91272b49ad6cc591684e1f3 | [
"Markdown",
"Python"
] | 2 | Python | ichikawa0311/filter_plugins | 8fdf213112389f9e8d5c3380e5da827732071c19 | 414a1535a78ab2b09ecf7e8184db47302e9b8a06 |
refs/heads/main | <file_sep># Import library PuLP as p
import pulp as p
# Set up a maximization problem and its variable
# (I) Name the problem as "IceCream_maxProfit_Analysis" using objective of minimizing cost :
profit = p.LpProblem('IceCream_maxProfit_Analysis', p.LpMaximize)
# (II) Set up problem variables :
# Box of vanilla ice-c... | 845bd1b6bbbbe017f2fa8c73efbc2e37bfa17f9f | [
"Python"
] | 1 | Python | Jirapawee-R/DataProg_HW5_640631114 | 3c71d7e2b55ae4a7d574cdf352bc8dd2d91345a3 | f927e59448f4d4142dd1e509c2c2ceb3db1d03b8 |
refs/heads/master | <repo_name>AngelMsger/Bangumi-Visualizer<file_sep>/Dockerfile
FROM node
LABEL maintainer="<EMAIL>"
COPY . /app
WORKDIR /app
RUN npm install --save
CMD ["node", "bin/www"]
<file_sep>/README.md
# Bangumi-Visualizer
[](https://travi... | b5719dfdc59d931603fcb4205f865b3ddb2cf1cc | [
"Markdown",
"JavaScript",
"Dockerfile",
"Shell"
] | 6 | Dockerfile | AngelMsger/Bangumi-Visualizer | 2b57e093b6dfb8e354a75e913e86fff8422a0d7a | fb2f60a6bc514da97583fc5a9e93e304c970faa5 |
refs/heads/master | <file_sep><?php
namespace Antennaio\Clyde\Http\Controllers;
use Illuminate\Contracts\Filesystem\Factory as Filesystem;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use League\Glide\Responses\SymfonyResponseFactory;
use League\Glide\ServerFactory;
use League\Glide\Signatures\SignatureFactory;
use Le... | 777990c2624de128645858079babebfb521ee6e4 | [
"PHP"
] | 2 | PHP | richiepearce/laravel-clyde | f3e4fafab6530de00c2447a15a79c50004b6063a | f792527dfff7cc497e80df8afab45b793feeca32 |
refs/heads/master | <repo_name>Trekivoy/Bataille-navale<file_sep>/main.c
#include <stdio.h>
#include <stdlib.h>
#define IA_VS_IA 2
#define MAP_H 18
#define MAP_W 24
void load(int plateau [2][MAP_H][MAP_W]){
char c;
int k;
int i;
int j;
FILE *save=fopen("./save.txt","r");
for(k=0;k<2;k++){
... | d6e18cfd4375faacc666367481892084930416dc | [
"C"
] | 1 | C | Trekivoy/Bataille-navale | 26c6ad3beed5e9fcd744171aabc21f4c6faa5fc2 | e7923e91d7d26525a9faf5d0853bc8606f721418 |
refs/heads/master | <file_sep>๏ปฟusing Cognex.VisionPro;
using Cognex.VisionPro.ImageFile;
using Cognex.VisionPro.ToolBlock;
using System;
namespace VisionPro_Tut.Source
{
public class ObjectManager
{
//variable
public CogImageFileTool mIFTool;
public CogToolBlock mToolBlockProcess;
public CogToolBlo... | 7c3a2545017ca391a291c0a39146e79fef0d852a | [
"C#"
] | 11 | C# | resilencelyn/VisionPro_Tut | 583fa28faffd9b63d70020f193ac7ee1b74b2e53 | b9f42a4f06f7fe6be869b51bf71b0f1ed4f9ba9d |
refs/heads/main | <repo_name>KeonaK/WeatherDashApp<file_sep>/README.md
# WeatherDashApp
This project is a weather dashboard.
Type in any city and it will display the current weather as well as a 5 day forcast.
(Github Repository Link: )[https://github.com/KeonaK/WeatherDashApp]
(Github Deployment Link: )[https://keonak.github.io/Weath... | 631bcf0d7f6a84c90b520842a264534719589e13 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | KeonaK/WeatherDashApp | 02532629a3f0e06963fd93997571e43db1b1c21f | 4ebafbfa3c083009d52b6767d2a2a0be6faf17ed |
refs/heads/master | <file_sep>from peewee import *
import json
class ObjectField(Field):
"""
ะะพะปะต-ะพะฑัะตะบั ะดะปั ะฑะฐะทั ะดะฐะฝะฝัั
(ัะตัะตะท JSON)
"""
field_type = 'object'
def db_value(self, value):
return json.dumps(value)
def python_value(self, value):
return json.loads(value)
db = MySQLDatabase('volunt... | 3d2035f06712a88ce8e5686990d8bf0b70052407 | [
"Markdown",
"Python"
] | 5 | Python | Bot12313/VKHT_VolunteerBack | e0b67735660fc66950eee849a00a03470b27d6e5 | b64b1880f2a2d620a0686cded37f27dc1db6f232 |
refs/heads/master | <file_sep>const _ = require('lodash');
const uuid = require('uuid')
const fs = require('fs');
const path = require('path');
const filename = path.join(__dirname, '../data/todos.json');
exports.getAll = function (req,cb) {
if(req.query.complete){
if (req.query.complete === 'true'){
fs.readFile(filename, (... | ad14433be1989c80cc2f8bfbb6b6d0888f06f362 | [
"JavaScript"
] | 2 | JavaScript | johnsalay/todo-list-react | cc41c07ac228131ebaea2d28f3151d69d305226e | f1fe7e5f7752ffb2863919538ac56a4c45e3a1fc |
refs/heads/master | <file_sep>// //Business Logic for TicketPrice
function TicketPrice) {
this.prices = [],
}
//
// TicketPrice.prototype.addMoviePrice = function(price) {
// this.prices.push(priceValue);
// }
//
var price = 0;
//Business Logic for Ticket
function Ticket(movie, time, age) {
this.movie = movie,
this.time = time,
... | e7154488869c21536e30891e04637c9fc5a55a31 | [
"JavaScript"
] | 1 | JavaScript | linbaker/movie-tickets | 790612fced581f1fd1a92f3451b1763527a2e39e | 34b2a43ea055e479d4dab0ac7fbe0f8b1f939b08 |
refs/heads/master | <file_sep><?php
defined('BASEPATH') or exit('No direct script access allowed');
class Users extends CI_Model
{
public function __construct()
{
parent::__construct();
$this->load->database();
}
public function get_all_users()
{
$query = $this->db->query('SELECT * FROM users ORDER BY username');
return [
... | d67ab69e8f6a3c3b2da285aa019337c2a685f6d2 | [
"Markdown",
"Java",
"PHP"
] | 7 | PHP | irfansbom/nyabun-opo-ngaso | 559b757f26e969192535506c7122a82017493c46 | 08e1b0f145a184fe35939a03a31a4f1f9481ec4a |
refs/heads/master | <file_sep><?php
return [
"addtitle" => "New Pet",
"add" => "Add a new Pet",
"petname" => "<NAME>",
"kind" => "Kind",
"type" => "Type",
"sex" => "Sex",
"born" => "Born",
"tall" => "Tall",
"weight" => "Weight",
"pet_users" => "Pet Users",
];
<file_sep><?php namespace App;
use DB;
use Illuminate... | 3f962a07a6722947c13a4f84b78f710fb005c991 | [
"Markdown",
"PHP"
] | 11 | PHP | far666/petshop | 5b35d8dac9d01731bd4731405a710f250c903b36 | 5428798111b5b0501b4e78808a9823029b5e4ff5 |
refs/heads/master | <file_sep># sample_selenium
This python script is a sample for selenium test using Excel.sheet.
<file_sep>#20190401
# https://note.nkmk.me/python-openpyxl-usage/
'''
Auto form fulling test_Hotel_reservation_form using selsenium.
'''
import time
from selenium import webdriver
from selenium.webdriver.common.by import... | 6ddb73b202dbc4bd69bfa70ab09abce67ada3978 | [
"Markdown",
"Python"
] | 2 | Markdown | genkioyaji/sample_selenium | ccc7331e8d6d7904db42e93ae46b8cda59a06726 | ad52a2e73bfc241b1e43b3ecf37381f34c353ea6 |
refs/heads/master | <repo_name>Regoradin/Seminar<file_sep>/placement.py
import random, sqlite3
class Seminar:
def __init__(self, id, capacity, session, no_random):
self.id = id
self.capacity = capacity
self.students = []
self.session = session
self.no_random = no_random
def AddStudent(self... | 2c7bd6ac12ad6c81985ec35fa7a8e24ff0ef3249 | [
"JavaScript",
"Python"
] | 4 | Python | Regoradin/Seminar | 20ce3c0675ac7bcfbf8910f5bf51ece6f7eec013 | e7252fa320cdb655903859ff3e95d2e587e12606 |
refs/heads/master | <repo_name>team-emm-too/kalendae<file_sep>/my-app/src/App.js
import React from 'react';
import './App.css';
import 'semantic-ui-css/semantic.min.css';
import {Form, Grid, Header, Menu, Message, TextArea, Button, Icon, List, Segment, Divider} from 'semantic-ui-react';
class App extends React.Component {
state = {
... | c0142e636edc6334f06344de3057d6776fdb581e | [
"JavaScript"
] | 1 | JavaScript | team-emm-too/kalendae | f6e0947c893592dd311d9b318c3f7b64f187bfa3 | 1186ab5bc97db3dfff405e994dc465e2d548c5f2 |
refs/heads/master | <repo_name>Korben3/liskland<file_sep>/liskland.js
//liskland by lisk delegate: korben3
//
//config variables
var network="test"; // main or test
var maxObjects=25; // max number of transactions checked for objects
var liskAddress="112233444L"; // lisk address used to receive the transactions
//setup
$("#ma... | 1492519cfbcb012fc5eff296f0f668ba5845fe7d | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Korben3/liskland | f705db8298e4c958ab86c7deb53f081a728f24bf | 3b0f0badab4c219b95172f45d061944317a43ee5 |
refs/heads/master | <file_sep>i = 4
d = 4.0
s = 'HackerRank '
val=int(input())
val1=float(input())
s1=input()
value=i+val
print(value)
value1=d+val1
print(value1)
stri=s+s1
print(stri)<file_sep># 30DaysOfCodePython
These are my solutions for 30 Days of code on HackerRank. I have solved these using Python. Feel free to use the c... | 3da8092853cf6e911ad40c70f832a384074f40b2 | [
"Markdown",
"Python"
] | 8 | Python | hayagreevvaradarajan/30DaysOfCodeUsingPython | 5908b246bcd56f1dfdd0998a01e2b975028d0a6e | e1a40cd8502dd26f5f8f79eb15646bd7ff7f5cc4 |
refs/heads/master | <repo_name>JefeNovato044/ObjectsExamples<file_sep>/EjemplosObjetos.js
var Animal = {
philo: "Perro",
nombre:"Mishu" ,
edad: 50,
saludar : function (){
console.log("Hola soy un " + this.philo + " que habla," + " y mi nombre es " + this.nombre);
}
}
class Sujeto {
//Constructor de objeto... | 3cbed34e90a5b4c91517f3809198bcd0b6eb37fd | [
"JavaScript"
] | 1 | JavaScript | JefeNovato044/ObjectsExamples | c9b1d3d23fdcf9113ee3dcef20af032af711e6b1 | 7c24fc0df0cf8aff9ea390fdd199233064143c89 |
refs/heads/master | <file_sep># sid
## Description:
The sid script provide an easy way to install an email service using vimbadmin to manage user and a nextcloud instance.
## Usage:
Just run the script ```sid.sh``` and provide the differents informations
```
./sid.sh
```
If you want to re-run the script, you need to delete the followin... | 5201951171ebb210550980deab78b0f82e9bf025 | [
"Markdown",
"Shell"
] | 2 | Markdown | aknaebel/sid | 8496cafec202f746b740fab8bd9eeee62adf8e09 | c3ea689e5691c6a3cc1da3bb9f82316106b74c18 |
refs/heads/master | <file_sep>package org.firstinspires.ftc.teamcode;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.hardware.modernrobotics.ModernRoboticsI2cColorSensor;
import com.qualcomm.hardware.modernrobotics.ModernRoboticsI2cRangeSensor;
import com.qualcomm.robotcore.util.Range;
import com.qualcomm.robotcore.har... | 46f27b483af2019224ae241927b552b1d24ce0b3 | [
"Java"
] | 1 | Java | Dwight-Englewood/13048-Relic-Recovery | 67af99224b6b9499bbc8fd295aefe7767ba663ea | cdb0648101fd82be04fd016387a87dea8886afd6 |
refs/heads/master | <file_sep>var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
var centerX = canvas.width / 2;
var centerY = canvas.height / 2;
function drawCircle(x,y) {
context.beginPath();
var MULT = 2.5;
var rad = 4;
context.arc(MULT*x + centerX, MULT*y + centerY, rad, 0, 2 * Math... | 7d71c20f7e0d20d5469b70ab931c50f1d1742eb9 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | LasVegasOle/CircleDots | 95d16e8b8099fb2a44f147d13215be2ca66932d6 | 5f4e184a89e7310fa90b271d66c4c21745de3604 |
refs/heads/master | <file_sep>package server_side;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
public class MySerialServer implements Server
{
private ServerSocket listener = null;
private boolean _run = true;
public void start(int port, ClientHandler c)
{
try
{
th... | b951068e549ff3a1d5d687764e91600c4cd30951 | [
"Java"
] | 2 | Java | barakoo121/PTM | f239011d384012cdf42ee433bf73cb0fb6872532 | d154560b0bec450b37eef806ebbcf43e9298c277 |
refs/heads/master | <repo_name>priyankacheema/eTuition<file_sep>/RegisterTut.aspx.cs
๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
public partial class RegisterTut : System.Web.UI.Page
... | 280898fa3318483025c0227c0f7257603c9f0076 | [
"C#"
] | 3 | C# | priyankacheema/eTuition | 80411321e5cb6619573c8621029a28436a97fce9 | 57b8b857dea3b9b600e6b745e6bb2f99beb52b5e |
refs/heads/master | <file_sep>import sys
entrada=open(sys.argv[1],"r")
salida=open(sys.argv[2],"w")
print (sys.argv)
for line in entrada:
if "1" in line[0]:
salida.write(line)
salida.close()
entrada.close()
<file_sep># python-mcnp
| cebed80169656a4b276f41453d13b68c6bfd227c | [
"Markdown",
"Python"
] | 2 | Python | PabloSartorio/python-mcnp | 0722bf84e0ea03b55a4150a9c40698a922989237 | 9bd6011bed793feda818c4c5cbb3036741a80839 |
refs/heads/master | <repo_name>nalakas/carbon-commons-1<file_sep>/components/logging/org.wso2.carbon.logging.service/src/main/java/org/wso2/carbon/logging/service/registry/RegistryManager.java
/*
* Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use thi... | db40e5a827141eaeac6c73af4b4d020b742e45d9 | [
"Java",
"INI"
] | 25 | Java | nalakas/carbon-commons-1 | 8dedc9d70f62d94c46e1eb2fccf22bb92fc6adbb | 36915a3c5b460e6012713b2fb27653cc12bd9653 |
refs/heads/master | <repo_name>mbsuarezg/Proyecto<file_sep>/src/Model/Pentagon.java
package Model;
import java.awt.Color;
import java.awt.Graphics2D;
public class Pentagon extends ClosedFigure{
public Pentagon(Color color, BoundBox bbox, int thickness, Color backcolor) {
super(color, bbox, thickness, backcolor);
// TODO A... | 28fdf498a18b8d9c99e9f61a7055f1b66c5675b1 | [
"Java"
] | 7 | Java | mbsuarezg/Proyecto | 56b1751d863d0063f594dd3a78a4f37b7211adf5 | 91aacc5e1527792a61dcf26e1e57fc0f3e2ba49d |
refs/heads/main | <repo_name>Glifu/PG-Projects<file_sep>/BackpackProblem/ProblemPlecakowyV2/ProblemPlecakowyV2.cpp
๏ปฟ// ProblemPlecakowyV2.cpp : Ten plik zawiera funkcjฤ โmainโ. W nim rozpoczyna siฤ i koลczy wykonywanie programu.
//
#include <iostream>
using namespace std;
int plecaki(int n, int waga[], int wartosc[], int c, int i) {... | d72f082531e1d1a276d8cfea5e67e57bfe6b0888 | [
"Markdown",
"C++"
] | 10 | C++ | Glifu/PG-Projects | ad4996808caf88f934580201d505c116980a5b76 | 400d257225d493eeb337f8389b5747c6eca2678b |
refs/heads/master | <file_sep>๏ปฟ// ******************************************************************
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED โAS ISโ, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MER... | 131725b68ac929eccf4b0d7f0fb78f5b9a4031f5 | [
"C#"
] | 4 | C# | JustinXinLiu/CrossDeviceExpDemo | 9e15ad415545f212458d60841b739c26583bf099 | 55f5d31b2c7ff4d11d50b10aff799a284e5af835 |
refs/heads/master | <file_sep>import pandas as pd
# from tqdm import tqdm
#
# _filename = './comm_n_and_v_utf8_1_ordered_q.csv'
# encoding = 'utf-8'
# columns = ['mid', 'mname', 'score', 'genre', 'comments']
#
# read = pd.read_csv(_filename, encoding=encoding, header=None, names=columns, low_memory=False)
# tmp_mid = 0
#
# list0 = ['a', '... | 73de4c6e8ea9dac90d94b0018869313086f4e76d | [
"Markdown",
"Python"
] | 19 | Python | momentum1993/NUGU_movie_recommendation | 4fc106ec4f3a7e44813aa52912134b68b3902235 | 79f43cd867cf07c1c1308731295e71a79f29baa7 |
refs/heads/master | <file_sep>from room import Room
from player import Player
from item import Item
# Declare all the rooms
room = {
'outside': Room("Outside Cave Entrance",
"North of you, the cave mount beckons",
[Item("sword", "this sword has dull edges")]),
'foyer': Room("Foyer", """D... | d359bcec0114a0ef4d594066bd6e07ddc11c4265 | [
"Python"
] | 2 | Python | kmonique/Intro-Python-II | 2c4505b7ec014eee37356941072ef3017c89cfb4 | b48b955447cfc8c502732bf632017fa7f279c8ce |
refs/heads/master | <file_sep>package com.testRedis.test;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
public class FistRedis {
JedisPool jedisPool ;
... | 1878ec20d134c7c84256a75c64a36f024e63cd53 | [
"Java"
] | 1 | Java | nux123/FirstRedis | 04608e6a58ed85984617ddd5503dbac065ac3dd8 | ef899d8a9d156578477eddf1f4663b5798211f4f |
refs/heads/master | <file_sep>var util = require('../../utils/util.js');
//่ทๅๅบ็จๅฎไพ
const app = getApp()
const NEWS_TYPES=["gn", "gj", "cj", "yl", "js", "ty", "other"]
let sliderWidth = 26 // ้่ฆ่ฎพ็ฝฎslider็ๅฎฝๅบฆ๏ผ็จไบ่ฎก็ฎไธญ้ดไฝ็ฝฎ
Page({
data: {
tabs: ["ๅฝๅ
", "ๅฝ้
", "่ดข็ป", "ๅจฑไน", "ๅไบ", "ไฝ่ฒ", "ๅ
ถไป"],
activeTabIndex: 0,
sliderOffset: 0,
slid... | 33f69bacdc252a2c071cb62799f3a1023d5bfc32 | [
"JavaScript"
] | 2 | JavaScript | ruiyi02/mininews | c359e9129a06f3688c75ba558b57c2a3abd55f6d | de6c51a9aa78263a9aea7b48f016a774e4f9bbb5 |
refs/heads/master | <repo_name>Ryycs/nim-sum-game<file_sep>/nimsum.php
<?php
$human = 0;
$ai = 0;
function takeMatch($row, $cnt, $inRow){
if($row==="error"){
echo "You must choose a, b, c, or d" . PHP_EOL;
return false;
}elseif(!is_numeric($cnt)){
echo "You entered a non numeric value of matches" . PHP_EOL;
ret... | 5cd5a806894d8340aa041baf74df058f07f5d8c1 | [
"PHP"
] | 1 | PHP | Ryycs/nim-sum-game | e7a772bc9d6a4fc8c9a4f62608af3bf09811cc8d | 1e9f9a7b34e740b213504f7e4c3e6900e0d37ec0 |
refs/heads/master | <file_sep>exports.up = async function up(knex) {
await knex.schema.createTable('users', table => {
table.increments('id').unsigned().notNullable().primary();
table.string('user_id', 20).unique().notNullable();
table.string('email', 100).unique().notNullable();
table.string('name', 10... | 80454ddc883d95d58e8bff3940b453f9bbdc7579 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | ayodejiabon/Node-Engineer-Test-77d2bc2ba6d8494d8fd9dcc1f7337f7e | 0949102f0006e9e51b24579769b943a5e139c7fd | ab18d3bcbde63b1ec5f99d0454faf9b33b2b93ff |
refs/heads/main | <repo_name>ThijsDollekens/GUESS-THE-NUMBER-GAME<file_sep>/project.js
function myFunction() {
var person = prompt("Leuk dat je er bent! wat is je naam?", "<NAME>");
if (person != null) {
document.getElementById("Naam").innerHTML =
"Hey " + person + "!" ;
}
}
function guessNumber() {
var getal =... | 46f79bd08b891a04c6cce5dba59c5400e3ae7cb2 | [
"JavaScript"
] | 1 | JavaScript | ThijsDollekens/GUESS-THE-NUMBER-GAME | 826940aba9b9fd50bc9d64306a3fe3a587c3feb5 | 2962b50dbbc34c7fe492a165ce33ecfa1ab19e85 |
refs/heads/main | <file_sep>import smbus
import time
BH1750 = 0x23
reciever = 0x23
bus = smbus.SMBus(1)
def Light():
address = bus.read_i2c_block_data(BH1750,reciever)
value = (address[1] + (256 * address[0]))
return value
def main():
while True:
light_value =Light()
if(light_value >= 900):
... | 993a055dcbf25cb90f29d08da6b2aa9333f9fd2f | [
"Python"
] | 1 | Python | cyber-panther/SIT210_Task8.1D_RPi_I2C | bed9d70083c0796551c07617148b7f0b1c997b40 | 5a8606fc47be9e0672b2773f607e824a528e879e |
refs/heads/master | <repo_name>mcumiskey/Unity_Museum_Tour<file_sep>/GalleryDemo/Assets/scripts/milesMouseLook.cs
๏ปฟusing System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class milesMouseLook : MonoBehaviour {
[SerializeField]
public float sensitivity = 5.0f;
[SerializeField]
... | 070de7313da64619c5156743a4aa1b6758326e6c | [
"C#"
] | 2 | C# | mcumiskey/Unity_Museum_Tour | a6372054931d1056abcaa5f241a99632bf2c6a7f | 8ce4b2ea78e4d17ab1694891bfbf74feabbb717a |
refs/heads/master | <repo_name>oghie/c<file_sep>/big_pangkat.c
#include <stdio.h>
#define BATAS 16
int main(void) {
int n;
int nilai = 1;
printf("\t n \t 2^n\n");
printf("\t================\n");
for (n=0; n<=BATAS; n++) {
printf("\t%3d \t %6d\n", n, nilai);
nilai = 2*nilai;
}
return 0;
}
<file... | 324b469ce7ae1e052a5df4d7a886f0431cde03eb | [
"C"
] | 2 | C | oghie/c | 199a5cd2831c2d825aa5c47215d352bb3d8d8500 | a5739c6a6b323cd4883122fb5fa9492f717c42f0 |
refs/heads/master | <file_sep>to run project add LED_Setup_Interface.dll to path<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;
using System.Windows.Forms;
using Newtonsoft.Json;
using System.Runti... | a016029969306d1d023be87047589ec351d551e2 | [
"C#",
"Text"
] | 4 | Text | EreminDm/ledWFormsControl | 31f81cac1b5134dc3a32edc8916779548cffcb5f | ce6a8b03ec11940388780f2a08ce2facff04cb96 |
refs/heads/main | <repo_name>careythetech/Rebilla<file_sep>/main.js
var radioButtons = $(".form-radio");
var dropdownContainer = $("#dropdown-container")
function handleChange(data) {
var tdObj = jQuery(data)
var parent = jQuery(tdObj.next())
var label = parent.text()
// console.log(label)
if (label === "Auto-ship -... | b17dd93b75ee1b9030ccfb08fe3f680f9b0667dc | [
"JavaScript"
] | 1 | JavaScript | careythetech/Rebilla | 94a955ffd5e1f2dd38e01b0809a42f2912919cbb | 9504c8b5f363a6ceea8413da35d68e227116a429 |
refs/heads/master | <repo_name>pedroaro/FORMINST<file_sep>/forminst_new1/app/views/entidads/index.json.jbuilder
json.array!(@entidads) do |entidad|
json.extract! entidad, :id, :id, :nombre, :escuelaId
json.url entidad_url(entidad, format: :json)
end
<file_sep>/forminst_new1/app/models/informe_actividad.rb
class InformeActividad < Acti... | 04d7bb250ede6ca61010ebee844df400943ce2c4 | [
"JavaScript",
"Text",
"Ruby"
] | 135 | Ruby | pedroaro/FORMINST | fce921d24bdee64bc383baf0d9edd51d0a848d79 | 1b30579b9e1a54696fbc83d0e1bf700105b63b40 |
refs/heads/master | <repo_name>Jagroop-Gill/trace-the-bug<file_sep>/rest-api/methods.js
const apple = require('./apple.json');
const ontario = require('./ontario.json');
const googleOntario = require('./googleOntario.json');
const gta = ["vaughn", 'toronto', 'markham', 'mississauga', 'Brampton', 'Burlington', 'oakville', 'pickering', 'os... | 9405d092b627f23dd10d0e34e8e772f799105fb0 | [
"JavaScript"
] | 2 | JavaScript | Jagroop-Gill/trace-the-bug | ebcf5fdc63a0b20472b9b9e290b74957aecca56d | 9ccd69f670edb373d21925191639c77e4b10aec6 |
refs/heads/master | <file_sep>๏ปฟusing System;
using System.Collections.Generic;
using System.Text;
namespace TicTacToe
{
class Player
{
public string Skin;
public int Scores;
public int Ox { get; set; }
public int Oy { get; set; }
public Player(string Symbol)
{
... | d4018512ce9bf81a4ad385f0c0f528ee628c344e | [
"C#"
] | 2 | C# | chirchib/TicTacToe | 4d81968c618363e697f1c9d16c70ebbfe6b10d76 | b4c80d23962ec40387066644d6e592c5fd8624c0 |
refs/heads/master | <file_sep><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />... | 6612c6c8d51644ae96aa9258ce22614d333d2fd8 | [
"PHP"
] | 10 | PHP | JPBetley/cirofordelaware | b0180e082e54b396de7d9971a6aa18ce6ec05120 | 8033ea4268be8e1ef5d31cecb765f4e43d755334 |
refs/heads/master | <file_sep>import React from 'react';
import {
Animated,
Easing,
Keyboard,
Platform,
StyleSheet,
TouchableWithoutFeedback,
} from 'react-native';
export class AvoidKeyboard extends React.Component {
static defaultProps = {
offset: height => height,
autoDismiss: true,
};
translateY = new Anima... | 298e5792aa48d76005af6ef52a0d64660f54e787 | [
"JavaScript"
] | 36 | JavaScript | henryliou/kkmeet | 83ef8494491adf50ab8e496e69aed10cf149196c | c329cfef21cb6998f3193098874b70cf573063d6 |
refs/heads/master | <file_sep>import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { NavbarComponent } from './components/navbar/navbar.component';
import { QuizComponent } from './components/quiz/quiz.component';
import { RegisterComponent } from './components/register/register.componen... | d675050a5a0880f43cfd2126f732ea529ec662f4 | [
"TypeScript"
] | 1 | TypeScript | achiradesilva123/Quiz-Demo | 3e49ef6d67c4adc4969e89c78337d371f2151994 | bd78c56a2387d42a31e1314c14d708b30b92b931 |
refs/heads/master | <file_sep> <div class="tile" style="height: 500px;">
<div class="content-title">
<div class="div">
<p id="_count-task"><?php echo(isset($_task)?count($_task):'0')?> cรดng viแปc</p>
</div>
<button class="btn btn-primary header-btn" type="button" id="_bt... | c2245e106ca21daf6ae350f746907e8f1f3cb8c2 | [
"JavaScript",
"PHP",
"Shell"
] | 103 | PHP | nguyenquangsang160596/crm_hungminh | e4df09c0de49b7150a4478f0278ed1a4e1850fda | d785c5207f4c26d704c7843a91b2d2732a786f64 |
refs/heads/master | <file_sep>package com.boolea.interfazdistribuida;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
private TextView mTvAutor;
priva... | b652eaab4bab8c777e420b463bc99a91231f1438 | [
"Java"
] | 1 | Java | oscarito9410/Interfazdistribuida | f6ae01c559e43c7875b3558573535c71452a16e0 | bd50976469e2ce57a5752409014057e7c9da82eb |
refs/heads/master | <repo_name>crisgonzalez94/laravel-red-social<file_sep>/app/Http/Controllers/UserController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
//Esta la necesitamos para enviar archivos a la vista
use Illuminate\Http\Response;
//Dependencias para la subida de archivos
use Illuminate\Support\Facades... | 76f7bc2f00a7f73cbafc9f7fb0a7390bd98c85be | [
"SQL",
"PHP"
] | 6 | PHP | crisgonzalez94/laravel-red-social | 461921fdcbf672b236d09f6c8eb1dbdc10a35cea | 1f843e1f046348ae5136c891d32e2edf97513a01 |
refs/heads/master | <file_sep>rootProject.name = 'priorityq'
<file_sep>package ie.jgriffin.priorityq.model.impl;
import ie.jgriffin.priorityq.model.WorkOrder;
import org.joda.time.DateTime;
import org.joda.time.Seconds;
/**
* Created by jgriffin on 18/04/2017.
* <p>
* Computes the rank for any given WorkOrder object. Accepts a refe... | 960d839fae08e91f599cb9dd0a67094bc46841c1 | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 9 | Gradle | griffinjm/F1zzBuzzPr10r1tyQ | 8db00182388f27d0c7fa3aa7313c944e33859863 | 906b146291a229372fdcea2f3ea2aa2a35bfac3d |
refs/heads/master | <repo_name>Borumer/Virtual-Calculator<file_sep>/index.md
# Kalculator
<a href = "calculator/application.windows64/calculator.exe">64-bit Windows</a>
<a href = "calculator/application.windows32/calculator.exe">32-bit Windows</a>
<a href = "calculator/calculator.pde" download = "Kalculator">Download calculator</a>
<fi... | f263597a30b6ed61483e4e32f83b25d20cebeddb | [
"Markdown",
"Java"
] | 4 | Markdown | Borumer/Virtual-Calculator | 8d31ccb7ea796557bca22dc8c2bbd8d68d8d9234 | 7c0939b1d2cc1d95d01333ef9118481dc9bb7fca |
refs/heads/master | <repo_name>AntonioJesPG/JuegosProgramacion<file_sep>/3EnRaya/src/Final_Version/Podio.java
package Final_Version;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.Win... | 6602a3bef447c0bcc0eeaa4007dfb70e0de49c7c | [
"Java"
] | 6 | Java | AntonioJesPG/JuegosProgramacion | 0aaaba57389f7794441abe9fe0bb39cfe78cf742 | faae6b2ec86ea4fa47bb7f07548df7ce0d8ce317 |
refs/heads/main | <file_sep>๏ปฟusing System;
namespace SnakeAndLadderSimulator
{
class Program
{
static void Main(string[] args)
{
int player1Position = 0;
int player2Position = 0;
SnakeAndLadder Game = new SnakeAndLadder();
while (player1Position != 100 &... | 4da8c558129e1513dc2e05289935586501d5f80b | [
"C#"
] | 2 | C# | bharathmighty248/SnakeAndLadderSimulator | 26f917921132130991166b7eeb92335a378a9c95 | c4001a81ebe80a39d2be23aa9f2230d3e772e77d |
refs/heads/master | <repo_name>MuriLOCO/AngularAssignments<file_sep>/assignment-three/src/app/display-details/display-details.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-display-details',
templateUrl: './display-details.component.html',
styleUrls: ['./display-details.component.css']
}... | 40126619135b49d093423514ae044045a78663f5 | [
"TypeScript"
] | 1 | TypeScript | MuriLOCO/AngularAssignments | 6a0a5bcb021ef2c45bae7b0d0d62050bd8fd2ceb | 38dcb13855f2655d678e0cac70cc9daa9e9d9c7d |
refs/heads/master | <file_sep>import React from "react"
export default () => <div>Hello world!df</div>
| dc58535acf660f43397da96872135b88fd956774 | [
"JavaScript"
] | 1 | JavaScript | RoadToCode822/gatsby-intro | 88cbc23ae84dac7f28861980cf2a4bfad4c4649f | 8783a15673bd1d88dd08102bb2b631334b7c7f67 |
refs/heads/master | <file_sep>package main
import (
"go/format"
"io"
"log"
"os"
"github.com/cheekybits/genny/parse"
)
func gennyGen(filename, pkgName string, typesets []map[string]string, out io.Writer) error {
var output []byte
var err error
var file *os.File
file, err = os.Open(filename)
if err != nil {
panic(err)
}
d... | e63f5ab481d477cffdf9377263e5835341c801b3 | [
"Makefile",
"Go Module",
"Go"
] | 13 | Go | ikasamt/zapp-jam | ab281fc43810c86271decab4fc6da70bf1e83d09 | 5068e89a94e8c02921945f71efcf83443b4962c5 |
refs/heads/master | <repo_name>TrungSpy/tomoscan<file_sep>/server/src/api/SignMessageController.js
import { Router } from 'express'
import db from '../models'
import Web3Util from '../helpers/web3'
const SignMessageController = Router()
SignMessageController.post('/verifySignedMess', async (req, res, next) => {
try {
let web... | 89d523987bb9298cbd20f6a6e7eb300f1d1bfabb | [
"JavaScript"
] | 1 | JavaScript | TrungSpy/tomoscan | e9a97e2adbf85945fb35abfececb8e676fe42df3 | 30c537b7b61787b94094792a5466bb6a03437aa6 |
refs/heads/master | <file_sep>from django.urls import path
from . import views
app_name = 'kakeibo'
urlpatterns = [
path('kakeibo_list/', views.KakeiboListView.as_view(), name='kakeibo_list'),
path('kakeibo_create/',views.KakeiboCreateView.as_view(),name='kakeibo_create'),
path('create_done/',views.create_done,name='create_... | 651ad3fd23772f3054bb87a07a88b99e7f12f1be | [
"Python"
] | 1 | Python | mr110825/kakeibo | fb2658baa81005937b447f1b962d84467a8e1369 | f66a4758eaeaa90d3159e9af98f141384a0cdbff |
refs/heads/main | <file_sep>#! /usr/bin/python3.8
from PyDictionary import PyDictionary
switch = True
def Translate(query,targetLangCode):
return dictionary1.translate(query, targetLangCode)
while switch:
query = input("[+]Enter the word you wish to learn about, peasant(Enter 'q' to quit,'-t' for translation services): ")
#EXI... | e0fcc221a08212c47aa2ab1039617385615c4747 | [
"Markdown",
"Python"
] | 2 | Python | NoctemLeges/Dictionary | 1533b4c5d1b97345f5c8a68cbbac72761d466a2a | f4d4a6794d76e440c0153aaf4a2478268ebae235 |
refs/heads/master | <repo_name>ZivanovicLuka/FourierTransformationVisualization<file_sep>/README.md
<h1 align="center">Fourier Transformation Visualisation</h1>
<p align="center">
<img src="public/images/splash.png?raw=true"
alt="Workflow Screen Shot 1" width="500">
</p>
<div align="center">
<sub>Built with ReactJS and Pixi... | f086cdd904c4a9b289716435acfb67e0bf72e165 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | ZivanovicLuka/FourierTransformationVisualization | 7af3aad0ffc179b82cf15af3e02962b10043b3bf | b3b7e3c2af738ba92817cbaf41b7eace1c1a67b0 |
refs/heads/master | <repo_name>hrasof/Course3GetCleanData_Ass_RunAnalysis<file_sep>/README.MD
HOW I CREATED the README.MD?
- Create a new "R Markdown" in RStudio
- Fill in the File and Save it in the Working Directory
- Using Git Bash, 1) go to Working Dir using cd XXX (Important Step)
2) git Add -A, git commit -m "myMes... | 81616f62d03503b883ce3deaf512e0ab241b9bb7 | [
"Markdown",
"R"
] | 2 | Markdown | hrasof/Course3GetCleanData_Ass_RunAnalysis | 8d30ff5f5fd71c5909846599771212be9189a4a5 | 80b4276571b781d833b664f20eddf56791a7bc69 |
refs/heads/master | <file_sep>package providers
import (
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"net/url"
"strings"
"time"
"golang.org/x/net/html"
)
var header = map[string]string{
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221... | 24022da008cd7cb4da5f72a6a3961d3a783f0303 | [
"Markdown",
"Go"
] | 6 | Go | bpetetot/gobookie | 83c0a5ecfbeada39cdd8d366b96d6ff532a20173 | bf20665afe53aaef2e395802c0c4e9fd8ea7e627 |
refs/heads/master | <file_sep>
#include <stdio.h>
#include "hash_mapping_table.h"
void test_mapping_table_1() {
int result;
result = has_common_character("ๅฝ็", "ๅฝๅฎถ", 0);
fprintf(stderr, "result = %d\n", result);
result = has_common_character("ๅฝ็", "ๅฝๅฎถ", 1);
fprintf(stderr, "result = %d\n", result);
}
// void test_... | f9bf5d0c7076d5152ce483f9c16bbe2217d879a0 | [
"Markdown",
"C",
"Python",
"Makefile"
] | 22 | C | jileiwang/CJ-Glo | e2c9ecf040bcc31276ba1d122327e0f0c5b46744 | 9e0459dc82156980fefa45457126db094ed81aa5 |
refs/heads/master | <file_sep>require_relative 'item_basic'
class NormalItem
include ItemBasic
def update_quality
in_date? ? lost_quality = 1 : lost_quality = 2
lost_quality = @quality if @quality - lost_quality < 0
@quality -= lost_quality
end
def update_sell_in
@sell_in -= 1
end
private
def in_date?
... | 5d0d0e5797dc097ff7d770c90c47db4d001e90da | [
"Ruby"
] | 11 | Ruby | kirillzabrodin/gilded-rose-project | 3cfcb52456ad96e6a2fbc86d9d70013be85c8404 | 95d77b7567c5b0b5c32faf8471a1922d5bb1edab |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.