Skip to content

Instantly share code, notes, and snippets.

View weeebdev's full-sized avatar
㊙️
アニメを見ますよ

Adil Akhmetov weeebdev

㊙️
アニメを見ますよ
View GitHub Profile
@weeebdev
weeebdev / webdev_online_resources.md
Created March 28, 2020 10:43 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@weeebdev
weeebdev / onscroll.js
Created May 28, 2020 07:04
WHen the user scroll down 50 px
// When the user scrolls down 50px from the top of the document, resize the header's font size
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) {
document.getElementById("header").style.fontSize = "30px";
} else {
document.getElementById("header").style.fontSize = "90px";
}
}
@weeebdev
weeebdev / gradient-text.css
Created May 30, 2020 06:20
gradient text
h1 {
background-image: linear-gradient(#EAEBF5 0%, #C7C8DB 100%);
color: transparent;
background-clip: text;
}
@weeebdev
weeebdev / handle_file_upload.php
Last active June 9, 2020 13:28 — forked from ebidel/handle_file_upload.php
Uploading files using xhr.send(FormData) to PHP server
<?php
$fileName = $_FILES['afile']['name'];
$fileType = $_FILES['afile']['type'];
$fileContent = file_get_contents($_FILES['afile']['tmp_name']);
$dataUrl = 'data:' . $fileType . ';base64,' . base64_encode($fileContent);
$json = json_encode(array(
'name' => $fileName,
'type' => $fileType,
'dataUrl' => $dataUrl,
@weeebdev
weeebdev / 📊 Weekly development breakdown
Last active August 28, 2020 17:10
Weekly development breakdown
JavaScript 1 hr 1 min ████████▌░░░░░░░░░░░░ 41.0%
JSON 23 mins ███▎░░░░░░░░░░░░░░░░░ 15.9%
Markdown 22 mins ███▏░░░░░░░░░░░░░░░░░ 15.2%
Other 16 mins ██▎░░░░░░░░░░░░░░░░░░ 11.0%
Docker 14 mins ██░░░░░░░░░░░░░░░░░░░ 9.8%
@weeebdev
weeebdev / 🐱 GitHub Data
Last active August 28, 2020 00:38
GitHub Data
🏆 568 Contributions in year 2020
📦 Used 35 MB in GitHub's Storage
📜 7 Public Gists
🔑 0 Public Keys
💼 Opted to Hire
@weeebdev
weeebdev / Recent activity
Last active August 28, 2020 17:06
Recent activity
❗️ Opened issue #1380 in github/markup
🎉 Merged PR #1 in AlphaKennyBudy/activity-box
🎉 Merged PR #4 in AlphaKennyBudy/onetech-react
🎉 Merged PR #1 in AlphaKennyBudy/AlphaKennyBudy.github.io
🎉 Merged PR #1 in AlphaKennyBudy/CHATBOT
@weeebdev
weeebdev / fix-git-line-endings
Created October 29, 2020 03:43 — forked from synsa/fix-git-line-endings
Forces all line endings to LF in your git repo.
#####################
#
# Use this with or without the .gitattributes snippet with this Gist
# create a fixle.sh file, paste this in and run it.
# Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF)
# This Gist normalizes handling by forcing everything to use Unix style.
#####################
# Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
sudo apt-get install virtualbox-guest-additions-iso
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install virtualbox-guest-x11