Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

NoScripter noscripter

I may be slow to respond.
Block or report user

Report or block noscripter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
noscripter /
Created Aug 5, 2019 — forked from willurd/
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
noscripter /
Last active Apr 10, 2019 — forked from afternoon/
Rename .js files to .ts
noscripter /
Created Jan 31, 2019 — forked from paulirish/
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.


Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
noscripter / change-favicon.js
Created Sep 19, 2018 — forked from mathiasbynens/change-favicon.js
Dynamically changing favicons with JavaScript
View change-favicon.js
* Dynamically changing favicons with JavaScript
* Works in all A-grade browsers except Safari and Internet Explorer
* Demo:
// HTML5™, baby!
document.head || (document.head = document.getElementsByTagName('head')[0]);
function changeFavicon(src) {
noscripter /
Created Sep 17, 2018 — forked from emeeks/
An online tool for interactive teaching of network visualization and representation principles.

The range sliders at the top change the values for the force-directed algorithm and the buttons load new graphs and apply various techniques. This will hopefully serve as a tool for teaching network analysis and visualization principles during my Gephi courses and general Networks in the Humanities presentations.

Notice this includes a pretty straightforward way to load CSV node and edge lists as exported from Gephi.

It also includes a pathfinding algorithm built for the standard data structure of force-directed networks in D3. This requires the addition of .id attributes for the nodes, however.

Now with Clustering Coefficients!

Also, it loads images for nodes but the images are not in the gist. The code also refers to different network types but the data files on Gist only refer to the transportation network.

View safari-reaper.html
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
body {
noscripter /
Created Sep 13, 2018 — forked from lancejpollard/
Complete List of HTML Meta Tags

Copied from

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">

stupid type which lead to errors in JavaScript

  • localStorage.setItem('redirect', true)
    • localStorage.getItem('redirect') => 'true'(String)
  • var m = new Map()
    • m.set('1', 1) and m.set(1, 1) set two different values for m

Keybase proof

I hereby claim:

  • I am noscripter on github.
  • I am noscripter ( on keybase.
  • I have a public key ASCi39VazpZPblx90MZdvEbnzcJx7I_bD0_r3eDUSiMLTgo

To claim this, I am signing this object:

noscripter /
Created Jul 19, 2018 — forked from douglas/
Update all git repositories under a base directory
# store the current dir
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
You can’t perform that action at this time.