branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/main | <repo_name>Leaz31/First-Python-Project<file_sep>/car.py
class Car:
"""Classe définissant une voiture caractérisée par :
- color
- nb_wheels
- brand
- position"""
def __init__(car_constructor):
"""On définit les attributs"""
self.color = "black"
self.nb_wheels = 4
self.brand = "Tesla"
self.position = ... | c64bcd2e15df405bade7078be1d46e46c7b61a64 | [
"Markdown",
"Python"
] | 4 | Python | Leaz31/First-Python-Project | df9e0ca2859d7c9894a92efe46ea41fd0f1c202a | 7caa3b8b7a9199e977c4006af8e1ff9767b45ad4 |
refs/heads/master | <repo_name>jiangdonghua/gulp-muli<file_sep>/README.md
# gulp-muli
gulp 常规配置 ,构建前端自动化工作流 ,可用于多页面
## 项目启动
```
// 常用命令
开发环境: npm run dev
生产环境: npm run build
## 项目目录
```
```
├── README.md # 项目说明
├── config # gulp路径配置
├── dist # 打包路径
|
├── gulpfile.js # gulp配置文件
├── package.json ... | 8c558bc8204088035b441e08c3539369bc7dfda5 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | jiangdonghua/gulp-muli | 1ed45cbeabfeb8f66e632904e5899e6827f4c72a | ef7e303dc0d199de8b89bd85dfff6f25b483a2a0 |
refs/heads/master | <repo_name>ustchcl/Play-BabylonJS<file_sep>/src/Basic.ts
import * as BABYLON from "babylonjs";
import { Pair, mkPair } from "./Types";
export const vec3 = (x: number = 0, y: number = 0, z: number = 0): BABYLON.Vector3 => new BABYLON.Vector3(x, y, z);
export const π = Math.PI;
export function initGame(canvas: HTMLCan... | 9ea0c1e64a73bfed7190ef0fccce48c1dd3a54d6 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | ustchcl/Play-BabylonJS | 361535c923d20c151ad98da1cb20983dd64add3e | 2bc9167eece98750eab3c580a79df8460aaceaa7 |
refs/heads/master | <repo_name>phondanai/flask-ble<file_sep>/requirements.txt
flask
flask-socketio
eventlet
gunicorn
tensorflow==2.0.0b1
keras
python-dotenv
paho-mqtt
<file_sep>/config.py
import os
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, '.env'))
class Config... | b5d5457acb1a74ca56a70633ef7e9bee1a748c89 | [
"Python",
"Text"
] | 4 | Text | phondanai/flask-ble | c5d52ddb94d576e85e0430cfdd03d727dfa29017 | 47a4c879965d2302e64e713a30036f9632073af8 |
refs/heads/master | <file_sep>/* @author <NAME>
*/
package Controller.GestioneInterazioni;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet... | 9a59bb01794aff89a9fe40bee825e65aab714fa0 | [
"Markdown",
"Java",
"JavaScript"
] | 31 | Java | gilbertrec/Clipshot | 459cc00337c648d9fc530dd1a4c46f9532e73fa2 | 0bcdf0525cf7c34876dbaa7bfad0996627076a25 |
refs/heads/master | <file_sep>export interface User {
login: string;
avatar_url: string;
public_repos: number;
public_gists: number;
followers: number;
following: number;
} | 429d0dabb30dd7177962bde1dc2796df62cf5622 | [
"TypeScript"
] | 1 | TypeScript | heytheretaylor/ionictutorial | 537559907ee25c34d6060842c93d9ff2d665aef2 | 6f63e7e93b06bd1be557c107055b635cb82fe12e |
refs/heads/master | <repo_name>cprime/ComputerGraphicsFinal<file_sep>/Project/Project/TestScene.h
//
// TestScene.h
// Project
//
// Created by <NAME> on 12/10/12.
// Copyright (c) 2012 IntrepidPursuits. All rights reserved.
//
#ifndef __Project__TestScene__
#define __Project__TestScene__
#include "Scene.h"
#include "KeyboardHandler... | 6e9cdd541063ae07d83f2e1499a89c20dfd12412 | [
"Markdown",
"C",
"Text",
"C++"
] | 46 | C++ | cprime/ComputerGraphicsFinal | 35760a773531cb898167cc68d6d4010027c776a4 | 9a15356ae819baf3a39c53858caea3a1ddee784f |
refs/heads/main | <file_sep>// This file was generated using the `kotlin-html-generator` module. Instead of modifying it, modify the
// `html-builder-generator` and run it again.
package dev.scottpierce.html.writer.element
import dev.scottpierce.html.writer.BodyContext
import dev.scottpierce.html.writer.HtmlDsl
import dev.scottpierce.h... | 7bada432b263dc8cea959379c3184966528d18f0 | [
"Markdown",
"Shell",
"Kotlin",
"INI"
] | 139 | Kotlin | ScottPierce/kotlin-html | 61233e9a7c9deb78441aaf7903b04860f981b993 | 63ab2ced8efc1ccb38b524d6f3c3f3695df0eda1 |
refs/heads/master | <file_sep>import random
zbior = {random.randint(1,30) for _ in range (30)}
print(len(zbior))
<file_sep>kwadraty = [x**2 for x in range (1, 10000) if x % 5 == 0 or x % 9 == 0]
print(kwadraty for x in range (1, 100)if x%5 == 0 and x % 9 == 0)
<file_sep>srarytm = lambda a,b: (a+b)/2
print(srarytm(3,4))
<file_sep>kwadr... | 99ce3f5f826de38a8b89e9db78131951d41ab354 | [
"Python"
] | 49 | Python | KonradKlos/Codebrainers_szkolenie | 9a9cda345f15a3973266130e4017a4b3b7e772ea | e00591d167c824252768f434a2292cdae814e9f6 |
refs/heads/master | <file_sep>library(testthat)
library(lockdown)
test_check("lockdown")
<file_sep>#' Lock down a file or variable
#'
#' @param fp The file path.
#' @param x The variable.
#' @return Invisibly, returns \code{NA} if the file was not found in the cache,
#' and \code{TRUE} if the file matches its value in the cache. Will ... | 40db7ba65591b8c6b749ebd3b4773f6d8e036180 | [
"Markdown",
"R"
] | 4 | R | kylebittinger/lockdown | 3a2a7a3ecefacbfa329d3466bc90223665543599 | 6ab68ff260991afbe04439fd22d8839a9661d814 |
refs/heads/master | <repo_name>Thulani47/sisonkerising<file_sep>/Bubble_sort.py
#File name: Bubble_sort.py
#Author: <NAME>
#Date: 08-08-2016
def bubbleSort():
myList = [2,3,1,23,1,10,4,21,5,6]
print('Original list:')
print(myList)
print("\nList sorted in ascending order:")
bubbleSortAscend(myList)
print("\nList sorted i... | 284d57868723a94bc7f79a73cc8db95afd2cb7ce | [
"Python"
] | 4 | Python | Thulani47/sisonkerising | 6d9d1f4658a0c0f983a847c529db8799d0fd1866 | 9d9697760780e13a31bbee2a0129b8fb2bcf55ca |
refs/heads/master | <repo_name>ozcan-durak/ImageTiler<file_sep>/README.md
# ImageTiler
The Tile Server, slice huge image in pieces (tested with 256x256, 512x512, 1024x1024 etc..), Works as a service with Imagemagick
Tile Images into pieces with {X}-{Y} coordinates
Its still underdevelopment.
<file_sep>/app.js
/** ImageTiler with NodeJS... | 38174903f0cd30811c71e4addbde50ff57c16107 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ozcan-durak/ImageTiler | 7c2e5a96918c61b2d55ad6b152c78ff8ef8cbd8c | c2ece81d4cc0e53cc340ed1f2c33d6d6e6c34fc6 |
refs/heads/main | <repo_name>g-duclos/scopic<file_sep>/R/scopic_run.R
#' Function for fitting topic models to scRNA-Seq gene counts and assigning genes to gene sets OR cells to cell clusters
#'
#' This function fits topic models to scRNA-Seq gene counts and assigns genes to gene sets OR cells to cell clusters
#' @param counts.mat Matri... | dd52b2fffa711fa12e4836bdf22c3c1232bf1515 | [
"Markdown",
"R"
] | 3 | R | g-duclos/scopic | fe82480d85712a1e8e564e8cf56ca9bf88ecc653 | b0a21316fb651eb0e12e8a2dca6e59a0134ff845 |
refs/heads/master | <file_sep>function ale(){
console.log('ale called')
}
function asdfasdf(){
console.log('asdfasdfhasdkfhaksdf')
}
document.getElementById('asdf').style.color = 'blue' | 1331ddda0f2c2e9c99223e650a9618f9b15f5b86 | [
"JavaScript"
] | 1 | JavaScript | sangaraj/myPractise | 9e10fe2096d54e1602050b28760032db8b36b7e1 | 4c903c1912a8df72dabe690ac848dd63226830b8 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LightPlugin.Core;
using LightPlugin.Core.Domain.Cms;
using LightPlugin.Core.Plugins;
using LightPlugin.Services.Cms;
using WebUI.Areas.Admin.Models.PluginVM;
using WebUI.Extensions;
namespace We... | bf71e09c19cf0ecd911e92125b410faa35ecac52 | [
"C#",
"Text"
] | 171 | C# | yiyungent/TES | a736f8e3153ccbfa11fff0ed0984ed6b09740ee3 | 535d5e8fbb0b8555c06fedfa94d7875effb8d0b2 |
refs/heads/master | <repo_name>ModelWriter/Ditto<file_sep>/ditto/run/run.sh
java -cp trove.jar:javassist.jar:commons-collections-3.2.jar:. test.TestDriver 3200 3
<file_sep>/ditto/src/test/OrderedIntList.java
/*
Copyright (c) 2007, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modif... | 14c4d00449a3afe00ed8ec61812215e05fa7dd03 | [
"Java",
"Shell"
] | 4 | Shell | ModelWriter/Ditto | 12b2f09a497ed04647a70c8a21c12a0fb90a19c6 | f0029edc21e8259127d3eae77f5fc9da0d913148 |
refs/heads/master | <file_sep>package com.unique;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.unique.TO02.Animal;
import com.unique.TO02.Cat;
impo... | 26d6beb4a3a8901dfa189a42fa434d11b5ef9681 | [
"Java"
] | 13 | Java | WTHINKER/FIREST | 358059b300c1043af654975b5c5a8e67ceaaa041 | 9e80870722da9aaa8557937451cf3b2367c9ddd1 |
refs/heads/master | <file_sep># Jenkins-Build-Trigger
Trigger Jenkins builds remotely using Python. Can trigger builds in parallel or sequentially while waiting for previous build to finish and shows the latest build console output.
<file_sep># *************************************************************
# Jenkins related imports & util... | 3afdb8485dc427e90c621a29cb3b038bbb6d4140 | [
"Markdown",
"Python"
] | 2 | Markdown | DavidG8168/Jenkins-Build-Trigger | 3f26baf4e925f99e87dedcbd2e3a69df64ae5caf | 3e9f8b3aa7069d3cc5d6b6662d82c479f3e81741 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 18:29:09 2020
@author: em583r
"""
def duplicate_encode(word):
word_list = list(word.lower())
new_word = []
for char in word_list:
if word_list.count(char) <= 1:
new_word.append("(")
else:
... | 9e5bb673343939c7a3ff7032326653094958e9b7 | [
"Python"
] | 5 | Python | ericamendez/Learning-Python | b0a9dd5ae8556fd2f3b958b9774f21cbe6553a75 | 631dfcab37ba0b2e7b52bd1ecd86751796187c10 |
refs/heads/master | <file_sep>#include<stdio.h>
int main()
{patch-1
printf("pull 1\n");
printf("Success\n");
printf("pull 2 is successful\n");
=======
printf("ola");
printf("pull 1");
printf("Success!");
master
return 0;
}
<file_sep>#include<bits/stdc++.h>
using namespace std;
int main()
{
string Text;
cout<<"\nenter the string : ... | 5d65116a24be094a5e00360f89c4a096b471f6e5 | [
"C",
"C++"
] | 2 | C | aashaym1/test | 8b833f7f16a95e656d7f0389b90742238b085567 | a6aab3ab6bf9e2c4569ceb177069ba5de4cd0eac |
refs/heads/master | <file_sep>using UnityEngine;
using UnityEngine.UI;
using System.Collections;
[RequireComponent(typeof(Text))]
public class ShakeText : MonoBehaviour {
[SerializeField]
Color fontColor;
float shakeTime = 0.2f;
float shakeIntensity = 20;
int fontBig = 180;
int fontSize;
Text disp;
void Start() {
disp ... | 85c411f64222cec48fa361d844714571e87d3ded | [
"C#"
] | 19 | C# | valgoun/SemaineIntensiveShiness | 850893f3b13b75fa0a5be81baaa649d7858b348b | 7f604eae25e63c2cc170ba41500b1b0edeefc638 |
refs/heads/master | <file_sep>from Library_ import lib
import random
class App(lib):
def __init__(self):
super().__init__()
def Step2(self):
if random.randint(0, 9) % 10 < 5:
print("开车? 来!笑脸")
else:
print("开车?不开,你的操作令人窒息!呕吐,但是勉强...")
def Step4(self):
if random.rand... | 8a61228137f2451bc0dca520a60871b0c4da6d9f | [
"Markdown",
"Python"
] | 11 | Python | weih1121/Design-Patterns | 84f8c36931393fa3bc0c8b588d5c4c3f30f3d16a | 8b4ff3012a1b6836576279148fec6ffffd55d7ce |
refs/heads/master | <repo_name>smalldu/ScrollMenu<file_sep>/DZMenu/DZMenu/ViewController.swift
//
// ViewController.swift
// DZMenu
//
// Created by duzhe on 15/10/8.
// Copyright © 2015年 duzhe. All rights reserved.
//
import UIKit
class ViewController: UIViewController,UIScrollViewDelegate,MenuViewDelegate {
var menuView :... | 6aa3b935e2bdbe797a85d95e876dd6cff807f959 | [
"Swift",
"Markdown"
] | 4 | Swift | smalldu/ScrollMenu | 2d03dd4ae04203e0f5ac2ff73f1a51cbb6daebaa | 810f5cda850e4fe089a9b7a2a25d417f73bb61e7 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
from dydx.client import Client
client = Client(
private_key='',
node='https://parity.expotrading.com' # Can use the url of any Ethereum node
)
walletaddress = ''
<file_sep>#!/usr/bin/env python3
import json
from dydx.client import Client
import dydx.constants as consts
impo... | 8b8bf4f0873bc328ea9db360d26a85caadded242 | [
"Markdown",
"Python"
] | 44 | Python | incrementalcapital/dydx | bd42e7a49649f543a770615e5bc767c3ef9386de | 59bf41d1675574c2dfe9697d840e716df1ee41e4 |
refs/heads/master | <repo_name>iAbbos/api-starter-kit<file_sep>/src/Entity/Traits/FillUpdatedAtTrait.php
<?php declare(strict_types=1);
namespace App\Entity\Traits;
use App\Entity\Interfaces\UpdatedAtSettableInterface;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
/**
* Trait FillCreatedAtTrait
*
* @mixin UpdatedAtSettableInterface... | 7ffd56e8919e5c8c62e5c6e820ea3676af6dd6bf | [
"PHP"
] | 14 | PHP | iAbbos/api-starter-kit | a7fb4f43f08befcceefa258af49c23991da3ca61 | 4430b07cbf0dd269a0d48bee67640c9bc5d3ab71 |
refs/heads/master | <file_sep># Generated by Django 3.0.8 on 2020-07-24 05:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('service', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Beer',
fields=[
... | e56e613e2919696b0a23305bb1663c488475927f | [
"Python"
] | 5 | Python | OscHern/webservice | 2357009c6dcb1d702bcf335a27bc6e54a0aee098 | 0b38a85e57da455fcd106cb8bd5e64fb6ebbc594 |
refs/heads/master | <file_sep>#include <WiFi.h>
#include <Servo.h>
WiFiServer server(3000);
Servo servo;
void setup() {
Serial.begin(9600);
servo.attach(3);
server.begin();
Serial.print("Connected to TCP. My address:");
IPAddress myAddress(127,0,0,1);
Serial.println(myAddress);
}
void loop() {
WiFiClient... | 6937464bf32571ed1a791cceb22485a8dfae8928 | [
"C++"
] | 1 | C++ | edison-lab/iOSxBLE_Edison_ArduinoSketch | 18e8cfd42a548bb012f9c42ddecb3aa100df69d8 | ddb2e0d5e2a76aed3bd62655a3197cb031e422ab |
refs/heads/master | <repo_name>abedra/goproxy<file_sep>/test.rb
require 'sinatra'
get '/' do
request.env.inspect
end
<file_sep>/cache_test.go
package main
import "testing"
func TestLifecycle(t *testing.T) {
lru := NewCache(0)
lru.Add("1.1.1.1", "value")
lru.Add("2.2.2.2", "oldest")
val, ok := lru.Get("1.1.1.1")
if !ok {
t.Fat... | 14fc3a0e30144a9fdfd5aa110735fda5cffa0bb2 | [
"Go",
"Ruby",
"Markdown"
] | 5 | Ruby | abedra/goproxy | dc80a3c9f98fd4de73692ddeca6bbe3afb46a24a | 9dc0e4b776a57e570454cee6afe48ecc4bf593f3 |
refs/heads/master | <repo_name>cshurney/Lab7<file_sep>/script.js
var groceryList = [
{ item: "cheerios",
price: 3.00
},
{
item: "bread",
price: 2.00
},
{
item: "fish sticks",
price: 5.00
},
{
item: "fruit",
price: 5.00
}
];
for(i=0; i<groceryList.length; i++){
total+=groceryList[i].price;
con... | f49bebe51e928140761aa0ec20585c0b5908ce1e | [
"JavaScript"
] | 1 | JavaScript | cshurney/Lab7 | 207516072310cd2e664e8f1cdf61232bae3a34e2 | c9c9e93665b3d5586a611b78e27ac00afa171c81 |
refs/heads/master | <file_sep>package com.peters.coding.task.controller;
import com.peters.coding.task.CiscoTaskApplication;
import io.restassured.response.ValidatableResponse;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.springframework.beans.factory.ann... | b471a45104a75c0b33ee0d228d2f26c324075438 | [
"Java",
"SQL"
] | 6 | Java | maxedel/cisco_task | 9047bd4fd4cddc4f4bbe47b7cfd804e57e0c408e | dbf99195a44987af3c58ccd864a31b679b9f6e99 |
refs/heads/master | <file_sep>// Level 1
//Question 1
// Declare and initialise a variable with a string value.
var name = "ben";
//Question 2
//Create an object variable called person and give it two properties (a key and a value) of your choice.
var person = {
name: "ben",
LastName: "moussa"
};
//Question 3
// Create a variable... | 8ecc11e9a8b6f32192dd07d1a0e309ff1a0bea93 | [
"JavaScript"
] | 1 | JavaScript | benoah/pfa-ca | f55c1a336c8db0b24f42e4f4845491b963e19119 | b7638a5f57017797d907d2e8a13c98feecf2efab |
refs/heads/master | <file_sep>require 'spec_helper'
feature 'Eidit tickets' do
let!(:project) {FactoryGirl.create(:project)}
let!(:ticket) { FactoryGirl.create(:ticket, project: project)}
before do
visit root_path
click_link project.name
click_link ticket.title
click_link 'Edit Ticket'
end
scenario 'Update a t... | 5adf062103e1b13a5b4816f1809525676ce4c72f | [
"Ruby"
] | 1 | Ruby | alexjolovic/ticketee | 4c10d60e5ad341b2b3769ec63dc626ced88509c5 | 9506a8d183306c9a84aa448af0ef855008b57cfe |
refs/heads/master | <file_sep>/**
* React Native Starter: TabBarIOS
* https://github.com/joshbuchea/react-native-starter-tabbarios
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
NavigatorIOS
} from 'react-native';
import { StackNavigator, DrawerConfig, TabN... | 6ced4eac703b982fa8e4157b2ee3840a54b53231 | [
"JavaScript",
"Gradle"
] | 3 | JavaScript | dtminhpt/FlickrApp_Minh | 1c3bf804037d04a9002848c00376b043acf35a42 | 26580ff4dbb33375d8913ded3235ad4399c96ed9 |
refs/heads/master | <file_sep>#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
using namespace std;
default_random_engine random_generator;
void ParticleFilter::init(double x, double... | d8b8ec53ff8c780acba5714d5109c4cf9fc600ab | [
"C++"
] | 1 | C++ | sorousharghavan/Udacity_SelfDriving_Car_Kidnapped_Vehicle | 1487e9a70a1ca910eff9ceede62fcb993ccfb6c0 | 366ee960a42c368beafe35f3a8a463d6bdf8c396 |
refs/heads/master | <repo_name>antoinegergy/ni-project<file_sep>/src/src/CrisisBundle/CrisisBundle.php
<?php
namespace CrisisBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class CrisisBundle extends Bundle
{
}
<file_sep>/README.md
# ni-project
Projet de la nuit de l'info 2015: http://www.nuitdelinfo.com/n2i/equipes/679
You ... | 8319be346a4a1ae37ba7c1e117ed333429278f30 | [
"Markdown",
"PHP"
] | 4 | PHP | antoinegergy/ni-project | 1c59967c933057de599685de06509c506bfbbfa6 | 357e0a221c2ded7bf244f3baec6a489b24cc30a8 |
refs/heads/master | <repo_name>flooprea/codecad-find-your-hat<file_sep>/Field.js
module.exports =
class Field {
constructor(field) {
this._field = field;
}
get field() {
return this._field;
}
//method to print the field
print() {
ret... | ec6701387189fab8dd21ff28544d96413693609a | [
"JavaScript",
"Text"
] | 4 | JavaScript | flooprea/codecad-find-your-hat | f25ad62d9f23752ac0ead8fbc26f42471da2b251 | 7974cc4ce81265629dcb03c3981a13b3e8ffe67a |
refs/heads/main | <repo_name>CyberStranger/confetti_cuisine<file_sep>/controllers/subscribersController.js
const Subscriber = require('../models/subscriber'),
getSubscriberParams = (body) => {
return {
name: body.name,
email: body, email,
zipCode: parseInt(body.zipCode)
};
};
... | 02e693bd545c94f34541f92787677ad0736ab5b2 | [
"JavaScript"
] | 5 | JavaScript | CyberStranger/confetti_cuisine | 11c384fee8d8e212397defb5fd87ed3a9b7ddd75 | 446dda0d00f00a4cb1e6ae3ffc33c20155c224b0 |
refs/heads/master | <file_sep>struct UserClientLFGListUpdateRequest
{
/* 0.. 1*/ STRUCT info;
/*508.. 1*/ STRUCT ticket;
};
struct PlayerCliEndBattlegroundCheat
{
/* 0.. 1*/ INT32 winner;
};
struct ClientHealthUpdate
{
/* 0.. 1*/ UINT64 guid;
/* 8.. 1*/ INT32 health;
};
struct PlayerCliStartConversation
{
/* 0.. 1*/... | f1102571bdcae9d5be4385bf6672397a927830b5 | [
"C",
"Makefile",
"C++"
] | 6 | C | bloerwald/intlclntigm | 592f2537377363cb28f9f176bb59796f59795eda | 918514d5a08d28e774b15ceaa49d66f3c337e14f |
refs/heads/master | <repo_name>nginawairimu/python-day-1<file_sep>/forloop.py
#for loops
list1 = ["apple", "Mango", "Ngina","Kiwi", "oranges"]
for x in list1:
print(x)
#while loop
counter = 0
while counter <10:
print("Hello")
counter +=1
#functions
def circle_Area(radius):
area = 22.0/7.0 * radius *radius
return are... | 53a864f0391ecfb9225f5ac4276ff7ee7e952466 | [
"Python"
] | 1 | Python | nginawairimu/python-day-1 | 2c03138796a33d24205481f9bd7de2749b0cb924 | 9e65fd6f41a790482926bca2df4538717d911e3b |
refs/heads/master | <repo_name>cheshire7634/CNN<file_sep>/ConvLayer.py
import cPickle
import gzip
import numpy
import theano
import theano.tensor as T
from theano.tensor.signal import downsample
from theano.tensor.nnet import conv
class ConvPoolLayer(object):
"""Pool Layer of a convolutional network """
def __init__(self, r... | cd76fc1db425fe2d6530c30d7cefbfbc4ba66a44 | [
"Python"
] | 1 | Python | cheshire7634/CNN | 4cd975dfed11715c38fbffaa4663af10d3f8565f | 89d8a5641be835f8de6c9e26ecfabc0bcba00be1 |
refs/heads/main | <repo_name>faisalch10/editable-table<file_sep>/src/components/Table.js
import React, { useEffect, useState } from 'react';
import MaterialTable from "material-table";
import axios from 'axios';
const Table = () => {
const [columns] = useState([
{ title: 'Name', field: 'name' },
{ title: 'Username', field: '... | 4513c3fa109d745096456363f15e41e73d3fbb80 | [
"JavaScript"
] | 1 | JavaScript | faisalch10/editable-table | 14fc8861e024dd7592ee6b65c887935e5ebd34b2 | fcbbea4035e40e9b5ca2be26acb3ec838ef9b7f6 |
refs/heads/master | <file_sep>#include <stdio.h>
#include "pyne.h"
int main(int argc, char **argv)
{
std::cout << pyne::nucname::id(std::string("Cs137")) << std::endl;
return 0;
}
<file_sep>#Test program for PyNE amalgamation
1. Set the appropriate location of hdf5 in the "BASE" variable in your environment
2. copy amalgamated pyne.cp... | 5ac9fa6c3b86ee168ff4bd96d5e9191d31fd12fb | [
"Markdown",
"Makefile",
"C++"
] | 3 | C++ | pyne/pyne-amalgamation | 580db3c2e3cc7e566e367989ec66cca51484781c | 80396819b68fcc72e496b0705e2056f14d79d4ef |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Aprendendo PHP</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div>
<?php
$valor = $_GET["v"];
echo "Digitou $valor";
?>
</div>
</body>
</html> | 1c530e9a0746eacf85e3d5e000893576760cd241 | [
"PHP"
] | 1 | PHP | qmclouca/Aprendendo-PHP2 | 584a0c87d158e4c2e45ca1daef6e9a897e9d41a8 | 5d44492aa2493b8f7f7ef99d2f20000274cd230c |
refs/heads/main | <file_sep>import React, { Component } from 'react'
import './App.css';
import { BrowserRouter as Router, Route } from 'react-router-dom'
import Home from './components/pages/Home'
import Blog from './components/pages/Blog'
import About from './components/pages/About'
import NavBar from './components/partials/NavBar'
i... | 79eb4e2f1b0ba77c14e4fbb4be79929cf9ef2d87 | [
"JavaScript"
] | 4 | JavaScript | Jackson-Franks/react-router-portfolio | 3ed9932abec9024ba1a118b2618c0b362902334c | ec8eb4fae43fa7ae376cefb92bd6377380c3246c |
refs/heads/master | <file_sep>package mc.alk.arena.listeners;
import mc.alk.arena.BattleArena;
import mc.alk.arena.Defaults;
import mc.alk.arena.controllers.MoneyController;
import mc.alk.arena.controllers.plugins.TrackerController;
import mc.alk.arena.controllers.plugins.CombatTagInterface;
import mc.alk.arena.controllers.plugins.Essent... | e27c0011f286b74241f386a18e3a0e486a3445ad | [
"Java",
"Maven POM"
] | 4 | Java | Blackfatrat/BattleArena | 5eb65c39486d5971293ba7b42791168c4c9de65f | 424bdef7420da573ff6c07c6de80bda1711d58a5 |
refs/heads/master | <repo_name>joshratta/vmp<file_sep>/backend/common/utils.h
#ifndef VMP_COMMON_UTILS_H_
#define VMP_COMMON_UTILS_H_
#include "stdafx.h"
#include "compatibility.h"
#include <stdint.h>
#include <cmath>
#include "log.h"
extern Log _log;
#include <csignal>
#include <iostream>
#include <ostream>
#include <string>
using nam... | 8454807707052403dd302246c45a04e1464f5eb6 | [
"Markdown",
"INI",
"Text",
"C",
"C++"
] | 29 | C++ | joshratta/vmp | 9dbe93523c3f3ace583cdc084a05c530d7a51e03 | f9ba0bdfe47bbe16320e652bad2cef2e5609114f |
refs/heads/master | <file_sep>#1
# 1.a what is the probability that no cars drive up in the noon hour?
# 13.5% chance
stats.poisson(2).pmf(0)
#1.a simulation
np.random.seed(123)
cars = pd.DataFrame(np.random.poisson(2,10000))
cars[0].value_counts().loc[0]/cars[0].size
#1.b probability 3 or more cars drive up?
# 32% chance
stats.poiss... | 7c3aa3969759687d3c31ec0bec62fcdbef046a8b | [
"Python"
] | 2 | Python | JefferyRoeder/statistics-exercises | d616b136e1354a4c1acdb03bb194919f2fda2bc2 | b9f4594e49b443bc13992f8a8915ee9e606ff9b0 |
refs/heads/master | <file_sep>import React from "react";
import Card from "./Card";
const CardList = props => {
return (
<div>{props.cards.map(card => <Card {...card} key={card.login} />)}</div>
);
};
export default CardList;
<file_sep>import React, { Component, Fragment } from "react";
import { Header, Footer } from "./component... | f4fb9df3638ef3de0f4ff474894806391b272ba2 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | bj-budhathoki/React-stuff | 79c1c9827ef78b38e4286619a8739486073c1ec5 | 8945795d6d6b28eca67b04cad9f06504eec7cd49 |
refs/heads/master | <repo_name>manele-se/loan-calculator<file_sep>/app.js
//Listen for submit
const loanForm= document.getElementById('loan-form');
//when you press submit button
loanForm.addEventListener('submit', function(e){
//hide results
document.getElementById('results').style.display = 'none';
//show loader
document.get... | e44953ced858a0db9384aae3db47dfa85f5da4cb | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | manele-se/loan-calculator | 413396e291db2c703bbad692286ba19d92b9532a | a9352eaed4d21ec47043ea5a3eac81ed2237f25d |
refs/heads/master | <file_sep><?php
session_start();
$_SESSION['username'] = $_POST['nameReg'];
// $_SESSION['username'] = 'User #1';
$userName = $_POST['nameReg'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http... | 40daa0ac1e891637b0a4422201fa441c05f7f392 | [
"PHP"
] | 3 | PHP | kmirojo/chat_prueba | 2acee3544853cb97b7232169615cd4a252f29210 | 509d040f7500e2607bb8735bf5519d6da9cb114d |
refs/heads/master | <repo_name>shrewx/tools-project-layout<file_sep>/assets/pre-commit
#!/bin/sh
# run golangci-lint
golangci-lint run -v -c .golangci.yaml
if [ $? -ne 0 ]; then
echo "golangci-lint failed, please fix first then git add and commit"
exit 1
fi<file_sep>/assets/commit-msg
#!/bin/sh
msg=$(cat $1)
pattern='^(feat|fix|to|h... | 357588ad03c67bb6ef1d9d502a8714c8fd59a385 | [
"Markdown",
"Go Module",
"Go",
"Shell"
] | 6 | Shell | shrewx/tools-project-layout | c4994f963a3ad59015dc1088085860d7dd5d5180 | e8907a190e36981271fa606eb0775f94599f5fac |
refs/heads/master | <repo_name>gantsign/update-scripts<file_sep>/update-minikube.sh
#!/usr/bin/env bash
set -e
new_version="$(curl --silent -H 'Accept: application/vnd.github.v3+json' https://api.github.com/repos/kubernetes/minikube/releases \
| jq --raw-output '[.[] | select(.prerelease == false)] | .[0].tag_name')"
# remove `... | f00adffaccbdbbd74fe562c4b962d9eb752ac94c | [
"Markdown",
"Shell"
] | 6 | Shell | gantsign/update-scripts | b2ec5195af072618f00f0b69a37ac8718d297e91 | 2f292e868f8198c5a8815e17c19db1525bbc2ed4 |
refs/heads/master | <repo_name>zhenggg/victor<file_sep>/app/Admin/Extensions/Tools/BatchEnter.php
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2017-03-01
* Time: 下午 6:41
*/
namespace App\Admin\Extensions\Tools;
use Encore\Admin\Grid\Tools\BatchAction;
class BatchEnter extends BatchAction
{
protected $action;
... | 5cc3f78d5f77789ecfd2b4ca8f239c1dd1e98399 | [
"PHP"
] | 36 | PHP | zhenggg/victor | 647a24ea44e03ae417e70332499031171d9bdace | bddd527415dd0ec3c513d687700fc4328271d899 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace mr_Exercise1._3
{
class Program
{
static void Main(string[] args)
{
int intUitkomst = 0;
Console.WriteLine("Welkom bij versie v0.3" +... | 38342eb4f1be325d8c689c8c5d0e11e034f7707a | [
"Markdown",
"C#"
] | 2 | C# | jslabbekoorn/mr_Exercise1.3 | a22cad896e562a1e6969bbc798746381a681c6e5 | 1562e1e689da507070a3021a0f9e87b20ca29fc4 |
refs/heads/master | <repo_name>JakeRowsell89/word-count-prime<file_sep>/test/read-sanitized.test.js
const fs = require('fs')
const path = require('path')
const { Stream } = require('stream')
const { sanitize, getSanitizedText } = require('../lib/read-sanitized')
const existantFile = path.resolve(__dirname, './test-file.txt')
const nonExis... | c505d86cd0f4a372a8c5f649bafeb3f71ea66418 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | JakeRowsell89/word-count-prime | 9e422278e987a185dcdb19a15a6a35efbce9a6fc | 791263a63d1f086bc8db4c47aa630180953b2225 |
refs/heads/master | <repo_name>LumaVallone/curso-javascript-ninja<file_sep>/challenge-05/challenge-05.js
/*
Crie uma variável qualquer, que receba um array com alguns valores aleatórios
- ao menos 5 - (fica por sua conta os valores do array).
*/
var arr = [1,2,3,4,5,6,7];
/*
Crie uma função que receba um array como parâmetro, e retorn... | c9234fbe5d1503f0bfa7d51caf9ac65225ac09ee | [
"JavaScript"
] | 1 | JavaScript | LumaVallone/curso-javascript-ninja | f4187a936423b052f152ee7ebb41e4b6679e2e5c | b3307cffce45fe9a07ca67596dcf044db7f5b421 |
refs/heads/master | <file_sep>import React from "react"
import {
View,
Image,
ImageBackground,
TouchableOpacity,
Text,
Button,
Switch,
TextInput,
StyleSheet,
ScrollView
} from "react-native"
import DateTimePicker from "react-native-datepicker"
import Icon from "react-native-vector-icons/FontAwesome"
import { CheckBox }... | 4162b52e7bc43a43e1db3848b07ae5a1ce2643fa | [
"JavaScript"
] | 10 | JavaScript | crowdbotics-apps/artatelier-26438 | 29887e689eadaf87e83bfb802287328639e5edff | da990579da2b404fa01e554360b9434e23493f6f |
refs/heads/master | <file_sep>package co.digital.downloadmanagerhelper;
/**
* Created by clickapps on 4/12/17.
*/
public interface OnNotifiClickCallback {
void onNotificationClicked(long [] ids);
}
<file_sep>package co.digital.downloadmanagerhelper;
/**
* Created by clickapps on 4/12/17.
*/
public class DownloadState {
... | 1426515e6f0437085ad112930a3c1edd0602827c | [
"Java"
] | 2 | Java | MohammedSDev/DownloadManagerHelper | 680c515cd075512343c1d82c2e467e8f6f14f1c1 | 4fa82303c17e6f0c66a192e7cd6bfdb7307b6457 |
refs/heads/master | <file_sep>library(httr)
library(jsonlite)
library(fields)
source <- read.csv("sample.csv",colClasses="character")
for (i in 1:nrow(source))
{
content <- GET(paste("https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:",source[i,1],sep=""))
json1 <- content(content)
json2 <- j... | ee610e5aef52fa6605f20b59484261b478b4a054 | [
"Markdown",
"R"
] | 2 | R | sukalpomitra/corrBetDistandAttrition | 587329c61fa63ffa68b552a21266aba78de737ab | 8d129559718c7b3105393d40527aec2e3e76877d |
refs/heads/master | <repo_name>tolgacatalpinar/TournamentMaker<file_sep>/app/src/main/java/com/example/tolga/capoeirabatizado/PairView.java
package com.example.tolga.capoeirabatizado;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
... | 566f1491d1fd37aa19882a4f9e9007cdcb6501aa | [
"Markdown",
"Java"
] | 3 | Java | tolgacatalpinar/TournamentMaker | a1bfc249274c46dc31a51939dfb786cacd938814 | 3d95770fb716c8aff19121944efbda8aa5afc5ae |
refs/heads/master | <repo_name>Musketeer-Liu/Auto_Coding_Tools_Box<file_sep>/Extension_Change/app.py
__author__ = "<NAME>"
import os, re, sys, logging
class ExtensionChange:
def extension_change(self, root_folder, replacement):
target_dir = os.path.abspath(root_folder)
logging.warning('Target_dir: {}'.format(targe... | fefff0ff3913e05644bf608479de5fdafcdfb967 | [
"Markdown",
"Python"
] | 17 | Python | Musketeer-Liu/Auto_Coding_Tools_Box | 96ffe3f194eb3571d290086400ef518cef4e0774 | 67ac8224da47d279244d4939c24a1a1321b85c0c |
refs/heads/master | <file_sep><?php
$input = "yzbqklnj";
function partOne($input){
$count = 0;
$solutionFound = false;
while(!$solutionFound){
$solution = md5($input . $count);
if (substr($solution, 0, 5) === "00000"){
//echo substr($solution, 0, 5);
$solutionFound = true;
break;
}
$count += 1... | 69798251728f93fb3d71c6ba1d4809e2e21452c4 | [
"PHP"
] | 2 | PHP | Rory1994/AdventOfCode | adfabc3dfa1de7506ce340fb853950f4513cf71f | c23e72409e0894ec38dd3d1c8beb7a4ab57e105e |
refs/heads/master | <file_sep>#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <cmath>
#include <dlib/opencv.h>
#include <opencv2/opencv.hpp>
#include <opencv2/photo.hpp>
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/image_processing/render_face_detections.h>
#include <dlib/image_process... | 5232f0fb6275bab04777a22c6ee570bd4605777e | [
"Markdown",
"Text",
"C++"
] | 6 | C++ | mayang15/makeup | 87c8a004ad833f92a5f0145a5ea137ca5fd7b90f | ce33223e9c990f976bcf0b096cea2d4e81593ad9 |
refs/heads/master | <repo_name>baamu/front-end<file_sep>/src/app/user/view-user.component.ts
import {Component, OnInit, ViewChild} from '@angular/core';
import { AppService } from '../app.service';
import { MatTableDataSource, MatPaginator, MatSort } from '@angular/material';
import { map } from 'rxjs/operators';
export class Download {
... | a93d80a7e81bd57e3e29d062cb94a7fa1513f240 | [
"TypeScript"
] | 21 | TypeScript | baamu/front-end | 177d4913dab0cab30eb3f625a1220a242b5bc8db | da8a12e6d041d901f4750cd74a8d9f3bf88d3e37 |
refs/heads/master | <repo_name>Bytezz/TakeABreak<file_sep>/TakeABreak.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys,os,time,random
if os.name=="nt":
import ctypes,winsound
else:
import pymsgbox
from playsound import playsound
'''
Program to encourage me to take breaks and suggest an excercise when I do.
edit 'actions' to ... | 46a025c45b745b44f92a150a4d1aab1faf0fb51a | [
"Python"
] | 1 | Python | Bytezz/TakeABreak | eb80aa1e0b77abe6168819a39877bbbb97e5aacb | 7a71452866762e8d3c4063d87b226e328c89519e |
refs/heads/master | <repo_name>kanisha-agarwal/distortion-effect<file_sep>/distortion_effect.py
"""
Created by:
Author: <NAME>
University Of Regina
200409921
"""
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import random
import math
import matplotlib.pyplot as plt
# Header data is removed from in... | 685ee4cd1658a40c10dcdef1420ec8a17c0a8bc4 | [
"Markdown",
"Python"
] | 2 | Python | kanisha-agarwal/distortion-effect | 0da6c3af30c2a724d1457c7bf77c962c45ed54b3 | dba80c4cf92380063715af3b4fdba03dbeef2c6d |
refs/heads/master | <file_sep>#!C:\Users\jenkinscc\anaconda\python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 1 12:10:17 2018
@author: jenkinscc
"""
import os
working_directory = os.getcwd()
file_list=[]
for root, dirs, files in os.walk(working_directory):
for name in files:
if '.mgf' in name:
... | 974585722f710a03ef576fd6bebd281ac088848b | [
"Markdown",
"Python"
] | 2 | Python | anorris8/R.I.D.A.R | 2d689299acd87bd017173390940f43e10675ea0b | 5a64c21c640076f29cd842bb50af98e1df01227d |
refs/heads/master | <file_sep>## redoc try
- [👉 View video](https://cdn.jsdelivr.net/gh/wll8/static/Video_20200518145834_redoc_show.mp4)
- [👉 online preview](https://wll8.github.io/redoc-try/index.html)
- [👉 Related tool recommendations 🎉](https://github.com/wll8/mockm)
Add `Try it out` function like [swagger](https://petstore.s... | 37dc42a581c921f36d6dc648464420f4cab2aa70 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Dmitry-Semashko/redoc-try | 7b146f492ec3482e9b4993f8eaeb6edb2f66312d | 463b59020fa6c3ecc897c7fe02f271cc4259bd38 |
refs/heads/master | <file_sep>import os
import json
from flask import Flask, render_template, request, flash
if os.path.exists("env.py"):
import env
"""
import os standard python library, flask class & render_template function
"""
app = Flask(__name__)
app.secret_key = os.environ.get("SECRET_KEY")
"""
storing it in a variable called... | 4cc42ac870ffed07e611f077226f3e4ac9c4ad49 | [
"Python"
] | 1 | Python | Robert-Clark-1990/ThorinandCo | 565540e7c481a6d621b78d3e1f4c9d54a04271d6 | 8db71d0dab100bbd08da0974f56f723295dcd50d |
refs/heads/master | <repo_name>vihar/flask-banking<file_sep>/README.md
# Flask Sqlalchemy Blogger Example
A Simple Blogger application with user authentication, Using Flask, sqlalchemy connected to sqlite Database.
## Usage
- Frist clone the project and move to current working directory.
- Install the required packages using requirem... | 18d8a1382867e27c3e5d80f0bbb9a077b5d60b22 | [
"Markdown",
"Python"
] | 5 | Markdown | vihar/flask-banking | b684f4fa37b9bd009f48885c7862bd4db00ec923 | 0b35b91cb1abe0c78e7f9a3a448dd14b090fc0e4 |
refs/heads/master | <file_sep>import dateutil.parser
import re
from datetime import date
from .. import constants
from six import text_type
from .message import Message
class User(object):
def __init__(self, data, session):
self._session = session
self._data = data
self.id = data['_id']
SIMPLE_FIELD... | b4d49caabad84f6c253fa359989b6a1f6fff44a2 | [
"Python"
] | 1 | Python | knowsuchagency/pynder | dcb492c1327d5111f82e09d42ae6b46a22cd342f | 9710233583a2f4b53247c782a92170d8abcf43dd |
refs/heads/master | <file_sep># LowMC
Cryptanalysis of LowMC
<file_sep>#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <bitset>
const unsigned maxbits = 512;
const unsigned tail = 7;
const unsigned blocksize = 16;
typedef std::bitset<blocksize> block;
using namespace std;
/*void increase(vector<int>... | 62165d48e4e810955580371c64b0fe3b8d1ba8f5 | [
"Markdown",
"Text",
"C++"
] | 8 | Markdown | Huuancao/Cryptanalysis-of-LowMC | 0eddb524cb81f3fbb5f091271f3010bdefb1284c | f03ad0c62c272cdc0d40dbbd5834849c45c1ab72 |
refs/heads/master | <file_sep>/*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package com.microsoft.azure.sdk.iot.common.iothubservices;
import com.microsoft.azure.sdk.iot.common.*;
import com.microsoft.azure.sdk.iot.device.*;... | 46c77ad561df7506b1218c8f0118022dc98ff64f | [
"Java"
] | 1 | Java | thomasvoorend/azure-iot-sdk-java | f7a0815c343679826b4d61c306f32f6de428ca1e | c21ad418f6d2041da2cc38d868342edcf198294d |
refs/heads/master | <file_sep><?php
namespace Spatie\Activitylog\Handlers;
use Spatie\Activitylog\Models\Activity;
use Carbon\Carbon;
class EloquentHandler implements ActivitylogHandlerInterface
{
protected $model;
public function __construct()
{
// identify what model to be used
$this->model = config('acti... | 5cdb6f7e3c9d1d44a0d68d917e35c16f50c2b579 | [
"PHP"
] | 4 | PHP | rejtg21/activitylog | 0929cff7258739e9738619b38bfaa2672c3044a2 | 14a1e6b7b63a68d214539db60950ef220c17f42a |
refs/heads/master | <file_sep>#include "lmt_log.h"
#include "lmt_net.h"
#include <unistd.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <string.h>
#include "lmt_ioctl.h"
#include <sys/socket.h>
#include <netdb.h>
#include <errno.h>
extern int errno;
typedef struct {
net_cli_run_callback exec_fun;
void *exe... | 089e28667b0f8f2f7310ff78897429cc8dab3dd9 | [
"Markdown",
"C",
"Shell"
] | 26 | C | GitLinYin/NPRX | 28f771f17a8fe578911a813603d52a96974ef53e | 1fd2b5b165ab4c7a088e6f5899e98cd145a13e75 |
refs/heads/master | <file_sep>export default () => {
return undefined;
};
// & if we are going to change a state inside of our reducer redux is not going to notify whole of our application that state hasa changed so that's why we never should mutate state inside a reducer
// * So we should never mutate our state inside a reducer, ev... | 1dc18b5511692d011294debdc6c021b79316104f | [
"JavaScript"
] | 12 | JavaScript | narekboshyan/React_Redux | 74819ae08b45d40312f96a8445f0ff0e4f334e11 | 7c911aadc5420651994fd4aa0a20d34984b35457 |
refs/heads/master | <repo_name>JaeSang1998/study1<file_sep>/Othello.cpp
#include <stdio.h>
int ReRight(int OldRight[]){
for(int iRight =0; iRight<=15;iRight++){
OldRight[iRight]=2;
}
}
int ReReal(int OldReal[]){
for(int iReal =0; iReal<=7;iReal++){
OldReal[iReal]=0;
}
}
int PrintBoard(int PrintBoard[]){
printf("\n\n");
for(in... | 112f6cfcf12d2256914727995bf2472948eb8c65 | [
"C++"
] | 2 | C++ | JaeSang1998/study1 | 8060ef976a631776c96c70cb03446d8c19b3200f | 51c78440fe5bf1b4b67b476f56ee3061bd855388 |
refs/heads/master | <repo_name>swetavooda/Arjuna-Code<file_sep>/Session 6.2: 28 June 2020/Solution/RedesignNumberPlates.cpp
/*
Redesign Number Plates :
The Mayor of Rome City has decided to abolish using English numerals for all Door & Street numbers in the city.
He wants to popularize Roman Numerals and to that effect he passed an orde... | 3326b1c7987694e919ae1aedc3931e8f6ed8e09c | [
"Markdown",
"Java",
"Python",
"C++"
] | 92 | C++ | swetavooda/Arjuna-Code | 86392f300e9d5dfac4f11334065fd71dc05320e0 | ce75dc2ab9f6751986f118659991bc352f71d112 |
refs/heads/main | <file_sep>#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n1,n2,n3;
cout <<"Digite numero uno : ";
cin >>n1;
cout <<"Digite numero dos : ";
cin >>n2;
cout <<"Digite numero tres : ";... | 8466256978ee96baebb6677fbcf07f06ba3a3525 | [
"C++"
] | 1 | C++ | yavila14/Creciente | ebae129401fd71a1b5e5f2e9f84d86f4cffa0e27 | 9fcb232c03345d84aff74ae323dc68f73a816484 |
refs/heads/master | <file_sep>(function() {
'use strict';
var bizModuleDependencies = /**/['xcore.biz.product','xcore.biz.channel','xcore.biz.auth']/**/;
var modul
angular
.module('xcore.main', compositeArry(bizModuleDependencies, [
'xcore.comp',
'xcore',
'ui.router'
]));
function compositeArry(a, b... | cab8a53956ae76fc37b9491870ddbc5a4fcd7ec9 | [
"JavaScript"
] | 8 | JavaScript | j306796405/Poss | 29823c97141a17d2bdda31aeb5d30a6e3c3b49d8 | 741ba8a5b08785b4e3b5504cc9db79a6a75c2401 |
refs/heads/master | <repo_name>Chrisley304/Bixa_app<file_sep>/app/src/main/java/com/example/login_plantilla/BienvenidaActivity.java
package com.example.login_plantilla;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import a... | 07139ccda4a151efc159290eda7fd75b0bf4d70f | [
"Markdown",
"Java"
] | 11 | Java | Chrisley304/Bixa_app | 903d63d51be868beec2a853ac089a12d03d43c6c | b0dce065a836e17b6341ab6ee22f5107ef4640d4 |
refs/heads/main | <file_sep># Importações
import os
# Definições
# Lista de comandos possíveis
comands = [
'e ambiente-d',
'e chrome',
'e gitLab',
'e github',
'e pla',
'e mysqlwb'
'e postman',
'e vscode',
'e aula-redes'
'e git-pages',
'qual é seu nome?'
]
# Criação do Bot
class Bot:
d... | e1082c26bbcb50e501e8dbcf5d3165ee5547f0b0 | [
"Python"
] | 1 | Python | Flamarionfp/my-bot | 1d0694de4910f3b01e2fde2c707da4a38ba87dc4 | ec95874fd7dd98111c09ece20cbbfa523a832e9f |
refs/heads/master | <repo_name>vmarinhoMDP/gru-module-workflow-notifygru-alert<file_sep>/webapp/WEB-INF/templates/admin/plugins/workflow/modules/alertgru/task_alert_gru_config_first_step.html
<input type="hidden" name="apply" value="saveFirstStep" />
<div>
<@messages errors=errors />
<fieldset>
<legend>
<span>#i18n{mo... | 244ad6538acaada2ee934583dc6629b49493c306 | [
"Markdown",
"Java",
"HTML",
"INI"
] | 8 | HTML | vmarinhoMDP/gru-module-workflow-notifygru-alert | b292cc0cafe739bd02c3f19397b56158638b0abd | 94e5551d736ae393c37320315b8c2d7ea8e525b1 |
refs/heads/master | <file_sep>class WelcomeController < ApplicationController
before_action :require_login
def home
end
private
def require_login
return redirect_to '/login' unless session.include? :user_id
end
end
| bbe151bcdb5212ec103cf5ba449d29b08af032a7 | [
"Ruby"
] | 1 | Ruby | MilanP5G/has_secure_password_lab-onl01-seng-pt-120819 | 0a5b93e6b6481dff1819766c26f0a5676c4d88fe | c3f55e81493ebd96540ca7b9cfcbb4efd08c95ba |
refs/heads/master | <file_sep>export function errorReducer(state = {}, action) {
switch (action.type) {
case "DISMISS_ERROR":
let newState1 = state.slice();
newState1.splice(state.indexOf(action.payload), 1);
return newState1;
case "FETCH_FEED_REJECTED":
case "FETCH_NEWS_REJE... | 070b77bb7f651ad0bd0aecc9b083b14d4ca541c6 | [
"JavaScript",
"Java",
"SQL"
] | 54 | JavaScript | skychik/iad-curse-project | 6e5b6c66c069d89bb4b966e05153f3f935e06221 | 999a318fecb41f2dbffe4cd7e66be945e35a5d66 |
refs/heads/master | <repo_name>mgalloy/fits_server<file_sep>/fits_server.py
# -*- coding: utf-8 -*-
from datetime import datetime
import os
import platform
import re
import sys
import connexion
RAW_DIR = '/hao/compdata1/Data/CoMP/raw'
PROCESS_DIR = '/hao/compdata1/Data/CoMP/process'
datedir_re = re.compile('^[0-9]{8}$')
def root(... | 2f9427401eb446ae8e6617165d58db86b3fc27d7 | [
"Python",
"Makefile"
] | 2 | Python | mgalloy/fits_server | 25e84de88881ff3e8bb9cc799ae73d7e5ea22b5d | 233f47889ae35f5df54f58ba10bd02f8bb6fe963 |
refs/heads/master | <repo_name>hannahsilver/m4-6-react--reducers<file_sep>/src/components/Seat.js
import React from "react";
import Tippy from "@tippyjs/react";
import "tippy.js/dist/tippy.css";
import styled from "styled-components";
import seatSrc from "../assets/seat-available.svg";
import { BookingContext } from "./BookingContext";
i... | 953cfdb8829cdf950f60be00f3b8ebc5b0bb0fe6 | [
"JavaScript"
] | 1 | JavaScript | hannahsilver/m4-6-react--reducers | 9401cef12229b8506bab85c1ac3bb1b2bbb54946 | f4d678820edd211fb90c81b2e2cda6be44000749 |
refs/heads/main | <repo_name>karenkuri/karenkuri.github.io<file_sep>/assets/js/script.js
let navLinks = document.querySelectorAll('a.inner-link');
navLinks.forEach((item) => {
item.addEventListener('click', function () {
console.log(item)
document.querySelector('nav ul li a.active').classList.remove('active')
... | 034d90739ee90d1bda77addbe0b9cb62536ac89f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | karenkuri/karenkuri.github.io | 234bfb5e5a26b06a7bc98477bb32f8146fa1eeb3 | b5cb2e737cba2a071da24cd7b50f015c78b09ec1 |
refs/heads/master | <file_sep>var cacheServices = require('./cacheServices');
var voteServices = require('./voteServices');
const topicKey = "topicCache";
/*
Topic format in cache.
{
topicId: topicText
}
Output format.
{
topicId:
{
topic: topicText,
vote: [upVoteNumber, downVoteNumber]
}
... | cd3507a130e639f9cbde0169dbe7cd37d3e8a453 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | billws/node-express-react-redux | f5ae3e0d0441f174576ba823b84372ae2037f377 | 32555bc2a2d9bab6287e0064c6d004b229c02bbc |
refs/heads/master | <repo_name>lubc/lubc.github.io<file_sep>/javascripts/main.js
document.addEventListener("DOMContentLoaded", function(event) {
var rotate = document.getElementById("rotate");
if (rotate) {
rotate.addEventListener(
"mouseover",
function() {
this.className = "over";
},
false
);
... | fd7527353f2087e442c8115a9b1e28831e642128 | [
"JavaScript"
] | 1 | JavaScript | lubc/lubc.github.io | cf55a908f9c5b5601c865ba6ce8c2635345f15d3 | 2d646725d7bc047eb404c2ffe50e0398fcb22d05 |
refs/heads/gl-filter2 | <file_sep>/**
* Facade object and API entry point.
*/
var WGL = (function() {
/** private part* */
var manager, rasterer;
var oneDDim;
var charts;
var legends;
var index;
var u;
this.utils = u;
var setVars = function(){
oneDDim = [];
charts = [];
legends = [];
index = [];
}
var addFi... | f85ebfc556181f2fae7a64e7275216f9f37a5791 | [
"JavaScript"
] | 9 | JavaScript | Sumbera/webglayer | 0cdf1a804912da4ad79fac9cf63a4fbf601166ea | 8209871b7c247943b6a189a63f6ae69ff8329a2b |
refs/heads/master | <file_sep>#![feature(is_sorted)]
#[inline]
fn crop_search(inp: &[i32]) -> Option<i32> {
let is_sorted = inp.is_sorted();
let contains = |z| {
if is_sorted {
inp.binary_search(&z).is_ok()
} else {
inp.contains(&z)
}
};
for (i, x) in inp.iter().enumerate() ... | 52719b1e58c2680297c2dd9c0ad576c1d8edca19 | [
"TOML",
"Rust",
"Python"
] | 37 | Rust | mental32/aoc | 8eb00a93c1490f0bb5f8c986359f5b1232f87c46 | beed73971e527380bbd335345355236415859fd3 |
refs/heads/master | <file_sep>module.exports = {
ensureAuthenticated: function(req, res, next) {
if (req.isAuthenticated() && req.user) {
return next();
}
res.redirect("/");
},
forwardAuthenticated: function(req, res, next) {
if (!req.isAuthenticated() && !req.user) {
return next();
}
res.redire... | 2e4624949f0bb21e1376ac2b93167c19ba473a97 | [
"JavaScript"
] | 7 | JavaScript | romheraldi/rupirarecfront | 99cafe63a9f95f9d05df08124cd808a74310a05d | b0c19cda8e8fbfb54ce9dc59429106ea56306232 |
refs/heads/main | <repo_name>lgolin/react-components-dio<file_sep>/src/App.js
import Item from './components/Item/Item';
import Card from './components/Card/Card';
const App = () => {
return (
<>
<h3>Minha primeira aplicação com React</h3>
<h5>Uma lista de items</h5>
<Item text="texto 1" />
<Item text="te... | 11d15ccb2c95b485428ea643fcf642d23a24dba2 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | lgolin/react-components-dio | 4f4b9bf47a848cb174235504b0edb79a0500ad16 | 90ab7ef79d1be175c706b57585af9c8bd34b4f67 |
refs/heads/master | <repo_name>Napster777/ms-.net-core-crud<file_sep>/AssetMngApi/AssetMngApi/Models/Assets.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace AssetMngApi.Models
{
public class Assets
{
[Key]
... | 6d104c240a6b3f5e0c33b573e3b0c13c3dbd1e73 | [
"C#"
] | 2 | C# | Napster777/ms-.net-core-crud | 0cc9fd867d282a2913d5cfd1dca285fed78735f7 | b585da4bf35517a6a66d252bb846c41cd8a45e3b |
refs/heads/master | <repo_name>GeoffNN/PlumeChallenge<file_sep>/README.md
# PlumeChallenge
Plume challenge on challengedata.ens.fr for Stéphane Mallat's Course (MVA2016)
<file_sep>/src/public_mean_square_error.py
import numpy as np
def score_function(y_true, y_pred):
return np.sum((y_true - y_pred) ** 2) / float(y_true.shape[0])
<fi... | 0f30cf0bda42a1a6514422d3fa5eae8326db080a | [
"Markdown",
"Python"
] | 3 | Markdown | GeoffNN/PlumeChallenge | a93e05efcf4ce13f161be3ecb33143cd272da807 | d027d052f89523b1c5a89f85cf0f8c69edbf4bee |
refs/heads/master | <repo_name>hrapov-v/less2HW<file_sep>/settings.gradle
include ':app'
rootProject.name = "less2HW"<file_sep>/app/src/main/java/superky/keytwo/less2hw/Operation.java
package superky.keytwo.less2hw;
public class Operation {
private int operation1;
private int operation2;
private int operation3;
private in... | b3dde4cb3f8547975c7c574b1bd15bea22547a6b | [
"Java",
"Gradle"
] | 3 | Gradle | hrapov-v/less2HW | 03e061f7fba88ad3352f0d3b1d30bc4c2e678c31 | 67d02bc181d49561b8b01cecd0d37654f6b93568 |
refs/heads/master | <repo_name>camasthecat/SamacMirror<file_sep>/app/js/samac-artyom.js
var SAMAC = SAMAC || {};
SAMAC.ArtyomManager = function() {};
SAMAC.ArtyomManager.options = {
name: "Geoffrey",
activateCode: "<NAME>",
requireActivate: true
}
SAMAC.ArtyomManager.isActive = function() {
}
SAMAC.ArtyomManager.init = fun... | f145dba452117d540a24205d535e233c07300118 | [
"JavaScript"
] | 4 | JavaScript | camasthecat/SamacMirror | ee506792640f14e65bef7606ce963a4118a1253d | 43d5b12a0ed2d97d64a8e004ee0429d792bb6e8d |
refs/heads/master | <repo_name>s1168805219/test6<file_sep>/src/com/itheima/gps/utils/FileUtils.java
package com.itheima.gps.utils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
public class FileUtils {
/**
* 保存图片
* @param path
* @param data
*/
public static void saveImg(String path, byte[] ... | 54ddcb0f8778c03a4ceef13f3f526ac0948be1dd | [
"Java"
] | 1 | Java | s1168805219/test6 | d77b6938023e87565d9ffcb208c75ba9a74052dd | 1ac1d6fd71183b162f1891e2e685b5603726a9a3 |
refs/heads/main | <repo_name>omar-polo/mlmpl<file_sep>/README.md
# mlmpl
mlmpl is a simple mailing list and newsletter manager script. It's
meant to be used as mta script.
## Dependencies
- p5-DBI
- p5-DBD-SQLite
- p5-Email-Simple
## How it works
`mlmpl` is made by two things:
- `mda.pl`: this is the MDA (mail delivery agent)... | 71eea64d680278883e00f20198e57b5080cf3c64 | [
"Markdown",
"SQL"
] | 2 | Markdown | omar-polo/mlmpl | 6d45645575d1b639a3472eccb6183d717109c0db | ebdffb7f962ef120127bc545b61d26e4fd80f93e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.