Skip to content

Instantly share code, notes, and snippets.

@rjmcguire
rjmcguire / d_to_html.d
Created September 6, 2017 06:21 — forked from WebFreak001/d_to_html.d
Create websites using D, with a cool syntax
import std.conv;
import std.stdio;
import std.traits;
import std.range;
struct Element
{
string _name;
string[string] _attributes;
string _content;
@rjmcguire
rjmcguire / decrypt_gpg_armor.go
Created February 17, 2017 20:51 — forked from jyap808/decrypt_gpg_armor.go
Decrypting an ASCII armored GPG encrypted string in Golang
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"code.google.com/p/go.crypto/openpgp/armor"
"fmt"
"io/ioutil"
"log"
)
@rjmcguire
rjmcguire / encrypt_decrypt_gpg_armor.go
Created February 17, 2017 20:49 — forked from jyap808/encrypt_decrypt_gpg_armor.go
Symmetrically encrypting a string into ASCII armored GPG format and then Decrypting it in Golang
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"code.google.com/p/go.crypto/openpgp/armor"
"fmt"
"io/ioutil"
"log"
)
@rjmcguire
rjmcguire / renoise.md
Created January 19, 2017 08:09 — forked from pezz/renoise.md
How to use Renoise on a system without f*#$ing it over and doing your head in
@rjmcguire
rjmcguire / LICENSE.txt
Created December 14, 2016 01:04 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@rjmcguire
rjmcguire / KeyLengthDetector.java
Created October 24, 2016 14:57 — forked from jehrhardt/KeyLengthDetector.java
Detect the allowed size of AES keys on the JVM. If the size is <= 256, it is limited. To fix it JCE unlimted stregth files are needed.
import javax.crypto.Cipher;
import java.security.NoSuchAlgorithmException;
public class KeyLengthDetector {
public static void main(String[] args) {
int allowedKeyLength = 0;
try {
allowedKeyLength = Cipher.getMaxAllowedKeyLength("AES");
} catch (NoSuchAlgorithmException e) {
@rjmcguire
rjmcguire / funcs.js
Created October 8, 2016 20:39 — forked from anonymous/funcs.js
7 js function
debounce = function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};
var callNow = immediate && !timeout;
clearTimeout(timeout);
#!/usr/bin/env python2
# Author: Chris Dellin <[email protected]>
# Date: 2016-09-14
# Script to scrape a working OAuth code from Google
# using the approach from dequis [see: https://github.com/tdryer/hangups/issues/260#issuecomment-247234371]
# for use with hangups, purple-hangouts, etc.
import pygtk
pygtk.require('2.0')
@rjmcguire
rjmcguire / README.md
Created September 12, 2016 15:09 — forked from rkirsling/LICENSE
Trend Chart (Area + Line)

This "trend chart" shows loading times across releases of a hypothetical web application.

It is a mixture of a line chart and an area chart, with the daily median loading time indicated by the line and percentile ranges indicated by the surrounding areas.

The "lollipops" mark releases of (different parts of) the application.

@rjmcguire
rjmcguire / README.md
Created September 12, 2016 15:08 — forked from rkirsling/LICENSE
Directed Graph Editor

Click in the open space to add a node, drag from one node to another to add an edge.
Ctrl-drag a node to move the graph layout.
Click a node or an edge to select it.

When a node is selected: R toggles reflexivity, Delete removes the node.
When an edge is selected: L(eft), R(ight), B(oth) change direction, Delete removes the edge.

To see this example as part of a larger project, check out Modal Logic Playground!