Skip to content

Instantly share code, notes, and snippets.

jQuery.loadScript = function (url, arg1, arg2) {
"use strict";
var cache = false,
callback = null,
load = true;
//arg1 and arg2 can be interchangable
if ($.isFunction(arg1)) {
callback = arg1;
cache = arg2 || cache;
} else {
@braiam
braiam / gist:7681018
Created November 27, 2013 18:46
glxinfo
glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_multisample, GLX_EXT_create_context_es2_profile,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
@braiam
braiam / disqus.js
Last active April 13, 2017 05:34
Implementing Disqus CSP friendly in Jekyll (and maybe others)
var disqus_config = function () {
let data_element = document.getElementById("disqus-data")
this.page.url = data_element.dataset.url;
this.page.identifier = data_element.dataset.identifier;
};
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 2600 Six-Core Processor
CPU Family: 0x17