branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>lruzzier20/work07<file_sep>/foo.c
#include <stdio.h>
void prntint(int* arr, int arrsize){
printf("[ ");
for(int i=0;i<arrsize;i++){
printf("%d ",arr[i]);
}
printf("]\n");
}
double avg(int* arr, int arrsize){
double total=0;
for(int j=0;j<arrsize;j++){
total+=arr[j];
}
r... | 0ea4a1f1d624497619b91854fddc22c0a5255d7a | [
"C"
] | 3 | C | lruzzier20/work07 | b90038174e6bad2f0f525c9107cd2fd470cb8b93 | 52cf5854617324494a1039dad0d1d5dc0da87b85 |
refs/heads/master | <file_sep>def my_collect(array)
empty_array = []
i = 0
while i < array.length
empty_array.push(yield array[i])
i += 1
end
empty_array
end
| e4bba20c441842846f6e42bb940db9dd3996e5c8 | [
"Ruby"
] | 1 | Ruby | cwoolnough/my-collect-prework | 75e4aa2e768020038bbafa65aa936480aec6b333 | 49ccc26db4d1da38a41cdd22fca0ee5a6ca3d078 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Spawner : MonoBehaviour
{
public GameObject enemy;
float frequency = 15f;
float timer = 0f;
// Start is called before the first frame update
void Start()
{
timer = freque... | 8af54de21f68a8856c91c4010eb55d97a4b4188e | [
"Markdown",
"C#"
] | 18 | C# | p-han-tom/BlastToThePast | ba052a451fa3084f79d0cd94a4fc847312d138f0 | 5f1f7d583030fdb621e783c36a0089ff4935c1f5 |
refs/heads/master | <file_sep>import { MatchReader } from './MatchReader';
import { CsvFileReader } from './CsvFileReader';
import { ConsoleReport} from './reportTargets/ConsoleReport';
import { WinsAnalysis } from './analyzers/WinsAnalysis';
import { Summary } from './Summary';
import { HtmlReport} from './reportTargets/HtmlReport';
// ... | 43c304a5ac5e1a183b112f280f8e232a8df598e8 | [
"JavaScript",
"TypeScript"
] | 2 | TypeScript | gcs4sqa/stats | ebec797c1ca6f794b1d0b566ac0dd949544e9b4d | 63836e2fa3369c8daa2587a5b8b0e48e5c040fd4 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package people;
/**
*
* @author student
*/
public class Hockeyplayer extends Sportsman{
private int goals = 0;
... | 80c65745076c1f55a352a2aba38b82676db85982 | [
"Markdown",
"Java"
] | 2 | Java | it1520/school | d996ddba58b233243b032e97c9f456d83a59aafc | 5d65731dbbb1171e273f2083223b6141d37542f0 |
refs/heads/master | <repo_name>bpodgursky/hubris<file_sep>/src/main/java/com/bpodgursky/hubris/client/CommandFactory.java
package com.bpodgursky.hubris.client;
import com.bpodgursky.hubris.command.ClearAllFleetPaths;
import com.bpodgursky.hubris.command.ClearFleetLastPath;
import com.bpodgursky.hubris.command.CreateCarrier;
import com.bp... | 4c3686c6f3de21d734873558a3b75e6e83910ef1 | [
"Java",
"Maven POM",
"SQL"
] | 52 | Java | bpodgursky/hubris | fc8a7b2290aad9250fd5630da4fa642025d8f147 | eec570d49de062c939d9b2ea61760794515b2e74 |
refs/heads/master | <file_sep># javanio-tutorial
java nio tutorial 代码
<file_sep>package me.doublekill.datagramchannel;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;
/**
* Created by wangjunling on 2017/5/2.
*/
public class MessageSender
{
public static void main(String[] a... | 7429d2caf56d2f331ed2ac463a31729e7b2241dc | [
"Markdown",
"Java"
] | 4 | Markdown | wangjunling/javanio-tutorial | 57d964c7123fd5503ef6ede7d286664de400e3bf | 147a4cd387fd4543dec31f25bd9087fdd7108613 |
refs/heads/master | <file_sep>version=2.0.0
springBootVersion=2.2.6.RELEASE
gradleVersionsVersion=0.28.0<file_sep>package api;
import exceptions.SecretException;
import reactor.core.publisher.Mono;
public interface GenericManagerAsync {
Mono<String> getSecret(String secretName) throws SecretException;
<T> Mono<T> getSecret(Strin... | c05f880c47a16d140f2da72ccc4f38c57c8d7b92 | [
"Java",
"INI"
] | 2 | INI | skantuz/secrets-manager | 5aaaab8749caf73d325e12a7f974fbc31265c6cf | b74e830ec21c0d7bb4d78520410b5f0b673ee87a |
refs/heads/main | <file_sep>#include <iostream>
#include <sys/types.h> // socket, bind
#include <sys/socket.h> // socket, bind, listen, inet_ntoa
#include <netinet/in.h> // htonl, htons, inet_ntoa
#include <arpa/inet.h> // inet_ntoa
#include <netdb.h> // gethostbyname
#include <unistd.h> // read, write, close
#in... | 49ec3d3d46e97e30a9912a50941fc80cb7b57a4c | [
"C++"
] | 2 | C++ | smmerz56/432-P1 | 9e8b48a73cbe757400ed3c69a679959fd9585258 | 874e5c48233736d236f29202daa1adaf9a3326bb |
refs/heads/master | <repo_name>jaylahoti/location-tracker<file_sep>/src/components/Map.js
import React, { Component } from 'react';
import {Map, Marker, GoogleApiWrapper, Polyline} from 'google-maps-react';
import customIcon from '../assets/icon.png';
import customIconPin from '../assets/pin.png';
import Loader from 'react-loader-spinner'... | a7d4a565a9fa4f9f59129d0dc79d49f00756e913 | [
"JavaScript"
] | 2 | JavaScript | jaylahoti/location-tracker | 5d1c37ce19c192e6e0737f3f3ca8791c845ab29c | 9d610943bdd355e643ca8bcb69d11b92fb6f0cb8 |
refs/heads/master | <repo_name>livedx/weather<file_sep>/src/App.js
import React from "react";
import Info from "./components/Info"
import Form from "./components/Form"
import Weather from "./components/Weather"
import axios from "axios"
import lodash from "lodash"
const API_KEY = "<KEY>";
class App extends React.Component {
state =... | d93de0aca6204258271baf1009a6aa507e817823 | [
"JavaScript"
] | 1 | JavaScript | livedx/weather | 1953c6fa00ba0b49e8f5e5dcfb87d62a3676c402 | 6107226af87e71e9b9178620b933608e84c53e2c |
refs/heads/master | <repo_name>the-Natty/react_family<file_sep>/src/routes.js
import React from 'react'
import { BrowserRouter, Route} from 'react-router-dom'
import { Provider } from 'react-redux'
import store from './store'
import App from './home/home'
import About from './about/about'
const Routes = ()=> {
return (
<Provider ... | d1cfa5276d77fcf405a01289a70d2fcd122060d9 | [
"JavaScript"
] | 2 | JavaScript | the-Natty/react_family | 354b75526a8206e6fe32c57f946c8ae91b7eb8ee | 9b1d8047c7d19cebe65b30b3618476af3fbaed28 |
refs/heads/master | <repo_name>soufiane1348/ProjetGestionClubSportif<file_sep>/src/com/java/classe/Club.java
package com.java.classe;
public class Club {
private int PK_Club;
private String Club_Nom,Club_Type;
public int getPK_Club() {
return PK_Club;
}
public String getClub_Nom() {
return Club_Nom... | a4a795b0248011986546d532704e529b1c0165e6 | [
"Java"
] | 1 | Java | soufiane1348/ProjetGestionClubSportif | 7ef17d215e156c9e80d2c2fff7f5aecfb0272d62 | adb36028ceb461b2e4ac02dd8081d79a0d2a8cb0 |
refs/heads/master | <repo_name>isaacmejiarosario/git-lab<file_sep>/wit-bulk-csv.py
#!/usr/bin/env python3
#
# bulk-csv.py written by <NAME> (<EMAIL>) 2022 Mar 1
#
# This simple python script takes a .csv file with two columns (populator, cidr)
# which allows you to use the Kentik bulk API to quickly load custom dimension
# popula... | 0afc3954ecf6816575af079888aa4d77e8b68163 | [
"Python"
] | 2 | Python | isaacmejiarosario/git-lab | 1589010d2f7375915413cd43e443cc70995c020a | 6ded1909502435c2783cb1fedc3f82802a94957a |
refs/heads/master | <repo_name>email2vimalraj/eventstream-demo<file_sep>/README.md
# Server side events - Demo
Playing with the server side events
<file_sep>/server/src/index.js
import path from 'path'
import express from 'express'
import Photon from '@generated/photon'
const photon = new Photon()
const app = express()
app.get('/', (re... | 73be20a84bf9de8818fbb9fb0c4ec5fe04d72243 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | email2vimalraj/eventstream-demo | c34c11f11628453f188d5b6b733b9a250f6ffc97 | dec153f9bb17159f3a9c011c847b6624a25ace55 |
refs/heads/master | <file_sep># SmartDoor
Live-streaming smart door authentication on AWS
<file_sep>from __future__ import print_function # Python 2/3 compatibility
import boto3
import json
import decimal
import datetime
dynamodb = boto3.resource("dynamodb", region_name="us-east-1", endpoint_url="https://dynamodb.us-east-1.amazonaws.com... | 219f0bf078c08ba79fe002ebca79532205dfaa02 | [
"Markdown",
"Python",
"JavaScript"
] | 5 | Markdown | leelightman/SmartDoor | e7d8b49651fe947e06ad16dfb6c3ef39b2f321d2 | 4d60c49ae63899d92746ac2ef08e6a24fa1756c9 |
refs/heads/master | <file_sep>/* jshint qunit:true */
/*
======== A Handy Little QUnit Reference ========
http://api.qunitjs.com/
Test methods:
module(name, {[setup][ ,teardown]})
test(name, callback)
expect(numberOfAssertions)
stop(increment)
start(decrement)
Test assertions:
ok(value, [message])
equa... | 12891d1e7f98019e9f82c6b8e23bd173dff5f8bd | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | MCSaatchiDev/decade_city.js | c37e54c11ad120a8702c334ddc84581fa0c7f0b1 | bb574afd57097a8ae89fef0282690c41527884b0 |
refs/heads/master | <file_sep>#!/bin/bash
cd ~/.dotfiles
git pull origin master
git add -A
git commit -m "dotfiles-sync commit"
git push origin master
<file_sep>#!/bin/bash
# Script to copy the RSSOwl feed file onto barbarito.me
cd ~/Projects/barbarito.me
cp ~/.rssowl2/backup.opml static/feeds.opml
hugo-deploy
<file_sep>if [ $ITERM_... | 773a827a8379ddc35ab217acf02dd89d784275b2 | [
"Markdown",
"Shell",
"Lua"
] | 8 | Shell | danielbarbarito/dotfiles | a30acf18ef88ca7c8421eb929c1903b61ad43290 | 1305095e43a5ac2aa25e67d7b9388dd98fac2add |
refs/heads/master | <repo_name>stena/CBIR<file_sep>/web/recognize_number.py
#!/usr/bin/env python2
import numpy as np
import Image
class Recognizer:
def __init__(self):
self.Theta1 = np.genfromtxt("perceptron/Theta1.txt")
self.Theta2 = np.genfromtxt("perceptron/Theta2.txt")
def sigmoid(self, z):
retu... | 874127155c937c5bf7f5a94e940ac3a349aa3d13 | [
"Markdown",
"Python",
"JavaScript"
] | 6 | Python | stena/CBIR | 479f46676b31912d1892f49b626370f8a4bf1fb2 | 079234d5eb83f8e42aaa5d69f500fbb3389acd28 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEve... | 2ff05cd1f098946ccc542a9d2798c9f699a7de6e | [
"Text",
"Java",
"Makefile"
] | 4 | Java | Wen01/FotagJAVA | 593545f10248a1e4cce39d9584acc07d25964185 | 4d74c01987f96d9b37bd6b15e6f8d4672af4e72e |
refs/heads/master | <file_sep>import React, { useState } from 'react';
import logo from './logo.svg';
import './App.css';
import { Button } from '@material-ui/core';
function App() {
const [todos,setTodos] = useState([1,2,3,4,5,6,7,8,9,10]);
const [input,setInput] = useState("");
const addTodo = (event) =>{
event.preventDe... | 87cffcd7552f0c8e882c09ee5a61ba4662d5f116 | [
"JavaScript"
] | 3 | JavaScript | rizwan183/reactToDOList | 5792bb886dbdab13905e50a0b7d85c945241fe97 | 23aec3c94912a95378f24906c70b008d8f212bd5 |
refs/heads/master | <file_sep>import React, { Component } from 'react'
import profile from '../resources/profile.jpeg'
import calendays from '../resources/calendays.png'
import q_np from '../resources/q_np.png'
import q_share from '../resources/q_share.png'
import '../css/Home.scss'
import { TimelineElement } from './TimelineElement'
impo... | 0aa3f3f9d580b8589e93b4207e741beb36048ee9 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | justinkonecny/website | 06e90e12049d15176314f6207969781159fd6f7f | b7ae03f3eb1ef477f92698cd5e98147a25cb0a2f |
refs/heads/main | <repo_name>brianbauer42/take-home-assignment<file_sep>/server/src/routes/todos.ts
import express from "express";
import { createTodo, deleteTodo, getTodoById, getTodos, updateTodo } from "../controllers/todos"
const router = express.Router();
router.get('/todos', getTodos)
router.get('/todos/:id', getTodoById)
router... | 46797a91c4948b9e58b374fcd9b80cf360e62591 | [
"Markdown",
"TypeScript",
"Makefile",
"Dockerfile"
] | 12 | TypeScript | brianbauer42/take-home-assignment | 964885678d739d345a96afff5c2c705e6ef580fc | 839b2a09cd48331bbfca5e371a766caf7f1ab24f |
refs/heads/master | <repo_name>elivz/eecms-sample-fieldtype<file_sep>/language/english/sample_fieldtype_lang.php
<?php
$lang = array(
// Settings
'canhaz' => 'I Can Haz?',
// Validation
'fail' => 'Epic fail!',
''=>''
);<file_sep>/ft.sample_fieldtype.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
*... | 12d88a275581f6236a4c085227d8c03bdf49a9ea | [
"PHP"
] | 2 | PHP | elivz/eecms-sample-fieldtype | 63562064aa13ff42bb7baec6add9bea8d681087b | 19466052e9eda15f8099d7314b60db6708b6def3 |
refs/heads/master | <repo_name>TsungHuaLee/Basic_Image_Processing<file_sep>/README.md
### OS environment: fedora
### Implement with QT C++.
1. RGB Extraction & Transformation
* The format of image is Bitmap.
* Each pixel have 4 byte.
* Each byte corresponds to B, G, R, and A respectively.
1. Extract each R, G, B from pix... | b6035f370a7a14dba7bd80dee1b870cc6ad29688 | [
"Markdown",
"C++"
] | 3 | Markdown | TsungHuaLee/Basic_Image_Processing | 2e4f7519d9af59d4d6295869558398eea03a5fc8 | 7ee9e7329389a53300f1bc3ec8a7d08978352a88 |
refs/heads/master | <repo_name>sonminho/TodayMyStore<file_sep>/TestServer/TodayMyStore/src/action/AndroidUserInfo.java
package action;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.gson.Gson;
import dao.U... | e38d2a883ba32fb87e616e9f58094a5fe46c86de | [
"Java",
"INI"
] | 14 | Java | sonminho/TodayMyStore | 04ffabfadfe12e9249c151dfad3629b121f4186e | 1076b61ae09be5f354882f3f032bf7a22d40f311 |
refs/heads/master | <file_sep>const API_HEADERS = {
Authorization: `Bearer ${Deno.env.get("NOTION_API_KEY")}`,
"Content-Type": "application/json",
"Notion-Version": "2021-08-16",
}
const API = async (path, data) => {
const body = data && JSON.stringify(data)
const params = { method: "POST", headers: API_HEADERS, body }
const res = ... | 2c61cecb83405b1faebd2071482db043fadc979e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | kigiri/01-dashboard | f817b23165fea0bd48b7ac755df5b63f7cf6cbd8 | e97272c21ba8c4d174621a0148370650f0b2a230 |
refs/heads/master | <file_sep>#pragma once
#include <obs-module.h>
#include <stdio.h>
#include <media-io/audio-math.h>
#include <math.h>
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("rematrix-filter", "en-US")
#define MT_ obs_module_text
#ifndef MAX_AUDIO_SIZE
#ifndef AUDIO_OUTPUT_FRAMES
#define AUDIO_OUTPUT_FRAMES 1024
#endif
#... | 16d36c2cfc204a0699951fb201c6130fb975a37d | [
"C"
] | 1 | C | ninja6250/rematrix-filter | b01533d92205bb491e2e08ca5189b085978a0f22 | 30dad6979520651db22197240c71d00d38ad06e7 |
refs/heads/master | <file_sep>package com.jiyang.rrvi.api;
import com.jiyang.rrvi.bean.Result;
import retrofit2.http.GET;
import rx.Observable;
/**
* Created by jy on 2016/11/24.
* REST API (RxJava form)
*/
public interface GetNews {
@GET("latest")
Observable<Result> getNews();
}
<file_sep># Retrofit combie with RxJava to c... | c9ad9c5b3a1fb9c51d386e93cb6845ad27f4e367 | [
"Markdown",
"Java"
] | 3 | Java | hdx4428/RxjavaRetrofitVolley | 1000c3a50cf1fb6a8024fd0f3e2d01bf0cb69066 | 4c97ae4c993bf0141826627168a93b7c56e4c436 |
refs/heads/master | <repo_name>Gra-V-Robotics/2016-Robot-Code<file_sep>/myRobot/src/org/usfirst/frc5816/myRobot/OI.java
package org.usfirst.frc5816.myRobot;
import org.usfirst.frc5816.myRobot.commands.*;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons... | 8d28cde03652bd5b909dd9ec219765861eaf2a8b | [
"Java"
] | 1 | Java | Gra-V-Robotics/2016-Robot-Code | d611f8e955bf12a4f511d5c17b7ff4cd69366264 | 7ad2ab79be1c8b000172e896936cb596d40ecb36 |
refs/heads/main | <repo_name>rfegade/ecom_API<file_sep>/src/app/middleware/auth.ts
import {Request, Response, NextFunction, Errback} from 'express';
import {verify } from 'jsonwebtoken';
export function validateUser(req:Request, res:Response, next:NextFunction) {
// take the token from header
const token:any = req.headers['x-ac... | 8f74ae3c34b27c9019024d5bd4c1a3167a1f6f15 | [
"Markdown",
"TypeScript"
] | 10 | TypeScript | rfegade/ecom_API | 7110887cc5f842f92597ed5e9dcc13668b1976f1 | dcb3c905a17fb4d51dcf1394b9016727d9749b0d |
refs/heads/master | <repo_name>blandforrest/MNIST_GUI<file_sep>/MNIST_GUI/ImageLabel.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Document... | 4f055a540516c14791aefa1674ce46f47b695594 | [
"Markdown",
"C#"
] | 3 | C# | blandforrest/MNIST_GUI | 81743867018b63413890d119c687101caadf81a9 | 7b638e6785429968c2defb9f9c63e7a0886089cf |
refs/heads/master | <file_sep>//
// ADProgressViewDelegate.swift
// ADProgressView
//
// Created by <NAME> on 13/01/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
import Foundation
@objc public protocol ADProgressViewDelegate {
func progressViewDidFinish()
}
<file_sep>//
// ADProgressView.swift
// ProgressView
... | 3a05e957c6f1c776e9ed53e529ae28b31b0fde76 | [
"Swift",
"Ruby",
"Markdown"
] | 5 | Swift | adauguet/ADProgressView | 43fbb10503c4ffcf923579f7dfa20e906f02b005 | 053e74f33fc7e2a2baafb19475eb85851026b103 |
refs/heads/master | <file_sep># currency-convertor
Real time currency converter.
first app using Flask. fixer API is used for latest updates.
<file_sep>from flask import Flask, render_template, request
import json
import requests
app=Flask(__name__)
with open('static/currency.json','r') as fhand:
symbols=json.load(fhand) #file of a... | 282b98bdcf87c546810ecbd0797d9260ffc1171d | [
"Markdown",
"Python"
] | 2 | Markdown | jainj2305-2/currency-convertor | b2610170c71210bf3e947bf226c5247d48be1e18 | 625397c7a0e3a395dd1c55fb887b940b38a4b8f2 |
refs/heads/master | <file_sep>// dom - manipulation
console.log(document);
// access an element from the html
// get an element with a specific id
const myHeading = document.getElementById('my-heading');
console.log(myHeading);
const todoList = document.getElementById('todo-list');
console.log(todoList);
console.clear();
// get all the... | f55c72b84d48b517c86a6bb0e4208383ae769c1b | [
"JavaScript"
] | 1 | JavaScript | Ironhack-Berlin-May-2021/w2d1 | a51c37767c8cd6c1c4b5b2ba154ba83c56cdb1f6 | 8a8ee144246f173dd8d58ffe236de6f74aaa0870 |
refs/heads/master | <repo_name>2821359847/Scrapy-and-MySQL-Test-with-Douban<file_sep>/douban/douban/main.py
from scrapy import cmdline
cmdline.execute('scrapy crawl douban_spider'.split())
exit(0)
<file_sep>/douban/douban/pipelines.py
# -*- coding: utf-8 -*-
import pymysql
from douban.settings import mysql_i, mysql_u, mysql_p, mysql_d, m... | d3045293dadb20e1d0b6b3fd73a5fc71a77ef6df | [
"Python"
] | 2 | Python | 2821359847/Scrapy-and-MySQL-Test-with-Douban | 31ce57e1276a0a913a0b0211c7243fc617628623 | 5764d21ac1835c09616c401a14d19db08eaaf7af |
refs/heads/master | <file_sep>import time
import board
import neopixel
LED_COUNT = 7
LED_PIN =
<file_sep>import time
import board
import neopixel
RED = (255, 0, 0)
YELLOW = (255, 115, 0)
class Jewel():
led_count = 7 # One Jewel
led_pin = board.D18
led_brightness = 0.3
led_order = neopixel.GRB
def __init... | 9c32322b9f509187ecbfd06bc69531bc03091e61 | [
"Python"
] | 2 | Python | a-lmx/swearwolf | b800e95b2be7f2ffc898c2d39ee37668db1e197f | 8315ed2e6b3e7714cdd1755ffa75d970db9f9ed1 |
refs/heads/master | <file_sep>#ifndef INTERRUPTS_H
#define INTERRUPTS_H
#ifdef __cplusplus
extern "C" {
#endif
int register_handler_process(int irqno);
int reset_handler_process(int irqno);
#ifdef __cplusplus
}
#endif
#endif
<file_sep>#include <stdlib.h>
#define INLINE static
#include <ctype.h>
long int strtol(const char* str, cha... | 8ff933e9bc909aad6f3f88b3d723e66e288d7b6d | [
"Makefile",
"C",
"CMake",
"C++"
] | 109 | C | DayOperatingSystem/Libraries | 9e522a86d625dbfdcdd3da0e54289eb8bcff22f0 | ebd8103b797c11405b5be999f6313bc7537955e5 |
refs/heads/master | <repo_name>sarthak0711/crumbledPaper2<file_sep>/dustbin.js
class Dustbin{
constructor(){
var options={
isStatic:true
}
this.image=loadImage("dustbingreen.png")
this.body=Matter.Bodies.rectangle(650,580,100,20,options);
this.rightBody=Matter.Bodies.r... | d596ab3f7ef1c276cf5573e029c5daa845f1ccee | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | sarthak0711/crumbledPaper2 | 062120bb359f5fba2eef97c90aeb8bb76f8b69e2 | de3a65f56f9dd74244572e20e9da2a8f9270f967 |
refs/heads/master | <repo_name>a-wart/vitrage<file_sep>/src/vitrage.js
/* Vitrage 0.0.2
* <NAME>
* MIT
*/
;(function(window, undefined) {
var getWidth = function(element) {
var elementWidth = element.offsetWidth,
marginRight = parseInt(window.getComputedStyle(element, null).getPropertyValue('margin-right'));
r... | bb41c2811f9391822e08dfef1996959d26f0d9f0 | [
"JavaScript"
] | 1 | JavaScript | a-wart/vitrage | 806ae9e4351b8f7dacfc50e7fcf9be7e40327cf1 | 5bbb2d24a7b74f1a5931ee1249fd2679515c0ebb |
refs/heads/master | <repo_name>NTFS/Cplusplus<file_sep>/Cards/evaluate.cpp
#include "cards.h"
#include <iostream>
using namespace std;
void evaluate(string handI[])
{
string rank[5];
string suit[5];
/* size_t club = rank.find("c");
size_t heart = rank.find("h");
size_t diomand = rank.find("d");
size_t spade = rank.find("s");*/
f... | c5698ec3eaddee11cad69913f51d8fe006c22069 | [
"C++"
] | 8 | C++ | NTFS/Cplusplus | 39fd23f5ea0ad3bcbf2075e2989396c3e245e603 | 678fe65e8f25f3a233f5eadb6577ca8e5354df4f |
refs/heads/master | <repo_name>andrewestronick/CS532-Project03<file_sep>/main.cpp
// <NAME>
// April 10th, 2016
// Computer Science 532 - Advanced Data Structures
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include "edge.h"
#include "graph.h"
#include "breadthfirsttraversal.h"
#include "depthfirsttraversal... | 39506b7255b61841179f3e20dee1aef6f5592eb5 | [
"Markdown",
"C++"
] | 6 | C++ | andrewestronick/CS532-Project03 | 1f816ad3d1b2b4fe0d9617c8bba84d5366b68ca2 | c4407a1e40f9cbb3b585045cd4493e29cb465db8 |
refs/heads/main | <repo_name>GuilhermeKAC/Curso-PHP-Cod3r<file_sep>/curso-php/api/ler_arquivo.php
<div class="titulo">Ler Arquivo</div>
<?php
//fread ler arquivo - lendo 10 bits
$arquivo = fopen('teste.txt', 'r');
echo fread($arquivo, 10);
echo '<br>';
echo fread($arquivo, 10);
echo '<hr>';
$arquivo = fopen('teste.txt', 'r');
$tamanh... | d75f4874a362d1e0cb1fb41c4aade18913feaf54 | [
"Markdown",
"PHP"
] | 73 | PHP | GuilhermeKAC/Curso-PHP-Cod3r | 9835384ecd289894664008171d8d2034d21d4e38 | d8413b803e5786069c2985ecf8ee4d492af09e7f |
refs/heads/master | <repo_name>JeevaniPatnaik/TutorialApp<file_sep>/app/src/main/java/com/jeevani/tutorialapp/GlobalUtils.java
package com.jeevani.tutorialapp;
import android.view.View;
/**
* Created by Jeevani on 5/9/2017.
*/
public class GlobalUtils {
public interface ItemClikListener {
void onItemClick(View view, int ... | 9fc2f1a55ec6e0bf100a4fa536aea1038ab4e25f | [
"Java"
] | 5 | Java | JeevaniPatnaik/TutorialApp | 49b495c89b1887b38c1668ed9990185edc854694 | 9874bad3e2d0dae7d2794de520cc2a3b4cd13a73 |
refs/heads/master | <file_sep>
public class Ej1 {
public static void main(String[] args) {
Integer[] random = new Integer[6];
for (int i = 0; i < 6; i++) {
random[i]=(int)(Math.random() * (51 - 1 + 1) + 1);
}
for (int i = 5; i > 0; i--) {
System.out.println(random[i]);
}
... | 1a25adb91073d3ba479a76bb00c931e19336602f | [
"Markdown",
"Java"
] | 29 | Java | sCouDom/Programacion | 0d7e1305aca99e4ef5b4a6fc5c75585b6ef2f2d1 | 7a65a91781dfd34a7121677985f8e80e3ebfba83 |
refs/heads/master | <file_sep>let titulo = document.getElementById('inpTitle')
let rendTitle = document.getElementById('renderTitle')
let changeColor = document.getElementsByClassName('rainbow')
function clickSend(event){
event.preventDefault()
rendTitle.innerHTML = inpTitle.value;
}
function onColor(event) {
rendTitle.styl... | 11bfb8693bf0cddb908a687d2700eb00685c2311 | [
"JavaScript"
] | 1 | JavaScript | joaoprosa/revisao-js | 1a609fc9dc6d0ee45aa1fcb38cfccde6a5eaa6c3 | bc2839f2f5dd1a0ff906775fb7967c654f45f44b |
refs/heads/main | <repo_name>neonious/CentralNodeWallet<file_sep>/util.js
'use strict';
const fs = require('fs');
const path = require('path');
const ERC20_ABI = [{
"constant": true,
"inputs": [{ "name": "_owner", "type": "address" }],
"name": "balanceOf",
"outputs": [{ "name": "balance", "type": "uint256" }],
"type": "function"
... | d206db458ddd2917eed3a04c46066d4d095f2944 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | neonious/CentralNodeWallet | a8d2326a506ee631fc18df37a56b8abb7ccaed2c | e773f679040bfa6361eb936c344cdebebc24f1c2 |
refs/heads/main | <repo_name>eu-snehagupta/MoneyTracking<file_sep>/src/main/java/com/company/MoneyTracking.java
/**
* Items class is used to create items for the money tracking application.
*
* @author <NAME>
*/
package com.company;
import java.util.*;
//import java.time.LocalDate;
//import java.time.format.DateTimeFormatter;
cla... | 317a13ad9a5018a4da1e4b7d17ace64dd2348d84 | [
"Markdown",
"Java",
"Gradle"
] | 5 | Java | eu-snehagupta/MoneyTracking | 7bdc70dde68da15b85edecca6180600a788ecc3c | 6ee06355a0e34db2470f565bafa5972fa5beb898 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public AudioSource source;
//public AudioClip runSound;
//public float runVolume = 1;
public AudioClip jumpSound;
public float jumpVolume = 1;
public Charac... | c22645f04da9304a3cede25ebfacf7dec5bfde73 | [
"C#"
] | 2 | C# | fickesjoshua/ShadowGameOnceAgain | 7f3683b587fc33149dd546fde551f9d572f3dfcd | 5d3d6337cf16951211e5bd5a7f9a9c0f1433095a |
refs/heads/master | <file_sep>package it.gbs.weather.model;
import java.io.Serializable;
public class FeelsLike implements Serializable{
/**
*
*/
private static final long serialVersionUID = -7773595253322083211L;
private Double day;
public Double getDay() {
return day;
}
public void setDay(Double day) {
this.day = d... | 0fdb96923d51b8df9a274170e2864c5fa39cd166 | [
"Markdown",
"Java"
] | 5 | Java | giannisurdi/gbsweather | 19aa4186dccf0defbc71a67f7b4a2e1fb90830e8 | 175d04461ddc5b060ca4d32a168565fa4b903f46 |
refs/heads/master | <file_sep>// function to fetch data for the plot
var fetchPlotData = (inputCounty, inputState) => {
plotData = [];
var date = '';
for (var i=1; i<31; i++) {
// adjust date for next fetch
date = moment().subtract(i, 'd').format('YYYY-MM-DD');
// fetch covid data for that date, inputCi... | c99c5dd96659062420fe4b47b04147ef30c44c41 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | PetitsPoissons/coVie-search | fc89069fda106748f9a97168505b02e4eb6fd199 | 6b88c678fb0391fc44f9903286d13b4141d0371f |
refs/heads/main | <repo_name>anonymousGithubPageForBlindReview/FLLRM<file_sep>/Predicte/myModules.py
# -*- : coding: utf-8 -*
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
# unsupervised deep learning
class VAE(nn.Module):
def __init__(self, xn, yn):
super(... | 6d1bef38cea55450924c1fb364ffa18c03fce0d7 | [
"Markdown",
"Python"
] | 5 | Python | anonymousGithubPageForBlindReview/FLLRM | c3bc8a85050b0bb79913271b725cf9c54eae7f45 | 0dbb0ce3d26255f6644c86323136902e3cfc2bb3 |
refs/heads/master | <file_sep>package ru.z13.imgtags.factories
import android.support.v4.app.Fragment
import ru.z13.imgtags.enums.FragmentEnums
import ru.z13.imgtags.ui.fragments.EmptyFragment
import ru.z13.imgtags.ui.fragments.HomeFragment
/**
* Android Studio
*
* @author <NAME> (www.android.z-13.ru)
*/
class FragmentFactory {
... | 21fed77588053e3cf545d3157b3ddc48d8515f6d | [
"Markdown",
"Kotlin",
"INI",
"Gradle"
] | 53 | Kotlin | Z-13/img-tags | b5a338dd45504cbccf751894d2d52574dc882a4b | c0bd714fd3eba7335ec2bf18766652c138bd6846 |
refs/heads/master | <file_sep># ACS-photonics-10.1021-ph5002632
reproduce the computation results
<file_sep>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 22 10:40:12 2017
@author: xiaabs
"""
import numpy as np
import os
from multiprocessing import Pool
import matplotlib.pyplot as plt
wavelength_nm,exp_n,exp_k,f... | 375e3858ca69a429cf065a6e36fe7e6cbdb70871 | [
"Markdown",
"Python"
] | 2 | Markdown | susappk/ACS-photonics-10.1021-ph5002632 | 48a93d2b71a51c1a03864f2960c9ab1885869068 | 537db9dd50153c53343196d7f2a7c7336440deff |
refs/heads/main | <file_sep>import { createContext, useContext, useMemo } from "react";
type Prop = number | string;
export type PathType = Prop[];
export const PathContext = createContext<PathType>([]);
export const Path = {
SEP: "/",
PARENT: "..",
toString(path: PathType) {
return path.join(Path.SEP);
},
fromString(pa... | 13a35cc17237e34d9a384941f1817862eba8649f | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | brynshanahan/formable | 354a33ead351eb34b9731027aa290901e38c7b7d | c4a0a21d6d9b067c7e61c2b56ca01f64c887f344 |
refs/heads/master | <file_sep># LocalStack Examples
Various examples/tests using:
* aws
* localstack
* terraform
* nodejs
<file_sep>// Load the AWS SDK for Node.js
const AWS = require('aws-sdk');
// Set the region
AWS.config.update( {
region: 'ap-southeast-2',
endpoint: "http://localhost:4566"
});
// Create the DynamoDB service ob... | ac916a5092de97de77bee1c8d69e9c22f199ba84 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | hombredequeso/local-stack-examples | 0132081293858749848f809c0f7a72c279368977 | 6f9d303923ff8b1bc96b4877fe9ca8e9da58b4db |
refs/heads/master | <file_sep>import pygame
import random
from pygame.locals import *
import os
import math
window_dimensions = [800, 600]
pygame.init()
fenetre = pygame.display.set_mode((window_dimensions[0], window_dimensions[1]), pygame.RESIZABLE)
pygame.display.set_caption("Telegame Editor")
def saveToFile(filename, mapConfig):
... | 4b888d72af1bab5d00866debe593d16ed110b30f | [
"Python"
] | 4 | Python | baballev/TeleRPG | 17cde4b48ebcfe2554d4915d30455263adbdc4f5 | 6a9db69185c5a5f0b630b48e60d178f9651e5eeb |
refs/heads/master | <file_sep>import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
/**
* This class takes care of the execution of the commandli... | 07637e3e1dd57e20553d978999eb78683e56ee2e | [
"Java"
] | 2 | Java | hvdscheer/WbuKoppelingSyntess | f69dab5e6bdb32d2a3341521a3e5f99972757067 | 277f8c5cf1ceb1d335a76401fec5b8d257392487 |
refs/heads/master | <file_sep># Base 16, 32 and 64 encoding
This is a collection of some base-encodings.
They are used for my [Quokka-Project](https://github.com/t3c404/Quokka-Project)!
<file_sep>import bottle
from bottle import run, route, response, error, template, request, static_file
import json
import base64
def enable_cors(fn):
... | 36e635065971c39e50d0572336762090fa0aaee3 | [
"Markdown",
"Python"
] | 2 | Markdown | t3c404/baseEncodings | 5bf664780aaa278e9f95708994344504e206a576 | b621d981d750c5344b88bc17131b93c1590ed04d |
refs/heads/master | <repo_name>exiahuang/lwc-lodash<file_sep>/force-app/main/default/lwc/lodash/string.js
/**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Copyright JS Foundation and other contributors <https://js.foundation/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://un... | 07336c83ba05ed360a4478bb722ccfe0688e0d69 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | exiahuang/lwc-lodash | 335f59981a99765f8470a18c493c294a4d57fdf9 | 15efb7ba022b1c4dfa7f90aaf1b2595be6369899 |
refs/heads/master | <file_sep>from tkinter import *
class MyGUI:
def __init__(self):
self.main_window = tkinter.Tk()
self.FtoCButton = tkinter.Button(self.main_window, text='Convert F to C', command=self.FtoC)
self.quit_button = tkinter.Button(self.main_window,text='Quit', command=self.main_window.destor... | 4a1b1cf081f8beabdd97b6ba620c817e7deb8754 | [
"Python"
] | 1 | Python | sethb44/tkinter | 4ca42c31cecabe8a41758c6cceb88a95d28f98f0 | a6999b40dafa9d1ab981ea209075a13b3dc137bf |
refs/heads/master | <file_sep>// GET REQUEST
function getTodos() {
console.log('GET Request');
}
// POST REQUEST
function addTodo() {
console.log('POST Request');
}
// PUT/PATCH REQUEST
function updateTodos() {
console.log('PUT/PATCH Request');
}
// DELETE REQUEST
function removeTodos() {
console.log('DELETE Request');
}
// SI... | 7b1627a9fa358d3da0b6ea47066c688e49f9ba98 | [
"JavaScript"
] | 1 | JavaScript | JerryDoran/axios | 781d42574247f1e7465f8f7246ed39e56c4768f6 | 2f172b01c9fd75efa3993192bb02988410a70dc1 |
refs/heads/master | <repo_name>comwrg/rottentomatoes_mining<file_sep>/main.py
from wordcloud import WordCloud
import matplotlib.pyplot as plt
from rottentomatoes import Rottentomatoes
r = Rottentomatoes('wonder_woman_2017', debug=True)
res = r.get()
print('---- Top 20 ----')
top20 = ''
for i in res[20:]:
print(i)
top20 += i[0]
p... | b5ecf834d5b982e21e89614188185bac9501704a | [
"Python"
] | 2 | Python | comwrg/rottentomatoes_mining | 84aaba4912cfc3632c1f09edd8348095632c7b68 | a4f2fa86ba3eb69781f754a5f728f24b0d950b61 |
refs/heads/master | <file_sep>const BASE_URL = "http://localhost:3000"
const TRAINERS_URL = `${BASE_URL}/trainers`
const POKEMONS_URL = `${BASE_URL}/pokemons`
let dataIdCounter = 1
// --------------------------------------------------------------------
// right now im manually doing everything, but up here should be an
// event listener... | a9ea161cdfb61bf1f6df56223c8ccbeae7bea0aa | [
"JavaScript",
"Ruby"
] | 2 | JavaScript | leothebeagle/js-rails-as-api-pokemon-teams-project-v-000 | 2170429b99084b985079d0dcb8538cd419275861 | 65dd4ecf7058e55bc357baeb54c0cb49a7872746 |
refs/heads/master | <repo_name>xingzhi1995/object-template-pc<file_sep>/src/mock/tsconfig.json
{
"loading": {
"text":"正在加载",
"spinner":"el-icon-loading",
"customClass":"loading",
"lock": true
},
"dateTimeFormat": "yyyy-MM-dd HH:mm:ss",
"dateFomat": "yyyy-MM-dd"
}<file_sep>/src/router/list.js
import test from "../vi... | 813a2f11ba84675fcaaf706e327a138322a7c027 | [
"JavaScript",
"JSON with Comments"
] | 3 | JSON with Comments | xingzhi1995/object-template-pc | 3de04a7d1bec626723f564e115a043989369a763 | 9328405b1d84fc9a8a45885d0a821a9ae6e77c50 |
refs/heads/master | <file_sep>import React, {Component} from 'react';
class TodoList extends Component {
constructor() {
super();
this.state = {
userInput: '',
items: []
}
}
onChange(event){
this.setState ({
userInput : event.target.value
}, () => c... | 54bde71d25cdcf59533c7aebd6fae55878e537a5 | [
"JavaScript"
] | 1 | JavaScript | csu6/reactjs-todo-list | b73e705c261c286d8d7bbe7c2f7d357372ccda53 | 95c2d556dad6891f4f4d65be93002722c8e127b0 |
refs/heads/master | <file_sep>package com.vfinance.dubbox.provider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
/**
* Created by weichunhe on 2017/7/3.
*/
@SpringBootApplication
@ImportResource("cla... | 970c174e9f04f81fc3e6c4ba358139e717950fbe | [
"Java",
"Gradle"
] | 6 | Java | 1329555958/dubbox | 446580abb06937e5b5bd83a502813b9cdc1c3ad5 | 33da1a3d14f5bad7131cc67883798044f36b2fbc |
refs/heads/master | <file_sep># wit
Algorithms for string classification and string embeddings using 'weak' supervision, with eventual application to 'schema alignment'.
### Requirements
`Keras` fork from `https://github.com/bkj/keras`, which contains custom objective functions and regularizers
### Notes
Here are two ways that we cou... | 0a57018a34f60b11195ccff383bfc7f527c3afa3 | [
"Markdown",
"Python"
] | 4 | Markdown | phronesis-mnemosyne/census-schema-alignment | dc6687616ac71318d7832bc64017ba77ec3dc54c | 0500dbc9c5a72874cff772e2f635428db5805f12 |
refs/heads/master | <file_sep>const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Lang = imports.lang;
const Task = new Lang.Class({
Name: 'Task',
_init: function () {
// Configure used folder path's to be used
this.userHome = GLib.get_home_dir();
this.cacheFolder = this.userHome + '/.cache/Le... | c83cb2c84ce6eea46a3a494967bf37e0fdb89a33 | [
"JavaScript",
"Python",
"Markdown"
] | 9 | JavaScript | Antergos/lembrame | 8d76bd72ee67647ad5ee6a45080bd17b7939e1f2 | 4631376a0dda486a6feeb1a8c7d2fac16f25a7e8 |
refs/heads/main | <file_sep>class SpaceShip{
private:
int x; // x coordinate
int y; // y coordinate
int hp; // heart points
int energy; // energy points
bool imDead; // is the ship dead?
public:
int X() { return x; }
int Y() { return y; }
int HP() { return hp; }
bool isDead();
SpaceShip(int _x, int _y);
... | 7e07ee8b91e8aed1c357ffa5b0b97d349b82bef4 | [
"C++"
] | 3 | C++ | mingfu0708/C_final | 83f155b28859db178f11939e2d10501da13112f0 | 791a49572fac59b6ff3365b4e02a33d78d577ae1 |
refs/heads/master | <repo_name>nephroming/homework<file_sep>/genie2.py
import requests
from bs4 import BeautifulSoup
# URL을 읽어서 HTML를 받아오고,
headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'}
data = requests.get('https://www.genie.co.kr/chart/top20... | 563945a9b5d0f28f7091bb9eb7c7b1bc9c5f5e0b | [
"Python"
] | 1 | Python | nephroming/homework | 94d310b62bc592ba6b4aeb4f8de276369a0612e9 | c472b6a38ef347ec0ed42901212630b44f347301 |
refs/heads/master | <file_sep>Template.forgot.onCreated(function() {
let instance = this;
instance.values = new ReactiveVar({})
instance.errors = new ReactiveVar({})
instance.has_global_success_message = new ReactiveVar(false)
})
Template.forgot.helpers({
getValue(key) {
let values = Template.instance().values.get()
ret... | 5a219666dd0cb21b28d46b0fe532352287fb0896 | [
"JavaScript"
] | 15 | JavaScript | ArthurGerbelot/alltogethearth | 254828d04e3e9b9f3f8b73cc3907bdcb2966bac7 | b08214135894511b0576ad72fa7f589ec246e709 |
refs/heads/master | <repo_name>gentics/demoportal<file_sep>/demoportal-package/src/main/package-extra/setenv.sh
#!/bin/bash
BASEDIR="$( cd "$( dirname "$0" )" && pwd )"
CONFDIR=$BASEDIR/../conf/gentics
if [ -e /Node/ ] ; then
echo "Found GCN installation. Using jre from that installation."
export JAVA_HOME=/Node/java
fi
export JAVA_... | 646d33e36886fada91696632106c33b3b09a4df9 | [
"Markdown",
"Java",
"Maven POM",
"Shell"
] | 13 | Shell | gentics/demoportal | 35bd70bcb28aae1cda6c370bb730c7bc3aadcf1d | ba26cf6e4216ec530bdde952b24affef262fc1d2 |
refs/heads/main | <repo_name>DarkoRockk/job4j_todo<file_sep>/db/schema.sql
create TABLE IF NOT EXISTS users (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
email TEXT NOT NULL,
password TEXT NOT NULL
);
create TABLE IF NOT EXISTS item (
id SERIAL PRIMARY KEY,
description TEXT NOT N... | dd6ee4966f4ac124113ac1782c57334f5a6bbee0 | [
"JavaScript",
"SQL",
"Java"
] | 6 | SQL | DarkoRockk/job4j_todo | 365893667d28cd3b68534d5df9af1df91d1a7a22 | f978d73ed2a1452a2d638076d173a737abc031f0 |
refs/heads/master | <file_sep>from flask import Flask
from flask_restful import Resource, Api
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import roc_curve
import pandas as pd
import numpy as np
app = Flask(__name__)
api = Api(app)
class ROC(Resource):
def get(self, preprocessing, c):
# you need to preproc... | 46efbcd404fa23501caa062f23a505e84f1a3985 | [
"Markdown",
"Python"
] | 2 | Python | CCIS-VIS-Classes/Client-Server-Starter-Code | 46a58f4bea0ba3251411d6f8e9d69122f0493b9d | 7c98512d6e424bef3f23d8e448ad7474c28fff99 |
refs/heads/master | <file_sep>#include "Game.h"
Game::Game() {}
Game::~Game() {}
void Game::LoadContent() {}
void Game::Draw(ALLEGRO_DISPLAY *display) {}
void Game::Update(ALLEGRO_EVENT ev) {}
void Game::Unload() {
attributes.clear();
contents.clear();
}<file_sep>#pragma once
class FloatRect
{
public:
FloatRect();
~FloatRect();
... | 117a6d89520e5e50da9bfb018fb4e02726852620 | [
"C++"
] | 40 | C++ | KoiKomei/Sokoban | ed966521f6eb100533d7ae7e06fd0e3e8dbd50dd | daa12f3c6e973010a595c7ea9dca7e2c5c1b2c44 |
refs/heads/main | <file_sep># Zombie-Barney-Half-Life-
I added on the zombie codes the ability to drop supply when killed with over 9 options. The idea came to my mind thanks to a HL demo mod called "Crowbar Deep in The Dead".
The code also comes with an additional thing, choosing what faction the zombie will join on spawn.
3 thi... | 4e65567e08e0e6f216254bc1a16f42e668a3393c | [
"Markdown",
"C++"
] | 2 | Markdown | alialatrach/Zombie-Barney-Half-Life- | 65a9ec3fb0874eb55b2c1ef30872fb71cd115f80 | 6d765a73a47b1739f0117d3fa3d945329c3214f0 |
refs/heads/master | <file_sep>package com.example.contactappv2
import android.app.ActivityOptions
import android.os.Bundle
import android.util.Pair
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
... | 1db90d96a89c673e7793195a360bfd7eb79f993b | [
"Kotlin"
] | 4 | Kotlin | Abass14/JetPack-NavController | 0223c2c2f72b3d245d7ba31b08b6e8fdbd0cc25c | 9b6cc889d54dd737dc3dde49be2164982404fb1d |
refs/heads/master | <file_sep>package mapperInterfaces;
import models.CallType;
import models.Event;
import java.util.List;
public interface EventMapper {
void insertEvent(Event event);
List<Event> getDataByCaller (int caller);
List<CallType> getTypesByCaller(int callId);
}
<file_sep>$(document).ready(function () {
... | 4ffe2f0fd17d06e01bbba8d0c85de72f841170d9 | [
"SQL",
"JavaScript",
"Maven POM",
"INI",
"Java"
] | 10 | Java | rnzomb/testPhoneApplication | df99f2bf24a6026925a7d77378a1dcfc14044bef | bca665ca8447f2a320831d6f2d3b0071b02b30f6 |
refs/heads/master | <file_sep>var chessGame = (function() {
console.log("initializing chessGame.js");
var board = [["whiteRookOne", "whiteBishopOne", "whiteKnightOne", "whiteKing", "whiteQueen", "whiteKnightTwo", "whiteBishopTwo", "whiteRookTwo"],
["whitePawn1", "whitePawn2", "whitePawn3", "whitePawn4", "whitePawn5", "w... | d7d4eb1483687429b98519c5316460070b3bfbb3 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | tcampbPPU/cmps262ChessProject | e53318bc721b16613698e8fa1baa73b01653077d | ba5bbeeb4a8c8965160a8ec6100eafff6bf3dfab |
refs/heads/master | <file_sep>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "Licen... | aec4ac64d0eb4a5358464fc4b2a3124fd5ffc5a1 | [
"Java",
"AsciiDoc"
] | 16 | Java | Kaushaldevy/incubator-tamaya | 8dcfb2a45c7f9b9198e649f583e9f95cb86ba2f1 | ee60a724b9e64d55881db282b253b4e68f33e33d |
refs/heads/master | <repo_name>delanikaotc/strukdat-02<file_sep>/strukdat-02.cpp
/*
Author : <NAME>
NPM : 140810180026
Deskripsi : Program ini menampilkan fizz untuk setiap kelipatan 3, buzz untuk keliapatn 5, fizzbuzz untuk kelipatan 3 dan 5
Tahun : 2019
*/
#include <iostream>
using namespace std;
void moveZeroToFr... | bc2fe989cb4f360775d17c26d433eb153cff8bae | [
"C++"
] | 3 | C++ | delanikaotc/strukdat-02 | ee5c4180e86a445caf42c53c97555af28ff50247 | 6ccd80913a03eee0c9b519654007401cc4479cd7 |
refs/heads/master | <repo_name>LurzyQyQ/BarkyMusic<file_sep>/src/router/index.js
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'Main',
component: () => import('../views/Main.vue'),
children: [
{
path: 'recommend',
name: 'Recomm... | 9d7863f51076e2c2cb7f06cc41c285517ab17df5 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | LurzyQyQ/BarkyMusic | 2058b8fb99904cf34434e5865fa81fe11ce92fae | b07df3ca17ba96f2432c282a8b3d683a08994708 |
refs/heads/master | <repo_name>oliv1008/ASR_synchro<file_sep>/exercice_sequentiel.c
#include "qdbmp.h"
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <sys/types.h>
#include <time.h>
typedef struct
{
char image_source[256];
char image_dest[256];
} dataMaster;
typedef struc... | f541416ff9b1f6d2b48ab483f9389fbf07e21962 | [
"C"
] | 2 | C | oliv1008/ASR_synchro | 779ce0a133d9231339cc1722a373b1acbcb7a707 | 9c8abddc4d191885a4c32fef0988d0385587a03c |
refs/heads/main | <file_sep>const buttonList = | 26a70e67bd63a39ea49bb20167b09e23a4b2256d | [
"JavaScript"
] | 1 | JavaScript | bmparks5150/Shadowrun6E | 022835a5f8ed3067c06515563fc33bd17cf28e37 | d4d57cf4be463ba61e41abb55a7ed27d0fac92c4 |
refs/heads/master | <repo_name>etobella/rsna_tempo<file_sep>/rsna_tempo/report_templates/views.py
import xml.etree.ElementTree as ET
import json
from django.shortcuts import render
from django.http import HttpResponse
from django.views.decorators.csrf import ensure_csrf_cookie, csrf_exempt
from django.template import loader
from django.c... | 68b4ab0f75da77a3cec2ebfb89261cfdf9113cc3 | [
"JavaScript",
"Python",
"Text",
"Markdown"
] | 11 | Python | etobella/rsna_tempo | 34e438ca6f5cace4059d77a36f04699594ea4909 | 1de947d2a3ed1c182eb0a9ea32695a360259ce8d |
refs/heads/master | <repo_name>tpisfil/Likes<file_sep>/script.js
var neilLikes = 9;
function likeNeil(){
neilLikes ++;
document.querySelector("#like1").innerText = neilLikes + " Like(s)";
}
var nicholeLikes = 12;
function likeNichole(){
nicholeLikes ++;
document.querySelector("#like2").innerText = nicholeLikes + " Like(s)... | 6ccf39c7dc51cd0e6b79bd6bccc7a30a39a74444 | [
"JavaScript"
] | 1 | JavaScript | tpisfil/Likes | f6437ab28c78d96a38d31c2aed53d1f80dee99b9 | 73c7150a7f7c94cdd93959d9fdcf16da7e982f88 |
refs/heads/master | <file_sep>funner-app
==========
test game for phonegap/cordova
<file_sep>var state;
var renderer;
var guys = [];
function init() {
stage = new PIXI.Stage(0x66FF99);
renderer = PIXI.autoDetectRenderer(400, 300);
document.body.appendChild(renderer.view);
requestAnimFrame(animate);
var guyText... | 916f7e77b5a31daff3113d3fbebd93e722bde421 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | insanity54/funner-app | 7679fbe48f11792e6db103dbfa27adb1bed0ae32 | 853fd3bfc8c04895ad7ebc952ec71877f7369e71 |
refs/heads/master | <file_sep>angular.module("catwalk").controller("marketsCtrl", function ($scope, superMarketsHttpService, $location) {
$scope.title = "Julio";
var search = function () {
superMarketsHttpService.pesquisar().then(function (response) {
console.log(response);
$scope.retorno = respons... | 8396aa12fce43d2bc5dbb16f9af1e7fb483c0d4e | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | Julioliveira/node_Front_test | a306ffdd35914a13c25d344e93d7b75a4d5d7e8d | 4be67360d84b9e941a2c45d925993766e171a95a |
refs/heads/master | <file_sep>import csv
from Proyecto import Proyecto
class ManejadorProyecto:
def __init__ (self):
self.__lista=[]
def Getproyecto (self,i):
return self.__lista[i].getId()
def agregar (self,unProyecto):
self.__lista.append(unProyecto)
def testP... | 670f27c7ec62ee10f10931cbc98a4d2db070201d | [
"Python"
] | 5 | Python | AntoRojo16/EjercicioIntegrador | 6d99d1670897a97b81a7564af099c94df8f27c11 | 63266d3550fbe4641cbbd69bd610fb942cccda13 |
refs/heads/master | <file_sep>using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace JL.Mini.Api.Model
{
public class Context :DbContext
{
public DbSet<Person> People { get; set; }
public DbSet<Question> Questions { get; set;... | 539c8148afa242c4dd7b047a2141f43f6f6edfb1 | [
"Markdown",
"C#"
] | 3 | C# | KonstantinOrlov/JL.Mini.Api | d8a100bc4dab9772ec5482c33cab700427a69ff5 | 6c7ed8074c7809012cf2fd4afbd615aced38a95e |
refs/heads/master | <file_sep>using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MotionBlur : PostEffectsBase
{
public Shader motionBlurShader;
private Material motionBlurMaterial = null;
public Material material
{
get
{
motionBlurMateri... | ea01cd473f53d75532f0a69af40bb44fd5e14e63 | [
"C#"
] | 2 | C# | April-Wind/LearnShader | 385d360a70b2cf29b7eda1c77c03eac87f40db4b | 76b7d46bfb74d1a389cd897c33500ec5d1457a29 |
refs/heads/master | <repo_name>aydamacink/Third_Step_TOP_Substrings-<file_sep>/substrings.rb
def substrings(string, dictionary)
results = {}
dictionary.each do |word|
words_found_array = string.downcase.scan(word)
recurrences = words_found_array.count
if recurrences > 0
results[word] = recurrences
end... | 28973d4786b44f978f5c1aa7db6cf32a93fa0f3a | [
"Ruby"
] | 1 | Ruby | aydamacink/Third_Step_TOP_Substrings- | be912a5d4430e687d5cc0e77bb3b2d1293b74430 | ef06f74bd7ea06accc5cbcf01efdcf784283ee45 |
refs/heads/master | <repo_name>adityajha07/Algorithms-design-and-analysis<file_sep>/BellmanFord.cpp
#include <bits/stdc++.h>
using namespace std;
//int INT_MAX=10000;
struct Edge
{
int src, dest, weight;
};
struct Graph
{
int V, E;
struct Edge* edge;
};
struct Graph* createGraph(int V, int E)
{
G... | 08fb87afc262cf961c5020b84e11d24e7d9e19a7 | [
"C++"
] | 1 | C++ | adityajha07/Algorithms-design-and-analysis | 63de0df1a58ba4e395396576063bd821c0f3332a | 10f617746356924ea3f7a093df9a16ca447d1268 |
refs/heads/master | <repo_name>c8610290927/Eye-Tracking<file_sep>/Assets/LabDataVisualization/ViveEye/ViveSR/Scripts/Sample/SRanipal_EyeFocusSample.cs
//========= Copyright 2018, HTC Corporation. All rights reserved. ===========
using System;
using System.Collections;
using UnityEngine;
using LabData;
namespace ViveSR.anipal.Eye
{
pu... | 95eedc795b090f01add5b39e2f35ac71b0e80ae1 | [
"Markdown",
"C#"
] | 7 | C# | c8610290927/Eye-Tracking | 892b891fcaa3bff73993f4a9b5eafcf721e7642f | 950eac69b5f30fa6b6b1d70623e2e7949c51004e |
refs/heads/master | <repo_name>joyabia/p4<file_sep>/app/Http/Controllers/AttendanceController.php
<?php
namespace p4\Http\Controllers;
//use Illuminate\Http\Request;
use Auth;
use p4\Http\Requests;
use p4\Http\Controllers\Controller;
use Request;
use p4\Http\Requests\AttendanceFormRequest;
class AttendanceController extends Controller... | 5d60a5c8f14cbe5a5ce867f5e077d170353b2ae5 | [
"Markdown",
"PHP"
] | 8 | PHP | joyabia/p4 | c762c9a372154e7679082195c2f7bf8ac40ef071 | ec6a79a2a3cf29399b63114b0af84880771d6f56 |
refs/heads/master | <file_sep>#include <wiringPi.h>
#include <wiringSerial.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <stdint.h>
FILE *fp;
int fp2;
void intHandler(int dummy) {
fclose(fp);
exit(1);
}
int main (){
signal(SI... | 1cdffe508b56db935538d0f054ae5c957aa9db68 | [
"C"
] | 1 | C | thesilicon014/cubesat | 30894bfff725c53ba73f72cbe7152410f34a3dcd | b519210b0aaa1b8c32b1921f6661c957a1346bcf |
refs/heads/master | <repo_name>SJSURoboticsTeam/website-2019<file_sep>/README.md
Plain ol' website for SJSU Robotics based on the SCEv3 2015 website layout created by <NAME>.<file_sep>/js/main.js
"use strict";
(function($) {
//// Function that determines when to make the nav bar transparent or not
var menu_color_function = function() {... | 534a3e4db177e248c1cfea5882f1a075f3f70e52 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | SJSURoboticsTeam/website-2019 | 54a5319ce39e87f0f4f31720622a9cd7f42b61da | 4366f020c2d43e88a253daf96c12abcdafbf5872 |
refs/heads/master | <repo_name>jayd2446/cuda_html_navbar<file_sep>/__init__.py
import os
from cudatext import *
import re
fn_config = os.path.join(app_path(APP_DIR_SETTINGS), 'cuda_html_navbar.ini')
class Command:
def add_button(self,text):
toolbar_proc(self.form_to_toolbar[self.tab_to_form[ed.get_prop(PROP_TAB_ID)]], TOOLB... | 297416688478ba71b777649fee7bbe20961f9961 | [
"Python"
] | 1 | Python | jayd2446/cuda_html_navbar | 322ed9724d048e7f88842df5b2744b2df552e3a5 | 833717b98feec59b1f8756faf48e3ebe2a08ce9c |
refs/heads/master | <repo_name>81-javascript-bootcamp/4hafta-odev-fatihcandev<file_sep>/src/scripts/main.js
import movies from "./data.js";
import filterByGenre from "../utils/filterByGenre.js";
import filterBySearchValue from "../utils/filterBySearchValue.js";
import filterByYear from "../utils/filterByYear.js";
import changeRowBgColor ... | 385c21b52693bdbbbf732cf3b10059117764d105 | [
"JavaScript"
] | 6 | JavaScript | 81-javascript-bootcamp/4hafta-odev-fatihcandev | 174e992f97113014d6c2e97b751b02f14765f652 | 40131e303d058cd9d807bbf079541ab421953b28 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.