Skip to content

Instantly share code, notes, and snippets.

View elsewares's full-sized avatar
🍊
Orange you glad I set this?

Brian Hollenbeck elsewares

🍊
Orange you glad I set this?
View GitHub Profile
@elsewares
elsewares / .block
Created November 16, 2023 03:15 — forked from MNoichl/.block
Random Graph Generator
license: mit
function logColor(color, args) {
console.log(`%c ${args.join(' ')}`, `color: ${color}`);
}
const log = {
aliceblue: (...args) => { logColor('aliceblue', args)},
antiquewhite: (...args) => { logColor('antiquewhite', args)},
aqua: (...args) => { logColor('aqua', args)},
aquamarine: (...args) => { logColor('aquamarine', args)},
azure: (...args) => { logColor('azure', args)},
@elsewares
elsewares / zero-hero.md
Last active December 17, 2024 06:46
Zero to Hero -- HTML, CSS & JS

GENERAL PLAN OF ATTACK

The start of the runway is pretty shallow, but it gets deep fast as soon as we hit the Javascript parts. You should be sure to have the following on your computer (I'm assuming a Mac, but if it's Windows, we can work with it).

  • Atom, Sublime 3 or some other better-than-plain-text editor. I recommed Atom: https://atom.io/
  • iTerm 2 - A vastly superior terminal for MacOS: https://www.iterm2.com/
  • A non-Safari browser: Chrome or Firefox will do. (Safari is the modern-day equivalent of IE back in the day. Horrorshow.)

HTML + CSS

  1. Basic HTML.
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
@elsewares
elsewares / trage.gl.hostname.patch
Created May 18, 2013 22:10
Patch for TraceGL to set custom hostnames.
--- tracegl_orig.js 2013-05-13 10:46:07.000000000 +0100
+++ tracegl.js 2013-05-13 17:13:36.000000000 +0100
@@ -191,7 +191,9 @@
function processArgs(arg){
var sender // send messages to ui or zip
var uiport = 2000
+ var uihost = '0.0.0.0'
var tgtport = 2080
+ var tgthost = '0.0.0.0'
var fspec = {_no:[], _do:[]}
@elsewares
elsewares / dabblet.css
Created August 11, 2012 01:27
Testing.
/**
* Testing.
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
p { background: transparent; }
@elsewares
elsewares / jquery.myplugin.coffee
Created March 14, 2012 14:24 — forked from jimeh/jquery.myplugin.coffee
Example jQuery plugin written in CoffeeScript, and the resulting compiled JavaScript file.
$.fn.extend
myplugin: (options) ->
self = $.fn.myplugin
opts = $.extend {}, self.default_options, options
$(this).each (i, el) ->
self.init el, opts
self.log el if opts.log
$.extend $.fn.myplugin,
default_options: