Skip to content

Instantly share code, notes, and snippets.

View jxpx777's full-sized avatar
🤠

Jamie Phelps jxpx777

🤠
View GitHub Profile
@jxpx777
jxpx777 / vimrc
Created August 28, 2019 14:36 — forked from junegunn/vimrc
set nocompatible hidden laststatus=2
@jxpx777
jxpx777 / text.markdown
Created July 15, 2017 14:22
Escaping link text

[escaped text with brackets](and_a_url.md) a link with escaped anchor text.

@jxpx777
jxpx777 / iBank 5_2015-12-30-173156_Jamies-MacBook-Pro.crash
Created December 31, 2015 15:23
Crash for iBank calling -retain
Process: iBank 5 [41476]
Path: /Applications/iBank 5.app/Contents/MacOS/iBank 5
Identifier: com.iggsoftware.iBank5
Version: 5.6.4 (50113)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: iBank 5 [41476]
User ID: 501
Date/Time: 2015-12-30 17:31:55.281 -0600
@jxpx777
jxpx777 / main.js
Last active October 6, 2015 18:05
Error when disabling jetpack add-on
JavaScript error: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///Users/j/Library/Application%20Support/Firefox/Profiles/7ry75y3g.default-1426709652923/extensions/onepassword4@agilebits.com.xpi!/bootstrap.js, line 290: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXPCComponents_Utils.nukeSandbox]
@jxpx777
jxpx777 / Reload Extension Builder.kmmacros
Created August 4, 2015 17:42
Reload Safari's Extension Builder using ⌘R in Keyboard Maestro. Additionally, if the Inspect Global Page window was open, it will be reopened. (This assumes your global page is named global.html. Adjust the menu item conditional if not.)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>460387677.55399102</real>
<key>IsActive</key>
@jxpx777
jxpx777 / open_in_active_tab.js
Created February 19, 2015 19:31
The goal is to open a URL in the active tab. If one does not exist, we should open a new tab for it.
function openURLInActiveTab(url){
if (tabs.activeTab.url === undefined) {
tabs.open({url: url, onOpen: function onOpen(tab) { console.log("[GLOBAL]: Opened tab: " + tab); tab.activate(); tab.url = url; }});
}
else {
tabs.activeTab.url = url;
}
}
var WebSocket = null;
hiddenFrames.add(hiddenFrames.HiddenFrame({
'onReady': function () {
var self = this; // Don't use bind for `this` since GCC warns w/ "dangerous use of the global this object"
self.element.contentWindow.location = require("sdk/self").data.url("ui/hidden.html");
self.element.addEventListener("DOMContentLoaded", function () {
console.log("Initializing WebSocket for '" + self.element.contentWindow.location + "'");
//noinspection JSUnresolvedVariable
WebSocket = self.element.contentWindow.MozWebSocket || self.element.contentWindow.WebSocket;
class String
def to_numeronym
self.gsub(/\A(.)(.*)(.)\Z/) { "#{$1}#{$2.length}#{$3}" }
end
end
@jxpx777
jxpx777 / SassMeister-input-HTML.html
Created April 6, 2014 17:04
Generated by SassMeister.com.
<!DOCTYPE html>
<html>
<head>
<title>FWUPA</title>
<meta content="authenticity_token" name="csrf-param" />
<meta content="NIhzA2wh/3UWZa5iS7ts9qmX69QwoaXxXG6UseNuLpE=" name="csrf-token" />
</head>
<body>
<section id="wrap">
@jxpx777
jxpx777 / keybase.md
Last active March 1, 2018 19:39
keybase.md

Keybase proof

I hereby claim:

  • I am jxpx777 on github.
  • I am jxpx777 (https://keybase.io/jxpx777) on keybase.
  • I have a public key ASAZdbtpOCcWzDNcoKNVftcNmPhZ9vAIIup_FbVfwDAjmQo

To claim this, I am signing this object: