Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
ⒸⓄⒹⒺ

Gill Velleda Gonzales g1ll

💻
ⒸⓄⒹⒺ
View GitHub Profile
@jesperorb
jesperorb / php_form_submit.md
Last active May 13, 2021
PHP form submitting with fetch + async/await
View php_form_submit.md

PHP Form submitting

If we have the following structure in our application:

  • 📁 application_folder_name
    • 📄 index.php
    • 📄 handle_form.php
    • 📄 main.js

And we fill our index.php with the following content just to get a basic website with a form working. You should be able to run this through a php-server of your choice.

@precise-simulation
precise-simulation / parrun.sh
Last active Jan 2, 2020
Bash xargs script to run parallel MATLAB and Octave jobs
View parrun.sh
#!/bin/bash
#
# Bash script using xargs to run Matlab and Octave jobs in parallel.
#
n_parruns=16 # Total number of runs.
n_parproc=3 # Number of simultaneous parallel processes.
# Define Matlab/Octave executable and main m-scipt file to run.
export runcmd='/mnt/c/Octave/Octave-4.2.1/bin/octave-cli.exe'
@justsml
justsml / fetch-api-examples.md
Last active Apr 29, 2021
JavaScript Fetch API Examples
View fetch-api-examples.md
@jdsimcoe
jdsimcoe / base64.md
Created Oct 16, 2015
A guide to how to embed Base64 stuff in your web stuff.
View base64.md

HTML

Here is some code on how to embed Base64 in HTML:

JPEG

<img src="data:image/jpeg;base64,BASE64_STRING"/>

PNG

@jshaw
jshaw / byobuCommands
Last active May 11, 2021
Byobu Commands
View byobuCommands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window