repo_name stringlengths 6 115 | branch_name stringclasses 301
values | path stringlengths 2 728 | content stringlengths 1 7.45M |
|---|---|---|---|
CSWITH89/skillmatrix | refs/heads/master | /functions/index.js | const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
exports.helloWorld = functions.https.onRequest((request, response) => {
r... |
leenismail/GPA-Calculator- | refs/heads/master | /cli/GPA.java |
import java.util.Scanner;
public class GPA {
public static void main(String[] args) {
int course;
int grade;
int CourseSum=0;//Sum of all courses
double CmltivSum=0;//Cumulative grades sum
Scanner s = new Scanner(System.in);
System.out.println("Please enter number of semesters:");
int semeste... |
heshmatpour/tamrin2 | refs/heads/master | /lcd.c | #include "lcd.h"
#include "stm32f4xx_hal.h"
#define D0_PIN_Start 1
#define LCD_DATA_MASK (LCD_D7|LCD_D6|LCD_D5|LCD_D4)
static GPIO_TypeDef* PORT_LCD;
static uint8_t state;
static uint16_t D[8];
static GPIO_TypeDef* port_EN;
static GPIO_TypeDef* port_RS;
static uint16_t PIN_RS, PIN_EN;
void ... |
ruanjiayu/githubFirstPush | refs/heads/master | /README.md | # githubFirstPush
第一次提交到github仓库的步骤以及遇到的问题
## 1. 当你本地已经存在代码的情况下,使用下面的方式来提交代码
1. 在本地使用git init
2. git remote add origin https://github.com/xxx
3. git pull origin master
4. git add .
5. git push -u origin master
## 2. 当你在github上提前先创建好了库
1. git clone https://github.com/xxx
## 3. 问题
### 3.1 git commit提交修改好的文件时候,提示`Chang... |
ruanjiayu/githubFirstPush | refs/heads/master | /src/main/java/com/xian/demo/Hello.java | package com.xian.demo;
/**
* @Description:
* @Author: Xian
* @CreateDate: 2019/8/29 11:00
* @Version: 0.0.1-SHAPSHOT
*/
public class Hello {
public static void main(String[] args) {
System.out.println("hello world");
}
}
|
pablor0mero/Placester_Test_Pablo_Romero | refs/heads/master | /main.py | # For this solution I'm using TextBlob, using it's integration with WordNet.
from textblob import TextBlob
from textblob import Word
from textblob.wordnet import VERB
import nltk
import os
import sys
import re
import json
results = { "results" : [] }
#Override NLTK data path to use the one I uploaded in the folder
d... |
Ashutosh-Choubey/RBA-MobileApp | refs/heads/master | /android/app/src/main/kotlin/com/example/RBA/MainActivity.kt | package com.example.RBA
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
|
GabinCleaver/Auto_Discord_Bump | refs/heads/main | /README.md | # Auto Discord Bump
❗ Un auto bump pour discord totalement fait en Python par moi, et en français.
💖 Enjoy !
🎫 Mon Discord: Gabin#7955

|
GabinCleaver/Auto_Discord_Bump | refs/heads/main | /autobump.py | import requests
import time
token = "TOKEN"
headers = {
'User-Agent' : 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7',
'Authorization' : token
}
id = input(f"[?] Salon ID: ")
print("")
while True:
requests.post(
f"https://discord.com/api/... |
josemiche11/reversebycondition | refs/heads/master | /reversebycondition.py | '''
Input- zoho123
Output- ohoz123
'''
char= input("Enter the string: ")
char2= list(char)
num= "1234567890"
list1= [0]*len(char)
list2=[]
for i in range(len(char)):
if char2[i] not in num:
list2.append( char2.index( char2[i]))
char2[i]= "*"
list2.reverse()
k=0
for j in range( len(c... |
Mucheap/Autoinsta | refs/heads/main | /config.php | <?php
/*
By @Mucheap
GitHub : https://github.com/Mucheap/Autoinsta.git
Email : appscomposer@gmail.com
*/
$username = 'INSTAGRAM_USERNAME';
$password = 'INSTAGRAM_PASSWORD';
$image_description = 'Your Description Here ...';
$imgurl = 'https://picsum.photos/7... |
MoisesWillianCorreia/calculadora | refs/heads/main | /atividade 02/parte.01.html/01.js | var div = document.getElementById("q1");
var input = document.createElement("input");
var input2 = document.createElement("input");
var buttom = document.createElement("buttom");
var p = document.createElement("p");
input.setAttribute("id","valorMinimo");
input.setAttribute("type","number");
input2.setAttribute("id","... |
fruitsamples/iGetKeys | refs/heads/master | /iGKTest.c | /*
File: MLTEUserPane.c
Description:
This file contains the main application program for the MLTEUserPane
example. This application creates a dialog window and installs a scrolling
text user pane in the dialog. You will notice that since the implementation
of these scrolling text fields is bas... |
fruitsamples/iGetKeys | refs/heads/master | /MapDialog.h | /*
File: MapDialog.h
Description:
MapDialog provides an easily accessable set of routines that allow your
application to resize dialog windows reposition their contents to similarily
located positions in the window after it has been resized.
Copyright:
Copyright 2001 Appl... |
fruitsamples/iGetKeys | refs/heads/master | /MapDialog.c |
/*
File: iGetKeys.c
Description:
Internationally Savy GetKeys test type routines for your entertainment
and enjoyment.
Copyright:
Copyright 2001 Apple Computer, Inc. All rights reserved.
Disclaimer:
IMPORTANT: This Apple software is supplied to you by Apple Co... |
bdhillon23/Cucumber_First | refs/heads/master | /Cucumber/src/test/java/com/dhillon/Cucumber/steps/Login2.java | package com.dhillon.Cucumber.steps;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class Login2 {
@Given("^User(\\d+) navigate to the stackoverflow website on the login page$")
public void user2_navigate_to_the_stackoverflow_website_on_the_... |
bdhillon23/Cucumber_First | refs/heads/master | /Cucumber/src/test/java/com/dhillon/Cucumber/runner/MainRunner.java | package com.dhillon.Cucumber.runner;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"C:\\Users\\balwinder\\git\\Cucumber\\Cucumber\\src\\test\\java\\com\\dhillon\\Cucumber\\features\\Login... |
sanjar8855/cactuscorp | refs/heads/master | /result.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CactusJobs.uz</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css"... |
sanjar8855/cactuscorp | refs/heads/master | /telegram.php | <?php
/* https://api.telegram.org/bot1430206287:AAGHi-PVElHdLIBhzNhAlv0nkivxnvH8jnM/getUpdates*/
$tel_nomer=$_POST['number']
$token = "1430206287:AAGHi-PVElHdLIBhzNhAlv0nkivxnvH8jnM";
$chat_id = "49394018";
$arr= array(
'Vakansiya ID: ' => '156',
'Фирма: ' => 'Raqamli Texnologiyalar Markazi',
'Нужен: ' => 'Андроид р... |
kaedelulu/U10316015_HW4_11_10 | refs/heads/master | /TestStack.java | /**
* Name : 呂芝瑩
* ID : U10316015
* EX : 11.10
*/
import java.util.Scanner;
public class TestStack {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
MyStack stack = new MyStack(); //invoke stack
for ( int i = 0 ; i < 5 ; i++ ){
stack.push( input.nextLine()... |
MissAle17/dsc-1-05-06-selecting-data-lab-online-ds-sp-000 | refs/heads/master | /insert.sql | INSERT INTO planets (name, color, num_of_moons, mass, rings)
VALUES ('Mercury', 'gray',0,0.55,1),
('Venus', 'yellow',0,0.82,1),
('Earth','blue',1,1.00,1),
('Mars','red',2,0.11,1),
('Jupiter','orange',53,317.90,1),
('Saturn','hazel',62,95.19,0),
('Uranus','light blue',27,14.54,0),
('Neptune','dark blue',14,17.... |
phu-bui/Nhan_dien_bien_bao_giao_thong | refs/heads/master | /main.py | import tkinter as tk
from tkinter import filedialog
from tkinter import *
from PIL import Image, ImageTk
import numpy
from keras.models import load_model
model = load_model('BienBao.h5')
class_name = {
1:'Speed limit (20km/h)',
2:'Speed limit (30km/h)',
3:'Speed limit (50km/h)',
4:'Speed limit (60km/h)'... |
arun8785/ArunkumarAlgorithmsAssignmentSolution | refs/heads/main | /arunkumarAlgorithmsAssignmentSolution/src/com/stockers/model/StockDetails.java | package com.stockers.model;
import java.util.Scanner;
public class StockDetails {
private int noOfCompanies;
public double[] shrPrice;
public boolean[] shrGrowth;
public StockDetails(int noOfCompanies) {
this.noOfCompanies = noOfCompanies;
}
public double getnoOfCompanies() {
return noOf... |
hsk/xterm.js | refs/heads/master | /src/xterm.ts | /**
* xterm.js: xterm, in the browser
* Originally forked from (with the author's permission):
* Fabrice Bellard's javascript vt100 for jslinux:
* http://bellard.org/jslinux/
* Copyright (c) 2011 Fabrice Bellard
* The original design remains. The terminal itself
* has been extended to include xterm CSI... |
adamwiguna/tugas1 | refs/heads/master | /tugas.js | window.onload = function (event) {
var wrapIcon = document.querySelector("#wrapicon");
var page = 1;
var limit = 3;
var url = "https://jsonplaceholder.typicode.com/posts";
var serverUrl = url + '?_page=' + page + '&_limit=' + limit;
fetch(serverUrl)
.then(
function (resp... |
drenovac/superail | refs/heads/main | /config/routes.rb | Rails.application.routes.draw do
root 'static_public#landing_page'
# get 'static_public/landing_page' # this is the generic form
# get 'static_public/privacy' # convert this to more sensible looking paths
get 'privacy', to: 'static_public#privacy'
# get 'static_public/terms'
get 'terms', to: 'static_publi... |
goodshitman/warframe-status | refs/heads/master | /lib/caches/cache.js | 'use strict';
const EventEmitter = require('events');
const http = require('http');
const https = require('https');
class Cache extends EventEmitter {
constructor(url, timeout, {
parser, promiseLib = Promise, logger, delayStart = true, opts, maxListeners = 45,
} = {}) {
super();
this.url = url;
t... |
homka506/digitalproducts | refs/heads/master | /src/assets/js/app.js | import $ from 'jquery';
import 'what-input';
// Foundation JS relies on a global varaible. In ES6, all imports are hoisted
// to the top of the file so if we used`import` to import Foundation,
// it would execute earlier than we have assigned the global variable.
// This is why we have to use CommonJS require() here s... |
baltorius89/NF3-PAC02-PHP-i-MySQL | refs/heads/master | /N3P206JavierComments.php.php | <?php
echo "<p>\n";
echo "\t<ul>
\t<li>Me parece util la manera en que guardas la creacion de tablas e inserts dentro de variables</li>
\t<li>Puedo utilizar las variables para ahorrarme el tener que implementar el codigo siempre</li>
\t<li>La relacion entre tablas me parece mas simple ... |
baltorius89/NF3-PAC02-PHP-i-MySQL | refs/heads/master | /PaginaConsultaMySQL (1).php | <?php
$db = mysqli_connect('localhost', 'root') or
die ('Unable to connect. Check your connection parameters.');
mysqli_select_db($db,'animesite') or die(mysqli_error($db));
// select the movie titles and their genre after 1990
$query = 'select anime_id, anime_name, anime_year, anime_type, animetype_label, caracte... |
kesamercy/diving-Competition-project | refs/heads/master | /README.md | # diving-Competition-project
Program to calculate score for a diver based on 7 judges
Problem Statement
Create a class that describes one dive in a competition in the sport of diving.
A dive has a competitor name and a competitor number associated with it.
The dive also has a degree of difficulty and a score from eac... |
kesamercy/diving-Competition-project | refs/heads/master | /OneDiveClass.java | //
// OneDive
// The purpose of this class is to describe one class
//
// Author: Nekesa Mercy
// Date: 11/02/16
//
package divingCompetitionPackage;
public class OneDiveClass {
//declare attributes
private String name; // the name of the diver
private int competitonNum; // the competition ... |
giogonzo/react-intl | refs/heads/master | /src/components/useIntl.ts | import {useContext} from 'react'
import {Context} from './injectIntl'
import {invariantIntlContext} from '../utils'
import {IntlShape} from '../types'
export default function useIntl(): IntlShape {
const intl = useContext(Context)
invariantIntlContext(intl)
return intl
}
|
giogonzo/react-intl | refs/heads/master | /src/error.ts | import {MessageDescriptor} from './types'
export const enum ReactIntlErrorCode {
FORMAT_ERROR = 'FORMAT_ERROR',
UNSUPPORTED_FORMATTER = 'UNSUPPORTED_FORMATTER',
INVALID_CONFIG = 'INVALID_CONFIG',
MISSING_DATA = 'MISSING_DATA',
MISSING_TRANSLATION = 'MISSING_TRANSLATION',
}
export class ReactIntlError extend... |
nhanh2/WebMyPham | refs/heads/main | /js/main.js | $(document).ready(function () {
var cart_count = 0 ;
console.log("ready!");
$(".card").click(function () {
window.location.href = "productdetail.html";
});
$("#shopping-card").click(function () {
window.location.href = ' ShoppingCardDetail.html';
});
});
|
smellycats/SX-CarRecgServer | refs/heads/master | /run.py | from car_recg import app
from car_recg.recg_ser import RecgServer
from ini_conf import MyIni
if __name__ == '__main__':
rs = RecgServer()
rs.main()
my_ini = MyIni()
sys_ini = my_ini.get_sys_conf()
app.config['THREADS'] = sys_ini['threads']
app.config['MAXSIZE'] = sys_ini['threads'] * 16
app... |
smellycats/SX-CarRecgServer | refs/heads/master | /car_recg/config.py | # -*- coding: utf-8 -*-
import Queue
class Config(object):
# 密码 string
SECRET_KEY = 'hellokitty'
# 服务器名称 string
HEADER_SERVER = 'SX-CarRecgServer'
# 加密次数 int
ROUNDS = 123456
# token生存周期,默认1小时 int
EXPIRES = 7200
# 数据库连接 string
SQLALCHEMY_DATABASE_URI = 'mysql://root:root@127.0.0... |
smellycats/SX-CarRecgServer | refs/heads/master | /car_recg/views.py | # -*- coding: utf-8 -*-
import os
import Queue
import random
from functools import wraps
import arrow
from flask import g, request
from flask_restful import reqparse, Resource
from passlib.hash import sha256_crypt
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from car_recg import app, db, api... |
francois-blanchard/Memo_project_flash | refs/heads/master | /README.md | Memo_project_flash
==================
Jeu de Memo |
francois-blanchard/Memo_project_flash | refs/heads/master | /js/script.js | function TestAs(s,n){
alert("test: "+s+" : "+n);
} |
jamesspwalker/week_07_day_2_hw_musical | refs/heads/master | /src/views/instrument_info_view.js | const PubSub = require('../helpers/pub_sub.js');
const InstrumentInfoView = function(container){
this.container = container;
};
InstrumentInfoView.prototype.bindEvents = function(){
PubSub.subscribe('InstrumentFamilies:selected-instrument-ready', (evt) => {
const instrument = evt.detail;
this.render(instr... |
cindy01/sandbox | refs/heads/master | /index.php | <?php
/*class BankAccount{
public $balance = 10.5;
public function DisplayBalance(){
return 'Balance: '. $this->balance;
}
public function Withdraw($amount){
if($this->balance < $amount){
echo ' Not enough money!';
}else{
$this->balance = $this->balance-$amount;
}
}
}
$alex = new BankA... |
jdamatopoulos/photoncloudfunction | refs/heads/master | /PhotonCloudFunction.ino | int red = D5;
int blue = D4;
int yellow = D3;
int changeColour(String colour);
void setup() {
pinMode(red, OUTPUT);
pinMode(blue, OUTPUT);
pinMode(yellow, OUTPUT);
bool success = Particle.function("changeColour", changeColour);
}
void loop() {
}
int changeColour(String colour)
... |
whaid/FPS-Player | refs/heads/master | /Script/RaycastShoot.cs | using UnityEngine;
using System.Collections;
public class RaycastShoot : MonoBehaviour
{
public int weaponDamage = 1;
public int weaponRange = 100;
public float fireRate = 0.1f;
private float nextFire = 0;
private Ray ray;
private RaycastHit hit;
private WaitForSeconds shotDuration = new ... |
whaid/FPS-Player | refs/heads/master | /Script/AnimationPlayer.cs | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AnimationPlayer : MonoBehaviour {
private Animator anim;
private AudioSource soundReload;
// Use this for initialization
void Start ()
{
anim = GetComponent<Animator>();
soundReload = GetCompone... |
ariksu/pyhfss_parser | refs/heads/master | /setup.py | from setuptools import setup
setup(
name='pyhfss_parser',
version='0.0.0',
packages=['', 'venv.Lib.site-packages.py', 'venv.Lib.site-packages.py._io', 'venv.Lib.site-packages.py._log',
'venv.Lib.site-packages.py._code', 'venv.Lib.site-packages.py._path',
'venv.Lib.site-packages.... |
veralindstrom/clara | refs/heads/master | /clara.js | $('#login').click(function() {
window.location.href='clara2.html';
});
var username = document.getElementById("username");
localStorage.setItem("username", username);
// Retrieve
document.getElementById("valkommen").innerHTML = "Vlkommen " + username;
|
Lasyin/batch-resize | refs/heads/master | /batch_resize.py | import os
import sys
import argparse
from PIL import Image # From Pillow (pip install Pillow)
def resize_photos(dir, new_x, new_y, scale):
if(not os.path.exists(dir)):
# if not in full path format (/usrers/user/....)
# check if path is in local format (folder is in current working directory)
... |
Lasyin/batch-resize | refs/heads/master | /README.md | # batch-resize
Python script to resize every image in a folder to a specified size.
# Arguments
<pre>
-h or -help
- List arguments and their meanings
-s or -size
- New pixel value of both width and height.
-x or -width
- New pixel value of width
-y or -height
- New pixel value of height
-t or -scale
- Scales pixe... |
Phalanxia/recs | refs/heads/master | /src/BuiltInPlugins/init.lua | return {
CollectionService = require(script.CollectionService),
ComponentChangedEvent = require(script.ComponentChangedEvent),
}
|
Phalanxia/recs | refs/heads/master | /rotriever.toml | name = "RECS"
author = "AmaranthineCodices <git@amaranthinecodices.me>"
license = "MIT"
content_root = "src"
version = "1.0.0"
[dependencies]
TestEZ = { git = "https://github.com/Roblox/testez", rev = "master" }
t = { git = "https://github.com/osyrisrblx/t", rev = "master" } |
Phalanxia/recs | refs/heads/master | /README.md | # RECS
A work-in-progress successor to [RobloxComponentSystem](https://github.com/tiffany352/RobloxComponentSystem). Primary differences:
* Systems exist as a formalized concept
* Components have very little attached behavior
* Singleton components exist |
kswgit/ctfs | refs/heads/master | /0ctf2017/pages.py | from pwn import *
import time
context.update(arch='x86', bits=64)
iteration = 0x1000
cache_cycle = 0x10000000
shellcode = asm('''
_start:
mov rdi, 0x200000000
mov rsi, 0x300000000
mov rbp, 0
loop_start:
rdtsc
shl rdx, 32
or rax, rdx
push rax
mov rax, rdi
mov rdx, %d
a:
mov rcx, 0x1000
a2:
prefetcht1 [rax+rcx]
loop a... |
dtkeijser/ChapAppFirebase | refs/heads/master | /app/src/main/java/com/example/chapapp/registerlogin/LoginActivity.kt | package com.example.chapapp.registerlogin
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.example.chapapp.R
import com.google.firebase.auth.FirebaseAuth
import kotlinx.android.synthetic.main.activity_login.*
class LoginActivity: AppCompatActivity() {
ove... |
dtkeijser/ChapAppFirebase | refs/heads/master | /app/src/main/java/com/example/chapapp/messages/ChatLogActivity.kt | package com.example.chapapp.messages
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.example.chapapp.NewMessageActivity
import com.example.chapapp.R
import com.example.chapapp.models.ChatMessage
import com.example.chapapp.models.User
import com.google.fireba... |
dtkeijser/ChapAppFirebase | refs/heads/master | /settings.gradle | include ':app'
rootProject.name = "ChapApp" |
altopalido/yelp_python | refs/heads/master | /README.md | # yelp_python
Web Application development with python and SQLite. Using www.yelp.com user reviews Database.
|
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 31