Skip to content

Instantly share code, notes, and snippets.

@JessieAMorris
JessieAMorris / gist:02d992f9fd363183c440
Created August 6, 2014 21:28
Highligh mixed tabs & spaces
highlight MixedIndent ctermbg = red guibg = #FF0000
" Executes all auto commands
function! <SID>SetupAutoCommands()
" Auto commands group
augroup better_whitespace
autocmd!
" Highlight extraneous whitespace at the end of lines, but not the
" current line
syn clear MixedIndent | syn match MixedIndent excludenl /\v^\s*( \t|\t )\s*/
var isObject = function isObject(object) {
return Object.prototype.toString.call(object) === "[object Object]";
};
var isArray = function isObject(object) {
return Object.prototype.toString.call(object) === "[object Array]";
};
var dashP = function dashP(path, object) {
var current = object;
@JessieAMorris
JessieAMorris / For @windley
Created August 6, 2014 15:51
Traverse path for javascript
var isObject = function isObject(object) {
return Object.prototype.toString.call(object) === "[object Object]";
};
var isArray = function isObject(object) {
return Object.prototype.toString.call(object) === "[object Array]";
};
var dashP = function dashP(path, object) {
var current = object;
@JessieAMorris
JessieAMorris / keybase.md
Last active April 23, 2018 18:46
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@JessieAMorris
JessieAMorris / example.js
Last active December 31, 2015 20:58
localStore.js Examples
var store = new _.LargeLocalStorage({
size: 10000,
name: 'NamespaceThatYouWantToUse'
});
store.initialized.done(function() {
store.set("THIS IS THE KEY", {a: {object: true, test: "This is a test object for storing however"}}, {json: true}).done(function() {
store.get("THIS IS THE KEY", {json: true}).done(function(ret) {
console.log(ret.a.test); // prints "This is a test object for storing however"
});
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<change>
<response_code>0</response_code>
<message>success</message>
<updates syncanchor="hpbblyst|2.9">
<response_code>0</response_code>
<envelopegroups/>
<envelopes>
<envelope type="CREDIT_CARD_PAYMENTS" id="53215600" displayFlag="1">
<balance>-8.01</balance>
@JessieAMorris
JessieAMorris / index.html
Created October 22, 2013 00:48
HTML5 Notifications demo
<html>
<head>
<style type="text/css">
.hide {
display: none;
}
</style>
</head>
<body>
@JessieAMorris
JessieAMorris / MATH
Created January 16, 2011 06:04
ARE YOU A BOT???
input = ask "WHAT IS 5 + 2?!"
number = 7
if input.to_i == 7
alert "CONGRATULATIONS YOU CAN ADD AND STUFF!!!"
else
alert "YOU ARE A BLEEDING VAGINA HOW COULD YOU SCREWWWWWW!"
end
@JessieAMorris
JessieAMorris / app.krl
Created December 14, 2010 00:45
The guts of the IRC bot.
ruleset a41x149 {
meta {
name "IRC Bot"
description <<
IRC Bot
>>
author ""
logging off
}