Skip to content

Instantly share code, notes, and snippets.

View DarkPhoenix6's full-sized avatar

Chris Fedun DarkPhoenix6

View GitHub Profile
@DarkPhoenix6
DarkPhoenix6 / require.js
Created October 31, 2017 20:05 — forked from RafaelQuirino/require.js
Javascript snippet that allows one to require it's files inside each other, without the need to reference them in the head of the htlm file.
/**
Worked this code out of stamat's gist. It had several issues back then.
It's mechanism is very simple. Load it in the html file first, and then
load your main script after that. Doing that you're able to create your
client-side app just requiring your files inside each other in a modular
fashion. It's awsome !!! ^^
*/
var _rmod = _rmod || {}; //require module namespace
_rmod.LOADED = false;
def multi(dispatch_fn):
def _inner(*args, **kwargs):
return _inner.__multi__.get(
dispatch_fn(*args, **kwargs),
_inner.__multi_default__
)(*args, **kwargs)
_inner.__multi__ = {}
_inner.__multi_default__ = lambda *args, **kwargs: None # Default default
return _inner
@DarkPhoenix6
DarkPhoenix6 / jessie-base.preseed
Created March 14, 2017 15:51 — forked from pgaskin/jessie-base.preseed
A preseed file for a minimal Debian Jessie installation
# How to run
# In the folder with these files
# sudo python -m SimpleHTTPServer 80
#
# Update the ip at the bottom of this file to the output of
# hostname -I
# This is your ip
#
# Start debian cd
# Press esc on menu
@DarkPhoenix6
DarkPhoenix6 / index.html
Created February 22, 2017 17:31 — forked from ixzy24/index.html
Basic HTML5 Skeleton
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<title>Title</title>
@DarkPhoenix6
DarkPhoenix6 / html5basicskeleton.html
Created February 22, 2017 17:29 — forked from jaxon/html5basicskeleton.html
HTML5 basic skeleton
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML5 basic skeleton</title>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type="text/css">
@DarkPhoenix6
DarkPhoenix6 / HTML5 Skeleton template.html
Created February 22, 2017 17:28 — forked from meltedlilacs/HTML5 Skeleton template.html
My basic html5 document, every time. with starting css
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<title></title>
<link href="style.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>