Skip to content

Instantly share code, notes, and snippets.

View jq2's full-sized avatar
๐ŸŒ
I may be slow to respond. #cyberwarfare

Danny Caroline jq2

๐ŸŒ
I may be slow to respond. #cyberwarfare
View GitHub Profile
@foonathan
foonathan / borrow.cpp
Last active August 24, 2023 08:42
Quick'n'dirty implementation of Rust's borrow checker for a C++Now Lightning Talk - not supposed to be used
#include <iostream>
#include "borrow_checker.hpp"
int main()
{
auto i = 42;
// borrow `i` under name `ref`
borrow_var(ref, i)
@sairion
sairion / fbmodules.js
Created August 24, 2015 17:28
Facebook Modules of 2015-08-25
var a= '';
for (var i in require.__debug.modules) {
a += (i + '\n');
}
console.log(a);
/*
module
exports
define
3d-game.com #dtdns.com
4irc.com #dtdns.com
b0ne.com #dtdns.com
bbsindex.com #dtdns.com
chatnook.com #dtdns.com
darktech.org #dtdns.com
deaftone.com #dtdns.com
dtdns.net #dtdns.com
effers.com #dtdns.com
etowns.net #dtdns.com
@whitfin
whitfin / InlineBrowser.java
Last active March 9, 2022 18:03
Inline browser loading for Android. Just extend and load your URL.
package com.zackehh.example;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.view.ContextThemeWrapper;