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>roua914/autocomplete-<file_sep>/index.js
//Get input element
var input = document.getElementById('select-book');
// Update the placeholder text.
input.placeholder = "Loading books...";
function getData() {
// Create a new XMLHttpRequest.
var request = new XMLHttpRequest();
request.open('GET', ... | 63010ed080feeb6960e036a1632027dc62ec5675 | [
"JavaScript"
] | 1 | JavaScript | roua914/autocomplete- | 6089dacd9a54660c967e34e1433bf604a776440c | 7af472dc9e31c26284cf392863ea2c3b3fb67776 |
refs/heads/master | <repo_name>hollberg/FIM_bots<file_sep>/screencap.py
"""profile_merge.py
Pass 2 column list of FIMS IDs; merge first into the second"""
import pyautogui as bot
import time
time.sleep(3)
region = (0,0, 1920,1080)
bot.screenshot('img/message_global_change_done_1366x768.png', region=region)<file_sep>/build_dc_zips.py
"... | 31144b730220c6add3a88c7513a71d28dc3918e4 | [
"Python"
] | 11 | Python | hollberg/FIM_bots | c9e5e01a11abbc23b60ea49f8888326c27e7024a | c6313f3225fbed4270c45210bb8d7ccb955984b4 |
refs/heads/master | <file_sep>Time machine and shutdown
==============================
2016-10-16
Launch time machine then shut your mac in one line.
This script starts a time machine backup, and when done, it shuts down your mac.
```bash
sudo tmutil startbackup --block;
sudo shutdown -h now;
exit
```
I personally make a tmdown a... | d64b9295b4c8c89b0d60e747d78db99520fc2aaf | [
"Markdown",
"Shell"
] | 2 | Markdown | lingtalfi/Time-machine-and-shutdown | a6e27121927f310998d0cccf3cd3904787c30d9d | 5a236fe3db79322170bd61c00997d47eececa23a |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package OWLapi;
import MCommon.Global;
import MDataProcessing.Assertion.ConceptAssertion;
import MDataProcessing.ConceptProc... | 8ba28b33c5726f3897da104f6f17c3cf736ab546 | [
"Java"
] | 6 | Java | gsanou/owlapi-1 | 60bb326520648bf1c4fd85caa97891b15e41c798 | 8b3e18818705e50c9f6bff5559faf6dc5c2805b5 |
refs/heads/master | <repo_name>tetsuhiko-dev/sw-runes-builder<file_sep>/js/summoner_war.js
const monstersJson = require('../datas/monsters.json');
const runeUpgradeJson = require('../datas/runeUpgrade.json');
const runeEffectJson = require('../datas/runeEffect.json');
const _ = require('lodash')
const baseArray = [0, 0, 0, 0, 0, 0, 0, 0... | 2d512d619c32e6f2ea1a61c2557aa928d509ded5 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | tetsuhiko-dev/sw-runes-builder | a85f2b2d644bef27a0e22d88910edc2db8e739be | f9bb13396e04dad70976fbef88dcab77e0cbdffc |
refs/heads/master | <file_sep>
# print Hello
#
# This functions prints Hello
# @param fname
# @param last-name
# @examples
# hello (fname="Rashid",last_name ="Ali")
hello <- function (fname , last_name ) {
cat (paste("Hello ",fname,last_name))
}
| 103e5cd5b6bddd8394d2890c2a9f62c4b841e628 | [
"R"
] | 1 | R | IBC-RashidAli/rpackage | 00f8802f994c09d59bdd06f1e0d94619b63d2281 | ab8f475ecb391597ff2840b5f52937be0376b998 |
refs/heads/main | <file_sep>import React from "react";
const ProfileTable = ({profiles, getProfiles, getProfileDetails}) => {
const renderHeader = () => {
let headerElement = ['name', 'height', 'mass']
return headerElement.map((key, index) => {
return <th key={index}>{key.toUpperCase()}</th>
})... | 950a1dab8bb4ed4e11bdabcf081fd08aead719e0 | [
"JavaScript"
] | 6 | JavaScript | kentkobi/starwars-directory | a80dd94bd3fa67abbe3ff56f0a7764a4744c83bc | 663bdd386e2718f14a25b35928644d19cbbaf558 |
refs/heads/master | <repo_name>acheng96/map-routes<file_sep>/README.md
# map-routes
Exploring Google Maps route drawing
<file_sep>/map-routes/map-routes/MapViewController.swift
//
// MapViewController.swift
// map-routes
//
// Created by <NAME> on 2/15/17.
// Copyright © 2017 AnnieCheng. All rights reserved.
//
import UIKit
import Go... | 1d5e556c3536de2112d2068b84143ccc566dc7ff | [
"Markdown",
"Swift"
] | 2 | Markdown | acheng96/map-routes | 8fe6f1f8cfbb069d0709e15adb832090495e536d | c5c1cabc2c776189a7c13f2fff7ea59bbbf4964e |
refs/heads/master | <repo_name>TomHarrop/readfish-test<file_sep>/test_commands.sh
#!/usr/bin/env bash
set -eux
# testing only! mount the reads directory, e.g.
sshfs -o ro host:/path data/reads
# open the shell
# add the following to troubleshoot?
# -B toml:/opt/ont/minknow/conf/package/sequencing \
singularity shell \
--writab... | e2fb8bf49cb5d01dc721eb4822d0536cca76944f | [
"TOML",
"Shell"
] | 5 | Shell | TomHarrop/readfish-test | 9373971584f4cfbd8c72c30d2f1d4474fefe54aa | 1f61c3121513fe513abee9ebd1e79f7e8eef79c9 |
refs/heads/master | <file_sep>server.servlet.context-path=/tokenwebservices
cxf.path=/
<file_sep>package com.ut.ws.soap;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.endpoint.Endpoint;
import org.apache.cxf.fronten... | 51d08fdd155c31266a7eac90753b797068a9745d | [
"Java",
"INI"
] | 3 | INI | erickamontero100292/tokenWebService | b839b03c8be277435f572954fa03c9ab0afed174 | fe62c0e042316d631a17077e2d7fd1cbfb9c1963 |
refs/heads/master | <repo_name>eclatdev/testtbcb<file_sep>/my.js
function sayHello()
{
alert("Welcome to Javascript World!");
}
function inputData()
{
num1=parseInt(prompt("Enter First Number"));
num2=parseInt(prompt("Enter Second Number"));
}
function add()
{
inputData();
sum=num1+num2;
document.write("<br><h1>The sum is " +... | 98da995b68b4ec848bb34b0d38f163e5c8da4304 | [
"JavaScript"
] | 1 | JavaScript | eclatdev/testtbcb | cff2c2070da0158e6ef0a762ac88bb4ae35aa7ed | ada298a90d37bb07678f218db7bcc6ebc0de65c9 |
refs/heads/master | <repo_name>AizarCabrera/backend_prework<file_sep>/day_4/ex21.rb
def add(a,b) #passing two arguments
puts "ADDING #{a} + #{b}" #printing our operation using interpolation
return a + b #returning our result
end
def substract(a,b) #passing two arguments
puts "SUBSTRACTING #{a} - #{b}" #printing our operation using ... | 8f959d9c8cb2f1ef31b878788f8a4fff85ec924f | [
"Markdown",
"Ruby"
] | 25 | Ruby | AizarCabrera/backend_prework | 7c019878977c8e14501a1fa9a7f1600299b13a8b | 2108d6044daadcff9490297f6a5295d766934cf2 |
refs/heads/master | <file_sep>package com.elacqua.opticmap.data.local
import androidx.lifecycle.LiveData
import androidx.room.*
@Dao
interface PlacesDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun addPlace(place: Place): Long
@Delete
suspend fun deletePlace(place: Place)
@Query("select * from pl... | cdcf547dc459bdaffebc84da3b21659502691a5e | [
"Markdown",
"Kotlin"
] | 24 | Kotlin | etasdemir/OpticMap | 72bfb9c95a3d3af7e0eb38d5814aa1760a84783d | 67fa10ac6cda0e7a5d5d13dcdcf959677f71f3c6 |
refs/heads/master | <repo_name>Godis91/A-simple-Todo-App<file_sep>/src/components/About.js
import React from 'react'
const About = () => {
return (
<div className="container">
<h3 className="center">About</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Pariatur totam ratione accusantium cum a dolore vo... | e8e4e6abe7fa80e30c6783177de7dd1cb552e68a | [
"JavaScript"
] | 3 | JavaScript | Godis91/A-simple-Todo-App | 3c07c33dfc3e0df2841bf28d9aa39a71389e4641 | 0655b1c42a37034c902fcd4cd7461bea7931db7e |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<title>PaginaPrincipal</title>
<link rel="stylesheet" type="text/css" href="estilo/layout.css"/>
<link href="https://fonts.googleapis.com/css?family=News+Cycle|Patua+One&display=swap" rel="stylesheet">
</head>
<body>
<?php
include("todos/header.php");
?>
<... | 33e171bc6c94c577304125107f5f749f6a164b15 | [
"Markdown",
"PHP"
] | 2 | PHP | nataliaflores/amostraif | 53c3003454b79a778ff2a0df2dce02ec064551b6 | ad5484150119d42862f39450738dad77120743d4 |
refs/heads/master | <file_sep><?php
class Zo_Customization_Block_Catalog_Product_View extends Mage_Catalog_Block_Product_View
{
public function tessst() {
return "zerzerzerzer";
}
}
| 8ed1d8b3a735167f2687d080e4f40117c0932ccd | [
"PHP"
] | 1 | PHP | neilyc/zo | 84c2bd3a867a33bdd478bf29c4a978860bdf03c2 | cd988458b01025aeed0400beadd9a40a55a2fb4e |
refs/heads/master | <file_sep>#include "plugin.h"
#include "CFont.h"
#include "CTimer.h"
#include "CCamera.h"
#include "extensions/ScriptCommands.h"
#include "CTxdStore.h"
#include "CMessages.h"
#include "CCoronas.h"
#include "CSprite.h"
#include "CModelInfo.h"
#include "CFileMgr.h"
#include "map"
using namespace plugin;
// GV1
CVector... | d3b5ba93180a7d4fe23a811dfb9342a96690cff2 | [
"C++"
] | 1 | C++ | Danilo1301/NSiren | 22c794da808a5fa30d0cc32514ba9757e5bc534c | b7ac8902abdfc9be1eea1de907e4fb93cdfd7699 |
refs/heads/main | <repo_name>magzumAlmat/ReactI18SPA<file_sep>/simple-react-responsive-navbar/src/components/about.jsx
import React from "react";
class about extends React.Component {
render() {
const { match, t, i18n } = this.props;
return (
<div>
<h2>Topics</h2>
</div>
);
}
}
export default abou... | 1ff4dd8e9bb22ad463bfb32137da936dcc932190 | [
"JavaScript"
] | 3 | JavaScript | magzumAlmat/ReactI18SPA | 574666d089edea5ed8eaa471fff5f5e1f92a2709 | cd5033f807998197661a48f1fa88dbf8246dd346 |
refs/heads/master | <repo_name>niblazevic/AutoSkola<file_sep>/app/src/main/java/com/example/autoskola_v1/PitanjaIOdgovori.java
package com.example.autoskola_v1;
public class PitanjaIOdgovori {
private String Pitanje;
private String Odgovor1;
private String Odgovor2;
private String Odgovor3;
private long TocanOdgovor;
... | 7dc7f1b6df66217d41090518d73671bc5b11501b | [
"Java",
"Gradle"
] | 11 | Java | niblazevic/AutoSkola | 420555759be6769093a1878ff660bbd1107955b2 | 148be1c623ab78f72fa0e9db65e1d3911a250db1 |
refs/heads/master | <repo_name>dannguyencoder/short_story<file_sep>/app/src/main/java/com/example/os_vinhnq/shortstoryapp/ShortStoryDatabaseHelper.java
package com.example.os_vinhnq.shortstoryapp;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDat... | 0cb684e519d4867a21e38370ab576c7ed46ca025 | [
"Java"
] | 1 | Java | dannguyencoder/short_story | 9db3c9c1e98b06db6c2556d629e09fc371172428 | 82e13b7b5178d24622544383f7bf412ae6ed6fb6 |
refs/heads/master | <file_sep>import { Game, AUTO } from 'phaser';
import TestScene from './test-scene.js'
const config = {
type: AUTO,
width: 800,
height: 800,
physics: {
default: 'matter',
matter: {
gravity: { y: .5 },
debug: false
}
},
scene: [
TestScene... | 230e45635cf63bceaf8c181500771fc2b4d54b5b | [
"JavaScript",
"AsciiDoc"
] | 6 | JavaScript | Lounge-Dev-Knights/gameoff-2018 | ce658c0c1e33d3eac1ca5f1719ad94029514aefb | e391c982a5862ed9eff6096d22283cab2758f3fe |
refs/heads/main | <repo_name>papermatter/papermatter-api<file_sep>/.env.example
CLOUDINARY_NAME=
CLOUDINARY_KEY=
CLOUDINARY_SECRET=
DATABASE_URL=<file_sep>/README.md
# The Paper Matter API
## One-Click Heroku deploy
<a href="https://www.heroku.com/deploy/?template=https://github.com/papermatter/papermatter-api">
<img src="https://ass... | 4c64c7cd93884cf96ad3690dd08ad0d4b3522b2d | [
"Markdown",
"Shell"
] | 2 | Shell | papermatter/papermatter-api | 2cdf6b99b998a5e8b2eec2d2cb04fcdce6209b60 | 33319791773038c56a037ff2873a48723202f8e2 |
refs/heads/master | <repo_name>AjithPanneerselvam/Go-Journey<file_sep>/Routines/Writer/main.go
package main
import (
"fmt"
"bytes"
)
type Writer interface {
Write([]byte) (int, error)
}
type Closer interface {
Close() (error)
}
type WriterCloser interface {
Writer
Closer
}
type BufferedWriterCloser struct {
buffer *bytes.Buf... | 0959ec2d3316d9c8b92485365c944542ec76d190 | [
"Go"
] | 11 | Go | AjithPanneerselvam/Go-Journey | b4e2929dba17cb3fd5c9fa10e0594deaf269ca58 | 00ce537b26754ae92d14963f525d66a4c1e1d892 |
refs/heads/master | <file_sep>package construtores_de_classes;
public class Aplicacao {
public static void main(String[] args) {
Retangulo r1 = new Retangulo();
double area1 = r1.calcularArea();
System.out.println(area1);
Retangulo r2 = new Retangulo(5,7);
double area2 = r2.calcularArea();
S... | 224d12553c7f42f05efb08ab577af3fa030cca0f | [
"Markdown",
"Java"
] | 8 | Java | bertolo321/fundamentos_java | 380a2e76da992f5e1a156202749dd943aae07d79 | b37fa173317ed08f9181b5375364686653bcd559 |
refs/heads/master | <repo_name>Apostlerus/opensoft<file_sep>/tests/unit/shoppingCart.spec.js
import { shallowMount, createLocalVue } from '@vue/test-utils';
import VueMaterial from 'vue-material';
import ShoppingCart from '@/components/ShoppingCart.vue';
describe('ShoppingCart', () => {
describe('ShoppingCart.vue', () => {
const lo... | af0aa0d5f9a4485b4b7e29faae00da2242def71d | [
"JavaScript"
] | 2 | JavaScript | Apostlerus/opensoft | 0e2b22fbe72700230ac091f7b135d6cc6c72b744 | 221cf9e41a72912a71c026ede520df33cf02551b |
refs/heads/master | <file_sep>library(gh)
my_repos <- gh("GET /users/:username/repos",
username = "chendaniely",
per_page = 100,
.limit = Inf)
saveRDS(my_repos, "my_repos.RDS")
| 269bb081ff978a5f875c0dc78ab664e7d90e62b0 | [
"R"
] | 1 | R | chendaniely/github_repo_explorer | 2a348ca1753bc39c4d6687c50ef28a2c398b35f3 | ac0558ae2976fff963b6c20530bfb0338de30812 |
refs/heads/master | <file_sep>#!/usr/bin/python2
# Filename :simpleclass.py
class Person:
pass
p = Person()
print p
<file_sep>#!/usr/bin/python
#Filename: for.py
for i in range(1,10,2):
print i
else:
print 'The for loop is over'
<file_sep>#!/usr/bin/python2
# FileName : classInit.py
class Person:
count = 0
def __init__(self,... | 13c82daebac8b4423a0c55f673a80e2588322341 | [
"Markdown",
"Python"
] | 15 | Python | saltwater/pysrc | 61c9ff78c15f85bbcebbc49680c41f3aea8b0625 | 06a4bee122a318b32346db70bd3b520005918f43 |
refs/heads/master | <repo_name>capotej/central_logger<file_sep>/lib/central_logger.rb
$:.unshift File.dirname(__FILE__)
require 'mongo'
require 'central_logger/mongo_logger'
require 'central_logger/filter'
require 'central_logger/initializer'
require 'railtie'
<file_sep>/test/test_helper.rb
require 'test/unit'
require 'shoulda'
require ... | e81b043a87e3f4b8a3f483c3780c0caa6cd71249 | [
"Ruby"
] | 2 | Ruby | capotej/central_logger | 66e094041e6f2f279f425d65712cb8f334e9bdcd | 6c4e13dd3b1df674c6ee131159a11242a186ccb8 |
refs/heads/master | <file_sep>using System;
using OnionSeed.Types;
namespace OnionSeed.Data
{
/// <inheritdoc/>
/// <summary>
/// Wraps a given <see cref="IRepository{T, TId}"/> and handles any exceptions of the specified type.
/// </summary>
public class RepositoryExceptionHandler<T, TId, TException> : QueryServiceExceptionHandler... | 635bc02e4486381901f6beede76e1627d4055968 | [
"Markdown",
"C#"
] | 64 | C# | TaffarelJr/OnionSeed | 2f317a752ff3227b60146ef3e6181a612ff5a6be | b2cd63c012a9fff6ec1b4bbe93a957b5b8082f27 |
refs/heads/master | <file_sep>//
// ZombieGridCellTypes.h
// Zombies_Leveler
//
// Created by <NAME> on 6/03/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
typedef NSInteger ZombieCellType;
enum {
ZombieCell_EmptyCell,
ZombieCell_Player1SpawnPoint,
ZombieCell_Player2SpawnPoint,
ZombieCell_Player3SpawnPoint,
Z... | a2d9028d171770c3cfbb7e585fbd0641c5f169f8 | [
"C"
] | 1 | C | nshgraph/iOS_Prj1_LevelMaker | 70b0785c3b423d0ea4ffc9e61f7faf15d5570344 | 59273aacfd3d80a0924901efa186dde65ad344c4 |
refs/heads/master | <file_sep>package com.user.reg.web.dto;
import org.springframework.web.multipart.MultipartFile;
public class UserDTO {
private String name;
private String sex;
private String contact;
private String email;
private int zip;
private String address;
private String hobbies;
private String qualificat... | 053b8aa12f543d5177d6bc3c1d39c58cc5a17d84 | [
"Markdown",
"Java"
] | 9 | Java | MixContent/User-registration-mvc | 7d17e3a686dc3fd201ca65028d2390b73d08b4ba | d5c0f40a9bddd113aa39732b4c2168262d72c332 |
refs/heads/master | <file_sep><?php
/**
* Provides the extra fields needed to store a user
*
* @package silverstripe-facebook
* @subpackage extension
**/
class FacebookUser extends DataExtension {
/**
* Stores the users' instance of Facebook
*
* @var Facebook
**/
static $facebook;
/**
* Whether or not to allow duplicate... | d557b5aef99ddf61b440378717b9c63d77e37d5d | [
"Markdown",
"PHP"
] | 6 | PHP | micmania1/silverstripe-facebook | dfa83e38101b6fe6a818905ae31004dbce9971e0 | 4c86281a0e0edfe6383df99d19c45e573a94220d |
refs/heads/master | <file_sep><?php
class LoginController{
// database connection and table name
private $db;
private $table_name = "users";
// object properties
public $email;
public $password;
public function __construct(){
include_once __DIR__."\..\config\dbconnecter.php";
$this->db =ne... | 78d84a0744fee3b3b6f1283f0c7d692fe10bd8e6 | [
"PHP"
] | 3 | PHP | dasanIkmal/loginApp | 2cb57033c31b359df7dadea6c9e0dbe86db7bd13 | 72c5cffbb062cdf3256b3a67f66e40d5972c3ebf |
refs/heads/master | <repo_name>CUIPF1993/gpython<file_sep>/mesh-color.cs
private void RunScript(Mesh mesh, List<Color> color, ref object A)
{
for (int i = 0 ;i < mesh.Vertices.Count ;i++)
{
if (color.Count > 1)
{
mesh.VertexColors.SetColor(i, color[i]);
}
else
{
mesh.VertexColors.... | f6bdc56686c3a0701171cddd2f25b1eacfde5e55 | [
"C#",
"Python"
] | 6 | C# | CUIPF1993/gpython | 5a2c4d8c1dbfe0677e9885f6540c3a573e772c07 | 099bd8978ad604c188f236caa3e72c2759221688 |
refs/heads/master | <repo_name>laenNoCode/site-anciens-eleves<file_sep>/contact.php
<div>
<form method="post" action="index.php">
<fieldset>
<p>
<label for="ameliorer"> Avez vous des remarques, des questions à nous faire parvenir ?</label><br />
<textarea name="ameliorer" id="amelior... | dceab6f4cad94ff1c4dd8e3d996ae9f0cc6d15fc | [
"JavaScript",
"PHP"
] | 5 | PHP | laenNoCode/site-anciens-eleves | abf28adfde67b314405f994c90b0708672273527 | f062ce774260d0155a83efccb3ac1f5678ab1680 |
refs/heads/master | <file_sep><?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Templa... | a1ae919942ceddd0d009f4fa7a4ab3062fa34972 | [
"Markdown",
"PHP"
] | 6 | PHP | MMokhure/eshopbw | fe14cdb5036c0606e6de24441fd88dc472b7f673 | ac907b6c9f1d125587c8bb449d6b99e564820ade |
refs/heads/master | <file_sep>// Invoice.cpp
// class member-function definitions.
#include <iostream>
using namespace std;Invoice
#include "Invoice.h" // Invoice class definition
Invoice::Invoice(string number,string style ,int sell ,int price )
{
setInvoiceNumber(number);
setInvoiceStyle(style);
setInvoiceSell(sell);
... | bfe7e02195cdf922fb1649707e1c9ae135bd6005 | [
"C++"
] | 6 | C++ | zhouyuxaing/Assignment_03 | 20d560165640f10bbd5cc31f127d3286e7386a01 | 0094d5d6217753d2229d92aa98d48e830f8bd96e |
refs/heads/master | <repo_name>binsom/Gzwx-vue<file_sep>/src/store/index.js
import Vue from 'vue';
import Vuex from 'vuex';
import axios from 'axios'
import router from '../router'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
// url:'http://192.168.3.11:9009/sgjbid',//测试环境
// url:'http://192.168.0.214:33333',//开发者环境
... | 2846cf659647836fef34715ffda03764fbf83f96 | [
"JavaScript"
] | 2 | JavaScript | binsom/Gzwx-vue | bdc62cdbca5dc3630180ef1cab74bfa7ca0ec181 | 6d4eeb9a1139123b83938262ab8a1897592168f4 |
refs/heads/master | <repo_name>sophiecheav/eligibilite-vote<file_sep>/elections.js
function saluer(bipbip) {
alert(`Bonjour ${bipbip} !`);
}
// Juste pour le bouton qui exécute Bonjour Pierre
// document.querySelector('.hello-btn').addEventListener('click', function(){
// saluer('Pierre');
// });
document.querySelector('.hello-btn')... | 1447e6c2a877f4c29311079a0f5d8b1461d5de92 | [
"JavaScript"
] | 1 | JavaScript | sophiecheav/eligibilite-vote | d6e5226f53133dd265d0da64f053257bbb27a301 | 8abf93d5fcd36b790d2885eb49f398316de7399e |
refs/heads/master | <file_sep>public function showTarget() {
if (Auth::user()->hasRole('admin')) {
$data['Area'] = Area::get();
$data['Regional'] =
Regional::where('ID_AREA',3)->get();
$data['Branch'] = Branch::get();
$data['Cluster'] = Cluster::get();
$data['Service'] = Service::get();
return view('admin.... | c1a4e62b9c41a43926f11ef41e34abdb6c294b74 | [
"PHP"
] | 4 | PHP | rohanaq/Buku-KPku | a1835c98d974fa1ef60ea9176fd784198807751d | 3b254bb96029305834e7a7e1d9771ac7a8ad8895 |
refs/heads/master | <repo_name>4rtemi5/ESP_Notify-DEPRECATED-<file_sep>/src/ESP_Notify.h
#ifndef ESP_Notify_h
#define ESP_Notify_h
#include "ESP8266WiFi.h"
class ESP_Notify
{
public:
ESP_Notify();
~ESP_Notify();
void sendNotification(String deviceId, String title, String message);
void sendNotificationToTopic(String t... | 9341d35093a69d2156af9728068494ee611898c8 | [
"Markdown",
"C++",
"INI"
] | 6 | C++ | 4rtemi5/ESP_Notify-DEPRECATED- | e9a5b700b9f4882c1b460cbf32f627156fe8adfd | 84ed8b698262f63148f31ae87304e29c3ef51703 |
refs/heads/master | <repo_name>TurboPtys/PDC<file_sep>/main.cpp
#include "curses.h"
#include <iostream>
#include <Windows.h>
#include <thread>
#include <cstdlib>
#include <semaphore.h>
#include <pthread.h>
#define NUMBER_OF_PHILOSOPHERS 5
bool sztucce[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
char sztucceC[10] = { 'W', 'W', 'W', 'W', 'W',... | f5873b4f68a35ed490a6a89d52d12f94a049b6e3 | [
"Markdown",
"C++"
] | 2 | C++ | TurboPtys/PDC | eb127d67b28a97b322406c12ff046f41a11c93dc | 9574705bcc6351b632416260346aabe7b06091da |
refs/heads/master | <file_sep>module.exports.get = (req, res, next) =>
req.mongo.collection('compras')
.find(
{ 'pizzas.puntos': { $gt: 2 } } // query
)
.toArray((err, result) => res.send(result))<file_sep>module.exports.get = (req, res, next) =>
req.mongo.collection('compras')
.updateOne(
{ ciudad: "Capi... | bcb08dc52d38eb51089094e08d08f7a7e554a71a | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | joseconstela/talks-and-presentations | 3fc350c970b1f363ce31df573cc9de0b1263b0eb | 5e49af9279281bb8ceac055024ef844262af234c |
refs/heads/master | <file_sep>KLADR API JS client for Rails Asset Pipeline
============================================
[JS client for KLADR API servise as jQuery plugin] [plugin] by [@garakh] [author] packaged for Ruby on Rails asset pipeline.
[](http://badge.fury.io/rb/jqu... | c670cf2974cece6b25bf11844d44f9131622e26c | [
"Markdown",
"Ruby"
] | 4 | Markdown | Envek/jquery-kladr-rails | 3a46d6ea61b0a396c68c0e31837be22612df2d47 | c44779695d63bd69db89aac55ae2010d3c718468 |
refs/heads/master | <repo_name>ba6a-yaga/webappcars<file_sep>/src/components/carousel/carousel.js
import React, { Component } from 'react'
import Row from "../grid/grRow"
import Col from "../grid/grCol"
import './carousel.scss'
import Button from "../button/button"
import Radium from 'radium'
import arrow from "../../static/arrow.svg";
im... | 114f584de0a57c4ca7fbd0e2c81e157b212a0a40 | [
"JavaScript"
] | 12 | JavaScript | ba6a-yaga/webappcars | 93be431912676e2d026b8a830a1924d2acec4729 | 317c6e09b5acaf5976f122530eab7ca79cf2581e |
refs/heads/master | <file_sep>$(document).ready(function () {
$(".nav ul li a").on("click", function () {
$(".nav ul li a").removeClass("active");
$(this).addClass("active");
});
$(".menu").on("click", function () {
$(this).toggleClass("active");
$(".overlay").toggleClass("open-menu");
});... | 11e0cccc3e01beb972fdafff0c6529fd3cfb4171 | [
"JavaScript"
] | 1 | JavaScript | golnazvalizade/Delisiouc-food-website | c5cf9a1df27b05f505dd439c147eea69afaf5e47 | acb18fb9f848addd6a860045021b39b4637fb1bb |
refs/heads/master | <repo_name>krrg/gnomon2<file_sep>/backend/src/routes/Clock.ts
import * as path from 'path';
import * as express from 'express';
import * as bodyParser from 'body-parser';
import * as cookieParser from 'cookie-parser';
import IRouter from "./IRouter";
import IGossip from "../gossip/IGossip";
import UserSettingsControll... | 22a1076b8b6989aae7f9cf81f08722a38f24cb33 | [
"JSON",
"JavaScript",
"Markdown",
"TypeScript",
"Shell"
] | 24 | TypeScript | krrg/gnomon2 | 43f5326608bab4bf86e0040f628b23c4a944c47f | be948e109cf8f5de14a3d7b52df1a0c9a79a0f22 |
refs/heads/main | <repo_name>sensoham21/Van_Order<file_sep>/Question3.sql
SELECT requestor_client_id AS Client, COUNT(requestor_client_id) AS Total_Orders_Completed, SUM(total_price) AS Total_Money_Spent
FROM vanorder
WHERE order_status = 2
GROUP BY requestor_client_id
ORDER BY Total_Money_Spent DESC, Total_Orders_Completed DESC;<file_s... | ecf86683762eb2551b99385cc5cfbdd708ff784f | [
"SQL"
] | 4 | SQL | sensoham21/Van_Order | a31ea7941b6c2bb4fa995292beb23b766aa9d5c8 | 75833d519da604200699465307719556aecc24df |
refs/heads/master | <repo_name>led-spb/motion<file_sep>/backup.sh
#!/bin/sh
. $(dirname $0)/config
# Creating file for last day
TARGET_FILE=$MEDIA_PATH/$(date --date="-$MTIME day" "+%Y-%m-%d.mp4")
TMP_VIDEO=$MEDIA_PATH/files.lst
echo Checking data for last day
find -H $MEDIA_PATH -maxdepth 1 -daystart -type f -name "$MEDIA_MASK" -mtime... | 752c126579ac11308343a33eeb1269cb7fe2179c | [
"Python",
"Shell"
] | 3 | Shell | led-spb/motion | 14fcf86c43b328ed7fa68529c71aaf85aa3bb115 | bab60aa20232e9fda2fc8fb2c82e14670cb0301d |
refs/heads/master | <repo_name>tanelj/skinhead<file_sep>/README.markdown
Shortcomings of most current template engines (e.g. Liquid, Smarty):
* Authors must learn yet another syntax
* Needs custom parser to parse template code and therefore do not produce correct HTML output when viewed in browser as static files.
Design goals of this e... | 3e4c021b9dde5290b8391700d526f76013fa09b2 | [
"Markdown",
"Ruby"
] | 3 | Markdown | tanelj/skinhead | 0a0bac56be06cf28a16e92873a704aa6af2dcc1d | 1ad4d4743696f404fafea57d915b2cf44ba08c92 |
refs/heads/master | <file_sep># sima_logger
Tool for logging sensor information about fermentation process.
For now plan is to have temperature logging and serve it to web server.
In the future might include scale to measure how much of the sugar has been converted to alcohol and CO2.
<file_sep>"""main.py
Main file of the program. ... | c00befeeb4048bf944e688c559cacc0fdca4ea40 | [
"Markdown",
"Python",
"Text"
] | 6 | Markdown | ukasofisosaari/simaattori | 98e02b1419752704e88b93d2550576ba4b6edae8 | 55b325eb4bf806219ed8d5b29cb5f2bea6287dae |
refs/heads/master | <repo_name>jemusser/Cargparse<file_sep>/argparse.c
#include "argparse.h"
Arg* head = 0;
Arg* tail = 0;
char* l_ptr;
void assert(int v, char* format, ...) {
if (!v) {
va_list args;
va_start(args, format);
vprintf(format, args);
va_end(args);
exit(-1);
}
}
Arg* _find_long(const char* value) {
... | b75277990de1d075ad6d110157d8fdbccb47a7fd | [
"C"
] | 2 | C | jemusser/Cargparse | a869d9d810e5102b53feeb666439d90cb486b559 | c2e39b06cd68c1b278edb63a53911c512b24139a |
refs/heads/master | <file_sep>class Idioma < ApplicationRecord
has_and_belongs_to_many :libros
end
<file_sep>class ParentPdf < Prawn::Document
def initialize(libro)
super(top_margin: 70)
@libro = libro
text "Libro \##{@libro.nombre}"
text "Idiomas \##{@libro.idiomas.map(&:nombre).join(', ')}"
end
end<fil... | b1f25937c5010a4eaa5d59d6c808205aa57acfb1 | [
"JavaScript",
"Ruby"
] | 22 | Ruby | Dfsma/biblioteca-rails | 78e86e323f11264d94bf6df07d8e14774477d1cb | 2ce37f64899c474483b4b3a3b52578b7e3cbdb88 |
refs/heads/main | <repo_name>anlgev/Association_Rule_Learning<file_sep>/Association_Rule_Learning.py
############################################
# Project ARL Recommendation
############################################
# Data Set Information:
# This Online Retail II data set contains all the transactions occurring for a UK-based an... | 831d90551491d479efe0deacb49b189eadfed086 | [
"Python"
] | 1 | Python | anlgev/Association_Rule_Learning | a0c1a371168d0e83e880a2cda0c331b1dd3c5746 | 968c501e62b3e9fc1dd9415c347f3b7caf76a124 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
import os
import unittest
from collective.csv2atvocabularymanager.testing import CSV2ATVM_INTEGRATION_TESTING
from collective.csv2atvocabularymanager.csv_import import createVocabulary
class TestUtility(unittest.TestCase):
layer = CSV2ATVM_INTEGRATION_TESTING
def test_basi... | 03f5f774ec9242218e0b8a057ccebd594cf7cc43 | [
"Python",
"reStructuredText"
] | 6 | Python | RedTurtle/collective.csv2atvocabularymanager | 896b0c129b1d6b439e8bb42e49273eaa833778eb | c94b475e0240eb36b1b8cc0981c8da99c7f4aef5 |
refs/heads/master | <repo_name>owainlewis/rails-error-messages<file_sep>/README.md
# Rails error pages
Some clean and simple error pages for your Rails applications that look nicer than the defaults.
# Previews

;
void initiate(const char* title, int x_pos, in... | 4f212a8a9726b68e7bbea7eac371a030d884afc9 | [
"Markdown",
"C++"
] | 15 | C++ | TheChill/Game_Project | 49d1666af33eddecf230dd69816fe857ee211e6e | 2abc5f56d36751192a64ed3dfdcd260427b11e56 |
refs/heads/master | <repo_name>vineethk123/Design-Patterns-Assignment<file_sep>/subway recipes/Salad.java
public class Salad {
private boolean tomato;
private boolean capsicum;
private boolean carrot;
private boolean radish;
public double price;
public Salad(SaladBuilder sbuild) {
this.tomato = sbuild.... | 4d1e88e0d2151a592a7c50f4dc7d5921107913eb | [
"Java"
] | 18 | Java | vineethk123/Design-Patterns-Assignment | f3ea6b1d61eee79b40c8230420b6448d8e0f4845 | 24a1b7b530fce120a654c946e026143782ac5b64 |
refs/heads/master | <file_sep>import { combineReducers } from "redux";
import dataHelpers from './dataHelpers';
export default combineReducers({ dataHelpers });<file_sep>export const LIST_DATA = "LIST_DATA";
export const GET_YEARS = "GET_YEARS";
export const UPDATE_DATA = "UPDATE_DATA";
export const SUCCESS_LAUNCH = "SUCCESS_LAUNCH";
exp... | 2279c373f1c1272e141b599d469ecd7006a1d347 | [
"JavaScript"
] | 7 | JavaScript | Sharrumathi/SpaceX | 8ef4aa374053613cde68e90824ee4c3b7618e0e5 | 25d376b7e5055d8e31e3363757f00c9b29b4ec4f |
refs/heads/master | <file_sep>class Log < ActiveRecord::Base
validates_length_of :entry, :minimum => 2
class << self
def find_today
Log.find( :all,
:conditions => ["created_at BETWEEN ? AND ?", Date.today, Date.today + 1 ],
:order => "created_at ASC" )
end
def find_past
Log.find(:al... | 5c7f2258325956dc01bf41772b57d3e2089eade0 | [
"RDoc",
"Ruby"
] | 8 | Ruby | CarlosGabaldon/hacking-log | 033928e3f94a7d345f3db5f43386596dd6ad1110 | 9498fbc65e5af45852fcad67ea497e0b2d5655d8 |
refs/heads/master | <file_sep># Change log for WooCommerce Razer Merchant Services Normal Plugin
## v3.0.0 - Mar 13, 2020
- Release version 3.0.0
**Updates:**
- Rebrand to Razer Merchant Services.
## v2.7.1 - Apr 18, 2019
**Bug Fix:**
- Prevent duplicate record update into system after succeed payment.
## v2.7.0 - Apr 16, 2019
- ... | c1150ad42ac53e0b8b7aad25f877e99013f3f4df | [
"Markdown",
"PHP"
] | 9 | Markdown | MOLPay/WordPress_WooCommerce_WP-eCommerce_ClassiPress | 7050c25d206a8a33def50e6ba399f7d8eb21e193 | fc3d3fa56e680e4927c889023fe81d08dfbf1552 |
refs/heads/master | <repo_name>michifehr/simpsons_quote<file_sep>/Simpsons_Quote/wwwroot/js/site.js
var charName = "";
function myFunction(){
if (charName == ""){
document.getElementById("lanza").removeChild(document.getElementById("image_lanza"));
}
fetch('https://thesimpsonsquoteapi.glitch.me/quotes')
.then(fu... | 230496e1f277d9275a19c73fa8c33c29fa09a8d9 | [
"JavaScript"
] | 2 | JavaScript | michifehr/simpsons_quote | a6e85f22583323d65a31c6dce70669a9f0570bc8 | 90e80dcae6f0957584f8dee3de3924947b4273a2 |
refs/heads/master | <file_sep>(function(){
function MenuService (apiProxy){
var self = this;
this.data = [];
this.loading = false;
this.apiProxy = apiProxy;
this.tags="Organic, Gluten-free, Vegetarian"
this.presets = [
{
name: 'Burger Toppings',
type: 'Add Ons',
required: false,
limit: 2,
options: [... | 2708a736e75d2b11f8b1afb0402f3209535c1ba0 | [
"JavaScript"
] | 1 | JavaScript | imconfused218/menuMeAdmin | e64a0474ffa956e0e0ed4dd97ab9cf287e3e00f6 | 945068e8878b6b26cc10f17525fc9776dc7910c0 |
refs/heads/master | <file_sep>var myName = '<NAME>'
console.log(`Hello my name is ${myName}`)
var number = 2
var newNumber = (((number * 2) * 5) / number) - 7
console.log(`output id ${newNumber}`)
<file_sep># GitJavaScript
## <NAME>
| e3c47160a2119e0a3b8d93946f2765a4a3182fc2 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | rubelbhinder24/git-javascript | 79cbbd1aa516e6e34d7ef4e74cffa12bb280bdaa | 5860e24c9e0b3ab30fcaf0e50bb6c36a163c748f |
refs/heads/main | <file_sep>function updateTime(){
const currentTime= new Date();
let hour=currentTime.getHours();
let minute=currentTime.getMinutes();
let second=currentTime.getSeconds();
if(hour<10){
hour="0"+hour;
}if(minute<10){
minute="0"+minute;
}if(second<10){
second="0"+second;
}
document.getElementB... | 8d654913d26c6a622242250d0756bcf723b4b911 | [
"JavaScript"
] | 1 | JavaScript | sayan9112/Digital_Clock_Project_SkillSanta | d190ec1bfb793497267c85e02402c134364528ed | b59963e20fb18c2529aa9c5a63c3d79a78d4adce |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TV_rename
{
public partial class MainForm : Form
{
... | eef3b43abbcc4a1415455d71b14a31703a77d468 | [
"C#"
] | 1 | C# | hnkb/tv-rename | 1e28ce084cdcbceb30aaf029e685fd69360b17e5 | 517646df2ba389942a5f2c31605794957e3a73b3 |
refs/heads/master | <repo_name>michal-gruszka/ToDoMVC<file_sep>/model.py
from task import Task
import os.path
class Model:
""" Class representing tasks database. """
def __init__(self):
self._tasks = []
def get_task(self, index):
if index in range(0, len(self._tasks)):
return self._tasks[ind... | 2252ad883bf0b70a47ce4aa4db765e350f4c6cce | [
"Python"
] | 5 | Python | michal-gruszka/ToDoMVC | 00f5cd4997f61ad7d5996c8aae2c6a1111fce32a | 3f69c50051f630b3ebda5c38ff5eb9ac96f163a9 |
refs/heads/master | <repo_name>omer-akbas/stock-data<file_sep>/models/db.go
package models
import (
"database/sql"
"flag"
"fmt"
"log"
_ "github.com/go-sql-driver/mysql"
)
func dbConnect() *sql.DB {
// var (
// host string
// port string
// database string
// user string
// password string
// )
// flag.Str... | a75f8c1b1393a3ee87a61fa48ac61717bab37b65 | [
"Markdown",
"Go Module",
"Go"
] | 7 | Go | omer-akbas/stock-data | fbb00cb4d0921e3fcb8ec96f1227af65aa40bdea | c7b49469e2c554095f880a5afe7757d6d0a1aa2b |
refs/heads/master | <repo_name>omissis/AgaveeSingleSignOnBundle<file_sep>/Security/AgaveeSSOUserProvider.php
<?php
// src/Agavee/Bundle/SingleSignOnBundle/Security/AgaveeSSOUserProvider.php
namespace Agavee\Bundle\SingleSignOnBundle\Security;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\C... | 6905aaf43b4862abc70b5d14b8e24f2172b6d8e3 | [
"PHP"
] | 6 | PHP | omissis/AgaveeSingleSignOnBundle | dde3d67ee16f15bbdd691534583a66aec72f3555 | 08ebce912dd8d000a0f958c9f79ea9f0ab839bac |
refs/heads/master | <file_sep>const reactiveElem = document.querySelector(".cursor-reactive");
console.log("loaded");
reactiveElem.addEventListener("mousemove", (e) => {
console.log("hello");
alert("hi");
reactiveElem.style.backgroundPositionX = -e.offsetX + "px";
reactiveElem.style.backgroundPositionY = -e.offsetY + "px";
});
<... | 7c676e3e4b548d113d57a5ac526252b4ad140f68 | [
"JavaScript"
] | 3 | JavaScript | llllQ/mikepenlingtonwebsite | 6ef88edff9dc47b89af800a472ffe67806dd934c | 9b16790205b58fd6df9d1e47338e3ea08934e5b9 |
refs/heads/master | <repo_name>emonmishra/Anastasia<file_sep>/README.md
# Anastasia
# Testing connectivity
# Test starting
<file_sep>/src/com/rockyou/command/info/CommandInfo.java
package com.rockyou.command.info;
import com.rockyou.storage.Key;
import com.rockyou.storage.Value;
public class CommandInfo implements ICommandInfo {
@Ov... | de2af0b4f47d017454e68e40f35a40970b19ac6b | [
"Markdown",
"Java"
] | 7 | Markdown | emonmishra/Anastasia | 6975835e79c62de10e7819f909be3989ec73ba5d | ed02899ab05723c7a93988dce5a219199753e8f5 |
refs/heads/master | <file_sep>{
'includes': [
'../build/common.gypi',
],
'variables': {
'sources': [
'InitializeLLVM.cpp',
'log.cpp',
'CompilerState.cpp',
'IntrinsicRepository.cpp',
'CommonValues.cpp',
'Output.cpp',
'Compile.cpp... | c9f08a4e412101cf714585939e59013ad650c100 | [
"Markdown",
"Python",
"C",
"C++",
"Shell"
] | 30 | Python | jjykh/llvm-toy | 09b25365ade0910ced41f6981215d9df9d2c49c5 | 4a2c91defbcbe084970377a6a18eff1952255a00 |
refs/heads/master | <file_sep>package one.digitalinnovation.estoquedecerveja.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.BAD_REQUEST)
public class CervejaExceededException extends Exception {
public CervejaExceededException(Long id... | 59a0c2586c0550c9249fd5dae0ac9c909006b42a | [
"Java"
] | 2 | Java | daniellepatricio/estoquedecervejaREST | ff1d7e11a09575012a664a3b1b84606a2f506342 | 1f78bbce9f0e38072820b94deb62b05b3c2b2048 |
refs/heads/master | <repo_name>aheumaier/azure-nvidia-linux-desktop<file_sep>/scripts/test/setup_ubuntu_desktop.bats
#!/usr/bin/env bats
load 'libs/bats-support/load'
load 'libs/bats-assert/load'
load 'test_helper'
profile_script="./scripts/setup_ubuntu_desktop.sh"
setup() {
DOCKER_SUT_ID=$(docker run -id ubuntu:18.04)
}
function t... | 59081a98610a9377d66ec7c7216cfa9400ebba3e | [
"Markdown",
"Makefile",
"Shell"
] | 4 | Shell | aheumaier/azure-nvidia-linux-desktop | e5f3631ff12254569907cb2495c43634724de581 | 7f236002de95053927824ecd59aa60f74f0d2a43 |
refs/heads/master | <file_sep>package com.myself.spring.lifecycle.common;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
/**
* @author 【name】毛攀攀
* @author 【date】2019/04/25
* @author 【时间】22:47
* @author 【说明】
* @author 【工程】test-spring-lifecycle-demo
* @author 【目录】c... | 6d843b312038b17fa571bf24983533fd7bd9e43e | [
"Java"
] | 3 | Java | maopanpan/test-spring-bean-lifecycle-demo | f46f5d07045a384bc68c2d1a49c517a021191fd5 | 235c24c52ba125ad0686da5ac8866206be25e809 |
refs/heads/master | <repo_name>object/Akka.Persistence.Reminders<file_sep>/Akka.Persistence.Reminders/ReminderSettings.cs
#region copyright
// -----------------------------------------------------------------------
// <copyright file="ReminderSettings.cs" creator="<NAME>">
// Copyright (C) 2017-2023 <NAME> and contributors
// </cop... | ea738f5bf687519e9b1c53940b08d2cc182d4720 | [
"Markdown",
"C#",
"Shell"
] | 4 | C# | object/Akka.Persistence.Reminders | e09915c1f81c95aa89c37d2c28dc6fc1f1e81cbc | 9edc41a20aaf2f4141d4e86bc2e577f630b09c1d |
refs/heads/master | <file_sep>//concrete component class
public class ComponentBeerDecaf extends ComponentBeer {
public ComponentBeerDecaf(){ desc = "Decaf";}
public double cost(){ return 1.49 ;}
}
<file_sep>public class ObserverIns1 implements Observer, Display {
private float temp;
private float humi;
private float pre... | f1b6ba164b926ad1fa1f22c9c46369e5c4e7387e | [
"Markdown",
"Java"
] | 31 | Java | 960761/AboutDesignPattern | 90e6e7b3f02067b808d9c5af6900dd7e65c489a0 | 825d49f55ec4446c35e0310522d241f3003858a0 |
refs/heads/master | <file_sep>import * as React from 'react';
import {View} from 'react-native';
import WelcomeScreen from './screens/SigningIn'
import {createSwitchNavigator,createAppContainer} from 'react-navigation';
import appTab from './screens/appTab.js';
import navi from './screens/Navigation';
import Drawer from './screens/Drawer'... | 8fab0404dbfe27380eb3ec5ea4c7598559e6eb10 | [
"JavaScript"
] | 8 | JavaScript | dhruv11-d/BarterSystemApp8 | 9e912c078ba988fd3b88f89451ec99aa14930306 | bb6ed67ae1b57f121e38e47652eade65274c338d |
refs/heads/master | <file_sep>// code here
const getData = async (url) => {
const resp = await fetch(url);
const data = await resp.json();
data.forEach((usuario) => {
const { nombre, correo} = usuario; // Object Destructuring =)
document.querySelector("#nombreUsuario").innerHTML = nombre;
document.querySe... | 3960fa9e2f54f77a3da5631aaedc7f934dfa6c61 | [
"JavaScript"
] | 3 | JavaScript | Biggiegun/sprint1WB | 85afd5ab0b608b1a15fa1ae94b0dd59faf1e13a3 | 7c859605eaa3796142fe294840e273589487e4b8 |
refs/heads/main | <file_sep>def freq(str):
max_count=1
count=1
n=len(str)
for i in range(0,n-1):
if(str[i]==str[i+1]):
count+=1
max_count=max(max_count,count)
else:
count=1
print("It is a ",max_count," neighbour")
str=input("Enter the string: ")
freq(str)<file_se... | e2c2f34c743f20edbf7d044816ef2e53bc26d2cf | [
"Python"
] | 12 | Python | Soumojitshome2023/Python-Lab-PCC-CS393- | e0f15b469a06b93a44783e3ea4cf6d31dc3eb00c | f0c5ec922c2199a9a5f54410ef00ebf928bf80ee |
refs/heads/master | <repo_name>dongdongzhaoUP/sgx_db<file_sep>/App/App.cpp
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include "sgx_urts.h"
#include "sgx_utils/sgx_utils.h"
#include "Enclave_u.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <netinet/in.h>
#include <arpa/inet.... | 3d17d5be93651ec55fd08cfa64306cf1f202c91e | [
"C++"
] | 2 | C++ | dongdongzhaoUP/sgx_db | 9c1989f80c7a5bb097a23229bb8f25dfadc9ba78 | 5d5f61735593fedfe6ff759909fcb87660997950 |
refs/heads/master | <repo_name>nimaeskandary/Daemon-Dash-UMD<file_sep>/README.md
# Daemon-Dash-UMD-2015
Daemon Dash:
Small hackathon at the University of Maryland. My team of me and three other students found a database online of UFO sightings and decided to represent aspects of the data in charts and graphs, and made a widget that mines ... | 1d4aaf04a8da0d5573c643117657dd6befe395ab | [
"Markdown",
"JavaScript"
] | 2 | Markdown | nimaeskandary/Daemon-Dash-UMD | 5acdcac29dff3de486de901f7157ea65ca5e2c69 | 737871138fad7696c7a9e313f82900c48a486ddc |
refs/heads/master | <file_sep>// $(document).ready(function() {
// $("#first-name").keypress(function(){
// var firstname = $('#first-name').val();
// var nameregex = /^[a-zA-Z]{2,30}$/;
// if(!nameregex.test(firstname)){
// $('#fn-error').removeClass('hide');/* $('#fn').css('border-color','red');*/
// }
// els... | 96d021325cbdca5472b61e6b58bec000c9b45aed | [
"JavaScript"
] | 1 | JavaScript | chytramn59/konnexe-res | 9263047a991a7c49c2a70fc921a6f709655ac8fe | 65110abfe33ac372144a29de5361365e95f53910 |
refs/heads/master | <file_sep>const express = require('express'),
path = require('path'),
mongoose = require('mongoose');
// Realiza la conexion a la base de datos
mongoose.connect('mongodb://localhost/NombreDeLaBaseDeDatos', { useNewUrlParser: true });
const db = mongoose.connection;
db.once('open', ()=>{
console.log('Conectad... | f1d6d88cd95eb4dc97f986bdb00bf302ca073332 | [
"JavaScript"
] | 1 | JavaScript | kroyxlab/express-boilerplate | 80af38465aa112c659c1ad0c6148545b2be29df9 | e182352227127742803dfafcfe7c67ecddad4f88 |
refs/heads/master | <repo_name>ivnat97/test<file_sep>/src/lab/MethodOverride.java
package lab;
class Figure{
Figure(){}
double area(){
System.out.print("Площадь фигуры не определена: ");
return 0;
}
}
class Circle extends Figure{
double radius;
final double PI = 3.14;
Circle(){
radius = 1... | 4fdc9eef6f80f28df37839029efd9bdc56cd66f5 | [
"Java"
] | 3 | Java | ivnat97/test | 95794db9faa35cd14aa4ddb002c951ccfe8ff19c | 861ee4d1b401dea57f8223620bc7b0be569130ed |
refs/heads/master | <file_sep>
# coding: utf-8
# # Multichain-simpleUI
#
# import tkinter for python GUI
# import os for system file location
# In[49]:
from tkinter import *
import os
# # Working
#
# 1. locate file in system(here the files are in the same directory as the python file)
# 2. create a simple UI wi... | 8338deaf9b59d4f0326a53b04f26c61fcf629712 | [
"Markdown",
"Python"
] | 2 | Python | sanket-k/multiChain | 60d82f27876aed056326a060d6cc5cf0723cc834 | dfdf3c64c1872bd1d1a00806a8ed85d78d8fe09d |
refs/heads/master | <repo_name>NitinLondey/Spring-Boot-Challenge<file_sep>/src/main/java/com/mindex/challenge/service/CompensationService.java
package com.mindex.challenge.service;
import com.mindex.challenge.data.CompensationBean;
import com.mindex.challenge.data.CreateCompensationResponseBean;
public interface CompensationService {
... | 1e532f48a85d3e90e2df8385aa9fd4d8a70bb565 | [
"Java"
] | 5 | Java | NitinLondey/Spring-Boot-Challenge | afb7661bc7edfd3173238e4f735a6366954bea77 | 5a4d426d0fc0b5ec8ed429db7ed7c4b142f26e49 |
refs/heads/main | <file_sep>var nombre = "" + valDepart;
for (let i=valDepart+1; i<=valFin; i++) {
nombre = nombre + "-" + i;
}
| 23391d1ed3297365a64d7f67e947a29b4e6bb89a | [
"JavaScript"
] | 1 | JavaScript | jordanbelanger/jordanbelanger.github.io | 70d97895af236c18390f0edf9ec4b12fa8135497 | 7530e03f4f65572259bbbec614d185379f3f9014 |
refs/heads/master | <repo_name>zzork/playwright<file_sep>/test-runner/src/runner.ts
/**
* Copyright Microsoft Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... | b8f5c7c6f3a2a228b0f4a40d3ecaf030fd5de222 | [
"TypeScript"
] | 11 | TypeScript | zzork/playwright | 6ffdd4dfa1b8daf7bc43abd910b738ffee3ace44 | b07dff1075866610c97cdcd62340dabb78131df9 |
refs/heads/master | <repo_name>mtellect/FlutterImagePickCrop<file_sep>/README.md
# flutter_image_pick_crop
A new Flutter plugin for cropping images picked from camera or gallery.
## Screenshots
<img src="ss1.png" height="300em" /> <img src="ss2.png" height="300em" />
<img src="ss3.png" height="300em" /> <img src="ss4.png" height="300em... | 86125d8493a4abc1aba6e56c1bbff75e6d7be64b | [
"Markdown",
"Java",
"Gradle"
] | 5 | Markdown | mtellect/FlutterImagePickCrop | c66aeb272d668847c74e05d92ba1e146bf00b57e | 3055c90e9b9b42d097dd871a9f15b2513c6d0181 |
refs/heads/master | <repo_name>aesimpson/umoja-design-system-archive<file_sep>/.storybook/preview.js
import {html} from 'lit-html';
import samaTheme from './sama-theme.js';
const canvasStyles =
`
html{
font-size: 100%;
position: relative;
box-sizing: border-box;
--color-charcoal0: #0e0e11;
--color-charcoal1: #1E1E... | 30af19ddd5b53841230fb0747390bdece2d14ac1 | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | aesimpson/umoja-design-system-archive | fab1e406ed6d7a3da324ae95bf048f1d085288ab | 3abf961ccc1b5e2dd2e3b43217e8ebed1bb74888 |
refs/heads/master | <repo_name>einet/intranet-mannager<file_sep>/CMcast.h
/*
* CMcast.h
*
* Created on: Apr 8, 2014
* Author: zlx
*/
#ifndef CMCAST_H_
#define CMCAST_H_
#include <iostream>
#include <sstream>
#include <string>
#include <boost/asio.hpp>
#include "boost/bind.hpp"
#include "boost/date_time/posix_time/posix_time_t... | 5cc4ce98c3b1703d012b0f339d8788289d23096d | [
"JavaScript",
"Makefile",
"Text",
"C++",
"Shell"
] | 43 | C++ | einet/intranet-mannager | 62e243b67f1f17635a25acb7a78d25b249c98690 | 5462f124fcd72860e32b32640b54f3839c446def |
refs/heads/master | <repo_name>LiuxuyangK/springmvc-study<file_sep>/src/main/java/com/springmvc/lxy/other/Exec_19_01_06.java
package com.springmvc.lxy.other;
import com.alibaba.fastjson.JSONObject;
import java.util.Arrays;
import java.util.Comparator;
/**
* 描述: 动态规划
* <p>
*
* @author: harry
* @date: 2019-01-06
**/
public class Ex... | 19aa4ba786689c23789dc37b865c2e339d7a6f67 | [
"Markdown",
"Java",
"Maven POM",
"INI"
] | 21 | Java | LiuxuyangK/springmvc-study | b870da9877dd8b062490a2b6848d4d8d42419a0f | e2d9f2d509041a6423af4b8348a5a7b7be92d6f3 |
refs/heads/main | <file_sep>/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_parse.c :+: :+... | 7a2da38311ff06a1298d3614f70877da0761b18e | [
"Markdown",
"C",
"Makefile"
] | 4 | C | Vheidy/Corewar_asm | 66856bb47feb399dc523d77661e42d6c1b9a3dd8 | 08306a1895bf763dfae10ceada5406d93e795f93 |
refs/heads/master | <repo_name>via-platform/server-status<file_sep>/lib/main.js
const {CompositeDisposable, Disposable} = require('via');
const ServerStatusIndicator = require('./server-status-indicator');
const ServerStatus = require('./server-status');
const base = 'via://server-status';
const InterfaceConfiguration = {
name: 'Serv... | 1b524682976e150ca479fd495e1a099438d6a39d | [
"JavaScript"
] | 1 | JavaScript | via-platform/server-status | 2497f60f5f7c0ae6c19e460fab176dcd3f9f6f9e | dc67435c80e7f5e67b02f700f807e4ef2aa151df |
refs/heads/master | <file_sep>class User < ActiveRecord::Base
has_and_belongs_to_many :posts
has_many :posts
has_many :comments
has_many :links
has_many :atachments
end<file_sep>class LinksController < ApplicationController
before_filter :check_sign_in
# POST /links
# POST /links.json
def create
@link = Link.new(p... | c7dcc79a5974f45095f38e58bc2adfb66d16e640 | [
"Ruby"
] | 16 | Ruby | sergiomokshin/share | dfca8b56b15d82ef188108fb3f668aed5e93fb2e | 76f373e36bb7f8e73d1880b1f4f9e3c7730d1de5 |
refs/heads/master | <repo_name>deonwu/jilv<file_sep>/1/static/js/jsloader/JSCompressor.php
<?php
/**
* Merges every .js-file in directory/ies $dirs
* into one file and compresses them using
* Dead Edwards JavaScript-Packer
*
* @class JSCompressor
*/
class JSCompressor {
private $code;
/**
* Gets all JS-code in direc... | 7a184e48049eb82963c06a47b0919b0770d191a0 | [
"JavaScript",
"SQL",
"Markdown",
"PHP"
] | 109 | PHP | deonwu/jilv | e857682a7ab4475f003872b67431f4a71ed9a8c7 | 8530910d299cda7ba751fa66e30ca529905ce4a7 |
refs/heads/master | <file_sep>import React from 'react'
const BottomProgressBar = (props) => {
const { current, total, correctAns } = props
const remQuiz = total - current
const minScore = (correctAns / total) * 100
const currScore = (correctAns / current) * 100
const currProg = currScore - minScore
const maxScore = ((correct... | 2b6b5cb5eae6311eb743103378353afcd21ab43a | [
"JavaScript"
] | 2 | JavaScript | danuluma/quiz-app | a09b9ae2a6ca86631679633b10f659c26ff6d456 | ecbdf769cbc3c985d00f13903766ad9b3816fb34 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.