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 | <file_sep>#!/usr/bin/env bash
# deploy script for kubernetes cluster to google cloud
# build our production images for pushing to hub
docker build -t bennettdixon16/multi-client:latest -t bennettdixon16/multi-client:$GIT_SHA -f ./client/Dockerfile ./client
docker build -t bennettdixon16/multi-server:latest -t bennettd... | b4ad7bbcf283bb68f18134343e3a5703f99eb624 | [
"Shell"
] | 1 | Shell | BennettDixon/multi-gke-k8s | 802e833f754ab63c45fb7596c203a9b9c519f651 | 27db8b3c68fe7bb267c8571bc885afc86123b941 |
refs/heads/master | <file_sep>#ifndef VOROPP_V_CONNECT_HH
#define VOROPP_V_CONNECT_HH
//To be used with voro++ to get full connectivity information
using namespace std;
#include "voro++_2d.hh"
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <vector>
namespace voro{
class v_connect{
public:
double minx,maxx,miny,max... | 5c6e38ef901eec19bb505e69a8d73ccd8d7d3343 | [
"CMake",
"Makefile",
"C++"
] | 46 | C++ | chr1shr/voro | 56d619faf3479313399516ad71c32773c29be859 | 355964f00b130d2619e2419e0250b7fe1c175391 |
refs/heads/main | <repo_name>Mequidi/Banana-Talk<file_sep>/main.js
var btntranslate = document.querySelector("#translate");
btntranslate.addEventListener("click",clickEventHandler);
var translateinput = document.querySelector("#txtinput");
var translateoutput = document.querySelector("#translate-box");
var url = "https://api.funtrans... | 3bc98559bf0ec9b7e36f5c04aaba545bbca7799a | [
"JavaScript",
"HTML",
"Markdown"
] | 3 | JavaScript | Mequidi/Banana-Talk | 294862913ef27a9da50856394087a3b3b07c3d07 | 184e11247892eeb125a11e055a7e9580bc20c61a |
refs/heads/master | <file_sep><?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Auth;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
// this issue is caused by Auth::user() hasn't b... | 1a745fe87bd270c1a61c903c37c6b1ad616e2791 | [
"JavaScript",
"PHP"
] | 32 | PHP | lynkxyz/webmovie.dev | 5d933616e1f08043682b4b04ee0e61429df4ad7c | 67a78a6c01955cb5f697a946d991d8b0769f52de |
refs/heads/master | <repo_name>btupper/tooliklake_sed<file_sep>/TL_R.R
library(tidyverse)
library(readxl)
library(ggpubr)
library(ggplot2)
# Significant taxa
metadata<- read_excel(path="TL_metadata.xlsx")
tooll.tax <- read_tsv("tooll.otu.taxonomy") %>%
rename_all(tolower) %>%
mutate(taxonomy=str_replace_all(string=taxonomy, pattern=... | 44707a73833775e6160ce0c7c8b829441549fc8d | [
"R"
] | 1 | R | btupper/tooliklake_sed | 8559a21028b60ec4daf2515d7d391d90ee56ec67 | dce3832df42c253e06d99ebc7479980734c04971 |
refs/heads/master | <repo_name>ratanakpek007/MaterialDemo<file_sep>/app/src/main/java/delivery/food/materialtablayout/MainActivity.kt
package delivery.food.materialtablayout
import android.os.Bundle
import android.support.design.widget.NavigationView
import android.support.v4.view.GravityCompat
import android.support.v7.app.ActionBarDraw... | faeebf7b8cf4b1be2f21a097d116c4d3509e5677 | [
"Kotlin"
] | 1 | Kotlin | ratanakpek007/MaterialDemo | cb3b49bce980e5f835868c1bce1ac06190047c9b | 186a9cc062b738b3d560beb790a94e2170e9c35c |
refs/heads/master | <file_sep>import xml.etree.ElementTree as ElementTree
def login(username, password):
iq_el = ElementTree.Element('iq')
iq_el.set('type', 'set')
query_el = ElementTree.Element('query')
query_el.set('xmlns', 'jabber:iq:auth')
iq_el.append(query_el)
username_el = ElementTree.Element('username')
username_el.text =... | c0dbd89bdad1581559702cfd9cb8340e50fe5ac2 | [
"Python"
] | 4 | Python | ogitaki/xmpp-bot | f9af6e36411e0d605a905e85622b616d5098b82b | b35b2d3da2a349c5c6fbcad0b9c2a597e35823b2 |
refs/heads/master | <file_sep>#include "pch.h"
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
int main()
{
int miesiac,rok,dzien;
int wskazany_miesiac;
long przesuniecie_dni = 0;
int dodane_lata = 0;
int c = 0;
int p = 1;
int reszta = 0;
int dni = 0;
int ilosc_dni = 0;
int poczatek_tygodnia = 0;... | 5298d1cc334b4814a41dbc92fcb0b58a37938d9f | [
"Markdown",
"C++"
] | 2 | C++ | MateuszRodak/Calendar_Generator | da3811fa01292d0d95f42741e0675eb7d0ec7aea | 269af2863ec7ef4f1bc84c6e82cf440dab9bf511 |
refs/heads/master | <file_sep>package nano
import (
"net/http"
"testing"
)
func TestValidator(t *testing.T) {
type Person struct {
Name string `form:"name" json:"name" rules:"required"`
Gender string `form:"gender" json:"gender" rules:"required"`
Email string `form:"email" json:"email" rules:"required"`
P... | 4c387ff3b637f8bc45f21ea12e6a4ce89a072590 | [
"Go"
] | 6 | Go | chgruver/nano | ceb4250c44074b7d9381295c31feaeaf0f9bc338 | 145414e91f40439623fd2c070910b2e3cabdd7d5 |
refs/heads/master | <file_sep>/* TODO
* Distributed hubs - only one hub sends/receives data, the others process
* - socket.io has built-in support
* Validate namespace name - mus not have _ as first char
* Use webtorrent for initial download - get most common version
* Is hasOwnProperty really needed?
* Website builtin
* Common pac... | bbdc930b095de0a9d4f9d2da246f38f34e7654a7 | [
"JavaScript"
] | 1 | JavaScript | somebody1234/distributive | 6408a2d75dc98707ce2bea762cb154666e89bcef | b58799cd14434a16c780d37dff55801d6fdc4665 |
refs/heads/master | <file_sep>"""
Provides XML rendering support.
"""
from __future__ import unicode_literals
from django.utils import six
from django.utils.xmlutils import SimplerXMLGenerator
from django.utils.six.moves import StringIO
from django.utils.encoding import force_text
from rest_framework.renderers import BaseRenderer
class... | 0b2b5e739215500684e5203024a722c0965a68ff | [
"Python"
] | 1 | Python | CloudNcodeInc/django-rest-framework-xml | ed1a51a695b758c7ad15748145fb22635d910b13 | a0bc0051f0afa68703322500c1f12b8ca2e50d87 |
refs/heads/main | <file_sep># Friends List App
Hello, my name is <NAME> and I'm learning Ruby on Rails. <br/>
Here is my Friends List APP https://railsfriends7.herokuapp.com <br/>
Backend: Ruby on Rails <br/>
Frontend: Bootstrap <br/>
Database: PostgreSQL <br/>
Other: Devise <br/>
<file_sep>class HomeController < ApplicationController... | c8eb2c868b3e0d933956b0841772db85eb6989ae | [
"Markdown",
"Ruby"
] | 2 | Markdown | henry9779/CRUD-RailsFriends | 8212f4da930a620a14f1e4cc033c26a31f5416ee | e7d323ee2ae0c5ee0ea830ea24be4bde76f8f114 |
refs/heads/master | <file_sep># PA Fair Funding Formula Interactive Map
An interactive map which shows how each of Pennsylvania's 500 school districts' funding allocation from the state will change based on the new fair funding formula. As of the time of the making of this map, only 5.98% of the state's allocated funds are re-routed to s... | 8a6e7de8489415cd2e304a3191ddce5d684df980 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | eneedham/pa_fair_funding_formula_map | f500fe74001cb7be7e7cedd185d2f210346dd4f6 | e93b5be50e1089b5749ddb728ccd22e715622670 |
refs/heads/master | <file_sep>import HelloService from "../services/Hello.service";
export default {
Query: {
hello() {
return HelloService.hello();
}
},
Mutation: {
saySomting(obj: any, { name }: any) {
console.log(obj, name, "aaa perro");
return HelloService.hello();
}
}
};
<file_sep>import fs... | cbc8c9b000ac178ce9ffa637c746b3f0d6df3a16 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | capdilla/nodejs-ts-gql-boilerplate | 7b5b24dc5cc98c3dac960e393902073f1a74bbd7 | ada699f56b9b7cc94314658705c9523cee1f00fd |
refs/heads/master | <file_sep>import React from 'react'
import Card from 'reactstrap/lib/Card'
import CardBody from 'reactstrap/lib/CardBody'
import Col from 'reactstrap/lib/Col'
import Container from 'reactstrap/lib/Container'
import Row from 'reactstrap/lib/Row'
function Interfaces({myref}) {
return (
<section className="section ... | 3e69cfadbc6395ef0e705f653f6a5ac93c52e2ca | [
"JavaScript"
] | 2 | JavaScript | johnkatua/portfolio | 5514c3c2ee0cd73f793ab5f6a9bd5973716baf75 | f6e3467256b4b5b7cd4f5121682266803e21861a |
refs/heads/master | <repo_name>kawn2103/FCBookReview<file_sep>/app/src/main/java/kst/app/fcbookreview/MainActivity.kt
package kst.app.fcbookreview
import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.KeyEv... | c0710bb632a6b6044bc0ddb991d0930b8a0281a9 | [
"Kotlin"
] | 3 | Kotlin | kawn2103/FCBookReview | b3145403a19fe96613ff851a078e6d7275bedf1a | 8658ade504696a365111e8e0c155ae267882deb2 |
refs/heads/master | <file_sep>const express = require('express');
const bodyParser = require('body-parser');
const mongoose = require('mongoose');
const session = require('express-session');
const MongoStore = require('connect-mongo')(session);
const Item = require('./models/item');
const User = require('./models/user');
const ItemList =... | 703307a3cee85556c84064c70528145e30c0b200 | [
"JavaScript"
] | 1 | JavaScript | msr0b0t/to-do-list | 6196c167b602b852dc1e4942c0daeb2f66ef1b62 | 3ba01e85444d66b8eea3e5b631abe8a0aa6bca54 |
refs/heads/master | <file_sep>package com.example.dao;
import com.example.dto.SchoolDto;
import com.example.entity.School;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by lopez on 2017/2/27.
*/
@Repository
@Mapper
public interface Sch... | 07e6994f2160912cc8f57acc67284655d3e55fcb | [
"Markdown",
"Java"
] | 6 | Java | itlopez/springboot_Redis | 3cff4e73ae5023907f4b396969fdd6e59848269e | a3edc680b61c6962deeff6354dab67234b8309f8 |
refs/heads/master | <file_sep>import random
import numpy as np
from scipy.stats import norm
import matplotlib.pyplot as plt
MIN = 1
MAX = 10
data = np.random.randint(low = MIN*100, high = MAX * 100 + 1, size = (100, 5))
dataf = np.array(data, dtype = np.float64)/100
#avreage on rows
datamean = np.mean(dataf,axis = 0)
da... | 66fea215697ec6bea667739e1cd75240cc4a3843 | [
"Python"
] | 1 | Python | AndreiCarabelea/anomalyDetection- | 93b877455f0831389270a7b7815fc367c178404a | 874cf8a87a9adc3a9a370159c9624df2b8abc0aa |
refs/heads/master | <repo_name>krzpob/machinelearning<file_sep>/recognize-letter/src/main/java/pl/javasoft/recognizeletter/NormalNode.java
package pl.javasoft.recognizeletter;
import java.util.Arrays;
import java.util.stream.Stream;
public class NormalNode extends RegullarNode implements Node{
private double corection=0.3;
publ... | a50be50b61fc0f714144913cd2eae59556610e84 | [
"Markdown",
"Java"
] | 6 | Java | krzpob/machinelearning | b3a13ee13e4682dbf02f6d59f361e2437e66ae9a | 41db56665e0da5d2bdeec72898c5bdf004d9d130 |
refs/heads/master | <file_sep>
# Typography
This project was initialy to try out Modular Scale and some JavaScript, but now I'm going to "100%" the stylesheet, in my mind.
I believe I only have two things to do before that's done; add Form styling and then figure out the Line Height for Headers, and maybe tweak the Blockquotes.
Here ar... | 9ac2d6aa47cac38b28473d5eebb9c094e79d4f2c | [
"Markdown",
"JavaScript"
] | 2 | Markdown | VoxelDavid/typography | 21f270eaa46e2ca9bb8f16fa6de341175da7141c | c6628735749313d77ac1da1f84a53e5df80c26fd |
refs/heads/master | <file_sep># reddit-history
Simple script to scrape reddit comment history.
1. `$ git clone https://github.com/mikechabot/reddit-history.git`
2. `$ pip install praw`
3. Rename `praw.default.ini` to `praw.ini`.
4. Add your client ID, client secret, username and password to `praw.ini`.
5. Update `reddit-history.py` with... | 6ad1e736c4cf7f7176b1f529f8a715a4140af09f | [
"Markdown",
"Python"
] | 2 | Markdown | mikechabot/reddit-history | 1ddaecfe21281d3d246a0e352e05b9cca5ddd8c1 | 0792d06d5441315e5b10dd282a1d53cdf8b20af8 |
refs/heads/master | <repo_name>mmg1/dynamic-linq-injection<file_sep>/Makefile
run: DynamicLinq/bin/Debug/DynamicLinq.exe
@#@mono $<
DynamicLinq/bin/Debug/DynamicLinq.exe: DynamicLinq/Program.cs
@xbuild DynamicLinq.sln
<file_sep>/DynamicLinq.Test/ExploitTest.cs
using System;
using System.Net;
using System.Linq;
using System.Linq.Dynam... | 117bc95d0ea6b619388e15adc6a9960bb8517b92 | [
"C#",
"Makefile"
] | 3 | Makefile | mmg1/dynamic-linq-injection | 75cddb120f85ca6fb884e3639dd03bea7ec2a639 | f859b8b67e32979abf6c3d4e432197145821db96 |
refs/heads/master | <file_sep>window.addEventListener('DOMContentLoaded', function(){
let element = document.querySelector('#writing_text');
var typed = new Typed( element, {
strings: ['am a front-end web developer', 'love coding so much', 'am ready to solve your problems'],
typeSpeed: 30,
backSpeed: 40,
... | ad076ab0300376db3ae4708683b8f3c07dcc5aef | [
"JavaScript"
] | 1 | JavaScript | beep-31/portfolio | add3c1e8c914a9d3e39dd41eeb659a035ec718b9 | 45b6f44c7679fea52e11ce751364eb8f97ff5caf |
refs/heads/master | <repo_name>jemmeli/angular-REST-EXPRESS-Mongoose-lab11<file_sep>/README.md
# angular-REST-EXPRESS-Mongoose-lab11
##Développement du service à partir de zéro
voir angular-REST-EXPRESS-Mongoose-lab11-1 pour voir la "creating service using scaffolding" using (express-mongoose-generator) - https://www.npmjs.com/package/e... | bbfee4dab8edff30b29be50bda18711c470d1c7d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | jemmeli/angular-REST-EXPRESS-Mongoose-lab11 | c536f7717d8c6c11599eb96018c5698fa76ce72a | fc9dec692f094206aeb3cd7933ecbf566f9eb902 |
refs/heads/master | <repo_name>Mapkin/wordutils<file_sep>/wordutils/utils.py
from __future__ import division
def split_num(n, s):
"""
Split n into groups of size s numbers starting from the least
significant digit
>>> split_num(123, 2)
[1, 23]
>>> split_num(12345, 3)
[12, 345]
>>> split_num(123, 4)
... | 8c9c68f2ff28668fd010576884ef61d717a0a3a0 | [
"Markdown",
"Python"
] | 6 | Python | Mapkin/wordutils | 029e3a2254a8ba273dc735749ef1dafc45fea67a | 5dd81732849cae37d7c27000d57bb6a9e8922314 |
refs/heads/master | <file_sep>const csvFilePath = './data/full/routes.csv';
const airportsCsv = './data/full/airports.csv';
const csv = require('csvtojson');
var express = require("express");
var app = express();
var methods = {
validateInput: async function(input){
if(input.length !== 3){
return false;
}
var allAirports = awa... | 65098393580331aa64a82c4552fcf3e3aa68b64f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | eli-h/back-end-take-home | 1bf4694551626accff3391ffc8a7cf1590433c7f | 7e3985aca430bf7393185d6ed8cf15eebf2dce72 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GameFramework;
using GameFramework.Procedure;
using UnityGameFramework.Runtime;
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
namespace GameMenu
{
public class Proce... | 219c47c4a8eb1bd3e4ac516f7aaf902aecde37f4 | [
"C#"
] | 2 | C# | ZPCH/PE | 726640914678a0fbef091f67dbc296aa9054e9f7 | 6551d7111e520f17643d7a6c42916a5d75cd727f |
refs/heads/master | <repo_name>Pahkel/video-stream-rpi<file_sep>/stream.py
from flask import Flask, render_template
app=Flask(__name__)
@app.route("/jwplayer")
def jwplayer():
return render_template('jwplayer.html')
@app.route("/strobemediaplayer")
def strobemediaplayer():
return render_template('strobemediaplayer.html')
if __name__... | 3ba6293b8a99ef90846ce8b3a05eb73d0e919a2b | [
"Markdown",
"Python"
] | 2 | Python | Pahkel/video-stream-rpi | 5267e404978a4ab7ac4e66306d38ede4909ee85a | 0e5137a59e85c32462732b366f7275922738213e |
refs/heads/master | <file_sep>## The overall function calculates the inverse of a matrix
## To be more efficient, it caches the result, and will not recalculate
## should the result already exist
## Function to create and compute a list of operands: set, get, setinv, and getinv
makeCacheMatrix <- function(x = matrix()) {
# sets x equa... | f16ccc3db517c98b6a52b6797e856b8059cd6286 | [
"R"
] | 1 | R | schlumpi787/ProgrammingAssignment2 | 72a14685042b9e622039b7f480cf72152df27ff8 | 46794b69d76237b58077c247a8a1a2909523e4b1 |
refs/heads/main | <repo_name>ibrahim-mustafa555/E-shopping<file_sep>/src/app/product-card/product-card.component.ts
import { CartServiceService } from "./../shared/cartService.service";
import { Product } from "./../shared/product.modle";
import { Component, Input, OnInit } from "@angular/core";
import { ProductsService } from "../share... | dc9ec86ead1904166e8d39026c1a42cfba94c6ed | [
"TypeScript"
] | 16 | TypeScript | ibrahim-mustafa555/E-shopping | a63f8a7794547d5b921334f71152b0db6f532169 | 2f7877ab4d7cbf47b487e3f9abc2d3a19f850be3 |
refs/heads/master | <repo_name>opticalone/meeth<file_sep>/MeethLib/transform.cpp
#include "transform.h"
#include "sfwdraw.h"
#include <iostream>
Transform::Transform()
{
position = vec2{ 0,0 };
dimension = vec2{ 0,0 };
angle = 0;
e_parent = nullptr;
}
mat3 Transform::getLocalTransform() const
{
return translate(position)*scale(dime... | 418e3f30c97ee058b5f60bbe1bf96357e47200d1 | [
"C",
"C++"
] | 19 | C++ | opticalone/meeth | 263f48521a852b3e508100a109c71a70433df828 | 091d4a391e323d7a9876563d3fecd7cbecbba5cd |
refs/heads/master | <repo_name>Kirikou974/ModernWorkplaceConcierge<file_sep>/ModernWorkplaceConcierge/Controllers/IntuneController.cs
using Microsoft.Graph;
using ModernWorkplaceConcierge.Helpers;
using ModernWorkplaceConcierge.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using Sys... | 9c5d8905476dc94385a7470a0b4d551aab722a73 | [
"C#"
] | 1 | C# | Kirikou974/ModernWorkplaceConcierge | 51c432faf33dd04986d6da8953ff63f2be92dbac | a99ea3a170921f44b067ee2b45277c1580c6af89 |
refs/heads/master | <repo_name>vladimirtsua/goit-js-hw-11-timer<file_sep>/src/js/timer.js
class CountdownTimer {
constructor({ selector, targetDate, name }) {
this.selector = selector;
this.targetDate = targetDate;
this.name = name;
this.currentDate;
this.deltaTime;
this.currentDate;
}
inser... | dc03115c5eadfc438ab4f65e80ea201b16a5f183 | [
"JavaScript"
] | 1 | JavaScript | vladimirtsua/goit-js-hw-11-timer | 054c252140c83af08c5a126292343b7df3467665 | abef4ef786c994e5b063619c37333cad31a58f75 |
refs/heads/master | <file_sep><!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<... | 277b7f31db3a865c7302b5d40841a5b9cbaf19c0 | [
"PHP"
] | 5 | PHP | quangbui205/Array-vs-Function-in-PHP | 08cb6a226d3f1d1841a4a4087a7c0c9e33f953e2 | cb0e910b18fc253e19dbf8b83d6ee4b6ae69107a |
refs/heads/master | <repo_name>Kaef/java-lessons<file_sep>/src/test/java/pl/kszafran/lessons/language/ObjectsAndReferences.java
package pl.kszafran.lessons.language;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static pl.kszafran.lessons.Utils.print;
/**
* @author <NAME>
*/
public class ObjectsAnd... | ea56a0bc19c787592b284288e67658a961b2fc1f | [
"Java",
"Text"
] | 8 | Java | Kaef/java-lessons | 48efbc8eb1304d3f928c39e077bfd16333afcf2f | 914a139fbbf76a86df38abbeada0e0a3c7685356 |
refs/heads/develop | <repo_name>4711-Lab6/starter-caboose<file_sep>/readme.rst
###################################
Tutorial 5 Starter Webapp - Caboose
###################################
This is the starter webapp for CodeIgniter Tutorial #5.
Unlike an earlier version, this version is fully functional, just feature incomplete.
The proje... | d09d092f538fbe90229a14fce5b2beb65588fb0f | [
"SQL",
"PHP",
"reStructuredText"
] | 4 | reStructuredText | 4711-Lab6/starter-caboose | 0416a70a6480fa7cd285a9d828eceacb6d048e66 | ccd9ca5ed024d66298adc8cba29c89e665277612 |
refs/heads/master | <file_sep>import { computedFrom, bindable } from 'aurelia-framework';
import { BookModel } from './../../models/book-model';
export class BookStats {
@bindable books: BookModel[];
@bindable originalNumberOfBooks: number;
@computedFrom('originalNumberOfBooks', 'books.length')
get addedBooks() {
return thi... | 056461434eee54b2a208631f296899ea3e132331 | [
"Markdown",
"TypeScript"
] | 15 | TypeScript | johnolivieri/Aurelia | c760232dccd33eeafabd66c3565131293e674ccf | 0fcdf36ce1749b6174a98c500d89bc9492781df6 |
refs/heads/master | <repo_name>divyansshhh/Daemon-Labs-Webpage<file_sep>/js/script.js
(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && ... | 18686d5797180985b879d66f56863d5b68c9cb8f | [
"JavaScript"
] | 1 | JavaScript | divyansshhh/Daemon-Labs-Webpage | 752055e0d5bc045308ba4d0a61e129710a53cb67 | c06ad3bda28323a085c2585060f738c60862cc98 |
refs/heads/master | <file_sep>const email = document.getElementById("email");
const asunto = document.getElementById("asunto");
const mensaje = document.getElementById("mensaje");
const btnEnviar = document.getElementById("enviar");
const formulario = document.getElementById('enviar-mail')
const btnReset = document.getElementById('resetBt... | bce2b0f10d91b89d17cf8ec8498672cb59b9c7a0 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mrneurus/form-js | c52629d16686fd6e2417b862ca458482bdf46b1d | 6e38975439dd1d8fcce49d719c742189a4c41dc5 |
refs/heads/master | <file_sep>/**
* Simple utility class to read/write and other ops for fileSystem while making them promise based.
*/
import * as fs from 'fs'
/**
* Function to promise base write a file to disk
* Enconding defaults to 'utf8'
* @param param0
*/
export const WriteToFile = ({ fileName, content, enconding = 'utf8' }... | 0f26d078f35023f0128fc20631e8dd8c48a1e7a3 | [
"Markdown",
"TypeScript"
] | 14 | TypeScript | KaiHotz/WhatsAppJS | ee968ab86682dbf794d8a09eaf6ee7836b11a68a | 3a1feccb9d63b827a56515104e9ec2b5fd3abc54 |
refs/heads/master | <repo_name>IsseW/PyGame<file_sep>/Function/Complex.py
import pygame
import math
import pygame.gfxdraw
import cmath
pygame.init()
def PSqrd(a, b):
return a * a + b * b
xMin = -5
yMin = -5
xMax = 5
yMax = 5
width = xMax - xMin
height = yMax - yMin
diagonalSqrd = max(PSqrd(xMax, yMax), PSqrd(xMax, yMin), PSqrd(xMi... | 70a9867165e1f1b1e7049552bc094a0cc4a08284 | [
"Python"
] | 16 | Python | IsseW/PyGame | 6a48893d70d54a743ef695298cb04acb57cce1af | 1405f214ade1b9814fcc6326b10fb773437fc21d |
refs/heads/master | <repo_name>whoe/javascript-task-6<file_sep>/lib.js
'use strict';
/**
* Итератор по друзьям
* @constructor
* @param {Object[]} friends
* @param {Filter} filter
*/
function Iterator(friends, filter) {
if (!(filter instanceof Filter)) {
throw new TypeError('Bad filter');
}
this._friends = friends... | c863c4ee401a53c3abbed8139e4c959b770fb24a | [
"JavaScript"
] | 1 | JavaScript | whoe/javascript-task-6 | 15862bdc19a8fb356a5110515af3adb5393e678c | dde4e50e70d29f5e737c9e9fa3299cc02bee5a01 |
refs/heads/master | <file_sep>
/********************
In this exercise, we will be creating a function that takes in two numbers and returns the sum
Step 1. Create and declare a function,
that takes in two parameters
Step 2. In the function body, add both
numbers together and return the sum
Step 3. Call the function
For extra credit, ... | 9be7966802bdad8668f1c6c40c7aa84a4295ad59 | [
"JavaScript"
] | 1 | JavaScript | askappsacademy/session-2-1-arthiatsr | 7a9b20475f669b1ff06a9c7f0792a3a836c5c7fd | 2977f90b8c88e6ae7d03a2ec4197ec5629bd3cad |
refs/heads/master | <repo_name>harish1227/DFNT<file_sep>/README.md
<!--# DFNT
project loading
use git push -f github master to push files -->
<file_sep>/config.js
const
action = require( 'tempaw-functions' ).action,
preset = require( './custom-presets' );
module.exports = {
livedemo: {
enable: true,
server: {
baseDir: `dev/`,
... | c357ef729d8ae8f35faf71d928f4076db2794625 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | harish1227/DFNT | 9af895d9bb6f6c340264ab9defdde6bcc5fc3ebd | 88b360e6f7a2651797a173b24a6a07bbdd42fed0 |
refs/heads/main | <repo_name>simbathesailor/react<file_sep>/fixtures/flight/src/cjs/Counter3.js
'use client';
const {Counter} = require('../Counter.js');
module.exports = Promise.resolve(Counter);
<file_sep>/fixtures/flight/src/Container.js
import * as React from 'react';
export default function Container({children}) {
console.log('... | 27b8bc7844dbb4ee13b98dbe60b32c27694af592 | [
"JavaScript"
] | 2 | JavaScript | simbathesailor/react | 684166dd919209797b89696f79f17f87cf1467a6 | 1d71d58b0e39f798e57666e4b0643dc99722e056 |
refs/heads/master | <repo_name>gspandy/Rythm<file_sep>/src/main/java/com/greenlaw110/rythm/internal/parser/build_in/ContinueParser.java
package com.greenlaw110.rythm.internal.parser.build_in;
import com.greenlaw110.rythm.exception.ParseException;
import com.greenlaw110.rythm.internal.Keyword;
import com.greenlaw110.rythm.internal.dialect... | 7a087bc1a5fca0031b3969bb8981bd2ff3b8a007 | [
"Java",
"Ant Build System"
] | 61 | Java | gspandy/Rythm | 7c8670ec02e249aa8086b27b0161a31fdff83de9 | b05555caca6e59c14d892d5182f007c8ee6971f8 |
refs/heads/master | <repo_name>cankei/tic-tac-toe<file_sep>/README.md
# tic-tac-toe
A basic Tic-tac-toe written with AngularJs.
Play it online:
https://tic-tac-toe-dc865.firebaseapp.com
### Get started
Install dependencies: `npm install`
Run unit tests: `npm test`
Open the app in browser: `npm start`
### To-do list
* Make "Restart... | 1d7e19b6856d608631a9ab7a0b86706cd2c94547 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | cankei/tic-tac-toe | 661774eea5ccc821ad439b84e594cc19843c146c | ba142bf89d4b0f6a3465fbbee297915c6504caf7 |
refs/heads/master | <repo_name>thisisdevelopment/redis-mt<file_sep>/README.md
# redis-mt
Status: POC
A redis proxy which provides multi-tenancy for redis.
- each user can only see his own data
- reverse dns is used to determine the username (kubernetes namespace name)
- all keys are automagically prefixed with "<user>:"
- users are au... | fc2af5ee80e934e489f0842b0b7a3a6a096a8e35 | [
"Markdown",
"Go Module",
"Go"
] | 3 | Markdown | thisisdevelopment/redis-mt | 8c8a1fc1569c3b892b11d3e55c83aaa3d7758753 | 5f7832ef34ab66e17151a07e89d86324d716d1ea |
HEAD | <repo_name>betasve/osra<file_sep>/app/admin/sponsorship.rb
ActiveAdmin.register Sponsorship do
menu if: proc { false }
actions :new, :create
belongs_to :sponsor
form do
panel 'Sponsor' do
h3 sponsorship.sponsor_name
para link_to 'Return to Sponsor page', admin_sponsor_path(sponsorship.sponsor)
... | fd54b564e0041b5d4d5c283f17c66db3fb106400 | [
"Ruby"
] | 19 | Ruby | betasve/osra | 44c30b4ee288710e0f0a1aad59dc264b1c573461 | e2610b8f8c21020167162c5c9d07e2aa9cd5d6a2 |
refs/heads/main | <repo_name>poyo46/lilili<file_sep>/bin/check
#!/bin/bash
echo "***** black *****"
black --check .
echo "***** flake8 *****"
flake8
echo "***** isort *****"
isort --check .
echo "***** xenon *****"
xenon --max-absolute B --max-modules A --max-average A lilili tests
<file_sep>/bin/format
#!/bin/bash
echo "***** blac... | e2b1de158d7aed271fe32b588ab9b94b048b4837 | [
"TOML",
"Markdown",
"INI",
"Python",
"Shell"
] | 22 | Shell | poyo46/lilili | 5a41491125e712acc2d1d7c8a0ab943964fab95a | e82b5189d984d0a8cd823fc9ac56cd956b77c6e7 |
refs/heads/master | <repo_name>aliastk/TotallyHumanBot<file_sep>/blank_grammar.js
'use strict';
let myRules = {
"intro": ["What is up fellow #human#.", "Greeting fellow, #human# .",
"Welcome to chipr there are no #robot.s# here.",
"Hi I am 100% #human# and not a #robot#."
],
"robot": [
"sentient a.i",
"bot",
"robot",
"machi... | 06b28fcd45f274b79ca633995701d5bd4b199e3f | [
"JavaScript"
] | 1 | JavaScript | aliastk/TotallyHumanBot | dcf7a5b763f8d507b7bb16ddfcec8ef0f124e9ad | 12a80dfb5c0531bbef231530aff55d09f63d6c54 |
refs/heads/master | <file_sep>package com.company.tasks.fourth;
import java.util.Arrays;
import java.util.Scanner;
/**
* Создать программу, которая подсчитывает сколько раз употребляется слово в тексте (без учета регистра).
* Текст и слово вводится вручную.
*/
public class FourthTask {
private String text = new String();
pri... | c1a09b25e793758d815b10e65e243c2da883b853 | [
"Java"
] | 1 | Java | Akrillblack/Senla-Java | 7923ade25b4bc4b946a52ab79bdcee01f8dca1ef | 7055c3d83b13b289260d370a1d40cdee560c20e4 |
refs/heads/master | <repo_name>Mrfatur/faketools<file_sep>/faketools.py
#ss!/bin/bash
# auto mengunduh file <3
# auto menginstall
# author Mr.Froggy
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
im
#This colour
blue='\e[0;34'
cyan='\e[0;3... | 7619dae8f3cbde3f32b057a93c54089cdc494382 | [
"Python"
] | 1 | Python | Mrfatur/faketools | 001ce3579f888c83a5503c4eeb0e6a8605dd85ef | 7991fd309d0cdaf8b72e4ff5d691aa74ef109f9b |
refs/heads/master | <repo_name>jmtrachy/finance-reporting<file_sep>/setup.sh
#!/bin/bash
echo "Adding openjdk repository"
sleep 1.5
add-apt-repository -y ppa:openjdk-r/ppa
echo "Adding elastic search repository"
sleep 1.5
echo "deb https://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/el... | fd14447ad6fa3a5cb33af3f980eba14f12436914 | [
"Shell"
] | 1 | Shell | jmtrachy/finance-reporting | 97b82d1bde7d1240f97d397d068647f3c15b536c | 023a8c45dc41bf389cf13442ef5d2fc17f0d6747 |
refs/heads/master | <repo_name>DoubleJ-x-MoDoLEE/node-pm2<file_sep>/src/server/index.js
import express from 'express';
const app = express();
app.get('/test', (req, res) => {
console.log(new Date().toDateString(), '/test 요청 완료.');
res.json({
message : '/test request success!'
})
});
app.get('/random', (req, res) => {
const r... | 9a96f463a0518fc241e44efe461abcf6a781421c | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | DoubleJ-x-MoDoLEE/node-pm2 | 6a3e78feda973048f2bba618450de34a30185e6b | 98b75b45c0b99bf87a2cac04f03dce0d8704de66 |
refs/heads/main | <repo_name>snprajapati/PackMComments<file_sep>/commentsystem/app/Http/Controllers/Api/CommentController.php
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\ApiBaseController;
use App\Models\Comment;
use Illuminate\Http\Request;
use Validator;
class CommentController extends ApiBaseController
{
... | 50087cc6e34b8837f4a84b57e36c17a9f45d816e | [
"Markdown",
"PHP"
] | 5 | PHP | snprajapati/PackMComments | 8b43bd0900ccdf79fe4a719b7d16495d5a3d05f9 | e753b0de98482cb77fb3bd0689c3389846567711 |
refs/heads/master | <file_sep>import Ember from 'ember';
export default Ember.Route.extend({
model() {
return ['<NAME>', '<NAME>', '<NAME>']
}
});
| d869f1fbb65a9ba026b9cd04a72c69210e89f4b4 | [
"JavaScript"
] | 1 | JavaScript | MattGough/ember_quickstart | b87f6772c1adc577b3cccf13b609c1b893bfefb5 | 26c2368044ba60cd9083cf22d7416e5f5d376ce0 |
refs/heads/master | <repo_name>crukam/myproductlist<file_sep>/src/filter.js
import React from 'react';
class Productfilters extends React.Component
{
constructor(props){
super(props);
this.handleChange=this.handleChange.bind(this);
}
handleChange(e){
const value= e.target[e.target.type==="checkbox"? "checked":"value"]
const name... | 042a6e218a24ad17e9afb37b0332bab83b334be6 | [
"JavaScript"
] | 5 | JavaScript | crukam/myproductlist | 6515e427bbab13211bca54e72d2d8006c65e2183 | 2356241ab2a54a130d05e5debf15a044c3614382 |
refs/heads/master | <file_sep>#pragma once
#include "rendering/colour.hpp"
#include "geometry/vec2.hpp"
#include <vector>
#include <string>
namespace virgil {
////////////////////////////////////////////////////////////////////////////////
// Console
///////////////////////////////////////////////////////////////////////////... | 9ba61e9b3588dbf110d11c8eed8c0e0f8295dd30 | [
"CMake",
"C++"
] | 94 | C++ | zoneB/virgil | 7607d16c00b77d4fe50f680e7d417bb2150bfa77 | ebdb82f5da9073ed5c376486a4700ef9f9247485 |
refs/heads/master | <repo_name>dwclark/ignite-demo<file_sep>/start_server.groovy
#!/bin/bash
export JAVA_OPTS='-Xmx1g -Xms1g'
java -jar build/libs/ignite-demo-0.1.0-all.jar "$@"
<file_sep>/clear_caches.sh
#!/bin/bash
rm -rf /tmp/ignite
rm -rf /var/ignite/*
<file_sep>/build.gradle
plugins {
id 'com.github.johnrengelman.shadow' versio... | 33a05553a04581d62525c30020b0d6a436d316fe | [
"Shell",
"Gradle"
] | 3 | Shell | dwclark/ignite-demo | f8353f59959c0eac9c7c9b2a5201d6e04b243333 | 37ea6ff74b849f38fd6ccaccba8cde8c32096973 |
refs/heads/master | <file_sep>import bgImage1 from '../assets/images/bg-banner.png';
import bgImage2 from '../assets/images/bg-footer.png';
import logo02 from "../assets/images/BM02.png";
export default {
title: 'Components/Background',
};
export const BackgroundBanner = () => {
return /* html */ `
<div class="banner background ba... | 531d6ffa13b273269e1965155ef0e53d9c48cfd2 | [
"JavaScript"
] | 19 | JavaScript | dungdoktpm/bm | adc6e301eb3b1d33f26f1702ff43b74c1db9de1f | f07b32e915bbd15af04ac328d46125e047096d17 |
refs/heads/master | <file_sep>// Brunch automatically concatenates all files in your
// watched paths. Those paths can be configured at
// config.paths.watched in "brunch-config.js".
//
// However, those files will only be executed if
// explicitly imported. The only exception are files
// in vendor, which are never wrapped in imports and... | 8e306de610b03d86dcbe1a21d1bb65836b0cb214 | [
"JavaScript"
] | 1 | JavaScript | afebbraro/tuesday | 4a396c758e1c7ab307e9b94554adbce2217ee851 | a272d2fa16d16322ddec3333b9d95896076d4bc1 |
refs/heads/master | <file_sep>export const columns = [
{
title: "<NAME>",
width: 100,
dataIndex: "name",
key: "name",
fixed: "left"
},
{
title: "Age",
width: 100,
dataIndex: "age",
key: "age",
fixed: "left"
},
{
title: "Column 1",
dataIndex: "address",
key: "1",
width: 250
... | 78883a425e57cc6af9b531c5073acb4aa45b9546 | [
"JavaScript"
] | 1 | JavaScript | Cygra/dui_zhuan | a8b471d96db58ee766e7225143a0f4ae4bb8c1f2 | 3d723419882017a63facb2f7924aa853277aed3d |
refs/heads/master | <file_sep>const {
BN,
ether,
expectEvent,
expectRevert,
time,
balance,
} = require('@openzeppelin/test-helpers');
const { latest } = time;
const { tracker } = balance;
const abi = require('ethereumjs-abi');
const utils = web3.utils;
const { expect } = require('chai');
const { evmRevert, evmSnapshot, toUSDCW... | 9babefa5f7d3e6f85a40d959a6d853c7e8b3852e | [
"JavaScript",
"Markdown",
"Shell"
] | 6 | JavaScript | ksin751119/nftLoan721 | 1cf58e4c77ae5860f5d4ac3444bd47a76efc5ea6 | 13e742c18f8a1e398b64b895ad9ccb3cf0665ce7 |
refs/heads/master | <repo_name>ma-ha/WSO2-Deployer-Maven-Plugin<file_sep>/src/main/java/org/mh/mojo/wso2deployment/helper/Wso2WarDeployer.java
package org.mh.mojo.wso2deployment.helper;
import org.apache.cxf.configuration.jsse.TLSClientParameters;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.frontend.ClientProxy;
import o... | c8a2c5ec9e6880a60d4062d4016db785933a89f1 | [
"Markdown",
"Java",
"Maven POM"
] | 20 | Java | ma-ha/WSO2-Deployer-Maven-Plugin | dab6559801fac487d84350fd2cefc199e908cfbd | a3b9199320d65ee1e5c0243d414097659f782ab6 |
refs/heads/main | <repo_name>invisibleflame/Email_Spam_Classifier<file_sep>/README.md
# Email-Spam-Classifier
Implementation of an end to end email spam classifier using the bidirectional lstm and word tokenizers along with a mild preprocessing and Flask backend.
Data: https://www.kaggle.com/uciml/sms-spam-collection-dataset
Accurac... | 6a529886d496e4d256365d7a5b628a147d054ce3 | [
"Markdown",
"Python"
] | 2 | Markdown | invisibleflame/Email_Spam_Classifier | 4227788e0e998c59ec3547cc63006fc5f8eba249 | 280e7aab0d4906680258058fd4684712509d77a1 |
refs/heads/main | <repo_name>EliasElOtmani/wm_nachrs<file_sep>/dmts_frontex.py
# Each function outputs the trial results for all populations & conditions for a given
# external current, in the following format :
# dmts_<classic>_<Iext>.npy : np.array([VIP, PV, SOM, SOM & PV, All])
import numpy as np
import torch, os
from nump... | 622df8cadb66c59dce702d1e03d81b17db16d08e | [
"Markdown",
"Python",
"Text"
] | 9 | Python | EliasElOtmani/wm_nachrs | ee04e713bc17b2eae18764abac152519e6a0b09c | 9a6cac068c55fd85358d4c43a57f3592464ba750 |
refs/heads/master | <file_sep>use std::path::Path;
use libc::{c_char, dev_t};
use crate::{Device, DeviceType, FromRaw, FromRawWithContext};
/// A libudev context.
pub struct Context {
udev: *mut crate::ffi::udev
}
impl Clone for Context {
fn clone(&self) -> Context {
Context {
udev: unsafe { crate::ffi::ude... | f7563dfd457dbc3bfa50de8173c58744fc0d539d | [
"Rust"
] | 1 | Rust | a1ien/udev-rs | fc123dc463796e59a1863246b952ea005959bee1 | 11fdfc8b8956c02238f74ba9c3fb8acd68df96a3 |
refs/heads/master | <file_sep>#!/bin/sh
# template out all the config files using env vars
sed -i 's/right=.*/right='$VPN_SERVER_IPV4'/' /etc/ipsec.conf
echo ': PSK "'$VPN_PSK'"' > /etc/ipsec.secrets
sed -i 's/lns = .*/lns = '$VPN_SERVER_IPV4'/' /etc/xl2tpd/xl2tpd.conf
sed -i 's/name .*/name '$VPN_USERNAME'/' /etc/ppp/options.l2tpd.cl... | 0179886b3d4d21efb065b6dbf1139a62ff30cc6d | [
"Markdown",
"Dockerfile",
"Shell"
] | 3 | Shell | anynone/l2tp-ipsec-to-shadowsocks | 629894867d4ffc9e4d1b4a00401f6ef4b3421fdf | 1d819e1fc81fc9fca8842e06ceee88f9ee44f2d4 |
refs/heads/master | <repo_name>zailchen/Advanced-ML<file_sep>/CNN_original_trial.py
# -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
import random
import pickle
import os
from sklearn.metrics import roc_auc_score, f1_score
class CCNN(object):
def __init__(self, image_size, num_labels, num_channels, num_hidden,
... | 4c10bac3e5d01d594a444ed09e846e160f5bfd21 | [
"Markdown",
"Python",
"Text"
] | 10 | Python | zailchen/Advanced-ML | 6fc4b9c3c2d6d107711bc208e9584a4780c9ae51 | 3430503c42b7a850f3c6a444f5afed32ad16ea7c |
refs/heads/main | <repo_name>kamils224/STXNext_training_program<file_sep>/api_projects/urls.py
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from api_projects.views import (
ProjectViewSet,
IssueViewSet,
IssueAttachmentDelete,
IssueAttachmentCreate,
)
app_name = "api_projects"
... | 13f53a58840bbfa153c409aee782532ad6003cc1 | [
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 19 | Python | kamils224/STXNext_training_program | cfd75a4865918044f19d0938e54cc5541974cbb2 | 5516a144b5b0cdaf670adb25aaad4b53e192bab6 |
refs/heads/master | <repo_name>thiagolioy/SpaceCatSwift-<file_sep>/SpaceCatSwift/SpaceCatSwift/TitleScene.swift
//
// TitleScene.swift
// SpaceCatSwift
//
// Created by <NAME> on 7/29/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
import SpriteKit
import AVFoundation
class TitleScene: SKScene {
var pressStartSFX:SKA... | be575b66f1ef7de330d0c118b2061916e338b73e | [
"Swift",
"Markdown"
] | 5 | Swift | thiagolioy/SpaceCatSwift- | 01b0aaefd09a6752b50f619fe22776d460102997 | 31fdf7482a7e7d786e255c4f1400acfc3053c0b2 |
refs/heads/master | <file_sep>altura = 1.48
peso = 42.0
imc = peso/ (altura**2)
print (imc)
print ("Muito abaixo do peso?", imc < 17.0)
print ("Abaixo do peso normal?", imc >= 17.0 and imc <= 18.5)
print ("Peso dentro do Normal?", imc > 18.5 and imc <= 25.0)
print ("Acima do peso normal?", imc > 25.0 and imc <= 30.0)
print ("Muito acima d... | ecee26a9ebb31653ad02fc8ac8104c0dc13998dc | [
"Markdown",
"Python"
] | 5 | Python | FabioISD/IMC-1 | d5c5c8730b0e810d0395812b197897db449f1ef7 | 78265ee9393bfa7d80c25b1be156ba77b8c6bf6f |
refs/heads/master | <file_sep>package th.ac.ku.atm.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import th.ac.ku.atm.model.BankAccount;
import th.ac.ku.atm.service.BankAccountService;
@Controller
@RequestMapping("/bankaccount")
public ... | 88da8af6ce62b3d842111c3c9fd5b66f91d2a4f5 | [
"Java"
] | 1 | Java | Powpalida/atm-web | 4a6d6bf8d5d43291c9fa52da9055203412493a3f | 1528fc4289978b94beb7b62bcb9674160e9dc3bf |
refs/heads/master | <repo_name>00steve/engine<file_sep>/physics/ode_utils.h
#ifndef ODE_UTILS_H
#define ODE_UTILS_H
#define dSINGLE
#include <ode/ode.h>
#include <engine/core/double3.h>
dReal* dCross(dReal* a,dReal* b);
double3 to_double3(const dReal *d);
#endif // ODE_UTILS_H
<file_sep>/graphics/camera.h
#ifndef ENGINE_CAMERA_H
#def... | 01f1e0d871d9f1edef6f4d1fa8e0f0e2532cca1e | [
"C",
"C++"
] | 5 | C | 00steve/engine | 7b9bd87e0e782be67b9ee6c3e15ab18b2e0550a3 | 58fb529cfea7c3a4e2ba2e847f920f27e1489e5a |
refs/heads/master | <repo_name>pauljickling/logic-game-solver<file_sep>/README.md
# Logic Game Solver
This is an ongoing effort to write a program that can solve the randomly generated logic game puzzles that occur in Dishonored 2. There are two big challenges I see:
1. Defining randomly generated rules
2. Creating an algorithm that is... | 15e9e635f959c50f9bc23829eee991a6f80754fe | [
"Markdown",
"Rust"
] | 2 | Markdown | pauljickling/logic-game-solver | 3937ef9aeee8ec364faa69fa6a6176c7746e1703 | 34418e25af7a96e625d7ccbaa06c5180c1410499 |
refs/heads/master | <repo_name>dsolovay/ShortConfirmationCodes<file_sep>/src/Policies/ShortConfirmationCodePolicy.cs
using Sitecore.Commerce.Core;
namespace ShortConfirmationCodes.Policies
{
public class ShortConfirmationCodePolicy : Policy
{
public int MaximumRetries { get; set; } = 3;
public int CodeLength { ge... | 0092bc5ae1bce61e24a253db46ecbe823e1621ef | [
"Markdown",
"C#"
] | 5 | C# | dsolovay/ShortConfirmationCodes | d84c7fd20c1fa6af5e684d7ac31c190e912f46a8 | a12e83f4e8bf0881a25feac406cbb3b9550e4bc6 |
refs/heads/master | <file_sep>package com.example.dake10.googletest;
import com.parse.ParseObject;
import com.parse.ParseClassName;
/**
* Created by dake10 on 1/7/16.
*/
@ParseClassName("GeoL")
public class GeoL extends ParseObject {
public String getRootName() {
return getString("rootName");
}
}
<file_sep>package co... | 40fdaa4218ffbcf54582de21ad08896fb0637876 | [
"Java"
] | 2 | Java | dakedroid/Android-GMaps-and-Parse-HelloWorld | e796f11649c14f3df0437998d8a6b4a4ab00d250 | 71e2889c53ac47bd4a273eddd170a2e24e0e3d48 |
refs/heads/main | <repo_name>codeanuj/competive-programming<file_sep>/hackerearth/basicProgramming/CostOfballoons.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
class TestClass {
public static void main(String args[] ) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System... | 5c4d5d60c3323bedae0be9e783ad666033ccac7b | [
"Java"
] | 1 | Java | codeanuj/competive-programming | d81855223c949a2d4d2800fcce9b570c9514b90a | 4382323aa2d6fa92fb71f137a928b3ef0d1ac956 |
refs/heads/master | <repo_name>renzeydood/Project_RPi_Ard_Serial_Generator<file_sep>/main.py
import time as t
from os import path
start_byte = "!"
stop_byte = "~"
total_arduino_to_rpi = 8
total_rpi_to_arduino = 8
# Depending on IDE, pylint will nag if tabs is used instead of spacings
#tab = "\t"
tab = " "
def rpi_code_main():
r... | 3c5b66485d67adb9c28cd8f2cd22d754e21df230 | [
"Markdown",
"Python"
] | 2 | Python | renzeydood/Project_RPi_Ard_Serial_Generator | d3856af69bf5863e693a17423236199e495adfa8 | 8cc88b19f5cc19e0991733898c1127326680b121 |
refs/heads/master | <repo_name>Klye-1002/hello-world<file_sep>/hello/hello/main.cpp
//
// main.cpp
// hello
//
// Created by LemuelLai on 1/13/20.
// Copyright © 2020 LemuelLai. All rights reserved.
//
#include <iostream>
int main(int argc, const char * argv[]) {
// insert code here...
//that's fine.
std::cout << "Hello,... | ada81d58c90e54990bccf1142a8b1a881a497d0f | [
"Markdown",
"C++"
] | 2 | C++ | Klye-1002/hello-world | 2ac4811cf6000da6b128959c8eb867b8671a0693 | dd143bac009c2f65223f73765c48f08ca9ad47f8 |
refs/heads/master | <repo_name>prdevteam/plot-examples<file_sep>/coupons/android/src/com/plotprojects/coupons/ViewCouponActivity.java
package com.plotprojects.coupons;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import com.plotprojects.retail.android.FilterableNotification;
import org.json.JSONO... | fadf7b4ba262522e8946f9f91759453b9811f423 | [
"Markdown",
"Java"
] | 2 | Java | prdevteam/plot-examples | 2f27fbdc96e314933d5c308752d1bc9bc58c0be6 | 67790201260cc001a53a4160fb54dc7c425e2bb1 |
refs/heads/master | <file_sep>class Solution {
int[] decimalValue = {1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1};
String[] roman = {"M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"};
int result = 0;
public int romanToInt(String s)
{
for (int i = 0; i < decimalValue.length; ... | 37e85552e6479d52df9a238f54351a2935d43378 | [
"Markdown",
"Swift",
"C#",
"Java",
"C++"
] | 17 | Java | Inquis1t0r/LeetCode | 0dce4a4d96040b42641130d3c73ad21859bef772 | f8691dd4f8dedac2f9bbe7ac4e12061f00ea84d4 |
refs/heads/master | <file_sep>import platform
from .Encrypt import RainEncrypt
from .core.directory_iter import DirectoryIter
class RainDecrypt(RainEncrypt):
"""
Class intends to reverse the affects of RainEncrypt
Example Usage:
RainDecrypt("AES.key").do_final()
"""
def __init__(self, aes_key_file_path):
... | 34b4fc4d574ab67d80860ee1510edef24fd6014d | [
"Markdown",
"Python"
] | 5 | Python | netindiapro/RainRansomware | 48f232d0b3174c4d1636d55faf10165b801a80ed | 07b3e88d6c840386f99c271f250154c4acb9150f |
refs/heads/master | <file_sep># Bioinformatics
b
<file_sep>#Functional programming in python
#Don’t iterate over lists. Use map and reduce.
#1. Maps: Takes a collection and returns a new one after transforming its elements all in the same way
a=['Hello','World','Okay','cool']
b=map(len, a)
print(list(b))
#map(function, list) -> Ge... | 909acc6cc0fae97e680d2ff089b72e9251b372fc | [
"Markdown",
"Python"
] | 4 | Markdown | s-bhat99/Bioinformatics | c7ba3d949a5c6d7de6d6227714cb9a90462c1f61 | 98342e729fd2e07b18d594182cf94b0a1b965afd |
refs/heads/main | <file_sep># hometasks
Storage repository for "Junior Test Automation Engineer in Java" course
<file_sep>Java - original pretty version
=======================
* <NAME>
* <NAME>
Java - final corrupted version with voilations
=======================================
* <NAME>
JS version
==========
* @SnezhanaM... | 6d1a9f187f7cd0d05b62a6f7f5317970d00de1b0 | [
"Markdown",
"Java"
] | 21 | Markdown | LonelyDragoness/hometasks | 163db75152a39bb2f0bb9ae51858d55a37ec047f | aa6e36088d99bcd564f29cbb8fb743c35a9d8ec4 |
refs/heads/master | <file_sep><?
/*
* <NAME> (<EMAIL>) http://servicecut.nl
*
* @author <NAME>
* @version 0.0.6
*
* Adapted <NAME> TwitterOAuth class for use with FacebookOAuth
*/
/**
* Facebook OAuth 2 class
*/
class FacebookOAuth {
/* Verify SSL Cert. */
public $verifypeer = FALSE;
/* Decode returned json data. */
public $de... | 320b8875e06dad55d0260787f2722b5e1c4dc0a7 | [
"PHP"
] | 1 | PHP | Zae/FacebookOAuth | fd87f1bfdfa5c9763517f06770277a74c3779774 | 7680834f830858013ee126574c0b759810f9a6be |
refs/heads/master | <file_sep>export enum TestConfiguration {
integration = 1,
integrationWithFileGeneration = 2,
isolated = 3
}
<file_sep>import * as spauth from 'node-sp-auth';
import { IAuthOptions, IAuthResponse } from "node-sp-auth";
import * as request from 'request-promise';
import { IMockSPHttpClient } from '.';
import { Nod... | c78e393507faaa0040d2f08e898cdc197fc0e188 | [
"Markdown",
"TypeScript"
] | 13 | TypeScript | mgwojciech/mgwdev-spfx-utfx | 462d15e2ff3cbd9592301aad2229e79576d7f911 | f58978bb4b1aac1abd80e753ebca7d3821fb586a |
refs/heads/master | <repo_name>LogicAndTrick/phoenix<file_sep>/Phoenix/Templating.php
<?php
class Templating
{
static function MakeDirs()
{
if (!file_exists(Phoenix::$app_dir.'/Cache/')) mkdir(Phoenix::$app_dir.'/Cache/');
if (!file_exists(Phoenix::$app_dir.'/Cache/Configs/')) mkdir(Phoenix::$app_dir.'/Cache/Conf... | 2418fe8628d9acd41a2706a052aa521e7d6e1673 | [
"Markdown",
"PHP"
] | 44 | PHP | LogicAndTrick/phoenix | 09803588987992ccf1d472e70bac8e762bb48b71 | 4092e146c32cede21ed0d32773e51c3339ee41d3 |
refs/heads/master | <file_sep>const validUrl = require('valid-url');
const express = require('express');
const config = require('config');
const Item = require('../models/items');
const objectSanitizer = require('../utils/santizer');
const router = express.Router();
// @route GET /api/items
// @access Public for now
// @desc returns a... | c4c2e41900cbaa733435dd122163addfc2b861c0 | [
"JavaScript"
] | 6 | JavaScript | Lucidreline/chest | a60393d93fdabde153ef737dcff561bc82ac42ac | d28aa95f163c48ce52294c6a6933747fa3806f7c |
refs/heads/master | <repo_name>zhdankras/learn-<file_sep>/python/task119.py
# Написать функцию balanced_num, которая определяет является ли заданное число сбалансированным, т.е.
# сумма цифр справа и слева от середины равны (abcde ==> a + b == d + e; abcdef ==> a + b == e + f)
#
# Примеры:
# balanced_num(2222) ==> True
# balanced_num... | 372735c44e4656175f494426b162130bbed31e32 | [
"Python",
"C++"
] | 5 | Python | zhdankras/learn- | c235635450ac4d321c70b81193b44d063cfec70b | 01381e89697b59cf4771ee1ad6cfdd2878bc191b |
refs/heads/master | <repo_name>ganeshharugeri/R_workspace<file_sep>/KrediTechPractice.R
set.seed(212)
#get/check working directory
getwd()
#set working directory
setwd("/Users/ganeshharugeri/Documents/R_workspace/input/kreditechDSTest2017/")
#Import Data Set
#Read file from working directory
filename1 <- paste(c(getwd(),"/Validation.cs... | d18874402f35b99177dd234942b55131db3eab1f | [
"R",
"RMarkdown"
] | 6 | R | ganeshharugeri/R_workspace | 02d69c94ffe543cec9ab2a0a7bead4cc60f6e827 | 6547c1ad6f02548941b5a5b34c4d124fee7958db |
refs/heads/main | <repo_name>andrew-k9/archdots<file_sep>/qtile/images/credit.md
# Attributions for images used in my qtile configuration!
## ghastly.png
<div>Icons made by <a href="https://www.flaticon.com/authors/darius-dan" title="<NAME>"><NAME></a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div... | b42ba3cd9f4bbe4ed5d43ce5c55c78671c341301 | [
"Markdown",
"Python",
"Shell"
] | 7 | Markdown | andrew-k9/archdots | 79e79775864d3fbd56a7410787f23521fdc05497 | 69c535ba160c693419172e63a739f687a6fbcf45 |
refs/heads/main | <repo_name>hamishbray/azure-static-app<file_sep>/src/App.js
import React from 'react';
import Message from './components/Message';
function App({ name }) {
const value = 'World';
return (
<div>
Hello {name || value}, here's your message: <Message />
</div>
);
}
export default App;
| 9771616339a36eb8a47c06ad9ae683ef959b2b21 | [
"JavaScript"
] | 1 | JavaScript | hamishbray/azure-static-app | 4bf5e84c6fe4202f93022dddec04990a304a4119 | e8a175143ba28bce8fbe65162c1bb99d90dc3aff |
refs/heads/master | <file_sep>soundify
========
A dynamic programming algorithm that uses phonetics software to turn input words into other words that sound similar to the input words (try it with names)
<file_sep>import fuzzy
import Levenshtein as pylev
wordlist = []
def initialize():
global wordlist
words = []
with open('/usr/... | 256158493d9baa884cc730906f725cef7e9950e9 | [
"Markdown",
"Python"
] | 2 | Markdown | mbc1990/soundify | ee2f7a3547aca08e2b466e42ff5161adb8817040 | c8b335cab6feb49ec5e1c97e65135b31a0191707 |
refs/heads/master | <file_sep>package com.shpp.p2p.cs.ykohuch.assignment5;
import com.shpp.cs.a.console.TextProgram;
//this program does a mathematical function of adding in to a column
public class Assignment5Part2 extends TextProgram {
public void run() {
/* Sit in a loop, reading numbers and adding them. */
while ... | 203f3b087847824923d204bbe86c70cefc79bfd1 | [
"Java"
] | 2 | Java | yurikoguch/string_parsing | e865e76217eb69cfd5bda2f5131a0f14039223bf | a76587b7f7d9197998fcdd989682c29bb98e2892 |
refs/heads/master | <file_sep>#!/usr/bin/env python
def calcChecksum(Packet): #do not include checksum when calling
checksum = 0x00
for x in range(len(Packet)):
if x>1:
checksum = checksum + Packet[x]
print checksum
checksum = ~checksum
checksum &= 0xFF
Packet.append(checksum)
return Packet
def movePacket(velocity): #i... | 98d6c1dbbeead6905b6f61fa0c283d9845eff569 | [
"Python"
] | 1 | Python | edroderick/Assignments | 59e11ac4fca46890fb939cfe71be118a9cac85cf | 82c0d52132c0b8a5f8674e2ce6afc8594a3b7ed1 |
refs/heads/main | <file_sep>### ( Cómo crear el proyecto )
#### Guía - jsrois
1. Crear una carpeta
```bash
mkdir npm-webpack-template
cd npm-webpack-template
```
Después de crear la carpeta, podemos abrirla con IntelliJ
2. Dentro de la carpeta, inicializar el proyecto npm (esto crea un archivo `package.json`):
```bash
npm init -y
`... | 65082bc2aefdc78d64863150e7ddbfdd6bab03db | [
"Markdown",
"JavaScript"
] | 4 | Markdown | mabicodes/npm-webpack-template | f74367f1cfbb28fad5242dd3c13b76ae1b174643 | 2e0652c41afd98d38c480628e373a22d47a39d4a |
refs/heads/master | <repo_name>QPJIANG/NoteSome<file_sep>/java/java_common/Reflect.md
参考:
<https://www.jianshu.com/p/9be58ee20dee>
<file_sep>/docker/3_storagepath.md
参考: https://blog.csdn.net/wenwenxiong/article/details/78728696
```
sudo docker info | grep "Docker Root Dir" 查存储路径
1. 停docker 服务
2. 移动docker目录
3. 将移动后的目录软连接到移动前的目录
4... | a48388aba68d8bcb16e7edcc9af6aa10f0474320 | [
"Markdown",
"Python"
] | 474 | Markdown | QPJIANG/NoteSome | 5e4e4a898c097702dadc9a1fb262a205713c4653 | 1be837c5dc43656986ae5ef7adcf167b2db5899b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.