Skip to content

Instantly share code, notes, and snippets.

View ocabafox's full-sized avatar

Ricky ocabafox

  • Cebu City, Philippines
View GitHub Profile
@ocabafox
ocabafox / file-upload-multipart.go
Created August 16, 2021 22:12 — forked from andrewmilson/file-upload-multipart.go
Golang multipart/form-data File Upload
package main
import (
"net/http"
"os"
"bytes"
"path"
"path/filepath"
"mime/multipart"
"io"
@ocabafox
ocabafox / draggable-example.js
Created August 4, 2021 16:33 — forked from remarkablemark/draggable-example.js
Basic draggable example using vanilla JavaScript.
'use strict';
/**
* Makes an element draggable.
*
* @param {HTMLElement} element - The element.
*/
function draggable(element) {
var isMouseDown = false;
@ocabafox
ocabafox / .gitignore
Created January 26, 2021 15:50 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@ocabafox
ocabafox / z.md
Created November 27, 2019 08:19 — forked from mischah/z.md
Installing und initializing z (https://github.com/rupa/z) with help of Homebrew.

#The power of z

Do you spend lots of time doing things like this?

cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwant

With z, you could just do this:

@ocabafox
ocabafox / docker_wordpress.md
Created June 27, 2019 09:48 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes