Skip to content

Instantly share code, notes, and snippets.

@1Marc
1Marc / randomdomnodes.js
Created August 12, 2015 13:04
random DOM nodes
var comments = document.querySelectorAll('#comment-list > li');
var commentsList = [];
var array = new Uint32Array(comments.length);
var randomIds = window.crypto.getRandomValues(array);
Array.prototype.forEach.call(comments, function(el, i){
if (el.id) commentsList.push({id: el.id, rand: randomIds[i]});
});
This file has been truncated, but you can view the full file.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\MPC-BE]
@=dword:00000001
[HKEY_CURRENT_USER\Software\MPC-BE\Capture]
"VidDispName"="@device:pnp:\\\\?\\usb#vid_04ca&pid_7025&mi_00#7&1e983a4a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global"
"AudDispName"=""
"Country"=dword:00000001
"VidOutput"=dword:00000001
@luis-pinheiro
luis-pinheiro / essential-gulp-plugins.md
Created May 10, 2015 18:05
essential-gulp-plugins
@maban
maban / Event Notes.md
Last active March 9, 2020 19:28
Event Notes

Event Notes

  • Event Name:
  • Location:
  • Date:
  • Conference format: (number of days, tracks, and speakers)

Talk

@davidfowl
davidfowl / dotnetlayout.md
Last active May 19, 2025 13:28
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@frontendbeast
frontendbeast / sm-annotated.html
Last active June 25, 2020 13:57 — forked from hdragomir/sm-annotated.html
The deferred font loading logic for Smashing Magazine, updated to include IE8 support. http://www.smashingmagazine.com/
<script type="text/javascript">
(function () {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
el.addEventListener(ev, callback, false);
@nocturnalgeek
nocturnalgeek / MailinatorAliases
Last active August 21, 2024 01:58
A list of alternate domains that point to @mailinator.com
@binkmail.com
@bobmail.info
@chammy.info
@devnullmail.com
@letthemeatspam.com
@mailinater.com
@mailinator.net
@mailinator2.com
@notmailinator.com
@reallymymail.com
@addyosmani
addyosmani / README.md
Last active May 18, 2025 11:45 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@aral
aral / transcript.coffee
Last active September 4, 2020 15:44
Quick and dirty regexp that we use to format video transcripts (CoffeeScript)
#!/usr/bin/env coffee
fs = require 'fs'
# Get the file name that’s passed as the first argument
nameOfFile = process.argv.slice(2)[0]
# Read the file and convert it from bytes to a string
file = fs.readFileSync(nameOfFile).toString()
@detroitpro
detroitpro / gist:4b2f7585d25ab37f2e59
Created August 11, 2014 01:55
NancyFx fake temp data
protected override void ApplicationStartup(IWindsorContainer container, IPipelines pipelines)
{
pipelines.BeforeRequest += (ctx) =>
{
if (ctx.Request.Session["TempMessage"] != null && !string.IsNullOrEmpty(ctx.Request.Session["TempMessage"] as string))
{
ctx.ViewBag.TempMessage = ctx.Request.Session["TempMessage"];
ctx.ViewBag.TempType = ctx.Request.Session["TempType"];
ctx.Request.Session.DeleteAll();
}