Skip to content

Instantly share code, notes, and snippets.

View Ephellon's full-sized avatar

Ephellon Ephellon

View GitHub Profile
@Ephellon
Ephellon / shuffle.js
Last active January 4, 2019 08:14
Shuffle.js: An Encoding/Decoding Library (with LZW compression support)
var destruct, construct, roll, unroll, compress, decompress;
/* DO NOT USE for secure projects, there are only 32 possible outputs */
/* The input (de/con)structors */
/** Destructs (attempts to flatten) the input
* @parameter input: the input to flatten
*/
destruct = (input) => {
if(input === undefined || input === null)
@Ephellon
Ephellon / parseURL.js
Last active August 22, 2020 01:44
A better version of `new URL` (or `parseURL`)
function parseURL(url) {
if(url === undefined || url === null)
return {};
var url = url.toString(),
data = url.match(/^((([^:\/?#]+):)?(?:\/{2})?)(?:([^:]+):([^@]+)@)?(([^:\/?#]*)?(?:\:(\d+))?)?([^?#]*)(\?[^#]*)?(#.*)?$/),
i = 0,
e = "";
data = data || e;
@Ephellon
Ephellon / readme.md
Last active January 4, 2019 07:30
Documentation about SynQ.js

SynQ.js Quick Start

Objects, Functions & Methods

Data Oriented Items

Function SynQ.set -> String

arguments: String: Key Name, String: Data[, String: Password]

@guerrerocarlos
guerrerocarlos / chromecast_with_subtitles.html
Created January 21, 2017 12:45
The chromecast documentation for Chrome is terrible, so to save other's some time, here is the straigt-forward way to stream something quickly and with subtitles
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>
</head>
<body>
@Ephellon
Ephellon / Paramour.java
Last active September 16, 2017 00:48
Paramour Mini
package paramour;
import java.io.*;
import java.util.Scanner;
import javax.script.*;
public class Paramour {
private static Scanner input = new Scanner(System.in);
private static String JAVA_STRING = "";
@Ephellon
Ephellon / index.html
Last active September 15, 2017 22:45
Paramour
<div class="pretty-input">
<textarea translate="no" class="notranslate">
### Paramour 28.0.0
author: Ephellon Dantzler
date: Fri Aug 5, 2016
time: 21:00 CST -06:00
license: "MIT"
###
# Version Emulation
@Ephellon
Ephellon / TuxedoScript 16.8.7.markdown
Last active August 27, 2016 03:55
TuxedoScript 16.9.6

SynQ.js

Sync your data across multiple tabs and iframes! (I modified the shirt idea from some other source, but I can't find it, I'm pretty sure it was from "HTML5 Rocks.")

There's also built-in help, see SynQ.help('*').

A Pen by Mink CBOS - Ephellon Dantzler on CodePen.

License.

@alexhawkins
alexhawkins / nativeJavaScript.js
Last active April 28, 2024 08:52
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests