Skip to content

Instantly share code, notes, and snippets.

View madewithsalt's full-sized avatar

Kris Lynn madewithsalt

View GitHub Profile
@madewithsalt
madewithsalt / 1. indexOf
Last active March 8, 2016 15:14
JS Interview Working Questions
// Part 1: Function
// Goal: implement the indexOf method.
// -----------------------------------
// usage:
var colors = ['orange', 'red', 'green'];
indexOf(colors, 'green'); // => 2
indexOf(colors, 'purple'); // => -1
var thing = {
invoices: [
{
status: '',
name: '',
userID: '',
paymentID: '',
invoiceID: '',
blockorderID: '',
projectID: '',
@madewithsalt
madewithsalt / Git quick start
Created August 9, 2014 13:25
Zero to 'Git Pull' - quick start guide for using Git & Github
# Mac Users:
- Make sure you have XCode installed. It's available in the App Store.
- If you are running something before OSX Mavericks, you may also need to install the **Command Line Tools**:
1. Start Xcode on the Mac.
2. Choose Preferences from the Xcode menu.
3. In the General panel, click Downloads.
4. On the Downloads window, choose the Components tab.
5. Click the Install button next to Command Line Tools. (if you do not see it there, it may already be installed)
6. You may need to restart your computer once it's complete to take affect.
// link this file (or paste in) to the fiddle for easy logging in the document.
window.console.log = function() {
var args = Array.prototype.slice.call(arguments,0);
args.map(function(arg) {
var d = document.createElement('div');
d.innerHTML = arg;
return document.body.appendChild(d);
});
}
@madewithsalt
madewithsalt / jquery.tooltip.js
Created February 13, 2013 22:46
Just another jQuery tooltip plugin!
/*global jQuery, $ */
/*jshint laxcomma:true */
// ^- jshint settings
// ******************************
//* Tooltip Plugin
//* Built by: Kristi Centinaro
//* Inspired by Bootstrap's jQuery tooltip plugin,
//* but with SEMICOLONS. <3
//* v1.0 - Feb 2013 - basic functionality.
// ******************************
@madewithsalt
madewithsalt / config
Created August 24, 2012 18:14
RaidCall with GW2 Support
<?xml version="1.0" ?>
<olConfig>
<olConfigItem gameName = "Wow" processName = "wow.exe" cursor = "" autoStart="0">
<olWnd flash = "XOverlayMainLoader.swf" autofit = "1"></olWnd>
</olConfigItem>
<olConfigItem gameName = "War3" processName = "war3.exe" cursor = "" autoStart="1">
<olWnd flash = "XOverlayMainLoader.swf" autofit = "1"></olWnd>
</olConfigItem>
<olConfigItem gameName = "CrossFire" processName = "crossfire.exe" cursor = "">
<olWnd flash = "XOverlayMainLoader.swf" autofit = "1"></olWnd>