Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am amusablelemur on github.
  • I am rasmuslarsson (https://keybase.io/rasmuslarsson) on keybase.
  • I have a public key whose fingerprint is FEE7 0A34 A70F AE04 E341 4F8C 70FB 024B 689B F8A9

To claim this, I am signing this object:

echo img {-webkit-transform: rotate(180deg)} > "%APPDATA%/../Local/Google/Chrome/User Data/Default/User StyleSheets/Custom.css"
<?php
// File with bookmark class
require 'bookmarks.php';
// Create our bookmark parser with the backup files we want to load from
$parser = new BookmarkParser(
array(
"bookmarks_chrome_1.html",
"bookmarks_chrome_2.html",
@AmusableLemur
AmusableLemur / Wordpress gist fix
Last active December 15, 2015 00:29
This gist solves some CSS problems with using gists in Wordpress
pre, td.line_numbers span, td.line-numbers, td.line-data, div.line {
font: 12px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
line-height: normal!important;
}
table.lines {
margin-bottom: 0;
}
@AmusableLemur
AmusableLemur / gist:4360279
Created December 22, 2012 18:11
A very simple class to make extraction of bookmarks from Chrome and Firefox easier.
<?php
/**
* A very simple class to make extraction of bookmarks from Chrome and Firefox
* easier. Bookmarks need to be exported from the browser in order to be read.
*
* Example:
* $bp = new BookmarkParser(
* array(
* "bookmarks_chrome.html",
@AmusableLemur
AmusableLemur / Stumblr.php
Created August 4, 2012 20:56
Simple clone of StumbleUpon
<?php
# javascript:window.location = "<LINK TO FILE>?u="+encodeURIComponent(window.location);
require 'rb.php';
function linkExists($url) {
$links = R::findAll('link', '1');
foreach ($links as $link) {
@AmusableLemur
AmusableLemur / APK.php
Created April 25, 2012 21:26
A simple webapp to calculate alcohol per krona
<!DOCTYPE html>
<html>
<head>
<title>Alkohol Per Krona</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>