repo_name stringlengths 6 115 | branch_name stringclasses 217
values | path stringlengths 2 728 | content stringlengths 1 5.16M |
|---|---|---|---|
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 ... |
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... |
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()... |
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;
|
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... |
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.... |
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... |
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... |
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)'... |
jaspereel/vcard | refs/heads/master | /api.php | <?php
session_start();
$_SESSION['name']=$_POST['name'];
$_SESSION['position']=$_POST['position'];
$_SESSION['skill']=$_POST['skill'];
$_SESSION['mail']=$_POST['mail'];
$_SESSION['mobile']=$_POST['mobile'];
$_SESSION['module']=$_POST['module'];
if (!empty($_FILES)) {
copy($_FILES['photo']['tmp_name']... |
jaspereel/vcard | refs/heads/master | /preview.php | <?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vcard產生器-Preview</title>
<link rel=stylesheet href="css/<?= $_SES... |
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... |
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... |
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... |
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","... |
brapse/reindr | refs/heads/master | /src/reindr.js | //##########################################
//
// Reindr
//
// Html generation helpers
// By: Sean Braithwaite
//
// NOTE: won't work in IE (js 1.6 dependencies)
// Try not to depend on jquery for now
Array.prototype.each = function(func){
for(var i=0; i < this.length; i++){
func(this[i]);
}
retur... |
brapse/reindr | refs/heads/master | /README.markdown | Reindr: Monadic html generation from javascript
========================
Generate html with a chain of functions, similar to how jquery does selectors.
The Reindr() (shortcutted as $R()) function will generate a monad that acts as a chain of nested html elements.
Calling render() on a chain will output html.
<pre><... |
guillelo11/AngularQuiz | refs/heads/master | /AngularQuiz.js | angular.module('appPreguntas', [])
.controller('controladorPreguntas', ['$scope', function ($scope) {
$scope.questions = [
{
id : 1,
text:'¿Cuál es la capital de Australia?',
validAnswer : 3,
userAnswer : null,
status : '',
answers: ... |
guillelo11/AngularQuiz | refs/heads/master | /README.md | # AngularQuiz
AngularQuiz is a small project I made for class to learn AngularJS
|
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/... |
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... |
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() {
}
|
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... |
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 ... |
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.... |
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");
}
}
|
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... |
Glitchfix/TransposeMatrixIndorse | refs/heads/master | /README.md | # Transpose a matrix
### Prerequisites
- `pip3 install -r requirements.txt`
## Usage
Start the server
```
python3 server.py
```
Hit the URL `127.0.0.1:5000/transpose` with a POST request
Request format:
```
{
"matrix": [[1,2],[3,4]]
}
```
Response format:
```
{"error":"","result":[[1,3],[2,4]]}
```
|
Glitchfix/TransposeMatrixIndorse | refs/heads/master | /server.py | from flask import Flask, render_template, request, jsonify
from flask_cors import CORS
import json
import numpy as np
app = Flask(__name__)
CORS(app)
@app.route('/transpose', methods=["POST"])
def homepage():
data = request.json
result = None
error = ""
try:
mat = data["matrix"]
mat =... |
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... |
Sevasun/subscribe-form | refs/heads/master | /js/main.js | // init
document.addEventListener('DOMContentLoaded', function() {
let form = document.querySelector('.subscribe-form');
let input = form.querySelector('input[type="email"]');
let regExp = /^[a-z]+[a-z0-9_\.-]*@\w+\.[a-z]{2,8}$/i;
form.setAttribute('novalidate', 'novalidate');
input.addEventListener('input', () ... |
Sevasun/subscribe-form | refs/heads/master | /README.md | # subscribe-form
simple subscribe form with validation and thank-you message
|
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" |
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... |
altopalido/yelp_python | refs/heads/master | /README.md | # yelp_python
Web Application development with python and SQLite. Using www.yelp.com user reviews Database.
|
altopalido/yelp_python | refs/heads/master | /yelp_python/settings.py | # Madis Settings
MADIS_PATH='/Users/alexiatopalidou/Desktop/erg/madis/src'
# Webserver Settings
# IMPORTANT: The port must be available.
web_port = 9090 # must be integer (this is wrong:'9090')
|
altopalido/yelp_python | refs/heads/master | /yelp_python/app.py | # ----- CONFIGURE YOUR EDITOR TO USE 4 SPACES PER TAB ----- #
import settings
import sys
def connection():
''' User this function to create your connections '''
import sys
sys.path.append(settings.MADIS_PATH)
import madis
con = madis.functions.Connection('/Users/alexiatopalidou/Desktop/erg/yelp_p... |
shlsheth263/malware-detection-using-ANN | refs/heads/master | /python/gui.py | from tkinter import *
from tkinter import ttk
from tkinter import filedialog
import test_python3
class Root(Tk):
def __init__(self):
super(Root, self).__init__()
self.title("Malware Detection")
self.minsize(500, 300)
self.labelFrame = ttk.LabelFrame(self, text = " Open File")
... |
shlsheth263/malware-detection-using-ANN | refs/heads/master | /python/test_python3_cli.py~ | #!/usr/bin/env python
import sys
import time
import pandas as pd
import pepy
import binascii
import numpy as np
from hashlib import md5
import sklearn
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
from tensorflow.keras.models import load_model
def test(p):
exe = {}
print("Signature... |
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... |
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... |
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... |
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);
} |
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 |
mon0li/ICEspeed | refs/heads/master | /ice.sh | #!/bin/bash
speed=$(echo "$(curl -s "https://www.ombord.info/api/jsonp/position/" | grep "speed" | cut -d'"' -f 4)*3.6" | bc -l)
d=$(date)
echo "$d $speed km/h"
|
JoeChan/openbgp | refs/heads/master | /README.md | # openbgp
[](https://github.com/openbgp/openbgp/blob/master/LICENSE)
[](https://travis-ci.org/openbgp/openbgp)
[](http... |
JoeChan/openbgp | refs/heads/master | /openbgp/common/constants.py | # Copyright 2015 Cisco Systems, Inc.
# 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://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... |
JoeChan/openbgp | refs/heads/master | /requirements.txt | oslo.config==1.6.0
Twisted==15.0.0
ipaddr==2.1.11 |
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... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4