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>daniel-farlow/calculus-sandbox<file_sep>/seed-data.sql
CREATE TABLE problems(
id SERIAL PRIMARY KEY,
problem_statement VARCHAR
);
INSERT INTO problems (id, problem_statement)
VALUES
(DEFAULT, 'This would be the first problem.'),
(DEFAULT, 'Solve the following equation: $x^2+4=3$.'),
(DEFAULT, '\begin{a... | 16af339e511b19e8d7411e06714585d7e900b498 | [
"JavaScript",
"SQL"
] | 3 | SQL | daniel-farlow/calculus-sandbox | 95da0ed4bff628ea0a0267e6a45759611cc4f4ba | d17c7e2eb6a8ce69db33500d59506d33f3cf354b |
refs/heads/master | <repo_name>duochen13/Algo<file_sep>/attendenceCheck/opencv_playground.py
import numpy as np
import cv2
# https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_gui/py_image_display/py_image_display.html#display-image
img = cv2.imread('test.png', 0)
cv2.imshow('window name', img)
<file_sep>/README.... | 979bce80a572ba3c9c796e9bc07f06052189c6a6 | [
"Markdown",
"Python"
] | 2 | Python | duochen13/Algo | 4ec6834297a1a9a217d4e704de804eb41282e1d5 | b109d56d59b0b0e5a5142a53f2f2353fe2268474 |
refs/heads/master | <repo_name>amankedia/Python<file_sep>/Data Science in Python/Numpy & It's Array Operations/records&dates.py
import numpy as np
reca = np.array([(1,(2.0,3.0),'hey'),(2,(3.5,4.0),'n')],dtype=[('x',np.int32),('y',np.float64,2),('z',np.str,4)])
print(reca)
print(reca[0])
print(reca['x'])
print(reca['x'][0])
print(reca[0]['... | 7ab05972064f23c9d505d817aa8c9bfa99fcf676 | [
"Python"
] | 15 | Python | amankedia/Python | 5bf2edcc6bcdce882dd3f5d4d50f4b1af09f98b0 | 7be0f74dabf89d8ad17e80c79f0e16d31700e1d9 |
refs/heads/master | <repo_name>mizydorek/pands-problems-2020<file_sep>/Topic07-Files/csv-write.py
import csv
# writing to csv
'''
with open('employee.csv', 'w') as writer:
employee = csv.writer(writer, delimiter=",", quotechar='"', quoting=csv.QUOTE_MINIMAL)
employee.writerow(['<NAME>', 'Accounting', 'November'])
employee.wri... | 22d3a26a9ef13e8c9f2282c9b8311cb1b9e296b5 | [
"Markdown",
"Python"
] | 42 | Python | mizydorek/pands-problems-2020 | a418dcc58e49dfbcb269e4524f676c1c6a0a6255 | a462bb5831dcfc642289482438f35a403b0fd11e |
refs/heads/master | <file_sep>export const installed_blueprints = [
//@BlueprintInsertion
{ name: 'UserProfile185949', human_name: 'User Profile', access_route: 'UserProfile185949'},
{ name: 'Maps185930', human_name: 'Maps', access_route: 'Maps185930', icon: 'map'},
{ name: 'Settings185908', human_name: 'Settings', access_route: 'Settin... | 545ecf9f71eca4ea709b568d0a8cb53e01eeafec | [
"JavaScript"
] | 1 | JavaScript | crowdbotics-apps/mishu-23394 | 2836b4841a867b5558085e19037197ad56d0800d | a96495392ae62373a83a3ec7e5f0018c95e99167 |
refs/heads/master | <file_sep>/**
******************************************************************************
* @file Project/STM32L1xx_StdPeriph_Templates/stm32l1xx_conf.h
* @author MCD Application Team
* @version V1.1.1
* @date 13-April-2012
* @brief Library configuration file.
********************************... | 6d00b9befc8df39959720e4b96a2b8851dc1813c | [
"C"
] | 1 | C | shangma/stm32 | 26135866b84da4340f4b2c25ef84a55771f8e4a7 | 048984765c90b51bf1e865ad8b685df390488197 |
refs/heads/master | <repo_name>drwrose/doctors<file_sep>/resources/make_palette.py
import PIL.Image
import sys
# First, define an image with a 64-color palette that corresponds
# exactly to the Pebble Time's color space.
pal = PIL.Image.new('RGB', (8, 8))
for yi in range(8):
for xi in range(8):
pi = yi * 8 + xi
r = pi... | 4d1686613682ad433e3f5c23794f52de5775e18d | [
"JavaScript",
"C",
"Python"
] | 17 | Python | drwrose/doctors | caa2c5f8d3c7d07cbdce441dcba582c8ab8d8bfc | 4abf6cfec593f5c306e46af61f501a1e497b2013 |
refs/heads/master | <file_sep>CREATE DATABASE ombutsig
WITH OWNER = postgres
ENCODING = 'UTF8'
TABLESPACE = pg_default
LC_COLLATE = 'Spanish_Uruguay.1252'
LC_CTYPE = 'Spanish_Uruguay.1252'
CONNECTION LIMIT = -1;
DROP TABLE IF EXISTS categoria;
CREATE TABLE categoria
(
id INTEGER PRIMARY KEY,
nomb... | cf6aaeb0a6523ae60f3d3b7a6b1cf7a12df06416 | [
"Java",
"SQL",
"JavaScript",
"INI"
] | 7 | SQL | damsal7/TSIG | ec1ad565eb179e9a7bb7c7381d66f944d3b1bb35 | a829b7140b1faffade48f51e6fda05e2cf2f29d8 |
refs/heads/master | <file_sep>var app = require('express')();
var http = require('http').Server(app);
app.get('/', function(req, res){
res.sendfile('./test.html');
});
app.get('/camera', function(req, res){
var path = require('path');
console.log(path.resolve(__dirname));
res.sendFile(path.resolve(__dirname+'/../three.js/examples... | 848fcfb51228524017ab534bde20b23c19eb9349 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | israelle/israelle.github.io | 28ca7dc8a7b3fecf8b699d61f3dc746231316af7 | 9b12a883bb27b7471679e795930cdf0a6955789a |
refs/heads/master | <repo_name>anivanch/CWPack<file_sep>/goodies/numeric-extensions/numeric_extensions.c
//
// numeric_extensions.c
// CWPack
//
// Created by <NAME> on 2017-01-16.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "cwpack.h"
#include "cwpack_defines.h"
#include "numeric_extensions.h"
#define cw_storeN(n... | fa41f85de0ed6080ffd9ce9283dc9bfc829771c5 | [
"C",
"Shell"
] | 3 | C | anivanch/CWPack | 6c99bd2bcf4b6dbadc6c7bf5d303b8b4cb8fd17f | 094f7266170437548079fb7b635be9954104f680 |
refs/heads/master | <file_sep>#/bin/bash
while read line
do
file_list=`ls $line`
for file in $file_list
do
g=$(echo "${line}/${file}")
types=${file%_*}
./build/unpack --file $g --dir "$line/$types" --color
echo "over $line"
done
done < dataset_list
<file_sep>dir=UCF101
ls $1 | grep .avi >tempfiles.txt
while read line
do
echo ... | d3e9ae02ebe32867777e1e337d216136863b845e | [
"Markdown",
"Shell"
] | 4 | Shell | lingtengqiu/TSN_dense_flow_process | 660ed0470cbde9ca0927bdddaba45fc2a843e99e | a090d12cae64b9400a041436db36a1fb430debdf |
refs/heads/master | <repo_name>robetch/getwiki<file_sep>/getTourWiki_xml.py
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 9 12:42:14 2017
@author: wanglei
"""
#import chardet
import urllib
from urllib import request
import re,os
import xml.dom.minidom as dom
import xlrd
try:
import xml.etree.cElementTree as ET
except ImportError: ... | 133cf27c77f9b6da41850e64d1962f1445248d84 | [
"Python"
] | 1 | Python | robetch/getwiki | f86fc221dfcda17d55b3e07e8621bd965368f542 | 742a0ddcdd439975287f54c29d55aad958d30268 |
refs/heads/master | <repo_name>futcms/ibuck<file_sep>/bot.php
<?php
$string = "<KEY>09PT09PT09PT09PT09PT09
<KEY>09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi<KEY>; eval(base64_decode($string));
?>
<file_sep>/README.md
#App Ibuck https://play.google.com/store/apps/details?id=com.app.ibucks
Nuyul Ibuck Spin
Tutor Nuyul
C... | 7a07a4c3b299664e473ffceebe086ab59795fe01 | [
"Markdown",
"PHP"
] | 2 | PHP | futcms/ibuck | 6a3653a3edc7817677b0ff432a6dd4b528a8e86f | 110e610b592fa3c4f9d6d7a0bdc1d3a04a8756b2 |
refs/heads/main | <file_sep>###### ECONOMETRIA II CLASE II ###################
rm(list=ls())
getwd()
setwd("C:/Users/Santiago/Downloads/completa")
getwd()
rh <- read.csv2("base.csv", header=T, sep = ";")
rh
View(rh)
datosrh=rh[,-c(1,2)]
datosrh
View(datosrh)
data.frame(datosrh)
names=names(datosrh)
names
estadisticas=summa... | fd6c2a8a786abd83b37d0f69d0f6663c928bef63 | [
"Markdown",
"R"
] | 2 | R | jsgomezme/regionalizationpaper | cc241f88bd296d754cc0f26aac112f95434a47c2 | 58dbfd3a30e61356b5b0c57d681b8dea571db62c |
refs/heads/master | <file_sep>import { createStore } from 'redux';
import {
createAddition,
setAdditionBeingEdited,
editAddition,
deleteAddition
} from '../actions';
import additions from './additions';
import { selectAllAdditions } from './additions';
describe('additions', () => {
const wrongAction = {
... | c6b15e3286d5b10b28c1de767c761018d52106fd | [
"JavaScript"
] | 29 | JavaScript | nperon/react-chem | 4387c1105e556503a44ddbc6a3d32b9c50564876 | 6e01383c0eaf762331077c04cf0d475827f0788f |
refs/heads/master | <file_sep>#!/usr/bin/perl -w
#http://www.moko.cc/MOKO_POST_ORDER_MOKO/1/postList.html
#Thu Jun 25 16:30:24 2009
use strict;
#================================================================
# apply_rule will be called with ($RuleBase,%Rule),the result returned have these meaning:
# $result{base} : Base url to... | b636e6f6a9cb4e956f4b82b985d0278125819f7f | [
"C++",
"Shell"
] | 3 | C++ | urlrule/rules | 1b04a2c94f45d7e4db4dcc8f10efcacb3da27f25 | c53a7e3b1a6cdbe4fcf34bc6aff9c508c3b8a6a9 |
refs/heads/master | <repo_name>saikotprof/inventory<file_sep>/product/migrations/0001_initial.py
# Generated by Django 2.2.6 on 2019-10-18 14:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
mig... | fd9d9793b3af3c33170519380aecc61ace44cc30 | [
"Python",
"HTML"
] | 6 | Python | saikotprof/inventory | d53260e5c1c1bd656c781e7106a81ecd9fafba48 | 0a5a064c01a0c2c16a47d724ec65b8d214bd9199 |
refs/heads/master | <repo_name>sihaojunvn2012/Manage-Plane<file_sep>/Do An (1)/Source (1).cpp
#include "Process.h"
int main()
{
//nAirplane begin = 0
system("color 5A");
setFullScreen();
PTR_LIST_AIRPLANE l = new LIST_AIRPLANE;
LoadAirplane(l);
TREE_PASSENGER t;
InitTreePassenger(t);
LoadPassenger(t);
/*for (int i = 0; i <= ... | 9beb31d4f02eebbe45a385ca7e85befd3a2cb6ff | [
"C",
"C++"
] | 2 | C++ | sihaojunvn2012/Manage-Plane | b9724eb5a60c908a388514de4f9656b182dd6dda | a1d41b35c86045036645800bc9c0d5730631e1e7 |
refs/heads/master | <file_sep>package com.example.coophan.chancock2742ex2g1;
import android.app.Activity;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.wi... | 607d6bef2f637aaa4848d22ff126797dd9488625 | [
"Java"
] | 1 | Java | hancco20/chancock-2742-ex2g | eba04f7cce73796226f0a89bc0305cfea2e962ff | c8ea628a37b6fbce7d22c8d596019f5f64710804 |
refs/heads/master | <file_sep>using System;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Serialization;
namespace Sample_XmlParser
{
class Program
{
static void Main(string[] args)
{
// This method returns an XElement, send it to the console to display it
var sampleOutput = Xm... | 229d034f889ccebd4be826a63429fd0379231302 | [
"C#"
] | 1 | C# | KlutchSC/Sample_XmlParser | 309f46198ccbab0c05c86e649ba99b2e1bb2b7f4 | f75d870aa359f783f9a770110c28b749c1917835 |
refs/heads/master | <repo_name>Cryst4L/Backprop<file_sep>/data/MNIST/get_mnist.py
#!/usr/bin/env python
import sys, os, gzip
from urllib import urlretrieve
DIR = 'https://ossci-datasets.s3.amazonaws.com/mnist/' #'http://yann.lecun.com/exdb/mnist/'
TARGETS = ['train-images.idx3-ubyte', 't10k-images.idx3-ubyte',
'train-l... | 80a4c44ff3085a1b3cf1dac0a7d4c0f97d75704b | [
"CMake",
"Markdown",
"Python",
"C",
"C++"
] | 25 | Python | Cryst4L/Backprop | 89d344074fa597dcf39ce851e6071ceff85d47cd | 71b9ce0eea7860dff44ed00fc6f7845e88eaad20 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ObstacleMove : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.position = new Vector3(Mathf.PingPong(Time... | 81c91607b8bdde0b99c29eb1697d23206c5c33f6 | [
"C#"
] | 3 | C# | wasd120d/OSC-Control-Demo | 2ae4e95c89e9061e815c4f79fa9bab4f08ead5b5 | c4190c814d46b7ec7bb7b62edec9d5469b85cec8 |
refs/heads/master | <file_sep>//
// HomeViewController.swift
// CustomLoginSignupDemo
//
// Created by <NAME> on 7/22/20.
// Copyright © 2020 konga. All rights reserved.
//
import UIKit
class HomeViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
navigationItem.tit... | 8f45dab22b889cf76297fec78f017d886603229c | [
"Swift"
] | 3 | Swift | ayodejiayankola/customLoginSignupDemo | 6cbcc980b43237662449b83a97078a5ddbe089cd | 4a77e972171ba413e68c683abd9ca58434f4ef8d |
refs/heads/main | <repo_name>HamzaHanbali/JointPricingAnnuitiesAssurances<file_sep>/R Code - Section 5 - Pricing insurance contracts with offsetting liabilities.R
## R code for replicating Section 5 in "Pricing insurance contracts with offsetting liabilities"
## The user should have downloaded the number of deaths and exposures for... | 721f1d7a4e8ebe3a1d1e7c416dcb29e98440a2f2 | [
"R"
] | 1 | R | HamzaHanbali/JointPricingAnnuitiesAssurances | c56a5aaa3c2241963abeba34b5144e8323c25770 | 4833c3c78e03db6768ce6ae499f6b955a28b8f41 |
refs/heads/master | <file_sep>// Make sure to run this program from inside the "data" directory that contains
// dictionary.txt
#define MAX_WORDS 2048
#define START_WORD "муха"
#define END_WORD "слон"
#define WORD_LEN 4
#define WORD_BYTES WORD_LEN*2+1 // UTF8 2-byte characters
#include <stdio.h>
#include <string.h>
#include <... | 0b6dc0cf02c8ba06034c9d9291f140a7b174f183 | [
"Markdown",
"C++",
"PHP"
] | 3 | C++ | newagebegins/muha_slon | ddaf3022bea287b3cae0554d630f891c82aacfef | bc28adf088845bdc64fc59e2d970ebb56a6a66c3 |
refs/heads/master | <file_sep>#include <iostream>
#include "Microsoft_grabber.h"
#include <pcl/visualization/cloud_viewer.h>
#include <opencv2/opencv.hpp>
#include "Classifier.h"
#include "Edges.h"
#include "OpticalFlow.h"
#include "GraphSegmentation.h"
#include <Shlwapi.h>
#include <string.h>
#define NUM_LABELS 894
inline void Estim... | 1955943eff918c2d4a97239b7f3a5a46f00017b8 | [
"Markdown",
"C",
"CMake",
"C++"
] | 8 | C++ | StevenHickson/3DSceneClassification | 62c2c3cd750ac320ebdc8d26791e61b595e19968 | 605f7db3d7050086f5d50c3910890c4a0fc3235a |
refs/heads/master | <repo_name>rwjblue/rfc232-demo-app<file_sep>/tests/integration/components/pretty-color-test.js
import { module, test } from 'qunit';
import { setupRenderingTest, render } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
module('component:pretty-color', function(hooks) {
setupRenderingTest(hooks);
... | c4f72c8131d5d2d2a1c79ce48f8e9c6611eb48c0 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | rwjblue/rfc232-demo-app | fcf6d68a4c399e56c2db7eaef9166890263cba5d | a8ee85fbf55500da36c7ff660c2b351b07cd827f |
refs/heads/master | <repo_name>xdibda/Labyrint<file_sep>/log.cpp
/**
* Autori: <NAME>, xporiz03
* Modul: log
* Popis modulu: Tento modul implementuje ukladani a nacitani her.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include "log.h"
using namespace std;
/**
* @brief Funkce zvy... | 4166fb887311941cb3e721ae3c2f0d882f20bd77 | [
"C++"
] | 18 | C++ | xdibda/Labyrint | e441201745434cb556d0d213759f7e53d0a450fb | 4f873692e737fd355367aa20eedf51f799e13eb9 |
refs/heads/master | <file_sep>import os
import numpy
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.model_selection import train_test_split
from sklearn.naive_bayes import GaussianNB
from sklearn.metrics import accuracy_score
dataset_name = 'dataset.txt'
dataset_path = os.path.join(os.path.dirname(os.path.ab... | edf283eb158c332d5f69804b21769d3e0c855ba3 | [
"Python"
] | 3 | Python | danny460/learn-ml | 3b88af764a149c7a8b36c22830d03706fe4b82c3 | 04300d3388f411b2364aa9183ff6794f17789e98 |
refs/heads/main | <repo_name>sulemartin87/barcode-scanner<file_sep>/readme.md
# Barcode Scanner app
## Brief
simple application for verifying a scanned input by a barcode scanner and inserting it into a sqlite database.
> checks for unique numbers and pops up an error if it exists
## built using bulma css for styling and electron f... | 5da96539315ae76b7e707101784b5b5da2e67e04 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | sulemartin87/barcode-scanner | 3aa3c6106f005c1992e82ae38eb01218352e66fd | f9a1fcd622fae118552857326e0ef5bed8a3480a |
refs/heads/main | <repo_name>aanyas72/react-memory-game<file_sep>/src/components/MemoryGame.js
import React, { useEffect, useState, useRef } from "react";
import './MemoryGame.css';
import utils from '../misc/utils';
import colors from '../misc/colors';
import Cell from "./Cell";
import Footer from "./Footer";
const MemoryGame = ({ inc... | 2356c24faeb354e25b7a44bd9a0944a177d885af | [
"JavaScript"
] | 6 | JavaScript | aanyas72/react-memory-game | e7fcc4a8466000d5b3bc5786c1f8fc6c9321a1b3 | b2e737684f8a0862302d601d2eb6b8b034bb95f5 |
refs/heads/master | <repo_name>sebastian88/SolitaireApi<file_sep>/gameapi/gameapi/models.py
from django.db import models
class Game(models.Model):
id = models.AutoField(primary_key=True)
created = models.DateTimeField(auto_now_add=True)
class Card(models.Model):
id = models.AutoField(primary_key=True)
codename = models... | 72386bf28d6cbc4430877e2a02cb7ab3a7404367 | [
"Python"
] | 3 | Python | sebastian88/SolitaireApi | 4a0607adc6ec009b69d20a8493fef0fbd0075a57 | a1950f4d7fbe7b1a2c71f17e39348cccec51982e |
refs/heads/master | <repo_name>johuex/whoosh_api<file_sep>/main.py
from app import create_app
import os
app = create_app()
app.run(host="0.0.0.0", port=int(os.environ.get("PORT", 5000)))
<file_sep>/requirements.txt
affine==2.3.0
attrs==21.2.0
beautifulsoup4==4.9.3
certifi==2021.5.30
charset-normalizer==2.0.3
click==8.0.1
click-plugins==1... | a2919b2d3f7e7be67f94d13575d035c679c4d92e | [
"Python",
"Text",
"Dockerfile"
] | 9 | Python | johuex/whoosh_api | 7892b8db37be9eb4891d463abd9a4ccb9fb9bc19 | 9b09e6900837bf26c660005dc786018627f6c0ae |
refs/heads/master | <repo_name>Yukun0416/rpn<file_sep>/README.md
## rpn
a command-line based RPN calculator
# start calculator:
```bash
gradle run --console=plain
```
# start unit test:
```
gradle test
```
<file_sep>/src/test/kotlin/com/tony/RpnCalculatorTest.kt
package com.tony
import org.junit.Before
import org.junit.Test
import kotl... | 6d3c2de89a0b5b7babfa20c0bb098e176c4a66e6 | [
"Markdown",
"Kotlin"
] | 9 | Markdown | Yukun0416/rpn | 91873634cdf0b233dced7bfff4c22787ab525402 | 27b6a61bbd787925a484da6f34632fccd07a7748 |
refs/heads/master | <file_sep><?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Security\Core\Util\SecureRandom;
require_once __DIR__ . '/vendor/autoload.php';
class BookController {
private $db;
private $session;
public function __construct(... | 0b85ce2c57a84a2aa5edc283256260d4eb7668b0 | [
"Python",
"PHP"
] | 2 | PHP | niklasf/gym-biblio | 93dfcf651b6cf362a309f1acc1e8472bc209cf2b | 1e0f6ba363cc97ac46ca8420e8f38311a96290e0 |
refs/heads/master | <file_sep>from pip._vendor.distlib.compat import raw_input
from src.model.model import Person
from src.view import view
def showAll():
# gets list of all Person objects
people_in_db = Person.getAll()
# calls view
return view.showAllView(people_in_db)
def start():
view.startView()
userInput ... | af36a466e7f1a4fd44c80b2bedddb5ebfc99f6ba | [
"Python"
] | 1 | Python | glas0050/mvc | e6df088217756fac344a0a61de9625e552b4575a | f04824bc25f22ddf8fe7fd76f4b12aa51a86fdba |
refs/heads/master | <file_sep>/*
* This is a sample plugin module
*
* It can be compiled by any of the supported compilers:
*
* - Borland C++, CBuilder, free C++
* - Visual C++
* - GCC
*
*/
#pragma warning(push, 0)
#include <ida.hpp>
#include <idp.hpp>
#include <expr.hpp>
#include <bytes.hpp>
#include <lo... | 3aef47ed8149a53f738125488255fc7a069154c6 | [
"C++"
] | 1 | C++ | Lyxica/IDAStackStructExport | d1b5e86e05994f85bcaa09912b39c4b2f31afb91 | 680b81ac9e1b7bb1f5e55ace1f74aca2f4faf1a1 |
refs/heads/main | <file_sep>import os
os.system('cls')
me = os.environ["username"]
print("The user " + me + " will run this script")
#------------------------------------------------
message = " 1. Get information and display to screen "
message = " 2. Call user created function "
message = " 3. Write List of files to file "
message = ... | ed358784caf7f75ed6508a833bc05c1890d3a776 | [
"Python"
] | 2 | Python | RyanKoschak/PythonScript | 82407f9e76582fcf506263b0a3703c16069227ec | b15238265602f4e12abe86b4edfb38cbedf5639e |
refs/heads/master | <repo_name>ktptran/practice-websites<file_sep>/Practice/CSE154/Practice Problems/html-css/example.html
<!DOCTYPE html>
<!-- Sample solution for Extra Layout Practice (Lab 2) -->
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="solution.css">
</head>
<body>
<header>
<h1>154 layo... | 6a4773e0f7a102f41b62176ffba07f19811f3f7f | [
"Markdown",
"JavaScript",
"HTML"
] | 6 | HTML | ktptran/practice-websites | c7f38d1abf1b6390ca78a8c1c9ebe004f094a517 | c585730430f2c2044bc6a877510c551409f8458f |
refs/heads/master | <repo_name>manlyindustries/math<file_sep>/system/user/addons/math/addon.setup.php
<?php
if (! defined('MATH_AUTHOR')) {
define('MATH_AUTHOR', '<NAME>');
define('MATH_AUTHOR_URL', 'https://manlyindustries.com');
define('MATH_DESC', 'Math is an ExporessionEngine add-on which enables PHP supported math formulae.');
d... | c23b89a95a006c498bf2f1326fff9e92d6a78ffb | [
"Markdown",
"PHP"
] | 2 | PHP | manlyindustries/math | d68896b1f47f1ae2e00290bc464283efd32265d9 | bad5b13bc0f4e2e06551a62a684b1ca52ca04bd3 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class FactoryHealth : EntityHealth
{
public Image HealthBar;
public ObjectShaker ObjectShaker;
protected override void OnDamage(float amount)
{
ObjectShaker.Begin();
HealthBar.fillA... | db6d4b7ed5537690d9d0167e1c48338eecac9a10 | [
"Markdown",
"C#"
] | 27 | C# | MilesButler35/GameJamGame | 7d5fe7fa7250c98afdb1f9096f47a7634af8295b | 3f7161cad9791cafabd2e0fe66d73ae39b11fff6 |
refs/heads/master | <file_sep>var axios=require('axios')
axios.get('http://habrahabr.kz/')
.then(function (response){
var str = response.data;
//console.log(str);
s1=str.indexOf("<h1 class=\"topic-title\">");
s2=str.indexOf("</h1>");
console.log(s1 , s2);
data=str.slice(s1 , s2);
console.log(data);})
//console.... | 7b2d042cea3677fd1cdc0ed478927f03944af9e3 | [
"JavaScript"
] | 4 | JavaScript | AzamatNakispekov/Zadachi | 3d7c0683feba8ab3c9a22b95e1b0531c10087fbf | 1809355a617318e9039bdc1999218b87e262556d |
refs/heads/master | <repo_name>Matthew14/SnakeXNA<file_sep>/Snake/Snake/Grid.cs
using System;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Audio;
namespace Snake
{
public class Grid
{
private int length = Cell.length;
private int sizeX, sizeY;
public Cell[,] gridArray;
pub... | 7fc3770bcbc2f658d0edc5c5df33c93302dcd40e | [
"Markdown",
"C#"
] | 7 | C# | Matthew14/SnakeXNA | 6ee2ca8fd101e34d5e885b836b386f7334b1658b | 7f4d28e0d99b614455363d1fa5ed72c5d3c3f8e0 |
refs/heads/master | <repo_name>davidgriffiths-dg/info3180-project1<file_sep>/app/models.py
from . import db
class Property(db.Model):
__tablename__ = "properties"
pid = db.Column(db.Integer, primary_key=True, autoincrement=True)
title = db.Column(db.String(80))
description = db.Column(db.String(1000))
rooms = db.Column... | a624746827c0a1ec781270c79d9cc314e6d708b1 | [
"Python"
] | 2 | Python | davidgriffiths-dg/info3180-project1 | bae26364c917c429bf7d8ae18b5eb84382754a4e | a1c76b63dd9eeb5367715f43de1f98f891657551 |
refs/heads/master | <repo_name>mustangs1552/Ch29--Mission-Demolition<file_sep>/Assets/Scripts/ProjectileLine.cs
// (Unity3D) New monobehaviour script that includes regions for common sections, and supports debugging.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class ProjectileLine : MonoBehaviou... | 46fd4303d7956c977830bce40e68db7392da79e2 | [
"C#"
] | 5 | C# | mustangs1552/Ch29--Mission-Demolition | f97393dc52034e09558e392b71a4bd8b92e9a735 | 6269ea4ed95e2a790b776395358c20a43ad051d8 |
refs/heads/master | <repo_name>tgujar/fsopen<file_sep>/part2/dataforcountries/src/components/Weather.js
import React, { useEffect, useState } from 'react';
import axios from 'axios';
function Weather({ place }) {
let [weather, updateWeather] = useState({});
useEffect(() => {
axios
.get('http://api.weatherstack... | 54065b4f2b78697ebb8cd158b8eaab81ac429f26 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | tgujar/fsopen | 8ef43de875f97dc09d49f9771eacb56719f819e4 | c9dd28a4d3f03eebfb9df193d71716f3ca866091 |
refs/heads/master | <file_sep>import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'font-awesome/css/font-awesome.min.css';
import 'bootstrap-social/bootstrap-social.css';
import './css/styles.css';
import helper from './helpers';
| 7325c04a89e10269b6ed3a80adf49ccc85829197 | [
"JavaScript"
] | 1 | JavaScript | jameslinjl/skycafephilly | 235fb9300616968a128f41260505e7cb9a31376a | 129dc87cfd20173b8550fb6f266d31a3234400f9 |
refs/heads/master | <file_sep>'use strict'
if (this.GithubBrowser === undefined) this.GithubBrowser = {};
(function(context) {
var $followersList;
function loadFollowers(folUrl) {
$.ajax(folUrl)
.done(function(data){
createDOM(data);
});
}
function createDOM (followers){
$followersList.empty();
... | 7c2713cad88f7d8b47014970154cce526fe10a71 | [
"JavaScript"
] | 1 | JavaScript | Eric-Humpert-tiy-assignments/github-browser | 68a9e623b9befc56bb62218f4c589c095bef932d | e36d8d0bfce4e8f8a9f1e58da415008474c8b5c5 |
refs/heads/master | <file_sep>package de.hhn.helper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Class that helps validating parameters. E.g. Validates if a String is not {code Null} or <code>""</code>
* Created by SHauck on 17.05.2017.
*/
public class Validation {
private static final Logger log = LoggerFacto... | 71de2354f53b7e8c7e7119643e97432980502fc0 | [
"Java"
] | 4 | Java | simonhauck/restmock | 5b466391c4ac9feb4b2afc9954b8825c5d1aa59d | d04022d6733642f1b44483dcb67192a49e3ba696 |
refs/heads/master | <file_sep><?php
if(isset($_POST)){
echo var_dump($_POST);
//include("views/resume.php");
exit;
}<file_sep><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Filtres pour photos de profil Facebook</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
... | 8fc5c758f04d1f8d8a565f4dcb1e81d884b1e566 | [
"PHP"
] | 7 | PHP | chicharlito/Filters | 601818e321b12db02aac38fcd754f8031b84e2c2 | 74e13bf1c30d2ee41a92fba6fc6309c9b2191719 |
refs/heads/master | <repo_name>grguang/algorithm<file_sep>/test/7.test.js
/**
* create by grguang
*
* @flow
*/
const {reverse} = require('../code/7.integer-inversion');
describe('reverse', () => {
it('reverse 1534236469', () => {
expect(reverse(1534236469)).toEqual(0);
});
it('reverse 123', () => {
expect... | f90cf6bf4c984375dd6f175b15795a5ff326778f | [
"JavaScript"
] | 11 | JavaScript | grguang/algorithm | eaf8a4ba187a16772e47b0b39366222d6cc653f9 | 7539da1d8762a6ac10ab84923c295be114e9c8e8 |
refs/heads/master | <repo_name>christvl/php_login<file_sep>/home.php
<?php
session_start();
if(!isset($_SESSION['username'])){
header("Location: login.php?mustlogin=0");
exit;
}
echo "Welcome " . ucfirst($_SESSION['username']);
?>
<br />
<a href="logout.php">Log out</a><file_sep>/login.php
<?php
session_start();
$... | 3815bde4fbfdef6fb8984bb230344241e996e9be | [
"Markdown",
"PHP"
] | 3 | PHP | christvl/php_login | 77a072c5fb245173affd4982467966a93c59e11f | 804deeabf0717506421a1a0aaf1c64df88c2f90d |
refs/heads/main | <repo_name>AhmedAli-IB/RecipeApp<file_sep>/RecipeApp/ViewController.swift
//
// ViewController.swift
// RecipeApp
//
// Created by <NAME> on 27/03/2021.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
}
| 20c099470d7003a5c7813af4ec864e568536d81a | [
"Swift"
] | 1 | Swift | AhmedAli-IB/RecipeApp | 74cde1ef70964c3f19b2806f46c7ac8731bbde41 | 6584f3b433ff41f68c0a3e324ac558be59ebb2a9 |
refs/heads/master | <file_sep>'use strict'
const Hapi = require('hapi')
const _ = require('highland')
const JSONStream = require('JSONStream')
const request = require('request')
const server = new Hapi.Server()
const ObjStream = require('objstream')
server.connection({ port: 3000, host: '0.0.0.0' })
// Create a highland stream of API r... | 6fe5d7be63303a518cab450ed2c6e85e5b21c750 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | nnance/highland-proxy | dc469da291e0844effb1c4d1f7fb1d81eaf0211f | 5ae32a606839851024c3b5e01a9bd6dd80bb9e9b |
refs/heads/master | <repo_name>fadjar-setiawan/fdrs<file_sep>/yakin1.php
<?php
include("atas.php");
?>
<!-- ======= Hero Section ======= -->
<section id="hero" class="d-flex justify-cntent-center align-items-center">
<div id="heroCarousel" data-bs-interval="5000" class="container carousel carousel-fade" data-bs-ride="carousel">
... | 81ebfcf4eb64e8932b29b28a07214933d84864ce | [
"PHP"
] | 3 | PHP | fadjar-setiawan/fdrs | 495608d7f37e4cf9f13dafc9f4efe900652d5e03 | 91727a7b0efb06025bf05ada2562bf027256a037 |
refs/heads/master | <file_sep>namespace ProyectoProgra04.Datos
{
public class datatable
{
}
}<file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespac... | afe2bdbf356feb702a3592ffe0376cf4d8734a85 | [
"C#"
] | 17 | C# | gavc1000/ProyectoProgra04 | fde9a8acbb7ded108546e7398f8450e306727489 | 855967229f2ff95d53e0c846d3c7488aecc2cf31 |
refs/heads/master | <repo_name>ffarhhan/UrlShortener<file_sep>/config/routes.rb
Rails.application.routes.draw do
root 'url_shortener#new'
get '/stats' => "url_shortener#show"
post 'url_shortener/create'
get 'url_shortener/show'
get '/:id' => "url_shortener#redirect"
# For details on the DSL available within this file, see http... | 0f1c58a78562cea14a27266dc11a99210c0d9be2 | [
"Ruby"
] | 4 | Ruby | ffarhhan/UrlShortener | 98547fd1c2e9761f84fe43f1d6ee203e3a89bbab | 8433d270653b56657f936513722c955d249f18a2 |
refs/heads/master | <repo_name>Rouz1130/planet<file_sep>/js/planet-interface.js
var url = "https://api.planet.com/v0/";
var key = "7790520033804be09ff351a9b61ba6a2";
var auth_header = {
Authorization: "api-key " + key
};
$.ajax({
url: url,
headers: auth_header
});
$(document).ready(function() {
$(".user-input").submit(function(e... | b1409e431e8f7c0a8cc7e1fbe8d009682e9be9f6 | [
"JavaScript"
] | 1 | JavaScript | Rouz1130/planet | 4b969e02e3a5cf0b70e200a27f4315b46c139648 | 13feb26ac6e6733d4b9d271a9f98c8b68f7b93e4 |
refs/heads/master | <file_sep>
import { mat4, vec3, vec4 } from 'gl-matrix';
import { assert } from './auxiliaries';
import { decode_float24x1_from_uint8x3, decode_uint32_from_rgba8 } from './gl-matrix-extensions';
import { Context } from './context';
import { Framebuffer } from './framebuffer';
import { Initializable } from './initiali... | 87fd29852da888eed1e58a32c8dce18eecda0297 | [
"TypeScript"
] | 2 | TypeScript | technologyarts/webgl-operate | 8953207435e0509cbf3a46897832f4b89decb49e | a9d7da5b808d79c8896d3541c2f5517bf144b8cd |
refs/heads/master | <file_sep>import soundfile as sf
import logging
WAVFILE_CONV_SUBTYPE = "PCM_16"
class DecoderQueue:
def __init__(self):
pass
def start(self, num):
pass
def stop(self):
pass
def submit(self, wavfilename, onfinish, args):
onfinish(wavfilename, {
"raw_packet... | afeaa0ffcb3d0d757b685ff6ba745baf90351f63 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 10 | Python | BrownSpaceEngineering/equisat-decode-server | 4541d181cea2581739c431b4cd34d0f7e0364fbb | 46d3da9fd9137a2fba018387e3772f890b81e9c0 |
refs/heads/master | <file_sep># frozen_string_literal: true
require "logidze"
module Logidze
class Engine < Rails::Engine # :nodoc:
config.logidze = Logidze
initializer "extend ActiveRecord with Logidze" do |_app|
ActiveSupport.on_load(:active_record) do
ActiveRecord::Base.send :include, Logidze::HasLogidze
... | 1ac1c664892b5e76418d231f3798562895789552 | [
"SQL",
"Ruby",
"YAML",
"Shell"
] | 10 | Ruby | artplan1/logidze | 96dc7a78bf8b683a78495afeef04308b14789ffd | 75826d0f4e148aaa6a193019d51594397fabe82c |
refs/heads/master | <file_sep>import React from "react";
import { StyleSheet, Text, View, Button } from "react-native";
const Settings = ({ navigation }) => (
<View>
<Text>Settings</Text>
<Button onPress={() => navigation.navigate("Home")} title="Home" />
</View>
);
// const styles = StyleSheet.create({
// container: {
// ... | 4688af29b119858241baa71500a423c0c6326317 | [
"JavaScript"
] | 1 | JavaScript | PaulCroitoriu/Life-Met | cd52964e903e348b81eb1fd5057ae5cf09ee6901 | e92970f1a792d7785b6565ba78a88a4e3dc8afcf |
refs/heads/master | <file_sep>import cv2, os
from confapp import conf
from pyforms.controls import ControlDockWidget
from pythonvideoannotator.utils.tools import list_folders_in_path
from pythonvideoannotator_models_gui.models import Project
from pythonvideoannotator_models_gui.dialogs import Dialog
class Module(object):
def __... | 4e610466983abedea8e0b7b165e9597bf47c12a1 | [
"Python"
] | 2 | Python | video-annotator/pythonvideoannotator-module-patheditor | 31612ea9620c2c247c22c55a93fb13f8a0834691 | 7528afb30237b2156e1ad5350159c0eb5afa6978 |
refs/heads/master | <file_sep>import numpy as np
import math
# Valuation of a European call option by Monte Carlo simulation
# Considering a Black-Scholes-Merton setup in which the option's underlying risk factor follows a geometric Brownian motion
# Parameters values
S0 = 100. # initial index level
K = 105. # strike price
T = 1.0 ... | 1aa11e265492ea095d0f65a599d761d31d27711c | [
"Python"
] | 1 | Python | seivin/finance | 1b5e2328156e50b199deb3c1bfce2e463ce27e5f | ea90258e4c38beb8adf6de4730edb9443364734f |
refs/heads/master | <file_sep># Tokens Input
Text input that tokenifies the values (eg tags, recipients).
Uses [suggest-box](https://www.npmjs.com/package/suggest-box).

```jsx
import TokensInput from 'patchkit-tokens-input'
const suggestOptions = [
{ title: 'Alice', subtitle: '<NAME>', value: 1 },
... | 63ead14fd7b853e39be695bbbc3116134477f525 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | patchkit/patchkit-tokens-input | 9bea3ef0d2981ea3e2a26dd0cf28fa10853137ff | 839a3a19d36747b007c5f7ec4a435aa84cb135be |
refs/heads/master | <repo_name>pchinjr/25-days-of-serverless-solutions<file_sep>/week-1/challenge-2/readme.md
Coffee (25 minutes) - coffee takes 25 minutes to brew
deliver cofee - two cups, it takes 4 minutes to bring coffee and 4 minutes to return
Scheduled Functions:
relight candles - every 10 minutes
pour coffee into cups - when c... | 8a19950436b3ccc262ae78d1c13aaa3ec4424e4c | [
"Markdown",
"JavaScript"
] | 5 | Markdown | pchinjr/25-days-of-serverless-solutions | 091128ad7375676117a0ca902bf5e4db2895fbea | ddcbba963d7346ee47aa7ee57af4a80caf9b5ee2 |
refs/heads/master | <repo_name>sisama2323/gp_map<file_sep>/src/run_ifom.cpp
/*
Some Notes:
1. Only publish the point that are marked as occupied otherwise it is hard to see what is going on
2. Global variable Sig_mat is empty after passing into callback function, need to fix this
*/
// ros
#include <ros/ros.h>
#include <sensor_msgs/Point... | 92b284ff2960dc8c418e7554d534c198dbcaf5b0 | [
"Markdown",
"Python",
"CMake",
"C++"
] | 8 | C++ | sisama2323/gp_map | 96f008484b4ad6266479cd7ed024acb141f0f092 | 98b05b5481c0719846df4896831dcc8f8ac11a3c |
refs/heads/master | <file_sep>var express = require('express');
var request = require('request');
var app = express();
var passport = require('passport');
var CustomStrategy = require('passport-custom');
var opAuth = require('opskins-oauth');
app.use(passport.initialize());
let OpskinsAuth = new opAuth.init({
name: 'Echo WAX Expres... | 87772f40f3d21ca9a162defb9c3f618420614441 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | AlaDyn172/WAX-ExpressTrade-App | bc4ef1138781ed3aa7eefc65a7dae7c3d08a3026 | fa438d745cfaf712fd2422d5a48e6b527a29fbb8 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Models
{ public class Tweet
{ [Required]
public string TweetHashTag { get; set; }
public string Message { get; set;... | 681938daa9d8fc9119b124cfacd961807dbb1393 | [
"JavaScript",
"C#"
] | 5 | C# | jonam25/TwitterApp | 8df91c909fc69752ad67f66cbdb2e682e73cf11f | db5e283bb55af5a68978f12540068eee41c10820 |
refs/heads/master | <repo_name>edikar/LearnOpenGL<file_sep>/02_lesson_shaders/lesson_shaders.cpp
// GLEW
#define GLEW_STATIC
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>
#include <iostream>
#include <math.h>
#include "shader_class.h"
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void processInput(GLFW... | 634a359d166a1969ef6298e4f5bf1d8fbec4b877 | [
"Markdown",
"Makefile",
"C++",
"Shell"
] | 12 | C++ | edikar/LearnOpenGL | 5e10b1b607da5028350a5855506790a5cefee700 | e2a03313437296945c398cc5e02a055812f4cae8 |
refs/heads/master | <file_sep>import React, { Component } from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import { getCountries } from "../actions/index";
class SearchBar extends Component {
constructor(props) {
super(props)
this.state = {
selectedCountry: this.p... | 76ab73b6569b934a5af7aa1f920e35972046636c | [
"JavaScript"
] | 2 | JavaScript | jsdelivrbot/ReactStarter-Population | 80a2fa3cb67bb75b2b4e18e71c9433c5814d5e7e | 4c723c04d0ac2fa60f6e15afb4b752592ac5dea1 |
refs/heads/master | <file_sep>#ifndef __DATABASE_PERSIAN_H__
#define __DATABASE_PERSIAN_H__
#include "PersianDefine.h"
#include "IDatabase.h"
#include "QueueCondition.h"
#include <boost/thread.hpp>
#include <boost/date_time.hpp>
#include <Poco/Data/MySQL/Connector.h>
#include <Poco/Data/DataException.h>
template<typename TData>
class D... | 3ace5a02241b18e69d948dadab4b25eda27b9ab8 | [
"C",
"Text",
"C++"
] | 16 | C++ | comhaqs/persian | 10c257036f31315866881420babb7fc124ab37a6 | a99bb159197d5a67926917b217cdfccfee39d480 |
refs/heads/master | <repo_name>krasilnikovivan11/ArraySumExeptions<file_sep>/mainClass.java
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
public class mainClass {
private static String [][] a = new String[][] {
{"1","2","3","4"},{"5","6","7","8"},
{"1","2","3","4"},{"5","6","7"... | 39d74925285a7e24cfc5eb34d16fd74d16071b7a | [
"Java"
] | 1 | Java | krasilnikovivan11/ArraySumExeptions | 2ab0a8555c36a4015643aa236206ff998d7996a8 | dea2e790dd8d856fa65d39d8276aa920da07a8f3 |
refs/heads/master | <file_sep>var rawData;
var UniversalGraphHeight = 400;
$('form').submit(function(event){
event.preventDefault();
///initiate call to my databse of deaths stats
$.ajax({
type: 'post',
url: "/",
data: {
state: $('select[name="state"]').val(),
gender: $('select[name="gender"]').val(),
a... | a71ce2d65f07475314f8b68da4533e323641b136 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | docmidas/hades | c8cdde4713702f2b9054d5b47607dbb94a70fe2a | 9f4ad0ded9deadcd80a35ed73a27023297e619cb |
refs/heads/main | <file_sep>package exemplo.webflux.service;
import exemplo.webflux.domain.Localizacao;
import exemplo.webflux.repository.LocalizacaoRepository;
import exemplo.webflux.util.LocalizacaoCreator;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.ArgumentMatchers;
import o... | 55fb9ff246136ff854adb09e475dd76de60c889a | [
"Markdown",
"Java",
"INI"
] | 5 | Java | rhdesouza/spring-webflux-essentials | 894966c0cdff6e307ddaffb920dba4f088586dba | 1f262d80dd85a2b26b07afeaa5b5ce2a0cd12921 |
refs/heads/master | <repo_name>MiriamAparicio/lab-ajax-crud-characters<file_sep>/starter_code/public/javascript/APIHandler.js
'use strict';
class APIHandler {
constructor (baseUrl) {
this.BASE_URL = baseUrl;
}
getFullList () {
return axios.get(`${this.BASE_URL}/characters`)
.then((response) => {
return re... | f1554c287296c840034e2007642a1bfe01e5444e | [
"JavaScript"
] | 2 | JavaScript | MiriamAparicio/lab-ajax-crud-characters | c72062ec8c356ca45256b2e53bf6b3bbe7db7ee8 | 6a1fee34dee80f2f48d4d6e4ade41e519e893a56 |
refs/heads/master | <file_sep># FancyTrendView
[](https://travis-ci.org/fantasy1022/FancyTrendView)
The custom UI view including animation and typing text.
The behavior of Android APP is like Google trend web. https://trends.google.com/trends/hottrends/vi... | a9a73217edb21a33f42a165dc449a3dbb6f77505 | [
"Markdown",
"Java"
] | 5 | Markdown | codacy-badger/FancyTrendView | 085eb060cd7cc03fadadb02478762326fda7d70b | c25549af0f76ee17da49f2739f15ef831af9d515 |
refs/heads/master | <repo_name>18371503352/sells<file_sep>/src/test/java/com/imooc/sell/LoggetTest.java
package com.imooc.sell;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.conte... | a14273cbbe137647f8658c6b24544db24b123d03 | [
"Java"
] | 1 | Java | 18371503352/sells | dd1bf1c82354ae45b1615fe1701e973eea0d373e | 38d2ab0eac5c9ee4f541b9328aec6305cd838715 |
refs/heads/master | <repo_name>NielsenPetersen/AUT-Social-App2<file_sep>/app/src/main/java/com/example/user1/socialappaut/FoodAndBarActivity.java
package com.example.user1.socialappaut;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget... | a0069c68912ce4ce4e37ccea8fd6a9ee36b7ad45 | [
"Java"
] | 5 | Java | NielsenPetersen/AUT-Social-App2 | 8d86ba856afc1b80b4c722cf039180c4843ab841 | 15159c95f5cc5bba9e8212545ecb6ab86e4f3557 |
refs/heads/master | <repo_name>kuroky360/angular4-exercise<file_sep>/src/app/hero.ts
/**
* Created by Kuroky360 on 7/3/17.
*/
export class Hero{
id:number;
name:string;
}<file_sep>/README.md
# angular4-exercise
Just a helloworld for ng4
| 645c823cb18d2de8698954107be5d010411e44c1 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | kuroky360/angular4-exercise | c26a2d6c69f95b1daa83bdf4cfb22029330ab6e0 | 8ef0b82c59ca381e24fa2a28d55ff82ba66ff931 |
refs/heads/master | <repo_name>djhb317/HudsonRepo<file_sep>/sdi-project2.html
<!DOCTYPE html>
<html>
<head>
<title><NAME> :: Project 3 :: Project 3</title>
<link rel="stylesheet" href="sdi.css" type="text/css" />
</head>
<body>
<header>
<h1>Project 3: <NAME></h1>
<h2>Let's buy a Super Car!</h2>
</header>
<article>
<p>A pot... | 6cfb222fa83b587a1ef6fa68e0576c99eaf9e671 | [
"JavaScript",
"HTML"
] | 2 | HTML | djhb317/HudsonRepo | 2b5bab17b4177efefce4a93c2b70def442d11f94 | aad9ca482b4d5467a03647be77a8cfb3c74b6f6c |
refs/heads/master | <file_sep><?php
/* @var $this gypsyk\quiz\models\renders\qone_render\QuestionOneRender */
/* @var $question \gypsyk\quiz\models\questions\QuestionOne */
?>
<table class="table table-bordered <?= $question->isUserAnswerIsCorrect() ? 'bg-success' : 'bg-danger' ?>">
<thead>
<tr>
<th><?= $question... | 232bb849c8d05f9ad6fa8dbe55522b73db6ce328 | [
"PHP"
] | 37 | PHP | vandro/yii2-quiz-module | 1ca79244681a2446fe9c9db872a79ca90984aa66 | 277b4c6d5c19bb9df0c4983a4e0102aa68a86325 |
refs/heads/master | <file_sep>import cv2
import torch
from torch.utils.data import Dataset
def create_grid(h, w, device="cpu"):
grid_y, grid_x = torch.meshgrid([torch.linspace(0, 1, steps=h),
torch.linspace(0, 1, steps=w)])
grid = torch.stack([grid_y, grid_x], dim=-1)
return grid.to(devic... | 55a3dfd58846373a7a20674c1ed1891183f0cc62 | [
"Markdown",
"Python"
] | 3 | Python | tejas-gokhale/fourier-feature-networks | 72a3f2f399f1bb02ee908011a6023c6f772f0b93 | c99024a985a05d92d92a4fe9605b38a21323e86b |
refs/heads/master | <repo_name>CapnRat/resharper-unity<file_sep>/test/data/daemon/Highlighting/GutterMark/Test01.cs
using UnityEngine;
public class A : MonoBehaviour
{
public object unityField;
private object notUnityField;
public object unityField1, unityField2;
private void OnDestroy()
{
}
private void No... | fbef19a4f1814688f8d2e49bf5cf1c07e18799d0 | [
"C#"
] | 10 | C# | CapnRat/resharper-unity | 3afbd88e7a1dc4d852555d7443f1e6fec0a7a5a3 | 85c109f93a353cde614eb32b317d9f3551a6226c |
refs/heads/master | <file_sep>var path = require('path')
const VueLoaderPlugin = require('vue-loader/lib/plugin')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
mode: "development", // "production" | "development" | "none"
entry: './src/index.js',
output: {
path: resolve('dist'),
fil... | 42be5de5eae7c47063366195410dffe2e1d685a5 | [
"JavaScript"
] | 1 | JavaScript | lq111lq/vue-dat-gui | f21ac59ce66229089a7685aa8f4e4be0767604a7 | 9f1a7bfacd1ae976b72849afad5c5592343aa4be |
refs/heads/master | <repo_name>pinf-sh/sh.pinf.inf<file_sep>/inf.js
'use strict';
exports.inf = async function (inf) {
let config = null;
return {
invoke: async function (pointer, value) {
if (pointer === "genesis.inception") {
config = value.value;
return true;
... | 6fd11ca61343296552024fbdab257f3b6b0d95cb | [
"JavaScript",
"Markdown",
"Shell"
] | 6 | JavaScript | pinf-sh/sh.pinf.inf | 5c3a42d0952e25a3d23879709294a3797605463a | c7e47e12c0ec243b41b1421786d618a5d634b8fd |
refs/heads/main | <file_sep>package com.example.etonatalaga
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import android.widget.Toast
class MainActivity : AppCompatActivity() {
overr... | 262cbdb71ebc42f004e7d05f19731fa9bc7c89f6 | [
"Kotlin"
] | 2 | Kotlin | Chomsuke15/Kotlin-Activity | 0106ed39112c20c192a517ac4577354141653771 | 30c66479662a8503da622e008f46177c9d755234 |
refs/heads/master | <file_sep>#!/bin/sh
cd /mmc
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/jffs/sbin:/jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin
date >/mmc/lastcronrun.txt
rightnow=`/bin/date`
unixrightnow=`/bin/date +%s`
if [ -f /mmc/transfer2.tar ... | 5018a20cf2990a94e42f8adf94519e4ccff3436c | [
"Markdown",
"Shell"
] | 10 | Shell | shackspace/portal | 2a44191548d98417a1ae6efb63ac78901e14faf0 | c89e9c537b1fca6ca03fb4f54ae85130c0d16b1a |
refs/heads/main | <file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="author" content="<NAME>">
<meta name="description" content="Jacquiod Entreprise est une entr... | 36572d387ed7f6e76c3798132edfe861eccedac0 | [
"JavaScript",
"SQL",
"PHP"
] | 19 | PHP | alicia-cordial/intranet | 3303af51c9fabf5c1bfefad54f3bb50fff859d92 | 16477c797349d116b08d84a7f33b57215901b1f1 |
refs/heads/master | <repo_name>dipto0321/Testing-Practice<file_sep>/index.js
const capitalize = (str) => {
return str.slice(0, 1).toUpperCase() + str.slice(1);
};
const reverse = str => str.split('').reverse().join('');
const calculator = (() => ({
add(a, b) {
return a + b;
},
subtract(a, b) {
return a - b;
},
multip... | cfb642bdf4da0f8acfa8a9ecd6b36126239e9f70 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | dipto0321/Testing-Practice | 7fb5f9bc1f29773ff9d94fadc5f81332463605d1 | 32e097d7a4f923854ca4daf76e1849d68fcd1fa9 |
refs/heads/master | <repo_name>olxia172/learning<file_sep>/zadania_ruby/oop/library/book.rb
class Book
attr_accessor :status, :date
attr_reader :author, :title, :pages
def initialize(author, title)
@author = author
@title = title
self.status = 'avaliable'
self.date = nil
end
def avaliable?
status == 'avalia... | 9688f86d6c7de1f9875dc9da7e5f2e25c2dd9ad3 | [
"SQL",
"Ruby"
] | 120 | Ruby | olxia172/learning | b6569c0790c2384c910e7a0ee0f2f79d065f82e0 | 7c6a8925dbf8b3534d6a887d605111cbfc60d3ed |
refs/heads/master | <file_sep>// This is the main.js file. Import global CSS and scripts here.
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
import "element-ui/lib/theme-chalk/index.css"
import util from "./utils/util"
import Vue from "vue"
import ElementUI from "element-ui"
import App from "./App.vue"
Vue.... | 1e3dd7d5d9dc30df5ebf2d03efa8cbfdd156120e | [
"JavaScript"
] | 1 | JavaScript | lichtcui/gridsome-blog | 8d3b5c85e86f285d6f39db2f98785ed2fc06e9a2 | 3cf03d162acec2bca5a026a0f3cd973bda4c7da7 |
refs/heads/master | <repo_name>cindyward1/cindys_airbnb<file_sep>/spec/models/rental_spec.rb
require "spec_helper"
describe Rental do
it { should belong_to :landlord }
it { should have_many :reservations }
it { should have_many :renters }
it { should have_many :comments }
it { should validate_presence_of :city }
it { should v... | d32326cdc219dbb14f33cdedd4bdec0fd54382a4 | [
"Markdown",
"JavaScript",
"Ruby"
] | 21 | Ruby | cindyward1/cindys_airbnb | 95515e784f53ce473174f196d11f904cae58aad3 | d44e8fb6d8d42884bde1cf3fda982cd6a0164e7d |
refs/heads/master | <file_sep>import logging
from django.db.models import CASCADE, PROTECT, SET_NULL
from mptt.fields import TreeOneToOneField
from river.models import TransitionApprovalMeta, Workflow
from river.models.transition import Transition
try:
from django.contrib.contenttypes.fields import GenericForeignKey
except ImportEr... | 42e47dcebbab278c0665c8b0d89953c19a98f562 | [
"SQL",
"reStructuredText",
"Markdown",
"INI",
"Python",
"Text",
"Shell"
] | 87 | Python | arjun2504/django-river | 8202905407e316aae5d95661376eed9b3fa85724 | 7326f5c24e136b171812d95388b37f65a7c4064b |
refs/heads/master | <file_sep>from InventoryAllocator import InventoryAllocator
import unittest
class Test(unittest.TestCase):
# case 1: one warehouse is enough
def test_case1(self):
orders1 = {'apple': 1, 'banana': 2}
w1 = [{'name': 'owd', 'inventory': {'apple': 1, 'banana': 2}}]
self.assertEqual([{'owd'... | 33e523ef7fada640899d95b4c6f80b9f3e87147b | [
"Python"
] | 2 | Python | Chris-Yen68/recruiting-exercises | a1b6660829278ca6fa0c84efc48a780ea683e291 | 5a8892260e2b383219218c262688115996b3ae87 |
refs/heads/master | <repo_name>Mawa89/mon_agence_web<file_sep>/main.js
window.onscroll = () => {
const nav = document.querySelector("#navbar");
if (this.scrollY <= 10) nav.className = "";
else nav.className = "scroll";
};
$(document).ready(function() {
$(".js-scrollTo").on("click", function() {
// Au clic sur un élément
v... | 7b7d64902928503c1a0d290a38037e7c2711ea70 | [
"JavaScript"
] | 1 | JavaScript | Mawa89/mon_agence_web | 4bb8f73aac857d76005fe4239171c2d69683d434 | c9d2f7dd9f1d9c2d2527fddded1d8194f5ae0820 |
refs/heads/master | <repo_name>RajuRaghuwanshi/Tic-Tac-Toe-Game-in-C<file_sep>/TicTacToe.c
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <windows.h>
char matrix[3][3];
int cordiX,cordiY;
void Draw_Rect();
void gotoxy(int x, int y);
void Draw_matrix();
void get_player();
void init_Matrix();
void get_comp... | 43ff189a1d0f6de1565364eff8862727a48742b1 | [
"C"
] | 1 | C | RajuRaghuwanshi/Tic-Tac-Toe-Game-in-C | de786cf70292a3ae9dd29dac6a95e172c8447adc | 8333fd05ad8e1331aa08b1f447b10b52c10f8daa |
refs/heads/master | <file_sep># mstools [](https://travis-ci.org/szydell/mstools) [](https://coveralls.io/github/szydell/mstools?branch=master)
Tools I use in different GO pr... | 71d03adb515112ab20fe2a7dc6908bcc0654509a | [
"Markdown",
"Go"
] | 3 | Markdown | szydell/mstools | 6dc592205339d8288416d88dd7f69a1bca27f086 | 39c9a8e0f5a92b23a081b57c2bc1ba6378588d88 |
refs/heads/master | <file_sep>angular.module('blockchainMonitorApp')
.directive('transactions', function(Blockchain) {
return {
restrict: 'E',
replace: true,
link: function(scope, element, attrs) {
scope.txList = [];
Blockchain.getTicker(function(data) {
if (data.op != 'utx')
return;
v... | f0e65d8ac827bc1a62e0efd2045d24a29b05dc68 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | msfrisbie/btc-viz | 6683a0bc7fc0c9f3adf2a6690b9b47344048f103 | 18e68aa0d8dba58db6ef24c96e033d879328895e |
refs/heads/master | <repo_name>moraisjessica/cosmeticos_bd<file_sep>/README.md
# cosmeticos_bd
repositório é uma pasta que contém uma pasta chamada .git que faz o gerenciamento dos arquivos.
- git init -> criar um repositorio
- git add -> adiciona um arquivo da pasta para o repositório
- git commit -> gera uma versão do repositório
- gi... | ce5e9d1811aa8c0fd38dc06b2ed2a1a1079a2704 | [
"Markdown",
"SQL"
] | 5 | Markdown | moraisjessica/cosmeticos_bd | edffb601c013f8fb00fae84b8429c1c21b6e90cf | 8f304d727e4875209eb0fae55caee5a196c70b29 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.