Skip to content

Instantly share code, notes, and snippets.

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

Adil Akhmetov weeebdev

㊙️
アニメを見ますよ
View GitHub Profile
@weeebdev
weeebdev / banner.png
Last active December 20, 2023 19:13 — forked from dominiklohmann/banner.png
yabai autoupdate
banner.png
@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
@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 / webdev_online_resources.md
Created March 28, 2020 10:43 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)